/* Visit Milandhoo WiFi admin: Google Admin / Firebase console style (Google Material 3 2024 palette).
   Roboto for text, Google Sans for headings and numbers, Roboto Mono for codes. */
@font-face { font-family: "Google Sans"; font-weight: 400 700; font-display: swap; src: url("fonts/gsans.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #f6f8fc; --card: #ffffff; --border: #dadce0; --border-strong: #c4c7c5; --divider: #e8eaed;
  --text: #1f1f1f; --text2: #444746; --text3: #747775;
  --primary: #0b57d0; --on-primary: #ffffff; --primary-hover: rgb(11 87 208 / .08);
  --primary-bg: #d3e3fd; --on-primary-bg: #041e49;
  --hover: rgb(31 31 31 / .05); --chip-bg: #e9eef6; --track: #e3e3e3;
  --success: #1e8e3e; --success-bg: #c4eed0; --success-text: #0d652d;
  --warning: #e37400; --warning-bg: #ffefc9; --warning-text: #7a4100;
  --error: #b3261e; --error-bg: #f9dedc; --error-text: #8c1d18; --error-hover: rgb(179 38 30 / .08);
  --snack: #303030; --on-snack: #f2f2f2;
  --shadow: 0 1px 2px rgb(60 64 67 / .3), 0 1px 3px 1px rgb(60 64 67 / .15);
  --font: Roboto, "Google Sans Text", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --display: "Google Sans", Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "Roboto Mono", ui-monospace, "SF Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #131314; --card: #1e1f20; --border: #3c4043; --border-strong: #5f6368; --divider: #333537;
    --text: #e3e3e3; --text2: #c4c7c5; --text3: #8e918f;
    --primary: #a8c7fa; --on-primary: #062e6f; --primary-hover: rgb(168 199 250 / .08);
    --primary-bg: #004a77; --on-primary-bg: #c2e7ff;
    --hover: rgb(227 227 227 / .06); --chip-bg: #282a2c; --track: #3c4043;
    --success: #6dd58c; --success-bg: #0f5223; --success-text: #c4eed0;
    --warning: #ffb95c; --warning-bg: #5c3a00; --warning-text: #ffdcbe;
    --error: #f2b8b5; --error-bg: #8c1d18; --error-text: #f9dedc; --error-hover: rgb(242 184 181 / .08);
    --snack: #e3e3e3; --on-snack: #1f1f1f;
    --shadow: 0 1px 3px rgb(0 0 0 / .5), 0 4px 8px 3px rgb(0 0 0 / .25);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 14px/20px var(--font); letter-spacing: .1px; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: var(--primary); text-decoration: none; }
button, input, select { font: inherit; }
.ms {
  font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1;
  display: inline-block; width: 1em; overflow: hidden; white-space: nowrap; direction: ltr; flex: none; user-select: none;
  -webkit-font-smoothing: antialiased; font-feature-settings: "liga"; font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
}
.muted { color: var(--text2); }
.code { font-family: var(--mono); font-weight: 500; letter-spacing: .04em; }
.m-only { display: block; } .d-only { display: none; }
@media (min-width: 720px) { .m-only { display: none; } .d-only { display: block; } }

/* ------------------------------------------------ top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 4px; height: 64px; padding: 0 12px 0 8px;
  background: var(--card); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; margin-left: 4px; color: var(--text); min-width: 0; }
.brand img { width: 32px; height: 32px; border-radius: 50%; display: block; flex: none; }
.brand-name { font: 400 20px/24px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-name .product { color: var(--text2); }
.spacer { flex: 1; }
.topbar form { margin: 0; }
.topbar-logo { display: flex; flex: none; margin: 0 8px 0 4px; }
.topbar-logo img { width: 32px; height: 32px; border-radius: 50%; display: block; }
.topbar-title { flex: 1; min-width: 0; margin: 0; font: 400 22px/28px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-action { display: flex; flex: none; gap: 8px; }
/* the page's main action shows as an icon only, like the menu button; its text stays for screen readers */
.topbar-action .btn, .topbar-action .btn.filled { width: 40px; height: 40px; padding: 0; gap: 0; border: 0; border-radius: 50%; background: none; color: var(--text2); font-size: 0; box-shadow: none; }
.topbar-action .btn:hover, .topbar-action .btn.filled:hover { background: var(--hover); box-shadow: none; }
.topbar-action .btn .ms { margin: 0; font-size: 24px; }
@media (max-width: 380px) { .topbar-title { font-size: 20px; } }

/* ------------------------------------------------ side navigation (drawer on phones) */
.sidenav {
  position: fixed; top: 64px; bottom: 0; left: 0; z-index: 15; width: 256px; display: flex; flex-direction: column; padding: 12px 12px 12px 0;
  background: var(--card); border-right: 1px solid var(--border); transform: translateX(-100%); transition: transform .2s cubic-bezier(.2, 0, 0, 1);
}
body.nav-open .sidenav { transform: none; box-shadow: var(--shadow); }
.scrim { display: none; }
body.nav-open .scrim { display: block; position: fixed; inset: 64px 0 0 0; z-index: 14; background: rgb(0 0 0 / .32); }
.nav-item { display: flex; align-items: center; gap: 16px; height: 40px; padding: 0 16px 0 24px; border-radius: 0 20px 20px 0; color: var(--text2); font-weight: 500; }
.nav-item:hover { background: var(--hover); }
.nav-item.on { background: var(--primary-bg); color: var(--on-primary-bg); }
.nav-item.on .ms { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 20; }
.nav-sep { height: 1px; margin: 8px 0 8px 24px; background: var(--divider); }
.nav-label { padding: 8px 24px 4px; font-size: 12px; font-weight: 500; color: var(--text3); }
.nav-foot { margin-top: auto; padding: 12px 24px; font-size: 12px; line-height: 16px; color: var(--text3); }
.nav-btn { width: 100%; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; font-weight: 500; }
.nav-user { margin-left: auto; font-weight: 400; color: var(--text3); }
.nav-brand { display: flex; align-items: center; gap: 10px; padding: 4px 24px 16px; font: 400 16px/24px var(--display); color: var(--text); }
.nav-brand img { width: 28px; height: 28px; border-radius: 50%; }
.nav-brand .product { color: var(--text2); }
@media (min-width: 1024px) {
  .sidenav { transform: none; background: var(--bg); border-right: 0; }
  .icon-btn.menu-btn { display: none; }
  .nav-brand { display: none; }
  .main { margin-left: 256px; }
  body.nav-open .scrim { display: none; }
}

/* ------------------------------------------------ page */
.main { padding-top: 64px; }
body.bare .main { padding-top: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 20px 16px 48px; }
@media (min-width: 600px) { .wrap { padding: 24px 24px 48px; } }
.page-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 16px; }
.page-sub { flex: 1; min-width: 200px; margin: 0; color: var(--text2); }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.page-actions:not(:has(*)) { display: none; }
.page-head:not(:has(.page-sub)):not(:has(.page-actions *)) { display: none; }
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .span-12 { grid-column: 1 / -1; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; }
  .span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }
}

