:root {
    color-scheme: dark;
    --bg: #020a07;
    --panel: rgba(3, 22, 14, .93);
    --panel-soft: rgba(8, 38, 24, .72);
    --green: #75ec63;
    --green-bright: #adff72;
    --green-deep: #187b3a;
    --gold: #f5ca3d;
    --gold-soft: #ffe36d;
    --white: #f7faf7;
    --muted: #b4c0b8;
    --line: rgba(111, 232, 101, .36);
    --gold-line: rgba(245, 202, 61, .74);
    --danger: #ff6b6b;
    --mouth-open: .08;
    font-family: "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--white);
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

.scan-capture {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.kiosk-shell {
    isolation: isolate;
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
    width: 100%;
    max-width: 100vw;
    min-height: 100svh;
    padding: 18px 28px 14px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 47%, rgba(38, 178, 75, .17), transparent 32%),
        radial-gradient(ellipse at 48% 100%, rgba(245, 202, 61, .09), transparent 36%),
        linear-gradient(115deg, #020806 0%, #062116 49%, #010806 100%);
}

.kiosk-shell::before,
.kiosk-shell::after,
.tech-field {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.kiosk-shell::before {
    background:
        linear-gradient(rgba(88, 226, 111, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 226, 111, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.kiosk-shell::after {
    background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, .74) 100%);
}

.tech-field {
    opacity: .8;
    background:
        linear-gradient(90deg, transparent 0 7%, rgba(79, 255, 114, .16) 7% 7.1%, transparent 7.1% 18%, rgba(79, 255, 114, .1) 18% 18.1%, transparent 18.1%) 0 33% / 100% 2px no-repeat,
        linear-gradient(90deg, transparent 0 81%, rgba(79, 255, 114, .13) 81% 81.1%, transparent 81.1% 91%, rgba(79, 255, 114, .15) 91% 91.1%, transparent 91.1%) 0 29% / 100% 2px no-repeat,
        radial-gradient(circle at 12% 34%, var(--green) 0 2px, transparent 3px),
        radial-gradient(circle at 88% 31%, var(--green) 0 2px, transparent 3px),
        radial-gradient(circle at 73% 12%, rgba(117, 236, 99, .55) 0 2px, transparent 3px);
}

.kiosk-header {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(520px, 1fr) minmax(260px, 360px) minmax(520px, 1fr);
    align-items: start;
    gap: 18px;
    min-height: 108px;
    min-width: 0;
    width: 100%;
}

.brand-card,
.clock-card {
    min-width: 0;
    height: 108px;
    border: 1px solid rgba(245, 202, 61, .52);
    border-radius: 18px;
    background:
        radial-gradient(circle at 20% 50%, rgba(62, 185, 83, .13), transparent 30%),
        linear-gradient(135deg, rgba(5, 29, 19, .95), rgba(1, 10, 8, .9));
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .05);
}

.brand-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    width: min(500px, 100%);
    padding: 10px 18px;
    overflow: hidden;
}

.brand-crest-wrap {
    display: grid;
    place-items: center;
    width: 96px;
    height: 86px;
    background: transparent;
    box-shadow: none;
}

.brand-crest-wrap img {
    width: 120px;
    height: 100px;
    max-width: none;
    object-fit: contain;
    filter: drop-shadow(0 7px 12px rgba(0, 0, 0, .4));
    transform: translateY(-6px);
}

.brand-copy {
    display: grid;
    align-content: center;
    min-width: 0;
}

.brand-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}

.brand-title strong {
    display: block;
    overflow: hidden;
    color: var(--white);
    font-size: 2.1rem;
    font-weight: 900;
    line-height: .95;
    letter-spacing: 0;
    white-space: nowrap;
    text-shadow: 0 5px 18px rgba(0, 0, 0, .55);
}

.brand-title em {
    flex: 0 0 auto;
    color: var(--gold-soft);
    font-size: 2.1rem;
    font-weight: 900;
    font-style: normal;
    line-height: 1;
    text-shadow: 0 0 16px rgba(245, 202, 61, .2);
}

.brand-tagline {
    display: block;
    width: min(300px, 100%);
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid rgba(245, 202, 61, .38);
    color: #d9e2dc;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
    white-space: nowrap;
}

.brand-copy small {
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid rgba(245, 202, 61, .62);
    color: var(--gold-soft);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.clock-card {
    justify-self: end;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    width: min(370px, 100%);
    padding: 10px 18px;
}

.analog-clock {
    position: relative;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 45% 38%, #10271b 0, #050d09 68%, #020705 100%);
    box-shadow: 0 0 14px rgba(117, 236, 99, .32), inset 0 0 14px rgba(0, 0, 0, .72);
    overflow: hidden;
}

.clock-dial {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.clock-face {
    fill: rgba(3, 13, 9, .96);
    stroke: var(--green);
    stroke-width: 4.5;
}

.clock-face-inner {
    fill: none;
    stroke: rgba(117, 236, 99, .13);
    stroke-width: 1;
}

.clock-marks line {
    stroke: var(--gold);
    stroke-width: 1.5;
    stroke-linecap: round;
}

.clock-marks line.is-major {
    stroke: var(--green-bright);
    stroke-width: 2.7;
}

.clock-hand line {
    stroke: var(--white);
    stroke-linecap: round;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .72));
}

.clock-hand.hour line {
    stroke-width: 5.2;
}

.clock-hand.minute line {
    stroke-width: 3.2;
}

.clock-hand.second line {
    stroke: var(--gold-soft);
    stroke-width: 1.5;
}

.clock-pin-ring {
    fill: #07130d;
    stroke: var(--gold-soft);
    stroke-width: 2;
}

.clock-pin {
    fill: var(--gold-soft);
}

.clock-copy {
    min-width: 0;
    text-align: center;
}

.clock-copy time {
    display: block;
    font-variant-numeric: tabular-nums;
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 8px 20px rgba(0, 0, 0, .55);
}

.clock-copy span {
    display: block;
    margin-top: 8px;
    color: var(--gold-soft);
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
}

.clock-copy small {
    display: none;
    color: var(--muted);
}

.success-badge {
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 92px;
    padding: 10px 22px;
    border: 1px solid var(--green);
    clip-path: polygon(7% 0, 93% 0, 100% 28%, 100% 72%, 93% 100%, 7% 100%, 0 72%, 0 28%);
    background: linear-gradient(135deg, rgba(5, 46, 27, .96), rgba(1, 15, 10, .96));
    box-shadow: 0 0 27px rgba(77, 238, 105, .36), inset 0 0 30px rgba(77, 238, 105, .1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px) scale(.92);
    transition: opacity .28s ease, transform .35s ease;
}

.state-success .success-badge {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.status-icon.ready {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 66px;
    height: 66px;
    border: 5px solid var(--green);
    background: rgba(15, 89, 43, .6);
    transform: rotate(30deg);
    box-shadow: 0 0 20px rgba(117, 236, 99, .35);
}

.status-icon.ready::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 10px;
    width: 24px;
    height: 36px;
    border-right: 8px solid var(--white);
    border-bottom: 8px solid var(--white);
    transform: rotate(15deg);
}

.success-badge-icon {
    display: grid;
    flex: 0 0 56px;
    place-items: center;
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 0 13px rgba(117, 236, 99, .4));
}

.success-badge-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.success-badge-shape {
    fill: rgba(15, 89, 43, .5);
    stroke: var(--green);
    stroke-width: 4;
    stroke-linejoin: round;
}

.success-badge-check,
.success-badge-error {
    fill: none;
    stroke: var(--white);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.success-badge-error {
    display: none;
}

.success-badge small,
.success-badge strong {
    display: block;
    letter-spacing: 0;
}

.success-badge small {
    font-size: .95rem;
    font-weight: 800;
}

.success-badge strong {
    color: var(--green);
    font-size: 1.45rem;
    font-weight: 900;
}

.success-badge.is-error {
    border-color: var(--danger);
    box-shadow: 0 0 27px rgba(255, 107, 107, .3);
}

.success-badge.is-error .success-badge-icon {
    filter: drop-shadow(0 0 13px rgba(255, 107, 107, .38));
}

.success-badge.is-error .success-badge-shape {
    fill: rgba(115, 26, 26, .52);
    stroke: var(--danger);
}

.success-badge.is-error .success-badge-check {
    display: none;
}

.success-badge.is-error .success-badge-error {
    display: block;
}

.success-badge.is-error strong {
    color: var(--danger);
}

.success-badge.is-warning {
    border-color: var(--gold);
    box-shadow: 0 0 27px rgba(245, 202, 61, .3);
}

.success-badge.is-warning .success-badge-icon {
    filter: drop-shadow(0 0 13px rgba(245, 202, 61, .35));
}

.success-badge.is-warning .success-badge-shape {
    fill: rgba(116, 82, 12, .48);
    stroke: var(--gold);
}

.success-badge.is-warning strong {
    color: var(--gold-soft);
}

.kiosk-main {
    position: relative;
    z-index: 2;
    min-height: 0;
    min-width: 0;
    width: 100%;
}

.idle-view,
.success-view {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    min-width: 0;
    width: 100%;
    transition: opacity .32s ease, transform .4s ease;
}

.idle-view {
    display: grid;
    grid-template-columns: 220px minmax(0, 820px);
    grid-template-rows: minmax(300px, 1fr) 164px;
    gap: 12px 18px;
    justify-content: center;
    transform: translateY(14px);
}

.idle-view.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.idle-robot-wrap {
    position: relative;
    grid-column: 1 / -1;
    display: grid;
    place-items: end center;
    min-height: 0;
}

.speech-bubble,
.voice-indicator {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    border: 1px solid rgba(117, 236, 99, .7);
    background: rgba(3, 30, 19, .92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28), inset 0 0 20px rgba(117, 236, 99, .06);
}

.speech-bubble {
    left: calc(50% - 520px);
    top: 30%;
    gap: 12px;
    width: 280px;
    min-height: 64px;
    padding: 11px 15px;
    border-radius: 14px;
    font-size: .82rem;
    line-height: 1.45;
}

.speech-bubble::after {
    content: "";
    position: absolute;
    right: -28px;
    bottom: 17px;
    border-width: 12px 0 12px 28px;
    border-style: solid;
    border-color: transparent transparent transparent var(--green);
    clip-path: polygon(0 0, 100% 50%, 0 100%, 4% 50%);
}

.voice-indicator {
    right: calc(50% - 530px);
    top: 33%;
    gap: 10px;
    min-height: 56px;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--green-bright);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.voice-indicator:hover,
.voice-indicator:focus-visible {
    border-color: var(--yellow);
    outline: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28), 0 0 0 3px rgba(245, 202, 61, .16);
}

.voice-indicator b {
    font-size: .85rem;
}

.voice-mic {
    position: relative;
    width: 38px;
    height: 38px;
    border: 2px solid var(--green-bright);
    border-radius: 50%;
}

.voice-mic::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 6px;
    width: 8px;
    height: 17px;
    border: 3px solid currentColor;
    border-radius: 6px;
}

.voice-mic::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 20px;
    width: 15px;
    height: 10px;
    border-bottom: 3px solid currentColor;
    border-radius: 0 0 12px 12px;
}

.voice-bars {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 38px;
    height: 28px;
    color: var(--green-bright);
}

.voice-bars i {
    display: block;
    width: 3px;
    height: 34%;
    border-radius: 4px;
    background: currentColor;
    animation: voiceBar 1s ease-in-out infinite;
    animation-play-state: paused;
}

.voice-bars i:nth-child(2) { height: 72%; animation-delay: .12s; }
.voice-bars i:nth-child(3) { height: 100%; animation-delay: .24s; }
.voice-bars i:nth-child(4) { height: 68%; animation-delay: .36s; }
.voice-bars i:nth-child(5) { height: 42%; animation-delay: .48s; }
.voice-bars.compact { width: 48px; }
.is-speaking .voice-bars i,
.voice-indicator.is-speaking .voice-bars i,
.voice-indicator.is-listening .voice-bars i { animation-play-state: running; }

.voice-indicator.is-listening {
    border-color: var(--gold);
    box-shadow: 0 0 24px rgba(117, 236, 99, .22), inset 0 0 20px rgba(245, 202, 61, .08);
}

.voice-indicator.is-listening .voice-mic {
    animation: listeningPulse 1.6s ease-in-out infinite;
}

.robot-assistant {
    position: relative;
    display: grid;
    place-items: center;
    width: 675px;
    max-width: 48vw;
    height: 100%;
    min-height: 300px;
    cursor: pointer;
    outline: none;
}

.robot-assistant:focus-visible {
    filter: drop-shadow(0 0 8px var(--gold));
}

.robot-aura {
    position: absolute;
    left: 50%;
    top: 51%;
    width: 78%;
    aspect-ratio: 1;
    border: 1px solid rgba(117, 236, 99, .34);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(67, 216, 89, .2), transparent 65%);
    box-shadow: 0 0 60px rgba(58, 220, 88, .16), inset 0 0 42px rgba(58, 220, 88, .08);
    transform: translate(-50%, -50%);
    animation: auraPulse 3.6s ease-in-out infinite;
}

.robot-aura::before,
.robot-aura::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(245, 202, 61, .26);
}

.robot-aura::before { inset: -8%; animation: orbitSpin 16s linear infinite; }
.robot-aura::after { inset: 9%; animation: orbitSpin 11s linear reverse infinite; }

.robot-svg {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    max-height: 540px;
    overflow: visible;
}

.robot-float {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: robotFloat 3.2s ease-in-out infinite;
}

.robot-ground {
    transform-box: fill-box;
    transform-origin: center;
    animation: groundBreathe 3.2s ease-in-out infinite;
}

.robot-eye {
    transform-box: fill-box;
    transform-origin: center;
    animation: robotBlink 5.4s infinite;
}

.robot-pupil {
    transition: transform .12s ease-out;
}

.antenna-light {
    transform-box: fill-box;
    transform-origin: center;
    animation: antennaPulse 1.8s ease-in-out infinite;
}

.robot-mouth-open {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    transform: scaleY(calc(.2 + var(--mouth-open) * 1.9));
}

.robot-assistant.is-speaking .robot-mouth-open {
    opacity: 1;
}

.robot-assistant.is-speaking .robot-smile {
    opacity: 0;
}

.robot-assistant.is-speaking .robot-aura {
    box-shadow: 0 0 72px rgba(117, 236, 99, .44), inset 0 0 44px rgba(117, 236, 99, .15);
}

.robot-assistant.is-scanning .robot-float {
    animation: robotScan .42s ease-in-out infinite alternate;
}

.robot-assistant--mini {
    width: 220px;
    min-height: 124px;
    height: 124px;
    max-width: none;
    cursor: default;
}

.robot-assistant--mini .robot-svg {
    max-height: 170px;
}

.robot-assistant--mini .robot-aura {
    width: 68%;
}

.scanner-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 7px;
    width: 100%;
    min-height: 0;
    min-width: 0;
    padding: 12px 10px 10px;
    border: 1px solid var(--gold-line);
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(7, 38, 23, .94), rgba(1, 13, 9, .96));
    box-shadow: 0 16px 38px rgba(0, 0, 0, .32), inset 0 0 28px rgba(117, 236, 99, .05);
    cursor: pointer;
}

.scanner-panel--uuid {
    cursor: default;
}

.scanner-panel:hover,
.scanner-panel:focus-visible {
    border-color: var(--gold-soft);
    box-shadow: 0 0 28px rgba(117, 236, 99, .22), inset 0 0 28px rgba(117, 236, 99, .08);
}

.scanner-panel--uuid:hover {
    border-color: var(--gold-line);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .32), inset 0 0 28px rgba(117, 236, 99, .05);
}

.scanner-panel > strong {
    color: var(--gold);
    font-size: .72rem;
    font-weight: 800;
}

.scanner-window {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
    border: 1px solid rgba(117, 236, 99, .23);
    border-radius: 14px;
    overflow: hidden;
    color: rgba(173, 255, 114, .4);
    background:
        linear-gradient(rgba(117, 236, 99, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(117, 236, 99, .07) 1px, transparent 1px),
        rgba(1, 11, 7, .72);
    background-size: 24px 24px;
}

.scanner-window svg {
    width: 62px;
    opacity: .26;
}

.scanner-window--uuid .rfid-reader-symbol {
    width: 76px;
    opacity: .78;
    color: var(--green-bright);
    filter: drop-shadow(0 0 10px rgba(117, 236, 99, .38));
    animation: rfidReady 1.9s ease-in-out infinite;
}

.scanner-window--uuid .corner {
    opacity: .35;
}

.corner {
    position: absolute;
    width: 25px;
    height: 25px;
    border-color: var(--green-bright);
    filter: drop-shadow(0 0 5px var(--green));
}

.corner.tl { left: 14px; top: 14px; border-left: 3px solid; border-top: 3px solid; }
.corner.tr { right: 14px; top: 14px; border-right: 3px solid; border-top: 3px solid; }
.corner.bl { left: 14px; bottom: 14px; border-left: 3px solid; border-bottom: 3px solid; }
.corner.br { right: 14px; bottom: 14px; border-right: 3px solid; border-bottom: 3px solid; }

.scanner-laser {
    position: absolute;
    left: 9%;
    right: 9%;
    top: 50%;
    height: 2px;
    background: var(--green-bright);
    box-shadow: 0 0 12px 3px rgba(117, 236, 99, .7);
    animation: scannerLaser 2.6s ease-in-out infinite;
}

.scanner-hint {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 5px 8px;
    border: 1px solid rgba(117, 236, 99, .18);
    border-radius: 12px;
    color: #dce7df;
    text-align: left;
    font-size: .68rem;
    line-height: 1.3;
}

.scanner-hint i {
    width: 30px;
    height: 30px;
    border: 2px solid var(--green);
    border-radius: 7px;
    background:
        linear-gradient(90deg, currentColor 3px, transparent 3px) 7px 7px / 8px 8px,
        linear-gradient(currentColor 3px, transparent 3px) 7px 7px / 8px 8px;
}

.scanner-hint--uuid i {
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 25% 50%, transparent 0 4px, currentColor 5px 6px, transparent 7px 10px, currentColor 11px 12px, transparent 13px),
        linear-gradient(currentColor, currentColor) left center / 6px 6px no-repeat;
    color: var(--green-bright);
}

.bottom-scan-mode-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    color: var(--green-bright);
    filter: drop-shadow(0 0 8px rgba(117, 236, 99, .34));
}

.status-symbol {
    display: block;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    overflow: visible;
    fill: none;
    stroke: var(--green-bright);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(117, 236, 99, .28));
}

.status-symbol--enter {
    stroke: var(--gold);
    filter: drop-shadow(0 0 6px rgba(245, 202, 61, .22));
}

.instruction-panel {
    position: relative;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 0;
    min-width: 0;
    width: 100%;
    justify-self: center;
    padding: 14px 20px;
    border: 1px solid rgba(117, 236, 99, .58);
    border-radius: 16px;
    background:
        linear-gradient(90deg, rgba(8, 50, 30, .86), rgba(1, 15, 11, .96) 64%),
        var(--panel);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .3), inset 0 0 28px rgba(117, 236, 99, .05);
    overflow: hidden;
}

.instruction-panel::before,
.instruction-panel::after {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--green), transparent);
    opacity: .75;
}

.instruction-panel::before { top: 0; }
.instruction-panel::after { bottom: 0; }

.instruction-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid var(--green-bright);
    border-radius: 50%;
    color: var(--green-bright);
    background: radial-gradient(circle, rgba(69, 197, 76, .25), rgba(1, 14, 9, .9) 68%);
    box-shadow: 0 0 20px rgba(117, 236, 99, .14), inset 0 0 20px rgba(117, 236, 99, .07);
}

.instruction-icon svg {
    width: 46px;
}

.instruction-copy {
    min-width: 0;
}

.instruction-copy h1 {
    margin: 0;
    font-size: 2.05rem;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.instruction-copy h1 em {
    color: var(--green);
    font-style: normal;
    text-shadow: 0 0 22px rgba(117, 236, 99, .22);
}

.instruction-copy > span {
    display: block;
    width: min(460px, 82%);
    height: 2px;
    margin: 8px 0;
    background: linear-gradient(90deg, var(--gold), var(--green), transparent);
}

.instruction-copy p {
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.5;
}

.instruction-dots {
    display: none;
}

.success-view {
    display: grid;
    grid-template-columns: minmax(600px, 1.2fr) minmax(520px, .95fr);
    grid-template-rows: 64px minmax(0, 1fr);
    gap: 12px 18px;
    transform: translateY(18px);
}

.success-view.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.success-overview {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(600px, 1.2fr) minmax(520px, .95fr);
    gap: 18px;
    min-width: 0;
    height: 64px;
    border: 1px solid rgba(117, 236, 99, .28);
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(4, 34, 21, .88), rgba(1, 16, 11, .84));
    box-shadow: inset 0 0 28px rgba(117, 236, 99, .04);
    overflow: hidden;
}

.success-intro {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 0 16px;
}

.success-intro-icon {
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 0 10px rgba(117, 236, 99, .3));
}

.success-intro-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.success-intro-icon rect {
    fill: rgba(15, 89, 43, .58);
    stroke: var(--green);
    stroke-width: 3;
}

.success-intro-icon path {
    fill: none;
    stroke: var(--white);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.success-intro h1 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
}

.success-intro p {
    margin: 4px 0 0;
    color: #d3dcd6;
    font-size: .78rem;
}

.success-robot-note {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 0 16px 0 10px;
    border-left: 1px solid rgba(117, 236, 99, .2);
    overflow: hidden;
}

.success-robot-note .robot-assistant--mini {
    flex: 0 0 66px;
    width: 66px;
    transform: none;
}

.success-robot-note > div:last-child {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.success-robot-note b {
    color: var(--green);
    font-size: .88rem;
}

.success-robot-note span {
    color: #d6dfd9;
    font-size: .74rem;
    line-height: 1.35;
}

.featured-student,
.recent-student {
    position: relative;
    border: 1px solid rgba(117, 236, 99, .48);
    background:
        radial-gradient(circle at 24% 56%, rgba(24, 143, 58, .22), transparent 34%),
        linear-gradient(140deg, rgba(4, 35, 22, .96), rgba(1, 13, 9, .97));
    box-shadow: 0 18px 38px rgba(0, 0, 0, .33), inset 0 0 28px rgba(117, 236, 99, .04);
    overflow: hidden;
}

.featured-student {
    display: grid;
    grid-template-columns: minmax(280px, .92fr) minmax(320px, 1.08fr);
    align-items: center;
    min-height: 0;
    border-color: var(--gold);
    border-radius: 16px;
}

.featured-student::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
    box-shadow: 0 0 13px var(--gold);
}

.rank-ribbon {
    position: absolute;
    z-index: 5;
    left: 24px;
    top: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 60px;
    padding-bottom: 10px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
    color: #fff;
    background: linear-gradient(90deg, #a96c0a, var(--gold), #8d5906);
    font-size: 1rem;
    font-weight: 800;
}

.featured-photo-wrap,
.recent-photo-wrap {
    position: relative;
    display: grid;
    place-items: stretch;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.featured-photo-wrap {
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(14, 82, 43, .14), rgba(1, 16, 10, .5)),
        #03170e;
}

.featured-photo-ring {
    display: none;
}

.student-photo-placeholder {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 230px;
    color: rgba(255, 255, 255, .5);
    font-size: 5rem;
    font-weight: 900;
}

.featured-student .student-photo-placeholder > span {
    display: grid;
    place-items: center;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    color: rgba(247, 250, 247, .76);
    background: transparent;
    box-shadow: none;
    font-size: 4.4rem;
    text-shadow: 0 8px 24px rgba(0, 0, 0, .44);
}

.student-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    filter: none;
}

.student-photo-placeholder.has-photo > span {
    display: none;
}

.featured-info {
    position: relative;
    z-index: 3;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 28px 32px;
    border-left: 1px solid rgba(117, 236, 99, .14);
}

.latest-tag {
    align-self: flex-start;
    padding: 6px 13px;
    border: 1px solid var(--green);
    border-radius: 10px;
    color: var(--green-bright);
    background: rgba(12, 81, 34, .65);
    font-size: .78rem;
    font-weight: 700;
}

.latest-tag i {
    color: var(--gold);
    font-style: normal;
}

.featured-info h2 {
    margin: 14px 0 18px;
    font-size: 2rem;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.featured-info dl,
.recent-student dl {
    display: grid;
    gap: 0;
    min-width: 0;
    margin: 0;
}

.featured-info dl > div,
.recent-student dl > div {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 0;
    border-top: 1px solid rgba(117, 236, 99, .15);
}

.featured-info dt,
.recent-student dt {
    color: #c8d3cc;
    font-size: .94rem;
}

.featured-info dd,
.recent-student dd {
    min-width: 0;
    margin: 0;
    color: var(--green);
    font-size: 1.12rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

#featuredStatus {
    justify-self: start;
    width: max-content;
    max-width: 100%;
    padding: 6px 12px;
    border: 1px solid rgba(117, 236, 99, .55);
    border-radius: 6px;
    background: rgba(18, 91, 40, .42);
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}

#featuredStatus.is-late {
    color: var(--gold-soft);
    border-color: rgba(245, 202, 61, .68);
    background: rgba(116, 82, 12, .34);
}

#featuredStatus:not(.is-late):not(.is-error) {
    color: var(--green-bright);
}

#featuredStatus.is-error {
    color: #ff9a9a;
    border-color: rgba(255, 107, 107, .68);
    background: rgba(115, 26, 26, .34);
}

#featuredStatus.is-warning {
    color: var(--gold-soft);
    border-color: rgba(245, 202, 61, .68);
    background: rgba(116, 82, 12, .34);
}

.featured-info dl > div:first-child dd,
.recent-student dl > div:first-child dd {
    color: var(--gold);
}

.recent-students {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-height: 0;
}

.recent-student {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    align-content: center;
    min-width: 0;
    min-height: 0;
    padding: 0 18px 16px;
    border-radius: 16px;
}

.recent-student .rank-ribbon {
    left: 20px;
    width: 46px;
    height: 66px;
    background: linear-gradient(90deg, #284c30, #527e58, #183a24);
    font-size: 1rem;
}

.recent-photo-wrap {
    width: calc(100% + 36px);
    height: 100%;
    margin-left: -18px;
    overflow: hidden;
    border-bottom: 1px solid rgba(117, 236, 99, .17);
    background:
        linear-gradient(180deg, rgba(14, 82, 43, .12), rgba(1, 16, 10, .52)),
        #03170e;
}

.recent-photo-wrap::before {
    content: "";
    display: none;
}

.recent-student .student-photo-placeholder {
    min-height: clamp(230px, 32vh, 340px);
    font-size: 3.5rem;
}

.recent-student .student-photo-placeholder > span {
    position: absolute;
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
}

.recent-student h3 {
    position: relative;
    z-index: 3;
    margin: 12px 0 10px;
    text-align: center;
    font-size: 1.08rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.recent-empty-copy {
    display: none;
    max-width: 230px;
    margin: 8px auto 0;
    color: #8fa098;
    font-size: .78rem;
    line-height: 1.45;
    text-align: center;
}

.recent-student dl > div {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 6px;
    padding: 7px 0;
}

.recent-student dt {
    font-size: .73rem;
}

.recent-student dd {
    font-size: .9rem;
    text-align: right;
}

.recent-student:not(.is-late):not(.is-error) dl > div:last-child dd {
    color: var(--green-bright);
}

.recent-student.is-late {
    border-color: rgba(245, 202, 61, .68);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .33), inset 0 0 28px rgba(245, 202, 61, .06);
}

.recent-student.is-late dl > div:last-child dd {
    color: var(--gold-soft);
}

.recent-student.is-empty {
    grid-template-rows: minmax(132px, 1fr) auto auto;
    justify-items: center;
    padding: 12px 18px 16px;
    opacity: .72;
    border-color: rgba(117, 236, 99, .2);
    background: linear-gradient(145deg, rgba(4, 28, 18, .8), rgba(1, 13, 9, .88));
}

.recent-student.is-empty .rank-ribbon {
    opacity: .56;
}

.recent-student.is-empty .recent-photo-wrap {
    width: 132px;
    height: 132px;
    margin-left: 0;
    border-bottom: 0;
    background: transparent;
    overflow: visible;
}

.recent-student.is-empty .recent-photo-wrap::before {
    display: block;
    left: 50%;
    top: 50%;
    bottom: auto;
    width: 116px;
    height: 116px;
    transform: translate(-50%, -50%);
}

.recent-student.is-empty .student-photo-placeholder {
    min-height: 132px;
    color: rgba(255, 255, 255, .28);
    font-size: 2.15rem;
}

.recent-student.is-empty .student-photo-placeholder > span {
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
}

.recent-student.is-empty h3 {
    margin: 16px 0 0;
    color: #b7c2bc;
    font-size: 1rem;
}

.recent-student.is-empty .recent-empty-copy {
    display: block;
}

.recent-student.is-empty dl {
    display: none;
}

.bottom-status {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 180px repeat(3, minmax(0, 1fr));
    align-items: stretch;
    justify-self: center;
    width: min(1058px, 100%);
    min-height: 58px;
    border: 1px solid rgba(117, 236, 99, .42);
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(4, 34, 21, .95), rgba(1, 14, 10, .96));
    box-shadow: 0 15px 35px rgba(0, 0, 0, .32), inset 0 0 30px rgba(117, 236, 99, .04);
    overflow: hidden;
}

.bottom-status::before {
    content: none;
    position: absolute;
    left: 15%;
    right: 15%;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), var(--gold), transparent);
    box-shadow: 0 0 10px var(--green);
}

.bottom-scan-label,
.status-segment {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px 14px;
}

.bottom-scan-label {
    justify-content: flex-start;
    border-right: 1px solid rgba(245, 202, 61, .5);
}

