:root {
  color-scheme: light;
  --navy: #174f8a;
  --navy-dark: #103b68;
  --blue-soft: #eaf2fa;
  --gold: #f4b942;
  --ink: #18212b;
  --muted: #687787;
  --line: #dce4eb;
  --surface: #ffffff;
  --canvas: #f3f6f9;
  --success: #167653;
  --success-soft: #e7f6ef;
  --danger: #bd3d3d;
  --danger-soft: #fcecec;
  --warning: #a66406;
  --warning-soft: #fff4dc;
  --shadow: 0 14px 35px rgba(27, 52, 77, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 7px; color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.subtle { color: var(--muted); }
.optional { color: var(--muted); font-size: 12px; font-weight: 500; }
em { color: var(--danger); font-style: normal; }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; padding: 0 17px; border: 1px solid transparent; border-radius: 10px; background: white; color: var(--ink); font-weight: 700; transition: transform .15s, box-shadow .15s, border-color .15s, background .15s; text-decoration: none; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.button.primary { background: var(--navy); color: white; box-shadow: 0 7px 16px rgba(23, 79, 138, .17); }
.button.primary:hover { background: var(--navy-dark); }
.button.secondary { border-color: #b9c9d8; color: var(--navy); }
.button.secondary:hover { border-color: var(--navy); background: var(--blue-soft); }
.button.ghost { border-color: var(--line); color: var(--muted); }
.button.danger { border-color: #efb8b8; color: var(--danger); background: var(--danger-soft); }
.button.wide { width: 100%; }
.button.large { min-height: 54px; padding: 0 24px; border-radius: 13px; font-size: 16px; }
.text-link { display: inline-block; margin-top: 22px; color: var(--navy); font-size: 13px; font-weight: 700; text-decoration: none; }
.icon-button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #edf2f6; color: var(--muted); font-size: 25px; line-height: 1; }

.toast { position: fixed; z-index: 100; left: 50%; top: 22px; max-width: min(90vw, 520px); padding: 13px 20px; border-radius: 12px; background: #172431; color: white; font-size: 14px; font-weight: 700; box-shadow: 0 12px 28px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transform: translate(-50%, -16px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #9d3030; }

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 20% 20%, #e5eff9 0, transparent 30%), linear-gradient(140deg, #f7f9fb, #edf3f7); }
.login-card { width: min(430px, 100%); padding: 43px; border: 1px solid rgba(200, 214, 225, .75); border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); text-align: center; }
.login-card h1 { margin: 0 0 8px; font-size: 28px; }
.login-help { margin: -7px 0 0; color: var(--muted); font-size: 12px; text-align: left; }
.login-help strong { color: var(--navy); user-select: all; }
.login-error { margin: -5px 0 0; padding: 10px 12px; border-radius: 9px; background: var(--danger-soft); color: var(--danger); font-size: 12px; font-weight: 700; text-align: left; }
.dialog-description { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; font-weight: 500; }
.brand-mark { display: grid; width: 62px; height: 62px; margin: 0 auto 22px; place-items: center; border-radius: 18px; background: var(--navy); color: white; font-size: 29px; font-weight: 800; box-shadow: 0 10px 25px rgba(23,79,138,.22); }
.brand-mark.small { width: 38px; height: 38px; margin: 0; border-radius: 11px; font-size: 18px; box-shadow: none; }
.school-logo-wrap { display: grid; overflow: hidden; place-items: center; border-radius: 50%; background: white; }
.school-logo-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; }
.school-logo-wrap.login-logo { width: 94px; height: 94px; margin: 0 auto 20px; padding: 5px; border: 1px solid #d9e2ea; box-shadow: 0 12px 28px rgba(23,79,138,.16); }
.school-logo-wrap.small { width: 42px; height: 42px; flex: 0 0 auto; padding: 2px; border: 1px solid rgba(23,79,138,.15); }

.stack-form { display: grid; gap: 17px; margin-top: 28px; text-align: left; }
label { display: grid; gap: 8px; color: #344252; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #cdd8e2; border-radius: 10px; outline: none; background: white; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input, select { height: 44px; padding: 0 13px; }
textarea { padding: 12px 13px; resize: vertical; line-height: 1.65; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(23,79,138,.1); }

.app-shell { display: grid; min-height: 100vh; grid-template-columns: 236px 1fr; }
.sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 26px 17px 18px; background: #12283d; color: white; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand strong { display: block; font-size: 15px; }
.brand span { display: block; margin-top: 3px; color: #99adc0; font-size: 11px; }
.sidebar nav { display: grid; gap: 6px; }
.nav-item { display: flex; min-height: 46px; align-items: center; gap: 11px; padding: 0 13px; border: 0; border-radius: 10px; background: transparent; color: #b9c8d6; font-size: 14px; font-weight: 600; text-decoration: none; text-align: left; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.1); color: white; }
.nav-item span { width: 20px; color: #8eb4d9; font-size: 18px; text-align: center; }
.sidebar-foot { display: grid; gap: 14px; margin-top: auto; }
.privacy-note { padding: 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.04); color: #99adc0; font-size: 11px; line-height: 1.6; }
.sidebar .button.ghost { border-color: rgba(255,255,255,.15); background: transparent; color: #b9c8d6; }

.main-content { min-width: 0; padding: 0 42px 60px; }
.topbar { display: flex; min-height: 102px; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 0; font-size: 25px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.date-chip { padding: 9px 12px; border-radius: 9px; background: white; color: var(--muted); font-size: 12px; }

.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; padding: 28px 0; }
.summary-card { display: flex; min-width: 0; align-items: center; gap: 14px; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.summary-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: var(--blue-soft); color: var(--navy); font-size: 19px; font-weight: 800; }
.summary-card:nth-child(2) .summary-icon { background: var(--success-soft); color: var(--success); }
.summary-card:nth-child(3) .summary-icon { background: var(--warning-soft); color: var(--warning); }
.summary-card:nth-child(4) .summary-icon { background: #f1ebfa; color: #7043a7; }
.summary-card span { display: block; color: var(--muted); font-size: 12px; }
.summary-card strong { display: block; margin-top: 2px; font-size: 23px; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 10px 0 18px; }
.section-heading h2 { margin: 0 0 5px; font-size: 20px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.filter-pills { display: flex; gap: 5px; padding: 4px; border-radius: 10px; background: #e8edf2; }
.pill { min-height: 33px; padding: 0 13px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.pill.active { background: white; color: var(--navy); box-shadow: 0 2px 7px rgba(30,55,80,.08); }
.training-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.training-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 4px 13px rgba(27,52,77,.035); transition: transform .18s, box-shadow .18s; }
.training-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.training-card-main { display: block; width: 100%; padding: 20px; border: 0; background: transparent; text-align: left; }
.training-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: #eef2f5; color: var(--muted); font-size: 11px; font-weight: 800; }
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.open { background: var(--success-soft); color: var(--success); }
.status-badge.closed { background: var(--warning-soft); color: var(--warning); }
.status-badge.finalized { background: #e9eaf5; color: #505490; }
.training-date { color: var(--muted); font-size: 11px; font-weight: 600; }
.training-card h3 { min-height: 48px; margin: 15px 0 9px; font-size: 17px; line-height: 1.45; }
.training-meta { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.training-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: #fbfcfd; }
.training-card-stats div { padding: 12px 6px; border-right: 1px solid var(--line); text-align: center; }
.training-card-stats div:last-child { border: 0; }
.training-card-stats span { display: block; color: var(--muted); font-size: 10px; }
.training-card-stats strong { display: block; margin-top: 2px; font-size: 15px; }
.empty-state { padding: 70px 20px; border: 1px dashed #c6d1db; border-radius: var(--radius); background: rgba(255,255,255,.5); text-align: center; }
.empty-icon { color: var(--navy); font-size: 33px; }
.empty-state h3 { margin: 10px 0 5px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }

.back-button, .kiosk-back { padding: 0; border: 0; background: transparent; color: var(--navy); font-size: 13px; font-weight: 700; }
.back-button { margin: 24px 0 13px; }
.training-hero { padding: 24px 26px; border-radius: var(--radius); background: linear-gradient(115deg, #153e64, #1c609d); color: white; box-shadow: 0 12px 28px rgba(23,79,138,.18); }
.training-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.training-hero h2 { max-width: 760px; margin: 8px 0 8px; font-size: 24px; }
.training-hero-meta { display: flex; flex-wrap: wrap; gap: 16px; color: #c9ddeb; font-size: 12px; }
.training-hero .status-badge { background: rgba(255,255,255,.13); color: white; }
.training-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.training-hero .button { min-height: 38px; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: white; box-shadow: none; font-size: 12px; }
.training-hero .button.primary { background: white; color: var(--navy); }
.training-hero .button.danger { border-color: rgba(255,255,255,.25); background: rgba(120,20,20,.2); color: #ffe5e5; }
.hero-stats { display: flex; align-items: center; gap: 18px; }
.hero-stat { min-width: 72px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.2); }
.hero-stat:first-child { padding-left: 0; border: 0; }
.hero-stat span { display: block; color: #b8d0e3; font-size: 10px; }
.hero-stat strong { font-size: 22px; }
.detail-tabs { display: flex; gap: 25px; margin-top: 21px; border-bottom: 1px solid var(--line); }
.detail-tab { padding: 0 2px 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; }
.detail-tab.active { border-color: var(--navy); color: var(--navy); }
.toolbar-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px; margin: 18px 0 12px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.search-box { display: flex; width: min(360px, 100%); align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #cdd8e2; border-radius: 9px; color: var(--muted); }
.search-box input { height: 40px; padding: 0; border: 0; box-shadow: none; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.refresh-status { color: var(--muted); font-size: 10px; white-space: nowrap; }
.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: white; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { height: 43px; padding: 0 13px; background: #f7f9fb; color: #627181; font-size: 11px; text-align: left; white-space: nowrap; }
td { height: 54px; padding: 8px 13px; border-top: 1px solid #edf1f4; color: #334151; font-size: 12px; }
td strong { color: var(--ink); }
.attendance-state { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #eef2f5; color: var(--muted); font-size: 10px; font-weight: 800; }
.attendance-state.attended { background: var(--success-soft); color: var(--success); }
.row-actions { display: flex; gap: 5px; }
.mini-button { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--muted); font-size: 10px; font-weight: 700; }
.mini-button.danger { color: var(--danger); }
.table-empty { padding: 45px; color: var(--muted); text-align: center; }
.history-list { display: grid; gap: 8px; margin-top: 18px; }
.history-item { display: grid; grid-template-columns: 145px 1fr auto; gap: 15px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 11px; background: white; font-size: 12px; }
.history-item time, .history-item span { color: var(--muted); }

.modal { width: min(650px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 25px 80px rgba(23,37,52,.25); }
.modal.compact { width: min(470px, calc(100vw - 28px)); }
.modal::backdrop { background: rgba(11,26,39,.58); backdrop-filter: blur(3px); }
.modal form { padding: 27px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 23px; }
.modal-head h2 { margin: 0; font-size: 21px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.span-2 { grid-column: span 2; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.import-guide { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; padding: 13px 15px; margin-bottom: 15px; border-radius: 10px; background: var(--blue-soft); color: #365873; font-size: 12px; }
.import-guide span { grid-column: 1 / -1; color: var(--muted); }
.template-download { display: flex; width: 100%; align-items: center; justify-content: center; margin: -3px 0 15px; font-size: 12px; text-decoration: none; }
.template-download:hover { text-decoration: none; }
.file-drop { display: flex; min-height: 67px; align-items: center; justify-content: center; gap: 10px; margin-bottom: 15px; border: 1px dashed #9fb5c9; border-radius: 10px; background: #fafcfd; color: var(--navy); cursor: pointer; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop span { color: var(--muted); font-size: 11px; font-weight: 500; }

/* Kiosk */
.kiosk-body { min-height: 100vh; overscroll-behavior: none; background: #eef3f7; }
.kiosk-shell { display: flex; min-height: 100vh; flex-direction: column; }
.kiosk-header { display: flex; min-height: 68px; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.93); }
.kiosk-brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 800; text-decoration: none; }
.kiosk-clock { color: var(--muted); font-size: 13px; font-weight: 600; }
.kiosk-main { display: grid; width: 100%; flex: 1; place-items: center; padding: 28px; }
.kiosk-panel { width: min(780px, 100%); animation: panelIn .28s ease both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(9px); } }
.kiosk-panel > h1 { margin: 0 0 10px; font-size: clamp(27px, 4vw, 40px); letter-spacing: -.03em; }
.access-panel { max-width: 620px; text-align: center; }
.access-logo { width: 110px; height: 110px; margin: 0 auto 22px; padding: 4px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.access-panel .kiosk-search { margin-top: 28px; }
.access-panel .lead { margin-bottom: 0; }
.lead { margin: 0 0 30px; color: var(--muted); }
.open-training-list { display: grid; gap: 12px; }
.open-training-button { display: grid; width: 100%; grid-template-columns: 78px 1fr auto; align-items: center; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 6px 18px rgba(27,52,77,.045); text-align: left; }
.open-training-button:hover { border-color: #8baac5; }
.date-box { display: grid; height: 60px; place-items: center; border-radius: 11px; background: var(--blue-soft); color: var(--navy); font-weight: 800; }
.date-box strong { display: block; font-size: 20px; line-height: 1; }
.date-box span { display: block; margin-top: 3px; font-size: 10px; }
.open-training-button h2 { margin: 0 0 7px; font-size: 17px; }
.open-training-button p { margin: 0; color: var(--muted); font-size: 12px; }
.open-training-button .arrow { color: var(--navy); font-size: 25px; }
.kiosk-empty { padding: 60px 20px; border-radius: 18px; background: white; text-align: center; }
.kiosk-empty > div { color: var(--gold); font-size: 38px; }
.kiosk-empty h2 { margin: 8px 0; }
.kiosk-empty p { color: var(--muted); }
.kiosk-back { margin-bottom: 24px; }
.selected-training-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; margin-bottom: 31px; border-left: 4px solid var(--navy); border-radius: 0 12px 12px 0; background: white; box-shadow: 0 6px 18px rgba(27,52,77,.04); }
.selected-training-card strong { font-size: 15px; }
.selected-training-card span { color: var(--muted); font-size: 12px; }
.kiosk-copy { display: flex; align-items: flex-start; gap: 16px; }
.step-number { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-size: 17px; font-weight: 800; }
.kiosk-copy h1 { margin: 0 0 7px; font-size: clamp(25px, 4vw, 36px); }
.kiosk-copy p:not(.eyebrow) { margin: 0; color: var(--muted); }
.kiosk-search { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 27px 0 14px; }
.kiosk-search input { height: 62px; padding: 0 20px; border-width: 2px; border-radius: 13px; font-size: 22px; font-weight: 700; }
.kiosk-help { color: var(--muted); font-size: 12px; text-align: center; }
.identity-list { display: grid; gap: 11px; margin-top: 27px; }
.identity-card { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 15px; padding: 19px 21px; border: 2px solid transparent; border-radius: 14px; background: white; box-shadow: 0 5px 18px rgba(27,52,77,.05); text-align: left; }
.identity-card:not(:disabled):hover { border-color: var(--navy); }
.identity-card strong { display: block; margin-bottom: 5px; font-size: 18px; }
.identity-card span { color: var(--muted); font-size: 12px; }
.identity-card .identity-action { color: var(--navy); font-size: 13px; font-weight: 800; }
.identity-card:disabled { opacity: .65; }
.already-label { color: var(--success) !important; font-weight: 800; }
.participant-filter-box { display: flex; align-items: center; gap: 10px; margin: 25px 0 14px; padding: 0 15px; border: 1px solid #cdd8e2; border-radius: 12px; background: white; color: var(--muted); }
.participant-filter-box input { height: 52px; padding: 0; border: 0; box-shadow: none; }
.participant-button-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: min(48vh, 520px); overflow-y: auto; padding: 2px 4px 12px 2px; }
.participant-name-button { min-height: 78px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: white; color: var(--ink); text-align: left; box-shadow: 0 4px 12px rgba(27,52,77,.04); }
.participant-name-button:not(:disabled):hover { border-color: var(--navy); background: var(--blue-soft); transform: translateY(-1px); }
.participant-name-button strong { display: block; font-size: 17px; }
.participant-name-button span { display: block; overflow: hidden; margin-top: 5px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.participant-name-button:disabled { background: #f2f6f4; color: #718078; cursor: default; opacity: .72; }
.participant-name-button:disabled strong::after { content: ' ✓'; color: var(--success); }
.kiosk-empty.compact { padding: 34px 20px; }
.phone-confirm { display: flex; align-items: end; gap: 15px; margin: 22px 0 10px 58px; }
.phone-confirm label { width: 235px; }
.phone-confirm input { height: 50px; font-size: 19px; letter-spacing: .25em; }
.phone-confirm p { margin: 0 0 13px; color: var(--muted); font-size: 12px; }
.signature-board { position: relative; overflow: hidden; height: min(34vh, 285px); min-height: 220px; margin: 25px 0 14px; border: 2px dashed #9fb1c1; border-radius: 16px; background: white; touch-action: none; }
.signature-board::after { position: absolute; right: 8%; bottom: 25%; left: 8%; height: 1px; background: #d8e0e7; content: ''; pointer-events: none; }
#signature-canvas { position: relative; z-index: 2; display: block; width: 100%; height: 100%; touch-action: none; }
.signature-placeholder { position: absolute; z-index: 1; inset: 0; display: grid; place-content: center; color: #9aa8b5; font-size: 14px; text-align: center; pointer-events: none; }
.signature-placeholder span { display: block; margin-bottom: 7px; font-size: 28px; }
.signature-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.consent-copy { color: var(--muted); font-size: 11px; text-align: center; }
.success-panel { text-align: center; }
.success-check { display: grid; width: 86px; height: 86px; margin: 0 auto 24px; place-items: center; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: 44px; }
.success-panel h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 40px); }
.success-panel > p:not(.eyebrow) { color: var(--muted); }
.countdown { width: fit-content; margin: 27px auto 17px; padding: 10px 17px; border-radius: 999px; background: white; color: var(--muted); font-size: 13px; }
.countdown span { color: var(--navy); font-weight: 800; }
.kiosk-footer { padding: 14px 20px; color: #758494; font-size: 11px; text-align: center; }

@media (max-width: 1050px) {
  .training-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .training-hero-top { flex-direction: column; }
}

@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 14px 16px; flex-direction: row; align-items: center; }
  .sidebar .brand { padding: 0; }
  .sidebar .brand span, .sidebar nav, .sidebar-foot .privacy-note { display: none; }
  .sidebar-foot { margin: 0 0 0 auto; }
  .sidebar-foot .button { min-height: 35px; }
  .main-content { padding: 0 16px 40px; }
  .topbar { min-height: 86px; }
  .topbar .date-chip { display: none; }
  .topbar h1 { font-size: 21px; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 8px; padding: 18px 0; }
  .summary-card { padding: 14px; }
  .summary-card strong { font-size: 19px; }
  .training-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .training-hero { padding: 20px; }
  .hero-stats { width: 100%; justify-content: space-between; }
  .training-hero-actions .button { flex: 1 1 40%; }
  .toolbar-card { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .toolbar-actions { flex-wrap: wrap; }
  .toolbar-actions .button { flex: 1; }
  .refresh-status { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .modal form { padding: 21px; }
  .kiosk-header { padding: 0 16px; }
  .kiosk-clock { display: none; }
  .kiosk-main { padding: 22px 16px; place-items: start center; }
  .open-training-button { grid-template-columns: 60px 1fr auto; padding: 14px; }
  .kiosk-search { grid-template-columns: 1fr; }
  .phone-confirm { align-items: stretch; flex-direction: column; margin-left: 0; }
  .participant-button-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
  .signature-board { min-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
