:root {
  --navy: #103b4b;
  --navy-deep: #0d2f3e;
  --teal: #0e7c78;
  --teal-dark: #09635f;
  --gold: #d5b46d;
  --cream: #fbfcf8;
  --mint: #edf7f5;
  --ink: #173b4d;
  --slate: #687b84;
  --muted: #8a989d;
  --line: #dfeae7;
  --shadow: 0 26px 70px rgba(16, 59, 75, .11);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Manrope, ui-sans-serif, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.app-body { min-height: 100vh; background: linear-gradient(135deg, #fbfcf8 0%, #f4faf8 58%, #f9f8f0 100%); }
.app-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; overflow-y: auto; padding: 29px 18px 20px; background: rgba(255,255,255,.72); border-right: 1px solid rgba(212, 228, 224, .86); }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); }
.brand-lockup strong { display: block; font-size: 13px; line-height: 1.1; letter-spacing: -.02em; }
.brand-lockup small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.brand-mark { display: grid; flex: 0 0 auto; place-items: center; width: 35px; height: 35px; color: #fffdf6; background: linear-gradient(145deg, var(--teal), var(--navy)); border: 1px solid rgba(213,180,109,.6); border-radius: 12px; font-family: Newsreader, Georgia, serif; font-size: 15px; letter-spacing: -.08em; box-shadow: 0 7px 16px rgba(14,124,120,.14); }
.sidebar-caption { margin: 42px 12px 12px; color: #92a2a1; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.side-nav { display: grid; gap: 4px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; color: #61747d; font-size: 12px; font-weight: 700; transition: .2s ease; }
.side-link:hover { color: var(--teal); background: #f1f8f6; }
.side-link.is-active { color: var(--navy); background: #e8f4f1; box-shadow: inset 3px 0 var(--teal); }
.side-icon { display: grid; place-items: center; width: 18px; color: var(--teal); font-size: 17px; font-weight: 500; }
.sidebar-bottom { margin-top: auto; }
.data-note { padding: 15px 13px; background: linear-gradient(155deg, #e9f8f5, #f6fbf5); border: 1px solid #dbeee9; border-radius: 17px; color: var(--slate); font-size: 10px; }
.data-note strong { display: inline-block; margin-left: 6px; color: var(--teal-dark); font-size: 10px; }
.data-note p { margin: 8px 0 0; line-height: 1.55; }
.status-dot { display: inline-block; width: 7px; height: 7px; vertical-align: 1px; background: #58aa8e; border-radius: 50%; box-shadow: 0 0 0 4px rgba(88,170,142,.12); }
.backup-link { display: block; margin: 14px 10px 0; color: var(--teal); font-size: 10px; font-weight: 800; }
.backup-link span { margin-left: 3px; }
.main-area { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: 0 42px; border-bottom: 1px solid rgba(219, 232, 228, .72); background: rgba(251,252,248,.7); }
.crumb span, .eyebrow { display: block; color: #86a09d; font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.crumb strong { display: block; margin-top: 5px; font-family: Newsreader, Georgia, serif; font-size: 16px; font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.icon-button, .mobile-menu { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; color: #6e8588; background: #fff; border: 1px solid var(--line); border-radius: 50%; }
.user-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; color: #5d7078; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 800; }
.user-icon { color: var(--teal); font-size: 14px; }
.logout-link { display: grid; place-items: center; width: 30px; color: #8b9a9b; font-size: 18px; }
.ai-pill { padding: 8px 12px; color: var(--teal-dark); background: #e8f6f2; border: 1px solid #cceae3; border-radius: 999px; font-size: 11px; font-weight: 800; }
.ai-pill span { margin-right: 4px; color: var(--gold); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 17px; border: 0; border-radius: 11px; font-size: 11px; font-weight: 800; transition: .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--teal); box-shadow: 0 10px 22px rgba(14,124,120,.16); }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { color: var(--teal-dark); background: #edf8f6; border: 1px solid #cfe9e4; }
.button-quiet { color: #688083; background: transparent; border: 1px solid var(--line); }
.button-light { color: var(--navy); background: #fffdf6; }
.button-small { min-height: 34px; padding: 0 13px; }
.button-wide { width: 100%; min-height: 48px; }
.content-wrap { width: min(1160px, 100%); margin: 0 auto; padding: 38px 42px 70px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.page-heading h1 { margin: 8px 0 6px; color: var(--navy-deep); font-family: Newsreader, Georgia, serif; font-size: clamp(34px, 4vw, 47px); font-weight: 500; letter-spacing: -.045em; line-height: .98; }
.page-heading p { max-width: 640px; margin: 0; }
.compact-heading { margin-bottom: 21px; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.muted { color: var(--slate); font-size: 12px; line-height: 1.7; }
.tiny-note { color: #859596; font-size: 10px; line-height: 1.6; }
.soft-badge, .secure-badge, .case-status, .progress-pill, .autosave { display: inline-flex; align-items: center; padding: 7px 10px; color: var(--teal-dark); background: var(--mint); border: 1px solid #d6eee9; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.secure-badge { color: #8c6e2f; background: #fbf6e8; border-color: #f0e3bd; }
.case-status { color: #7c743d; background: #faf6e6; border-color: #eee4bf; }
.autosave { color: #6c8a83; background: #f1f7f5; }
.panel { padding: 26px; background: rgba(255,255,255,.85); border: 1px solid rgba(218,231,227,.94); border-radius: var(--radius); box-shadow: 0 11px 32px rgba(36,83,86,.035); }
.panel-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.panel-title h2, .report-card h2, .install-card h1 { margin: 7px 0 0; color: var(--navy); font-family: Newsreader, Georgia, serif; font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
.hero-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr); align-items: center; min-height: 268px; margin-bottom: 18px; padding: 38px 42px; overflow: hidden; color: white; background: linear-gradient(120deg, #123f50 0%, #164b56 56%, #0e7773 100%); border-radius: 25px; box-shadow: var(--shadow); }
.hero-panel .tag, .tag { display: inline-block; padding: 7px 10px; color: #c8e4dd; background: rgba(255,255,255,.1); border: 1px solid rgba(195,232,224,.23); border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.hero-panel h2 { max-width: 560px; margin: 17px 0 11px; color: #fffdf6; font-family: DM Serif Display, Georgia, serif; font-size: clamp(34px, 4.5vw, 56px); font-weight: 400; letter-spacing: -.045em; line-height: .96; }
.hero-panel p { max-width: 560px; margin: 0 0 19px; color: #bbd1cf; font-size: 12px; line-height: 1.7; }
.text-link, .small-link { color: var(--gold); font-size: 11px; font-weight: 800; }
.text-link span { margin-left: 8px; }
.hero-illustration { position: relative; height: 180px; margin-left: auto; width: min(320px, 100%); opacity: .9; }
.hero-illustration::before { position: absolute; inset: 28px 26px 18px; content: ''; border: 1px solid rgba(218,238,229,.34); border-radius: 46% 54% 43% 57%; transform: rotate(-4deg); }
.hero-illustration .line-a, .hero-illustration .line-b, .hero-illustration .line-c { position: absolute; display: block; height: 1px; background: rgba(224,239,232,.65); transform-origin: left; }
.hero-illustration .line-a { top: 54px; left: 38px; width: 178px; transform: rotate(20deg); }
.hero-illustration .line-b { top: 105px; left: 86px; width: 150px; transform: rotate(-22deg); }
.hero-illustration .line-c { top: 95px; left: 118px; width: 100px; transform: rotate(90deg); }
.hero-illustration i, .hero-illustration b { position: absolute; display: block; width: 15px; height: 15px; background: var(--gold); border: 3px solid #6ea9a0; border-radius: 50%; }
.hero-illustration i { top: 88px; left: 107px; }
.hero-illustration b { top: 62px; left: 214px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 18px 0; }
.metric-card { min-height: 116px; padding: 19px 20px; background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 18px; }
.metric-card.metric-highlight { color: white; background: linear-gradient(145deg, #0f7c77, #12635f); border-color: transparent; }
.metric-label { display: block; color: #819292; font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.metric-highlight .metric-label { color: #b9d8d2; }
.metric-card strong { display: block; margin: 10px 0 4px; color: var(--navy); font-family: Newsreader, Georgia, serif; font-size: 27px; font-weight: 500; letter-spacing: -.03em; }
.metric-highlight strong { color: #fffdf6; }
.metric-card small { color: #8b9b9b; font-size: 10px; }
.metric-highlight small { color: #b7d3cf; }
.dashboard-grid, .tools-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-top: 18px; }
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.workflow > div { padding: 16px; background: #f5faf8; border: 1px solid #e3efec; border-radius: 15px; }
.workflow span { color: var(--gold); font-family: Newsreader, Georgia, serif; font-size: 20px; }
.workflow h3 { margin: 13px 0 7px; font-size: 12px; }
.workflow p { margin: 0; color: var(--slate); font-size: 10px; line-height: 1.55; }
.recent-panel { min-width: 0; }
.recent-row { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid #edf2ef; }
.recent-row:first-of-type { border-top: 0; }
.recent-row > span:nth-child(2) { min-width: 0; flex: 1; }
.recent-row strong, .recent-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-row strong { font-size: 11px; }
.recent-row small { margin-top: 4px; color: var(--slate); font-size: 10px; }
.recent-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; color: var(--teal); background: #e8f5f2; border-radius: 10px; font-family: Newsreader, Georgia, serif; font-size: 16px; }
.row-arrow { color: var(--teal); font-size: 18px; }
.mini-empty { padding: 16px 0 3px; color: var(--slate); text-align: center; }
.mini-empty > span { display: block; color: var(--gold); font-size: 24px; }
.mini-empty p { margin: 9px 0; font-size: 11px; }
.mini-empty a { color: var(--teal); font-size: 10px; font-weight: 800; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.search-form { display: flex; min-width: min(310px, 100%); border: 1px solid var(--line); border-radius: 11px; background: white; overflow: hidden; }
.search-form input { min-width: 0; flex: 1; height: 38px; padding: 0 12px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 11px; }
.search-form button { width: 42px; color: var(--teal); background: transparent; border: 0; font-size: 18px; }
.empty-state { padding: 48px 20px; color: var(--slate); text-align: center; background: linear-gradient(150deg,#f5faf9,#fbfcf8); border: 1px solid #edf3ef; border-radius: 19px; }
.empty-state h3 { margin: 12px 0 7px; color: var(--navy); font-family: Newsreader, Georgia, serif; font-size: 24px; font-weight: 500; }
.empty-state p { max-width: 450px; margin: 0 auto 18px; font-size: 11px; line-height: 1.65; }
.empty-icon { color: var(--gold); font-size: 27px; }
.compact-empty { padding: 28px 20px; }
.process-table { overflow-x: auto; }
.table-head, .table-row { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr .72fr 24px; min-width: 680px; gap: 18px; align-items: center; }
.table-head { padding: 0 17px 10px; color: #91a2a2; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.table-row { padding: 15px 17px; border-top: 1px solid #edf2ef; font-size: 11px; }
.table-row:hover { background: #f4faf8; }
.table-row strong, .table-row small { display: block; }
.table-row small { margin-top: 5px; color: #849293; font-size: 9px; }
.stepper { display: flex; align-items: center; max-width: 530px; margin: 0 0 18px 3px; color: #93a3a3; font-size: 10px; font-weight: 800; }
.step { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.step b { display: grid; place-items: center; width: 21px; height: 21px; background: #edf3f0; border-radius: 50%; font-size: 9px; }
.step.is-current { color: var(--teal); }
.step.is-current b { color: white; background: var(--teal); }
.stepper i { flex: 1; height: 1px; margin: 0 11px; background: #dce8e4; }
.process-form { padding: 31px; }
.form-grid { display: grid; gap: 17px; }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-grid label, .stack-form label { display: grid; gap: 7px; color: #5f7379; font-size: 10px; font-weight: 800; }
.full-span { grid-column: 1 / -1; }
input, textarea, select { width: 100%; color: var(--ink); background: #fbfdfb; border: 1px solid #d8e6e2; border-radius: 10px; outline: 0; }
input, select { height: 42px; padding: 0 12px; font-size: 12px; }
textarea { padding: 12px; resize: vertical; font-size: 12px; line-height: 1.6; }
input:focus, textarea:focus, select:focus { border-color: #75bab0; box-shadow: 0 0 0 3px rgba(14,124,120,.1); }
label small { color: #92a1a0; font-size: 9px; font-weight: 500; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 21px; margin-top: 23px; border-top: 1px solid #eaf1ee; }
.back-link { display: block; margin-bottom: 17px; color: var(--teal); font-size: 10px; font-weight: 800; }
.detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; }
.detail-grid .notes-panel { grid-column: 1 / -1; }
.data-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 17px; margin: 0; }
.data-list div { padding: 13px 0; border-top: 1px solid #edf2ef; }
.data-list dt { color: #92a0a0; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.data-list dd { margin: 5px 0 0; color: var(--ink); font-size: 11px; font-weight: 700; }
.observation-box { padding: 14px; margin-top: 18px; background: #f6faf7; border-radius: 13px; }
.observation-box p { margin: 8px 0 0; color: var(--slate); font-size: 11px; line-height: 1.6; }
.checklist { display: grid; gap: 7px; }
.check-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 0; color: #536c71; border-bottom: 1px solid #edf2ef; font-size: 11px; }
.check-row:last-child { border-bottom: 0; }
.check-box { display: grid; flex: 0 0 auto; place-items: center; width: 20px; height: 20px; padding: 0; color: white; background: white; border: 1px solid #c8dad5; border-radius: 6px; font-size: 12px; }
.check-box.is-checked { background: var(--teal); border-color: var(--teal); }
.notes-panel textarea { min-height: 140px; }
.calculation-list { display: grid; }
.calculation-row { display: flex; align-items: center; gap: 13px; padding: 15px 0; border-top: 1px solid #edf2ef; }
.calculation-row > span:nth-child(2) { flex: 1; }
.calculation-row strong, .calculation-row small { display: block; }
.calculation-row small { margin-top: 4px; color: var(--slate); font-size: 10px; font-weight: 500; }
.calc-symbol { display: grid; place-items: center; width: 34px; height: 34px; color: var(--teal); background: #e9f6f2; border-radius: 11px; font-family: Newsreader, serif; font-size: 19px; }
.legal-disclaimer { padding: 13px 15px; margin-top: 19px; color: #83774b; background: #fbf7e9; border: 1px solid #efe5c3; border-radius: 11px; font-size: 10px; line-height: 1.6; }
.inline-select { min-width: 190px; }
.tool-tip { padding: 15px; margin-top: 24px; background: #f6faf6; border-radius: 13px; }
.tool-tip strong { color: var(--teal-dark); font-size: 10px; }
.tool-tip p { margin: 6px 0 0; color: var(--slate); font-size: 10px; line-height: 1.6; }
.report-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.report-card { min-height: 225px; padding: 22px; background: rgba(255,255,255,.84); border: 1px solid var(--line); border-radius: 18px; }
.report-card-dark { color: white; background: linear-gradient(145deg,#123f50,#0e726e); border-color: transparent; }
.report-icon { display: grid; place-items: center; width: 35px; height: 35px; color: var(--teal); background: #eaf6f3; border-radius: 11px; font-size: 17px; }
.report-card-dark .report-icon { color: var(--gold); background: rgba(255,255,255,.11); }
.report-card h2 { margin-top: 22px; }
.report-card-dark h2 { color: white; }
.report-card p { min-height: 52px; color: var(--slate); font-size: 11px; line-height: 1.65; }
.report-card-dark p { color: #bed5d1; }
.import-panel { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 18px; }
.import-panel h2 { margin: 7px 0 4px; font-family: Newsreader, Georgia, serif; font-size: 24px; font-weight: 500; }
.import-form { display: flex; align-items: center; gap: 10px; }
.import-form input[type=file] { max-width: 230px; height: 42px; padding: 11px; font-size: 10px; }
.settings-panel { max-width: 850px; }
.security-icon { display: grid; place-items: center; width: 39px; height: 39px; color: var(--teal); background: #eaf7f3; border-radius: 12px; }
.security-callout { padding: 13px 15px; margin-bottom: 22px; color: #796c3f; background: #fbf7e9; border: 1px solid #eee4c1; border-radius: 11px; font-size: 10px; line-height: 1.6; }
.settings-form .button { margin-top: 20px; }
.info-panel { display: flex; align-items: flex-start; gap: 15px; max-width: 850px; margin-top: 18px; }
.info-icon { display: grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; color: white; background: var(--teal); border-radius: 50%; font-family: Georgia, serif; font-weight: 700; }
.info-panel h2 { margin: 0 0 5px; font-family: Newsreader, serif; font-size: 21px; font-weight: 500; }
.info-panel p { margin: 0; color: var(--slate); font-size: 11px; line-height: 1.7; }
.alert { padding: 12px 15px; margin-bottom: 17px; border-radius: 11px; font-size: 11px; line-height: 1.5; }
.alert-success { color: #276e59; background: #e9f7ef; border: 1px solid #ccebdc; }
.alert-error { color: #884f43; background: #fff0ec; border: 1px solid #f0d6ce; }
.ai-drawer { position: fixed; z-index: 20; top: 0; right: 0; display: flex; flex-direction: column; width: min(370px, 94vw); height: 100vh; padding: 25px 22px; background: rgba(247,253,249,.98); border-left: 1px solid #c9e6df; box-shadow: -22px 0 60px rgba(16,59,75,.14); transform: translateX(105%); transition: transform .25s ease; }
.ai-drawer.is-open { transform: translateX(0); }
.ai-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid #dfeee9; }
.ai-head h2 { margin: 4px 0 1px; font-family: Newsreader, serif; font-size: 28px; font-weight: 500; }
.ai-head small { color: #7d9894; font-size: 10px; }
.ai-warning { padding: 12px; margin: 18px 0 13px; color: #72653e; background: #fff9e9; border: 1px solid #f1e4ba; border-radius: 12px; font-size: 10px; line-height: 1.55; }
.ai-message { max-width: 91%; padding: 13px; color: #536e70; background: white; border: 1px solid #e0efeb; border-radius: 13px 13px 13px 4px; font-size: 11px; line-height: 1.65; }
.ai-answer { max-height: 45vh; overflow: auto; margin-top: 10px; }
.ai-answer:not(:empty) { padding: 13px; color: #415c63; background: #e7f5f0; border-radius: 13px 13px 4px 13px; font-size: 11px; line-height: 1.65; white-space: pre-wrap; }
.ai-form { display: flex; align-items: flex-end; gap: 8px; padding-top: 15px; margin-top: auto; }
.ai-form textarea { min-height: 55px; max-height: 120px; padding: 12px; resize: vertical; }
.send-button { display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; color: white; background: var(--teal); border: 0; border-radius: 11px; font-size: 18px; }
.drawer-backdrop { position: fixed; z-index: 19; inset: 0; background: rgba(13,47,62,.22); opacity: 0; pointer-events: none; transition: .25s ease; }
.drawer-backdrop.is-visible { opacity: 1; pointer-events: auto; }
.mobile-menu { display: none; }

.login-body { display: grid; min-height: 100vh; place-items: center; padding: 35px; background: radial-gradient(circle at 17% 14%, #dff2ed 0, transparent 27%), linear-gradient(135deg,#f7fcf9,#fbfaf3); }
.login-card { display: grid; grid-template-columns: 1fr 1fr; width: min(930px, 100%); min-height: 540px; overflow: hidden; background: white; border-radius: 25px; box-shadow: 0 27px 82px rgba(16,59,75,.14); }
.login-intro { position: relative; display: flex; flex-direction: column; padding: 37px 40px; overflow: hidden; color: white; background: linear-gradient(150deg, #123f50, #103a4b 68%, #116e6a); }
.brand-lockup-light { color: white; }
.brand-lockup-light small { color: #99bbb6; }
.intro-copy { position: relative; z-index: 1; margin: auto 0; }
.intro-copy .tag { margin-bottom: 20px; }
.intro-copy h1 { max-width: 410px; margin: 0 0 17px; color: #fffdf6; font-family: DM Serif Display, Georgia, serif; font-size: clamp(36px, 4.4vw, 53px); font-weight: 400; letter-spacing: -.045em; line-height: .95; }
.intro-copy p { max-width: 370px; margin: 0; color: #b7d0ce; font-size: 12px; line-height: 1.7; }
.intro-lines { position: absolute; right: 13px; bottom: 27px; width: 275px; height: 150px; opacity: .65; }
.intro-lines::before, .intro-lines::after { position: absolute; content: ''; bottom: 14px; width: 215px; height: 1px; background: rgba(197,225,218,.55); transform: rotate(-12deg); }
.intro-lines::before { right: 22px; }
.intro-lines::after { right: 4px; transform: rotate(11deg); }
.intro-lines span { position: absolute; right: 93px; bottom: 39px; width: 1px; height: 96px; background: rgba(197,225,218,.55); transform: rotate(12deg); }
.intro-lines i, .intro-lines b { position: absolute; z-index: 2; display: block; width: 11px; height: 11px; background: var(--gold); border-radius: 50%; }
.intro-lines i { right: 63px; bottom: 75px; }
.intro-lines b { right: 165px; bottom: 50px; background: var(--teal); }
.login-form-panel { display: flex; flex-direction: column; justify-content: center; padding: 55px 48px; }
.login-form-panel h2 { margin: 8px 0 7px; color: var(--navy); font-family: Newsreader, Georgia, serif; font-size: 34px; font-weight: 500; letter-spacing: -.04em; }
.login-form-panel > .muted { margin: 0 0 21px; }
.stack-form { display: grid; gap: 16px; }
.login-form { margin-top: 6px; }
.login-form .button { margin-top: 5px; }
.install-body { display: grid; min-height: 100vh; place-items: center; padding: 30px; background: linear-gradient(135deg,#eaf7f3,#fbfaf3); }
.install-card { width: min(510px, 100%); padding: 38px; background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.install-card h1 { margin-bottom: 10px; font-size: 37px; }
.brand-lockup-dark { margin-bottom: 42px; }
.install-card .stack-form { margin-top: 22px; }
.install-card .tiny-note { margin: 20px 0 0; }
.print-body { background: white; }
.print-report { width: min(900px, calc(100% - 50px)); margin: 0 auto; padding: 40px 0; }
.print-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 58px; }
.print-report h1 { margin: 9px 0; font-family: Newsreader, serif; font-size: 44px; font-weight: 500; }
.print-case { padding: 20px 0; margin-top: 25px; border-top: 1px solid #dce8e4; }
.print-case-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.print-case-head h2 { margin: 0; font-family: Newsreader, serif; font-size: 25px; font-weight: 500; }
.print-case-head span { color: var(--teal); font-size: 12px; font-weight: 800; }
.print-data { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 18px; }
.print-data p { margin: 0; color: #445e65; font-size: 11px; }
.print-data strong { display: block; margin-bottom: 4px; color: #91a09d; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.print-estimates { display: flex; gap: 22px; margin-top: 18px; color: #61767a; font-size: 11px; }
.print-estimates strong { color: var(--navy); }

@media (max-width: 920px) {
  .app-layout { grid-template-columns: 190px minmax(0,1fr); }
  .topbar { padding: 0 25px; }
  .content-wrap { padding: 30px 25px 55px; }
  .hero-panel { padding: 30px; }
  .hero-illustration { transform: scale(.85); transform-origin: right center; }
  .login-card { grid-template-columns: .9fr 1.1fr; }
  .login-form-panel { padding: 45px 35px; }
}
@media (max-width: 720px) {
  .app-layout { display: block; }
  .sidebar { position: fixed; z-index: 15; left: 0; top: 0; width: 238px; transform: translateX(-105%); transition: transform .24s ease; box-shadow: 17px 0 46px rgba(16,59,75,.15); }
  .sidebar.is-open { transform: translateX(0); }
  .mobile-menu { display: grid; margin-right: 12px; border-radius: 9px; }
  .topbar { justify-content: flex-start; min-height: 72px; padding: 0 17px; }
  .crumb { flex: 1; }
  .top-actions { gap: 4px; }
  .top-actions .icon-button, .user-chip, .logout-link { display: none; }
  .top-actions .ai-pill { padding: 8px 9px; }
  .top-actions .button-small { padding: 0 10px; font-size: 0; }
  .top-actions .button-small span { margin: 0; font-size: 17px; }
  .content-wrap { padding: 25px 17px 50px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .page-heading h1 { font-size: 39px; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .hero-panel { grid-template-columns: 1fr; padding: 27px 23px 11px; }
  .hero-panel h2 { font-size: 39px; }
  .hero-illustration { width: 100%; height: 110px; transform: scale(.75); transform-origin: center bottom; }
  .metric-grid, .report-cards { grid-template-columns: 1fr; }
  .metric-card { min-height: 92px; }
  .dashboard-grid, .tools-grid, .detail-grid { grid-template-columns: 1fr; }
  .detail-grid .notes-panel { grid-column: auto; }
  .workflow { grid-template-columns: 1fr; }
  .workflow > div { padding: 13px; }
  .toolbar { align-items: flex-start; flex-direction: column; }
  .search-form { width: 100%; }
  .form-grid-2, .data-list { grid-template-columns: 1fr; }
  .full-span { grid-column: auto; }
  .panel, .process-form { padding: 20px; }
  .form-footer, .import-panel { align-items: stretch; flex-direction: column; }
  .import-form { align-items: stretch; flex-direction: column; }
  .import-form input[type=file] { max-width: none; }
  .login-body { padding: 15px; }
  .login-card { display: block; min-height: 0; }
  .login-intro { min-height: 350px; padding: 26px 25px; }
  .login-form-panel { padding: 35px 25px; }
  .intro-copy { margin: 58px 0 0; }
  .intro-copy h1 { font-size: 39px; }
  .print-report { width: min(100% - 30px, 900px); padding: 25px 0; }
  .print-top { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 35px; }
  .print-report h1 { font-size: 34px; }
  .print-data { grid-template-columns: repeat(2,1fr); }
  .print-estimates { flex-direction: column; gap: 8px; }
}
@media print {
  .no-print { display: none !important; }
  .print-report { width: 100%; padding: 0; }
  .print-body { font-size: 11pt; }
}

.workspace-grid { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); gap: 18px; }
.entity-list { display: grid; }
.entity-row { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-top: 1px solid #edf2ef; }
.entity-row:first-child { border-top: 0; }
.entity-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; color: var(--teal); background: #e9f6f3; border-radius: 10px; font-family: Newsreader, Georgia, serif; font-size: 16px; }
.entity-main { min-width: 0; flex: 1; }
.entity-main strong, .entity-main small { display: block; }
.entity-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.entity-main small { margin-top: 4px; color: var(--slate); font-size: 10px; line-height: 1.45; }
.entity-meta { display: flex; align-items: center; gap: 10px; color: #839495; font-size: 10px; white-space: nowrap; }
.agenda-summary { display: flex; gap: 9px; }
.agenda-summary span { padding: 9px 11px; color: #708485; background: white; border: 1px solid var(--line); border-radius: 11px; font-size: 10px; }
.agenda-summary strong { margin-right: 3px; color: var(--teal); font-size: 14px; }
.deadline-list { display: grid; }
.deadline-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid #edf2ef; }
.deadline-row.is-done { opacity: .54; }
.deadline-date { min-width: 60px; color: var(--teal-dark); font-size: 10px; }
.deadline-date strong, .deadline-date small { display: block; }
.deadline-date small { margin-top: 4px; color: #9a9080; font-size: 9px; }
.mini-modules { grid-template-columns: repeat(2, 1fr); }
.module-grid { display: grid; gap: 9px; }
.module-grid > div { padding: 14px; background: #f5faf8; border: 1px solid #e5f0ed; border-radius: 13px; }
.module-grid strong, .module-grid small { display: block; }
.module-grid strong { color: var(--navy); font-size: 11px; }
.module-grid small { margin-top: 6px; color: var(--slate); font-size: 9px; line-height: 1.55; }
.template-list, .research-list { margin-top: 22px; }
.knowledge-card { padding: 0 0 10px; border-top: 1px solid #edf2ef; }
.knowledge-card:first-child { border-top: 0; }
.knowledge-card p, .research-card p { margin: 4px 0 9px 43px; color: var(--slate); font-size: 10px; line-height: 1.6; }
.research-list { display: grid; gap: 10px; }
.research-card { padding: 14px; background: #f8fbf9; border: 1px solid #e6f0ed; border-radius: 13px; }
.research-card-top { display: flex; align-items: center; justify-content: space-between; }
.research-card-top small { color: #879696; font-size: 9px; }
.research-card h3 { margin: 11px 0 0; color: var(--navy); font-size: 11px; line-height: 1.45; }
.research-card p { margin-left: 0; }
.metric-positive strong, .finance-amount.is-income { color: #3b8d70; }
.metric-negative strong, .finance-amount.is-expense { color: #a16b5f; }
.finance-list { display: grid; }
.finance-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid #edf2ef; }
.finance-sign { display: grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-weight: 800; }
.finance-sign.is-income { color: #318464; background: #e6f5ec; }
.finance-sign.is-expense { color: #9e6258; background: #fff0ec; }
.finance-amount { font-size: 11px; white-space: nowrap; }

@media (max-width: 720px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .mini-modules { grid-template-columns: 1fr; }
  .agenda-summary { width: 100%; }
  .agenda-summary span { flex: 1; }
  .entity-meta { display: none; }
}

.side-link-owner { margin-bottom: 7px; color: #f6e3b4; background: linear-gradient(135deg, rgba(184, 137, 67, .20), rgba(38, 190, 162, .12)); border: 1px solid rgba(213, 170, 91, .24); }
.side-link-owner .side-icon { color: #e6c27a; }
.side-link-owner.is-active { color: #fff; background: linear-gradient(135deg, rgba(184, 137, 67, .38), rgba(38, 190, 162, .19)); border-color: rgba(240, 204, 132, .42); }
.owner-heading h1 { margin-bottom: 7px; }
.owner-hero { display: flex; align-items: center; justify-content: space-between; min-height: 145px; padding: 25px 28px; overflow: hidden; position: relative; color: #f4f7f5; background: linear-gradient(118deg, #0b3340 0%, #0e5961 48%, #177b74 100%); border-radius: 18px; box-shadow: 0 18px 40px rgba(13, 73, 78, .16); }
.owner-hero:after { content: ''; position: absolute; width: 290px; height: 290px; right: 12%; top: -185px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.035), 0 0 0 48px rgba(255,255,255,.025); }
.owner-hero h2 { max-width: 440px; margin: 10px 0 7px; color: #fff; font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(25px, 3.3vw, 40px); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; }
.owner-hero p { max-width: 525px; margin: 0; color: rgba(243, 250, 247, .76); font-size: 11px; line-height: 1.6; }
.owner-hero .tag { color: #f4d18b; background: rgba(255,255,255,.09); }
.owner-hero-orbit { width: 118px; height: 118px; margin-right: 8%; display: grid; place-items: center; position: relative; z-index: 1; border: 1px solid rgba(246, 219, 157, .60); border-radius: 50%; box-shadow: 0 0 0 13px rgba(245, 213, 146, .08), 0 0 0 26px rgba(245, 213, 146, .04); }
.owner-hero-orbit:before, .owner-hero-orbit:after { content: ''; position: absolute; border: 1px solid rgba(246, 219, 157, .45); border-radius: 50%; transform: rotate(28deg); }
.owner-hero-orbit:before { width: 164px; height: 38px; }
.owner-hero-orbit:after { width: 38px; height: 164px; }
.owner-hero-orbit span { position: absolute; width: 9px; height: 9px; right: 3px; top: 16px; background: #f3d28b; border-radius: 50%; box-shadow: 0 0 16px #f3d28b; }
.owner-hero-orbit b { color: #f4d18b; font-family: 'DM Serif Display', Georgia, serif; font-size: 32px; font-weight: 400; }
.owner-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.owner-kpi { display: flex; min-height: 142px; flex-direction: column; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 7px 18px rgba(12, 45, 50, .03); }
.owner-kpi > span { color: #7b8d8d; font-size: 10px; }
.owner-kpi strong { margin: 12px 0 4px; color: var(--navy); font-family: 'DM Serif Display', Georgia, serif; font-size: 29px; font-weight: 400; }
.owner-kpi small { min-height: 28px; color: #899a9a; font-size: 9px; line-height: 1.45; }
.owner-kpi a { margin-top: auto; color: var(--teal); font-size: 9px; font-weight: 800; text-decoration: none; }
.owner-kpi-ai.is-ready { background: linear-gradient(145deg, #f5fcf8, #fff); border-color: #bfe4d6; }
.owner-kpi-ai.is-ready strong { color: #2a886e; }
.owner-kpi-ai.is-pending { background: linear-gradient(145deg, #fffaf1, #fff); border-color: #edd8a8; }
.owner-kpi-ai.is-pending strong { color: #b17c32; font-size: 23px; }
.owner-layout { display: grid; grid-template-columns: minmax(0, 1.34fr) minmax(260px, .66fr); gap: 16px; }
.owner-module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.owner-module { display: flex; align-items: center; gap: 10px; min-height: 59px; padding: 10px 12px; color: var(--navy); background: #f7fbf9; border: 1px solid #e6f0ed; border-radius: 12px; text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.owner-module:hover { transform: translateY(-2px); background: #fff; border-color: #b9dcd3; }
.owner-module-icon { display: grid; flex: 0 0 auto; place-items: center; width: 31px; height: 31px; color: var(--teal); background: #e9f7f3; border-radius: 10px; font-family: Georgia, serif; font-size: 15px; }
.owner-module.navy .owner-module-icon { color: #536c79; background: #edf2f7; }
.owner-module.gold .owner-module-icon { color: #ad7b30; background: #fff5dc; }
.owner-module.violet .owner-module-icon { color: #7d6898; background: #f2edf8; }
.owner-module strong, .owner-module small { display: block; }
.owner-module strong { font-size: 10px; }
.owner-module small { margin-top: 4px; color: #859697; font-size: 9px; }
.owner-module .row-arrow { margin-left: auto; color: #a9bcbc; }
.owner-actions-panel { background: linear-gradient(160deg, #fbfdfc, #f1f8f5); }
.owner-action-list { display: grid; gap: 4px; }
.owner-action-list a { display: flex; align-items: center; gap: 10px; padding: 10px; color: var(--navy); border-radius: 10px; text-decoration: none; }
.owner-action-list a:hover { background: #fff; }
.owner-action-list a > span { display: grid; flex: 0 0 auto; place-items: center; width: 27px; height: 27px; color: var(--teal); background: #e5f5f0; border-radius: 8px; font-size: 13px; }
.owner-action-list strong, .owner-action-list small { display: block; }
.owner-action-list strong { font-size: 10px; }
.owner-action-list small { margin-top: 3px; color: #839394; font-size: 9px; }
.owner-governance { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 16px; padding: 18px 20px; color: #eaf8f4; background: #123e48; border-radius: 15px; }
.owner-governance h2 { margin: 7px 0 5px; color: #fff; font-family: 'DM Serif Display', Georgia, serif; font-size: 22px; font-weight: 400; }
.owner-governance p { max-width: 500px; margin: 0; color: rgba(235,247,244,.72); font-size: 9px; line-height: 1.6; }
.owner-governance .eyebrow { color: #f1d291; }
.governance-checks { display: grid; min-width: 205px; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.governance-check { padding: 8px 9px; color: #b9d9d3; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11); border-radius: 8px; font-size: 9px; white-space: nowrap; }
.governance-check b { display: inline-grid; width: 16px; height: 16px; margin-right: 3px; place-items: center; color: #163f47; background: #9ee2c9; border-radius: 50%; font-size: 9px; }
.governance-check.is-pending { color: #f0d6a3; }
.governance-check.is-pending b { color: #fff; background: #b9843c; }
@media (max-width: 980px) { .owner-stats { grid-template-columns: repeat(2, 1fr); } .owner-layout { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .owner-hero { align-items: flex-start; } .owner-hero-orbit { display: none; } .owner-stats { grid-template-columns: 1fr; } .owner-module-grid { grid-template-columns: 1fr; } .owner-governance { align-items: flex-start; flex-direction: column; } .governance-checks { width: 100%; } }

/* Public experience and configurable branding */
.public-body { margin: 0; color: #12363d; background: #f6f8f5; font-family: 'Manrope', system-ui, sans-serif; }
.public-nav { width: min(1180px, calc(100% - 44px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.public-brand { display: inline-flex; align-items: center; gap: 10px; color: #12363d; text-decoration: none; }
.public-brand strong, .public-brand small { display: block; }
.public-brand strong { font-size: 12px; letter-spacing: -.02em; }
.public-brand small { margin-top: 3px; color: #7c9290; font-size: 8px; text-transform: uppercase; letter-spacing: .16em; }
.public-brand .brand-mark { width: 38px; height: 38px; font-size: 13px; }
.public-brand .brand-mark.has-logo { overflow: hidden; padding: 0; background: #fff; border: 1px solid #dcebe5; }
.public-brand .brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.public-nav nav { display: flex; align-items: center; gap: 24px; }
.public-nav nav a, .public-login, .public-footer a { color: #4e6c6c; font-size: 10px; font-weight: 700; text-decoration: none; }
.public-nav nav a:hover, .public-login:hover, .public-footer a:hover { color: #11877b; }
.public-login { padding: 10px 14px; color: #fff; background: #123f49; border-radius: 999px; }
.public-hero { width: min(1180px, calc(100% - 44px)); min-height: 610px; margin: 10px auto 0; display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; color: #eff7f2; background: #0d3540; border-radius: 24px; box-shadow: 0 22px 55px rgba(14, 57, 64, .15); }
.public-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 66px 52px; position: relative; z-index: 1; }
.public-hero-copy:after { content: ''; position: absolute; width: 310px; height: 310px; left: -180px; bottom: -180px; border: 1px solid rgba(241,207,139,.22); border-radius: 50%; box-shadow: 0 0 0 28px rgba(241,207,139,.05), 0 0 0 56px rgba(241,207,139,.04); }
.public-hero-copy .tag { align-self: flex-start; color: #f0d699; background: rgba(255,255,255,.08); }
.public-hero h1 { max-width: 500px; margin: 22px 0 16px; color: #fff; font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(48px, 6vw, 84px); font-weight: 400; letter-spacing: -.055em; line-height: .96; }
.public-hero h1 em, .public-intro h2 em { color: #e5bd69; font-style: italic; }
.public-hero-copy > p { max-width: 420px; margin: 0; color: rgba(235,247,242,.74); font-size: 13px; line-height: 1.8; }
.public-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button-public-primary, .button-public-outline, .button-public-quiet { display: inline-flex; align-items: center; gap: 9px; padding: 13px 17px; border-radius: 999px; font-size: 10px; font-weight: 800; text-decoration: none; }
.button-public-primary { color: #153941; background: #f0d08a; box-shadow: 0 10px 20px rgba(1,17,22,.18); }
.button-public-primary:hover { background: #f7dda2; }
.button-public-quiet { color: #e4f0ec; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.button-public-quiet:hover { background: rgba(255,255,255,.14); }
.button-public-outline { color: #17434b; background: transparent; border: 1px solid #b3cfc5; }
.button-public-outline:hover { background: #eef7f3; }
.public-trust { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 50px; }
.public-trust span { display: inline-flex; align-items: center; gap: 7px; color: rgba(235,247,242,.61); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.public-trust b { color: #f0d08a; font-family: 'DM Serif Display', Georgia, serif; font-size: 17px; font-weight: 400; }
.public-hero-media { min-height: 500px; position: relative; background: #163b43; }
.public-hero-media:after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,53,64,.33), transparent 45%), linear-gradient(0deg, rgba(13,53,64,.18), transparent 50%); pointer-events: none; }
.public-hero-media > img:not(.public-logo-float) { width: 100%; height: 100%; min-height: 610px; object-fit: cover; object-position: center; }
.public-logo-float { position: absolute; z-index: 2; right: 28px; top: 28px; width: 76px; height: 76px; padding: 9px; object-fit: contain; background: rgba(255,255,255,.9); border-radius: 18px; box-shadow: 0 14px 26px rgba(4,30,35,.2); }
.public-intro, .public-areas, .public-cta { width: min(1000px, calc(100% - 44px)); margin: 0 auto; }
.public-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; padding: 104px 0 96px; }
.public-intro h2, .public-section-head h2, .public-cta h2 { margin: 13px 0 0; color: #123f49; font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(33px, 4vw, 55px); font-weight: 400; letter-spacing: -.04em; line-height: 1.02; }
.public-intro > div:last-child { align-self: end; }
.public-intro p, .public-section-head > p, .public-cta p { margin: 0; color: #6f8583; font-size: 12px; line-height: 1.8; }
.public-intro .text-link { display: inline-flex; gap: 8px; margin-top: 21px; color: #168979; font-size: 10px; font-weight: 800; text-decoration: none; }
.public-areas { padding: 0 0 106px; }
.public-section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.public-section-head > p { max-width: 300px; }
.public-area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.public-area-grid article { min-height: 155px; padding: 20px; background: #fff; border: 1px solid #e5eeea; border-radius: 15px; transition: transform .2s ease, box-shadow .2s ease; }
.public-area-grid article:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(15,63,70,.07); }
.public-area-grid article > span { color: #c6974d; font-family: 'DM Serif Display', Georgia, serif; font-size: 20px; }
.public-area-grid h3 { margin: 26px 0 8px; color: #183f47; font-family: 'DM Serif Display', Georgia, serif; font-size: 23px; font-weight: 400; }
.public-area-grid p { margin: 0; color: #879b99; font-size: 10px; line-height: 1.65; }
.public-process { padding: 0 22px 105px; }
.public-process-card { width: min(1000px, 100%); margin: 0 auto; padding: 52px; color: #eaf6f1; background: linear-gradient(118deg, #123f49, #176f6d); border-radius: 22px; }
.public-process-card h2 { max-width: 500px; margin: 12px 0 40px; color: #fff; font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(32px, 4vw, 48px); font-weight: 400; letter-spacing: -.04em; line-height: 1.02; }
.public-process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.public-process-steps div { padding-top: 17px; border-top: 1px solid rgba(240,208,138,.55); }
.public-process-steps b { display: block; color: #f0d08a; font-family: 'DM Serif Display', Georgia, serif; font-size: 19px; font-weight: 400; }
.public-process-steps strong { display: block; margin-top: 17px; color: #fff; font-family: 'DM Serif Display', Georgia, serif; font-size: 23px; font-weight: 400; }
.public-process-steps p { margin: 8px 0 0; color: rgba(235,247,242,.7); font-size: 10px; line-height: 1.6; }
.public-cta { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 0 0 100px; }
.public-cta h2 { max-width: 540px; }
.public-cta p { max-width: 450px; margin-top: 15px; }
.public-cta-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 9px; }
.public-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px max(22px, calc((100% - 1180px) / 2)); background: #e9f1ed; }
.public-footer p { margin: 0; color: #718a87; font-size: 9px; }
.branding-panel { margin-bottom: 16px; }
.branding-panel .small-link { display: inline-block; margin-top: 15px; }
@media (max-width: 850px) { .public-nav nav { display: none; } .public-hero { grid-template-columns: 1fr; } .public-hero-copy { min-height: 510px; padding: 52px 32px; } .public-hero-media { min-height: 360px; } .public-hero-media > img:not(.public-logo-float) { min-height: 360px; } .public-intro { grid-template-columns: 1fr; gap: 22px; padding-top: 75px; } .public-area-grid { grid-template-columns: repeat(2, 1fr); } .public-section-head, .public-cta { align-items: flex-start; flex-direction: column; } .public-cta-actions { justify-content: start; } }
@media (max-width: 560px) { .public-nav { width: calc(100% - 30px); padding: 17px 0; } .public-login { font-size: 9px; padding: 9px 11px; } .public-hero { width: calc(100% - 30px); margin-top: 0; border-radius: 18px; } .public-hero h1 { font-size: 51px; } .public-hero-copy { min-height: 480px; padding: 42px 24px; } .public-trust { gap: 9px; margin-top: 35px; } .public-intro, .public-areas, .public-cta { width: calc(100% - 30px); } .public-intro { padding: 62px 0 72px; } .public-area-grid { grid-template-columns: 1fr; } .public-process { padding: 0 15px 72px; } .public-process-card { padding: 32px 24px; border-radius: 17px; } .public-process-steps { grid-template-columns: 1fr; gap: 20px; } .public-cta { padding-bottom: 70px; } .public-footer { align-items: flex-start; flex-direction: column; padding: 25px 15px; } }
.public-body .brand-mark.has-logo, .public-body .public-brand .brand-mark.has-logo { color: transparent; }
@media print { .public-nav, .public-footer, .public-actions { display: none; } }

/* Team, audit and client portal */
.team-grid, .portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.status-label { display: inline-block; margin-right: 8px; padding: 5px 7px; border-radius: 999px; font-size: 8px; font-weight: 800; }
.status-label.is-active { color: #2c856b; background: #e3f5ed; }
.status-label.is-off { color: #9a665a; background: #fff0ec; }
.inline-form { display: inline; }
.small-link-button { padding: 0; color: var(--teal); background: none; border: 0; cursor: pointer; font: inherit; font-size: 9px; font-weight: 800; }
.small-link-button:hover { text-decoration: underline; }
.audit-list { display: grid; gap: 0; }
.audit-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #edf2ef; }
.audit-dot { width: 8px; height: 8px; flex: 0 0 auto; background: #75b9a4; border-radius: 50%; box-shadow: 0 0 0 4px #e7f5ef; }
.audit-row strong, .audit-row small { display: block; }
.audit-row strong { color: #2f555b; font-size: 10px; }
.audit-row small { margin-top: 4px; color: #829795; font-size: 9px; }
.portal-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 16px; padding: 30px; color: #eaf7f2; background: linear-gradient(118deg, #123f49, #1a7773); border-radius: 18px; }
.portal-banner h2 { margin: 10px 0 6px; color: #fff; font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(28px, 4vw, 42px); font-weight: 400; letter-spacing: -.035em; line-height: 1.02; }
.portal-banner p { max-width: 560px; margin: 0; color: rgba(235,247,242,.75); font-size: 10px; line-height: 1.65; }
.portal-banner .tag { color: #f0d08a; background: rgba(255,255,255,.08); }
.portal-grid { align-items: start; }
.portal-grid + .panel { margin-top: 0; }
@media (max-width: 780px) { .team-grid, .portal-grid { grid-template-columns: 1fr; } .portal-banner { align-items: flex-start; flex-direction: column; } }


/* MW refresh: public polish, profile controls and provider clarity */
.public-body { background: radial-gradient(circle at 8% 2%, #e3f2ed 0, transparent 28%), linear-gradient(145deg, #f7faf7 0%, #f4f7f4 56%, #fbf8ef 100%); }
.public-nav { position: sticky; top: 0; z-index: 12; padding: 17px 0; background: rgba(247,250,247,.82); border-bottom: 1px solid rgba(206,224,216,.72); backdrop-filter: blur(18px); }
.public-brand { transition: transform .2s ease; }
.public-brand:hover { transform: translateY(-1px); }
.public-nav nav { gap: 29px; }
.public-nav nav a { position: relative; padding: 8px 0; }
.public-nav nav a:after { position: absolute; right: 0; bottom: 2px; left: 0; height: 2px; content: ''; background: #e3bd70; border-radius: 9px; transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.public-nav nav a:hover:after { transform: scaleX(1); transform-origin: left; }
.public-login { padding: 11px 17px; box-shadow: 0 8px 18px rgba(18,63,73,.14); transition: transform .2s ease, background .2s ease; }
.public-login:hover { color: #fff; background: #0f6d69; transform: translateY(-1px); }
.public-hero { min-height: 650px; margin-top: 18px; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 70px rgba(14,57,64,.17); }
.public-hero-copy { padding: 76px 60px; }
.public-hero-copy .tag { padding: 8px 12px; letter-spacing: .08em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.public-hero h1 { max-width: 560px; margin-top: 25px; font-size: clamp(52px, 6.4vw, 91px); text-wrap: balance; }
.public-hero-copy > p { font-size: 14px; }
.public-actions { gap: 12px; margin-top: 34px; }
.button-public-primary, .button-public-quiet, .button-public-outline { padding: 14px 19px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button-public-primary:hover, .button-public-quiet:hover, .button-public-outline:hover { transform: translateY(-2px); }
.button-public-primary:hover { box-shadow: 0 15px 28px rgba(1,17,22,.23); }
.public-trust { gap: 18px; margin-top: 57px; }
.public-trust span { padding-right: 18px; border-right: 1px solid rgba(238,247,242,.16); }
.public-trust span:last-child { padding-right: 0; border-right: 0; }
.public-hero-media { background: linear-gradient(145deg, #143b43, #0c2f3a); }
.public-hero-media > img:not(.public-logo-float) { filter: saturate(.88) contrast(1.03); }
.public-hero-media:before { position: absolute; z-index: 1; inset: 13% auto 13% 8%; width: 1px; content: ''; background: linear-gradient(transparent, rgba(240,208,138,.68), transparent); box-shadow: 38px 0 rgba(240,208,138,.18), 76px 0 rgba(240,208,138,.11); transform: rotate(19deg); }
.public-hero-media:after { background: linear-gradient(90deg, rgba(13,53,64,.52), transparent 52%), linear-gradient(0deg, rgba(9,38,48,.35), transparent 45%), radial-gradient(circle at 73% 38%, rgba(246,211,140,.16), transparent 27%); }
.public-logo-float { right: 30px; top: 30px; width: 86px; height: 86px; border: 1px solid rgba(229,208,156,.45); }
.public-intro { padding-top: 125px; }
.public-intro h2, .public-section-head h2, .public-cta h2 { text-wrap: balance; }
.public-intro > div:last-child { padding: 24px 0 0 30px; border-left: 1px solid #d8e8e0; }
.public-area-grid { gap: 13px; }
.public-area-grid article { min-height: 175px; padding: 23px; border-radius: 17px; box-shadow: 0 8px 22px rgba(15,63,70,.025); }
.public-area-grid article:hover { box-shadow: 0 20px 36px rgba(15,63,70,.1); }
.public-area-grid h3 { margin-top: 31px; }
.public-process-card { box-shadow: 0 22px 48px rgba(13,73,78,.15); }
.public-cta { padding-top: 20px; }
.public-footer { border-top: 1px solid #dceae4; }

.user-chip-enhanced { min-width: 145px; padding: 6px 10px 6px 7px; }
.user-chip-copy { min-width: 0; text-align: left; }
.user-chip-copy strong, .user-chip-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip-copy strong { max-width: 120px; color: var(--navy); font-size: 10px; }
.user-chip-copy small { margin-top: 2px; color: #8a9b9b; font-size: 8px; font-weight: 700; }
.user-avatar { display: grid; flex: 0 0 auto; place-items: center; overflow: hidden; color: #fffdf6; background: linear-gradient(145deg, #1a8a7f, #123f50); border: 1px solid rgba(213,180,109,.54); border-radius: 50%; font-family: Newsreader, Georgia, serif; font-weight: 500; letter-spacing: -.04em; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-avatar-top { width: 30px; height: 30px; font-size: 11px; }
.logout-button { gap: 5px; color: #7b6260; border-color: #eadbd8; }
.logout-button:hover { color: #8a4f48; background: #fff5f2; border-color: #e8c7c0; }
.logout-button > span:first-child { font-size: 17px; line-height: 1; }
.profile-panel { margin-bottom: 16px; background: linear-gradient(135deg, #ffffff, #f2faf6); border-color: #cfe6dc; }
.profile-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.profile-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.profile-identity h2 { margin: 6px 0 3px; color: var(--navy); font-family: Newsreader, Georgia, serif; font-size: 30px; font-weight: 500; letter-spacing: -.04em; }
.profile-avatar { width: 70px; height: 70px; font-size: 23px; box-shadow: 0 9px 20px rgba(14,124,120,.16); }
.profile-upload-form { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid #dfede8; }
.profile-file-field { position: relative; display: flex; align-items: center; justify-content: space-between; flex: 1; min-height: 42px; padding: 7px 8px 7px 13px; color: var(--ink); background: rgba(255,255,255,.75); border: 1px dashed #acd4c8; border-radius: 11px; cursor: pointer; }
.profile-file-field input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.profile-file-copy { display: grid; gap: 3px; }
.profile-file-copy strong { color: var(--navy); font-size: 10px; }
.profile-file-copy small { color: #8b9b9b; font-size: 9px; font-weight: 500; }
.profile-file-field .button { pointer-events: none; }
.ai-settings-panel { background: linear-gradient(135deg, #f3fbf7, #fffdf8); }
.ai-provider-label { display: grid; gap: 7px; max-width: 340px; color: #5f7379; font-size: 10px; font-weight: 800; }
.ai-provider-list { display: grid; gap: 9px; }
.ai-provider-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,.74); border: 1px solid #e1eeea; border-radius: 11px; }
.ai-provider-row > span:nth-child(2) { display: grid; gap: 3px; }
.ai-provider-row strong { color: var(--navy); font-size: 10px; }
.ai-provider-row small { color: #829594; font-size: 9px; }
.ai-provider-dot { width: 8px; height: 8px; border-radius: 50%; background: #c8d4d0; }
.ai-provider-dot.is-ready { background: #42a783; box-shadow: 0 0 0 4px rgba(66,167,131,.12); }

@media (max-width: 720px) {
  .public-nav { width: calc(100% - 30px); }
  .public-hero { margin-top: 8px; }
  .public-hero-copy { min-height: 510px; padding: 47px 25px; }
  .public-hero h1 { font-size: 54px; }
  .public-intro > div:last-child { padding: 20px 0 0; border-top: 1px solid #d8e8e0; border-left: 0; }
  .top-actions .user-chip-enhanced { display: inline-flex; min-width: 0; padding: 5px; }
  .top-actions .user-chip-copy { display: none; }
  .logout-button { width: 35px; min-height: 34px; padding: 0; border-radius: 10px; }
  .logout-label { display: none; }
  .profile-panel-head { align-items: flex-start; flex-direction: column; }
  .profile-upload-form { align-items: stretch; flex-direction: column; }
}
