/* HN Hotels Ops — Shell styles
 * Top bar · bottom nav · views · auth overlay · boot screen.
 * Tile-specific layouts live in tiles.css.
 */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: var(--fs-body);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100svh;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

a { color: var(--accent, var(--hn)); text-decoration: none; }

/* ─── Boot screen ─── */
#boot {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background: var(--bg);
  gap: var(--s-3);
  z-index: 9999;
}
.boot-logo {
  width: 64px; height: 64px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--hn), var(--he), var(--nch));
  display: grid; place-items: center;
  font-weight: var(--fw-black);
  font-size: 24px;
  color: #fff;
  letter-spacing: -0.02em;
}
.boot-label { color: var(--text-dim); font-size: var(--fs-sm); font-weight: var(--fw-medium); }

/* ─── Top bar ─── */
#topbar {
  position: sticky; top: 0;
  display: flex; align-items: center; gap: var(--s-2);
  height: calc(var(--topbar-h) + var(--safe-top));
  padding: var(--safe-top) var(--s-4) 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--divider);
  z-index: 100;
}
#topbar #title-group { flex: 1; min-width: 0; }
.title    { font-weight: var(--fw-bold); font-size: var(--fs-lg); line-height: 1.15; }
.subtitle { font-size: var(--fs-xs); color: var(--text-dim); line-height: 1.2; margin-top: 1px; }

.icon-btn {
  height: 40px; min-width: 40px; padding: 0 var(--s-2);
  border-radius: var(--r-sm);
  background: transparent; border: 0;
  color: var(--text);
  cursor: pointer;
  display: inline-grid; place-items: center;
  position: relative;
  font-size: 17px;
  transition: background var(--fast) var(--ease);
}
.icon-btn:active { background: var(--bg-elev-2); }
.icon-btn.avatar {
  background: linear-gradient(135deg, var(--hn), var(--he));
  font-weight: var(--fw-bold);
  font-size: var(--fs-body);
}
.icon-btn .badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px; font-weight: var(--fw-bold);
  display: grid; place-items: center;
  line-height: 1;
}

/* ─── Main view container ─── */
#view {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s-4) var(--s-4) calc(var(--bottomnav-h) + var(--safe-bottom) + var(--s-6));
  min-height: calc(100vh - var(--topbar-h));
  min-height: calc(100svh - var(--topbar-h));
}

/* ─── Bottom nav ─── */
#bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--bottomnav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--divider);
  z-index: 100;
}
#bottomnav button {
  background: transparent; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  color: var(--text-mute);
  cursor: pointer;
  padding: var(--s-2);
  transition: color var(--fast) var(--ease);
}
#bottomnav button.active { color: var(--text); }
#bottomnav .ico { font-size: 18px; line-height: 1; }
#bottomnav .ico.plus {
  font-size: 22px; font-weight: var(--fw-bold);
  background: linear-gradient(135deg, var(--hn), var(--he));
  color: #fff;
  width: 32px; height: 32px; border-radius: 999px;
  display: grid; place-items: center;
  margin-top: -4px;
}
#bottomnav .lbl { font-size: 10px; font-weight: var(--fw-medium); }

/* ─── Auth overlay ─── */
.overlay {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 1000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.auth-card {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--safe-top) + var(--s-8)) var(--s-6) calc(var(--safe-bottom) + var(--s-6));
  display: flex; flex-direction: column; align-items: center; gap: var(--s-3);
}
.auth-logo {
  width: 72px; height: 72px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--hn), var(--he), var(--nch));
  display: grid; place-items: center;
  font-weight: var(--fw-black);
  font-size: 28px;
  color: #fff;
  margin-top: var(--s-6);
}
.auth-title { font-size: var(--fs-h3); font-weight: var(--fw-bold); margin-top: var(--s-2); }
.auth-sub   { color: var(--text-dim); font-size: var(--fs-sm); margin-bottom: var(--s-6); }

.auth-who { width: 100%; display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.who-btn {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.who-btn:active { transform: scale(0.98); border-color: var(--border-strong); }
.who-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--hn), var(--he));
  display: grid; place-items: center;
  font-weight: var(--fw-bold);
  color: #fff;
}
.who-btn[data-who="basheer"] .who-avatar { background: linear-gradient(135deg, var(--nch), var(--he)); }
.who-name { font-weight: var(--fw-semi); font-size: var(--fs-lg); text-align: left; }
.who-role { font-size: var(--fs-xs); color: var(--text-dim); font-weight: var(--fw-regular); margin-left: 4px; }

