:root {
  color-scheme: light;
  --canvas: #f5f3ed;
  --ink: #192b24;
  --muted: #54635a;
  --surface: #fffefa;
  --line: #dedfd5;
  --green: #225140;
  --deep: #163c30;
  --mint: #dcebe0;
  --amber: #f5e5cf;
  --alert: #923e2d;
  font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
[hidden] { display: none !important; }
a { color: var(--green); text-underline-offset: 0.17em; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible { outline: 3px solid #af762d; outline-offset: 3px; }
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.3rem, 9vw, 3.6rem); letter-spacing: -.065em; line-height: 1.02; }
h2 { font-size: 1.17rem; letter-spacing: -.03em; line-height: 1.25; }
h3 { font-size: 1rem; line-height: 1.35; }
li + li { margin-top: .35rem; }
.shell { width: min(100% - 32px, 760px); margin-inline: auto; }
.top { background: var(--canvas); border-bottom: 1px solid var(--line); }
.top-inner { position: relative; display: flex; justify-content: space-between; align-items: center; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.045em; font-size: 1.23rem; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--green); color: #fff; font: bold 1.25rem Georgia, serif; }
.product, .eyebrow { font-size: .7rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.product, .eyebrow, .muted { color: var(--muted); }
.menu { position: relative; }
.menu summary { display: flex; gap: .5rem; align-items: center; list-style: none; min-height: 44px; padding: 0 4px 0 14px; font-weight: 700; font-size: .9rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu-items { position: absolute; z-index: 3; right: 0; top: calc(100% + 4px); min-width: 170px; padding: 6px; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px #192b2420; }
.menu-items a, .text-button { display: flex; align-items: center; padding: 7px 12px; min-height: 44px; font-size: .92rem; color: var(--ink); text-decoration: none; border-radius: 7px; }
.menu-items a:hover, .text-button:hover { background: var(--mint); }
.text-button { border: 0; background: none; width: 100%; text-align: left; }
main { padding-block: 22px 34px; }
.signed-in main { padding-bottom: calc(94px + env(safe-area-inset-bottom)); }
.hero { background: var(--deep); color: #fcfff6; padding: 23px 20px; border-radius: 19px; margin-bottom: 22px; }
.hero .eyebrow { color: #bbdac7; margin-bottom: 10px; }
.hero h1 + p, .hero-meta { margin-top: 14px; color: #d5e8db; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .84rem; }
.hero-meta strong { color: white; font-size: 1.05rem; }
.role-hero h1 { font-size: clamp(1.85rem, 7.8vw, 3.25rem); }
.role-hero .hero-meta { display: grid; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0 6px; font-weight: 700; }
.page-head { margin: 4px 0 21px; display: grid; gap: 9px; }
.page-head p, .item p, .card-section p, .disclosure p { color: var(--muted); font-size: .91rem; }
section + section { margin-top: 21px; }
section > h2 { margin-bottom: 9px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.section-head a { font-size: .83rem; white-space: nowrap; }
.panel { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.item, .empty, .stack, .card-section, .disclosure { padding: 13px 14px; }
.empty { color: var(--muted); font-size: .9rem; }
.list, .stack { display: grid; gap: 8px; }
.item h3 + p, .item .eyebrow + h3, .badge + h3, .badges + h3 { margin-top: 5px; }
.item a:not(.small-button) { font-weight: 650; }
.stack { gap: 15px; padding: 17px; }
.login-wrap { max-width: 450px; margin-inline: auto; }
.login-hero { margin-top: 10px; margin-bottom: 12px; padding: 28px 20px; }
.login-hero p:last-child { max-width: 28ch; }
label { display: grid; gap: 5px; color: var(--ink); font-size: .89rem; font-weight: 650; }
input, select, textarea { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #a9b3a7; border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 1rem; }
textarea { resize: vertical; }
input[type=checkbox] { width: 19px; height: 19px; min-height: 0; accent-color: var(--green); }
input[type=file] { font-size: .9rem; }
input[type=file]::file-selector-button { font: inherit; margin-right: 8px; border: 0; border-radius: 5px; padding: 4px 7px; background: var(--mint); color: var(--ink); }
.check { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.primary, .small-button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 44px; padding: 8px 13px; border-radius: 8px; border: 1px solid transparent; font-weight: 750; text-decoration: none; }
.primary { display: flex; justify-content: space-between; min-height: 48px; color: white; background: var(--green); }
.primary:hover { background: var(--deep); }
.small-button { border-color: #c9d9cc; color: var(--green); background: #edf4ed; font-size: .85rem; white-space: nowrap; }
.small-button:hover { background: var(--mint); }
.form-item { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.form-group { margin-top: 12px; }
.form-item time { font-weight: 750; }
.form-item .late { color: var(--alert); }
.badge { display: inline-flex; align-items: center; width: max-content; max-width: 100%; min-height: 23px; border-radius: 6px; padding: 2px 7px; color: #46544b; background: #edeee7; font-size: .72rem; font-weight: 730; overflow-wrap: anywhere; }
.badge.tier { background: var(--mint); color: var(--deep); }
.badge.urgent { background: var(--amber); color: #784322; }
.badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-bottom: 12px; }
.filters input { grid-column: 1 / -1; }
.result-count { font-size: .82rem; color: var(--muted); margin: 0 0 9px; }
.company-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; padding: 11px 13px; background: #eeefe8; border-radius: 12px 12px 0 0; }
.company-head h2, .priority h2 { font-size: 1rem; }
.role-row { display: grid; gap: 6px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); padding: 10px 13px 12px; }
.role-row:hover { background: #f1f6ef; }
.role-line { display: flex; justify-content: space-between; align-items: start; gap: 10px; line-height: 1.3; overflow-wrap: anywhere; }
.arrow, .success, .saved { color: var(--green); }
.role-meta { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
.role-meta b { color: var(--ink); }
.notice.applied { border-inline-start: 3px solid #548466; }
.notice a { display: inline-flex; align-items: center; min-height: 40px; margin-right: 6px; }
.pager { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; }
.card-section, .disclosure { margin-top: 10px; }
.card-section h2:not(:first-child), .card-section h3, .disclosure h3 { margin-top: 13px; }
.card-section .small-button, .card-section .company-picker { margin-top: 9px; }
.data { display: grid; margin: 0; font-size: .9rem; }
.data > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px; padding-block: 7px; border-bottom: 1px solid var(--line); }
.data > div:last-child { border-bottom: 0; }
.data dt { color: var(--muted); }
.data dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.preserve { white-space: pre-line; }
.disclosure summary { min-height: 44px; padding-block: 9px; font-weight: 750; }
.priority-controls { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.saved { font-size: .8rem; font-weight: 750; }
.error { background: #f9e5df; color: var(--alert); padding: 10px 13px; border-radius: 8px; margin-block: 8px; font-weight: 650; }
.hit { border-top: 1px solid var(--line); padding-top: 9px; margin-top: 9px; }
.company-picker { display: grid; gap: 5px; }
.dock { position: fixed; inset: auto 0 0; z-index: 2; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.dock-inner { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 6px; gap: 3px; }
.dock a { display: grid; justify-items: center; align-content: center; min-height: 49px; border-radius: 8px; color: var(--muted); font-size: .72rem; font-weight: 680; text-decoration: none; }
.dock a span { font-size: 1.12rem; line-height: 1.2; }
.dock a[aria-current], .dock a:hover { color: var(--deep); background: var(--mint); }
.offline-banner { background: var(--amber); padding: 6px 16px; text-align: center; font-size: .85rem; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; }
.skip:focus { width: auto; height: auto; clip-path: none; z-index: 10; background: var(--surface); padding: 12px; }
@media (min-width: 640px) {
  .hero { padding: 30px; }
  .item, .card-section { padding-inline: 18px; }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 175px) auto; }
  .filters input { grid-column: auto; }
}
