:root { color-scheme:dark; font:20px/1.4 Arial,Helvetica,sans-serif; color:#f4f4f5; background:#141516; --muted:#b0b6bf; --line:#383d44; --panel:#202326; --blue:#a0bff9; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; background:radial-gradient(ellipse at 50% 35%,#191a1b66,transparent 76%),#141516; }
[hidden] { display:none !important; }
a { color:inherit; text-decoration:none; }
button,input,select { font:inherit; }
button,.button { display:inline-flex; align-items:center; justify-content:center; gap:15px; color:inherit; background:linear-gradient(130deg,#25282b,#202225); border:1px solid #666d77; border-radius:11px; min-height:51px; padding:10px 22px; cursor:pointer; font-weight:600; white-space:nowrap; }
button:hover,.button:hover { border-color:#b0c3e3; filter:brightness(1.06); }
button:disabled { opacity:.45; cursor:default; }
.primary { color:#101b2b; background:linear-gradient(115deg,#abcaff,#9cbcf8); border-color:#b2ceff; }
input,select { color:inherit; border:1px solid var(--line); border-radius:12px; background:linear-gradient(130deg,#202326,#1c1f22); min-height:58px; padding:12px 19px; }
select { appearance:none; padding-right:53px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23d5dbe4' stroke-width='2'%3E%3Cpath d='m3 6 6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 20px center; }
input::placeholder { color:#9299a3; }
:focus-visible { outline:2px solid var(--blue); outline-offset:4px; }
.masthead { height:77px; display:flex; align-items:center; gap:32px; padding:0 max(4.3vw,24px); border-bottom:1px solid #2b2f33; }
.brand { display:flex; align-items:center; gap:13px; font-weight:700; letter-spacing:0; white-space:nowrap; }
.brand-mark { width:38px; height:33px; display:grid; place-items:center; color:#172338; border-radius:9px; background:linear-gradient(125deg,#c5ddff,#8caff1); font-size:18px; font-weight:800; }
.product { border-left:1px solid #373b40; padding-left:25px; color:#c4cad3; font-size:18px; font-weight:500; }
.avatar { display:grid; place-items:center; margin-left:auto; width:44px; height:44px; border-radius:50%; background:#303439; font-size:16px; font-weight:700; }
main { width:calc(100% - 8.6vw); max-width:1600px; margin:0 auto; padding:48px 0 90px; }
h1,h2,h3,p { margin:0; }
h1 { font-size:50px; line-height:1.18; letter-spacing:0; font-weight:700; }
h2 { font-size:29px; letter-spacing:0; line-height:1.3; }
.muted { color:var(--muted); }
.page-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.page-heading p { margin-top:7px; }
.page-heading>.button { padding:14px 24px; min-height:58px; }
.icon { width:25px; height:25px; flex:none; stroke:currentColor; stroke-width:1.7; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.filters { display:flex; align-items:center; gap:24px; justify-content:space-between; margin:44px 0; }
.search { width:548px; max-width:44%; display:flex; align-items:center; position:relative; }
.search>.icon { position:absolute; left:20px; width:24px; color:#c1c8d2; }
.search input { width:100%; padding-left:58px; }
.filter-selects { display:flex; gap:15px; }
.filter-selects select { min-width:241px; }
.project-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.project-card { min-width:0; background:linear-gradient(125deg,#232629,#1e2124); border:1px solid var(--line); border-radius:17px; position:relative; }
.project-card-cover { display:block; width:100%; aspect-ratio:16/9; background:#272c32; overflow:hidden; border-radius:16px 16px 0 0; }
.project-card-cover img,.video-thumb img { display:block; width:100%; height:100%; object-fit:cover; }
.image-empty { display:grid; place-items:center; background:linear-gradient(120deg,#223746,#394150); color:#a4bfdf; }
.image-empty .icon { width:42px; height:42px; }
.project-card-details { padding:20px 27px 29px; position:relative; }
.project-card h3 { font-size:27px; font-weight:700; letter-spacing:0; padding-right:42px; overflow-wrap:anywhere; }
.project-card .doctor { margin-top:1px; color:var(--muted); font-weight:500; }
.project-card .status { margin:22px 0 24px; }
.progress-label { margin-bottom:9px; }
.project-progress { width:100%; height:15px; background:#383c42; border-radius:20px; overflow:hidden; }
.project-progress span { display:block; height:100%; border-radius:inherit; background:var(--blue); }
.status { display:flex; align-items:center; gap:10px; color:#8aeda5; }
.status::before { content:''; width:13px; height:13px; border-radius:50%; background:currentColor; flex:none; }
.status[data-state=review] { color:#ffce59; }
.status[data-state=queued] { color:#a6b1bd; }
.status[data-state=attention] { color:#ffb962; }
.status[data-state=no_content] { color:var(--muted); }
#video-rows .editorial-muted .video-title { color:var(--muted); }
#video-rows .editorial-muted .video-thumb { filter:grayscale(1) brightness(.8); }
.status[data-state=rendering] { color:#a0bff9; }
.project-card .status[data-state=editing],.project-card .status[data-state=review] { color:#ffb62c; }
.project-card .status[data-state=completed] { color:#7bd36a; }
.card-menu { position:absolute; right:25px; top:20px; }
.menu { position:relative; }
.menu>summary { display:flex; align-items:center; justify-content:center; width:43px; height:43px; cursor:pointer; list-style:none; border:1px solid var(--line); border-radius:10px; font-weight:700; letter-spacing:2px; background:#25292d; }
.menu>summary::-webkit-details-marker { display:none; }
.menu-dots { width:3.5px; height:3.5px; flex:none; border-radius:50%; background:currentColor; box-shadow:-8px 0 currentColor,8px 0 currentColor; pointer-events:none; }
.menu-popover { position:absolute; right:0; top:48px; z-index:10; min-width:220px; padding:6px; border:1px solid #525a65; border-radius:11px; background:#282d34; box-shadow:0 12px 28px #0008; }
.menu-popover a,.menu-popover button { display:flex; justify-content:start; width:100%; font-size:16px; padding:10px 12px; background:none; border:0; border-radius:6px; min-height:40px; }
.menu-popover a:hover,.menu-popover button:hover { background:#373e48; }
.back { display:flex; align-items:center; gap:9px; color:#d4d8df; margin:-20px 0 18px; }
.back .icon { width:22px; }
.episode-heading h1 { font-size:46px; }
.heading-actions { display:flex; gap:16px; }
.heading-actions button { font-size:18px; padding-inline:23px; }
.episode-settings { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:30px 0 36px; border:1px solid #49515c; background:linear-gradient(120deg,#22262a,#202328); border-radius:13px; padding:16px 0; }
.episode-settings>a,.episode-settings>button { min-width:0; display:flex; align-items:center; gap:27px; padding:0 32px; border:0; border-radius:0; border-right:1px solid #414852; background:none; text-align:left; font-size:18px; min-height:49px; }
.episode-settings>button { border-right:0; }
.episode-settings strong { display:block; font-size:18px; }
.episode-settings small { display:block; font-size:16px; color:#bfc6d0; font-weight:400; margin-top:1px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.episode-settings>*>span:nth-child(2) { min-width:0; flex:1; }
.episode-settings .icon:last-child { width:18px; color:#bfc6d0; }
.episode-settings .icon:first-child { width:30px; height:30px; }
.table-heading { display:flex; align-items:center; gap:15px; margin-bottom:22px; }
.table-heading select { margin-left:auto; min-height:42px; font-size:18px; border-color:#666d77; border-radius:9px; padding-block:6px; }
.table-heading .muted { font-size:18px; }
.table-scroll { overflow-x:auto; border:1px solid #49515c; border-radius:14px; background:linear-gradient(115deg,#202326,#1e2124); }
table { border-collapse:collapse; width:100%; text-align:left; }
th { height:48px; color:#b9c0ca; font-weight:500; font-size:18px; }
th:first-child { padding-left:30px; }
th:first-child { width:48%; }
th:nth-child(2) { width:14%; }
th:nth-child(3) { width:23%; }
td { border-top:1px solid #414852; height:87px; vertical-align:middle; }
td:first-child { padding:9px 24px 9px 30px; }
.video-info { display:flex; align-items:center; gap:24px; }
.video-thumb { width:155px; height:71px; flex:none; border-radius:12px; overflow:hidden; background:#29323a; }
.video-title { font-weight:650; font-size:20px; line-height:1.3; }
.reference-badge { display:table; background:#334158; color:#a9c8ff; padding:3px 11px; border-radius:12px; font-size:14px; font-weight:650; margin-top:6px; }
.row-actions { display:grid; grid-template-columns:minmax(0,1fr) 44px; align-items:center; gap:12px; padding-right:14px; }
.row-actions>.button { min-width:0; min-height:43px; padding:7px 10px; font-size:18px; line-height:1.2; text-align:center; white-space:normal; overflow-wrap:anywhere; border-color:#717984; border-radius:9px; background:transparent; }
.row-actions .menu>summary { width:44px; border:0; background:none; }
.row-actions .menu-popover { top:40px; }
.empty { text-align:center; padding:60px 20px; color:var(--muted); }
.empty p { margin:10px 0 20px; }
#notice { background:#273142; border:1px solid #45618c; border-radius:10px; padding:12px 18px; margin-bottom:20px; font-size:16px; }
#notice[data-error=true] { background:#432d2a; border-color:#92604d; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
dialog { width:min(650px,calc(100vw - 32px)); max-height:90vh; padding:27px; border:1px solid #4b5665; border-radius:17px; background:#20252c; color:inherit; box-shadow:0 24px 80px #0009; font-size:17px; }
dialog::backdrop { background:#070b11b3; backdrop-filter:blur(4px); }
dialog header { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:20px; }
dialog h2 { font-size:25px; }
dialog header button { padding:0; min-height:32px; width:34px; font-size:24px; background:none; border:0; }
dialog label { display:grid; gap:6px; margin-bottom:16px; }
dialog label.check { display:flex; align-items:center; gap:12px; margin:0; padding:12px 0; border-bottom:1px solid var(--line); }
dialog .check input { min-height:0; accent-color:var(--blue); width:18px; height:18px; }
dialog input:not([type=checkbox]),dialog select { width:100%; min-height:47px; }
dialog p { color:var(--muted); margin:12px 0; }
dialog footer { display:flex; justify-content:end; gap:12px; margin-top:22px; }
dialog #modal-message { color:#ffbb8c; }
dialog audio { width:100%; margin:10px 0; }
.editorial-preview { display:block; width:100%; max-height:55vh; background:#111; border-radius:10px; }
@media(max-width:1100px) { :root { font-size:17px; } .project-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .filter-selects select { min-width:185px; } .video-thumb { width:110px; height:65px; } .video-info { gap:14px; } .video-title { font-size:17px; } .episode-settings>*,.episode-settings>button { padding-inline:18px; gap:12px; } }
@media(max-width:760px) { .masthead { height:65px; gap:16px; padding:0 20px; } .product { display:none; } main { width:calc(100% - 36px); padding-top:32px; } h1,.episode-heading h1 { font-size:36px; } h2 { font-size:23px; } .filters { flex-direction:column; align-items:stretch; margin:28px 0; gap:12px; } .search { max-width:none; width:100%; } .filter-selects { gap:10px; } .filter-selects select { width:50%; min-width:0; } .project-grid { grid-template-columns:1fr; } .page-heading { align-items:start; } .page-heading>.button { padding:10px 13px; min-height:47px; font-size:15px; gap:6px; } .episode-heading { flex-direction:column; gap:20px; } .heading-actions { width:100%; gap:10px; } .heading-actions button { flex:1; padding:10px; font-size:15px; gap:9px; } .episode-settings { grid-template-columns:1fr; padding:0; } .episode-settings>a,.episode-settings>button { padding:17px 20px; border-right:0; border-bottom:1px solid #414852; } .episode-settings>button { border-bottom:0; } .table-heading { flex-wrap:wrap; gap:8px; } .table-heading select { margin-left:0; width:100%; } table { min-width:850px; } .back { margin-top:-5px; } }
.cover-inner { width:100%; height:100%; }
.episode-reference-panel { display:flex; align-items:center; gap:16px; margin:26px 0 27px; padding:18px 22px; border:1px solid #49515c; border-radius:13px; background:#20252b; }
.episode-reference-panel.is-pending { border-color:#506b94; background:linear-gradient(110deg,#202e43,#212934); }
.episode-reference-icon { display:grid; place-items:center; flex:0 0 40px; height:40px; border-radius:10px; background:#2b3d59; color:#afccf9; }
.episode-reference-icon .icon { width:25px; height:25px; }
.episode-reference-copy { flex:1; min-width:0; }
.episode-reference-copy h2 { margin-bottom:4px; }
.episode-reference-copy p { color:#c6d0e1; }
.episode-reference-panel>.button,.episode-reference-panel>button { min-height:42px; padding:9px 15px; white-space:nowrap; }
#episode .table-scroll { position:relative; }
#episode .table-scroll th:first-child { width:auto; }
#episode .table-scroll th:last-child { width:216px; }
#video-rows .status>.icon { width:16px; height:16px; flex:none; }
#video-rows .reference-locked { gap:8px; color:#bbc5d3; white-space:nowrap; }
#video-rows .reference-locked::before { display:none; }
#video-rows .preparation-failed { color:#ff8585; }
.row-actions .reference-edit-disabled:disabled { opacity:1; color:#8993a0; background:#25292f; border-color:#424a54; }
.row-actions>.no-row-action { background:none; border-color:transparent; color:#8993a0; cursor:default; }
.reference-candidates { position:relative; display:grid; gap:8px; min-width:0; max-height:min(50vh,420px); overflow:auto; margin:14px 0 0; padding:2px; border:0; }
dialog .reference-candidate { display:grid; grid-template-columns:16px clamp(76px,19vw,108px) minmax(0,1fr); align-items:center; gap:12px; margin:0; padding:10px; border:1px solid #46515f; border-radius:10px; background:#242a32; cursor:pointer; }
.reference-candidate:has(input:checked) { border-color:#7296cd; background:#29374b; }
.reference-candidate:focus-within { outline:2px solid var(--blue); outline-offset:1px; }
dialog .reference-candidate>input[type=radio] { width:16px; height:16px; min-height:0; margin:0; accent-color:var(--blue); }
.reference-candidate-cover { display:grid; place-items:center; aspect-ratio:16/9; overflow:hidden; border-radius:6px; background:#303946; }
.reference-candidate-cover img { display:block; width:100%; height:100%; object-fit:cover; }
.reference-candidate-cover .icon { width:22px; height:22px; color:#b3bed0; }
.reference-candidate-details { display:grid; gap:3px; min-width:0; overflow-wrap:anywhere; }
.reference-candidate-details>strong { font-weight:600; font-size:15px; line-height:1.3; }
.reference-candidate-state { color:#c3d3eb; }
@media(max-width:440px) {
 dialog .reference-candidate { gap:9px; padding:8px; }
 .reference-candidate-details>strong { font-size:14px; }
}
@media(max-width:760px) {
 .episode-reference-panel { flex-wrap:wrap; padding:16px; }
 .episode-reference-copy { flex-basis:calc(100% - 56px); }
 .episode-reference-panel>.button,.episode-reference-panel>button { margin-left:56px; white-space:normal; }
}
#modal-body>button { margin:5px 9px 5px 0; }
:root { font-family:Arial,Helvetica,sans-serif; }
.menu.card-menu { position:absolute; }
.project-card { display:flex; flex-direction:column; }
.project-card-details { flex:1; display:flex; flex-direction:column; }
.project-card .progress-label { margin-top:auto; }
main { padding-top:51px; }
body:has(#episode:not([hidden])) .masthead { height:68px; }
main:has(#episode:not([hidden])) { padding-top:46px; }
.episode-settings { margin-top:24px; }
@media(max-width:760px) { main,main:has(#episode:not([hidden])) { padding-top:32px; } }
/* Desktop measures from the 1586 × 992 reference images. */
:root { --muted:#b5bbc4; --catalog-gutter:4.2875vw; }
.masthead { padding-inline:max(var(--catalog-gutter),24px); }
main { width:calc(100% - 2 * var(--catalog-gutter)); }
.brand { letter-spacing:0; gap:13px; }
.product { font-size:20px; font-weight:500; padding-left:25px; }
#client { width:262px; }
#catalog-status { width:242px; }
.page-heading>.button { transform:translateY(-4px); }
.project-grid { gap:24px; }
.project-card h3 { font-size:27px; line-height:34px; }
.project-card .doctor { font-weight:500; line-height:28px; margin-top:0; }
.project-card .status { font-weight:500; margin:22px 0 24px; }
.project-card-details { padding-top:18px; padding-bottom:29px; }
.progress-label { line-height:28px; margin-bottom:6px; }
.project-card .menu>summary { width:44px; height:44px; }
@media(max-width:1100px) { #client,#catalog-status { width:auto; } }
@media(max-width:760px) { main { width:calc(100% - 36px); } #client,#catalog-status { width:50%; } .page-heading>.button { transform:none; } }
/* Reference alignment: preserve geometry independently of the active font metrics. */
.masthead { padding-right:max(3.03vw,24px); }
.brand { font-size:19.5px; transform:translateY(-1.5px); }
.product { font-size:19px; padding-left:24px; }
main { width:calc(100% - 2 * var(--catalog-gutter) + 2px); margin-left:var(--catalog-gutter); margin-right:auto; }
#catalog h1 { letter-spacing:.35px; transform:translateY(1px); }
#project-count { transform:translateY(-1px); }
.page-heading>.button { width:209px; padding-inline:20px; }
.filters { margin-bottom:45px; }
.project-card-details { padding:20px 25px 29px 27px; }
.project-card h3 { font-size:26.25px; line-height:36px; }
.project-card .doctor { font-size:20.5px; letter-spacing:.08px; }
.project-card .status { font-size:20.5px; margin-top:19px; margin-bottom:23px; }
.status::before { width:15px; height:15px; }
.status { gap:9px; }
.progress-label { margin-bottom:9px; transform:translateX(-1px); }
@media(max-width:760px) {
 .masthead { padding-inline:20px; }
 main { width:calc(100% - 36px); margin-inline:auto; }
 .page-heading>.button { width:auto; }
 .brand { font-size:18px; }
}
/* Episode table: reference columns, compact rows, and heading actions. */
.episode-heading p { margin-top:5px; }
.heading-actions { transform:translateY(-12px); }
.heading-actions button { font-weight:600; }
.episode-settings { margin-top:25px; margin-bottom:37px; }
.table-heading h2 { font-size:28.5px; }
.table-heading select { width:213px; }
table { table-layout:fixed; }
th:first-child { width:48%; }
th:nth-child(2) { width:13.8%; }
th:nth-child(3) { width:22.6%; }
td { height:87px; }
td:first-child { padding:7px 24px 7px 32px; }
#video-rows tr:last-child td { height:91px; }
#video-rows tr:has(.reference-badge) td { height:95px; }
.table-scroll .status::before { width:13px; height:13px; }
.table-scroll .status { gap:11px; }
.video-title { font-weight:600; }
.reference-badge { font-weight:600; }
@media(max-width:760px) { .heading-actions { transform:none; } .table-heading select { width:100%; } }
/* Optical baseline alignment against the raster reference. */
.project-card h3 { transform:translateY(-3px); }
.project-card .doctor { transform:translateY(-2px); }
.project-card .status,.project-progress { transform:translateY(-1px); }
.progress-label { transform:translate(-1px,-1px); }
.video-info>div:last-child { transform:translateY(-3px); }
.video-thumb { transform:translateY(1px); }
.row-actions>.button { font-weight:600; }
.catalog-heading-actions { display:flex; align-items:center; gap:12px; transform:translateY(-4px); }
.catalog-heading-actions>.button { min-height:58px; }
.catalog-heading-actions>.primary { width:209px; padding:14px 20px; }
.menu-popover .danger-action,.danger-action { color:#ffafa8; }
button.danger-button { background:#a63336; border-color:#cf6366; color:white; }
.trash-description { margin:25px 0; max-width:900px; }
.trash-table th:first-child { width:45%; }
.trash-table th:nth-child(2) { width:22%; }
.trash-table th:nth-child(3) { width:33%; }
.trash-table td { padding:20px 15px; height:auto; }
.trash-table td:first-child { padding-left:30px; }
.trash-table .muted { margin-top:5px; font-size:16px; }
.trash-actions { display:flex; gap:10px; flex-wrap:wrap; }
.trash-actions button { font-size:16px; padding:8px 13px; min-height:43px; }
@media(max-width:760px) {
 .catalog-heading-actions { gap:8px; transform:none; flex-wrap:wrap; justify-content:end; }
 .catalog-heading-actions>.button { min-height:44px; font-size:14px; padding:8px 10px; }
 .catalog-heading-actions>.primary { width:auto; }
 #trash h1 { font-size:36px; }
}
/* Project overview: progressive preparation, editorial progress and deliveries. */
.catalog-toolbar { display:flex; align-items:center; justify-content:space-between; gap:30px; margin:44px 0 32px; }
.catalog-tabs,.view-switch { display:flex; align-items:center; border:1px solid var(--line); border-radius:10px; background:#202326; padding:3px; flex:none; }
.catalog-tabs button,.view-switch button { min-height:38px; border:0; background:transparent; border-radius:8px; padding:7px 22px; font-size:18px; font-weight:500; }
.catalog-tabs button[aria-pressed=true],.view-switch button[aria-pressed=true] { background:var(--blue); color:#0d1c30; font-weight:600; }
.view-switch button { padding:7px 14px; gap:10px; }
.view-switch .icon { width:22px; height:22px; }
.catalog-toolbar .search { width:646px; max-width:none; flex:1; }
.catalog-toolbar input { min-height:45px; height:45px; border-radius:10px; font-size:18px; }
body:has(#catalog[data-view=list]:not([hidden])) .masthead { height:68px; }
main:has(#catalog[data-view=list]:not([hidden])) { padding-top:35px; }
#catalog[data-view=list] h1 { font-size:46px; line-height:54px; transform:none; }
#catalog[data-view=list] #project-count { display:none; }
#catalog[data-view=list] .catalog-heading-actions { transform:none; }
#catalog[data-view=list] .catalog-heading-actions>.button { min-height:54px; height:54px; }
#catalog[data-view=list] .catalog-toolbar { margin:34px 0 31px; }
.project-list { min-width:1200px; }
.project-list th { height:49px; font-weight:600; color:#f1f2f4; }
.project-list th:first-child { width:28%; padding-left:33px; }
.project-list th:nth-child(2) { width:14%; }
.project-list th:nth-child(3) { width:20.5%; }
.project-list th:nth-child(4) { width:18%; }
.project-list th:nth-child(5) { width:19.5%; }
.project-list th button { padding:0; min-height:0; border:0; background:none; font-size:18px; }
.project-list td { height:83px; padding:6px 12px; }
.project-list td:first-child { padding-left:32px; }
.project-list-name { display:flex; align-items:center; gap:22px; }
.project-list-name .video-thumb { width:155px; height:70px; transform:none; }
.project-list-title { font-size:21px; font-weight:600; overflow-wrap:anywhere; }
.project-list td:nth-child(2) { white-space:nowrap; font-size:19px; }
.catalog-progress { min-width:0; }
.catalog-progress>p { font-size:20px; margin-bottom:8px; }
.catalog-progress .project-progress { height:12px; transform:none; }
.catalog-progress small { display:block; font-size:13px; margin-top:5px; }
.project-list .catalog-progress { padding-right:26px; }
.project-list-actions { display:flex; align-items:center; gap:14px; }
.project-list-actions>.button,.project-list-actions>button { width:203px; min-height:43px; font-size:18px; padding:7px 8px; border-radius:8px; }
.project-list-actions>.menu>summary { width:30px; height:40px; border:0; background:none; }
.project-list .status { font-size:19px; white-space:nowrap; }
#catalog .status[data-state=preparing] { color:#a9afb7; }
#catalog .status[data-state=ready_edit],#catalog .status[data-state=editing],#catalog .status[data-state=exporting] { color:#a1c6ff; }
#catalog .status[data-state=awaiting_color] { color:#ffd35b; }
#catalog .status[data-state=ready_export],#catalog .status[data-state=completed] { color:#a1ef8b; }
#catalog .status[data-state=attention] { color:#ffb962; }
.project-card-details>.catalog-progress { margin-top:auto; }
.project-card-details>.next-action,.project-card-details>button,.project-card-details>.button { margin-top:18px; }
.project-card-details>.catalog-progress .project-progress { height:15px; }
.status[data-state=ready_edit] { color:#a1c6ff; }
@media(max-width:1150px) { .catalog-toolbar { flex-wrap:wrap; gap:14px; } .catalog-toolbar .search { min-width:250px; } }
@media(max-width:760px) {
 .catalog-toolbar { gap:12px; }
 .catalog-tabs { width:100%; justify-content:space-between; }
 .catalog-tabs button { flex:1; padding:7px 8px; font-size:16px; }
 .catalog-toolbar .search { min-width:180px; }
 .view-switch button { padding:7px 10px; font-size:16px; }
 #catalog[data-view=list] h1 { font-size:36px; }
}
@media(min-width:1151px) {
 .catalog-toolbar { gap:32px; }
 .catalog-tabs { width:446px; display:grid; grid-template-columns:124px 148px 1fr; }
 .catalog-tabs button { padding-inline:10px; }
 .catalog-toolbar .search { width:646px; flex:0 1 646px; margin-left:auto; }
 .view-switch { width:181px; }
 .view-switch #view-grid { width:54px; }
 .view-switch #view-list { flex:1; }
}
#catalog[data-view=list] .page-heading { min-height:58px; align-items:flex-start; }
#catalog[data-view=list] .catalog-heading-actions { align-self:center; }
.catalog-tabs button,.view-switch button { min-height:37px; }
.episode-settings [aria-disabled=true] { opacity:.35; cursor:not-allowed; pointer-events:none; }

/* A lista usa os pesos intermediários da fonte de sistema. */
#catalog[data-view=list],
body:has(#catalog[data-view=list]:not([hidden])) .masthead {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
}
#catalog[data-view=list] h1 { font-weight: 700; letter-spacing: -.025em; }
#catalog[data-view=list] .primary { font-weight: 700; }
.project-list .project-list-title { font-weight: 650; letter-spacing: -.015em; }
.project-list th,
.project-list th button { font-weight: 500; }
.project-list-actions > :is(.button, button) { font-weight: 550; }
#catalog[data-view=list] :is(.catalog-tabs, .view-switch) button[aria-pressed=true] {
  font-weight: 650;
}
body:has(#catalog[data-view=list]:not([hidden])) .product { font-weight: 400; }

#video-rows .reference-badge { display:inline-flex; align-items:center; gap:6px; padding:3px 9px; background:#2b3c51; border-radius:12px; }
#video-rows .reference-badge .icon { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.7; flex:none; }

.reference-info { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; margin-top:6px; min-width:0; }
#video-rows .reference-info .reference-badge { margin-top:0; }
.reference-original { min-width:0; max-width:280px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font:var(--ui-meta); }

#upload-status { padding:16px 20px; margin:0 0 22px; border:1px solid #4a607f; background:#202b3a; border-radius:10px; }
#upload-status p { margin:6px 0 10px; overflow-wrap:anywhere; }
#upload-status progress { display:block; width:100%; height:8px; margin-bottom:8px; accent-color:#a0bff9; }
#upload-status small { color:var(--muted); }
.export-status { padding:18px 20px; margin:0 0 22px; border:1px solid #4a607f; background:#202b3a; border-radius:10px; }
.export-status h2 { margin:0 0 6px; font-size:18px; }
.export-status-item { padding-block:12px; border-top:1px solid #405069; }
.export-status-item strong,.export-status-item small { display:block; overflow-wrap:anywhere; }
.export-status-item small { margin:5px 0; color:var(--muted); }
.export-status-item progress { display:block; width:100%; height:9px; accent-color:#a0bff9; }
.export-status-item a { display:inline-block; margin-top:6px; }

.upload-skeleton { position:relative; background:#292e35; }
.upload-skeleton::before { content:""; position:absolute; inset:0; background:linear-gradient(100deg,transparent 20%,#9fb8dc20 50%,transparent 80%); transform:translateX(-100%); }
.upload-skeleton.is-preparing::before { animation:upload-shimmer 1.7s ease-in-out infinite; }
.upload-skeleton small { position:absolute; inset:0; display:grid; place-items:center; color:#dce7f6; }
.upload-filename { display:block; color:var(--muted); margin-top:5px; }
.row-actions .button[aria-disabled=true] { opacity:.45; cursor:default; }
@keyframes upload-shimmer { to {transform:translateX(100%);} }
@media(prefers-reduced-motion:reduce) { .upload-skeleton.is-preparing::before { animation:none; transform:none; background:#859fc518; } }

.upload-skeleton>.icon { position:absolute; width:25px; height:25px; top:50%; left:50%; transform:translate(-50%,-50%); color:#b3bac4; }
.row-upload-progress { display:block; width:min(190px,100%); height:8px; accent-color:#a0bff9; margin-top:7px; }
#video-rows .status:has(+.row-upload-progress) { color:#a7c6fc; }

#video-rows .status[data-preparing=true] { color:#b8c7df; }
#video-rows .status[data-preparing=true]::before {
  box-sizing:border-box; width:14px; height:14px; background:transparent;
  border:2px solid #64748b; border-top-color:#c5d9ff;
  animation:preparation-spin .85s linear infinite;
}
@keyframes preparation-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { #video-rows .status[data-preparing=true]::before { animation:none; } }

.preparation-phase { display:block; margin-top:3px; color:var(--muted); max-width:230px; }

.selected-upload-files,.drive-selected-files { padding:12px 14px; margin-block:12px; border:1px solid #414b58; border-radius:8px; }
.selected-upload-files ul { max-height:160px; overflow:auto; padding-left:20px; margin:8px 0; }
.selected-upload-files li,.drive-selected-files p { overflow-wrap:anywhere; }

.intake-sources { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.intake-sources button { white-space:normal; min-height:56px; }
#modal-body>details { margin:14px 0; }
#modal-body summary { cursor:pointer; }
#modal-body details[open]>summary { margin-bottom:12px; }
#modal-body textarea { width:100%; border:1px solid var(--line); border-radius:9px; padding:9px; background:#191d22; color:inherit; resize:vertical; font:inherit; }
#modal-body progress { width:100%; }
.intake-drive-actions { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.intake-drive-actions button,.intake-drive details button,.intake-files button { min-height:38px; padding:7px 12px; }
.intake-files { max-height:240px; overflow:auto; }
.intake-files .check,.intake-selection { overflow-wrap:anywhere; }
.intake-files .check input { flex:none; }
.intake-files .intake-folder { display:flex; width:100%; justify-content:flex-start; white-space:normal; text-align:left; }
@media (max-width:520px) { .intake-sources { grid-template-columns:1fr; } }
