:root {
  --font-geist-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-geist-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ink: #152634;
  --muted: #65727c;
  --paper: #f4f2ed;
  --card: #ffffff;
  --line: #dfe3e4;
  --accent: #dc5d2b;
  --accent-dark: #ba4318;
  --navy: #15354a;
  --success: #2d7a63;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.landing-shell { min-height: 100vh; padding: 0 clamp(24px, 5vw, 76px); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; position: relative; }
.landing-shell::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .42; background-image: linear-gradient(rgba(21,38,52,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(21,38,52,.045) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to right, #000, transparent 54%); }
.landing-nav { min-height: 104px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(21,38,52,.14); position: relative; z-index: 1; }
.brand-lockup { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; color: #fff; background: var(--navy); font-weight: 850; letter-spacing: -.06em; position: relative; }
.brand-mark::after { content: ''; position: absolute; right: -4px; bottom: -4px; width: 12px; height: 12px; background: var(--accent); }
.brand-lockup > span:last-child { display: grid; line-height: 1; }
.brand-lockup strong { font-size: 14px; letter-spacing: .15em; }
.brand-lockup small { margin-top: 7px; color: var(--muted); font-size: 9px; letter-spacing: .24em; }
.support-link { color: var(--muted); font-size: 13px; }
.support-link strong { color: var(--ink); margin-left: 3px; }
.landing-grid { width: min(1210px, 100%); margin: auto; padding: 80px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr); align-items: center; gap: clamp(52px, 8vw, 120px); position: relative; z-index: 1; }
.eyebrow { margin: 0 0 24px; color: var(--accent-dark); font-size: 12px; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 2px; background: var(--accent); }
.landing-copy h1 { margin: 0; max-width: 690px; font-size: clamp(46px, 5.3vw, 76px); line-height: .98; letter-spacing: -.055em; font-weight: 680; }
.lede { max-width: 610px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.landing-actions { margin-top: 38px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.primary-button { min-height: 56px; padding: 0 22px; display: inline-flex; align-items: center; gap: 30px; color: #fff; background: var(--accent); font-size: 14px; font-weight: 720; box-shadow: 0 13px 30px rgba(186,67,24,.2); transition: transform .2s, background .2s; }
.primary-button:hover { background: var(--accent-dark); transform: translateY(-2px); }
.primary-button span { font-size: 20px; }
.secure-note { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.secure-note i { width: 21px; height: 21px; border: 1px solid #b8c2c5; border-radius: 50%; display: grid; place-items: center; color: var(--success); font-style: normal; font-size: 11px; }
.preview-wrap { position: relative; padding: 22px 0 0 22px; }
.preview-accent { position: absolute; inset: 0 22px 22px 0; border: 2px solid var(--navy); }
.preview-card { position: relative; background: var(--card); border: 1px solid #d9dedf; padding: 30px; box-shadow: 0 24px 70px rgba(20,45,62,.14); }
.preview-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.preview-header small { color: var(--muted); font-size: 9px; letter-spacing: .16em; font-weight: 750; }
.preview-header h2 { font-size: 22px; margin: 8px 0 4px; letter-spacing: -.03em; }
.preview-header p { margin: 0; color: var(--muted); font-size: 12px; }
.review-pill { flex: 0 0 auto; padding: 8px 10px; color: #94652f; background: #fbf0d9; font-size: 9px; font-weight: 780; letter-spacing: .11em; }
.progress-meta { margin-top: 30px; display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); }
.progress-meta strong { color: var(--ink); font-size: 15px; }
.progress-track { height: 5px; margin-top: 9px; background: #e8ebeb; overflow: hidden; }
.progress-track span { display: block; width: 62%; height: 100%; background: var(--accent); }
.preview-steps { margin-top: 26px; }
.preview-step { min-height: 58px; display: grid; grid-template-columns: 32px 1fr; gap: 12px; position: relative; }
.preview-step:not(:last-child)::after { content: ''; position: absolute; top: 28px; left: 13px; width: 1px; height: 30px; background: #d6dcdd; }
.step-dot { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: #eef1f1; color: #889398; font-size: 10px; font-weight: 800; z-index: 1; }
.preview-step.complete .step-dot { background: var(--success); color: #fff; }
.preview-step.current .step-dot { background: var(--navy); color: #fff; box-shadow: 0 0 0 4px #e4ebee; }
.preview-step div { display: grid; gap: 4px; align-content: start; padding-top: 2px; }
.preview-step strong { font-size: 12px; }
.preview-step small { color: var(--muted); font-size: 10px; }
.preview-step.upcoming strong { color: #879297; font-weight: 570; }
.preview-footer { margin: 6px -30px -30px; padding: 18px 30px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.preview-footer span { display: flex; align-items: center; gap: 8px; }
.preview-footer strong { color: var(--ink); }
.avatar-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px #dcece7; }
.landing-footer { min-height: 72px; border-top: 1px solid rgba(21,38,52,.14); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; position: relative; z-index: 1; }

@media (max-width: 900px) { .landing-grid { grid-template-columns: 1fr; padding: 64px 0; } .landing-copy h1 { max-width: 760px; } .preview-wrap { width: min(540px, 100%); } }
@media (max-width: 600px) { .landing-nav { min-height: 84px; } .support-link { font-size: 0; } .support-link strong { font-size: 12px; } .landing-grid { padding: 50px 0; gap: 52px; } .landing-copy h1 { font-size: 44px; } .lede { font-size: 16px; } .preview-wrap { padding: 12px 0 0 12px; } .preview-accent { inset: 0 12px 12px 0; } .preview-card { padding: 22px; } .review-pill { display: none; } .preview-footer { margin: 6px -22px -22px; padding: 18px 22px; } .landing-footer { min-height: 82px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 6px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition-duration: .01ms !important; } }

:focus-visible { outline: 3px solid rgba(220,93,43,.45); outline-offset: 3px; }

.portal-app { min-height: 100vh; display: grid; grid-template-columns: 268px minmax(0, 1fr); background: #f2f3f1; }
.portal-sidebar { min-height: 100vh; padding: 30px 25px; position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; color: #f6f7f7; background: var(--navy); }
.portal-brand { color: #fff; padding: 4px 3px 31px; border-bottom: 1px solid rgba(255,255,255,.14); }
.portal-brand .brand-mark { background: #fff; color: var(--navy); }
.portal-brand small { color: rgba(255,255,255,.55); }
.side-nav { padding-top: 29px; }
.side-nav p { margin: 0 0 13px; padding: 0 12px; color: rgba(255,255,255,.42); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; font-weight: 750; }
.side-nav a { min-height: 43px; padding: 0 12px; display: flex; align-items: center; gap: 13px; color: rgba(255,255,255,.64); border-left: 2px solid transparent; font-size: 13px; font-weight: 570; transition: .18s ease; }
.side-nav a span { width: 19px; color: rgba(255,255,255,.33); font-family: var(--font-geist-mono); font-size: 9px; }
.side-nav a:hover, .side-nav a.active { color: #fff; background: rgba(255,255,255,.075); border-left-color: var(--accent); }
.side-nav a.active span { color: #f28a60; }
.side-help { margin-top: auto; padding: 24px 20px; border: 1px solid rgba(255,255,255,.14); display: grid; gap: 6px; }
.side-help span { color: #f28a60; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.side-help strong { margin-bottom: 8px; font-size: 13px; line-height: 1.4; }
.side-help a { color: rgba(255,255,255,.58); font-size: 11px; }
.portal-main { min-width: 0; }
.portal-topbar { height: 80px; padding: 0 clamp(26px, 4vw, 60px); display: flex; justify-content: flex-end; align-items: center; border-bottom: 1px solid #dadddc; background: rgba(255,255,255,.86); backdrop-filter: blur(12px); }
.mobile-brand { display: none; }
.account-menu { display: flex; align-items: center; gap: 11px; }
.account-avatar { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: var(--navy); font-size: 10px; font-weight: 760; }
.account-copy { padding-right: 17px; display: grid; gap: 3px; border-right: 1px solid #d8dcdc; }
.account-copy strong { font-size: 12px; }
.account-copy small { color: var(--muted); font-size: 10px; }
.account-menu > a { margin-left: 4px; color: var(--muted); font-size: 11px; }

.dashboard { width: min(1300px, 100%); margin: 0 auto; padding: 54px clamp(26px, 4vw, 60px) 80px; }
.dashboard-heading, .admin-heading { margin-bottom: 32px; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.dashboard-heading .eyebrow, .admin-heading .eyebrow { margin-bottom: 13px; }
.dashboard-heading h1, .admin-heading h1 { margin: 0; font-size: clamp(32px, 3.5vw, 48px); line-height: 1; letter-spacing: -.045em; }
.dashboard-heading > div > p:last-child, .admin-heading > div > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.project-switcher { position: relative; }
.project-switcher summary { min-width: 155px; padding: 12px 15px; list-style: none; cursor: pointer; border: 1px solid #cdd3d4; background: #fff; font-size: 11px; font-weight: 650; display: flex; justify-content: space-between; gap: 20px; }
.project-switcher summary::-webkit-details-marker { display: none; }
.project-switcher > div { min-width: 280px; padding: 8px; position: absolute; z-index: 5; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(21,38,52,.12); }
.project-switcher > div a { padding: 10px; display: grid; gap: 3px; font-size: 12px; }
.project-switcher > div a:hover { background: #f3f4f2; }
.project-switcher > div small { color: var(--muted); }

.project-hero { padding: clamp(26px, 4vw, 46px); color: #fff; background: var(--navy); position: relative; overflow: hidden; box-shadow: 0 18px 48px rgba(21,53,74,.15); }
.project-hero::after { content: ''; position: absolute; width: 250px; height: 250px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -92px; top: -108px; box-shadow: 0 0 0 46px rgba(255,255,255,.025), 0 0 0 92px rgba(255,255,255,.018); }
.hero-heading { display: flex; justify-content: space-between; gap: 24px; position: relative; z-index: 1; }
.project-label { color: #f39068; font-size: 9px; letter-spacing: .16em; font-weight: 760; }
.hero-heading h2 { margin: 10px 0 5px; font-size: clamp(25px, 3vw, 38px); letter-spacing: -.035em; }
.hero-heading p { margin: 0; color: rgba(255,255,255,.57); font-size: 12px; }
.status-badge { height: fit-content; padding: 9px 11px; color: #8a5a21; background: #fce8c8; font-size: 9px; font-weight: 780; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.project-summary { width: min(720px, 92%); margin: 26px 0 0; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.6; position: relative; z-index: 1; }
.hero-progress { margin-top: 29px; position: relative; z-index: 1; }
.hero-progress > div:first-child { display: flex; justify-content: space-between; color: rgba(255,255,255,.62); font-size: 11px; }
.hero-progress strong { color: #fff; font-size: 14px; }
.large-progress { height: 5px; margin-top: 9px; background: rgba(255,255,255,.14); }
.large-progress span { height: 100%; display: block; background: var(--accent); }
.hero-meta { margin: 32px -46px -46px; padding: 24px 46px; display: grid; grid-template-columns: 2fr 1fr 1fr; border-top: 1px solid rgba(255,255,255,.13); background: rgba(0,0,0,.08); position: relative; z-index: 1; }
.hero-meta > div { padding-right: 24px; display: grid; gap: 7px; }
.hero-meta > div:not(:first-child) { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.13); }
.hero-meta small { color: rgba(255,255,255,.42); font-size: 8px; letter-spacing: .14em; }
.hero-meta strong { color: rgba(255,255,255,.86); font-size: 11px; line-height: 1.5; }

.content-grid { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .72fr); gap: 24px; align-items: start; }
.panel { background: #fff; border: 1px solid #dfe3e3; box-shadow: 0 8px 22px rgba(21,38,52,.035); }
.panel-heading { min-height: 92px; padding: 25px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e3e6e6; }
.panel-heading > div { display: grid; gap: 6px; }
.panel-heading span { color: var(--accent-dark); font-size: 8px; letter-spacing: .17em; font-weight: 780; }
.panel-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.panel-heading > small { color: var(--muted); font-size: 10px; }
.milestone-list { padding: 7px 28px 18px; }
.milestone-row { min-height: 88px; display: grid; grid-template-columns: 42px 1fr auto; gap: 15px; align-items: center; position: relative; }
.milestone-row:not(:last-child)::after { content: ''; width: 1px; height: 38px; position: absolute; left: 16px; top: 67px; background: #dfe3e3; }
.milestone-marker { width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center; color: #899499; background: #eff1f1; font-family: var(--font-geist-mono); font-size: 9px; font-weight: 780; z-index: 1; }
.milestone-row.complete .milestone-marker { color: #fff; background: var(--success); }
.milestone-row.current .milestone-marker { color: #fff; background: var(--navy); box-shadow: 0 0 0 5px #e3e9eb; }
.milestone-row > div:nth-child(2) { display: grid; gap: 5px; }
.milestone-row strong { font-size: 13px; }
.milestone-row p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.milestone-row > span { color: var(--muted); font-size: 9px; }
.milestone-row.upcoming strong, .milestone-row.upcoming p { color: #9aa3a6; }
.facts-panel dl { margin: 0; padding: 8px 28px 2px; }
.facts-panel dl div { padding: 16px 0; display: grid; gap: 5px; border-bottom: 1px solid #edf0ef; }
.facts-panel dt { color: var(--muted); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.facts-panel dd { margin: 0; font-size: 12px; font-weight: 650; line-height: 1.45; }
.outline-button { min-height: 47px; margin: 20px 28px 27px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; color: var(--navy); border: 1px solid #ccd3d5; font-size: 11px; font-weight: 650; }
.outline-button:hover { border-color: var(--navy); }
.documents-panel { margin-top: 24px; scroll-margin-top: 20px; }
.document-table { padding: 0 28px 18px; }
.document-row { min-height: 62px; display: grid; grid-template-columns: 1.6fr .8fr .8fr .45fr; gap: 20px; align-items: center; border-bottom: 1px solid #edf0ef; font-size: 11px; }
.document-head { min-height: 42px; color: #8a9599; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.document-row strong { font-size: 12px; }
.doc-status { width: fit-content; padding: 6px 8px; color: #48645b; background: #e8f2ee; font-size: 9px; font-weight: 650; }
.doc-status.needed { color: #934f2c; background: #fbe7dc; }
.panel-empty { margin: 0; padding: 30px; color: var(--muted); font-size: 12px; }
.lower-grid { grid-template-columns: minmax(0, 1.25fr) minmax(330px, .85fr); }
.update-list { padding: 6px 28px 24px; }
.update-list article { padding: 23px 0; display: grid; grid-template-columns: 38px 1fr; gap: 14px; border-bottom: 1px solid #edf0ef; }
.update-index { color: #adb4b6; font-family: var(--font-geist-mono); font-size: 9px; padding-top: 3px; }
.update-list article small { color: var(--muted); font-size: 9px; }
.update-list h3 { margin: 7px 0 6px; font-size: 14px; }
.update-list article p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.message-panel form { padding: 24px 28px 28px; }
.message-panel label, .new-project label, .update-form label { display: grid; gap: 8px; color: #5f6c71; font-size: 10px; font-weight: 650; }
.message-panel textarea, .new-project input, .new-project select, .update-form input, .update-form select, .update-form textarea { width: 100%; border: 1px solid #d8dddd; background: #f8f9f7; color: var(--ink); padding: 12px; outline: 0; }
.message-panel textarea { margin-bottom: 14px; resize: vertical; }
.message-panel textarea:focus, .new-project input:focus, .new-project select:focus, .update-form input:focus, .update-form select:focus, .update-form textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(21,53,74,.08); }
.message-panel .primary-button, .new-project .primary-button, .update-form .primary-button { min-height: 45px; border: 0; cursor: pointer; }
.message-history { margin: 0 28px 28px; padding-top: 22px; border-top: 1px solid #edf0ef; }
.message-history > strong { font-size: 11px; }
.message-history article { padding: 16px 0; display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.message-history article > span { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--navy); font-size: 8px; }
.message-history article small { color: var(--muted); font-size: 9px; }
.message-history article p { margin: 5px 0 0; font-size: 11px; line-height: 1.5; }

.empty-state { width: min(720px, calc(100% - 50px)); margin: 13vh auto; padding: 45px 0; position: relative; }
.empty-number { position: absolute; right: 0; top: 0; color: #e2e4e2; font-family: var(--font-geist-mono); font-size: 130px; line-height: .8; font-weight: 780; z-index: 0; }
.empty-state > *:not(.empty-number) { position: relative; z-index: 1; }
.empty-state h1 { margin: 0; font-size: clamp(44px, 6vw, 72px); letter-spacing: -.05em; }
.empty-state > p:not(.eyebrow) { max-width: 570px; margin: 24px 0 0; color: var(--muted); line-height: 1.7; }
.empty-actions { margin-top: 32px; display: flex; gap: 20px; align-items: center; }
.text-button { color: var(--navy); font-size: 11px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }

.admin-shell { min-height: 100vh; background: #f2f3f1; }
.admin-topbar { min-height: 86px; padding: 0 clamp(25px, 5vw, 72px); display: flex; justify-content: space-between; align-items: center; background: #fff; border-bottom: 1px solid var(--line); }
.admin-topbar nav { display: flex; gap: 21px; align-items: center; color: var(--muted); font-size: 11px; }
.admin-topbar nav span { padding: 10px 15px; color: var(--ink); background: #f2f3f1; }
.admin-main { width: min(1380px, 100%); margin: 0 auto; padding: 55px clamp(25px, 5vw, 72px) 90px; }
.live-indicator { padding: 10px 13px; display: flex; align-items: center; gap: 8px; color: #356a59; background: #e5f0ec; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(45,122,99,.14); }
.admin-stats { margin-bottom: 24px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #dfe3e3; background: #fff; }
.admin-stats article { min-height: 120px; padding: 24px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; border-right: 1px solid #e1e4e4; }
.admin-stats article:last-child { border: 0; }
.admin-stats article > span { color: #b1b7b8; font-family: var(--font-geist-mono); font-size: 9px; }
.admin-stats small { align-self: end; color: var(--muted); font-size: 8px; letter-spacing: .13em; }
.admin-stats strong { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 35px; letter-spacing: -.04em; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(340px, .7fr); gap: 24px; align-items: start; }
.admin-project-list { padding: 0 28px 18px; }
.admin-project-list details { border-bottom: 1px solid #e7eaea; }
.admin-project-list summary { min-height: 76px; list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto 50px 16px; gap: 15px; align-items: center; }
.admin-project-list summary::-webkit-details-marker { display: none; }
.admin-project-list summary > div { display: grid; gap: 5px; }
.admin-project-list summary strong { font-size: 13px; }
.admin-project-list summary small { color: var(--muted); font-size: 10px; }
.admin-project-list summary b { font-size: 12px; }
.admin-project-list summary i { color: var(--muted); font-style: normal; transition: transform .2s; }
.admin-project-list details[open] summary i { transform: rotate(180deg); }
.update-form { margin: 0 -28px; padding: 24px 28px 28px; display: grid; grid-template-columns: 2fr 1fr; gap: 16px; background: #f6f7f5; border-top: 1px solid #e2e5e4; }
.update-form .full-field { grid-column: 1 / -1; }
.update-form textarea { resize: vertical; }
.update-form .primary-button { width: fit-content; }
.update-form .text-button { align-self: center; justify-self: end; }
.new-project form { padding: 24px 28px 29px; display: grid; gap: 15px; }
.new-project .primary-button { margin-top: 5px; justify-content: space-between; }
.admin-denied { margin-top: 16vh; }

@media (max-width: 1050px) {
  .portal-app { grid-template-columns: 220px minmax(0, 1fr); }
  .portal-sidebar { padding-inline: 18px; }
  .hero-meta { margin: 32px -32px -32px; padding: 23px 32px; }
  .project-hero { padding: 32px; }
  .content-grid, .lower-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .portal-app { display: block; }
  .portal-sidebar { display: none; }
  .portal-topbar { height: 70px; padding-inline: 20px; justify-content: space-between; }
  .mobile-brand { display: flex; gap: 6px; font-size: 11px; letter-spacing: .12em; font-weight: 760; }
  .mobile-brand small { color: var(--accent-dark); }
  .account-copy { display: none; }
  .account-menu > a { font-size: 10px; }
  .dashboard { padding: 38px 20px 60px; }
  .dashboard-heading, .admin-heading { align-items: flex-start; flex-direction: column; }
  .project-switcher, .project-switcher summary { width: 100%; }
  .hero-heading { flex-direction: column; }
  .status-badge { align-self: flex-start; }
  .hero-meta { grid-template-columns: 1fr; gap: 17px; }
  .hero-meta > div:not(:first-child) { padding: 17px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.13); }
  .panel-heading { min-height: 80px; padding: 20px; }
  .milestone-list, .document-table, .update-list { padding-inline: 20px; }
  .milestone-row { grid-template-columns: 38px 1fr; }
  .milestone-row > span { display: none; }
  .document-row { grid-template-columns: 1fr auto; gap: 10px; }
  .document-row > span:nth-child(2), .document-row > span:nth-child(4), .document-head { display: none; }
  .admin-topbar { padding: 18px 20px; align-items: flex-start; gap: 20px; }
  .admin-topbar nav span { display: none; }
  .admin-main { padding: 40px 20px 70px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-stats article:nth-child(2) { border-right: 0; }
  .admin-stats article:nth-child(-n+2) { border-bottom: 1px solid #e1e4e4; }
  .admin-project-list { padding-inline: 20px; }
  .admin-project-list summary { grid-template-columns: minmax(0, 1fr) 16px; }
  .admin-project-list summary .status-badge, .admin-project-list summary b { display: none; }
  .update-form { margin-inline: -20px; padding-inline: 20px; grid-template-columns: 1fr; }
  .update-form .full-field { grid-column: auto; }
  .update-form .text-button { justify-self: start; }
}

/* Standalone Hostinger portal additions */
.login-card { width: min(470px, 100%); justify-self: end; align-self: center; padding: clamp(28px, 4vw, 46px); background: #fff; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 24px 80px rgba(2,19,32,.24); }
.login-card h2 { margin: 10px 0 12px; color: var(--navy); font-size: clamp(30px, 4vw, 46px); letter-spacing: -.045em; }
.login-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.auth-form, .admin-form { display: grid; gap: 14px; }
.auth-form { margin-top: 24px; }
.auth-form label, .admin-form label { display: grid; gap: 8px; color: #5f6c71; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.auth-form input, .admin-form input, .admin-form textarea, .admin-form select { width: 100%; padding: 13px 14px; border: 1px solid #d8dddd; background: #f8f9f7; color: var(--ink); outline: 0; }
.auth-form input:focus, .admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(21,53,74,.08); }
.admin-form textarea { resize: vertical; }
.admin-form label small { color: var(--muted); font-weight: 450; line-height: 1.45; }
.full-button { width: 100%; justify-content: space-between; }
.privacy-note { display: block; margin-top: 20px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.flash { margin: 16px 0; padding: 13px 15px; border-left: 3px solid #2d7a63; color: #245d4c; background: #e7f1ed; font-size: 11px; line-height: 1.5; }
.flash.error { border-color: #c34e42; color: #8b342d; background: #f8ebe9; }
.inline-form { display: inline; margin: 0; }
.inline-form button { padding: 0; border: 0; background: none; cursor: pointer; }
.account-menu .text-button { margin-left: 4px; }
.portal-brand > .brand-lockup { color: #fff; }
.admin-dashboard { width: min(1360px, 100%); }
.admin-project-list { display: grid; padding-top: 10px; }
.admin-project-list > a { display: grid; gap: 6px; padding: 15px 0; color: var(--ink); border-bottom: 1px solid #e7eaea; }
.admin-project-list > a span { color: var(--muted); font-size: 10px; }
.admin-project-list > a.active strong { color: var(--accent-dark); }
.divider-form { margin-top: 8px; padding: 24px 28px 28px; border-top: 1px solid #e2e5e4; }
.divider-form h3 { margin: 0 0 5px; }
.new-project .admin-form { padding: 24px 28px 29px; }
.new-project .admin-form .primary-button { margin-top: 5px; }
.account-shell { min-height: 100vh; padding: 0 clamp(22px, 5vw, 72px) 70px; background: #f2f3f1; }
.account-shell .landing-nav { color: var(--ink); border-bottom-color: var(--line); }
.account-card { width: min(620px, 100%); margin: 70px auto 0; padding: 38px; }
.account-card h1 { margin: 8px 0 12px; font-size: clamp(34px, 5vw, 54px); letter-spacing: -.045em; }
.account-card > p:not(.eyebrow) { color: var(--muted); }

@media (max-width: 900px) {
  .landing-grid { grid-template-columns: 1fr; gap: 46px; }
  .login-card { justify-self: stretch; width: 100%; }
}

@media (max-width: 760px) {
  .landing-shell { min-height: 100vh; height: auto; }
  .landing-grid { padding-block: 45px; }
  .login-card { padding: 26px 22px; }
  .account-menu { gap: 8px; }
  .account-menu .text-button { display: none; }
  .divider-form, .new-project .admin-form { padding-inline: 20px; }
  .account-card { margin-top: 35px; padding: 25px 20px; }
}