.auth-pin { width: 100%; display: flex; flex-direction: column; align-items: center; gap: var(--s-4); margin-top: var(--s-4); }
.pin-hint { font-size: var(--fs-sm); color: var(--text-dim); }
.pin-dots { display: flex; gap: var(--s-3); margin: var(--s-2) 0; }
.pin-dots i {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  transition: background var(--fast);
}
.pin-dots i.on { background: var(--text); border-color: var(--text); }
.pin-dots.err i { border-color: var(--danger); }
.pin-pad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3);
  width: 100%; max-width: 300px;
  margin-top: var(--s-2);
}
.pin-pad button {
  height: 60px;
  border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border);
  font-size: var(--fs-xl); font-weight: var(--fw-semi);
  cursor: pointer;
  transition: background var(--fast) var(--ease);
}
.pin-pad button:active { background: var(--bg-elev-3); }
.pin-back, .pin-clear { color: var(--text-dim); font-size: var(--fs-lg); }
.link-btn { background: transparent; border: 0; color: var(--text-dim); font-size: var(--fs-sm); cursor: pointer; padding: var(--s-3); }

/* ─── Tile frame overlay ─── */
#tile-frame { display: flex; flex-direction: column; }
.tile-bar {
  height: calc(var(--topbar-h) + var(--safe-top));
  padding: var(--safe-top) var(--s-4) 0;
  display: flex; align-items: center; gap: var(--s-2);
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
}
.tile-bar-title {
  flex: 1;
  display: flex; align-items: center; gap: var(--s-2);
  font-weight: var(--fw-semi);
  font-size: var(--fs-md);
}
.tile-bar-title .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent, var(--hn)); flex-shrink: 0; }
#tile-iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: var(--bg);
  padding-bottom: var(--safe-bottom);
}

/* ─── Shared building blocks ─── */
.section {
  margin-bottom: var(--s-7);
}
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--s-3);
  padding: 0 var(--s-1);
}
.section-title {
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-mute);
}
.section-action {
  font-size: var(--fs-xs); font-weight: var(--fw-semi);
  color: var(--accent, var(--hn));
  cursor: pointer;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.card:active { transform: scale(0.99); border-color: var(--border-strong); }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: var(--fw-semi);
  background: var(--accent-soft, var(--hn-soft));
  color: var(--accent, var(--hn));
  border: 1px solid var(--accent-ring, var(--hn-ring));
}

.kpi-value { font-size: var(--fs-h1); font-weight: var(--fw-black); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-label { font-size: var(--fs-xs); color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
.delta-up   { color: var(--success); }
.delta-down { color: var(--danger);  }
.delta-flat { color: var(--text-mute); }

.empty {
  text-align: center;
  padding: var(--s-8) var(--s-4);
  color: var(--text-dim);
}
.empty .big { font-size: 32px; margin-bottom: var(--s-2); }
.empty .t   { font-weight: var(--fw-semi); color: var(--text); margin-bottom: 4px; }
.empty .d   { font-size: var(--fs-sm); }

/* ─── View transitions ─── */
.view-enter {
  animation: slideIn var(--med) var(--ease);
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ─── Skeleton loaders ─── */
.skel {
  background: linear-gradient(90deg, var(--bg-elev-1), var(--bg-elev-2), var(--bg-elev-1));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }

/* ═══════════════════════════════════════════════════════════ */
/*  HOME VIEW                                                    */
/* ═══════════════════════════════════════════════════════════ */

.greeting { margin-bottom: var(--s-5); }
.greet-line { font-size: var(--fs-h3); font-weight: var(--fw-semi); letter-spacing: -0.01em; }
.greet-line b { font-weight: var(--fw-black); }
.greet-meta { font-size: var(--fs-xs); color: var(--text-dim); margin-top: 4px; }

.pulse {
  background: linear-gradient(145deg, var(--bg-elev-1), var(--bg-elev-2));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  position: relative;
  overflow: hidden;
}
.pulse::before {
  content: '';
  position: absolute; top: -40%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--hn-soft), transparent 70%);
  pointer-events: none;
}
.pulse-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--s-3);
}
.pulse-label {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); font-weight: var(--fw-bold);
}
.pulse-time { font-size: var(--fs-xs); color: var(--text-mute); }
.pulse-hero { text-align: left; margin-bottom: var(--s-4); }
.pulse-val {
  font-size: var(--fs-hero);
  font-weight: var(--fw-black);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--text), var(--hn));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pulse-hint { font-size: var(--fs-xs); color: var(--text-mute); margin-top: var(--s-2); }

