*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 600; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 16px; }
p { margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 24px; height: 24px; }

/* ---------- Оболочка ---------- */
.app { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--sp-3);
  min-height: calc(var(--header-h) + var(--safe-top)); padding: var(--safe-top) var(--sp-4) 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.topbar .logo { height: 26px; width: auto; display: block; }
.topbar .site { font-weight: 600; font-size: 15px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar .spacer { flex: 1; }
.userchip { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; min-width: 0; }
.userchip .name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.userchip .role { font-size: 12px; color: var(--text-3); }
.main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: var(--sp-4) var(--sp-4) calc(var(--nav-h) + var(--safe-bottom) + var(--sp-5)); }
.main.wide { max-width: 1280px; }

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex;
  height: calc(var(--nav-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  background: var(--surface); border-top: 1px solid var(--border);
}
.bottomnav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--text-2); text-decoration: none; font-size: 12px; font-weight: 500; min-height: var(--tap);
}
.bottomnav a[aria-current="page"] { color: var(--brand); }
.bottomnav a[aria-current="page"] .icon { stroke-width: 2.4; }
.sidebar { display: none; }

@media (min-width: 1024px) {
  .app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .topbar { grid-column: 1 / -1; }
  .bottomnav { display: none; }
  .sidebar {
    display: flex; flex-direction: column; gap: 2px;
    padding: var(--sp-4) var(--sp-3); background: var(--surface); border-right: 1px solid var(--border);
    min-height: calc(100dvh - var(--header-h));
  }
  .sidebar a {
    display: flex; align-items: center; gap: var(--sp-3); padding: 10px 12px; border-radius: var(--r-sm);
    color: var(--text-2); text-decoration: none; font-weight: 500; min-height: 44px;
  }
  .sidebar a:hover { background: var(--surface-2); color: var(--text); }
  .sidebar a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
  .main { padding: var(--sp-5); }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--tap); padding: 0 var(--sp-4); border-radius: var(--r-md);
  border: 1px solid transparent; background: var(--surface-2); color: var(--text);
  font-weight: 500; font-size: 16px; cursor: pointer; text-decoration: none;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), opacity var(--dur);
  touch-action: manipulation; user-select: none;
}
.btn:active { transform: scale(.98); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: var(--surface); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--down); color: #fff; }
.btn-danger:hover { background: var(--down-strong); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-block { width: 100%; }
.btn-main { min-height: var(--tap-main); font-size: 19px; font-weight: 600; border-radius: var(--r-lg); width: 100%; }
.btn-sm { min-height: 40px; padding: 0 var(--sp-3); font-size: 14px; }
.link-btn { background: none; border: 0; padding: var(--sp-3) 0; min-height: var(--tap); color: var(--brand); font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Карточки и плашки ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); box-shadow: var(--shadow-1); }
.stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.stack-sm { display: flex; flex-direction: column; gap: var(--sp-2); }
.row { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.banner { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); border: 1px solid; font-size: 15px; }
.banner .icon { margin-top: 2px; }
.banner-warn { background: var(--warn-bg); border-color: var(--warn-border); color: #78350F; }
.banner-pending { background: var(--pending-bg); border-color: var(--border-strong); color: var(--text); }
.banner-error { background: var(--down-bg); border-color: #FECACA; color: var(--down-strong); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge-manual { background: #EEF2FF; color: #3730A3; }
.badge-offline { background: var(--pending-bg); color: var(--pending); border: 1px dashed var(--border-strong); }
.badge-open { background: var(--down-bg); color: var(--down); }

/* ---------- Формы ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; min-height: var(--tap); padding: 10px 12px; border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); background: var(--surface); font-size: 16px;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent); border-color: var(--focus); }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 14px; display: flex; gap: 6px; align-items: flex-start; }
.field-hint { color: var(--text-3); font-size: 13px; }
.counter { align-self: flex-end; font-size: 12px; color: var(--text-3); }
.check { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--tap); cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--primary); }

/* Плитки причин */
.tiles { display: grid; grid-template-columns: 1fr; gap: var(--sp-2); }
@media (min-width: 480px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile label {
  display: flex; align-items: center; gap: var(--sp-3); min-height: 56px; padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface);
  cursor: pointer; font-weight: 500; transition: border-color var(--dur), background var(--dur);
}
.tile label::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); }
.tile input:checked + label { border-color: var(--primary); background: var(--surface-2); }
.tile input:checked + label::before { border-color: var(--primary); background: radial-gradient(circle, var(--primary) 0 45%, var(--surface) 50%); }
.tile input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Сегменты (чипы периода и т.п.) */
.segmented { display: flex; gap: 6px; flex-wrap: wrap; }
.segmented button {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2); font-weight: 500; font-size: 14px; cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Модальное окно / нижний лист ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgb(15 23 42 / .45); display: flex; align-items: flex-end; justify-content: center; animation: fade var(--dur) var(--ease); }
.sheet {
  width: 100%; max-width: 560px; max-height: calc(100dvh - 24px); overflow-y: auto; background: var(--surface);
  border-radius: var(--r-lg) var(--r-lg) 0 0; padding: var(--sp-5) var(--sp-4) calc(var(--sp-4) + var(--safe-bottom));
  box-shadow: var(--shadow-2); animation: up var(--dur) var(--ease);
}
.sheet h2 { margin-bottom: var(--sp-2); }
.sheet .actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.sheet .actions .btn { flex: 1; }
@media (min-width: 640px) { .overlay { align-items: center; } .sheet { border-radius: var(--r-lg); padding-bottom: var(--sp-5); } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }

