:root {
    --canvas: #f5f2e9;
    --paper: #fffdf7;
    --ink: #25392d;
    --muted: #657063;
    --forest: #223f31;
    --accent: #356448;
    --line: #dedfd3;
    --gold: #b29862;
    --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.6; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.2rem, 4vw, 3.25rem); margin-bottom: 14px; }
h2 { font-size: 2rem; }
form { margin: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px 20px; background: var(--paper); z-index: 10; }
.skip-link:focus { top: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 27px; text-decoration: none; letter-spacing: -.04em; }
.brand-light { opacity: .78; }
.brand-symbol { display: grid; place-items: center; height: 40px; width: 40px; border: 1px solid currentColor; border-radius: 12px 12px 12px 0; }
.brand-symbol svg { width: 29px; height: 29px; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.intro { color: var(--muted); font-size: 16px; line-height: 1.7; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; border: 1px solid transparent; border-radius: 7px; padding: 12px 18px; min-height: 46px; text-decoration: none; font-size: 13px; font-weight: 600; }
.button-primary { background: var(--forest); color: #fffdf7; }
.button-primary:hover { background: #31593f; }
.button-secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.button-secondary:hover { background: #eceee5; }
.button-full { width: 100%; }
.button-quiet { background: transparent; color: var(--muted); padding: 8px 12px; }
.button-quiet:hover { background: #e9ebdf; color: var(--ink); }
.text-link { display: inline-block; margin-top: 24px; font-size: 13px; }
.messages { margin-bottom: 22px; border: 1px solid #cbd7c5; padding: 12px 18px; background: #edf2e6; border-radius: 7px; font-size: 14px; }
.messages p:last-child { margin-bottom: 0; }
.auth-shell { display: grid; grid-template-columns: minmax(300px, .9fr) 1.1fr; min-height: 100svh; }
.auth-story { background: var(--forest); color: #f8f4e9; padding: 44px 11%; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-story::after { content: ""; width: 370px; height: 370px; border: 1px solid #ffffff10; border-radius: 50%; position: absolute; right: -225px; bottom: 70px; box-shadow: 0 0 0 60px #ffffff04, 0 0 0 120px #ffffff03; pointer-events: none; }
.auth-story-copy { padding: 90px 0; max-width: 340px; }
.auth-story-copy .eyebrow { color: #cbb885; }
.auth-story h2 { font-size: clamp(3rem, 5vw, 5rem); margin-bottom: 28px; }
.auth-story-copy > p:last-child { color: #c0cbbc; font-size: 15px; max-width: 280px; }
.auth-footer { color: #b9c5b7; font-size: 11px; margin: 0; letter-spacing: .05em; }
.auth-footer span { padding: 0 12px; color: #7e9980; }
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 72px 40px; position: relative; }
.auth-panel { width: min(100%, 390px); }
.auth-panel h1 { font-size: 2.6rem; }
.auth-panel .intro { font-size: 14px; margin-bottom: 32px; }
.auth-form { display: grid; gap: 22px; }
.auth-form p { margin-bottom: 0; }
.field label, .auth-form p > label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.field-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-heading a { font-size: 11px; color: var(--muted); }
input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]) { display: block; width: 100%; border: 1px solid #cfd4c7; border-radius: 6px; background: var(--paper); color: var(--ink); min-height: 48px; padding: 11px 13px; font-size: 14px; }
input::placeholder { color: #858d81; }
.checkbox { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--forest); margin: 0; }
.helptext, .auth-form ul:not(.errorlist) { display: block; color: var(--muted); font-size: 12px; margin-top: 10px; }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: #973c2c; font-size: 13px; }
.auth-help { margin: 60px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.divider { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; margin: 24px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.staff-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100svh; }
.sidebar { background: var(--forest); color: #f8f4e9; padding: 34px 25px 24px; display: flex; flex-direction: column; justify-content: space-between; position: sticky; top: 0; height: 100svh; }
.sidebar .brand { font-size: 24px; gap: 10px; }
.sidebar .brand-symbol { width: 35px; height: 35px; }
.sidebar-description { font-size: 11px; color: #b4c4b3; margin: 17px 0 0 2px; }
.staff-nav { margin-top: 60px; }
.staff-nav .eyebrow { color: #a9baa4; font-size: 9px; padding-left: 12px; }
.nav-link { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 12px; padding: 12px 14px; border-radius: 6px; margin: 5px 0; }
.nav-link.is-active { background: #ffffff12; border: 1px solid #ffffff14; }
.nav-link:hover { background: #ffffff1c; }
.nav-link:not(.is-active) > span { margin-left: auto; }
.sidebar-footer { border-top: 1px solid #ffffff1c; padding-top: 24px; font-size: 11px; color: #b4c4b3; }
.sidebar-footer p { margin: 12px 0 0; font-size: 10px; }
.staff-badge { display: inline-flex; align-items: center; gap: 8px; }
.staff-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #c6ce9c; }
.workspace { display: flex; flex-direction: column; min-width: 0; }
.workspace-header { min-height: 87px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 16px 46px; gap: 16px; }
.breadcrumb { display: flex; gap: 15px; color: var(--muted); font-size: 11px; }
.breadcrumb strong { font-weight: 500; color: var(--ink); }
.breadcrumb > span { color: #a0a992; }
.workspace-content { flex: 1; width: 100%; max-width: 1360px; padding: 52px 46px 68px; margin: 0 auto; }
.page-heading { margin-bottom: 36px; }
.page-heading .eyebrow { color: var(--accent); margin-bottom: 14px; }
.page-heading .intro { font-size: 14px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
.welcome-card { background: #e8ebdf; border: 1px solid #d9dece; border-radius: 10px; overflow: hidden; }
.section-number { display: block; color: #6c7962; font-size: 9px; letter-spacing: .12em; padding: 25px 30px 0; }
.welcome-card-copy { padding: 25px 34px 36px; }
.sprout { display: block; width: 76px; height: 76px; color: #607b4f; margin-bottom: 22px; }
.sprout svg { width: 100%; height: 100%; }
.welcome-card h2 { font-size: clamp(1.9rem, 2.5vw, 2.6rem); margin-bottom: 20px; }
.welcome-card p { max-width: 380px; color: #5b6854; font-size: 13px; line-height: 1.85; margin-bottom: 0; }
.up-next { display: flex; align-items: center; gap: 10px; border-top: 1px solid #d2d9c5; padding: 18px 30px; color: #627253; font-size: 10px; flex-wrap: wrap; }
.up-next strong { color: #3b5434; margin-left: auto; font-size: 11px; font-weight: 500; }
.status-dot { width: 6px; height: 6px; background: #819363; border-radius: 50%; }
.account-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 26px; min-width: 0; }
.account-card .eyebrow { color: var(--muted); font-size: 9px; margin-bottom: 28px; }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; background: #efeadd; color: #7d704b; border-radius: 50%; font-family: var(--serif); font-size: 24px; margin-bottom: 17px; }
.account-card h2 { font-size: 1.5rem; margin-bottom: 7px; overflow-wrap: anywhere; }
.account-email { color: var(--muted); font-size: 12px; margin-bottom: 15px; overflow-wrap: anywhere; }
.role-badge { display: inline-block; border: 1px solid #d9dfce; background: #f0f3e9; color: #536747; border-radius: 4px; padding: 3px 8px; font-size: 9px; }
.account-links { margin-top: 28px; border-top: 1px solid var(--line); }
.account-links a { display: flex; justify-content: space-between; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 11px; text-decoration: none; }
.account-links a:hover { color: #6b8247; }
.account-note { font-size: 11px; color: var(--muted); margin: 22px 0 0; line-height: 1.7; }
.workspace-footer { display: flex; justify-content: space-between; gap: 16px; margin: 0 46px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
@media (min-width: 1500px) { .workspace-content { padding-top: 70px; } }
@media (max-width: 1100px) {
    .staff-shell { grid-template-columns: 210px minmax(0, 1fr); }
    .sidebar { padding: 28px 18px; }
    .workspace-content { padding: 38px 28px; }
    .workspace-header { padding: 16px 28px; }
    .workspace-footer { margin: 0 28px; }
    .overview-grid { grid-template-columns: minmax(0, 1.4fr) minmax(230px, 1fr); gap: 16px; }
    .welcome-card-copy { padding-left: 25px; padding-right: 25px; }
}
@media (max-width: 820px) {
    .staff-shell { display: block; }
    .sidebar { position: static; height: auto; padding: 22px 24px; }
    .sidebar > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
    .sidebar-description, .sidebar-footer, .staff-nav .eyebrow { display: none; }
    .staff-nav { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
    .nav-link { margin: 0; }
    .workspace { min-height: calc(100svh - 84px); }
    .auth-story { padding: 32px; }
    .auth-main { padding: 52px 30px; }
}
@media (max-width: 600px) {
    .auth-shell { display: block; }
    .auth-story { padding: 24px; }
    .auth-story-copy, .auth-footer { display: none; }
    .auth-main { min-height: calc(100svh - 92px); padding: 46px 24px 28px; }
    .auth-help { margin-top: 40px; }
    .auth-panel h1 { font-size: 2.3rem; }
    .workspace-content { padding: 32px 20px 42px; }
    .workspace-header { min-height: 68px; padding: 12px 16px; }
    .breadcrumb { gap: 9px; font-size: 10px; }
    .workspace-footer { margin: 0 20px; }
    .overview-grid { grid-template-columns: minmax(0, 1fr); }
    .page-heading { margin-bottom: 28px; }
    .sidebar { padding: 20px; }
    .staff-nav { width: 100%; }
    .nav-link { font-size: 11px; padding: 10px 12px; }
    .up-next { padding-left: 25px; padding-right: 25px; }
}
