/* QedON project portal.  Brand: Pantone 302c #003c5b, Pantone 298c #3db3e3, blue-purple
   gradient.  Brand face is Azo Sans (Adobe, licensed); Figtree stands in on the web. */
:root {
  --navy: #003c5b;
  --navy-2: #0b4d72;
  --sky: #3db3e3;
  --sky-2: #00b4f0;
  --purple: #6c46a8;
  --grad: linear-gradient(120deg, #00b8f1 0%, #3a86d6 45%, #6c46a8 100%);
  --grad-deep: linear-gradient(125deg, #003c5b 0%, #0b4d72 55%, #3a3f8f 100%);
  --ink: #1d2b36;
  --ink-2: #4a5a67;
  --muted: #6b7a86;
  --line: #e3e8ed;
  --bg: #f4f6f8;
  --card: #ffffff;
  --good: #1f8a5b;
  --good-bg: #e6f5ee;
  --warn: #9a6400;
  --warn-bg: #fdf3e1;
  --bad: #b8323a;
  --bad-bg: #fbeaeb;
  --info-bg: #e7f5fc;
  --violet-bg: #f0ebf8;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0, 40, 70, .05), 0 8px 24px rgba(0, 40, 70, .06);
  --shadow-lift: 0 2px 4px rgba(0, 40, 70, .06), 0 16px 40px rgba(0, 40, 70, .12);
  --font: "Figtree", "Azo Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.55 var(--font); color: var(--ink); background: var(--bg); }
body.app { min-height: 100vh; display: flex; flex-direction: column; }
a { color: #0a74b8; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; font-weight: 700; color: var(--navy); }
h2 { font-size: 1.08rem; font-weight: 700; color: var(--navy); }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-bottom: 6px; }
.eyebrow-light { color: rgba(255, 255, 255, .85); }
.big-num { font-size: 1.25rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- top bar */
.topbar { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20; }
.topbar-in { max-width: 1240px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand img { height: 36px; width: auto; display: block; }
.brand-tag { font-size: .78rem; font-weight: 600; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); font-weight: 600; font-size: .93rem; padding: 8px 14px; border-radius: 10px; display: flex; align-items: center; gap: 7px; }
.nav a:hover { background: #eef3f7; text-decoration: none; color: var(--navy); }
.nav a.on { color: var(--navy); background: #e7f3fa; }
.pill-count { background: var(--grad); color: #fff; font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: inline-grid; place-items: center; padding: 0 6px; }

.me { position: relative; }
.me summary { list-style: none; cursor: pointer; }
.me summary::-webkit-details-marker { display: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: .85rem; display: inline-grid; place-items: center; flex: none; }
.avatar-lg { width: 44px; height: 44px; font-size: .95rem; }
.avatar-xl { width: 72px; height: 72px; font-size: 1.5rem; }
.me-menu { position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); min-width: 240px; padding: 8px; }
.me-menu a, .me-menu .linklike { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); width: 100%; text-align: left; }
.me-menu a:hover, .me-menu .linklike:hover { background: var(--bg); text-decoration: none; }
.me-who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; }
.me-who span { font-size: .82rem; color: var(--muted); }

/* ---------------------------------------------------------------- layout */
.page { max-width: 1240px; width: 100%; margin: 0 auto; padding: 28px 24px 40px; flex: 1; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.col-main, .col-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.more { font-size: .88rem; font-weight: 600; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head > div:first-child { max-width: 680px; }
.page-head .muted { margin-top: 6px; }
.head-actions { display: flex; gap: 10px; }
.back { display: inline-block; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.back::before { content: "\2190  "; }
.foot { max-width: 1240px; width: 100%; margin: 0 auto; padding: 18px 24px 30px; color: var(--muted); font-size: .8rem; display: flex; align-items: center; gap: 10px; }
.foot img { opacity: .8; }

/* ---------------------------------------------------------------- buttons, forms */
.btn { font: 600 .92rem var(--font); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-primary { background: linear-gradient(120deg, #0a8fd1, #3a6fd0); border-color: transparent; color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(10, 116, 184, .35); }
.btn-light { background: #fff; color: var(--navy); border-color: transparent; }
.btn-ghost-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .22); }
.btn-wide { width: 100%; padding: 13px 18px; font-size: 1rem; }
.btn-approve { background: var(--good); color: #fff; border-color: transparent; padding: 12px 22px; }
.btn-decline { color: var(--bad); border-color: #f0c9cc; padding: 12px 22px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: #0a74b8; cursor: pointer; font-weight: 600; font-size: .86rem; }
.linklike.danger, .danger { color: var(--bad); }
input, select, textarea { font: 400 .95rem var(--font); color: var(--ink); background: #fbfcfd; border: 1px solid #d5dde4; border-radius: 10px; padding: 10px 12px; width: 100%; transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(61, 179, 227, .18); background: #fff; }
textarea { resize: vertical; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.check { display: flex; gap: 10px; align-items: center; font-size: .92rem; }
.check input { width: 18px; height: 18px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 18px; }
.span2 { grid-column: span 2; }
.inline { display: inline; }
.inline select { width: auto; padding: 6px 10px; font-size: .85rem; }
.form-card { max-width: 760px; }
.form-card h1 { margin-bottom: 6px; }

/* ---------------------------------------------------------------- flashes, chips */
.flashes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.flash { padding: 12px 16px; border-radius: 12px; font-weight: 500; background: var(--info-bg); color: var(--navy); }
.flash-ok { background: var(--good-bg); color: var(--good); }
.flash-error { background: var(--bad-bg); color: var(--bad); }
.flash-dev { background: #fff7d6; color: #6b5200; word-break: break-all; font-size: .82rem; }
.chip { display: inline-flex; align-items: center; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: #eef2f5; color: var(--ink-2); white-space: nowrap; }
.chip-done, .chip-approved, .chip-purchased { background: var(--good-bg); color: var(--good); }
.chip-in_progress { background: var(--info-bg); color: #0a74b8; }
.chip-upcoming { background: #eef2f5; color: var(--muted); }
.chip-blocked, .chip-pending, .chip-ratify { background: var(--warn-bg); color: var(--warn); }
.chip-declined, .chip-withdrawn { background: var(--bad-bg); color: var(--bad); }
.chip-bill-free { background: var(--good-bg); color: var(--good); }
.chip-bill-dallas { background: var(--violet-bg); color: var(--purple); }
.chip-bill-qedon { background: var(--info-bg); color: #0a74b8; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; border-radius: 22px; background: var(--grad); color: #fff; padding: 40px 44px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; min-height: 250px; box-shadow: 0 18px 48px rgba(58, 70, 170, .22); margin-bottom: 22px; }
.hero-photo { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); height: 150%; width: auto; opacity: .22; mix-blend-mode: luminosity; pointer-events: none; }
.hero-text { position: relative; z-index: 1; max-width: 640px; }
.hero h1 { color: #fff; font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; }
.hero-sub { margin-top: 10px; font-size: 1.05rem; color: rgba(255, 255, 255, .92); }
.hero-sub strong { font-weight: 700; color: #fff; }
.hero-meta { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero-ring { position: relative; z-index: 1; background: rgba(255, 255, 255, .95); border-radius: 50%; padding: 10px; box-shadow: 0 10px 30px rgba(0, 30, 60, .2); }
.ring-bg { fill: none; stroke: #e8eef3; stroke-width: 9; }
.ring-fg { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring-num { text-anchor: middle; font: 800 22px var(--font); fill: var(--navy); }
.ring-lbl { text-anchor: middle; font: 600 9.5px var(--font); fill: var(--muted); }

/* ---------------------------------------------------------------- KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.kpi { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.kpi-label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.kpi-num { font-size: 1.75rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi-sub { font-size: .8rem; color: var(--muted); }
.kpi .bar { margin-top: 6px; }
.kpi-alert { background: linear-gradient(135deg, #fff 0%, #fff8ea 100%); }
.kpi-alert::before { background: #e8a33c; }

/* ---------------------------------------------------------------- bars, chart */
.bar { width: 100%; height: 8px; display: block; }
.bar-bg { fill: #e8eef3; }
.bar-fg { fill: var(--sky); }
.spark { width: 100%; height: 160px; display: block; }
.spark-line { fill: none; stroke: #1f8fcf; stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark-dot { fill: #fff; stroke: var(--purple); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.spark-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin: 6px 0 12px; }

/* ---------------------------------------------------------------- requests */
.card-attn { border: 1px solid #f2d7a6; background: linear-gradient(180deg, #fffaf0 0%, #fff 60%); }
.req-list { list-style: none; margin: 0; padding: 0; }
.req-list li + li { border-top: 1px solid var(--line); }
.req-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 6px; color: var(--ink); border-radius: 10px; }
.req-row:hover { background: #f6f9fb; text-decoration: none; }
.req-main { display: flex; flex-direction: column; min-width: 0; }
.req-main .muted { font-size: .85rem; }
.req-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.req-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 0 0 20px; }
.facts div { background: #f8fafb; border-radius: 12px; padding: 12px 14px; }
.facts dt { font-size: .76rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 4px 0 0; }
.cell-sub { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }
.purpose h2 { margin-bottom: 6px; }
.purpose p { font-size: 1.02rem; color: var(--ink-2); }
.note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: .9rem; }
.decision { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--good-bg); color: var(--good); }
.decision-declined, .decision-withdrawn { background: var(--bad-bg); color: var(--bad); }
.decision p { margin-top: 6px; color: var(--ink-2); font-style: italic; }
.decide { border: 1px solid #cfe7f4; }
.decide h2 { margin-bottom: 12px; }
.h2like { font-weight: 700; color: var(--navy); cursor: pointer; }

/* ---------------------------------------------------------------- milestones */
.phase-now { display: flex; gap: 16px; margin-bottom: 14px; }
.phase-now h3 { font-size: 1.15rem; color: var(--navy); margin: 2px 0 4px; }
.phase-no { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--purple); }
.ms-list, .timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.ms, .tl { position: relative; padding: 0 0 18px 30px; }
.ms::before, .tl::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.ms:last-child::before, .tl:last-child::before { display: none; }
.ms-dot, .tl-dot { position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #cfd8df; background: #fff; }
.ms-done .ms-dot, .tl-done .tl-dot { background: var(--good); border-color: var(--good); box-shadow: inset 0 0 0 3px #fff; }
.ms-in_progress .ms-dot, .tl-in_progress .tl-dot { border-color: var(--sky); background: var(--sky); box-shadow: 0 0 0 5px rgba(61, 179, 227, .2); animation: pulse 2.2s ease-in-out infinite; }
.ms-blocked .ms-dot, .tl-blocked .tl-dot { border-color: #e8a33c; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(61, 179, 227, .06); } }
@media (prefers-reduced-motion: reduce) { .ms-dot, .tl-dot { animation: none !important; } }
.ms-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ms-body p, .tl-body p { color: var(--ink-2); margin-top: 4px; font-size: .93rem; }
.ms-when { display: block; margin-top: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.tl-body h3 { color: var(--navy); font-size: 1.02rem; }
.outcome { margin-top: 10px; background: linear-gradient(135deg, #eef8fd, #f3effa); border-radius: 12px; padding: 12px 14px; }
.outcome-lbl { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); }
.outcome p { color: var(--ink); margin-top: 4px; }
.ms-edit { margin-top: 8px; }
.ms-edit summary { font-size: .82rem; font-weight: 600; color: #0a74b8; cursor: pointer; }
.ms-edit form { margin-top: 10px; max-width: 520px; }

.phase-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.phase-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; background: #f7f9fb; color: var(--ink); border: 1px solid transparent; transition: border-color .12s, transform .12s; }
.phase-tile:hover { text-decoration: none; border-color: #cfe7f4; transform: translateY(-2px); }
.phase-tile strong { font-size: .92rem; line-height: 1.3; min-height: 2.6em; }
.phase-tile .muted { font-size: .78rem; }
.phase-active { background: linear-gradient(160deg, #e9f6fd, #f1edf9); border-color: #cfe7f4; }
.phase-upcoming .bar-fg { fill: #b9c6d0; }
.phase-done .bar-fg { fill: var(--good); }

.phase-card { margin-bottom: 22px; }
.phase-card-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.phase-card-head h2 { font-size: 1.35rem; margin: 2px 0 6px; }
.phase-prog { min-width: 160px; text-align: right; display: flex; flex-direction: column; gap: 6px; }
.phase-card.phase-upcoming { background: linear-gradient(180deg, #fff, #fafbfc); }

.seg { display: inline-flex; background: #e8eef3; border-radius: 12px; padding: 4px; }
.seg a { padding: 8px 16px; border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.seg a:hover { text-decoration: none; color: var(--navy); }
.seg a.on { background: #fff; color: var(--navy); box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- feed, lists */
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.feed li { display: grid; grid-template-columns: 12px 1fr; gap: 12px; }
.feed p { font-size: .88rem; color: var(--ink-2); margin: 2px 0; }
.feed-icon { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--sky); }
.feed-milestone .feed-icon { background: var(--good); }
.feed-request .feed-icon { background: #e8a33c; }
.feed-decision .feed-icon { background: var(--purple); }
.feed-cost .feed-icon { background: var(--navy); }
.post-update { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.post-update summary { font-weight: 600; color: #0a74b8; cursor: pointer; font-size: .9rem; }
.post-update form { margin-top: 10px; }
.svc, .split, .people { list-style: none; margin: 0; padding: 0; }
.svc li, .split li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; }
.svc li + li, .split li + li, .people li + li { border-top: 1px solid var(--line); }
.svc li > div { display: flex; flex-direction: column; min-width: 0; }
.split strong { font-variant-numeric: tabular-nums; color: var(--navy); }
.people li { display: flex; gap: 14px; align-items: center; padding: 14px 0; flex-wrap: wrap; }
.people li.inactive { opacity: .55; }
.person { display: flex; flex-direction: column; flex: 1; min-width: 200px; }
.person-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.profile-top { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; }
.empty { text-align: center; padding: 60px 24px; }
.empty h1 { margin-bottom: 20px; }

/* ---------------------------------------------------------------- how it works */
.how { margin-bottom: 22px; padding: 18px 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps li > div { display: flex; flex-direction: column; }
.steps .muted { font-size: .84rem; }
.step-no { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }

/* ---------------------------------------------------------------- ledger */
.table-wrap { overflow-x: auto; margin: 0 -8px; }
.ledger { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ledger th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 8px; border-bottom: 1px solid var(--line); }
.ledger td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger .num { text-align: right; font-variant-numeric: tabular-nums; }
.ledger tfoot td { font-weight: 800; color: var(--navy); border-bottom: 0; font-size: 1rem; }

/* ---------------------------------------------------------------- sign-in */
body.auth { background: #fff; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: var(--navy); position: relative; overflow: hidden; }
.auth-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 56px clamp(24px, 6vw, 88px); max-width: 560px; }
.auth-logo { width: 190px; height: auto; margin-bottom: 36px; }
.auth-panel h1 { font-size: 2rem; margin-bottom: 10px; }
.auth-panel .lede { color: var(--ink-2); font-size: 1.02rem; margin-bottom: 26px; }
.auth-panel .flash { margin-bottom: 16px; }
.auth-foot { margin-top: 40px; color: var(--muted); font-size: .82rem; }
.sent-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--grad); color: #fff; display: grid; place-items: center; margin-bottom: 20px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1060px) {
  .cols { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase-strip, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .topbar-in { padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
  .brand-tag { display: none; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .me { margin-left: auto; }
  .page { padding: 18px 16px 32px; }
  .hero { grid-template-columns: 1fr; padding: 28px 22px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-ring { justify-self: start; }
  .kpi-num { font-size: 1.4rem; }
  .card { padding: 18px 16px; }
  .grid-form, .facts { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .phase-card-head { flex-direction: column; }
  .phase-prog { text-align: left; width: 100%; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { height: 200px; }
  .auth-photo { object-position: 30% 40%; }
  .foot { padding: 16px; }
}
@media (max-width: 480px) {
  .kpis, .phase-strip, .steps { grid-template-columns: 1fr; }
  .req-row { flex-direction: column; align-items: flex-start; }
  .req-amt { align-items: flex-start; flex-direction: row; }
}