.pulse-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
.pulse-seg {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-3);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  position: relative;
}
.pulse-seg::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent, var(--hn));
  border-radius: 3px 0 0 3px;
}
.pulse-seg .seg-label { font-size: var(--fs-xs); color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.pulse-seg .seg-val   { font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }

.alerts-card { padding: 0; }
.alert-row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: var(--s-3); align-items: center;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
}
.alert-row:last-child { border-bottom: 0; }
.alert-row:active { background: var(--bg-elev-2); }
.alert-dot { width: 8px; height: 8px; border-radius: 50%; }
.alert-dot.warn   { background: var(--warning); }
.alert-dot.danger { background: var(--danger); }
.alert-dot.info   { background: var(--info); }
.alert-title { font-weight: var(--fw-semi); font-size: var(--fs-sm); }
.alert-sub   { font-size: var(--fs-xs); color: var(--text-dim); margin-top: 2px; }
.alert-time  { font-size: var(--fs-xs); color: var(--text-mute); font-variant-numeric: tabular-nums; }

.quick-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
}
.qt {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: var(--s-3) var(--s-2);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  min-height: 88px;
  position: relative;
  overflow: hidden;
}
.qt::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent, var(--hn));
  opacity: 0.8;
}
.qt-icon { font-size: 24px; line-height: 1; }
.qt-label { font-size: var(--fs-xs); font-weight: var(--fw-semi); text-align: center; line-height: 1.2; }

.brand-list { display: grid; gap: var(--s-3); }
.brand-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--s-4);
  cursor: pointer;
  text-align: left;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.brand-card::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
  background: var(--accent);
}
.brand-card:active { transform: scale(0.99); }
.brand-row { display: flex; align-items: center; gap: var(--s-3); padding-left: var(--s-2); }
.brand-logo {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  border: 1px solid var(--accent-ring);
}
.brand-meta { flex: 1; min-width: 0; }
.brand-name { font-weight: var(--fw-bold); font-size: var(--fs-md); }
.brand-tag  { font-size: var(--fs-xs); color: var(--text-dim); margin-top: 2px; }
.brand-today {
  font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--accent);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.brand-today:empty { display: none; }
.brand-arrow { color: var(--text-mute); font-size: 24px; line-height: 1; }
.brand-stats { display: flex; gap: var(--s-2); margin-top: var(--s-3); padding-left: var(--s-2); }
.bs-pill {
  padding: 2px 8px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: var(--fw-semi);
}
.bs-pill.live   { background: var(--success-soft); color: var(--success); }
.bs-pill.coming { background: var(--warning-soft); color: var(--warning); }

/* ═══════════════════════════════════════════════════════════ */
/*  BRAND COCKPIT VIEW                                           */
/* ═══════════════════════════════════════════════════════════ */

.brand-hero {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--s-3) var(--s-4) 0;
  margin-bottom: var(--s-3);
}
.brand-hero-logo {
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  border: 1px solid var(--accent-ring);
}
.brand-hero-name { font-size: var(--fs-h3); font-weight: var(--fw-black); letter-spacing: -0.01em; }
.brand-hero-tag  { font-size: var(--fs-sm); color: var(--text-dim); margin-top: 2px; }

.brand-summary {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
  margin-bottom: var(--s-6);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.bs { text-align: center; }
.bs-val { font-size: var(--fs-xl); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; color: var(--accent); }
.bs-lbl { font-size: var(--fs-xs); color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

.tile-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3);
}
.tile-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2);
  padding: var(--s-4);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: left;
  width: 100%;
  min-height: 110px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.tile-card:active { transform: scale(0.98); border-color: var(--accent-ring); }
.tile-card.is-soon { opacity: 0.55; }
.tc-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 20px;
  border: 1px solid var(--accent-ring);
}
.tc-body { flex: 1; }
.tc-name { font-weight: var(--fw-bold); font-size: var(--fs-sm); line-height: 1.2; }
.tc-type { font-size: var(--fs-xs); color: var(--text-mute); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.tc-soon {
  position: absolute; top: var(--s-3); right: var(--s-3);
  padding: 2px 6px; border-radius: var(--r-pill);
  background: var(--warning-soft); color: var(--warning);
  font-size: 9px; font-weight: var(--fw-bold); letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════ */
/*  ME / SEARCH / MISC                                           */
/* ═══════════════════════════════════════════════════════════ */

.me-card {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: var(--s-4);
}
.me-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--hn), var(--he));
  color: #fff;
  display: grid; place-items: center;
  font-weight: var(--fw-black);
  font-size: var(--fs-xl);
}
.me-name { font-weight: var(--fw-bold); font-size: var(--fs-lg); }
.me-role { font-size: var(--fs-xs); color: var(--text-dim); margin-top: 2px; }
.me-btn {
  width: 100%;
  padding: var(--s-4);
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--r-md);
  font-weight: var(--fw-semi);
  cursor: pointer;
  font-size: var(--fs-md);
}
.me-version {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-mute);
  margin-top: var(--s-6);
  font-family: ui-monospace, monospace;
}

