@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2"); }

:root {
  --brand: #583CF1;
  --brand-600: #4A2FE0;
  --brand-50: #F1EEFF;
  --brand-100: #E4DEFF;
  --teal: #01B89E;
  --teal-50: #E3FAF5;
  --amber: #C97A00;
  --amber-50: #FFF4DF;
  --red: #D93B3B;

  --bg: #F6F5FB;
  --surface: #FFFFFF;
  --surface-2: #FAF9FE;
  --text: #17142B;
  --muted: #625E78;
  --faint: #8D89A3;
  --border: #E7E4F2;
  --ring: rgba(88, 60, 241, .35);
  --shadow: 0 1px 2px rgba(23, 20, 43, .05), 0 4px 16px rgba(23, 20, 43, .06);
  --shadow-lg: 0 10px 40px rgba(23, 20, 43, .18);

  --st-none: #8D89A3; --st-none-bg: #F0EFF5;
  --st-prog: var(--amber); --st-prog-bg: var(--amber-50);
  --st-ready: #008F7A; --st-ready-bg: var(--teal-50);

  --radius: 16px;
  --radius-sm: 10px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #8A74FF; --brand-600: #9C89FF; --brand-50: #211B45; --brand-100: #2C2460;
    --teal: #2FE0C4; --teal-50: #0F302B; --amber: #F2B14C; --amber-50: #332611;
    --bg: #100E1C; --surface: #1A1729; --surface-2: #211E33; --text: #F2F0FA; --muted: #ABA7C2; --faint: #7D7996;
    --border: #2D2944; --ring: rgba(138, 116, 255, .45);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    --st-none: #A19DB8; --st-none-bg: #26233A; --st-ready: #2FE0C4; --st-ready-bg: #0F302B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #8A74FF; --brand-600: #9C89FF; --brand-50: #211B45; --brand-100: #2C2460;
  --teal: #2FE0C4; --teal-50: #0F302B; --amber: #F2B14C; --amber-50: #332611;
  --bg: #100E1C; --surface: #1A1729; --surface-2: #211E33; --text: #F2F0FA; --muted: #ABA7C2; --faint: #7D7996;
  --border: #2D2944; --ring: rgba(138, 116, 255, .45);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  --st-none: #A19DB8; --st-none-bg: #26233A; --st-ready: #2FE0C4; --st-ready-bg: #0F302B;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 8px; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.app { min-height: 100dvh; }
.sidenav { display: none; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; min-height: 60px;
}
.topbar.scrolled { border-bottom-color: var(--border); }
.topbar .t-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.topbar .t-brand img { width: 32px; height: 32px; }
.topbar .t-title { font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .t-sub { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.topbar .spacer { flex: 1; }
.view { padding: 8px 16px calc(var(--tabbar-h) + var(--safe-b) + 28px); max-width: 980px; margin: 0 auto; outline: none; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--faint); text-decoration: none; font-size: 11px; font-weight: 500;
}
.tab svg { width: 24px; height: 24px; }
.tab .pill { display: grid; place-items: center; width: 56px; height: 30px; border-radius: 99px; transition: background .2s; }
.tab[aria-current="page"] { color: var(--brand); }
.tab[aria-current="page"] .pill { background: var(--brand-50); }

@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 248px 1fr; }
  .sidenav {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh;
    padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--border);
    grid-row: 1 / span 2;
  }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); padding: 4px 8px 22px; }
  .brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
  .brand strong { font-size: 16px; }
  .navlist { display: grid; gap: 4px; }
  .navlist a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
    color: var(--muted); text-decoration: none; font-weight: 500;
  }
  .navlist a svg { width: 22px; height: 22px; }
  .navlist a:hover { background: var(--surface-2); color: var(--text); }
  .navlist a[aria-current="page"] { background: var(--brand-50); color: var(--brand); }
  .sidenav-foot { margin-top: auto; font-size: 12px; color: var(--faint); padding: 8px; }
  .topbar { grid-column: 2; padding: 18px 32px 12px; }
  .topbar .t-brand img { display: none; }
  .topbar .t-title { font-size: 22px; }
  .view { grid-column: 2; padding: 8px 32px 48px; width: 100%; }
  .tabbar { display: none; }
}