/* ------------------------------------------------ cards */
.card { min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 12px 8px 20px; }
.card-head h2 { flex: 1; margin: 0; font: 500 16px/24px var(--display); }
.card-head h2 small { display: block; font: 400 13px/18px var(--font); color: var(--text2); }
.card-body { padding: 4px 20px 20px; }
.card-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--divider); }

/* ------------------------------------------------ scorecards */
.scores { display: grid; grid-template-columns: 1fr 1fr; }
.score { display: block; min-width: 0; padding: 16px 20px; color: var(--text); border-bottom: 1px solid var(--divider); }
.score:nth-child(odd) { border-right: 1px solid var(--divider); }
.score:nth-last-child(-n+2) { border-bottom: 0; }
a.score:hover { background: var(--hover); }
.score-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); white-space: nowrap; }
.score-label .ms { font-size: 18px; color: var(--text3); }
.score-value { margin-top: 8px; font: 400 30px/36px var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score-note { margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 840px) {
  .scores { grid-template-columns: repeat(4, 1fr); }
  .score, .score:nth-child(odd) { border-bottom: 0; border-right: 1px solid var(--divider); }
  .score:last-child { border-right: 0; }
}

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border: 1px solid transparent;
  border-radius: 18px; background: none; color: var(--primary); cursor: pointer; white-space: nowrap; font-weight: 500; letter-spacing: .1px; text-decoration: none;
}
.btn .ms { font-size: 18px; margin-left: -4px; }
.btn:hover { background: var(--primary-hover); }
.btn.filled { background: var(--primary); color: var(--on-primary); }
.btn.filled:hover { box-shadow: var(--shadow); }
.btn.outlined { border-color: var(--border-strong); }
.btn.danger { color: var(--error); }
.btn.danger:hover { background: var(--error-hover); }
.btn.danger.outlined { border-color: var(--border-strong); }
.icon-btn { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: none; color: var(--text2); cursor: pointer; }
.icon-btn:hover { background: var(--hover); }
.icon-btn .ms { font-size: 22px; }

