html.tape { background: #cfc4b0; }
#clock, .lgme-clock { display: none !important; }
html.tape body {
  max-width: 26rem;
  color: #1a1612;
  font-family: Figtree, ui-sans-serif, system-ui, sans-serif;
  background-color: #f7f1e4;
  background-image:
    radial-gradient(circle at 7px 7px, #cfc4b0 2.5px, transparent 3px),
    repeating-linear-gradient(to bottom, transparent 0 1.35rem, rgba(92, 69, 24, 0.16) 1.35rem 1.4rem),
    linear-gradient(90deg, rgba(120, 90, 40, 0.16), transparent 10px, transparent calc(100% - 12px), rgba(90, 70, 40, 0.2)),
    linear-gradient(#f7f1e4, #f3ead8);
  background-size: 14px 14px, auto, auto, auto;
  background-repeat: repeat-y, repeat, no-repeat, no-repeat;
  box-shadow: 0 0 0 1px rgba(90, 70, 40, 0.18);
}
html.tape :is(h1, h2, h3, h4) { font-family: Figtree, ui-sans-serif, system-ui, sans-serif; color: #1a1612; }
html.tape { --fg: #1a1612; --muted: #3f3830; --bg: #f7f1e4; --card: #fffaf2; --line: #e4d7bf; }
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  gap: 0;
  align-items: center;
  box-sizing: border-box;
  height: 28px;
  padding: 0 2px;
  padding-top: 0;
  background: #0c100c;
  border-bottom: 1px solid #2c352b;
  overflow: visible;
}
#site-nav button, #site-nav a {
  position: relative;
  box-sizing: border-box;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #c6a15b;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
  text-decoration: none;
}
#site-next[hidden] { display: none; }
.access-card, .steps > article, #onboarding .screen { scroll-margin-top: 40px; }
#site-nav button:focus-visible, #site-nav a:focus-visible { outline: 2px solid #c6a15b; outline-offset: 1px; }
html.has-site-nav body,
body.has-site-nav { padding-top: 34px; scroll-padding-top: 40px; }
html.has-site-nav body:has(#exchange-overview),
body.has-site-nav:has(#exchange-overview) { padding-top: 0; }
html.has-site-nav body:has(#exchange-overview) .launch-bar { margin-top: 42px; }
html.has-site-nav body { padding-bottom: calc(50vh + env(safe-area-inset-bottom)); }
html[data-screen="simple"] body { padding-bottom: calc(50vh + env(safe-area-inset-bottom)); }
html[data-screen="full"] body { padding-bottom: calc(50vh + env(safe-area-inset-bottom)); }
html.has-site-nav :is(button, a, input, textarea, select, label) { scroll-margin-top: 5rem; scroll-margin-bottom: 52vh; }
#ai-dock :is(button, a, input, textarea, select, label) { scroll-margin: 0; }
html.has-site-nav body:has(nav[aria-label="Gym"]) { padding-bottom: calc(50vh + 4.5rem + env(safe-area-inset-bottom)); }
html.is-one-tab.has-site-nav body:has(nav[aria-label="Gym"]),
html.is-one-tab body:has(nav[aria-label="Gym"]) { padding-bottom: calc(50vh + env(safe-area-inset-bottom)); }
html[data-screen="simple"] body:has(nav[aria-label="Gym"]) { padding-bottom: calc(50vh + 4.5rem + env(safe-area-inset-bottom)); }
html[data-screen="full"] body:has(nav[aria-label="Gym"]) { padding-bottom: calc(50vh + 4.5rem + env(safe-area-inset-bottom)); }
#first-open { padding-bottom: 52vh; }
#access-fingerprint, #fingerprint-setup, #gate-passkey { position: relative; z-index: 2; pointer-events: auto; }
#confirm-gate { z-index: 60; bottom: calc(50vh + 0.6rem); }
html[data-screen="simple"] #confirm-gate { bottom: calc(50vh + 0.6rem); }
html[data-screen="full"] #confirm-gate { bottom: calc(50vh + 0.6rem); }
#ai-dock {
  position: fixed;
  inset: auto 0 0 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  max-height: none;
  max-width: none;
  margin: 0;
  z-index: 45;
  box-sizing: border-box;
  padding: 0.35rem 0.7rem calc(0.35rem + env(safe-area-inset-bottom));
  background-color: #0c100c;
  background-image: none;
  color: #f4f1e8;
  border: 0;
  overflow: hidden;
}
#ai-dock.is-open {
  display: flex;
  flex-direction: column;
  height: 50vh;
  height: 50dvh;
  max-height: 50vh;
  max-height: 50dvh;
  border: 2px solid #c6a15b;
  border-radius: 14px;
}
html[data-screen="simple"] #ai-dock.is-open,
html[data-screen="full"] #ai-dock.is-open { height: 50vh; height: 50dvh; max-height: 50vh; max-height: 50dvh; }
#ai-dock:not(.is-open):not(.has-field) #ai-chips,
#ai-dock:not(.is-open):not(.has-field) #ai-ask,
#ai-dock:not(.is-open):not(.has-field) #ai-overview,
#ai-dock:not(.is-open):not(.has-field) #ai-overview-steps,
#ai-dock:not(.is-open):not(.has-field) #ai-next,
#ai-dock:not(.is-open):not(.has-field) #ai-promote,
#ai-dock:not(.is-open):not(.has-field) #ai-shortcut-offer,
#ai-dock:not(.is-open):not(.has-field) #ai-path,
#ai-dock:not(.is-open):not(.has-field) #ai-try,
#ai-dock:not(.is-open):not(.has-field) #ai-log-frame,
#ai-dock:not(.is-open):not(.has-field) #ai-suggestions,
#ai-dock:not(.is-open):not(.has-field) .ai-compose,
#ai-dock:not(.is-open):not(.has-field) .ai-actions,
#ai-dock:not(.is-open):not(.has-field) #ai-voice,
#ai-dock:not(.is-open):not(.has-field) #ai-voice-reply,
#ai-dock:not(.is-open):not(.has-field) #ai-voice-mode,
#ai-dock:not(.is-open):not(.has-field) #ai-listen,
#ai-dock:not(.is-open):not(.has-field) #ai-mic,
#ai-dock:not(.is-open):not(.has-field) #ai-speaking,
#ai-dock:not(.is-open):not(.has-field) #ai-stop,
#ai-dock:not(.is-open):not(.has-field) .ai-setup-link,
#ai-dock:not(.is-open):not(.has-field) #ai-self-test,
#ai-dock:not(.is-open):not(.has-field) #ai-test-line,
#ai-dock:not(.is-open):not(.has-field) #ai-flag,
#ai-dock:not(.is-open):not(.has-field) #ai-incognito-review { display: none; }
.new-badge { position: absolute; top: 0.15rem; right: 0.2rem; min-width: 1.35rem; height: 1.35rem; padding: 0 0.2rem; border-radius: 999px; background: #1a1408; color: #fff; font-size: 0.75rem; font-weight: 700; line-height: 1.35rem; text-align: center; visibility: hidden; }
.is-new > .new-badge, .is-new.new-badge { visibility: visible; }
#category-board button, .entry-tile { position: relative; }
#category-board button.is-new, .entry-tile.is-new > a, a.is-new { background: #F97316; color: #1a1408; }
#ai-head { margin-left: auto; font-size: 0.75rem; font-weight: 700; color: #8d938c; }
#ai-head.is-on { color: #8fd6a8; }
#ai-switch.is-on { background: #146c43; color: #fff; border-color: #146c43; }
#ai-switch.is-on::before { content: ''; display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.35rem; border-radius: 50%; background: #b7f0c8; vertical-align: middle; }
#ai-switch:not(.is-on) { background: #3a3f3a; color: #f4f1e8; }
body:has(nav[aria-label="Gym"]) #ai-dock { bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
html.is-one-tab body:has(nav[aria-label="Gym"]) #ai-dock { bottom: 0; }
.ai-top { position: relative; z-index: 3; display: flex; flex: 0 0 auto; flex-wrap: nowrap; align-items: center; gap: 0.25rem; margin: 0 0 0.1rem; overflow-x: auto; }
.ai-mode { position: sticky; left: 0; z-index: 4; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0.25rem; background: #0c100c; padding-right: 0.35rem; }
#ai-dock .ai-top .ai-mode-btn { min-height: 40px; height: 40px; min-width: 0; padding: 0 0.65rem; font-size: 15px; line-height: 40px; border-radius: 999px; }
#ai-dock .ai-top #ai-switch.ai-mode-btn { max-width: 6.2rem; overflow: hidden; text-overflow: ellipsis; }
#ai-dock .ai-top .ai-mode-btn[aria-pressed="true"] { background: #f4f1e8; color: #0c100c; border-color: #f4f1e8; }
#ai-dock:not(.is-open) { min-height: 3.25rem; }
#ai-dock:not(.is-open):not(.has-field) .ai-top > :not(.ai-mode):not(#ai-expand) { display: none; }
#ai-dock.is-open .ai-actions { position: relative; z-index: 2; }
.ai-label { margin: 0; font-size: 0.72rem; letter-spacing: 0.16em; font-weight: 700; color: #F97316; }
.ai-setup-link { min-height: 32px; display: inline-flex; align-items: center; color: #f4f1e8; }
#app-reset-note { margin: 0 0 0.2rem; font-weight: 700; }
#ai-dock.is-off #ai-flag,
#ai-dock.is-off #ai-accept { display: none; }
#ai-dock.is-off.has-field #ai-log { display: block; }
#ai-dock.is-off.has-field #ai-chips { display: flex; }
#ai-dock.has-field { display: flex; flex-direction: column; }
#ai-dock.has-field > * { order: 5; }
#ai-dock.has-field .ai-top { order: 1; }
#ai-dock.has-field #ai-log { order: 2; }
#ai-dock.has-field #ai-chips { order: 3; }
#ai-chip-row { display: none; }
#ai-chips { display: flex; flex-wrap: nowrap; gap: 0.5rem; min-height: 32px; max-height: 32px; margin: 0 0 0.25rem; padding-right: 1.2rem; overflow-x: auto; }
#ai-dock.has-field #ai-chips { flex-wrap: nowrap; max-height: 32px; overflow-x: auto; }
#ai-dock .ai-chip { flex: 0 0 auto; white-space: nowrap; min-height: 32px; min-width: 24px; height: 32px; padding: 0 0.5rem; border-radius: 999px; border: 1px solid #c6a15b; background: #f4f1e8; color: #1a1408; font: inherit; font-size: 14px; font-weight: 700; }
#ai-chip-hint { position: absolute; right: 0; top: 0; width: 1.3rem; height: 32px; display: flex; align-items: center; justify-content: flex-end; color: #f4f1e8; pointer-events: none; background: linear-gradient(to right, transparent, #0c100c 60%); }
.ai-compose { display: flex; align-items: stretch; gap: 0.25rem; }
#ai-log-frame, #ai-input-frame {
  box-sizing: border-box;
  border: 2px solid #c6a15b;
  border-radius: 12px;
  background: rgba(198, 161, 91, 0.5);
}
#ai-input-frame { position: relative; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
#ai-ask {
  box-sizing: border-box;
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 44px;
  margin: 0;
  padding: 0.35rem 4.2rem 0.35rem 0.5rem;
  font: inherit;
  font-size: 16px;
  line-height: 22px;
  color: #f4f1e8;
  background: transparent;
  border: 0;
  border-radius: 10px;
  pointer-events: auto;
}
#ai-send-state {
  position: absolute;
  right: 0.4rem;
  bottom: 3.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}
#ai-send-state i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #c6a15b; }
#ai-send-state.is-held i { animation: lgme-status-blink 1.5s ease-in-out infinite; }
#ai-send-state.is-sent i { background: #22c55e; animation: none; opacity: 1; }
.sr-only { position: absolute; width: 0; height: 0; padding: 0; margin: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ai-suggest { display: flex; align-items: center; gap: 0.35rem; margin: 0.2rem 0.35rem 0.35rem; padding: 0.15rem 0.35rem; border-radius: 8px; background: rgba(244, 241, 232, 0.28); }
.ai-suggest { margin-bottom: 0.45rem; }
.ai-suggest-line { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.4; font-weight: 700; }
.ai-step-no, #ai-do-all { min-width: 44px; min-height: 44px; }
.ai-step-no { width: 44px; padding: 0; border-radius: 50%; font-weight: 700; }
#ai-do-all { margin: 0.2rem 0.35rem 0.45rem; }
#ai-explain-steps { margin: 0.2rem 0.5rem 0.45rem; padding: 0; list-style: none; font-size: 14px; line-height: 1.4; }
#ai-explain-steps li { margin: 0.28rem 0; }
#ai-dock.is-compact #ai-explain-steps { font-size: 0.92em; }
#ai-dock.is-tall #ai-explain-steps { font-size: 1.08em; }
.ai-yesno { display: inline-flex; gap: 0.25rem; flex: 0 0 auto; }
#ai-dock .ai-yes, #ai-dock .ai-no { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; font-size: 18px; line-height: 1; }
#ai-dock .ai-yes { border-radius: 999px; background: #146c43; color: #fff; border-color: #146c43; }
#ai-dock .ai-no { border-radius: 4px; background: #b00020; color: #fff; border-color: #b00020; }
.tap-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; min-height: 44px; margin: 0.35rem 0; }
.tap-chip { min-height: 44px; font: inherit; font-weight: 700; border-radius: 999px; border: 1px solid #c6a15b; background: #f4f1e8; color: #1a1408; padding: 0.35rem 0.8rem; }
#ai-flag { margin: 0; max-height: 1.05rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; line-height: 1.05rem; }
#ai-log {
  box-sizing: border-box;
  margin: 0;
  height: auto;
  line-height: 1.4;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  padding: 0.35rem 0.5rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#ai-scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; }
#ai-dock.is-open #ai-scroll { flex: 1; min-height: 0; max-height: none; overflow-y: auto; }
#ai-steps { list-style: none; margin: 0.15rem 0 0; padding: 0; }
#ai-log p { margin: 0.35rem 0; }
#ai-log strong { font-weight: 700; }
#ai-steps li { margin: 0.28rem 0; padding: 0.15rem 0.35rem; border-radius: 8px; white-space: normal; line-height: 1.4; font-size: 14px; }
#ai-steps li.is-current { outline: 2px solid #F97316; background: #241c10; }
#ai-steps li.is-done { opacity: 0.75; }
#function-row, #my-functions, #profile-board { scroll-margin-bottom: 52vh; }
#profile-board,
#function-row {
  box-sizing: border-box;
  border: 2px solid #c6a15b;
  border-radius: 14px;
  background: #151a15;
  color: #f4f1e8;
}
html.tape #profile-board,
html.tape #message-panel,
html.is-easy #profile-board,
html.is-easy #message-panel,
html.tape .dash-card,
html.is-easy .dash-card {
  color: #f4f1e8;
}
html.tape #profile-board :is(h1, h2, h3, h4, p, label, summary),
html.tape #message-panel :is(h1, h2, h3, h4, p, label),
html.is-easy #profile-board :is(h1, h2, h3, h4, p, label, summary, button),
html.is-easy #message-panel :is(h1, h2, h3, h4, p, label, button),
html.tape .dash-card :is(h1, h2, h3, h4, strong, p),
html.is-easy .dash-card :is(h1, h2, h3, h4, strong, p) {
  color: #f4f1e8;
}
#profile-board input, #profile-board textarea, #message-panel textarea {
  color: #14110c;
  background: #fffdf8;
}
#ai-overview, #ai-overview-steps, #ai-next, #ai-promote, #ai-shortcut-offer { margin: 0.2rem 0; color: #f4f1e8; font-size: 14px; line-height: 1.35; }
#ai-next, #ai-promote, #ai-shortcut-offer { border: 1px solid #c6a15b; border-radius: 10px; padding: 0.35rem 0.5rem; }
#ai-path { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 0.25rem; margin: 0 0 0.1rem; height: 22px; min-height: 22px; overflow-x: auto; color: #f4f1e8; }
#ai-path[hidden], html[data-guide="manual"] #ai-path, #ai-dock.is-manual #ai-path { display: none; }
#ai-path-actions { display: inline-flex; align-items: center; gap: 0.25rem; margin-left: auto; flex: 0 0 auto; }
#ai-dock #ai-path-line,
#ai-dock #ai-path button { flex: 0 0 auto; height: 22px; min-height: 22px; min-width: max-content; padding: 0 0.4rem; font-size: 12px; line-height: 22px; white-space: nowrap; }
#ai-path-line { flex: 1 1 auto; min-width: 0; font-weight: 700; }
#ai-try { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.35rem 0.2rem; }
#ai-try .ai-try-chip { display: inline-flex; align-items: center; min-height: 32px; margin: 0; padding: 0 0.65rem; border-radius: 999px; border: 1px solid #c6a15b; background: #f4f1e8; color: #1a1408; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
#ai-prefill { display: none; }
#ai-key-done { display: none; }
#ai-dock.is-open.is-key-page {
  height: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}
#ai-dock.is-key-page > :not(#ai-key-done) { display: none !important; }
#ai-dock.is-key-page #ai-key-done {
  display: flex;
  position: fixed;
  left: 0.35rem;
  right: 0.35rem;
  bottom: calc(0.35rem + env(safe-area-inset-bottom));
  z-index: 80;
  height: auto;
  min-height: 44px;
  width: auto;
  max-width: none;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  overflow-x: auto;
  background: #0c100c;
  border: 1px solid #c6a15b;
  border-radius: 12px;
  line-height: 1;
}
#ai-dock.is-key-page #ai-field-chips { display: flex; flex: 1 1 auto; gap: 0.25rem; min-width: 0; overflow-x: auto; }
#ai-dock.is-key-page #ai-field-chips[hidden],
#ai-dock.is-key-page #ai-field-voice[hidden],
#ai-dock.is-key-page #ai-field-type[hidden],
#ai-dock.is-key-page #ai-field-close[hidden] { display: none; }
#ai-dock.is-key-page #ai-field-voice,
#ai-dock.is-key-page #ai-field-type,
#ai-dock.is-key-page #ai-field-close,
#ai-dock.is-key-page #ai-field-done,
#ai-dock.is-key-page #ai-field-chips button {
  flex: 0 0 auto;
  height: 36px;
  min-height: 36px;
  min-width: 36px;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-size: 14px;
  line-height: 36px;
}
#ai-dock.is-key-page #ai-field-chips button { background: #f4f1e8; color: #1a1408; border-color: #c6a15b; }
#ai-dock.is-key-page #ai-field-close { background: #b00020; color: #fff; border-color: #b00020; }
html.has-hand #ai-dock,
html.has-hand.is-one-tab body:has(nav[aria-label="Gym"]) #ai-dock {
  bottom: var(--hand-h, 5.6rem);
  padding-bottom: 0.35rem;
}
html.has-hand #ai-dock.is-open.is-big,
html.has-hand.is-one-tab body:has(nav[aria-label="Gym"]) #ai-dock.is-open.is-big,
html[data-screen="simple"] #ai-dock.is-open.is-big,
html[data-screen="full"] #ai-dock.is-open.is-big,
#ai-dock.is-open.is-big {
  top: 34px;
  bottom: var(--hand-h, 5.6rem);
  height: auto !important;
  max-height: none !important;
  border-radius: 14px 14px 0 0;
}
#ai-dock.is-open.is-big .ai-compose {
  flex: 0 0 auto;
  position: relative;
  z-index: 6;
  background: #f3ead4;
}
#ai-dock.is-open.is-big {
  background: #f3ead4;
  color: #14110c;
  border-color: #8a6a2f;
}
#ai-dock.is-open.is-big :is(p, li, pre, h2, h3, label, #ai-ask, #ai-log, #ai-overview, #ai-overview-steps, #ai-path, #ai-path-line, #ai-next, #ai-promote, #ai-flag, .ai-suggest-line, .ai-kicker) {
  color: #14110c;
}
#ai-dock.is-open.is-big .ai-mode,
#ai-dock.is-open.is-big #ai-log-frame,
#ai-dock.is-open.is-big #ai-input-frame,
#ai-dock.is-open.is-big #hand-recent-sheet {
  background: #fffdf8;
  color: #14110c;
  border-color: #8a6a2f;
}
#ai-dock.is-open.is-big #ai-ask {
  color: #14110c;
  background: #fffdf8;
}
#ai-dock.is-open.is-big .ai-suggest { background: #efe4cc; color: #14110c; }
#ai-dock.is-open.is-big #ai-steps li.is-current { background: #e7d7b0; color: #14110c; }
#ai-dock.is-open.is-big #ai-chip-hint { color: #14110c; background: linear-gradient(to right, transparent, #f3ead4 60%); }
#ai-dock.is-open.is-big #hand-recent-sheet a { background: #fffdf8; color: #14110c; }
#ai-dock.is-open.is-big button { color: #14110c; border-color: #8a6a2f; background: #fffdf8; }
#ai-dock.is-open.is-big .ai-top .ai-mode-btn[aria-pressed="true"] { background: #14110c; color: #f7f1e4; border-color: #14110c; }
#ai-dock.is-open.is-big #ai-send { background: #c6a15b; color: #14110c; }
#ai-dock.is-open.is-big #ai-accept { background: #0f766e; color: #fff; }
#ai-dock.is-open.is-big #ai-confirm { background: #146c43; color: #fff; }
#ai-dock.is-open.is-big #speak-ask.is-yes { background: #22c55e; color: #14110c; }
#ai-dock.is-open.is-big #speak-ask.is-no,
#ai-dock.is-open.is-big #speak-ask:not(.is-yes) { background: #4b5563; color: #fff; }
#ai-dock.is-open.is-big #ai-mic-btn.is-off,
#ai-dock.is-open.is-big #ai-voice.is-off { background: #b00020; color: #fff; border-color: #b00020; }
#ai-dock.is-open.is-big .ai-yes { background: #146c43; color: #fff; }
#ai-dock.is-open.is-big .ai-no { background: #b00020; color: #fff; }
html.has-hand { background: #050605; }
html.has-hand::before {
  content: '';
  position: fixed;
  z-index: 44;
  pointer-events: none;
  top: 36px;
  right: 6px;
  bottom: calc(var(--hand-h, 5.6rem) + 6px);
  left: 6px;
  border: 1px solid var(--page-line, #c6a15b);
  border-radius: 18px;
}
html[data-sub].has-hand::before { border-color: var(--sub-line, var(--page-line, #c6a15b)); }
html.has-hand #gym-panel {
  margin: 6px 10px 0;
  border: 1px solid transparent;
  border-radius: 16px;
}
html[data-sub] #gym-panel { border-color: var(--sub-line, #c6a15b); }
#page-chrome {
  position: sticky;
  top: 34px;
  z-index: 48;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 6px 10px 0;
  height: 40px;
  padding: 0 0.25rem 0 0.7rem;
  border: 1px solid var(--page-line, #c6a15b);
  border-radius: 999px;
  background: #0c100c;
  color: var(--page-line, #c6a15b);
}
#page-chrome #hand-name {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--page-line, #c6a15b);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#page-chrome .frame-icon {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
}
#page-chrome .frame-icon[aria-pressed="true"] { background: var(--page-line, #c6a15b); color: #0c100c; }
#page-menu {
  position: sticky;
  top: 78px;
  z-index: 48;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  margin: 4px 10px 0;
  padding: 0.35rem;
  border: 1px solid var(--sub-line, var(--page-line, #c6a15b));
  border-radius: 14px;
  background: #0c100c;
}
#page-menu[hidden] { display: none; }
#page-menu button, #page-menu a {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--page-line, #c6a15b);
  background: #f4f1e8;
  color: #1a1408;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}
html:has(#ai-dock.is-key-page) #page-chrome,
html:has(#ai-dock.is-key-page) #page-menu { display: none; }
#page-chrome,
#page-menu { display: none !important; }
#hand-bar {
  position: fixed;
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  height: auto;
  min-height: 4.6rem;
  padding: 0.35rem 0.3rem calc(0.55rem + env(safe-area-inset-bottom));
  box-sizing: border-box;
  background: #f4f1e8;
  color: #1a1408;
  border-top: 2px solid #c6a15b;
}
#hand-purpose {
  margin: 0;
  padding: 0.05rem 0.45rem 0.2rem;
  color: #1a1408;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
#hand-row { display: flex; align-items: stretch; justify-content: space-around; gap: 0.15rem; }
#hand-bar button {
  flex: 1 1 0;
  height: auto;
  min-height: 48px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 0;
  background: transparent;
  color: #1a1408;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  padding: 0.1rem 0.05rem;
}
#hand-bar .hand-icon { font-style: normal; font-size: 16px; line-height: 1; font-weight: 700; }
#hand-bar button b { font-size: 12px; font-weight: 700; line-height: 1.1; }
#hand-bar button small { font-size: 9px; font-weight: 500; line-height: 1.15; color: #6b5a32; }
#hand-bar button[aria-pressed="true"] { color: #f4f1e8; background: #1a1408; border-radius: 12px; }
#hand-bar button[aria-pressed="true"] small,
#hand-bar button[aria-pressed="true"] .hand-icon { color: #c6a15b; }
#hand-bar button:disabled { opacity: 0.35; }
#hand-recent-sheet {
  position: fixed;
  left: 0.4rem;
  right: 0.4rem;
  bottom: calc(4.9rem + env(safe-area-inset-bottom));
  z-index: 79;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.35rem;
  background: #0c100c;
  border: 1px solid #c6a15b;
  border-radius: 12px;
}
#hand-recent-sheet.is-in-dock {
  position: static !important;
  left: auto;
  right: auto;
  bottom: auto;
  width: auto;
  z-index: 1;
  margin: 0 0 0.35rem;
}
html:has(#ai-dock.is-key-page) #hand-bar,
html:has(#ai-dock.is-key-page) #hand-recent-sheet:not(.is-in-dock) { display: none; }
#hand-recent-sheet a {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #f4f1e8;
  color: #1a1408;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
#ai-dock.is-open.is-key-prompt { height: auto; max-height: none; }
#ai-dock.is-key-prompt #ai-scroll,
#ai-dock.is-key-prompt #ai-path,
#ai-dock.is-key-prompt #ai-chip-row,
#ai-dock.is-key-prompt #ai-flag,
#ai-dock.is-key-prompt #ai-incognito-notice,
#ai-dock.is-key-prompt #app-reset-note,
#ai-dock.is-key-prompt #ai-key-done { display: none !important; }
#ai-dock.is-open .ai-compose { flex: 0 0 auto; background: #0c100c; }
.is-ask-focus { outline: 3px solid #F97316; outline-offset: 2px; }
html[data-guide="manual"] #ai-next,
html[data-guide="manual"] #ai-promote,
#ai-dock.is-manual #ai-next,
#ai-dock.is-manual #ai-promote { display: none; }
#my-shortcuts { display: flex; gap: 0.4rem; overflow-x: auto; margin: 0.25rem 0; }
#my-shortcuts[hidden], #shortcut-offer[hidden] { display: none; }
#my-shortcuts a, #my-shortcuts button, #shortcut-offer button { min-height: 44px; }
html.is-easy #ai-overview, html.is-easy #ai-overview-steps, html.is-easy #ai-next, html.is-easy #ai-promote { font-size: 22px; color: #f4f1e8; }
html[data-theme="paper"] #profile-board,
html[data-theme="paper"] #function-row,
html[data-theme="paper"] #ai-dock.is-open,
html[data-screen="simple"] #profile-board,
html[data-screen="simple"] #function-row,
html[data-screen="simple"] #ai-dock.is-open {
  border: 2px solid #1a1408;
  background-color: #f4f1e8;
  color: #1a1408;
}
html[data-theme="paper"] #ai-dock button:not(#ai-switch),
html[data-theme="paper"] #ai-dock .ai-setup-link,
html[data-theme="paper"] #ai-log,
html[data-theme="paper"] #ai-ask,
html[data-theme="paper"] #ai-voice-mode,
html[data-screen="simple"] #ai-dock button:not(#ai-switch),
html[data-screen="simple"] #ai-dock .ai-setup-link,
html[data-screen="simple"] #ai-log,
html[data-screen="simple"] #ai-ask,
html[data-screen="simple"] #ai-voice-mode {
  color: #1a1408;
  border-color: #1a1408;
}
html[data-theme="paper"] #ai-ask,
html[data-screen="simple"] #ai-ask { background: #fff; }
html[data-theme="paper"] #profile-board .secondary,
html[data-screen="simple"] #profile-board .secondary { color: #1a1408; }
html[data-screen="full"] #profile-board,
html[data-screen="full"] #function-row,
html[data-screen="full"] #ai-dock.is-open,
html[data-theme="gold"] #profile-board,
html[data-theme="gold"] #function-row,
html[data-theme="gold"] #ai-dock.is-open {
  border: 2px solid #f0d48a;
  border-radius: 14px;
}
@media (prefers-contrast: more) {
  #profile-board, #function-row, #ai-dock.is-open { border-color: #f4f1e8; }
  html[data-screen="simple"] #profile-board,
  html[data-screen="simple"] #function-row,
  html[data-screen="simple"] #ai-dock.is-open,
  html[data-theme="paper"] #profile-board,
  html[data-theme="paper"] #function-row,
  html[data-theme="paper"] #ai-dock.is-open { border-color: #1a1408; }
}
#my-functions { grid-column: 1 / -1; margin: 0 0 0.7rem; }
#my-functions summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; }
#my-functions:not([open]) #functions-import { display: none; }
#ai-more { margin: 0; font-size: 0.75rem; font-weight: 700; color: #F97316; }
@media (max-width: 800px) {
  body { font-size: 15px; }
  button, a { font-size: 15px; min-height: 48px; }
  #profile-board, #profile-board p, #profile-board h2 { margin-top: 0.15rem; margin-bottom: 0.15rem; line-height: 1.25; }
}
html[data-screen="simple"] body { font-size: 18px; }
#ai-send.is-pressed, #ai-confirm.is-pressed { outline: 2px solid #F97316; }
#ai-voice-mode { font-size: 0.75rem; font-weight: 700; }
#ai-incognito-notice { margin: 0.15rem 0; font-weight: 700; color: #F97316; }
#ai-incognito-notice[hidden], #ai-incognito-review[hidden] { display: none; }
#ai-incognito-review { margin: 0.25rem 0; }
#ai-mic, #ai-speaking { font-weight: 700; color: #F97316; }
#ai-mic[hidden], #ai-speaking[hidden], #ai-stop[hidden] { display: none; }
#ai-dock.is-compact #ai-log, #ai-dock.is-compact .ai-suggest-line, #ai-dock.is-compact #ai-steps { font-size: 0.92em; }
#ai-dock.is-tall #ai-log, #ai-dock.is-tall .ai-suggest-line, #ai-dock.is-tall #ai-steps { font-size: 1.08em; }
#ai-dock.is-voice #ai-log, #ai-dock.is-voice #ai-steps { line-height: 1.4; }
#speak-ask { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; min-width: 44px; padding: 0 0.55rem; border-radius: 999px; border: 1px solid #c6a15b; background: #6b7280; color: #f4f1e8; font: inherit; font-size: 13px; line-height: 1; font-weight: 700; }
#speak-ask.is-wait { animation: lgme-status-blink 1.5s ease-in-out infinite; }
#speak-ask.is-yes { background: #22c55e; color: #1a1408; border-color: #22c55e; animation: none; }
#speak-ask.is-no { background: #6b7280; color: #f4f1e8; border-color: #6b7280; animation: none; }
#ai-action-status { margin: 0.2rem 0 0; font-size: 0.8rem; }
#ai-dock .ai-actions { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: 0.2rem; margin: 0.15rem 0.2rem 0.2rem; overflow-x: auto; }
#ai-controls, #speak-ask, #ai-mic-btn, #ai-send, #ai-accept, #ai-confirm { width: auto; min-width: 44px; height: 44px; min-height: 44px; padding: 0 0.35rem; font-size: 12px; line-height: 1; flex: 0 0 auto; }
#ai-mic-btn { background: #6b7280; color: #f4f1e8; border-color: #6b7280; }
#ai-mic-btn svg { display: block; }
#ai-dock #ai-mic-btn.is-off, #ai-dock #ai-voice.is-off { background: #b00020; color: #fff; border-color: #b00020; }
#ai-dock #ai-mic-btn.is-listening, #ai-dock #ai-voice.is-listening,
#ai-dock #ai-mic-btn.is-processing, #ai-dock #ai-voice.is-processing { background: #c6a15b; color: #1a1408; border-color: #c6a15b; animation: lgme-status-blink 1.5s ease-in-out infinite; }
#ai-dock #ai-mic-btn.is-done, #ai-dock #ai-voice.is-done { background: #22c55e; color: #1a1408; border-color: #22c55e; animation: none; }
#ai-status .is-on i, #ai-status .voice-done i { background: #22c55e; animation: none; opacity: 1; }
#ai-status .is-off i, #ai-status .voice-off i { background: #b00020; animation: none; opacity: 1; }
#ai-status .voice-listening i, #ai-status .voice-processing i { background: #c6a15b; animation: lgme-status-blink 1.5s ease-in-out infinite; }
@keyframes lgme-status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.28; }
}
#ai-send { background: #c6a15b; color: #1a1408; border-color: #c6a15b; }
#ai-accept { background: #0f766e; color: #f4f1e8; border-color: #0f766e; }
#ai-confirm { background: #146c43; color: #fff; border-color: #146c43; }
html[data-theme="paper"] #ai-log-frame, html[data-theme="paper"] #ai-input-frame,
html[data-screen="simple"] #ai-log-frame, html[data-screen="simple"] #ai-input-frame { border-color: #1a1408; background: rgba(26, 20, 8, 0.5); }
html[data-theme="gold"] #ai-log-frame, html[data-theme="gold"] #ai-input-frame,
html[data-screen="full"] #ai-log-frame, html[data-screen="full"] #ai-input-frame { border-color: #f0d48a; background: rgba(240, 212, 138, 0.5); }
html[data-theme="paper"] #ai-dock #ai-send, html[data-screen="simple"] #ai-dock #ai-send { background: #c6a15b; color: #1a1408; }
html[data-theme="paper"] #ai-dock #ai-accept, html[data-screen="simple"] #ai-dock #ai-accept { background: #0f766e; color: #f4f1e8; }
html[data-theme="paper"] #ai-dock #ai-confirm, html[data-screen="simple"] #ai-dock #ai-confirm { background: #146c43; color: #fff; }
#ai-dock button { min-height: 44px; min-width: 44px; font: inherit; font-weight: 700; border-radius: 999px; border: 1px solid #c6a15b; background: transparent; color: #f4f1e8; padding: 0.3rem 0.8rem; }
#ai-dock .ai-top button,
#ai-dock .ai-top .ai-setup-link,
#ai-dock #ai-voice-mode,
#ai-dock #ai-status,
#ai-dock #ai-test-line {
  flex: 0 0 auto;
  min-height: 22px;
  height: 22px;
  min-width: max-content;
  padding: 0 0.4rem;
  font-size: 12px;
  line-height: 22px;
  white-space: nowrap;
}
#ai-dock #ai-test-line { height: auto; white-space: normal; flex-basis: 100%; }
#ai-status { display: inline-flex; align-items: center; gap: 0.35rem; overflow: visible; font-weight: 700; }
#ai-status span { display: inline-flex; align-items: center; gap: 0.15rem; flex: 0 0 auto; }
#ai-status i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #dc2626; }
#ai-status .is-on i { background: #22c55e; }
#ai-status .is-off i { background: #dc2626; }
#ai-status .ai-state { color: #8d938c; font-weight: 600; }
.is-next { outline: 3px solid #22c55e; outline-offset: 2px; animation: lgme-next 0.9s ease-in-out infinite; }
@keyframes lgme-next {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.75); }
  50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
}
#ididit-done, #draft-suggestion { scroll-margin-bottom: 52vh; }
#draft-suggestion { margin: 0.2rem 0; font-weight: 700; color: #8fd6a8; }
@media (prefers-reduced-motion: reduce) {
  .is-next, #ai-mic-btn.is-listening, #ai-voice.is-listening,
  #ai-send-state.is-held i, #ai-status .voice-listening i, #ai-status .voice-processing i,
  .fingerprint-steps .is-current i, #speak-ask.is-wait { animation: none; opacity: 0.45; }
}
#ai-dock.is-controls-shut .ai-detail { display: none; }
button:active, [role="button"]:active, button.is-pressed, [role="button"].is-pressed { transform: scale(0.96); filter: brightness(1.2); }
@media (prefers-reduced-motion: reduce) {
  button, [role="button"] { transition: none; }
  button:active, [role="button"]:active, button.is-pressed, [role="button"].is-pressed { transform: none; }
}
#ai-accept:disabled { opacity: 0.7; }
#device-ask { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(12, 16, 12, 0.72); padding: 1rem; }
#device-ask[hidden] { display: none; }
.device-ask-card { width: min(100%, 28rem); min-height: 12rem; box-sizing: border-box; padding: 1rem 1rem 1.1rem; border: 1px solid #c6a15b; border-radius: 8px; background: #151a15; color: #f4f1e8; }
.device-ask-card h2 { margin: 0 2rem 0.4rem 0; font-size: 18px; }
.device-ask-card p { margin: 0.3rem 0; font-size: 13px; line-height: 1.4; }
#device-ask-x { position: absolute; margin: 0.4rem; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #f4f1e8; font-size: 24px; }
.device-ask-card { position: relative; }
.device-ask-actions { display: flex; gap: 0.4rem; margin-top: 0.8rem; }
#device-allow, #device-not-now { min-width: 44px; min-height: 44px; padding: 0.4rem 0.8rem; border-radius: 8px; font: inherit; font-weight: 700; }
#device-allow { background: #c6a15b; color: #1a1408; border: 1px solid #c6a15b; }
#device-not-now { background: transparent; color: #f4f1e8; border: 1px solid #c6a15b; }
#message-panel { border: 1px solid #c6a15b; border-radius: 8px; padding: 0.55rem; margin: 0.35rem 0; }
#message-panel[hidden] { display: none; }
#message-panel textarea { width: 100%; box-sizing: border-box; min-height: 44px; }
html.is-one-tab:not(.is-more-open) #function-row,
html.is-one-tab:not(.is-more-open) .entry-tile:not(.health),
html.is-one-tab:not(.is-more-open) #category-board:not(:has(#prompt-draft)),
html.is-one-tab:not(.is-more-open) #health-floor,
html.is-one-tab:not(.is-more-open) #device-can-host,
html.is-one-tab:not(.is-more-open) footer.gym-foot,
html.is-one-tab:not(.is-more-open) header > p.muted { display: none; }
html.is-one-tab:not(.is-more-open) #category-board:has(#prompt-draft) { display: block; min-height: 0; }
html.is-one-tab #one-more {
  position: fixed;
  right: 0.45rem;
  bottom: calc(50vh + 0.45rem);
  z-index: 48;
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid #c6a15b;
  background: #c6a15b;
  color: #1a1408;
  font: inherit;
  font-weight: 700;
}
html.is-one-tab #one-more:active { transform: none; filter: none; }
html.is-one-tab #one-menu {
  position: fixed;
  right: var(--more-right, max(0.45rem, env(safe-area-inset-right)));
  left: auto;
  top: auto;
  bottom: var(--more-bottom, calc(50dvh + 3.6rem));
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  width: max-content;
  max-width: min(168px, calc(100vw - 8rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
  overflow-wrap: anywhere;
  max-height: var(--more-max, calc(50dvh - 4.2rem));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html.is-one-tab #one-menu[hidden] { display: none; }
html.is-one-tab.is-more-open footer.gym-foot {
  position: fixed;
  left: 0.45rem;
  right: 12.5rem;
  bottom: calc(50vh + 0.45rem);
  z-index: 49;
  margin: 0;
  background: #0c100c;
}
html.is-one-tab #one-menu a,
html.is-one-tab #one-menu button {
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #c6a15b;
  background: #151a15;
  color: #f4f1e8;
  font: inherit;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
}
html.is-one-tab nav[aria-label="Gym"] {
  left: auto;
  right: 0.45rem;
  width: auto;
  bottom: calc(50vh + 0.45rem);
  z-index: 48;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0.25rem;
  background: transparent;
  border: 0;
  padding: 0;
}
html.is-one-tab nav[aria-label="Gym"] #one-more { position: static; }
:root {
  --lgme-font: 1;
  --lgme-os: 1;
  --lgme-space: 0.75rem;
  --lgme-type: clamp(0.95rem, 0.9rem + 0.35vw, 1.08rem);
}
html { font-size: calc(100% * var(--lgme-font)); }
@media (max-width: 719px), (max-height: 519px) {
  :root { --lgme-space: 0.45rem; --lgme-type: clamp(0.9rem, 0.84rem + 0.3vw, 1rem); }
}
@media (min-width: 840px) and (min-height: 700px) {
  :root { --lgme-space: 1.05rem; --lgme-type: clamp(1.02rem, 0.95rem + 0.4vw, 1.22rem); }
}
html[data-density="compact"] { --lgme-space: 0.45rem; --lgme-type: clamp(0.9rem, 0.84rem + 0.3vw, 1rem); }
html[data-density="roomy"] { --lgme-space: 1.05rem; --lgme-type: clamp(1.02rem, 0.95rem + 0.4vw, 1.22rem); }
body { font-size: var(--lgme-type) !important; }
:is(.card, .dash-card, article) { margin-block: var(--lgme-space); }
#home-board { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 100%; }
@media (max-width: 719px), (max-height: 519px) {
  #home-board, .entry-grid { grid-template-columns: minmax(0, 1fr); }
  table, thead, tbody, tr, th, td { display: block; width: 100%; max-width: 100%; box-sizing: border-box; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
html[data-density="compact"] #home-board,
html[data-density="compact"] .entry-grid { grid-template-columns: minmax(0, 1fr); }
html[data-density="compact"] table,
html[data-density="compact"] thead,
html[data-density="compact"] tbody,
html[data-density="compact"] tr,
html[data-density="compact"] th,
html[data-density="compact"] td { display: block; width: 100%; max-width: 100%; box-sizing: border-box; }
html[data-density="compact"] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#font-chip { position: relative; display: inline-flex; align-items: center; gap: 0; flex: 0 0 auto; }
#font-chip .text-name { font-size: 11px; font-weight: 700; padding: 0 0.15rem; }
#font-chip button:disabled { opacity: 0.4; }
#text-tip { position: absolute; top: calc(100% + 4px); left: 0; z-index: 80; width: max-content; max-width: 16rem; padding: 0.25rem 0.45rem; border: 1px solid #c6a15b; border-radius: 8px; background: #151a15; color: #f4f1e8; font-size: 12px; line-height: 1.3; white-space: normal; }
#text-tip[hidden] { display: none; }
#site-nav #font-chip button,
#site-nav #easy-read {
  flex: 0 0 auto;
  width: auto;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0 0.3rem;
  font-size: 13px;
  font-weight: 700;
}
#text-settings-row { display: flex; gap: 0.35rem; align-items: center; }
#text-settings-row button { min-width: 44px; width: auto; height: 44px; min-height: 44px; padding: 0 0.6rem; }
html.is-easy { --fg: #14110c; --muted: #2c261e; --bg: #fffdf8; --card: #fff; --line: #5c4a22; }
html.is-easy body { font-size: max(18px, 1.125rem) !important; color: #14110c; }
html.is-easy.tape body { color: #14110c; }
html.is-easy :is(button, a, input, textarea, select, summary, label) {
  min-height: 48px;
  min-width: 48px;
  font-size: max(22px, 1.15rem);
}
html.is-easy :focus-visible { outline: 3px solid #8a5a00; outline-offset: 3px; }
html.is-easy #home-board,
html.is-easy .entry-grid { grid-template-columns: minmax(0, 1fr); }
html.is-easy #ai-log,
html.is-easy #ai-steps,
html.is-easy .ai-suggest-line { font-size: 22px; line-height: 1.45; }
html.is-easy #ai-dock:not(.has-field) #ai-chips .ai-chip:nth-child(n+4) { display: none; }
#field-hint { position: fixed; z-index: 46; max-width: 16rem; min-height: 32px; padding: 0.2rem 0.55rem; border-radius: 999px; border: 1px solid #c6a15b; background: #151a15; color: #f4f1e8; font: inherit; }
#field-hint[hidden] { display: none; }
html.is-easy #field-hint, html.is-easy #ai-dock.has-field #ai-log { font-size: max(18px, 1rem); }
html.is-easy #site-nav { background: #14110c; color: #f4f1e8; }
html.is-easy #site-back,
html.is-easy #site-home,
html.is-easy #site-next { font-size: 24px; }
html.is-one-tab nav[aria-label="Gym"] #one-menu { display: flex; flex-direction: column; align-items: stretch; gap: 0.25rem; }
html.is-one-tab nav[aria-label="Gym"] #one-menu[hidden] { display: none; }
html.is-one-tab nav[aria-label="Gym"] #one-menu button { min-width: 44px; min-height: 44px; margin: 0; background: #151a15; color: #f4f1e8; border: 1px solid #c6a15b; }
#ididit-done { display: flex; flex-direction: column; align-items: stretch; }
#gym-ididit-confirm, #open-dispute, #demo-confirm { align-self: flex-end; min-width: 44px; }
.fingerprint-steps { list-style: none; margin: 0.35rem 0; padding: 0; }
.fingerprint-steps li { display: flex; align-items: center; gap: 0.4rem; min-height: 28px; margin: 0; }
.fingerprint-steps span { font-size: 13px; line-height: 1.3; }
.fingerprint-steps .is-current span { font-weight: 700; color: #c6a15b; }
.fingerprint-steps .is-done span { color: #86efac; }
.fingerprint-steps .is-failed span { color: #fca5a5; }
.fingerprint-steps i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #6b7280; flex: 0 0 auto; }
.fingerprint-setup, .fingerprint-again { min-height: 44px; min-width: 44px; margin: 0.25rem 0.35rem 0 0; }
.fingerprint-steps .is-current i { background: #c6a15b; animation: lgme-status-blink 1.5s ease-in-out infinite; }
.fingerprint-steps .is-done i { background: #22c55e; animation: none; opacity: 1; }
.fingerprint-steps .is-failed i { background: #b00020; animation: none; opacity: 1; }
.fingerprint-again { min-height: 44px; min-width: 44px; }
.is-scan { display: flex; align-items: center; gap: 0.45rem; margin: 0.25rem 0; font-weight: 700; color: #8fd6a8; }
.is-scan[hidden] { display: none; }
.is-scan::before, #access-fingerprint.is-scanning::after {
  content: '';
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #22c55e;
  animation: lgme-next 0.9s ease-in-out infinite;
}
#access-fingerprint.is-scanning { outline: 3px solid #22c55e; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .is-scan::before, #access-fingerprint.is-scanning::after, .fingerprint-steps .is-current i { animation: none; }
}

/* Short icon row. The top text bar and the tall helper stay off the home. */
#site-nav,
#font-chip,
#easy-read,
#text-tip,
#ai-head {
  display: none !important;
}
html.has-site-nav body,
body.has-site-nav,
html.has-site-nav body:has(nav[aria-label="Gym"]),
html.is-one-tab.has-site-nav body:has(nav[aria-label="Gym"]),
html.is-one-tab body:has(nav[aria-label="Gym"]),
html[data-screen="simple"] body,
html[data-screen="full"] body,
html[data-screen="simple"] body:has(nav[aria-label="Gym"]),
html[data-screen="full"] body:has(nav[aria-label="Gym"]) {
  padding-top: 0 !important;
  padding-bottom: calc(3.5rem + env(safe-area-inset-bottom)) !important;
}
#ai-dock,
#ai-dock.is-open,
#ai-dock.is-open.is-big,
html.has-hand #ai-dock,
html.has-hand #ai-dock.is-open,
html.has-hand #ai-dock.is-open.is-big,
html.has-hand.is-one-tab body:has(nav[aria-label="Gym"]) #ai-dock,
html[data-screen="simple"] #ai-dock.is-open,
html[data-screen="full"] #ai-dock.is-open,
html[data-screen="simple"] #ai-dock.is-open.is-big,
html[data-screen="full"] #ai-dock.is-open.is-big {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
#hand-purpose,
#hand-bar button b,
#hand-bar button small,
#hand-recent,
#hand-back,
#hand-recent-sheet {
  display: none !important;
}
#hand-bar {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  z-index: 90 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0.3rem 0.4rem calc(0.3rem + env(safe-area-inset-bottom)) !important;
  background: #0c100c !important;
  color: #f4f1e8 !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-top: 1px solid #2c352b !important;
}
#hand-row {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  gap: 0.35rem !important;
}
#hand-bar button {
  flex: 1 1 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  border-radius: 12px !important;
  padding: 0 !important;
}
#hand-bar .hand-icon {
  font-size: 22px !important;
  line-height: 1 !important;
  color: inherit !important;
}
#hand-home { order: 1 !important; background: #c6a15b !important; color: #14110c !important; }
#hand-prev { order: 2 !important; background: #1f6b45 !important; color: #f4f1e8 !important; }
#hand-next { order: 3 !important; background: #e07a2f !important; color: #14110c !important; }

/* Gym: the helper is closed, so More sits on the icon row.
   The title and the place wrap instead of covering each other. */
html.is-one-tab nav[aria-label="Gym"],
html.is-one-tab #one-more {
  bottom: calc(3.6rem + env(safe-area-inset-bottom)) !important;
}
.gym-line {
  flex-wrap: wrap !important;
  height: auto !important;
  row-gap: 0.2rem !important;
}
.gym-line .kicker {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.gym-where {
  flex: 1 1 100% !important;
  order: 3 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* The helper is closed, so the page menu opens above the icon row
   and can be scrolled to Settings. */
html.is-one-tab #one-menu {
  top: auto !important;
  right: 0.45rem !important;
  bottom: calc(7.4rem + env(safe-area-inset-bottom)) !important;
  max-height: min(70dvh, calc(100dvh - 9rem)) !important;
  z-index: 80 !important;
}

#sz-cycle {
  position: fixed;
  z-index: 96;
  top: 0.4rem;
  right: 3.3rem;
  min-height: 32px;
  height: 32px;
  margin: 0;
  padding: 0 0.6rem;
  border: 0;
  border-radius: 999px;
  background: #f4f1e8;
  color: #1a1408;
  font: 700 13px/1 Figtree, sans-serif;
}
html[data-sz="0"] #home-board,
html[data-sz="1"] #home-board {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}
html[data-sz="0"] .dash-head,
html[data-sz="1"] .dash-head {
  min-height: 36px !important;
  padding: 0.15rem 0.3rem !important;
}
html[data-sz="0"] #status-chips,
html[data-sz="1"] #status-chips { gap: 0.25rem !important; }
html[data-sz="4"] #home-board { grid-template-columns: minmax(0, 1fr) !important; }

/* Opening stays above the page. sz stays off the title.
   The Gym hole was header padding; the last button clears More. */
#open-credits { z-index: 120 !important; }
body:has(.gym-line) #sz-cycle {
  left: 0.45rem !important;
  right: auto !important;
  top: 0.4rem !important;
}
header.gym-head {
  padding-top: 2.7rem !important;
  padding-bottom: 0.35rem !important;
}
#device-can-host,
#category-board,
#health-floor:empty {
  min-height: 0 !important;
}
#gym-panel { min-height: 0 !important; padding-bottom: 8.5rem !important; }

/* The notice stops before sz. The last row clears More and the icon bar. */
#testnet-notice {
  justify-content: flex-start !important;
  padding-right: 8rem !important;
  text-align: left !important;
}
html.has-site-nav body,
body.has-site-nav,
html.has-site-nav body:has(nav[aria-label="Gym"]),
html.is-one-tab body:has(nav[aria-label="Gym"]) {
  padding-bottom: calc(8.6rem + env(safe-area-inset-bottom)) !important;
}

/* Bottom row: mail, AI, fields, home, previous, next. */
#hand-mail { order: 1 !important; background: #f4f1e8 !important; color: #14110c !important; }
#hand-ai { order: 2 !important; background: #f4f1e8 !important; color: #14110c !important; }
html.hand-ai-on #hand-ai { background: #1f6b45 !important; color: #f4f1e8 !important; }
#hand-fields { order: 3 !important; background: #c6a15b !important; color: #14110c !important; }
#hand-home { order: 4 !important; }
#hand-prev { order: 5 !important; }
#hand-next { order: 6 !important; }
#hand-bar .hand-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: #b00020;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  font-weight: 700;
}
#hand-bar button { position: relative !important; }
#hand-field-list {
  position: fixed;
  z-index: 95;
  left: 0.4rem;
  bottom: calc(3.6rem + env(safe-area-inset-bottom));
  margin: 0;
  padding: 0.4rem 0.6rem;
  list-style: none;
  border-radius: 12px;
  background: #151a15;
  color: #f4f1e8;
  border: 1px solid #c6a15b;
}
html.hand-ai-on #ai-dock.is-open {
  display: block !important;
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  bottom: calc(3.5rem + env(safe-area-inset-bottom)) !important;
  height: auto !important;
  max-height: 7rem !important;
  overflow: auto !important;
  pointer-events: auto !important;
  padding: 0.4rem 0.6rem !important;
  background: #151a15 !important;
  border-top: 1px solid #c6a15b !important;
  z-index: 85 !important;
}