/* ---------- Components ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px;
}
.card + .card, .stack > * + * { margin-top: 14px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 2px 10px; }
.section-title h2 { font-size: 16px; font-weight: 600; }
.section-title a { font-size: 13px; font-weight: 500; text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 14.5px; cursor: pointer;
  text-decoration: none; transition: transform .08s, background .2s, box-shadow .2s;
}
.btn:hover { background: var(--brand-600); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.ghost { background: transparent; color: var(--brand); padding-inline: 10px; }
.btn.ghost:hover { background: var(--brand-50); }
.btn.danger { background: transparent; color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.btn.block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  border: 0; background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }

/* hero / progress */
.hero {
  position: relative; overflow: hidden; color: #fff; border: 0;
  background: radial-gradient(120% 140% at 100% 0%, #7B5CFF 0%, #583CF1 45%, #3A22C4 100%);
}
.hero::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(1,211,182,.45), transparent 70%);
}
.hero-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; }
.hero h1 { font-size: 20px; font-weight: 600; }
.hero .meta { opacity: .85; font-size: 13px; margin-top: 2px; }
.hero .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.hero .chip { background: rgba(255,255,255,.16); color: #fff; }
.ring { position: relative; flex: none; width: 104px; height: 104px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.ring .lbl b { font-size: 26px; font-weight: 700; }
.ring .lbl span { display: block; font-size: 11px; opacity: .85; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stat {
  border-radius: 14px; padding: 12px; text-align: left; border: 1px solid var(--border);
  background: var(--surface); text-decoration: none; color: inherit; box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 24px; font-weight: 700; line-height: 1.1; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

.bar { height: 8px; border-radius: 99px; background: var(--st-none-bg); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; }
.bar .r { background: var(--teal); }
.bar .p { background: var(--amber); }

.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.chip.coi { background: var(--brand-50); color: var(--brand); }
.chip.ncoi { background: var(--teal-50); color: var(--st-ready); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.none { color: var(--st-none); background: var(--st-none-bg); }
.status.prog { color: var(--st-prog); background: var(--st-prog-bg); }
.status.ready { color: var(--st-ready); background: var(--st-ready-bg); }

/* objective list */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -16px; padding-inline: 16px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 500; cursor: pointer; min-height: 36px;
}
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter .n { opacity: .6; margin-left: 4px; }

.olist { display: grid; gap: 10px; }
@media (min-width: 900px) { .olist { grid-template-columns: 1fr 1fr; } }
.oitem {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start;
  padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: border-color .15s, transform .08s;
}
.oitem:hover { border-color: var(--brand-100); }
.oitem:active { transform: scale(.99); }
.onum {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; background: var(--brand-50); color: var(--brand);
}
.oitem.is-ready .onum { background: var(--teal-50); color: var(--st-ready); }
.oitem h3 { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.oitem .ometa { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.oitem .ppst { font-size: 12px; color: var(--faint); font-weight: 500; }
.mini-bar { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.mini-bar .bar { flex: 1; height: 6px; }

/* detail */
.detail-head .kicker { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.detail-head h1 { font-size: 19px; font-weight: 600; }
.detail-head .hint { margin-top: 10px; font-size: 13px; color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button {
  border: 0; background: transparent; padding: 10px 6px; border-radius: 10px; font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer; min-height: 42px;
}
.seg button[aria-pressed="true"].none { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg button[aria-pressed="true"].prog { background: var(--amber); color: #fff; }
.seg button[aria-pressed="true"].ready { background: var(--teal); color: #fff; }
:root[data-theme="dark"] .seg button[aria-pressed="true"].ready,
:root[data-theme="dark"] .seg button[aria-pressed="true"].prog { color: #111; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .seg button[aria-pressed="true"].ready,
  :root:not([data-theme="light"]) .seg button[aria-pressed="true"].prog { color: #111; }
}

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; cursor: pointer;
  padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2);
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--faint); display: grid; place-items: center;
  transition: background .15s, border-color .15s; margin-top: 1px;
}
.check .box svg { width: 16px; height: 16px; color: #fff; opacity: 0; transform: scale(.6); transition: .15s; }
.check input:checked + .box { background: var(--teal); border-color: var(--teal); }
.check input:checked + .box svg { opacity: 1; transform: none; }
.check input:focus-visible + .box { outline: 3px solid var(--ring); outline-offset: 2px; }
.check.done { border-color: color-mix(in srgb, var(--teal) 45%, var(--border)); background: var(--teal-50); }
.check span.txt { font-size: 14px; }
.mov-note { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 6px 2px 0; }

.field { display: grid; gap: 6px; }
.field + .field { margin-top: 14px; }
.field label, .field .lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.field .help { font-size: 12px; color: var(--faint); }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 92px; resize: vertical; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238D89A3' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.saved-hint { font-size: 12px; color: var(--faint); text-align: center; margin-top: 18px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.pager .btn { justify-content: space-between; }
.pager .next { text-align: right; }

/* banners & lists */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--brand-50); border: 1px solid var(--brand-100); }
.banner > svg { flex: none; width: 22px; height: 22px; color: var(--brand); margin-top: 1px; }
.banner.teal { background: var(--teal-50); border-color: color-mix(in srgb, var(--teal) 30%, transparent); }
.banner.teal > svg { color: var(--st-ready); }
.banner > div > b { display: block; font-weight: 600; font-size: 14px; }
.banner p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.banner .btn { margin-top: 10px; min-height: 38px; padding: 8px 14px; font-size: 13.5px; }

.rows { display: grid; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-top: 1px solid var(--border); text-decoration: none; color: inherit; }
.row:first-child { border-top: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .ttl { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub { font-size: 12px; color: var(--muted); }
.row svg.chev { width: 18px; height: 18px; color: var(--faint); flex: none; }

.cot-date { display: flex; align-items: center; gap: 14px; }
.cal { flex: none; width: 56px; border-radius: 12px; overflow: hidden; text-align: center; border: 1px solid var(--border); background: var(--surface); }
.cal .m { background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 0; text-transform: uppercase; }
.cal .d { font-size: 22px; font-weight: 700; padding: 4px 0; }

/* onboarding */
.welcome { max-width: 520px; margin: 0 auto; padding: calc(24px + var(--safe-t)) 4px 40px; }
.welcome .logo { width: 100%; height: auto; max-width: 300px; border-radius: 14px; display: block; margin: 0 auto 8px; }
.welcome h1 { font-size: 26px; font-weight: 700; text-align: center; margin-top: 14px; }
.welcome .lead { text-align: center; color: var(--muted); margin: 8px auto 22px; max-width: 420px; }
.feature-list { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.feature-list svg { flex: none; width: 22px; height: 22px; color: var(--teal); }
.app.onboarding .tabbar, .app.onboarding .topbar, .app.onboarding .sidenav { display: none; }
.app.onboarding { display: block; }
.app.onboarding .view { padding-bottom: 40px; }

/* sheet (modal) */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(10, 8, 25, .45); z-index: 50; animation: fade .2s; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(22px + var(--safe-b)); box-shadow: var(--shadow-lg); animation: up .25s cubic-bezier(.2,.8,.2,1);
  max-height: 88dvh; overflow: auto;
}
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: var(--border); margin: 0 auto 14px; }
.sheet h2 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.sheet ol { padding-left: 20px; margin: 10px 0 16px; }
.sheet ol li { margin: 6px 0; }
@media (min-width: 700px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 460px; border-radius: 22px; animation: fade .2s; }
  .sheet .grab { display: none; }
}
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 60; display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: transparent; border: 0; color: var(--brand-100); font-weight: 700; cursor: pointer; padding: 4px; }
@media (min-width: 900px) { .toast { bottom: 24px; left: calc(50% + 124px); } }

.legal { font-size: 12px; color: var(--faint); margin-top: 26px; text-align: center; line-height: 1.6; }
.legal img { width: 150px; height: auto; display: block; margin: 0 auto 6px; border-radius: 8px; }

/* ---------- Report table ---------- */
.report-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
table.report { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 760px; }
table.report th, table.report td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.report th { background: var(--surface-2); font-weight: 600; color: var(--muted); font-size: 12px; }
table.report td.c { text-align: center; }
table.report tr:last-child td { border-bottom: 0; }
@media screen { .print-only { display: none !important; } }

@media print {
  @page { size: A4 landscape; margin: 12mm; }
  :root { --text: #000; --muted: #333; --border: #999; --surface: #fff; --surface-2: #EEE; }
  body { background: #fff; font-size: 11px; }
  .sidenav, .topbar, .tabbar, .no-print, .toast, #sheet-root { display: none !important; }
  .app { display: block; min-height: 0; }
  .view { padding: 0; max-width: none; }
  .print-only { display: block; }
  .print-profile.print-only { display: grid; }
  .print-foot.print-only { display: flex; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .report-table-wrap { border: 0; overflow: visible; }
  table.report { min-width: 0; font-size: 10px; border: 1px solid #000; }
  table.report th, table.report td { border: 1px solid #000; padding: 4px 6px; }
  table.report th { background: #E4DEFF !important; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .status { padding: 0; background: none !important; color: #000 !important; }
  .status::before { display: none; }
  tr { break-inside: avoid; }
}
.print-head { text-align: center; margin-bottom: 10px; }
.print-head h1 { font-size: 15px; }
.print-head p { font-size: 11px; }
.print-profile { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 18px; font-size: 11px; margin: 8px 0 10px; }
.print-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; font-size: 10px; }
.print-foot img { height: 26px; }

/* ===================== v1.1 additions ===================== */
/* Brand logo with light/dark variants */
.brand-logo { display: inline-block; line-height: 0; }
.brand-logo img { width: 100%; height: auto; display: block; }
.brand-logo .lg-dark { display: none; }
:root[data-theme="dark"] .brand-logo .lg-light { display: none; }
:root[data-theme="dark"] .brand-logo .lg-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo .lg-light { display: none; }
  :root:not([data-theme="light"]) .brand-logo .lg-dark { display: block; }
}
.welcome .brand-logo.logo { display: block; width: 78%; max-width: 320px; margin: 4px auto 0; border-radius: 0; }
.legal .brand-logo { display: block; width: 150px; margin: 0 auto 8px; }
@media (min-width: 900px) {
  .brand { flex-direction: column; align-items: flex-start; gap: 6px; padding: 6px 10px 22px; }
  .brand .brand-logo { width: 190px; }
  .brand-app { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; padding-left: 2px; }
}

/* Objective list */
.group-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 22px 2px 10px; }
.group-head h2 { font-size: 16px; font-weight: 600; }
.group-head p { font-size: 12.5px; color: var(--muted); }
.gcount { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.oitem { grid-template-columns: 40px 1fr 18px; align-items: center; }
.oitem .obody { min-width: 0; }
.oitem .ometa { margin-top: 6px; }
.oitem .osub { font-size: 12.5px; color: var(--muted); margin-top: 6px; font-weight: 500; }
.oitem.is-prog .osub { color: var(--st-prog); }
.oitem.is-ready .osub { color: var(--st-ready); }
.oitem .onum svg { width: 20px; height: 20px; }
.oitem.is-prog .onum { background: var(--amber-50); color: var(--amber); }
.ochev { width: 18px; height: 18px; color: var(--faint); }
.empty { text-align: center; padding: 36px 18px; margin-top: 10px; }

/* Objective detail */
.ohead { padding: 6px 2px 4px; }
.ohead-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.onum.big { width: 46px; height: 46px; font-size: 18px; border-radius: 14px; flex: none; }
.ohead .kicker { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ohead h1 { font-size: 20px; font-weight: 600; line-height: 1.3; }
details.hint { margin-top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
details.hint summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; color: var(--brand); }
details.hint summary::-webkit-details-marker { display: none; }
details.hint summary svg { width: 18px; height: 18px; }
details.hint p { padding: 0 12px 12px 38px; font-size: 13px; color: var(--muted); }
.ipnote { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 13px; color: var(--st-ready); background: var(--teal-50); padding: 10px 12px; border-radius: 12px; font-weight: 500; }
.ipnote svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-top: 14px; }
.step-h { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.step-h > div { flex: 1; min-width: 0; }
.step-h h2 { font-size: 15.5px; font-weight: 600; }
.step-h p { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.sn { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 1px; }
.step .check { background: var(--surface-2); }

.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 99px;
  border: 1.5px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.pchip .pc-ic { width: 0; height: 16px; opacity: 0; transition: width .15s, opacity .15s; }
.pchip[aria-pressed="true"] { background: var(--brand-50); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.pchip[aria-pressed="true"] .pc-ic { width: 16px; opacity: 1; }
.step .pick + .mini-field { margin-top: 12px; }
.mini-field { position: relative; }
.mini-field > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.input.slim { min-height: 42px; padding: 9px 12px 9px 40px; font-size: 15px; background: var(--surface-2); }

.saved-hint { display: flex; align-items: center; justify-content: center; gap: 6px; }
.saved-hint svg { width: 14px; height: 14px; }

.actionbar { position: sticky; bottom: 0; z-index: 25; margin: 18px -16px 0; padding: 12px 16px calc(12px + var(--safe-b));
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
.actionbar-in { display: flex; gap: 10px; max-width: 980px; margin: 0 auto; }
.ready-btn { flex: 1; min-height: 52px; font-size: 15.5px; border-radius: 14px; }
.ready-btn.is-ready { background: var(--teal); }
.ready-btn.is-ready:hover { background: color-mix(in srgb, var(--teal) 88%, #000); }
.ready-btn .undo { margin-left: auto; font-size: 12.5px; font-weight: 600; opacity: .85; text-decoration: underline; }
.nextbtn { min-height: 52px; border-radius: 14px; padding-inline: 16px; }
.app.on-detail .tabbar { display: none; }
.app.on-detail .view { padding-bottom: 0; }
.app.on-detail .toast { bottom: calc(92px + var(--safe-b)); }
@media (min-width: 900px) { .actionbar { margin: 18px -32px 0; padding-inline: 32px; } .app.on-detail .toast { bottom: 96px; } }

/* Profile */
.row2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.row2 .field + .field { margin-top: 0; }
.row2 + .field, .field + .row2 { margin-top: 14px; }
.field input[hidden] { display: none; }
.field select + input { margin-top: 8px; }

:root[data-theme="dark"] .ready-btn.is-ready { color: #06231E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ready-btn.is-ready { color: #06231E; } }
