:root{color-scheme:dark;scroll-padding-bottom:calc(93px + env(safe-area-inset-bottom));--paper:#111;--surface:#1c1c1c;--ink:#f4f4f4;--muted:#aaa;--line:#383838;--accent:#ed6818;--soft:#382214;--green:#9ac879;--red:#ff9984}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 'Segoe UI','Segoe WP','Helvetica Neue',Arial,sans-serif}button,input,textarea,select{font:inherit;color:inherit;border-radius:0}button,a,input,textarea,select,summary{outline-offset:4px} :focus-visible{outline:2px solid var(--accent)}
button{cursor:pointer;background:var(--surface);border:1px solid #777;padding:9px 14px;min-height:42px}button:hover{background:#303030;border-color:var(--ink)}button:disabled{opacity:.45;cursor:wait}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.primary:hover{background:#c8510d}button.quiet{border-color:transparent;background:transparent;color:var(--muted)}button.icon{padding:3px 10px;font-size:24px}a{color:inherit;text-underline-offset:3px}input,textarea,select{width:100%;border:1px solid #777;padding:11px;background:var(--surface)}textarea{resize:vertical}label{display:block;margin:17px 0 8px}label input{margin-top:7px}input[type=checkbox]{accent-color:var(--accent)}h1,h2,h3,p{margin-top:0}h1{font-size:58px;font-weight:300;letter-spacing:-2px;line-height:1.1;margin-bottom:0}h2{font-size:28px;font-weight:300;line-height:1.2}h3{font-size:20px;font-weight:400;line-height:1.4}.muted{color:var(--muted)}.eyebrow,.field-label{font-size:12px;letter-spacing:1px;color:var(--muted)}
.sidebar{max-width:1184px;margin:auto;min-height:76px;padding:16px 32px;display:flex;align-items:center;gap:28px;border-bottom:1px solid var(--line)}.brand{font-size:21px;letter-spacing:1px;font-weight:400;text-decoration:none;display:flex;align-items:flex-start;gap:5px}.brand span{font-size:10px;letter-spacing:0;color:var(--accent)}.sidebar select{width:175px;background:transparent;border:0;border-bottom:2px solid var(--accent);padding:8px 0}.sidebar-bottom{margin-left:auto;display:flex;align-items:center;gap:16px;font-size:11px;color:var(--muted)}.dotline{display:flex;align-items:center;gap:7px}.dotline i{width:6px;height:6px;background:var(--green)}
.sidebar nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,720px);z-index:20;display:grid;grid-template-columns:1fr 1fr 1fr 64px;gap:4px;background:var(--paper);padding:8px 8px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}.sidebar nav>button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:68px;border:0;background:#242424;padding:5px 10px;font-size:13px}.sidebar nav>button>span:first-child{font-size:27px;line-height:30px;font-weight:300}.sidebar nav>button.active{background:var(--accent);color:#fff}.sidebar nav>button svg{display:block;width:29px;height:29px}.nav-count{position:absolute;right:10px;top:6px;font-size:10px}
.more-nav{position:relative;border:0;padding:0;margin:0;background:#242424}.more-nav summary{height:68px;display:flex;justify-content:center;align-items:center;list-style:none;font-size:35px;padding:0;line-height:1;cursor:pointer}.more-nav summary::-webkit-details-marker{display:none}.more-nav[open] summary,.more-nav:has(button.active) summary{background:var(--accent)}.more-panel{position:absolute;right:0;bottom:calc(100% + 8px);width:270px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 120px);overflow:auto;background:#222;border-top:3px solid var(--accent);padding:6px 0}.more-panel button{display:block;width:100%;border:0;background:transparent;text-align:left;padding:10px 20px;min-height:44px}.more-panel button.active{color:var(--accent)}.more-panel button:hover{background:#333}
main{max-width:1184px;margin:auto;min-height:calc(100vh - 76px);padding:0 32px 130px}.topbar{min-height:154px;display:flex;align-items:center;justify-content:space-between;gap:20px}.topbar .eyebrow{margin-bottom:8px}.top-actions{display:flex;align-items:center;gap:20px}#save-state{font-size:12px;color:var(--muted)}#notice{padding:12px 16px;border-left:3px solid var(--accent);background:var(--soft);margin:10px 0}#page{padding-top:12px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px;flex-wrap:wrap}.section-head p{margin:0}.pill{display:inline-block;font-size:11px;padding:3px 8px;background:#24351e;color:var(--green)}.pill.orange{background:var(--soft);color:#ffad74}.pill.red{background:#3b211c;color:var(--red)}
.topic-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}.topic-card{background:var(--surface);border:1px solid var(--line);padding:23px;display:flex;flex-direction:column;min-height:235px;overflow:hidden}.topic-card:hover{border-color:#777}.topic-cover{width:calc(100% + 46px);max-height:220px;aspect-ratio:16/10;object-fit:cover;margin:-23px -23px 22px}.card-meta{display:flex;gap:8px;align-items:center;font-size:11px;color:var(--muted);margin-bottom:18px;overflow:hidden}.card-meta a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topic-card h3{font-size:23px;font-weight:300}.topic-card p{color:var(--muted);font-size:13px;margin-bottom:24px}.card-actions{margin-top:auto;display:flex;gap:5px;align-items:center;flex-wrap:wrap}.card-actions button{font-size:12px}.empty{padding:65px 20px;max-width:480px;margin:auto}.empty-mark{font-size:50px;color:var(--accent);margin-bottom:20px}.empty h2{font-size:32px}.empty p{color:var(--muted)}
.editor-grid{display:grid;grid-template-columns:minmax(300px,1fr) minmax(300px,.85fr);gap:32px}.editor-grid>section{min-width:0}.back{font-size:13px;margin-bottom:20px;padding-left:0}.field-label{margin-bottom:8px}.title-input{font-size:26px;line-height:1.3;font-weight:300;resize:none;padding:15px}.body-input{font-size:15px;line-height:1.7;min-height:300px;padding:16px}.edit-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:16px 0 8px;font-size:11px;color:var(--muted)}.emoji-select{max-width:200px;font-size:12px;padding:6px 8px}.asset-strip{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.asset-item{width:90px}.asset-tile{position:relative}.asset-tile img,.asset-tile video{width:90px;height:85px;object-fit:cover}.asset-tile button{position:absolute;right:3px;top:3px;background:#111d;padding:0 5px;font-size:16px;min-height:28px}.asset-tile button[data-trim]{top:auto;bottom:3px;font-size:10px}.asset-tile button[data-move]{left:3px;right:auto;top:auto;bottom:3px}.asset-options{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:20px}.asset-options button{font-size:12px}.preview-column{align-self:start}.preview-label{display:flex;justify-content:space-between;font-size:11px;letter-spacing:1px;color:var(--muted);margin-bottom:10px}
/* The post keeps Telegram's own appearance inside the Metro editor. */
.telegram-surface{background:#262e32;padding:23px;min-height:300px}.telegram-post{background:#fff;color:#222;border-radius:9px;overflow:hidden;max-width:410px;margin:0 auto}.post-name{font-size:12px;color:#64844f;font-weight:600;margin-bottom:7px}.post-text{padding:15px 15px 11px;overflow-wrap:anywhere;white-space:pre-wrap;font-family:system-ui,sans-serif;font-size:14px;line-height:1.5}.post-text h3{display:inline;font-size:14px;font-weight:700;font-family:inherit}.post-text .emoji-img{height:20px;width:20px;vertical-align:middle;object-fit:contain}.post-body,.post-cta{margin-top:12px}.post-cta{color:#5486a6;font-size:13px}.post-cta .emoji-img{margin:0;vertical-align:middle}.post-foot{font-size:9px;color:#888;text-align:right;padding:0 13px 8px}.post-images{display:grid;grid-template-columns:repeat(2,1fr);gap:2px}.post-images img{width:100%;aspect-ratio:1;object-fit:cover}.post-images img:only-child{grid-column:span 2;aspect-ratio:auto;max-height:420px;object-fit:contain;background:#f3f4ef}.post-images video{width:100%;max-height:420px;object-fit:contain;background:#111}.post-images video:only-child{grid-column:span 2}.photo-empty{padding:45px 20px;text-align:center;color:#666;font-size:12px;border-bottom:1px dashed #ddd}.preview-actions{display:grid;gap:8px;margin-top:18px}.preview-actions .pill{justify-self:start}.caption-limit{text-align:right;font-size:11px;color:var(--muted);margin-top:8px}.caption-limit.over{color:var(--red)}
details{border-top:1px solid var(--line);padding:16px 0;margin-top:14px}summary{cursor:pointer;font-size:14px}details .source-text{font-size:13px;max-height:280px;overflow:auto;white-space:pre-wrap;color:var(--muted);margin-top:14px}.source-gallery{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.source-gallery button{font-size:12px}.chat{border-top:1px solid var(--line);margin-top:26px;padding-top:21px}.chat h3{margin-bottom:4px}.chat p{font-size:12px;color:var(--muted)}.chat-message{background:#222;padding:12px;font-size:13px;margin:10px 0}.chat-message .proposal{white-space:pre-wrap;background:#111;padding:12px;margin:10px 0}.chat form{display:flex;gap:8px;align-items:flex-end}.chat textarea{min-height:75px}.history-row{font-size:12px;padding:12px 0;margin:0}.history-row summary strong{display:block;margin-top:4px}.history-row .proposal{margin-top:10px}.history-row button{font-size:11px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}td,th{padding:18px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:11px;letter-spacing:.5px;color:var(--muted);font-weight:400}td.title-cell{min-width:230px}td:first-child{color:var(--accent)}td button{font-size:12px}.source-form{display:grid;grid-template-columns:1fr 2fr auto;gap:10px;margin-top:25px}.job-error,.job-pending{font-size:13px;padding:12px;margin:10px 0;border-left:3px solid}.job-error{background:#321c18;color:var(--red)}.job-pending{background:var(--soft);color:#ffad74}
dialog{border:1px solid #777;border-top:3px solid var(--accent);max-width:560px;max-height:90dvh;width:calc(100% - 32px);overflow:auto;padding:27px;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#000b}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-head h2{margin:0}dialog p{font-size:13px;color:var(--muted);margin-top:20px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:26px;flex-wrap:wrap}.checkbox{display:flex;align-items:center;font-size:13px;gap:9px}.checkbox input{width:auto;margin:0}#approval-summary{font-size:14px;margin-top:18px}.approval-photo{height:110px;max-width:100%;max-height:240px;margin-top:12px}#toast{position:fixed;bottom:110px;left:50%;transform:translateX(-50%);background:var(--accent);color:#fff;padding:12px 23px;max-width:90vw;z-index:30;font-size:13px}#login{min-height:100vh;display:grid;place-items:center;background:var(--paper)}.login-card{width:min(90vw,510px);padding:35px}.login-card .brand{margin-bottom:65px}.login-card h1{font-size:46px;margin-bottom:24px}.login-card p{color:var(--muted)}#login-actions{margin-top:35px}#login-error{color:var(--red)}[hidden]{display:none!important}
.setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:28px}.setup-card,.review-card{border:1px solid var(--line);padding:24px;background:var(--surface)}.setup-card h2{margin:13px 0}.setup-card p{font-size:13px;color:var(--muted)}.telegram-qr{width:240px;max-width:100%;margin:15px auto;display:block}.channel-form{display:flex;align-items:flex-end;gap:10px;margin:15px 0}.channel-form label{flex:1;margin:0}.channel-form select{margin-top:6px}.review-card{margin:20px 0}.review-comparison{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:20px}.review-comparison h4{margin:12px 0}.review-text{white-space:pre-wrap}.review-actions{display:flex;gap:10px;margin:20px 0;flex-wrap:wrap}.watch-control{display:inline-flex;align-items:center;gap:4px;margin:6px 0;font-size:12px}.watch-control .checkbox{margin:0}.story-layout{display:grid;grid-template-columns:minmax(230px,1fr) minmax(300px,1.4fr);gap:34px;margin-top:20px}.story-layout .review-card{margin-top:12px}.story-layout details p{overflow-wrap:anywhere}.story-layout h2{margin-top:18px}.mirror-assets{display:flex;gap:12px;overflow-x:auto;margin-bottom:20px}.mirror-assets figure{margin:0;flex:0 0 180px}.mirror-assets img,.mirror-assets video{width:180px;height:180px;object-fit:contain;background:var(--surface)}.mirror-assets figcaption{font-size:12px;color:var(--muted);margin-top:5px}
@media(max-width:950px){.editor-grid{grid-template-columns:1fr}.preview-column{max-width:520px;margin:15px auto;width:100%}.setup-grid{grid-template-columns:1fr}.sidebar-bottom .dotline{display:none}}
@media(max-width:600px){.sidebar{padding:12px 18px;gap:18px;min-height:64px;flex-wrap:wrap}.sidebar .brand{font-size:17px}.sidebar select{font-size:13px;width:140px}.sidebar-bottom{gap:8px}.sidebar-bottom #user-name{display:none}.sidebar-bottom button{padding:3px;min-height:28px;font-size:11px}main{padding:0 18px 125px}.topbar{min-height:132px;gap:10px;align-items:center;flex-wrap:wrap}h1{font-size:46px}.top-actions{flex-direction:column;gap:5px;align-items:flex-end}.top-actions button{font-size:12px;padding:8px}.topbar .eyebrow{font-size:10px}.topic-grid{grid-template-columns:1fr}.topic-card{min-height:205px}.source-form,.review-comparison,.story-layout{grid-template-columns:1fr}.empty{padding:40px 0}.telegram-surface{padding:15px}.chat form,.channel-form{flex-wrap:wrap}.chat form textarea,.channel-form label{min-width:100%}dialog{padding:20px}.login-card{padding:15px}.login-card h1{font-size:40px}.section-head>div{flex-wrap:wrap}.sidebar nav{grid-template-columns:1fr 1fr 1fr 52px}}

.topic-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.topic-tabs button[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}

.source-photo img{display:block;width:108px;height:82px;object-fit:contain}.source-photo span{display:block}.source-photo .source-photo-placeholder{display:grid;place-items:center;width:108px;height:82px;color:var(--muted);background:var(--paper);padding:6px;text-align:center}.approval-inline[open]{position:static;width:100%;max-width:none;margin:20px 0;max-height:none;scroll-margin:16px}.source-gallery[hidden],#photo-search-inline[hidden]{display:none}

/* Edition colors follow the original desk. Section layout follows the work. */
:root[data-edition="usa"]{--accent:#326dc8;--soft:#182943}
:root[data-edition="shorts"]{--accent:#78579a;--soft:#2d2139}
button.primary:hover{background:color-mix(in srgb,var(--accent),#000 17%)}
html[data-edition] .topbar .eyebrow{color:var(--accent)}
html[data-view="material"] .preview-column .preview-label{border-bottom:2px solid var(--accent);padding-bottom:8px}
.edition-picker{position:relative;margin:0;padding:0;border:0;color:#f4f4f4}
.edition-picker summary{display:flex;list-style:none;gap:14px;justify-content:space-between;align-items:center;min-width:124px;padding:8px 10px;border:1px solid #555;background:#202020}
.edition-picker summary::-webkit-details-marker{display:none}
.edition-picker[open] summary{border-color:var(--accent)}
.edition-options{position:absolute;z-index:25;top:100%;left:0;min-width:100%;background:#202020;border:1px solid #555}
.edition-options button{display:block;width:100%;text-align:left;white-space:nowrap;background:#202020;color:#f4f4f4;border:0}
.edition-options button:hover,.edition-options button:focus-visible{background:#383838}
.edition-options button[aria-pressed=true]{box-shadow:inset 3px 0 var(--accent)}
#discovery-state:empty{display:none}
/* The Metro reference uses photo-led Topics, a text list, and a dated queue. */
html[data-view="inbox"] .topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}
html[data-view="inbox"] .topic-card,html[data-view="working"] .topic-card{background:transparent;border:0;border-bottom:1px solid #333;padding:0 0 18px;min-width:0;min-height:0}
html[data-view="inbox"] .topic-cover{width:100%;height:190px;margin:0 0 14px;object-fit:cover}
html[data-view="inbox"] .card-content,html[data-view="inbox"] .card-actions{padding-inline:16px}
html[data-view="inbox"] .topic-card h3{border-left:3px solid var(--accent);margin:10px 0 8px -16px;padding-left:13px;font-size:28px}
html[data-view="working"] .topic-grid{grid-template-columns:1fr;gap:0}
html[data-view="working"] .topic-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;padding:18px 0}
html[data-view="working"] .topic-card:has(.topic-cover:not([hidden])){grid-template-columns:96px minmax(0,1fr) auto}
html[data-view="working"] .topic-cover{width:100%;margin:0;aspect-ratio:4/3}
html[data-view="working"] .topic-card h3{font-size:24px}
.topic-card .card-meta{margin-bottom:8px;flex-wrap:wrap}
.topic-card p{margin-bottom:12px}
.topic-card .card-actions{justify-content:flex-start;gap:8px}
.topic-card .card-actions button{display:inline-flex;justify-content:center;align-items:center;gap:6px;border:1px solid var(--accent);background:transparent;color:var(--ink)}
.topic-card .card-actions .quiet,html[data-view="working"] .card-actions [data-open]{border-color:#555}
.topic-card .card-actions button:hover,.topic-card .card-actions button:focus-visible{background:var(--surface);border-color:var(--accent)}
.card-actions svg{width:15px;height:15px;flex-shrink:0}
.editor-appbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;border-block:1px solid #555;padding:16px 0;margin:20px 0 26px}
.editor-appbar>button,.queue-approve-button{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:9px;min-width:0;min-height:70px;padding:0 3px;border:0;background:transparent;font-size:11px;line-height:1.25;white-space:normal;text-align:center}
.editor-appbar>button svg,.queue-approve-button svg{width:40px;height:40px;padding:8px;border:1.5px solid currentColor;border-radius:50%;flex-shrink:0}
button.queue-approve-button{color:#60d18c;background:transparent;border:0}
.editor-appbar .upload-options{grid-column:1/-1;border:0;padding:0;margin:0}
.editor-appbar .upload-options summary{width:fit-content;padding:8px 0;color:var(--muted)}
#version-history,#page .back{scroll-margin-top:16px}
.chat{padding:25px;background:#1c1c1c;border-top:5px solid var(--accent)}
.chat h3{font-size:clamp(24px,4vw,36px);font-weight:300}
html[data-view="queue"] .topbar{min-height:0;padding:18px 0 8px}
html[data-view="queue"] .topbar h1{font-size:32px;line-height:38px}
.queue-view-filter{position:relative;display:block;margin:4px 0 10px}
.queue-view-filter select{display:block;appearance:none;width:100%;min-height:42px;padding:8px 48px 8px 14px;border:1px solid var(--accent);background:var(--paper);color:var(--ink)}
.queue-view-filter::after{content:"";position:absolute;right:18px;top:50%;width:8px;height:8px;border:solid var(--accent);border-width:0 2px 2px 0;transform:translateY(-70%) rotate(45deg);pointer-events:none}
.publication-order-list{list-style:none;padding:0;margin:0}
.order-day-divider{display:flex;align-items:baseline;gap:10px;color:var(--accent);font-size:15px;line-height:20px;min-height:36px;padding:8px 0}
.order-day-divider small{color:var(--muted);font-size:11px;text-transform:uppercase}
.order-card{position:relative;display:grid;grid-template-columns:minmax(62px,auto) minmax(0,1fr) minmax(0,auto);align-items:start;gap:10px;min-height:106px;padding:14px 0 14px 14px;border-left:1px solid #4b4b4b;background:var(--paper)}
.order-card::before{content:"";position:absolute;width:5px;height:5px;left:-3px;top:23px;background:var(--accent)}
.order-slot{color:var(--accent);font-size:21px;line-height:26px;font-weight:300}
.order-material-title{display:block;width:100%;min-height:32px;border:0;background:transparent;padding:0;text-align:left;color:var(--ink);font-size:19px;line-height:23px;font-weight:400;overflow-wrap:anywhere}
.order-material-title:hover{text-decoration:underline;text-underline-offset:3px}
.order-slot p{font-size:12px;margin:0}
.order-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;max-width:330px}
.anniversary-drafts{margin-bottom:20px}
.anniversary-drafts h2{font-size:16px;font-weight:400}
@media(max-width:600px){
  html[data-view="inbox"] .topic-grid{grid-template-columns:minmax(0,1fr)}
  html[data-view="working"] .topic-card{grid-template-columns:minmax(0,1fr)}
  html[data-view="working"] .topic-card:has(.topic-cover:not([hidden])){grid-template-columns:72px minmax(0,1fr)}
  html[data-view="working"] .card-actions{grid-column:1/-1}
  .chat{padding:18px}
  .order-card{grid-template-columns:minmax(58px,auto) minmax(0,1fr)}
  .order-actions{grid-column:2;justify-content:flex-start}
}