/* The AI mark opens the prompt line above the icon row. */
html.hand-ai-on #ai-dock.is-open,
html.hand-ai-on.has-hand #ai-dock.is-open,
html.hand-ai-on.has-hand.is-one-tab body:has(nav[aria-label="Gym"]) #ai-dock.is-open {
  display: flex !important;
  flex-direction: column !important;
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  bottom: calc(3.6rem + env(safe-area-inset-bottom)) !important;
  height: auto !important;
  max-height: 8.5rem !important;
  overflow: auto !important;
  pointer-events: auto !important;
  z-index: 88 !important;
  margin: 0 !important;
  padding: 0.35rem 0.6rem !important;
  background: #151a15 !important;
  color: #f4f1e8 !important;
  border: 0 !important;
  border-top: 1px solid #c6a15b !important;
  border-radius: 0 !important;
}
html.hand-ai-on #ai-dock.is-open > :not(#ai-scroll),
html.hand-ai-on.has-hand #ai-dock.is-open > :not(#ai-scroll) {
  display: none !important;
}
html.hand-ai-on #ai-dock.is-open #ai-scroll > :not(#ai-suggestions):not(#ai-log-frame),
html.hand-ai-on.has-hand #ai-dock.is-open #ai-scroll > :not(#ai-suggestions):not(#ai-log-frame) {
  display: none !important;
}
html.hand-ai-on #ai-dock.is-open #ai-log-frame {
  display: block !important;
  height: auto !important;
}
html.hand-ai-on #ai-dock.is-open #ai-log-frame > :not(#ai-suggestions) {
  display: none !important;
}
html.hand-ai-on #ai-dock.is-open #ai-suggestions,
html.hand-ai-on #ai-dock.is-open #ai-scroll {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

