/* PostTrak — layout on top of the shared Harbour look (ui.css, copied from the panel dashboard). */
.topbar { --logo-face: var(--top-bg); display: flex; align-items: center; gap: 24px; padding: 10px 24px; background: var(--top-bg); color: var(--top-ink); border-top: 4px solid var(--top-line); position: sticky; top: 0; z-index: 10; }
.topbar .brand { text-decoration: none; color: var(--top-ink); display: inline-flex; }
.topbar .dt-logo, .topbar .dt-suffix { color: var(--top-ink); }
.topbar .dt-suffix { border-left-color: rgba(255,255,255,.45); opacity: .85; }
.topbar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar nav a { color: var(--top-ink); opacity: .8; text-decoration: none; font-weight: 600; font-size: 14px; padding: 4px 0; border-bottom: 2px solid transparent; }
.topbar nav a:hover { opacity: 1; }
.topbar nav a.on { opacity: 1; border-bottom-color: rgba(255,255,255,.8); }
.who { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.who a { color: var(--top-ink); text-decoration: none; font-weight: 600; }
.who .tiny { color: rgba(255,255,255,.8); }
.who button { color: var(--top-ink); }
main { padding: 24px; max-width: 1500px; margin: 0 auto; }
.loading { color: var(--muted); padding: 40px; text-align: center; }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.tabs { display: inline-flex; gap: 4px; background: var(--neutral-soft); padding: 4px; border-radius: 10px; }
.tabs a, .tabs button { padding: 6px 14px; border-radius: 7px; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; border: 0; background: transparent; }
.tabs a.on, .tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.weekpick { display: inline-flex; align-items: center; gap: 6px; }
.weekpick select { width: auto; padding: 6px 10px; }
.auth-card { max-width: 420px; margin: 60px auto; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 50; font-weight: 600; }
.toast.bad { background: var(--bad); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: var(--font-display); font-size: 22px; }
.films { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.film-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.film-chip .sw { width: 12px; height: 12px; border-radius: 3px; }
.film-chip.removed { opacity: .5; text-decoration: line-through; }
.f0 { --f: #4E6F98; --fs: #E3EAF3; } .f1 { --f: #B4651E; --fs: #FBEBDD; } .f2 { --f: #2F7D5B; --fs: #DDF1E6; } .f3 { --f: #8A3A73; --fs: #F5E1EF; } .f4 { --f: #6B6B2A; --fs: #EFEFD8; } .f5 { --f: #3A6F8A; --fs: #DDEEF5; }
.sw { background: var(--f); }
.board-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table.board { border-collapse: separate; border-spacing: 0; min-width: 900px; }
table.board th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
table.board td, table.board th { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 8px; vertical-align: top; }
table.board td.cin { font-weight: 700; white-space: nowrap; background: var(--hover); position: sticky; left: 0; z-index: 1; min-width: 120px; }
table.board td.cin .tiny { font-weight: 400; display: block; }
.shift { font-size: 12px; font-weight: 700; color: var(--ok-ink); background: var(--ok-soft); border-radius: 6px; padding: 2px 6px; margin-bottom: 6px; display: inline-block; }
.shift.prop { color: var(--accent); background: var(--accent-soft); }
.st { display: grid; grid-template-columns: 44px 1fr auto; gap: 6px; align-items: baseline; font-size: 12.5px; padding: 2px 4px; border-radius: 5px; border-left: 3px solid var(--f); margin-bottom: 2px; background: transparent; }
.st .t { font-variant-numeric: tabular-nums; font-weight: 700; }
.st .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.st .adv { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.st.on { background: var(--fs); }
.st.on .nm { color: var(--text); }
.st.prop-only { outline: 1px dashed var(--f); }
.st.locked-only { box-shadow: inset 0 0 0 1px var(--f); }
.st.off { opacity: .45; }
.st.gone { text-decoration: line-through; opacity: .45; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin: 10px 0; align-items: center; }
.legend .st { display: inline-grid; grid-template-columns: auto; padding: 1px 8px; margin: 0; }
.pbar { height: 8px; background: var(--neutral-soft); border-radius: 999px; overflow: hidden; min-width: 80px; }
.pbar > div { height: 100%; background: var(--accent); }
.pbar.ok > div { background: var(--ok); }
.pbar.low > div { background: #D98B5F; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--line); margin-right: 6px; }
.dot.ok { background: var(--ok); } .dot.wait { background: #E0A458; } .dot.bad { background: var(--bad); }
.empty { padding: 30px; text-align: center; color: var(--muted); }
.region-chk { display: inline-flex; gap: 10px; }
.oncepw { font-family: ui-monospace, Menlo, monospace; font-size: 16px; padding: 8px 12px; background: var(--neutral-soft); border-radius: 8px; display: inline-block; user-select: all; }
@media (max-width: 700px) {
  main { padding: 14px 16px; }
  .topbar { gap: 12px; padding: 8px 16px; flex-wrap: wrap; }
  .topbar .dt-word { display: none; }
}