.status-segment:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 24%;
    bottom: 24%;
    width: 1px;
    background: rgba(205, 220, 209, .34);
}

.bottom-status b,
.bottom-status small {
    display: block;
}

.bottom-status b {
    font-size: .8rem;
    white-space: nowrap;
}

.bottom-status small {
    display: none;
    margin-top: 3px;
    color: var(--muted);
    font-size: .75rem;
}

.status-segment.is-gold b {
    color: var(--gold);
}

.scan-corners,
.status-icon {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
}

.scan-corners {
    background:
        linear-gradient(var(--green-bright), var(--green-bright)) left top / 13px 3px no-repeat,
        linear-gradient(var(--green-bright), var(--green-bright)) left top / 3px 13px no-repeat,
        linear-gradient(var(--green-bright), var(--green-bright)) right top / 13px 3px no-repeat,
        linear-gradient(var(--green-bright), var(--green-bright)) right top / 3px 13px no-repeat,
        linear-gradient(var(--green-bright), var(--green-bright)) left bottom / 13px 3px no-repeat,
        linear-gradient(var(--green-bright), var(--green-bright)) left bottom / 3px 13px no-repeat,
        linear-gradient(var(--green-bright), var(--green-bright)) right bottom / 13px 3px no-repeat,
        linear-gradient(var(--green-bright), var(--green-bright)) right bottom / 3px 13px no-repeat;
    filter: drop-shadow(0 0 5px rgba(117, 236, 99, .5));
}

.status-icon.gate::before,
.status-icon.gate::after {
    content: "";
    position: absolute;
    top: 5px;
    width: 12px;
    height: 28px;
    border: 3px solid var(--green);
    border-bottom-width: 5px;
}

.status-icon.gate::before { left: 3px; }
.status-icon.gate::after { right: 3px; }

.status-icon.enter {
    border: 3px solid var(--gold);
    border-left: 0;
    border-radius: 5px;
}

.status-icon.enter::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 16px;
    width: 25px;
    border-top: 4px solid var(--gold);
}

.status-icon.enter::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 10px;
    width: 11px;
    height: 11px;
    border-right: 4px solid var(--gold);
    border-top: 4px solid var(--gold);
    transform: rotate(45deg);
}

.status-icon.ready {
    width: 34px;
    height: 34px;
    border-width: 2px;
    border-radius: 50%;
    background: transparent;
    transform: none;
}

.status-icon.ready::after {
    left: 9px;
    top: 5px;
    width: 12px;
    height: 18px;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
}

.camera-dialog {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 5, 3, .86);
    backdrop-filter: blur(12px);
}

.camera-dialog[hidden] {
    display: none;
}

.camera-card {
    width: min(720px, 100%);
    padding: 18px;
    border: 1px solid var(--gold);
    border-radius: 24px;
    background: #03160e;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .6), 0 0 34px rgba(117, 236, 99, .16);
}

.camera-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.camera-card h2 {
    margin: 0;
    font-size: 1.2rem;
}

.camera-card button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.camera-viewport {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 17px;
    background: #000;
}

.camera-viewport video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-target {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(48%, 300px);
    aspect-ratio: 1;
    border: 4px solid var(--green-bright);
    border-radius: 18px;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, .3), 0 0 18px var(--green);
    transform: translate(-50%, -50%);
}

.camera-card p {
    margin: 14px 0 0;
    color: var(--muted);
    text-align: center;
}

.celebration {
    position: fixed;
    z-index: 60;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.confetti {
    position: absolute;
    top: -24px;
    width: 8px;
    height: 15px;
    background: var(--confetti-color);
    animation: confettiFall 2.8s ease-in forwards;
}

@keyframes robotFloat {
    0%, 100% { transform: translateY(3px) rotate(-.35deg); }
    50% { transform: translateY(-10px) rotate(.35deg); }
}

@keyframes robotScan {
    from { transform: translateY(0) rotate(-.4deg); }
    to { transform: translateY(5px) rotate(.4deg); }
}

@keyframes groundBreathe {
    0%, 100% { opacity: .28; transform: scaleX(1); }
    50% { opacity: .14; transform: scaleX(.83); }
}

@keyframes auraPulse {
    0%, 100% { opacity: .72; transform: translate(-50%, -50%) scale(.96); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes orbitSpin { to { transform: rotate(360deg); } }

@keyframes robotBlink {
    0%, 43%, 47%, 92%, 100% { transform: scaleY(1); }
    44.5%, 45.5%, 94%, 95% { transform: scaleY(.08); }
}

@keyframes antennaPulse {
    0%, 100% { opacity: .72; transform: scale(.88); }
    50% { opacity: 1; transform: scale(1.12); }
}

@keyframes voiceBar {
    0%, 100% { transform: scaleY(.45); opacity: .58; }
    50% { transform: scaleY(1); opacity: 1; }
}

@keyframes listeningPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(117, 236, 99, .08); }
    50% { box-shadow: 0 0 0 8px rgba(117, 236, 99, .12); }
}

@keyframes scannerLaser {
    0%, 100% { top: 20%; opacity: .3; }
    50% { top: 80%; opacity: 1; }
}

@keyframes rfidReady {
    0%, 100% { opacity: .62; transform: scale(.97); }
    50% { opacity: 1; transform: scale(1.03); }
}

@keyframes confettiFall {
    0% { opacity: 0; transform: translate3d(0, -3vh, 0) rotate(0); }
    12% { opacity: 1; }
    100% { opacity: 0; transform: translate3d(var(--drift), 108vh, 0) rotate(680deg); }
}

@media (max-width: 1500px) {
    .kiosk-header {
        grid-template-columns: minmax(420px, 1fr) 330px minmax(390px, 1fr);
        gap: 16px;
    }

    .brand-card { grid-template-columns: 98px 1fr; gap: 18px; padding: 16px 20px; }
    .brand-crest-wrap { width: 94px; height: 120px; }
    .brand-crest-wrap img { width: 88px; height: 88px; }
    .brand-copy strong, .brand-title em { font-size: 2.65rem; }
    .brand-copy span { font-size: .86rem; }
    .brand-copy small { font-size: .78rem; }
    .clock-card { grid-template-columns: 88px 1fr; gap: 17px; padding: 18px 22px; }
    .analog-clock { width: 84px; height: 84px; }
    .clock-copy time { font-size: 2.8rem; }
    .success-badge { gap: 14px; padding: 14px 24px; }
    .success-badge-icon { flex-basis: 60px; width: 60px; height: 60px; }
    .success-badge small { font-size: 1.15rem; }
    .success-badge strong { font-size: 1.7rem; }
    .speech-bubble { left: calc(50% - 405px); width: 270px; }
    .voice-indicator { right: calc(50% - 415px); }
    .instruction-panel { grid-template-columns: 140px 1fr 100px; gap: 22px; padding: 20px 28px; }
    .instruction-icon { width: 126px; height: 126px; }
    .instruction-copy h1 { font-size: 2.5rem; }
    .instruction-dots { width: 90px; }
    .bottom-status { grid-template-columns: 270px repeat(3, 1fr); }
    .bottom-scan-label, .status-segment { padding-inline: 16px; gap: 14px; }
}

@media (max-height: 850px) and (min-width: 1001px) {
    .kiosk-shell { gap: 10px; padding-top: 14px; padding-bottom: 12px; }
    .kiosk-header { min-height: 128px; }
    .brand-card, .clock-card { height: 128px; border-radius: 22px; }
    .brand-crest-wrap { height: 96px; }
    .brand-copy strong, .brand-title em { font-size: 2.35rem; }
    .brand-copy span { margin-top: 7px; }
    .brand-copy small { margin-top: 7px; padding-top: 7px; }
    .clock-copy time { font-size: 2.6rem; }
    .clock-copy span { margin-top: 8px; }
    .success-badge { height: 106px; }
    .idle-view { grid-template-rows: minmax(190px, 1fr) 220px; gap: 10px 20px; }
    .robot-svg { max-height: 300px; }
    .speech-bubble { top: 20%; min-height: 66px; font-size: .82rem; }
    .voice-indicator { top: 24%; min-height: 58px; }
    .instruction-panel { border-radius: 28px; padding-block: 14px; }
    .instruction-icon { width: 108px; height: 108px; }
    .instruction-icon svg { width: 66px; }
    .instruction-copy h1 { font-size: 2.15rem; }
    .instruction-copy p { font-size: .83rem; }
    .scanner-panel { padding-top: 12px; }
    .success-view { grid-template-rows: 66px minmax(0, 1fr); gap: 8px 18px; }
    .success-overview { height: 66px; gap: 18px; }
    .success-intro-icon { width: 46px; height: 46px; }
    .success-intro h1 { font-size: 1.55rem; }
    .success-robot-note { height: 100%; }
    .success-robot-note .robot-assistant--mini { flex-basis: 62px; width: 62px; transform: none; }
    .featured-info h2 { font-size: 1.7rem; margin-block: 9px 11px; }
    .featured-info dl > div { padding: 6px 0; }
    .student-photo-placeholder { min-height: 190px; }
    .recent-student { padding-bottom: 10px; }
    .recent-student .student-photo-placeholder { min-height: 120px; }
    .recent-student dl > div { padding: 4px 0; }
    .bottom-status { min-height: 70px; border-radius: 20px; }
    .scan-corners, .status-icon { width: 42px; height: 42px; transform: scale(.78); }
    .bottom-status small { display: none; }
}

@media (max-width: 1100px) {
    html,
    body { overflow: auto; }
    .kiosk-shell { min-height: 100svh; overflow: visible; }
    .kiosk-header { grid-template-columns: 1fr 380px; min-height: 138px; }
    .brand-card, .clock-card { height: 138px; }
    .success-badge { position: absolute; top: 152px; left: 50%; width: min(420px, 82vw); transform: translate(-50%, -20px) scale(.92); }
    .state-success .success-badge { transform: translate(-50%, 0) scale(1); }
    .kiosk-main { min-height: 710px; }
    .idle-view { grid-template-columns: 260px 1fr; grid-template-rows: 380px 280px; }
    .speech-bubble { left: 5%; }
    .voice-indicator { right: 5%; }
    .instruction-panel { grid-template-columns: 120px 1fr; }
    .instruction-dots { display: none; }
    .success-view { padding-top: 142px; grid-template-columns: 1fr; grid-template-rows: 150px 430px auto; }
    .success-overview { grid-template-columns: 1fr; grid-template-rows: 72px 78px; gap: 0; height: 150px; }
    .success-intro, .success-robot-note { width: 100%; justify-self: stretch; }
    .success-robot-note { justify-content: center; border-top: 1px solid rgba(117, 236, 99, .2); border-left: 0; }
    .featured-student { min-height: 420px; }
    .recent-students { min-height: 390px; }
    .bottom-status { grid-template-columns: repeat(3, 1fr); }
    .bottom-scan-label { display: none; }
}

@media (max-width: 760px) {
    .kiosk-shell { gap: 12px; padding: 12px; }
    .kiosk-header,
    .kiosk-main,
    .bottom-status {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }
    .kiosk-header { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .brand-card, .clock-card { width: 100%; height: auto; min-height: 118px; border-radius: 20px; }
    .brand-card { grid-template-columns: 82px 1fr; padding: 12px 16px; }
    .brand-crest-wrap { width: 78px; height: 88px; }
    .brand-crest-wrap img { width: 72px; height: 72px; }
    .brand-copy strong, .brand-title em { font-size: 2.05rem; }
    .brand-copy span { font-size: .73rem; }
    .brand-copy small { font-size: .7rem; }
    .clock-card { justify-self: stretch; grid-template-columns: 72px 1fr; padding: 12px 20px; }
    .analog-clock { width: 68px; height: 68px; border-width: 3px; }
    .clock-copy time { font-size: 2.2rem; }
    .clock-copy span { font-size: .8rem; white-space: normal; }
    .success-badge { top: 250px; height: 94px; }
    .success-badge-icon { flex-basis: 52px; width: 52px; height: 52px; }
    .success-badge small { font-size: .9rem; }
    .success-badge strong { font-size: 1.35rem; }
    .kiosk-main { min-height: 990px; }
    .idle-view { position: relative; inset: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: 360px 260px auto; }
    .idle-robot-wrap { grid-column: auto; }
    .robot-assistant { width: min(420px, calc(100vw - 24px)); max-width: none; }
    .speech-bubble { left: 0; top: 4px; width: 210px; min-height: 58px; padding: 9px 11px; font-size: .7rem; }
    .speech-bubble .voice-bars { display: none; }
    .voice-indicator { right: 0; top: 83px; min-height: 48px; padding: 6px 10px; }
    .voice-indicator b, .voice-indicator .voice-bars { display: none; }
    .voice-mic { width: 36px; height: 36px; transform: scale(.82); }
    .scanner-panel { min-height: 250px; }
    .instruction-panel { grid-template-columns: 84px 1fr; min-height: 240px; gap: 15px; padding: 20px; border-radius: 24px; }
    .instruction-icon { width: 80px; height: 80px; }
    .instruction-icon svg { width: 54px; }
    .instruction-copy h1 { font-size: 1.65rem; }
    .instruction-copy p { font-size: .78rem; }
    .success-view { position: relative; inset: auto; grid-template-columns: minmax(0, 1fr); padding-top: 104px; grid-template-rows: 164px auto auto; }
    .success-overview { grid-template-rows: 76px 88px; height: 164px; }
    .success-intro { padding: 0 14px; }
    .success-intro h1 { font-size: 1.5rem; }
    .success-robot-note { border-radius: 0; }
    .featured-student { grid-template-columns: minmax(0, 1fr); min-height: 620px; }
    .featured-photo-wrap { min-height: 310px; }
    .featured-info { padding: 20px; }
    .featured-info h2 { font-size: 1.8rem; }
    .recent-students { grid-template-columns: minmax(0, 1fr); min-height: 760px; }
    .recent-student { min-height: 370px; }
    .bottom-status { grid-template-columns: minmax(0, 1fr); }
    .status-segment { justify-content: flex-start; min-height: 76px; }
    .status-segment:not(:last-child)::after { left: 18px; right: 18px; top: auto; bottom: 0; width: auto; height: 1px; }
    .camera-dialog { padding: 10px; }
}

@media (min-width: 1101px) and (max-width: 1500px) {
    .kiosk-header {
        grid-template-columns: minmax(400px, 1fr) 240px minmax(400px, 1fr);
        gap: 14px;
    }

    .brand-card {
        grid-template-columns: 94px minmax(0, 1fr);
        gap: 12px;
        padding: 8px 14px;
    }

    .brand-crest-wrap { width: 92px; height: 84px; }
    .brand-crest-wrap img { width: 114px; height: 94px; }
    .brand-copy strong { font-size: 1.85rem; }
    .brand-title { gap: 9px; }
    .brand-title em { font-size: 1.85rem; }
    .brand-copy span { font-size: .75rem; }
    .clock-card { grid-template-columns: 62px minmax(0, 1fr); width: min(340px, 100%); padding: 8px 16px; }
    .analog-clock { width: 62px; height: 62px; }
    .clock-copy time { font-size: 2.15rem; }
    .clock-copy span { font-size: .8rem; }
    .success-badge { gap: 11px; height: 84px; padding: 8px 16px; }
    .success-badge-icon { flex-basis: 48px; width: 48px; height: 48px; }
    .success-badge small { font-size: .82rem; }
    .success-badge strong { font-size: 1.25rem; }
    .speech-bubble { left: calc(50% - 450px); width: 245px; }
    .voice-indicator { right: calc(50% - 455px); }
    .instruction-panel { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 12px 18px; }
    .instruction-icon { width: 70px; height: 70px; }
    .instruction-icon svg { width: 42px; }
    .instruction-copy h1 { font-size: 1.85rem; }
    .instruction-copy p { font-size: .78rem; }
    .bottom-status { grid-template-columns: 180px repeat(3, minmax(0, 1fr)); }
    .bottom-scan-label,
    .status-segment { gap: 10px; padding-inline: 13px; }
    .bottom-status b { font-size: .8rem; }
    .success-view,
    .success-overview { grid-template-columns: minmax(500px, 1.15fr) minmax(460px, 1fr); }
    .featured-info { padding: 22px 26px; }
    .featured-info h2 { font-size: 1.75rem; }
}

@media (min-width: 1101px) and (max-height: 850px) {
    .kiosk-shell { gap: 8px; padding: 10px 20px; }
    .kiosk-header { min-height: 90px; }
    .brand-card,
    .clock-card { height: 90px; border-radius: 14px; }
    .brand-card { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 8px 14px; }
    .brand-crest-wrap { width: 90px; height: 72px; }
    .brand-crest-wrap img { width: 110px; height: 90px; }
    .brand-copy strong { font-size: 1.7rem; }
    .brand-title { gap: 8px; }
    .brand-title em { font-size: 1.7rem; }
    .brand-tagline { margin-top: 5px; padding-top: 5px; font-size: .65rem; }
    .clock-card { grid-template-columns: 62px minmax(0, 1fr); gap: 13px; width: min(330px, 100%); padding: 8px 16px; }
    .analog-clock { width: 62px; height: 62px; }
    .clock-copy time { font-size: 2.2rem; }
    .clock-copy span { margin-top: 6px; font-size: .75rem; }
    .success-badge { height: 78px; }
    .idle-view { grid-template-columns: 200px minmax(0, 720px); grid-template-rows: minmax(180px, 1fr) 154px; gap: 8px 14px; }
    .robot-assistant { width: 560px; max-width: 45vw; min-height: 180px; }
    .robot-svg { max-height: 350px; }
    .speech-bubble { top: 21%; width: 230px; min-height: 52px; padding: 8px 12px; font-size: .72rem; }
    .voice-indicator { top: 25%; min-height: 48px; padding: 6px 12px; }
    .voice-mic { transform: scale(.82); }
    .voice-indicator b { font-size: .72rem; }
    .scanner-panel { grid-template-rows: auto minmax(0, 1fr); padding: 9px; }
    .scanner-hint { display: none; }
    .instruction-panel { grid-template-columns: 78px minmax(0, 1fr); padding: 12px 18px; border-radius: 14px; }
    .instruction-icon { width: 72px; height: 72px; }
    .instruction-icon svg { width: 44px; }
    .instruction-copy h1 { font-size: 1.75rem; }
    .instruction-copy > span { margin: 7px 0; }
    .instruction-copy p { font-size: .72rem; }
    .success-view { grid-template-rows: 54px minmax(0, 1fr); gap: 8px 14px; }
    .success-overview { height: 54px; }
    .success-intro-icon { flex-basis: 36px; width: 36px; height: 36px; }
    .success-intro h1 { font-size: 1.25rem; }
    .success-intro p { font-size: .7rem; }
    .success-robot-note .robot-assistant--mini { flex-basis: 54px; width: 54px; }
    .featured-photo-ring { width: clamp(210px, 29vh, 250px); height: clamp(210px, 29vh, 250px); }
    .featured-student .student-photo-placeholder > span { width: auto; height: auto; }
    .featured-info h2 { margin: 8px 0 10px; font-size: 1.6rem; }
    .featured-info dl > div { padding: 6px 0; }
    .featured-info dd { font-size: 1rem; }
    .recent-student { padding: 8px 14px 10px; }
    .recent-student .student-photo-placeholder { min-height: 120px; }
    .recent-student dl > div { padding: 4px 0; }
    .bottom-status { grid-template-columns: 170px repeat(3, minmax(0, 1fr)); width: min(934px, 100%); min-height: 52px; border-radius: 12px; }
    .scan-corners,
    .status-icon,
    .bottom-scan-mode-icon { transform: scale(.84); }
}

/* Compact landscape kiosks: keep the complete workflow inside one viewport. */
@media (min-width: 901px) and (max-width: 1100px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    .kiosk-shell {
        grid-template-rows: 88px minmax(0, 1fr) 52px;
        gap: 8px;
        height: 100dvh;
        min-height: 100dvh;
        padding: 10px 16px;
        overflow: hidden;
    }

    .kiosk-header {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 14px;
        min-height: 88px;
    }

    .brand-card,
    .clock-card {
        width: 100%;
        height: 88px;
        min-height: 0;
        border-radius: 14px;
    }

    .brand-card {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 10px;
        padding: 7px 13px;
    }

    .brand-crest-wrap {
        width: 80px;
        height: 70px;
    }

    .brand-crest-wrap img {
        width: 98px;
        height: 80px;
        transform: translateY(-3px);
    }

    .brand-title {
        gap: 8px;
    }

    .brand-title strong {
        font-size: 1.65rem;
    }

    .brand-title em {
        font-size: 1.65rem;
    }

    .brand-tagline {
        margin-top: 5px;
        padding-top: 5px;
        font-size: .62rem;
    }

    .clock-card {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 12px;
        padding: 7px 14px;
    }

    .analog-clock {
        width: 58px;
        height: 58px;
    }

    .clock-copy time {
        font-size: 2rem;
    }

    .clock-copy span {
        margin-top: 5px;
        font-size: .7rem;
    }

    .success-badge {
        position: absolute;
        top: 94px;
        left: 50%;
        width: min(340px, 42vw);
        height: 68px;
        padding: 8px 16px;
        transform: translate(-50%, -12px) scale(.94);
    }

    .state-success .success-badge {
        transform: translate(-50%, 0) scale(1);
    }

    .success-badge-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .success-badge small {
        font-size: .75rem;
    }

    .success-badge strong {
        font-size: 1.15rem;
    }

    .kiosk-main {
        min-height: 0;
    }

    .idle-view {
        grid-template-columns: 190px minmax(0, 680px);
        grid-template-rows: minmax(220px, 1fr) 146px;
        gap: 8px 14px;
    }

    .robot-assistant {
        width: min(500px, 52vw);
        max-width: 52vw;
        min-height: 210px;
    }

    .robot-svg {
        max-height: 390px;
    }

    .speech-bubble {
        left: 3%;
        top: 22%;
        width: 220px;
        min-height: 52px;
        padding: 8px 11px;
        font-size: .7rem;
    }

    .voice-indicator {
        right: 3%;
        top: 25%;
        min-height: 48px;
        padding: 6px 11px;
    }

    .voice-indicator b {
        font-size: .7rem;
    }

    .voice-mic {
        transform: scale(.8);
    }

    .scanner-panel {
        min-height: 0;
        padding: 9px;
    }

    .scanner-hint {
        display: none;
    }

    .instruction-panel {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 14px;
        padding: 10px 16px;
        border-radius: 14px;
    }

    .instruction-icon {
        width: 64px;
        height: 64px;
    }

    .instruction-icon svg {
        width: 40px;
    }

    .instruction-copy h1 {
        font-size: 1.55rem;
    }

    .instruction-copy > span {
        margin: 6px 0;
    }

    .instruction-copy p {
        font-size: .68rem;
    }

    .success-view {
        grid-template-columns: minmax(0, 1.45fr) minmax(260px, .72fr);
        grid-template-rows: 54px minmax(0, 1fr);
        gap: 8px 12px;
        padding-top: 78px;
    }

    .success-overview {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: 54px;
        gap: 0;
        height: 54px;
    }

    .success-intro,
    .success-robot-note {
        width: 100%;
        height: 54px;
        padding-inline: 12px;
    }

    .success-robot-note {
        justify-content: flex-start;
        border-top: 0;
        border-left: 1px solid rgba(117, 236, 99, .2);
    }

    .success-intro-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .success-intro h1 {
        font-size: 1.1rem;
    }

    .success-intro p,
    .success-robot-note span {
        font-size: .62rem;
    }

    .success-robot-note .robot-assistant--mini {
        flex-basis: 48px;
        width: 48px;
    }

    .featured-student,
    .recent-students {
        min-height: 0;
    }

    .featured-student {
        grid-template-columns: minmax(180px, .82fr) minmax(230px, 1.18fr);
    }

    .featured-student .student-photo-placeholder {
        min-height: 0;
    }

    .featured-info {
        padding: 16px 18px;
    }

    .featured-info h2 {
        margin: 8px 0 10px;
        font-size: 1.45rem;
    }

    .featured-info dl > div {
        padding: 5px 0;
    }

    .featured-info dt,
    .featured-info dd {
        font-size: .82rem;
    }

    .recent-students {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .recent-student {
        grid-template-columns: 88px minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
        align-items: center;
        padding: 8px 10px;
    }

    .recent-photo-wrap,
    .recent-student.is-empty .recent-photo-wrap {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 78px;
        height: calc(100% - 8px);
        min-height: 82px;
        margin: 0;
        border: 1px solid rgba(117, 236, 99, .17);
        border-radius: 10px;
    }

    .recent-student .student-photo-placeholder,
    .recent-student.is-empty .student-photo-placeholder {
        min-height: 82px;
        font-size: 1.8rem;
    }

    .recent-student h3,
    .recent-student.is-empty h3 {
        grid-column: 2;
        margin: 0 0 6px;
        font-size: .82rem;
        text-align: left;
    }

    .recent-student dl {
        grid-column: 2;
    }

    .recent-student dl > div {
        grid-template-columns: 46px minmax(0, 1fr);
        padding: 3px 0;
    }

    .recent-student dt,
    .recent-student dd {
        font-size: .66rem;
    }

    .recent-student .rank-ribbon {
        left: 8px;
        width: 28px;
        height: 38px;
        font-size: .65rem;
    }

    .recent-empty-copy {
        grid-column: 2;
        margin: 0;
        font-size: .62rem;
        text-align: left;
    }

    .bottom-status {
        grid-template-columns: 150px repeat(3, minmax(0, 1fr));
        width: min(900px, 100%);
        min-height: 52px;
        border-radius: 12px;
    }

    .bottom-scan-label,
    .status-segment {
        gap: 7px;
        padding: 5px 9px;
    }

    .bottom-status b {
        font-size: .68rem;
    }

    .scan-corners,
    .status-icon,
    .bottom-scan-mode-icon {
        transform: scale(.78);
    }
}

/* Portrait tablets and phones use natural scrolling instead of cropping. */
@media (max-width: 900px) {
    html,
    body {
        width: 100%;
        min-width: 320px;
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .kiosk-shell {
        grid-template-rows: auto auto auto;
        gap: 10px;
        width: 100%;
        min-height: 100dvh;
        padding: 12px;
        overflow: hidden;
    }

    .kiosk-header,
    .kiosk-main,
    .bottom-status {
        width: 100%;
        max-width: 100%;
    }

    .kiosk-header {
        grid-template-areas:
            "brand clock"
            "badge badge";
        grid-template-columns: minmax(0, 1fr) minmax(290px, .95fr);
        gap: 10px;
        min-height: 0;
    }

    .brand-card {
        grid-area: brand;
    }

    .clock-card {
        grid-area: clock;
    }

    .brand-card,
    .clock-card {
        width: 100%;
        height: 96px;
        min-height: 0;
        border-radius: 14px;
    }

    .brand-card {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 8px;
        padding: 8px 12px;
    }

    .brand-crest-wrap {
        width: 68px;
        height: 72px;
    }

    .brand-crest-wrap img {
        width: 78px;
        height: 70px;
        transform: none;
    }

    .brand-title {
        gap: 6px;
    }

    .brand-title strong {
        font-size: 1.55rem;
    }

    .brand-title em {
        font-size: 1.55rem;
    }

    .brand-tagline {
        margin-top: 5px;
        padding-top: 5px;
        font-size: .58rem;
        white-space: normal;
    }

    .clock-card {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 10px;
        padding: 8px 12px;
    }

    .analog-clock {
        width: 58px;
        height: 58px;
    }

    .clock-copy time {
        font-size: 1.85rem;
    }

    .clock-copy span {
        margin-top: 5px;
        font-size: .68rem;
        white-space: normal;
    }

    .success-badge {
        position: static;
        grid-area: badge;
        display: none;
        width: min(360px, 100%);
        height: 68px;
        margin-inline: auto;
        transform: none;
    }

    .state-success .success-badge {
        display: flex;
        transform: none;
    }

    .success-badge-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .success-badge small {
        font-size: .74rem;
    }

    .success-badge strong {
        font-size: 1.12rem;
    }

    .kiosk-main {
        min-height: 0;
    }

    .idle-view,
    .success-view {
        position: absolute;
        inset: 0;
        width: 100%;
    }

    .idle-view.is-active,
    .success-view.is-active {
        position: relative;
        inset: auto;
    }

    .idle-view {
        grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr);
        grid-template-rows: 330px 210px;
        gap: 10px;
    }

    .idle-robot-wrap {
        grid-column: 1 / -1;
    }

    .robot-assistant {
        width: min(390px, 62vw);
        max-width: 62vw;
        min-height: 220px;
    }

    .robot-svg {
        max-height: 330px;
    }

    .speech-bubble {
        left: 2%;
        top: 8px;
        width: min(240px, 40%);
        min-height: 54px;
        padding: 8px 10px;
        font-size: .68rem;
    }

    .voice-indicator {
        right: 2%;
        top: 12px;
        min-height: 48px;
        padding: 6px 10px;
    }

    .voice-indicator b {
        font-size: .68rem;
    }

    .voice-mic {
        transform: scale(.8);
    }

    .scanner-panel {
        min-height: 210px;
    }

    .instruction-panel {
        grid-template-columns: 66px minmax(0, 1fr);
        min-height: 210px;
        gap: 12px;
        padding: 14px;
        border-radius: 16px;
    }

    .instruction-icon {
        width: 62px;
        height: 62px;
    }

    .instruction-icon svg {
        width: 38px;
    }

    .instruction-copy h1 {
        font-size: 1.4rem;
    }

    .instruction-copy p {
        font-size: .68rem;
    }

    .success-view {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        gap: 10px;
        padding-top: 0;
    }

    .success-overview {
        grid-column: 1;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: 66px;
        gap: 0;
        height: 66px;
    }

    .success-intro,
    .success-robot-note {
        width: 100%;
        height: 66px;
        padding-inline: 12px;
    }

    .success-robot-note {
        justify-content: flex-start;
        border-top: 0;
        border-left: 1px solid rgba(117, 236, 99, .2);
    }

    .success-robot-note .robot-assistant--mini {
        flex-basis: 52px;
        width: 52px;
    }

    .success-intro h1 {
        font-size: 1.15rem;
    }

    .success-intro p,
    .success-robot-note span {
        font-size: .64rem;
    }

    .featured-student {
        grid-template-columns: minmax(220px, .85fr) minmax(260px, 1.15fr);
        min-height: 360px;
    }

    .featured-info {
        padding: 18px 20px;
    }

    .featured-info h2 {
        font-size: 1.55rem;
    }

    .recent-students {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: 310px;
    }

    .recent-student .student-photo-placeholder {
        min-height: 150px;
    }

    .bottom-status {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-height: 58px;
    }

    .bottom-scan-label {
        display: none;
    }

    .status-segment {
        min-height: 58px;
        padding: 6px 8px;
    }

    .bottom-status b {
        font-size: .68rem;
    }
}

@media (max-width: 560px) {
    .kiosk-header {
        grid-template-areas:
            "brand"
            "clock"
            "badge";
        grid-template-columns: minmax(0, 1fr);
    }

    .brand-card,
    .clock-card {
        height: 86px;
    }

    .brand-card {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .brand-crest-wrap {
        width: 60px;
        height: 64px;
    }

    .brand-crest-wrap img {
        width: 66px;
        height: 62px;
    }

    .brand-title strong {
        font-size: 1.38rem;
    }

    .brand-title em {
        font-size: 1.38rem;
    }

    .brand-tagline {
        font-size: .55rem;
    }

    .clock-card {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .analog-clock {
        width: 54px;
        height: 54px;
    }

    .clock-copy time {
        font-size: 1.75rem;
    }

    .success-badge {
        width: 100%;
        height: 62px;
    }

    .idle-view {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 300px 190px auto;
    }

    .robot-assistant {
        width: min(340px, 94vw);
        max-width: 94vw;
        min-height: 210px;
    }

    .robot-svg {
        max-height: 285px;
    }

    .speech-bubble {
        left: 0;
        top: 4px;
        width: calc(100% - 58px);
        max-width: 250px;
    }

    .speech-bubble::after,
    .speech-bubble .voice-bars {
        display: none;
    }

    .voice-indicator {
        right: 0;
        top: 66px;
        width: 46px;
        min-height: 46px;
        padding: 3px;
        justify-content: center;
    }

    .voice-indicator b,
    .voice-indicator .voice-bars {
        display: none;
    }

    .scanner-panel {
        min-height: 190px;
    }

    .instruction-panel {
        grid-template-columns: 58px minmax(0, 1fr);
        min-height: 150px;
        padding: 12px;
    }

    .instruction-icon {
        width: 54px;
        height: 54px;
    }

    .instruction-icon svg {
        width: 34px;
    }

    .instruction-copy h1 {
        font-size: 1.22rem;
    }

    .instruction-copy > span {
        margin: 6px 0;
    }

    .instruction-copy p {
        font-size: .62rem;
    }

    .success-overview {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 64px 64px;
        height: 128px;
    }

    .success-intro,
    .success-robot-note {
        height: 64px;
    }

    .success-robot-note {
        border-top: 1px solid rgba(117, 236, 99, .2);
        border-left: 0;
    }

    .featured-student {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .featured-photo-wrap {
        min-height: 220px;
    }

    .featured-info {
        padding: 18px;
        border-top: 1px solid rgba(117, 236, 99, .14);
        border-left: 0;
    }

    .featured-info h2 {
        margin: 10px 0 12px;
        font-size: 1.45rem;
    }

    .recent-students {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .recent-student {
        min-height: 300px;
    }

    .bottom-status {
        min-height: 70px;
    }

    .status-segment {
        flex-direction: column;
        gap: 3px;
        min-height: 70px;
        padding: 6px 4px;
    }

    .bottom-status b {
        font-size: .6rem;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
    }

    .status-icon,
    .bottom-scan-mode-icon {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        transform: scale(.78);
    }
}

/* Final viewport guards keep every kiosk state inside the available screen. */
.kiosk-header > *,
.idle-view > *,
.success-view > *,
.success-overview > *,
.featured-student > *,
.recent-students > *,
.instruction-copy,
.brand-copy,
.clock-copy {
    min-width: 0;
    max-width: 100%;
}

.brand-title,
.brand-tagline,
.instruction-copy h1,
.instruction-copy p,
.success-intro h1,
.success-intro p,
.success-robot-note span,
.featured-info h2,
.recent-student h3,
#featuredStatus {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (min-width: 901px) {
    html,
    body {
        height: 100%;
        min-height: 100%;
        overflow: hidden;
    }

    .kiosk-shell {
        height: 100dvh;
        min-height: 100svh;
        max-height: 100dvh;
    }
}

@media (max-width: 560px) {
    html,
    body {
        min-width: 0;
        max-width: 100%;
        overflow-x: clip;
    }

    .kiosk-shell {
        width: 100%;
        max-width: 100%;
        padding: 10px;
    }

    .kiosk-header,
    .kiosk-main,
    .idle-view,
    .success-view,
    .scanner-panel,
    .instruction-panel,
    .success-overview,
    .featured-student,
    .recent-students,
    .bottom-status {
        min-width: 0;
        max-width: 100%;
    }

    .brand-card {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 8px;
        padding-inline: 10px;
    }

    .brand-crest-wrap {
        width: 54px;
        height: 60px;
    }

    .brand-crest-wrap img {
        width: 60px;
        height: 58px;
    }

    .brand-title {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 7px;
    }

    .brand-title strong,
    .brand-title em {
        font-size: 1.22rem;
        line-height: 1;
    }

    .idle-view {
        grid-template-rows: 286px 184px auto;
    }

    .robot-assistant {
        width: min(320px, 88vw);
        max-width: 100%;
    }

    .robot-svg {
        max-width: 100%;
        max-height: 272px;
    }

    .scanner-panel {
        width: 100%;
        min-height: 184px;
    }

    .instruction-panel {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        min-height: 142px;
        padding: 12px;
    }

    .instruction-icon {
        width: 46px;
        height: 46px;
    }

    .instruction-icon svg {
        width: 29px;
    }

    .instruction-copy h1 {
        font-size: 1.05rem;
        line-height: 1.16;
    }

    .instruction-copy p {
        font-size: .6rem;
        line-height: 1.4;
    }

    .success-view {
        width: 100%;
    }

    .success-intro,
    .success-robot-note {
        min-width: 0;
        overflow: hidden;
    }

    .featured-info dl > div {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .recent-student dl > div {
        grid-template-columns: 52px minmax(0, 1fr);
    }
}

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

/* Streamlined stage: the assistant remains the only idle-screen focal point. */
.kiosk-shell {
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(10px, 1.4vh, 16px);
    padding-bottom: clamp(14px, 2vh, 24px);
}

.idle-view {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    place-items: center;
    gap: 0;
    padding: clamp(6px, 1.2vh, 16px) 0 0;
}

.idle-robot-wrap {
    grid-column: 1;
    grid-row: 1;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.robot-assistant--hero {
    z-index: 1;
    width: min(720px, 54vw, 74vh);
    max-width: min(76vw, 760px);
    height: min(100%, 700px);
    min-height: 320px;
}

.robot-assistant--hero .robot-svg {
    max-height: min(70vh, 680px);
    filter: saturate(1.08) contrast(1.03) drop-shadow(0 24px 28px rgba(0, 0, 0, .42));
}

.robot-assistant--hero .robot-aura {
    width: 76%;
    border-color: rgba(117, 236, 99, .42);
    box-shadow:
        0 0 72px rgba(58, 220, 88, .2),
        inset 0 0 48px rgba(58, 220, 88, .1);
}

.idle-camera-action {
    position: absolute;
    right: clamp(12px, 3vw, 46px);
    bottom: clamp(12px, 2.5vh, 30px);
    z-index: 6;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(117, 236, 99, .55);
    border-radius: 50%;
    color: var(--green-bright);
    background: rgba(3, 30, 19, .9);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .34), inset 0 0 18px rgba(117, 236, 99, .06);
    cursor: pointer;
}

.idle-camera-action:hover,
.idle-camera-action:focus-visible {
    border-color: var(--gold-soft);
    color: var(--gold-soft);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(245, 202, 61, .12), 0 12px 30px rgba(0, 0, 0, .4);
}

.idle-camera-action svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (min-width: 901px) and (max-width: 1100px) {
    .kiosk-shell {
        grid-template-rows: 88px minmax(0, 1fr);
    }

    .idle-view {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
    }

    .robot-assistant--hero {
        width: min(600px, 62vw, 72vh);
        max-width: 66vw;
        min-height: 260px;
    }
}

@media (max-width: 900px) {
    .kiosk-shell {
        grid-template-rows: auto auto;
    }

    .idle-view {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(400px, calc(100svh - 230px));
        min-height: 400px;
    }

    .robot-assistant--hero {
        width: min(620px, 82vw);
        max-width: 88vw;
        height: min(620px, 72vh);
        min-height: 300px;
    }

    .robot-assistant--hero .robot-svg {
        max-height: min(600px, 68vh);
    }
}

@media (max-width: 560px) {
    .idle-view {
        grid-template-rows: minmax(360px, calc(100svh - 220px));
        min-height: 360px;
        padding-top: 4px;
    }

    .robot-assistant--hero {
        width: min(390px, 94vw);
        max-width: 94vw;
        height: min(500px, 64vh);
        min-height: 280px;
    }

    .robot-assistant--hero .robot-svg {
        max-height: min(470px, 60vh);
    }

    .idle-camera-action {
        position: fixed;
        right: 8px;
        bottom: 12px;
        width: 46px;
        height: 46px;
    }
}

/* Balanced idle stage: stronger branding, responsive assistant, restrained status. */
@media (min-width: 1101px) {
    .kiosk-header {
        grid-template-columns: minmax(590px, 1fr) minmax(220px, .72fr) minmax(400px, .78fr);
    }

    .brand-card {
        grid-template-columns: 108px minmax(0, 1fr);
        width: min(620px, 100%);
        height: 116px;
        padding: 10px 22px;
    }

    .brand-crest-wrap {
        width: 108px;
        height: 96px;
    }

    .brand-crest-wrap img {
        width: 132px;
        height: 110px;
    }

    .brand-title strong,
    .brand-title em {
        font-size: 2.3rem;
    }

    .brand-tagline {
        width: min(360px, 100%);
        margin-top: 9px;
        padding-top: 8px;
        font-size: .92rem;
        font-weight: 700;
    }

    .clock-card {
        justify-self: end;
        width: min(410px, 100%);
        height: 116px;
    }
}

.idle-robot-wrap {
    isolation: isolate;
    padding-bottom: clamp(54px, 7vh, 76px);
    background:
        linear-gradient(90deg, transparent 0 15%, rgba(117, 236, 99, .1) 15% 15.08%, transparent 15.08% 84.92%, rgba(117, 236, 99, .1) 84.92% 85%, transparent 85%),
        radial-gradient(ellipse at 50% 54%, rgba(41, 197, 76, .12), transparent 39%);
}

.idle-robot-wrap::before,
.idle-robot-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    z-index: -1;
    width: clamp(90px, 14vw, 260px);
    height: 1px;
    opacity: .72;
    background: linear-gradient(90deg, transparent, rgba(245, 202, 61, .5));
}

.idle-robot-wrap::before {
    left: clamp(24px, 5vw, 100px);
}

.idle-robot-wrap::after {
    right: clamp(24px, 5vw, 100px);
    transform: scaleX(-1);
}

.robot-assistant--hero {
    width: clamp(390px, min(43vw, 60vh), 620px);
    max-width: min(68vw, 620px);
    height: min(100%, 620px);
    min-height: 300px;
}

.robot-assistant--hero .robot-svg {
    max-height: min(59vh, 600px);
}

.idle-system-status {
    position: absolute;
    left: 50%;
    bottom: clamp(8px, 1.8vh, 20px);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 42px;
    padding: 8px 18px;
    border-top: 1px solid rgba(117, 236, 99, .42);
    border-bottom: 1px solid rgba(117, 236, 99, .18);
    color: #dce8e0;
    background: linear-gradient(90deg, transparent, rgba(4, 31, 20, .82) 14%, rgba(4, 31, 20, .82) 86%, transparent);
    transform: translateX(-50%);
    white-space: nowrap;
}

.idle-system-status strong {
    color: var(--white);
    font-size: .88rem;
    font-weight: 800;
    text-transform: uppercase;
}

.idle-system-status > span:last-child {
    color: var(--gold-soft);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.idle-system-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green-bright);
    box-shadow: 0 0 0 5px rgba(117, 236, 99, .1), 0 0 18px rgba(117, 236, 99, .7);
    animation: antennaPulse 1.8s ease-in-out infinite;
}

@media (min-width: 901px) and (max-width: 1100px) {
    .robot-assistant--hero {
        width: clamp(360px, min(50vw, 58vh), 520px);
        max-width: 62vw;
    }
}

@media (max-width: 900px) {
    .brand-tagline {
        font-size: .68rem;
        font-weight: 700;
    }

    .idle-robot-wrap {
        padding-bottom: 58px;
    }

    .robot-assistant--hero {
        width: clamp(330px, min(76vw, 58vh), 520px);
        max-width: 86vw;
        height: min(560px, 66vh);
    }

    .robot-assistant--hero .robot-svg {
        max-height: min(520px, 56vh);
    }
}

@media (max-width: 560px) {
    .brand-tagline {
        font-size: .7rem;
        font-weight: 700;
        line-height: 1.28;
    }

    .idle-robot-wrap {
        padding-bottom: 54px;
        background: radial-gradient(ellipse at 50% 48%, rgba(41, 197, 76, .12), transparent 48%);
    }

    .idle-robot-wrap::before,
    .idle-robot-wrap::after {
        display: none;
    }

    .robot-assistant--hero {
        width: clamp(270px, 80vw, 350px);
        max-width: 84vw;
        height: min(450px, 58vh);
        min-height: 260px;
    }

    .robot-assistant--hero .robot-svg {
        max-height: min(420px, 52vh);
    }

    .idle-system-status {
        gap: 8px;
        width: min(330px, 86vw);
        min-height: 38px;
        padding-inline: 10px;
    }

    .idle-system-status strong {
        font-size: .72rem;
    }

    .idle-system-status > span:last-child {
        font-size: .66rem;
    }
}

/* Premium institutional refresh — visual layer only, existing kiosk structure is preserved. */
:root {
    --bg: #03110d;
    --panel: rgba(6, 29, 23, .88);
    --panel-soft: rgba(10, 45, 35, .68);
    --green: #64d8a4;
    --green-bright: #94e8c1;
    --green-deep: #147255;
    --gold: #deb85b;
    --gold-soft: #f0d286;
    --white: #f7faf8;
    --muted: #98aaa2;
    --line: rgba(148, 232, 193, .22);
    --gold-line: rgba(222, 184, 91, .38);
    font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
}

body {
    background: #03110d;
    font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
}

.kiosk-shell {
    gap: clamp(14px, 1.8vh, 20px);
    padding: clamp(16px, 2.2vh, 24px) clamp(20px, 2.2vw, 34px) clamp(16px, 2vh, 22px);
    background:
        radial-gradient(circle at 50% 46%, rgba(34, 130, 95, .22), transparent 31%),
        radial-gradient(circle at 50% 102%, rgba(222, 184, 91, .07), transparent 34%),
        linear-gradient(118deg, #020c09 0%, #06261d 50%, #020c09 100%);
}

.kiosk-shell::before {
    opacity: .5;
    background:
        linear-gradient(rgba(148, 232, 193, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 232, 193, .035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, #000 0 42%, transparent 78%);
}

.kiosk-shell::after {
    background: radial-gradient(ellipse at center, transparent 46%, rgba(0, 0, 0, .6) 100%);
}

.tech-field {
    opacity: .3;
    background:
        radial-gradient(circle at 10% 32%, var(--green) 0 2px, transparent 3px),
        radial-gradient(circle at 90% 30%, var(--green) 0 2px, transparent 3px),
        radial-gradient(circle at 81% 66%, rgba(222, 184, 91, .65) 0 1px, transparent 2px);
}

.kiosk-header {
    grid-template-columns: minmax(590px, 1fr) minmax(220px, .58fr) minmax(410px, .84fr);
    align-items: start;
    gap: 22px;
    min-height: 116px;
}

.brand-card,
.clock-card {
    height: 116px;
    border: 1px solid rgba(226, 238, 232, .12);
    border-top-color: rgba(222, 184, 91, .48);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(9, 41, 32, .86), rgba(3, 18, 14, .86)),
        rgba(4, 24, 18, .84);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, .24),
        inset 0 1px rgba(255, 255, 255, .045);
    backdrop-filter: blur(18px);
}

.brand-card {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 18px;
    width: min(660px, 100%);
    padding: 10px 24px;
}

.brand-crest-wrap {
    width: 108px;
    height: 96px;
}

.brand-crest-wrap img {
    width: 132px;
    height: 110px;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .34));
}

.brand-title {
    gap: 10px;
}

.brand-title strong,
.brand-title em {
    font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
    font-size: clamp(2rem, 2.15vw, 2.45rem);
    line-height: .94;
    letter-spacing: -.055em;
}

.brand-title strong {
    font-weight: 900;
    text-shadow: 0 8px 24px rgba(0, 0, 0, .32);
}

.brand-title em {
    color: var(--gold);
    font-weight: 850;
    text-shadow: 0 8px 24px rgba(222, 184, 91, .12);
}

.brand-tagline {
    width: max-content;
    max-width: 100%;
    margin-top: 10px;
    padding-top: 0;
    border-top: 0;
    color: rgba(222, 236, 229, .72);
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .055em;
}

.brand-tagline::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 1px;
    margin: 0 10px 3px 0;
    background: var(--gold);
}

.clock-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    width: min(430px, 100%);
    padding: 12px 22px;
}

.analog-clock {
    width: 72px;
    height: 72px;
    background: #051a13;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, .3),
        inset 0 0 18px rgba(0, 0, 0, .4);
}

.clock-face {
    fill: rgba(5, 24, 18, .96);
    stroke: var(--green);
    stroke-width: 3.2;
}

.clock-face-inner {
    stroke: rgba(148, 232, 193, .12);
}

.clock-marks line {
    stroke: rgba(240, 210, 134, .7);
}

.clock-marks line.is-major {
    stroke: var(--green-bright);
}

.clock-copy {
    text-align: left;
}

.clock-copy time {
    font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
    font-size: 2.35rem;
    font-weight: 850;
    letter-spacing: -.035em;
    text-shadow: none;
}

.clock-copy span {
    margin-top: 7px;
    color: var(--gold-soft);
    font-size: .8rem;
    letter-spacing: .03em;
}

.success-badge {
    height: 82px;
    border-color: rgba(100, 216, 164, .5);
    border-radius: 22px;
    clip-path: none;
    background: rgba(7, 42, 31, .86);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .24);
}

.idle-view::before {
    content: "ABSENSI MASUK";
    position: absolute;
    top: clamp(2px, 1.5vh, 14px);
    left: 50%;
    z-index: 4;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border: 1px solid rgba(222, 184, 91, .3);
    border-radius: 999px;
    color: var(--gold-soft);
    background: rgba(4, 25, 19, .72);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
    backdrop-filter: blur(12px);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .18em;
    transform: translateX(-50%);
    pointer-events: none;
}

body.fast-checkout .idle-view::before {
    content: "ABSENSI PULANG";
}

.idle-robot-wrap {
    padding-bottom: clamp(64px, 7.5vh, 82px);
    background:
        radial-gradient(ellipse at 50% 55%, rgba(42, 151, 111, .16), transparent 38%),
        linear-gradient(90deg, transparent 12%, rgba(148, 232, 193, .055) 12% 12.06%, transparent 12.06% 87.94%, rgba(148, 232, 193, .055) 87.94% 88%, transparent 88%);
}

.idle-robot-wrap::before,
.idle-robot-wrap::after {
    width: clamp(80px, 11vw, 190px);
    opacity: .42;
    background: linear-gradient(90deg, transparent, rgba(222, 184, 91, .42));
}

.robot-assistant--hero {
    width: clamp(400px, min(41vw, 58vh), 590px);
    max-width: min(66vw, 590px);
    height: min(100%, 600px);
}

.robot-assistant--hero .robot-svg {
    max-height: min(57vh, 570px);
    filter:
        saturate(.94)
        contrast(1.02)
        drop-shadow(0 28px 34px rgba(0, 0, 0, .36));
}

.robot-assistant--hero .robot-aura {
    width: 74%;
    border-color: rgba(100, 216, 164, .22);
    background: radial-gradient(circle, rgba(42, 151, 111, .13), transparent 66%);
    box-shadow:
        0 0 84px rgba(42, 151, 111, .13),
        inset 0 0 46px rgba(42, 151, 111, .06);
}

.robot-aura::before,
.robot-aura::after {
    border-color: rgba(222, 184, 91, .19);
}

.idle-system-status {
    bottom: clamp(8px, 1.6vh, 18px);
    gap: 10px;
    min-height: 48px;
    padding: 7px 9px 7px 16px;
    border: 1px solid rgba(148, 232, 193, .18);
    border-radius: 999px;
    color: rgba(238, 247, 242, .86);
    background: rgba(4, 28, 21, .82);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .26);
    backdrop-filter: blur(14px);
}