html.hand-ai-on #ai-dock.is-open,
html.hand-ai-on.has-hand #ai-dock.is-open,
html.hand-ai-on.has-hand.is-one-tab body:has(nav[aria-label="Gym"]) #ai-dock.is-open {
  min-height: 3.4rem !important;
}
html.hand-ai-on #ai-dock.is-open #ai-scroll,
html.hand-ai-on #ai-dock.is-open #ai-suggestions,
html.hand-ai-on.has-hand #ai-dock.is-open #ai-scroll,
html.hand-ai-on.has-hand #ai-dock.is-open #ai-suggestions {
  display: block !important;
  height: auto !important;
  min-height: 2.8rem !important;
  max-height: none !important;
  overflow: visible !important;
}
html.hand-ai-on #ai-dock.is-open .ai-suggest {
  display: flex !important;
  align-items: center !important;
  height: auto !important;
  min-height: 44px !important;
}
html.hand-ai-on #ai-dock.is-open .ai-suggest-line {
  display: block !important;
  height: auto !important;
  min-height: 1.4rem !important;
  line-height: 1.4 !important;
}

/* More is gone. Settings sits at the top right of every page.
   AI opens only the voice icon and settings. */
#one-more { display: none !important; }
#page-gear {
  position: fixed;
  z-index: 97;
  top: 0.4rem;
  right: 0.4rem;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #f4f1e8;
  color: #1a1408;
  font: 700 18px/36px Figtree, sans-serif;
}
#ai-voice-bar {
  position: fixed;
  z-index: 88;
  left: 0;
  right: 0;
  bottom: calc(3.6rem + env(safe-area-inset-bottom));
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin: 0;
  padding: 0.35rem 0.5rem;
  background: #151a15;
  border-top: 1px solid #c6a15b;
}
#ai-voice-bar[hidden] { display: none !important; }
#ai-voice-bar button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f4f1e8;
  color: #1a1408;
}
html.is-more-open #one-menu {
  display: block !important;
  position: fixed !important;
  top: 3.2rem !important;
  right: 0.45rem !important;
  bottom: auto !important;
  left: auto !important;
  width: min(16rem, calc(100vw - 1rem)) !important;
  max-height: min(70dvh, calc(100dvh - 8rem)) !important;
  z-index: 98 !important;
  overflow: auto !important;
}
#screen-custom.primary, a#screen-custom {
  display: block;
  margin-top: 0.4rem;
  text-align: center;
  text-decoration: none;
}

