/* ============================================================
   大一立项门户 · 样式（移动优先，三档断点）
   ============================================================ */
:root {
  --ink: #05070a;
  --ink-2: #1c2230;
  --muted: #4a5563;
  --muted-2: #6b7686;
  --line: #e4e7ec;
  --line-2: #f0f2f5;
  --bg: #f6f7f9;
  --card: #ffffff;
  --p1: #0e7490;
  --p1-soft: #ecf7fa;
  --p2: #b45309;
  --p2-soft: #fdf5eb;
  --ok: #067647;
  --ok-soft: #ecfdf3;
  --warn: #b54708;
  --warn-soft: #fffaeb;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .05);
  --shadow-lg: 0 8px 32px rgba(16, 24, 40, .12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--p1); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- 通用 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 18px; border-radius: 10px;
  font-size: 17px; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  transition: .16s ease;
}
.btn:hover { background: #fafbfc; border-color: #d0d5dd; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #1d2939; border-color: #1d2939; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 15.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 25px; padding: 0 9px; border-radius: 6px;
  font-size: 14.5px; font-weight: 600; letter-spacing: .01em;
  background: var(--line-2); color: var(--muted);
}
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-danger { background: var(--danger-soft); color: var(--danger); }
.tag-p1 { background: var(--p1-soft); color: var(--p1); }
.tag-p2 { background: var(--p2-soft); color: var(--p2); }

