:root{--bg:#f6f3ee;--panel:#fff;--ink:#2b2722;--muted:#7a7268;--line:#e2dcd1;--accent:#5d6b4a;--accent-ink:#fff;--warn:#a5582f;--soft:#ebe6dd;
--serif:"Cormorant Garamond",Georgia,serif;--sans:"Jost","Helvetica Neue",Arial,sans-serif}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:14px;line-height:1.45;overflow:hidden}
button{font:inherit;color:inherit;cursor:pointer}
img{display:block}
figure{margin:0}
.app{height:100%;display:flex;flex-direction:column}
.top{display:flex;align-items:center;gap:10px;padding:14px 16px 10px;flex:none}
.brand{font-family:var(--serif);font-size:22px;font-weight:600;line-height:1}
.brand small{display:block;font-family:var(--sans);font-size:11px;color:var(--muted);font-weight:400;letter-spacing:.04em;margin-top:3px}
.tabs{display:none;gap:4px;margin-left:24px;background:var(--soft);padding:4px;border-radius:999px}
.tabs button,.bar button{border:0;background:transparent;padding:7px 16px;border-radius:999px;font-size:13.5px;color:var(--muted)}
.tabs button[aria-selected=true]{background:var(--panel);color:var(--ink);font-weight:500;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.up{margin-left:auto;border:0;background:var(--ink);color:#fff;border-radius:999px;padding:8px 14px;font-size:13px}
.views{flex:1;min-height:0;position:relative}
.view{position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;padding:0 16px 16px}
.view[hidden]{display:none}
.bar{flex:none;display:flex;border-top:1px solid var(--line);background:var(--panel);padding:6px 8px 10px}
.bar button{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11.5px;padding:6px 0;border-radius:10px}
.bar button svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.6}
.bar button[aria-selected=true]{color:var(--ink);font-weight:600}
/* status chips */
.chip{display:inline-block;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;padding:2px 8px;border-radius:999px;background:var(--soft);color:var(--muted);white-space:nowrap}
.chip.ok{background:#e3e9d9;color:#3f4b30}.chip.redo{background:#f4e2d6;color:var(--warn)}
/* WEEK */
.wk-head{display:flex;align-items:center;gap:8px;margin:2px 0 12px;flex-wrap:wrap}
.wk-head b{font-family:var(--serif);font-size:24px;font-weight:600;white-space:nowrap}
.wk-head .nav{border:1px solid var(--line);background:var(--panel);width:30px;height:30px;border-radius:50%;font-size:15px;line-height:1;flex:none}
.wk-head .sum{flex-basis:100%;font-size:12px;color:var(--muted)}
@media (min-width:900px){.wk-head .sum{flex-basis:auto;margin-left:auto}}
.days{display:flex;flex-direction:column;gap:8px}
.day{display:grid;grid-template-columns:44px 1fr;gap:10px;align-items:start}
.day .dn{text-align:center;padding-top:6px}
.day .dn span{display:block;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.day .dn b{font-size:20px;font-weight:500}
.slot{width:100%;text-align:left;border:1px solid var(--line);background:var(--panel);border-radius:12px;padding:8px;display:grid;grid-template-columns:76px 1fr;gap:10px}
.slot .th{position:relative;width:76px;height:95px;border-radius:7px;overflow:hidden;background:var(--soft)}
.slot .th img{width:100%;height:100%;object-fit:cover}
.badge{position:absolute;right:4px;top:4px;background:rgba(20,18,15,.62);color:#fff;font-size:10px;padding:1px 6px;border-radius:999px}
.slot .meta{font-size:11px;color:var(--muted);display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.slot .theme{font-family:var(--serif);font-size:17px;font-weight:600;margin:2px 0}
.slot .cap{font-size:12.5px;color:#4a453e;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.empty{border:1px dashed var(--line);border-radius:12px;padding:12px;color:var(--muted);font-size:12.5px;display:flex;justify-content:space-between;align-items:center;background:transparent;width:100%;text-align:left}
.empty em{font-style:normal;color:var(--ink);font-weight:500}
/* POST */
.post{display:flex;flex-direction:column;gap:12px}
.p-nav{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted)}
.p-nav button{border:1px solid var(--line);background:var(--panel);border-radius:999px;padding:5px 12px;font-size:12.5px}
.p-nav span{flex:1;text-align:center}
.carr{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;margin:0 -16px;padding-left:16px;padding-right:16px;scrollbar-width:thin}
.carr figure{flex:0 0 82%;scroll-snap-align:center;position:relative;aspect-ratio:4/5;border-radius:10px;overflow:hidden;background:var(--soft)}
.carr figure img{width:100%;height:100%;object-fit:cover}
.carr .n{position:absolute;left:8px;top:8px;background:rgba(20,18,15,.62);color:#fff;font-size:11px;padding:2px 8px;border-radius:999px}
.carr .mv{position:absolute;bottom:8px;display:flex;gap:6px;right:8px}
.carr .mv button{border:0;background:rgba(255,255,255,.9);width:30px;height:30px;border-radius:50%;font-size:13px}
.carr .cover{position:absolute;left:8px;bottom:8px;background:var(--accent);color:#fff;font-size:10.5px;padding:2px 8px;border-radius:999px;letter-spacing:.05em}
.p-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.p-theme{font-family:var(--serif);font-size:26px;font-weight:600;line-height:1.1}
.p-cap{white-space:pre-line;font-size:14px;color:#3d3832;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:12px}
.ask{background:#fbf3d9;border-radius:4px;padding:0 3px}
.acts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.acts button{border:1.5px solid var(--ink);background:transparent;border-radius:12px;padding:11px 0;font-size:14px}
.acts .approve{background:var(--accent);border-color:var(--accent);color:#fff}
.acts .approve[aria-pressed=true]{background:#3f4b30;border-color:#3f4b30}
.acts .redo[aria-pressed=true]{background:#f4e2d6;border-color:var(--warn);color:var(--warn)}
.more{display:flex;gap:14px;font-size:12.5px;flex-wrap:wrap}
.more button{border:0;background:none;padding:0;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.note{display:flex;flex-direction:column;gap:6px}
.note label{font-size:12px;color:var(--warn);font-weight:500}
.note textarea{font:inherit;font-size:13.5px;min-height:64px;border:1px solid var(--warn);border-radius:10px;padding:8px 10px;resize:vertical;background:#fff}
.toast{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);background:var(--ink);color:#fff;font-size:12.5px;padding:8px 14px;border-radius:999px;opacity:0;transition:opacity .2s;pointer-events:none;white-space:nowrap}
.toast.on{opacity:1}
/* PROFILE */
.pf-head{display:flex;gap:14px;align-items:center;margin:4px 0 10px}
.av{width:62px;height:62px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-family:var(--serif);font-size:20px;font-weight:600;flex:none}
.pf-head b{font-size:14px}.pf-head p{margin:2px 0 0;font-size:12px;color:var(--muted)}
.legend{display:flex;gap:12px;font-size:11.5px;color:var(--muted);margin:0 0 8px;flex-wrap:wrap}
.legend i{display:inline-block;width:12px;height:12px;border:2px dashed var(--accent);vertical-align:-2px;margin-right:4px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;margin:0 -16px;touch-action:pan-y}
.tile{position:relative;aspect-ratio:1;overflow:hidden;background:var(--soft);user-select:none;-webkit-user-select:none}
.tile img{width:100%;height:100%;object-fit:cover;pointer-events:none}
.tile.q::after{content:"";position:absolute;inset:0;border:2px dashed var(--accent)}
.tile .d{position:absolute;left:4px;top:4px;background:var(--accent);color:#fff;font-size:10px;font-weight:600;padding:1px 6px;border-radius:4px;letter-spacing:.04em}
.tile .cm{position:absolute;right:4px;top:4px;width:15px;height:15px}
.tile.lift{opacity:.35}
.tile.over::after{border:3px solid var(--ink)}
.ghost{position:fixed;width:90px;height:90px;pointer-events:none;z-index:9;border-radius:6px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.25);opacity:.95}
.ghost img{width:100%;height:100%;object-fit:cover}
.hint{font-size:11.5px;color:var(--muted);margin:8px 0 0}
/* DESKTOP */
@media (min-width:900px){
  .tabs{display:flex}.bar{display:none}
  .top{padding:18px 28px 14px}
  .view{padding:0 28px 24px}
  .days{display:grid;grid-template-columns:repeat(7,1fr);gap:10px}
  .day{grid-template-columns:1fr;gap:6px}
  .day .dn{text-align:left;padding:0;display:flex;gap:6px;align-items:baseline}
  .slot{grid-template-columns:1fr;padding:8px}
  .slot .th{width:100%;height:auto;aspect-ratio:4/5}
  .slot .cap{-webkit-line-clamp:4}
  .empty{min-height:120px;flex-direction:column;justify-content:center;gap:6px;text-align:center}
  .post{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:28px;align-items:start}
  .post .p-nav{grid-column:1/-1}
  .carr{margin:0;padding:0 0 6px}
  .carr figure{flex:0 0 auto;height:min(620px,calc(100vh - 150px));width:auto}
  .p-side{display:flex;flex-direction:column;gap:12px}
  .pf{max-width:700px;margin:0 auto}
  .grid{margin:0}
}
/* ---- added for the live console (the block above is the approved V2 mock, unchanged) ---- */
[hidden]{display:none!important} /* .gate and .view set display; without this, hidden overlays still eat every tap */
.chip.pub{background:var(--ink);color:#fff}.chip.fail{background:#f6d9d0;color:#8f2f16}.chip.draft{background:#eef0f4;color:#4b5563}
.status{font-size:11.5px;color:var(--muted);padding:0 16px 8px;flex:none}
.status.bad{color:#8f2f16;font-weight:500}
.day .more-posts{display:flex;flex-direction:column;gap:8px}
.empty small{display:block;font-size:11px;color:var(--muted)}
.p-cap textarea{width:100%;min-height:180px;font:inherit;font-size:14px;border:0;resize:vertical;outline:0;background:transparent;color:inherit}
.p-err{background:#f6d9d0;color:#8f2f16;border-radius:10px;padding:10px 12px;font-size:13px}
.p-err button{margin-left:8px;border:1px solid #8f2f16;background:#fff;border-radius:999px;padding:3px 10px;font-size:12.5px;color:#8f2f16}
.p-link{font-size:13px}.p-link a{color:var(--accent)}
.writing{font-size:13px;color:var(--muted);font-style:italic}
.gate{position:fixed;inset:0;background:var(--bg);display:grid;place-items:center;z-index:20;padding:24px}
.gate form{display:flex;flex-direction:column;gap:12px;max-width:320px;width:100%}
.gate b{font-family:var(--serif);font-size:28px;font-weight:600}
.gate input{font:inherit;font-size:16px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff}
.gate button{border:0;background:var(--ink);color:#fff;border-radius:999px;padding:12px;font-size:15px}
.gate p{margin:0;font-size:13px;color:var(--muted)}
.busy{position:fixed;inset:0;background:rgba(246,243,238,.75);display:grid;place-items:center;z-index:15;font-size:14px}
.nothing{color:var(--muted);font-size:14px;padding:40px 0;text-align:center}
.tile .x{position:absolute;left:0;right:0;bottom:0;background:rgba(20,18,15,.55);color:#fff;font-size:9.5px;text-align:center;padding:1px 0;letter-spacing:.04em}
@media (min-width:900px){.day{align-content:start}} /* empty days start at the top, not halfway down a tall neighbour */
/* ==== HDH brand skin: option "Light" (approved by Mangan 15-Oct-2026). Palette from the HDH logo sheet:
   #C7C0B6 cream · #A19181 taupe · #251E18 near-black · #694E3A brown. Titles NOFEX, text NEIKO LIGHT.
   The font files are licensed to HDH and are NOT in this repo: put them in public/fonts/ (see docs/fonts.md).
   Without them the console falls back to Jost and still works. */
@font-face{font-family:Nofex;src:url(fonts/Nofex.otf) format("opentype");font-display:swap}
@font-face{font-family:Neiko;src:url(fonts/neiko-light-webfont.woff2) format("woff2");font-display:swap}
:root{--display:Nofex,Jost,"Arial Black",sans-serif;--sans:Neiko,Jost,"Helvetica Neue",Arial,sans-serif;--serif:var(--display)}
body{font-size:14.5px;letter-spacing:.01em}
.status.bad{color:var(--ink);font-weight:400}
.brand{display:flex;align-items:flex-end;gap:10px}.brand img{height:30px;width:auto}
.brand .sx{font-family:var(--sans);font-size:12px;letter-spacing:.22em;text-transform:uppercase;color:var(--muted);padding-bottom:2px}
.wk-head b,.p-theme,.slot .theme,.gate b{font-family:var(--display);font-weight:400;text-transform:uppercase;letter-spacing:.02em}
.wk-head b{font-size:20px}.slot .theme{font-size:13px;margin:4px 0}.p-theme{font-size:22px}
.day .dn b{font-family:var(--display);font-weight:400}
.slot .cap{color:var(--ink);opacity:.85}.p-cap{color:var(--ink)}
.ask{background:var(--ask);color:var(--ink)}
.chip{background:var(--soft);color:var(--ink)}.chip.ok{background:var(--accent);color:var(--accent-ink)}
.up{background:var(--ink);color:var(--bg)}
.acts button{border-color:var(--ink)}.acts .approve{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.carr .cover,.tile .d{background:var(--accent);color:var(--accent-ink)}
.tile.q::after,.legend i{border-color:var(--accent)}
/* the phone: Instagram's own look (light mode), not the brand's */
.phone{background:var(--ig-bg);color:var(--ig-ink);font-family:-apple-system,"SF Pro Text","Helvetica Neue",Arial,sans-serif;letter-spacing:0}
.phone .sb{display:none}
.ig-top{display:flex;align-items:center;gap:14px;padding:10px 14px 8px;font-size:16px}
.ig-top b{flex:1;min-width:0;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ig-top svg{width:22px;height:22px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8}
.ig-head{display:flex;align-items:center;gap:18px;padding:6px 14px 10px}
.ig-av{width:84px;height:84px;border-radius:50%;flex:none;background:#C7C0B6;display:grid;place-items:center;outline:1px solid var(--ig-line);outline-offset:2px}
.ig-av img{width:62%;height:auto}
.ig-c b.nm{display:block;font-size:14px;font-weight:600;margin-bottom:8px}
.ig-n{display:flex;gap:18px;font-size:13px}.ig-n span{display:flex;flex-direction:column;line-height:1.2}.ig-n b{font-size:16px;font-weight:700}
.ig-bio{padding:0 14px 10px;font-size:13.5px;line-height:1.35}.ig-bio .cat{display:block;color:var(--ig-muted)}.ig-bio .loc{color:var(--ig-link)}
.ig-btn{display:flex;gap:6px;padding:0 14px 12px}.ig-btn span{flex:1;text-align:center;background:var(--ig-btn);border-radius:8px;padding:7px 0;font-size:13.5px;font-weight:600}
.ig-hl{display:flex;gap:16px;padding:2px 14px 12px}.ig-hl div{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:12px}
.ig-hl i{width:62px;height:62px;border-radius:50%;outline:1px solid var(--ig-line);outline-offset:3px;display:block}
.ig-tabs{display:flex;border-top:1px solid var(--ig-line)}.ig-tabs span{flex:1;display:grid;place-items:center;padding:9px 0;color:var(--ig-muted)}
.ig-tabs span:first-child{color:var(--ig-ink);box-shadow:inset 0 -1.5px 0 var(--ig-ink)}
.ig-tabs svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7}
.phone .grid{margin:0;gap:2px}.phone .tile{aspect-ratio:3/4}
.pf .legend,.pf .hint,.pf .queue{color:var(--muted)}
.pf .queue{font-size:12px;margin:0 0 8px}
@media (max-width:899px){
  #v-profile{padding:0}.pf-side{padding:10px 16px 16px}
}
@media (min-width:900px){
  .pf{max-width:none;display:flex;gap:40px;justify-content:center;align-items:flex-start;padding-top:4px}
  .phone{width:375px;flex:none;border:11px solid #0d0c0b;border-radius:54px;overflow:hidden;box-shadow:0 18px 50px rgba(0,0,0,.28)}
  .phone .scr{height:calc(100vh - 250px);overflow-y:auto;scrollbar-width:none}
  .phone .sb{display:flex;justify-content:space-between;align-items:center;padding:12px 28px 4px;font-size:14px;font-weight:600;position:relative}
  .phone .sb::after{content:"";position:absolute;left:50%;top:9px;transform:translateX(-50%);width:104px;height:28px;border-radius:20px;background:#0d0c0b}
  .phone .sb svg{height:12px;fill:currentColor}
  .pf-side{width:260px;padding-top:40px}
  .pf-side .legend{flex-direction:column;gap:8px}
}
/* option Light */
:root{--bg:#FFFFFF;--panel:#FFFFFF;--ink:#251E18;--muted:#694E3A;--line:#C7C0B6;--soft:#EDE9E4;--accent:#251E18;--accent-ink:#FFFFFF;--ask:#C7C0B6;
  --ig-bg:#FFFFFF;--ig-ink:#000;--ig-muted:#737373;--ig-link:#00376B;--ig-btn:#EFEFEF;--ig-line:#DBDBDB}
.tabs{background:#C7C0B6}.slot{border-color:#C7C0B6}.bar{background:#fff}
.busy{background:rgba(255,255,255,.75)}
