@font-face{font-family:TTCommons;src:url('/Motion/assets/tt-commons.woff2') format('woff2');font-weight:100 950;font-display:swap;unicode-range:U+0100-1FFF,U+2C00-10FFFF}
@font-face{font-family:TTCommons;src:url('/Portal/tt-commons-latin.woff2') format('woff2');font-weight:100 950;font-display:swap;unicode-range:U+0000-00FF,U+2000-2BFF}
:root{--bg:#f4f4f5;--card:#fff;--ink:#202020;--muted:#68686f;--line:#dedee3;--accent:#4551f2;--radius:16px;--font:TTCommons,Arial,sans-serif}*{box-sizing:border-box}body{margin:0;font-family:var(--font);font-size:16px;background:var(--bg);color:var(--ink)}button,input,textarea{font:inherit}a{color:inherit;text-decoration:none}button,a,input,textarea,summary{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--accent)}button{border:1px solid var(--accent);background:var(--accent);color:white;border-radius:28px;padding:11px 20px;font-weight:600;cursor:pointer;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:disabled{opacity:.5;cursor:not-allowed}button.secondary,.button.secondary{background:white;color:var(--ink);border:1px solid var(--line)}button.quiet{background:transparent;color:var(--ink);border-color:transparent;padding-inline:10px}button.danger{color:#ac263e;background:#fff2f4;border-color:#ebbbc4}.button{display:inline-flex;align-items:center;justify-content:center;padding:12px 20px;min-height:44px;background:var(--accent);color:white;border-radius:28px;font-weight:600}.shell{display:grid;grid-template-columns:216px minmax(0,1fr);min-height:100vh}aside{background:#202020;color:white;padding:30px 20px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:36px}.brand{display:flex;align-items:center;gap:9px;font-size:15px;line-height:.95;letter-spacing:-.6px;font-weight:800}.brandmark{background:white;color:#202020;border-radius:10px;font-size:28px;width:38px;height:38px;display:grid;place-items:center}.icon-button{background:#333;border-color:#505050;color:white;width:32px;min-height:32px;padding:0;position:absolute;right:12px;top:91px}.side-bottom{margin-top:auto;font-size:13px;color:#c4c4ca;display:grid;gap:24px}nav{display:grid;gap:7px}nav a{display:flex;gap:12px;align-items:center;border-radius:9px;padding:13px;color:#b9b9c1;font-size:15px;white-space:nowrap}nav a.active{background:#383838;color:#fff}nav svg{width:20px;height:20px;flex-shrink:0}.avatar{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#eeecff;color:#363d9d;font-weight:700;font-size:13px;margin-right:8px}.account-name{display:flex;align-items:center;overflow:hidden;font-size:14px;color:white}main{padding:42px;min-width:0;max-width:1700px;width:100%;margin:auto}h1{font-size:32px;letter-spacing:-1px;font-weight:600;margin:0}h2{font-size:21px;letter-spacing:-.4px;margin:0 0 18px;font-weight:600}h3{font-size:17px;margin:0 0 8px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.back{font-size:14px;color:var(--muted);display:inline-flex;margin-bottom:20px}.muted{color:var(--muted)}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:1.8px;font-weight:600}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(265px,1fr));gap:20px}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:24px;min-width:0}.order-card{display:flex;flex-direction:column;gap:20px;min-height:230px;transition:transform .15s,border-color .15s}.order-card:hover{transform:translateY(-2px);border-color:#9f9fa8}.card-top{display:flex;justify-content:space-between;gap:10px;align-items:center}.order-number{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.order-card h2{font-size:25px;margin:0}.order-card .card-footer{margin-top:auto;display:flex;justify-content:space-between;align-items:center;font-size:14px}.add-card{border-style:dashed;display:grid;place-content:center;text-align:center;background:transparent;gap:12px;min-height:230px}.add-card .plus{font-size:30px;color:var(--accent)}.chip{display:inline-flex;align-items:center;gap:5px;font-size:12px;border-radius:30px;padding:6px 10px;background:#f0f0f2;color:#55555c;white-space:nowrap}.chip.purple{background:#eeecff;color:#4146a0}.chip.green{background:#eaf7ee;color:#256540}.chip.amber{background:#fff3db;color:#795813}.chips{display:flex;gap:8px;flex-wrap:wrap}.next{background:#eeecff;border:1px solid #d4d0fc;display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:28px}.next h2{margin:6px 0 0;font-size:27px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:25px}.tabs button{border-radius:9px;background:transparent;border:1px solid transparent;color:var(--muted);font-weight:500;padding:8px 15px}.tabs button.active{background:#fff;border-color:var(--line);color:var(--ink)}.stack{display:grid;gap:20px}.video-card{display:grid;grid-template-columns:96px 1fr auto;align-items:center;gap:22px}.video-thumb{aspect-ratio:1;background:#eeecff;color:#4551f2;display:grid;place-items:center;border-radius:12px;font-size:30px}.video-card h2{margin-bottom:10px}.video-meta{display:flex;gap:12px;font-size:13px;color:var(--muted)}.review-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start}.player-wrap{background:#171717;border-radius:14px;overflow:hidden;display:grid;place-items:center;min-height:220px}.player-wrap video{display:block;width:100%;height:min(49vh,490px);object-fit:contain}.player-tools{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:18px 0}.segmented{display:flex;background:#ededf0;padding:4px;border-radius:24px;gap:2px}.segmented button{font-size:13px;padding:7px 12px;min-height:32px;background:transparent;color:#666;border:0}.segmented button.active{background:white;color:#202020;box-shadow:0 1px 3px #0001}.segmented button:disabled{opacity:.3}.review-info{display:flex;justify-content:space-between;gap:16px;align-items:center}.transcript{line-height:1.9;font-size:16px;max-height:260px;overflow-y:auto;white-space:pre-wrap}.transcript button{display:inline;border:0;background:transparent;color:inherit;padding:2px;min-height:0;border-radius:3px;font-weight:400;line-height:1.9;text-align:left}.transcript button:hover,.transcript button.selected{background:#eeecff}.transcript ::selection{background:#c6c5ff}.comments{max-height:450px;overflow-y:auto;display:grid;gap:12px;margin:16px 0}.comment{padding:15px;background:#f5f5f7;border-radius:12px;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.comment .anchor{color:#454dcc;display:block;font-size:12px;font-weight:600;margin-bottom:6px;cursor:pointer}.comment .comment-actions{display:flex;justify-content:flex-end;margin-top:7px}.comment button{font-size:12px;min-height:28px;padding:4px 10px}.comment blockquote{border-left:2px solid #b4aff0;margin:8px 0;padding-left:10px;color:#65616e}.comment-form{border-top:1px solid var(--line);padding-top:18px}.comment-form textarea{min-height:90px}.sticky-review{position:sticky;top:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}label{display:grid;gap:7px;font-size:14px;font-weight:500}input,textarea{width:100%;border:1px solid #ccccd3;border-radius:9px;padding:11px 12px;background:white;color:#202020;min-height:44px}textarea{resize:vertical;min-height:100px;line-height:1.5}label small{color:var(--muted);font-weight:400}.wide{grid-column:1/-1}.actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:20px}.error{color:#a12138;background:#fff0f3;border:1px solid #eec0c8;border-radius:10px;padding:13px;margin:12px 0}.empty{padding:70px 30px;text-align:center;display:grid;justify-items:center;gap:16px}.empty p{color:var(--muted);max-width:370px;margin:0}.auth{max-width:470px;margin:70px auto}.auth:not(.identity-auth) form{display:grid;gap:18px}.auth h1{margin-bottom:25px}.loading{padding:50px;color:var(--muted)}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#202020;color:white;padding:12px 22px;border-radius:12px;z-index:1000;max-width:90vw;box-shadow:0 8px 30px #0002;visibility:hidden}#toast.visible{visibility:visible}dialog{border:1px solid var(--line);border-radius:18px;padding:28px;max-width:460px;width:calc(100vw - 40px)}dialog::backdrop{background:#1118}dialog p{line-height:1.6;color:var(--muted)}.brief-guide{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center;margin-bottom:28px}.brief-guide video{width:100%;border-radius:12px}.brief-guide h2{font-size:30px}.brief-guide ol{padding-left:20px;line-height:2;color:var(--muted)}.table-list{max-height:65vh;overflow-y:auto}.list-row{display:flex;gap:15px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}.list-row:last-child{border:0}.list-row .grow{flex:1;min-width:0;overflow-wrap:anywhere}.list-row small{display:block;color:var(--muted);margin-top:5px}details.menu{position:relative}details.menu summary{list-style:none;cursor:pointer;min-height:44px;padding:12px;border:1px solid var(--line);border-radius:9px;font-size:14px;background:#fff}details.menu[open]>div{position:absolute;right:0;top:48px;min-width:180px;background:#fff;padding:8px;border:1px solid var(--line);border-radius:12px;z-index:50;box-shadow:0 10px 30px #0002;display:grid;gap:5px}details.menu button{background:white;color:#222;border:0;border-radius:6px;text-align:left;justify-content:flex-start}.form-note{font-size:13px;color:var(--muted);margin-top:12px}.email-preview{width:100%;height:450px;border:1px solid var(--line);border-radius:12px}.delivery-form{display:grid;gap:18px}.file-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.file-slot{border:1px dashed #b8b8c3;padding:14px;border-radius:10px}.file-slot input{font-size:12px;border:0;padding:8px 0}.file-slot small{font-size:12px;color:var(--muted)}.progress{height:5px;background:#eee;border-radius:10px;overflow:hidden}.progress i{height:100%;background:var(--accent);display:block}.skip{position:fixed;top:-100px;left:12px;background:white;padding:12px;z-index:2000}.skip:focus{top:12px}.collapsed .shell{grid-template-columns:76px minmax(0,1fr)}.collapsed aside{padding-inline:13px}.collapsed .wordmark,.collapsed nav span,.collapsed .side-bottom>a,.collapsed .account-name span{display:none}.collapsed nav a{padding:13px}.collapsed .icon-button{right:21px}.collapsed .side-bottom{font-size:0}.collapsed .brandmark{width:40px}.file-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.search{max-width:280px}.subtle{font-size:13px;color:var(--muted)}.scroll-area{max-height:70vh;overflow-y:auto}
@media(max-width:1100px){main{padding:30px}.review-grid{grid-template-columns:minmax(0,1fr) 300px}.shell{grid-template-columns:180px minmax(0,1fr)}aside{padding-inline:15px}.brand{font-size:13px}}@media(max-width:850px){.review-grid{grid-template-columns:1fr}.sticky-review{position:static}.comments{max-height:350px}.shell,.collapsed .shell{grid-template-columns:70px minmax(0,1fr)}aside,.collapsed aside{padding:24px 12px}.wordmark,nav span,.side-bottom>a,.account-name span{display:none}nav a{padding:12px}.icon-button{display:none}.side-bottom{font-size:0}.form-grid,.brief-guide{grid-template-columns:1fr}.page-head{align-items:flex-start}.video-card{grid-template-columns:65px 1fr;gap:15px}.video-card>.button{grid-column:2;justify-self:start}.next{align-items:flex-start}.next h2{font-size:23px}}@media(max-width:520px){main{padding:24px 16px}.shell,.collapsed .shell{display:block}aside{height:auto;position:static;padding:16px;flex-direction:row;align-items:center;gap:12px}.brandmark{width:32px;height:32px;font-size:23px}.wordmark{display:block;font-size:10px}nav{display:flex;margin-left:auto;gap:2px}nav a{padding:10px}aside .side-bottom{display:none}.page-head{gap:12px}h1{font-size:28px}.page-head>.button{padding:10px 14px;font-size:13px}.card{padding:20px}.next{display:grid}.review-info{align-items:flex-start}.player-wrap video{height:300px}.player-tools{gap:12px}.video-thumb{font-size:23px}.file-grid{grid-template-columns:1fr}.list-row{gap:8px}.auth{margin:35px auto}.grid{grid-template-columns:1fr}.page-head .search{max-width:130px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

input[type="checkbox"]{width:auto;display:inline-block;margin-right:8px}

.brief-history{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:14px}.comment textarea{min-height:70px}
[hidden]{display:none!important}
/* Brand and account navigation, using the existing studio tokens. */
.wordmark{font-family:var(--font);font-weight:800;font-size:22px;line-height:1;letter-spacing:-.035em;white-space:nowrap}.brand{min-height:32px}.collapsed .wordmark{display:block;font-size:0}.collapsed .wordmark:before{content:'TR';font-size:22px}.collapsed #brand-switcher{display:none}.nav-group{color:#aaaab4;font-size:11px;letter-spacing:.08em;text-transform:uppercase;margin:18px 12px 4px}.collapsed .nav-group{font-size:0;margin:8px}.brand-picker summary{overflow:hidden;text-overflow:ellipsis}.brand-picker[open]>div{left:0;right:auto;max-height:50vh;overflow:auto;width:250px}.brand-picker>div>a{color:var(--ink);padding:12px;border-top:1px solid var(--line)}.mobile-header,#menu-close{display:none}#sidebar{gap:28px;z-index:80;overflow:visible}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.toolbar .search{width:240px}.toolbar details.menu[open]>div{width:240px}.toolbar label,.check-row{display:flex;align-items:center;gap:8px;font-weight:400;min-height:44px}.toolbar input[type=checkbox],.check-row input{min-height:20px;width:20px;height:20px;accent-color:var(--accent)}.brand-form{max-width:850px}.brand-card{min-height:230px;display:flex;flex-direction:column;gap:16px}.brand-card svg{width:28px;height:28px;color:var(--muted)}.brand-card h2{margin:0;overflow-wrap:anywhere}.brand-card p{margin:0;overflow-wrap:anywhere}.brand-card .card-footer{margin-top:auto;display:flex;gap:8px;justify-content:space-between}.brand-context{display:flex;align-items:center;gap:12px;margin-bottom:20px}.brand-context>a{color:var(--accent);font-weight:600}.copy-actions{justify-content:flex-start;margin:0 0 24px}.version-notes{margin-top:22px}.notice{padding:16px;border:1px solid var(--line);border-radius:12px;background:white}.notice a{text-decoration:underline}.tabs a.active{border-color:var(--accent);color:var(--accent)}fieldset{border:0;padding:0;margin:0;min-width:0}.brand-form .form-grid label{min-width:0}.brand-form .form-grid label:nth-last-child(-n+3){grid-column:1/-1}.order-card h2{overflow-wrap:anywhere}#account .quiet{color:#c4c4ca}#copy-fallback textarea{width:100%;min-height:220px}#copy-fallback{max-width:700px}main{margin:0 auto}button svg{width:22px;height:22px}
@media(max-width:850px){.shell,.collapsed .shell{display:block}.mobile-header{display:flex;align-items:center;gap:14px;padding:12px 16px;background:#202020;color:white}.mobile-header .wordmark{font-size:22px}.mobile-header :is(#menu-open,.notification-bell){padding:10px;border-color:#555;background:transparent;color:white}#sidebar,.collapsed #sidebar{position:fixed;top:0;bottom:0;left:0;height:100dvh;width:280px;max-width:85vw;padding:28px 20px;display:flex;flex-direction:column;align-items:stretch;transform:translateX(-105%);transition:transform .18s;overflow-y:auto}.menu-open #sidebar{transform:translateX(0)}#menu-close{display:inline-flex;align-self:flex-end;min-height:44px}#sidebar .wordmark,.collapsed #sidebar .wordmark{display:block;font-size:24px}#sidebar .wordmark:before{content:none}#sidebar nav{display:grid;margin:0;gap:7px}#sidebar nav span,#sidebar .account-name span,#sidebar .side-bottom>a,#sidebar .side-bottom{display:block;font-size:14px}#sidebar .side-bottom{margin-top:auto}#sidebar nav a{padding:13px}#sidebar #collapse{display:none}#sidebar #brand-switcher{display:block}.nav-group,.collapsed .nav-group{font-size:11px}.menu-open{overflow:hidden}#menu-backdrop{position:fixed;inset:0;border:0;border-radius:0;background:#0008;z-index:70;width:100%;height:100%}.collapsed .mobile-header .wordmark{font-size:22px}.collapsed .mobile-header .wordmark:before{content:none}.toolbar .search{max-width:none;width:100%}.page-head{flex-wrap:wrap}.toolbar{width:100%}.toolbar .search{flex-basis:100%}.brand-card .card-footer{flex-wrap:wrap}.toolbar details.menu[open]>div{left:0;right:auto}.wordmark{display:block}.brand-form .form-grid{grid-template-columns:1fr}.brand-context{flex-wrap:wrap}}
.brand-picker summary{color:var(--ink)}.brand-picker summary:after{content:" ▾"}.brand-picker button{overflow-wrap:anywhere;white-space:normal}.brand-picker[open]>div{color:var(--ink)}
.brand-card .card-footer{flex-wrap:wrap}.brand-card .card-footer .button,.brand-card .card-footer button{font-size:14px;white-space:nowrap;padding:10px 14px}#sidebar .brand{margin-bottom:24px}#collapse{top:76px}@media(max-width:850px){#sidebar .brand{margin-bottom:0}}

.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:28px}.metric{display:flex;flex-direction:column;gap:18px;padding:22px}.metric>span{color:var(--muted);font-size:14px}.metric strong{font-size:36px;line-height:1}.overview-columns{display:grid;grid-template-columns:1.25fr 1fr;gap:22px;align-items:start}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.section-head h2{margin:0}.section-head a{font-size:14px;color:var(--accent)}.activity-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-top:1px solid var(--line)}.activity-row p{font-size:13px;color:var(--muted);margin:6px 0 0}.activity-row>div{min-width:0;overflow-wrap:anywhere}.activity-row>span{flex-shrink:0}.compact-empty{padding:30px 12px}.metric:hover,.activity-row:hover{color:var(--accent)}@media(max-width:1000px){.overview-columns{grid-template-columns:1fr}}@media(max-width:600px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric{padding:16px}.metric strong{font-size:30px}.activity-row{gap:10px}.activity-row .chip{font-size:11px}}

.queue-toolbar,.bulk-bar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px}.queue-toolbar>input{flex:1;min-width:220px}.bulk-bar{padding:14px 18px;background:#eeedf8;border-radius:12px}.bulk-bar label{display:flex;align-items:center;gap:8px}.bulk-bar select{width:auto;margin-left:auto}.bulk-bar input,.queue-row>input{width:18px;height:18px;accent-color:var(--accent)}.queue-table{padding:0 22px}.queue-row{display:grid;grid-template-columns:24px minmax(180px,1fr) 180px 150px;align-items:center;gap:18px;padding:19px 0;border-bottom:1px solid var(--line)}.queue-row.read-only-row{grid-template-columns:minmax(180px,1fr) 180px 150px}.queue-row:last-child{border-bottom:0}.queue-row small{display:block;color:var(--muted);margin-top:6px}.queue-row .chip{justify-self:start}.queue-row .assignee{font-size:13px;color:var(--muted)}@media(max-width:700px){.queue-row,.queue-row.read-only-row{grid-template-columns:24px 1fr;gap:10px}.queue-row.read-only-row>a{grid-column:2}.queue-row .chip{grid-column:2}.queue-row .assignee{grid-column:2}.bulk-bar select{margin-left:0;flex:1}.queue-table{padding:0 16px}}

.brand-stats{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 18px}.brand-stats span{font-size:12px;padding:5px 8px;background:#f4f3f7;border-radius:6px;color:#555}.library-card{display:flex;flex-direction:column;gap:10px}.library-card h2,.library-card p{margin:0}.library-card>.button{margin-top:12px}.library-number{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:#eeedf8;color:var(--accent);font-size:20px;font-weight:700}.downloads{border-top:1px solid var(--line);padding-top:14px;margin-top:6px}.downloads summary{cursor:pointer;font-size:14px;font-weight:600}.downloads>div{display:grid;gap:10px;margin-top:14px}.downloads a{color:var(--accent);font-size:14px}

select{font:inherit;font-size:14px;min-height:44px;padding:10px 32px 10px 12px;border:1px solid var(--line);border-radius:10px;background-color:white;color:var(--ink);max-width:100%}.queue-toolbar>label{display:grid;gap:6px;font-size:13px}.queue-toolbar input[type=search]{min-height:44px}.queue-toolbar .menu>div label{margin-bottom:10px}.queue-toolbar .menu select{width:100%}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #8881ff;outline-offset:3px}
/* Shared header and sidebar controls. */
.mobile-header{display:flex;align-items:center;gap:14px;padding:12px 20px;min-height:64px;background:#202020;color:white;border-bottom:1px solid #38383d}
.mobile-header .wordmark,.collapsed .mobile-header .wordmark{display:block;font-size:22px;letter-spacing:-.035em}
.collapsed .mobile-header .wordmark:before{content:none}
.mobile-header :is(#menu-open,.notification-bell){border:0;background:transparent;color:#ddd;padding:10px;border-radius:8px}
.mobile-header :is(#menu-open,.notification-bell):hover{background:#353539;color:white}
.shell{min-height:calc(100vh - 94px)}
#sidebar{height:calc(100vh - 94px);top:0;gap:20px;padding-top:20px}
#sidebar>.brand,#sidebar>#collapse{display:none}
.nav-group{margin-top:0}
.brand-picker>summary{display:flex;align-items:center;gap:10px;background:transparent!important;border-color:transparent!important;color:white;padding:6px!important}
.brand-picker>summary:hover{background:#323237!important}
.brand-picker>summary:after{content:none}
.brand-avatar{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:8px;background:#ededf1;color:#30313e;font-size:15px;font-weight:500}
.brand-picker-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:500}
.brand-picker summary>svg{width:18px;height:18px;flex:none}
.brand-picker[open]>div{width:270px;max-width:calc(100vw - 48px)}
.brand-picker>div button{display:flex;gap:10px;width:100%;font-weight:500;padding:8px}
.brand-picker>div button[aria-pressed=true]{background:#eeecff;color:#4146a0}
.brand-check{margin-left:auto}.brand-picker>div>a{display:flex;align-items:center;gap:8px}.brand-picker>div>a svg{width:18px;height:18px}
.menu summary{display:flex;align-items:center;gap:8px}.menu summary::-webkit-details-marker{display:none}
.menu summary>svg{width:18px;height:18px;flex:none}
.filter-count{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:50%;background:var(--accent);color:white;font-size:11px;font-weight:700;line-height:1}
.filter-count:empty{display:none}
.queue-toolbar .menu[open]>div,.toolbar .menu[open]>div{max-height:min(65vh,560px);overflow:auto;width:260px}
.queue-row>a{min-width:0}.queue-row strong,.queue-row small{overflow-wrap:anywhere}.queue-row .bundle-chip{display:inline-flex;margin-top:9px;font-size:11px;background:#f3f3f6;color:#68686f}
.request-context{margin-bottom:24px}.request-context h2{font-size:20px}.request-context h3{font-size:15px;margin:20px 0 6px}.request-context details{border-top:1px solid var(--line);padding-top:16px;margin-top:20px}.request-context summary{cursor:pointer;font-weight:600}.request-notes{white-space:pre-wrap;overflow-wrap:anywhere}.request-context .chips{overflow-wrap:anywhere}.request-context .chips .chip{white-space:normal}
@media(max-width:850px){.mobile-header{padding:10px 16px}#sidebar,.collapsed #sidebar{height:100dvh;top:0;padding-top:18px}.brand-picker>summary{padding:6px!important}.brand-picker[open]>div{width:100%;min-width:0}#sidebar>#menu-close{border:0;background:transparent;color:white;padding:10px;border-radius:8px}.request-context .section-head{align-items:flex-start;flex-wrap:wrap}.queue-toolbar .menu[open]>div{left:auto;right:0;max-width:calc(100vw - 32px)}}
/* Choice controls must never inherit text-field dimensions. */
input[type="checkbox"],input[type="radio"]{box-sizing:border-box;appearance:auto;width:18px;height:18px;min-width:18px;min-height:18px;max-width:18px;max-height:18px;padding:0;margin:0;flex:0 0 18px;accent-color:var(--accent)}
label:has(>input[type="checkbox"]),label:has(>input[type="radio"]){display:flex;align-items:center;gap:10px;min-height:40px;font-weight:400;cursor:pointer}
.queue-toolbar .menu>div label:has(>input[type="checkbox"]){margin:0;padding:6px 8px;border-radius:6px}
.queue-toolbar .menu>div label:has(>input[type="checkbox"]):hover{background:#f4f4f7}
.mobile-header .portal-logo{display:inline-flex;align-items:center;gap:11px;font-size:17px;line-height:1.06;letter-spacing:-.025em;font-weight:700}.portal-logo-second{display:block}.portal-logo-mark{display:grid;place-items:center;background:#fff;color:#000;border-radius:8px;width:36px;height:36px;transform:rotate(-4deg);flex:none}.portal-logo-mark svg{transform:rotate(-45deg);width:28px;height:28px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:850px){.queue-toolbar .menu[open]>div{left:0;right:auto;max-width:calc(100vw - 48px);max-height:min(55dvh,460px)}}
@media(max-width:850px){.queue-toolbar .menu[open]>div{position:fixed;left:16px;right:16px;top:auto;bottom:16px;width:auto;max-width:none;max-height:min(65dvh,560px);z-index:90}}
/* Keep search and actions together without making search the whole row. */
.page-head:has(>.toolbar){display:block}.page-head>.toolbar{margin-top:20px;justify-content:flex-start}.toolbar .search{width:min(260px,40vw);flex:0 1 260px}.queue-toolbar>input[type=search]{flex:0 1 340px;width:340px;min-width:180px}
@media(max-width:850px){.page-head>.toolbar{display:flex;flex-wrap:wrap;gap:8px}.toolbar .search{flex:1 1 140px;width:140px;max-width:none}.toolbar>.button{padding-inline:14px}.queue-toolbar>input[type=search]{flex:1 1 190px;width:auto}.toolbar .menu[open]>div{position:fixed;left:16px;right:16px;top:auto;bottom:16px;width:auto;max-height:min(65dvh,560px);z-index:90}}
/* Team dialogs and canonical themed select adapter. */
.member-list{overflow:visible}.invitations{margin-top:24px}.invite-actions{display:flex;gap:8px;flex-wrap:wrap}details.menu button.danger{color:#b32940}.team-dialog h2{margin:0}.team-dialog{max-width:480px}.team-dialog .section-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.team-dialog .section-head button{font-size:24px;padding:4px 12px}.team-dialog p{margin:0}.team-dialog .actions{margin-top:4px}
.hs{position:relative;min-width:0}.hs-native{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;pointer-events:none}.hs-btn{display:flex;width:100%;justify-content:space-between;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:10px 12px;font-weight:400}.hs-list{position:absolute;z-index:1200;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:5px;box-shadow:0 8px 28px #0002;max-height:264px;overflow:auto;min-width:100%}.hs-list[hidden]{display:none}.hs-opt{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;cursor:pointer;border-radius:6px}.hs-opt.is-active,.hs-opt.is-sel{background:#eeecff}.hs-opt.is-disabled{opacity:.5;cursor:not-allowed}.hs svg{width:16px;height:16px}.hs-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:600px){.invite-actions{width:100%}.invitations .list-row{flex-wrap:wrap}.team-dialog{padding:20px}}

#notification-host{margin-left:auto}.notification-bell{position:relative;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:10px!important}.notification-bell svg{width:22px;height:22px}.notification-bell .count-badge{position:absolute;right:-6px;top:-6px;background:#514bf0;color:white;min-width:20px;height:20px;border-radius:50%;font-size:11px;display:grid;place-items:center}.notification-bell .count-badge[hidden]{display:none}.notification-panel{position:fixed;inset:106px 20px auto auto;margin:0;width:min(420px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 126px);padding:20px;overflow:hidden}.notification-panel::backdrop{background:transparent}.notification-panel .section-head{display:flex;justify-content:space-between;align-items:center}.notification-panel h2{font-size:20px;margin:0}.notification-panel .section-head button{font-size:24px}.notification-content{overflow:auto;max-height:calc(100dvh - 220px)}.notification-item{display:flex;align-items:start;gap:8px;padding:14px 10px;border-bottom:1px solid var(--line)}.notification-item a{flex:1;text-decoration:none;color:var(--ink)}.notification-item strong{font-size:14px;font-weight:500;line-height:1.5;display:block}.notification-item small{display:block;color:var(--muted);margin-top:6px}.notification-item.unread{background:#f2f0ff;border-radius:8px}.notification-item .quiet{padding:4px 8px}.notification-content>.quiet{margin:8px 0}@media(max-width:600px){.notification-panel{inset:auto 12px 12px;margin:0;width:calc(100vw - 24px);max-height:80dvh;border-radius:18px}.notification-panel::backdrop{background:#0006}.notification-content{max-height:calc(80dvh - 90px)}}

.bulk-bar[hidden]{display:none!important}#queue-sort{width:auto;min-width:145px;height:44px}.queue-row.read-only-row{grid-template-columns:minmax(0,1fr) 160px 160px}@media(max-width:700px){.queue-row.read-only-row{grid-template-columns:minmax(0,1fr)}.queue-row.read-only-row>a,.queue-row.read-only-row>.chip,.queue-row.read-only-row>.assignee{grid-column:1}.queue-row:not(.read-only-row) .assignee{grid-column:2}.queue-toolbar #queue-sort{flex:0 1 auto}.bulk-bar{flex-wrap:wrap}.bulk-bar select{width:100%;max-width:none}}

.video-next-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.video-next-actions button{font-size:13px;padding:10px 15px}.video-tabs{margin:20px 0}.video-tabs button{background:transparent;color:var(--muted);border-radius:0;border-bottom:2px solid transparent}.video-tabs button.active{color:var(--ink);border-bottom-color:var(--accent)}[role=tabpanel][hidden]{display:none!important}.request-copy-actions{display:flex;align-items:center;gap:10px;margin-bottom:24px}.request-copy-actions .menu{margin-left:auto}.saved-brand{border-top:1px solid var(--line);margin-top:28px;padding-top:20px}.video-context{margin-top:-8px}.video-admin{position:relative;padding:0!important;border:0;background:transparent;max-width:350px}.video-admin summary{padding:10px;cursor:pointer}.video-admin[open]{position:absolute;right:24px;top:180px;z-index:30;background:white;padding:18px!important;box-shadow:0 8px 30px #0002}.activity-event{padding:12px 0;border-bottom:1px solid var(--line)}.activity-event small{display:block;color:var(--muted);margin-top:4px}@media(max-width:700px){.video-next-actions{width:100%}.request-copy-actions{flex-wrap:wrap}.video-admin[open]{left:16px;right:16px;max-width:none}.page-head:has(.video-next-actions){flex-wrap:wrap}}

.new-order-dialog{width:min(520px,calc(100vw - 32px));max-width:none;padding:28px}.new-order-dialog .section-head{display:flex;align-items:start;justify-content:space-between;gap:16px}.new-order-dialog h2{margin:0}.new-order-dialog .section-head p{margin:6px 0;color:var(--muted)}.quantity-presets{display:flex;gap:8px}.quantity-presets button{flex:1}.quantity-presets button[aria-pressed=true]{background:#eeecff;border-color:#514bf0;color:#3530b2}.order-quote{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0}.order-quote>div{display:flex;justify-content:space-between;align-items:center}.order-quote strong{font-size:30px}.order-quote p{color:#267443;margin:6px 0 0}.new-order-dialog .schedule-note{font-size:14px}.new-order-dialog .actions{justify-content:flex-end}@media(max-width:600px){.new-order-dialog{padding:20px}}

.customer-video-request{margin:20px 0}.customer-video-request .section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.customer-video-request h2{margin:0}.dictation-field{position:relative;display:block}.dictation-field textarea{padding-right:52px}.dictation-button{position:absolute;right:8px;bottom:10px;width:34px;height:34px;padding:7px!important;border-radius:50%;background:#f0efff;color:#4842d5}.dictation-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}.dictation-button[aria-pressed=true]{background:#b32940;color:white}.dictation-status:empty{display:none}.dictation-status{font-size:13px;color:var(--muted)}

.new-order-dialog .stack{gap:16px}.new-order-dialog .form-note,.new-order-dialog .schedule-note{margin:0}.new-order-dialog .actions{margin-top:4px}

.brand-form .form-grid{align-items:start}.brand-form .form-grid label{align-content:start}.dictation-button{min-height:34px}

.variant-control{display:grid;gap:6px}.variant-control>span{font-size:12px;color:var(--muted)}.player-tools{align-items:end}
.comment>small{display:block;margin:8px 0;color:var(--muted)}.comment>.anchor{background:#fff;color:#393870;border:1px solid #d6d2f1}.comment>label{display:grid;gap:6px;margin-top:12px}.comment{line-height:1.5}

/* Authentication is a separate screen, without dashboard navigation. */
.auth-mode #sidebar,.auth-mode #menu-open,.auth-mode .notification-bell{display:none!important}
.auth-mode .shell{display:block}.auth-mode #main{max-width:none;width:100%;margin:0}
.auth{max-width:480px;margin:clamp(24px,7vh,80px) auto}.otp-dialog{max-width:440px;width:calc(100% - 32px)}
.dialog-close{display:grid;place-items:center;width:44px;height:44px;padding:0;font-size:30px;line-height:1;position:absolute;right:16px;top:16px}
.otp-dialog h2{padding-right:40px}.otp-dialog [name=code]{font-size:28px;letter-spacing:.3em;text-align:center}

/* The application chrome owns fixed rows; only the workspace scrolls. */
html{height:100%;overflow:hidden}body{height:100dvh;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr)}
.mobile-header{position:relative;z-index:60;flex-shrink:0}.shell{height:100%;min-height:0;overflow:hidden}
#main{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#sidebar{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;position:relative;top:auto}
@media(max-width:850px){#sidebar,.collapsed #sidebar{position:fixed;height:100dvh;top:0;bottom:0}#main{width:100%}}

.customer-review.review-grid{display:block}.customer-review .sticky-review{position:static}.customer-review .player-wrap video{max-height:62vh;min-height:220px}.customer-review .customer-video-request{margin:0}
.customer-review #review-side{width:100%;max-width:none}.customer-review .comments{max-height:none}
@media(min-width:1000px){.customer-review .comment-form{max-width:760px}.customer-review .player-wrap video{height:55vh}}

.brand-avatar{overflow:hidden;flex:none}.brand-avatar img{width:100%;height:100%;object-fit:contain;background:white}
.brand-card .brand-avatar{width:56px;height:56px;border-radius:14px;font-size:22px}.brand-logo-field{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 24px}.logo-upload{position:relative;display:flex;align-items:center;gap:14px;cursor:pointer}.logo-upload .brand-avatar{width:64px;height:64px;border-radius:50%;background:#e8e8ee;font-size:24px}.logo-upload small{display:block;margin-top:4px;color:var(--accent)}.logo-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.logo-upload:focus-within{outline:3px solid var(--accent);outline-offset:4px;border-radius:10px}

/* A single compact purchase decision, with optional scope detail. */
.order-modal-title,.order-brand{display:flex;align-items:center;gap:12px}.order-modal-title h2{margin:0}.order-brand select{flex:1;min-width:0}.order-brand .brand-avatar{width:40px;height:40px}.dialog-close{min-width:44px;min-height:44px;font-size:28px;line-height:1;padding:8px}.new-order-dialog .order-quote{border:0;padding:4px 0;display:grid;gap:10px}.new-order-dialog .order-quote>div{display:flex;justify-content:space-between;align-items:center;gap:16px}.savings-chip{justify-self:start;background:#eaf7ef;color:#287046}.scope-info{position:relative;font-size:14px}.scope-info summary{display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--line);border-radius:50%;cursor:pointer;list-style:none}.scope-info summary::-webkit-details-marker{display:none}.scope-info>div{position:absolute;z-index:10;top:32px;right:0;width:240px;max-width:70vw;padding:16px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px #0002}.scope-info:not([open]):hover>div{display:block}.new-order-dialog{max-height:calc(100dvh - 32px);overflow:auto}.new-order-dialog .quantity-presets{border:0;padding:0}

.video-preview{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#181818;border-radius:12px}.video-library-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.library-card{padding:0;overflow:visible;min-width:0}.library-card>.video-preview{border-radius:var(--radius) var(--radius) 0 0}.library-card-body{padding:20px}.library-card-body h2{font-size:18px;margin:12px 0 20px}.library-card-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.library-card .downloads{position:relative}.library-card .downloads>div{position:absolute;right:0;z-index:12;min-width:220px;padding:16px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px #0002}.library-card .downloads a{display:block;padding:8px 0}.library-card .downloads summary{font-size:14px;cursor:pointer}.video-pending{display:grid;place-content:center;gap:4px;text-align:center;aspect-ratio:16/9;background:#e9e9ef;border-radius:12px;color:var(--muted);font-size:13px}.video-pending>span:first-child{font-size:32px}.view-toggle{display:flex;gap:4px}.view-toggle button{padding:10px 12px;min-height:44px}.view-toggle button[aria-pressed=true]{background:#eeecff;color:#3530b2;border-color:#514bf0}.order-page-head{align-items:flex-start}.order-page-head .chips{margin-top:12px}.order-videos{display:grid;gap:18px}.order-video-card{min-width:0}.order-videos.list-view .order-video-card{display:grid;grid-template-columns:144px minmax(0,1fr) auto;align-items:center;gap:24px;padding:20px}.video-card-info h2{font-size:18px;margin:0 0 12px}.order-videos.grid-view{grid-template-columns:repeat(3,minmax(0,1fr))}.order-videos.grid-view .order-video-card{padding:16px;display:flex;flex-direction:column;align-items:stretch;gap:18px}.order-videos.grid-view .order-video-card>a{align-self:start;margin-top:auto}.order-videos.grid-view .video-card-info h2{margin-bottom:12px}.queue-toolbar #library-status{width:auto;min-width:160px;height:44px}
@media(min-width:1700px){.video-library-grid,.order-videos.grid-view{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1150px){.video-library-grid,.order-videos.grid-view{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.video-library-grid,.order-videos.grid-view{grid-template-columns:1fr}.order-videos.list-view .order-video-card{grid-template-columns:112px minmax(0,1fr);gap:14px;padding:14px}.order-videos.list-view .order-video-card>a{grid-column:2;justify-self:start}.order-videos.list-view .chips{gap:6px}.order-page-head{gap:12px}.view-toggle button{padding:10px}.view-toggle button span{display:none}.library-card .downloads>div{right:0;max-width:calc(100vw - 64px)}}

.scope-info>div{left:50%;right:auto;transform:translateX(-50%)}

/* Anchored, bounded notification dropdown on desktop and phone. */
.notification-panel[open]{display:grid;grid-template-rows:auto minmax(0,1fr);inset:var(--notification-top,106px) 12px auto auto;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - var(--notification-top,106px) - 12px);padding:20px;border-radius:18px;overflow:hidden}
.notification-panel::backdrop{background:transparent}
.notification-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;max-height:none;-webkit-overflow-scrolling:touch}
.version-menu[open]>div{left:0;right:auto;min-width:160px;max-width:calc(100vw - 48px)}
.request-copy-actions .menu{margin-left:0}
.request-copy-actions .menu>div{left:0;right:auto;width:280px;max-width:calc(100vw - 72px)}
.team-review{grid-template-columns:minmax(0,1fr)}
.team-review .sticky-review{position:static;max-height:none}
.review-reference>summary{cursor:pointer;font-size:20px;font-weight:600;min-height:28px}
.review-reference[open]>summary{margin-bottom:20px}
.request-admin-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.hold-dialog{max-width:min(520px,calc(100vw - 32px))}

.request-copy-actions>.menu{border:0;padding:0;margin:0}

/* Customer controls: compact, attached menus and shared navigation. */
.notification-panel [aria-label="Close notifications"]{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;flex:none;border-radius:50%;line-height:1;display:inline-flex;align-items:center;justify-content:center}
.quantity-stepper{display:flex;align-items:center;justify-content:center;gap:16px}
.quantity-stepper button{width:52px;height:52px;min-height:52px;padding:0;border-radius:50%;font-size:26px;flex:none}
.quantity-stepper input{width:110px;height:56px;text-align:center;font-size:22px;padding:8px}
.quote-total{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.new-order-dialog .order-quote>div{gap:10px;flex-wrap:wrap}
.order-brand{display:block}.order-brand-picker{width:100%;margin:0!important;padding:0!important;border:0!important}
.order-brand-picker>summary{display:flex;align-items:center;gap:12px;padding:8px 12px!important}
#order-brand-name{flex:1;min-width:0;overflow-wrap:anywhere}
.order-brand-picker[open]>div{left:0;right:0;top:100%;width:100%;max-height:220px;overflow:auto}
.order-brand-picker>div>button{display:flex;align-items:center;gap:12px;width:100%;white-space:normal}
.field-label{display:block;margin-bottom:8px}
.view-toggle{gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;flex:none;background:white}
.view-toggle button{border:0;border-radius:0;margin:0;display:flex;align-items:center;gap:7px}
.view-toggle button+button{border-left:1px solid var(--line)}
.video-display-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.anchored-filter>summary{display:flex;align-items:center;gap:7px}
.anchored-filter[open]>div{z-index:100;overflow-y:auto;overscroll-behavior:contain}
.anchored-filter>div>label{display:flex;align-items:center;gap:10px;min-height:44px;padding:7px;margin:0;font-weight:400;cursor:pointer}
.anchored-filter input[type=checkbox]{width:18px;height:18px;min-height:0;padding:0;flex:none;margin:0}
.order-video-card[hidden]{display:none!important}
.library-card-actions>.downloads{border:0;padding:0;margin:0}
.video-library-grid.list-view{display:grid;grid-template-columns:1fr}
.video-library-grid.list-view .library-card{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center;padding:16px;gap:20px}
.video-library-grid.list-view .video-preview,.video-library-grid.list-view .video-pending{width:180px;height:110px;border-radius:12px}
.video-library-grid.list-view .library-card-body{padding:0}
.sidebar-top{display:flex;align-items:center;gap:8px;min-width:0}
.sidebar-top #brand-switcher{flex:1;min-width:0}
#sidebar .sidebar-top #menu-close{display:inline-flex;order:2;background:transparent;color:white;border:0;position:static;padding:8px;width:40px;height:44px;flex:none}
.sidebar-top:has(#brand-switcher:empty){justify-content:flex-end}
#sidebar .side-bottom{display:block;font-size:14px;margin-top:auto}
.profile-menu>summary{display:flex;align-items:center;gap:10px;padding:8px!important;border:0!important;color:white;background:transparent!important}
.profile-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#eeeeF2;color:#292930;flex:none;font-size:16px}
.profile-identity{display:grid;min-width:0;flex:1;font-size:13px;gap:3px}
.profile-identity strong,.profile-identity small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-identity small{color:#c4c4ca;font-size:11px}
.profile-menu summary>svg{width:16px;flex:none}
.profile-menu[open]>div{bottom:calc(100% + 8px);top:auto;left:0;right:0;min-width:0;width:100%;color:var(--ink)}
.profile-menu>div>a,.profile-menu>div>button{padding:12px;display:block;width:100%;text-align:left;border:0;margin:0;font-size:14px;color:var(--ink)}
@media(min-width:851px){.collapsed .profile-identity,.collapsed .profile-menu summary>svg{display:none}.collapsed .profile-menu[open]>div{position:fixed;left:72px;bottom:20px;width:230px}.collapsed .sidebar-top #menu-close{display:none!important}}
@media(max-width:850px){#sidebar .sidebar-top #menu-close{order:2;align-self:center}.sidebar-top .brand-picker-name{font-size:14px}.sidebar-top .brand-avatar{width:30px;height:30px}.sidebar-top .brand-picker>summary{gap:6px}.video-library-grid.list-view .library-card{grid-template-columns:100px minmax(0,1fr);gap:12px}.video-library-grid.list-view .video-preview,.video-library-grid.list-view .video-pending{width:100px;height:80px}.video-display-controls{gap:8px}.order-page-head{flex-wrap:wrap}.profile-menu>summary{padding:4px!important}}
details.menu.profile-menu[open]>div{top:auto;bottom:calc(100% + 8px);height:auto}
#sidebar .profile-menu>div>button{color:var(--ink)}
details.menu.order-brand-picker[open]>div{top:100%;left:0;right:0;min-width:0}
@media(min-width:851px){.collapsed details.menu.profile-menu[open]>div{bottom:20px;top:auto}}
@media(min-width:851px){body:not(.collapsed) .shell{grid-template-columns:260px minmax(0,1fr)}.sidebar-top .brand-avatar{width:30px;height:30px}.sidebar-top .brand-picker>summary{gap:6px}}
.sidebar-top .brand-picker[open]>div{width:100%;min-width:0;max-width:none}

.review-download-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.review-download-actions .request-admin-actions{margin:0;align-items:center}.review-download-actions .button,.review-download-actions button{font-size:14px;padding:10px 16px}
@media(max-width:600px){.team-review .review-info{flex-wrap:wrap}.review-download-actions{width:100%;gap:8px;justify-content:flex-start}.review-download-actions .request-admin-actions{gap:8px}.review-download-actions .button,.review-download-actions button{padding:10px 12px}}
.insight-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.insight-metric{padding:22px}.insight-metric>span{display:flex;align-items:center;gap:8px;color:var(--muted)}.insight-metric>strong{display:block;font-size:36px;margin-top:12px;letter-spacing:-1px}.metric-hint{position:relative;border:0;padding:0}.metric-hint summary{display:grid;place-items:center;width:20px;height:20px;border:1px solid var(--line);border-radius:50%;font-size:13px;cursor:pointer;list-style:none}.metric-hint>div{position:absolute;z-index:20;background:var(--ink);color:white;padding:10px;border-radius:8px;width:197px;max-width:55vw;right:0;font-size:13px;text-transform:none;letter-spacing:normal}.insight-chips{margin-bottom:24px}.insight-columns{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px;margin-bottom:24px}.insight-columns>.card{min-width:0}.insight-job{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0;border-top:1px solid var(--line)}.insight-job small{display:block;color:var(--muted);margin-top:5px}.insight-job>span:first-child{min-width:0;overflow-wrap:anywhere}.insight-workload{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 0}.insight-workload>span:first-child{flex:1}.insight-chart{display:block;width:100%;height:auto;margin-top:20px;overflow:visible}.insight-chart text{font-size:12px;fill:var(--muted)}.chart-legend{display:flex;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:14px}.chart-legend span:before{content:'';display:inline-block;width:9px;height:9px;border-radius:2px;background:var(--series);margin-right:6px}.analytics-dates{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:20px}.analytics-dates label{max-width:200px}.analytics-dates[hidden]{display:none}.table-scroll{overflow:auto}.insight-data table{width:100%;border-collapse:collapse;margin-top:16px}.insight-data th,.insight-data td{padding:10px;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}.insight-data th:first-child{text-align:left}@media(max-width:1000px){.insight-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.insight-columns{grid-template-columns:1fr}}@media(max-width:520px){.insight-metric{padding:16px}.insight-metric>strong{font-size:30px}.insight-job{align-items:flex-start;flex-wrap:wrap}.insight-metrics{gap:10px}}

.page-skeleton{display:grid;gap:24px}.skeleton-heading{height:38px;width:220px}.skeleton-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.skeleton-grid>div{height:130px}.skeleton-body{height:320px}.page-skeleton>div:not(.skeleton-grid),.skeleton-grid>div{border-radius:16px;background:linear-gradient(100deg,#eaeaf0 25%,#f9f9fb 45%,#eaeaf0 65%);background-size:250% 100%;animation:loading-shimmer 1.5s linear infinite}@keyframes loading-shimmer{to{background-position:-250% 0}}@media(max-width:600px){.skeleton-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.skeleton-grid>div:last-child{display:none}}@media(prefers-reduced-motion:reduce){.page-skeleton>div,.skeleton-grid>div{animation:none!important}}

.cost-section{margin-top:24px;min-width:0}.cost-section small{display:block;font-size:13px;line-height:1.5;color:var(--muted,#666)}.cost-run{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid #ddd}.cost-run>div{flex:1;min-width:180px}.cost-run pre,.cost-dialog pre{width:100%;overflow:auto;max-height:320px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.cost-dialog{width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #ddd;border-radius:20px}.cost-dialog::backdrop{background:#0006}.cost-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cost-dialog label{display:block;margin:12px 0}.cost-close{width:44px;height:44px;padding:0;flex:none;border-radius:50%}@media(max-width:500px){.cost-fields{grid-template-columns:1fr}.cost-section .insight-metric strong{font-size:26px}}
.cost-glance{padding:20px 24px;margin-bottom:20px}.cost-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.cost-stat>span{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:14px}.cost-stat>strong{display:block;font-size:30px;letter-spacing:-.8px;margin-top:8px;font-variant-numeric:tabular-nums}.cost-coverage{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:14px;margin-top:18px;font-size:13px;color:var(--muted)}.cost-coverage strong{font-weight:500;color:var(--ink)}.cost-period{font-size:13px;margin-top:-10px}.cost-tabs,.cost-setting-tabs{display:flex;gap:4px;margin:0 0 20px;background:var(--bg);padding:4px;border-radius:12px}.cost-tabs button,.cost-setting-tabs button{flex:1;background:transparent;color:var(--muted);border:0;border-radius:8px;padding:8px 10px;min-height:40px}.cost-tabs button[aria-selected=true],.cost-setting-tabs button[aria-pressed=true]{background:var(--card);color:var(--ink);box-shadow:0 1px 4px #0001}.cost-facts{display:flex;gap:14px 28px;flex-wrap:wrap;margin:0 0 20px;font-size:14px}.cost-facts>span{display:flex;align-items:center;gap:8px;color:var(--muted)}.cost-facts strong{color:var(--ink);font-weight:600}.cost-detail{border:0;border-top:1px solid var(--line);border-radius:0;padding:14px 0 0;margin-top:16px}.cost-detail summary{cursor:pointer;font-size:14px;font-weight:500;min-height:30px}.cost-detail p{font-size:14px;color:var(--muted)}.cost-empty{display:grid;place-content:center;text-align:center;gap:8px;padding:34px 12px}.cost-empty span{font-size:14px;color:var(--muted);max-width:320px}.cost-data-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}.cost-data-row small{margin-left:auto}.cost-token-list{margin:8px 0}.cost-token-list>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;font-size:14px}.cost-token-list dd{margin:0;font-variant-numeric:tabular-nums}.cost-run{display:block;padding:18px 0}.cost-run-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.cost-run-head .quiet{padding:0;min-height:32px;text-align:left;justify-content:flex-start;min-width:0;overflow-wrap:anywhere}.cost-run-head>span{font-size:14px;flex:none}.cost-run .cost-detail{border:0;padding:0;margin-top:8px}.cost-run:last-child{border-bottom:0}.cost-dialog{padding:24px;width:min(600px,calc(100vw - 24px));overflow-y:auto;overflow-x:hidden;max-height:calc(100dvh - 24px)}.cost-dialog .section-head{margin-bottom:20px}.cost-dialog h2{margin:0}.cost-dialog label{display:flex;flex-direction:column;gap:7px;font-size:14px;margin:0 0 16px;min-width:0}.cost-dialog input,.cost-dialog select{width:100%;max-width:100%;min-width:0;box-sizing:border-box;min-height:44px}.cost-dialog input[type=date]{appearance:none;-webkit-appearance:none;display:block}.cost-dialog .cost-fields{gap:0 16px}.cost-dialog .cost-close{width:40px;height:40px;min-height:40px;border-radius:50%;padding:0}.cost-dialog #cost-form>button{width:100%;margin-top:8px}.cost-dialog>details{margin-top:20px}.cost-dialog #cost-error:empty{display:none}.cost-dialog #cost-fields>p{font-size:13px;color:var(--muted)}@media(max-width:500px){.cost-glance{padding:18px}.cost-summary{gap:16px}.cost-stat>strong{font-size:25px}.cost-stat>span{font-size:13px}.cost-dialog{padding:20px}.cost-dialog .cost-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.cost-setting-tabs button{font-size:13px;padding-inline:6px}.cost-facts{gap:12px}.cost-section [role=tabpanel]>.card{padding:18px}.cost-data-row small{margin-left:0;width:100%}}
.analytics-views{display:flex;gap:8px;margin-bottom:24px}.analytics-views button{border-radius:10px}.analytics-views button[aria-pressed=true]{background:var(--ink);color:white;border-color:var(--ink)}.cost-section[hidden],#production-analytics[hidden]{display:none}.cost-section .metric-hint>div,.metric-hint>div{z-index:1000;box-shadow:0 6px 24px #0003;font-size:14px;line-height:1.45;padding:12px;max-height:calc(100dvh - 24px);overflow:auto}.cost-billing{margin:0 0 20px;padding:12px 0;border-top:0}.cost-section .section-head{flex-wrap:wrap}.analytics-views~#analytics-results .cost-section{margin-top:0}.metric-hint summary{min-width:24px;min-height:24px}

/* Standalone policy pages scroll without the dashboard shell. */
body.standalone-page{display:block;overflow-y:auto}
.identity-auth{width:100%;min-width:0}.identity-auth #identity-signin{width:100%;min-width:0}.identity-auth form{display:flex;flex-direction:column;align-items:stretch;margin:0}.identity-auth input{box-sizing:border-box}.identity-auth h1,.identity-auth h2{margin:0}