.muted { color: var(--muted); }
.small { font-size: 15.5px; }
.tiny { font-size: 14.5px; }
.strong { font-weight: 650; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

/* ---------- 登录 ---------- */
.login-wrap {
  min-height: 100dvh; display: grid; place-items: center;
  padding: 24px 20px;
  background:
    radial-gradient(900px 500px at 12% -10%, #e6f4f8 0%, transparent 60%),
    radial-gradient(800px 500px at 95% 110%, #fdf1e3 0%, transparent 55%),
    var(--bg);
}
.login-card {
  width: 100%; max-width: 400px; background: var(--card);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 36px 32px 30px; box-shadow: var(--shadow-lg);
}
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #0e7490, #155e75);
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 21.5px;
  margin-bottom: 18px;
}
.login-card h1 { font-size: 25px; margin-bottom: 6px; }
.login-card .sub { color: var(--muted); font-size: 16px; margin-bottom: 24px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; background: #fff; outline: none; transition: .15s;
}
.field input:focus, .field textarea:focus { border-color: #84cae0; box-shadow: 0 0 0 3px rgba(14, 116, 144, .1); }
.field textarea { min-height: 92px; resize: vertical; line-height: 1.65; }
.login-hint { margin-top: 16px; font-size: 15px; color: var(--muted-2); line-height: 1.7; }
.login-note {
  margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
  text-align: center; font-size: 14px; color: var(--muted-2); letter-spacing: .04em;
}
.login-err {
  margin-bottom: 12px; padding: 9px 12px; border-radius: 9px;
  background: var(--danger-soft); color: var(--danger); font-size: 15.5px;
}

/* ---------- 外壳 ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100dvh; }

.sidebar {
  border-right: 1px solid var(--line);
  background: #fbfcfd;
  padding: 20px 14px;
  position: sticky; top: 0; height: 100dvh;
  display: flex; flex-direction: column; gap: 6px;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.side-brand .mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, #0e7490, #155e75);
  display: grid; place-items: center; color: #fff; font-size: 15.5px; font-weight: 700;
}
.side-brand .t { font-size: 17px; font-weight: 650; line-height: 1.25; }
.side-brand .s { font-size: 14px; color: var(--muted-2); }
.nav-label { font-size: 13px; font-weight: 700; letter-spacing: .07em; color: var(--muted-2); padding: 14px 10px 6px; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 11px; border-radius: 9px; font-size: 17px; color: var(--ink-2);
  text-align: left; transition: .14s;
}
.nav-item:hover { background: #f0f2f5; }
.nav-item.on { background: #fff; box-shadow: var(--shadow); font-weight: 600; color: var(--ink); }
.nav-item .ico { width: 18px; display: grid; place-items: center; opacity: .8; flex: none; }
.nav-item .ico svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item .dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }

.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 15.5px; font-weight: 650; color: #fff;
  background: #475467;
}
.user-chip .nm { font-size: 16px; font-weight: 600; line-height: 1.2; }
.user-chip .rl { font-size: 14px; color: var(--muted-2); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px; background: rgba(246, 247, 249, .86);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
  min-height: 66px;
}
.topbar h2 { font-size: 19px; }
.topbar .grow { flex: 1; }
.page { padding: 26px; max-width: 1180px; width: 100%; margin: 0 auto; flex: 1; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 23px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-head h3 { font-size: 18.5px; }
.section-head .grow { flex: 1; }
.section-head .hint { font-size: 15px; color: var(--muted-2); }

/* ---------- 项目入口卡 ---------- */
.hero { margin-bottom: 22px; }
.hero h1 { font-size: 29px; margin-bottom: 6px; }
.hero p { color: var(--muted); font-size: 17px; }
.proj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.proj-card {
  position: relative; overflow: hidden; text-align: left;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 22px 18px; box-shadow: var(--shadow);
  transition: .18s ease; width: 100%;
}
.proj-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #d0d5dd; }
.proj-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent);
}
.proj-card .pc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.proj-card h3 { font-size: 20.5px; line-height: 1.45; margin-bottom: 10px; letter-spacing: -.015em; }
.proj-card .pc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.proj-card .pc-stat { display: flex; align-items: center; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.ring { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ring span { width: 35px; height: 35px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.pc-stat .lbl { font-size: 14px; color: var(--muted-2); line-height: 1.3; }
.pc-stat .val { font-size: 16px; font-weight: 650; }

/* ---------- 概览 ---------- */
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; }
.kpi .k { font-size: 14px; color: var(--muted-2); margin-bottom: 4px; }
.kpi .v { font-size: 24px; font-weight: 680; letter-spacing: -.02em; }
.kpi .u { font-size: 14.5px; font-weight: 500; color: var(--muted); margin-left: 3px; }

.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 18px 0; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -19px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%; background: #fff;
  border: 2px solid var(--line);
}
.tl-item.done::before { background: var(--ok); border-color: var(--ok); }
.tl-item.now::before { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-item.gate::before { border-color: var(--warn); }
.tl-wk { font-size: 14px; color: var(--muted-2); font-weight: 600; }
.tl-label { font-size: 16px; font-weight: 600; }
.tl-item.done .tl-label { color: var(--muted); }

/* ---------- 任务卡 ---------- */
.task {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 15px 17px 14px 19px; margin-bottom: 10px;
}
.task::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--line); }
.task.k-gate::before { background: var(--warn); }
.task.k-hand::before { background: #7f56d9; }
.task.k-delay::before { background: var(--danger); }
.task .t-title { font-size: 17px; font-weight: 570; line-height: 1.68; margin-bottom: 7px; }
.task .t-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; color: var(--muted); }
.task .t-meta b { font-weight: 600; color: var(--ink-2); }
.task .t-actions { display: flex; gap: 6px; margin-top: 10px; }
.task.done { opacity: .58; }
.task.done .t-title { text-decoration: line-through; text-decoration-thickness: 1px; }

.who { display: flex; align-items: center; gap: 9px; margin: 18px 0 10px; }
.who .avatar { width: 28px; height: 28px; font-size: 14.5px; }
.who .n { font-size: 17px; font-weight: 650; }
.who .m { font-size: 14.5px; color: var(--muted-2); }

/* ---------- 周报 ---------- */
.report { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 17px 19px; margin-bottom: 12px; }
.report .r-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; flex-wrap: wrap; }
.report .r-name { font-size: 17px; font-weight: 650; }
.report .r-time { font-size: 14.5px; color: var(--muted-2); margin-left: auto; }
.report .r-body { font-size: 16.5px; color: var(--ink-2); line-height: 1.92; }
.report .r-sec { margin-top: 10px; }
.report .r-k { font-size: 14px; font-weight: 700; color: var(--muted-2); letter-spacing: .03em; margin-bottom: 3px; }
.report .r-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; height: 29px; padding: 0 10px; border-radius: 7px; background: var(--line-2); font-size: 14.5px; color: var(--ink-2); }
.quote-block {
  margin-top: 12px; padding: 10px 13px; border-radius: 9px;
  background: #fbfaff; border-left: 3px solid #7f56d9;
}
.quote-block .q-h { font-size: 14px; font-weight: 700; color: #6941c6; margin-bottom: 3px; }
.quote-block .q-t { font-size: 16px; color: var(--ink-2); line-height: 1.65; }

/* ---------- 协作 ---------- */
.link-row {
  display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 9px; background: #fff;
}
.link-row .lr-from { font-size: 16px; font-weight: 650; }
.link-row .lr-to { font-size: 16px; font-weight: 650; text-align: right; }
.link-row .lr-arrow { text-align: center; color: var(--muted-2); font-size: 19px; }
.link-row .lr-what { grid-column: 1 / -1; font-size: 15px; color: var(--muted); margin-top: -2px; }
.link-row .lr-node { grid-column: 1 / -1; font-size: 14px; color: var(--muted-2); }

/* ---------- 资源 ---------- */
.res-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.res-item {
  border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px;
  background: #fff; transition: .16s ease;
}
.res-item:hover { border-color: #cfd6df; box-shadow: var(--shadow); }
.ri-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.ri-top b { font-size: 17px; }
.ri-quota { font-size: 15px; color: var(--ink-2); margin-bottom: 4px; line-height: 1.6; }
.ri-note { font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.ri-link { display: inline-block; margin-top: 9px; font-size: 14.5px; font-weight: 600; }
.ri-link:hover { text-decoration: underline; }
.tip-list { list-style: none; padding: 0; margin: 0; }
.tip-list li {
  position: relative; padding-left: 20px; margin-bottom: 9px;
  font-size: 16px; line-height: 1.75; color: var(--ink-2);
}
.tip-list li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--p1); }

/* ---------- 积分表 ---------- */
.score-table { display: grid; gap: 7px; }
.st-head, .st-row {
  display: grid;
  grid-template-columns: 38px minmax(90px, 1.3fr) 54px 60px 54px 56px 58px 74px;
  align-items: center; gap: 8px;
}
.st-head { padding: 0 10px; font-size: 13.5px; color: var(--muted-2); }
.st-row {
  padding: 10px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-size: 15.5px;
}
.st-row.st-top { border-color: #f7d488; background: #fffdf5; }
.st-rank { font-weight: 700; color: var(--muted); }
.st-name { display: flex; align-items: center; gap: 7px; font-weight: 650; min-width: 0; }
.st-total { font-weight: 750; color: var(--p1); font-size: 17px; }
.st-share { font-size: 14px; color: var(--ink-2); }

/* ---------- 成员 ---------- */
.mem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mem-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px; }
.mem-card .mc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mem-card .mc-n { font-size: 17px; font-weight: 650; }
.mem-card .mc-r { font-size: 14px; color: var(--muted-2); }
.mem-card .mc-mod { font-size: 15.5px; color: var(--ink-2); background: var(--line-2); padding: 7px 10px; border-radius: 8px; }
.mem-card .mc-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14.5px; color: var(--muted); }

