/* AIMETECH AI Staff — Social. Brand: black dominant, white space, one warm
   accent (terracotta #C8502A), square/geometric, Space Grotesk. */
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-latin.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #0d0d0d; --ink-2: #3b3936; --ink-3: #75716b; --ink-4: #a8a39b;
  --paper: #f0eeeb; --white: #fff; --line: #e1ddd7; --line-2: #cfc9c0; --hover: #f6f4f1;
  --accent: #c8502a; --accent-2: #a9401f; --accent-soft: #f7e4dc;
  --ok: #2f7a52; --ok-soft: #e3f1e8; --warn: #a8670a; --warn-soft: #fbefd9; --info: #2c5d9a; --info-soft: #e5edf8; --bad: #b3362c;
  --li: #0a66c2;
  --r: 4px; --r-lg: 6px;
  --font: 'Space Grotesk', system-ui, sans-serif; --mono: 'JetBrains Mono', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, textarea, select { font: inherit; color: inherit; }
.ic { width: 18px; height: 18px; flex-shrink: 0; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: 12px; }

/* ---- top bar ----------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 50; height: 56px; display: flex; align-items: center; gap: 20px; padding: 0 20px; background: var(--ink); color: var(--white); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .08em; font-size: 13px; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; letter-spacing: 0; }
.brand-sub { font-weight: 500; letter-spacing: .02em; color: #b9b4ac; text-transform: none; }
.top-nav { display: flex; gap: 2px; height: 100%; }
.top-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; font-weight: 600; font-size: 13.5px; color: #c9c4bc; border-bottom: 2px solid transparent; }
.top-nav a:hover { color: var(--white); }
.top-nav a.is-active { color: var(--white); border-bottom-color: var(--accent); }
.top-nav .count { min-width: 18px; height: 18px; padding: 0 5px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.worker-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 1px solid #3a3835; border-radius: 15px; font-size: 12.5px; color: #dcd7cf; }
.worker-pill:hover { border-color: #6a655e; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #4cc38a; box-shadow: 0 0 0 0 rgba(76, 195, 138, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(76, 195, 138, .5); } 70% { box-shadow: 0 0 0 7px rgba(76, 195, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 195, 138, 0); } }
.persona { height: 30px; background: #1d1c1a; border: 1px solid #3a3835; color: #dcd7cf; border-radius: var(--r); padding: 0 8px; font-size: 12.5px; }
.mock-flag { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; }
.av { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: #e7e2db; color: var(--ink); flex-shrink: 0; }
.av-sm { width: 24px; height: 24px; font-size: 9.5px; }
.av-lg { width: 40px; height: 40px; font-size: 13px; }
.av-page { border-radius: var(--r); background: var(--ink); color: #fff; }
.av-h1 { background: #f1d9cf; } .av-h2 { background: #dce6dc; } .av-h3 { background: #dfe3ef; } .av-h4 { background: #efe6cf; } .av-h5 { background: #e7dcea; }

/* ---- layout ------------------------------------------------------------ */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.rail { background: var(--white); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 18px; }
.rail-h { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 0 8px 6px; }
.chan { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.chan:hover { background: var(--hover); }
.chan.is-on { background: var(--paper); font-weight: 700; }
.chan .sub { font-size: 11.5px; color: var(--ink-3); font-weight: 500; display: block; }
.chan .li { margin-left: auto; width: 16px; height: 16px; border-radius: 3px; background: var(--li); color: #fff; font-size: 9px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.chan .tag { margin-left: auto; font-size: 10.5px; color: var(--ink-3); }
.rail-foot { margin-top: auto; font-size: 12px; color: var(--ink-3); padding: 0 8px; }
.main { padding: 22px 28px 48px; min-width: 0; }
.wide .shell { grid-template-columns: minmax(0, 1fr); }
.wide .rail { display: none; }

/* ---- buttons / inputs -------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r); font-weight: 600; font-size: 13.5px; border: 1px solid var(--line-2); background: var(--white); white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--hover); border-color: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.input, .select, .textarea { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); }
.textarea { height: auto; padding: 10px; resize: vertical; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--white); }
.seg a, .seg button { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink-3); border-right: 1px solid var(--line); }
.seg > :last-child { border-right: 0; }
.seg .is-on { background: var(--ink); color: #fff; }

/* ---- page header ------------------------------------------------------- */
.ph { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.ph h1 { font-size: 22px; letter-spacing: -.01em; }
.ph .grow { flex: 1; }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--ink); color: #eae6df; border-radius: var(--r-lg); margin-bottom: 16px; font-size: 13.5px; }
.banner b { color: #fff; }
.banner .btn { margin-left: auto; }
.banner .bot { width: 30px; height: 30px; border-radius: var(--r); background: var(--accent); display: inline-flex; align-items: center; justify-content: center; color: #fff; }

/* ---- calendar ---------------------------------------------------------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.cal-h { padding: 10px 10px 8px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 12px; font-weight: 700; display: flex; gap: 6px; align-items: baseline; }
.cal-h span { font-weight: 500; color: var(--ink-3); }
.cal-h.is-today { background: var(--accent); color: #fff; } .cal-h.is-today span { color: #fde6dc; }
.cal-c { min-height: 420px; border-right: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 8px; background: var(--white); }
.cal-c:nth-child(7n), .cal-h:nth-child(7n) { border-right: 0; }
.cal-c.is-we { background: #faf9f7; }
.cal-c.is-today { background: #fdf8f6; }
.ev { font-size: 11.5px; font-weight: 600; color: var(--warn); background: var(--warn-soft); padding: 5px 7px; border-radius: var(--r); display: flex; gap: 5px; align-items: center; }
.ev .ic { width: 13px; height: 13px; }
.pc { display: flex; flex-direction: column; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); cursor: pointer; border-left: 3px solid var(--line-2); }
.pc:hover { border-color: var(--ink-4); }
.pc-top { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); }
.pc-top b { color: var(--ink); font-size: 12px; }
.pc-top .time { margin-left: auto; font-family: var(--mono); font-size: 11px; }
.pc-t { font-size: 12.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-m { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pc.s-approve { border-left-color: var(--accent); }
.pc.s-scheduled { border-left-color: var(--info); }
.pc.s-live { border-left-color: var(--ok); }
.pc.s-draft { border-left-color: var(--ink-4); border-style: dashed; border-left-style: solid; }
.pc.s-mention { border-left-color: var(--li); background: #f5f9fd; }
.pc.s-plan { background: transparent; border-style: dashed; color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.pill .ic { width: 12px; height: 12px; }
.p-approve { background: var(--accent-soft); color: var(--accent-2); }
.p-scheduled { background: var(--info-soft); color: var(--info); }
.p-live { background: var(--ok-soft); color: var(--ok); }
.p-draft { background: var(--paper); color: var(--ink-2); }
.p-mention { background: #e3eefa; color: var(--li); }
.p-fmt { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 600; }
.legend { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 10px; height: 10px; display: inline-block; }

/* ---- list / cards ------------------------------------------------------ */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
.panel-h .muted { font-weight: 500; font-size: 12.5px; }
.panel-h .end { margin-left: auto; }
.rows { list-style: none; }
.row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.rows .row:first-child { border-top: 0; }
.row-t { font-weight: 600; }
.row-s { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.row-x { display: flex; gap: 8px; align-items: center; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.kpi-l { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.kpi-v { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.kpi-v small { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.kpi-s { font-size: 12.5px; color: var(--ink-3); }
.kpi-s.bad { color: var(--bad); font-weight: 600; } .kpi-s.ok { color: var(--ok); font-weight: 600; }
.bar { height: 6px; background: var(--paper); margin-top: 10px; } .bar > span { display: block; height: 100%; background: var(--accent); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 10px 18px; border-bottom: 1px solid var(--line); background: #faf9f7; }
.tbl td { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .n { text-align: right; font-variant-numeric: tabular-nums; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 18px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); height: 100%; }
.chart .b { width: 100%; display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.chart .b span { flex: 1; background: var(--line-2); }
.chart .b span.act { background: var(--accent); }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }

/* ---- composer (full-screen) -------------------------------------------- */
.ov { position: fixed; inset: 0; z-index: 100; background: rgba(13, 13, 13, .55); display: flex; }
.composer { margin: 24px auto; width: min(1280px, calc(100vw - 32px)); background: var(--white); border-radius: var(--r-lg); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.cp-h { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.cp-h h2 { font-size: 16px; }
.cp-h .x { margin-left: auto; }
.cp-body { display: grid; grid-template-columns: 300px minmax(0, 1fr) 380px; min-height: 0; }
.cp-col { padding: 18px 20px; overflow-y: auto; min-height: 0; }
.cp-col + .cp-col { border-left: 1px solid var(--line); }
.cp-sec { margin-bottom: 18px; }
.cp-sec-h { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.cp-sec-h .end { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; }
.acct { display: flex; gap: 8px; flex-wrap: wrap; }
.acct label { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--line-2); border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; }
.acct input { display: none; }
.acct label.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.editor { width: 100%; min-height: 330px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px; font-size: 14.5px; line-height: 1.6; resize: vertical; }
.ed-tools { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0; }
.ed-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.media-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.media-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.media-btn:hover { border-color: var(--ink); }
.media-btn.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.slides { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; }
.slide { flex: 0 0 132px; aspect-ratio: 4 / 5; background: var(--ink); color: var(--paper); padding: 12px; font-size: 12px; font-weight: 700; line-height: 1.3; display: flex; flex-direction: column; justify-content: space-between; }
.slide:first-child { background: var(--accent); color: #fff; }
.slide i { font-style: normal; font-size: 10px; font-weight: 700; opacity: .7; font-family: var(--mono); }
.fc { display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: var(--paper); border-radius: var(--r); font-size: 12.5px; }
.ai-box { background: var(--paper); border-radius: var(--r-lg); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ai-box .input { background: var(--white); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { height: 28px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 14px; font-size: 12px; font-weight: 600; background: var(--white); }
.chip-btn:hover { border-color: var(--ink); }
.src { display: flex; flex-direction: column; gap: 8px; }
.src-i { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); font-size: 12.5px; }
.src-n { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.src-t { font-weight: 600; }
.src-q { color: var(--ink-2); margin-top: 4px; font-style: italic; }
.src-m { color: var(--ink-3); margin-top: 4px; font-size: 11.5px; display: flex; gap: 6px; align-items: center; }
.cite { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; vertical-align: 2px; margin-left: 2px; }
.gap { background: var(--warn-soft); color: var(--warn); font-weight: 600; padding: 0 3px; border-radius: 3px; }
.checks { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.checks div { display: flex; gap: 8px; align-items: center; }
.checks .ic { width: 15px; height: 15px; }
.checks .ok { color: var(--ok); } .checks .warn { color: var(--warn); }

/* LinkedIn preview */
.li-prev { border: 1px solid #dcdcdc; border-radius: 8px; background: #fff; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif; color: rgba(0, 0, 0, .9); }
.li-h { display: flex; gap: 8px; padding: 12px 14px 0; }
.li-h .av { width: 44px; height: 44px; font-size: 14px; }
.li-n { font-weight: 600; font-size: 14px; }
.li-s { font-size: 12px; color: rgba(0, 0, 0, .6); }
.li-txt { padding: 10px 14px; font-size: 14px; line-height: 1.43; white-space: pre-wrap; }
.li-more { color: rgba(0, 0, 0, .6); font-weight: 600; }
.li-media { aspect-ratio: 4 / 5; background: var(--accent); color: #fff; display: flex; align-items: flex-end; padding: 22px; font-family: var(--font); font-size: 22px; font-weight: 700; line-height: 1.2; }
.li-acts { display: flex; justify-content: space-around; padding: 8px; border-top: 1px solid #e8e8e8; font-size: 13px; font-weight: 600; color: rgba(0, 0, 0, .6); }
.prev-tabs { margin-bottom: 10px; }

.cp-foot { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); background: #faf9f7; }
.cp-foot .grow { flex: 1; }
.when { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.when .input { width: 190px; height: 34px; }

/* ---- drawer ------------------------------------------------------------ */
.drawer { margin-left: auto; width: min(560px, 100vw); height: 100%; background: var(--white); display: flex; flex-direction: column; }
.dr-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
.dr-h .x { margin-left: auto; }
.dr-b { padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.log { font-family: var(--mono); font-size: 11.5px; line-height: 1.7; background: var(--ink); color: #e3ded6; padding: 14px; border-radius: var(--r); white-space: pre-wrap; }

/* ---- landing ----------------------------------------------------------- */
.land { max-width: 980px; margin: 0 auto; padding: 48px 24px; }
.land h1 { font-size: 30px; letter-spacing: -.02em; }
.land p.lead { color: var(--ink-3); margin: 6px 0 28px; }
.workers { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.wk { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; border-top: 3px solid var(--accent); }
a.wk:hover { border-color: var(--ink-4); border-top-color: var(--accent); }
.wk-h { display: flex; gap: 12px; align-items: center; }
.wk-ic { width: 44px; height: 44px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); }
.wk-n { font-size: 17px; font-weight: 700; }
.wk-s { font-size: 12.5px; color: var(--ink-3); }
.wk-l { list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; }
.wk-l li { display: flex; gap: 8px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.d-acc { background: var(--accent); } .d-ok { background: var(--ok); } .d-info { background: var(--info); } .d-li { background: var(--li); }
.wk-f { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.wk.is-empty { border: 1.5px dashed var(--line-2); border-top: 1.5px dashed var(--line-2); background: transparent; align-items: center; justify-content: center; color: var(--ink-3); min-height: 210px; text-align: center; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); font-weight: 600; z-index: 200; }

@media (max-width: 1100px) {
  .cp-body { grid-template-columns: minmax(0, 1fr); } .cp-col + .cp-col { border-left: 0; border-top: 1px solid var(--line); }
  .shell { grid-template-columns: minmax(0, 1fr); } .rail { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid2 { grid-template-columns: minmax(0, 1fr); }
  .cal { grid-template-columns: minmax(0, 1fr); } .cal-h { display: none; } .cal-c { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .cal-c::before { content: attr(data-day); font-size: 12px; font-weight: 700; }
  .top-nav a { padding: 0 8px; } .brand-sub, .worker-pill span:last-child { display: none; }
}

/* ---- sign-in ----------------------------------------------------------- */
body.login { background: var(--ink); }
.login-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.login-brand { padding: 56px; color: var(--paper); display: flex; flex-direction: column; gap: 24px; justify-content: space-between; }
.login-claim { font-size: 34px; font-weight: 700; line-height: 1.15; max-width: 460px; letter-spacing: -.01em; }
.login-list { list-style: none; font-size: 13px; color: #b9b4ac; }
.login-list li::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--accent); margin-right: 8px; }
.login-pane { background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: min(380px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.login-card h1 { font-size: 24px; }
.btn-ms { height: 46px; margin-top: 12px; }
.login-error { color: var(--bad); font-size: 13px; font-weight: 600; }
@media (max-width: 800px) { .login-wrap { grid-template-columns: minmax(0, 1fr); } .login-brand { padding: 28px; } .login-claim { font-size: 24px; } }

/* ---- app additions ----------------------------------------------------- */
.empty { padding: 40px 18px; text-align: center; color: var(--ink-3); }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.md h2 { font-size: 14px; margin: 16px 0 6px; } .md h2:first-child { margin-top: 0; }
.md p, .md li { font-size: 14px; line-height: 1.55; } .md ul { padding-left: 18px; }
.modal { margin: auto; width: min(520px, calc(100vw - 32px)); background: var(--white); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.modal h2 { font-size: 17px; }
.modal-x { display: flex; gap: 8px; justify-content: flex-end; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.opt-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.opt-row .chip-btn.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.src-i .rm { justify-self: end; color: var(--ink-3); }
.media-prev { margin-top: 8px; max-width: 100%; border: 1px solid var(--line); }
.slides-edit { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.saving { font-size: 12px; color: var(--ink-3); }
.err-line { color: var(--bad); font-weight: 600; font-size: 13px; }
.busy { opacity: .6; pointer-events: none; }
.pc-who { display: contents; }
.li-prev img { width: 100%; display: block; }
.kv-t { width: 100%; }

.wk-ic { flex-shrink: 0; }
.pulse { display: inline-block; vertical-align: middle; margin-right: 4px; }
.slide { justify-content: flex-start; gap: 8px; font-size: 11px; overflow: hidden; }
.slide i { margin-bottom: 2px; }