/* ------------------------------------------------ status */
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--text); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text3); flex: none; }
.status.unused::before { background: var(--primary); }
.status.active::before { background: var(--success); }
.status.used-up::before { background: var(--warning); }
.status.disabled::before { background: var(--error); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--chip-bg); color: var(--text2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.tag.ok { background: var(--success-bg); color: var(--success-text); }
.tag.ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ------------------------------------------------ tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th { height: 40px; padding: 0 16px; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); text-align: left; font-size: 12px; font-weight: 500; color: var(--text2); white-space: nowrap; }
.table td { height: 52px; padding: 0 16px; border-bottom: 1px solid var(--divider); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--hover); }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table .num { text-align: right; }
.table .act { width: 1%; text-align: right; padding-right: 8px; }
.table form { margin: 0; display: inline; }
.usage { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.usage .bar { flex: 0 0 72px; }
.bar { display: block; height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; min-width: 2px; border-radius: 2px; background: var(--primary); }
.bar.warn i { background: var(--error); }

/* phone rows (tables become simple two-line rows) */
.rows { border-top: 1px solid var(--divider); }
.lrow { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; color: var(--text); border-bottom: 1px solid var(--divider); }
.lrow:last-child { border-bottom: 0; }
a.lrow:hover { background: var(--hover); }
.lrow-main { flex: 1; min-width: 0; }
.lrow-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lrow-title { font-size: 15px; line-height: 22px; }
.lrow-sub { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .bar { margin-top: 8px; }
.lrow form { margin: 0; }
.lrow .chev { color: var(--text3); }

/* ------------------------------------------------ toolbar & filters */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px 12px 20px; }
.search { display: flex; align-items: center; gap: 8px; flex: 1 1 240px; max-width: 420px; height: 40px; padding: 0 4px 0 12px; border-radius: 20px; background: var(--chip-bg); }
.search .ms { color: var(--text2); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: var(--text); }
.search input::placeholder { color: var(--text2); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--text2); font-size: 13px; font-weight: 500; white-space: nowrap; flex: none; }
.chip:hover { background: var(--hover); }
.chip.on { background: var(--primary-bg); border-color: transparent; color: var(--on-primary-bg); }
.chip .ms { font-size: 18px; margin-left: -4px; }
.chip .count { font-weight: 400; opacity: .75; }
.select { height: 36px; padding: 0 32px 0 12px; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--text); background: var(--card); max-width: 100%; }
.batch-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 0 16px 12px 20px; }
.batch-bar form { display: flex; gap: 8px; align-items: center; margin: 0; }

