@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Registration UI (online + offline). Root class .adm2-ui on every page wrapper.
   ========================================================================== */
.adm2-ui {
    --a2-bg: #f8fafc;
    --a2-surface: #ffffff;
    --a2-muted-bg: #f1f5f9;
    --a2-border: #e2e8f0;
    --a2-border-strong: #cbd5e1;
    --a2-text: #0f172a;
    --a2-text-2: #475569;
    --a2-text-3: #94a3b8;
    --a2-primary: #4f46e5;
    --a2-primary-hover: #4338ca;
    --a2-primary-soft: #eef2ff;
    --a2-primary-ring: rgba(79, 70, 229, .18);
    --a2-success: #16a34a;
    --a2-success-soft: #f0fdf4;
    --a2-danger: #dc2626;
    --a2-danger-soft: #fef2f2;
    --a2-danger-ring: rgba(220, 38, 38, .14);
    --a2-warn: #b45309;
    --a2-warn-soft: #fffbeb;
    --a2-radius-sm: 8px;
    --a2-radius: 12px;
    --a2-radius-lg: 16px;
    --a2-shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
    --a2-shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
    --a2-shadow: 0 10px 30px -12px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .04);
    --a2-ease: cubic-bezier(.16, 1, .3, 1);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--a2-text);
    -webkit-font-smoothing: antialiased;
}
.adm2-ui *, .adm2-ui *:before, .adm2-ui *:after { box-sizing: border-box; }
.adm2-ui p, .adm2-ui span, .adm2-ui div, .adm2-ui li, .adm2-ui dd, .adm2-ui dt { font-family: inherit; }
.adm2-ui :where(p) { margin: 0; font-weight: 400; }
.adm2-ui h1, .adm2-ui h2, .adm2-ui h3, .adm2-ui h4, .adm2-ui h5, .adm2-ui h6 {
    margin: 0; padding: 0; font-family: inherit; line-height: 1.3; color: var(--a2-text); letter-spacing: -.01em; text-transform: none; text-align: inherit;
}
.adm2-ui a:not(.adm2-btn) { color: var(--a2-primary); }
.adm2-ui a:not(.adm2-btn):hover, .adm2-ui a:not(.adm2-btn):focus { color: var(--a2-primary-hover); }
.adm2-ui .text-red { color: var(--a2-danger); font-weight: 600; }
.adm2-ui .text-muted { color: var(--a2-text-2); }

@keyframes adm2In { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes adm2Pop { 0% { opacity: 0; transform: scale(.6); } 60% { transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes adm2Spin { to { transform: rotate(360deg); } }

/* ---- page shell ---- */
.adm2 { max-width: 960px; margin: 0 auto; padding: 24px 0; background: transparent; border: 0; }
.adm2--wide { max-width: 1040px; }
.adm2-page { max-width: 640px; margin: 0 auto; padding: 32px 0; }
.adm2-page--wide { max-width: 760px; }
.adm2-page--narrow { max-width: 480px; }

.adm2-hero {
    position: relative; overflow: hidden;
    background: var(--a2-surface); border: 1px solid var(--a2-border); border-radius: var(--a2-radius-lg);
    padding: 22px 24px; box-shadow: var(--a2-shadow-sm); margin-bottom: 16px;
}
.adm2-hero:before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed 55%, #0ea5e9);
}
.adm2-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.adm2-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--a2-primary); margin: 0 0 6px; }
.adm2-hero-title { font-size: 22px; font-weight: 700; margin: 0; line-height: 1.25; }
.adm2-hero-sub { font-size: 14px; color: var(--a2-text-2); margin: 4px 0 0; }
.adm2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.adm2-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
    background: var(--a2-muted-bg); border: 1px solid var(--a2-border); border-radius: 999px;
    font-size: 13px; color: var(--a2-text-2); white-space: nowrap;
}
.adm2-chip b { color: var(--a2-text); font-weight: 600; }
.adm2-chip .fa { color: var(--a2-text-3); }
.adm2-chip--primary { background: var(--a2-primary-soft); border-color: #c7d2fe; color: var(--a2-primary); }
.adm2-chip--primary b, .adm2-chip--primary .fa { color: var(--a2-primary); }
.adm2-chip--success { background: var(--a2-success-soft); border-color: #bbf7d0; color: #15803d; }
.adm2-chip--success .fa, .adm2-chip--success b { color: #15803d; }
.adm2-chip--danger { background: var(--a2-danger-soft); border-color: #fecaca; color: var(--a2-danger); }
.adm2-chip--danger .fa, .adm2-chip--danger b { color: var(--a2-danger); }

.adm2-appno-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
    margin-top: 16px; padding: 12px 14px; background: var(--a2-bg); border: 1px dashed var(--a2-border-strong); border-radius: var(--a2-radius);
}
.adm2-appno-label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--a2-text-2); }
.adm2-appno-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 18px; font-weight: 700; color: var(--a2-text); letter-spacing: .02em; }
.adm2-appno-manual { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--a2-text-2); }
.adm2-ui .adm2-appno-manual .form-control { width: 120px; height: 36px; }
.adm2-appno-error { color: var(--a2-danger); font-size: 13px; font-weight: 500; }

