:root {
    color-scheme: light;
    --ink: #172c46;
    --muted: #455b71;
    --primary: #234d73;
    --paper: #fff;
    --bg: #f1f5f8;
    --line: #cdd9e2;
    --accent: #f0bb72;
    font-family: system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; }
.bar { background: var(--ink); color: white; }
.bar-inner, main, footer { width: min(1100px, calc(100% - 2rem)); margin: auto; }
.bar-inner { min-height: 4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; font-size: 1.12rem; font-weight: 750; }
.mark { background: var(--accent); color: var(--ink); border-radius: .4rem; padding: .1rem .47rem; }
.thin { font-weight: 450; }
nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; }
nav a, nav button { color: white; }
main { min-height: calc(100vh - 8.5rem); padding: 2.3rem 0 2.6rem; }
footer { color: var(--muted); padding: 1rem 0; border-top: 1px solid var(--line); font-size: .85rem; }
.hero { padding: 1.6rem 2rem; background: #e5edf4; border-radius: .9rem; margin-bottom: 1.4rem; }
.eyebrow { margin: 0 0 .5rem; color: var(--primary); font-size: .77rem; font-weight: 800; letter-spacing: .12em; }
h1, h2 { line-height: 1.16; margin: 0 0 .75rem; }
h1 { font-size: clamp(1.8rem, 5vw, 2.65rem); }
h2 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.hero p:last-child { margin-bottom: 0; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: .85rem; padding: 1.35rem; margin: 1.2rem 0; }
.dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; align-items: start; }
.dashboard > section { margin-top: 0; }
.narrow { max-width: 680px; margin: 1rem auto; }
.login { max-width: 470px; }
a { color: var(--primary); text-underline-offset: .17em; }
button, .button { background: var(--primary); color: white; border: 1px solid transparent; border-radius: .42rem; padding: .48rem .75rem; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; display: inline-block; }
button:disabled { opacity: .65; cursor: wait; }
.text-button { color: inherit; border: 0; background: transparent; padding: 0; text-decoration: underline; }
.secondary { background: #edf4f9; color: var(--primary); border-color: var(--line); }
.danger { background: #8b2633; }
:focus-visible { outline: 3px solid #a04d0b; outline-offset: 3px; }
label { display: block; font-weight: 650; margin: .8rem 0; }
input:not([type="checkbox"]), textarea { display: block; width: 100%; margin-top: .3rem; border: 1px solid #8599aa; border-radius: .38rem; padding: .55rem; font: inherit; background: white; color: var(--ink); }
input[type="hidden"] { display: none; }
textarea { resize: vertical; }
.muted, small { color: var(--muted); }
small { display: block; font-weight: 450; font-size: .85rem; }
.session-card { display: grid; gap: .2rem; border: 1px solid var(--line); background: white; border-radius: .65rem; padding: .85rem 1rem; margin: .6rem 0; text-decoration: none; }
.session-card:hover strong { text-decoration: underline; }
.badge { display: inline-block; background: #e1f2e9; color: #20573c; border-radius: .4rem; padding: .2rem .45rem; font-size: .84rem; font-weight: 720; }
.badge.waiting { background: #fff1da; color: #69471a; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .55rem .45rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
th { background: #f2f6fa; font-size: .9rem; }
td .actions { font-size: .91rem; }
canvas { display: block; width: 100%; height: auto; border: 2px dashed #8199ae; border-radius: .5rem; background: #fcfdff; touch-action: none; margin-bottom: 1rem; }
.signature { display: block; width: 155px; height: auto; }
.feedback { margin-top: .6rem; }
summary { cursor: pointer; }
details form { margin-top: 1rem; }
@media (max-width: 680px) {
    .dashboard { grid-template-columns: 1fr; }
    .hero { padding: 1.2rem; }
    .slot { padding: .85rem; }
    .slot td .actions { min-width: 9rem; }
    .bar-inner { flex-wrap: wrap; padding: .6rem 0; }
}
@media print {
    :root { background: white; font-size: 10pt; }
    .bar, footer, .no-print { display: none; }
    main { width: 100%; margin: 0; padding: 0; min-height: 0; }
    .panel, .hero { padding: .45rem 0; border: 0; margin: .6rem 0; background: white; }
    h2 { break-after: avoid; }
    tr { break-inside: avoid; }
    .table-wrap { overflow: visible; }
    .signature { width: 115px; }
}
