@font-face { font-family: 'Jost'; font-weight: 400 700; font-display: swap; src: url(fonts/jost-latin.woff2) format('woff2'); }
:root {
  --bg: #0a0a0b; --bg2: #0f0f11; --panel: #141416; --panel2: #1a1a1d; --hover: #202024; --line: #222226; --line2: #2d2d33;
  --text: #ececee; --muted: #8d8d96; --dim: #5e5e66; --accent: #ff7900; --accent2: #ff9330; --accent-bg: rgba(255,121,0,.11); --accent-line: rgba(255,121,0,.35);
  --ok: #3fcf8e; --ok-bg: rgba(63,207,142,.11); --warn: #f2b33d; --warn-bg: rgba(242,179,61,.12); --bad: #ff5f57; --bad-bg: rgba(255,95,87,.12);
  --info: #7aa7ff; --info-bg: rgba(122,167,255,.12); --r: 12px; --rs: 8px; --head: 'Jost', 'Segoe UI', sans-serif; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { font: 14px/1.5 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; margin: 0; letter-spacing: .1px; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 16px; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent2); text-decoration: none; cursor: pointer; }
img, video { -webkit-user-drag: none; user-select: none; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 12.5px; } .ok-t { color: var(--ok); } .bad-t { color: var(--bad); } .warn-t { color: var(--warn); }
.mark { width: 24px; height: 23px; color: #fff; flex: none; }
.boot { height: 100vh; }
.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--rs); border: 1px solid var(--line2);
  background: var(--panel); cursor: pointer; font-weight: 500; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #0b0b0b; font-weight: 600; }
.btn.primary:hover { background: var(--accent2); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #05140c; font-weight: 600; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel2); }
.btn.danger { color: var(--bad); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.icon { width: 36px; padding: 0; } .btn.sm.icon { width: 30px; }
.btn.on { border-color: var(--accent); background: var(--accent-bg); color: var(--text); }
.btn:disabled { opacity: .45; pointer-events: none; }
.input, .select { width: 100%; height: 40px; padding: 0 12px; border-radius: var(--rs); border: 1px solid var(--line2); background: var(--bg2); outline: none; }
textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-bg); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%238d8d96' stroke-width='1.6'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { color: var(--bad); font-size: 13px; min-height: 18px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 20px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--panel2); color: var(--muted); }
.b-pending { background: var(--info-bg); color: var(--info); } .b-approved, .b-active { background: var(--ok-bg); color: var(--ok); }
.b-changes { background: var(--warn-bg); color: var(--warn); } .b-closed { background: var(--panel2); color: var(--muted); } .b-suspended { background: var(--bad-bg); color: var(--bad); }
.b-orange { background: var(--accent-bg); color: var(--accent2); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-h .more { margin-left: auto; }
.empty { text-align: center; color: var(--muted); padding: 34px 16px; }
.empty b { display: block; color: var(--text); font-family: var(--head); font-size: 16px; margin-bottom: 4px; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 500px at 70% -10%, rgba(255,121,0,.13), transparent 60%), var(--bg); }
.login .box { width: min(400px, 100%); }
.login .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.login .brand b { font-family: var(--head); font-size: 21px; }
.login form { display: flex; flex-direction: column; gap: 12px; }
.rules { font-size: 12.5px; color: var(--muted); margin: 0; padding-left: 18px; }

/* shell */
header { display: flex; align-items: center; gap: 18px; padding: 0 24px; height: 60px; border-bottom: 1px solid var(--line); background: var(--bg2); position: sticky; top: 0; z-index: 10; }
header .brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
header .brand b { font-family: var(--head); font-size: 18px; }
header .pill { font-size: 11px; color: var(--accent2); border: 1px solid var(--accent-line); border-radius: 20px; padding: 1px 8px; }
nav.main { display: flex; gap: 2px; margin-left: 10px; }
nav.main a { color: var(--muted); padding: 7px 12px; border-radius: var(--rs); font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
nav.main a:hover { color: var(--text); background: var(--panel2); }
nav.main a.on { color: var(--text); background: var(--panel2); }
nav.main .n { font-size: 11px; background: var(--accent); color: #000; border-radius: 10px; padding: 0 6px; font-weight: 600; }
header .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bell { position: relative; }
.bell .dot { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--accent); color: #000; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.menu { position: absolute; top: 54px; right: 20px; width: min(380px, 92vw); background: var(--panel); border: 1px solid var(--line2); border-radius: var(--r); box-shadow: 0 20px 60px rgba(0,0,0,.5); padding: 8px; z-index: 30; max-height: 70vh; overflow: auto; }
.menu .mi { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: var(--rs); cursor: pointer; }
.menu .mi:hover { background: var(--panel2); }
.menu .mi.unread b::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: 1px; }
.menu .h { display: flex; justify-content: space-between; padding: 6px 10px 8px; color: var(--muted); font-size: 12.5px; }
main { max-width: 1280px; margin: 0 auto; padding: 26px 24px 70px; }
.top { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.top .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb { color: var(--muted); font-size: 13px; margin-bottom: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sec { margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }
.sec h3 .c { color: var(--dim); font-weight: 400; margin-left: 4px; }
.sec .more { margin-left: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 18px 0 20px; overflow-x: auto; }
.tabs a { color: var(--muted); padding: 10px 14px; position: relative; font-weight: 500; white-space: nowrap; }
.tabs a.on { color: var(--text); }
.tabs a.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
.tabs .n { font-size: 11px; color: var(--accent2); margin-left: 3px; }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--rs); padding: 2px; gap: 2px; }
.seg button { border: 0; background: none; color: var(--muted); padding: 0 11px; height: 30px; border-radius: 6px; cursor: pointer; }
.seg button.on { background: var(--panel2); color: var(--text); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .grow { flex: 1; }
.toolbar .select, .toolbar .input { width: auto; min-width: 150px; height: 36px; }

/* project cards and the timeline glimpse */
.pcard { cursor: pointer; transition: border-color .12s, transform .12s; display: flex; flex-direction: column; gap: 10px; }
.pcard:hover { border-color: var(--accent-line); }
.pcard .thumb { aspect-ratio: 16/9; border-radius: 8px; background: var(--panel2) center/cover no-repeat; margin: -6px -6px 2px; position: relative; }
.pcard .thumb .badge { position: absolute; top: 10px; left: 10px; }
.pcard .meta { font-size: 12.5px; color: var(--muted); }
.stages { display: flex; gap: 3px; }
.stages i { flex: 1; height: 6px; border-radius: 3px; background: var(--panel2); }
.stages i.done { background: color-mix(in srgb, var(--accent) 55%, var(--panel2)); }
.stages i.on { background: var(--accent); }
.stage-labels { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.stage-labels b { color: var(--text); font-weight: 500; }
.glimpse { display: flex; flex-direction: column; gap: 6px; }
.glimpse .dates { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.big-stages { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.big-stages div { padding: 8px 6px 0; border-top: 4px solid var(--panel2); font-size: 12px; color: var(--dim); }
.big-stages div.done { border-color: color-mix(in srgb, var(--accent) 55%, var(--panel2)); color: var(--muted); }
.big-stages div.on { border-color: var(--accent); color: var(--text); font-weight: 600; }
.list .row { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px solid var(--line); }
.list .row:last-child { border-bottom: 0; }
.list .row.click { cursor: pointer; border-radius: var(--rs); }
.list .row.click:hover { background: var(--panel2); }
.list .row .t { flex: 1; min-width: 0; }
.list .row .t b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .row .t span { color: var(--muted); font-size: 12.5px; }
.thumbs { width: 64px; height: 40px; border-radius: 6px; background: var(--panel2) center/cover no-repeat; flex: none; display: grid; place-items: center; color: var(--accent); }
.thumbs.lg { width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 8px; }
.waitcard { display: flex; gap: 14px; align-items: center; }
.waitcard .thumbs { width: 120px; height: 68px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.kpi { cursor: default; }
.kpi .l { color: var(--muted); font-size: 12.5px; }
.kpi .v { font-family: var(--head); font-size: 26px; font-weight: 600; margin-top: 2px; }
.kpi .s { color: var(--dim); font-size: 12px; }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.chart { width: 100%; height: 170px; display: block; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.gantt { display: flex; flex-direction: column; }
.gantt .gr { display: grid; grid-template-columns: 220px 1fr; align-items: center; min-height: 38px; border-bottom: 1px solid var(--line); }
.gantt .gr:last-child { border-bottom: 0; }
.gantt .gn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 10px; cursor: pointer; }
.gantt .gn span { display: block; font-size: 11.5px; color: var(--muted); }
.gantt .gt { position: relative; height: 38px; }
.gantt .bar { position: absolute; top: 10px; height: 18px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 28%, var(--panel2)); border: 1px solid var(--accent-line); overflow: hidden; cursor: pointer; }
.gantt .bar i { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.gantt .bar.late { border-color: var(--bad); }
.gantt .today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.gantt .axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); padding: 4px 0 6px 220px; }

/* review */
.review { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.viewer { position: relative; background: #000; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); user-select: none; }
.viewer .media { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #000; }
.stagebox { position: relative; }
.draw { position: absolute; inset: 0; }
.draw.tool { cursor: crosshair; }
.shape { position: absolute; border: 2px solid var(--accent); pointer-events: none; }
.shape.circle { border-radius: 50%; }
.shape.pin { width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--accent); border: 2px solid #000; }
.shape.pending { border-style: dashed; border-color: #fff; }
.shape.pin.pending { background: #fff; }
.shape.done { border-color: var(--ok); }
.shape.pin.done { background: var(--ok); }
.shape .lab { position: absolute; top: -22px; left: -2px; background: var(--accent); color: #000; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.shape.pin .lab { top: -24px; left: 10px; }
.shape.hot { box-shadow: 0 0 0 3px rgba(255,121,0,.35); }
.vctrl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 0 0; }
.tc { font-family: Consolas, 'Cascadia Mono', monospace; font-size: 13px; background: var(--panel2); border-radius: 6px; padding: 4px 8px; }
.scrub { position: relative; height: 34px; background: var(--panel2); border-radius: 8px; margin-top: 10px; cursor: pointer; touch-action: none; }
.scrub .play { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; pointer-events: none; }
.scrub .prog { position: absolute; top: 0; bottom: 0; left: 0; background: rgba(255,255,255,.06); pointer-events: none; border-radius: 8px 0 0 8px; }
.scrub .mk { position: absolute; top: 6px; height: 22px; min-width: 4px; border-radius: 4px; background: var(--accent); opacity: .9; }
.scrub .mk.done { background: var(--ok); }
.scrub .sel { position: absolute; top: 0; bottom: 0; background: rgba(255,255,255,.14); border-left: 2px solid #fff; border-right: 2px solid #fff; pointer-events: none; }
.tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.side { display: flex; flex-direction: column; gap: 14px; }
.comments { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow: auto; }
.cm { padding: 10px 12px; border-radius: var(--rs); background: var(--panel2); border: 1px solid var(--line); cursor: pointer; }
.cm:hover { border-color: var(--line2); }
.cm.done { opacity: .55; }
.cm .h { display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.cm .h b { color: var(--text); font-size: 13px; }
.cm .at { color: var(--accent2); font-weight: 600; font-family: Consolas, monospace; }
.cm .num { background: var(--accent); color: #000; border-radius: 4px; padding: 0 5px; font-weight: 700; font-size: 11px; }
.cm .reply { margin: 8px 0 0 10px; padding-left: 10px; border-left: 2px solid var(--accent-line); font-size: 13px; }
.cm .acts { display: flex; gap: 6px; margin-top: 8px; }
.composer .pending { font-size: 12.5px; color: var(--accent2); min-height: 18px; }
.vers { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.vers button { border: 1px solid var(--line2); background: var(--bg2); border-radius: 20px; padding: 3px 12px; cursor: pointer; color: var(--muted); }
.vers button.on { border-color: var(--accent); color: var(--text); background: var(--accent-bg); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #000; }
.compare .lab, .wipe .lab { position: absolute; top: 10px; font-size: 12px; padding: 2px 8px; border-radius: 4px; background: rgba(0,0,0,.65); z-index: 2; }
.compare > div { position: relative; }
.wipe { position: relative; }
.wipe .over { position: absolute; inset: 0; overflow: hidden; border-right: 2px solid var(--accent); z-index: 1; }
.wipe .over .media { max-width: none; }
.wipe input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 3; margin: 0; }

/* brief, files */
.brief { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.brief .card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); font-family: inherit; margin-bottom: 6px; }
.brief .card p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.fcard { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.fcard .thumbs.lg { display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; }
.fcard b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.dropzone { border: 1.5px dashed var(--line2); border-radius: var(--r); padding: 18px; text-align: center; color: var(--muted); }
.dropzone.over { border-color: var(--accent); background: var(--accent-bg); }
.prog-bar { height: 5px; border-radius: 3px; background: var(--panel2); overflow: hidden; margin-top: 8px; }
.prog-bar i { display: block; height: 100%; background: var(--accent); width: 0; }

/* modal, toast */
#modal .bg { position: fixed; inset: 0; background: rgba(0,0,0,.62); display: grid; place-items: center; z-index: 50; padding: 18px; }
#modal .box { width: min(520px, 100%); max-height: 92vh; overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
#modal .box.wide { width: min(820px, 100%); }
#modal .foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
#modal .foot .left { margin-right: auto; }
.secret { font-family: Consolas, monospace; font-size: 18px; letter-spacing: 1px; background: var(--bg2); border: 1px dashed var(--accent-line); border-radius: var(--rs); padding: 12px; text-align: center; user-select: all; }
#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: #1d1d21; border: 1px solid var(--line2); border-left: 3px solid var(--ok); padding: 10px 14px; border-radius: 9px; box-shadow: 0 12px 34px rgba(0,0,0,.45); max-width: 380px; }
.toast.bad { border-left-color: var(--bad); }
.onb .dots { display: flex; gap: 6px; justify-content: center; }
.onb .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line2); }
.onb .dots i.on { background: var(--accent); }
.onb .body { white-space: pre-wrap; color: var(--muted); min-height: 90px; }
.pages-ed .pg { border: 1px solid var(--line); border-radius: var(--rs); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover { background: var(--panel2); }
.grp { margin: 20px 0 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; }

@media (max-width: 980px) {
  .review, .cols, .brief { grid-template-columns: 1fr; }
  .gantt .gr { grid-template-columns: 130px 1fr; } .gantt .axis { padding-left: 130px; }
}
@media (max-width: 640px) {
  header { padding: 0 14px; gap: 10px; } header .brand b, header .pill { display: none; }
  nav.main { margin-left: 0; } nav.main a { padding: 7px 8px; } nav.main a .lbl { display: none; }
  main { padding: 18px 14px 60px; } .row2 { grid-template-columns: 1fr; }
  .big-stages { grid-template-columns: repeat(7, 1fr); } .big-stages div { font-size: 0; padding-top: 0; }
  .waitcard .thumbs { width: 84px; height: 48px; }
}
.tabs { scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; }
.waitcard.pcard { flex-direction: row; gap: 14px; }