.idle-system-status strong {
    font-size: .82rem;
    font-weight: 750;
    letter-spacing: .07em;
}

.idle-system-status > span:last-child {
    padding: 8px 12px;
    border-radius: 999px;
    color: #1a2d25;
    background: var(--gold-soft);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .04em;
}

.idle-system-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    box-shadow:
        0 0 0 5px rgba(100, 216, 164, .1),
        0 0 14px rgba(100, 216, 164, .42);
}

.idle-camera-action {
    width: 52px;
    height: 52px;
    border-color: rgba(148, 232, 193, .24);
    border-radius: 16px;
    color: var(--green-bright);
    background: rgba(5, 34, 25, .84);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
    backdrop-filter: blur(12px);
}

.idle-camera-action:hover,
.idle-camera-action:focus-visible {
    border-color: rgba(222, 184, 91, .7);
    color: var(--gold-soft);
    box-shadow: 0 0 0 4px rgba(222, 184, 91, .1), 0 16px 36px rgba(0, 0, 0, .34);
}

.success-overview,
.featured-student,
.recent-student {
    border-color: rgba(148, 232, 193, .16);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(8, 42, 32, .88), rgba(3, 20, 15, .9)),
        var(--panel);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .24);
}

.success-overview {
    background: rgba(6, 33, 25, .82);
}

.featured-student {
    border-color: rgba(222, 184, 91, .42);
}

.featured-student::after {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    box-shadow: none;
}

.featured-info {
    border-left-color: rgba(148, 232, 193, .1);
}

.latest-tag {
    border-color: rgba(100, 216, 164, .36);
    border-radius: 999px;
    color: var(--green-bright);
    background: rgba(20, 114, 85, .28);
}

.rank-ribbon,
.recent-student .rank-ribbon {
    width: 44px;
    height: 48px;
    padding-bottom: 0;
    border-radius: 0 0 13px 13px;
    clip-path: none;
    background: var(--gold);
    color: #18251f;
}

.recent-student .rank-ribbon {
    background: #527469;
    color: #fff;
}

.featured-info dl > div,
.recent-student dl > div {
    border-top-color: rgba(148, 232, 193, .1);
}

.recent-student.is-empty {
    border-color: rgba(148, 232, 193, .12);
    background: rgba(5, 29, 22, .72);
}

.camera-card {
    border-color: rgba(222, 184, 91, .34);
    border-radius: 24px;
    background: #071f18;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .44);
}

@media (min-width: 901px) and (max-width: 1100px) {
    .kiosk-header {
        gap: 12px;
    }

    .brand-card,
    .clock-card {
        border-radius: 18px;
    }

    .robot-assistant--hero {
        width: clamp(350px, min(48vw, 56vh), 500px);
    }
}

@media (max-width: 900px) {
    .kiosk-shell {
        padding: 12px;
    }

    .brand-card,
    .clock-card {
        border-radius: 18px;
    }

    .idle-view::before {
        top: 10px;
        font-size: .58rem;
    }

    .idle-robot-wrap {
        padding-bottom: 62px;
    }

    .robot-assistant--hero {
        width: clamp(320px, min(74vw, 56vh), 500px);
        height: min(540px, 64vh);
    }
}

@media (max-width: 560px) {
    .kiosk-shell {
        padding: 9px;
    }

    .kiosk-header,
    .brand-card,
    .clock-card {
        width: calc(100vw - 18px);
        max-width: calc(100vw - 18px);
        min-width: 0;
        justify-self: start;
        border-radius: 16px;
    }

    .brand-card,
    .brand-copy {
        overflow: hidden;
    }

    .brand-title strong,
    .brand-title em {
        font-size: 1.2rem;
        letter-spacing: -.04em;
    }

    .brand-tagline {
        width: 100%;
        max-width: 100%;
        font-size: .64rem;
        letter-spacing: .02em;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .brand-tagline::before {
        width: 12px;
        margin-right: 6px;
    }

    .idle-view::before {
        top: 6px;
        min-height: 28px;
        padding: 6px 10px;
    }

    .idle-robot-wrap {
        padding-bottom: 56px;
        background: radial-gradient(ellipse at 50% 48%, rgba(42, 151, 111, .15), transparent 48%);
    }

    .robot-assistant--hero {
        width: clamp(270px, 79vw, 350px);
        height: min(440px, 56vh);
    }

    .idle-system-status {
        width: auto;
        max-width: 90vw;
        min-height: 42px;
    }

    .idle-system-status strong {
        font-size: .68rem;
    }

    .idle-system-status > span:last-child {
        padding: 7px 9px;
        font-size: .58rem;
    }
}

/* Refined success state — compact chrome, generous student presentation. */
.state-success {
    gap: 14px;
}

.state-success .kiosk-header {
    grid-template-columns: minmax(430px, 1fr) minmax(290px, 340px) minmax(260px, 1fr);
    align-items: center;
    min-height: 72px;
}

.state-success .brand-card,
.state-success .clock-card {
    height: 72px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.state-success .brand-card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 13px;
    width: min(460px, 100%);
    padding: 0 4px;
}

.state-success .brand-crest-wrap {
    width: 68px;
    height: 68px;
}

.state-success .brand-crest-wrap img {
    width: 84px;
    height: 76px;
    transform: translateY(-3px);
    filter: drop-shadow(0 7px 12px rgba(0, 0, 0, .28));
}

.state-success .brand-title {
    gap: 8px;
}

.state-success .brand-title strong,
.state-success .brand-title em {
    font-size: 1.7rem;
}

.state-success .brand-tagline {
    display: none;
}

.state-success .clock-card {
    grid-template-columns: minmax(0, 1fr);
    justify-self: end;
    width: min(260px, 100%);
    padding: 0 4px;
}

.state-success .analog-clock {
    display: none;
}

.state-success .clock-copy {
    text-align: right;
}

.state-success .clock-copy time {
    font-size: 1.85rem;
    font-weight: 820;
    letter-spacing: -.025em;
}

.state-success .clock-copy span {
    margin-top: 4px;
    font-size: .68rem;
    letter-spacing: .04em;
}

.state-success .success-badge {
    width: min(330px, 100%);
    height: 64px;
    gap: 11px;
    padding: 8px 18px;
    border-color: rgba(100, 216, 164, .38);
    border-radius: 18px;
    background: rgba(8, 47, 35, .72);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.state-success .success-badge-icon {
    flex-basis: 43px;
    width: 43px;
    height: 43px;
    filter: none;
}

.state-success .success-badge small {
    font-size: .68rem;
    letter-spacing: .12em;
}

.state-success .success-badge strong {
    margin-top: 2px;
    font-size: 1.08rem;
    letter-spacing: .025em;
}

.state-success .success-view {
    grid-template-rows: 58px minmax(0, 1fr);
    gap: 16px 20px;
}

.state-success .success-overview {
    height: 58px;
    border-color: rgba(148, 232, 193, .12);
    border-radius: 18px;
    background: rgba(6, 32, 24, .64);
    box-shadow: none;
}

.state-success .success-intro {
    gap: 11px;
    padding: 0 17px;
}

.state-success .success-intro-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    filter: none;
}

.state-success .success-intro-icon rect {
    fill: rgba(20, 114, 85, .3);
    stroke: var(--green);
    stroke-width: 2.4;
}

.state-success .success-intro h1 {
    font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
    font-size: 1.18rem;
    font-weight: 780;
    letter-spacing: -.02em;
}

.state-success .success-intro p {
    margin-top: 2px;
    color: var(--muted);
    font-size: .68rem;
}

.state-success .success-robot-note {
    gap: 8px;
    padding: 0 18px 0 12px;
    border-left-color: rgba(148, 232, 193, .1);
}

.state-success .success-robot-note .robot-assistant--mini {
    flex-basis: 50px;
    width: 50px;
}

.state-success .success-robot-note b {
    font-size: .73rem;
    letter-spacing: .08em;
}

.state-success .success-robot-note span {
    color: var(--muted);
    font-size: .66rem;
}

.state-success .featured-student,
.state-success .recent-student {
    border-color: rgba(148, 232, 193, .13);
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(7, 38, 29, .84), rgba(3, 21, 16, .9)),
        var(--panel);
    box-shadow: 0 22px 54px rgba(0, 0, 0, .22);
}

