/* ME2PLUS Scholarship — original interface, locally hosted, no CDN dependency. */
/* Noto Sans Thai: Noto Project Authors, SIL OFL 1.1; see fonts/OFL.txt. */
@font-face { font-family: "Noto Sans Thai"; font-style: normal; font-display: swap; font-weight: 400; src: url("fonts/noto-sans-thai-thai-400-normal.woff2") format("woff2"); unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family: "Noto Sans Thai"; font-style: normal; font-display: swap; font-weight: 400; src: url("fonts/noto-sans-thai-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Noto Sans Thai"; font-style: normal; font-display: swap; font-weight: 500; src: url("fonts/noto-sans-thai-thai-500-normal.woff2") format("woff2"); unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family: "Noto Sans Thai"; font-style: normal; font-display: swap; font-weight: 500; src: url("fonts/noto-sans-thai-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Noto Sans Thai"; font-style: normal; font-display: swap; font-weight: 700; src: url("fonts/noto-sans-thai-thai-700-normal.woff2") format("woff2"); unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family: "Noto Sans Thai"; font-style: normal; font-display: swap; font-weight: 700; src: url("fonts/noto-sans-thai-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --forest: #123d31;
  --forest-deep: #0c2d25;
  --forest-soft: #205746;
  --lime: #cef37c;
  --lime-light: #edf8d6;
  --paper: #fbfcf8;
  --white: #fff;
  --ink: #193a30;
  --body: #334b42;
  --muted: #63786e;
  --line: #dfe8df;
  --subtle: #f1f5ef;
  --success: #196247;
  --success-bg: #eaf6ee;
  --warning: #865718;
  --warning-bg: #fff5dc;
  --danger: #a9353d;
  --danger-bg: #fff0ef;
  --info: #2a607c;
  --info-bg: #edf5fa;
  --shadow: 0 12px 36px rgba(20, 57, 41, .065);
  --shadow-raised: 0 20px 55px rgba(20, 57, 41, .12);
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1184px;
  --header: 86px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; min-width: 0; background: var(--paper); color: var(--body); font-family: "Noto Sans Thai", "Sarabun", "Leelawadee UI", Tahoma, sans-serif; font-size: 16px; line-height: 1.75; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; }
img { vertical-align: middle; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; }
button, input, textarea, select, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--forest-soft); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--forest-deep); }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .66; }
input:disabled, select:disabled, textarea:disabled { background: var(--subtle); }
:focus-visible { outline: 3px solid #6c993d; outline-offset: 4px; border-radius: 5px; }
::selection { background: var(--lime); color: var(--forest); }
[hidden] { display: none !important; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 14px; color: var(--ink); font-weight: 700; line-height: 1.4; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { font-size: clamp(27px, 3vw, 40px); }
h2 { font-size: clamp(22px, 2.4vw, 29px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin: 0 0 16px; overflow-wrap: anywhere; }
p:last-child { margin-bottom: 0; }
small { font-size: 13px; }
strong { color: var(--ink); font-weight: 700; }
hr, .divider { margin: 26px 0; border: 0; border-top: 1px solid var(--line); }
ul, ol { margin: 0 0 20px; padding-inline-start: 25px; }
li + li { margin-top: 7px; }
dl { margin: 0; }
dt { color: var(--muted); font-size: 14px; }
dd { margin: 4px 0 18px; color: var(--ink); overflow-wrap: anywhere; }
pre { overflow: auto; padding: 18px; border-radius: var(--radius-sm); background: var(--subtle); }
code { font-size: .9em; overflow-wrap: anywhere; }
mark { color: var(--forest); background: var(--lime-light); }

.container { width: min(100% - 64px, var(--container)); margin-inline: auto; }
.container .container { width: 100%; padding-inline: 0; }
.main-content { min-height: 56vh; padding-block: 44px 72px; outline: none; }
.section { margin-block: 56px; }
.section:first-child { margin-top: 0; }
.flash-notice + .section { margin-top: 0; }
.section:last-child { margin-bottom: 0; }
.section-heading, .page-heading { margin-bottom: 30px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 18px; }
.section-heading h2, .page-heading h1 { margin-bottom: 10px; }
.section-heading > div, .page-heading > div { min-width: 0; }
.page-heading .lead, .page-heading .muted { max-width: 810px; }
.section-heading .lead { max-width: 660px; }
.eyebrow, .hero-kicker { margin-bottom: 12px; color: var(--forest-soft); font-size: 13px; font-weight: 700; letter-spacing: .035em; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow::before { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #86b543; content: ""; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.8; }
.muted { color: var(--muted); }
.help { display: block; color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 7px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-small { font-size: 14px; }
.nowrap { white-space: nowrap; }
.narrow { max-width: 780px; margin-inline: auto; }
.wide { width: 100%; }
.icon { display: inline-block; width: 20px; height: 20px; vertical-align: -.22em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: -100px; left: 16px; padding: 12px 20px; background: var(--forest); color: white; border-radius: 9px; }
.skip-link:focus { top: 12px; color: white; }

/* Shared header and navigation */
.site-header { position: sticky; z-index: 80; top: 0; min-height: var(--header); border-bottom: 1px solid rgba(211, 224, 212, .8); background: rgba(255, 255, 255, .97); }
.header-inner { width: min(100% - 64px, 1344px); min-height: var(--header); margin-inline: auto; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; flex-direction: column; flex-shrink: 0; text-decoration: none; }
.brand img { display: block; width: 153px; height: auto; }
.brand-caption { display: block; max-width: 153px; margin-top: -1px; padding-left: 32px; color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.4; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.primary-navigation { display: flex; align-items: center; justify-content: center; flex: 1; gap: 3px; }
.nav-link { display: inline-flex; min-height: 44px; padding: 9px 12px; align-items: center; gap: 10px; color: var(--body); font-size: 14px; font-weight: 500; line-height: 1.5; text-decoration: none; border-radius: 10px; border: 0; background: transparent; transition: background-color .18s, color .18s; }
.nav-link span { min-width: 0; overflow-wrap: anywhere; }
.nav-link .icon { width: 19px; height: 19px; }
.nav-link:hover { background: var(--subtle); color: var(--forest); }
.nav-link.active { background: #eaf3e1; color: var(--forest); font-weight: 700; }
.primary-navigation .nav-link.active { background: transparent; color: var(--forest); position: relative; }
.primary-navigation .nav-link.active::after { position: absolute; content: ""; bottom: 3px; left: 12px; right: 12px; height: 3px; border-radius: 3px; background: #9bc651; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.header-actions .btn { min-height: 42px; padding: 10px 16px; font-size: 14px; }
.mobile-menu-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--forest); }
.mobile-menu-toggle .icon { width: 23px; height: 23px; }
.mobile-navigation-extra { display: none; }
.menu-backdrop { position: fixed; z-index: 70; inset: var(--header) 0 0; background: rgba(9, 32, 25, .28); border: 0; padding: 0; border-radius: 0; }
.menu-open { overflow: hidden; }
.noscript-navigation { display: flex; flex-wrap: wrap; gap: 12px; padding-block: 12px; font-size: 13px; }
.account-menu { position: relative; }
.account-menu summary { display: flex; cursor: pointer; align-items: center; gap: 10px; padding: 5px; border-radius: 12px; list-style: none; color: var(--ink); }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary::marker { display: none; content: ""; }
.account-menu[open] summary { background: var(--subtle); }
.avatar { display: flex; width: 37px; height: 37px; align-items: center; justify-content: center; color: var(--forest); background: #edf4e4; border: 1px solid #e0ebd5; border-radius: 50%; flex-shrink: 0; }
.avatar .icon { width: 19px; height: 19px; }
.account-name { display: block; max-width: 130px; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.55; }
.account-name small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.chevron { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -3px 5px 0; }
.account-dropdown { position: absolute; z-index: 95; right: 0; top: calc(100% + 13px); width: 266px; max-width: calc(100vw - 32px); padding: 9px; background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-raised); }
.account-dropdown-label { padding: 12px; margin-bottom: 6px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.account-dropdown .nav-link { width: 100%; }
.account-dropdown form { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 6px; }
.logout-button { text-align: left; color: #93414a; }
.logout-button:hover { background: var(--danger-bg); color: var(--danger); }
.workspace-navigation-wrap { background: white; border-bottom: 1px solid var(--line); }
.workspace-navigation { display: flex; gap: 10px; padding-block: 13px; overflow-x: auto; scrollbar-width: thin; }
.workspace-navigation .nav-link { white-space: nowrap; flex-shrink: 0; font-size: 13px; }

/* Public landing page, opportunity cards, editorial content */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 58px); border-radius: 30px; background: var(--forest); color: #e8f2e8; }
.hero::before { content: ""; position: absolute; right: -160px; top: -160px; width: 560px; height: 560px; border: 1px solid rgba(227, 244, 207, .09); border-radius: 50%; pointer-events: none; }
.hero::after { content: ""; position: absolute; left: -140px; bottom: -230px; width: 440px; height: 440px; border: 1px solid rgba(227, 244, 207, .09); border-radius: 50%; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 44px; }
.hero-copy { min-width: 0; padding-block: 10px; }
.hero-copy.stack { gap: 0; }
.hero-kicker { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; margin-bottom: 22px; padding: 7px 13px; border: 1px solid rgba(236, 250, 220, .25); color: #e2eed5; border-radius: 99px; font-size: 12px; font-weight: 500; }
.hero-kicker::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.hero h1, .hero h2, .hero h3 { color: white; }
.display-title { font-size: clamp(33px, 4.2vw, 58px); line-height: 1.4; letter-spacing: -.035em; font-weight: 700; margin-bottom: 22px; }
.accent-text { color: var(--lime); }
.hero .lead { color: #ccdfd1; max-width: 480px; font-size: 16px; }
.hero .actions { margin-top: 28px; }
.hero .btn-primary { color: var(--forest-deep); background: var(--lime); border-color: var(--lime); }
.hero .btn-primary:hover { background: #dcff93; }
.hero .btn-secondary, .hero .btn-ghost { color: white; border-color: rgba(226, 242, 215, .35); background: transparent; }
.hero .btn-secondary:hover, .hero .btn-ghost:hover { color: white; background: rgba(255, 255, 255, .08); }
.hero strong { color: var(--lime); }
.hero .help { color: #c4d9c9; font-size: 11px; margin-top: 22px; }
.hero-art, .hero-visual { position: relative; width: 100%; min-width: 0; }
.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art > svg { width: 100%; max-height: 395px; height: auto; }
.hero-visual { min-height: 330px; }
.hero-visual > svg { display: block; width: 100%; height: auto; max-height: 400px; }
.hero-orbit { position: absolute; right: 0; bottom: 0; width: 199px; padding: 17px 20px; border: 1px solid #e1eed2; background: #fcfff5; color: #5b7562; font-size: 12px; line-height: 1.7; box-shadow: 0 12px 30px rgba(7, 37, 24, .13); border-radius: 15px; transform: rotate(4deg); }
.hero-orbit strong { display: block; margin-top: 2px; color: var(--forest); font-size: 16px; }
.hero-note { color: #bfd3c5; font-size: 12px; margin-top: 24px; }
.hero-note .icon { width: 16px; height: 16px; margin-right: 4px; }
.quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: white; border-radius: 18px; padding: 7px 0; margin-top: 22px; }
.quick-links > * { padding: 18px 25px; text-decoration: none; color: var(--body); min-width: 0; }
.quick-links > * + * { border-left: 1px solid var(--line); }
.quick-links a { display: flex; align-items: center; gap: 15px; }
.quick-links a > .icon { width: 24px; height: 24px; color: var(--forest); }
.quick-links strong { display: block; font-size: 15px; line-height: 1.5; }
.quick-links small { display: block; color: var(--muted); margin-top: 3px; }
.quick-links a:hover { background: var(--subtle); }
.quick-links.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; border: 0; background: transparent; border-radius: 0; padding: 0; margin-top: 0; }
.quick-links.grid > a { align-items: flex-start; gap: 10px; border: 1px solid var(--line); padding: 25px; background: white; text-decoration: none; transition: border-color .2s, background-color .2s; }
.quick-links.grid > a:hover { border-color: #bdd394; background: #f4f9ea; }
.quick-links.grid > a .number-step { margin-bottom: 8px; }
.quick-links.grid > a h3 { margin-bottom: 1px; font-size: 18px; }
.quick-links.grid > a p { font-size: 12px; margin-bottom: 5px; }
.quick-links.grid > a .text-link { font-size: 12px; margin-top: auto; padding-top: 9px; }
.section-heading > .eyebrow { width: 100%; }
.section-heading > h2, .section-heading > p { flex-basis: 100%; }
.section-heading:has(> .eyebrow) { display: block; }
.section-link, .text-link, .link-arrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; text-decoration: none; }
.section-link:hover, .text-link:hover, .link-arrow:hover { text-decoration: underline; }
.opportunity-card { position: relative; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.opportunity-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.opportunity-card > .card-body { flex: 1; display: flex; flex-direction: column; }
.opportunity-card .actions { margin-top: auto; padding-top: 20px; }
.opportunity-card h3 a { color: var(--ink); text-decoration: none; }
.opportunity-card h3 a:hover { text-decoration: underline; }
.opportunity-type { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px; color: var(--forest-soft); font-size: 12px; font-weight: 700; }
.opportunity-cover { display: flex; height: 156px; align-items: center; justify-content: center; background: #eef4df; color: #41684b; }
.opportunity-cover .icon { width: 55px; height: 55px; stroke-width: 1.2; }
.project-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.project-meta > span, .project-meta > div { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.project-meta .icon { width: 16px; height: 16px; }
.feature-card { padding: 27px; background: #f0f5e8; border-radius: var(--radius); }
.feature-card > .icon { width: 28px; height: 28px; margin-bottom: 20px; color: var(--forest); }
.feature-card p { color: var(--muted); font-size: 14px; }
.feature-card h3 { font-size: 19px; }
.number-step { display: inline-flex; width: 42px; height: 42px; margin-bottom: 18px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 13px; background: var(--lime-light); color: var(--forest); font-size: 17px; font-weight: 700; }
.card.row:has(> .number-step) { flex-wrap: nowrap; align-items: flex-start; }
.card.row > .number-step { margin-bottom: 0; }
.card.row > .number-step + div { flex: 1; }
.card.row > .number-step + div h3 { font-size: 17px; margin-bottom: 6px; }
.card.row > .number-step + div p { font-size: 13px; }
.banner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 32px; color: var(--forest); background: #edf5df; border: 1px solid #dae9c9; border-radius: var(--radius); }
.banner h2, .banner h3 { margin-bottom: 8px; }
.banner .actions { margin: 0; }
.pill { display: inline-flex; align-items: center; padding: 5px 11px; gap: 6px; color: var(--forest-soft); background: var(--subtle); border: 1px solid var(--line); border-radius: 99px; font-size: 12px; }
.prose { max-width: 850px; line-height: 1.95; overflow-wrap: anywhere; }
.prose h2 { margin-top: 34px; font-size: 24px; }
.prose h3 { margin-top: 26px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin-top: 12px; }
.prose blockquote { margin: 24px 0; border-left: 3px solid #95c45e; background: var(--subtle); padding: 18px 24px; }
.article-meta { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.breadcrumb a { text-decoration: none; }
.faq-item, details.card { border: 1px solid var(--line); background: white; border-radius: 14px; }
.faq-item + .faq-item { margin-top: 12px; }
.faq-item summary, details.card > summary { display: list-item; cursor: pointer; padding: 20px 24px; font-size: 17px; font-weight: 700; color: var(--ink); }
.faq-item > div, details.card > div { padding: 0 24px 22px; }
details.card.card-body { padding: 0; }
details.card.card-body > summary { padding: 20px 24px; }
details.card.card-body > p { padding: 0 24px 22px; font-size: 14px; color: var(--muted); }

/* Cards, shared spacing and layouts */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid > *, .form-grid > *, .split > * { min-width: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr); align-items: start; gap: 28px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.stack > *, .stack-sm > * { min-width: 0; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; }
.row > *, .row-between > * { min-width: 0; }
.row:has(> input[type="checkbox"]), .row:has(> input[type="radio"]) { flex-wrap: nowrap; align-items: flex-start; gap: 10px; font-size: 14px; }
.row > input[type="checkbox"], .row > input[type="radio"] { margin: 5px 0 0; }
.row > input[type="checkbox"] + span, .row > input[type="radio"] + span { flex: 1; }
.gap { gap: 14px; }
.card { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }
.card-body { padding: 28px; }
.card-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.card-header h2, .card-header h3, .card-header p { margin-bottom: 0; }
.card-header h2 { font-size: 21px; }
.card-header h3 { font-size: 18px; }
.card > .card { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.card + .card, .card + .notice, .notice + .card { margin-top: 22px; }
.grid > .card, .stack > .card, .stack-sm > .card, .grid > .notice, .stack > .notice, .stack-sm > .notice { margin-top: 0; }
.card-footer { padding: 18px 28px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: #fafcf8; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.stat { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 17px; min-width: 0; }
.stat > .muted, .stat > span, .stat > p, .stat h3 { display: block; font-size: 13px; margin-bottom: 6px; }
.metric { display: block; color: var(--forest); font-size: clamp(27px, 3vw, 38px); font-weight: 700; line-height: 1.45; font-variant-numeric: tabular-nums; letter-spacing: -.045em; overflow-wrap: anywhere; }
.stat small { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }
.stat .icon { margin-bottom: 12px; color: var(--forest-soft); }
.stat.featured { background: var(--forest); border-color: var(--forest); color: white; }
.stat.featured .metric { color: var(--lime); }
.stat.featured .muted, .stat.featured small { color: #c9dbcc; }
.score-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 20px; background: #eef6e5; border: 1px solid #d9e8ca; border-radius: 15px; margin-block: 20px; }
.score-summary strong { font-size: 26px; font-variant-numeric: tabular-nums; }
.empty { padding: 48px 28px; text-align: center; border: 1px dashed #cddccc; border-radius: var(--radius); background: #fbfdf8; }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px; margin-bottom: 18px; border-radius: 19px; background: #edf4e4; color: #587b4e; }
.empty-icon .icon { width: 29px; height: 29px; }
.empty h2 { font-size: 22px; margin-bottom: 10px; }
.empty p { max-width: 590px; margin-inline: auto; color: var(--muted); font-size: 15px; }
.empty .actions { justify-content: center; margin-top: 23px; }
.empty .actions:empty { display: none; }
.notice { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 22px; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.notice strong { color: inherit; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice-info { color: var(--info); background: var(--info-bg); border-color: #d2e6f2; }
.notice-success { color: var(--success); background: var(--success-bg); border-color: #cde6d5; }
.notice-warning { color: var(--warning); background: var(--warning-bg); border-color: #ebdfb7; }
.notice-error { color: var(--danger); background: var(--danger-bg); border-color: #f0d1cf; }
.validation-summary ul { margin-top: 10px; padding-left: 22px; }
.validation-summary li + li { margin-top: 4px; }
.flash-notice { margin-bottom: 24px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; min-height: 26px; border-radius: 7px; font-size: 11px; font-weight: 700; line-height: 1.6; background: #eff2ec; color: #5d7167; white-space: normal; overflow-wrap: anywhere; vertical-align: middle; }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; opacity: .78; }
.badge-success { color: var(--success); background: var(--success-bg); }
.badge-warning { color: var(--warning); background: var(--warning-bg); }
.badge-error { color: var(--danger); background: var(--danger-bg); }
.badge-info { color: var(--info); background: var(--info-bg); }
.badge-neutral { color: #5d7167; background: #eff2ec; }

/* Fields and actions */
form { margin: 0; }
label { color: var(--ink); }
fieldset { min-width: 0; margin: 0 0 24px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
legend { color: var(--ink); padding-inline: 8px; font-size: 17px; font-weight: 700; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea { width: 100%; max-width: 100%; min-width: 0; min-height: 47px; padding: 11px 14px; border: 1px solid #cddacc; border-radius: 10px; background: white; color: #203f33; font-size: 16px; line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #84958a; opacity: 1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #759950; box-shadow: 0 0 0 3px rgba(140, 184, 94, .15); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: #bc5e64; background: #fffafa; }
input[readonly], textarea[readonly] { color: var(--muted); background: #f4f7f1; }
input[type="date"], input[type="datetime-local"], input[type="time"] { min-width: 0; -webkit-appearance: none; }
input[type="checkbox"], input[type="radio"] { display: inline-block; width: 18px; height: 18px; margin: 3px 8px 0 0; flex-shrink: 0; accent-color: var(--forest-soft); vertical-align: -.17em; cursor: pointer; }
input[type="file"] { padding: 8px !important; font-size: 13px !important; line-height: 1.75 !important; color: var(--muted) !important; }
input[type="file"]::file-selector-button { padding: 7px 10px; margin-right: 12px; border: 0; border-radius: 7px; background: #edf4e3; color: var(--forest); font: inherit; font-weight: 700; cursor: pointer; }
select { padding-right: 32px; }
select[multiple] { min-height: 146px; padding: 8px; }
select[multiple] option { padding: 7px; border-radius: 5px; }
textarea { display: block; min-height: 130px; resize: vertical; }
textarea[rows="2"] { min-height: 94px; }
textarea[rows="3"] { min-height: 115px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 22px; }
.field { display: flex; min-width: 0; flex-direction: column; align-items: stretch; }
.field > label, .field > .label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; line-height: 1.7; }
.field .help { margin-bottom: 0; }
.field-error { display: block; color: var(--danger); font-size: 13px; margin-top: 6px; }
.field + .field { margin-top: 21px; }
.form-grid > .field + .field, .grid > .field + .field, .stack > .field + .field, .stack-sm > .field + .field { margin-top: 0; }
.full { grid-column: 1 / -1; }
.required { color: var(--danger); margin-left: 4px; }
.form-check { display: flex; gap: 8px; align-items: start; color: var(--body); font-size: 14px; }
.form-check input { margin-top: 5px; }
.form-check label { font-weight: 400; }
.check-label { display: flex !important; gap: 9px; align-items: start; font-weight: 400 !important; color: var(--body); }
.check-label input { margin-top: 5px; }
.consent-row { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fcfdf9; }
.consent-row label { display: flex; gap: 9px; font-size: 14px; }
.form-actions, .actions { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; }
.form-actions { padding-top: 24px; border-top: 1px solid var(--line); margin-top: 28px; }
.actions > form { display: inline-block; }
.actions .help { margin: 0; }
.btn { display: inline-flex; gap: 9px; align-items: center; justify-content: center; min-height: 46px; max-width: 100%; padding: 11px 21px; border: 1px solid transparent; border-radius: 10px; color: var(--forest); background: var(--subtle); font-size: 14px; font-weight: 700; line-height: 1.5; text-align: center; text-decoration: none; white-space: normal; transition: background-color .17s, border-color .17s, box-shadow .17s; }
.btn:hover { box-shadow: 0 3px 10px rgba(21, 58, 40, .055); }
.btn-primary { background: var(--forest); border-color: var(--forest); color: white; }
.btn-primary:hover { background: var(--forest-soft); border-color: var(--forest-soft); color: white; }
.btn-secondary { background: white; border-color: #ccd9c9; color: var(--forest); }
.btn-secondary:hover { background: #f0f5e9; border-color: #b5c8ac; }
.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: var(--subtle); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: white; }
.btn-danger:hover { background: #902b34; border-color: #902b34; color: white; }
.btn-sm { min-height: 35px; padding: 7px 12px; font-size: 12px; border-radius: 8px; gap: 6px; }
.btn-sm .icon { width: 16px; height: 16px; }
.btn-block { display: flex; width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn.is-copied { background: var(--success-bg); border-color: #b2d8c0; color: var(--success); }
.btn.is-copied::after { content: "✓"; font-size: 15px; }
.is-submitting { opacity: .85; }
.filter-bar { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(150px, .7fr) auto; align-items: end; gap: 15px; padding: 20px; border: 1px solid var(--line); background: white; border-radius: 15px; margin-bottom: 24px; }
.filter-bar .field + .field { margin-top: 0; }
.auth-wrap, .auth-container { max-width: 520px; margin: 20px auto 50px; }
.auth-card { width: min(100%, 520px); margin-inline: auto; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.auth-card > .card-body { padding: 0; }
.auth-card > .card-body.stack { gap: 14px; }
.auth-card > .card-body.stack > h1, .auth-card > .card-body.stack > p, .auth-card > .card-body.stack > .eyebrow { margin-bottom: 0; }
.auth-card > .card-body > form { margin-top: 7px; }
.auth-card h1 { font-size: 28px; margin-bottom: 12px; }
.auth-card .actions { margin-top: 24px; }
.auth-card > form > .btn { margin-top: 24px; }
.auth-card .divider { margin: 25px 0 20px; }
.auth-note { margin-top: 24px; text-align: center; color: var(--muted); font-size: 13px; }
.auth-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 16px; color: var(--forest); background: var(--lime-light); }
.auth-icon .icon { width: 27px; height: 27px; }

/* Workflow, timeline, review and tabular records */
.tabs { display: flex; flex-wrap: nowrap; gap: 7px; margin: 0 0 26px; padding: 5px; background: #edf2e9; border-radius: 13px; overflow-x: auto; scrollbar-width: thin; }
.tab { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 10px 17px; border: 0; border-radius: 9px; background: transparent; font-size: 13px; font-weight: 700; line-height: 1.6; color: var(--muted); text-decoration: none; white-space: nowrap; }
.tab:hover { background: rgba(255, 255, 255, .7); color: var(--forest); }
.tab.active, .tab[aria-selected="true"], .tab[aria-current="page"], .tabs > a.active { background: white; color: var(--forest); box-shadow: 0 2px 5px rgba(35, 64, 34, .07); }
.stepper { display: flex; justify-content: space-between; gap: 14px; padding: 23px 25px; margin-bottom: 28px; background: #f0f5e9; border: 1px solid #e0e9d8; border-radius: 16px; list-style: none; counter-reset: steps; }
.step { position: relative; display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; margin: 0; color: #6c7f6d; font-size: 13px; text-decoration: none; line-height: 1.55; }
.step + .step { margin-top: 0; }
.step-number, .step > span:first-child, .step > b, .step > strong { display: inline-flex; width: 29px; height: 29px; flex-shrink: 0; align-items: center; justify-content: center; border: 1px solid #cfdcc5; border-radius: 50%; color: inherit; background: #fbfdf8; font-size: 12px; font-weight: 700; }
.step.active, .step[aria-current="step"] { color: var(--forest); font-weight: 700; }
.step.active .step-number, .step.active > span:first-child, .step.active > b, .step.active > strong, .step[aria-current="step"] .step-number { background: var(--forest); border-color: var(--forest); color: var(--lime); }
.step.completed { color: var(--forest-soft); }
.step.completed .step-number { border-color: #b5d188; background: #e1eecb; }
.step:not(:last-child)::after { content: ""; flex: 1; min-width: 6px; height: 1px; margin-inline: 5px; background: #cdddc2; }
.progress { display: block; height: 7px; border-radius: 10px; background: #e5eddc; overflow: hidden; }
.progress > span, .progress > div { display: block; height: 100%; background: #87b54b; border-radius: 10px; }
progress { width: 100%; height: 7px; appearance: none; border: none; border-radius: 10px; background: #e5eddc; color: #87b54b; }
progress::-webkit-progress-bar { background: #e5eddc; border-radius: 10px; }
progress::-webkit-progress-value { background: #87b54b; border-radius: 10px; }
progress::-moz-progress-bar { background: #87b54b; border-radius: 10px; }
.timeline { position: relative; list-style: none; padding: 2px 0; margin: 0; }
.timeline-item { position: relative; margin: 0; padding: 0 0 28px 31px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; width: 9px; height: 9px; left: 2px; top: 9px; background: #87ad57; border-radius: 50%; box-shadow: 0 0 0 4px #eff5e7; }
.timeline-item:not(:last-child)::after { content: ""; position: absolute; width: 1px; background: #d8e4ce; left: 6px; top: 23px; bottom: 4px; }
.timeline-item h3, .timeline-item strong { display: block; font-size: 15px; margin-bottom: 4px; }
.timeline-item time, .timeline-item .muted { display: block; font-size: 12px; margin-bottom: 5px; }
.timeline-item p { font-size: 14px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist > li { position: relative; padding: 13px 0 13px 29px; margin: 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.checklist > li:last-child { border-bottom: 0; }
.checklist > li::before { position: absolute; content: "✓"; top: 14px; left: 0; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; background: #ecf4e4; border: 1px solid #d9e7c7; border-radius: 50%; color: #4a773e; font-size: 11px; font-weight: 700; }
.checklist > li.pending::before { content: ""; background: white; }
.checklist > li .badge { margin-top: 5px; }
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: white; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #c6d5be #f4f7ef; }
.table-wrap table { min-width: 620px; }
table, .data-table { width: 100%; border-collapse: collapse; border-spacing: 0; font-size: 13px; line-height: 1.65; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { background: #f2f6ed; color: #576d5b; font-size: 12px; font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfdf9; }
td a { font-weight: 500; }
td small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
td .actions { gap: 6px; }
td .btn { white-space: nowrap; }
td input:not([type="checkbox"]):not([type="radio"]), td select { min-height: 37px; padding: 7px 10px; font-size: 13px; }
caption { text-align: left; padding: 13px 16px; font-size: 14px; font-weight: 700; color: var(--ink); }
.table-wrap + .help { margin-top: 10px; }
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 36px; padding: 7px 10px; text-align: center; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; text-decoration: none; }
.pagination .active { background: var(--forest); color: white; border-color: var(--forest); }
.notification { padding: 20px; border-bottom: 1px solid var(--line); }
.notification:last-child { border-bottom: 0; }
.notification.unread { background: #f2f8e9; }
.notification time { font-size: 12px; color: var(--muted); }
.upload-item { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: #fff; }
.upload-item h3 { font-size: 17px; }
.upload-item .file-name { font-size: 13px; overflow-wrap: anywhere; }
.upload-item + .upload-item { margin-top: 16px; }

/* Staff workspace */
.section-admin { background: #f5f7f1; }
.app-header { position: sticky; }
.app-header .header-inner { max-width: none; width: calc(100% - 46px); gap: 44px; }
.app-header .brand img { width: 142px; }
.header-workspace-label { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.workspace-dot { width: 6px; height: 6px; border-radius: 50%; background: #82aa52; }
.admin-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); width: 100%; }
.admin-sidebar { position: sticky; top: var(--header); display: flex; flex-direction: column; align-self: start; max-height: calc(100dvh - var(--header)); min-height: calc(100dvh - var(--header)); padding: 20px 15px 18px; background: white; border-right: 1px solid var(--line); overflow-y: auto; scrollbar-width: thin; }
.sidebar-heading { padding: 17px 13px 10px; color: #7b8b7c; font-size: 10px; font-weight: 700; letter-spacing: .045em; }
.admin-sidebar > .sidebar-heading { padding-top: 0; }
.sidebar-navigation { display: flex; flex-direction: column; gap: 4px; }
.sidebar-navigation .nav-link { min-height: 43px; padding: 11px 13px; font-size: 12px; gap: 11px; }
.sidebar-navigation .nav-link.active { background: var(--forest); color: white; box-shadow: 0 4px 10px rgba(18, 61, 49, .08); }
.sidebar-navigation .nav-link.active .icon { color: var(--lime); }
.sidebar-bottom { padding-top: 25px; margin-top: auto; }
.sidebar-bottom .nav-link { color: var(--muted); font-size: 12px; }
.sidebar-bottom p { font-size: 10px; color: #92a090; padding: 13px 13px 0; }
.admin-main { width: 100%; max-width: 1680px; min-width: 0; margin-inline: auto; padding: 34px clamp(24px, 3vw, 46px) 64px; }
.admin-main .page-heading { margin-bottom: 24px; }
.admin-main h1 { font-size: clamp(25px, 2.5vw, 33px); }
.admin-main .lead { font-size: 15px; }
.admin-main .card-body { padding: 24px; }
.admin-main .card-header { padding: 20px 24px; }
.admin-main .grid { gap: 18px; }
.admin-main .stats { gap: 15px; }
.admin-main .split { grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 22px; }
.admin-main .container { width: 100%; }
.project-switcher { max-width: 330px; }

/* Footer */
.site-footer { background: #f0f4e9; border-top: 1px solid #dfe8d4; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-block: 47px 40px; }
.footer-brand .brand { align-items: flex-start; }
.footer-brand p { margin-top: 15px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.footer-main nav { display: flex; flex-direction: column; gap: 9px; }
.footer-main nav h2 { font-size: 14px; margin: 0 0 4px; }
.footer-main nav a { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer-main nav a:hover { color: var(--forest); text-decoration: underline; }
.footer-bottom { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid #d8e2ce; color: #748271; font-size: 11px; }
.footer-bottom > div { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-bottom > span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.footer-bottom a { color: #637661; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* Printable applications and certification forms */
.print-only { display: none; }
.print-sheet { width: 100%; max-width: 800px; margin: 0 auto 26px; padding: 40px; border: 1px solid var(--line); border-radius: 5px; background: white; color: #17251d; font-size: 15px; line-height: 1.8; }
.print-sheet h1 { font-size: 24px; text-align: center; }
.print-sheet h2 { font-size: 19px; margin-top: 24px; }
.print-sheet h3 { font-size: 16px; margin-top: 20px; }
.print-sheet .print-heading { text-align: center; margin-bottom: 28px; }
.print-sheet .print-heading p { margin-bottom: 5px; }
.print-sheet .print-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; margin: 20px 0; }
.print-field { display: inline; overflow-wrap: anywhere; }
.print-field .line, .print-line { display: inline-block; min-width: 120px; max-width: 100%; min-height: 26px; border-bottom: 1px dotted #81877d; vertical-align: bottom; }
.print-section { margin-block: 22px; }
.print-section > h2, .print-section > h3 { margin-top: 0; }
.print-signatures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px; margin-top: 40px; padding-top: 15px; text-align: center; }
.print-signatures p { margin-bottom: 9px; font-size: 14px; }
.print-sheet table { min-width: 0; }
.print-sheet th, .print-sheet td { padding: 9px; }
.print-sheet a { color: inherit; text-decoration: none; }

@media (min-width: 1440px) {
  .admin-main .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
  .header-inner { gap: 15px; width: calc(100% - 44px); }
  .brand img { width: 140px; }
  .primary-navigation .nav-link { padding-inline: 9px; font-size: 12px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { font-size: 12px; padding-inline: 12px; }
  .account-name { max-width: 100px; }
  .hero-grid { gap: 24px; }
  .hero .lead { font-size: 15px; }
  .admin-shell { grid-template-columns: 224px minmax(0, 1fr); }
  .sidebar-navigation .nav-link { font-size: 11px; padding-inline: 10px; }
  .sidebar-heading { padding-inline: 10px; }
  .admin-main { padding-inline: 24px; }
  .admin-main .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-main .split { grid-template-columns: 1fr; }
  .admin-main .grid-3, .admin-main .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  :root { --header: 75px; }
  .container { width: calc(100% - 44px); }
  .header-inner { gap: 16px; }
  .primary-navigation { display: none; position: absolute; left: 16px; right: 16px; top: calc(var(--header) + 9px); z-index: 90; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow-raised); max-height: calc(100dvh - var(--header) - 28px); overflow-y: auto; }
  .primary-navigation.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
  .primary-navigation .nav-link { min-height: 48px; font-size: 15px; padding-inline: 15px; }
  .primary-navigation .nav-link.active { background: var(--lime-light); }
  .primary-navigation .nav-link.active::after { display: none; }
  .mobile-navigation-extra { display: flex; flex-direction: column; gap: 3px; }
  .mobile-navigation-extra .btn { margin-top: 10px; }
  .mobile-menu-toggle { display: inline-flex; }
  .header-actions .btn { font-size: 13px; }
  .account-name { max-width: 170px; }
  .hero { padding: 35px; border-radius: 25px; }
  .hero-grid { grid-template-columns: 1fr .85fr; gap: 15px; }
  .display-title { font-size: 38px; }
  .quick-links > * { padding: 16px; }
  .quick-links strong { font-size: 13px; }
  .quick-links small { font-size: 11px; }
  .quick-links.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .stepper { gap: 10px; padding-inline: 18px; }
  .step { gap: 7px; font-size: 12px; }
  .step:not(:last-child)::after { margin-inline: 2px; }
  .app-header .header-inner { gap: 24px; }
  .header-workspace-label { font-size: 11px; }
  .admin-shell { display: block; }
  .admin-sidebar { display: none; position: fixed; left: 0; top: var(--header); bottom: 0; z-index: 75; width: 275px; max-width: calc(100vw - 48px); max-height: calc(100dvh - var(--header)); min-height: 0; padding: 23px 17px; box-shadow: 12px 0 30px rgba(26, 55, 35, .08); }
  .admin-sidebar.is-open { display: flex; }
  .sidebar-navigation .nav-link { min-height: 44px; font-size: 13px; }
  .sidebar-heading { font-size: 11px; }
  .admin-main { padding: 30px 26px 58px; }
  .admin-main .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-main .stat { padding: 17px; }
  .admin-main .metric { font-size: 29px; }
  .admin-main .stat > .muted, .admin-main .stat > span { font-size: 11px; }
  .footer-main { gap: 28px; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 90px; }
  .container { width: calc(100% - 36px); }
  .header-inner { width: calc(100% - 32px); }
  .main-content { padding-block: 27px 45px; }
  .section { margin-block: 40px; }
  .section-heading, .page-heading { margin-bottom: 23px; }
  .section-heading { align-items: start; }
  .lead { font-size: 16px; }
  .brand img { width: 135px; }
  .brand-caption { padding-left: 28px; font-size: 9px; }
  .desktop-register { display: none; }
  .header-actions .login-button { min-height: 40px; padding-inline: 8px; font-size: 12px; }
  .account-name { max-width: 110px; font-size: 12px; }
  .account-name small { font-size: 10px; }
  .account-menu summary { gap: 7px; padding: 3px; }
  .chevron { margin-right: 3px; }
  .avatar { width: 34px; height: 34px; }
  .workspace-navigation { gap: 6px; padding-block: 10px; }
  .workspace-navigation .nav-link { min-height: 40px; padding: 9px 10px; font-size: 12px; }
  .workspace-navigation .nav-link .icon { width: 17px; height: 17px; }
  .hero { padding: 27px; border-radius: 23px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { padding: 0; }
  .hero-kicker { font-size: 10px; padding: 6px 10px; margin-bottom: 18px; }
  .display-title { font-size: clamp(32px, 7.3vw, 48px); margin-bottom: 18px; }
  .hero .lead { max-width: 520px; font-size: 14px; }
  .hero .actions { margin-top: 23px; }
  .hero-art { max-width: 360px; margin-inline: auto; }
  .hero-art > svg { max-height: 260px; }
  .hero-visual > svg { max-height: 290px; }
  .hero-visual { min-height: 240px; }
  .hero-orbit { width: 172px; padding: 13px 16px; font-size: 10px; bottom: 0; }
  .hero-orbit strong { font-size: 14px; }
  .hero-note { margin-top: 18px; }
  .quick-links { grid-template-columns: 1fr; margin-top: 17px; padding: 0; overflow: hidden; border-radius: 15px; }
  .quick-links > * { padding: 16px 20px; }
  .quick-links > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .quick-links strong { font-size: 14px; }
  .quick-links small { font-size: 12px; }
  .quick-links a > .icon { width: 23px; height: 23px; }
  .quick-links.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; }
  .quick-links.grid > a { padding: 19px; border-radius: 15px; gap: 8px; }
  .quick-links.grid > a h3 { font-size: 16px; }
  .quick-links.grid > a p, .quick-links.grid > a .text-link { font-size: 11px; }
  .quick-links.grid > a .number-step { width: 35px; height: 35px; font-size: 14px; border-radius: 10px; margin-bottom: 6px; }
  .grid { gap: 17px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { gap: 13px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 18px; }
  .stat > .muted, .stat > span, .stat > p { font-size: 12px; }
  .metric { font-size: 29px; }
  .card, .opportunity-card { border-radius: 16px; }
  .card-body, .admin-main .card-body { padding: 22px; }
  .card-header, .admin-main .card-header { padding: 18px 22px; }
  .card-header h2 { font-size: 20px; }
  .card-footer { padding: 17px 22px; }
  .feature-card { padding: 23px; }
  .banner { padding: 26px; }
  .banner .actions { width: 100%; }
  .banner .actions .btn { flex: 1; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .field > label, .field > .label { font-size: 14px; }
  .btn { min-height: 45px; padding-inline: 17px; font-size: 13px; }
  .btn-sm { min-height: 36px; padding: 8px 11px; font-size: 12px; }
  .actions { gap: 9px; }
  .actions .btn { min-width: 0; }
  .notice { padding: 15px 17px; font-size: 13px; }
  .empty { padding: 35px 20px; }
  .empty h2 { font-size: 20px; }
  .empty p { font-size: 14px; }
  .tabs { border-radius: 11px; margin-bottom: 22px; }
  .tab { padding: 9px 12px; font-size: 12px; }
  .stepper { padding: 16px 13px; gap: 8px; border-radius: 14px; }
  .step { flex-direction: column; align-items: center; text-align: center; font-size: 10px; gap: 7px; }
  .step:not(:last-child)::after { display: none; }
  .step-number, .step > span:first-child, .step > b, .step > strong { width: 27px; height: 27px; font-size: 11px; }
  .filter-bar { grid-template-columns: 1fr; padding: 18px; gap: 13px; }
  .filter-bar .btn { width: 100%; }
  .auth-wrap, .auth-container { margin-top: 10px; margin-bottom: 20px; }
  .auth-card { padding: 26px; border-radius: 20px; }
  .auth-card h1 { font-size: 25px; }
  .auth-card .lead { font-size: 14px; }
  .app-header .header-inner { width: calc(100% - 32px); gap: 15px; }
  .app-header .brand img { width: 125px; }
  .header-workspace-label { display: none; }
  .admin-main { padding: 26px 18px 46px; }
  .admin-main .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .admin-main .stat { padding: 17px; }
  .admin-main .stat > .muted, .admin-main .stat > span { font-size: 12px; }
  .admin-main .grid-3 { grid-template-columns: 1fr; }
  .admin-main .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-wrap { border-radius: 11px; }
  th, td { padding: 12px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; padding-block: 34px 30px; }
  .footer-brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
  .footer-brand p { margin: 0; padding-left: 19px; border-left: 1px solid #d6e1cc; font-size: 11px; }
  .footer-main nav { gap: 8px; }
  .footer-main nav h2 { font-size: 13px; }
  .footer-main nav a { font-size: 12px; }
  .footer-bottom { flex-direction: column; gap: 10px; padding-block: 19px; font-size: 10px; }
  .footer-bottom > div { gap: 18px; }
  .print-sheet { padding: 24px; }
  .print-signatures { gap: 20px; font-size: 13px; }
}
@media (max-width: 419px) {
  .header-inner { width: calc(100% - 24px); gap: 8px; }
  .header-actions { gap: 3px; }
  .brand img { width: 126px; }
  .brand-caption { padding-left: 26px; font-size: 8px; }
  .account-name { display: none; }
  .chevron { margin-left: 0; margin-right: 3px; }
  .account-dropdown { right: -43px; }
  .mobile-menu-toggle { width: 38px; height: 38px; border-radius: 9px; }
  .container { width: calc(100% - 30px); }
  .hero { padding: 23px; border-radius: 20px; }
  .display-title { font-size: 31px; }
  .hero .actions .btn { min-height: 45px; padding-inline: 12px; font-size: 12px; }
  .hero .lead { font-size: 13px; }
  .hero-art > svg { max-height: 240px; }
  .card-body, .admin-main .card-body { padding: 19px; }
  .card-header, .admin-main .card-header { padding: 17px 19px; }
  .card-footer { padding: 16px 19px; }
  .stat, .admin-main .stat { padding: 15px; }
  .metric, .admin-main .metric { font-size: 26px; }
  .grid-4 { grid-template-columns: 1fr; }
  .admin-main .grid-4 { grid-template-columns: 1fr; }
  .footer-brand { gap: 15px; }
  .footer-brand p { font-size: 10px; padding-left: 15px; }
  .auth-card { padding: 23px; }
  .print-sheet { padding: 18px; font-size: 14px; }
  .print-signatures { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@page { size: A4 portrait; margin: 15mm 14mm 17mm; }
@media print {
  :root { --ink: #000; --body: #000; --muted: #333; --line: #aaa; }
  html, body { background: white !important; color: #000 !important; font-size: 10.5pt !important; line-height: 1.6 !important; width: auto !important; margin: 0 !important; min-height: 0 !important; }
  .no-print, .site-header, .site-footer, .admin-sidebar, .workspace-navigation-wrap, .skip-link, .menu-backdrop, .flash-notice, #ui-live-message { display: none !important; }
  .print-only { display: block !important; }
  .container, .admin-shell, .admin-main, .main-content, .narrow { display: block !important; width: 100% !important; min-width: 0 !important; max-width: none !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; }
  h1, h2, h3, h4 { color: #000 !important; break-after: avoid-page; page-break-after: avoid; }
  h1 { font-size: 17pt !important; }
  h2 { font-size: 14pt !important; }
  h3 { font-size: 12pt !important; }
  p, li { widows: 3; orphans: 3; }
  a { color: #000 !important; }
  .card, .card-body, .print-sheet { background: white !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
  .print-sheet { display: block; width: 100% !important; max-width: none !important; min-height: 0 !important; height: auto !important; margin: 0 !important; padding: 0 !important; font-size: 10.5pt !important; line-height: 1.6 !important; overflow: visible !important; break-inside: auto !important; page-break-inside: auto !important; }
  .print-sheet .field { display: block; }
  .print-sheet + .print-sheet { break-before: page; page-break-before: always; }
  .print-sheet h1 { font-size: 16pt !important; margin-bottom: 5mm; }
  .print-sheet h2 { font-size: 12pt !important; margin-top: 4mm; margin-bottom: 2mm; }
  .print-sheet h3 { font-size: 11pt !important; }
  .print-sheet p { margin-bottom: 2.5mm; }
  .print-section { display: block; margin: 4mm 0; break-inside: auto; page-break-inside: auto; }
  .print-sheet .print-publicity { break-before: page; page-break-before: always; break-inside: avoid-page; page-break-inside: avoid; }
  .print-sheet > header.print-section { margin-top: 0; padding-bottom: 2mm; border-bottom: .2mm solid #d1d1d1; }
  .section.stack, .print-sheet .stack, .print-sheet .stack-sm, .print-section.stack, .print-section.stack-sm { display: block !important; }
  .print-section > h2, .print-section > h3 { margin-top: 0; }
  .print-signatures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); break-inside: avoid-page; page-break-inside: avoid; gap: 8mm; margin-top: 7mm; padding-top: 2mm; }
  .print-signatures p { font-size: 9pt; line-height: 1.65; }
  .print-field, .print-line { overflow-wrap: anywhere; }
  .print-keep { break-inside: avoid-page; page-break-inside: avoid; }
  .table-wrap { width: 100%; max-width: none; overflow: visible !important; border: 0 !important; border-radius: 0 !important; }
  table, .data-table, .table-wrap table { width: 100% !important; min-width: 0 !important; font-size: 9pt !important; table-layout: fixed; }
  thead { display: table-header-group; }
  tfoot { display: table-row-group; }
  tr { break-inside: avoid-page; page-break-inside: avoid; }
  th, td { padding: 2.5mm 2mm !important; border-bottom: .25mm solid #bbb; overflow-wrap: anywhere; white-space: normal; }
  th { background: #f3f3f3 !important; color: #222 !important; font-size: 9pt !important; }
  .badge { background: transparent !important; border: .2mm solid #aaa; color: #000 !important; font-size: 8pt; }
  .badge-dot { display: none; }
  .grid, .form-grid, .split { display: block; }
  .grid > *, .form-grid > *, .split > * { margin-bottom: 4mm; }
  .print-sheet dl.form-grid { display: block !important; margin: 0; }
  .print-sheet dl.form-grid > div { display: inline-block !important; width: 49%; min-width: 0; margin: 0 0 3mm !important; padding: 0 4mm 0 0; vertical-align: top; break-inside: avoid-page; page-break-inside: avoid; }
  .print-sheet dl.form-grid > div.full { display: block !important; width: 100%; padding-right: 0; break-inside: auto; page-break-inside: auto; }
  .print-sheet dt { margin: 0; font-size: 9pt; color: #555; break-after: avoid-page; page-break-after: avoid; }
  .print-sheet dd { margin: 1mm 0 0; font-size: 10.5pt; line-height: 1.6; }
  .print-sheet .help { font-size: 8pt; line-height: 1.55; }
  .prose { max-width: none; }
  .hero::before, .hero::after { display: none; }
  .hero, .banner { color: #000 !important; background: transparent !important; padding: 0 !important; border: 0; }
}
