:root {
  color-scheme: light;
  --ink: #21352d;
  --muted: #52665d;
  --green: #1b4538;
  --green-deep: #14392f;
  --green-pale: #e8f2ea;
  --orange: #b84322;
  --orange-dark: #983419;
  --orange-pale: #fcece3;
  --white: #fff;
  --paper: #f6f8f6;
  --line: #dce4dd;
  --shadow: 0 14px 45px #173d2f0d;
  --heading: 'Prompt', system-ui, sans-serif;
  --body: 'Sarabun', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body); }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--orange-dark); }
button, input, select, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; width: 1.25em; height: 1.25em; vertical-align: middle; }
h1, h2, h3 { margin: 0; font: 500 1.25rem/1.32 var(--heading); color: var(--green-deep); }
h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h2 { font-size: clamp(1.16rem, 2vw, 1.48rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 .8rem; }
small { font-size: .875rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #c36a42; outline-offset: 4px; }
.skip-link { position: fixed; inset: .75rem auto auto .75rem; transform: translateY(-150%); z-index: 30; background: var(--white); padding: .7rem 1rem; }
.skip-link:focus { transform: translateY(0); }
.muted { color: var(--muted); }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 42px; padding: .48rem .95rem; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font-weight: 700; line-height: 1.3; transition: background .2s, color .2s, border-color .2s; }
.button-primary { color: var(--white); background: var(--orange); }
.button-primary:hover { color: var(--white); background: var(--orange-dark); }
.button-secondary { color: var(--white); background: var(--green); }
.button-secondary:hover { color: var(--white); background: var(--green-deep); }
.button-outline { color: var(--green); border-color: #bdcec1; background: var(--white); }
.button-outline:hover { color: var(--green); border-color: #7d9d88; background: var(--green-pale); }
.button-light { background: #f2f6f3; color: var(--green-deep); }
.button-light:hover { background: #fff; color: var(--green); }
.button-icon { display: grid; place-items: center; padding: .35rem; border: 0; border-radius: 6px; background: transparent; color: var(--green); }
.button-icon:hover { background: var(--green-pale); }
.feature-icon { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 11px; }
.feature-icon.green, .pill.green, .matrix-mark.green { color: var(--green); background: var(--green-pale); }
.feature-icon.orange, .pill.orange { color: var(--orange-dark); background: var(--orange-pale); }
.feature-icon svg { width: 23px; height: 23px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; flex: none; text-decoration: none; color: var(--green-deep); }
.brand:hover { color: var(--green); }
.brand-mark { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 13px; background: var(--orange); color: #fff; }
.brand-mark svg { width: 27px; height: 27px; stroke-width: 1.75; }
.brand strong, .brand small { display: block; }
.brand strong { font: 600 .98rem/1.4 var(--heading); }
.brand small { color: var(--muted); font-size: .85rem; }

.landing { background: #fff; }
.container { width: min(100% - 80px, 1216px); margin-inline: auto; }
.site-header { border-bottom: 1px solid #e8ebe5; background: #fff; }
.site-nav { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.site-nav nav { align-self: stretch; display: flex; align-items: stretch; gap: clamp(1rem, 3vw, 2.65rem); }
.site-nav nav a { position: relative; display: inline-flex; align-items: center; color: var(--muted); font-weight: 700; text-decoration: none; }
.site-nav nav a:hover, .site-nav nav .selected { color: var(--orange-dark); }
.site-nav nav .selected::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--orange); content: ''; }
.header-cta { min-height: 41px; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(111deg, #faf7ef 0%, #f8f9f0 46%, #e3eee6 100%); }
.hero::before { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(#5b866348 1px, transparent 1px); background-size: 14px 14px; mask-image: linear-gradient(90deg, transparent 54%, #0009 100%); content: ''; }
.hero-orbit { position: absolute; z-index: -1; width: 570px; height: 570px; border: 1px solid #a4bca67d; border-radius: 50%; right: -175px; top: -251px; box-shadow: 0 0 0 35px #a4bca623, 0 0 0 70px #a4bca62a; animation: orbit 26s ease-in-out infinite alternate; }
@keyframes orbit { to { transform: translate(-45px, 32px); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.12fr); align-items: center; gap: clamp(1.75rem, 4vw, 4.5rem); padding-block: clamp(3rem, 5.4vw, 5.05rem); }
.hero-copy { position: relative; padding-block: .5rem; min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.2rem; color: var(--green); font: 500 .88rem/1.4 var(--heading); }
.eyebrow span { width: 25px; height: 2px; border-radius: 2px; background: var(--orange); }
.hero h1 { font: 600 clamp(2.3rem, 4.32vw, 4rem)/1.18 var(--heading); letter-spacing: -.02em; overflow-wrap: anywhere; }
.hero-accent { display: block; color: var(--orange); }
.hero-description { max-width: 28rem; margin: 1.25rem 0 1.5rem; color: var(--muted); font-size: clamp(1.05rem, 1.42vw, 1.19rem); }
.hero-cta { min-height: 54px; padding: .65rem 1.15rem; border-radius: 11px; box-shadow: 0 6px 14px #b843222d; font-size: 1.08rem; }
.google-mark { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 5px; background: #fff; }
.google-mark svg { width: 16px; height: 16px; }
.account-note { display: flex; align-items: center; gap: .38rem; margin: .85rem 0 0; color: var(--muted); font-size: .9rem; }
.account-note svg { color: var(--green); }
.hero-visual { position: relative; isolation: isolate; margin: .15rem 0 .75rem; }
.hero-visual::after { position: absolute; z-index: -1; inset: 18px -17px -17px 21px; border-radius: 24px; border: 1px solid #80a88c; content: ''; }
.hero-frame { position: relative; isolation: isolate; aspect-ratio: 1.38; overflow: hidden; border-radius: 23px; border: 5px solid #ffffffde; background: var(--green); box-shadow: 0 16px 45px #0e38292b; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.hero-slide.showing { opacity: 1; animation: ken-burns 14s ease-out both; }
@keyframes ken-burns { from { transform: scale(1.015); } to { transform: scale(1.105); } }
.hero-tint { position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, #102c2180); pointer-events: none; }
.hero-term { position: absolute; left: 1.1rem; bottom: 1.1rem; display: flex; align-items: center; gap: .7rem; min-width: 145px; padding: .55rem .85rem .55rem .6rem; border-radius: 11px; color: #f4fbf3; background: #163e32ed; font-size: .85rem; line-height: 1.35; }
.hero-term-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 7px; color: #fff; background: #ffffff20; }
.hero-term strong { display: block; font: 600 1.22rem/1.3 var(--heading); }
.slide-controls { position: absolute; right: .85rem; bottom: 1rem; display: flex; align-items: center; gap: .4rem; background: #163e32ed; border-radius: 20px; padding: .24rem .5rem; }
.slide-controls button { width: 18px; height: 24px; border: 0; padding: 0; color: #fff; background: transparent; }
.slide-controls button[data-slide]::after { display: block; width: 8px; height: 8px; border-radius: 50%; margin: auto; background: #ffffff85; content: ''; }
.slide-controls button[aria-pressed="true"][data-slide]::after { background: #fff; }
.stats-band { border-block: 1px solid #e4e9e3; background: #fff; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 1.65rem; }
.public-stat { display: flex; gap: .9rem; align-items: center; justify-content: center; }
.public-stat + .public-stat { border-left: 1px solid var(--line); }
.public-stat > div { display: grid; line-height: 1.35; }
.public-stat strong { color: var(--green-deep); font: 600 clamp(1.65rem, 2.65vw, 2.35rem)/1.2 var(--heading); font-variant-numeric: tabular-nums; }
.public-stat div span { color: var(--muted); font-size: .97rem; font-weight: 600; }
.public-stat .feature-icon { width: 51px; height: 51px; }
.systems-section { padding: 3.4rem 0 4rem; background: #f6f8f5; }
.systems-section h2 { margin-bottom: 1.4rem; font-size: clamp(1.6rem, 2.7vw, 2.25rem); }
.system-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.system-card { display: flex; flex-wrap: wrap; align-items: start; gap: 1rem; padding: 1.45rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 6px 22px #173d2f07; }
.system-card h3 { font-size: 1.18rem; }
.system-card p { margin: .35rem 0 0; color: var(--muted); }
.system-card > div { flex: 1; min-width: 190px; }
.dev-area { margin-block: 1.5rem; }
.dev-area details { background: var(--green-pale); padding: 1rem 1.2rem; border-radius: 10px; }
.dev-area form { margin-top: .8rem; }
.site-footer { background: var(--green-deep); color: #e6f1e9; }
.site-footer > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal-ready.visible, .reveal-ready:focus-within { opacity: 1; transform: none; }
.error-page { padding-block: 4rem; }
.error-page h1 { margin-bottom: 1.5rem; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 245px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100dvh; overflow-y: auto; padding: 1.15rem .8rem; background: var(--green-deep); color: #e9f2ed; }
.sidebar .brand { padding: .15rem .38rem 1.15rem; gap: .55rem; color: #fff; border-bottom: 1px solid #ffffff29; }
.sidebar .brand-mark { width: 38px; height: 38px; border-radius: 9px; }
.sidebar .brand-mark svg { width: 23px; height: 23px; }
.sidebar .brand strong { font-size: .9rem; }
.sidebar .brand small { color: #c3d9cc; font-size: .78rem; }
.sidebar nav { padding: .55rem 0 1rem; }
.sidebar nav p { margin: .7rem .6rem .28rem; color: #bed5c7; font-size: .86rem; }
.side-link { display: flex; width: 100%; align-items: center; gap: .65rem; padding: .53rem .65rem; border: 0; border-radius: 7px; text-align: left; text-decoration: none; font-size: .97rem; line-height: 1.45; color: #f2f7f3; background: transparent; }
.side-link:hover { color: #fff; background: #ffffff18; }
.side-link.active { color: #fff; background: #ffffff24; box-shadow: inset 3px 0 #f4a684; font-weight: 700; }
.side-link svg { width: 17px; height: 17px; }
.sidebar-exit { margin-top: auto; padding-top: .65rem; border-top: 1px solid #ffffff29; }
.app-header { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem clamp(1rem, 3vw, 2.45rem); background: #fff; border-bottom: 1px solid var(--line); }
.portal-name { font-weight: 700; line-height: 1.35; color: var(--green); }
.account { display: flex; align-items: center; gap: .55rem; flex: none; line-height: 1.3; }
.account strong, .account small { display: block; max-width: 185px; overflow-wrap: anywhere; }
.account small { color: var(--muted); }
.avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; color: var(--green); background: var(--green-pale); }
.menu-toggle { display: none; }
.app-main { width: 100%; max-width: 1440px; margin: 0 auto; padding: clamp(1.15rem, 3vw, 2.5rem); }
.page-title { margin-bottom: 1.25rem; }
.page-title h1 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
.notice { display: flex; align-items: center; gap: .6rem; margin-bottom: .95rem; padding: .6rem .8rem; border: 1px solid #c7ddce; border-radius: 8px; color: var(--green-deep); background: var(--green-pale); }
.panel { margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 13px; background: var(--white); overflow: hidden; box-shadow: 0 4px 12px #173d2f05; }
.panel-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: 1rem 1.15rem; }
.panel-heading p, .section-heading p { margin: 0; color: var(--muted); font-size: .92rem; }
.form-panel { padding: 1rem 1.15rem 1.15rem; }
.form-panel .panel-heading { padding: 0 0 .85rem; }
.form-panel details form { margin-top: .85rem; }
.form-panel details label { margin-bottom: .45rem; }
details summary { color: var(--green-deep); font-weight: 700; }
.toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem .8rem; margin-bottom: 1.05rem; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.panel-toolbar { margin: 0 .95rem .85rem; background: var(--paper); }
.toolbar label { flex: 0 1 auto; min-width: min(10rem, 100%); }
.toolbar select { max-width: 265px; }
label { display: grid; align-content: start; gap: .25rem; color: var(--ink); font-weight: 700; font-size: .94rem; }
label small, label .muted { font-weight: 400; }
input:not([type="checkbox"]), select, textarea { width: 100%; min-width: 0; min-height: 42px; padding: .44rem .65rem; border: 1px solid #bccdc2; border-radius: 7px; background: #fff; color: var(--ink); font-size: 1rem; font-weight: 400; }
input[readonly] { background: var(--paper); }
select { appearance: none; padding-right: 1.8rem; background-image: linear-gradient(45deg, transparent 50%, #486358 50%), linear-gradient(135deg, #486358 50%, transparent 50%); background-position: calc(100% - 14px) 53%, calc(100% - 9px) 53%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; }
input[type="checkbox"] { accent-color: var(--green); width: 17px; height: 17px; flex: none; }
.check { display: inline-flex; gap: .42rem; align-items: center; min-height: 38px; font-weight: 600; }
fieldset { margin: .7rem 0 0; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 8px; }
legend { padding: 0 .35rem; font-weight: 700; }
.checks, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .9rem; }
.actions form, td form { margin: 0; }
.form-row { display: flex; align-items: end; flex-wrap: wrap; gap: .6rem .8rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem .85rem; }
.form-grid.wide { grid-template-columns: 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { margin-top: .85rem; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; align-items: start; }
.section-heading { display: flex; align-items: end; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin: 0 0 .8rem; }
.dashboard-section { margin: 0 0 1.7rem; }
.dashboard-section + .dashboard-section { border-top: 1px solid var(--line); padding-top: 1.35rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: .9rem; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: .85rem .95rem; background: #fff; }
.kpi-top { display: flex; justify-content: space-between; gap: .5rem; align-items: center; color: var(--muted); font-weight: 700; line-height: 1.35; }
.kpi-top .feature-icon { width: 36px; height: 36px; }
.kpi-top svg { width: 18px; height: 18px; }
.kpi > strong { display: block; margin-top: .35rem; font: 600 clamp(1.4rem, 2.7vw, 2.3rem)/1.2 var(--heading); color: var(--green-deep); }
.text-action { display: inline-block; font-weight: 700; }
.chart-panel { padding-bottom: .4rem; }
.bar-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .25rem .6rem; padding: .48rem 1.15rem; }
.bar-row > span { font-weight: 600; }
.bar-row small { grid-column: 1/-1; color: var(--muted); }
progress { display: block; width: 100%; height: .55rem; overflow: hidden; border: 0; border-radius: 50px; background: #e4eae6; color: #3d7759; }
progress::-webkit-progress-bar { background: #e4eae6; }
progress::-webkit-progress-value { background: #3d7759; border-radius: 50px; }
progress::-moz-progress-bar { background: #3d7759; border-radius: 50px; }
progress.orange::-webkit-progress-value { background: #c3532f; }
progress.orange::-moz-progress-bar { background: #c3532f; }
.bar-row progress { grid-column: 1/-1; }
.table-wrap { overflow: auto; width: 100%; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .65rem .85rem; vertical-align: top; overflow-wrap: anywhere; }
th { background: #edf3ee; color: var(--green-deep); font-weight: 700; white-space: nowrap; }
td { border-top: 1px solid #e5ebe6; }
tbody tr:hover td { background: #fafcfb; }
td a { font-weight: 700; }
td:first-child, th:first-child { padding-left: 1.15rem; }
.cell-detail { display: block; color: var(--muted); font-size: .875rem; }
.empty { color: var(--muted); padding: .95rem 1.15rem 1.15rem; margin: 0; }
.pill { display: inline-flex; align-items: center; padding: .14rem .58rem; border-radius: 99px; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.pill.neutral, .matrix-mark.neutral { color: #4e5e58; background: #eef0ee; }
.matrix-mark { display: inline-grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.workspace-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: 1.15rem 1.3rem; border-radius: 13px; background: linear-gradient(120deg,#1b4538,#2b5a46); color: #fff; }
.workspace-banner h2 { color: #fff; }
.workspace-banner p { margin: 0 0 .24rem; color: #e0eee5; }
.term-summary, .summary-box { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-bottom: .95rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.term-summary strong, .term-summary small { display: block; }
.term-summary small, .summary-box p { color: var(--muted); }
.summary-box { justify-content: space-between; }
.summary-box p { margin: 0; }
.filename { min-width: 155px; }
.link-danger { border: 0; background: transparent; padding: 0; color: #a33724; text-decoration: underline; text-underline-offset: .2em; font-weight: 700; white-space: nowrap; }
.link-danger:hover { color: #762213; }
.manage-row { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; padding: .8rem 1.15rem; border-top: 1px solid var(--line); }
.manage-label { display: grid; align-self: center; justify-items: start; gap: .2rem; }
.thumbnail { width: 88px; height: 56px; border-radius: 6px; object-fit: cover; align-self: center; }
.criterion-details { border-top: 1px solid var(--line); padding: .8rem 1.15rem; }
.criterion-details summary .pill { margin-left: .4rem; }
.criterion { margin-top: .6rem; }
.people-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 325px; overflow: auto; gap: .35rem; }
.people-picker .check { overflow-wrap: anywhere; padding: .4rem .5rem; background: var(--paper); border-radius: 6px; }
.people-picker small { display: block; color: var(--muted); }
.person-excluded { opacity: .55; }
.read-field span { display: block; color: var(--muted); font-weight: 700; }
.read-field p { margin: .2rem 0 .45rem; }
input.score-input { width: 95px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 155px), 1fr)); gap: .75rem; margin: 0 1.15rem 1rem; }
.gallery:empty { margin: 0; }
.gallery-photo { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.gallery-photo img { width: 100%; aspect-ratio: 1.5; object-fit: cover; background: var(--paper); }
.gallery-photo figcaption { display: flex; justify-content: space-between; align-items: start; gap: .5rem; padding: .35rem .5rem; overflow-wrap: anywhere; }

.uploader { padding: 0 1.15rem 1rem; }
.uploader-note { padding-bottom: .65rem; }
.dropzone { display: grid; justify-items: center; gap: .4rem; text-align: center; padding: 1.15rem .8rem; border: 1.5px dashed #8dac98; border-radius: 11px; background: #f4f8f4; }
.dropzone .button { margin-top: .25rem; }
.dropzone.dragover { border-color: var(--orange); background: var(--orange-pale); }
.upload-window { position: fixed; inset: auto 1rem 1rem auto; z-index: 10; margin: 0; width: min(465px, calc(100vw - 2rem)); max-height: min(620px, 84vh); padding: 0; border: 1px solid #b0c6b7; border-radius: 14px; color: var(--ink); background: #fff; box-shadow: 0 18px 50px #14392f35; }
.upload-top, .upload-footer { display: flex; align-items: center; justify-content: space-between; gap: .55rem; padding: .8rem .95rem; background: #f2f7f2; }
.upload-top small { color: var(--muted); }
.upload-footer { justify-content: end; }
.upload-items { overflow: auto; max-height: min(350px, 50vh); list-style: none; margin: 0; padding: 0; }
.upload-items li { padding: .55rem .95rem; border-top: 1px solid var(--line); }
.upload-name { display: block; overflow-wrap: anywhere; }
.upload-info { display: flex; align-items: baseline; justify-content: space-between; gap: .45rem; margin: .25rem 0; }
.upload-info small { flex: 1; color: var(--muted); }
.upload-items .bad small { color: #a33724; }
.upload-items .button { min-height: 32px; padding: .18rem .48rem; font-size: .86rem; }
.upload-items progress { margin-top: .35rem; }

@media (max-width: 1050px) {
  .container { width: min(100% - 48px, 1216px); }
  .hero-grid { gap: 1.7rem; }
  .app-shell { grid-template-columns: 215px minmax(0,1fr); }
  .app-main { padding: 1.35rem; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .site-nav { min-height: 66px; }
  .site-nav nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 2rem 2.6rem; }
  .hero h1 { font-size: clamp(2.25rem, 8.4vw, 3.7rem); }
  .hero-frame { aspect-ratio: 1.52; }
  .hero-visual { margin-right: .55rem; }
  .hero-visual::after { inset: 13px -11px -11px 13px; }
  .stats-row { padding-block: 1.1rem; }
  .public-stat { flex-direction: column; align-items: center; gap: .35rem; text-align: center; padding: 0 .3rem; }
  .public-stat .feature-icon { width: 37px; height: 37px; border-radius: 8px; }
  .public-stat .feature-icon svg { width: 19px; height: 19px; }
  .public-stat strong { font-size: 1.35rem; }
  .public-stat div span { font-size: .82rem; }
  .system-grid { grid-template-columns: 1fr; }
  .systems-section { padding-block: 2.35rem; }
  .app-shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 16; width: min(275px, 84vw); visibility: hidden; transform: translateX(-100%); transition: transform .23s, visibility .23s; }
  .menu-open .sidebar { visibility: visible; transform: none; box-shadow: 0 0 0 100vmax #122b245b; }
  .menu-toggle { display: inline-flex; white-space: nowrap; }
  .portal-name { display: none; }
  .app-main { padding: 1rem; }
  .two-columns { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .brand { gap: .5rem; }
  .brand-mark { width: 37px; height: 37px; border-radius: 10px; }
  .brand-mark svg { width: 23px; height: 23px; }
  .brand strong { font-size: .84rem; }
  .brand small { font-size: .78rem; }
  .header-cta { padding: .45rem .58rem; font-size: .9rem; }
  .header-cta svg { display: none; }
  .form-grid, .people-picker { grid-template-columns: 1fr; }
  .term-summary .pill { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal-ready { opacity: 1; transform: none; }
}
.hero-frame.paused .hero-slide { animation-play-state: paused; }
