:root {
  --ink: #131927;
  --muted: #687083;
  --paper: #fff;
  --canvas: #f5f6f8;
  --canvas-2: #eceef2;
  --line: #e1e4ea;
  --navy: #0b1220;
  --navy-2: #151f32;
  --gold: #eba821;
  --gold-2: #ffca45;
  --gold-soft: #fff6df;
  --green: #147a52;
  --green-soft: #e4f6ee;
  --amber: #a96706;
  --amber-bg: #fff1d6;
  --red: #b83842;
  --red-bg: #fdebed;
  --blue: #236a95;
  --blue-bg: #e7f3fa;
  --shadow-sm: 0 7px 22px rgba(17, 25, 40, .06);
  --shadow: 0 18px 50px rgba(17, 25, 40, .08);
  --radius: 18px;
  --radius-lg: 26px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { min-height: 100vh; margin: 0; background: linear-gradient(145deg, #f7f8fa 0, var(--canvas) 50%, #eff1f4 100%); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
::selection { color: var(--navy); background: #f9d67e; }
:focus-visible { outline: 3px solid rgba(235, 168, 33, .4); outline-offset: 2px; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(1.7rem, 5vw, 2.35rem); line-height: 1.08; letter-spacing: -.045em; }
h2 { margin-bottom: 15px; font-size: clamp(1.15rem, 3vw, 1.35rem); line-height: 1.2; letter-spacing: -.03em; }
h3 { font-size: 1rem; }
.eyebrow { margin: 0 0 7px; color: #ad7210; font-size: .7rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.lead, .muted { color: var(--muted); }
.lead { margin-bottom: 28px; line-height: 1.6; }

/* Sign in */
.guest-shell { min-height: 100vh; display: grid; background: var(--navy); }
.guest-visual { display: none; position: relative; overflow: hidden; padding: clamp(40px, 5vw, 78px); color: white; background: radial-gradient(circle at 82% 18%, rgba(235,168,33,.22), transparent 24rem), radial-gradient(circle at 12% 92%, rgba(49,73,112,.55), transparent 26rem), var(--navy); }
.guest-visual::before { content: ""; position: absolute; right: -10rem; bottom: -13rem; width: 34rem; height: 34rem; border: 1px solid rgba(255,255,255,.08); border-radius: 48%; transform: rotate(26deg); }
.guest-visual::after { content: ""; position: absolute; right: -4rem; bottom: -8rem; width: 23rem; height: 23rem; border: 1px solid rgba(235,168,33,.22); border-radius: 44%; transform: rotate(26deg); }
.guest-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 15px; }
.guest-brand strong, .guest-brand small { display: block; }
.guest-brand strong { font-size: 1rem; letter-spacing: .025em; }
.guest-brand small { margin-top: 3px; color: #9ca8ba; font-size: .72rem; }
.guest-logo { width: 62px; height: 62px; display: grid; place-items: center; overflow: hidden; background: #05080e; border: 1px solid rgba(235,168,33,.34); border-radius: 17px; box-shadow: 0 14px 40px rgba(0,0,0,.34); }
.guest-logo img { width: 100%; height: 100%; object-fit: cover; }
.guest-message { position: relative; z-index: 1; max-width: 570px; margin: auto 0; }
.guest-message .eyebrow { color: var(--gold-2); }
.guest-message h2 { max-width: 520px; margin-bottom: 22px; font-size: clamp(2.8rem, 5.2vw, 5rem); line-height: .98; letter-spacing: -.065em; }
.guest-message p:last-child { max-width: 520px; color: #aeb8c8; font-size: 1.05rem; line-height: 1.7; }
.guest-points { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px 24px; color: #c9d0dc; font-size: .76rem; font-weight: 700; }
.guest-points span::before { content: "✓"; margin-right: 8px; color: var(--gold-2); }
.login-panel { display: grid; place-items: center; min-height: 100vh; padding: 22px 16px; background: linear-gradient(180deg, #f7f7f9, #eff1f4); }
.login-card { width: min(100%, 460px); padding: 26px 22px; background: var(--paper); border: 1px solid rgba(18,25,39,.08); border-radius: 28px; box-shadow: 0 28px 80px rgba(12,18,31,.14); }
.login-brand { margin-bottom: 32px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: -.02em; }
.brand-mark { flex: 0 0 auto; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; background: var(--navy); color: white; box-shadow: 0 8px 22px rgba(4,9,18,.24); }
.brand-mark.logo { overflow: hidden; background: #05080e; border: 1px solid rgba(235,168,33,.2); }
.brand-mark.logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { max-width: 155px; color: white; font-size: .8rem; line-height: 1.2; }
.brand-copy small { margin-top: 4px; color: #818ca0; font-size: .61rem; font-weight: 600; letter-spacing: .04em; }
.password-field { position: relative; }
.password-field input { padding-right: 68px; }
.password-toggle { position: absolute; top: 50%; right: 7px; min-height: 34px; padding: 6px 9px; color: #596274; background: transparent; border-radius: 8px; transform: translateY(-50%); font-size: .72rem; box-shadow: none; }
.password-toggle:hover { color: var(--ink); background: #f0f2f5; transform: translateY(-50%); }
.login-submit { min-height: 53px; margin-top: 5px; }
.login-security { margin: 19px 0 0; color: #848b99; font-size: .69rem; text-align: center; }
.login-security span { margin-right: 6px; color: var(--green); font-size: .55rem; }

/* Forms */
.field { display: grid; gap: 7px; margin-bottom: 17px; }
.field label, .label { color: #303849; font-size: .79rem; font-weight: 780; }
.help { color: var(--muted); font-size: .73rem; line-height: 1.5; }
.optional { margin-left: 5px; color: #8a91a0; font-size: .68rem; font-weight: 600; }
input, select, textarea { width: 100%; min-height: 49px; padding: 11px 13px; color: var(--ink); background: #fbfbfc; border: 1px solid #d6d9e0; border-radius: 11px; outline: none; transition: border-color .16s, box-shadow .16s, background .16s; }
textarea { min-height: 110px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #b9bec8; }
input:focus, select:focus, textarea:focus { background: white; border-color: #bf8420; box-shadow: 0 0 0 3px rgba(235,168,33,.14); }
input:disabled { color: #9ba1ac; background: #eff1f3; }
input[type="checkbox"] { width: 19px; min-height: 19px; accent-color: var(--gold); }
.checkbox { display: flex; align-items: center; gap: 9px; min-height: 40px; font-size: .83rem; font-weight: 680; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 65px; }
.input-suffix span { position: absolute; top: 50%; right: 13px; color: #7c8493; font-size: .7rem; transform: translateY(-50%); }

.button, button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 11px; cursor: pointer; font-weight: 780; transition: transform .14s, box-shadow .14s, background .14s, color .14s; }
.button:hover, button:hover { transform: translateY(-1px); }
.button:active, button:active { transform: translateY(0); }
.button-primary { color: #151006; background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 9px 22px rgba(184,122,12,.22); }
.button-primary:hover { background: linear-gradient(135deg, #ffd05c, #f3b32d); box-shadow: 0 12px 28px rgba(184,122,12,.28); }
.button-secondary { color: #225a47; background: var(--green-soft); }
.button-danger { color: #a52d37; background: var(--red-bg); }
.button-ghost { color: #354052; background: white; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(17,25,40,.03); }
.button-small { min-height: 36px; padding: 7px 11px; border-radius: 9px; font-size: .76rem; }
.button-block { width: 100%; }
button:disabled { cursor: wait; opacity: .58; transform: none; }

/* Main shell */
.app-shell { min-height: 100vh; }
.sidebar { display: none; }
.main { min-width: 0; padding: 19px 15px 94px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; max-width: 1420px; margin: 0 auto 22px; }
.topbar h1 { margin: 0; font-size: clamp(1.4rem, 4vw, 2.1rem); }
.user-chip { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 5px; border-radius: 13px; }
.user-chip:hover { background: white; box-shadow: var(--shadow-sm); }
.avatar { flex: 0 0 auto; width: 39px; height: 39px; display: grid; place-items: center; color: #201605; background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-radius: 12px; font-weight: 900; }
.user-chip-text { display: none; }
.content { width: 100%; max-width: 1420px; margin: 0 auto; }
.bottom-nav { position: fixed; z-index: 20; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px max(6px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(14,21,34,.06); backdrop-filter: blur(18px); }
.bottom-nav a { min-height: 52px; display: grid; place-items: center; align-content: center; gap: 2px; color: #7a8290; border-radius: 10px; font-size: .61rem; font-weight: 720; }
.bottom-nav .nav-symbol { font-size: 1rem; }
.bottom-nav a.active { color: #8f5d07; background: var(--gold-soft); }

.card { background: rgba(255,255,255,.96); border: 1px solid rgba(18,25,39,.08); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 19px; }
.section { margin-bottom: 21px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.section-head h2 { margin: 0; }

/* Dashboard */
.dashboard-welcome { position: relative; overflow: hidden; display: grid; gap: 20px; padding: 24px 21px; color: white; background: radial-gradient(circle at 90% 10%, rgba(235,168,33,.2), transparent 18rem), linear-gradient(135deg, var(--navy), #18253a); border-radius: 23px; box-shadow: 0 20px 48px rgba(8,14,26,.18); }
.dashboard-welcome::after { content: "AR"; position: absolute; right: -16px; bottom: -48px; color: rgba(255,255,255,.035); font-size: 10rem; font-weight: 950; letter-spacing: -.12em; }
.dashboard-welcome > * { position: relative; z-index: 1; }
.dashboard-welcome .eyebrow { color: var(--gold-2); }
.dashboard-welcome h2 { margin-bottom: 8px; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.dashboard-welcome p:last-child { margin: 0; color: #aeb7c6; font-size: .86rem; line-height: 1.55; }
.dashboard-welcome .button { justify-self: start; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.stat { position: relative; overflow: hidden; min-height: 112px; padding: 17px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 18px rgba(17,25,40,.035); }
.stat::after { content: ""; position: absolute; right: -17px; bottom: -22px; width: 56px; height: 56px; background: #f2f3f6; border-radius: 50%; }
.stat-value { position: relative; z-index: 1; display: block; margin-bottom: 7px; font-size: 1.85rem; font-weight: 900; letter-spacing: -.05em; }
.stat-label { position: relative; z-index: 1; color: var(--muted); font-size: .73rem; font-weight: 720; }
.stat.warn { background: var(--amber-bg); border-color: #f0d39c; }
.stat.warn::after { background: rgba(235,168,33,.14); }
.stat.danger { background: var(--red-bg); border-color: #f1cbd0; }
.stat.danger::after { background: rgba(184,56,66,.1); }
.action-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.action-tile { min-height: 88px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 15px; background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 5px 17px rgba(17,25,40,.035); transition: transform .16s, box-shadow .16s, border-color .16s; }
.action-tile:hover { border-color: #e4c174; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.action-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #825506; background: var(--gold-soft); border-radius: 12px; font-size: 1.05rem; }
.action-tile strong, .action-tile small { display: block; }
.action-tile strong { margin-bottom: 3px; font-size: .86rem; }
.action-tile small { color: var(--muted); font-size: .69rem; }
.tile-arrow { color: #a5aab4; }

/* Staff experience */
.hero { position: relative; overflow: hidden; padding: 25px 22px; color: white; background: radial-gradient(circle at 90% 15%, rgba(235,168,33,.2), transparent 15rem), linear-gradient(135deg, var(--navy), #1b2b43); border-radius: 24px; box-shadow: 0 18px 42px rgba(9,15,27,.2); }
.hero::after { content: ""; position: absolute; right: -80px; bottom: -110px; width: 210px; height: 210px; border: 35px solid rgba(255,255,255,.05); border-radius: 50%; }
.hero .eyebrow { color: var(--gold-2); }
.hero .muted, .today-date { color: #aeb8c7; }
.today-date { margin-bottom: 20px; font-size: .83rem; }
.status-line { display: flex; align-items: center; gap: 10px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #55d69a; box-shadow: 0 0 0 5px rgba(85,214,154,.13); }
.attendance-actions { display: grid; grid-template-columns: 1fr; gap: 11px; }
.attendance-actions .button { min-height: 64px; border-radius: 15px; font-size: .95rem; }
.check-button { min-height: 76px !important; color: #281c06; background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 12px 26px rgba(214,146,34,.23); }
.check-button.out { color: #15583e; background: var(--green-soft); }

/* Status, tables and notices */
.badge { max-width: 100%; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: .66rem; font-weight: 850; letter-spacing: .025em; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.badge-success { color: #11643f; background: var(--green-soft); }
.badge-warning { color: #8b5707; background: var(--amber-bg); }
.badge-danger { color: #a42d37; background: var(--red-bg); }
.badge-info { color: var(--blue); background: var(--blue-bg); }
.badge-muted { color: #68717f; background: #eef0f3; }
.badge-neutral { color: #4d5665; background: #f0f2f4; }
.alert { margin-bottom: 18px; padding: 13px 15px; border-radius: 12px; font-size: .83rem; font-weight: 680; line-height: 1.45; }
.alert-success { color: #165e40; background: var(--green-soft); border: 1px solid #bfe7d5; }
.alert-error { color: #99313a; background: var(--red-bg); border: 1px solid #f0c9ce; }
.notice { padding: 14px; color: #65430d; background: var(--amber-bg); border-left: 4px solid var(--gold); border-radius: 10px; font-size: .81rem; line-height: 1.5; }
.notice-brand { margin-top: 16px; border-left: 0; }
.notice-brand a { color: #76500b; text-decoration: underline; }
.table-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .79rem; }
th { padding: 13px 14px; color: #687180; background: #f7f8fa; border-bottom: 1px solid var(--line); text-align: left; font-size: .65rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
td { padding: 14px; border-bottom: 1px solid #eaecf0; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfcfd; }
.cell-main { display: block; font-weight: 780; }
.cell-sub { display: block; margin-top: 3px; color: var(--muted); font-size: .7rem; }
.nowrap { white-space: nowrap; }
.empty { padding: 38px 20px; color: var(--muted); text-align: center; }
.filters { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 15px; margin-bottom: 16px; background: white; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-sm); }
.filters .field { margin: 0; }
.filters .button { align-self: end; }
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.inline-form { display: inline-flex; gap: 7px; align-items: center; }
.inline-form input, .inline-form select { min-height: 36px; padding: 6px 9px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }

/* Settings and schedules */
.settings-intro { display: grid; gap: 18px; padding: 20px; background: linear-gradient(145deg, #fff, #fafafa); border: 1px solid var(--line); border-radius: 20px; }
.settings-intro h2 { margin-bottom: 7px; }
.settings-intro p:last-child { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.settings-nav { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 3px; }
.settings-nav a { flex: 0 0 auto; padding: 7px 10px; color: #5a6372; background: #f1f2f5; border-radius: 999px; font-size: .69rem; font-weight: 750; }
.settings-section { scroll-margin-top: 18px; }
.settings-heading { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 12px; margin-bottom: 20px; }
.settings-heading > .button { grid-column: 1 / -1; justify-self: start; }
.settings-heading h2 { margin-bottom: 5px; }
.settings-heading p:last-child { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.settings-heading.compact { margin-bottom: 14px; }
.settings-icon { width: 40px; height: 40px; display: grid; place-items: center; color: #845708; background: var(--gold-soft); border: 1px solid #f3dfab; border-radius: 12px; font-size: .76rem; font-weight: 900; }
.identity-grid { display: grid; gap: 18px; }
.logo-preview { width: 106px; height: 106px; display: grid; place-items: center; overflow: hidden; padding: 5px; background: #05080e; border: 1px solid #dfbd6a; border-radius: 22px; box-shadow: 0 14px 35px rgba(9,14,24,.16); }
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.hours-legend { display: none; }
.business-hours { display: grid; gap: 8px; }
.business-day { display: grid; grid-template-columns: minmax(80px,1fr) auto; gap: 10px 12px; align-items: center; padding: 13px; background: #fbfbfc; border: 1px solid var(--line); border-radius: 13px; }
.business-day > strong { font-size: .82rem; }
.business-day.is-closed { background: #f5f6f8; }
.business-day .time-field { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.business-day .time-field span { color: #858c98; font-size: .66rem; }
.business-day .time-field input { min-height: 42px; padding: 7px 9px; font-size: .76rem; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; min-height: 1px; opacity: 0; }
.switch-track { position: relative; width: 38px; height: 22px; flex: 0 0 auto; background: #c9cdd5; border-radius: 999px; transition: background .16s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: white; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: transform .16s; }
.switch input:checked + .switch-track { background: var(--green); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch-label { min-width: 40px; color: #626a78; font-size: .7rem; font-weight: 750; }
.switch-card { min-height: 49px; padding: 10px 12px; background: #fbfbfc; border: 1px solid #d6d9e0; border-radius: 11px; }
.integration-grid { display: grid; gap: 18px; }
.advanced-settings { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.advanced-settings summary { cursor: pointer; color: #5c6574; font-size: .76rem; font-weight: 750; }
.advanced-settings .field { margin: 14px 0 0; }
.settings-savebar { position: sticky; z-index: 8; bottom: 72px; display: flex; justify-content: flex-end; padding: 10px; margin: 0 0 18px; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 14px 45px rgba(16,24,38,.13); backdrop-filter: blur(16px); }
.settings-savebar > div { display: none; }
.schedule-hero { display: grid; gap: 18px; padding: 22px; color: white; background: radial-gradient(circle at 90% 0, rgba(235,168,33,.18), transparent 18rem), var(--navy); border-radius: 22px; box-shadow: 0 18px 42px rgba(9,15,27,.18); }
.schedule-hero .eyebrow { color: var(--gold-2); }
.schedule-hero h2 { font-size: clamp(1.45rem,4vw,2.2rem); }
.schedule-hero p:last-child { margin: 0; color: #aeb8c7; font-size: .83rem; line-height: 1.55; }
.schedule-example { display: grid; gap: 4px; align-content: center; padding: 15px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 15px; }
.schedule-example span { color: var(--gold-2); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.schedule-example strong { font-size: .83rem; }
.schedule-example small { color: #aeb8c7; font-size: .69rem; line-height: 1.45; }

/* Account and supporting components */
.account-grid { display: grid; gap: 18px; margin-bottom: 18px; }
.account-profile { display: flex; align-items: center; gap: 15px; background: linear-gradient(145deg, var(--navy), #19263b); color: white; }
.account-profile h2 { margin-bottom: 5px; }
.account-profile .muted { margin: 0; color: #aeb8c7; font-size: .78rem; line-height: 1.45; }
.profile-avatar { width: 57px; height: 57px; flex: 0 0 auto; display: grid; place-items: center; color: #261a04; background: linear-gradient(135deg,var(--gold-2),var(--gold)); border-radius: 16px; font-size: 1.3rem; font-weight: 900; }
.account-form { margin-top: 24px; }
.security-note { display: flex; gap: 12px; padding: 16px; color: #225742; background: var(--green-soft); border: 1px solid #c5e9d9; border-radius: 15px; }
.security-note-icon { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-weight: 900; }
.security-note strong { font-size: .82rem; }
.security-note p { margin: 4px 0 0; font-size: .73rem; line-height: 1.45; }
.action-grid.section { margin-bottom: 28px; }
.schedule-grid { display: grid; gap: 8px; }
.schedule-row { display: grid; grid-template-columns: 1.2fr .9fr .9fr; align-items: center; gap: 8px; padding: 10px; background: #fbfbfc; border: 1px solid var(--line); border-radius: 12px; }
.schedule-day { display: flex; align-items: center; gap: 8px; font-size: .79rem; font-weight: 750; }
.schedule-row input[type="time"] { min-height: 40px; padding: 7px; font-size: .75rem; }
.qr-stage { min-height: 540px; display: grid; place-items: center; padding: 26px; color: white; background: radial-gradient(circle at 85% 10%, rgba(235,168,33,.2),transparent 17rem), linear-gradient(145deg,var(--navy),#1c2b43); border-radius: 24px; text-align: center; }
.qr-card { padding: 24px; color: var(--ink); background: white; border-radius: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.28); }
#qr-code { width: 280px; height: 280px; display: grid; place-items: center; margin: 0 auto 14px; }
#qr-code img, #qr-code canvas { max-width: 100%; height: auto !important; }
.qr-countdown { color: var(--muted); font-variant-numeric: tabular-nums; }
.log-json { max-width: 360px; overflow: hidden; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.danger-zone { padding: 18px; background: #fffafb; border: 1px solid #efc9ce; border-radius: 15px; }
.divider { height: 1px; margin: 22px 0; background: var(--line); }

@media (min-width: 620px) {
  .login-card { padding: 35px 34px; }
  .main { padding: 28px 24px 96px; }
  .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .form-grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .field-span-2 { grid-column: span 2; }
  .attendance-actions { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .action-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filters-wide { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .user-chip-text { display: block; min-width: 0; }
  .user-chip-text strong, .user-chip-text small { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .user-chip-text strong { font-size: .76rem; }
  .user-chip-text small { margin-top: 2px; color: var(--muted); font-size: .66rem; }
  .dashboard-welcome { grid-template-columns: 1fr auto; align-items: end; padding: 30px; }
  .identity-grid { grid-template-columns: 130px minmax(0,1fr); align-items: center; }
  .business-day { grid-template-columns: minmax(110px,1fr) 125px minmax(140px,1fr) minmax(140px,1fr); }
  .business-day .time-field { display: block; }
  .business-day .time-field span { display: none; }
  .hours-legend { display: grid; grid-template-columns: minmax(110px,1fr) 125px minmax(140px,1fr) minmax(140px,1fr); gap: 12px; padding: 0 13px 8px; color: #858c98; font-size: .63rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .settings-heading { grid-template-columns: auto minmax(0,1fr) auto; }
  .settings-heading > .button { grid-column: auto; justify-self: end; align-self: center; }
  .settings-savebar { bottom: 18px; justify-content: space-between; align-items: center; padding: 12px 13px 12px 17px; }
  .settings-savebar > div { display: block; }
  .settings-savebar strong, .settings-savebar span { display: block; }
  .settings-savebar strong { font-size: .79rem; }
  .settings-savebar span { margin-top: 3px; color: var(--muted); font-size: .68rem; }
  .schedule-hero { grid-template-columns: minmax(0,1fr) minmax(230px,.42fr); align-items: center; padding: 29px; }
}

@media (min-width: 1020px) {
  .guest-shell { grid-template-columns: minmax(0,1.15fr) minmax(440px,.85fr); }
  .guest-visual { min-height: 100vh; display: flex; flex-direction: column; }
  .login-panel { min-height: 100vh; padding: 40px; }
  .login-brand { display: none; }
  .app-shell { display: grid; grid-template-columns: 258px minmax(0,1fr); }
  .sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 12px; color: white; background: radial-gradient(circle at 100% 0, rgba(235,168,33,.1),transparent 17rem), var(--navy); }
  .sidebar .brand { min-height: 58px; padding: 0 9px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .side-nav { display: grid; gap: 1px; padding: 12px 0; overflow-y: auto; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { min-height: 35px; display: flex; align-items: center; gap: 10px; padding: 7px 11px; color: #96a1b3; border-radius: 9px; font-size: .74rem; font-weight: 670; }
  .side-nav a:hover { color: white; background: rgba(255,255,255,.06); }
  .side-nav a.active { color: #f8d783; background: linear-gradient(90deg,rgba(235,168,33,.16),rgba(235,168,33,.07)); box-shadow: inset 3px 0 var(--gold); }
  .side-nav .nav-symbol { width: 21px; text-align: center; }
  .sidebar-footer { margin-top: auto; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
  .sidebar-footer button { width: 100%; color: #aeb7c5; background: rgba(255,255,255,.06); }
  .main { padding: 32px 32px 54px; }
  .bottom-nav { display: none; }
  .stats { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .action-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .action-tile { min-height: 122px; grid-template-columns: 42px minmax(0,1fr) auto; }
  .filters { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .filters-wide { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .staff-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(340px,.72fr); gap: 20px; align-items: start; }
  .form-grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .integration-grid { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .account-grid { grid-template-columns: minmax(250px,.36fr) minmax(0,1fr); align-items: start; }
  .account-profile { align-items: flex-start; flex-direction: column; min-height: 250px; }
}

@media (max-width: 420px) {
  .main { padding-inline: 12px; }
  .topbar .eyebrow { display: none; }
  .card-pad { padding: 16px; }
  .schedule-row { grid-template-columns: 1fr 1fr; }
  .schedule-day { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
