:root {
    color-scheme: light;
    --ink: #142f31;
    --muted: #476065;
    --paper: #f2f7f5;
    --white: #fff;
    --line: #d8e6e2;
    --accent: #106752;
    --dark: #0e4239;
    --mint: #e5f3ec;
    font: 16px/1.5 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.04em; line-height: 1.1; }
h2 { font-size: 1.26rem; margin-bottom: .55rem; }
a { color: var(--accent); font-weight: 650; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #35aa83; outline-offset: 3px; }
.container, .nav { max-width: 1130px; margin: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.container { padding-top: 2.75rem; padding-bottom: 3.5rem; }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.nav, .nav-actions, .actions, .heading, .search { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.nav, .heading { justify-content: space-between; }
.nav { min-height: 70px; padding-block: .55rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; }
.mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: white; font: bold 1.35rem Georgia, serif; }
.nav-actions a { text-decoration: none; }
.heading { margin-bottom: 1.65rem; align-items: end; }
.heading p, .help, .unit { color: var(--muted); }
.heading p { margin-top: .5rem; }
.eyebrow { font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .105em; margin-bottom: .5rem; color: var(--accent); }
.back { display: inline-block; margin-bottom: .8rem; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: clamp(.9rem, 3vw, 1.5rem); min-width: 0; margin-inline: 0; }
.narrow { max-width: 620px; }
.stack, .assessment-form { display: grid; gap: 1rem; }
fieldset legend { padding-inline: .45rem; font-size: 1.12rem; font-weight: 720; }
fieldset p.help { margin-bottom: .7rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); align-items: end; gap: .9rem 1.25rem; }
.wide { grid-column: 1 / -1; }
label { display: block; font-weight: 640; font-size: .92rem; }
input, select { border: 1px solid #a4bab4; border-radius: 8px; padding: .65rem .75rem; font: inherit; background: #fcfefd; color: var(--ink); }
label input:not([type=checkbox]), label select { display: block; width: 100%; margin-top: .28rem; }
.check { margin-top: .9rem; }
.check input { accent-color: var(--accent); }
.unit, small { font-weight: 500; }
button, .button { display: inline-block; border: 1px solid transparent; border-radius: 8px; background: var(--accent); color: white; padding: .66rem .95rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { filter: brightness(.9); }
.secondary, .quiet { background: var(--white); color: var(--dark); border-color: #a4bab4; }
.quiet { border-color: transparent; padding: .4rem .6rem; }
.notice { background: var(--mint); border: 1px solid var(--line); padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.error { color: #8b2125; background: #fff0ef; border-color: #e9b8b3; }
.search { align-items: end; margin-bottom: 1rem; }
.search label { flex: 0 1 22rem; }
.search a { margin-bottom: .6rem; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .91rem; }
th, td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--line); }
thead, tr.group { background: var(--mint); }
thead th, tr.group th { color: var(--dark); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.block { margin-bottom: 1.15rem; }
.block .help { margin-bottom: .65rem; }
.kpis { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); margin-bottom: 1rem; }
.kpis article { background: var(--dark); color: white; border-radius: 12px; padding: 1rem 1.15rem; }
.kpis strong { font-size: 1.9rem; line-height: 1.2; }
.kpis p, .kpis small { color: #dcf0eb; }
.kpis small { display: block; margin-top: .3rem; }
.login { display: grid; min-height: 100vh; place-items: center; padding: 1rem; }
.login-wrap { width: min(860px, 100%); display: grid; grid-template-columns: 1fr 1fr; background: white; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 55px #17433714; }
.login-intro, .login-form { padding: clamp(1.4rem, 5vw, 3.1rem); }
.login-intro { background: var(--dark); color: #e1f2ec; align-content: center; }
.login-intro .eyebrow { color: #b7e8d5; margin-top: 1.5rem; }
.login-title { color: white; font: clamp(2.1rem, 5vw, 3rem)/1.05 Georgia, serif; margin-bottom: .9rem; }
.login-form h1 { font-size: 1.85rem; }
@media (max-width: 650px) {
    .login-wrap { grid-template-columns: 1fr; }
    .login-intro .eyebrow { margin-top: .6rem; }
    .login-title br { display: none; }
    .container { padding-top: 1.5rem; }
    th, td { padding: .55rem; }
}
.paste-panel summary { cursor: pointer; font-weight: 700; color: var(--dark); }
.paste-panel[open] summary { margin-bottom: .9rem; }
.paste-panel textarea {
    width: 100%;
    margin-top: .28rem;
    padding: .65rem .75rem;
    border: 1px solid #a4bab4;
    border-radius: 8px;
    resize: vertical;
    font: inherit;
    background: #fcfefd;
    color: var(--ink);
}
.paste-panel textarea:focus-visible, .paste-panel summary:focus-visible { outline: 3px solid #35aa83; outline-offset: 3px; }
