
:root {
  /* Layout: navy sidebar with gold accents, light working canvas, division colors for status */
  --navy: #0F1C36; --navy-2: #172A4D; --gold: #D6A73A; --gold-2: #F2CC5B; --gold-soft: #F8EFD8;
  --bg: #F4F5F9; --surface: #FFFFFF; --ink: #121826; --muted: #667085; --line: #E4E7EF;
  --ok: #0E9F6E; --ok-bg: #E6F6EF; --warn: #C27803; --warn-bg: #FDF3E1; --bad: #D93F48; --bad-bg: #FCEBEC; --info: #3B63D9; --info-bg: #EAF0FD;
  --d-finance: #0EA5A0; --d-legal: #7C5CD6; --d-bd: #3B63D9; --d-creator: #E0559A; --d-owner: #D6A73A; --d-hr: #F07B2F;
  --display: "Outfit", "Noto Sans SC", "Segoe UI", system-ui, sans-serif; --body: "Plus Jakarta Sans", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  --r: 14px; --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 14px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100%; }
.side { background: var(--navy); color: #DCE3F1; display: flex; flex-direction: column; padding: 20px 14px; gap: 18px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.brand img { width: 38px; height: auto; }
.brand-name { font-family: var(--display); font-weight: 700; letter-spacing: .12em; color: #fff; font-size: 18px; }
.brand-tag { font-size: 11px; color: var(--gold-2); letter-spacing: .04em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 10.5px; letter-spacing: .12em; color: #8A98B5; margin: 10px 10px 4px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #DCE3F1; text-decoration: none; font-weight: 500; }
.nav a:hover { background: rgba(255, 255, 255, .06); }
.nav a.on { background: linear-gradient(90deg, rgba(214, 167, 58, .22), rgba(214, 167, 58, .06)); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.nav .dot { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; }
.nav .count { margin-left: auto; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--navy-2); }
.me img { width: 34px; height: 34px; border-radius: 50%; }
.me-name { color: #fff; font-weight: 600; font-size: 13px; }
.me-role { font-size: 11.5px; color: var(--gold-2); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 18px 28px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .8); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.top h1 { font-family: var(--display); font-size: 22px; margin: 0; font-weight: 600; text-wrap: balance; }
.top .sub { color: var(--muted); font-size: 13px; }
.top-r { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.content { padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 20px; }
.banner { border-radius: 12px; padding: 12px 14px; background: var(--warn-bg); color: #7A4B00; font-size: 13px; }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: #CBD2E1; }
.btn.gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: #C49528; color: var(--navy); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.bad { color: var(--bad); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.sel { border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: var(--surface); }
.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card h2 { font-family: var(--display); font-size: 16px; font-weight: 600; margin: 0; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h .note { color: var(--muted); font-size: 12.5px; }
.card-h .r { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.kpi { position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c, var(--gold)); }
.kpi-l { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi-v { font-family: var(--display); font-size: 26px; font-weight: 600; margin: 6px 0 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-s { font-size: 12px; color: var(--muted); }
.kpi-s b { font-weight: 600; }
.hero { background: linear-gradient(120deg, var(--navy) 0%, #1C3360 70%, #2A3F6B 100%); color: #fff; border: 0; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero img { width: 54px; }
.hero h2 { font-size: 22px; color: #fff; }
.hero p { margin: 4px 0 0; color: #C6D0E4; }
.hero .chips { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.hero .chip { background: rgba(255, 255, 255, .08); border: 1px solid rgba(242, 204, 91, .35); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 4px 10px; font-size: 12px; font-weight: 600; background: var(--bg); border: 1px solid var(--line); white-space: nowrap; }
.pill { display: inline-block; border-radius: 99px; padding: 3px 9px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.p-ok { background: var(--ok-bg); color: var(--ok); } .p-warn { background: var(--warn-bg); color: var(--warn); } .p-bad { background: var(--bad-bg); color: var(--bad); } .p-info { background: var(--info-bg); color: var(--info); } .p-mute { background: #EEF0F5; color: #556070; } .p-gold { background: var(--gold-soft); color: #8A6410; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tab.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tbl-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid #EEF0F5; vertical-align: top; }
tr.click { cursor: pointer; } tr.click:hover td { background: #FAFBFD; }
td.num, th.num { text-align: right; white-space: nowrap; }
.t-main { font-weight: 600; } .t-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.late { color: var(--bad); font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; font-size: 13px; }
.empty b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.steps { display: flex; align-items: center; gap: 0; flex-wrap: wrap; row-gap: 8px; }
.step { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.step .b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #CBD2E1; background: #fff; font-size: 11px; flex: none; }
.step.ok .b { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.no .b { background: var(--bad); border-color: var(--bad); color: #fff; }
.step.cur .b { border-color: var(--gold); background: var(--gold-soft); color: #8A6410; box-shadow: 0 0 0 3px rgba(214, 167, 58, .18); }
.step.cur { color: var(--ink); }
.step.ok { color: var(--ink); }
.step-line { width: 22px; height: 2px; background: #DDE1EA; margin: 0 6px; }
.step-line.ok { background: var(--ok); }
.ap { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ap + .ap { margin-top: 10px; }
.ap-h { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.ap-t { font-weight: 600; } .ap-m { color: var(--muted); font-size: 12px; margin-top: 2px; }
.ap-act { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.div-card { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--c); }
.div-h { display: flex; align-items: center; gap: 8px; }
.div-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); }
.div-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.div-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.div-stats div { background: var(--bg); border-radius: 10px; padding: 8px; }
.div-stats b { display: block; font-family: var(--display); font-size: 18px; }
.div-stats span { font-size: 11px; line-height: 1.3; color: var(--muted); }
.bar { height: 7px; background: #EDF0F5; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--c, var(--gold)); border-radius: 99px; }
.hbar { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12.5px; }
.hbar + .hbar { margin-top: 9px; }
.hbar .v { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #EEF0F5; }
.list li:last-child { border-bottom: 0; }
.ddot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: none; }
.when { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; }
.col { background: #EDEFF5; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.col-h { font-weight: 700; font-size: 12.5px; display: flex; justify-content: space-between; padding: 4px 6px; color: #3B4458; }
.tcard { background: #fff; border-radius: 10px; padding: 10px 12px; border-left: 3px solid var(--c); box-shadow: var(--shadow); cursor: pointer; }
.tcard .t-main { font-size: 13.5px; }
.tcard-f { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.av { width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; }
.who { display: inline-flex; align-items: center; gap: 6px; }
.modal-bg { position: fixed; inset: 0; background: rgba(15, 28, 54, .45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: #fff; border-radius: 18px; width: min(620px, 100%); max-height: calc(100% - 32px); overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal-h { display: flex; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); gap: 10px; }
.modal-h h3 { margin: 0; font-family: var(--display); font-size: 18px; }
.modal-h .x { margin-left: auto; border: 0; background: none; font-size: 22px; color: var(--muted); }
.modal-b { padding: 18px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.modal-f { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.fld { display: flex; flex-direction: column; gap: 5px; }
.fld.full { grid-column: 1 / -1; }
.fld label { font-size: 12px; font-weight: 600; color: #3B4458; }
.fld input, .fld select, .fld textarea { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: #fff; width: 100%; }
.fld textarea { min-height: 72px; resize: vertical; }
.hint { color: var(--muted); font-size: 12px; }
.err { color: var(--bad); font-size: 12.5px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 13px; z-index: 60; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.gate { max-width: 520px; margin: 40px auto; text-align: center; }
.gate img { width: 70px; }
.link { color: var(--info); text-decoration: none; font-weight: 600; }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; padding: 12px; gap: 10px; }
  .nav { flex-direction: row; overflow-x: auto; gap: 4px; }
  .nav-label, .me { display: none; }
  .nav a { white-space: nowrap; padding: 8px 10px; }
  .nav a.on { box-shadow: inset 0 -2px 0 var(--gold); }
  .top { position: static; padding: 14px 16px; }
  .content { padding: 16px 16px 40px; }
  .modal-b { grid-template-columns: 1fr; }
  .tbl-wrap { margin: 0 -18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- login & daftar ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.auth-art { background: radial-gradient(120% 90% at 0% 0%, #22396A 0%, var(--navy) 55%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.auth-art img { width: 84px; }
.auth-art h1 { font-family: var(--display); font-size: 40px; line-height: 1.1; margin: 18px 0 10px; letter-spacing: .02em; }
.auth-art p { color: #C6D0E4; max-width: 440px; line-height: 1.6; margin: 0; }
.auth-pts { display: grid; gap: 12px; }
.auth-pts div { display: flex; gap: 10px; align-items: flex-start; color: #DCE3F1; }
.auth-pts b { color: var(--gold-2); font-family: var(--display); }
.auth-foot { font-size: 12px; color: #8A98B5; }
#root { min-height: 100%; }
.auth-box { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: var(--bg); }
.auth-card { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.auth-card h2 { font-family: var(--display); margin: 0; font-size: 24px; }
.auth-card .hint a, .auth-card button.linkbtn { color: var(--info); font-weight: 600; background: none; border: 0; padding: 0; }
.auth-card .btn { justify-content: center; padding: 11px 14px; }
.ok-msg { background: var(--ok-bg); color: var(--ok); padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.err-msg { background: var(--bad-bg); color: var(--bad); padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.checks label { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; font-size: 13px; }
.checks input { width: auto; }
.sec-title { grid-column: 1 / -1; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.soc { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink); text-decoration: none; }
.soc b { font-weight: 600; }
.soc i { font-style: normal; color: var(--muted); }
.lock { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12px; }
.foot { color: var(--muted); font-size: 12px; text-align: center; padding: 8px 0 0; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 28px 22px; }
  .auth-art h1 { font-size: 28px; }
  .auth-pts, .auth-foot { display: none; }
}

/* ---------- SOP & OKR ---------- */
.sop-wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.sop-toc { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 90px; }
.sop-toc .list li { padding: 0; border: 0; }
.sop-link { all: unset; cursor: pointer; display: block; width: 100%; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ink); }
.sop-link:hover { background: var(--bg); }
.sop-link.on { background: var(--gold-soft); color: #6B4C0A; font-weight: 700; }
.md { line-height: 1.7; max-width: 76ch; }
.md p { margin: 0 0 12px; }
.md h3 { font-family: var(--display); font-size: 16px; margin: 18px 0 8px; }
.md ul, .md ol { margin: 0 0 14px; padding-left: 22px; }
.md li { margin: 4px 0; }
.md code { background: var(--bg); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; }
.md .tbl-wrap { margin: 6px 0 16px; }
.okr-obj { background: var(--bg); border-radius: 10px; padding: 10px 12px; font-weight: 600; line-height: 1.5; }
.okr-obj span { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
@media (max-width: 900px) { .sop-wrap { grid-template-columns: 1fr; } .sop-toc { position: static; } }

/* ---------- Laporan harian ---------- */
.rep-sec { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; font-size: 13px; line-height: 1.55; }
.rep-sec > span { color: var(--muted); font-weight: 600; font-size: 12px; }
.rep-sec.warn > div { color: #8A4B00; background: var(--warn-bg); border-radius: 8px; padding: 6px 8px; }
.rep-sec.owner > div { background: var(--gold-soft); border-radius: 8px; padding: 6px 8px; color: #5C420A; }
@media (max-width: 600px) { .rep-sec { grid-template-columns: 1fr; gap: 2px; } }
.grid > .ap + .ap { margin-top: 0; }
.auth-art { justify-content: center; }
.auth-tag { font-family: var(--display); font-size: 20px; color: var(--gold-2) !important; letter-spacing: .02em; margin-top: 4px !important; }
.auth-stack { width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.auth-stack .auth-card { width: 100%; }
.auth-legal { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; text-align: center; }
@media (max-width: 900px) { .auth-tag { font-size: 16px; } .auth-box { min-height: auto; padding-top: 24px; } }
.auth-tag2 { display: block; font-family: var(--body); font-size: 15px; color: #DCE3F1; margin-top: 6px; font-style: italic; letter-spacing: .03em; }
@media (max-width: 900px) { .auth-tag2 { font-size: 13.5px; } }

/* ===== v4 additions ===== */
.conf { display: flex; gap: 10px; align-items: center; background: var(--navy); color: #F2E6C4; border-radius: 12px; padding: 10px 14px; font-size: 12.5px; }
.conf svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-2); stroke-width: 1.8; flex: none; }
.step.hold .b { background: var(--warn); color: #fff; border-color: var(--warn); }
.p-mute { background: #EEF0F4; color: var(--muted); } .p-gold { background: var(--gold-soft); color: #8A6512; } .p-info { background: var(--info-bg); color: var(--info); }
.modal.wide { max-width: 860px; }
.top-modal { z-index: 60; }
.langs { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 3px; align-self: flex-end; }
.lang { border: 0; background: transparent; border-radius: 99px; padding: 5px 10px; font-size: 12px; font-weight: 600; display: flex; gap: 5px; align-items: center; min-height: 32px; }
.lang.on { background: var(--navy); color: #fff; }
.langs.sm .lang { padding: 4px 8px; }
.auth-mcn { color: var(--gold-2); font-weight: 600; letter-spacing: .06em; font-size: 13px; margin-top: 4px; }
.partner { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; border: 1px solid rgba(242, 204, 91, .5); border-radius: 99px; padding: 6px 14px; font-size: 12.5px; color: #fff; background: rgba(255, 255, 255, .06); }
.partner-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.qr { display: flex; justify-content: center; } .qr img { width: 190px; height: 190px; background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--line); }
.secret { font-family: ui-monospace, monospace; font-size: 12px; background: var(--bg); padding: 8px; border-radius: 8px; word-break: break-all; text-align: center; }
.steps-ol { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
#idle { position: fixed; inset: 0; background: rgba(15, 28, 54, .55); z-index: 90; display: grid; place-items: center; padding: 20px; }
.idle-box { background: #fff; border-radius: 16px; padding: 22px; max-width: 360px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.idle-box span { color: var(--muted); font-size: 13px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.timeline li { position: relative; } .timeline li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.cmts { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow: auto; }
.cmt { background: var(--bg); border-radius: 10px; padding: 8px 10px; font-size: 13px; } .cmt-h { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.mention { color: var(--info); font-weight: 600; }
.cmt-new { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; } .cmt-new textarea { min-height: 64px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; } .cmt-new .btn { align-self: flex-end; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.tpl { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.tpl-k { font-family: var(--display); font-weight: 700; color: var(--gold); font-size: 12px; letter-spacing: .08em; }
.tpl-a { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.cof { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-left: 4px solid var(--gold); }
.cof .r { margin-left: auto; display: flex; gap: 6px; }
.duty { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.duty .btn { flex: none; }
.irow { display: grid; grid-template-columns: minmax(0, 2.4fr) 130px minmax(0, 1.2fr) 36px; gap: 6px; margin-bottom: 6px; }
.irow input, .irow select { border: 1px solid var(--line); border-radius: 9px; padding: 8px; min-height: 40px; background: #fff; width: 100%; }
.chk { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mv { margin: -4px 0 8px; } .sel.sm { padding: 4px 8px; font-size: 12px; min-height: 32px; }
.meet-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.meet-main { display: flex; flex-direction: column; gap: 20px; }
.list li.sel { background: var(--gold-soft); border-radius: 10px; }
.list li.click, li.click { cursor: pointer; }
.acc-ctl { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; font-size: 12px; color: var(--muted); align-items: center; }
.acc-ctl label { display: flex; gap: 6px; align-items: center; }
.okr-fr { background: var(--gold-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.okr-fr span { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #8A6512; text-transform: uppercase; display: block; margin-bottom: 2px; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
tr.tot td { font-weight: 700; background: var(--bg); }
.lk-head { padding: 12px 16px; }
.bnav, #sheet { display: none; }
.btn, .tab, .sel, .fld input, .fld select { min-height: 40px; }
.btn.sm { min-height: 34px; }

@media (max-width: 1000px) { .meet-wrap { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .app { display: block; padding-bottom: 72px; }
  .side { display: none !important; }
  .top { padding: 12px 14px; } .top h1 { font-size: 18px; } .top .sub { display: none; }
  .content { padding: 14px 12px 40px; gap: 14px; }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--navy); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #B9C3D9; text-decoration: none; font-size: 10.5px; min-height: 48px; justify-content: center; position: relative; }
  .bnav a.on { color: var(--gold-2); }
  .bnav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .bnav .count { position: absolute; top: 2px; right: 22%; background: var(--gold); color: var(--navy); font-size: 10px; border-radius: 99px; padding: 0 5px; font-weight: 700; }
  #sheet:not([hidden]) { display: block; }
  .sheet-bg { position: fixed; inset: 0; background: rgba(15, 28, 54, .5); z-index: 50; }
  .sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; background: var(--navy); border-radius: 18px 18px 0 0; padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); max-height: 80vh; overflow: auto; }
  .sheet-h { display: flex; justify-content: space-between; align-items: center; color: #fff; padding: 0 6px 8px; } .sheet-h .x { background: none; border: 0; color: #fff; font-size: 26px; min-width: 44px; min-height: 44px; }
  .sheet-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .sheet-nav a { display: flex; align-items: center; gap: 8px; padding: 12px 10px; border-radius: 12px; color: #DCE3F1; text-decoration: none; background: rgba(255, 255, 255, .05); min-height: 48px; font-size: 13px; position: relative; }
  .sheet-nav a.on { background: rgba(214, 167, 58, .25); color: #fff; }
  .sheet-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
  .sheet-nav .count { margin-left: auto; background: var(--gold); color: var(--navy); font-size: 10px; border-radius: 99px; padding: 0 6px; }
  .irow { grid-template-columns: 1fr 110px; } .irow [name=it_ref] { grid-column: 1; } 
  .langs.sm .lang span { display: none; }
  .modal { max-height: 92vh; } .kpi-v { font-size: 22px; }
  .card-h .r { margin-left: 0; width: 100%; }
}