/* ---- cards ---- */
.adm2-card {
    max-width: 760px; margin: 24px auto; background: var(--a2-surface);
    border: 1px solid var(--a2-border); border-radius: var(--a2-radius-lg); padding: 28px; box-shadow: var(--a2-shadow);
    animation: adm2In .4s var(--a2-ease);
}
.adm2-card-head { text-align: center; margin-bottom: 22px; }
.adm2-card-head .adm2-hero-title { font-size: 22px; }
.adm2-card-icon {
    display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px;
    background: var(--a2-primary-soft); color: var(--a2-primary); font-size: 22px; margin: 0 auto 12px;
}
.adm2-divider { height: 1px; background: var(--a2-border); margin: 20px 0; border: 0; }
.adm2-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 14px; }
.adm2-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }

/* ---- stepper ---- */
.adm2-stepper {
    background: var(--a2-surface); border: 1px solid var(--a2-border); border-radius: var(--a2-radius-lg);
    padding: 16px 20px 14px; box-shadow: var(--a2-shadow-xs); margin-bottom: 16px;
}
.adm2-stepper-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--a2-text-2); margin-bottom: 12px; }
.adm2-stepper-meta b { color: var(--a2-text); }
.adm2-stepper-current { font-weight: 600; color: var(--a2-primary); }
.adm2-progress { height: 6px; background: var(--a2-muted-bg); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.adm2-progress-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #4f46e5, #7c3aed); transition: width .5s var(--a2-ease); }
.adm2-steps { display: flex; list-style: none; padding: 0; margin: 0; gap: 4px; }
.adm2-steps li { flex: 1 1 0; min-width: 0; position: relative; }
.adm2-steps li + li:before {
    content: ''; position: absolute; top: 15px; right: calc(50% + 20px); left: calc(-50% + 20px); height: 2px;
    background: var(--a2-border); border-radius: 2px; transition: background .3s;
}
.adm2-steps li.active:before, .adm2-steps li.done:before { background: var(--a2-primary); }
.adm2-steps-btn {
    display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%;
    background: none; border: 0; padding: 0; font: inherit; color: var(--a2-text-3); cursor: default;
}
.adm2-steps-btn:focus { outline: none; }
.adm2-steps-btn:focus-visible .adm2-steps-dot { box-shadow: 0 0 0 4px var(--a2-primary-ring); }
.adm2-steps-dot {
    position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; background: var(--a2-surface); border: 2px solid var(--a2-border-strong);
    font-size: 13px; font-weight: 600; color: var(--a2-text-3); transition: all .3s var(--a2-ease);
}
.adm2-steps-dot .fa { display: none; font-size: 13px; }
.adm2-steps-name { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.adm2-steps li.active .adm2-steps-dot { border-color: var(--a2-primary); background: var(--a2-primary); color: #fff; box-shadow: 0 0 0 4px var(--a2-primary-ring); }
.adm2-steps li.active .adm2-steps-name { color: var(--a2-text); font-weight: 600; }
.adm2-steps li.done .adm2-steps-btn { cursor: pointer; color: var(--a2-text-2); }
.adm2-steps li.done .adm2-steps-dot { border-color: var(--a2-primary); background: var(--a2-primary-soft); color: var(--a2-primary); }
.adm2-steps li.done .adm2-steps-dot .fa { display: inline; }
.adm2-steps li.done .adm2-steps-num { display: none; }
.adm2-steps li.done .adm2-steps-btn:hover .adm2-steps-dot { background: var(--a2-primary); color: #fff; }

/* ---- steps ---- */
.adm2-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.adm2.js .adm2-step { display: none; }
.adm2.js .adm2-step.active { display: block; animation: adm2In .35s var(--a2-ease); }
.adm2-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.adm2-step-head { display: flex; align-items: center; gap: 14px; margin: 4px 2px 16px; }
.adm2-step-icon {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: 12px; background: var(--a2-primary-soft); color: var(--a2-primary); font-size: 19px;
}
.adm2-step-title { font-size: 19px; font-weight: 700; margin: 0; line-height: 1.3; }
.adm2-step-desc { font-size: 14px; color: var(--a2-text-2); margin: 2px 0 0; }

/* ---- sections ---- */
.adm2-section {
    background: var(--a2-surface); border: 1px solid var(--a2-border); border-radius: var(--a2-radius-lg);
    box-shadow: var(--a2-shadow-xs); margin-bottom: 16px; overflow: hidden;
}
.adm2-section-head {
    display: flex; align-items: center; gap: 10px; padding: 14px 20px;
    border-bottom: 1px solid var(--a2-border); background: linear-gradient(180deg, #fbfcfe, #f8fafc);
}
.adm2-section-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px;
    background: var(--a2-surface); border: 1px solid var(--a2-border); color: var(--a2-primary); font-size: 13px;
}
.adm2-section-title { font-size: 15px; font-weight: 600; margin: 0; }
.adm2-section-hint { margin-left: auto; font-size: 12.5px; color: var(--a2-text-3); }
.adm2-section-body { padding: 20px; }
.adm2-section-body > .adm2-note:first-child { margin-top: 0; }

.adm2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.adm2-grid > .adm2-col-full { grid-column: 1 / -1; }

/* ---- fields ---- */
.adm2-ui .form-group { margin: 0; position: relative; }
.adm2-ui label, .adm2-ui .control-label { display: block; font-size: 13.5px; font-weight: 500; color: var(--a2-text); margin: 0 0 6px; }
.adm2-ui .form-control {
    display: block; width: 100%; height: 44px; padding: 10px 14px; font-family: inherit; font-size: 15px; color: var(--a2-text);
    background: var(--a2-surface); border: 1px solid var(--a2-border-strong); border-radius: 10px; box-shadow: var(--a2-shadow-xs);
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.adm2-ui textarea.form-control { height: auto; min-height: 84px; resize: vertical; }
.adm2-ui .form-control::placeholder { color: var(--a2-text-3); }
.adm2-ui .form-control:hover { border-color: #94a3b8; }
.adm2-ui .form-control:focus { outline: none; border-color: var(--a2-primary); box-shadow: 0 0 0 4px var(--a2-primary-ring); }
.adm2-ui .form-control[disabled], .adm2-ui .form-control[readonly] { background: var(--a2-muted-bg); color: var(--a2-text-2); }
.adm2-ui select.form-control {
    -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.adm2-ui .has-error .form-control, .adm2-ui td.has-error .form-control { border-color: var(--a2-danger); background-color: #fffafa; }
.adm2-ui .has-error .form-control:focus { box-shadow: 0 0 0 4px var(--a2-danger-ring); }
.adm2-ui .form-group.is-valid .form-control:not(select) {
    border-color: #86efac; padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.adm2-ui .form-group.is-valid select.form-control { border-color: #86efac; }
.adm2-ui .form-group.is-valid textarea.form-control { background-position: right 12px top 12px; }
.adm2-ui .has-error label, .adm2-ui .has-error .control-label { color: var(--a2-text); }
.adm2-ui .help-block { display: block; margin: 6px 0 0; font-size: 12.5px; color: var(--a2-text-2); line-height: 1.4; }
.adm2-ui .help-block.text-danger, .adm2-ui .has-error .help-block.text-danger {
    display: flex; align-items: flex-start; gap: 6px; color: var(--a2-danger); font-weight: 500; animation: adm2In .2s var(--a2-ease);
}
.adm2-ui .help-block.text-danger:before { content: '\f06a'; font-family: FontAwesome; font-weight: normal; line-height: 1.4; }
.adm2-ui .help-block.adm2-warn, .adm2-ui .has-error .help-block.adm2-warn { color: var(--a2-warn); }
.adm2-ui .adm2-warn:empty { display: none; }
.adm2-ui input[type=date].form-control { line-height: 22px; }
.adm2-ui input[type=number].form-control { -moz-appearance: textfield; }

.adm2-note {
    display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 10px 14px;
    background: var(--a2-primary-soft); border: 1px solid #e0e7ff; border-radius: var(--a2-radius-sm);
    font-size: 13.5px; color: #3730a3;
}
.adm2-note .fa { margin-top: 3px; }

/* ---- alerts ---- */
.adm2-alert {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 16px;
    border-radius: var(--a2-radius); border: 1px solid; font-size: 14px; animation: adm2In .3s var(--a2-ease);
}
.adm2-alert > .fa { font-size: 18px; margin-top: 1px; }
.adm2-alert-title { font-weight: 600; margin: 0 0 4px; }
.adm2-alert ul { margin: 0; padding-left: 18px; }
.adm2-alert--danger { background: var(--a2-danger-soft); border-color: #fecaca; color: #991b1b; }
.adm2-alert--warn { background: var(--a2-warn-soft); border-color: #fde68a; color: #92400e; }
.adm2-alert--info { background: var(--a2-primary-soft); border-color: #c7d2fe; color: #3730a3; }

/* ---- choice cards (radio / checkbox) ---- */
.adm2-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.adm2-choices > .help-block { grid-column: 1 / -1; margin-top: 0; }
.adm2-ui label.adm2-choice {
    position: relative; display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 14px;
    background: var(--a2-surface); border: 1px solid var(--a2-border-strong); border-radius: var(--a2-radius);
    cursor: pointer; font-weight: 400; transition: border-color .15s, box-shadow .15s, background-color .15s, transform .15s var(--a2-ease);
}
.adm2-ui label.adm2-choice:hover { border-color: #a5b4fc; box-shadow: var(--a2-shadow-sm); }
.adm2-ui label.adm2-choice:active { transform: scale(.99); }
.adm2-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.adm2-choice-mark {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: 1px;
    border: 2px solid var(--a2-border-strong); background: var(--a2-surface); transition: all .15s var(--a2-ease);
}
.adm2-choice--radio .adm2-choice-mark { border-radius: 50%; }
.adm2-choice--check .adm2-choice-mark { border-radius: 6px; }
.adm2-choice-mark:after { content: ''; opacity: 0; transform: scale(.4); transition: all .2s var(--a2-ease); }
.adm2-choice--radio .adm2-choice-mark:after { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.adm2-choice--check .adm2-choice-mark:after { width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(.4); margin-top: -2px; }
.adm2-choice-body { display: flex; flex-direction: column; min-width: 0; }
.adm2-choice-title { font-size: 14.5px; font-weight: 500; color: var(--a2-text); line-height: 1.35; }
.adm2-choice-desc { font-size: 12.5px; color: var(--a2-text-2); margin-top: 2px; }
.adm2-choice.is-checked, .adm2-choice:has(input:checked) { border-color: var(--a2-primary); background: var(--a2-primary-soft); box-shadow: 0 0 0 1px var(--a2-primary); }
.adm2-choice.is-checked .adm2-choice-mark, .adm2-choice:has(input:checked) .adm2-choice-mark { border-color: var(--a2-primary); background: var(--a2-primary); }
.adm2-choice.is-checked .adm2-choice-mark:after, .adm2-choice:has(input:checked) .adm2-choice-mark:after { opacity: 1; transform: scale(1); }
.adm2-choice--check.is-checked .adm2-choice-mark:after, .adm2-choice--check:has(input:checked) .adm2-choice-mark:after { transform: rotate(-45deg) scale(1); }
.adm2-choice:focus-within { box-shadow: 0 0 0 4px var(--a2-primary-ring); border-color: var(--a2-primary); }
.adm2-basket.is-maxed .adm2-choice:not(.is-checked) { opacity: .55; }

/* ---- subject flow ---- */
.adm2-substep + .adm2-substep { margin-top: 22px; }
.adm2-substep-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.adm2-substep-num {
    display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
    background: var(--a2-text); color: #fff; font-size: 12px; font-weight: 600;
}
.adm2-substep-title { font-size: 14.5px; font-weight: 600; margin: 0; }
.adm2-substep-hint { font-size: 12.5px; color: var(--a2-text-3); }
.adm2-panel { margin-top: 16px; animation: adm2In .3s var(--a2-ease); }
.adm2-panel > .help-block.text-danger { margin-top: 10px; }
.adm2-basket {
    margin: 0 0 12px; padding: 14px; background: var(--a2-bg); border: 1px solid var(--a2-border); border-radius: var(--a2-radius);
    transition: border-color .2s;
}
.adm2-basket.has-error { border-color: #fca5a5; background: #fffafa; }
.adm2-basket-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.adm2-ui .adm2-basket-head .control-label { margin: 0; font-weight: 600; }
.adm2-basket-rule { font-weight: 400; color: var(--a2-text-2); font-size: 12.5px; margin-left: 4px; }
.adm2-basket-count {
    flex: 0 0 auto; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
    background: var(--a2-surface); border: 1px solid var(--a2-border); font-size: 12px; font-weight: 600; color: var(--a2-text-2);
    font-variant-numeric: tabular-nums; transition: all .2s;
}
.adm2-basket.is-complete .adm2-basket-count { background: var(--a2-success-soft); border-color: #bbf7d0; color: #15803d; }
.adm2-basket + .help-block.text-danger { margin: -6px 0 12px; }

/* ---- marks ---- */
.adm2-table-wrap { overflow-x: auto; border: 1px solid var(--a2-border); border-radius: var(--a2-radius); -webkit-overflow-scrolling: touch; }
.adm2-ui table.adm2-marks { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; background: var(--a2-surface); }
.adm2-ui .adm2-marks th, .adm2-ui .adm2-marks td { border: 0; border-bottom: 1px solid var(--a2-border); padding: 10px 12px; vertical-align: middle; }
.adm2-ui .adm2-marks tr:last-child th, .adm2-ui .adm2-marks tr:last-child td { border-bottom: 0; }
.adm2-ui .adm2-marks thead th {
    background: var(--a2-bg); font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--a2-text-2);
    text-align: center; white-space: nowrap;
}
.adm2-ui .adm2-marks thead th small { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--a2-text-3); margin-top: 2px; }
.adm2-ui .adm2-marks tbody th {
    font-size: 14px; font-weight: 500; text-align: left; min-width: 150px; background: var(--a2-surface);
    position: -webkit-sticky; position: sticky; left: 0; z-index: 1;
}
.adm2-ui .adm2-marks td { min-width: 100px; }
.adm2-ui .adm2-marks .mk-in { height: 38px; text-align: center; padding: 6px 8px; min-width: 70px; font-variant-numeric: tabular-nums; }
.adm2-ui .adm2-marks .mg-in { margin-top: 6px; height: 38px; }
.adm2-ui .adm2-marks tr[data-rowtype=total] th, .adm2-ui .adm2-marks tr[data-rowtype=percent] th,
.adm2-ui .adm2-marks tr:not([data-rowtype=input]) th { background: var(--a2-primary-soft); color: #3730a3; font-weight: 600; }
.adm2-ui .adm2-marks .mk-calc { background: var(--a2-primary-soft); color: #3730a3; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.adm2-ui .adm2-marks td .help-block { font-size: 12px; }
.adm2-marks-title { font-size: 14.5px; font-weight: 600; margin: 0 0 10px; }
.adm2-marks-block + .adm2-marks-block { margin-top: 22px; }

/* ---- documents ---- */
.adm2-doc-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.adm2-tag { flex: 0 0 auto; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.adm2-tag--req { background: var(--a2-danger-soft); color: var(--a2-danger); }
.adm2-tag--opt { background: var(--a2-muted-bg); color: var(--a2-text-2); }
.adm2-tag--done { background: var(--a2-success-soft); color: #15803d; }
.adm2-drop {
    position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; margin: 0;
    background: var(--a2-bg); border: 1.5px dashed var(--a2-border-strong); border-radius: var(--a2-radius);
    cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.adm2-drop:hover, .adm2-drop.is-over { border-color: var(--a2-primary); background: var(--a2-primary-soft); }
.adm2-drop:focus-within { border-color: var(--a2-primary); box-shadow: 0 0 0 4px var(--a2-primary-ring); }
.adm2-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.adm2-drop-icon {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px;
    background: var(--a2-surface); border: 1px solid var(--a2-border); color: var(--a2-primary); font-size: 17px; transition: all .2s;
}
.adm2-drop-text { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; color: var(--a2-text-2); }
.adm2-drop-text b { color: var(--a2-primary); font-weight: 600; }
.adm2-drop-meta { font-size: 12px; color: var(--a2-text-3); margin-top: 1px; }
.adm2-drop-name { font-weight: 400; color: var(--a2-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm2-drop.has-file { border-style: solid; border-color: #86efac; background: var(--a2-success-soft); }
.adm2-drop.has-file .adm2-drop-name { font-weight: 600; color: var(--a2-text); }
.adm2-drop.has-file .adm2-drop-icon { color: var(--a2-success); border-color: #bbf7d0; }
.has-error .adm2-drop { border-color: #fca5a5; background: #fffafa; }
.adm2-file-current { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--a2-text-2); }
.adm2-file-current a { font-weight: 600; }
.adm2-file-preview { margin-top: 10px; }
.adm2-file-preview:empty { display: none; }
.adm2-file-thumb {
    display: block; max-width: 140px; max-height: 170px; padding: 3px; margin: 0; background: var(--a2-surface);
    border: 1px solid var(--a2-border); border-radius: 10px; box-shadow: var(--a2-shadow-sm); object-fit: cover; animation: adm2Pop .35s var(--a2-ease);
}
.adm2-file-pdf { display: inline-block; margin-bottom: 4px; font-size: 15px; }
.adm2-file-pdf .fa { color: #c9302c; }
.adm2-webcam { margin-top: 10px; }
.adm2-cam-box { margin-top: 10px; padding: 10px; background: var(--a2-bg); border: 1px solid var(--a2-border); border-radius: var(--a2-radius); }
.adm2-cam-box video { display: block; max-width: 100%; width: 260px; border-radius: 8px; background: #000; margin-bottom: 8px; }
.adm2-cam-box img { display: block; max-width: 160px; border-radius: 8px; margin-top: 8px; border: 1px solid var(--a2-border); }

/* ---- buttons ---- */
.adm2-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
    font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none;
    border-radius: 10px; border: 1px solid transparent; cursor: pointer; user-select: none;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s var(--a2-ease);
}
.adm2-btn:hover { text-decoration: none; }
.adm2-btn:active { transform: translateY(1px) scale(.99); }
.adm2-btn:focus { outline: none; }
.adm2-btn:focus-visible { box-shadow: 0 0 0 4px var(--a2-primary-ring); }
.adm2-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.adm2-btn--primary { background: var(--a2-primary); color: #fff; box-shadow: 0 1px 2px rgba(79, 70, 229, .3), inset 0 1px 0 rgba(255, 255, 255, .12); }
.adm2-btn--primary:hover, .adm2-btn--primary:focus { background: var(--a2-primary-hover); color: #fff; }
.adm2-btn--success { background: var(--a2-success); color: #fff; box-shadow: 0 1px 2px rgba(22, 163, 74, .3), inset 0 1px 0 rgba(255, 255, 255, .12); }
.adm2-btn--success:hover, .adm2-btn--success:focus { background: #15803d; color: #fff; }
.adm2-btn--ghost { background: var(--a2-surface); color: var(--a2-text); border-color: var(--a2-border-strong); box-shadow: var(--a2-shadow-xs); }
.adm2-btn--ghost:hover, .adm2-btn--ghost:focus { background: var(--a2-bg); color: var(--a2-text); border-color: #94a3b8; }
.adm2-btn--sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 8px; }
.adm2-btn--block { display: flex; width: 100%; }
.adm2-btn--lg { height: 50px; font-size: 16px; }
.adm2-btn .fa-spinner { animation: adm2Spin .8s linear infinite; }

.adm2-bar {
    display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 14px 16px;
    background: rgba(255, 255, 255, .92); border: 1px solid var(--a2-border); border-radius: var(--a2-radius-lg); box-shadow: var(--a2-shadow-sm);
    -webkit-backdrop-filter: saturate(180%) blur(8px); backdrop-filter: saturate(180%) blur(8px);
}
.adm2-bar-info { font-size: 13px; color: var(--a2-text-2); }
.adm2-bar-actions { margin-left: auto; display: flex; gap: 10px; }

/* ---- class picker tiles ---- */
.adm2-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.adm2-ui label.adm2-tile { position: relative; display: block; margin: 0; font-weight: 400; cursor: pointer; }
.adm2-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.adm2-tile-body {
    display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; background: var(--a2-surface);
    border: 1px solid var(--a2-border-strong); border-radius: var(--a2-radius); transition: all .2s var(--a2-ease);
}
.adm2-tile:hover .adm2-tile-body { border-color: #a5b4fc; box-shadow: var(--a2-shadow); transform: translateY(-2px); }
.adm2-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.adm2-tile-name { font-size: 18px; font-weight: 700; color: var(--a2-text); }
.adm2-tile-check {
    display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--a2-border-strong); color: #fff; font-size: 11px; transition: all .2s var(--a2-ease);
}
.adm2-tile-check .fa { opacity: 0; transform: scale(.4); transition: all .2s var(--a2-ease); }
.adm2-tile-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--a2-text-2); }
.adm2-tile-meta .fa { color: var(--a2-text-3); width: 14px; text-align: center; }
.adm2-seatbar { height: 4px; background: var(--a2-muted-bg); border-radius: 999px; overflow: hidden; margin: 6px 0 2px; }
.adm2-seatbar span { display: block; height: 100%; background: var(--a2-primary); border-radius: inherit; }
.adm2-seatbar.is-low span { background: #f59e0b; }
.adm2-tile input:checked + .adm2-tile-body { border-color: var(--a2-primary); background: var(--a2-primary-soft); box-shadow: 0 0 0 1px var(--a2-primary), var(--a2-shadow-sm); transform: none; }
.adm2-tile input:checked + .adm2-tile-body .adm2-tile-check { background: var(--a2-primary); border-color: var(--a2-primary); }
.adm2-tile input:checked + .adm2-tile-body .adm2-tile-check .fa { opacity: 1; transform: scale(1); }
.adm2-tile input:focus-visible + .adm2-tile-body { box-shadow: 0 0 0 4px var(--a2-primary-ring); }
.adm2-tile input:disabled + .adm2-tile-body { background: var(--a2-bg); opacity: .65; box-shadow: none; transform: none; }
.adm2-ui label.adm2-tile.is-full { cursor: not-allowed; }
.adm2-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.adm2-badge--danger { background: var(--a2-danger-soft); color: var(--a2-danger); }
.adm2-empty { text-align: center; padding: 28px 16px; border: 1px dashed var(--a2-border-strong); border-radius: var(--a2-radius); color: var(--a2-text-2); background: var(--a2-bg); }
.adm2-empty .fa { display: block; font-size: 26px; color: var(--a2-text-3); margin-bottom: 8px; }
.adm2-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.adm2-field-block + .adm2-field-block { margin-top: 18px; }
.adm2-session-static { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ---- success / find / closed ---- */
.adm2-result { text-align: center; }
.adm2-result-icon {
    display: flex; margin-left: auto; margin-right: auto; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%;
    font-size: 34px; margin-bottom: 14px; animation: adm2Pop .5s var(--a2-ease) both;
}
.adm2-result-icon--success { background: var(--a2-success-soft); color: var(--a2-success); box-shadow: 0 0 0 8px rgba(22, 163, 74, .07); }
.adm2-result-icon--danger { background: var(--a2-danger-soft); color: var(--a2-danger); box-shadow: 0 0 0 8px rgba(220, 38, 38, .06); }
.adm2-appno-box {
    display: inline-flex; align-items: center; gap: 12px; margin: 10px 0 6px; padding: 10px 12px 10px 18px;
    background: var(--a2-bg); border: 1px solid var(--a2-border); border-radius: var(--a2-radius);
}
.adm2-appno-box .adm2-appno-value { font-size: 24px; }
.adm2-copy { height: 34px; }
.adm2-dl { margin: 18px 0; text-align: left; border: 1px solid var(--a2-border); border-radius: var(--a2-radius); overflow: hidden; }
.adm2-dl-row { display: flex; gap: 12px; padding: 11px 16px; font-size: 14px; }
.adm2-dl-row + .adm2-dl-row { border-top: 1px solid var(--a2-border); }
.adm2-dl-row dt { flex: 0 0 90px; color: var(--a2-text-2); font-weight: 500; }
.adm2-dl-row dd { margin: 0; font-weight: 600; color: var(--a2-text); min-width: 0; word-break: break-word; }
.adm2-actions { display: grid; gap: 10px; }
.adm2-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--a2-text-3); }
.adm2-or:before, .adm2-or:after { content: ''; flex: 1; height: 1px; background: var(--a2-border); }

/* ---- staff view page headings ---- */
.adm2-pv-head { font-size: 16px; color: #337ab7; margin: 18px 0 8px; }
.adm2-pv-head .adm2-edit { font-size: 13px; font-weight: normal; margin-left: 8px; }
.adm2-preview table { background: #fff; }
.adm2-preview th { width: 40%; background: #f5f5f5; }
.adm2-preview .adm2-pv-img { max-width: 160px; max-height: 200px; border: 1px solid #ddd; padding: 2px; background: #fff; display: block; margin-bottom: 4px; }

/* ---- responsive ---- */
@media (max-width: 767px) {
    .adm2 { margin: 12px auto; }
    .adm2-hero { padding: 18px 16px; border-radius: var(--a2-radius); }
    .adm2-hero-title { font-size: 19px; }
    .adm2-card { margin: 12px auto; padding: 20px 16px; border-radius: var(--a2-radius); }
    .adm2-stepper { padding: 14px 14px 12px; border-radius: var(--a2-radius); }
    .adm2-steps li + li:before { top: 13px; right: calc(50% + 16px); left: calc(-50% + 16px); }
    .adm2-steps-dot { width: 28px; height: 28px; font-size: 12px; }
    .adm2-steps-name { display: none; }
    .adm2-steps li.active .adm2-steps-name { display: none; }
    .adm2-step-head { margin-bottom: 12px; }
    .adm2-step-icon { width: 38px; height: 38px; font-size: 16px; }
    .adm2-step-title { font-size: 17px; }
    .adm2-section { border-radius: var(--a2-radius); }
    .adm2-section-head { padding: 12px 16px; }
    .adm2-section-hint { display: none; }
    .adm2-section-body { padding: 16px; }
    .adm2-grid, .adm2-field-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .adm2-choices { grid-template-columns: minmax(0, 1fr); }
    .adm2-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .adm2-tile-body { padding: 12px; }
    .adm2-tile-name { font-size: 16px; }
    .adm2-bar {
        position: -webkit-sticky; position: sticky; bottom: 0; z-index: 20; margin: 8px -16px 0; padding: 12px 16px;
        border-radius: 0; border-width: 1px 0 0; box-shadow: 0 -6px 16px -8px rgba(15, 23, 42, .15);
    }
    .adm2-bar-info { display: none; }
    .adm2-bar-actions { width: 100%; }
    .adm2-bar-actions .adm2-btn { flex: 1 1 0; padding: 0 12px; }
    .adm2-ui .form-control { font-size: 16px; }
}
@media (max-width: 380px) { .adm2-tiles { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
    .adm2-ui *, .adm2-ui *:before, .adm2-ui *:after { animation: none !important; transition: none !important; }
}
@media print { .adm2-stepper, .adm2-bar { display: none; } }