.state-success .featured-student {
    grid-template-columns: minmax(310px, .88fr) minmax(390px, 1.12fr);
    gap: 0;
    padding: 14px;
    border-color: rgba(222, 184, 91, .3);
}

.state-success .featured-student::after {
    display: none;
}

.state-success .featured-photo-wrap {
    border-radius: 19px;
    background:
        linear-gradient(180deg, rgba(11, 65, 47, .12), rgba(3, 20, 15, .3)),
        #061d16;
}

.state-success .student-photo-placeholder img {
    filter: saturate(.88) contrast(.98);
}

.state-success .featured-photo-wrap::after,
.state-success .recent-student:not(.is-empty) .recent-photo-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .045);
}

.state-success .featured-info {
    padding: clamp(30px, 3.2vw, 50px);
    border-left: 0;
}

.state-success .latest-tag {
    padding: 6px 12px;
    border: 0;
    color: var(--green-bright);
    background: rgba(100, 216, 164, .1);
    font-size: .67rem;
    letter-spacing: .08em;
}

.state-success .featured-info h2 {
    margin: 18px 0 24px;
    font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
    font-size: clamp(1.8rem, 2.4vw, 2.45rem);
    font-weight: 780;
    letter-spacing: -.035em;
}

.state-success .featured-info dl {
    gap: 3px;
}

.state-success .featured-info dl > div {
    grid-template-columns: 86px minmax(0, 1fr);
    padding: 12px 0;
    border-top-color: rgba(148, 232, 193, .09);
}

.state-success .featured-info dt {
    color: var(--muted);
    font-size: .84rem;
}

.state-success .featured-info dd {
    font-size: 1rem;
}

.state-success #featuredStatus {
    padding: 7px 12px;
    border-radius: 999px;
}

.state-success .rank-ribbon,
.state-success .recent-student .rank-ribbon {
    top: 14px;
    left: 28px;
    width: 42px;
    height: 38px;
    border-radius: 0 0 12px 12px;
    font-size: .76rem;
}

.state-success .recent-students {
    gap: 14px;
}

.state-success .recent-student:not(.is-empty) {
    grid-template-rows: minmax(0, 1fr) auto auto;
    padding: 14px 14px 18px;
}

.state-success .recent-student:not(.is-empty) .recent-photo-wrap {
    width: 100%;
    height: 100%;
    margin-left: 0;
    border: 0;
    border-radius: 18px;
}

.state-success .recent-student h3 {
    margin: 15px 4px 11px;
    font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 720;
}

.state-success .recent-student dl {
    padding: 0 4px;
}

.state-success .recent-student dl > div {
    padding: 8px 0;
}

.state-success .recent-student dt {
    color: var(--muted);
    font-size: .67rem;
}

.state-success .recent-student dd {
    font-size: .78rem;
}

.state-success .recent-student.is-empty {
    padding: 18px;
    opacity: .64;
    background: rgba(5, 28, 21, .58);
    box-shadow: none;
}

