.ticket-create{width:min(620px,100%)}
.ticket-create h2{margin-bottom:8px}
.ticket-create>.muted{margin:0 0 18px}
.required-field{position:relative}
.required-field:before{content:"*";position:absolute;left:-12px;top:1px;color:#dc526d;font-weight:900}
.ticket-create .field{margin-top:12px}
.videos-section{margin-top:18px;padding-top:16px;border-top:1px solid #edf0f7}
.video-section-head,.video-row-head,.settings-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.video-section-head b{display:block;color:#28304b;font-size:14px}
.video-section-head small{display:block;margin-top:4px;color:#8490aa;font-size:12px}
.small-button{min-height:34px;padding:0 11px;font-size:12px}
#video-list{display:grid;gap:10px;margin-top:12px}
.video-row{padding:12px;border:1px solid #e4e7f2;border-radius:12px;background:#fbfcff;transition:border-color .18s ease,box-shadow .18s ease}
.video-row:focus-within{border-color:#9b8bff;box-shadow:0 0 0 3px rgba(117,93,255,.1)}
.video-row-head{margin-bottom:9px;color:#4b526c;font-size:13px}
.video-row-head>div{display:flex;align-items:center;gap:6px}
.note-toggle,.remove-video{border:0;background:transparent;color:#6d628f;font:inherit;cursor:pointer}
.note-toggle{padding:4px 8px;border-radius:7px}
.note-toggle:hover,.note-toggle.active{color:#604be5;background:#efeaff}
.remove-video{width:25px;height:25px;border-radius:7px;color:#a3a9bc;font-size:20px;line-height:1}
.remove-video:hover{color:#c1435f;background:#fff0f2}
.remove-video:disabled{visibility:hidden}
.video-row>input{width:100%}
.video-note-panel{margin-top:9px;padding-top:9px;border-top:1px dashed #dfe3ef}
.video-note-panel label{display:grid;grid-template-columns:42px 1fr;align-items:center;gap:8px;color:#78839e;font-size:12px}
.video-note-panel input{min-height:34px}
.settings-modal{width:min(680px,100%)}
.settings-section{margin-top:22px;padding-top:19px;border-top:1px solid #edf0f7}
.settings-section h3{margin:0;color:#28304b;font-size:15px}
.shop-settings p{margin:4px 0 0;color:#8490aa;font-size:12px}
.settings-title>span{padding:4px 8px;border-radius:99px;color:#6956d9;background:#f0edff;font-size:12px;font-weight:700}
.shop-create{display:grid;grid-template-columns:1fr auto;gap:9px;margin-top:13px}
.shop-create .error{grid-column:1/-1;margin:0}
.shop-list{display:grid;gap:7px;margin-top:12px}
.shop-item{display:flex;align-items:center;gap:9px;padding:10px 11px;border:1px solid #e7eaf2;border-radius:10px;background:#fbfcff;color:#3f4863}
.shop-item>span{color:#7765ed}.shop-item b{font-size:13px}.shop-item button{margin-left:auto}
.icon-danger,.danger-button{border:0;border-radius:8px;background:#fff0f2;color:#c4435f;cursor:pointer;font-weight:700}
.icon-danger{padding:6px 9px;font-size:12px}.icon-danger:hover,.danger-button:hover{background:#ffe2e7}
.danger-button{padding:10px 14px;font-size:13px}
.confirm-modal{width:min(410px,100%)}
.management-workspace,.profile-workspace{padding-bottom:26px}
.management-create{display:grid;grid-template-columns:1.15fr 1.15fr .8fr 1fr auto;align-items:end;gap:12px;padding:18px;border:1px solid #e4e7f3;border-radius:16px;background:linear-gradient(135deg,#fbfbff,#f5f7ff)}
.management-create label,.compact-field{display:grid;gap:6px;color:#68738e;font-size:12px;font-weight:700}
.management-create input,.management-create select,.compact-field select{min-height:39px;background:#fff}
.management-create>.error{grid-column:1/-1;margin:0}
.people-list{display:grid;gap:10px;margin-top:18px}
.person-card{display:grid;grid-template-columns:40px minmax(110px,1fr) 110px 160px auto;align-items:center;gap:12px;padding:13px 14px;border:1px solid #e7eaf3;border-radius:14px;background:#fff;transition:transform .18s ease,box-shadow .18s ease}
.person-card:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(75,85,130,.07)}
.person-card.admin{grid-template-columns:40px 1fr auto;background:#faf9ff}
.person-avatar,.profile-avatar{display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,#9d8cff,#5e84ed);color:#fff;font-weight:900}
.person-avatar{width:40px;height:40px}.person-main{display:grid;gap:3px}.person-main b{color:#303750;font-size:14px}.person-main small{color:#8993aa;font-size:12px}
.compact-field select{min-height:33px;padding:0 8px;font-size:12px}.person-actions{display:flex;justify-content:flex-end;gap:7px}.person-actions .secondary,.text-danger{min-height:33px;padding:0 9px;font-size:12px}
.text-danger{border:0;border-radius:8px;background:transparent;color:#c4435f;cursor:pointer;font-weight:700}.text-danger:hover{background:#fff0f2}
.role-pill,.count-pill{display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;border-radius:99px;font-size:12px;font-weight:800}.role-pill.operator{background:#eaf8f2;color:#198158}.role-pill.editor{background:#eeeaff;color:#6753d6}.role-pill.admin{background:#fff2d9;color:#b97612}.count-pill{background:#f0edff;color:#6956d9}
.shop-create-page{display:grid;grid-template-columns:minmax(0,420px) auto;gap:10px;margin-top:19px;align-items:start}.shop-create-page input{min-height:43px;background:#fbfcff}.shop-create-page .error{grid-column:1/-1;margin:0}
.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:18px}.shop-card{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid #e6e9f3;border-radius:14px;background:linear-gradient(145deg,#fff,#fafbff)}.shop-card:hover{border-color:#cfc7ff}.shop-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#f0edff;color:#725ee8}.shop-card div{display:grid;gap:3px;min-width:0}.shop-card b{color:#38405b;font-size:13px}.shop-card small{color:#8b95aa;font-size:11px}.shop-card button{margin-left:auto}
.profile-workspace{max-width:840px}.profile-hero{display:flex;align-items:center;gap:16px;padding:24px;border-radius:18px;background:radial-gradient(circle at 90% 10%,#ece9ff,transparent 36%),linear-gradient(135deg,#fafaff,#f2f6ff);border:1px solid #e2e7f4}.profile-avatar{width:64px;height:64px;border-radius:20px;font-size:24px}.profile-hero h2{margin:3px 0;color:#27304c}.profile-hero p:not(.eyebrow){margin:0;color:#7e899f;font-size:13px}.profile-hero .role-pill{margin-left:auto}.profile-details{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:15px 0}.profile-details article{display:grid;gap:7px;padding:15px;border:1px solid #e6e9f3;border-radius:13px;background:#fff}.profile-details span{color:#8a94a9;font-size:12px}.profile-details b{color:#3d4660;font-size:13px}
.refined-ticket-form{width:min(680px,100%)}.ticket-basics{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.ticket-basics>.field:last-child{grid-column:1/-1}.assignment-panel{margin-top:18px;padding:15px;border:1px solid #e2e0fb;border-radius:15px;background:linear-gradient(135deg,#faf9ff,#f5f8ff)}.assignment-panel>div:first-child{display:grid;gap:3px}.assignment-panel b{color:#3e4360;font-size:14px}.assignment-panel small{color:#8490a7;font-size:12px}.assignment-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.assignment-grid .field{margin-top:12px}.assignment-grid input[readonly]{background:#f3f5fb;color:#5d6680;cursor:default}.assignment-grid small{display:block;min-height:16px;margin-top:4px;color:#8b7ee2;font-size:11px}.refined-videos{margin-top:20px;padding:16px;border:1px solid #e5e8f3;border-radius:16px;background:#fcfdff}.refined-videos .video-section-head{margin-bottom:13px}.refined-videos .video-section-head b{font-size:14px}.video-card{position:relative;padding:14px;border:1px solid #e2e7f1;border-radius:14px;background:#fff;box-shadow:0 3px 10px rgba(67,75,115,.025);transition:border-color .18s ease,box-shadow .18s ease}.video-card:focus-within{border-color:#a99cff;box-shadow:0 0 0 4px rgba(120,99,237,.09)}.video-card-top{display:flex;align-items:center;gap:9px;margin-bottom:11px}.video-index{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:linear-gradient(135deg,#9685ff,#6d8af1);color:#fff;font-size:10px;font-weight:900;letter-spacing:.04em}.video-card-top div{display:grid;gap:2px}.video-card-top b{color:#3e4661;font-size:13px}.video-card-top small{color:#929bae;font-size:11px}.video-card .remove-video{margin-left:auto;background:#f7f8fc}.video-url-field{display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid #e2e6f0;border-radius:10px;background:#fafbff}.video-url-field>span{font-size:14px}.video-url-field input{width:100%;min-height:39px;border:0!important;outline:0;background:transparent!important;box-shadow:none!important;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}.video-note-action{margin-top:9px}.video-card .note-toggle{border:1px solid #e6e1ff;background:#faf9ff;padding:6px 9px;color:#6c60b3;font-size:12px}.video-card .note-toggle:hover,.video-card .note-toggle.active{border-color:#cfc4ff;background:#f0edff}.video-card .video-note-panel{padding:11px;margin-top:10px;border:1px dashed #d7d2f3;border-radius:10px;background:#faf9ff}.video-card .video-note-panel label{display:grid;grid-template-columns:1fr;gap:6px;color:#716995;font-size:12px;font-weight:700}.video-card textarea{width:100%;resize:vertical;background:#fff;font:inherit;font-size:12px;line-height:1.55}
.ticket-create select{cursor:pointer}
.ticket-create input[type=url]{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}

/* Date range: keep the native picker affordance fully visible and aligned. */
.range-panel{overflow:visible}
.range-panel input[type=date]{width:100%;min-width:0;appearance:auto;-webkit-appearance:auto;color-scheme:light;background:#fff}
.range-panel input[type=date]::-webkit-calendar-picker-indicator{margin:0 0 0 4px;opacity:.72;cursor:pointer;filter:none}
.range-panel input[type=date]::-webkit-datetime-edit{padding:0}
.range-popover[open] summary{border-color:#8e7aff;background:#f5f2ff;color:#5b47d7}

/* Product controls: never fall back to browser-default borders in management views. */
.management-create input,.management-create select,.compact-field select,.shop-create-page input{width:100%;height:42px!important;min-height:42px!important;border:1px solid #dce2ef!important;border-radius:11px!important;outline:0!important;background-color:#fff!important;color:#303850!important;box-shadow:0 1px 2px rgba(37,48,85,.025)!important;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease!important}
.management-create input,.shop-create-page input{padding:0 12px!important}
.management-create select,.compact-field select{appearance:none;-webkit-appearance:none;padding:0 34px 0 12px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%236b7491' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 11px center!important}
.management-create input::placeholder,.shop-create-page input::placeholder{color:#adb5c7}
.management-create input:focus,.management-create select:focus,.compact-field select:focus,.shop-create-page input:focus{border-color:#8877f6!important;background-color:#fff!important;box-shadow:0 0 0 4px rgba(112,92,242,.12)!important}
.management-create label,.compact-field{color:#69748f;letter-spacing:.01em}.management-create{box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 8px 20px rgba(68,78,125,.04)}
.person-card .compact-field{padding:8px 9px;border:1px solid #eef0f7;border-radius:11px;background:#fafbff}.person-card .compact-field select{height:34px!important;min-height:34px!important;border-color:#e2e6f1!important;background-color:#fff!important;font-weight:700}.person-card .compact-field select:focus{box-shadow:0 0 0 3px rgba(112,92,242,.1)!important}

/* Assignment is a one-way automation, displayed as a result rather than a fake editable input. */
.polished-ticket-form>.muted{max-width:520px}.assignment-flow{padding:17px 18px;background:linear-gradient(135deg,#fbfaff 0%,#f3f6ff 100%);border-color:#dedaf9}.assignment-heading{display:flex;align-items:flex-start;gap:10px}.assignment-icon{display:grid;place-items:center;flex:0 0 auto;width:31px;height:31px;border-radius:10px;background:linear-gradient(135deg,#a191ff,#7189ee);color:#fff;font-size:14px;box-shadow:0 7px 15px rgba(117,101,235,.2)}.assignment-heading div{display:grid;gap:3px}.assignment-heading b{font-size:14px}.assignment-heading small{font-size:12px}.assignment-flow-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-top:13px}.assignment-flow-grid .field{margin:0}.auto-assignee-card{display:grid;align-content:center;gap:3px;min-height:70px;padding:11px 13px;border:1px dashed #c7cce0;border-radius:12px;background:rgba(255,255,255,.65);transition:.18s}.auto-assignee-card:hover{border-color:#a79cff;background:#fff}.auto-assignee-kicker{color:#8a93ac;font-size:10px;font-weight:800;letter-spacing:.06em}.auto-assignee-card b{color:#7c849b;font-size:14px}.auto-assignee-card small{color:#9aa2b5;font-size:11px;line-height:1.45}.auto-assignee-card.ready{border-style:solid;border-color:#b7e6d0;background:#f4fcf8}.auto-assignee-card.ready .auto-assignee-kicker{color:#32956b}.auto-assignee-card.ready b{color:#237857}.auto-assignee-card.warning{border-color:#f2d28a;background:#fffaf0}.auto-assignee-card.warning b,.auto-assignee-card.warning .auto-assignee-kicker{color:#b87913}.polished-videos{background:linear-gradient(180deg,#fcfdff,#fafbff)}.polished-videos .video-card{box-shadow:0 5px 14px rgba(66,78,119,.035)}.polished-videos .video-url-field{border-radius:11px;background:#f8f9fd}.polished-videos .video-url-field:focus-within{background:#fff;border-color:#b7aafc;box-shadow:0 0 0 3px rgba(112,92,242,.09)}

/* Final workflow controls. */
.workflow-assignment{padding:17px 18px}.locked-operator{display:grid;gap:6px}.locked-operator>span{color:#6d758d;font-size:12px;font-weight:700}.locked-operator>div{display:flex;align-items:center;gap:8px;min-height:43px;padding:0 12px;border:1px solid #e1e5ef;border-radius:11px;background:#f4f6fa;color:#3f4760}.locked-operator i{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#e7e3ff;color:#6e5ae1;font-style:normal;font-size:10px}.locked-operator b{font-size:13px}.locked-operator em{margin-left:auto;padding:3px 7px;border-radius:99px;background:#e8f7f1;color:#27845f;font-style:normal;font-size:10px;font-weight:800}.locked-operator small,.workflow-assignment .field>small{min-height:16px;color:#8b94a9;font-size:11px}.workflow-assignment select{height:43px}.workflow-videos{background:linear-gradient(180deg,#fdfdff,#f8f9fe)}.video-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}.video-input-row .video-url-field{min-width:0}.video-input-row .note-toggle{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:88px;min-height:42px;margin:0;padding:0 12px;border:1px solid #ddd7ff;border-radius:11px;background:#f7f5ff;color:#6657bd;font-weight:800;white-space:nowrap}.video-input-row .note-toggle:hover,.video-input-row .note-toggle.active{border-color:#9f90f5;background:#eeeaff;color:#5743c7;box-shadow:0 0 0 3px rgba(112,92,242,.08)}.video-input-row .note-toggle.has-note{border-color:#b9ddcd;background:#f1faf6;color:#27825e}.workflow-videos .video-note-panel{margin-top:10px;padding:13px;border:1px solid #e2def7;border-radius:12px;background:linear-gradient(135deg,#faf9ff,#f7f8fe)}.workflow-videos .video-note-panel label{display:grid;gap:7px;color:#625a89;font-size:12px;font-weight:800}.workflow-videos .video-note-panel textarea{display:block;width:100%;min-height:86px;padding:11px 12px!important;border:1px solid #dfe3ef!important;border-radius:10px!important;outline:0!important;background:#fff!important;color:#353d55!important;box-shadow:0 1px 2px rgba(35,44,77,.025)!important;resize:vertical;font-family:inherit!important;font-size:13px!important;line-height:1.55;transition:border-color .18s ease,box-shadow .18s ease}.workflow-videos .video-note-panel textarea::placeholder{color:#a5aec0}.workflow-videos .video-note-panel textarea:focus{border-color:#8e7bf1!important;box-shadow:0 0 0 4px rgba(112,92,242,.11)!important}.self-relation{display:grid;grid-template-columns:1fr minmax(330px,.8fr);align-items:center;gap:24px;margin:18px;padding:20px;border:1px solid #e1e4f2;border-radius:16px;background:linear-gradient(135deg,#fbfaff,#f4f7ff)}.self-relation .eyebrow{margin:0 0 5px}.self-relation h3{margin:0;color:#333b57;font-size:16px}.self-relation>div>p:last-child{margin:6px 0 0;color:#7f899f;font-size:12px;line-height:1.55}.self-relation form{display:grid;grid-template-columns:1fr auto;align-items:end;gap:9px}.self-relation label{display:grid;gap:6px;color:#66718d;font-size:12px;font-weight:800}.self-relation select{height:42px;padding:0 34px 0 12px;border:1px solid #dce2ef;border-radius:11px;outline:0;appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%236b7491' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center;color:#303850}.self-relation select:focus{border-color:#8877f6;box-shadow:0 0 0 4px rgba(112,92,242,.12)}.self-relation .error{grid-column:1/-1;margin:0}

/* V2 navigation, access management and batch-video layout. */
.nav-group{display:grid;gap:5px}.nav-group .permission-toggle span{min-width:0}.nav-group .permission-toggle b{color:#9ba3ba;font-size:13px;transition:transform .18s}.nav-group.open .permission-toggle b{transform:rotate(180deg)}.nav-sub{display:none;gap:4px;margin:0;padding:0;border:0}.nav-group.open .nav-sub{display:grid}.nav-sub button{min-height:40px!important;font-size:12px!important}
.account-create-v2{display:grid;grid-template-columns:1fr 1fr .8fr .8fr 1fr auto;align-items:end;gap:11px;padding:18px;border:1px solid #e1e5f0;border-radius:16px;background:linear-gradient(135deg,#fbfbff,#f4f7ff)}.account-create-v2>label,.create-member-fields>label,.person-controls-v2 label{display:grid;gap:6px;color:#68738e;font-size:12px;font-weight:800}.create-member-fields{display:contents}.account-create-v2 input,.account-create-v2 select,.person-controls-v2 select{width:100%;height:42px;padding:0 34px 0 12px;border:1px solid #dce2ef;border-radius:11px;outline:0;background-color:#fff;color:#303850}.account-create-v2 input{padding-right:12px}.account-create-v2 select,.person-controls-v2 select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%236b7491' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center}.account-create-v2 input:focus,.account-create-v2 select:focus,.person-controls-v2 select:focus{border-color:#8877f6;box-shadow:0 0 0 4px rgba(112,92,242,.11)}.account-create-v2>.error{grid-column:1/-1;margin:0}.people-list-v2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px}.person-card-v2{display:grid;gap:13px;padding:16px;border:1px solid #e5e8f2;border-radius:15px;background:#fff;box-shadow:0 5px 16px rgba(55,67,106,.035)}.person-summary-v2{display:flex;align-items:center;gap:10px}.person-summary-v2>div:nth-child(2){display:grid;gap:3px;min-width:0}.person-summary-v2 b{color:#303850;font-size:14px}.person-summary-v2 small{color:#8b95aa;font-size:11px}.person-summary-v2 .role-pill{margin-left:auto}.person-controls-v2{display:grid;grid-template-columns:.8fr 1.7fr;gap:9px;padding:12px;border-radius:12px;background:#f8f9fd}.member-controls-v2{display:grid;grid-template-columns:.75fr 1.25fr;gap:9px}.person-controls-v2 select{height:37px;font-size:12px}.person-card-v2 .person-actions{justify-content:flex-start;padding-top:2px;border-top:1px solid #f0f1f6}.person-card-v2 .person-actions button:last-child{margin-left:auto}
.profile-editor-v2 form{grid-template-columns:1fr 1fr auto}.profile-editor-v2 form>button{align-self:end}.profile-editor-v2 form>.error{grid-column:1/-1}
.batch-ticket-form{width:min(700px,100%)}.batch-videos{padding-bottom:0;overflow:hidden}.batch-videos .video-section-head{padding-bottom:12px}.video-count{padding:5px 9px;border-radius:99px;background:#ece9ff;color:#6655d1;font-size:11px;font-weight:900}.batch-video-list{max-height:350px;overflow:auto;padding:2px 5px 8px 2px;scrollbar-width:thin;scrollbar-color:#cbc5ee transparent}.batch-video-list::-webkit-scrollbar{width:7px}.batch-video-list::-webkit-scrollbar-thumb{border-radius:99px;background:#cbc5ee}.video-batch-toolbar{position:relative;z-index:2;display:grid;grid-template-columns:1fr auto auto;align-items:end;gap:10px;margin:12px -16px 0;padding:12px 16px 14px;border-top:1px solid #e2e5f0;background:rgba(249,250,255,.96);box-shadow:0 -8px 22px rgba(66,72,115,.045);backdrop-filter:blur(10px)}.video-batch-toolbar>div{display:grid;gap:2px}.video-batch-toolbar b{color:#3f4761;font-size:12px}.video-batch-toolbar small{color:#8a94a9;font-size:11px}.video-batch-toolbar label{display:grid;grid-template-columns:auto 64px;align-items:center;gap:7px;color:#737d96;font-size:11px;font-weight:800}.video-batch-toolbar input{height:38px;padding:0 8px;border:1px solid #dce1ee;border-radius:10px;outline:0;background:#fff;color:#343c54;text-align:center}.video-batch-toolbar input:focus{border-color:#8877f6;box-shadow:0 0 0 3px rgba(112,92,242,.1)}.video-batch-toolbar button{height:38px;padding:0 13px;font-size:12px}

/* Ticket composer: the shell never scrolls; only the video collection does. */
.batch-ticket-form{display:flex;flex-direction:column;width:min(720px,100%);height:min(920px,calc(100dvh - 28px));max-height:calc(100dvh - 28px)!important;overflow:hidden!important;padding:26px 28px!important}
.batch-ticket-form>.close{position:absolute;top:18px;right:18px;float:none}
.batch-ticket-form>.eyebrow{flex:0 0 auto;margin:0 0 6px}
.batch-ticket-form>h2{flex:0 0 auto;margin:0 0 7px}
.batch-ticket-form>.muted{flex:0 0 auto;margin:0 0 10px}
.batch-ticket-form .ticket-basics{flex:0 0 auto;align-items:start;column-gap:16px}
.batch-ticket-form .ticket-basics>.field{align-self:start;margin-top:12px;gap:7px;line-height:18px}
.batch-ticket-form .ticket-basics>.field>input,.batch-ticket-form .ticket-basics>.field>select{height:44px;min-height:44px;padding-top:0;padding-bottom:0}
.batch-ticket-form .ticket-basics>.field>small{display:block;min-height:16px;margin:0;color:#8b94a9;font-size:11px;line-height:16px}
.batch-ticket-form .workflow-assignment{flex:0 0 auto;margin-top:14px}
.batch-ticket-form .batch-videos{display:flex;flex:1 1 260px;flex-direction:column;min-height:190px;margin-top:14px}
.batch-ticket-form .batch-videos>.video-section-head{flex:0 0 auto;margin:0}
.batch-ticket-form .batch-video-list{display:grid;flex:1 1 auto;min-height:0;max-height:none;margin-top:0;padding:10px 6px 10px 2px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
.batch-ticket-form .video-batch-toolbar{flex:0 0 auto;margin-top:0}
.batch-ticket-form>.form-actions{flex:0 0 auto;margin-top:14px}
.batch-ticket-form>.error{flex:0 0 auto;margin-top:8px}

/* Detail drawer: a stable white information surface with a gentle neutral mask. */
.detail-backdrop{position:fixed;z-index:21;inset:0;background:rgba(31,38,62,.2);backdrop-filter:blur(2px)}
.ticket-detail-drawer{display:flex;flex-direction:column;width:min(640px,calc(100vw - 18px));height:100dvh;padding:0!important;overflow:hidden!important;border-left:1px solid #e7eaf3!important;background:#fff!important;color:#252b42!important;box-shadow:-28px 0 80px rgba(31,39,73,.16)!important}
.ticket-detail-drawer .detail-drawer-head{display:flex;flex:0 0 auto;align-items:flex-start;justify-content:space-between;gap:20px;padding:25px 28px 20px;border-bottom:1px solid #edf0f6;background:linear-gradient(145deg,#fff 55%,#f6f4ff)}
.ticket-detail-drawer .detail-drawer-head .eyebrow{margin:0 0 7px}
.ticket-detail-drawer .detail-drawer-head h2{margin:0 0 6px;color:#252b42;font-size:25px;line-height:1.25}
.ticket-detail-drawer .detail-drawer-head .close{flex:0 0 auto;margin-top:40px}
.ticket-detail-drawer .detail-drawer-scroll{flex:1 1 auto;min-height:0;padding:22px 28px 34px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d7d2ef transparent}
.detail-status-row{display:flex;align-items:center;gap:7px;margin-bottom:18px}
.detail-section{margin-top:24px}.detail-section:first-of-type{margin-top:0}
.detail-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.detail-section-title h3{margin:0;color:#333a53;font-size:14px}.detail-section-title span{color:#9a91ed;font-size:10px;font-weight:900;letter-spacing:.09em}
.ticket-facts{display:grid;grid-template-columns:1fr 1fr;gap:1px;padding:1px;border:1px solid #e8eaf2;border-radius:15px;overflow:hidden;background:#e8eaf2}
.ticket-fact{display:grid;align-content:start;gap:5px;min-height:70px;padding:13px 14px;background:#fbfcff}
.ticket-fact.wide{grid-column:1/-1}.ticket-fact span{color:#8a93a8;font-size:11px}.ticket-fact b{min-width:0;overflow-wrap:anywhere;color:#343b54;font-size:13px;line-height:1.5}
.detail-video-list{display:grid;gap:9px}.detail-video-card{padding:13px 14px;border:1px solid #e5e8f1;border-radius:13px;background:linear-gradient(145deg,#fff,#fafbff)}
.detail-video-top{display:flex;align-items:center;gap:9px}.detail-video-top .video-index{flex:0 0 auto}.detail-video-top a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5e50cf;text-decoration:none;font-size:12px;font-weight:800}.detail-video-top a:hover{text-decoration:underline;text-underline-offset:3px}.detail-video-card p{margin:10px 0 0;padding:10px 11px;border-radius:9px;background:#f6f4ff;color:#625d7b;font-size:12px;line-height:1.6;white-space:pre-wrap}
.detail-empty{margin:0;padding:18px;border:1px dashed #dfe2ed;border-radius:13px;background:#fafbfe;color:#8a93a8;text-align:center;font-size:12px}
.ticket-detail-drawer .detail-text{padding:13px 14px;border:1px solid #e7eaf2;border-radius:12px;background:#fbfcff;color:#505970;line-height:1.7}
.ticket-detail-drawer .comments{margin-top:24px}.ticket-detail-drawer .comment{border-color:#edf0f5}.ticket-detail-drawer .comment p{color:#505970}
.ticket-detail-drawer .drawer-actions{position:sticky;bottom:-34px;margin:22px -28px -34px;padding:15px 28px 20px;border-top:1px solid #eceef5;background:rgba(255,255,255,.94);backdrop-filter:blur(12px)}
body.detail-open{overflow:hidden}

@media(max-height:850px){.batch-ticket-form{padding:20px 24px!important}.batch-ticket-form>.close{top:14px;right:14px}.batch-ticket-form>.muted{margin-bottom:4px}.batch-ticket-form .ticket-basics>.field{margin-top:8px}.batch-ticket-form .ticket-basics>.field>small,.batch-ticket-form .assignment-heading small,.batch-ticket-form .locked-operator>small,.batch-ticket-form .workflow-assignment .field>small{display:none}.batch-ticket-form .workflow-assignment{margin-top:9px;padding:10px 12px}.batch-ticket-form .assignment-flow-grid{margin-top:8px}.batch-ticket-form .locked-operator{gap:4px}.batch-ticket-form .batch-videos{flex-basis:180px;min-height:145px;margin-top:9px}.batch-ticket-form>.form-actions{margin-top:7px}}
@media(max-height:850px) and (min-width:681px){.batch-ticket-form .ticket-basics{grid-template-columns:repeat(3,minmax(0,1fr))}.batch-ticket-form .ticket-basics>.field:last-child{grid-column:auto}}
@media(max-width:680px){.batch-ticket-form{height:calc(100dvh - 12px);max-height:calc(100dvh - 12px)!important;padding:20px 16px!important}.batch-ticket-form .ticket-basics{grid-template-columns:1fr}.batch-ticket-form .batch-videos{min-height:140px}.ticket-detail-drawer{width:100vw}.ticket-detail-drawer .detail-drawer-head{padding:20px 18px 16px}.ticket-detail-drawer .detail-drawer-scroll{padding:18px}.ticket-facts{grid-template-columns:1fr}.ticket-fact.wide{grid-column:auto}.ticket-detail-drawer .drawer-actions{bottom:-18px;margin:20px -18px -18px;padding:13px 18px 16px}}

@media(max-width:1120px){.account-create-v2{grid-template-columns:repeat(3,minmax(0,1fr))}.account-create-v2>button{width:max-content}.people-list-v2{grid-template-columns:1fr}}
@media(max-width:980px){.management-create{grid-template-columns:repeat(2,minmax(0,1fr))}.management-create button{width:max-content}.person-card{grid-template-columns:40px 1fr 120px 150px}.person-actions{grid-column:2/-1;justify-content:flex-start}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-editor-v2 form{grid-template-columns:1fr 1fr}.profile-editor-v2 form>button{width:max-content}}
@media(max-width:680px){.required-field:before{left:0;top:-13px}.ticket-create .field{margin-top:16px}.shop-create{grid-template-columns:1fr}.video-section-head{align-items:flex-start}.settings-modal{width:100%}.management-create,.ticket-basics,.assignment-grid,.assignment-flow-grid,.profile-details,.self-relation,.account-create-v2,.profile-editor-v2 form{grid-template-columns:1fr}.management-create button,.account-create-v2>button,.profile-editor-v2 form>button{width:100%}.person-card{grid-template-columns:40px 1fr}.person-card .compact-field,.person-actions{grid-column:1/-1}.person-actions{justify-content:flex-start}.shop-create-page,.shop-grid{grid-template-columns:1fr}.profile-hero{align-items:flex-start;flex-wrap:wrap}.profile-hero .role-pill{margin-left:0}.refined-videos{padding:12px}.video-section-head{gap:8px}.video-section-head .small-button{white-space:nowrap}.video-input-row{grid-template-columns:1fr}.video-input-row .note-toggle{width:100%}.self-relation form{grid-template-columns:1fr}.self-relation{margin:12px;padding:16px}.people-list-v2{margin:12px}.person-controls-v2,.member-controls-v2{grid-template-columns:1fr}.video-batch-toolbar{grid-template-columns:1fr 1fr;margin-left:-12px;margin-right:-12px}.video-batch-toolbar>div{grid-column:1/-1}.video-batch-toolbar button{width:100%}}

/* Compact free-form video reference rows. */
.workflow-videos .video-note-panel{margin-top:7px;padding:9px;border-radius:11px}
.workflow-videos .video-note-panel label{gap:4px;font-size:11px}
.workflow-videos .video-note-panel textarea{height:52px;min-height:52px;padding:7px 10px!important;border-radius:9px!important;font-size:12px!important;line-height:1.45;resize:vertical}
.video-card.note-open{padding-bottom:10px}
.detail-video-top a,.video-reference-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:800}
.video-reference-text{color:#46506b}

/* Three-column assignment and editor ticket scope. */
.assignment-flow-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.workspace-title-row{display:flex;align-items:center;gap:10px}.workspace-title-row h2{margin:0}
.ticket-scope-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid #ddd8fb;border-radius:99px;background:#f6f3ff;color:#6252ca;font-size:11px;font-weight:800}.ticket-scope-pill i{width:6px;height:6px;border-radius:50%;background:#7461e9;box-shadow:0 0 0 4px rgba(116,97,233,.1)}.ticket-scope-pill button{display:grid;place-items:center;width:18px;height:18px;padding:0;border:0;border-radius:50%;background:#e8e3ff;color:#6555c6;font-size:13px}
.editor-ticket-filter{width:min(520px,100%)}.operator-filter-list{display:grid;gap:9px;margin-top:18px;max-height:420px;overflow:auto;padding:2px 4px 2px 2px}.operator-filter-card{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:11px;width:100%;padding:12px 13px;border:1px solid #e3e6ef;border-radius:13px;background:#fbfcff;color:#343b55;text-align:left;transition:.18s}.operator-filter-card:hover,.operator-filter-card.selected{transform:translateY(-1px);border-color:#bcb1fb;background:#f8f6ff;box-shadow:0 8px 20px rgba(78,67,150,.08)}.operator-filter-card>div{display:grid;gap:3px}.operator-filter-card b{font-size:13px}.operator-filter-card small{color:#8b94aa;font-size:11px}.operator-filter-card>i{color:#8c82c8;font-style:normal;font-size:20px}.operator-filter-icon,.operator-filter-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,#9583ff,#6f8bf1);color:#fff;font-size:14px;font-weight:900}

/* Dense detail references: one row per video, notes expand only when requested. */
.detail-video-overview{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;color:#69738d;font-size:11px}.detail-video-overview span{font-weight:900;color:#5951a8}.detail-video-overview small{color:#939bad}
.detail-video-list.compact{display:grid;gap:6px;max-height:292px;overflow-x:hidden;overflow-y:auto;padding:2px 5px 2px 2px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d5d0ef transparent}
.detail-video-card.compact{padding:9px 10px;border-radius:11px}.detail-video-card.compact .detail-video-top{display:grid;grid-template-columns:29px minmax(0,1fr) auto;align-items:center;gap:9px}.detail-video-card.compact .video-index{width:29px;height:29px}.detail-video-card.compact a,.detail-video-card.compact .video-reference-text{display:block}.detail-video-card.compact button{min-width:58px;padding:6px 8px;border:1px solid #e1dcfb;border-radius:8px;background:#f7f5ff;color:#6658bc;font-size:11px;font-weight:800}.detail-video-card.compact button.active{border-color:#b8adf5;background:#eeeaff;color:#5946c5}.detail-video-card.compact em{color:#a0a7b8;font-style:normal;font-size:10px}.detail-video-card.compact .detail-video-note-text{margin:8px 0 0 38px;padding:8px 10px;border-radius:8px;background:#f6f4ff;color:#625d7b;font-size:11px;line-height:1.55;white-space:pre-wrap}.detail-drawer-actions{margin-top:24px!important}

@media(max-width:760px){.assignment-flow-grid{grid-template-columns:1fr}.workspace-title-row{align-items:flex-start;flex-direction:column}.detail-video-overview{align-items:flex-start;flex-direction:column;gap:3px}.detail-video-card.compact .detail-video-top{grid-template-columns:29px minmax(0,1fr)}.detail-video-card.compact .detail-video-top button,.detail-video-card.compact .detail-video-top em{grid-column:2}.detail-video-card.compact .detail-video-note-text{margin-left:38px}}

/* Permissions and work positions are separate identities. */
.identity-pills{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-left:auto;flex-wrap:wrap}
.person-summary-v2 .identity-pills .role-pill,.profile-hero .identity-pills .role-pill{margin-left:0}
.profile-details{grid-template-columns:repeat(4,minmax(0,1fr))}

/* Detail content consumes the drawer height; only the video collection scrolls. */
.ticket-detail-drawer>.detail-drawer-scroll,.collection-detail-scroll{display:flex;flex-direction:column;overflow:hidden}
.ticket-detail-drawer .detail-status-row,.ticket-detail-drawer .detail-overview-section,.ticket-detail-drawer .detail-description-section,.ticket-detail-drawer .detail-drawer-actions{flex:0 0 auto}
.ticket-detail-drawer .detail-description-section{max-height:min(260px,34vh);overflow-x:hidden;overflow-y:auto;scrollbar-width:thin}
.ticket-detail-drawer .video-reference-section{display:flex;flex:1 1 190px;min-height:140px;flex-direction:column;margin-top:18px;overflow:hidden}
.ticket-detail-drawer .video-reference-section>.detail-section-title,.ticket-detail-drawer .detail-video-overview{flex:0 0 auto}
.ticket-detail-drawer .detail-video-list.compact{display:grid;flex:1 1 auto;align-content:start;min-height:0;max-height:none;overflow-y:auto}
.ticket-detail-drawer .detail-video-empty{display:grid;flex:1;place-items:center;min-height:100px}
.ticket-detail-drawer .ticket-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
.ticket-detail-drawer .ticket-fact{min-height:58px;padding:10px 12px}
.ticket-detail-drawer .ticket-fact.wide{grid-column:1/-1}
.ticket-detail-drawer .detail-drawer-actions{position:static;bottom:auto;margin:14px -28px -34px!important;padding:14px 28px 20px}

/* Editor ticket collection: product tabs switch one full ticket view in-place. */
.ticket-collection-drawer{width:min(760px,calc(100vw - 18px))}
.ticket-collection-drawer .collection-head{padding-bottom:16px}
.collection-product-tabs{display:flex;flex:0 0 auto;flex-wrap:wrap;gap:7px;max-height:104px;padding:12px 28px;overflow-x:hidden;overflow-y:auto;border-bottom:1px solid #eceef5;background:linear-gradient(180deg,#fbfaff,#fff);scrollbar-width:thin;scrollbar-color:#d7d2ef transparent}
.collection-product-chip{display:inline-flex;align-items:center;gap:7px;max-width:210px;min-height:31px;padding:6px 10px;border:1px solid #e2dffa;border-radius:99px;background:#f8f7ff;color:#625a8f;font-size:11px;font-weight:800;line-height:1;transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease}
.collection-product-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.collection-product-chip:hover{transform:translateY(-1px);border-color:#b9aefa;background:#f3f0ff}
.collection-product-chip:focus-visible{outline:3px solid rgba(112,92,242,.18);outline-offset:2px}
.collection-product-chip.active{border-color:#7665e8;background:linear-gradient(135deg,#7865ed,#667ff0);color:#fff;box-shadow:0 7px 16px rgba(99,82,205,.2)}
.collection-product-chip .status-dot{width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:#b9bfd0}
.collection-product-chip .status-dot.open{background:#d94675}.collection-product-chip .status-dot.progress{background:#244fb5}.collection-product-chip .status-dot.review{background:#244fb5}.collection-product-chip .status-dot.done{background:#16b368}.collection-product-chip.active .status-dot{background:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.18)}
.collection-product-picker{flex:0 0 auto;border-bottom:1px solid #eceef5;background:linear-gradient(180deg,#fbfaff,#fff)}
.collection-product-picker-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 28px 0}
.collection-product-picker-head>div:first-child{display:flex;align-items:baseline;gap:8px;min-width:0}.collection-product-picker-head b{color:#414866;font-size:11px;letter-spacing:.04em}.collection-product-picker-head>div:first-child span{color:#8991a6;font-size:10px}
.collection-status-legend{display:flex;align-items:center;gap:9px;font-size:10px;white-space:nowrap}.collection-status-legend span{display:inline-flex;align-items:center;gap:4px;font-weight:850}.collection-status-legend i{width:8px;height:8px;border-radius:50%;box-shadow:0 0 0 2px rgba(84,92,175,.10)}.collection-status-legend span.open{color:#a82d59}.collection-status-legend span.open i{background:#d94675;box-shadow:0 0 0 2px rgba(217,70,117,.16)}.collection-status-legend span.progress{color:#1f3fa6}.collection-status-legend span.progress i{background:#244fb5;box-shadow:0 0 0 2px rgba(36,79,181,.18)}.collection-status-legend span.done{color:#087a4b}.collection-status-legend span.done i{background:#16b368;box-shadow:0 0 0 2px rgba(22,179,104,.16)}
.collection-product-picker .collection-product-tabs{max-height:104px;padding-top:8px;padding-bottom:11px;border-bottom:0;background:transparent}
.collection-product-chip{min-height:33px;padding:6px 11px;color:#374151;font-size:12px;font-weight:850}.collection-product-chip.active{box-shadow:0 7px 16px rgba(99,82,205,.24)}
.collection-ticket-stage{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;overflow:hidden}
.collection-current-title{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:16px;padding:13px 28px;border-bottom:1px solid #eef0f6;background:#fff}
.collection-current-title>div{display:grid;gap:3px;min-width:0}.collection-current-title>div>span{color:#9a91ed;font-size:9px;font-weight:900;letter-spacing:.1em}.collection-current-title h3{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#303750;font-size:15px}.collection-current-title>span{flex:0 0 auto;padding:5px 9px;border-radius:99px;background:#f3f5fa;color:#6f7890;font-size:10px;font-weight:800}
.ticket-collection-drawer .collection-detail-scroll{flex:1 1 auto;padding-top:17px}
.collection-empty{display:grid;flex:1;place-content:center;justify-items:center;gap:8px;color:#7f899f;text-align:center}.collection-empty>span{display:grid;place-items:center;width:52px;height:52px;border-radius:17px;background:linear-gradient(135deg,#d9fbf7,#8678f6);color:#fff;font-size:20px;box-shadow:0 12px 30px rgba(87,76,177,.16)}.collection-empty h3,.collection-empty p{margin:0}.collection-empty h3{color:#353c55;font-size:16px}.collection-empty p{font-size:12px}

@media(max-width:760px){.profile-details{grid-template-columns:1fr 1fr}.identity-pills{width:100%;justify-content:flex-start;margin-left:0}.ticket-collection-drawer{width:100vw}.collection-product-picker-head{padding:9px 18px 0}.collection-product-picker-head>div:first-child span{display:none}.collection-status-legend{gap:6px;font-size:9px}.collection-product-tabs,.collection-product-picker .collection-product-tabs{flex-wrap:nowrap;max-height:none;padding:9px 18px 10px;overflow-x:auto;overflow-y:hidden}.collection-product-chip{flex:0 0 auto}.collection-current-title{padding:12px 18px}.ticket-detail-drawer>.detail-drawer-scroll,.collection-detail-scroll{overflow-y:auto}.ticket-detail-drawer .ticket-facts{grid-template-columns:1fr 1fr}.ticket-detail-drawer .ticket-fact.wide{grid-column:1/-1}.ticket-detail-drawer .video-reference-section{flex:0 0 auto;min-height:220px}.ticket-detail-drawer .detail-video-list.compact{max-height:310px}.ticket-detail-drawer .detail-drawer-actions{margin:14px -18px -18px!important;padding:13px 18px 16px}}

/* Profile V3: compact identity, avatar, role and password workspace. */
.profile-workspace.profile-v3{max-width:none;padding:18px;overflow:visible}
.profile-v3-grid{display:grid;grid-template-columns:minmax(250px,310px) minmax(0,1fr);gap:16px}
.profile-identity-card,.profile-settings-card{border:1px solid #e3e6f1;border-radius:18px;background:#fff;box-shadow:0 8px 25px rgba(48,58,96,.05)}
.profile-identity-card{display:flex;align-items:center;align-content:center;flex-direction:column;padding:24px;text-align:center;background:radial-gradient(circle at 50% 0,#eeebff,transparent 42%),linear-gradient(160deg,#fff,#f8faff)}
.profile-avatar-editor{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap}
.profile-avatar-editor .profile-avatar{width:82px;height:82px;flex:0 0 82px;border:5px solid rgba(255,255,255,.9);border-radius:27px;box-shadow:0 12px 30px rgba(87,76,177,.18);font-size:28px;overflow:hidden}
.avatar.has-image,.profile-avatar.has-image,.person-avatar.has-image{overflow:hidden;padding:0}
.avatar img,.profile-avatar img,.person-avatar img{width:100%;height:100%;object-fit:cover}
.avatar-upload-button,.avatar-remove{min-height:30px;padding:0 10px;border:1px solid #ded9fb;border-radius:9px;background:#f7f5ff;color:#6253c3;font-size:11px;font-weight:850;line-height:28px;cursor:pointer}
.avatar-remove{border-color:#f1dce2;background:#fff7f9;color:#c4546d}
.profile-identity-copy .eyebrow{margin:17px 0 5px}.profile-identity-copy h2{margin:0;color:#29314b;font-size:23px}.profile-identity-copy p:last-child{margin:6px 0 0;color:#7f899f;font-size:12px;line-height:1.55}
.profile-identity-card>.identity-pills{justify-content:center;margin:14px 0 0}
.profile-mini-facts{display:grid;grid-template-columns:1fr 1fr;width:100%;margin:20px 0 0;padding-top:16px;border-top:1px solid #e9ebf3}
.profile-mini-facts>div{display:grid;gap:4px}.profile-mini-facts>div+div{border-left:1px solid #e9ebf3}.profile-mini-facts dt{color:#929bad;font-size:10px}.profile-mini-facts dd{margin:0;color:#3f4760;font-size:12px;font-weight:850}
.profile-settings-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.profile-settings-card{padding:20px}
.profile-card-head{display:flex;align-items:flex-start;gap:11px;padding-bottom:15px;border-bottom:1px solid #eceef5}.profile-card-head>span{display:grid;place-items:center;width:34px;height:34px;flex:0 0 auto;border-radius:11px;background:linear-gradient(135deg,#8c78f7,#6686ef);color:#fff;font-size:10px;font-weight:900}.profile-card-head h3{margin:0 0 4px;color:#333b55;font-size:15px}.profile-card-head p{margin:0;color:#8993a8;font-size:11px;line-height:1.5}
.profile-compact-form,.profile-password-form{display:grid;gap:11px;margin-top:15px}.profile-compact-form label,.profile-password-form label{display:grid;gap:6px;color:#67728d;font-size:11px;font-weight:850}.profile-compact-form select,.profile-password-form input{width:100%;height:42px;padding:0 12px;border:1px solid #dce2ef;border-radius:11px;outline:0;background:#fff;color:#303850}.profile-compact-form select{padding-right:34px;appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%236b7491' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center}.profile-compact-form select:focus,.profile-password-form input:focus{border-color:#8877f6;box-shadow:0 0 0 4px rgba(112,92,242,.11)}.profile-compact-form button,.profile-password-form button{justify-self:start}.profile-compact-form .error,.profile-password-form .error{margin:0}
.role-pill.unassigned{background:#f0f2f6;color:#778196}

/* Ticket utility bar, interactive status and default-open notes. */
.ticket-detail-drawer>.ticket-copy-actions{flex:0 0 auto;padding:11px 28px;border-bottom:1px solid #eceef5;background:#fbfcff}
.ticket-copy-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.ticket-copy-actions button,.ticket-copy-actions a{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:0 10px;border:1px solid #dfdcf6;border-radius:9px;background:#f8f7ff;color:#6155ae;font-size:10px;font-weight:850;text-decoration:none;transition:border-color .16s ease,background .16s ease,color .16s ease}
.ticket-copy-actions button:hover,.ticket-copy-actions a:hover{border-color:#aa9df4;background:#efecff;color:#5142bb}.ticket-copy-actions button:active,.ticket-copy-actions a:active{background:#e8e3ff}.ticket-copy-actions button span,.ticket-copy-actions a span{color:#8172df}
.ticket-copy-actions .batch-complete-progress{border-color:#bee7d8;background:#effbf5;color:#217b59}.ticket-copy-actions .batch-complete-progress span{color:#29966b}.ticket-copy-actions .batch-complete-progress:hover{border-color:#77c7a3;background:#e1f7ec;color:#166848}.ticket-copy-actions .batch-complete-progress:disabled{cursor:wait;opacity:.65}
.ticket-copy-actions .batch-shop-trigger{border-color:#c9c2f7;background:#f2f0ff;color:#5144af}.ticket-copy-actions .batch-shop-trigger span{color:#6858d1}.ticket-copy-actions .batch-shop-trigger:hover{border-color:#9e91ea;background:#e8e4ff;color:#4434a4}
.collection-current-title>.ticket-copy-actions{min-width:0}.collection-current-title>.ticket-copy-actions+span{flex:0 0 auto}
.collection-current-title>.ticket-copy-actions{display:flex;flex:1 1 auto;width:auto;grid-template-columns:none;gap:7px}
.collection-product-chip.bulk-selectable{gap:7px}.collection-product-chip.bulk-selectable:not(.selected){background:var(--surface);color:var(--text)}.collection-product-chip.bulk-selectable.selected{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 14%,var(--surface));color:var(--text);box-shadow:0 5px 13px color-mix(in srgb,var(--primary) 14%,transparent)}.collection-product-chip.bulk-selectable.is-disabled{cursor:not-allowed;opacity:.46;filter:saturate(.45)}.collection-product-chip.bulk-selectable.is-disabled:hover{transform:none}.bulk-selection-control{display:grid;place-items:center;width:15px;height:15px;flex:0 0 15px;border:1.5px solid color-mix(in srgb,var(--primary) 48%,var(--line));border-radius:5px;background:var(--surface);color:#fff;font-size:10px;font-style:normal;font-weight:900;line-height:1}.collection-product-chip.bulk-selectable.selected .bulk-selection-control{border-color:var(--primary);background:var(--primary)}.collection-product-chip.bulk-selectable:focus-visible{outline:3px solid color-mix(in srgb,var(--primary) 24%,transparent);outline-offset:2px}
.ticket-collection-drawer.is-bulk-shop-selecting{top:16px;height:auto;max-height:calc(100dvh - 32px);overflow:auto}.ticket-collection-drawer.is-bulk-shop-selecting .collection-ticket-stage{flex:0 0 auto;overflow:visible}.collection-bulk-selection{display:grid;align-content:start;justify-items:start;gap:8px;padding:24px 28px 26px;background:linear-gradient(145deg,color-mix(in srgb,var(--primary) 6%,var(--surface)),var(--surface))}.collection-bulk-selection .eyebrow{margin:0;color:var(--primary)}.collection-bulk-selection h3,.collection-bulk-selection p{margin:0}.collection-bulk-selection h3{color:var(--text);font-size:17px}.collection-bulk-selection p{color:var(--muted);font-size:12px;line-height:1.65}.collection-bulk-selection p b{color:var(--primary);font-size:14px}.collection-bulk-selection-actions{display:flex;justify-content:flex-end;gap:8px;width:100%;margin-top:10px}.collection-bulk-selection-actions button{min-height:38px}
.bulk-shop-modal{width:min(510px,100%)}.bulk-shop-modal h2{margin-bottom:7px}.bulk-shop-modal .muted{margin:0}.bulk-shop-selection-summary{display:grid;grid-template-columns:1fr 1fr;gap:1px;margin:18px 0 10px;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--line)}.bulk-shop-selection-summary>div{display:grid;gap:4px;padding:11px 12px;background:var(--surface-2)}.bulk-shop-selection-summary span{color:var(--muted);font-size:10px;font-weight:800}.bulk-shop-selection-summary b{overflow:hidden;color:var(--text);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.bulk-shop-ticket-list{display:grid;gap:5px;max-height:145px;margin:0;padding:10px 12px;overflow:auto;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);color:var(--text);font-size:11px;line-height:1.5;list-style:none}.bulk-shop-ticket-list li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bulk-shop-ticket-list li:before{margin-right:7px;color:var(--primary);content:'•'}.bulk-shop-ticket-list li.more{color:var(--muted);font-weight:800}.bulk-shop-modal .form-actions{margin-top:18px}
.ticket-status-toggle{display:inline-flex;align-items:center;gap:7px;min-height:30px;padding:0 9px;border:1px solid #f2b9cb;border-radius:99px;background:#fff0f5;color:#a82d59;font-size:11px;font-weight:900}.ticket-status-toggle i{width:7px;height:7px;border-radius:50%;background:#d94675;box-shadow:0 0 0 4px rgba(217,70,117,.16)}.ticket-status-toggle small{padding-left:7px;border-left:1px solid currentColor;opacity:.65;font-size:9px}.ticket-status-toggle.done{border-color:#c8eadb;background:#effaf5;color:#24825d}.ticket-status-toggle.done i{background:#35b47d;box-shadow:0 0 0 4px rgba(53,180,125,.13)}.ticket-status-toggle:hover{filter:brightness(.98);box-shadow:0 4px 12px rgba(68,70,100,.08)}.ticket-status-toggle:disabled{cursor:wait;opacity:.55}
.ticket-status-toggle.progress{border-color:#b6c8f5;background:#edf3ff;color:#1f3fa6}.ticket-status-toggle.progress i{background:#244fb5;box-shadow:0 0 0 4px rgba(36,79,181,.18)}.ticket-status-toggle.review{border-color:#b6c8f5;background:#edf3ff;color:#1f3fa6}.ticket-status-toggle.review i{background:#244fb5;box-shadow:0 0 0 4px rgba(36,79,181,.18)}
.detail-video-card.note-expanded{border-color:#d8d2f7;background:linear-gradient(145deg,#fff,#f8f6ff)}

/* Stable centered ticket table with explicit actions. */
.table th,.table td{text-align:center!important}
.table .ticket-button{justify-items:center;margin:0 auto;text-align:center}
.table .person{text-align:center}.table .row-actions{display:table-cell;text-align:center!important;white-space:nowrap}.table .row-action+.row-action{margin-left:7px}
.row-action{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:32px;padding:0 10px;border:1px solid #dedaf8;border-radius:9px;background:#f7f5ff;color:#5c50b1;font-size:10px;font-weight:850;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}.row-action span{font-size:12px}.row-action:hover{border-color:#a99cf2;background:#eeebff;box-shadow:0 5px 13px rgba(83,69,157,.1)}.row-action.edit{border-color:#d9e3f7;background:#f5f8ff;color:#4e6ca5}.row-action.edit:hover{border-color:#9eb8e8;background:#edf3ff}

/* Remove layout motion that made frequent redraws feel shaky. */
.primary:hover,.metric:hover{transform:none}.metric{transition:border-color .16s ease,box-shadow .16s ease}.ticket-row{transition:background-color .14s ease}

@media(max-width:1050px){.profile-settings-stack{grid-template-columns:1fr}}
@media(max-width:760px){.profile-v3-grid{grid-template-columns:1fr}.profile-settings-stack{grid-template-columns:1fr}.profile-identity-card{padding:20px}.ticket-detail-drawer>.ticket-copy-actions{padding:10px 18px}.ticket-copy-actions{display:grid;grid-template-columns:1fr}.ticket-copy-actions button,.ticket-copy-actions a{width:100%}.collection-current-title{align-items:stretch;flex-direction:column}.collection-current-title>.ticket-copy-actions+span{align-self:flex-start}.row-action{width:84px}.ticket-collection-drawer.is-bulk-shop-selecting{top:0;max-height:100dvh}.collection-bulk-selection{padding:20px 18px}.bulk-shop-selection-summary{grid-template-columns:1fr}.bulk-shop-modal .form-actions{flex-direction:column-reverse}.bulk-shop-modal .form-actions button{width:100%}}
[hidden]{display:none!important}

/* Ticket ownership, scoped views and premium compact actions. */
.ticket-scope-switch{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid #e0e3ed;border-radius:11px;background:#f4f5f9;box-shadow:inset 0 1px 2px rgba(43,51,84,.03)}
.ticket-scope-switch button{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#7a8399;font-size:11px;font-weight:850;transition:background-color .15s ease,color .15s ease,box-shadow .15s ease}
.ticket-scope-switch button i{width:6px;height:6px;border-radius:50%;background:#b5bbca}
.ticket-scope-switch button.active{background:#fff;color:#574ab4;box-shadow:0 3px 10px rgba(62,67,105,.09)}
.ticket-scope-switch button.active i{background:#7665ef;box-shadow:0 0 0 3px rgba(118,101,239,.12)}
.table{min-width:1040px;table-layout:fixed}.table th:nth-child(1){width:150px}.table th:nth-child(2){width:190px}.table th:nth-child(3){width:130px}.table th:nth-child(4){width:92px}.table th:nth-child(5){width:90px}.table th:nth-child(6){width:130px}.table th:nth-child(7){width:108px}
.issuer-person{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:0;text-align:left}.issuer-person>span:last-child{display:grid;gap:2px;min-width:0}.issuer-person b{max-width:78px;overflow:hidden;color:#303850;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.issuer-person small{color:#9aa2b5;font-size:9px;font-weight:700;letter-spacing:.2px}
.issuer-name-link{display:inline-flex;align-items:center;max-width:100%;margin:0;padding:0;border:0;border-radius:5px;background:transparent;color:inherit;font:inherit;line-height:1;cursor:pointer}.issuer-name-link .styled-username{max-width:78px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.issuer-name-link:hover .styled-username{text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:3px}.issuer-name-link:focus-visible{outline:3px solid color-mix(in srgb,var(--primary) 28%,transparent);outline-offset:3px}
.issuer-avatar{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;overflow:hidden;border:3px solid #fff;border-radius:11px;background:linear-gradient(135deg,#8170f7,#5ca9dc);color:#fff;box-shadow:0 4px 12px rgba(81,78,164,.18);font-size:12px;font-weight:900}.issuer-avatar img{width:100%;height:100%;object-fit:cover}
.ticket-row.operator-group-start td{border-top:2px solid #ddd8fb}.ticket-row.operator-group-start{box-shadow:inset 0 6px 0 #fbfaff}
.table .row-actions{overflow:visible}.table .row-action{position:relative;width:36px!important;height:36px;min-height:36px;padding:0;border-radius:11px}.table .row-action svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.table .row-action.view{border-color:#d8d2ff;background:linear-gradient(145deg,#f9f7ff,#eeeaff);color:#6252d2;box-shadow:0 5px 13px rgba(94,78,190,.1)}.table .row-action.view:hover{border-color:#9f92ef;background:linear-gradient(145deg,#f2efff,#e5dfff);color:#4936c4;box-shadow:0 7px 18px rgba(83,67,181,.16)}
.table .row-action.edit{border-color:#cfe5ef;background:linear-gradient(145deg,#f7fcff,#eaf7fb);color:#337e9f;box-shadow:0 5px 13px rgba(52,123,151,.08)}.table .row-action.edit:hover{border-color:#87c6dc;background:linear-gradient(145deg,#f0fbff,#ddf3fa);color:#236b8a;box-shadow:0 7px 18px rgba(48,118,145,.14)}
.table .row-action:after{content:attr(data-tooltip);position:absolute;left:50%;bottom:calc(100% + 8px);z-index:8;padding:6px 8px;border-radius:7px;background:#2f3143;color:#fff;box-shadow:0 8px 20px rgba(27,31,51,.18);font-size:9px;font-weight:800;line-height:1;opacity:0;pointer-events:none;transform:translate(-50%,4px);transition:opacity .14s ease,transform .14s ease;white-space:nowrap}.table .row-action:hover:after,.table .row-action:focus-visible:after{opacity:1;transform:translate(-50%,0)}
.table .ticket-button small{max-width:165px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){.ticket-scope-switch{order:3}.table .row-action{width:36px!important}}

/* Multi-editor assignment: compact selected state with an explicit checklist. */
.profile-multi-field,.account-multi-field,.multi-assignee-field{display:grid;gap:6px;color:#67728d;font-size:11px;font-weight:850}.multi-assignee-field>span em{color:#dc526d;font-style:normal}.editor-multi-picker{position:relative;min-width:0}.multi-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:43px;padding:5px 10px;border:1px solid #dce2ef;border-radius:11px;background:#fff;color:#303850;text-align:left;outline:0;transition:border-color .16s ease,box-shadow .16s ease}.multi-picker-trigger:hover,.editor-multi-picker.open .multi-picker-trigger{border-color:#a99df4}.multi-picker-trigger:focus-visible{border-color:#8877f6;box-shadow:0 0 0 4px rgba(112,92,242,.11)}.multi-picker-trigger>i{color:#7d84a0;font-style:normal}.multi-picker-placeholder{color:#9aa3b6;font-size:12px;font-weight:650}.multi-picker-chips{display:flex;align-items:center;gap:5px;min-width:0}.multi-picker-chips b,.multi-picker-chips em{max-width:92px;overflow:hidden;padding:4px 7px;border-radius:7px;background:#f0edff;color:#5c4dbc;font-size:10px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.multi-picker-chips em{background:#edf6fa;color:#377995}.multi-picker-trigger small{margin-left:auto;color:#9099ad;font-size:9px;white-space:nowrap}.multi-picker-panel{position:absolute;z-index:35;top:calc(100% + 7px);left:0;width:100%;min-width:250px;padding:9px;border:1px solid #dedaf3;border-radius:13px;background:#fff;box-shadow:0 18px 45px rgba(38,43,76,.18)}.multi-picker-head{display:flex;align-items:center;justify-content:space-between;padding:4px 4px 9px}.multi-picker-head b{color:#353c55;font-size:11px}.multi-picker-head small{color:#969fb2;font-size:9px}.multi-picker-options{display:grid;gap:5px;max-height:210px;overflow:auto}.multi-picker-option{display:grid;grid-template-columns:auto 30px minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px;border:1px solid transparent;border-radius:10px;background:#fafbfe;cursor:pointer;transition:background-color .14s ease,border-color .14s ease}.multi-picker-option:hover{border-color:#e1ddfa;background:#f8f6ff}.multi-picker-option:has(input:checked){border-color:#d5cff9;background:#f5f2ff}.multi-picker-option input{width:14px;height:14px;margin:0;accent-color:#705cf2}.multi-picker-avatar{display:grid;place-items:center;width:30px;height:30px;overflow:hidden;border-radius:9px;background:linear-gradient(135deg,#8e7df7,#61a8db);color:#fff;font-size:10px;font-weight:900}.multi-picker-avatar img{width:100%;height:100%;object-fit:cover}.multi-picker-option>span{display:grid;gap:2px;min-width:0}.multi-picker-option>span b{overflow:hidden;color:#353c55;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.multi-picker-option>span small{color:#949daf;font-size:9px}.multi-picker-option>i{color:#705cf2;font-size:10px;font-style:normal;opacity:0}.multi-picker-option:has(input:checked)>i{opacity:1}.multi-picker-empty{margin:10px;color:#9099ad;text-align:center;font-size:11px}.account-multi-field{min-width:0}.account-create-v2 .account-multi-field{align-self:end}.member-controls-v2 .account-multi-field{padding:0}.profile-compact-form .profile-multi-field{margin-top:1px}
.assignee-stack{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}.assignee-stack span,.assignee-stack em{padding:4px 6px;border-radius:7px;background:#f1efff;color:#5d50b1;font-size:9px;font-style:normal;font-weight:850}.assignee-stack em{background:#edf6fa;color:#377995}.unassigned-text{color:#9aa3b6;font-size:10px}

/* Smaller table actions: visually distinct without dominating the row. */
.table .row-action{width:29px!important;height:29px;min-height:29px;border-radius:9px;box-shadow:none!important}.table .row-action+.row-action{margin-left:4px}.table .row-action svg{width:14px;height:14px;stroke-width:1.9}.table .row-action:hover{box-shadow:0 4px 10px rgba(73,70,125,.1)!important}.table .row-action:after{bottom:calc(100% + 6px);padding:5px 7px}
@media(max-width:760px){.multi-picker-panel{min-width:220px}.table .row-action{width:29px!important}}

/* Unified three-state workflow, compact assignee identities and clean picker summaries. */
.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.ticket-status-segment{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid #e0e3ed;border-radius:11px;background:#f4f5f9;box-shadow:inset 0 1px 2px rgba(43,51,84,.03)}
.ticket-status-segment button{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#7a8399;font-size:11px;font-weight:850;transition:background-color .15s ease,color .15s ease,box-shadow .15s ease}
.ticket-status-segment button i{width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:#b5bbca}
.ticket-status-segment button:hover{color:#4c546d;background:rgba(255,255,255,.58)}
.ticket-status-segment button.active{background:#fff;box-shadow:0 3px 10px rgba(62,67,105,.09)}
.ticket-status-segment button.active.open{color:#a82d59}.ticket-status-segment button.active.open i{background:#d94675;box-shadow:0 0 0 3px rgba(217,70,117,.16)}
.ticket-status-segment button.active.progress{color:#1f3fa6}.ticket-status-segment button.active.progress i{background:#244fb5;box-shadow:0 0 0 3px rgba(36,79,181,.18)}
.ticket-status-segment button.active.done{color:#24825d}.ticket-status-segment button.active.done i{background:#35b47d;box-shadow:0 0 0 3px rgba(53,180,125,.13)}
.ticket-status-segment .status-readonly{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 10px;border-radius:8px;color:#7a8399;font-size:11px;font-weight:850}.ticket-status-segment .status-readonly i{width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:#b5bbca}.ticket-status-segment .status-readonly.active{background:#fff;box-shadow:0 3px 10px rgba(62,67,105,.09)}.ticket-status-segment .status-readonly.active.open{color:#a82d59}.ticket-status-segment .status-readonly.active.open i{background:#d94675;box-shadow:0 0 0 3px rgba(217,70,117,.16)}.ticket-status-segment .status-readonly.active.progress{color:#1f3fa6}.ticket-status-segment .status-readonly.active.progress i{background:#244fb5;box-shadow:0 0 0 3px rgba(36,79,181,.18)}.ticket-status-segment .status-readonly.active.done{color:#24825d}.ticket-status-segment .status-readonly.active.done i{background:#35b47d;box-shadow:0 0 0 3px rgba(53,180,125,.13)}
.ticket-status-segment button:focus-visible{outline:3px solid rgba(112,92,242,.16);outline-offset:1px}.ticket-status-segment button:disabled{cursor:wait;opacity:.55}

.assignee-person-cell{display:inline-flex;align-items:center;justify-content:center;gap:9px;max-width:100%}.assignee-avatars{display:flex;align-items:center;padding-left:7px}.assignee-avatar{display:grid;place-items:center;width:29px;height:29px;flex:0 0 29px;margin-left:-7px;overflow:hidden;border:2px solid #fff;border-radius:9px;background:linear-gradient(135deg,#8170f7,#5ca9dc);color:#fff;box-shadow:0 3px 9px rgba(81,78,164,.16);font-size:10px;font-style:normal;font-weight:900}.assignee-avatar img{display:block;width:100%;height:100%;object-fit:cover}.assignee-names{display:grid;gap:1px;min-width:0;text-align:left}.assignee-names b{max-width:86px;overflow:hidden;color:#303850;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.assignee-names small{color:#9aa2b5;font-size:9px;font-weight:700;white-space:nowrap}

.multi-picker-selection{display:flex;align-items:center;gap:8px;min-width:0}.multi-picker-selected-avatars{display:flex;align-items:center;padding-left:6px}.multi-picker-selected-avatars i{display:grid;place-items:center;width:25px;height:25px;flex:0 0 25px;margin-left:-6px;border:2px solid #fff;border-radius:8px;background:linear-gradient(135deg,#8976f4,#62a4dd);color:#fff;box-shadow:0 2px 7px rgba(79,75,154,.14);font-size:9px;font-style:normal;font-weight:900}.multi-picker-selection>b{max-width:155px;overflow:hidden;color:#3d4560;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.multi-picker-trigger>i{margin-left:auto;flex:0 0 auto}
.multi-picker-selected-avatar{display:grid;place-items:center;width:27px;height:27px;flex:0 0 27px;margin-left:-6px;overflow:hidden;border:2px solid #fff;border-radius:9px;background:linear-gradient(135deg,#8976f4,#62a4dd);color:#fff;box-shadow:0 3px 9px rgba(79,75,154,.16);font-size:9px;font-weight:900}.multi-picker-selected-avatar img{display:block;width:100%;height:100%;object-fit:cover}.multi-picker-selected-avatar.has-image{background:#fff}
.locked-operator-avatar{display:grid;place-items:center;width:29px;height:29px;flex:0 0 29px;overflow:hidden;border:2px solid #fff;border-radius:9px;background:linear-gradient(135deg,#8170f7,#5ca9dc);color:#fff;box-shadow:0 3px 9px rgba(81,78,164,.16);font-size:10px;font-weight:900}.locked-operator-avatar img{display:block;width:100%;height:100%;object-fit:cover}

/* Compact operator brief: edits float over the form and never increase modal height. */
.ticket-brief{position:relative;z-index:19;flex:0 0 auto;margin-top:11px}
.ticket-brief-trigger{display:grid;grid-template-columns:34px minmax(0,1fr) auto 16px;align-items:center;gap:10px;width:100%;min-height:48px;padding:7px 11px;border:1px solid #e0e3ef;border-radius:13px;background:linear-gradient(135deg,#fbfcff,#f7f6ff);color:#3c445f;text-align:left;transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease}
.ticket-brief-trigger:hover,.ticket-brief.open .ticket-brief-trigger{border-color:#b9aef7;background:linear-gradient(135deg,#fff,#f5f2ff);box-shadow:0 6px 18px rgba(74,67,132,.08)}
.ticket-brief-trigger:focus-visible{outline:3px solid rgba(112,92,242,.16);outline-offset:2px}
.ticket-brief-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:linear-gradient(135deg,#8d7af5,#65a1e1);color:#fff;box-shadow:0 5px 13px rgba(94,78,190,.15);font-size:13px;font-weight:900}
.ticket-brief-copy{display:grid;gap:2px;min-width:0}.ticket-brief-copy b{font-size:12px}.ticket-brief-copy small{overflow:hidden;color:#8a93a8;font-size:10px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.ticket-brief-trigger em{padding:5px 8px;border:1px solid #dfdaf8;border-radius:8px;background:#f6f3ff;color:#6253bf;font-size:10px;font-style:normal;font-weight:850;white-space:nowrap}.ticket-brief.has-content .ticket-brief-trigger em{border-color:#cde8dc;background:#f1faf6;color:#27825e}.ticket-brief-trigger>i{color:#8b83ba;font-size:10px;font-style:normal;transition:transform .16s ease}.ticket-brief.open .ticket-brief-trigger>i{transform:rotate(180deg)}
.ticket-brief-editor{position:absolute;z-index:42;top:calc(100% + 7px);right:0;left:0;padding:14px;border:1px solid #d9d3f5;border-radius:14px;background:rgba(255,255,255,.98);box-shadow:0 22px 55px rgba(35,40,73,.2);backdrop-filter:blur(14px)}
.ticket-brief-editor header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:10px}.ticket-brief-editor header>div{display:grid;gap:3px}.ticket-brief-editor header b{color:#343b55;font-size:13px}.ticket-brief-editor header small{color:#8d96aa;font-size:10px;line-height:1.45}.ticket-brief-editor header button{display:grid;place-items:center;width:27px;height:27px;flex:0 0 auto;padding:0;border:0;border-radius:8px;background:#f2f3f8;color:#777f94;font-size:17px}.ticket-brief-editor header button:hover{background:#ebe8fb;color:#5d4ec1}
.ticket-brief-editor textarea{display:block;width:100%;height:82px;min-height:82px;padding:10px 11px;border:1px solid #dfe3ef;border-radius:11px;outline:0;background:#fbfcff;color:#353d55;resize:none;font-family:inherit;font-size:12px;line-height:1.55}.ticket-brief-editor textarea::placeholder{color:#a4adbf}.ticket-brief-editor textarea:focus{border-color:#8e7bf1;background:#fff;box-shadow:0 0 0 4px rgba(112,92,242,.1)}
.ticket-brief-editor footer{display:flex;align-items:center;justify-content:space-between;margin-top:9px}.ticket-brief-editor footer>span{color:#98a0b2;font-size:9px}.ticket-brief-editor footer>span b{color:#6962a8}.ticket-brief-editor footer button{min-height:30px;padding:0 11px;font-size:10px}
.ticket-detail-drawer .detail-description-section .detail-text{border-color:#e0dcf8;background:linear-gradient(135deg,#fbfaff,#f7f9ff)}

@media(max-height:850px){.batch-ticket-form .ticket-brief{margin-top:7px}.ticket-brief-trigger{min-height:42px;padding:5px 9px}.ticket-brief-icon{width:29px;height:29px}.ticket-brief-editor{top:calc(100% + 5px);padding:11px}.ticket-brief-editor textarea{height:72px;min-height:72px}}
@media(max-width:680px){.ticket-brief-trigger{grid-template-columns:32px minmax(0,1fr) 16px}.ticket-brief-trigger em{display:none}.ticket-brief-editor{padding:12px}.ticket-brief-editor header small{max-width:250px}.ticket-brief-editor textarea{height:76px;min-height:76px}}

/* Sidecar brief editor: detached from the form so video fields are never covered. */
.ticket-brief-editor{position:fixed;top:50%;right:auto;left:50%;width:min(520px,calc(100vw - 32px));transform:translate(-50%,-50%);padding:16px}
@media(min-width:1280px){.ticket-brief-editor{right:18px;left:auto;width:min(320px,calc((100vw - 720px)/2 - 22px));transform:translateY(-50%)}}

/* Editorial notes use distinct semantic surfaces and stronger typography. */
.ticket-detail-drawer .detail-description-section .detail-section-title h3{color:#5d43b6}.ticket-detail-drawer .detail-description-section .detail-text{padding:13px 15px;border:1px solid #d9d1fa;border-left:4px solid #8069e8;background:linear-gradient(135deg,#f4f0ff,#faf8ff);color:#4e3d85;font-size:12px;font-weight:800;line-height:1.75}
.detail-video-card.compact .detail-video-top{grid-template-columns:29px minmax(0,1fr) auto}.detail-video-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px}.detail-video-card.compact .detail-video-actions button{min-width:auto;padding:6px 8px}.detail-video-card.compact .detail-video-actions .video-copy-one{border-color:#c9e6e3;background:#effaf8;color:#287b72}.detail-video-card.compact .detail-video-actions .video-copy-one:hover{border-color:#83c9c2;background:#e4f7f4;color:#17685f}.detail-video-card.compact .detail-video-actions em{padding:0 4px}
.detail-video-card.compact .detail-video-note-text{border:1px solid #cde9e5;border-left:4px solid #3fb5a6;background:linear-gradient(135deg,#eaf9f6,#f5fcfb);color:#236d66;font-size:11px;font-weight:750;line-height:1.7}.detail-video-card.compact .detail-video-note-text b{display:block;margin-bottom:3px;color:#158275;font-size:9px;font-weight:900;letter-spacing:.06em}

@media(max-width:760px){.detail-video-card.compact .detail-video-top{grid-template-columns:29px minmax(0,1fr)}.detail-video-actions{grid-column:2;justify-content:flex-start}.detail-video-card.compact .detail-video-note-text{margin-left:38px}}

/* Inline operator brief: prominent, compact and part of the normal form flow. */
.ticket-brief-inline{display:grid;grid-template-columns:145px minmax(0,1fr);align-items:stretch;gap:11px;flex:0 0 auto;margin-top:10px;padding:9px 10px;border:1px solid #b9adf7;border-left:4px solid #745ee6;border-radius:13px;background:linear-gradient(135deg,#f2efff,#faf9ff);box-shadow:0 5px 15px rgba(91,72,181,.07)}
.ticket-brief-heading{display:flex;align-items:center;gap:9px;min-width:0}.ticket-brief-heading>span{display:grid;place-items:center;width:31px;height:31px;flex:0 0 31px;border-radius:10px;background:linear-gradient(135deg,#8068ec,#627fe9);color:#fff;box-shadow:0 5px 12px rgba(91,72,181,.18);font-size:12px;font-weight:900}.ticket-brief-heading>div{display:grid;gap:2px;min-width:0}.ticket-brief-heading b{color:#4c3a99;font-size:12px;font-weight:900}.ticket-brief-heading small{overflow:hidden;color:#7e72ab;font-size:9px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}
.ticket-brief-field{position:relative;display:block;min-width:0}.ticket-brief-field textarea{display:block;width:100%;height:46px;min-height:46px;padding:7px 60px 7px 11px;border:1px solid #cfc7f4;border-radius:10px;outline:0;background:#fff;color:#382f5f;resize:none;font-family:inherit;font-size:11px;font-weight:750;line-height:1.45}.ticket-brief-field textarea::placeholder{color:#9d97b7;font-weight:650}.ticket-brief-field textarea:focus{border-color:#745ee6;box-shadow:0 0 0 4px rgba(116,94,230,.12)}.ticket-brief-field>i{position:absolute;right:8px;top:50%;padding:4px 7px;border-radius:7px;background:#f0edff;color:#6b59c7;font-size:9px;font-style:normal;font-weight:900;transform:translateY(-50%)}.ticket-brief-inline.has-content .ticket-brief-field>i{background:#e8f7f1;color:#23805c}

/* Video entry is input-first: the editable field is always visible in one row. */
.batch-video-list{align-content:start;gap:8px}.video-card.compact-entry{padding:9px 10px;border-color:#d9deeb;border-radius:13px;background:linear-gradient(145deg,#fff,#fbfcff)}.video-card.compact-entry:focus-within{border-color:#8f7cf0;box-shadow:0 0 0 4px rgba(112,92,242,.09)}

/* Keep add-row actions in the section header so the input list never sits behind a toolbar. */
.batch-ticket-form .video-section-head{display:flex;align-items:center;gap:10px;padding-bottom:9px}
.batch-ticket-form .video-section-head>div:first-child{min-width:0;margin-right:auto}
.batch-ticket-form .video-head-toolbar{position:static;z-index:auto;display:flex;grid-template-columns:none;align-items:center;gap:7px;flex:0 0 auto;margin:0;padding:0;border:0;background:transparent;box-shadow:none;backdrop-filter:none}
.batch-ticket-form .video-head-toolbar label{display:flex;grid-template-columns:none;align-items:center;gap:5px;white-space:nowrap}
.batch-ticket-form .video-head-toolbar input{width:48px;height:34px}
.batch-ticket-form .video-head-toolbar button{width:auto;height:34px;padding:0 10px;white-space:nowrap}
.batch-ticket-form .batch-video-list{min-height:68px;padding-top:7px}
@media(max-height:850px){.batch-ticket-form .batch-video-list{min-height:58px}.batch-ticket-form .video-head-toolbar input,.batch-ticket-form .video-head-toolbar button{height:31px}}
@media(max-width:680px){.batch-ticket-form .video-section-head{flex-wrap:wrap}.batch-ticket-form .video-section-head>div:first-child{width:100%}.batch-ticket-form .video-head-toolbar{margin-left:auto}}
.video-compact-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto 30px;align-items:center;gap:8px}.video-compact-row .video-index{width:32px;height:32px;border-radius:10px}.video-compact-row .video-url-field{height:46px;min-height:46px;border:1px solid #c8cef0;border-radius:11px;background:#fff;box-shadow:inset 0 1px 2px rgba(38,45,80,.025)}.video-compact-row .video-url-field:focus-within{border-color:#7964eb;box-shadow:0 0 0 3px rgba(112,92,242,.1)}.video-compact-row .video-url-field>span{color:#7665df;font-size:14px;font-weight:900}.video-compact-row .video-url-field input{min-height:44px;color:#303850;font-family:inherit;font-size:12px;font-weight:750}.video-compact-row .video-url-field input::placeholder{color:#969fb2;font-weight:650}
.video-card.compact-entry.is-duplicate{border-color:#f2a8b6;background:linear-gradient(145deg,#fffafb,#fff4f6)}.video-card.compact-entry.is-duplicate .video-url-field{border-color:#e27a91;background:#fff}.video-card.compact-entry.is-duplicate .video-index{background:linear-gradient(135deg,#ef6d84,#cf4662);box-shadow:0 5px 12px rgba(207,70,98,.2)}.video-duplicate-hint{margin:5px 0 0 42px;color:#bb3b55;font-size:10px;font-weight:850;line-height:1.3}.video-duplicate-hint:before{content:'!';display:inline-grid;place-items:center;width:14px;height:14px;margin-right:5px;border-radius:50%;background:#ffe4e9;color:#c53b57;font-size:9px;font-weight:900;vertical-align:-1px}
.detail-note-reminder{display:inline-flex;align-items:center;gap:5px;height:27px;padding:0 9px;border:1px solid #f0c57e;border-radius:9px;background:#fff7e9;color:#a96108;font-size:10px;font-weight:900;white-space:nowrap}.detail-note-reminder i{display:grid;place-items:center;width:14px;height:14px;border-radius:50%;background:#f0a72e;color:#fff;font-size:9px;font-style:normal;line-height:1}.system-notification-button{white-space:nowrap}
.workflow-videos .video-compact-row .note-toggle{min-width:82px;min-height:46px;height:46px;padding:0 10px}.video-compact-row .remove-video{display:grid;place-items:center;width:30px;height:30px;margin:0;padding:0;border:1px solid #e5e7ef;border-radius:9px;background:#f6f7fb;color:#9098aa;font-size:16px}.video-compact-row .remove-video:hover{border-color:#efc9d2;background:#fff3f6;color:#c84f6b}.video-card.compact-entry .video-note-panel{margin-top:8px}

@media(max-height:850px){.ticket-brief-inline{margin-top:7px;padding:7px 9px}.ticket-brief-field textarea{height:42px;min-height:42px}.video-card.compact-entry{padding:7px 8px}.video-compact-row .video-url-field,.workflow-videos .video-compact-row .note-toggle{height:42px;min-height:42px}.video-compact-row .video-url-field input{min-height:40px}}
@media(max-width:680px){.ticket-brief-inline{grid-template-columns:1fr}.ticket-brief-heading small{white-space:normal}.ticket-brief-field textarea{height:54px;min-height:54px}.video-compact-row{grid-template-columns:32px minmax(0,1fr) 30px}.workflow-videos .video-compact-row .note-toggle{grid-column:2/4;width:100%;height:38px;min-height:38px}.video-compact-row .remove-video{grid-column:3;grid-row:1}.video-card.compact-entry .video-note-panel{margin-top:7px}}

.operator-filter-avatar{overflow:hidden;padding:0}.operator-filter-avatar img{display:block;width:100%;height:100%;object-fit:cover}

@media(max-width:1040px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.detail-status-row{align-items:flex-start;flex-direction:column}.ticket-status-segment{width:100%}.ticket-status-segment button{flex:1;justify-content:center;padding:0 6px}.assignee-names b{max-width:70px}}

/* Compact ticket basics reserve enough height for a complete video row plus its note. */
.batch-ticket-form>.muted{margin-bottom:4px}
.batch-ticket-form .ticket-basics>.field{margin-top:7px;gap:5px}
.batch-ticket-form .shop-memory-field{position:relative}
.batch-ticket-form .shop-memory-field>small{position:absolute;top:0;right:0;display:block;max-width:72%;min-height:0;overflow:hidden;color:#7869c9;font-size:10px;font-weight:750;line-height:18px;text-overflow:ellipsis;white-space:nowrap}
.batch-ticket-form .benchmark-field{margin-top:3px}
.batch-ticket-form .benchmark-field>small{display:none}
.batch-ticket-form .batch-videos{flex-basis:300px;min-height:248px;margin-top:10px}
.batch-ticket-form .batch-video-list{min-height:174px;padding-top:7px;scroll-padding-top:7px;overflow-anchor:none}
.batch-ticket-form .batch-videos>.video-section-head{position:relative;z-index:1;background:inherit}
.batch-ticket-form .video-card.note-open{scroll-margin-top:7px}
.batch-ticket-form .workflow-videos .video-note-panel textarea{height:48px;min-height:48px;resize:none}
.ticket-readonly-editor .table .row-action.edit{display:none!important}

@media(max-height:850px){
  .batch-ticket-form .ticket-basics>.field{margin-top:5px}
  .batch-ticket-form .benchmark-field{margin-top:1px}
  .batch-ticket-form .batch-videos{flex-basis:235px;min-height:220px;margin-top:7px}
  .batch-ticket-form .batch-video-list{min-height:154px}
  .batch-ticket-form .workflow-videos .video-note-panel textarea{height:44px;min-height:44px}
}
@media(max-width:680px){
  .batch-ticket-form .shop-memory-field>small{position:static;max-width:none;margin-top:0}
  .batch-ticket-form .batch-videos{min-height:190px}
  .batch-ticket-form .batch-video-list{min-height:145px}
}

/* Operator notes use cyan information color with a warm amber accent. */
.ticket-detail-drawer .detail-description-section{padding:14px;border:1px solid #9ee3df;border-radius:15px;background:linear-gradient(135deg,#e9fbf9 0%,#f8fffe 68%,#fff7e7 100%);box-shadow:0 10px 26px rgba(21,151,145,.09)}
.ticket-detail-drawer .detail-description-section .detail-section-title{margin-bottom:9px}
.ticket-detail-drawer .detail-description-section .detail-section-title h3{color:#087f82;font-weight:900}
.ticket-detail-drawer .detail-description-section .detail-section-title span{color:#bd7412}
.ticket-detail-drawer .detail-description-section .detail-text{padding:13px 15px;border:1px solid #b7e9e5;border-left:5px solid #f0a431;border-radius:11px;background:rgba(255,255,255,.82);color:#0d666a;font-size:13px;font-weight:850;line-height:1.8;overflow-wrap:anywhere;word-break:break-word;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}

/* System feedback stays visible without covering form actions. */
.toast{position:fixed;z-index:80;top:0;right:0;bottom:auto;left:auto;max-width:min(440px,calc(100vw - 16px));transform:none;text-align:center}

/* Wide ticket composer: keep the whole form together while giving video entry its own right column. */
@media(min-width:981px){
  .batch-ticket-form{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);grid-template-rows:auto auto auto auto auto minmax(0,1fr) auto auto;column-gap:24px;align-content:stretch;width:min(1080px,calc(100vw - 32px))}
  .batch-ticket-form>.eyebrow{grid-column:1;grid-row:1}
  .batch-ticket-form>h2{grid-column:1;grid-row:2}
  .batch-ticket-form>.muted{grid-column:1;grid-row:3}
  .batch-ticket-form .ticket-basics{grid-column:1;grid-row:4}
  .batch-ticket-form .ticket-brief-inline{grid-column:1;grid-row:5}
  .batch-ticket-form .workflow-assignment{grid-column:1;grid-row:6;align-self:start;min-height:0}
  .batch-ticket-form .batch-videos{grid-column:2;grid-row:1 / span 6;min-height:0;height:100%;margin-top:0}
  .batch-ticket-form>.form-actions{grid-column:1/-1;grid-row:7}
  .batch-ticket-form>.error{grid-column:1/-1;grid-row:8}
}
@media(max-width:980px){.batch-ticket-form{width:min(720px,100%)}.batch-ticket-form .batch-videos{grid-column:auto;grid-row:auto}}

/* Desktop sidebar collapse keeps navigation available as an icon rail. */
.app-shell{transition:grid-template-columns .24s cubic-bezier(.2,.75,.25,1)}
.sidebar{z-index:10;position:relative;overflow:visible;transition:padding .24s cubic-bezier(.2,.75,.25,1)}
.sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.sidebar-head .logo{min-width:0}
.sidebar-toggle{position:absolute;z-index:30;top:28px;right:-14px;display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid #dcdff0;border-radius:9px;background:#fff;color:#6458b7;box-shadow:0 6px 16px rgba(44,52,92,.15);touch-action:manipulation;line-height:1;transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease,color .18s ease,transform .18s ease}.sidebar-toggle svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.35;stroke-linecap:round;stroke-linejoin:round}
.sidebar-toggle:hover{border-color:#bcb4f1;background:#f7f5ff;color:#5144b1;box-shadow:0 8px 20px rgba(69,61,148,.2)}
.sidebar .nav button{display:grid;grid-template-columns:35px minmax(0,1fr);align-items:center;column-gap:10px;min-height:44px;padding:4px 8px 4px 0;text-align:left}
.sidebar .nav button>i{display:grid;place-items:center;width:35px;height:35px;margin:0;font-size:16px;line-height:1}
.sidebar .nav-group .permission-toggle{grid-template-columns:35px minmax(0,1fr) 16px;width:100%}
.sidebar .nav-sub button{grid-template-columns:35px minmax(0,1fr)}
.sidebar .brand-text,.sidebar .brand-sub,.sidebar .nav span,.sidebar .sidebar-status span:last-child,.sidebar .permission-toggle b{transition:opacity .14s ease}
.app-shell.sidebar-collapsed{grid-template-columns:74px minmax(0,1fr)}
.sidebar-collapsed .sidebar{padding-right:9px;padding-left:9px}
.sidebar-collapsed .sidebar-head{justify-content:center}
.sidebar-collapsed .brand-text,.sidebar-collapsed .brand-sub,.sidebar-collapsed .nav span,.sidebar-collapsed .sidebar-status span:last-child,.sidebar-collapsed .permission-toggle b{display:none;opacity:0}
.sidebar-collapsed .logo{justify-content:center}
.sidebar-collapsed .nav button{display:grid;grid-template-columns:35px;place-content:center;place-items:center;width:48px;height:44px;margin:0 auto;padding:0;text-align:center}
.sidebar-collapsed .nav i{width:35px;height:35px;margin:0;font-size:17px}
.sidebar-collapsed .nav-group{display:block}
.sidebar-collapsed .nav-group.open .nav-sub{display:grid;gap:4px;margin:0;padding:0;border:0}
.sidebar-collapsed .sidebar-status{display:flex;justify-content:center;padding:12px 0}
.sidebar-collapsed .sidebar-status .live{margin:0}

/* A collapsed sidebar is a single, fixed icon rail. Keep every navigation level on the logo centerline. */
.sidebar-collapsed .sidebar-head,.sidebar-collapsed .sidebar-head .logo,.sidebar-collapsed .nav,.sidebar-collapsed .nav-group,.sidebar-collapsed .nav-sub{width:100%}
.sidebar-collapsed .sidebar-head .logo-mark{margin-right:auto;margin-left:auto}
.sidebar-collapsed .sidebar .nav button,.sidebar-collapsed .sidebar .nav-group .permission-toggle,.sidebar-collapsed .sidebar .nav-sub button{display:grid!important;grid-template-columns:35px!important;place-content:center!important;place-items:center!important;width:48px!important;min-width:48px!important;height:44px!important;min-height:44px!important;margin:0 auto!important;padding:0!important;column-gap:0!important;text-align:center!important}
.sidebar-collapsed .sidebar .nav button>i{grid-column:1!important;display:grid;place-items:center;width:35px!important;height:35px!important;margin:0!important}
.sidebar-collapsed .sidebar .nav button>span,.sidebar-collapsed .sidebar .nav-group .permission-toggle>b{display:none!important}
.sidebar-collapsed .sidebar .nav-group.open .nav-sub{width:100%;margin:4px 0 0!important;padding:0!important}

/* Saved controls use calm, compact states that remain legible in a dense tool UI. */
.system-notification-button{min-height:35px!important;padding:0 11px!important;border-radius:9px!important;font-size:12px!important;box-shadow:none!important}.system-notification-button[data-notification-state="on"]{border-color:#a9dccf!important;background:#effaf6!important;color:#237c5b!important}.system-notification-button[data-notification-state="blocked"]{border-color:#f0c786!important;background:#fff8eb!important;color:#9a620d!important}.system-notification-button[data-notification-state="off"]{border-color:#dfe4ed!important;background:#f8f9fc!important;color:#6e7890!important}.account-panel-toggle{min-height:31px!important;padding:0 7px 0 10px!important;border-color:#e0e5ee!important;border-radius:999px!important;background:#fff!important;color:#65708a!important;font-size:11px!important;font-weight:820!important;box-shadow:0 2px 7px rgba(65,76,113,.05)!important}.account-panel-toggle i{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#f0effa;color:#6559c1;font-size:12px!important}.account-panel-toggle:hover{border-color:#cfc8f4!important;background:#faf9ff!important;color:#5547ba!important;box-shadow:0 4px 10px rgba(83,72,177,.11)!important}.collapsible-account-panel.is-collapsed .account-panel-toggle{border-color:#d8d1f8!important;background:#f7f5ff!important;color:#5a4ec2!important}.sidebar-collapsed .sidebar-toggle{right:-22px}

/* The icon rail keeps the original breathing room below the logo. */
.sidebar-collapsed .nav{margin-top:24px}.sidebar-collapsed .sidebar-toggle{right:-14px}

/* Operator actions and video title inspection keep dense ticket data readable. */
.workspace-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px}.workspace-actions>.secondary{min-height:42px;padding:0 13px;white-space:nowrap}.detail-video-card.compact .detail-video-top{grid-template-columns:29px minmax(0,1fr) auto}.detail-video-overview .view-all-video-titles{min-height:30px;padding:0 10px;border:1px solid #d8d2f7;border-radius:9px;background:#f7f5ff;color:#5d50b7;font-size:10px;font-weight:850;white-space:nowrap}.detail-video-overview .view-all-video-titles:hover{border-color:#afa2ed;background:#efecff;color:#4e3fc0}.video-title-modal{width:min(500px,100%)}.video-title-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.video-title-modal-head h2{margin:0}.video-title-modal-head .muted{margin:6px 0 0}.video-title-modal-head .secondary{flex:0 0 auto;min-height:34px;padding:0 11px;font-size:11px;white-space:nowrap}.video-title-list{display:grid;gap:8px;max-height:min(50vh,430px);margin-top:17px;overflow:auto;padding:2px}.video-title-item{display:grid;grid-template-columns:31px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.video-title-item>span{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:linear-gradient(135deg,var(--primary),#6f8bf1);color:#fff;font-size:10px;font-weight:900}.video-title-item>div{display:grid;gap:3px;min-width:0}.video-title-item small{color:var(--muted);font-size:10px;font-weight:750}.video-title-item b{overflow:hidden;color:var(--text);font-size:13px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}.video-title-item b.title-truncated{cursor:help;text-decoration:underline dotted color-mix(in srgb,var(--primary) 52%,transparent);text-underline-offset:3px}.video-title-item b.empty{color:var(--muted);font-weight:700}.video-title-copy{min-height:31px;padding:0 9px;border:1px solid #c9e6e3;border-radius:8px;background:#effaf8;color:#287b72;font-size:10px;font-weight:850}.video-title-copy:hover:not(:disabled){border-color:#83c9c2;background:#e4f7f4;color:#17685f}.video-title-copy:disabled{cursor:not-allowed;opacity:.55}.video-title-rule{margin:12px 0 0;color:var(--muted);font-size:11px;line-height:1.65}.video-title-list-modal button{transform-origin:center;transition:transform .2s cubic-bezier(.2,.82,.2,1),box-shadow .2s ease,filter .2s ease,border-color .2s ease,background-color .2s ease}.video-title-list-modal button:not(:disabled):hover{transform:translate3d(0,-1px,0);filter:brightness(1.035)}.video-title-list-modal button:not(:disabled):active{transform:translate3d(0,-1px,0)!important}

/* Title management keeps source links intact while making copy output controllable. */
.video-title-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}.video-title-actions .secondary{min-width:auto}.video-title-filter{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;margin-top:12px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.video-title-filter label{display:grid;gap:5px;color:var(--muted);font-size:10px;font-weight:800}.video-title-filter input{width:100%;min-height:34px;padding:0 10px;border:1px solid var(--line);border-radius:9px;outline:0;background:var(--surface);color:var(--text);font:inherit}.video-title-filter input:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 14%,transparent)}.video-title-filter .ghost{min-height:34px;padding:0 10px;font-size:10px}.video-title-item{grid-template-columns:31px minmax(0,1fr) auto auto}.video-title-delete{min-height:31px;padding:0 9px;border:1px solid color-mix(in srgb,#d45d71 35%,var(--line));border-radius:8px;background:color-mix(in srgb,#d45d71 8%,var(--surface));color:#b64256;font-size:10px;font-weight:850}.video-title-delete:hover:not(:disabled){border-color:#d45d71;background:color-mix(in srgb,#d45d71 14%,var(--surface));color:#963346}.video-title-empty{margin:4px 0;padding:25px 15px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);text-align:center;font-size:12px}.detail-open .modal-layer{z-index:90}

/* Title copying is automatic; the optional term field opens as a dedicated row. */
.video-title-word-filter{display:grid;grid-template-columns:minmax(148px,.55fr) minmax(0,1.45fr);align-items:center;gap:12px;margin:12px 0 0;padding:11px 12px;border:1px solid color-mix(in srgb,var(--primary) 24%,var(--line));border-radius:12px;background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 7%,var(--surface)),var(--surface-2))}.video-title-word-filter[hidden]{display:none!important}.video-title-word-filter-copy{display:grid;gap:3px;min-width:0}.video-title-word-filter-copy b{color:var(--text);font-size:12px}.video-title-word-filter-copy small{color:var(--muted);font-size:10px;line-height:1.45}.video-title-word-filter input{width:100%;min-height:36px;padding:0 11px;border:1px solid var(--line);border-radius:9px;outline:0;background:var(--surface);color:var(--text);font:inherit;font-size:11px}.video-title-word-filter input:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 14%,transparent)}.video-title-actions #toggle-video-title-filter[aria-expanded="true"]{border-color:color-mix(in srgb,var(--primary) 46%,var(--line));background:color-mix(in srgb,var(--primary) 10%,var(--surface));color:var(--primary)}@media(max-width:760px){.video-title-word-filter{grid-template-columns:1fr}.video-title-word-filter input{width:100%}}

/* Composer utility rail fills the desktop breathing room without adding mobile rows. */
.composer-left-rail{min-width:0}
.composer-guidance{position:relative;display:grid;grid-template-columns:54px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;gap:10px 13px;min-height:0;overflow:hidden;padding:20px 19px;border:1px solid color-mix(in srgb,var(--primary) 18%,var(--line));border-radius:18px;background:radial-gradient(circle at 90% 16%,color-mix(in srgb,var(--primary) 13%,transparent),transparent 34%),linear-gradient(145deg,color-mix(in srgb,var(--primary) 7%,var(--surface)),var(--surface));box-shadow:0 12px 26px color-mix(in srgb,var(--primary) 7%,transparent)}
.composer-guidance:after{position:absolute;right:-34px;bottom:-52px;width:150px;height:150px;border:1px solid color-mix(in srgb,var(--primary) 16%,transparent);border-radius:50%;content:"";box-shadow:0 0 0 12px color-mix(in srgb,var(--primary) 5%,transparent),0 0 0 25px color-mix(in srgb,var(--primary) 3%,transparent);pointer-events:none}
.composer-guidance-orbit{position:relative;display:grid;place-items:center;width:52px;height:52px;grid-row:1 / span 2;border-radius:17px;background:linear-gradient(145deg,var(--primary),color-mix(in srgb,var(--primary) 55%,#67c8e8));box-shadow:0 9px 18px color-mix(in srgb,var(--primary) 22%,transparent);color:#fff}
.composer-guidance-orbit b{position:relative;z-index:1;font-size:21px;font-weight:800;line-height:1}.composer-guidance-orbit i{position:absolute;width:9px;height:9px;border:2px solid rgba(255,255,255,.76);border-radius:50%;animation:composer-orbit 4.8s linear infinite}.composer-guidance-orbit i:nth-child(1){top:8px;right:9px}.composer-guidance-orbit i:nth-child(2){right:6px;bottom:10px;width:6px;height:6px;animation-delay:-1.6s}.composer-guidance-orbit i:nth-child(3){bottom:8px;left:9px;width:5px;height:5px;animation-delay:-3.1s}.composer-guidance-copy{position:relative;z-index:1;min-width:0}.composer-guidance-copy .eyebrow{margin:0 0 4px;color:var(--primary);font-size:9px;letter-spacing:.12em}.composer-guidance-copy h3{margin:0;color:var(--text);font-size:16px;line-height:1.3}.composer-guidance-copy>p:last-child{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.6}.composer-guidance-steps{position:relative;z-index:1;display:flex;grid-column:2;gap:7px;flex-wrap:wrap}.composer-guidance-steps span{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid color-mix(in srgb,var(--primary) 14%,var(--line));border-radius:99px;background:color-mix(in srgb,var(--surface) 76%,transparent);color:var(--muted);font-size:10px;font-weight:800}.composer-guidance-steps b{color:var(--primary);font-size:9px;letter-spacing:.04em}@keyframes composer-orbit{0%{transform:translate3d(0,0,0);opacity:.7}50%{transform:translate3d(-3px,3px,0);opacity:1}100%{transform:translate3d(0,0,0);opacity:.7}}
@media(min-width:981px){.batch-ticket-form .composer-left-rail{grid-column:1;grid-row:6;display:grid;grid-template-rows:auto minmax(0,1fr);align-self:stretch;gap:14px;min-height:0}.batch-ticket-form .composer-left-rail .workflow-assignment{grid-column:auto;grid-row:auto;margin-top:0}.batch-ticket-form .composer-left-rail .composer-guidance{grid-column:auto;grid-row:auto}}
@media(max-width:980px){.batch-ticket-form .composer-left-rail{display:contents}.batch-ticket-form .composer-left-rail .workflow-assignment,.batch-ticket-form .composer-left-rail .composer-guidance{grid-column:auto;grid-row:auto}.batch-ticket-form .composer-guidance{margin-top:14px}}
@media(max-width:680px){.batch-ticket-form .composer-guidance{display:none}}
@media(prefers-reduced-motion:reduce){.composer-guidance-orbit i{animation:none}}

/* Small ambient player: opt-in audio, no autoplay, and a calm record-like control. */
.composer-guidance-player{position:relative;z-index:1;display:flex;grid-column:1/-1;align-items:center;gap:7px;margin-top:2px}.guidance-play,.guidance-next{display:inline-flex;align-items:center;justify-content:center;min-height:32px;border:1px solid color-mix(in srgb,var(--primary) 17%,var(--line));border-radius:10px;background:color-mix(in srgb,var(--surface) 78%,transparent);color:var(--text);font:inherit;font-size:10px;font-weight:850;transition:border-color .18s ease,background-color .18s ease,transform .18s ease,box-shadow .18s ease}.guidance-play{min-width:0;flex:1;justify-content:flex-start;gap:7px;padding:0 10px}.guidance-next{width:32px;padding:0;color:var(--primary);font-size:16px}.guidance-play:hover,.guidance-next:hover{border-color:color-mix(in srgb,var(--primary) 48%,var(--line));background:color-mix(in srgb,var(--primary) 8%,var(--surface));box-shadow:0 5px 12px color-mix(in srgb,var(--primary) 11%,transparent);transform:translateY(-1px)}.guidance-play:active,.guidance-next:active{transform:translateY(0)}.guidance-play-icon{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--primary);color:#fff;font-size:8px;line-height:1}.is-playing .guidance-play-icon{animation:guidance-record-pulse 1.5s ease-in-out infinite}.guidance-next{font-size:0}.guidance-next:before{content:"↻";font-size:16px}@keyframes guidance-record-pulse{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--primary) 25%,transparent)}50%{box-shadow:0 0 0 5px color-mix(in srgb,var(--primary) 0%,transparent)}}
@media(prefers-reduced-motion:reduce){.is-playing .guidance-play-icon{animation:none}.guidance-play,.guidance-next{transition:none}}

/* At normal desktop widths, keep all ten starter rows in the visible collection panel. */
@media(min-width:861px){.batch-ticket-form{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);grid-template-rows:auto auto auto auto auto minmax(0,1fr) auto auto;column-gap:24px;align-content:stretch;width:min(1080px,calc(100vw - 32px))}.batch-ticket-form>.eyebrow{grid-column:1;grid-row:1}.batch-ticket-form>h2{grid-column:1;grid-row:2}.batch-ticket-form>.muted{grid-column:1;grid-row:3}.batch-ticket-form .ticket-basics{grid-column:1;grid-row:4}.batch-ticket-form .ticket-brief-inline{grid-column:1;grid-row:5}.batch-ticket-form .composer-left-rail{grid-column:1;grid-row:6;display:grid;grid-template-rows:auto minmax(0,1fr);align-self:stretch;gap:14px;min-height:0}.batch-ticket-form .composer-left-rail .workflow-assignment,.batch-ticket-form .composer-left-rail .composer-guidance{grid-column:auto;grid-row:auto}.batch-ticket-form .composer-left-rail .workflow-assignment{margin-top:0}.batch-ticket-form .batch-videos{grid-column:2;grid-row:1 / span 6;min-height:0;height:100%;margin-top:0}.batch-ticket-form>.form-actions{grid-column:1/-1;grid-row:7}.batch-ticket-form>.error{grid-column:1/-1;grid-row:8}.batch-ticket-form .video-card.compact-entry{padding:6px 8px}.batch-ticket-form .batch-video-list{gap:6px;padding:5px 5px 8px 2px}.batch-ticket-form .video-compact-row{gap:6px}.batch-ticket-form .video-compact-row .video-url-field,.batch-ticket-form .workflow-videos .video-compact-row .note-toggle{height:42px;min-height:42px}.batch-ticket-form .video-compact-row .video-url-field input{min-height:40px}}
@media(max-width:860px){.batch-ticket-form{display:flex;width:min(720px,100%)}.batch-ticket-form .composer-left-rail{display:contents}.batch-ticket-form .composer-left-rail .workflow-assignment,.batch-ticket-form .composer-left-rail .composer-guidance{grid-column:auto;grid-row:auto}.batch-ticket-form .batch-videos{grid-column:auto;grid-row:auto;height:auto}.batch-ticket-form .composer-guidance{display:none}}

/* The record occupies the former breathing room; the collection height follows ten starter rows. */
@media(min-width:861px){.batch-ticket-form{height:auto;align-content:start}.batch-ticket-form .batch-videos{height:auto;align-self:stretch}.batch-ticket-form .batch-video-list{flex:0 0 auto;max-height:none;overflow-y:visible}.composer-guidance{grid-template-columns:minmax(0,1fr) 190px;grid-template-rows:auto minmax(0,1fr);align-content:stretch;gap:12px 18px;padding:20px}.composer-guidance-copy{grid-column:1;grid-row:1}.composer-guidance-steps{grid-column:1;grid-row:2;align-self:end}.composer-guidance-record{position:relative;z-index:1;display:flex;grid-column:2;grid-row:1 / span 2;align-items:center;justify-content:center;flex-direction:column;gap:10px;min-width:0;padding:4px}.vinyl-record{position:relative;display:grid;place-items:center;width:min(158px,100%);aspect-ratio:1;border:7px solid #222638;border-radius:50%;background:repeating-radial-gradient(circle at 50% 50%,#151827 0,#151827 2px,#24283b 3px,#111423 5px);box-shadow:0 13px 24px color-mix(in srgb,var(--primary) 18%,transparent),inset 0 0 0 2px rgba(255,255,255,.08)}.vinyl-record:before{position:absolute;inset:13%;border:1px solid rgba(255,255,255,.13);border-radius:50%;content:""}.vinyl-record:after{position:absolute;inset:26%;border:1px solid rgba(255,255,255,.11);border-radius:50%;content:""}.vinyl-record i{position:absolute;inset:7px;border:1px solid rgba(255,255,255,.12);border-radius:50%;animation:vinyl-spin 8s linear infinite}.vinyl-label{position:relative;z-index:1;display:grid;place-items:center;width:39%;aspect-ratio:1;border:4px solid #f3c36b;border-radius:50%;background:radial-gradient(circle at 35% 28%,#9d8bff,#5c67d9 56%,#313663);color:#fff;font-size:8px;font-weight:900;letter-spacing:.12em;line-height:1.5;text-align:center;box-shadow:0 0 0 2px rgba(255,255,255,.16)}.guidance-track-name{max-width:100%;overflow:hidden;color:var(--text);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.guidance-controls{display:flex;align-items:center;gap:8px}.guidance-controls button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid color-mix(in srgb,var(--primary) 18%,var(--line));border-radius:50%;background:color-mix(in srgb,var(--surface) 80%,transparent);color:var(--muted);font-size:10px;transition:transform .18s ease,border-color .18s ease,color .18s ease,background-color .18s ease}.guidance-controls button:hover{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 11%,var(--surface));color:var(--primary);transform:translateY(-1px)}.guidance-controls .guidance-play{width:38px;height:38px;border:0;background:var(--primary);color:#fff;box-shadow:0 8px 16px color-mix(in srgb,var(--primary) 25%,transparent)}.guidance-controls .guidance-play:hover{background:var(--primary);color:#fff}.guidance-controls .guidance-play-icon{width:auto;height:auto;background:transparent;font-size:10px}.composer-guidance-record .guidance-play{min-width:38px;flex:0 0 38px;padding:0}.composer-guidance-record .guidance-play-icon{display:grid}@keyframes vinyl-spin{to{transform:rotate(360deg)}}}
@media(min-width:861px) and (max-height:860px){.batch-ticket-form{height:calc(100dvh - 28px);align-content:stretch}.batch-ticket-form .batch-video-list{flex:1 1 auto;max-height:none;overflow-y:auto}.vinyl-record{width:min(126px,100%)}}
@media(max-width:860px){.composer-guidance{display:none}}
@media(prefers-reduced-motion:reduce){.vinyl-record i{animation:none}.guidance-controls button{transition:none}}

/* Operator selection keeps the native dropdown behavior while showing the selected avatar. */
.operator-avatar-field{position:relative}.operator-avatar-display{display:flex;align-items:center;gap:8px;height:43px;padding:0 12px;border:1px solid #dce2ef;border-radius:11px;background:#fff;color:#303850}.operator-avatar-display b{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.operator-avatar-display>span:last-child{margin-left:auto;color:#7a849e;font-size:12px}.operator-avatar-display .operator-picker-avatar{width:28px;height:28px;border-radius:9px}.operator-picker-avatar img{display:block;width:100%;height:100%;object-fit:cover}.operator-avatar-select{position:absolute;z-index:2;top:25px;right:0;left:0;width:100%;height:43px!important;min-height:43px!important;padding:0!important;opacity:0;cursor:pointer}.operator-avatar-field:focus-within .operator-avatar-display{border-color:#8877f6;box-shadow:0 0 0 4px rgba(112,92,242,.12)}
.operator-picker-field>span{color:#67728d;font-size:11px;font-weight:850}.operator-picker-field>span em{color:#dc526d;font-style:normal}.operator-single-picker .multi-picker-panel{z-index:42}.operator-picker-option{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;padding:8px;border:1px solid transparent;border-radius:10px;background:#fafbfe;color:#353c55;text-align:left;cursor:pointer;transition:background-color .14s ease,border-color .14s ease}.operator-picker-option:hover{border-color:#e1ddfa;background:#f8f6ff}.operator-picker-option.selected{border-color:#d5cff9;background:#f5f2ff}.operator-picker-avatar{display:grid;place-items:center;width:30px;height:30px;overflow:hidden;border-radius:9px;background:linear-gradient(135deg,#8e7df7,#61a8db);color:#fff;font-size:10px;font-weight:900}.operator-picker-avatar img{width:100%;height:100%;object-fit:cover}.operator-picker-option>span{display:grid;gap:2px;min-width:0}.operator-picker-option>span b{overflow:hidden;color:#353c55;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.operator-picker-option>span small{color:#949daf;font-size:9px}.operator-picker-option>i{color:#705cf2;font-size:10px;font-style:normal;opacity:0}.operator-picker-option.selected>i{opacity:1}

/* Keep the two composer surfaces content-sized: ten rows define the video panel, not an empty grid track. */
@media(min-width:861px){.batch-ticket-form .batch-videos{align-self:start}.batch-ticket-form .composer-left-rail{align-self:start;grid-template-rows:auto auto}.batch-ticket-form .composer-left-rail .composer-guidance{align-self:start;height:auto;min-height:188px}.composer-guidance-record{gap:6px}.vinyl-record{width:min(116px,100%)}.guidance-controls{gap:6px}.guidance-controls button{width:28px;height:28px}.guidance-controls .guidance-play{width:34px;height:34px;min-width:34px;flex-basis:34px}}

/* Final record proportions: the card aligns with the ten-row collection without extra vertical air. */
@media(min-width:861px){.batch-ticket-form .composer-left-rail .composer-guidance{height:190px;min-height:190px;max-height:190px;padding:14px 16px}.composer-guidance-record{gap:4px}.vinyl-deck{position:relative;width:136px;height:105px;display:grid;place-items:center}.vinyl-record{position:absolute;right:4px;bottom:0;width:88px;height:88px;min-width:88px;border-width:5px}.vinyl-record i{animation:none}.composer-guidance-record.is-playing .vinyl-record i{animation:vinyl-spin 7s linear infinite}.vinyl-tonearm{position:absolute;z-index:2;top:1px;right:0;width:61px;height:80px;transform:rotate(9deg);transform-origin:top right}.tonearm-pivot{position:absolute;top:0;right:4px;width:11px;height:11px;border:3px solid #eef1f8;border-radius:50%;background:#828ba5;box-shadow:0 0 0 4px rgba(46,54,76,.28)}.tonearm-stick{position:absolute;top:8px;right:8px;width:4px;height:62px;border-radius:99px;background:linear-gradient(90deg,#fff,#c7ccda 55%,#7e879d);box-shadow:0 1px 2px rgba(20,25,40,.35);transform:rotate(-24deg);transform-origin:top center}.tonearm-head{position:absolute;right:27px;bottom:7px;width:13px;height:9px;border-radius:3px 5px 4px 3px;background:#f1f3f8;box-shadow:0 2px 2px rgba(25,31,48,.35);transform:rotate(28deg)}.tonearm-head:after{position:absolute;right:-3px;bottom:-3px;width:4px;height:5px;border-radius:0 0 2px 2px;background:#929bad;content:""}.vinyl-label{border-width:3px;font-size:7px}.guidance-track-name{font-size:10px}.guidance-controls{gap:5px}.guidance-controls button{width:26px;height:26px;font-size:9px}.guidance-controls .guidance-play{width:33px;height:33px;min-width:33px;flex-basis:33px}.guidance-controls .guidance-play-icon{font-size:9px}}
@media(min-width:861px) and (max-height:860px){.batch-ticket-form .composer-left-rail .composer-guidance{height:176px;min-height:176px;max-height:176px}.vinyl-deck{height:94px}.vinyl-record{width:78px;height:78px;min-width:78px}.vinyl-tonearm{transform:scale(.9) rotate(9deg);transform-origin:top right}}

/* Creator pulse: a fixed, compact turntable composition.  It deliberately does
   not borrow height from the ten-row reference list beside it. */
@media(min-width:861px){
  .batch-ticket-form .composer-left-rail .composer-guidance{height:168px;min-height:168px;max-height:168px;display:grid;grid-template-columns:minmax(0,1fr) 142px;grid-template-rows:1fr auto;gap:7px 12px;padding:13px 15px;align-items:center}
  .composer-guidance-copy{grid-column:1;grid-row:1;align-self:center}
  .composer-guidance-copy h3{font-size:15px}.composer-guidance-copy>p:last-child{max-width:280px;margin-top:3px;line-height:1.45}
  .composer-guidance-steps{grid-column:1;grid-row:2;gap:5px;align-self:end}.composer-guidance-steps span{padding:4px 7px}
  .composer-guidance-record{display:grid;grid-column:2;grid-row:1 / span 2;grid-template-rows:86px 13px 31px;justify-items:center;align-items:center;gap:3px;width:142px;height:142px;padding:0}
  .vinyl-deck{width:116px;height:86px;margin:0;align-self:end}
  .vinyl-record{right:6px;bottom:0;width:78px;height:78px;min-width:78px;transform:rotate(0deg);will-change:transform}
  .vinyl-record i{animation:none!important}
  .composer-guidance-record.is-playing .vinyl-record{animation:zwt-vinyl-live-spin 2.6s linear infinite}
  .vinyl-tonearm{top:0;right:0;width:55px;height:72px;transform:rotate(9deg);transform-origin:top right}
  .tonearm-pivot{right:3px;width:10px;height:10px}.tonearm-stick{top:8px;right:7px;height:56px}.tonearm-head{right:24px;bottom:6px}
  .guidance-track-name{display:block;max-width:132px;font-size:9px;line-height:13px;text-align:center}
  .guidance-controls{height:31px;gap:7px;align-items:center}
  .guidance-controls button{width:25px;height:25px;border-radius:9px;background:color-mix(in srgb,var(--surface) 92%,var(--primary) 8%);font-size:8px;box-shadow:none}
  .guidance-controls button:hover{transform:translateY(-1px) scale(1.03)}
  .guidance-controls .guidance-play{position:relative;width:32px;height:32px;min-width:32px;flex-basis:32px;border:1px solid color-mix(in srgb,#fff 28%,var(--primary));border-radius:11px;background:linear-gradient(135deg,var(--primary),color-mix(in srgb,var(--primary) 62%,#2fb7e8));box-shadow:0 7px 14px color-mix(in srgb,var(--primary) 30%,transparent)}
  .guidance-controls .guidance-play:after{position:absolute;inset:4px;border:1px solid rgba(255,255,255,.36);border-radius:8px;content:"";pointer-events:none}
  .guidance-controls .guidance-play-icon{position:relative;z-index:1;font-size:9px;font-weight:900;line-height:1}
  .composer-guidance-record.is-playing .guidance-play{box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 18%,transparent),0 8px 16px color-mix(in srgb,var(--primary) 32%,transparent)}
}
@keyframes zwt-vinyl-live-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.composer-guidance-record.is-playing .vinyl-record{animation:none}}

/* Dashboard density: the table scrolls inside its own workspace, while the
   dashboard shell, filters and table headers remain stable. */
@media(min-width:861px){
  .app-shell:has(> .main > .metrics){height:100dvh;min-height:100dvh}
  .app-shell:has(> .main > .metrics) .main{display:flex;flex-direction:column;height:100dvh;overflow:hidden;padding-bottom:20px}
  .app-shell:has(> .main > .metrics) .topbar,.app-shell:has(> .main > .metrics) .metrics{flex:0 0 auto}
  .app-shell:has(> .main > .metrics) .metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
  .metric.all .metric-icon{background:color-mix(in srgb,var(--primary) 14%,var(--surface));color:var(--primary)}
  .ticket-workspace{display:flex;flex:1 1 auto;flex-direction:column;min-height:0}
  .ticket-workspace .workspace-head,.ticket-workspace .filters{flex:0 0 auto}
  .ticket-workspace .table-wrap{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:color-mix(in srgb,var(--primary) 34%,var(--line)) transparent}
  .ticket-workspace .table thead th{position:sticky;z-index:2;top:0}
  .ticket-workspace .empty{height:100%;min-height:240px}
  .batch-ticket-form .composer-left-rail{align-self:stretch;grid-template-rows:auto minmax(0,1fr)!important}
  .batch-ticket-form .composer-left-rail .composer-guidance{align-self:end;margin-top:auto}
  .batch-ticket-form .batch-videos{align-self:stretch}
}

/* Higher-contrast semantic states: readable at a glance in the light themes. */
.status{border:1px solid transparent;font-weight:850;letter-spacing:.01em}
.status.open{color:#a82d59;background:#fff0f5;border-color:#f2b9cb}
.status.progress{color:#1f3fa6;background:#edf3ff;border-color:#b6c8f5}
.status.done{color:#087e50;background:#dcf8e9;border-color:#b7ebcf}
.collection-product-chip{color:#374151;border-color:#d6d1fb;font-weight:850}
.collection-product-chip .status-dot{width:7px;height:7px;box-shadow:0 0 0 2px rgba(84,92,175,.10)}
.collection-product-chip .status-dot.open{background:#d94675;box-shadow:0 0 0 2px rgba(217,70,117,.16)}
.collection-product-chip .status-dot.progress{background:#244fb5;box-shadow:0 0 0 2px rgba(36,79,181,.18)}
.collection-product-chip .status-dot.done{background:#16b368;box-shadow:0 0 0 2px rgba(22,179,104,.16)}
:root[data-theme="midnight"] .status.open{color:#ff9db8;background:#4a1b2c;border-color:#83364e}
:root[data-theme="midnight"] .status.progress{color:#a9c2ff;background:#17284f;border-color:#2f4f8c}
:root[data-theme="midnight"] .status.done{color:#86e5b6;background:#173f32;border-color:#2d7057}
:root[data-theme="midnight"] .collection-product-chip{color:#d1d7f6;border-color:#3a466c;background:#1a2440}

/* Put the arm on the record, not beside it; the record, label and controls now
   share one centered vertical axis. */
@media(min-width:861px){
  .vinyl-deck{width:116px;height:86px;overflow:visible}
  .vinyl-record{right:13px;bottom:0}
  .vinyl-tonearm{top:-2px;right:8px;width:64px;height:78px;transform:none}
  .tonearm-pivot{top:0;right:3px}
  .tonearm-stick{top:8px;right:8px;height:58px;transform:rotate(24deg);transform-origin:top center}
  .tonearm-head{right:auto;left:16px;bottom:4px;transform:rotate(-20deg)}
  .composer-guidance-record{grid-template-rows:86px 13px 31px;align-content:center}
  .guidance-controls{justify-content:center}
}

/* Transport sits on the same axis as the record: compact previous / play /
   next controls with a clear circular primary action instead of a loose bar. */
@media(min-width:861px){
  .guidance-controls{width:90px;height:36px;margin-left:12px;gap:5px;justify-content:center;transform:translateX(0)}
  .guidance-controls button[data-guidance-prev],.guidance-controls button[data-guidance-next]{width:24px;height:24px;border-radius:50%;font-size:0;background:color-mix(in srgb,var(--surface) 88%,var(--primary) 12%);color:var(--primary)}
  .guidance-controls button[data-guidance-prev]::before{content:"‹";font-size:20px;font-weight:850;line-height:1;transform:translateX(-1px)}
  .guidance-controls button[data-guidance-next]::before{content:"›";font-size:20px;font-weight:850;line-height:1;transform:translateX(1px)}
  .guidance-controls .guidance-play{width:36px;height:36px;min-width:36px;flex-basis:36px;border-radius:50%;background:radial-gradient(circle at 34% 28%,#68cfff 0 7%,var(--primary) 45%,color-mix(in srgb,var(--primary) 76%,#275cd1) 100%);box-shadow:0 7px 17px color-mix(in srgb,var(--primary) 34%,transparent)}
  .guidance-controls .guidance-play:after{inset:5px;border-radius:50%}
  .guidance-controls .guidance-play-icon{font-size:10px;transform:translateX(1px)}
  .composer-guidance-record.is-playing .guidance-play-icon{transform:none;letter-spacing:-1px}
}

/* Reference links: ten rows define the panel height. Extra rows never enlarge
   the ticket modal; only this list receives an internal scrollbar. */
@media(min-width:861px){
  .batch-ticket-form .batch-videos{align-self:start;height:auto;min-height:0}
  .batch-ticket-form .batch-video-list{display:grid;flex:0 0 590px;height:590px;min-height:0;max-height:calc(100dvh - 250px);overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable}
}
@media(min-width:861px) and (max-height:820px){
  .batch-ticket-form .batch-video-list{flex-basis:calc(100dvh - 250px);height:calc(100dvh - 250px)}
}

/* Ten compact rows are the invariant desktop viewport.  Do not let viewport
   math reduce it to nine rows; only the eleventh row starts list scrolling. */
@media(min-width:861px){
  .batch-ticket-form .batch-videos{align-self:stretch;height:100%}
  .batch-ticket-form .batch-video-list{flex:0 0 640px;height:640px;max-height:none;gap:6px;overflow-y:auto!important}
}

/* Searchable shop selection keeps the approved shop list visible while typing. */
.shop-combobox{position:relative}.shop-combobox input{width:100%;padding-right:38px}.shop-picker-toggle{position:absolute;top:50%;right:7px;display:grid;place-items:center;width:26px;height:26px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--muted);transform:translateY(-50%);transition:background-color .16s ease,color .16s ease}.shop-picker-toggle:hover,.shop-picker-toggle.open{background:var(--surface-2);color:var(--primary)}.shop-picker-toggle span{font-size:14px;transition:transform .16s ease}.shop-picker-toggle.open span{transform:rotate(180deg)}.shop-picker-menu{position:absolute;z-index:58;top:calc(100% + 6px);right:0;left:0;display:grid;gap:4px;max-height:182px;overflow:auto;padding:7px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 16px 34px color-mix(in srgb,var(--primary) 15%,transparent)}.shop-picker-option{display:flex;align-items:center;justify-content:space-between;min-height:34px;padding:0 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text);font-size:12px;font-weight:780;text-align:left}.shop-picker-option span{color:var(--muted);font-size:9px;font-weight:750}.shop-picker-option:hover,.shop-picker-option.active{border-color:color-mix(in srgb,var(--primary) 26%,var(--line));background:color-mix(in srgb,var(--primary) 8%,var(--surface));color:var(--primary)}.shop-picker-option.active span{color:var(--primary)}.shop-picker-empty{margin:5px;padding:13px 8px;color:var(--muted);font-size:11px;line-height:1.55;text-align:center}

@media(max-width:1040px){.sidebar-toggle{display:none}}
@media(max-width:760px){.workspace-actions{width:100%}.workspace-actions>button{flex:1}.detail-video-card.compact .detail-video-top{grid-template-columns:29px minmax(0,1fr)}.detail-video-card.compact .detail-video-actions{grid-column:2;justify-content:flex-start}.video-title-modal-head{align-items:stretch;flex-direction:column}.video-title-actions{width:100%}.video-title-modal-head .secondary{width:100%}.video-title-item{grid-template-columns:31px minmax(0,1fr)}.video-title-copy,.video-title-delete{grid-column:2;justify-self:start}.video-title-delete{grid-column:2}.video-title-filter{grid-template-columns:1fr}.video-title-filter .ghost{width:100%}.shop-picker-menu{max-height:160px}}

/* Ten starter links are a fixed desktop affordance: every input is visible
   before scrolling begins.  Compact row geometry keeps this true on a normal
   laptop viewport while the side panels share the same bottom edge. */
@media(min-width:861px){
  .batch-ticket-form{height:auto!important;max-height:calc(100dvh - 20px)!important}
  .batch-ticket-form .batch-videos{align-self:stretch!important;height:640px!important;min-height:640px!important}
  .batch-ticket-form .batch-video-list{display:grid;flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important;gap:4px!important;padding:5px 5px 6px 2px!important;overflow-x:hidden!important;overscroll-behavior:contain}
  .batch-ticket-form .batch-video-list:not(.is-overflowing){overflow-y:hidden!important;scrollbar-width:none}
  .batch-ticket-form .batch-video-list.is-overflowing{overflow-y:auto!important}
  .batch-ticket-form .video-card.compact-entry{padding:4px 6px!important;border-radius:11px}
  .batch-ticket-form .video-compact-row{grid-template-columns:30px minmax(0,1fr) auto 27px;gap:6px}
  .batch-ticket-form .video-compact-row .video-index{width:29px;height:29px;border-radius:9px;font-size:10px}
  .batch-ticket-form .video-compact-row .video-url-field,.batch-ticket-form .workflow-videos .video-compact-row .note-toggle{height:36px!important;min-height:36px!important}
  .batch-ticket-form .video-compact-row .video-url-field input{min-height:34px!important;font-size:11px}
  .batch-ticket-form .workflow-videos .video-compact-row .note-toggle{min-width:68px;padding:0 8px;font-size:10px}
  .batch-ticket-form .video-compact-row .remove-video{width:27px;height:27px;font-size:14px}
  .batch-ticket-form .composer-left-rail{align-self:stretch!important}
  .batch-ticket-form .composer-left-rail .composer-guidance{align-self:end;margin-top:auto}
}

/* Per-user list configuration stays compact and follows the existing button
   language in every theme. */
.list-custom-trigger{display:grid;place-items:center;width:34px;height:34px;margin-left:4px;padding:0;border:1px solid color-mix(in srgb,var(--primary) 24%,var(--line));border-radius:10px;background:color-mix(in srgb,var(--surface) 86%,var(--primary) 6%);color:var(--primary);box-shadow:0 5px 12px color-mix(in srgb,var(--primary) 9%,transparent);transition:transform .18s ease,background-color .18s ease,border-color .18s ease,box-shadow .18s ease}.list-custom-trigger svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.list-custom-trigger:hover{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 13%,var(--surface));box-shadow:0 8px 16px color-mix(in srgb,var(--primary) 17%,transparent);transform:translateY(-1px) scale(1.03)}.list-custom-trigger:active{transform:translateY(0) scale(.98)}
.ticket-table-configurable th[data-ticket-column="actions"],.ticket-table-configurable td[data-ticket-column="actions"]{text-align:center}.ticket-table-configurable td[data-ticket-column="buildPlan"],.ticket-table-configurable td[data-ticket-column="landingPage"]{white-space:nowrap}
.build-state{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:72px;height:28px;padding:0 9px;border:1px solid transparent;border-radius:999px;font:inherit;font-size:11px;font-weight:850;line-height:1;transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease,border-color .16s ease}.build-state i{width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px color-mix(in srgb,currentColor 13%,transparent)}.build-state.pending{border-color:#f3c985;background:#fff3da;color:#a86200}.build-state.built{border-color:#9de1c1;background:#def8eb;color:#087f52}.build-state:hover{transform:translateY(-1px) scale(1.025);box-shadow:0 7px 13px color-mix(in srgb,currentColor 16%,transparent)}.build-state:active{transform:translateY(0) scale(.98)}.build-state:focus-visible,.list-custom-trigger:focus-visible{outline:3px solid color-mix(in srgb,var(--primary) 32%,transparent);outline-offset:2px}
.ticket-column-editor{width:min(510px,calc(100vw - 28px));padding:25px}.ticket-column-editor h2{margin-bottom:7px}.ticket-column-editor>.muted{margin:0 0 16px}.column-editor-list{display:grid;gap:7px;max-height:min(54vh,440px);overflow:auto;padding:3px}.column-editor-row{display:grid;grid-template-columns:31px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:48px;padding:8px 9px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--surface) 93%,var(--primary) 4%)}.column-order{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:var(--theme-soft,#f0edff);color:var(--primary);font-size:10px;font-weight:900}.column-editor-row label{display:flex;align-items:center;gap:9px;min-width:0;color:var(--text);cursor:pointer}.column-editor-row input{width:16px;height:16px;accent-color:var(--primary)}.column-editor-row label b{font-size:12px}.column-editor-row>div{display:flex;gap:5px}.column-editor-row button{display:grid;place-items:center;width:27px;height:27px;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--surface-2);color:var(--primary);font-weight:900;transition:transform .15s ease,background-color .15s ease}.column-editor-row button:hover:not(:disabled){background:var(--theme-soft,#f0edff);transform:translateY(-1px)}.column-editor-row button:disabled{opacity:.35;cursor:not-allowed}
@media(max-width:760px){.list-custom-trigger{margin-left:auto}.ticket-column-editor{padding:20px}.column-editor-list{max-height:48vh}.ticket-table-configurable{min-width:760px}}
@media(prefers-reduced-motion:reduce){.list-custom-trigger,.build-state,.column-editor-row button{transition:none!important;animation:none!important}.list-custom-trigger:hover,.build-state:hover,.column-editor-row button:hover{transform:none!important}}

/* Final ticket-list alignment: column identity, rather than visual position,
   owns each width so reordered columns never push the action tools elsewhere. */
.ticket-table-configurable{width:100%;min-width:0!important;table-layout:fixed}
.ticket-table-configurable th[data-ticket-column="issuer"],.ticket-table-configurable td[data-ticket-column="issuer"]{width:145px}
.ticket-table-configurable th[data-ticket-column="ticket"],.ticket-table-configurable td[data-ticket-column="ticket"]{width:190px}
.ticket-table-configurable th[data-ticket-column="assignee"],.ticket-table-configurable td[data-ticket-column="assignee"]{width:145px}
.ticket-table-configurable th[data-ticket-column="status"],.ticket-table-configurable td[data-ticket-column="status"]{width:88px}
.ticket-table-configurable th[data-ticket-column="priority"],.ticket-table-configurable td[data-ticket-column="priority"]{width:86px}
.ticket-table-configurable th[data-ticket-column="buildPlan"],.ticket-table-configurable td[data-ticket-column="buildPlan"],.ticket-table-configurable th[data-ticket-column="landingPage"],.ticket-table-configurable td[data-ticket-column="landingPage"]{width:112px}
.ticket-table-configurable th[data-ticket-column="createdAt"],.ticket-table-configurable td[data-ticket-column="createdAt"]{width:108px}
.ticket-table-configurable th[data-ticket-column="actions"],.ticket-table-configurable td[data-ticket-column="actions"]{width:112px!important;padding-right:8px!important;padding-left:8px!important;overflow:visible}
.ticket-table-configurable td[data-ticket-column="actions"]>.row-actions{display:flex!important;align-items:center;justify-content:center;gap:7px;width:100%;margin:0;white-space:nowrap}
.ticket-table-configurable td[data-ticket-column="actions"] .row-action{flex:0 0 auto;margin:0!important}
@media(max-width:760px){.ticket-table-configurable{min-width:760px!important}}

/* Semantic priority colors must remain legible instead of fading into the row. */
.ticket-table-configurable .priority{min-width:50px;justify-content:center;border:1px solid;font-weight:900;box-shadow:inset 0 0 0 1px rgba(255,255,255,.28)}
.ticket-table-configurable .priority.low{border-color:#9fdec0;background:#ddf7e9;color:#087a4f}
.ticket-table-configurable .priority.normal{border-color:#cbd2df;background:#e8ecf3;color:#3f4965}
.ticket-table-configurable .priority.high{border-color:#f2c477;background:#ffefd3;color:#9a5200}
.ticket-table-configurable .priority.urgent{border-color:#f1a8b7;background:#ffe3e9;color:#ae2947}

/* The title dialog is intentionally layered over the still-open detail drawer. */
.video-title-layer{z-index:72!important}
.video-title-list-modal{width:min(720px,calc(100vw - 30px))}
.video-title-list-modal .video-title-modal-head{align-items:flex-start}
.video-title-list-modal .video-title-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;max-width:430px}

/* Ten starter rows are fully visible without a scrollbar. The panel shares the
   exact grid bottom with the left composition; only row 11+ (or an open note)
   turns this list into its own scroll surface. */
@media(min-width:861px){
  .batch-ticket-form .batch-videos{align-self:stretch!important;height:720px!important;min-height:720px!important;max-height:720px!important}
  .batch-ticket-form .batch-video-list{scrollbar-gutter:auto!important}
  .batch-ticket-form .batch-video-list:not(.is-overflowing){overflow-y:hidden!important}
  .batch-ticket-form .batch-video-list:not(.is-overflowing):has(>.video-card:nth-child(10):last-child){grid-template-rows:repeat(10,minmax(0,1fr));align-content:stretch}
  .batch-ticket-form .batch-video-list:not(.is-overflowing):has(>.video-card:nth-child(10):last-child)>.video-card{display:flex;flex-direction:column;justify-content:center}
  .batch-ticket-form .batch-video-list.is-overflowing{overflow-y:auto!important;scrollbar-gutter:stable!important}
}

/* Fill each of the ten tracks with the actual editor instead of leaving a
   tall track around a 36px control. Row eleven still uses the same scroll box. */
@media(min-width:861px){
  .batch-ticket-form .batch-video-list:not(.is-overflowing):has(>.video-card:nth-child(10):last-child)>.video-card{height:100%;min-height:0;padding:5px 7px!important}
  .batch-ticket-form .batch-video-list:not(.is-overflowing):has(>.video-card:nth-child(10):last-child) .video-compact-row{height:100%;min-height:0;align-items:center}
  .batch-ticket-form .video-compact-row .video-url-field,.batch-ticket-form .workflow-videos .video-compact-row .note-toggle{height:48px!important;min-height:48px!important}
  .batch-ticket-form .video-compact-row .video-url-field input{height:46px!important;min-height:46px!important;font-size:12px}
  .batch-ticket-form .video-compact-row .video-index{width:34px;height:34px;border-radius:10px;font-size:10px}
  .batch-ticket-form .workflow-videos .video-compact-row .note-toggle{min-width:72px;padding:0 10px;font-size:11px}
  .batch-ticket-form .video-compact-row .remove-video{width:31px;height:31px;font-size:15px}
}

/* Appointment control replaces the decorative collaboration icon and stays in
   the existing heading line. Its calendar is an overlay, so panel geometry is
   unchanged. */
.workflow-assignment .assignment-heading{position:relative;display:grid;grid-template-columns:31px minmax(0,1fr);align-items:center;gap:10px;width:100%;min-height:34px}
.workflow-assignment .assignment-symbol{display:grid;place-items:center;width:31px;height:31px;border-radius:10px;background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 88%,#fff),color-mix(in srgb,var(--primary) 72%,var(--cyan)));color:#fff;box-shadow:0 7px 15px color-mix(in srgb,var(--primary) 22%,transparent)}
.workflow-assignment .assignment-symbol svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.workflow-assignment .assignment-heading-copy{display:grid;gap:2px;min-width:0}
.workflow-assignment .assignment-heading-meta{display:flex;align-items:center;gap:10px;min-width:0}
.workflow-assignment .assignment-heading-meta>small{min-width:0;overflow:hidden;color:var(--muted);font-size:10px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.workflow-assignment .task-schedule{position:relative;z-index:12;display:block;flex:0 0 auto;margin-left:auto}
.task-schedule-trigger{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:27px;min-width:104px;padding:0 9px;border:1px solid color-mix(in srgb,var(--primary) 24%,var(--line));border-radius:9px;background:color-mix(in srgb,var(--surface) 92%,var(--primary) 5%);color:var(--muted);font-size:10px;font-weight:850;white-space:nowrap;transition:border-color .16s ease,background-color .16s ease,color .16s ease,box-shadow .16s ease}
.task-schedule-trigger svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.task-schedule-trigger i{width:5px;height:5px;margin-left:1px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-1px) rotate(45deg);transition:transform .16s ease}
.task-schedule.open .task-schedule-trigger i{transform:translateY(2px) rotate(225deg)}
.task-schedule.has-date .task-schedule-trigger{border-color:color-mix(in srgb,var(--primary) 48%,var(--line));background:color-mix(in srgb,var(--primary) 12%,var(--surface));color:var(--primary);box-shadow:0 5px 12px color-mix(in srgb,var(--primary) 12%,transparent)}
.task-schedule-trigger:hover{border-color:var(--primary);color:var(--primary);background:color-mix(in srgb,var(--primary) 9%,var(--surface))}
.task-schedule-trigger:focus-visible{outline:3px solid color-mix(in srgb,var(--primary) 28%,transparent);outline-offset:2px}
.task-schedule-popover{position:absolute;z-index:65;top:34px;right:0;display:block;width:264px;padding:13px;border:1px solid color-mix(in srgb,var(--primary) 22%,var(--line));border-radius:14px;background:var(--surface);box-shadow:0 18px 42px color-mix(in srgb,var(--primary) 18%,rgba(20,25,45,.2));color:var(--text)}
.task-schedule-popover[hidden]{display:none!important}
.schedule-popover-head{display:grid;gap:3px;margin-bottom:11px}.schedule-popover-head b{font-size:12px}.schedule-popover-head small{color:var(--muted);font-size:9px;line-height:1.45}
.schedule-quick{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}.schedule-quick button,.schedule-clear{height:32px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--text);font-size:10px;font-weight:850}.schedule-quick button:hover{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 10%,var(--surface));color:var(--primary)}
.task-schedule-popover label{display:grid;gap:5px;margin-top:10px;color:var(--muted);font-size:10px;font-weight:800}.task-schedule-popover input{width:100%;height:35px;padding:0 9px;border:1px solid var(--line);border-radius:9px;outline:0;background:var(--surface-2);color:var(--text);font:inherit}.task-schedule-popover input:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 15%,transparent)}
.schedule-clear{width:100%;margin-top:9px;background:transparent;color:var(--muted)}.schedule-clear:hover{border-color:color-mix(in srgb,var(--danger) 45%,var(--line));color:var(--danger)}

/* Appointment is secondary metadata: compact in the list, explicit in detail. */
.ticket-table-configurable th[data-ticket-column="priority"],.ticket-table-configurable td[data-ticket-column="priority"]{width:106px}
.ticket-priority-cell{display:inline-flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap}
.ticket-priority-cell .priority{min-width:46px;padding-right:6px;padding-left:6px}
.schedule-priority,.detail-schedule-priority{display:inline-flex;align-items:center;justify-content:center;gap:4px;border:1px solid color-mix(in srgb,var(--primary) 34%,var(--line));border-radius:999px;background:color-mix(in srgb,var(--primary) 11%,var(--surface));color:var(--primary);font-size:9px;font-weight:900;white-space:nowrap}
.schedule-priority{height:23px;padding:0 7px}.schedule-priority i,.detail-schedule-priority i{width:5px;height:5px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 12%,transparent)}
.detail-priority-group{display:inline-flex;align-items:center;gap:7px;margin-left:auto}.detail-schedule-priority{height:27px;padding:0 9px;font-size:10px}
.build-state.readonly{cursor:default}.build-state.readonly:hover{transform:none;box-shadow:none}
@media(max-width:760px){.workflow-assignment .assignment-heading-meta>small{max-width:190px}.detail-priority-group{margin-left:0}}

/* Collaboration heading mirrors the operator-note hierarchy: icon, title/copy,
   then the compact appointment control, all on one stable row. */
.workflow-assignment .assignment-heading{grid-template-columns:31px minmax(0,1fr) auto;margin-left:-4px;width:calc(100% + 4px)}
.workflow-assignment .assignment-heading-copy{display:grid;align-content:center;gap:2px;min-width:0}
.workflow-assignment .assignment-heading-copy>b{color:#4c3a99;font-size:12px;font-weight:900}
.workflow-assignment .assignment-heading-copy small{overflow:hidden;color:#7e72ab;font-size:9px;font-weight:750;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.workflow-assignment .assignment-heading>.task-schedule{grid-column:3;margin-left:10px}

/* Saved personal name treatments are rendered from validated CSS variables. */
.styled-username{color:inherit;font:inherit}
.styled-username.is-solid{color:var(--name-start)!important}
.styled-username.is-gradient{display:inline-block;background:linear-gradient(var(--name-angle),var(--name-start) 0%,var(--name-middle) 50%,var(--name-end) 100%);-webkit-background-clip:text;background-clip:text;color:transparent!important}
.name-style-card{grid-column:1/-1;grid-row:2;min-height:0}.profile-settings-stack>.password-card{grid-column:2;grid-row:1}
.name-style-form{display:grid;gap:13px}
.name-style-preview{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border:1px solid #e1e5f2;border-radius:13px;background:linear-gradient(135deg,#fbfcff,#f7f5ff)}
.name-style-preview small{color:#8b94aa;font-size:10px;font-weight:800;letter-spacing:.08em}.name-style-preview b{font-size:22px;font-weight:950}
.name-style-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.name-style-presets button{display:flex;align-items:center;gap:8px;min-height:38px;padding:0 10px;border:1px solid #e0e4ef;border-radius:10px;background:#fff;color:#59627a;font-size:11px;font-weight:800}.name-style-presets button:hover{border-color:#a99cf5;box-shadow:0 6px 15px rgba(90,75,180,.1);transform:translateY(-1px)}.name-style-presets i{width:18px;height:18px;flex:0 0 18px;border-radius:6px;background:linear-gradient(135deg,var(--preset-start),var(--preset-end));box-shadow:0 2px 6px rgba(46,52,83,.16)}
.name-style-controls{display:grid;grid-template-columns:1.1fr .75fr .75fr 1.5fr;gap:9px}.name-style-controls label{display:grid;align-content:start;gap:6px;color:#747e96;font-size:10px;font-weight:800}.name-style-controls select{height:39px}.name-style-controls input[type="color"]{width:100%;height:39px;padding:4px;border:1px solid #dfe4ef;border-radius:10px;background:#fff}.name-style-controls input[type="range"]{width:100%;accent-color:#725fe9}.name-style-controls output{color:#6c5dd3;font-size:10px}.name-style-actions{display:flex;gap:8px}.name-style-actions button{min-height:38px}

/* Admin avatar control stays attached to the avatar and does not add card bulk. */
.admin-account-avatar{position:relative;width:42px;height:42px;flex:0 0 42px}.admin-account-avatar .person-avatar{width:42px;height:42px}.admin-account-avatar>label{position:absolute;right:-5px;bottom:-5px;display:grid;place-items:center;width:22px;height:22px;border:2px solid #fff;border-radius:8px;background:linear-gradient(135deg,#7764ef,#398de7);color:#fff;box-shadow:0 5px 12px rgba(64,73,155,.2);cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}.admin-account-avatar>label:hover{transform:translateY(-1px) scale(1.07);box-shadow:0 7px 16px rgba(64,73,155,.28)}.admin-account-avatar svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.compact-danger{border-color:#f0d9df!important;color:#be4f68!important}

/* Ticket avatars enlarge only after an explicit click, without reflowing rows. */
.issuer-avatar.avatar-zoomable,.assignee-avatar.avatar-zoomable{cursor:default;transform-origin:center;transition:transform .18s cubic-bezier(.2,.78,.2,1),box-shadow .18s ease;will-change:transform}
.issuer-avatar.avatar-zoomable:hover,.assignee-avatar.avatar-zoomable:hover{transform:translate3d(0,-1px,0) scale(1.1)!important}
.issuer-avatar.avatar-zoomable.is-zoomed,.assignee-avatar.avatar-zoomable.is-zoomed{z-index:80;transform:translate3d(0,-2px,0) scale(2.45)!important;box-shadow:0 12px 28px rgba(42,52,99,.28)!important}
.issuer-avatar.avatar-zoomable:focus-visible,.assignee-avatar.avatar-zoomable:focus-visible{outline:3px solid rgba(112,92,242,.2);outline-offset:2px}

@media(max-width:760px){.profile-settings-stack>.password-card,.name-style-card{grid-column:auto;grid-row:auto}.name-style-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.name-style-controls{grid-template-columns:1fr 1fr}.workflow-assignment .assignment-heading-copy small{max-width:160px}.workflow-assignment .assignment-heading>.task-schedule{margin-left:4px}}

/* Drag-first column editor. Five operational columns are locked visible while
   optional fields can still be hidden. */
.ticket-column-editor{display:flex;flex-direction:column;width:min(590px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:hidden;padding:27px}
.ticket-column-editor>.muted{max-width:480px}
.ticket-sort-editor{margin:0 0 15px;padding:13px;border:1px solid color-mix(in srgb,var(--primary) 18%,var(--line));border-radius:14px;background:color-mix(in srgb,var(--primary) 5%,var(--surface))}.ticket-sort-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.ticket-sort-heading b{display:block;color:var(--text);font-size:12px}.ticket-sort-heading small{display:block;margin-top:2px;color:var(--muted);font-size:10px}.ticket-sort-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ticket-sort-option{position:relative;display:grid;grid-template-columns:17px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:52px;padding:9px 10px;border:1px solid var(--line);border-radius:11px;background:var(--surface);cursor:pointer;transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease}.ticket-sort-option:has(input:checked){border-color:color-mix(in srgb,var(--primary) 58%,var(--line));background:color-mix(in srgb,var(--primary) 9%,var(--surface));box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 9%,transparent)}.ticket-sort-option input{width:16px;height:16px;margin:0;accent-color:var(--primary)}.ticket-sort-option span{min-width:0}.ticket-sort-option b,.ticket-sort-option small{display:block}.ticket-sort-option b{color:var(--text);font-size:12px}.ticket-sort-option small{margin-top:3px;color:var(--muted);font-size:9px;white-space:nowrap}.ticket-sort-option em{padding:3px 6px;border-radius:99px;background:color-mix(in srgb,var(--primary) 12%,var(--surface));color:var(--primary);font-size:8px;font-style:normal;font-weight:850}
.column-editor-legend{display:flex;align-items:center;gap:16px;margin:-5px 0 14px;color:var(--muted);font-size:10px;font-weight:750}.column-editor-legend span{display:inline-flex;align-items:center;gap:6px}.legend-drag{width:13px;height:13px;border-radius:4px;background:radial-gradient(circle,var(--primary) 1.3px,transparent 1.5px) 0 0/6px 6px}.legend-lock{width:12px;height:10px;border:1.5px solid var(--primary);border-radius:3px;position:relative}.legend-lock:before{position:absolute;right:2px;bottom:8px;left:2px;height:5px;border:1.5px solid var(--primary);border-bottom:0;border-radius:6px 6px 0 0;content:""}
.ticket-column-editor .column-editor-list{flex:1 1 auto;gap:8px;min-height:0;max-height:min(56vh,480px);padding:4px 7px 4px 4px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--primary) 32%,var(--line)) transparent}
.ticket-column-editor .column-editor-row{position:relative;display:grid;grid-template-columns:30px 31px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:58px;padding:8px 10px 8px 8px;border:1px solid color-mix(in srgb,var(--primary) 12%,var(--line));border-radius:13px;background:linear-gradient(135deg,color-mix(in srgb,var(--surface) 95%,var(--primary) 3%),var(--surface-2));box-shadow:0 4px 12px color-mix(in srgb,var(--primary) 5%,transparent);transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease,opacity .16s ease,transform .16s ease}
.ticket-column-editor .column-editor-row:hover{border-color:color-mix(in srgb,var(--primary) 34%,var(--line));box-shadow:0 7px 16px color-mix(in srgb,var(--primary) 9%,transparent)}
.ticket-column-editor .column-drag-handle{display:grid;place-items:center;width:30px;height:38px;padding:0;border:0;border-radius:8px;background:transparent;color:color-mix(in srgb,var(--primary) 70%,var(--muted));cursor:grab;touch-action:none}.ticket-column-editor .column-drag-handle:hover{background:color-mix(in srgb,var(--primary) 10%,var(--surface));transform:none}.ticket-column-editor .column-drag-handle:active{cursor:grabbing}.ticket-column-editor .column-drag-handle:focus-visible{outline:3px solid color-mix(in srgb,var(--primary) 26%,transparent);outline-offset:1px}.column-drag-handle svg{width:16px;height:20px;fill:currentColor}
.ticket-column-editor .column-order{width:31px;height:31px;border-radius:9px;background:color-mix(in srgb,var(--primary) 10%,var(--surface));font-size:10px}
.ticket-column-editor .column-editor-row label{gap:10px;cursor:pointer}.ticket-column-editor .column-editor-row.is-required label{cursor:default}.ticket-column-editor .column-editor-row input{width:17px;height:17px}.ticket-column-editor .column-editor-row input:disabled{opacity:1;filter:saturate(.9)}.ticket-column-editor .column-editor-row label b{font-size:13px}
.column-policy{display:inline-flex;align-items:center;justify-content:center;min-width:56px;height:25px;padding:0 8px;border-radius:99px;font-size:9px;font-weight:850;white-space:nowrap}.column-policy.required{border:1px solid color-mix(in srgb,var(--primary) 24%,var(--line));background:color-mix(in srgb,var(--primary) 10%,var(--surface));color:var(--primary)}.column-policy.optional{border:1px solid var(--line);background:var(--surface-2);color:var(--muted)}
.ticket-column-editor .column-editor-row.is-dragging{opacity:.34;box-shadow:none;transform:scale(.985)}.ticket-column-editor .column-editor-row.drag-target{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 9%,var(--surface));box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 13%,transparent)}
@media(max-width:620px){.ticket-column-editor{padding:22px 18px}.ticket-sort-options{grid-template-columns:1fr}.column-editor-legend{align-items:flex-start;flex-direction:column;gap:7px}.ticket-column-editor .column-editor-row{grid-template-columns:27px 28px minmax(0,1fr)}.column-policy{display:none}}
@media(prefers-reduced-motion:reduce){.ticket-column-editor .column-editor-row,.ticket-sort-option,.task-schedule-trigger{transition:none!important}}

/* Compact name-style entry: the editor lives in a modal instead of consuming
   a full profile card, while the preview keeps the three gradient stops. */
.profile-avatar-editor .name-style-trigger{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:30px;padding:0 10px;border-color:#ded9fb;background:#f7f5ff;color:#6253c3;font-size:11px;font-weight:850}
.name-style-trigger-swatch{width:13px;height:13px;border-radius:5px;background:linear-gradient(135deg,#7357f6 0%,#aa79f5 50%,#31b7f2 100%);box-shadow:0 2px 6px rgba(71,73,141,.2)}
.name-style-modal{width:min(540px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;padding:26px}
.name-style-modal>h2{margin:0;color:var(--text);font-size:22px}.name-style-modal>.muted{margin:8px 0 16px;line-height:1.6}.name-style-modal .name-style-form{gap:12px}
.name-style-modal .name-style-preview{padding:12px 14px;border-color:var(--line);background:color-mix(in srgb,var(--surface-2) 72%,var(--surface))}.name-style-modal .name-style-preview small{color:var(--muted)}.name-style-modal .name-style-preview b{font-size:20px}
.name-style-modal .name-style-presets{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.name-style-modal .name-style-presets button{min-height:34px;padding:0 8px;border-color:var(--line);background:var(--surface);color:var(--text);font-size:10px}.name-style-modal .name-style-presets i{width:16px;height:16px;flex-basis:16px;background:linear-gradient(135deg,var(--preset-start) 0%,var(--preset-middle) 50%,var(--preset-end) 100%)}
.name-style-modal .name-style-controls{grid-template-columns:1fr .72fr .72fr .72fr 1.25fr;gap:8px}.name-style-modal .name-style-controls label{color:var(--muted)}.name-style-modal .name-style-controls select,.name-style-modal .name-style-controls input[type="color"]{border-color:var(--line);background:var(--surface);color:var(--text)}.name-style-modal .name-style-actions{justify-content:flex-end}.name-style-modal .error{margin:0}
.profile-settings-stack>.password-card{grid-column:auto;grid-row:auto}

/* Keep the fixed composer height stable: the extra breathing room is taken
   from the guidance row, not added to the modal. */
@media(min-width:861px){.batch-ticket-form .composer-left-rail{gap:6px!important}.batch-ticket-form .composer-left-rail .workflow-assignment{margin-top:8px!important}}

/* Keep the left composer sequence compact inside the existing fixed modal:
   give the collaboration block breathing room after the operator note, then
   place the inspiration card directly after it instead of pinning it to the
   bottom of a stretched grid row. */
@media(min-width:861px){
  .batch-ticket-form .composer-left-rail{align-self:start!important;grid-template-rows:auto auto!important;gap:16px!important}
  .batch-ticket-form .composer-left-rail .workflow-assignment{margin-top:0!important}
  .batch-ticket-form .composer-left-rail .composer-guidance{align-self:start!important;margin-top:0!important}
}

/* Align the left rail with the video panel without making the modal taller.
   The rail reserves identical breathing room after the note and between its
   two cards; the inspiration card is then anchored to the panel's bottom. */
@media(min-width:861px){
  .batch-ticket-form .composer-left-rail{
    align-self:stretch!important;
    grid-template-rows:auto minmax(0,1fr)!important;
    gap:0!important;
    min-height:0;
    padding-top:28px;
  }
  .batch-ticket-form .composer-left-rail .workflow-assignment{margin-top:0!important}
  .batch-ticket-form .composer-left-rail .composer-guidance{
    align-self:end!important;
    margin-top:auto!important;
  }
}

/* On a short desktop viewport the fixed video list deliberately overflows its
   grid track. Keep the left trio evenly spaced in that same visual range. */
@media(min-width:861px) and (max-height:760px){
  .batch-ticket-form .composer-left-rail .workflow-assignment{transform:translateY(74px)}
  .batch-ticket-form .composer-left-rail .composer-guidance{transform:translateY(112px)}
}
@media(max-width:760px){.name-style-modal{padding:22px 18px}.name-style-modal .name-style-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.name-style-modal .name-style-controls{grid-template-columns:1fr 1fr}.name-style-modal .name-style-controls label:last-child{grid-column:1/-1}}

/* Name style is a small color studio, not a dense settings form. */
.name-style-modal{
  width:min(660px,calc(100vw - 28px));
  max-height:calc(100dvh - 32px);
  padding:32px;
  border:1px solid rgba(203,214,234,.92);
  border-radius:24px;
  background:radial-gradient(circle at 94% 4%,rgba(106,147,255,.16),transparent 28%),radial-gradient(circle at 6% 100%,rgba(174,112,255,.1),transparent 31%),#fff;
  box-shadow:0 28px 70px rgba(22,32,63,.24),0 2px 8px rgba(42,57,93,.07);
}
.name-style-modal>.close{top:20px;right:21px;width:34px;height:34px;border-radius:50%;background:#f3f6fc;color:#72809b;font-size:23px;line-height:1;transition:background .18s ease,color .18s ease,transform .18s ease}
.name-style-modal>.close:hover{background:#e8eeff;color:#4d63c7;transform:rotate(8deg)}
.name-style-modal>.eyebrow{margin:0 0 9px;color:#397dd6;font-size:10px;letter-spacing:.15em}
.name-style-modal>h2{margin:0;color:#1d2c4b;font-size:27px;letter-spacing:-.035em}
.name-style-modal>.muted{max-width:470px;margin:9px 0 22px;color:#71809b;font-size:13px;line-height:1.7}
.name-style-hero{display:grid;grid-template-columns:1fr minmax(205px,.78fr);gap:18px;align-items:stretch;margin-bottom:22px;padding:20px 21px;border:1px solid #dce7f7;border-radius:18px;background:linear-gradient(120deg,#f3f8ff 0%,#f9faff 54%,#f4f0ff 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.name-style-hero>div:first-child{display:flex;flex-direction:column;justify-content:center;gap:7px}.name-style-hero>div:first-child>span,.name-style-section-head span{color:#6d7ea0;font-size:9px;font-weight:900;letter-spacing:.12em}.name-style-hero>div:first-child>b{color:#263657;font-size:17px;letter-spacing:-.02em}.name-style-hero>div:first-child>small{max-width:290px;color:#7a89a3;font-size:11px;line-height:1.6}
.name-style-modal .name-style-preview{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;min-height:94px;padding:16px 18px;overflow:hidden;border:1px solid rgba(159,182,226,.62);border-radius:14px;background:rgba(255,255,255,.8);box-shadow:0 8px 20px rgba(65,89,145,.08)}
.name-style-modal .name-style-preview:after{position:absolute;right:-24px;bottom:-37px;width:116px;height:116px;border:1px solid rgba(98,130,226,.16);border-radius:50%;box-shadow:0 0 0 14px rgba(111,139,232,.06);content:""}.name-style-modal .name-style-preview small{position:relative;z-index:1;color:#8090aa;font-size:9px;font-weight:900;letter-spacing:.12em}.name-style-modal .name-style-preview b{position:relative;z-index:1;font-size:30px;font-weight:950;letter-spacing:-.055em}
.name-style-section{margin-top:20px}.name-style-section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:0 1px 11px}.name-style-section-head h3{margin:3px 0 0;color:#263657;font-size:15px;letter-spacing:-.015em}.name-style-section-head p{margin:0;color:#8996ad;font-size:11px}
.name-style-modal .name-style-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.name-style-modal .name-style-presets button{position:relative;display:flex;align-items:center;gap:10px;min-height:58px;padding:10px 12px;border:1px solid #dfe6f1;border-radius:13px;background:linear-gradient(145deg,#fff,#fafcff);color:#36445f;font-size:12px;font-weight:850;box-shadow:0 3px 9px rgba(48,64,104,.03);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background .18s ease}.name-style-modal .name-style-presets button:hover,.name-style-modal .name-style-presets button:focus-visible{border-color:#a8b8ee;background:#fff;box-shadow:0 9px 19px rgba(77,101,171,.12);transform:translateY(-2px);outline:0}.name-style-modal .name-style-presets i{width:27px;height:27px;flex-basis:27px;border:3px solid rgba(255,255,255,.94);border-radius:9px;background:linear-gradient(135deg,var(--preset-start) 0%,var(--preset-middle) 50%,var(--preset-end) 100%);box-shadow:0 3px 8px color-mix(in srgb,var(--preset-end) 32%,transparent)}.name-style-modal .name-style-presets em{margin-left:auto;color:#8c9ab2;font-size:9px;font-style:normal;font-weight:800;opacity:0;transform:translateX(-3px);transition:opacity .18s ease,transform .18s ease}.name-style-modal .name-style-presets button:hover em,.name-style-modal .name-style-presets button:focus-visible em{opacity:1;transform:translateX(0)}
.name-style-tuning{padding:17px 18px 18px;border:1px solid #e1e7f2;border-radius:17px;background:#fbfcff}.name-style-modal .name-style-controls{display:grid;grid-template-columns:1.22fr repeat(3,.78fr) 1.38fr;gap:10px}.name-style-modal .name-style-controls label{display:grid;align-content:start;gap:7px;color:#6c7a94;font-size:10px;font-weight:850;letter-spacing:.025em}.name-style-modal .name-style-controls select{width:100%;height:48px;padding:0 12px;border:1px solid #d9e2f0;border-radius:11px;background:#fff;color:#31405c;font:inherit;font-size:12px;font-weight:800}.name-style-modal .name-style-controls input[type="color"]{width:100%;height:48px;padding:5px;border:1px solid #d9e2f0;border-radius:11px;background:#fff;cursor:pointer}.name-style-modal .name-style-controls input[type="color"]::-webkit-color-swatch-wrapper{padding:0}.name-style-modal .name-style-controls input[type="color"]::-webkit-color-swatch{border:0;border-radius:7px}.name-style-modal .name-style-angle{grid-template-columns:1fr auto;align-items:center}.name-style-modal .name-style-angle input{grid-column:1/-1;width:100%;margin:1px 0 0;accent-color:#6d72ec}.name-style-modal .name-style-controls output{color:#5969d8;font-size:11px;font-weight:900}.name-style-modal .name-style-controls select:focus,.name-style-modal .name-style-controls input[type="color"]:focus-visible{border-color:#94a8ed;box-shadow:0 0 0 4px rgba(101,122,225,.12);outline:0}
.name-style-modal .name-style-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;padding-top:19px;border-top:1px solid #e7ebf4}.name-style-modal .name-style-actions button{min-height:44px;padding:0 17px;border-radius:12px;font-size:12px;font-weight:850}.name-style-modal .name-style-actions .secondary{border-color:#d9e3f6;background:#f7f9ff;color:#5065bb}.name-style-modal .name-style-actions .primary{display:inline-flex;align-items:center;gap:10px;box-shadow:0 10px 20px rgba(63,112,216,.25)}.name-style-modal .name-style-actions .primary span{font-size:16px;line-height:1;transition:transform .18s ease}.name-style-modal .name-style-actions .primary:hover span{transform:translateX(3px)}.name-style-modal .error{margin:10px 0 0}
@media(max-width:620px){.name-style-modal{padding:26px 20px;border-radius:20px}.name-style-modal>h2{font-size:24px}.name-style-hero{grid-template-columns:1fr;gap:12px;padding:17px}.name-style-modal .name-style-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.name-style-modal .name-style-controls{grid-template-columns:1fr 1fr}.name-style-modal .name-style-mode,.name-style-modal .name-style-angle{grid-column:1/-1}.name-style-section-head{align-items:start;flex-direction:column;gap:4px}.name-style-modal .name-style-actions{justify-content:stretch}.name-style-modal .name-style-actions button{flex:1;padding:0 11px}}

/* Keep every control, including the save action, visible in a 720px desktop viewport. */
@media(min-width:621px) and (max-height:760px){
  .name-style-modal{padding:25px 28px;border-radius:21px}
  .name-style-modal>h2{font-size:25px}
  .name-style-modal>.muted{margin:6px 0 16px;line-height:1.55}
  .name-style-hero{gap:14px;margin-bottom:16px;padding:16px 18px}
  .name-style-hero>div:first-child{gap:5px}.name-style-hero>div:first-child>b{font-size:16px}
  .name-style-modal .name-style-preview{min-height:82px;padding:13px 15px}
  .name-style-modal .name-style-preview b{font-size:27px}
  .name-style-section{margin-top:15px}.name-style-section-head{margin-bottom:8px}
  .name-style-modal .name-style-presets{gap:8px}.name-style-modal .name-style-presets button{min-height:50px;padding:8px 10px}
  .name-style-modal .name-style-presets i{width:24px;height:24px;flex-basis:24px}
  .name-style-tuning{padding:13px 15px 14px}
  .name-style-modal .name-style-controls{gap:8px}.name-style-modal .name-style-controls select,.name-style-modal .name-style-controls input[type="color"]{height:42px}
  .name-style-modal .name-style-actions{margin-top:16px;padding-top:14px}.name-style-modal .name-style-actions button{min-height:41px}
}

/* Batch shop selection stays inside the familiar detail drawer: only its
   controls move above the product chips, while the existing detail stage stays
   in place below. */
.collection-bulk-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 28px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--primary) 5%,var(--surface))}.collection-bulk-toolbar>div:first-child{display:flex;align-items:baseline;gap:8px;min-width:0}.collection-bulk-toolbar b{color:var(--text);font-size:12px}.collection-bulk-toolbar>div:first-child span{color:var(--primary);font-size:11px;font-weight:850}.collection-bulk-toolbar-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.collection-bulk-toolbar-actions button{min-height:34px;padding:0 12px;font-size:11px}.ticket-collection-drawer .collection-product-tabs{max-height:190px}

/* The shop list is a popover, not modal content. It may float beyond the
   dialog edge without changing its height, clipping rounded corners, or
   producing a dialog scrollbar. */
.modal-layer:has(.bulk-shop-modal){overflow:visible}.bulk-shop-modal{max-height:none!important;overflow:visible!important}.bulk-shop-modal .shop-combobox{z-index:1}.bulk-shop-modal .shop-picker-menu{z-index:100;max-height:190px}.bulk-shop-modal .bulk-shop-ticket-list{max-height:112px}.bulk-shop-modal .bulk-shop-picker-field{margin-top:14px}

@media(max-width:760px){.collection-bulk-toolbar{align-items:stretch;flex-direction:column;padding:10px 18px}.collection-bulk-toolbar-actions{justify-content:stretch;width:100%}.collection-bulk-toolbar-actions button{flex:1}.ticket-collection-drawer .collection-product-tabs{max-height:176px}.bulk-shop-modal .shop-picker-menu{max-height:160px}}

/* Batch copying keeps the selected product visible without adding another
   modal layer: the compact tabs sit above the existing creator fields. */
.ticket-copy-actions .batch-copy-trigger{border-color:#bfc9f5;background:#eef2ff;color:#354b9f}.ticket-copy-actions .batch-copy-trigger span{color:#4f63bb}.ticket-copy-actions .batch-copy-trigger:hover{border-color:#97a6eb;background:#e4eaff;color:#263b8d}
.batch-copy-workspace>.muted{margin-bottom:7px}.batch-copy-ticket-picker{display:grid;flex:0 0 auto;gap:7px;margin:0 0 4px;padding:9px 10px;border:1px solid #dedffc;border-radius:13px;background:linear-gradient(135deg,#fafaff,#f5f7ff)}.batch-copy-picker-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.batch-copy-picker-head>div{display:grid;gap:2px}.batch-copy-picker-head b{color:#39415d;font-size:11px}.batch-copy-picker-head small{color:#7c869e;font-size:10px}.batch-copy-picker-head>span{color:#5261af;font-size:10px;font-weight:850;white-space:nowrap}.batch-copy-tabs{max-height:82px;padding:1px 1px 3px;gap:6px;overflow-y:auto;border:0;background:transparent;scrollbar-color:#c5ccef transparent}.batch-copy-tabs .batch-copy-ticket-tab{min-height:29px;padding:5px 9px;font-size:11px}.batch-copy-tabs .batch-copy-ticket-tab em{margin-left:1px;color:inherit;font-size:9px;font-style:normal;font-weight:900;opacity:.76}.batch-copy-tabs .batch-copy-ticket-tab.is-created:not(.active){border-color:#b8e4ce;background:#f0fbf5;color:#2a7554}.batch-copy-tabs .batch-copy-ticket-tab.is-created:not(.active) .status-dot{background:#35b47d;box-shadow:0 0 0 2px rgba(53,180,125,.15)}.batch-copy-workspace>.form-actions{gap:8px;flex-wrap:wrap}.batch-copy-workspace .batch-copy-all-button{border-color:#bfc9f5;background:#eef2ff;color:#354b9f}.batch-copy-workspace .batch-copy-all-button:hover:not(:disabled){border-color:#97a6eb;background:#e4eaff;color:#263b8d}.batch-copy-workspace .batch-copy-all-button:disabled{border-color:#dce1eb;background:#f3f5f8;color:#98a1b3}
@media(max-width:680px){.batch-copy-ticket-picker{margin-top:2px;padding:9px}.batch-copy-picker-head{align-items:flex-start;flex-direction:column;gap:3px}.batch-copy-tabs{max-height:118px}.batch-copy-workspace>.form-actions{display:grid;grid-template-columns:1fr 1fr}.batch-copy-workspace .batch-copy-all-button,.batch-copy-workspace [data-batch-copy-current]{grid-column:1/-1}.batch-copy-workspace>.form-actions button{width:100%}}

/* In the batch-copy workspace, the picker replaces the inspiration player in
   the left rail. It intentionally matches that card's desktop footprint. */
@media(min-width:861px){.batch-copy-workspace .composer-left-rail>.batch-copy-ticket-picker{display:grid;align-self:end;grid-template-rows:auto minmax(0,1fr);gap:7px;width:100%;height:168px;min-height:168px;max-height:168px;margin-top:auto;margin-bottom:0;padding:13px 15px;overflow:hidden;border:1px solid color-mix(in srgb,var(--primary) 18%,var(--line));border-radius:18px;background:radial-gradient(circle at 90% 16%,color-mix(in srgb,var(--primary) 13%,transparent),transparent 34%),linear-gradient(145deg,color-mix(in srgb,var(--primary) 7%,var(--surface)),var(--surface));box-shadow:0 12px 26px color-mix(in srgb,var(--primary) 7%,transparent)}.batch-copy-workspace .composer-left-rail>.batch-copy-ticket-picker .batch-copy-tabs{min-height:0;max-height:none;padding:1px 1px 3px;overflow-x:hidden;overflow-y:auto}.batch-copy-workspace .composer-left-rail>.batch-copy-ticket-picker .batch-copy-picker-head{align-items:center}.batch-copy-workspace .composer-left-rail>.batch-copy-ticket-picker .batch-copy-picker-head small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.batch-copy-workspace .composer-left-rail>.batch-copy-ticket-picker .batch-copy-ticket-tab{min-height:27px;padding:4px 8px;font-size:10px}}
@media(min-width:861px) and (max-height:760px){.batch-copy-workspace .composer-left-rail>.batch-copy-ticket-picker{transform:translateY(112px)}}
@media(max-width:860px){.batch-copy-workspace .composer-left-rail>.batch-copy-ticket-picker{height:auto;min-height:0;max-height:none;margin-top:14px;margin-bottom:0}.batch-copy-workspace .composer-left-rail>.batch-copy-ticket-picker .batch-copy-tabs{max-height:118px}}

/* Switching batch-copy products replaces only the form content. Keep the
   modal at its settled visual state so the backdrop and dialog never flash. */
.modal-layer.is-ticket-form-switch .modal{opacity:1!important;transform:none!important;transition:none!important}