/* ---------- Тосты ---------- */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-bottom) + 12px); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 var(--sp-4); }
.toast { pointer-events: auto; max-width: 520px; width: 100%; display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-md); background: var(--text); color: #fff; box-shadow: var(--shadow-2); font-size: 15px; animation: up var(--dur) var(--ease); }
.toast-ok .icon { color: #6EE7B7; }
.toast-error { background: var(--down-strong); }
.toast-warn { background: #78350F; }
@media (min-width: 1024px) { .toasts { bottom: 24px; } }

/* ---------- Вход ---------- */
.login { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-5); padding: calc(var(--safe-top) + 24px) var(--sp-4) calc(var(--safe-bottom) + 24px); }
.login .logo { width: min(240px, 70vw); height: auto; }
.login .title { color: var(--text-2); font-weight: 500; text-align: center; }
.pin { position: relative; display: flex; gap: var(--sp-3); }
.pin .cell { width: 56px; height: 64px; border-radius: var(--r-md); border: 1.5px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; font: 600 28px var(--mono); }
.pin .cell.filled::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--text); }
.pin .cell.active { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.pin input { position: absolute; inset: 0; opacity: 0; width: 100%; font-size: 16px; caret-color: transparent; }
.pin.error .cell { border-color: var(--danger); }
.pin.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.login .msg { min-height: 24px; text-align: center; }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; color: var(--text-2); background: var(--surface-2); padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

.empty { text-align: center; color: var(--text-3); padding: var(--sp-5) var(--sp-4); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.offline-bar { position: sticky; top: calc(var(--header-h) + var(--safe-top)); z-index: 15; }

/* Узкий экран: шапка без названия объекта и подписи кнопки */
@media (max-width: 639px) {
  .topbar .site { display: none; }
  .topbar .userchip { flex: 1; align-items: flex-end; }
}
@media (max-width: 479px) {
  .topbar .sw-label { display: none; }
  .topbar #switch { width: var(--tap); padding: 0; }
}

/* ---------- Экран инженера ---------- */
.eng { padding-bottom: calc(var(--tap-main) + var(--sp-5)); }
.status { border-radius: var(--r-lg); padding: var(--sp-4); border: 1px solid; display: flex; flex-direction: column; gap: var(--sp-3); }
.status-head { display: flex; align-items: center; gap: var(--sp-2); font-size: 20px; font-weight: 600; }
.status-ok { background: var(--ok-bg); border-color: var(--ok-border); }
.status-ok .status-head { color: var(--ok); }
.status-down { background: var(--down); border-color: var(--down-strong); color: #fff; }
.status-down .badge-offline { background: rgb(255 255 255 / .15); color: #fff; border-color: rgb(255 255 255 / .5); }
.timer { font-size: clamp(44px, 14vw, 64px); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
.status-meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2) var(--sp-4); }
.status-meta dt { font-size: 13px; opacity: .85; }
.status-meta dd { margin: 0; font-weight: 500; word-break: break-word; }
.status-meta div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.status-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); }
.status-down .btn-outline { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .6); color: #fff; }
.status-down .link-btn { color: #fff; }
.actionbar {
  position: fixed; left: 0; right: 0; z-index: 19; bottom: calc(var(--nav-h) + var(--safe-bottom));
  padding: var(--sp-3) var(--sp-4); background: linear-gradient(to top, var(--bg) 70%, transparent);
  display: flex; justify-content: center;
}
.actionbar .btn-main { max-width: 688px; box-shadow: var(--shadow-1); }
@media (min-width: 1024px) { .actionbar { left: var(--sidebar-w); bottom: 0; } }
.recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.rec { display: flex; gap: var(--sp-3); justify-content: space-between; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); }
.rec-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rec-when { display: flex; gap: var(--sp-2); align-items: baseline; flex-wrap: wrap; }
.rec-when .mono { font-weight: 600; }
.rec-reason { font-weight: 500; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rec-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: var(--sp-2); flex: none; }
.rec-dur { font-weight: 600; font-size: 17px; }
.status-down .muted { color: rgb(255 255 255 / .85); }
/* Тосты над главной кнопкой экрана инженера */
.toasts { bottom: calc(var(--nav-h) + var(--safe-bottom) + var(--tap-main) + 28px); }
@media (min-width: 1024px) { .toasts { bottom: calc(var(--tap-main) + 32px); } }
.toasts { z-index: 45; }

/* ---------- Статистика ---------- */
.stats .export { gap: var(--sp-2); }
.filters { display: flex; flex-direction: column; gap: var(--sp-3); }
.filters-row { align-items: flex-end; gap: var(--sp-3); }
.filters-row .field { min-width: 180px; flex: 1 1 180px; }
.filters-row #f-dates { flex: 2 1 280px; }
.filters-row .check { flex: 0 0 auto; }
.tiles-stat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
@media (min-width: 768px) { .tiles-stat { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .tiles-stat { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tile-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile-label { font-size: 13px; color: var(--text-2); }
.tile-value { font-size: 24px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.delta { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 500; flex-wrap: wrap; }
.delta .icon { width: 16px; height: 16px; }
.delta-good { color: var(--ok); }
.delta-bad { color: var(--down); }
.chart-box { position: relative; height: 280px; }
@media (min-width: 1024px) { .chart-box { height: 320px; } }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: none; }
details > summary { cursor: pointer; color: var(--brand); font-weight: 500; min-height: 40px; display: flex; align-items: center; }
details .table-wrap { margin-top: var(--sp-2); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.rbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rbar { width: 100%; display: grid; grid-template-columns: 1fr; gap: 4px; padding: 8px; border: 1px solid transparent; border-radius: var(--r-sm); background: none; text-align: left; cursor: pointer; }
.rbar:hover { background: var(--surface-2); }
.rbar.active { border-color: var(--primary); background: var(--surface-2); }
.rbar-title { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.rbar-track { height: 12px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.rbar-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.rbar-meta { font-size: 13px; color: var(--text-2); }
.hm-scroll { overflow-x: auto; }
.hm { display: grid; grid-template-columns: 28px repeat(24, minmax(11px, 1fr)); gap: 2px; min-width: 320px; align-items: center; }
.hm-day, .hm-hour { font-size: 11px; color: var(--text-3); font-family: var(--mono); }
.hm-hour { text-align: left; }
.hm-cell { aspect-ratio: 1; min-height: 11px; border: 0; padding: 0; border-radius: 3px; cursor: pointer; }
.hm-cell:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.hm-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.hm-legend { display: flex; align-items: center; gap: 2px; }
.hm-legend i { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.rec-table .cmt { max-width: 260px; }
.row-actions { white-space: nowrap; }
/* Таблица простоев на телефоне — карточки */
@media (max-width: 767px) {
  .rec-table thead { display: none; }
  .rec-table, .rec-table tbody, .rec-table tr, .rec-table td { display: block; width: 100%; }
  .rec-table tr { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border); }
  .rec-table td { border: 0; padding: 2px 0; display: flex; justify-content: space-between; gap: var(--sp-3); text-align: right; }
  .rec-table td::before { content: attr(data-th); color: var(--text-3); text-align: left; font-size: 13px; }
  .rec-table td.num { justify-content: space-between; }
  .rec-table .row-actions { justify-content: flex-end; }
  .rec-table .row-actions::before { content: none; }
  .rec-table .cmt { max-width: none; }
}
.delta { flex-wrap: nowrap; align-items: flex-start; }
.delta .icon { margin-top: 1px; }
@media (max-width: 639px) {
  .stats > .section-title { flex-wrap: wrap; }
  .stats .x-word { display: none; }
}

/* ---------- Администрирование ---------- */
.admin-tabs .seg-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-weight: 500; font-size: 14px; text-decoration: none; }
.admin-tabs .seg-link[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.admin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.admin-item { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); }
.admin-item.inactive { background: var(--surface-2); }
.admin-item.inactive .admin-name { color: var(--text-2); }
.admin-name { font-weight: 500; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.admin-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.audit-table td { white-space: nowrap; }
.audit-table td:nth-child(6), .audit-table td:nth-child(7) { white-space: normal; max-width: 280px; }

/* ---------- Правки по тестам, круг 1 ---------- */
.btn-sm { min-height: 44px; }
.segmented button, .admin-tabs .seg-link { min-height: 44px; }
details > summary { min-height: 44px; }
.link-inline { display: inline; padding: 10px 0; min-height: 0; line-height: 1.6; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.toasts { bottom: calc(var(--nav-h) + var(--safe-bottom) + 12px); }
body.has-actionbar .toasts { bottom: calc(var(--nav-h) + var(--safe-bottom) + var(--tap-main) + 28px); }
@media (min-width: 1024px) { .toasts { bottom: 24px; } body.has-actionbar .toasts { bottom: calc(var(--tap-main) + 32px); } }
.tile-value { white-space: normal; overflow: visible; text-overflow: clip; font-size: 22px; line-height: 1.2; }
@media (max-width: 479px) { .tile-value { font-size: 19px; } }
.hm { min-width: 560px; }
@media (prefers-reduced-motion: reduce) {
  .pin.shake { animation: none; }
  .spinner { animation-duration: 0s; border-right-color: currentColor; opacity: .6; }
  .overlay, .sheet, .toast { animation: none; }
}
.btn-sm { min-height: 48px; }
.topbar #switch { min-height: 48px; }