@media (max-width: 1100px) {
    .state-success .kiosk-header {
        grid-template-columns: minmax(310px, 1fr) minmax(230px, 280px) minmax(190px, 1fr);
        min-height: 64px;
    }

    .state-success .brand-card,
    .state-success .clock-card {
        height: 64px;
    }

    .state-success .brand-card {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .state-success .brand-crest-wrap {
        width: 58px;
        height: 58px;
    }

    .state-success .brand-crest-wrap img {
        width: 72px;
        height: 65px;
    }

    .state-success .brand-title strong,
    .state-success .brand-title em {
        font-size: 1.42rem;
    }

    .state-success .clock-copy time {
        font-size: 1.6rem;
    }

    .state-success .success-badge {
        height: 58px;
    }

    .state-success .featured-info {
        padding: 26px;
    }
}

@media (max-width: 900px) {
    .state-success {
        gap: 10px;
    }

    .state-success .kiosk-header {
        grid-template-areas:
            "brand clock"
            "badge badge";
        grid-template-columns: minmax(0, 1fr) minmax(180px, .68fr);
        gap: 8px;
    }

    .state-success .brand-card,
    .state-success .clock-card {
        width: 100%;
        max-width: 100%;
    }

    .state-success .success-badge {
        width: min(300px, 100%);
        margin-inline: auto;
    }

    .state-success .success-view {
        grid-template-rows: auto auto auto;
        gap: 10px;
    }

    .state-success .success-overview {
        height: 62px;
    }

    .state-success .featured-student {
        grid-template-columns: minmax(210px, .82fr) minmax(250px, 1.18fr);
        min-height: 360px;
        padding: 10px;
        border-radius: 20px;
    }

    .state-success .featured-info {
        padding: 22px;
    }

    .state-success .recent-student {
        border-radius: 20px;
    }
}

@media (max-width: 560px) {
    .state-success .kiosk-header {
        grid-template-areas:
            "brand"
            "clock"
            "badge";
        grid-template-columns: minmax(0, 1fr);
    }

    .state-success .brand-card,
    .state-success .clock-card {
        width: calc(100vw - 18px);
        max-width: calc(100vw - 18px);
        min-width: 0;
    }

    .state-success .clock-card {
        height: 46px;
    }

    .state-success .clock-copy {
        text-align: left;
    }

    .state-success .clock-copy time {
        display: inline;
        font-size: 1.3rem;
    }

    .state-success .clock-copy span {
        display: inline;
        margin: 0 0 0 10px;
        font-size: .6rem;
    }

    .state-success .success-overview {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 62px;
        height: 62px;
        min-height: 62px;
    }

    .state-success .success-intro {
        height: 62px;
    }

    .state-success .success-robot-note {
        display: none;
    }

    .state-success .featured-student {
        grid-template-columns: minmax(0, 1fr);
        padding: 9px;
    }

    .state-success .featured-photo-wrap {
        min-height: 300px;
    }

    .state-success .featured-info {
        padding: 24px 16px;
    }

    .state-success .recent-students {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Lightweight realistic assistant: raster shell with a live SVG face. */
.robot-assistant--hybrid {
    isolation: isolate;
}

.robot-assistant--hybrid .robot-hybrid-frame {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.robot-assistant--hybrid .robot-float {
    position: relative;
    width: 100%;
    height: 100%;
}

.robot-shell-picture,
.robot-shell-asset,
.robot-hybrid-face {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.robot-shell-picture {
    z-index: 1;
}

.robot-shell-asset {
    object-fit: contain;
    object-position: 50% 50%;
    filter:
        saturate(.98)
        contrast(1.025)
        drop-shadow(0 25px 28px rgba(0, 0, 0, .44));
    user-select: none;
    -webkit-user-drag: none;
}

.robot-hybrid-face {
    z-index: 2;
    overflow: visible;
    pointer-events: none;
}

.robot-assistant--hybrid .robot-ground {
    position: absolute;
    left: 25%;
    right: 25%;
    bottom: 1.1%;
    z-index: 0;
    height: 3.4%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(30, 214, 255, .34), rgba(14, 124, 168, .12) 48%, transparent 74%);
    filter: blur(4px);
}

.robot-assistant--hybrid .robot-aura {
    top: 51%;
    width: 78%;
    border-color: rgba(40, 221, 255, .22);
    background: radial-gradient(circle, rgba(31, 196, 232, .14), transparent 67%);
    box-shadow:
        0 0 84px rgba(22, 184, 226, .16),
        inset 0 0 48px rgba(38, 216, 255, .07);
}

.robot-assistant--hybrid .robot-aura::before,
.robot-assistant--hybrid .robot-aura::after {
    border-color: rgba(73, 221, 255, .22);
}

.robot-assistant--hero.robot-assistant--hybrid {
    width: clamp(310px, min(32vw, 48vh), 450px);
    max-width: min(62vw, 450px);
    height: min(100%, 640px);
    min-height: 360px;
}

.robot-assistant--hybrid .robot-chest-display {
    animation: hybridChestPulse 2.8s ease-in-out infinite;
}

.robot-assistant--hybrid.is-speaking .robot-chest-display,
.robot-assistant--hybrid.is-scanning .robot-chest-display {
    animation-duration: .72s;
}

.robot-assistant--hybrid.is-speaking .robot-shell-asset {
    filter:
        saturate(1.04)
        contrast(1.03)
        drop-shadow(0 26px 31px rgba(0, 0, 0, .45))
        drop-shadow(0 0 15px rgba(41, 214, 255, .13));
}

.robot-assistant--mini.robot-assistant--hybrid {
    min-height: 70px;
    height: 70px;
    overflow: hidden;
}

.robot-assistant--mini .robot-hybrid-frame {
    width: 100%;
    height: 100%;
    left: auto;
    top: auto;
    background-image: var(--robot-shell-image);
    background-repeat: no-repeat;
    background-position: 50% 1%;
    background-size: 215% auto;
    filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .32));
}

.robot-assistant--mini .robot-hybrid-frame::before,
.robot-assistant--mini .robot-hybrid-frame::after {
    content: "";
    position: absolute;
    left: 50%;
    z-index: 2;
    pointer-events: none;
}

.robot-assistant--mini .robot-hybrid-frame::before {
    top: 23%;
    width: 46%;
    height: 18%;
    background:
        radial-gradient(circle at 28% 48%, #fff 0 7%, #48eaff 8% 24%, #002340 25% 37%, transparent 39%),
        radial-gradient(circle at 72% 48%, #fff 0 7%, #48eaff 8% 24%, #002340 25% 37%, transparent 39%);
    filter: drop-shadow(0 0 3px rgba(45, 224, 255, .8));
    transform: translateX(-50%);
}

.robot-assistant--mini .robot-hybrid-frame::after {
    top: 37%;
    width: 18%;
    height: 7%;
    border-bottom: 2px solid #49eaff;
    border-radius: 0 0 999px 999px;
    filter: drop-shadow(0 0 2px rgba(45, 224, 255, .85));
    transform: translateX(-50%);
}

.robot-assistant--mini .robot-float {
    display: none;
}

.robot-assistant--mini .robot-aura,
.robot-assistant--mini .robot-ground,
.robot-assistant--mini .robot-chest-display {
    display: none;
}

@keyframes hybridChestPulse {
    0%, 100% { opacity: .78; }
    50% { opacity: 1; }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .robot-assistant--hero.robot-assistant--hybrid {
        width: clamp(300px, min(38vw, 47vh), 410px);
        height: min(100%, 590px);
    }
}

@media (min-width: 1101px) {
    .idle-view::before {
        top: -8px;
    }

    .robot-assistant--hero .robot-hybrid-frame {
        transform: translateY(12px);
    }
}

@media (max-width: 900px) {
    .robot-assistant--hero.robot-assistant--hybrid {
        width: clamp(280px, min(58vw, 45vh), 390px);
        height: min(560px, 64vh);
        min-height: 320px;
    }
}

@media (max-width: 560px) {
    .robot-assistant--hero.robot-assistant--hybrid {
        width: clamp(250px, 70vw, 330px);
        height: min(470px, 54vh);
        min-height: 280px;
    }

    .robot-assistant--hybrid .robot-aura {
        width: 86%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .robot-assistant--hybrid .robot-chest-display {
        animation: none;
    }
}

/* Modern visual refinement: compact header, richer depth, and a stable robot. */
.kiosk-premium .kiosk-shell {
    grid-template-rows: 76px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 20px 14px;
    background:
        radial-gradient(circle at 7% 0%, rgba(46, 125, 235, .24), transparent 27%),
        radial-gradient(circle at 92% 18%, rgba(49, 211, 224, .17), transparent 25%),
        radial-gradient(circle at 66% 100%, rgba(239, 177, 72, .11), transparent 28%),
        linear-gradient(125deg, #f8fbff 0%, #eaf3ff 46%, #f5fbff 74%, #edf8fa 100%);
}

.kiosk-premium .kiosk-shell::before {
    opacity: .76;
    background:
        linear-gradient(rgba(49, 112, 190, .065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 112, 190, .065) 1px, transparent 1px),
        linear-gradient(135deg, transparent 48%, rgba(46, 132, 229, .045) 49% 51%, transparent 52%);
    background-size: 46px 46px, 46px 46px, 138px 138px;
}

.kiosk-premium .tech-field {
    opacity: .72;
    background:
        radial-gradient(circle at 8% 30%, #378ee8 0 2px, transparent 3px),
        radial-gradient(circle at 91% 25%, #2ac7d8 0 2px, transparent 3px),
        linear-gradient(90deg, transparent 7%, rgba(39, 113, 203, .16) 7% 7.08%, transparent 7.08% 93%, rgba(39, 113, 203, .16) 93% 93.08%, transparent 93%);
}

.kiosk-premium .kiosk-header,
.kiosk-premium .state-success .kiosk-header {
    min-height: 76px;
    gap: 12px;
}

.kiosk-premium .brand-card,
.kiosk-premium .clock-card,
.kiosk-premium .state-success .brand-card,
.kiosk-premium .state-success .clock-card,
.kiosk-premium .success-badge,
.kiosk-premium .state-success .success-badge {
    height: 76px;
    border-color: rgba(52, 119, 203, .25);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(235, 245, 255, .94));
    box-shadow:
        0 12px 30px rgba(34, 79, 132, .12),
        inset 0 1px rgba(255, 255, 255, .96);
}

.kiosk-premium .brand-card,
.kiosk-premium .state-success .brand-card {
    position: relative;
    grid-template-columns: 66px minmax(0, 1fr);
    padding: 5px 20px 5px 8px;
    overflow: hidden;
}

.kiosk-premium .brand-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #2e86e8, #23c4d6 64%, #e2aa4a);
}

.kiosk-premium .brand-card::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -70px;
    width: 190px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(53, 147, 234, .13), transparent 68%);
    pointer-events: none;
}

.kiosk-premium .brand-card > * {
    position: relative;
    z-index: 1;
}

.kiosk-premium .brand-crest-wrap,
.kiosk-premium .state-success .brand-crest-wrap {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(54, 129, 214, .13);
    border-radius: 18px;
    background: rgba(255, 255, 255, .7);
    box-shadow: 0 7px 18px rgba(42, 91, 146, .1);
}

.kiosk-premium .brand-crest-wrap img,
.kiosk-premium .state-success .brand-crest-wrap img {
    width: 64px;
    height: 58px;
    transform: none;
    filter: drop-shadow(0 5px 7px rgba(42, 70, 110, .12));
}

.kiosk-premium .brand-title {
    align-items: center;
    gap: 9px;
}

.kiosk-premium .brand-title strong,
.kiosk-premium .state-success .brand-title strong {
    color: #14233e;
    font-size: clamp(1.65rem, 1.8vw, 2rem);
    font-weight: 950;
    letter-spacing: -.06em;
    background: linear-gradient(115deg, #14233e 15%, #235d9f 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kiosk-premium .brand-title em,
.kiosk-premium .state-success .brand-title em {
    font-size: clamp(1.35rem, 1.5vw, 1.7rem);
    font-weight: 900;
    letter-spacing: -.035em;
    background: linear-gradient(110deg, #a66c13, #e1a93f 52%, #b77a1c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 10px rgba(183, 122, 28, .12));
}

.kiosk-premium .brand-tagline,
.kiosk-premium .state-success .brand-tagline {
    width: max-content;
    max-width: 100%;
    margin-top: 5px;
    padding: 0;
    border: 0;
    color: #67768b;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .065em;
}

.kiosk-premium .brand-tagline::before {
    content: none;
    display: none;
}

.kiosk-premium .success-badge,
.kiosk-premium .state-success .success-badge {
    padding: 7px 14px;
    background:
        radial-gradient(circle at 18% 15%, rgba(63, 155, 245, .14), transparent 35%),
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(231, 244, 255, .95));
}

.kiosk-premium .success-badge-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
}

.kiosk-premium .success-badge strong {
    font-size: 1.08rem;
}

.kiosk-premium .clock-card,
.kiosk-premium .state-success .clock-card {
    padding: 6px 18px;
    background:
        radial-gradient(circle at 15% 0%, rgba(57, 150, 237, .12), transparent 35%),
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(239, 247, 255, .95));
}

.kiosk-premium .analog-clock {
    width: 54px;
    height: 54px;
}

.kiosk-premium .clock-copy time,
.kiosk-premium .state-success .clock-copy time {
    font-size: clamp(2rem, 2.25vw, 2.65rem);
}

.kiosk-premium .idle-robot-wrap,
.kiosk-premium .success-intro,
.kiosk-premium .history-heading,
.kiosk-premium .featured-student,
.kiosk-premium .recent-student {
    border-color: rgba(47, 118, 205, .23);
    box-shadow:
        0 16px 36px rgba(39, 81, 130, .11),
        inset 0 1px rgba(255, 255, 255, .9);
}

.kiosk-premium .idle-robot-wrap {
    background:
        radial-gradient(circle at 50% 43%, rgba(66, 189, 237, .14), transparent 31%),
        linear-gradient(155deg, rgba(255, 255, 255, .98), rgba(235, 246, 255, .94));
}

.kiosk-premium .success-intro,
.kiosk-premium .history-heading {
    background:
        linear-gradient(125deg, rgba(255, 255, 255, .98), rgba(233, 244, 255, .94));
}

.kiosk-premium .robot-float,
.kiosk-premium .robot-assistant.is-scanning .robot-float {
    animation: none !important;
    transform: none;
}

@keyframes premiumRobotEnter {
    0% { opacity: 0; transform: translateX(-62px); }
    24% { opacity: 1; transform: translateX(-45px); }
    48% { transform: translateX(-28px); }
    72% { transform: translateX(-12px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes premiumWalkStep {
    0%, 49% { transform: translateX(-2px) rotate(-.35deg); }
    50%, 100% { transform: translateX(2px) rotate(.35deg); }
}

@media (max-width: 900px) {
    .kiosk-premium .kiosk-header,
    .kiosk-premium .state-success .kiosk-header {
        min-height: 144px;
    }

    .kiosk-premium .brand-card,
    .kiosk-premium .clock-card,
    .kiosk-premium .state-success .brand-card,
    .kiosk-premium .state-success .clock-card {
        height: 76px;
    }

    .kiosk-premium .success-badge,
    .kiosk-premium .state-success .success-badge {
        height: 58px;
    }
}

@media (max-width: 560px) {
    .kiosk-premium .kiosk-header,
    .kiosk-premium .state-success .kiosk-header {
        min-height: 210px;
    }

    .kiosk-premium .brand-title strong,
    .kiosk-premium .state-success .brand-title strong {
        font-size: 1.35rem;
    }

    .kiosk-premium .brand-title em,
    .kiosk-premium .state-success .brand-title em {
        font-size: 1.12rem;
    }

    .kiosk-premium .brand-tagline,
    .kiosk-premium .state-success .brand-tagline {
        font-size: .58rem;
        letter-spacing: .025em;
        white-space: normal;
    }
}

/* Premium light dashboard — one persistent screen for robot, latest student, and history. */
html {
    color-scheme: light;
}

body.kiosk-premium {
    --bg: #edf3fb;
    --panel: rgba(255, 255, 255, .94);
    --panel-soft: rgba(239, 246, 255, .9);
    --green: #247be8;
    --green-bright: #18a8d8;
    --green-deep: #155bb5;
    --gold: #bd862e;
    --gold-soft: #d7a84b;
    --white: #17243d;
    --muted: #68758b;
    --line: rgba(54, 121, 201, .2);
    --gold-line: rgba(189, 134, 46, .38);
    --danger: #d95767;
    color: var(--white);
    background: #edf3fb;
}

.kiosk-premium .kiosk-shell {
    grid-template-rows: 94px minmax(0, 1fr);
    gap: 14px;
    height: 100dvh;
    min-height: 100dvh;
    padding: 14px 20px 18px;
    background:
        radial-gradient(circle at 8% 4%, rgba(69, 151, 255, .16), transparent 24%),
        radial-gradient(circle at 90% 92%, rgba(45, 208, 226, .14), transparent 26%),
        linear-gradient(135deg, #f9fbff 0%, #eef5fd 52%, #f8fbff 100%);
}

.kiosk-premium .kiosk-shell::before {
    opacity: .58;
    background:
        linear-gradient(rgba(66, 126, 196, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66, 126, 196, .055) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.kiosk-premium .kiosk-shell::after {
    opacity: 1;
    background: linear-gradient(115deg, rgba(255, 255, 255, .38), transparent 28% 72%, rgba(255, 255, 255, .5));
}

.kiosk-premium .tech-field {
    opacity: .5;
    background:
        radial-gradient(circle at 10% 32%, #55a7ef 0 2px, transparent 3px),
        radial-gradient(circle at 90% 27%, #4ccddc 0 2px, transparent 3px),
        linear-gradient(90deg, transparent 8%, rgba(56, 126, 207, .12) 8% 8.08%, transparent 8.08% 92%, rgba(56, 126, 207, .12) 92% 92.08%, transparent 92%);
}

.kiosk-premium .kiosk-header,
.kiosk-premium .state-success .kiosk-header {
    grid-template-columns: minmax(420px, 1fr) minmax(230px, 290px) minmax(360px, 1fr);
    align-items: stretch;
    gap: 14px;
    width: 100%;
    min-height: 94px;
}

.kiosk-premium .brand-card,
.kiosk-premium .clock-card,
.kiosk-premium .state-success .brand-card,
.kiosk-premium .state-success .clock-card {
    height: 94px;
    border: 1px solid rgba(75, 126, 185, .17);
    border-radius: 22px;
    color: #17243d;
    background: rgba(255, 255, 255, .9);
    box-shadow:
        0 16px 42px rgba(48, 84, 125, .1),
        inset 0 1px rgba(255, 255, 255, .9);
    backdrop-filter: blur(18px);
}

.kiosk-premium .brand-card,
.kiosk-premium .state-success .brand-card {
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 7px 22px 7px 10px;
}

.kiosk-premium .brand-crest-wrap,
.kiosk-premium .state-success .brand-crest-wrap {
    width: 76px;
    height: 76px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.kiosk-premium .brand-crest-wrap img,
.kiosk-premium .state-success .brand-crest-wrap img {
    width: 88px;
    height: 80px;
    filter: drop-shadow(0 7px 10px rgba(42, 70, 110, .14));
}

.kiosk-premium .brand-title strong,
.kiosk-premium .state-success .brand-title strong {
    color: #17243d;
    text-shadow: none;
}

.kiosk-premium .brand-title em,
.kiosk-premium .state-success .brand-title em {
    color: #b57d24;
    text-shadow: none;
}

.kiosk-premium .brand-tagline,
.kiosk-premium .state-success .brand-tagline {
    color: #6d788a;
}

.kiosk-premium .brand-tagline::before {
    background: linear-gradient(90deg, #d29d43, #56aef5);
}

.kiosk-premium .clock-card,
.kiosk-premium .state-success .clock-card {
    justify-content: flex-end;
    padding: 8px 22px;
}

.kiosk-premium .analog-clock {
    width: 66px;
    height: 66px;
    border-color: rgba(46, 123, 212, .18);
    background: #f2f7fe;
    box-shadow: inset 0 0 20px rgba(46, 123, 212, .08);
}

.kiosk-premium .clock-face,
.kiosk-premium .clock-face-inner {
    stroke: #4b97e8;
}

.kiosk-premium .clock-marks line,
.kiosk-premium .clock-hand line {
    stroke: #335171;
}

.kiosk-premium .clock-hand.second line {
    stroke: #d39a3e;
}

.kiosk-premium .clock-copy time,
.kiosk-premium .state-success .clock-copy time {
    color: #17243d;
    text-shadow: none;
}

.kiosk-premium .clock-copy span,
.kiosk-premium .clock-copy small {
    color: #6c788c;
}

.kiosk-premium .success-badge,
.kiosk-premium .state-success .success-badge {
    align-self: stretch;
    justify-self: stretch;
    gap: 11px;
    width: 100%;
    height: 94px;
    padding: 10px 16px;
    border: 1px solid rgba(62, 132, 216, .24);
    border-radius: 22px;
    clip-path: none;
    color: #31506f;
    background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(238, 247, 255, .94));
    box-shadow: 0 16px 42px rgba(48, 84, 125, .1);
    opacity: 1;
    pointer-events: none;
    transform: none;
}

.kiosk-premium .success-badge-icon {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    filter: drop-shadow(0 6px 9px rgba(40, 126, 221, .18));
}

.kiosk-premium .success-badge-shape {
    fill: #eaf4ff;
    stroke: #398ce8;
}

.kiosk-premium .success-badge-check {
    stroke: #2174d7;
}

.kiosk-premium .success-badge small {
    color: #78869a;
    font-size: .68rem;
    letter-spacing: .14em;
}

.kiosk-premium .success-badge strong {
    color: #1f70d4;
    font-size: 1.22rem;
}

.kiosk-premium .success-badge.is-error {
    border-color: rgba(217, 87, 103, .34);
    background: #fff5f6;
    box-shadow: 0 16px 42px rgba(170, 63, 76, .1);
}

.kiosk-premium .success-badge.is-error .success-badge-shape {
    fill: #ffe8eb;
    stroke: #d95767;
}

.kiosk-premium .success-badge.is-error strong {
    color: #c83f52;
}

.kiosk-premium .success-badge.is-warning {
    border-color: rgba(189, 134, 46, .35);
    background: #fffaf0;
    box-shadow: 0 16px 42px rgba(150, 103, 27, .1);
}

.kiosk-premium .success-badge.is-warning .success-badge-shape {
    fill: #fff1ce;
    stroke: #bd862e;
}

.kiosk-premium .success-badge.is-warning strong {
    color: #a56e16;
}

.kiosk-premium .kiosk-main,
.kiosk-premium .state-success .kiosk-main {
    position: relative;
    display: grid;
    grid-template-columns: minmax(290px, .72fr) minmax(470px, 1.3fr) minmax(330px, .98fr);
    gap: 14px;
    min-height: 0;
    overflow: visible;
}

.kiosk-premium .idle-view,
.kiosk-premium .success-view,
.kiosk-premium .state-success .idle-view,
.kiosk-premium .state-success .success-view {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.kiosk-premium .idle-view,
.kiosk-premium .state-success .idle-view {
    grid-column: 1;
    display: block;
    padding: 0;
}

.kiosk-premium .idle-view::before {
    display: none;
}

.kiosk-premium .idle-robot-wrap,
.kiosk-premium .state-success .idle-robot-wrap {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 18px 18px 16px;
    border: 1px solid rgba(69, 127, 193, .18);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 49%, rgba(63, 186, 237, .15), transparent 34%),
        linear-gradient(155deg, rgba(255, 255, 255, .98), rgba(240, 247, 255, .94));
    box-shadow:
        0 24px 56px rgba(49, 83, 125, .12),
        inset 0 1px rgba(255, 255, 255, .95);
    overflow: hidden;
}

.kiosk-premium .idle-robot-wrap::before,
.kiosk-premium .idle-robot-wrap::after {
    display: none;
}

.kiosk-premium .robot-panel-copy {
    position: relative;
    z-index: 5;
    align-self: start;
    max-width: 330px;
    text-align: center;
}

.kiosk-premium .robot-panel-copy > span {
    display: inline-flex;
    padding: 6px 11px;
    border: 1px solid rgba(45, 132, 224, .18);
    border-radius: 999px;
    color: #287bd6;
    background: #eef6ff;
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .15em;
}

.kiosk-premium .robot-panel-copy h1 {
    margin: 9px 0 4px;
    color: #17243d;
    font-size: clamp(1.35rem, 1.8vw, 1.85rem);
    line-height: 1;
    letter-spacing: -.035em;
}

.kiosk-premium .robot-panel-copy p {
    margin: 0;
    color: #718097;
    font-size: .76rem;
    line-height: 1.4;
}

.kiosk-premium .robot-assistant--hero.robot-assistant--hybrid,
.kiosk-premium .state-success .robot-assistant--hero.robot-assistant--hybrid {
    align-self: stretch;
    width: min(100%, 350px);
    max-width: 100%;
    height: min(100%, 520px);
    min-height: 290px;
}

.kiosk-premium .robot-assistant--hero .robot-hybrid-frame {
    transform: none;
}

.kiosk-premium .robot-assistant--hybrid .robot-aura {
    top: 51%;
    width: 84%;
    border-color: rgba(43, 145, 226, .2);
    background: radial-gradient(circle, rgba(61, 187, 237, .16), transparent 66%);
    box-shadow: 0 0 70px rgba(52, 162, 225, .14), inset 0 0 40px rgba(52, 162, 225, .06);
}

.kiosk-premium .robot-assistant--hybrid .robot-aura::before,
.kiosk-premium .robot-assistant--hybrid .robot-aura::after {
    border-color: rgba(48, 145, 220, .18);
}

.kiosk-premium .robot-shell-asset {
    filter:
        saturate(.98)
        contrast(1.02)
        drop-shadow(0 22px 25px rgba(42, 73, 108, .2));
}

.kiosk-premium .robot-pose {
    opacity: 0;
    transition: opacity .14s ease;
}

.kiosk-premium .robot-assistant[data-pose="idle"] .robot-pose--idle,
.kiosk-premium .robot-assistant[data-pose="wave"] .robot-pose--wave,
.kiosk-premium .robot-assistant[data-pose="walk"] .robot-pose--walk,
.kiosk-premium .robot-assistant[data-pose="success"] .robot-pose--success,
.kiosk-premium .robot-assistant[data-pose="error"] .robot-pose--error {
    opacity: 1;
}

.kiosk-premium .robot-assistant.is-walking .robot-pose--walk .robot-shell-asset {
    animation: premiumWalkStep .48s steps(1, end) infinite;
}

.kiosk-premium .robot-assistant.is-entering .robot-hybrid-frame {
    animation: premiumRobotEnter 2.2s cubic-bezier(.18, .78, .24, 1) both;
}

.kiosk-premium .robot-assistant[data-pose="success"] .robot-eye {
    animation: none;
    transform: scaleY(.24);
}

.kiosk-premium .robot-assistant[data-pose="success"] .robot-smile {
    stroke-width: 18;
}

.kiosk-premium .robot-assistant[data-pose="error"] .robot-brow-left {
    transform: rotate(-11deg) translateY(10px);
    transform-origin: center;
}

.kiosk-premium .robot-assistant[data-pose="error"] .robot-brow-right {
    transform: rotate(11deg) translateY(10px);
    transform-origin: center;
}

.kiosk-premium .robot-assistant[data-pose="error"] .robot-smile {
    transform: translateY(30px) scaleY(-1);
    transform-origin: center;
}

.kiosk-premium .idle-system-status {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    max-width: calc(100% - 64px);
    transform: none;
    z-index: 6;
    min-height: 46px;
    margin-top: 4px;
    padding: 7px 8px 7px 14px;
    border: 1px solid rgba(52, 126, 207, .18);
    color: #334963;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 12px 24px rgba(51, 84, 120, .09);
    backdrop-filter: blur(12px);
}

.kiosk-premium .idle-system-dot {
    background: #28b98b;
    box-shadow: 0 0 0 5px rgba(40, 185, 139, .1);
}

.kiosk-premium .idle-system-status > span:last-child {
    color: #155dae;
    background: #e8f3ff;
}

.kiosk-premium .idle-camera-action {
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    border-color: rgba(43, 125, 216, .24);
    color: #2377d5;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 24px rgba(44, 87, 137, .13);
}

.kiosk-premium .success-view,
.kiosk-premium .state-success .success-view {
    grid-column: 2 / -1;
    display: grid;
    grid-template-areas:
        "latest-head history-head"
        "featured recent";
    grid-template-columns: minmax(430px, 1.3fr) minmax(310px, .98fr);
    grid-template-rows: 76px minmax(0, 1fr);
    gap: 14px;
}

.kiosk-premium .success-overview,
.kiosk-premium .state-success .success-overview {
    display: contents;
}

.kiosk-premium .success-intro,
.kiosk-premium .history-heading {
    min-width: 0;
    height: 76px;
    padding: 11px 16px;
    border: 1px solid rgba(71, 128, 193, .17);
    border-radius: 20px;
    color: #17243d;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 32px rgba(47, 82, 121, .09);
    overflow: hidden;
}

.kiosk-premium .success-intro {
    grid-area: latest-head;
}

.kiosk-premium .history-heading {
    grid-area: history-head;
    justify-self: stretch;
    gap: 12px;
    border-left: 1px solid rgba(71, 128, 193, .17);
}

.kiosk-premium .success-intro-icon,
.kiosk-premium .history-heading-icon {
    display: grid;
    flex: 0 0 46px;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    color: #2078d7;
    background: #eaf4ff;
    filter: none;
}

.kiosk-premium .history-heading-icon {
    font-size: 1.5rem;
    font-weight: 800;
}

.kiosk-premium .success-intro-icon rect {
    fill: #e7f6f2;
    stroke: #35aa86;
}

.kiosk-premium .success-intro-icon path {
    stroke: #218c70;
}

.kiosk-premium .success-intro-error {
    display: none;
}

.kiosk-premium .state-error .success-intro {
    border-color: rgba(211, 78, 97, .22);
    background: rgba(255, 250, 251, .96);
}

.kiosk-premium .state-error .success-intro-icon {
    background: #fff0f2;
}

.kiosk-premium .state-error .success-intro-icon rect {
    fill: #fff4f5;
    stroke: #db6475;
}

.kiosk-premium .state-error .success-intro-check {
    display: none;
}

.kiosk-premium .state-error .success-intro-error {
    display: block;
    stroke: #c94459;
    stroke-linecap: round;
}

.kiosk-premium .success-intro small {
    display: block;
    margin-bottom: 2px;
    color: #2b7ed8;
    font-size: .58rem;
    font-weight: 850;
    letter-spacing: .14em;
}

.kiosk-premium .success-intro h1 {
    color: #17243d;
    font-size: 1.12rem;
    line-height: 1.08;
}

.kiosk-premium .success-intro p {
    max-width: 100%;
    margin-top: 3px;
    color: #738096;
    font-size: .68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kiosk-premium .history-heading > div:last-child {
    gap: 3px;
}

.kiosk-premium .history-heading b {
    color: #243a57;
    font-size: .7rem;
    letter-spacing: .09em;
}

.kiosk-premium .history-heading span:not(.history-heading-icon) {
    color: #7a8799;
    font-size: .66rem;
}

.kiosk-premium .featured-student,
.kiosk-premium .state-success .featured-student {
    grid-area: featured;
    display: grid;
    grid-template-columns: minmax(190px, .88fr) minmax(240px, 1.12fr);
    min-height: 0;
    padding: 0;
    border: 1px solid rgba(45, 127, 220, .28);
    border-radius: 26px;
    color: #17243d;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 56px rgba(48, 84, 125, .12);
}

.kiosk-premium .featured-student::after {
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4ba8ee, #49d2dd, transparent);
    box-shadow: none;
}

.kiosk-premium .rank-ribbon,
.kiosk-premium .recent-student .rank-ribbon {
    left: 16px;
    top: 15px;
    width: 46px;
    height: 28px;
    padding: 0;
    clip-path: none;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #277be0, #48a8ed);
    box-shadow: 0 7px 15px rgba(38, 117, 204, .22);
    font-size: .68rem;
}

.kiosk-premium .featured-photo-wrap {
    border-right: 1px solid rgba(66, 126, 196, .12);
    background:
        radial-gradient(circle at 50% 38%, rgba(89, 187, 241, .23), transparent 34%),
        linear-gradient(155deg, #edf6ff, #dcecfb);
}

.kiosk-premium .student-photo-placeholder {
    color: rgba(42, 91, 143, .36);
}

.kiosk-premium .featured-info,
.kiosk-premium .state-success .featured-info {
    padding: clamp(22px, 2.4vw, 38px);
    border-left: 0;
}

.kiosk-premium .latest-tag {
    border-color: rgba(39, 126, 222, .18);
    color: #2677d1;
    background: #ebf5ff;
}

.kiosk-premium .latest-tag i {
    color: #c58b2c;
}

.kiosk-premium .featured-info h2 {
    color: #17243d;
    font-size: clamp(1.5rem, 2vw, 2.25rem);
}

.kiosk-premium .featured-info dl > div,
.kiosk-premium .recent-student dl > div {
    border-top-color: rgba(66, 107, 154, .12);
}

.kiosk-premium .featured-info dt,
.kiosk-premium .recent-student dt {
    color: #7b8798;
}

.kiosk-premium .featured-info dd,
.kiosk-premium .recent-student dd {
    color: #216fc8;
}

.kiosk-premium .featured-info dl > div:first-child dd,
.kiosk-premium .recent-student dl > div:first-child dd {
    color: #a87320;
}

.kiosk-premium #featuredStatus {
    border-color: rgba(36, 169, 127, .27);
    color: #168667;
    background: #eaf8f3;
}

.kiosk-premium #featuredStatus.is-late,
.kiosk-premium #featuredStatus.is-warning {
    border-color: rgba(189, 134, 46, .3);
    color: #a16b13;
    background: #fff6e2;
}

.kiosk-premium #featuredStatus.is-error {
    border-color: rgba(217, 87, 103, .3);
    color: #c44355;
    background: #fff0f2;
}

.kiosk-premium .recent-students {
    grid-area: recent;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-height: 0;
}

.kiosk-premium .recent-student,
.kiosk-premium .state-success .recent-student {
    display: grid;
    grid-template-columns: minmax(105px, .42fr) minmax(165px, .58fr);
    grid-template-rows: auto 1fr;
    align-items: center;
    gap: 7px 14px;
    min-height: 0;
    padding: 14px;
    border: 1px solid rgba(71, 128, 193, .17);
    border-radius: 24px;
    color: #17243d;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 42px rgba(48, 84, 125, .1);
}

.kiosk-premium .recent-photo-wrap,
.kiosk-premium .recent-student.is-empty .recent-photo-wrap {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 17px;
    background:
        radial-gradient(circle at 50% 38%, rgba(82, 176, 235, .2), transparent 37%),
        #edf5fd;
    overflow: hidden;
}

.kiosk-premium .recent-student .student-photo-placeholder,
.kiosk-premium .recent-student.is-empty .student-photo-placeholder {
    min-height: 100%;
    height: 100%;
    color: rgba(48, 94, 143, .34);
    font-size: 2.4rem;
}

.kiosk-premium .recent-student h3,
.kiosk-premium .recent-student.is-empty h3 {
    grid-column: 2;
    margin: 0;
    color: #22364f;
    text-align: left;
    font-size: .98rem;
}

.kiosk-premium .recent-empty-copy,
.kiosk-premium .recent-student.is-empty .recent-empty-copy {
    grid-column: 2;
    display: block;
    margin: 0;
    color: #8692a3;
    text-align: left;
    font-size: .68rem;
}

.kiosk-premium .recent-student dl {
    grid-column: 2;
}

.kiosk-premium .recent-student dl > div {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 6px 0;
}

.kiosk-premium .recent-student dd {
    color: #2473cc;
    font-size: .78rem;
}

.kiosk-premium .recent-student:not(.is-late):not(.is-error) dl > div:last-child dd {
    color: #188569;
}

.kiosk-premium .recent-student.is-empty {
    justify-items: stretch;
    opacity: 1;
}

.kiosk-premium .camera-dialog {
    color: #17243d;
    background: rgba(32, 54, 82, .32);
    backdrop-filter: blur(10px);
}

.kiosk-premium .camera-card {
    border-color: rgba(56, 126, 207, .2);
    color: #17243d;
    background: #fff;
    box-shadow: 0 32px 90px rgba(39, 64, 95, .22);
}

@keyframes premiumRobotEnter {
    0% { opacity: 0; transform: translateX(-62px) translateY(8px); }
    24% { opacity: 1; transform: translateX(-45px) translateY(-3px); }
    48% { transform: translateX(-28px) translateY(5px); }
    72% { transform: translateX(-12px) translateY(-3px); }
    100% { opacity: 1; transform: translateX(0) translateY(0); }
}

@keyframes premiumWalkStep {
    0%, 49% { transform: scaleX(1) translateY(0); }
    50%, 100% { transform: scaleX(-1) translateY(-2px); }
}

@media (max-width: 1180px) {
    body.kiosk-premium {
        overflow-y: auto;
    }

    .kiosk-premium .kiosk-shell {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    .kiosk-premium .kiosk-header,
    .kiosk-premium .state-success .kiosk-header {
        grid-template-columns: minmax(360px, 1fr) minmax(210px, 260px) minmax(300px, .8fr);
    }

    .kiosk-premium .kiosk-main,
    .kiosk-premium .state-success .kiosk-main {
        grid-template-columns: minmax(280px, .72fr) minmax(520px, 1.28fr);
        min-height: 760px;
    }

    .kiosk-premium .success-view,
    .kiosk-premium .state-success .success-view {
        grid-column: 2;
        grid-template-areas:
            "latest-head"
            "featured"
            "history-head"
            "recent";
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 76px minmax(410px, 1fr) 76px minmax(360px, auto);
    }

    .kiosk-premium .recent-students {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: minmax(300px, 1fr);
    }
}

@media (max-width: 900px) {
    .kiosk-premium .kiosk-shell {
        padding: 10px;
    }

    .kiosk-premium .kiosk-header,
    .kiosk-premium .state-success .kiosk-header {
        grid-template-areas:
            "brand clock"
            "badge badge";
        grid-template-columns: minmax(0, 1fr) minmax(235px, .7fr);
        min-height: 174px;
    }

    .kiosk-premium .brand-card,
    .kiosk-premium .clock-card,
    .kiosk-premium .state-success .brand-card,
    .kiosk-premium .state-success .clock-card {
        width: 100%;
        max-width: none;
        height: 94px;
    }

    .kiosk-premium .success-badge,
    .kiosk-premium .state-success .success-badge {
        width: min(340px, 100%);
        height: 66px;
        margin-inline: auto;
    }

    .kiosk-premium .kiosk-main,
    .kiosk-premium .state-success .kiosk-main {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .kiosk-premium .idle-view,
    .kiosk-premium .success-view,
    .kiosk-premium .state-success .idle-view,
    .kiosk-premium .state-success .success-view {
        grid-column: 1;
    }

    .kiosk-premium .idle-robot-wrap {
        min-height: 620px;
    }

    .kiosk-premium .success-view,
    .kiosk-premium .state-success .success-view {
        grid-template-rows: 76px minmax(480px, auto) 76px minmax(520px, auto);
    }
}

@media (max-width: 560px) {
    .kiosk-premium .kiosk-header,
    .kiosk-premium .state-success .kiosk-header {
        grid-template-areas:
            "brand"
            "clock"
            "badge";
        grid-template-columns: minmax(0, 1fr);
        min-height: 234px;
    }

    .kiosk-premium .brand-card,
    .kiosk-premium .clock-card,
    .kiosk-premium .state-success .brand-card,
    .kiosk-premium .state-success .clock-card {
        width: 100%;
        max-width: none;
        height: 76px;
    }

    .kiosk-premium .featured-student,
    .kiosk-premium .state-success .featured-student {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(280px, 48vh) auto;
    }

    .kiosk-premium .recent-students {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: repeat(2, minmax(240px, auto));
    }

    .kiosk-premium .success-view,
    .kiosk-premium .state-success .success-view {
        grid-template-rows: 88px auto 76px auto;
    }

    .kiosk-premium .success-intro {
        height: 88px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kiosk-premium .robot-assistant.is-entering .robot-hybrid-frame,
    .kiosk-premium .robot-assistant.is-walking .robot-pose--walk .robot-shell-asset {
        animation: none;
    }
}

/* Keep the modern refinement last in the cascade. */
.kiosk-premium .kiosk-shell {
    grid-template-rows: 76px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 20px 14px;
    background:
        radial-gradient(circle at 7% 0%, rgba(46, 125, 235, .24), transparent 27%),
        radial-gradient(circle at 92% 18%, rgba(49, 211, 224, .17), transparent 25%),
        radial-gradient(circle at 66% 100%, rgba(239, 177, 72, .11), transparent 28%),
        linear-gradient(125deg, #f8fbff 0%, #eaf3ff 46%, #f5fbff 74%, #edf8fa 100%);
}

.kiosk-premium .kiosk-shell::before {
    opacity: .76;
    background:
        linear-gradient(rgba(49, 112, 190, .065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 112, 190, .065) 1px, transparent 1px),
        linear-gradient(135deg, transparent 48%, rgba(46, 132, 229, .045) 49% 51%, transparent 52%);
    background-size: 46px 46px, 46px 46px, 138px 138px;
}

.kiosk-premium .tech-field {
    opacity: .72;
}

.kiosk-premium .kiosk-header,
.kiosk-premium .state-success .kiosk-header {
    min-height: 76px;
    gap: 12px;
}

.kiosk-premium .brand-card,
.kiosk-premium .clock-card,
.kiosk-premium .state-success .brand-card,
.kiosk-premium .state-success .clock-card,
.kiosk-premium .success-badge,
.kiosk-premium .state-success .success-badge {
    height: 76px;
    border-color: rgba(52, 119, 203, .25);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(235, 245, 255, .94));
    box-shadow: 0 12px 30px rgba(34, 79, 132, .12), inset 0 1px rgba(255, 255, 255, .96);
}

.kiosk-premium .brand-card,
.kiosk-premium .state-success .brand-card {
    grid-template-columns: 66px minmax(0, 1fr);
    padding: 5px 20px 5px 8px;
}

.kiosk-premium .brand-crest-wrap,
.kiosk-premium .state-success .brand-crest-wrap {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(54, 129, 214, .13);
    border-radius: 18px;
    background: rgba(255, 255, 255, .7);
    box-shadow: 0 7px 18px rgba(42, 91, 146, .1);
}

.kiosk-premium .brand-crest-wrap img,
.kiosk-premium .state-success .brand-crest-wrap img {
    width: 64px;
    height: 58px;
    transform: none;
}

.kiosk-premium .success-badge,
.kiosk-premium .state-success .success-badge {
    padding: 7px 14px;
    background:
        radial-gradient(circle at 18% 15%, rgba(63, 155, 245, .14), transparent 35%),
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(231, 244, 255, .95));
}

.kiosk-premium .success-badge-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
}

.kiosk-premium .success-badge strong {
    font-size: 1.08rem;
}

.kiosk-premium .clock-card,
.kiosk-premium .state-success .clock-card {
    padding: 6px 18px;
    background:
        radial-gradient(circle at 15% 0%, rgba(57, 150, 237, .12), transparent 35%),
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(239, 247, 255, .95));
}

.kiosk-premium .analog-clock {
    width: 54px;
    height: 54px;
}

.kiosk-premium .idle-robot-wrap,
.kiosk-premium .success-intro,
.kiosk-premium .history-heading,
.kiosk-premium .featured-student,
.kiosk-premium .recent-student {
    border-color: rgba(47, 118, 205, .23);
    box-shadow: 0 16px 36px rgba(39, 81, 130, .11), inset 0 1px rgba(255, 255, 255, .9);
}

.kiosk-premium .idle-robot-wrap {
    background:
        radial-gradient(circle at 50% 43%, rgba(66, 189, 237, .14), transparent 31%),
        linear-gradient(155deg, rgba(255, 255, 255, .98), rgba(235, 246, 255, .94));
}

.kiosk-premium .success-intro,
.kiosk-premium .history-heading {
    background: linear-gradient(125deg, rgba(255, 255, 255, .98), rgba(233, 244, 255, .94));
}

@keyframes premiumRobotEnter {
    0% { opacity: 0; transform: translateX(-62px); }
    24% { opacity: 1; transform: translateX(-45px); }
    48% { transform: translateX(-28px); }
    72% { transform: translateX(-12px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes premiumWalkStep {
    0%, 49% { transform: translateX(-2px) rotate(-.35deg); }
    50%, 100% { transform: translateX(2px) rotate(.35deg); }
}

@media (max-width: 900px) {
    .kiosk-premium .kiosk-shell {
        grid-template-rows: auto minmax(0, 1fr);
    }

    .kiosk-premium .kiosk-header,
    .kiosk-premium .state-success .kiosk-header {
        min-height: 144px;
    }

    .kiosk-premium .brand-card,
    .kiosk-premium .clock-card,
    .kiosk-premium .state-success .brand-card,
    .kiosk-premium .state-success .clock-card {
        height: 76px;
    }

    .kiosk-premium .success-badge,
    .kiosk-premium .state-success .success-badge {
        height: 58px;
    }
}

@media (max-width: 560px) {
    .kiosk-premium .kiosk-header,
    .kiosk-premium .state-success .kiosk-header {
        min-height: 210px;
    }
}

/* Pearl, sapphire, aqua, and champagne palette. */
body.kiosk-premium {
    background: #dce9f7;
}

.kiosk-premium .kiosk-shell {
    background:
        radial-gradient(circle at 4% 4%, rgba(44, 105, 196, .32), transparent 28%),
        radial-gradient(circle at 94% 12%, rgba(30, 184, 196, .24), transparent 27%),
        radial-gradient(circle at 62% 105%, rgba(217, 165, 72, .18), transparent 31%),
        linear-gradient(128deg, #e9f1fb 0%, #dceafb 43%, #e8f6f5 73%, #f3ead9 118%);
}

.kiosk-premium .brand-card,
.kiosk-premium .state-success .brand-card {
    border-color: rgba(72, 151, 232, .48);
    background:
        radial-gradient(circle at 88% 0%, rgba(59, 151, 226, .46), transparent 40%),
        linear-gradient(118deg, #10294c 0%, #164c7b 58%, #176b8a 100%);
    box-shadow: 0 14px 34px rgba(17, 53, 94, .25), inset 0 1px rgba(255, 255, 255, .18);
}

.kiosk-premium .brand-card::before {
    background: linear-gradient(180deg, #56d8e5, #3a91ed 55%, #e6b95f);
}

.kiosk-premium .brand-card::after {
    background: radial-gradient(circle, rgba(77, 216, 225, .24), transparent 68%);
}

.kiosk-premium .brand-crest-wrap,
.kiosk-premium .state-success .brand-crest-wrap {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 22px rgba(3, 23, 49, .24);
}

.kiosk-premium .brand-title strong,
.kiosk-premium .state-success .brand-title strong {
    background: linear-gradient(110deg, #ffffff, #d9efff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kiosk-premium .brand-title em,
.kiosk-premium .state-success .brand-title em {
    background: linear-gradient(110deg, #f5d486, #e8ae3e 54%, #fff0b5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 11px rgba(230, 174, 62, .2));
}

.kiosk-premium .brand-tagline,
.kiosk-premium .state-success .brand-tagline {
    color: #c9def1;
}

.kiosk-premium .success-badge,
.kiosk-premium .state-success .success-badge {
    border-color: rgba(192, 145, 55, .38);
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 255, 255, .72), transparent 36%),
        linear-gradient(130deg, #fff6df 0%, #e9f4ff 58%, #dcefff 100%);
    box-shadow: 0 14px 30px rgba(74, 91, 113, .16), inset 0 1px #fff;
}

.kiosk-premium .success-badge-shape {
    fill: #dcebff;
    stroke: #276fc4;
}

.kiosk-premium .clock-card,
.kiosk-premium .state-success .clock-card {
    border-color: rgba(42, 151, 174, .34);
    background:
        radial-gradient(circle at 16% 0%, rgba(63, 201, 211, .24), transparent 37%),
        linear-gradient(130deg, #e8f9fa 0%, #edf5ff 56%, #fff7e8 125%);
    box-shadow: 0 14px 30px rgba(38, 99, 128, .16), inset 0 1px #fff;
}

.kiosk-premium .analog-clock {
    border-color: rgba(27, 103, 166, .3);
    background: linear-gradient(145deg, #102d50, #0b4660);
    box-shadow: 0 8px 18px rgba(13, 55, 91, .22), inset 0 0 18px rgba(45, 196, 209, .18);
}

.kiosk-premium .clock-face,
.kiosk-premium .clock-face-inner {
    stroke: #4fd3de;
}

.kiosk-premium .clock-marks line,
.kiosk-premium .clock-hand line {
    stroke: #d9edf6;
}

.kiosk-premium .idle-robot-wrap,
.kiosk-premium .state-success .idle-robot-wrap {
    border-color: rgba(47, 111, 190, .34);
    background:
        radial-gradient(circle at 50% 43%, rgba(60, 190, 223, .29), transparent 31%),
        radial-gradient(circle at 6% 98%, rgba(216, 168, 77, .16), transparent 34%),
        linear-gradient(152deg, #e8f3ff 0%, #dbeaff 48%, #e6f6f6 100%);
    box-shadow: 0 20px 44px rgba(31, 73, 120, .18), inset 0 1px rgba(255, 255, 255, .9);
}

.kiosk-premium .robot-panel-copy > span {
    border-color: rgba(25, 91, 164, .16);
    color: #fff;
    background: linear-gradient(105deg, #245da8, #268fc3);
    box-shadow: 0 7px 16px rgba(30, 94, 157, .18);
}

.kiosk-premium .idle-system-status {
    border-color: rgba(35, 90, 147, .3);
    color: #eff7ff;
    background: linear-gradient(110deg, rgba(17, 46, 81, .95), rgba(22, 83, 113, .94));
    box-shadow: 0 12px 28px rgba(17, 51, 87, .23);
}

.kiosk-premium .idle-system-status strong {
    color: #fff;
}

.kiosk-premium .idle-system-status > span:last-child {
    color: #5d4314;
    background: linear-gradient(110deg, #f8dfa0, #efbd5d);
}

.kiosk-premium .success-intro {
    border-color: rgba(39, 97, 168, .45);
    color: #fff;
    background:
        radial-gradient(circle at 90% 0%, rgba(63, 184, 218, .35), transparent 38%),
        linear-gradient(110deg, #173d70, #246eac 66%, #278fa9);
    box-shadow: 0 14px 32px rgba(20, 66, 111, .22), inset 0 1px rgba(255, 255, 255, .15);
}

.kiosk-premium .success-intro small,
.kiosk-premium .success-intro h1,
.kiosk-premium .success-intro p {
    color: #fff;
}

.kiosk-premium .success-intro small {
    color: #9ee7f0;
}

.kiosk-premium .success-intro-icon {
    background: linear-gradient(145deg, #fff3d0, #f4d27e);
    box-shadow: 0 8px 18px rgba(5, 32, 67, .18);
}

.kiosk-premium .success-intro-icon rect {
    fill: rgba(255, 255, 255, .62);
    stroke: #217e81;
}

.kiosk-premium .history-heading {
    border-color: rgba(30, 135, 145, .4);
    color: #fff;
    background:
        radial-gradient(circle at 8% 10%, rgba(76, 211, 211, .26), transparent 38%),
        linear-gradient(110deg, #17606c, #238f96 68%, #54a99d);
    box-shadow: 0 14px 32px rgba(21, 93, 101, .2), inset 0 1px rgba(255, 255, 255, .16);
}

.kiosk-premium .history-heading b,
.kiosk-premium .history-heading span:not(.history-heading-icon) {
    color: #fff;
}

.kiosk-premium .history-heading span:not(.history-heading-icon) {
    color: #d8f5f2;
}

.kiosk-premium .history-heading-icon {
    color: #174f78;
    background: linear-gradient(145deg, #e5f9f7, #bce8e4);
}

.kiosk-premium .featured-student,
.kiosk-premium .state-success .featured-student {
    border-color: rgba(58, 114, 181, .34);
    background: #f7f4ed;
    box-shadow: 0 20px 46px rgba(35, 72, 115, .17), inset 0 1px #fff;
}

.kiosk-premium .featured-photo-wrap {
    background:
        radial-gradient(circle at 50% 30%, rgba(74, 171, 225, .26), transparent 48%),
        linear-gradient(150deg, #cfe3fa, #e5f3fc 58%, #d9efee);
}

.kiosk-premium .featured-info,
.kiosk-premium .state-success .featured-info {
    background:
        radial-gradient(circle at 100% 0%, rgba(229, 181, 92, .14), transparent 42%),
        linear-gradient(145deg, #fffdf8, #f8f0df);
}

.kiosk-premium .recent-student,
.kiosk-premium .state-success .recent-student {
    border-color: rgba(47, 127, 157, .3);
    background: linear-gradient(140deg, #f5fbff, #e8f5f3 62%, #f9f1e2);
    box-shadow: 0 17px 38px rgba(30, 83, 105, .15), inset 0 1px #fff;
}

.kiosk-premium .recent-student:nth-child(2) {
    background: linear-gradient(140deg, #eef5ff, #f5f0e4 68%, #f8e8d1);
}

.kiosk-premium .recent-photo-wrap,
.kiosk-premium .recent-student.is-empty .recent-photo-wrap {
    background:
        radial-gradient(circle at 50% 32%, rgba(71, 160, 215, .22), transparent 48%),
        linear-gradient(145deg, #d3e6fa, #dcefeb);
}

.kiosk-premium .state-error .success-intro {
    border-color: rgba(181, 52, 72, .5);
    background: linear-gradient(110deg, #8f2940, #c64b5f 70%, #dd7580);
}

.kiosk-premium .robot-assistant.is-entering .robot-hybrid-frame {
    animation: none !important;
}

/* Balanced photo composition: equal columns and centered portrait crops. */
.kiosk-premium .featured-student,
.kiosk-premium .state-success .featured-student {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
}

.kiosk-premium .featured-photo-wrap {
    min-width: 0;
    border: 1px solid rgba(45, 111, 184, .2);
    border-radius: 20px;
    overflow: hidden;
}

.kiosk-premium .featured-info,
.kiosk-premium .state-success .featured-info {
    align-self: stretch;
    min-width: 0;
    border: 1px solid rgba(189, 143, 56, .14);
    border-radius: 20px;
}

.kiosk-premium .featured-student .student-photo-placeholder img,
.kiosk-premium .recent-student .student-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transform: none;
}

.kiosk-premium .featured-student .student-photo-placeholder img:not([hidden]),
.kiosk-premium .recent-student .student-photo-placeholder img:not([hidden]) {
    display: block;
}

.kiosk-premium .student-photo-placeholder img[hidden] {
    display: none;
}

.kiosk-premium .recent-student,
.kiosk-premium .state-success .recent-student {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kiosk-premium .recent-photo-wrap,
.kiosk-premium .recent-student.is-empty .recent-photo-wrap {
    border: 1px solid rgba(45, 121, 174, .14);
}

@media (max-width: 560px) {
    .kiosk-premium .featured-student,
    .kiosk-premium .state-success .featured-student {
        grid-template-columns: minmax(0, 1fr);
    }

    .kiosk-premium .recent-student,
    .kiosk-premium .state-success .recent-student {
        grid-template-columns: minmax(115px, .42fr) minmax(0, .58fr);
    }
}

/* Minimal premium dashboard: one restrained palette and calmer hierarchy. */
body.kiosk-premium {
    background: #e9f0f8;
}

.kiosk-premium .kiosk-shell {
    background:
        radial-gradient(circle at 92% 8%, rgba(67, 155, 224, .09), transparent 28%),
        linear-gradient(135deg, #eef4fb 0%, #f7f9fc 54%, #edf4fa 100%);
}

.kiosk-premium .kiosk-shell::before {
    opacity: .18;
}

.kiosk-premium .tech-field {
    display: none;
}

.kiosk-premium .brand-card,
.kiosk-premium .state-success .brand-card {
    border-color: #234e7c;
    background: linear-gradient(115deg, #102a4c, #174a78);
    box-shadow: 0 10px 24px rgba(20, 55, 91, .16);
}

.kiosk-premium .brand-card::before {
    background: #3aa7e8;
}

.kiosk-premium .brand-card::after {
    display: none;
}

.kiosk-premium .brand-title strong,
.kiosk-premium .state-success .brand-title strong {
    background: none;
    color: #fff;
    -webkit-text-fill-color: currentColor;
}

.kiosk-premium .brand-title em,
.kiosk-premium .state-success .brand-title em {
    background: none;
    color: #f3c465;
    -webkit-text-fill-color: currentColor;
    filter: none;
}

.kiosk-premium .brand-tagline,
.kiosk-premium .state-success .brand-tagline {
    color: #c9d8e9;
}

.kiosk-premium .success-badge,
.kiosk-premium .state-success .success-badge,
.kiosk-premium .clock-card,
.kiosk-premium .state-success .clock-card {
    border-color: rgba(41, 105, 171, .2);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 8px 22px rgba(24, 61, 99, .09);
}

.kiosk-premium .idle-robot-wrap,
.kiosk-premium .state-success .idle-robot-wrap {
    border-color: rgba(42, 105, 170, .24);
    background:
        radial-gradient(circle at 50% 48%, rgba(69, 161, 221, .14), transparent 38%),
        linear-gradient(155deg, #f9fbfe, #e8f1fa);
    box-shadow: 0 14px 30px rgba(27, 67, 108, .1);
}

.kiosk-premium .robot-panel-copy > span {
    border-color: rgba(41, 103, 166, .13);
    color: #2369ad;
    background: #eaf3fc;
    box-shadow: none;
}

.kiosk-premium .robot-aura {
    opacity: .35;
}

.kiosk-premium .idle-system-status {
    border-color: rgba(41, 98, 155, .18);
    background: #173f67;
    box-shadow: 0 8px 18px rgba(20, 56, 91, .15);
}

.kiosk-premium .idle-system-status > span:last-child {
    color: #174c7b;
    background: #e8f2fc;
}

.kiosk-premium .success-view,
.kiosk-premium .state-success .success-view {
    grid-template-columns: minmax(550px, 1.62fr) minmax(285px, .78fr);
}

.kiosk-premium .success-intro {
    border-color: #245a8d;
    color: #fff;
    background: linear-gradient(110deg, #173c67, #245f91);
    box-shadow: 0 9px 22px rgba(23, 61, 103, .14);
}

.kiosk-premium .success-intro small {
    display: none;
}

.kiosk-premium .success-intro h1,
.kiosk-premium .success-intro p {
    color: #fff;
}

.kiosk-premium .success-intro p {
    color: #d5e3ef;
}

.kiosk-premium .success-intro-icon {
    background: rgba(255, 255, 255, .12);
    box-shadow: none;
}

.kiosk-premium .success-intro-icon rect {
    fill: transparent;
    stroke: #80d3c4;
}

.kiosk-premium .history-heading {
    border-color: rgba(41, 105, 171, .2);
    color: #18304e;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 8px 22px rgba(24, 61, 99, .09);
}

.kiosk-premium .history-heading b {
    color: #18304e;
}

.kiosk-premium .history-heading span:not(.history-heading-icon) {
    color: #74849a;
}

.kiosk-premium .history-heading-icon {
    color: #2b79c7;
    background: #e9f3fd;
}

.kiosk-premium .rank-ribbon,
.kiosk-premium .latest-tag {
    display: none;
}

.kiosk-premium .featured-student,
.kiosk-premium .state-success .featured-student {
    align-self: start;
    width: 100%;
    height: min(100%, 600px);
    grid-template-columns: minmax(0, 1.38fr) minmax(255px, 1fr);
    gap: 10px;
    padding: 10px;
    border-color: rgba(41, 105, 171, .2);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 14px 34px rgba(25, 63, 101, .12);
}

.kiosk-premium .featured-student::after {
    display: none;
}

.kiosk-premium .featured-photo-wrap {
    border-color: rgba(41, 105, 171, .16);
    border-radius: 18px;
    background: #eaf2fa;
}

.kiosk-premium .featured-photo-ring {
    display: none;
}

.kiosk-premium .featured-info,
.kiosk-premium .state-success .featured-info {
    border: 0;
    border-radius: 18px;
    background: #fff;
}

.kiosk-premium .featured-student .student-photo-placeholder img {
    object-position: 50% 45%;
}

.kiosk-premium .recent-students {
    gap: 12px;
}

.kiosk-premium .recent-student,
.kiosk-premium .state-success .recent-student,
.kiosk-premium .recent-student:nth-child(2) {
    border-color: rgba(41, 105, 171, .18);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 10px 24px rgba(25, 63, 101, .09);
}

.kiosk-premium .recent-photo-wrap,
.kiosk-premium .recent-student.is-empty .recent-photo-wrap {
    border-color: rgba(41, 105, 171, .13);
    background: #edf4fb;
}

.kiosk-premium .recent-students.has-no-history {
    grid-template-rows: auto;
    align-content: start;
}

.kiosk-premium .recent-students.has-no-history .recent-student.is-empty {
    min-height: 118px;
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 4px 14px;
    align-items: center;
    padding: 14px;
}

.kiosk-premium .recent-students.has-no-history .recent-student.is-empty:nth-child(2),
.kiosk-premium .recent-students.has-one-history .recent-student.is-empty {
    display: none;
}

.kiosk-premium .recent-students.has-no-history .recent-photo-wrap {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 82px;
    height: 82px;
    min-height: 0;
    border-radius: 16px;
}

.kiosk-premium .recent-students.has-no-history .recent-student.is-empty h3,
.kiosk-premium .recent-students.has-no-history .recent-empty-copy {
    grid-column: 2;
    margin: 0;
    text-align: left;
}

.kiosk-premium .recent-students.has-no-history .recent-student.is-empty h3 {
    align-self: end;
}

.kiosk-premium .recent-students.has-no-history .recent-empty-copy {
    align-self: start;
}

.kiosk-premium .recent-students.has-one-history {
    grid-template-rows: minmax(0, 1fr);
}

@media (max-width: 1280px) {
    .kiosk-premium .success-view,
    .kiosk-premium .state-success .success-view {
        grid-template-columns: minmax(470px, 1.5fr) minmax(270px, .8fr);
    }

    .kiosk-premium .featured-student,
    .kiosk-premium .state-success .featured-student {
        grid-template-columns: minmax(0, 1.25fr) minmax(230px, 1fr);
    }
}

@media (max-width: 900px) {
    .kiosk-premium .success-view,
    .kiosk-premium .state-success .success-view {
        grid-template-columns: minmax(0, 1fr);
    }

    .kiosk-premium .featured-student,
    .kiosk-premium .state-success .featured-student {
        height: auto;
    }
}

/* Cleaner identity header and uncropped history portraits. */
.kiosk-premium .kiosk-header,
.kiosk-premium .state-success .kiosk-header {
    grid-template-areas: "brand clock";
    grid-template-columns: minmax(560px, 760px) minmax(350px, 430px);
    justify-content: space-between;
}

.kiosk-premium .brand-card,
.kiosk-premium .state-success .brand-card {
    grid-area: brand;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 760px;
    padding: 4px 26px 4px 14px;
}

.kiosk-premium .clock-card,
.kiosk-premium .state-success .clock-card {
    grid-area: clock;
}

.kiosk-premium .brand-crest-wrap,
.kiosk-premium .state-success .brand-crest-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}

.kiosk-premium .brand-crest-wrap img,
.kiosk-premium .state-success .brand-crest-wrap img {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    width: 108px;
    max-width: none;
    height: 90px;
    object-fit: fill;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 5px 8px rgba(3, 18, 38, .28));
}

.kiosk-premium .brand-card::after {
    display: block;
    right: -30px;
    bottom: -94px;
    width: 270px;
    height: 190px;
    background: radial-gradient(circle, rgba(86, 174, 235, .18), transparent 68%);
}

.kiosk-premium .brand-title {
    gap: 11px;
    align-items: baseline;
    line-height: .92;
}

.kiosk-premium .brand-copy {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
}

.kiosk-premium .brand-title strong,
.kiosk-premium .state-success .brand-title strong {
    background: linear-gradient(105deg, #ffffff 0%, #e3f3ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #fff;
    -webkit-text-fill-color: transparent;
    font-size: clamp(1.85rem, 2vw, 2.2rem);
    font-weight: 950;
    letter-spacing: -.055em;
    text-shadow: 0 5px 16px rgba(2, 19, 40, .3);
}

.kiosk-premium .brand-title em,
.kiosk-premium .state-success .brand-title em {
    background: linear-gradient(115deg, #ffe6a2 0%, #f5bf51 48%, #e49a25 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #f5bf51;
    -webkit-text-fill-color: transparent;
    font-size: clamp(1.62rem, 1.75vw, 1.94rem);
    font-weight: 950;
    letter-spacing: -.035em;
    filter: drop-shadow(0 5px 11px rgba(2, 19, 40, .25));
}

.kiosk-premium .brand-tagline,
.kiosk-premium .state-success .brand-tagline {
    display: block;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    color: #d6e3ef;
    font-size: .7rem;
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: .075em;
    white-space: nowrap;
}

.kiosk-premium .brand-tagline::before {
    content: none !important;
    display: none !important;
}

.kiosk-premium .recent-student:not(.is-empty) .recent-empty-copy {
    display: none;
}

.kiosk-premium .recent-student,
.kiosk-premium .state-success .recent-student {
    grid-template-columns: minmax(150px, 42%) minmax(190px, 58%) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    align-items: center;
    gap: 10px 16px;
    height: 280px;
    min-height: 280px;
    max-height: 280px;
    padding: 12px;
}

.kiosk-premium .recent-student:not(.is-empty) .recent-photo-wrap {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    min-height: 0;
    margin: 0;
}

.kiosk-premium .recent-student:not(.is-empty) .student-photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.kiosk-premium .recent-student .student-photo-placeholder img:not([hidden]) {
    object-fit: contain;
    object-position: center top;
    background: #edf4fb;
}

.kiosk-premium .recent-student:not(.is-empty) h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    width: 100%;
    margin: 0;
    font-size: .96rem;
    line-height: 1.15;
    overflow-wrap: normal;
    word-break: normal;
}

.kiosk-premium .recent-student:not(.is-empty) dl {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    width: 100%;
    min-width: 0;
    padding: 4px 0 0;
}

.kiosk-premium .recent-student:not(.is-empty) dl > div {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
}

.kiosk-premium .recent-student:not(.is-empty) dt {
    flex: 0 0 auto;
}

.kiosk-premium .recent-student:not(.is-empty) dd {
    flex: 0 0 auto;
    max-width: none;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
}

.kiosk-premium .recent-students.has-one-history {
    grid-template-rows: 280px;
    align-content: start;
}

.kiosk-premium .recent-students.has-one-history .recent-student:not(.is-empty) {
    min-height: 280px;
    max-height: 280px;
}

.kiosk-premium .recent-students:not(.has-no-history):not(.has-one-history) {
    grid-template-rows: repeat(2, 280px);
    align-content: start;
}

@media (max-width: 1100px) {
    .kiosk-premium .kiosk-header,
    .kiosk-premium .state-success .kiosk-header {
        grid-template-columns: minmax(500px, 680px) minmax(310px, 380px);
    }
}

@media (max-width: 900px) {
    .kiosk-premium .kiosk-shell {
        grid-template-rows: 76px minmax(0, 1fr);
    }

    .kiosk-premium .kiosk-header,
    .kiosk-premium .state-success .kiosk-header {
        grid-template-areas: "brand clock";
        grid-template-columns: minmax(0, 1fr) minmax(265px, .72fr);
        min-height: 76px;
    }

    .kiosk-premium .brand-card,
    .kiosk-premium .clock-card,
    .kiosk-premium .state-success .brand-card,
    .kiosk-premium .state-success .clock-card {
        height: 76px;
    }
}

@media (max-width: 560px) {
    .kiosk-premium .kiosk-shell {
        grid-template-rows: auto minmax(0, 1fr);
    }

    .kiosk-premium .kiosk-header,
    .kiosk-premium .state-success .kiosk-header {
        grid-template-areas:
            "brand"
            "clock";
        grid-template-columns: minmax(0, 1fr);
        min-height: 162px;
    }

    .kiosk-premium .brand-title strong,
    .kiosk-premium .state-success .brand-title strong {
        font-size: 1.45rem;
    }

    .kiosk-premium .brand-title em,
    .kiosk-premium .state-success .brand-title em {
        font-size: 1.22rem;
    }
}

/* Compact three-item attendance history. */
.kiosk-premium .recent-students {
    grid-template-rows: repeat(3, 210px) !important;
    gap: 10px;
    align-content: start;
}

.kiosk-premium .recent-student,
.kiosk-premium .state-success .recent-student {
    grid-template-columns: 140px minmax(185px, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 6px 14px;
    width: 100%;
    height: 210px;
    min-height: 210px;
    max-height: 210px;
    padding: 10px;
    border-radius: 20px;
    overflow: hidden;
}

.kiosk-premium .recent-students.has-one-history .recent-student:not(.is-empty),
.kiosk-premium .recent-students.has-two-history .recent-student:not(.is-empty),
.kiosk-premium .recent-students.has-three-history .recent-student:not(.is-empty) {
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
}

.kiosk-premium .recent-student:not(.is-empty) .recent-photo-wrap {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    width: 140px;
    height: 186px;
    aspect-ratio: auto;
    border-radius: 15px;
}

.kiosk-premium .recent-student:not(.is-empty) h3 {
    align-self: end;
    width: 100%;
    margin: 0;
    font-size: .9rem;
    line-height: 1.12;
    text-align: left;
}

.kiosk-premium .recent-student:not(.is-empty) dl {
    align-self: start;
    width: 100%;
    padding-top: 2px;
}

.kiosk-premium .recent-student:not(.is-empty) dl > div {
    padding: 4px 0;
}

.kiosk-premium .recent-student:not(.is-empty) dt {
    font-size: .64rem;
}

.kiosk-premium .recent-student:not(.is-empty) dd {
    font-size: .7rem;
}

.kiosk-premium .recent-students.has-no-history {
    grid-template-rows: 118px !important;
}

.kiosk-premium .recent-students.has-no-history .recent-student.is-empty {
    height: 118px;
    min-height: 118px;
    max-height: 118px;
}

.kiosk-premium .recent-students.has-no-history .recent-student.is-empty:nth-child(n + 2),
.kiosk-premium .recent-students.has-one-history .recent-student.is-empty,
.kiosk-premium .recent-students.has-two-history .recent-student.is-empty {
    display: none;
}

@media (max-width: 560px) {
    .kiosk-premium .recent-students {
        grid-template-rows: repeat(3, 190px) !important;
    }

    .kiosk-premium .recent-student,
    .kiosk-premium .state-success .recent-student {
        grid-template-columns: 108px minmax(175px, 1fr) !important;
        height: 190px;
        min-height: 190px;
        max-height: 190px;
    }

    .kiosk-premium .recent-student:not(.is-empty) .recent-photo-wrap {
        width: 108px;
        height: 166px;
    }

    .kiosk-premium .recent-students.has-one-history .recent-student:not(.is-empty),
    .kiosk-premium .recent-students.has-two-history .recent-student:not(.is-empty),
    .kiosk-premium .recent-students.has-three-history .recent-student:not(.is-empty) {
        height: 190px !important;
        min-height: 190px !important;
        max-height: 190px !important;
    }
}

/* Elegant mascot identity refresh: midnight, aqua, and warm gold. */
body.kiosk-premium {
    --kiosk-midnight: #071a2f;
    --kiosk-navy: #0b2d4d;
    --kiosk-ocean: #0d5770;
    --kiosk-aqua: #35d5da;
    --kiosk-aqua-soft: #dff8f7;
    --kiosk-gold: #e9bd62;
    --kiosk-gold-soft: #fff1c9;
    --kiosk-ink: #13263f;
    --kiosk-muted: #718197;
    --kiosk-line: rgba(26, 82, 119, .15);
    background: #e9f0f4;
}

.kiosk-premium .kiosk-shell {
    background:
        radial-gradient(circle at 4% 4%, rgba(53, 213, 218, .12), transparent 25%),
        radial-gradient(circle at 96% 5%, rgba(233, 189, 98, .13), transparent 24%),
        radial-gradient(circle at 72% 100%, rgba(53, 213, 218, .08), transparent 28%),
        linear-gradient(132deg, #f8fafb 0%, #edf3f6 48%, #f6f8f8 100%);
}

.kiosk-premium .kiosk-shell::before {
    opacity: .42;
    background:
        linear-gradient(rgba(20, 73, 108, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 73, 108, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, #000, transparent 68%);
}

.kiosk-premium .brand-card,
.kiosk-premium .state-success .brand-card {
    isolation: isolate;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    padding: 4px 24px 4px 10px;
    border: 1px solid rgba(113, 216, 218, .3);
    border-radius: 21px;
    background:
        radial-gradient(circle at 91% 12%, rgba(53, 213, 218, .24), transparent 22%),
        radial-gradient(circle at 67% 130%, rgba(233, 189, 98, .14), transparent 33%),
        linear-gradient(118deg, #071a2f 0%, #0a2b4b 55%, #0b4b61 100%);
    box-shadow:
        0 15px 32px rgba(7, 31, 54, .22),
        inset 0 1px rgba(255, 255, 255, .13);
    overflow: hidden;
}

.kiosk-premium .brand-card::before {
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    border-radius: 21px 21px 0 0;
    background: linear-gradient(90deg, var(--kiosk-gold), #f7dc9e 22%, var(--kiosk-aqua) 65%, transparent 96%);
    box-shadow: 0 0 16px rgba(53, 213, 218, .34);
}

.kiosk-premium .brand-card::after {
    display: block;
    right: -12px;
    bottom: -86px;
    width: 230px;
    height: 170px;
    background: radial-gradient(circle, rgba(53, 213, 218, .19), transparent 68%);
    pointer-events: none;
}

.kiosk-premium .brand-crest-wrap,
.kiosk-premium .state-success .brand-crest-wrap {
    z-index: 2;
    width: 70px;
    height: 68px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.kiosk-premium .brand-crest-wrap::after {
    content: none;
    display: none;
}

.kiosk-premium .brand-crest-wrap img,
.kiosk-premium .state-success .brand-crest-wrap img {
    left: 50%;
    top: 50%;
    width: 92px;
    max-width: none;
    height: 76px;
    object-fit: fill;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 5px 8px rgba(1, 13, 26, .32));
}

.kiosk-premium .brand-copy {
    position: relative;
    z-index: 3;
    justify-content: center;
    gap: 2px;
    min-width: 0;
}

.kiosk-premium .brand-eyebrow {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8ce6e7;
    font-size: .49rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.kiosk-premium .brand-eyebrow i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--kiosk-gold);
    box-shadow: 0 0 0 3px rgba(233, 189, 98, .12), 0 0 9px rgba(233, 189, 98, .48);
}

.kiosk-premium .brand-title {
    gap: 9px;
    align-items: center;
    min-width: 0;
    line-height: .88;
    overflow: visible;
}

.kiosk-premium .brand-title strong,
.kiosk-premium .state-success .brand-title strong {
    position: relative;
    background: linear-gradient(180deg, #ffffff 8%, #d9f4f5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #fff;
    -webkit-text-fill-color: transparent;
    font-size: clamp(1.7rem, 1.9vw, 2.08rem);
    font-style: normal;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.035em;
    padding-right: .05em;
    text-shadow: none;
    filter: drop-shadow(0 5px 13px rgba(0, 0, 0, .26));
    transform: none;
}

.kiosk-premium .brand-title em,
.kiosk-premium .state-success .brand-title em {
    position: relative;
    display: inline-grid;
    min-height: 26px;
    place-items: center;
    padding: 3px 10px 4px;
    border: 1px solid rgba(255, 228, 164, .5);
    border-radius: 8px 13px 8px 13px;
    background: linear-gradient(135deg, #f7daa0 0%, #e9b64f 54%, #c78d28 100%);
    color: #3b2a0c;
    -webkit-text-fill-color: currentColor;
    box-shadow: 0 6px 14px rgba(1, 13, 26, .24), inset 0 1px rgba(255, 255, 255, .64);
    font-size: clamp(.82rem, 1vw, 1rem);
    font-style: normal;
    font-weight: 950;
    line-height: 1;
    letter-spacing: .07em;
    filter: none;
    transform: translateY(1px);
}

.kiosk-premium .brand-tagline,
.kiosk-premium .state-success .brand-tagline {
    color: #b9cbd9;
    font-size: .58rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .1em;
}

.kiosk-premium .clock-card,
.kiosk-premium .state-success .clock-card {
    border: 1px solid rgba(18, 87, 112, .16);
    background:
        radial-gradient(circle at 12% 0%, rgba(53, 213, 218, .11), transparent 38%),
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(244, 248, 247, .94));
    box-shadow: 0 12px 28px rgba(16, 49, 68, .1), inset 0 1px #fff;
}

.kiosk-premium .analog-clock {
    border-color: rgba(53, 213, 218, .38);
    background: linear-gradient(145deg, #071a2f, #0b4557);
    box-shadow: 0 8px 18px rgba(7, 26, 47, .26), inset 0 0 18px rgba(53, 213, 218, .15);
}

.kiosk-premium .clock-face,
.kiosk-premium .clock-face-inner {
    stroke: #42d8dc;
}

.kiosk-premium .clock-copy time {
    color: var(--kiosk-ink);
    letter-spacing: -.045em;
}

.kiosk-premium .clock-copy span {
    color: var(--kiosk-muted);
}

.kiosk-premium .idle-robot-wrap,
.kiosk-premium .state-success .idle-robot-wrap {
    border: 1px solid rgba(20, 91, 119, .18);
    background:
        radial-gradient(circle at 50% 44%, rgba(53, 213, 218, .15), transparent 31%),
        radial-gradient(circle at 8% 100%, rgba(233, 189, 98, .1), transparent 29%),
        linear-gradient(155deg, rgba(255, 255, 255, .98), rgba(233, 243, 245, .96));
    box-shadow: 0 18px 38px rgba(15, 53, 73, .12), inset 0 1px #fff;
}

.kiosk-premium .robot-panel-copy > span {
    position: relative;
    border-color: rgba(23, 130, 145, .18);
    color: #146172;
    background: linear-gradient(135deg, #ebfbfa, #d9f2f2);
    box-shadow: none;
}

.kiosk-premium .robot-panel-copy > span::before {
    content: "";
    width: 5px;
    height: 5px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--kiosk-gold);
    box-shadow: 0 0 7px rgba(233, 189, 98, .46);
}

.kiosk-premium .robot-panel-copy h1 {
    color: var(--kiosk-ink);
    letter-spacing: -.045em;
}

.kiosk-premium .robot-panel-copy p {
    color: var(--kiosk-muted);
}

.kiosk-premium .robot-assistant--hybrid .robot-aura {
    border-color: rgba(27, 155, 173, .16);
    background: radial-gradient(circle, rgba(53, 213, 218, .16), transparent 66%);
    box-shadow: 0 0 72px rgba(53, 213, 218, .13), inset 0 0 42px rgba(53, 213, 218, .06);
}

.kiosk-premium .idle-system-status {
    border-color: rgba(87, 203, 199, .22);
    color: #edfdfc;
    background: linear-gradient(112deg, rgba(7, 26, 47, .97), rgba(10, 63, 77, .96));
    box-shadow: 0 12px 27px rgba(7, 31, 48, .22), inset 0 1px rgba(255, 255, 255, .12);
}

.kiosk-premium .idle-system-status > span:last-child {
    color: #5f430f;
    background: linear-gradient(135deg, #fff1c9, #e9bd62);
}

.kiosk-premium .success-intro {
    border-color: rgba(91, 218, 218, .26);
    background:
        radial-gradient(circle at 88% 4%, rgba(53, 213, 218, .23), transparent 37%),
        linear-gradient(112deg, #071a2f 0%, #0b3652 62%, #0c5867 100%);
    box-shadow: 0 13px 28px rgba(7, 35, 54, .18), inset 0 1px rgba(255, 255, 255, .12);
}

.kiosk-premium .success-intro-icon {
    background: linear-gradient(145deg, #fdf4d6, #e9bd62);
    box-shadow: 0 7px 16px rgba(4, 21, 37, .22), inset 0 1px rgba(255, 255, 255, .72);
}

.kiosk-premium .success-intro-icon rect {
    fill: rgba(255, 255, 255, .45);
    stroke: #137b78;
}

.kiosk-premium .success-intro-icon path {
    stroke: #0b6c68;
}

.kiosk-premium .history-heading {
    border-color: rgba(20, 91, 119, .15);
    color: var(--kiosk-ink);
    background: linear-gradient(135deg, rgba(255, 255, 255, .97), rgba(239, 246, 246, .95));
    box-shadow: 0 12px 28px rgba(15, 53, 73, .09), inset 0 1px #fff;
}

.kiosk-premium .history-heading b {
    color: var(--kiosk-ink);
}

.kiosk-premium .history-heading span:not(.history-heading-icon) {
    color: var(--kiosk-muted);
}

.kiosk-premium .history-heading-icon {
    color: #126f7c;
    background: var(--kiosk-aqua-soft);
}

.kiosk-premium .featured-student,
.kiosk-premium .state-success .featured-student,
.kiosk-premium .recent-student,
.kiosk-premium .state-success .recent-student {
    border-color: rgba(20, 91, 119, .15);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 17px 36px rgba(15, 53, 73, .11), inset 0 1px #fff;
}

.kiosk-premium .featured-photo-wrap,
.kiosk-premium .recent-photo-wrap,
.kiosk-premium .recent-student.is-empty .recent-photo-wrap {
    border-color: rgba(22, 102, 124, .14);
    background:
        radial-gradient(circle at 50% 35%, rgba(53, 213, 218, .13), transparent 38%),
        linear-gradient(155deg, #eef6f7, #e3edf2);
}

.kiosk-premium .featured-info,
.kiosk-premium .state-success .featured-info {
    background: linear-gradient(145deg, #ffffff, #fbfcfb);
}

.kiosk-premium .featured-info h2,
.kiosk-premium .recent-student h3 {
    color: var(--kiosk-ink);
}

.kiosk-premium .featured-info dd,
.kiosk-premium .recent-student dd {
    color: #116b7d;
}

.kiosk-premium .featured-info dl > div:first-child dd,
.kiosk-premium .recent-student dl > div:first-child dd {
    color: #a87522;
}

.kiosk-premium #featuredStatus {
    border-color: rgba(22, 142, 118, .23);
    color: #08755f;
    background: #e7f7f2;
}

.kiosk-premium .idle-camera-action {
    border-color: rgba(19, 115, 137, .2);
    color: #126f7c;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 22px rgba(15, 59, 75, .13);
}

@media (max-width: 1100px) {
    .kiosk-premium .brand-card,
    .kiosk-premium .state-success .brand-card {
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 10px;
    }

    .kiosk-premium .brand-title strong,
    .kiosk-premium .state-success .brand-title strong {
        font-size: 1.58rem;
    }
}

@media (max-width: 760px) {
    .kiosk-premium .brand-card,
    .kiosk-premium .state-success .brand-card {
        grid-template-columns: 60px minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .kiosk-premium .brand-eyebrow {
        display: none;
    }

    .kiosk-premium .brand-title strong,
    .kiosk-premium .state-success .brand-title strong {
        font-size: 1.34rem;
    }

    .kiosk-premium .brand-title em,
    .kiosk-premium .state-success .brand-title em {
        min-height: 23px;
        padding-inline: 7px;
        font-size: .7rem;
    }

    .kiosk-premium .brand-tagline,
    .kiosk-premium .state-success .brand-tagline {
        font-size: .5rem;
        letter-spacing: .06em;
    }
}

/* Three-column masthead: brand, live scan state, and time. */
.kiosk-premium .kiosk-header,
.kiosk-premium .state-success .kiosk-header {
    grid-template-areas: "brand scan clock";
    grid-template-columns: minmax(290px, .72fr) minmax(470px, 1.3fr) minmax(330px, .98fr);
    gap: 14px;
    min-height: 76px;
    justify-content: stretch;
}

.kiosk-premium .brand-card,
.kiosk-premium .state-success .brand-card {
    grid-area: brand;
    width: 100%;
    max-width: none;
}

.kiosk-premium .header-scan-status,
.kiosk-premium .state-success .header-scan-status {
    grid-area: scan;
    align-self: stretch;
    width: 100%;
    height: 76px;
    min-width: 0;
    margin: 0;
}

.kiosk-premium .clock-card,
.kiosk-premium .state-success .clock-card {
    grid-area: clock;
    width: 100%;
    max-width: none;
}

.kiosk-premium .brand-title strong,
.kiosk-premium .state-success .brand-title strong {
    display: inline-block;
    padding: 0;
    font-family: "Bahnschrift SemiBold", "Arial Black", "Segoe UI", sans-serif;
    font-size: clamp(1.45rem, 1.7vw, 1.86rem);
    font-stretch: expanded;
    font-style: normal;
    font-weight: 800;
    line-height: .95;
    letter-spacing: .055em;
    white-space: nowrap;
    transform: none;
}

.kiosk-premium .brand-title em,
.kiosk-premium .state-success .brand-title em {
    flex: 0 0 auto;
    min-height: 24px;
    padding: 3px 9px 4px;
    font-size: clamp(.72rem, .82vw, .88rem);
    letter-spacing: .1em;
}

.kiosk-premium .brand-title {
    gap: 10px;
    overflow: visible;
}

.kiosk-premium .header-scan-status h1 {
    font-size: clamp(1.02rem, 1.25vw, 1.25rem);
    letter-spacing: -.025em;
}

.kiosk-premium .header-scan-status p {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kiosk-premium .success-view,
.kiosk-premium .state-success .success-view {
    grid-template-areas:
        "featured history-head"
        "featured recent";
    grid-template-columns: minmax(430px, 1.3fr) minmax(310px, .98fr);
    grid-template-rows: 76px minmax(0, 1fr);
}

.kiosk-premium .featured-student,
.kiosk-premium .state-success .featured-student {
    grid-area: featured;
}

@media (max-width: 1180px) {
    .kiosk-premium .kiosk-shell {
        grid-template-rows: auto minmax(0, 1fr);
    }

    .kiosk-premium .kiosk-header,
    .kiosk-premium .state-success .kiosk-header {
        grid-template-areas:
            "brand clock"
            "scan scan";
        grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
        grid-template-rows: 76px 76px;
        min-height: 166px;
    }

    .kiosk-premium .success-view,
    .kiosk-premium .state-success .success-view {
        grid-template-areas:
            "featured"
            "history-head"
            "recent";
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(410px, 1fr) 76px auto;
    }
}

@media (max-width: 640px) {
    .kiosk-premium .kiosk-header,
    .kiosk-premium .state-success .kiosk-header {
        grid-template-areas:
            "brand"
            "scan"
            "clock";
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: repeat(3, 76px);
        min-height: 242px;
    }

    .kiosk-premium .brand-title strong,
    .kiosk-premium .state-success .brand-title strong {
        font-size: 1.3rem;
        letter-spacing: .035em;
    }
}

/* Compact attendance metadata: keep time and status readable on narrow cards. */
.kiosk-premium .featured-info,
.kiosk-premium .state-success .featured-info {
    padding: clamp(20px, 1.8vw, 30px);
}

.kiosk-premium .featured-info dl > div,
.kiosk-premium .state-success .featured-info dl > div {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 0;
}

.kiosk-premium .featured-info dd,
.kiosk-premium .state-success .featured-info dd {
    justify-self: end;
    max-width: 100%;
    text-align: right;
}

.kiosk-premium #featuredTime,
.kiosk-premium .state-success #featuredTime {
    color: #0d687a;
    font-family: "Bahnschrift SemiBold", "Segoe UI", sans-serif;
    font-size: clamp(.8rem, .9vw, .94rem);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
}

.kiosk-premium #featuredStatus,
.kiosk-premium .state-success #featuredStatus {
    display: inline-flex;
    width: auto;
    max-width: none;
    min-height: 27px;
    align-items: center;
    gap: 6px;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: clamp(.62rem, .72vw, .72rem);
    line-height: 1;
    letter-spacing: .025em;
    text-align: center;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
}

.kiosk-premium #featuredStatus::before {
    content: "";
    flex: 0 0 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 12%, transparent);
}

@media (max-width: 1380px) {
    .kiosk-premium .featured-info,
    .kiosk-premium .state-success .featured-info {
        padding-inline: 22px;
    }

    .kiosk-premium .featured-info dl > div,
    .kiosk-premium .state-success .featured-info dl > div {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 6px;
    }
}

/* Desktop column balance: prioritize the featured student, compact the history rail. */
@media (min-width: 1181px) {
    .kiosk-premium .kiosk-header,
    .kiosk-premium .state-success .kiosk-header {
        grid-template-columns: minmax(290px, .72fr) minmax(620px, 1.58fr) minmax(340px, .75fr);
    }

    .kiosk-premium .kiosk-main,
    .kiosk-premium .state-success .kiosk-main {
        grid-template-columns: minmax(290px, .72fr) minmax(620px, 1.58fr) minmax(340px, .75fr);
    }

    .kiosk-premium .success-view,
    .kiosk-premium .state-success .success-view {
        grid-template-columns: minmax(620px, 1.58fr) minmax(340px, .75fr);
    }

    .kiosk-premium .recent-student,
    .kiosk-premium .state-success .recent-student {
        grid-template-columns: 122px minmax(165px, 1fr) !important;
        gap: 6px 12px;
    }

    .kiosk-premium .recent-student:not(.is-empty) .recent-photo-wrap {
        width: 122px;
        height: auto;
        aspect-ratio: 3 / 4;
    }

    .kiosk-premium .recent-student:not(.is-empty) .student-photo-placeholder img:not([hidden]) {
        object-fit: cover;
        object-position: center top;
    }
}

/* Two-tone portrait frame: crisp on both bright and dark student photos. */
.kiosk-premium .featured-photo-wrap,
.kiosk-premium .recent-student:not(.is-empty) .recent-photo-wrap {
    border: 2px solid #0a405c;
    box-shadow:
        inset 0 0 0 1px rgba(250, 216, 143, .9),
        inset 0 0 18px rgba(7, 31, 47, .08),
        0 8px 18px rgba(10, 54, 74, .1);
}

.kiosk-premium .featured-photo-wrap::after,
.kiosk-premium .state-success .featured-photo-wrap::after,
.kiosk-premium .recent-student:not(.is-empty) .recent-photo-wrap::after,
.kiosk-premium .state-success .recent-student:not(.is-empty) .recent-photo-wrap::after {
    content: "";
    position: absolute;
    inset: 3px;
    z-index: 4;
    border: 1px solid rgba(255, 255, 255, .56);
    border-radius: 13px;
    background:
        linear-gradient(90deg, #efc76d 0 22px, transparent 22px) left top / 42px 2px no-repeat,
        linear-gradient(180deg, #efc76d 0 22px, transparent 22px) left top / 2px 42px no-repeat,
        linear-gradient(270deg, #39c9cf 0 22px, transparent 22px) right bottom / 42px 2px no-repeat,
        linear-gradient(0deg, #39c9cf 0 22px, transparent 22px) right bottom / 2px 42px no-repeat;
    box-shadow: none;
    pointer-events: none;
}

/* Creator signature replaces the technical scanner-mode label. */
.kiosk-premium .idle-system-status .creator-signature {
    position: relative;
    isolation: isolate;
    min-height: 31px;
    padding: 6px 12px 6px 14px;
    border: 1px solid rgba(239, 199, 109, .55);
    border-radius: 999px;
    color: #5b3e0c;
    background: linear-gradient(135deg, #fff3ce, #e9bd62);
    box-shadow: inset 0 1px rgba(255, 255, 255, .62), 0 4px 11px rgba(4, 24, 37, .14);
    font-family: "Bahnschrift SemiBold", "Segoe UI", sans-serif;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .055em;
    white-space: nowrap;
}

.kiosk-premium .idle-system-status .creator-signature::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 7px;
    bottom: 7px;
    width: 2px;
    border-radius: 999px;
    background: #0d7882;
    opacity: .75;
}

.kiosk-premium .idle-system-status .creator-signature small {
    margin-right: 4px;
    color: rgba(91, 62, 12, .66);
    font-size: .5rem;
    font-weight: 850;
    letter-spacing: .14em;
}

.kiosk-premium .idle-system-status {
    gap: 8px;
    max-width: calc(100% - 82px);
    padding-inline: 10px 8px;
}

.kiosk-premium .idle-system-status strong {
    font-size: .76rem;
    letter-spacing: .025em;
}

.kiosk-premium .idle-system-status .creator-signature {
    min-height: 29px;
    padding: 5px 9px 5px 12px;
    font-size: .61rem;
    letter-spacing: .035em;
}

.kiosk-premium .idle-system-status .creator-signature small {
    margin-right: 3px;
    font-size: .46rem;
}

/* Lightweight creator mark: a signature, not another status button. */
.kiosk-premium .creator-credit {
    position: relative;
    z-index: 6;
    align-self: end;
    justify-self: start;
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    margin: 4px 0 1px 8px;
    color: var(--kiosk-ink);
}

.kiosk-premium .creator-credit::after {
    content: "";
    position: absolute;
    left: 43px;
    right: 0;
    bottom: -5px;
    height: 1px;
    background: linear-gradient(90deg, var(--kiosk-gold), rgba(53, 213, 218, .62), transparent);
}

.kiosk-premium .creator-monogram {
    position: relative;
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(71, 211, 213, .44);
    border-radius: 11px 6px 11px 6px;
    color: #f6d787;
    background: linear-gradient(145deg, #071a2f, #0d5667);
    box-shadow: 0 6px 14px rgba(7, 31, 48, .17), inset 0 1px rgba(255, 255, 255, .12);
    font-family: "Bahnschrift SemiBold", "Segoe UI", sans-serif;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .03em;
}

.kiosk-premium .creator-monogram::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--kiosk-aqua);
    box-shadow: 0 0 7px rgba(53, 213, 218, .72);
}

.kiosk-premium .creator-credit-copy {
    display: grid;
    gap: 2px;
    text-align: left;
}

.kiosk-premium .creator-credit-copy small {
    color: #78909e;
    font-size: .45rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .15em;
}

.kiosk-premium .creator-credit-copy strong {
    color: #17364b;
    font-family: "Bahnschrift SemiBold", "Segoe UI", sans-serif;
    font-size: .68rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .07em;
}

/* Viewport-fluid desktop: preserve the three-column composition at every height. */
@media (min-width: 1000px) {
    .kiosk-premium {
        --history-photo-width: clamp(86px, 11.5vh, 122px);
        --desktop-header-height: clamp(66px, 7.1vh, 76px);
    }

    .kiosk-premium .kiosk-shell {
        grid-template-rows: var(--desktop-header-height) minmax(0, 1fr);
        gap: clamp(8px, 1vh, 12px);
        height: 100dvh;
        min-height: 0;
        max-height: 100dvh;
        padding: clamp(8px, 1.1vh, 12px) 20px clamp(10px, 1.4vh, 15px);
        overflow: hidden;
    }

    .kiosk-premium .kiosk-header,
    .kiosk-premium .state-success .kiosk-header {
        grid-template-areas: "brand scan clock";
        grid-template-rows: var(--desktop-header-height);
        grid-template-columns: clamp(250px, 24vw, 430px) minmax(0, 1fr) clamp(260px, 21vw, 400px);
        min-height: 0;
    }

    .kiosk-premium .kiosk-main,
    .kiosk-premium .state-success .kiosk-main {
        grid-template-columns: clamp(250px, 24vw, 430px) minmax(0, 1fr) clamp(260px, 21vw, 400px);
        min-height: 0;
    }

    .kiosk-premium .brand-card,
    .kiosk-premium .state-success .brand-card,
    .kiosk-premium .header-scan-status,
    .kiosk-premium .state-success .header-scan-status,
    .kiosk-premium .clock-card,
    .kiosk-premium .state-success .clock-card {
        height: var(--desktop-header-height);
        min-height: 0;
    }

    .kiosk-premium .kiosk-main,
    .kiosk-premium .state-success .kiosk-main,
    .kiosk-premium .idle-view,
    .kiosk-premium .state-success .idle-view,
    .kiosk-premium .idle-robot-wrap,
    .kiosk-premium .state-success .idle-robot-wrap,
    .kiosk-premium .success-view,
    .kiosk-premium .state-success .success-view,
    .kiosk-premium .featured-student,
    .kiosk-premium .state-success .featured-student,
    .kiosk-premium .recent-students {
        min-height: 0;
        max-height: 100%;
        overflow: hidden;
    }

    .kiosk-premium .success-view,
    .kiosk-premium .state-success .success-view {
        grid-column: 2 / -1;
        grid-template-areas:
            "featured history-head"
            "featured recent";
        grid-template-columns: minmax(0, 1fr) clamp(260px, 21vw, 400px);
        grid-template-rows: var(--desktop-header-height) minmax(0, 1fr);
        height: 100%;
    }

    .kiosk-premium .success-intro,
    .kiosk-premium .history-heading {
        height: var(--desktop-header-height);
        min-height: 0;
    }

    .kiosk-premium .featured-student,
    .kiosk-premium .state-success .featured-student {
        align-self: stretch;
        height: 100%;
    }

    .kiosk-premium .recent-students,
    .kiosk-premium .recent-students.has-one-history,
    .kiosk-premium .recent-students.has-two-history,
    .kiosk-premium .recent-students.has-three-history,
    .kiosk-premium .recent-students:not(.has-no-history):not(.has-one-history) {
        grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
        gap: clamp(7px, .9vh, 10px);
        height: 100%;
        align-content: stretch;
    }

    .kiosk-premium .recent-students {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .kiosk-premium .recent-student,
    .kiosk-premium .state-success .recent-student,
    .kiosk-premium .recent-student:nth-child(2),
    .kiosk-premium .recent-students.has-one-history .recent-student:not(.is-empty),
    .kiosk-premium .recent-students.has-two-history .recent-student:not(.is-empty),
    .kiosk-premium .recent-students.has-three-history .recent-student:not(.is-empty) {
        grid-template-columns: var(--history-photo-width) minmax(0, 1fr) !important;
        width: 100%;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: clamp(7px, .8vh, 10px);
        overflow: hidden;
    }

    .kiosk-premium .recent-student:not(.is-empty) .recent-photo-wrap {
        width: var(--history-photo-width);
        height: auto;
        max-height: 100%;
        aspect-ratio: 3 / 4;
        align-self: center;
    }

    .kiosk-premium .recent-student:not(.is-empty) h3 {
        font-size: clamp(.72rem, 1.45vh, .92rem);
    }

    .kiosk-premium .recent-student:not(.is-empty) dl > div {
        padding: clamp(2px, .45vh, 4px) 0;
    }

    .kiosk-premium .recent-student:not(.is-empty) dt,
    .kiosk-premium .recent-student:not(.is-empty) dd {
        font-size: clamp(.56rem, 1.15vh, .7rem);
    }

    .kiosk-premium .robot-assistant--hero.robot-assistant--hybrid,
    .kiosk-premium .state-success .robot-assistant--hero.robot-assistant--hybrid {
        min-height: 0;
        height: 100%;
    }
}

@media (min-width: 1000px) and (max-width: 1450px) {
    .kiosk-premium .brand-card,
    .kiosk-premium .state-success .brand-card {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 9px;
        padding-inline: 8px 12px;
    }

    .kiosk-premium .brand-crest-wrap,
    .kiosk-premium .state-success .brand-crest-wrap {
        width: 60px;
        height: 60px;
    }

    .kiosk-premium .brand-title strong,
    .kiosk-premium .state-success .brand-title strong {
        font-size: clamp(1.28rem, 2vw, 1.62rem);
        letter-spacing: .035em;
    }

    .kiosk-premium .brand-title em,
    .kiosk-premium .state-success .brand-title em {
        min-height: 22px;
        padding-inline: 7px;
        font-size: .7rem;
    }

    .kiosk-premium .brand-eyebrow {
        font-size: .43rem;
        letter-spacing: .14em;
    }

    .kiosk-premium .brand-tagline,
    .kiosk-premium .state-success .brand-tagline {
        font-size: .48rem;
        letter-spacing: .045em;
    }
}

@media (min-width: 1000px) and (max-width: 1100px) {
    .kiosk-premium .kiosk-shell {
        padding-inline: 12px;
    }

    .kiosk-premium .kiosk-header,
    .kiosk-premium .state-success .kiosk-header,
    .kiosk-premium .kiosk-main,
    .kiosk-premium .state-success .kiosk-main {
        grid-template-columns: 250px minmax(0, 1fr) 250px;
        gap: 9px;
    }

    .kiosk-premium .success-view,
    .kiosk-premium .state-success .success-view {
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 9px;
    }

    .kiosk-premium .brand-card,
    .kiosk-premium .state-success .brand-card {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 6px;
        padding-inline: 6px 8px;
    }

    .kiosk-premium .brand-crest-wrap,
    .kiosk-premium .state-success .brand-crest-wrap {
        width: 50px;
        height: 56px;
    }

    .kiosk-premium .brand-crest-wrap img,
    .kiosk-premium .state-success .brand-crest-wrap img {
        width: 72px;
        height: 60px;
    }

    .kiosk-premium .brand-title {
        gap: 5px;
    }

    .kiosk-premium .brand-title strong,
    .kiosk-premium .state-success .brand-title strong {
        font-size: 1.12rem;
        letter-spacing: .015em;
    }

    .kiosk-premium .brand-title em,
    .kiosk-premium .state-success .brand-title em {
        min-height: 19px;
        padding-inline: 5px;
        font-size: .58rem;
    }

    .kiosk-premium .brand-eyebrow {
        font-size: .36rem;
        letter-spacing: .09em;
    }

    .kiosk-premium .brand-tagline,
    .kiosk-premium .state-success .brand-tagline {
        font-size: .39rem;
        letter-spacing: .02em;
    }
}

/* Formal school lockup and a standalone modern SAHABAT wordmark. */
.kiosk-premium .brand-card,
.kiosk-premium .state-success .brand-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 5px 20px 5px 12px;
}

.kiosk-premium .brand-crest-wrap,
.kiosk-premium .state-success .brand-crest-wrap {
    width: 54px;
    height: 54px;
    overflow: hidden;
}

.kiosk-premium .brand-crest-wrap img,
.kiosk-premium .state-success .brand-crest-wrap img {
    width: auto;
    height: 58px;
    object-fit: contain;
    transform: translate(-50%, -50%);
}

.kiosk-premium .brand-copy,
.kiosk-premium .state-success .brand-copy {
    display: flex;
    height: 100%;
    align-items: flex-start;
    justify-content: center;
}

.kiosk-premium .school-name,
.kiosk-premium .state-success .school-name {
    display: block;
    color: #f7f7f2;
    font-family: "Bahnschrift SemiBold", "Aptos Display", "Segoe UI", sans-serif;
    font-size: clamp(1.2rem, 1.45vw, 1.58rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .055em;
    white-space: nowrap;
    text-shadow: 0 4px 10px rgba(0, 0, 0, .22);
}

.kiosk-premium .robot-panel-copy,
.kiosk-premium .state-success .robot-panel-copy {
    width: min(100%, 370px);
    max-width: 370px;
}

.kiosk-premium .assistant-wordmark,
.kiosk-premium .state-success .assistant-wordmark {
    position: relative;
    display: inline-block;
    margin: 2px 0 9px;
    padding: 0 17px 9px;
    color: #102d40;
    font-family: "Bahnschrift SemiBold", "Aptos Display", "Arial Narrow", "Segoe UI", sans-serif;
    font-size: clamp(2rem, 2.35vw, 2.65rem);
    font-weight: 850;
    line-height: .94;
    letter-spacing: .13em;
    text-indent: .13em;
    text-shadow: 0 4px 12px rgba(24, 54, 66, .08);
}

.kiosk-premium .assistant-wordmark::after,
.kiosk-premium .state-success .assistant-wordmark::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #c8a45b 22%, #c8a45b 72%, #619a9a 87%, transparent);
}

.kiosk-premium #assistantSystemTagline {
    max-width: 360px;
    color: #4e6c75;
    font-family: "Aptos Display", "Bahnschrift", "Segoe UI", sans-serif;
    font-size: clamp(.78rem, .84vw, .9rem);
    font-weight: 650;
    line-height: 1.28;
    letter-spacing: .045em;
}

@media (min-width: 1000px) and (max-width: 1450px) {
    .kiosk-premium .brand-card,
    .kiosk-premium .state-success .brand-card {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 8px;
        padding-inline: 9px 11px;
    }

    .kiosk-premium .brand-crest-wrap,
    .kiosk-premium .state-success .brand-crest-wrap {
        width: 49px;
        height: 50px;
    }

    .kiosk-premium .brand-crest-wrap img,
    .kiosk-premium .state-success .brand-crest-wrap img {
        height: 55px;
    }

    .kiosk-premium .school-name,
    .kiosk-premium .state-success .school-name {
        font-size: clamp(.98rem, 1.55vw, 1.3rem);
        letter-spacing: .035em;
    }

    .kiosk-premium .assistant-wordmark,
    .kiosk-premium .state-success .assistant-wordmark {
        font-size: clamp(1.85rem, 2.65vw, 2.25rem);
    }
}

@media (min-width: 1000px) and (max-width: 1100px) {
    .kiosk-premium .brand-card,
    .kiosk-premium .state-success .brand-card {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 6px;
        padding-inline: 6px 8px;
    }

    .kiosk-premium .brand-crest-wrap,
    .kiosk-premium .state-success .brand-crest-wrap {
        width: 42px;
        height: 44px;
    }

    .kiosk-premium .brand-crest-wrap img,
    .kiosk-premium .state-success .brand-crest-wrap img {
        height: 48px;
    }

    .kiosk-premium .school-name,
    .kiosk-premium .state-success .school-name {
        font-size: .82rem;
        letter-spacing: .01em;
        white-space: normal;
    }
}

/* Final crest safe area. Keep this after all legacy brand overrides. */
.kiosk-premium .brand-card,
.kiosk-premium .state-success .brand-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 6px 18px 6px 12px;
}

.kiosk-premium .brand-crest-wrap,
.kiosk-premium .state-success .brand-crest-wrap {
    width: 58px;
    height: 58px;
    overflow: visible;
}

.kiosk-premium .brand-crest-wrap img,
.kiosk-premium .state-success .brand-crest-wrap img {
    width: auto;
    height: 64px;
    max-width: none;
    object-fit: contain;
    object-position: center;
    transform: translate(-50%, -50%);
}

@media (min-width: 1000px) and (max-width: 1450px) {
    .kiosk-premium .brand-card,
    .kiosk-premium .state-success .brand-card {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 9px;
        padding-inline: 10px 11px;
    }

    .kiosk-premium .brand-crest-wrap,
    .kiosk-premium .state-success .brand-crest-wrap {
        width: 52px;
        height: 54px;
    }

    .kiosk-premium .brand-crest-wrap img,
    .kiosk-premium .state-success .brand-crest-wrap img {
        width: auto;
        height: 56px;
    }
}

@media (min-width: 1000px) and (max-width: 1100px) {
    .kiosk-premium .brand-card,
    .kiosk-premium .state-success .brand-card {
        grid-template-columns: 45px minmax(0, 1fr);
        gap: 7px;
        padding-inline: 8px;
    }

    .kiosk-premium .brand-crest-wrap,
    .kiosk-premium .state-success .brand-crest-wrap {
        width: 45px;
        height: 48px;
    }

    .kiosk-premium .brand-crest-wrap img,
    .kiosk-premium .state-success .brand-crest-wrap img {
        width: auto;
        height: 50px;
    }
}

/* Final color depth: visibly bright surfaces without losing the premium restraint. */
.kiosk-premium .idle-robot-wrap,
.kiosk-premium .state-success .idle-robot-wrap {
    background:
        radial-gradient(circle at 50% 39%, rgba(61, 196, 204, .22), transparent 31%),
        radial-gradient(circle at 8% 96%, rgba(244, 190, 75, .17), transparent 31%),
        linear-gradient(150deg, #fbfffe 0%, #e7f7f5 56%, #fff5dc 125%);
}

.kiosk-premium .featured-student,
.kiosk-premium .state-success .featured-student {
    background:
        radial-gradient(circle at 4% 5%, rgba(58, 187, 204, .16), transparent 25%),
        radial-gradient(circle at 96% 96%, rgba(239, 183, 67, .12), transparent 28%),
        linear-gradient(135deg, #f8ffff 0%, #eef9f8 42%, #fff9eb 100%);
}

.kiosk-premium .featured-photo-wrap {
    background:
        radial-gradient(circle at 50% 34%, rgba(78, 198, 205, .25), transparent 39%),
        linear-gradient(155deg, #dff4f5 0%, #e4f0f9 56%, #fbedc9 135%);
}

.kiosk-premium .featured-info,
.kiosk-premium .state-success .featured-info {
    background:
        radial-gradient(circle at 94% 6%, rgba(244, 190, 75, .18), transparent 31%),
        radial-gradient(circle at 3% 94%, rgba(70, 184, 197, .1), transparent 28%),
        linear-gradient(145deg, #fffefa 0%, #fff8e8 53%, #eef9f8 125%);
}

.kiosk-premium .history-heading {
    background:
        radial-gradient(circle at 8% 0%, rgba(61, 190, 198, .23), transparent 43%),
        radial-gradient(circle at 100% 100%, rgba(239, 183, 67, .13), transparent 35%),
        linear-gradient(135deg, #f9fffe 0%, #eaf8f6 64%, #fff5db 125%);
}

.kiosk-premium .recent-student,
.kiosk-premium .state-success .recent-student {
    background:
        radial-gradient(circle at 100% 0%, rgba(240, 185, 69, .15), transparent 37%),
        radial-gradient(circle at 0% 100%, rgba(62, 185, 197, .12), transparent 32%),
        linear-gradient(145deg, #fffefa 0%, #f4fbf9 58%, #fff3d5 130%);
}

.kiosk-premium .recent-photo-wrap,
.kiosk-premium .recent-student.is-empty .recent-photo-wrap {
    background:
        radial-gradient(circle at 50% 34%, rgba(64, 190, 200, .22), transparent 43%),
        linear-gradient(150deg, #dcf3f4, #e7f1f8 62%, #f9e9c1 140%);
}

.kiosk-premium .featured-info dl > div,
.kiosk-premium .recent-student dl > div {
    border-color: rgba(37, 113, 139, .14);
}

/* Complete SAHABAT lockup and centered Pakar Tiko creator seal. */
.kiosk-premium .assistant-wordmark,
.kiosk-premium .state-success .assistant-wordmark {
    width: min(96%, 390px);
    margin: 0 auto;
    filter: drop-shadow(0 7px 11px rgba(9, 65, 121, .13));
}

.kiosk-premium .assistant-wordmark img,
.kiosk-premium .state-success .assistant-wordmark img {
    display: block;
    width: 100%;
    height: auto;
}

.kiosk-premium .creator-credit,
.kiosk-premium .state-success .creator-credit {
    position: relative;
    z-index: 6;
    align-self: end;
    justify-self: center;
    display: grid;
    width: clamp(58px, 5.2vw, 74px);
    height: auto;
    margin: 0 0 1px;
    place-items: center;
    filter: drop-shadow(0 8px 12px rgba(12, 35, 43, .2));
}

.kiosk-premium .creator-credit::after,
.kiosk-premium .state-success .creator-credit::after {
    content: none;
    display: none;
}

.kiosk-premium .creator-credit img,
.kiosk-premium .state-success .creator-credit img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 50%;
}

@media (min-width: 1000px) and (max-width: 1450px) {
    .kiosk-premium .assistant-wordmark,
    .kiosk-premium .state-success .assistant-wordmark {
        width: min(94%, 320px);
    }

    .kiosk-premium .creator-credit,
    .kiosk-premium .state-success .creator-credit {
        width: clamp(52px, 5vw, 62px);
    }
}

@media (min-width: 1000px) and (max-height: 760px) {
    .kiosk-premium .creator-credit,
    .kiosk-premium .state-success .creator-credit {
        width: 50px;
    }
}

/* Bright premium palette and generated SAHABAT identity asset. */
body.kiosk-premium {
    --kiosk-midnight: #08293f;
    --kiosk-navy: #0d3952;
    --kiosk-ocean: #13717a;
    --kiosk-aqua: #46bdc2;
    --kiosk-aqua-soft: #e0f4f3;
    --kiosk-gold: #d4a94f;
    --kiosk-gold-soft: #faedc9;
    --kiosk-ink: #102d46;
    --kiosk-muted: #667c8e;
    background: #e9f3f5;
}

.kiosk-premium .kiosk-shell {
    background:
        radial-gradient(circle at 5% 8%, rgba(71, 190, 196, .18), transparent 25%),
        radial-gradient(circle at 94% 5%, rgba(242, 190, 82, .19), transparent 26%),
        radial-gradient(circle at 71% 96%, rgba(90, 163, 218, .13), transparent 30%),
        linear-gradient(135deg, #f4fbfc 0%, #eaf5f6 45%, #fff8ea 100%);
}

.kiosk-premium .kiosk-shell::before {
    opacity: .3;
    background:
        linear-gradient(rgba(31, 115, 140, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 115, 140, .035) 1px, transparent 1px);
    background-size: 54px 54px;
}

.kiosk-premium .brand-card,
.kiosk-premium .state-success .brand-card {
    border-color: rgba(111, 207, 205, .38);
    background:
        radial-gradient(circle at 95% 0%, rgba(69, 195, 198, .31), transparent 34%),
        linear-gradient(118deg, #082a45 0%, #0c4862 62%, #13777b 115%);
    box-shadow: 0 13px 27px rgba(12, 53, 72, .17), inset 0 1px rgba(255, 255, 255, .16);
}

.kiosk-premium .brand-card::before {
    background: linear-gradient(90deg, #e0b34f, #f7dc93 27%, #69d1cc 71%, transparent 98%);
}

.kiosk-premium .school-name,
.kiosk-premium .state-success .school-name {
    color: #fffefa;
}

.kiosk-premium .success-intro,
.kiosk-premium .state-success .success-intro {
    border-color: rgba(92, 198, 204, .38);
    background:
        radial-gradient(circle at 91% 4%, rgba(85, 217, 213, .32), transparent 32%),
        linear-gradient(112deg, #082a45 0%, #0d4f68 60%, #13828a 112%);
    box-shadow: 0 13px 27px rgba(12, 53, 72, .17), inset 0 1px rgba(255, 255, 255, .15);
}

.kiosk-premium .success-intro-icon {
    border-color: rgba(255, 231, 166, .82);
    background: linear-gradient(145deg, #fff3cf, #e2b455);
}

.kiosk-premium .clock-card,
.kiosk-premium .state-success .clock-card {
    border-color: rgba(58, 137, 160, .2);
    background:
        radial-gradient(circle at 8% 0%, rgba(82, 194, 200, .18), transparent 45%),
        linear-gradient(135deg, rgba(255, 255, 253, .98), rgba(250, 246, 230, .96));
    box-shadow: 0 12px 25px rgba(25, 79, 94, .1), inset 0 1px #fff;
}

.kiosk-premium .analog-clock {
    border-color: rgba(224, 178, 78, .58);
    background: linear-gradient(145deg, #072a43, #0d6570);
    box-shadow: 0 7px 16px rgba(8, 47, 66, .23), inset 0 0 15px rgba(94, 218, 214, .18);
}

.kiosk-premium .idle-robot-wrap,
.kiosk-premium .state-success .idle-robot-wrap {
    border-color: rgba(47, 139, 158, .19);
    background:
        radial-gradient(circle at 50% 45%, rgba(65, 190, 197, .18), transparent 31%),
        radial-gradient(circle at 7% 98%, rgba(242, 190, 82, .13), transparent 30%),
        linear-gradient(155deg, rgba(255, 255, 252, .98), rgba(229, 245, 244, .97));
    box-shadow: 0 17px 34px rgba(24, 82, 96, .12), inset 0 1px #fff;
}

.kiosk-premium .robot-panel-copy,
.kiosk-premium .state-success .robot-panel-copy {
    width: min(100%, 390px);
    max-width: 390px;
}

.kiosk-premium .assistant-wordmark,
.kiosk-premium .state-success .assistant-wordmark {
    display: block;
    width: min(92%, 330px);
    height: auto;
    margin: 0 auto 7px;
    padding: 0;
    text-indent: 0;
    filter: drop-shadow(0 7px 10px rgba(10, 64, 117, .14));
}

.kiosk-premium .assistant-wordmark::after,
.kiosk-premium .state-success .assistant-wordmark::after {
    content: none;
    display: none;
}

.kiosk-premium .assistant-wordmark img,
.kiosk-premium .state-success .assistant-wordmark img {
    display: block;
    width: 100%;
    height: auto;
}

.kiosk-premium #assistantSystemTagline {
    position: relative;
    max-width: 360px;
    padding: 8px 18px 0;
    color: #315f72;
    font-weight: 750;
    letter-spacing: .055em;
}

.kiosk-premium #assistantSystemTagline::before {
    content: "";
    position: absolute;
    left: 30%;
    right: 30%;
    top: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #d6aa4d 22%, #55b8ba 78%, transparent);
}

.kiosk-premium .featured-student,
.kiosk-premium .state-success .featured-student {
    border-color: rgba(47, 132, 154, .18);
    background:
        radial-gradient(circle at 10% 5%, rgba(76, 190, 196, .12), transparent 24%),
        linear-gradient(145deg, #fffefa, #f7fbfa);
    box-shadow: 0 17px 35px rgba(24, 82, 96, .11), inset 0 1px #fff;
}

.kiosk-premium .featured-photo-wrap {
    background:
        radial-gradient(circle at 50% 34%, rgba(72, 192, 198, .17), transparent 39%),
        linear-gradient(150deg, #e5f5f5 0%, #eaf3f8 58%, #fcf1d7 130%);
}

.kiosk-premium .featured-info,
.kiosk-premium .state-success .featured-info {
    background:
        radial-gradient(circle at 100% 0%, rgba(239, 190, 88, .1), transparent 34%),
        linear-gradient(145deg, #fffefa, #f8fbfa);
}

.kiosk-premium .history-heading {
    border-color: rgba(53, 141, 157, .18);
    background:
        radial-gradient(circle at 8% 0%, rgba(66, 185, 192, .17), transparent 42%),
        linear-gradient(135deg, #fffefb, #f5faf7 67%, #fff5dd 125%);
    box-shadow: 0 12px 25px rgba(24, 82, 96, .09), inset 0 1px #fff;
}

.kiosk-premium .history-heading-icon {
    color: #147782;
    background: linear-gradient(145deg, #dff5f3, #edf8f6);
    box-shadow: inset 0 0 0 1px rgba(57, 156, 163, .08);
}

.kiosk-premium .recent-student,
.kiosk-premium .state-success .recent-student {
    border-color: rgba(48, 132, 150, .17);
    background:
        radial-gradient(circle at 100% 0%, rgba(240, 190, 84, .09), transparent 35%),
        linear-gradient(145deg, #fffefa, #f4faf8);
    box-shadow: 0 13px 28px rgba(24, 82, 96, .09), inset 0 1px #fff;
}

.kiosk-premium .recent-photo-wrap,
.kiosk-premium .recent-student.is-empty .recent-photo-wrap {
    background:
        radial-gradient(circle at 50% 34%, rgba(66, 183, 191, .14), transparent 42%),
        linear-gradient(145deg, #e5f4f4, #eef3f6 65%, #faf0d7 135%);
}

@media (min-width: 1000px) and (max-width: 1450px) {
    .kiosk-premium .assistant-wordmark,
    .kiosk-premium .state-success .assistant-wordmark {
        width: min(88%, 275px);
    }

    .kiosk-premium #assistantSystemTagline {
        font-size: clamp(.72rem, .9vw, .82rem);
    }
}

/* Centered two-line identity and a calmer, correctly scaled clock. */
.kiosk-premium .brand-card,
.kiosk-premium .state-success .brand-card {
    align-items: center;
}

.kiosk-premium .brand-copy,
.kiosk-premium .state-success .brand-copy {
    height: auto;
    justify-content: center;
    gap: 6px;
}

.kiosk-premium .brand-title {
    align-items: center;
}

.kiosk-premium .clock-card,
.kiosk-premium .state-success .clock-card {
    grid-template-columns: 50px minmax(0, 1fr);
    justify-content: stretch;
    align-items: center;
    gap: 11px;
    padding: 6px 16px;
}

.kiosk-premium .analog-clock {
    width: 50px;
    height: 50px;
    border-width: 2px;
}

.kiosk-premium .clock-copy,
.kiosk-premium .state-success .clock-copy {
    display: grid;
    place-content: center;
    min-width: 0;
    text-align: center;
}

.kiosk-premium .clock-copy time,
.kiosk-premium .state-success .clock-copy time {
    font-size: clamp(1.7rem, 2vw, 2.15rem);
    line-height: .95;
    letter-spacing: -.035em;
}

.kiosk-premium .clock-copy span,
.kiosk-premium .state-success .clock-copy span {
    margin-top: 5px;
    font-size: clamp(.62rem, .76vw, .75rem);
    font-weight: 750;
    line-height: 1;
}

.kiosk-premium .robot-panel-copy p,
.kiosk-premium .state-success .robot-panel-copy p {
    max-width: 330px;
    margin-inline: auto;
    color: #3f6670;
    font-family: "Bahnschrift SemiBold", "Aptos Display", "Segoe UI", sans-serif;
    font-size: clamp(.82rem, .88vw, .94rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .025em;
    text-wrap: balance;
}

@media (min-width: 1000px) and (max-width: 1450px) {
    .kiosk-premium .brand-copy,
    .kiosk-premium .state-success .brand-copy {
        gap: 4px;
    }

    .kiosk-premium .clock-card,
    .kiosk-premium .state-success .clock-card {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 9px;
        padding-inline: 12px;
    }

    .kiosk-premium .analog-clock {
        width: 46px;
        height: 46px;
    }

    .kiosk-premium .clock-copy time,
    .kiosk-premium .state-success .clock-copy time {
        font-size: clamp(1.55rem, 2.4vw, 1.9rem);
    }
}

@media (min-width: 1000px) and (max-width: 1100px) {
    .kiosk-premium .clock-card,
    .kiosk-premium .state-success .clock-card {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 7px;
        padding-inline: 9px;
    }

    .kiosk-premium .analog-clock {
        width: 42px;
        height: 42px;
    }

    .kiosk-premium .clock-copy time,
    .kiosk-premium .state-success .clock-copy time {
        font-size: 1.42rem;
    }

    .kiosk-premium .clock-copy span,
    .kiosk-premium .state-success .clock-copy span {
        margin-top: 3px;
        font-size: .54rem;
    }
}

@media (min-width: 1000px) and (max-height: 760px) {
    .kiosk-premium {
        --history-photo-width: clamp(78px, 11vh, 94px);
    }

    .kiosk-premium .robot-panel-copy h1 {
        margin-top: 6px;
        font-size: clamp(1.15rem, 2.6vh, 1.55rem);
    }

    .kiosk-premium .robot-panel-copy p {
        font-size: .68rem;
    }

    .kiosk-premium .creator-monogram {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .kiosk-premium .featured-info h2 {
        font-size: clamp(1.35rem, 3.2vh, 1.9rem);
    }
}

/* Executive premium finish: restrained contrast, porcelain surfaces and champagne accents. */
body.kiosk-premium {
    --kiosk-midnight: #061824;
    --kiosk-navy: #0a2a3d;
    --kiosk-ocean: #10515a;
    --kiosk-aqua: #58b8b5;
    --kiosk-aqua-soft: #e5f1ef;
    --kiosk-gold: #c8a45b;
    --kiosk-gold-soft: #f2e6ca;
    --kiosk-ink: #13283a;
    --kiosk-muted: #74818d;
    --kiosk-line: rgba(19, 54, 69, .13);
    background: #ebece8;
}

.kiosk-premium .kiosk-shell {
    background:
        radial-gradient(circle at 5% 3%, rgba(69, 143, 147, .075), transparent 28%),
        radial-gradient(circle at 95% 3%, rgba(196, 161, 92, .095), transparent 27%),
        linear-gradient(135deg, #f7f7f3 0%, #edf1ef 52%, #f4f2ec 100%);
}

.kiosk-premium .kiosk-shell::before {
    opacity: .22;
    background:
        linear-gradient(rgba(18, 48, 60, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 48, 60, .025) 1px, transparent 1px);
    background-size: 64px 64px;
}

.kiosk-premium .brand-card,
.kiosk-premium .state-success .brand-card,
.kiosk-premium .success-intro,
.kiosk-premium .state-success .success-intro {
    border-color: rgba(214, 188, 125, .28);
    background:
        radial-gradient(circle at 91% 8%, rgba(73, 151, 153, .17), transparent 30%),
        linear-gradient(118deg, #061824 0%, #0a293c 58%, #104b54 100%);
    box-shadow:
        0 13px 28px rgba(7, 25, 36, .18),
        inset 0 1px rgba(255, 255, 255, .1);
}

.kiosk-premium .brand-card::before {
    height: 2px;
    background: linear-gradient(90deg, #b88d3f, #ead7a4 28%, #689fa0 72%, transparent 98%);
    box-shadow: none;
}

.kiosk-premium .brand-card::after {
    opacity: .38;
    background: radial-gradient(circle, rgba(87, 168, 167, .14), transparent 70%);
}

.kiosk-premium .brand-eyebrow {
    color: #9fcaca;
}

.kiosk-premium .brand-eyebrow i {
    background: #d1ad63;
    box-shadow: 0 0 0 3px rgba(200, 164, 91, .09);
}

.kiosk-premium .brand-title strong,
.kiosk-premium .state-success .brand-title strong {
    background: linear-gradient(180deg, #fff 12%, #e4e9e6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #f8faf8;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .18));
}

.kiosk-premium .brand-title em,
.kiosk-premium .state-success .brand-title em {
    border-color: rgba(241, 220, 167, .52);
    background: linear-gradient(135deg, #ead7a5 0%, #caa050 58%, #a97c32 100%);
    color: #30240f;
    box-shadow: 0 5px 12px rgba(3, 16, 24, .19), inset 0 1px rgba(255, 255, 255, .55);
}

.kiosk-premium .brand-tagline,
.kiosk-premium .state-success .brand-tagline {
    color: #b8c5c9;
}

.kiosk-premium .clock-card,
.kiosk-premium .state-success .clock-card,
.kiosk-premium .history-heading,
.kiosk-premium .featured-student,
.kiosk-premium .state-success .featured-student,
.kiosk-premium .recent-student,
.kiosk-premium .state-success .recent-student {
    border-color: rgba(23, 63, 78, .12);
    background: linear-gradient(145deg, rgba(255, 255, 253, .97), rgba(247, 247, 242, .95));
    box-shadow:
        0 14px 30px rgba(20, 43, 52, .085),
        inset 0 1px rgba(255, 255, 255, .95);
}

.kiosk-premium .clock-card,
.kiosk-premium .state-success .clock-card {
    background:
        radial-gradient(circle at 10% 0%, rgba(81, 151, 151, .07), transparent 42%),
        linear-gradient(145deg, #fffefb, #f5f5ef);
}

.kiosk-premium .analog-clock {
    border-color: rgba(200, 164, 91, .48);
    background: linear-gradient(145deg, #061824, #0b3543);
    box-shadow: 0 7px 15px rgba(7, 25, 36, .22), inset 0 0 15px rgba(82, 162, 162, .1);
}

.kiosk-premium .clock-face,
.kiosk-premium .clock-face-inner {
    stroke: #72b9b7;
}

.kiosk-premium .idle-robot-wrap,
.kiosk-premium .state-success .idle-robot-wrap {
    border-color: rgba(25, 67, 80, .13);
    background:
        radial-gradient(circle at 50% 43%, rgba(73, 151, 153, .085), transparent 33%),
        radial-gradient(circle at 7% 100%, rgba(200, 164, 91, .065), transparent 30%),
        linear-gradient(155deg, rgba(255, 255, 252, .98), rgba(238, 242, 239, .97));
    box-shadow: 0 16px 34px rgba(20, 43, 52, .09), inset 0 1px rgba(255, 255, 255, .95);
}

.kiosk-premium .robot-panel-copy > span {
    border-color: rgba(61, 126, 130, .16);
    color: #285d63;
    background: linear-gradient(135deg, #edf5f3, #e2eeeb);
}

.kiosk-premium .robot-panel-copy > span::before {
    background: #c8a45b;
    box-shadow: none;
}

.kiosk-premium .robot-assistant--hybrid .robot-aura {
    border-color: rgba(54, 129, 134, .1);
    background: radial-gradient(circle, rgba(73, 151, 153, .09), transparent 68%);
    box-shadow: 0 0 54px rgba(57, 132, 136, .075), inset 0 0 34px rgba(57, 132, 136, .035);
}

.kiosk-premium .robot-assistant--hybrid .robot-aura::before,
.kiosk-premium .robot-assistant--hybrid .robot-aura::after {
    border-color: rgba(68, 139, 143, .11);
}

.kiosk-premium .robot-assistant--hybrid .robot-ground {
    opacity: .55;
    background: radial-gradient(ellipse, rgba(56, 139, 143, .24), rgba(19, 79, 88, .07) 48%, transparent 74%);
}

.kiosk-premium .success-intro-icon {
    border-color: rgba(238, 216, 163, .72);
    background: linear-gradient(145deg, #f4e8cb, #c8a45b);
    box-shadow: 0 6px 13px rgba(4, 20, 29, .18), inset 0 1px rgba(255, 255, 255, .62);
}

.kiosk-premium .success-intro-icon rect {
    fill: rgba(255, 255, 255, .32);
    stroke: #2f7373;
}

.kiosk-premium .success-intro-icon path {
    stroke: #185e60;
}

.kiosk-premium .history-heading-icon {
    color: #236a6c;
    background: #e6f1ef;
}

.kiosk-premium .featured-photo-wrap,
.kiosk-premium .recent-photo-wrap,
.kiosk-premium .recent-student.is-empty .recent-photo-wrap {
    background:
        radial-gradient(circle at 50% 34%, rgba(76, 149, 150, .08), transparent 40%),
        linear-gradient(155deg, #eff3f1, #e5ebe9);
}

.kiosk-premium .featured-info,
.kiosk-premium .state-success .featured-info {
    background: linear-gradient(145deg, #fffefa, #f9f9f5);
}

.kiosk-premium .featured-photo-wrap,
.kiosk-premium .recent-student:not(.is-empty) .recent-photo-wrap {
    border: 1px solid #173f50;
    box-shadow:
        inset 0 0 0 1px rgba(218, 190, 126, .76),
        0 7px 16px rgba(15, 45, 55, .085);
}

.kiosk-premium .featured-photo-wrap::after,
.kiosk-premium .state-success .featured-photo-wrap::after,
.kiosk-premium .recent-student:not(.is-empty) .recent-photo-wrap::after,
.kiosk-premium .state-success .recent-student:not(.is-empty) .recent-photo-wrap::after {
    inset: 4px;
    border-color: rgba(255, 255, 252, .48);
    background:
        linear-gradient(90deg, #c8a45b 0 17px, transparent 17px) left top / 32px 1px no-repeat,
        linear-gradient(180deg, #c8a45b 0 17px, transparent 17px) left top / 1px 32px no-repeat,
        linear-gradient(270deg, #629d9c 0 17px, transparent 17px) right bottom / 32px 1px no-repeat,
        linear-gradient(0deg, #629d9c 0 17px, transparent 17px) right bottom / 1px 32px no-repeat;
}

.kiosk-premium .featured-info dd,
.kiosk-premium .recent-student dd,
.kiosk-premium #featuredTime,
.kiosk-premium .state-success #featuredTime {
    color: #245f68;
}

.kiosk-premium .featured-info dl > div:first-child dd,
.kiosk-premium .recent-student dl > div:first-child dd {
    color: #96732f;
}

.kiosk-premium #featuredStatus {
    border-color: rgba(32, 116, 94, .18);
    color: #176d59;
    background: #e8f3ee;
}

.kiosk-premium .creator-credit::after {
    background: linear-gradient(90deg, #c8a45b, rgba(81, 139, 140, .44), transparent);
}

.kiosk-premium .creator-monogram {
    border-color: rgba(200, 164, 91, .4);
    color: #e2c77f;
    background: linear-gradient(145deg, #061824, #103e48);
    box-shadow: 0 5px 12px rgba(7, 28, 37, .14), inset 0 1px rgba(255, 255, 255, .09);
}

.kiosk-premium .creator-monogram::after {
    background: #6eaaa8;
    box-shadow: none;
}

.kiosk-premium .creator-credit-copy small {
    color: #87908f;
}

.kiosk-premium .creator-credit-copy strong {
    color: #273e49;
}

/* Proportional brand lockup: preserve the crest ratio and strengthen the descriptor. */
.kiosk-premium .brand-card,
.kiosk-premium .state-success .brand-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 13px;
    padding: 5px 18px 5px 12px;
}

.kiosk-premium .brand-crest-wrap,
.kiosk-premium .state-success .brand-crest-wrap {
    width: 64px;
    height: 64px;
}

.kiosk-premium .brand-crest-wrap img,
.kiosk-premium .state-success .brand-crest-wrap img {
    width: auto;
    height: 83px;
    max-width: none;
    object-fit: contain;
    object-position: center;
    transform: translate(-50%, -50%);
}

.kiosk-premium .brand-copy,
.kiosk-premium .state-success .brand-copy {
    gap: 3px;
}

.kiosk-premium .brand-title {
    align-items: center;
    line-height: 1;
}

.kiosk-premium .brand-tagline,
.kiosk-premium .state-success .brand-tagline {
    color: #e3eae7;
    font-family: "Bahnschrift SemiBold", "Segoe UI", sans-serif;
    font-size: .65rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: .035em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, .28);
}

@media (min-width: 1000px) and (max-width: 1450px) {
    .kiosk-premium .brand-card,
    .kiosk-premium .state-success .brand-card {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 9px;
        padding-inline: 9px 11px;
    }

    .kiosk-premium .brand-crest-wrap,
    .kiosk-premium .state-success .brand-crest-wrap {
        width: 58px;
        height: 58px;
    }

    .kiosk-premium .brand-crest-wrap img,
    .kiosk-premium .state-success .brand-crest-wrap img {
        width: auto;
        height: 76px;
    }

    .kiosk-premium .brand-tagline,
    .kiosk-premium .state-success .brand-tagline {
        font-size: .6rem;
        font-weight: 800;
        letter-spacing: .025em;
    }
}

@media (min-width: 1000px) and (max-width: 1100px) {
    .kiosk-premium .brand-card,
    .kiosk-premium .state-success .brand-card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 6px;
        padding-inline: 6px 8px;
    }

    .kiosk-premium .brand-crest-wrap,
    .kiosk-premium .state-success .brand-crest-wrap {
        width: 48px;
        height: 52px;
    }

    .kiosk-premium .brand-crest-wrap img,
    .kiosk-premium .state-success .brand-crest-wrap img {
        width: auto;
        height: 62px;
    }

    .kiosk-premium .brand-copy,
    .kiosk-premium .state-success .brand-copy {
        gap: 2px;
    }

    .kiosk-premium .brand-tagline,
    .kiosk-premium .state-success .brand-tagline {
        font-size: .48rem;
        font-weight: 800;
        line-height: 1.08;
        letter-spacing: 0;
        white-space: normal;
    }
}

/* Definitive crest sizing — intentionally last to override the legacy cascade. */
.kiosk-premium .brand-card,
.kiosk-premium .state-success .brand-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    padding: 6px 18px 6px 12px;
}

.kiosk-premium .brand-crest-wrap,
.kiosk-premium .state-success .brand-crest-wrap {
    width: 58px;
    height: 58px;
    overflow: visible;
}

.kiosk-premium .brand-crest-wrap img,
.kiosk-premium .state-success .brand-crest-wrap img {
    width: auto;
    height: 64px;
    max-width: none;
    object-fit: contain;
    object-position: center;
    transform: translate(-50%, calc(-50% + 1px));
}

@media (min-width: 1000px) and (max-width: 1450px) {
    .kiosk-premium .brand-card,
    .kiosk-premium .state-success .brand-card {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 9px;
        padding-inline: 10px 11px;
    }

    .kiosk-premium .brand-crest-wrap,
    .kiosk-premium .state-success .brand-crest-wrap {
        width: 52px;
        height: 54px;
    }

    .kiosk-premium .brand-crest-wrap img,
    .kiosk-premium .state-success .brand-crest-wrap img {
        width: auto;
        height: 56px;
    }
}

@media (min-width: 1000px) and (max-width: 1100px) {
    .kiosk-premium .brand-card,
    .kiosk-premium .state-success .brand-card {
        grid-template-columns: 45px minmax(0, 1fr);
        gap: 7px;
        padding-inline: 8px;
    }

    .kiosk-premium .brand-crest-wrap,
    .kiosk-premium .state-success .brand-crest-wrap {
        width: 45px;
        height: 48px;
    }

    .kiosk-premium .brand-crest-wrap img,
    .kiosk-premium .state-success .brand-crest-wrap img {
        width: auto;
        height: 50px;
    }
}

/* Clear-glass premium palette — intentionally last to override legacy surfaces. */
body.kiosk-premium {
    --kiosk-midnight: #06283f;
    --kiosk-navy: #0a3854;
    --kiosk-ocean: #087f91;
    --kiosk-aqua: #12bfd2;
    --kiosk-gold: #d7ad58;
    --kiosk-ink: #0b2945;
    --kiosk-muted: #627b91;
    background: #dcecf5;
}

.kiosk-premium .kiosk-shell {
    isolation: isolate;
    background:
        radial-gradient(circle at 5% 5%, rgba(13, 184, 207, .21), transparent 27%),
        radial-gradient(circle at 79% -7%, rgba(44, 112, 220, .20), transparent 30%),
        radial-gradient(circle at 53% 105%, rgba(16, 153, 190, .11), transparent 34%),
        linear-gradient(135deg, #e7f5fa 0%, #f7fbfe 49%, #e7f1f8 100%);
}

.kiosk-premium .kiosk-shell::before {
    opacity: .42;
    background:
        linear-gradient(rgba(22, 101, 154, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 101, 154, .035) 1px, transparent 1px);
    background-size: 58px 58px;
}

.kiosk-premium .tech-field {
    opacity: .56;
    background:
        radial-gradient(circle at 17% 16%, rgba(34, 201, 216, .18), transparent 18%),
        radial-gradient(circle at 87% 12%, rgba(35, 101, 211, .13), transparent 21%),
        linear-gradient(112deg, transparent 17%, rgba(255, 255, 255, .40) 48%, transparent 74%);
}

.kiosk-premium .brand-card,
.kiosk-premium .state-success .brand-card,
.kiosk-premium .header-scan-status,
.kiosk-premium .state-success .header-scan-status {
    border-color: rgba(71, 212, 221, .28);
    background:
        linear-gradient(112deg, rgba(5, 37, 60, .99), rgba(7, 57, 81, .98) 58%, rgba(7, 120, 132, .95));
    box-shadow:
        0 14px 30px rgba(7, 43, 65, .20),
        inset 0 1px rgba(255, 255, 255, .16),
        inset 0 -1px rgba(0, 0, 0, .16);
}

.kiosk-premium .clock-card,
.kiosk-premium .state-success .clock-card,
.kiosk-premium .idle-robot-wrap,
.kiosk-premium .state-success .idle-robot-wrap,
.kiosk-premium .featured-student,
.kiosk-premium .state-success .featured-student,
.kiosk-premium .history-heading,
.kiosk-premium .recent-student,
.kiosk-premium .state-success .recent-student {
    border-color: rgba(32, 111, 164, .18);
    background: linear-gradient(145deg, rgba(255, 255, 255, .76), rgba(237, 248, 253, .61));
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    backdrop-filter: blur(20px) saturate(145%);
    box-shadow:
        0 18px 42px rgba(17, 66, 99, .13),
        inset 0 1px rgba(255, 255, 255, .95),
        inset 0 -1px rgba(40, 125, 174, .06);
}

.kiosk-premium .idle-robot-wrap,
.kiosk-premium .state-success .idle-robot-wrap {
    background:
        radial-gradient(circle at 50% 41%, rgba(20, 193, 211, .16), transparent 32%),
        radial-gradient(circle at 3% 100%, rgba(40, 111, 216, .08), transparent 32%),
        linear-gradient(150deg, rgba(255, 255, 255, .79), rgba(232, 248, 251, .64));
}

.kiosk-premium .featured-student,
.kiosk-premium .state-success .featured-student {
    background:
        radial-gradient(circle at 4% 4%, rgba(16, 184, 207, .12), transparent 25%),
        linear-gradient(140deg, rgba(255, 255, 255, .76), rgba(240, 248, 253, .61));
}

.kiosk-premium .featured-photo-wrap {
    border-color: rgba(8, 74, 113, .82);
    background:
        radial-gradient(circle at 50% 35%, rgba(26, 195, 215, .20), transparent 41%),
        linear-gradient(155deg, rgba(226, 246, 252, .88), rgba(237, 244, 252, .72));
    box-shadow:
        0 16px 34px rgba(12, 69, 103, .14),
        inset 0 1px rgba(255, 255, 255, .92);
}

.kiosk-premium .featured-info,
.kiosk-premium .state-success .featured-info {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(242, 249, 253, .57));
}

.kiosk-premium .history-heading {
    background:
        radial-gradient(circle at 2% 4%, rgba(13, 190, 208, .14), transparent 39%),
        linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(235, 248, 252, .62));
}

.kiosk-premium .recent-student,
.kiosk-premium .state-success .recent-student {
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 112, 215, .08), transparent 35%),
        linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(239, 248, 252, .62));
}

.kiosk-premium .recent-photo-wrap,
.kiosk-premium .recent-student.is-empty .recent-photo-wrap {
    border-color: rgba(31, 115, 167, .20);
    background:
        radial-gradient(circle at 50% 34%, rgba(17, 191, 210, .17), transparent 43%),
        linear-gradient(150deg, rgba(225, 244, 250, .86), rgba(238, 246, 252, .72));
}

.kiosk-premium .featured-info dl > div,
.kiosk-premium .recent-student dl > div {
    border-color: rgba(25, 94, 140, .14);
}

.kiosk-premium .history-heading-icon {
    border-color: rgba(11, 143, 158, .14);
    color: #087f91;
    background: rgba(222, 249, 251, .76);
    box-shadow: inset 0 1px rgba(255, 255, 255, .9);
}

/* Pakar Tiko is a discreet creator seal, anchored away from the robot. */
.kiosk-premium .creator-credit,
.kiosk-premium .state-success .creator-credit {
    position: absolute;
    left: clamp(14px, 1.2vw, 22px);
    bottom: clamp(12px, 1.5vh, 20px);
    z-index: 8;
    display: grid;
    width: clamp(46px, 3.5vw, 58px);
    margin: 0;
    padding: 2px;
    place-items: center;
    border: 1px solid rgba(24, 100, 145, .18);
    border-radius: 50%;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 10px 22px rgba(8, 49, 75, .18), inset 0 1px rgba(255, 255, 255, .95);
    filter: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.kiosk-premium .creator-credit img,
.kiosk-premium .state-success .creator-credit img {
    width: 100%;
    height: auto;
}

@media (min-width: 1000px) and (max-height: 760px) {
    .kiosk-premium .creator-credit,
    .kiosk-premium .state-success .creator-credit {
        left: 12px;
        bottom: 10px;
        width: 44px;
    }
}

/* Keep the clock identical after a successful scan; legacy success rules hid it. */
.kiosk-premium .clock-card,
.kiosk-premium .state-success .clock-card {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    justify-self: stretch;
    align-items: center;
    gap: 11px;
    width: 100%;
    max-width: none;
    padding: 6px 16px;
}

.kiosk-premium .analog-clock,
.kiosk-premium .state-success .analog-clock {
    display: grid;
    width: 50px;
    height: 50px;
}

.kiosk-premium .clock-copy,
.kiosk-premium .state-success .clock-copy {
    display: grid;
    width: 100%;
    min-width: 0;
    place-content: center;
    justify-self: stretch;
    text-align: center;
}

@media (min-width: 1000px) and (max-width: 1450px) {
    .kiosk-premium .clock-card,
    .kiosk-premium .state-success .clock-card {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 9px;
        padding-inline: 12px;
    }

    .kiosk-premium .analog-clock,
    .kiosk-premium .state-success .analog-clock {
        width: 46px;
        height: 46px;
    }
}

@media (min-width: 1000px) and (max-width: 1100px) {
    .kiosk-premium .clock-card,
    .kiosk-premium .state-success .clock-card {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 7px;
        padding-inline: 9px;
    }

    .kiosk-premium .analog-clock,
    .kiosk-premium .state-success .analog-clock {
        width: 42px;
        height: 42px;
    }
}
