:root {
    color-scheme: dark;
    --ink: #f7fbff;
    --muted: #9db2d0;
    --cyan: #39d9ef;
    --blue: #2e74ff;
    --violet: #9b76ff;
    --line: rgba(178, 210, 255, .16);
    --panel: rgba(5, 19, 42, .77);
    --panel-light: rgba(20, 47, 86, .72);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-width: 320px; height: 100%; margin: 0; }
body {
    overflow: hidden;
    background: #07162e;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
button { color: inherit; font: inherit; }
.kiosk-shell {
    height: 100svh;
    min-height: 520px;
    padding: clamp(12px, 1.45vw, 24px);
    display: grid;
    grid-template-rows: 66px minmax(0, 1fr) 24px;
    gap: clamp(10px, 1.25vw, 19px);
    isolation: isolate;
    position: relative;
}
.kiosk-shell::before,
.kiosk-shell::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.kiosk-shell::before {
    background: url("../img/backgroundPrezenzapp.jpg") center 47% / cover no-repeat;
    transform: scale(1.01);
}
.kiosk-shell::after {
    background:
        linear-gradient(100deg, rgba(4, 14, 34, .82) 0%, rgba(5, 22, 52, .59) 46%, rgba(6, 17, 43, .59) 100%),
        linear-gradient(0deg, rgba(2, 12, 30, .45), transparent 34%, rgba(3, 14, 35, .22));
}
.glass {
    background: linear-gradient(145deg, rgba(10, 29, 59, .80), rgba(9, 19, 43, .84));
    border: 1px solid rgba(182, 218, 255, .2);
    box-shadow: 0 22px 60px rgba(1, 8, 24, .34), inset 0 1px rgba(255,255,255,.04);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(189, 217, 255, .16);
    padding: 0 4px 10px;
    min-width: 0;
}
.brand-area, .site-identity, .top-actions { display: flex; align-items: center; min-width: 0; }
.brand-area { gap: clamp(9px, 1vw, 16px); }
.brand-logo { display: block; width: clamp(142px, 15vw, 205px); max-height: 42px; object-fit: contain; object-position: left center; }
.brand-divider { height: 29px; width: 1px; background: rgba(188, 218, 255, .2); }
.kiosk-label { color: #dbeaff; font-size: 10px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.kiosk-label span { display: block; margin-top: 4px; color: #7bc9fa; font-size: 8px; letter-spacing: .1em; }
.site-identity { justify-self: center; gap: 9px; color: #d7eaff; }
.location-pin { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(57,217,239,.25); border-radius: 11px; background: rgba(12, 57, 93, .42); color: var(--cyan); }
.location-pin svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.site-identity strong, .site-identity small { display: block; }
.site-identity strong { font-size: 12px; font-weight: 700; }
.site-identity small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.top-actions { justify-self: end; gap: 9px; }
.preview-status { height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid rgba(57,217,239,.24); border-radius: 11px; background: rgba(4, 37, 61, .62); color: #8eeefa; font-size: 10px; font-weight: 700; white-space: nowrap; }
.preview-status i, .shift-chip i, .eyebrow i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px rgba(57,217,239,.75); }
.supervisor-button, .secondary-button, .install-button {
    min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0 12px; border: 1px solid rgba(185, 212, 255, .2); border-radius: 11px;
    background: rgba(5, 18, 39, .68); color: #dcecff; font-size: 10px; font-weight: 700; cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.supervisor-button:hover, .secondary-button:hover, .install-button:hover { border-color: rgba(57,217,239,.58); background: rgba(20, 55, 92, .8); }
.supervisor-button:active, .secondary-button:active, .install-button:active { transform: scale(.98); }
.supervisor-button svg, .secondary-button svg, .install-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.install-button { border-color: rgba(57,217,239,.3); color: #9aeefa; }
.install-button[hidden] { display: none; }

.main-grid { min-height: 0; display: grid; grid-template-columns: minmax(285px, .74fr) minmax(0, 1.42fr); gap: clamp(11px, 1.4vw, 22px); }
.left-column { min-height: 0; display: grid; grid-template-rows: minmax(155px, .72fr) minmax(0, 1.28fr); gap: clamp(10px, 1.1vw, 16px); }
.clock-card, .recent-card, .attendance-card { min-width: 0; min-height: 0; border-radius: 19px; overflow: hidden; }
.clock-card { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(14px, 1.4vw, 21px); position: relative; }
.clock-card::after { content: ""; position: absolute; width: 210px; height: 210px; top: -140px; right: -75px; border-radius: 50%; background: rgba(42, 139, 244, .15); filter: blur(5px); pointer-events: none; }
.shift-row, .schedule-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shift-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(57,217,239,.24); border-radius: 8px; background: rgba(6, 36, 66, .7); color: #94eefa; font-size: 10px; font-weight: 700; }
.shift-chip i { width: 6px; height: 6px; }
.timezone { color: #9cb0ca; font: 600 9px ui-monospace, monospace; letter-spacing: .08em; }
.clock-block { padding: 5px 0; }
.clock-time { display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.clock-time span { font: 800 clamp(37px, 4.05vw, 64px)/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: -.075em; text-shadow: 0 0 30px rgba(71, 177, 255, .21); }
.clock-time small { color: #76e8f3; font-size: clamp(12px, 1.2vw, 18px); font-weight: 800; }
.clock-date { margin-top: 8px; color: #d1deef; font-size: clamp(10px, 1vw, 13px); }
.schedule-row { padding-top: 10px; border-top: 1px solid rgba(183,215,255,.14); color: #8de6ef; font-size: 10px; font-weight: 700; }
.schedule-row span { display: inline-flex; align-items: center; gap: 7px; }
.schedule-row svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.schedule-row strong { color: #b9cee9; font: 600 10px ui-monospace, monospace; }

.recent-card { padding: clamp(13px, 1.2vw, 18px); display: flex; flex-direction: column; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.eyebrow { color: #8ca5c6; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.section-heading .eyebrow { display: flex; align-items: center; gap: 7px; }
.section-heading .eyebrow i { width: 6px; height: 6px; }
.section-heading h2, .attendance-heading h1, .punch-preview h2 { margin: 5px 0 0; color: #eff7ff; font-size: clamp(15px, 1.4vw, 20px); line-height: 1.15; letter-spacing: -.025em; }
.today-count { display: flex; align-items: center; gap: 4px; padding: 5px 8px; border: 1px solid rgba(175,207,255,.18); border-radius: 8px; background: rgba(5, 21, 44, .55); color: #d7e9ff; font: 700 10px ui-monospace, monospace; white-space: nowrap; }
.today-count small { color: var(--muted); font: 600 8px Inter, sans-serif; text-transform: uppercase; }
.checkin-list { min-height: 0; flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 7px; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(108, 169, 231, .4) transparent; }
.checkin-row { min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 7px 8px; border: 1px solid rgba(179,211,255,.12); border-radius: 11px; background: rgba(4, 17, 38, .43); }
.avatar { width: 31px; height: 31px; display: grid; flex: 0 0 31px; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: white; font-size: 9px; font-weight: 800; }
.avatar-cyan { background: linear-gradient(145deg, #0891b2, #2563eb); }
.avatar-amber { background: linear-gradient(145deg, #d97706, #b45309); }
.avatar-violet { background: linear-gradient(145deg, #7c3aed, #4f46e5); }
.avatar-emerald { background: linear-gradient(145deg, #059669, #0e7490); }
.checkin-person { min-width: 0; flex: 1; }
.checkin-person strong, .checkin-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkin-person strong { color: #e5f1ff; font-size: 10px; }
.checkin-person small { margin-top: 3px; color: #93aac8; font-size: 9px; }
.checkin-row time { color: #c5d7ef; font: 600 10px ui-monospace, monospace; }
.demo-note { margin: 8px 0 0; color: #718aa9; font-size: 8px; text-align: right; }

.attendance-card { display: flex; flex-direction: column; padding: clamp(14px, 1.45vw, 22px); position: relative; }
.attendance-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 13px; }
.attendance-heading h1 { font-size: clamp(18px, 1.7vw, 24px); }
.flow-step { display: inline-flex; align-items: center; gap: 7px; color: #87a0c1; font-size: 9px; white-space: nowrap; }
.flow-step b { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid rgba(164,197,239,.2); border-radius: 50%; font-size: 9px; }
.flow-step b:first-child { border-color: rgba(57,217,239,.4); background: rgba(21,132,165,.2); color: #8ef2fb; }
.flow-step i { width: 18px; height: 1px; background: rgba(168,200,239,.25); }
.method-tabs { min-height: 46px; display: grid; grid-template-columns: 1.25fr .75fr 1fr; gap: 5px; padding: 4px; border: 1px solid rgba(172,207,255,.13); border-radius: 12px; background: rgba(3, 13, 31, .65); }
.method-tab { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #9db1ce; font-size: clamp(10px, .9vw, 12px); font-weight: 700; cursor: pointer; transition: .16s ease; }
.method-tab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.method-tab:hover { color: #e7f2ff; background: rgba(116,158,211,.1); }
.method-tab.active { border-color: rgba(103,221,247,.27); background: linear-gradient(110deg, rgba(36,103,235,.9), rgba(15,177,202,.82)); color: white; box-shadow: 0 5px 18px rgba(9, 135, 215, .2); }
.method-panels { min-height: 0; flex: 1; display: flex; flex-direction: column; padding-top: 10px; }
.method-panel { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.method-panel[hidden], .punch-preview[hidden], .modal-backdrop[hidden] { display: none !important; }
.camera-stage { min-height: 180px; flex: 1; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(133,185,234,.22); border-radius: 15px; background: radial-gradient(ellipse at 50% 53%, rgba(17,103,146,.26), transparent 39%), linear-gradient(140deg, rgba(2,13,29,.94), rgba(4,27,48,.91)); }
.camera-stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(98,159,218,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(98,159,218,.045) 1px, transparent 1px); background-size: 28px 28px; opacity: .5; }
.camera-topline { position: absolute; z-index: 2; top: 10px; left: 11px; right: 11px; display: flex; align-items: center; justify-content: space-between; color: #7fa0c2; font: 700 8px ui-monospace, monospace; letter-spacing: .06em; }
.camera-topline span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.camera-topline i { width: 6px; height: 6px; border-radius: 50%; background: #efb84c; box-shadow: 0 0 8px rgba(239,184,76,.5); }
.camera-guide { width: clamp(115px, 17vh, 176px); aspect-ratio: .78; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -55%); display: grid; place-items: center; border: 1px dashed rgba(57,217,239,.37); border-radius: 48% 48% 45% 45%; background: radial-gradient(ellipse, rgba(22,119,153,.18), transparent 70%); }
.camera-guide svg { width: 39%; fill: rgba(105,165,203,.2); stroke: rgba(117,194,223,.42); stroke-width: 1.2; }
.corner { width: 19px; height: 19px; position: absolute; border-color: #3dd8e8; border-style: solid; opacity: .9; }
.corner-tl { top: -2px; left: 12px; border-width: 2px 0 0 2px; border-radius: 5px 0 0; }
.corner-tr { top: -2px; right: 12px; border-width: 2px 2px 0 0; border-radius: 0 5px 0 0; }
.corner-bl { bottom: -2px; left: 12px; border-width: 0 0 2px 2px; border-radius: 0 0 0 5px; }
.corner-br { bottom: -2px; right: 12px; border-width: 0 2px 2px 0; border-radius: 0 0 5px; }
.scan-line { position: absolute; left: 11%; right: 11%; top: 28%; height: 2px; background: linear-gradient(90deg, transparent, #3ce7ef, transparent); box-shadow: 0 0 16px rgba(57,217,239,.9); animation: scan 3.1s ease-in-out infinite; opacity: .72; }
@keyframes scan { 0%, 100% { transform: translateY(-18px); } 50% { transform: translateY(95px); } }
.camera-copy { position: absolute; z-index: 2; bottom: 12px; left: 10px; right: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.camera-copy strong { color: #e8f4ff; font-size: 10px; }
.camera-copy span { color: #829cbb; font-size: 8px; }
.identify-actions { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 12px; margin-top: 10px; }
.primary-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 1px solid rgba(130,230,255,.34); border-radius: 11px; background: linear-gradient(105deg, #0fb6d0, #3168ee); color: #06172c; font-size: 12px; font-weight: 900; cursor: pointer; box-shadow: 0 8px 22px rgba(14,125,221,.2); transition: filter .15s ease, transform .15s ease; }
.primary-button:hover { filter: brightness(1.12); }
.primary-button:active { transform: scale(.985); }
.primary-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.preview-link { justify-self: end; border: 0; background: transparent; color: #93ddeb; font-size: 9px; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(147,221,235,.4); text-underline-offset: 3px; cursor: pointer; }
.flow-hint { margin: 9px 0 0; color: #849bb8; font-size: 9px; text-align: center; }
.flow-hint button { padding: 0; border: 0; background: none; color: #74dff0; font-size: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

.alternate-stage { min-height: 0; flex: 1; overflow: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; text-align: center; }
.alternate-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(74,209,231,.3); border-radius: 14px; background: rgba(15,121,161,.16); color: #73e3f3; }
.alternate-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.alternate-stage h2 { margin: 9px 0 4px; color: #f0f7ff; font-size: 17px; }
.alternate-stage p { max-width: 390px; margin: 0 auto 12px; color: #90a8c7; font-size: 10px; line-height: 1.5; }
.pin-display { width: min(250px, 90%); display: flex; justify-content: center; gap: 12px; margin: 5px 0 10px; padding: 9px 12px; border: 1px solid rgba(143,188,234,.22); border-radius: 10px; background: rgba(2,13,30,.62); color: #51d9eb; font-size: 15px; }
.keypad { width: min(265px, 90%); display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.keypad button { min-height: 33px; border: 1px solid rgba(161,198,239,.15); border-radius: 8px; background: rgba(24,50,84,.65); color: #e5f0ff; font-size: 12px; font-weight: 700; cursor: pointer; }
.keypad button:hover { border-color: rgba(57,217,239,.42); background: rgba(29,75,117,.78); }
.keypad button.key-secondary { color: #9db4d2; font-size: 9px; }
.pin-submit { width: min(265px, 90%); min-height: 38px; margin-top: 8px; font-size: 10px; }
.qr-placeholder { width: 88px; height: 88px; display: grid; place-items: center; position: relative; border: 1px solid rgba(79,208,237,.5); border-radius: 12px; background-color: #eaf8ff; background-image: linear-gradient(90deg, #092143 20%, transparent 20%, transparent 40%, #092143 40%, #092143 60%, transparent 60%), linear-gradient(#092143 20%, transparent 20%, transparent 40%, #092143 40%, #092143 60%, transparent 60%); background-size: 21px 21px; box-shadow: 0 0 25px rgba(31,182,216,.13); }
.qr-placeholder span { padding: 7px 8px; border: 2px solid #eaf8ff; border-radius: 6px; background: #0c2342; color: #a1f1fb; font: 800 11px ui-monospace, monospace; }
.qr-placeholder i { position: absolute; width: 100%; height: 2px; background: #36d8ef; box-shadow: 0 0 9px #36d8ef; }
.qr-stage h2 { margin-top: 13px; }
.qr-stage .secondary-button { min-height: 38px; }
.qr-stage .secondary-button span { color: #7890af; font-size: 8px; }

.punch-preview { position: absolute; z-index: 5; inset: auto clamp(14px,1.45vw,22px) clamp(14px,1.45vw,22px); padding: 13px 14px 10px; border: 1px solid rgba(75,215,232,.35); border-radius: 14px; background: rgba(4,17,38,.97); box-shadow: 0 18px 54px rgba(0,0,0,.44); animation: pop-in .18s ease-out; }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
.punch-preview-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.step-badge { width: 25px; height: 25px; display: grid; flex: 0 0 25px; place-items: center; border: 1px solid rgba(57,217,239,.4); border-radius: 50%; background: rgba(12,126,161,.2); color: #91eff8; font-size: 11px; font-weight: 800; }
.punch-preview h2 { margin-top: 3px; font-size: 13px; }
.close-preview, .modal-close { margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(173,207,248,.16); border-radius: 8px; background: rgba(255,255,255,.04); color: #b5c8df; font-size: 19px; cursor: pointer; }
.punch-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.punch-option { min-height: 50px; display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid rgba(161,198,239,.19); border-radius: 9px; background: rgba(17,42,73,.72); color: #e5f2ff; cursor: pointer; }
.punch-option:hover { border-color: rgba(70,220,239,.55); background: rgba(21,68,104,.8); }
.punch-option span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: rgba(70,219,239,.12); color: #58deef; font-size: 15px; }
.punch-option strong { font-size: clamp(8px, .75vw, 10px); text-align: left; }
.option-meal span { background: rgba(244,183,73,.14); color: #f4bd5c; }
.option-return span { background: rgba(116,151,255,.14); color: #9bb1ff; }
.option-exit span { background: rgba(224,106,140,.14); color: #f28ca9; }
.preview-disclaimer { margin: 7px 0 0; color: #758aa7; font-size: 8px; text-align: right; }

.bottom-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; color: #7590b0; font-size: 8px; letter-spacing: .08em; }
.bottom-bar i { color: #4bd5e5; font-style: normal; }
.bottom-bar span:last-child { color: #92a8c4; letter-spacing: 0; }

.rotate-notice { display: none; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 28px; max-width: min(90vw, 480px); padding: 11px 16px; border: 1px solid rgba(101,215,236,.35); border-radius: 10px; background: rgba(4,20,42,.96); color: #dff8ff; font-size: 11px; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.35); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal-backdrop { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,8,21,.72); backdrop-filter: blur(9px); }
.admin-modal { width: min(440px, 100%); position: relative; padding: 24px; border: 1px solid rgba(135,204,244,.28); border-radius: 18px; background: linear-gradient(145deg, rgba(12,35,67,.98), rgba(6,19,41,.99)); box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.admin-modal .modal-close { position: absolute; top: 15px; right: 15px; }
.admin-modal h2 { margin: 8px 0; font-size: 20px; }
.modal-description, .modal-footnote { color: #95aac6; font-size: 10px; line-height: 1.55; }
.pending-item { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; padding: 11px 12px; border: 1px solid rgba(173,207,248,.13); border-radius: 10px; background: rgba(3,15,33,.42); }
.pending-item span { color: #d9e8f9; font-size: 10px; font-weight: 700; }
.pending-item strong { color: #f0c16b; font-size: 10px; }
.pending-item em { color: #88a1c0; font-size: 9px; font-style: normal; font-weight: 500; }
.modal-footnote { margin: 12px 0 0; }
.modal-done { width: 100%; margin-top: 7px; }

@media (max-width: 1050px) and (orientation: landscape) {
    .kiosk-shell { grid-template-rows: 58px minmax(0, 1fr) 20px; gap: 10px; padding: 11px 14px; }
    .main-grid { grid-template-columns: minmax(240px, .7fr) minmax(0, 1.35fr); gap: 11px; }
    .left-column { grid-template-rows: minmax(142px, .72fr) minmax(0, 1.28fr); gap: 9px; }
    .attendance-card { padding: 13px; }
    .clock-card, .recent-card { padding: 13px; }
    .clock-time span { font-size: clamp(34px, 5vw, 48px); }
    .checkin-row { min-height: 42px; padding: 5px 7px; }
    .avatar { width: 27px; height: 27px; flex-basis: 27px; }
    .flow-step { font-size: 8px; }
}

@media (max-width: 900px) and (orientation: landscape) {
    .preview-status { display: none; }
    .install-button { padding-right: 9px; padding-left: 9px; }
}

@media (max-height: 620px) and (orientation: landscape) {
    .kiosk-shell { min-height: 0; grid-template-rows: 52px minmax(0, 1fr) 16px; gap: 7px; padding: 8px 11px; }
    .topbar { padding-bottom: 6px; }
    .brand-logo { width: 138px; max-height: 32px; }
    .preview-status, .supervisor-button, .install-button { min-height: 30px; height: 30px; }
    .left-column { grid-template-rows: minmax(126px, .7fr) minmax(0, 1.3fr); gap: 7px; }
    .clock-card, .recent-card, .attendance-card { border-radius: 14px; }
    .clock-card { padding: 11px 13px; }
    .clock-time span { font-size: clamp(31px, 4vw, 43px); }
    .clock-date { margin-top: 4px; font-size: 9px; }
    .schedule-row { padding-top: 6px; font-size: 9px; }
    .recent-card { padding: 10px 12px; }
    .section-heading { margin-bottom: 5px; }
    .section-heading h2 { font-size: 14px; }
    .checkin-list { gap: 4px; }
    .checkin-row { min-height: 34px; padding: 3px 6px; }
    .avatar { width: 24px; height: 24px; flex-basis: 24px; font-size: 8px; }
    .checkin-person strong, .checkin-row time { font-size: 8px; }
    .checkin-person small { margin-top: 1px; font-size: 7px; }
    .demo-note { margin-top: 4px; font-size: 7px; }
    .attendance-card { padding: 10px 12px; }
    .attendance-heading { margin-bottom: 7px; }
    .attendance-heading h1 { font-size: 17px; }
    .method-tabs { min-height: 38px; }
    .method-panels { padding-top: 6px; }
    .camera-stage { min-height: 120px; }
    .camera-guide { width: clamp(90px, 15vh, 120px); }
    .camera-copy { bottom: 7px; }
    .camera-copy strong { font-size: 9px; }
    .camera-copy span, .camera-topline { font-size: 7px; }
    .identify-actions { margin-top: 7px; }
    .primary-button { min-height: 38px; }
    .flow-hint { margin-top: 5px; font-size: 8px; }
    .punch-preview { inset: auto 12px 12px; padding: 9px 11px 7px; }
    .punch-option { min-height: 41px; padding: 5px 7px; }
}
@media (max-width: 760px) and (orientation: landscape) {
    .brand-divider, .kiosk-label, .site-identity, .preview-status { display: none; }
    .main-grid { grid-template-columns: minmax(190px, .62fr) minmax(0, 1.5fr); }
    .left-column { grid-template-rows: minmax(112px, .68fr) minmax(0, 1.32fr); }
    .clock-time span { font-size: clamp(27px, 5vw, 36px); }
    .shift-chip { font-size: 8px; }
    .section-heading h2 { font-size: 13px; }
    .checkin-row { gap: 5px; }
    .checkin-person small { max-width: 82px; }
    .flow-step { display: none; }
    .method-tab { gap: 4px; padding: 0 4px; font-size: 9px; }
    .method-tab svg { width: 13px; height: 13px; }
    .identify-actions { grid-template-columns: 1fr; gap: 4px; }
    .preview-link { justify-self: center; }
}
@media (orientation: portrait) {
    .kiosk-shell { display: none; }
    .rotate-notice { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 28px; background: linear-gradient(rgba(3,14,36,.78), rgba(3,14,36,.92)), url("../img/backgroundPrezenzapp.jpg") center / cover; text-align: center; }
    .rotate-icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(57,217,239,.35); border-radius: 17px; color: #71e5f3; font-size: 32px; }
    .rotate-notice strong { font-size: 17px; }
    .rotate-notice span { max-width: 260px; color: #a5bad4; font-size: 11px; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