.search-input {
  width: 100%;
  padding: var(--s-4);
  background: var(--bg-elev-2); border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: var(--fs-md);
  min-height: 52px;
}
.search-input:focus { outline: 0; border-color: var(--hn); }

/* ═══════════════════════════════════════════════════════════ */
/*  TOAST                                                        */
/* ═══════════════════════════════════════════════════════════ */

.toast {
  position: fixed; bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + var(--s-4));
  left: 50%; transform: translateX(-50%) translateY(20px);
  padding: var(--s-3) var(--s-4);
  background: var(--bg-elev-3); color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: var(--fw-semi);
  opacity: 0;
  transition: opacity var(--med) var(--ease), transform var(--med) var(--ease);
  z-index: 500;
  box-shadow: var(--shadow-2);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════════════════════ */
/*  INSTALL PROMPT                                               */
/* ═══════════════════════════════════════════════════════════ */

.install-prompt {
  position: fixed;
  left: var(--s-4);
  right: var(--s-4);
  bottom: calc(var(--safe-bottom) + var(--s-4));
  max-width: calc(var(--max-w) - var(--s-8));
  margin: 0 auto;
  padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4);
  background: linear-gradient(135deg, rgba(59,130,246,0.95), rgba(239,68,68,0.95));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  display: flex; align-items: center; gap: var(--s-3);
  z-index: 2000;
  box-shadow: var(--shadow-3);
  animation: slideUpSoft var(--slow) var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ip-icon { font-size: 24px; flex-shrink: 0; }
.ip-body { flex: 1; min-width: 0; color: #fff; }
.ip-title { font-weight: var(--fw-bold); font-size: var(--fs-sm); line-height: 1.2; }
.ip-sub   { font-size: var(--fs-xs); opacity: 0.85; margin-top: 2px; line-height: 1.3; }
.ip-btn {
  padding: var(--s-2) var(--s-4);
  background: #fff;
  color: var(--hn);
  border: 0;
  border-radius: var(--r-pill);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  cursor: pointer;
  min-height: 36px;
  flex-shrink: 0;
}
.ip-btn:active { transform: scale(0.96); }
.ip-dismiss {
  background: transparent; border: 0;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  cursor: pointer;
  padding: var(--s-1) var(--s-2);
  flex-shrink: 0;
}
.ip-dismiss:active { color: #fff; }

@keyframes slideUpSoft {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ─── Install help modal ─── */
#install-help { background: rgba(0,0,0,0.8); z-index: 2500; }
.ih-card {
  max-width: var(--max-w);
  margin: calc(var(--safe-top) + var(--s-6)) auto;
  padding: var(--s-6) var(--s-5) var(--s-5);
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  position: relative;
  box-shadow: var(--shadow-3);
}
.ih-card .icon-btn {
  position: absolute; top: var(--s-3); right: var(--s-3);
}
.ih-icon {
  text-align: center;
  margin-bottom: var(--s-3);
}
.ih-icon::before {
  content: '📱';
  font-size: 48px;
  display: block;
}
.ih-title {
  font-size: var(--fs-h3); font-weight: var(--fw-black);
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.ih-sub {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  text-align: center;
  margin-bottom: var(--s-5);
}
.ih-list {
  padding-left: var(--s-6);
  line-height: 1.8;
  color: var(--text);
  font-size: var(--fs-sm);
  margin: 0;
}
.ih-list li { margin-bottom: var(--s-2); }
.ih-list b  { color: var(--hn); font-weight: var(--fw-bold); }
.ih-badge {
  display: inline-block;
  min-width: 22px; padding: 2px 6px;
  background: var(--bg-elev-3); border-radius: var(--r-xs);
  font-size: var(--fs-xs);
  margin: 0 2px;
  font-family: ui-monospace, monospace;
}
.ih-note {
  margin-top: var(--s-4);
  padding: var(--s-3);
  background: var(--warning-soft);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--r-sm);
  color: var(--warning);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

/* ─── Respect reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