/* Up and down sit above Confirm, clear of the icon row. */
#confirm-stack {
  position: fixed;
  z-index: 86;
  right: 0.55rem;
  bottom: calc(4.3rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
#recommend-up,
#recommend-down,
#confirm-stack #gym-ididit-confirm {
  min-width: 76px;
  min-height: 38px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
}
#recommend-up,
#recommend-down {
  background: #f4f1e8;
  color: #1a1408;
}

/* One icon line. H and the name on the left. Icons only, each a different color. */
#top-tools {
  position: fixed;
  z-index: 97;
  top: max(0.35rem, env(safe-area-inset-top));
  left: 0.55rem;
  right: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: transparent;
}
#top-tools > button,
#top-tools #page-gear,
#top-member {
  position: static !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font: 700 22px/1 Figtree, sans-serif;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#top-member { flex: 1; justify-content: flex-start !important; font-size: 0.95rem !important; color: #f4f1e8; }
#top-net { color: #e07a2f !important; }
#top-mask { color: #c084fc !important; }
#top-mask.is-on { color: #ef4444 !important; }
#top-forward { color: #60a5fa !important; }
#top-back { color: #c6a15b !important; }
#top-mic { color: #fb923c !important; }
#top-speaker { position: relative !important; color: #4ade80 !important; }
#top-volume { position: absolute; right: -6px; bottom: -6px; font-size: 10px; line-height: 1; color: #4ade80; }
#top-tools #page-gear { color: #f8fafc !important; font-size: 20px !important; }
#ididit-done input.is-correct {
  border-color: #c6a15b !important;
  box-shadow: inset 0 0 0 2px #c6a15b;
}
#ididit-done input.is-next {
  border-color: #e07a2f !important;
  outline: 2px solid #e07a2f;
}
html.is-more-open #one-menu:not([hidden]) {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 0.35rem !important;
  position: fixed !important;
  top: calc(3.15rem + env(safe-area-inset-top)) !important;
  right: 0.4rem !important;
  left: auto !important;
  bottom: auto !important;
  width: min(16rem, calc(100vw - 1.2rem)) !important;
  max-height: min(70dvh, calc(100dvh - 8rem)) !important;
  z-index: 98 !important;
  overflow: auto !important;
  margin: 0 !important;
  padding: 0.35rem !important;
  background: #151a15 !important;
  color: #f4f1e8 !important;
  border: 1px solid #c6a15b !important;
  border-radius: 12px !important;
}
#one-menu[hidden] { display: none !important; }
html.is-more-open #one-menu:not([hidden]) a,
html.is-more-open #one-menu:not([hidden]) button {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 40px !important;
  margin: 0 !important;
  text-align: left !important;
  white-space: normal !important;
  background: transparent !important;
  color: #f4f1e8 !important;
  border: 0 !important;
  border-radius: 8px !important;
}
html.has-site-nav body,
body.has-site-nav,
html.has-site-nav body:has(nav[aria-label="Gym"]),
html.is-one-tab.has-site-nav body:has(nav[aria-label="Gym"]),
html.is-one-tab body:has(nav[aria-label="Gym"]) {
  padding-top: calc(3.1rem + env(safe-area-inset-top)) !important;
}
#passkey-use.is-available,
#passkey-remove.is-available {
  background: #c6a15b;
  color: #1a1408;
  border: 0;
}
#passkey-use.is-off,
#passkey-remove.is-off {
  background: #151a15;
  color: #8a8478;
  border: 1px solid #2c352b;
}