/* ------------------------------------------------ chart: one series, no legend; recessive grid; 4px rounded tops */
.chart { position: relative; height: 220px; margin-top: 8px; }
.grid-lines, .bars { position: absolute; left: 52px; right: 0; top: 8px; bottom: 22px; }
.grid-lines { pointer-events: none; }
.grid-lines span { position: absolute; left: 0; right: 0; border-top: 1px solid var(--divider); }
.grid-lines em { position: absolute; right: calc(100% + 8px); top: -8px; font-style: normal; font-size: 11px; line-height: 16px; color: var(--text3); white-space: nowrap; }
.bars { display: flex; align-items: stretch; }
.col { flex: 1; display: flex; align-items: flex-end; padding: 0 1px; outline: none; }
.col i { display: block; width: 100%; max-width: 24px; margin: 0 auto; border-radius: 4px 4px 0 0; background: var(--primary); transition: opacity .15s; }
.bars:hover .col i { opacity: .45; }
.bars .col:hover i, .col:focus-visible i { opacity: 1; }
.x-labels { position: absolute; left: 52px; right: 0; bottom: 0; display: flex; }
.x-labels span { flex: 1; font-size: 11px; line-height: 16px; color: var(--text3); white-space: nowrap; }
.tip { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 8px)); padding: 6px 10px; border-radius: 4px; background: var(--snack); color: var(--on-snack); font-size: 12px; line-height: 16px; white-space: nowrap; pointer-events: none; }
.as-table { margin-top: 12px; font-size: 13px; color: var(--text2); }
.as-table summary { width: max-content; cursor: pointer; }
.as-table table { display: block; max-height: 240px; margin-top: 8px; overflow: auto; }
.as-table td, .as-table th { height: 32px; }
@media (min-width: 1024px) { .chart { height: 260px; } }

/* ------------------------------------------------ status breakdown */
.breakdown { list-style: none; margin: 0; padding: 0; }
.breakdown li a { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: var(--text); }
.breakdown li a:hover { background: var(--hover); }
.breakdown .status { flex: 1; }
.breakdown .n { font: 400 16px/24px var(--display); font-variant-numeric: tabular-nums; }
.breakdown .share { width: 64px; }
.breakdown .share i { background: var(--text3); }
.breakdown .total { border-top: 1px solid var(--divider); }

