:root {
    --ink: #101820;
    --charcoal: #22272e;
    --muted: #67717c;
    --line: #dce2e7;
    --surface: #ffffff;
    --canvas: #f4f7f9;
    --blue: #009cdf;
    --blue-dark: #007eb5;
    --mint: #42c7bd;
    --danger: #d43e52;
    --success: #0b8f79;
    --focus: rgba(0, 156, 223, 0.2);
    --shadow: 0 18px 50px rgba(16, 24, 32, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--canvas);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: "Pretendard", "Nanum Barun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
    letter-spacing: 0;
    word-break: keep-all;
}

button,
input,
select {
    font: inherit;
}

a {
    color: inherit;
}

.site-header {
    min-height: 88px;
    padding: 0 clamp(28px, 4vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    background: var(--ink);
    border-bottom: 4px solid var(--blue);
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    white-space: nowrap;
}

.brand-name {
    color: #ffffff;
    font-family: Lato, Arial, sans-serif;
    font-size: 27px;
    font-weight: 800;
}

.brand-name::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 5px;
    background: var(--mint);
}

.brand-product {
    color: #aeb8c1;
    font-size: 12px;
    font-weight: 700;
}

.header-label {
    color: #aeb8c1;
    font-family: Lato, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.kiosk-layout {
    width: min(1480px, calc(100% - 80px));
    min-height: calc(100vh - 154px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(300px, 0.78fr) minmax(620px, 1.55fr);
    gap: clamp(48px, 6vw, 104px);
    align-items: center;
    padding: 52px 0;
}

.kiosk-intro {
    align-self: center;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.eyebrow {
    margin: 0 0 20px;
    color: var(--blue);
    font-family: Lato, Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.kiosk-intro h1,
.result-copy h1,
.confirmation-layout h1 {
    margin: 0;
    font-size: 64px;
    line-height: 1.18;
    font-weight: 700;
}

.intro-copy,
.result-copy > p:not(.eyebrow) {
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.75;
}

.form-panel {
    padding: clamp(34px, 4vw, 64px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.panel-heading,
.mobile-form-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.panel-heading {
    margin-bottom: 38px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.section-number {
    margin: 0 0 9px;
    color: var(--mint);
    font-family: Lato, Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.panel-heading h2,
.mobile-form-heading h2 {
    margin: 0;
    font-size: 27px;
    line-height: 1.35;
}

.panel-heading > p,
.mobile-form-heading > p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.panel-heading > p span,
.mobile-form-heading > p span,
label span {
    color: var(--blue);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
}

.single-field-grid {
    grid-template-columns: 1fr;
}

.field-group {
    min-width: 0;
}

.field-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--charcoal);
    font-size: 15px;
    font-weight: 700;
}

.field-group input,
.field-group select {
    width: 100%;
    height: 64px;
    padding: 0 18px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid #bfc9d1;
    border-radius: 4px;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.kiosk-form .field-group input,
.kiosk-form .field-group select {
    height: 70px;
    padding: 0 21px;
    font-size: 19px;
}

.field-group select.training-select {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.field-group input::placeholder {
    color: #9ca6af;
}

.field-group input:hover,
.field-group select:hover {
    border-color: #7f8d99;
}

.field-group input:focus,
.field-group select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--focus);
}

.field-group input.input-error,
.field-group select.input-error {
    border-color: var(--danger);
}

.field-group input[data-admin-date-picker] {
    min-height: 58px;
    padding-right: 14px;
    font-size: 17px;
    cursor: pointer;
}

.field-error {
    margin: 8px 0 0;
    color: var(--danger);
    font-size: 14px;
    line-height: 1.4;
}

.field-empty {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.training-choice-list {
    display: grid;
    gap: 10px;
}

.training-choice {
    min-height: 68px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #bfc9d1;
    border-radius: 4px;
    cursor: pointer;
}

.training-choice:hover {
    border-color: #7f8d99;
}

.training-choice.input-error {
    border-color: var(--danger);
}

.field-group .training-choice input[type="radio"] {
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--blue);
}

.training-choice-content {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 5px;
}

.training-choice strong {
    color: var(--ink);
    font-size: 15px;
    line-height: 1.35;
}

.training-choice small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.button {
    min-height: 58px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(16, 24, 32, 0.08);
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.button:hover {
    box-shadow: 0 12px 24px rgba(16, 24, 32, 0.12);
    transform: translateY(-2px);
}

.button:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 3px;
}

.button-primary {
    color: #ffffff;
    background: var(--blue);
    border-color: var(--blue);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.button-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

.kiosk-submit {
    width: 100%;
    min-height: 76px;
    margin-top: 36px;
    font-size: 21px;
}

.button-arrow {
    font-size: 28px;
    font-weight: 400;
}

.site-footer {
    min-height: 66px;
    padding: 0 clamp(28px, 4vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #7f8993;
    background: #ffffff;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.result-layout {
    width: min(1180px, calc(100% - 80px));
    min-height: calc(100vh - 92px);
    margin: 0 auto;
    padding: 64px 0;
    display: grid;
    grid-template-columns: 1fr minmax(390px, 0.8fr);
    gap: 96px;
    align-items: center;
}

.return-notice {
    width: fit-content;
    margin-top: 38px;
    padding: 16px 20px;
    display: flex;
    align-items: baseline;
    gap: 9px;
    color: var(--muted);
    background: #eaf0f3;
    border-left: 4px solid var(--mint);
    font-size: 15px;
}

.return-notice strong {
    min-width: 30px;
    color: var(--ink);
    font-family: Lato, Arial, sans-serif;
    font-size: 24px;
}

.qr-panel {
    padding: 34px;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.qr-frame {
    width: min(100%, 420px);
    aspect-ratio: 1;
    margin: 0 auto;
    padding: 10px;
    background: #ffffff;
}

.qr-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.qr-caption {
    margin: 15px 0 8px;
    color: var(--muted);
    font-size: 15px;
}

.qr-url-text {
    margin: 0 0 24px;
    color: var(--ink);
    font-family: Lato, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.qr-panel .button {
    width: 100%;
    min-height: 68px;
    font-size: 19px;
}

.confirmation-layout {
    width: min(800px, calc(100% - 64px));
    min-height: calc(100vh - 92px);
    margin: 0 auto;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.success-mark {
    width: 104px;
    height: 104px;
    margin-bottom: 30px;
    position: relative;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(11, 143, 121, 0.2);
}

.success-mark::after {
    content: "";
    width: 42px;
    height: 22px;
    position: absolute;
    top: 35px;
    left: 29px;
    border-bottom: 7px solid #ffffff;
    border-left: 7px solid #ffffff;
    transform: rotate(-45deg);
}

.confirmation-layout .eyebrow {
    margin-bottom: 18px;
    color: var(--success);
}

.visitor-greeting,
.confirmation-layout > p:not(.eyebrow) {
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 21px;
}

.visitor-greeting strong,
.confirmation-layout > p strong {
    color: var(--ink);
}

.registered-visitor {
    width: min(100%, 440px);
    margin-top: 30px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.registered-visitor p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
    font-size: 18px;
}

.registered-visitor p + p {
    margin-top: 14px;
}

.registered-visitor strong {
    color: var(--ink);
    font-size: 22px;
}

.confirmation-button {
    min-width: 280px;
    min-height: 68px;
    margin-top: 42px;
    font-size: 18px;
}

.mobile-page {
    background: #ffffff;
}

.mobile-header {
    min-height: 280px;
    padding: 30px max(24px, calc((100% - 560px) / 2)) 48px;
    color: #ffffff;
    background: var(--ink);
    border-bottom: 5px solid var(--blue);
}

.brand-light {
    margin-bottom: 52px;
}

.mobile-kicker {
    margin: 0 0 10px;
    color: var(--mint);
    font-family: Lato, Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
}

.mobile-header h1 {
    margin: 0;
    font-size: 36px;
    line-height: 1.25;
}

.mobile-header > p:last-child {
    margin: 12px 0 0;
    color: #bcc6ce;
    font-size: 16px;
}

.mobile-main {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 38px 24px 52px;
}

.mobile-form-heading {
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--ink);
}

.mobile-form-heading h2 {
    font-size: 22px;
}

.mobile-form .field-group + .field-group {
    margin-top: 24px;
}

.mobile-form .field-group input {
    font-size: 16px;
}

.privacy-note {
    margin: 28px 0 0;
    padding: 15px 0 15px 16px;
    color: var(--muted);
    border-left: 3px solid var(--mint);
    font-size: 13px;
    line-height: 1.6;
}

.consent-section {
    margin-top: 30px;
    padding: 22px 0 0;
    color: var(--charcoal);
    border-top: 1px solid var(--line);
}

.consent-section h3 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.45;
}

.consent-section h3 span {
    color: var(--danger);
}

.consent-section p {
    margin: 0;
    color: var(--charcoal);
    font-size: 14px;
    line-height: 1.65;
}

.consent-section p + p {
    margin-top: 14px;
}

.consent-section ul {
    margin: 16px 0;
    padding-left: 20px;
    color: var(--charcoal);
    font-size: 14px;
    line-height: 1.6;
}

.consent-section a {
    color: var(--blue-dark);
    font-weight: 700;
}

.consent-choice {
    min-height: 44px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.consent-choice + .consent-choice {
    margin-top: 10px;
}

.consent-choice input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    accent-color: var(--blue);
}

.consent-choice input.input-error {
    outline: 3px solid rgba(212, 62, 82, 0.18);
    outline-offset: 2px;
}

.consent-options {
    margin-top: 18px;
}

.consent-options .consent-choice {
    margin-top: 0;
}

.mobile-submit {
    width: 100%;
    min-height: 64px;
    margin-top: 28px;
    font-size: 18px;
}

.mobile-footer {
    padding: 24px;
    color: #929ca5;
    background: var(--canvas);
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 12px;
}

.admin-login-page {
    min-height: 100vh;
    background: var(--canvas);
}

.admin-login-main {
    min-height: 100vh;
    padding: 40px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-panel {
    width: min(100%, 460px);
    padding: 42px 38px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.admin-brand {
    margin-bottom: 36px;
}

.admin-brand .brand-name {
    color: var(--ink);
}

.admin-login-panel h1 {
    margin: 0 0 28px;
    font-size: 32px;
    line-height: 1.25;
}

.admin-alert {
    margin: 0 0 22px;
    padding: 13px 14px;
    color: var(--danger);
    background: rgba(212, 62, 82, 0.08);
    border-left: 3px solid var(--danger);
    font-size: 14px;
    line-height: 1.5;
}

.admin-alert-muted {
    color: var(--success);
    background: rgba(11, 143, 121, 0.08);
    border-left-color: var(--success);
}

.admin-login-form .field-group + .field-group {
    margin-top: 20px;
}

.admin-login-submit {
    width: 100%;
    margin-top: 28px;
}

.admin-page {
    min-height: 100vh;
    background: var(--canvas);
}

.admin-header {
    min-height: 76px;
    padding: 0 clamp(24px, 4vw, 56px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    background: var(--ink);
    border-bottom: 4px solid var(--blue);
}

.admin-logout {
    min-height: 38px;
    padding: 0 16px;
    color: #ffffff;
    background: transparent;
    border: 1px solid #53606b;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.admin-logout:hover {
    color: var(--ink);
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 8px 18px rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.admin-logout:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 3px;
}

.admin-main {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    padding: 38px 0 56px;
}

.admin-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.admin-title-row h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.25;
}

.admin-export {
    min-height: 48px;
    padding: 0 18px;
    font-size: 14px;
}

.excel-export-button {
    color: #ffffff;
    background: #217346;
    border-color: #217346;
}

.excel-export-button:hover {
    background: #185c37;
    border-color: #185c37;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-import {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-import input[type="file"] {
    width: 1px;
    height: 1px;
    position: absolute;
    opacity: 0;
}

.admin-file-button,
.admin-upload-button {
    min-height: 48px;
}

.admin-upload-button {
    border-color: #b9c4cc;
    background: #ffffff;
    color: var(--ink);
    box-shadow: none;
}

.admin-upload-button:hover {
    border-color: var(--blue);
    background: #eef8fc;
    box-shadow: 0 8px 18px rgba(0, 156, 223, 0.12);
}

.admin-search {
    margin-top: 30px;
    padding: 20px 0;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.admin-search-with-actions {
    justify-content: space-between;
}

.admin-search-fields,
.admin-search-actions {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-search .field-group {
    width: 190px;
}

.admin-search .field-group input,
.admin-search .field-group select {
    height: 48px;
    font-size: 15px;
}

.admin-search .field-group input[data-admin-date-picker] {
    height: 48px;
    min-height: 48px;
    font-size: 16px;
}

.admin-date-picker {
    width: 360px;
    padding: 18px;
    position: fixed;
    z-index: 40;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 48px rgba(16, 24, 32, 0.22);
}

.admin-date-picker[hidden] {
    display: none;
}

.admin-date-picker-header {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-date-picker-title {
    font-size: 18px;
    font-weight: 800;
}

.admin-date-picker-nav {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: #eef3f6;
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 800;
}

.admin-date-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.admin-date-picker-weekday {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.admin-date-picker-day {
    min-height: 42px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.admin-date-picker-day:hover {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--focus);
}

.admin-date-picker-day.is-muted {
    color: #a9b3bc;
    background: #f6f8fa;
}

.admin-date-picker-day.is-selected {
    color: #ffffff;
    background: var(--blue);
    border-color: var(--blue);
}

.admin-date-picker-day.is-today {
    border-color: var(--mint);
}

.admin-session-form {
    flex-wrap: wrap;
}

.admin-session-form .field-group {
    width: 210px;
}

.admin-session-form .field-group:last-of-type {
    width: min(360px, 100%);
}

.admin-modal {
    padding: 28px 16px;
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20;
    align-items: center;
    justify-content: center;
    background: rgba(16, 24, 32, 0.58);
}

.admin-modal:target,
.admin-modal.is-open {
    display: flex;
}

.admin-modal-panel {
    width: min(100%, 560px);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.admin-modal-heading {
    margin-bottom: 24px;
    padding-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
}

.admin-modal-heading h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
}

.admin-modal-close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 4px;
    text-decoration: none;
    font-size: 26px;
    line-height: 1;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.admin-modal-close:hover {
    color: #ffffff;
    background: var(--danger);
    border-color: var(--danger);
    box-shadow: 0 8px 18px rgba(212, 62, 82, 0.18);
    transform: translateY(-1px);
}

.admin-modal-close:focus-visible {
    outline: 3px solid rgba(212, 62, 82, 0.22);
    outline-offset: 3px;
}

.admin-modal-form {
    display: grid;
    gap: 18px;
}

.time-select-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.time-select-row span {
    color: var(--charcoal);
    font-size: 14px;
    font-weight: 700;
}

.admin-modal-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.admin-cancel-button {
    min-height: 58px;
    color: #ffffff;
    background: var(--danger);
    border-color: var(--danger);
}

.admin-cancel-button:hover {
    background: #b83244;
    border-color: #b83244;
}

.admin-row-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-row-actions form {
    margin: 0;
}

.admin-edit-button {
    min-height: 36px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--blue);
    border: 1px solid var(--blue);
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(0, 156, 223, 0.16);
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.admin-edit-button:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    box-shadow: 0 9px 18px rgba(0, 126, 181, 0.2);
    transform: translateY(-1px);
}

.admin-danger-button {
    min-height: 36px;
    padding: 0 14px;
    color: #ffffff;
    background: var(--danger);
    border: 1px solid var(--danger);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(212, 62, 82, 0.16);
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.admin-danger-button:hover {
    background: #b83244;
    border-color: #b83244;
    box-shadow: 0 9px 18px rgba(184, 50, 68, 0.2);
    transform: translateY(-1px);
}

.admin-search-button {
    min-height: 48px;
    padding: 0 20px;
}

.admin-reset {
    min-height: 48px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.admin-reset:hover {
    color: var(--ink);
    background: #f8fafb;
    border-color: #b9c4cc;
    box-shadow: 0 8px 18px rgba(16, 24, 32, 0.08);
    transform: translateY(-1px);
}

.admin-table-wrap {
    margin-top: 28px;
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.admin-table th {
    color: var(--charcoal);
    background: #eef3f6;
    font-size: 13px;
    font-weight: 800;
}

.admin-table td.training-title-cell {
    text-align: left;
}

.admin-table .training-title-text {
    display: inline-block;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-empty {
    height: 150px;
    color: var(--muted);
    text-align: center !important;
}

.admin-pagination {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-pagination a {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.admin-pagination a.active {
    color: #ffffff;
    background: var(--blue);
    border-color: var(--blue);
}

.admin-pagination a.disabled {
    color: #b5bec6;
    pointer-events: none;
}

.compact-header {
    height: 88px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    background: var(--ink);
    border-bottom: 4px solid var(--blue);
}

.compact-header .brand {
    margin: 0;
}

.mobile-complete {
    width: min(100%, 600px);
    min-height: calc(100vh - 88px);
    margin: 0 auto;
    padding: 64px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.completion-popup {
    width: 100%;
    padding: 54px 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.mobile-complete .success-mark {
    width: 84px;
    height: 84px;
    margin-right: auto;
    margin-left: auto;
}

.mobile-complete .success-mark::after {
    width: 34px;
    height: 17px;
    top: 29px;
    left: 24px;
    border-width: 0 0 6px 6px;
    border-style: solid;
    border-color: #ffffff;
}

.mobile-complete .eyebrow {
    margin-bottom: 12px;
    color: var(--success);
}

.mobile-complete h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.3;
}

.error-layout .eyebrow {
    color: var(--danger);
}

@media (max-width: 1050px) {
    .kiosk-layout {
        width: min(820px, calc(100% - 48px));
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .kiosk-intro {
        padding: 10px 0 0;
    }

    .kiosk-intro h1 br,
    .intro-copy br {
        display: none;
    }

    .result-layout {
        width: min(760px, calc(100% - 48px));
        grid-template-columns: 1fr;
        gap: 44px;
        text-align: center;
    }

    .return-notice {
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 680px) {
    .site-header {
        min-height: 72px;
        padding: 0 20px;
    }

    .header-label {
        display: none;
    }

    .kiosk-layout {
        width: calc(100% - 32px);
        padding: 30px 0;
    }

    .kiosk-intro h1,
    .result-copy h1,
    .confirmation-layout h1 {
        font-size: 40px;
    }

    .form-panel {
        padding: 26px 20px;
    }

    .panel-heading {
        margin-bottom: 28px;
    }

    .panel-heading h2 {
        font-size: 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .site-footer {
        padding: 18px 20px;
        display: block;
        text-align: center;
    }

    .site-footer span {
        display: block;
    }

    .site-footer span + span {
        margin-top: 6px;
    }

    .admin-login-panel {
        padding: 34px 24px;
    }

    .admin-main {
        width: calc(100% - 32px);
        padding-top: 30px;
    }

    .admin-title-row,
    .admin-search {
        display: block;
    }

    .admin-export,
    .admin-actions,
    .admin-import,
    .admin-file-button,
    .admin-upload-button,
    .admin-search .field-group,
    .admin-search-button {
        width: 100%;
    }

    .admin-actions {
        margin-top: 18px;
        justify-content: stretch;
    }

    .admin-import {
        justify-content: stretch;
    }

    .admin-export,
    .admin-file-button,
    .admin-upload-button {
        justify-content: center;
    }

    .admin-search .field-group + .field-group,
    .admin-search-button {
        margin-top: 14px;
    }

    .result-layout {
        width: calc(100% - 32px);
        min-height: calc(100vh - 72px);
        padding: 38px 0;
    }

    .result-copy > p:not(.eyebrow) br {
        display: none;
    }

    .qr-panel {
        padding: 24px 18px;
    }

    .confirmation-layout {
        width: calc(100% - 40px);
        min-height: calc(100vh - 72px);
    }
}

@media (max-width: 380px) {
    .mobile-header {
        padding-right: 20px;
        padding-left: 20px;
    }

    .mobile-main,
    .mobile-complete {
        padding-right: 20px;
        padding-left: 20px;
    }

    .mobile-header h1 {
        font-size: 32px;
    }
}

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