#top-forward, #top-back, #top-net, #top-mask, #top-mic, #top-speaker, #top-tools #page-gear { min-width: 22px !important; min-height: 22px !important; }

/* The icon line stays above the notice. My Agency is a box. */
#top-tools { top: max(0.15rem, env(safe-area-inset-top)) !important; z-index: 98 !important; }
#testnet-notice {
  top: calc(2.35rem + env(safe-area-inset-top)) !important;
  z-index: 70 !important;
  padding-right: 0.6rem !important;
}
html.has-site-nav body:has(#testnet-notice),
body:has(#testnet-notice) {
  padding-top: calc(2.6rem + var(--notice-h, 2.4rem) + env(safe-area-inset-top)) !important;
}
#my-functions {
  display: block !important;
  margin: 0.7rem 0.8rem !important;
  padding: 0.75rem 0.9rem !important;
  background: #141a14 !important;
  color: #f4f1e8 !important;
  border: 1px solid #c6a15b !important;
  border-radius: 16px !important;
}
#my-functions summary { color: #f4f1e8 !important; font-weight: 700; min-height: 0 !important; }

/* Notice is off. Home leads with a gift, then Health. */
html.notice-off #testnet-notice,
#testnet-notice { display: none !important; }
html.notice-off body,
html.has-site-nav body:has(#testnet-notice),
body:has(#testnet-notice) {
  padding-top: calc(2.5rem + env(safe-area-inset-top)) !important;
}
#top-member { flex: 0 1 auto !important; max-width: 7rem; }
#top-gap { flex: 1; }
#top-flow { color: #f8fafc !important; }
#top-screen { color: #f0d48a !important; font-size: 1.15rem !important; }
#flow-menu, #screen-menu {
  position: fixed;
  z-index: 99;
  top: calc(2.5rem + env(safe-area-inset-top));
  left: 0.55rem;
  width: min(16rem, calc(100vw - 1.1rem));
  max-height: min(70dvh, 28rem);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem;
  background: #14110c;
  color: #f4f1e8;
  border: 1px solid #c6a15b;
  border-radius: 14px;
}
#screen-menu { left: auto; right: 0.45rem; width: 9rem; }
#flow-menu[hidden], #screen-menu[hidden] { display: none; }
#flow-menu p, #flow-menu summary { margin: 0.35rem 0 0; color: #c6a15b; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
#flow-menu a, #flow-menu button, #screen-menu button {
  display: block;
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 0.35rem 0.45rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f4f1e8;
  text-align: left;
  text-decoration: none;
  font: 600 0.95rem/1.2 Figtree, sans-serif;
}
#screen-reopen { display: none !important; }
#give-now {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin: 0 0 0.45rem;
  padding: 0.8rem 0.85rem;
  background: #f4f1e8;
  color: #1a1408;
  border-radius: 16px;
}
#give-now p { margin: 0; font-weight: 800; }
#give-now span { flex: 1 1 12rem; }
#give-now a { display: inline-flex; min-height: 36px; align-items: center; padding: 0.3rem 0.8rem; border-radius: 10px; background: #8d2f2f; color: #fff; font-weight: 800; text-decoration: none; }
#health-dash {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0 0 0.6rem;
  padding: 0.65rem;
  background: #101610;
  border: 1px solid #c6a15b;
  border-radius: 16px;
}
.health-mark {
  position: relative;
  min-height: 3.2rem;
  border: 0;
  border-radius: 12px;
  background: #1c261c;
  color: #f4f1e8;
  font: 700 1rem/1 Figtree, sans-serif;
}
.health-mark i { font-style: normal; }
.health-mark b {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  min-width: 1rem;
  padding: 0.05rem 0.25rem;
  border-radius: 999px;
  background: #f4f1e8;
  color: #14110c;
  font-size: 0.62rem;
}
#health-preview {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: #f4f1e8;
  color: #14110c;
  font-weight: 700;
}
#health-preview[hidden] { display: none; }
#hold-bubble {
  position: fixed;
  z-index: 130;
  max-width: min(24rem, calc(100vw - 1rem));
  padding: 1rem 1.15rem;
  border-radius: 18px;
  font: 650 1.35rem/1.35 Figtree, sans-serif;
  box-shadow: 0 14px 36px #00000066;
}
#hold-bubble[hidden] { display: none; }
#hold-bubble.is-light { background: #f4f1e8; color: #14110c; }
#hold-bubble.is-dark { background: #14110c; color: #f4f1e8; }