/* ---------- 进度条 ---------- */
.bar { height: 5px; border-radius: 5px; background: var(--line-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 5px; background: var(--accent, #0e7490); }

/* ---------- 表单 ---------- */
.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.drop {
  border: 1.5px dashed var(--line); border-radius: 11px; padding: 18px;
  text-align: center; color: var(--muted); font-size: 15.5px; background: #fcfcfd;
}
.drop:hover { border-color: #b9c0cc; }
.checkline { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line); margin-bottom: 8px; font-size: 16px; }
.checkline input { accent-color: var(--p1); width: 16px; height: 16px; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--muted-2); font-size: 16px; }
.empty .e-ico { font-size: 31px; margin-bottom: 8px; opacity: .7; }

/* ---------- 周次切换 ---------- */
.weekbar { display: flex; align-items: center; gap: 8px; }
.weekbar .wb-label { font-size: 16px; font-weight: 650; min-width: 76px; text-align: center; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink-2); }
.icon-btn:hover { background: #fafbfc; }
.icon-btn:disabled { opacity: .35; }

/* ---------- 移动端底部导航 ---------- */
.tabbar { display: none; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 16px; opacity: 0; pointer-events: none; transition: .22s ease; z-index: 200;
  box-shadow: var(--shadow-lg); max-width: 90vw;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 海报 ---------- */
.poster-stage { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; overflow: hidden; }
.poster-a0 {
  width: 100%; aspect-ratio: 1 / 1.414; background: #fff;
  padding: 5.5% 6% 4%; display: flex; flex-direction: column;
  border: 1px solid var(--line); position: relative; overflow: hidden;
  font-size: clamp(9px, 1.55vw, 17px);
}
.poster-a0 .p-band { position: absolute; left: 0; right: 0; top: 0; height: .5em; background: var(--accent); }
.poster-a0 h1 { font-size: 1.9em; line-height: 1.25; margin: 1.2em 0 .35em; letter-spacing: -.01em; }
.poster-a0 .p-authors { font-size: .78em; color: var(--muted); }
.poster-a0 .p-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1em; margin-top: 1.1em; flex: 1; }
.poster-a0 .p-box { border-left: .18em solid var(--accent); padding-left: .7em; margin-bottom: .9em; }
.poster-a0 .p-box h4 { font-size: .82em; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: .25em; }
.poster-a0 .p-box p { font-size: .74em; line-height: 1.55; color: var(--ink-2); }
.poster-a0 .p-figbox {
  height: 8.5em; border: 1px dashed #d0d5dd; border-radius: 4px;
  display: grid; place-items: center; font-size: .68em; color: var(--muted-2);
  background: #fcfcfd; margin-top: .3em;
}
.poster-a0 .p-kw {
  border-top: 1px solid var(--line); padding-top: .5em; margin-top: .3em;
  font-size: .74em; color: var(--ink-2);
}
.poster-a0 .p-kw b { color: var(--accent); margin-right: .9em; letter-spacing: .06em; }
.poster-a0 .p-foot { padding-top: .45em; font-size: .62em; color: var(--muted-2); display: flex; justify-content: space-between; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .grid-2 { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .page { padding: 16px 16px 100px; }
  .topbar { padding: 10px 16px; }
  .hero h1 { font-size: 24px; }
  .proj-grid { grid-template-columns: 1fr; }

  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar button {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 12.5px; color: var(--muted-2); padding: 5px 0; border-radius: 8px;
  }
  .tabbar button.on { color: var(--ink); font-weight: 650; }
  .tabbar .ti { font-size: 20.5px; line-height: 1; }
  .tabbar .ico { display: grid; place-items: center; }
  .tabbar .ico svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
}

@media (max-width: 640px) {
  body { font-size: 17.5px; }
  .page { padding: 14px 13px 96px; }
  .card-pad { padding: 16px; }
  .mem-grid { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr; }
  .st-head, .st-row { grid-template-columns: 34px 1fr 62px 70px; }
  .st-head span:nth-child(3), .st-head span:nth-child(4), .st-head span:nth-child(5), .st-head span:nth-child(6),
  .st-row > span:nth-child(3), .st-row > span:nth-child(4), .st-row > span:nth-child(5), .st-row > span:nth-child(6) { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .kpi-row { gap: 9px; }
  .kpi { padding: 12px 13px; }
  .kpi .v { font-size: 20.5px; }
  .proj-card { padding: 18px 17px 15px; }
  .proj-card h3 { font-size: 18.5px; }
  .pc-stat { flex-wrap: wrap; gap: 10px 12px; }
  .link-row { grid-template-columns: 1fr; gap: 4px; }
  .link-row .lr-to, .link-row .lr-arrow { text-align: left; }
  .link-row .lr-arrow { transform: rotate(90deg); width: 20px; }
  .poster-a0 { font-size: 11px; }
  .topbar h2 { font-size: 18px; }
  .report { padding: 14px; }
}

@media print {
  .sidebar, .topbar, .tabbar, .no-print { display: none !important; }
  body { background: #fff; }
  .page { padding: 0; max-width: none; }
  .poster-stage { border: none; padding: 0; }
  .poster-a0 { border: none; }
  @page { size: A0 portrait; margin: 0; }
}
