:root {
  --ink: #102f2b;
  --ink-2: #244b45;
  --muted: #657d78;
  --line: #d8e4e1;
  --paper: #f4f7f6;
  --white: #ffffff;
  --green: #00a676;
  --green-dark: #007e5a;
  --green-pale: #dff5ed;
  --blue: #4bb4e6;
  --amber: #f4b740;
  --red: #df5d51;
  --shadow: 0 14px 40px rgba(16, 47, 43, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
main { min-height: calc(100vh - 150px); }

.topbar { height: 76px; padding: 0 clamp(22px, 4vw, 68px); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); }
.demo-mode .topbar { top: 38px; }
.brand { display: inline-flex; align-items: center; gap: 12px; letter-spacing: .08em; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-size: 17px; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .28em; }
.brand-mark { width: 35px; height: 35px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; transform: rotate(-12deg); }
.brand-mark i { display: block; border-radius: 2px; background: var(--green); }
.brand-mark i:nth-child(1) { height: 55%; align-self: end; opacity: .45; }
.brand-mark i:nth-child(2) { height: 78%; align-self: end; opacity: .72; }
.brand-mark i:nth-child(3) { height: 100%; }
.topnav { display: flex; align-items: center; gap: 24px; color: var(--ink-2); font-weight: 650; font-size: 13px; }
.topnav a:hover, .link-button:hover { color: var(--green-dark); }
.inline-form { display: inline; }
.link-button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; font-weight: 650; }
.user-chip { padding: 8px 12px; background: var(--paper); border-radius: 999px; color: var(--muted); }
.demo-ribbon { height: 38px; padding: 0 clamp(22px, 4vw, 68px); background: #123b35; color: white; display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 60; font-size: 12px; letter-spacing: .02em; }
.demo-ribbon strong { color: #69efbf; letter-spacing: .15em; }
.demo-ribbon a { margin-left: auto; text-decoration: underline; text-underline-offset: 3px; }
.message-stack { position: fixed; right: 24px; top: 96px; z-index: 100; display: grid; gap: 8px; }
.demo-mode .message-stack { top: 134px; }
.message { max-width: 420px; padding: 13px 17px; border-radius: 10px; color: white; background: var(--ink); box-shadow: var(--shadow); }
.message.success { background: var(--green-dark); }
.message.error { background: var(--red); }

.hero { min-height: 690px; padding: 92px clamp(24px, 6vw, 110px) 80px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(480px, 1.05fr); gap: clamp(50px, 8vw, 130px); align-items: center; background: linear-gradient(145deg, #f9fbfa 0%, #edf5f2 100%); overflow: hidden; }
.hero-copy { max-width: 720px; }
.eyebrow { margin: 0 0 14px; color: var(--green-dark); font-size: 11px; letter-spacing: .2em; font-weight: 800; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(44px, 5vw, 76px); line-height: 1.02; letter-spacing: -.055em; }
.hero-lead { margin: 30px 0 0; max-width: 650px; color: var(--ink-2); font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.microcopy { color: var(--muted); font-size: 12px; margin-top: 14px; }
.button { min-height: 46px; padding: 0 21px; border: 1px solid transparent; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 750; font-size: 13px; cursor: pointer; transition: .2s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(16,47,43,.11); }
.button.primary { background: var(--green); color: #062c23; }
.button.primary:hover { background: #16b987; }
.button.secondary { background: white; border-color: var(--line); color: var(--ink); }
.button.light { background: white; color: var(--ink); }
.button.compact { min-height: 38px; padding: 0 15px; font-size: 12px; }
.button.full { width: 100%; }
.hero-visual { height: 500px; position: relative; border-radius: 28px; background: #113934; box-shadow: 0 30px 80px rgba(16,47,43,.22); overflow: hidden; }
.signal-grid { position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 42px 42px; }
.hero-visual svg { position: absolute; inset: 40px; width: calc(100% - 80px); height: calc(100% - 80px); }
.hero-visual path { fill: none; stroke: rgba(103,239,190,.45); stroke-width: 2; stroke-dasharray: 6 6; }
.hero-visual circle { fill: var(--green); filter: drop-shadow(0 0 14px rgba(0,166,118,.9)); }
.visual-card, .decision-node { position: absolute; z-index: 2; color: white; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.16); border-radius: 13px; padding: 16px 18px; backdrop-filter: blur(7px); }
.visual-card { width: 178px; }
.visual-card span { color: #67efbe; font-family: ui-monospace, monospace; font-size: 10px; }
.visual-card b, .decision-node b { display: block; margin-top: 5px; letter-spacing: .14em; }
.visual-card small, .decision-node small { display: block; margin-top: 5px; color: rgba(255,255,255,.66); font-size: 10px; }
.card-field { left: 34px; top: 68px; }
.card-lab { left: 34px; bottom: 70px; }
.card-risk { right: 28px; top: 150px; }
.decision-node { left: calc(50% - 72px); top: calc(50% - 35px); width: 144px; text-align: center; border-color: rgba(103,239,190,.5); background: rgba(0,166,118,.17); }

.section { padding: 100px clamp(24px, 6vw, 110px); }
.section-heading { max-width: 750px; }
.section h2 { margin: 0; font-size: clamp(32px, 4vw, 52px); letter-spacing: -.04em; line-height: 1.08; }
.section-heading > p:last-child { color: var(--muted); font-size: 17px; }
.modules-section { background: white; }
.module-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.module-grid article { padding: 34px; min-height: 210px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.module-grid article:nth-child(3n) { border-right: 0; }
.module-grid article:nth-child(n+4) { border-bottom: 0; }
.module-no { color: var(--green); font: 700 11px ui-monospace, monospace; }
.module-grid h3 { margin: 34px 0 8px; font-size: 20px; }
.module-grid p { color: var(--muted); }
.solution-cta { margin: 0; background: #113934; color: white; display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.solution-cta > div { max-width: 850px; }
.solution-cta .eyebrow { color: #67efbe; }
.solution-cta p:last-child { color: rgba(255,255,255,.68); font-size: 16px; }

.app-shell { width: min(1480px, calc(100% - 48px)); margin: 0 auto; padding: 46px 0 90px; }
.app-shell.narrow { width: min(940px, calc(100% - 48px)); }
.page-heading { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; margin-bottom: 30px; }
.page-heading h1, .project-heading h1 { margin: 0; font-size: clamp(33px, 4vw, 52px); letter-spacing: -.045em; line-height: 1.08; }
.page-heading p:last-child, .project-heading p { margin: 9px 0 0; color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--muted); font-size: 13px; font-weight: 700; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.metric-grid article { min-height: 145px; padding: 24px; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 3px 12px rgba(16,47,43,.025); }
.metric-grid article.accent { background: var(--ink); color: white; border-color: var(--ink); }
.metric-grid span, .metric-grid small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.metric-grid article.accent span, .metric-grid article.accent small { color: rgba(255,255,255,.58); }
.metric-grid b { display: block; margin: 12px 0 5px; font-size: 32px; line-height: 1; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 18px rgba(16,47,43,.035); overflow: hidden; }
.panel-head { min-height: 84px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 18px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.count-chip { min-width: 34px; height: 30px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--green-pale); color: var(--green-dark); border-radius: 999px; font-weight: 800; font-size: 12px; }
.project-list { display: grid; }
.project-row { min-height: 88px; padding: 16px 23px; display: grid; grid-template-columns: 110px minmax(220px, 1fr) 150px 90px 28px; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); transition: .16s ease; }
.project-row:last-child { border-bottom: 0; }
.project-row:hover { background: #f8fbfa; }
.project-code { display: inline-flex; align-items: center; justify-content: center; width: max-content; padding: 6px 9px; border-radius: 6px; background: #eaf1ef; color: var(--ink-2); font: 750 11px ui-monospace, monospace; }
.project-code.large { font-size: 12px; padding: 7px 10px; }
.project-main { display: flex; flex-direction: column; }
.project-main b { font-size: 15px; }
.project-main small { margin-top: 4px; color: var(--muted); }
.project-metric { text-align: right; }
.project-metric b, .project-metric small { display: block; }
.project-metric small { color: var(--muted); font-size: 10px; }
.project-arrow { color: var(--green-dark); font-size: 18px; }
.status, .result { display: inline-flex; width: max-content; align-items: center; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .035em; }
.status-planned, .status-draft { color: #566e69; background: #eaf0ef; }
.status-fieldwork, .status-analysis, .status-review, .result-review { color: #8b6512; background: #fff1cb; }
.status-issued, .result-pass { color: #06694f; background: #dff5ed; }
.status-archived, .status-superseded { color: #6b7180; background: #eceef2; }
.result-fail { color: #a53e36; background: #ffe5e2; }
.empty-state { padding: 60px 30px; text-align: center; color: var(--muted); }
.empty-state b { color: var(--ink); }
.empty-state.small { padding: 30px; }

.project-heading { margin-bottom: 30px; display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; }
.heading-line { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.demo-chip { color: #00835f; font: 750 9px ui-monospace, monospace; letter-spacing: .1em; }
.project-heading-meta { display: grid; grid-template-columns: auto auto; gap: 5px 12px; text-align: right; font-size: 12px; }
.project-heading-meta span { color: var(--muted); }
.tabbar { display: flex; gap: 3px; padding: 6px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 11px; background: #eaf0ee; overflow-x: auto; }
.tabbar a { min-width: max-content; padding: 10px 13px; border-radius: 7px; color: var(--muted); font-weight: 750; font-size: 12px; }
.tabbar a.active { background: white; color: var(--ink); box-shadow: 0 2px 8px rgba(16,47,43,.08); }
.tabbar a span { margin-left: 5px; color: var(--green-dark); }
.project-metrics { margin-top: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); gap: 18px; }
.site-map { width: 100%; height: auto; display: block; padding: 18px; }
.site-boundary { fill: rgba(0,166,118,.035); stroke: #8eb8ad; stroke-width: 2; stroke-dasharray: 7 5; }
.map-point text { font-size: 10px; fill: #183f39; font-weight: 750; }
.north path { fill: var(--ink); }
.north text { font-size: 10px; font-weight: 800; }
.map-legend { padding: 12px 22px 18px; display: flex; gap: 18px; color: var(--muted); font-size: 10px; }
.map-legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.borehole { background: #9a6b3b; }.dot.cptu { background: var(--blue); }.dot.plate { background: var(--green); }
.data-lifecycle { list-style: none; margin: 0; padding: 12px 24px 25px; }
.data-lifecycle li { min-height: 62px; display: flex; align-items: center; gap: 14px; position: relative; }
.data-lifecycle li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 44px; bottom: -10px; width: 1px; background: var(--line); }
.data-lifecycle li > span { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--muted); font: 700 9px ui-monospace, monospace; z-index: 1; }
.data-lifecycle li.done > span { border-color: var(--green); background: var(--green-pale); color: var(--green-dark); }
.data-lifecycle li.active > span { background: var(--green); border-color: var(--green); color: #063d2f; box-shadow: 0 0 0 5px var(--green-pale); }
.data-lifecycle b, .data-lifecycle small { display: block; }
.data-lifecycle small { color: var(--muted); margin-top: 2px; }

.module-toolbar { min-height: 78px; margin: 6px 0 18px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.module-toolbar h2 { margin: 0; font-size: 25px; }
.module-toolbar p { margin: 4px 0 0; color: var(--muted); }
.toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.module-grid-wide { grid-template-columns: minmax(0, 1.45fr) minmax(360px, .55fr); }
.bar-chart { padding: 24px; display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 64px 1fr 82px; align-items: center; gap: 10px; font-size: 11px; }
.bar-row > span { font-weight: 750; font-family: ui-monospace, monospace; }
.bar-row > b { text-align: right; font-size: 11px; }
.bar-track { height: 8px; background: #edf2f1; border-radius: 999px; overflow: hidden; }
.bar-track i { height: 100%; display: block; border-radius: inherit; }
.bar-track i.pass { background: var(--green); }.bar-track i.fail { background: var(--red); }.bar-track i.review { background: var(--amber); }
.donut-wrap { min-height: 290px; padding: 25px; display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.donut { --pass: 50; width: 150px; height: 150px; padding: 18px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) calc(var(--pass) * 1%), #f0a19a 0); }
.donut::before { content: ""; grid-area: 1/1; width: 112px; height: 112px; border-radius: 50%; background: white; }
.donut span { grid-area: 1/1; z-index: 1; text-align: center; }
.donut b, .donut small { display: block; }.donut b { font-size: 30px; }.donut small { color: var(--muted); font-size: 10px; }
.legend-stack { display: grid; gap: 10px; font-size: 12px; }
.legend-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 7px; }.legend-swatch.pass { background: var(--green); }.legend-swatch.fail { background: #f0a19a; }.legend-swatch.review { background: var(--amber); }
.table-panel { margin-top: 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 13px 15px; text-align: left; background: #f0f5f3; color: #4c6761; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
td { padding: 14px 15px; border-top: 1px solid var(--line); vertical-align: middle; }
td small { display: block; color: var(--muted); }
tbody tr:hover { background: #fbfcfc; }
.borehole-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.borehole-card { min-height: 430px; }
.borehole-head { padding: 21px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.borehole-head span, .borehole-head small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.borehole-head h3 { margin: 2px 0 0; font-size: 26px; }.borehole-head > div:last-child { text-align: right; }
.borehole-profile { padding: 16px 20px; display: grid; gap: 4px; }
.profile-layer { min-height: 62px; padding: 10px 12px 10px 19px; display: grid; grid-template-columns: 86px 50px 1fr; align-items: center; gap: 10px; border-left: 9px solid var(--soil); background: color-mix(in srgb, var(--soil) 17%, white); border-radius: 5px; font-size: 11px; }
.profile-layer span { font-family: ui-monospace, monospace; color: var(--muted); }.profile-layer b { font-size: 14px; }.profile-layer small { color: var(--ink-2); }
.borehole-foot { padding: 14px 21px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }.borehole-foot b { color: var(--ink); }
.sample-selector, .cptu-selector { margin-bottom: 12px; display: flex; gap: 6px; overflow-x: auto; }
.sample-selector span, .sample-selector a, .cptu-selector span, .cptu-selector a { padding: 7px 10px; background: #e9efed; color: var(--muted); border-radius: 6px; font: 700 10px ui-monospace, monospace; text-decoration: none; }.sample-selector .active, .cptu-selector .active { background: var(--ink); color: white; }
.line-chart { display: block; width: 100%; height: auto; padding: 15px; overflow: visible; }
.line-chart .chart-grid path { fill: none; stroke: #dce7e4; stroke-width: 1; }
.line-chart > polyline { fill: none; stroke: var(--green); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.line-chart text { fill: var(--muted); font-size: 9px; }
.cptu-chart > polyline { stroke: var(--blue); }
.water-line { stroke: #268cca; stroke-width: 1.5; stroke-dasharray: 5 4; }.water-label { fill: #268cca !important; }
.parameter-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.parameter-grid > div { min-height: 92px; padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.parameter-grid > div:nth-child(2n) { border-right: 0; }
.parameter-grid span, .parameter-grid b { display: block; }.parameter-grid span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }.parameter-grid b { margin-top: 8px; font-size: 18px; }
.fraction-bar { height: 22px; margin: 22px 20px 8px; display: flex; border-radius: 5px; overflow: hidden; }.fraction-bar i { display: block; height: 100%; }.fraction-bar .gravel { background: #8b6a4a; }.fraction-bar .sand { background: #d9b46f; }.fraction-bar .fines { background: #7998a7; }
.fraction-legend { padding: 0 20px 18px; display: flex; gap: 20px; color: var(--muted); font-size: 10px; }.fraction-legend b { color: var(--ink); }
.checksum { margin: 8px 20px 20px; padding: 10px; background: #f0f4f3; border-radius: 6px; overflow: hidden; }.checksum span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 8px; letter-spacing: .1em; }.checksum code { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 9px; }
.detail-list { margin: 0; padding: 5px 20px 20px; }.detail-list div { padding: 11px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }.detail-list dt { color: var(--muted); }.detail-list dd { margin: 0; max-width: 240px; text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.risk-metrics article b { font-size: 28px; }
.histogram { height: 260px; padding: 35px 22px 0; display: flex; align-items: end; gap: 5px; border-bottom: 1px solid var(--line); }
.histogram i { min-width: 5px; flex: 1; display: block; position: relative; background: linear-gradient(180deg, #4bb4e6, #1d7ca8); border-radius: 3px 3px 0 0; }
.histogram i span { display: none; position: absolute; top: -18px; width: 100%; text-align: center; color: var(--muted); font-style: normal; font-size: 8px; }.histogram i:hover span { display: block; }
.histogram-axis { padding: 8px 22px 20px; display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.sensitivity-list { padding: 22px; display: grid; gap: 15px; }.sensitivity-list > div { display: grid; grid-template-columns: 150px 1fr 45px; align-items: center; gap: 10px; font-size: 11px; }.sensitivity-list > div > div { height: 8px; background: #edf2f1; border-radius: 99px; overflow: hidden; }.sensitivity-list i { height: 100%; display: block; background: var(--amber); border-radius: inherit; }.sensitivity-list b { text-align: right; }
.short-code { display: block; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.in-app-cta { margin-top: 22px; padding: 24px 28px; background: #123b35; color: white; border-radius: 14px; display: flex; justify-content: space-between; align-items: center; gap: 25px; }.in-app-cta b { font-size: 16px; }.in-app-cta p { margin: 5px 0 0; color: rgba(255,255,255,.65); }

.auth-shell { min-height: calc(100vh - 150px); padding: 80px 24px; display: grid; place-items: center; background: radial-gradient(circle at 70% 20%, #dff5ed 0, transparent 33%), var(--paper); }
.auth-panel { width: min(460px, 100%); padding: 42px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }.auth-panel h1 { margin: 0; font-size: 34px; letter-spacing: -.04em; }.auth-panel > p:not(.eyebrow) { color: var(--muted); }
.stacked-form { display: grid; gap: 9px; margin-top: 26px; }.stacked-form label { margin-top: 7px; font-size: 11px; font-weight: 750; }.stacked-form input { height: 45px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; outline: none; }.stacked-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-pale); }.stacked-form .button { margin-top: 15px; }
.auth-demo { margin-top: 24px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }.auth-demo::before, .auth-demo::after { content: ""; height: 1px; background: var(--line); flex: 1; }.auth-demo span { display: none; }.auth-demo a { color: var(--green-dark); font-weight: 750; white-space: nowrap; }
.form-error { padding: 11px 13px; margin: 12px 0; background: #ffe7e4; color: #9a3931; border-radius: 7px; font-size: 12px; }
.form-panel { padding: 28px; }.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }.form-field { display: grid; gap: 6px; }.form-field.wide { grid-column: 1 / -1; }.form-field label { font-size: 11px; font-weight: 750; }.form-field sup { color: var(--red); }.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 43px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 7px; background: white; outline: none; }.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-pale); }.form-field small { color: var(--muted); }.field-error { color: var(--red); font-size: 10px; }.form-actions { margin-top: 25px; display: flex; gap: 9px; }
.footer { min-height: 74px; padding: 20px clamp(22px, 4vw, 68px); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: white; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .055em; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }.hero-visual { height: 460px; }.module-grid { grid-template-columns: repeat(2, 1fr); }.module-grid article:nth-child(3n) { border-right: 1px solid var(--line); }.module-grid article:nth-child(2n) { border-right: 0; }.module-grid article:nth-child(n+4) { border-bottom: 1px solid var(--line); }.module-grid article:nth-last-child(-n+2) { border-bottom: 0; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }.two-col, .module-grid-wide { grid-template-columns: 1fr; }.borehole-grid { grid-template-columns: repeat(2, 1fr); }.project-row { grid-template-columns: 100px 1fr 130px 25px; }.project-metric { display: none; }
}
@media (max-width: 720px) {
  .topbar { height: 66px; padding: 0 16px; }.topnav { gap: 12px; }.topnav > a:first-child, .user-chip { display: none; }.demo-ribbon { padding: 0 12px; gap: 8px; }.demo-ribbon span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .hero { min-height: auto; padding: 64px 22px; gap: 45px; }.hero h1 { font-size: 44px; }.hero-lead { font-size: 16px; }.hero-visual { height: 410px; }.visual-card { width: 145px; padding: 12px; }.card-field, .card-lab { left: 18px; }.card-risk { right: 15px; }.decision-node { left: calc(50% - 60px); width: 120px; }
  .section { padding: 70px 22px; }.module-grid { grid-template-columns: 1fr; }.module-grid article, .module-grid article:nth-child(3n), .module-grid article:nth-child(n+4), .module-grid article:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }.module-grid article:last-child { border-bottom: 0; }.solution-cta { align-items: flex-start; flex-direction: column; }
  .app-shell, .app-shell.narrow { width: min(100% - 24px, 1480px); padding-top: 28px; }.page-heading, .project-heading, .module-toolbar { align-items: flex-start; flex-direction: column; }.project-heading-meta { text-align: left; }.metric-grid { grid-template-columns: 1fr 1fr; }.metric-grid article { min-height: 125px; padding: 18px; }.metric-grid b { font-size: 26px; }.project-row { grid-template-columns: 82px 1fr 20px; gap: 10px; }.project-row .status { display: none; }.borehole-grid { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr; }.form-field.wide { grid-column: auto; }.in-app-cta { align-items: flex-start; flex-direction: column; }.footer { align-items: flex-start; flex-direction: column; }
  .profile-layer { grid-template-columns: 78px 43px 1fr; }.sensitivity-list > div { grid-template-columns: 110px 1fr 38px; }
}

@media print {
  .topbar, .demo-ribbon, .footer, .tabbar, .module-toolbar .toolbar-actions, .in-app-cta, .back-link { display: none !important; }
  body, .panel { background: white; box-shadow: none; }.app-shell { width: 100%; padding: 0; }.panel { break-inside: avoid; }
}