/* The name has to read on the paper page. The old stat grid is the Health row now. */
html.tape #top-member { color: #1a1408 !important; }
#home-board { display: none !important; }

/* Settings mark is black. The crossed-out home cards stay off. */
#top-tools #page-gear { color: #14110c !important; }
body:has(#category-grid) #profile-board,
body:has(#category-grid) #my-shortcuts,
body:has(#category-grid) #shortcut-offer,
body:has(#category-grid) #my-functions { display: none !important; }
#mail-hold {
  position: fixed;
  z-index: 96;
  left: 0.6rem;
  right: 0.6rem;
  bottom: calc(4.2rem + env(safe-area-inset-bottom));
  max-height: 40vh;
  overflow: auto;
  padding: 0.7rem 0.8rem;
  border-radius: 16px;
  background: #14110c;
  color: #f4f1e8;
  font-weight: 650;
}
#mail-hold[hidden] { display: none !important; }
#mail-hold p { margin: 0.25rem 0; }
#mail-sheet {
  position: fixed;
  z-index: 110;
  left: 0.5rem;
  right: 0.5rem;
  bottom: calc(4.2rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 60vh;
  padding: 0.7rem;
  border-radius: 16px;
  background: #f4f1e8;
  color: #14110c;
}
#mail-sheet[hidden] { display: none !important; }
#mail-sheet header { display: flex; align-items: center; justify-content: space-between; }
#mail-sheet ul { margin: 0; padding: 0; list-style: none; overflow: auto; }
#mail-sheet li { padding: 0.35rem 0; border-bottom: 1px solid #e4d7bf; }
#mail-sheet textarea { min-height: 4rem; border: 1px solid #c6a15b; border-radius: 10px; padding: 0.4rem; font: inherit; }
#mail-sheet #mail-send, #mail-sheet #mail-sheet-x { border: 0; border-radius: 10px; background: #14110c; color: #f4f1e8; min-height: 36px; padding: 0 0.7rem; font-weight: 700; }

/* Settings list uses the opposite of the paper page, each row its own color. */
html.is-more-open #one-menu:not([hidden]) {
  background: #14110c !important;
  color: #f4f1e8 !important;
  border: 2px solid #f4f1e8 !important;
}
html.is-more-open #one-menu:not([hidden]) a,
html.is-more-open #one-menu:not([hidden]) button {
  background: transparent !important;
  border-bottom: 1px solid #3a3328 !important;
  color: #f4f1e8 !important;
}
html.is-more-open #one-menu [data-tone="gold"] { color: #e7c98a !important; }
html.is-more-open #one-menu [data-tone="green"] { color: #8fd6a8 !important; }
html.is-more-open #one-menu [data-tone="orange"] { color: #f0b27a !important; }
html.is-more-open #one-menu [data-tone="blue"] { color: #9ecbff !important; }
html.is-more-open #one-menu [data-tone="violet"] { color: #d7b4f3 !important; }
html.is-more-open #one-menu [data-tone="bone"] { color: #f7f1e4 !important; }