/* ------------------------------------------------ key / value details */
.kv { display: grid; grid-template-columns: minmax(120px, 36%) 1fr; margin: 0; }
.kv dt, .kv dd { margin: 0; padding: 12px 20px; border-top: 1px solid var(--divider); }
.kv dt { color: var(--text2); }
.kv dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 599px) {
  .kv { grid-template-columns: 1fr; }
  .kv dt { padding-bottom: 2px; font-size: 12px; }
  .kv dd { padding-top: 0; border-top: 0; }
}
.meter-block { padding: 4px 20px 16px; }
.meter-block + .meter-block { padding-top: 0; }
.meter-l { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; color: var(--text2); }
.meter-l b { color: var(--text); font-weight: 500; }
.hero-code { font: 500 32px/40px var(--mono); letter-spacing: .08em; }
.qr-panel { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 20px 24px; text-align: center; color: var(--text2); }
.qr-panel .qr { width: 184px; height: 184px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.qr-panel .qr path { fill: #1f1f1f; }

/* ------------------------------------------------ forms */
.form-card { max-width: 640px; }
.form-section { padding: 4px 20px 8px; }
.form-section h3 { margin: 16px 0 4px; font: 500 14px/20px var(--font); color: var(--text); }
.field { position: relative; margin: 16px 0 4px; }
.field input {
  width: 100%; height: 56px; padding: 16px; border: 1px solid var(--border-strong); border-radius: 4px; background: transparent; color: var(--text);
  outline: none; font-size: 16px; -webkit-appearance: none; appearance: none; -moz-appearance: textfield;
}
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input:hover { border-color: var(--text); }
.field input:focus { border: 2px solid var(--primary); padding: 15px; }
.field label { position: absolute; left: 12px; top: 16px; padding: 0 4px; background: var(--card); color: var(--text2); font-size: 16px; line-height: 24px; pointer-events: none; transition: top .15s, font-size .15s, line-height .15s, color .15s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: -8px; font-size: 12px; line-height: 16px; }
.field input:focus + label { color: var(--primary); }
.field.sfx input { padding-right: 64px; }
.field .sfx-text { position: absolute; right: 16px; top: 16px; color: var(--text2); pointer-events: none; }
.hint { margin: 4px 16px 0; font-size: 12px; line-height: 16px; color: var(--text2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.segmented { display: flex; height: 40px; margin: 16px 0 4px; border: 1px solid var(--border-strong); border-radius: 20px; overflow: hidden; }
.segmented label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border-left: 1px solid var(--border-strong); cursor: pointer; font-weight: 500; }
.segmented label:first-child { border-left: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented .ms { display: none; font-size: 18px; }
.segmented label:has(input:checked) { background: var(--primary-bg); color: var(--on-primary-bg); }
.segmented label:has(input:checked) .ms { display: inline-block; }
.pick { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pick label { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.pick label:hover { background: var(--hover); }
.pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); flex: none; }
.pick-text { flex: 1; min-width: 0; }
.pick-text b { display: block; font-weight: 500; }
.pick-text span { font-size: 13px; color: var(--text2); }
.pick .price { font-weight: 500; white-space: nowrap; }
.pick label:has(input:checked) { border-color: var(--primary); background: var(--primary-hover); }
.stepper { display: flex; align-items: center; gap: 12px; max-width: 320px; }
.stepper .field { flex: 1; margin: 12px 0; }
.stepper .field input { text-align: center; font-size: 18px; }
.stepper .icon-btn { border: 1px solid var(--border-strong); }

/* ------------------------------------------------ empty, snackbar, dialog */
.empty { padding: 40px 16px; text-align: center; color: var(--text2); }
.empty .ms { width: auto; font-size: 40px; color: var(--text3); }
.empty p { margin: 8px 0 16px; }
.snackbar-host { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.snackbar { width: 100%; max-width: 480px; padding: 14px 16px; border-radius: 4px; background: var(--snack); color: var(--on-snack); box-shadow: var(--shadow); transition: opacity .2s, transform .2s; }
.snackbar.error { background: var(--error-bg); color: var(--error-text); }
.snackbar.hide { opacity: 0; transform: translateY(8px); }
@media (min-width: 1024px) { .snackbar-host { left: 280px; align-items: flex-start; bottom: 24px; } }
dialog.dialog { width: calc(100vw - 48px); max-width: 400px; padding: 24px; border: 0; border-radius: 28px; background: var(--card); color: var(--text); box-shadow: var(--shadow); }
dialog.dialog::backdrop { background: rgb(0 0 0 / .32); }
dialog.dialog form { margin: 0; }
.d-title { margin: 0 0 16px; font: 400 24px/32px var(--display); }
.d-text { margin: 0 0 24px; color: var(--text2); }
.d-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ------------------------------------------------ sign in (Google style) */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 448px; padding: 36px 24px 28px; }
@media (min-width: 600px) { .login-card { padding: 48px 40px 36px; background: var(--card); border: 1px solid var(--border); border-radius: 28px; } }
.login-card .brand img { width: 40px; height: 40px; }
.login-card h1 { margin: 24px 0 8px; font: 400 32px/40px var(--display); }
.login-card > p { margin: 0 0 24px; color: var(--text2); font-size: 16px; line-height: 24px; }
.login-actions { display: flex; justify-content: flex-end; margin-top: 32px; }
.login-actions .btn { height: 40px; padding: 0 24px; border-radius: 20px; }
.login-card .field label { background: var(--bg); }
@media (min-width: 600px) { .login-card .field label { background: var(--card); } }

/* ------------------------------------------------ no zoom, no text selection (typing boxes stay selectable) */
html { touch-action: manipulation; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
/* iPhones zoom into any box with text smaller than 16px, so every box is at least 16px */
input, textarea, select, .search input, .select { font-size: 16px; }
img { -webkit-user-drag: none; }
#kiosk-url { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
