@font-face{font-family:Poppins;src:url('./poppins-latin-400.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Poppins;src:url('./poppins-latin-600.woff2') format('woff2');font-weight:600 800;font-display:swap}
:root{
  color-scheme:dark;
  --bg:#101719;
  --panel:#172124;
  --panel-quiet:#141e21;
  --edge:#2c3c40;
  --text:#f5f7f6;
  --muted:#a9b9ba;
  --faint:#899b9d;
  --orange:#ffad54;
  --orange-quiet:#372920;
  --sea:#98dad1;
  --radius:18px;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;min-width:300px;background:radial-gradient(ellipse at 86% 1%,#163638 0%,transparent 38rem),var(--bg);color:var(--text);font:400 14px/1.6 Poppins,Arial,sans-serif}
button,input,textarea,select{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{opacity:.52;cursor:default}
a{color:var(--sea);text-decoration:none}
a:hover{text-decoration:underline}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
h1,h2,h3,p{margin:0}
svg{width:20px;height:20px;flex-shrink:0;vertical-align:middle}
#shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100dvh}
.sidebar{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;gap:38px;padding:31px 18px 24px;background:linear-gradient(165deg,#152427,#111b1e 60%,#142225);border-right:1px solid var(--edge)}
.brand{display:flex;align-items:center;gap:10px;color:var(--text);font-size:16px;white-space:nowrap;letter-spacing:-.04em}
.brand:hover{text-decoration:none}
.brand-mark{color:#21170c;background:linear-gradient(140deg,#ffd08d,#ff9700);width:36px;height:36px;flex:none;border-radius:12px;display:grid;place-items:center;box-shadow:0 6px 23px #ff97001d}
.brand-mark svg{width:25px;height:25px}
.brand strong{color:var(--orange);font-weight:600}
nav{display:flex;flex-direction:column;gap:7px}
nav a,.back{display:flex;align-items:center;gap:11px;min-height:44px;padding:9px 11px;border:1px solid transparent;border-radius:11px;color:var(--muted)}
nav a:hover,.back:hover{background:#203134;text-decoration:none;color:var(--text)}
nav a[aria-current=page]{border-color:#645041;color:var(--orange);background:linear-gradient(110deg,#35281e,#252520)}
.sidebar-footer{margin-top:auto}
.back{font-size:11px}
.back svg{width:16px}
.sign-out{padding:6px 11px;color:var(--muted);border:0;background:transparent;text-align:left;border-radius:8px;font-size:12px}
.sign-out:hover{color:var(--text);background:#203134}
main{width:100%;max-width:1430px;min-width:0;padding:40px clamp(22px,4vw,68px) 60px;margin-inline:auto}
.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:27px}
.page-header p,.muted{color:var(--muted)}
h1{font-size:clamp(27px,3.1vw,44px);line-height:1.13;letter-spacing:-.05em;font-weight:600}
.page-header p{margin-top:9px;font-size:14px}
h2{font-size:17px;letter-spacing:-.025em;font-weight:600}
h3{font-size:15px;font-weight:600;word-break:break-word}
small,.small{font-size:12px;color:var(--muted)}
.stack{display:grid;gap:17px;min-width:0}
.composer{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(242px,1fr);align-items:start;gap:22px}
.panel{min-width:0;border:1px solid var(--edge);border-radius:var(--radius);background:linear-gradient(145deg,#1a272a 0%,#162124 74%);padding:19px}
.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}
.section-head small{text-align:right}
.drop{width:100%;min-height:144px;border:1.5px dashed #4c6467;border-radius:14px;display:grid;place-items:center;text-align:center;color:var(--text);background:linear-gradient(110deg,#1a292a,#192426);padding:12px}
.drop:hover,.drop.drag{border-color:var(--orange);background:#2c2722}
.drop span{display:block}
.drop .upload-mark{width:40px;height:40px;display:grid;place-items:center;background:#253c3d;color:var(--sea);border-radius:12px;margin:0 auto 8px}
.drop strong,.drop small{display:block}
.drop strong{font-weight:600}
.file-row{display:flex;align-items:center;gap:12px;border-radius:14px;padding:13px;background:#132124;border:1px solid #304648;overflow-wrap:anywhere}
.file-row .upload-mark{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:10px;background:#254142;color:var(--sea)}
.file-row strong{display:block}
.progress{height:6px;width:100%;accent-color:var(--orange);display:block;margin-top:10px}
.channels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.choice{position:relative;padding:8px;display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;border:1px solid #36494c;border-radius:12px;background:#152023;cursor:pointer;min-width:0}
.choice:has(input:checked){border-color:#bd824c;background:linear-gradient(142deg,#3c2b22,#252824)}
.choice>input{accent-color:var(--orange);margin:0;margin-left:auto;width:15px;height:15px}
.choice b,.choice small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.choice b{font-size:12px}
.choice small{font-size:10px}
.chip-icon{display:grid;place-items:center;flex:0 0 31px;width:31px;height:31px;border-radius:9px}
.chip-icon svg{width:17px;height:17px}
.chip-icon.instagram{color:#ffbbd0;background:#572f43}
.chip-icon.youtube{color:#ffc0b6;background:#522e2d}
.chip-icon.threads{color:#e2e9e8;background:#314145}
.network-label{min-width:0;flex:1}
.field{display:grid;gap:6px;color:var(--text);min-width:0}
.field>span{font-size:13px}
.field textarea,.field input,.field select{width:100%;min-width:0;border:1px solid #394c4f;color:var(--text);background:#101a1d;border-radius:10px;padding:9px 11px}
.field textarea{resize:vertical;min-height:78px}
.field input[readonly]{color:var(--muted)}
input::placeholder,textarea::placeholder{color:#91a2a4;opacity:1}
.field small{justify-self:end}
.fields{display:grid;gap:12px}
.fields.dual{grid-template-columns:repeat(2,minmax(0,1fr))}
details{border:1px solid #3b4c4d;border-radius:12px;padding:10px 12px;background:#142023}
details+details{margin-top:8px}
details summary{cursor:pointer;color:var(--sea);font-size:12px}
details .field{margin-top:9px}
.inline-check{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
.inline-check input{accent-color:var(--orange)}
.controls{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:40px;border-radius:10px;border:1px solid #45595a;padding:8px 13px;color:var(--text);background:#233235;font-size:12px;font-weight:600;line-height:1.3;text-decoration:none}
.button:hover:not(:disabled){background:#2d3f40;text-decoration:none}
.button.primary{border-color:#ffb766;background:linear-gradient(110deg,#ffc681,#ffa33e);color:#24180c}
.button.primary:hover:not(:disabled){background:#ffbd75}
.button.quiet{background:transparent;border-color:#405255;color:#c3d3d1}
.button.danger{color:#ffd2c9;border-color:#70483f}
.button svg{width:16px;height:16px}
.preview{position:sticky;top:22px}
.screen{display:grid;place-items:center;aspect-ratio:9/16;max-height:424px;max-width:100%;width:min(67%,225px);margin:8px auto 17px;overflow:hidden;border:1px solid #536869;border-radius:24px;background:linear-gradient(150deg,#213c3e,#10191c 75%);box-shadow:0 16px 45px #07111487}
.screen .empty-preview{text-align:center;color:#b6c7c6;padding:10px;font-size:11px;display:grid;justify-items:center;gap:8px}
.screen .empty-preview svg{width:30px;height:30px;color:var(--sea)}
.screen video{width:100%;height:100%;object-fit:contain;background:#080c0d}
.preview-text{background:#111d20;padding:13px;border:1px solid #2d4446;border-radius:12px;overflow-wrap:anywhere}
.preview-text .caption{margin-top:5px;color:var(--muted);font-size:12px;white-space:pre-wrap;max-height:130px;overflow:auto}
.preview-tabs{display:flex;gap:6px;flex-wrap:wrap;padding-top:12px}
.preview-tab{background:#172529;color:var(--muted);border:1px solid #3a5152;border-radius:20px;padding:4px 8px;font-size:11px}
.preview-tab[aria-pressed=true]{background:#243b3e;color:var(--sea);border-color:#507878}
.account-layout{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.account-card .chip-icon{width:42px;height:42px;margin-bottom:12px}
.account-card h2{margin-bottom:2px}
.account-card p{min-height:38px;margin-top:6px}
.account-card .actions{margin-top:16px}
.collection{display:grid;gap:13px}
.collection>h2{margin:7px 0 1px}
.collection+.collection{margin-top:24px}
.item-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.item-header .actions{justify-content:flex-end}
.item time{color:var(--muted);font-size:12px}
.item-list{display:grid;gap:6px;margin-top:10px}
.delivery{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#131d20;border-radius:10px;padding:7px 9px}
.delivery .chip-icon{width:25px;height:25px;flex-basis:25px}
.delivery .chip-icon svg{width:14px;height:14px}
.delivery small{word-break:break-word}
.delivery .message{flex-basis:100%;margin-left:33px}
.delivery a{font-size:12px}
.badge{border-radius:999px;padding:3px 8px;background:#253539;color:#d3dfdf;font-size:11px;display:inline-block;white-space:nowrap}
.badge.published{background:#20413a;color:#b0efca}
.badge.processing,.badge.queued{background:#284147;color:#b3e6e9}
.badge.review,.badge.failed{background:#43312a;color:#ffcca1}
.empty{text-align:center;padding:36px 15px}
.empty p{margin:6px 0 14px}
.gate{max-width:560px;margin:clamp(42px,10vh,130px) auto 0;padding:clamp(22px,5vw,49px);background:linear-gradient(145deg,#1c3032,#152022 74%)}
.gate .brand-mark{margin-bottom:24px;width:49px;height:49px}
.gate p{margin:12px 0 21px}
.gate .actions{align-items:center;margin-top:5px}
.gate .dialog-error{margin:0}
dialog{width:min(480px,calc(100% - 24px));color:var(--text);background:#1a282b;border:1px solid #475d60;border-radius:18px;padding:24px;box-shadow:0 18px 70px #0008}
dialog::backdrop{background:#091013bb;backdrop-filter:blur(4px)}
dialog p{margin:8px 0;color:var(--muted)}
dialog .actions{justify-content:flex-end;margin-top:16px}
dialog ul{padding-left:20px}
.dialog-error{min-height:17px;color:#ffd0af;font-size:12px}
#notice{position:fixed;z-index:4;bottom:18px;right:20px;max-width:min(480px,calc(100vw - 40px));background:#243d3e;color:var(--text);border:1px solid #537575;border-radius:12px;box-shadow:0 8px 28px #0007;padding:11px 14px}
#notice.error{background:#422e26;border-color:#91654b}
.loading{color:var(--muted);padding:45px 10px}
@media(max-width:1070px){
  #shell{grid-template-columns:179px minmax(0,1fr)}
  .sidebar{padding-inline:12px}
  .composer{grid-template-columns:minmax(0,1.5fr) minmax(215px,1fr);gap:14px}
  .choice>input{align-self:flex-start}
  .choice .network-label{flex-basis:100%}
}
@media(max-width:790px){
  #shell{display:block}
  .sidebar{position:static;height:auto;padding:12px 14px;gap:9px;border-right:0;border-bottom:1px solid var(--edge)}
  .sidebar-footer{position:absolute;right:14px;top:13px}
  .sidebar .back{display:none}
  nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
  nav a{justify-content:center;min-height:40px;padding-inline:4px;font-size:12px;gap:5px}
  nav svg{width:16px}
  main{padding:22px 15px 42px}
  .composer{grid-template-columns:minmax(0,1fr)}
  .preview{position:static}
  .screen{width:min(61%,208px);max-height:none}
  .account-layout{grid-template-columns:minmax(0,1fr)}
  .choice .network-label{flex-basis:auto}
}
@media(max-width:405px){
  .panel{padding:12px}
  .choice .network-label{flex-basis:100%}
  .fields.dual{grid-template-columns:1fr}
  .item-header{display:block}
  .item-header .actions{margin-top:8px;justify-content:flex-start}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
