/* Diary - the Vo Apps look (the logo's black and gold on platinum, pearl cards with a gold
   hairline, black pill buttons), light theme always, built for a phone held in one hand
   and fine on a desktop. The tokens are the Voice Recorder's (voice-recorder/web/styles.css
   :root) and the home page's. No external fonts or requests. Tap targets >= 44px; inputs
   >= 16px so iOS never zooms; rem-based type so her Safari text size is honoured.
   Gold is for rules, borders, icons and focus accents only: as text on platinum or pearl
   it fails WCAG AA (#c9a15b is 1.9:1). The one red is --live, for recording and errors;
   the one green is --ok, for "Saved". */

:root {
  --platinum: #e5e4e2;    /* page background, = theme-color */
  --pearl: #fbfaf7;       /* panels, cards, sheets */
  --ink: #111111;         /* headings, primary text, black pills    14.9:1 platinum, 18.1:1 pearl */
  --text: #46443f;        /* secondary text                          7.7:1 platinum, 9.3:1 pearl */
  --faint: #56534d;       /* tertiary text                           6.0:1 platinum, 7.3:1 pearl */
  --gold-hi: #e9c987;     /* logo gold, light: icons, text on black  11.8:1 on ink */
  --gold: #c9a15b;        /* logo gold, mid: rules, rings */
  --gold-deep: #9c6b2e;   /* logo gold, deep: hairlines, warning accents (3.6:1 platinum, 4.4:1 pearl) */
  --live: #b3261e;        /* recording + errors: white on it 6.5:1; as text 5.1:1 platinum, 6.3:1 pearl */
  --ok: #2e6b3a;          /* "Saved": as text 5.0:1 platinum, 6.1:1 pearl */
  --tint: #f5ecda;        /* a gold-tinted panel for warnings: ink on it 16.1:1 */
  --hairline: rgba(156, 107, 46, 0.26);   /* separators inside panels */
  --gold-line: linear-gradient(135deg, var(--gold-hi), var(--gold) 45%, var(--gold-deep));
  --gold-rule: linear-gradient(90deg, rgba(201, 161, 91, 0), var(--gold) 18%, var(--gold-deep) 50%, var(--gold) 82%, rgba(201, 161, 91, 0));
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.05), 0 14px 34px -12px rgba(60, 44, 20, 0.22);
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.05), 0 6px 16px -10px rgba(60, 44, 20, 0.28);
  --radius: 20px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --kb: 0px;              /* the height the iOS keyboard covers (app.js, visualViewport) */
  --gutter: 16px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--platinum);
  color: var(--ink);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  font-size: 1.0625rem;
  line-height: 1.4;
}

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

button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

button:disabled {
  cursor: default;
  opacity: 0.45;
}

a {
  color: var(--ink);
}

/* Ink on platinum 14.9:1 and on pearl 18.1:1; offset so it also shows around the black pills. */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.noscript {
  padding: 24px;
  font-size: 1.25rem;
}

/* Read out, not shown (the toast's live region). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- type ---------- */

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  overflow-wrap: anywhere;
}

p {
  margin: 0;
}

.view-title,
.sheet-title,
.auth-title {
  font-size: 1.625rem;
  letter-spacing: 0.005em;
}

.view-sub {
  margin-top: 4px;
  font-size: 1rem;
  color: var(--text);
}

.view-text {
  max-width: 34em;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text);
  text-wrap: pretty;
}

/* "Transcript", in the serif, with a gold rule running out to the right. */
.section-h {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 12px;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--ink);
}

.section-h::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 45%, rgba(201, 161, 91, 0));
}

/* Spaced serif capitals for a small label ("Written by Claude", "Closed at midnight"). */
.eyebrow {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--faint);
}

.meta {
  font-size: 0.9375rem;
  color: var(--text);
}

.muted {
  color: var(--faint);
}

.error-text {
  color: var(--live);
  font-weight: 650;
}

.ok-text {
  color: var(--ok);
  font-weight: 650;
}

/* ---------- buttons ---------- */

/* Pills, like the home page's "Open": black with white text (primary), or pearl with a gold
   hairline and ink text (secondary). The hairline is a gold gradient seen through a
   transparent border. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-secondary {
  background:
    linear-gradient(var(--pearl), var(--pearl)) padding-box,
    var(--gold-line) border-box;
  color: var(--ink);
}

.btn-danger {
  background: var(--live);
  color: #fff;
}

/* A black pill that is off ("Checking", "Saving"): at the usual 45 % it would be white on
   mid-grey (3.1:1), so instead a quiet deeper-platinum pill whose words stay readable
   (--text on it 6.5:1). */
.btn-primary:disabled,
.btn-primary:disabled:hover {
  opacity: 1;
  border-color: var(--hairline);
  background: #d6d3cd;
  color: var(--text);
  box-shadow: none;
}

.btn-wide {
  width: 100%;
}

.btn-small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 1rem;
}

.btn svg {
  flex: none;
}

.btn-secondary svg {
  color: var(--gold-deep);
}

/* A plain text button ("Use my recovery code instead"): ink, underlined, 44 px tall. */
.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold-deep);
}

/* An icon-only button (aria-label required): 44 px, pearl with the gold hairline. */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--pearl), var(--pearl)) padding-box,
    var(--gold-line) border-box;
  color: var(--ink);
}

.icon-btn svg {
  color: var(--gold-deep);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.07);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--pearl);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 650;
  white-space: nowrap;
}

.badge[data-tone="ok"] {
  color: var(--ok);
  border-color: rgba(46, 107, 58, 0.45);
  background: #eef3ec;
}

.badge[data-tone="warn"] {
  color: var(--ink);
  border-color: var(--gold-deep);
  background: var(--tint);
}

.badge[data-tone="live"] {
  color: var(--live);
  border-color: rgba(179, 38, 30, 0.5);
}

/* A small black seal with a gold figure (11.8:1): counts, "2 voice notes". */
.count {
  min-width: 26px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold-hi);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- the shell ---------- */

.shell {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: var(--kb);
}

/* The logo (home), the name in the serif, Lock: one slim row over a gold rule. */
.topbar {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(var(--sat) + 8px) calc(var(--sar) + var(--gutter)) 8px calc(var(--sal) + var(--gutter));
}

.topbar::after {
  content: "";
  position: absolute;
  left: calc(var(--sal) + var(--gutter));
  right: calc(var(--sar) + var(--gutter));
  bottom: 0;
  height: 1px;
  background: var(--gold-rule);
  pointer-events: none;
}

/* The Vo Apps logo, back to voapps.ai. A 44 px target around a 32 px tall mark. */
.home-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-left: -4px;
  padding: 0 4px;
  border-radius: 12px;
  -webkit-touch-callout: none;
}

.home-link picture,
.logo {
  display: block;
}

.logo {
  width: auto;
  height: 32px;
}

.app-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.4375rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-btn {
  flex: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--pearl), var(--pearl)) padding-box,
    var(--gold-line) border-box;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 650;
}

.top-btn svg {
  color: var(--gold-deep);
}

/* The view scrolls; the composer bar and the nav stay put below it. */
.view-host {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px calc(var(--sar) + var(--gutter)) 24px calc(var(--sal) + var(--gutter));
  outline: none;
}

.view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.view > .btn {
  align-self: flex-start;
}

.view-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 2px;
}

.composer {
  flex: none;
  padding: 8px calc(var(--sar) + var(--gutter)) 8px calc(var(--sal) + var(--gutter));
  border-top: 1px solid var(--hairline);
  background: var(--platinum);
}

/* The nav: five 44 px targets, the active one in ink with a gold rule above it. */
.nav {
  flex: none;
  display: flex;
  justify-content: space-around;
  gap: 2px;
  padding: 4px calc(var(--sar) + 6px) calc(var(--sab) + 6px) calc(var(--sal) + 6px);
  border-top: 1px solid var(--hairline);
  background: var(--pearl);
}

.nav-link {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link svg {
  color: var(--faint);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
}

.nav-link[aria-current="page"] svg {
  color: var(--gold-deep);
}

.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 20%;
  right: 20%;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-line);
}

/* The keyboard is up: the nav goes so the composer sits right above the keys. */
.kb-open .nav {
  display: none;
}

/* ---------- cards, notes, fields ---------- */

/* Pearl panel with a gold hairline and a soft warm shadow, like the home page's app cards. */
.card {
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--pearl), var(--pearl)) padding-box,
    var(--gold-line) border-box;
  box-shadow: var(--shadow-sm);
}

.card-lift {
  box-shadow: var(--shadow);
}

/* A card with a deep gold bar down the left (something unfinished or worth a look). */
.card-mark {
  padding-left: 22px;
  box-shadow: inset 5px 0 0 var(--gold-deep), var(--shadow-sm);
}

.card-mark[data-tone="live"] {
  box-shadow: inset 5px 0 0 var(--live), var(--shadow-sm);
}

/* A warning or a plain-words notice: ink words on the gold tint. */
.note {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--gold-deep);
  background: var(--tint);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}

.note-title {
  margin: 0 0 6px;
  font-weight: 700;
}

.note-list {
  margin: 0;
  padding-left: 20px;
}

.note-list li::marker {
  color: var(--gold-deep);
}

.note-list li + li {
  margin-top: 6px;
}

.label {
  display: block;
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
}

.hint {
  margin: 6px 0 0;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text);
}

.field {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--gold-deep);
  background: #fff;
  color: var(--ink);
  font-size: 1.125rem; /* >= 16px so iOS does not zoom */
  -webkit-appearance: none;
  appearance: none;
}

textarea.field {
  min-height: 120px;
  padding: 12px 16px;
  line-height: 1.45;
  resize: vertical;
}

.field::placeholder {
  color: var(--faint);
  opacity: 1;
}

.field:focus {
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: 0;
}

.code-input {
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.form-error {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  color: var(--live);
}

.form-error:empty {
  display: none;
}

/* A list panel: rows split by gold hairlines (settings, devices, search results). */
.rows {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--pearl), var(--pearl)) padding-box,
    var(--gold-line) border-box;
  box-shadow: var(--shadow-sm);
}

.rows:empty {
  display: none;
}

.row {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: none;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}

.row:last-child {
  border-bottom: 0;
}

.row:focus-visible {
  outline-offset: -4px;
  border-radius: calc(var(--radius) - 2px);
}

.row-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.row-title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.row-meta {
  font-size: 0.9375rem;
  color: var(--text);
}

.row-side {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* A quiet spinner after a line of text ("Writing out your words"). */
.busy::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  vertical-align: -3px;
  border: 3px solid var(--gold-deep);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- the lock overlay (setup, unlock) ---------- */

.lock {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--platinum);
}

.lock-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 520px;
  min-height: 100%;
  margin: 0 auto;
  padding: calc(var(--sat) + 28px) calc(var(--sar) + var(--gutter)) calc(var(--sab) + 24px) calc(var(--sal) + var(--gutter));
}

.lock-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.lock-logo {
  display: block;
  width: min(60vw, 240px);
  height: auto;
}

.lock-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.75rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.lock-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lock-slot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lock-slot:empty {
  display: none;
}

.auth {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 22px;
  box-shadow: var(--shadow);
}

.auth-text {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text);
  text-wrap: pretty;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form .label {
  margin-top: 6px;
}

.auth-form .btn {
  margin-top: 10px;
}

.auth .link-btn {
  align-self: center;
}

/* The recovery code: eight groups of four, large, on a pearl panel. */
.code-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 10px;
  margin: 0;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--gold-deep);
  background: #fff;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  -webkit-user-select: all;
  user-select: all;
}

.code-group {
  display: block;
  padding: 4px 0;
}

/* Setup's two questions: radio buttons drawn as choice cards. */
.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.choices legend {
  padding: 0;
  margin-bottom: 8px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--pearl);
  cursor: pointer;
}

.choice:has(.choice-input:checked) {
  border-color: var(--gold-deep);
  background: var(--tint);
}

.choice:has(.choice-input:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.choice-input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--ink);
}

.choice-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.choice-label {
  font-size: 1.0625rem;
  font-weight: 650;
}

.choice-hint {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text);
}

/* ---------- the privacy cover (tab hidden) ---------- */

.cover {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--platinum);
}

.cover-logo {
  display: block;
  width: min(50vw, 220px);
  height: auto;
}

/* ---------- toast ---------- */

/* A direct child of <body>, fixed at the top: above the views, the sheets (30), the lock
   overlay (40) and the cover (45), so a message is never drawn behind what is open.
   Centred by its margins (the drop animation owns transform). */
.toast {
  position: fixed;
  z-index: 50;
  top: calc(var(--sat) + 8px);
  left: calc(var(--sal) + 12px);
  right: calc(var(--sar) + 12px);
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: 18px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--pearl), var(--pearl)) padding-box,
    var(--gold-line) border-box;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(17, 17, 17, 0.1), 0 18px 40px -12px rgba(60, 44, 20, 0.45);
  font-size: 1.0625rem;
  font-weight: 600;
  animation: drop 0.18s ease-out;
}

.toast-text {
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px 0;
}

.toast-action {
  flex: none;
  min-height: 44px;
  min-width: 72px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 650;
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- bottom sheets (confirm, passphrase again, and the views' own) ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--kb);
  background: rgba(17, 17, 17, 0.44);
}

.sheet {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px calc(var(--sar) + 18px) calc(var(--sab) + 12px) calc(var(--sal) + 18px);
  border-radius: 24px 24px 0 0;
  border: 1px solid transparent;
  border-bottom: 0;
  background:
    linear-gradient(var(--pearl), var(--pearl)) padding-box,
    var(--gold-line) border-box;
  box-shadow: 0 -10px 40px -12px rgba(17, 17, 17, 0.4);
  animation: slideup 0.2s ease-out;
}

/* A short sheet (its height is its content), capped to the room left so sideways it
   scrolls inside instead of running off the top. */
.sheet-compact {
  height: auto;
  max-height: min(88vh, 600px);
  max-height: min(88dvh, 600px, 100%);
  overflow-y: auto;
  gap: 12px;
  padding-top: 20px;
}

.sheet-note {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
}

.sheet-note:empty {
  display: none;
}

.sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.sheet-actions .btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 14px;
  text-wrap: balance;
}

@keyframes slideup {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ---------- small / short / sideways screens ---------- */

/* Phones: the logo, the name and Lock share one row; the name steps down so it fits
   whole even in the wider Iowan Old Style of iOS. */
@media (max-width: 479px) {
  :root {
    --gutter: 12px;
  }
  .logo {
    height: 30px;
  }
  .app-title {
    font-size: 1.25rem;
  }
  .top-btn {
    gap: 6px;
    padding: 0 12px;
    font-size: 1rem;
  }
  .auth {
    padding: 18px 16px 20px;
  }
  .code-box {
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    gap: 6px 6px;
    padding: 12px 8px;
  }
}

@media (max-width: 389px) {
  .app-title {
    font-size: 1.125rem;
  }
  .nav-link {
    font-size: 0.6875rem;
  }
  .code-box {
    font-size: 1.125rem;
    letter-spacing: 0.06em;
  }
}

/* Sideways, or a short upright viewport (Safari's page zoom): the lock view's logo and
   head shrink so the passphrase field and Unlock stay on screen. */
@media (max-height: 520px) {
  .lock-inner {
    gap: 10px;
    padding-top: calc(var(--sat) + 12px);
  }
  .lock-logo {
    width: 120px;
  }
  .lock-name {
    display: none;
  }
  .nav-link {
    min-height: 44px;
  }
  .nav-link svg {
    display: none;
  }
}

/* Hover only where there is a real pointer (a tap on a phone must not leave a button lit). */
@media (hover: hover) {
  .btn-primary:hover,
  .toast-action:hover {
    background: #000;
  }

  .btn-secondary:hover,
  .top-btn:hover,
  .icon-btn:hover {
    background:
      linear-gradient(#fff, #fff) padding-box,
      var(--gold-line) border-box;
  }

  .btn-secondary:disabled:hover,
  .top-btn:disabled:hover {
    background:
      linear-gradient(var(--pearl), var(--pearl)) padding-box,
      var(--gold-line) border-box;
  }

  a.row:hover,
  button.row:hover {
    background: #fff;
  }

  .nav-link:hover {
    color: var(--ink);
  }
}

/* Windows high contrast: the gold hairlines are backgrounds, which are dropped there. */
@media (forced-colors: active) {
  .btn,
  .top-btn,
  .icon-btn,
  .card,
  .rows,
  .sheet,
  .toast,
  .choice,
  .code-box,
  .note {
    border-color: CanvasText;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .busy::after {
    animation: none;
    border-right-color: var(--gold-deep);
    opacity: 0.5;
  }
}

/* ======================================================================================
   webtoday: the Today view, the composer bar, items (shared with the Day view).
   Appended by the webtoday area; webbrowse appends its own block after this one.
   ====================================================================================== */

/* ---------- today: title, mood, stamps ---------- */

.title-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.title-field {
  font-family: var(--serif);
  font-size: 1.25rem;
  min-height: 52px;
}

.title-status {
  min-height: 1.2em;
  padding-left: 4px;
}

.title-status:empty {
  display: none;
}

.mood-row {
  display: flex;
  gap: 6px;
  padding: 2px 0;
}

.mood-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 2px;
  border-radius: 14px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--pearl), var(--pearl)) padding-box,
    var(--gold-line) border-box;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 650;
}

.mood-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.25;
}

.mood-btn[data-mood="2"] .mood-dot {
  opacity: 0.4;
}

.mood-btn[data-mood="3"] .mood-dot {
  opacity: 0.55;
}

.mood-btn[data-mood="4"] .mood-dot {
  opacity: 0.75;
}

.mood-btn[data-mood="5"] .mood-dot {
  opacity: 1;
}

.mood-btn[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.mood-btn[aria-pressed="true"] .mood-dot {
  background: var(--gold-hi);
  opacity: 1;
}

.stamp-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 0.9375rem;
  color: var(--text);
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
}

.stamp-words {
  overflow-wrap: anywhere;
}

/* The tag row: chips with a remove button, then the field to add one. */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.tag-chip {
  gap: 2px;
  padding-right: 2px;
}

.tag-word {
  overflow-wrap: anywhere;
}

.tag-remove {
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
}

.tag-field {
  flex: 1 1 140px;
  min-width: 140px;
  min-height: 44px;
  font-size: 1rem;
}

.icon-btn-small {
  min-width: 40px;
  min-height: 40px;
  width: 40px;
  height: 40px;
  padding: 0;
}

.stamp-btn {
  min-height: 44px;
}

.today-empty {
  margin: 4px 0;
}

.removed-line {
  margin: 0;
  padding-top: 4px;
}

/* ---------- the prompt card ---------- */

.prompt-text {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.35;
}

.prompt-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

/* ---------- On This Day ---------- */

.memories-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.memories-head .section-h {
  margin: 0;
}

.memories-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
}

.memory-card {
  flex: 0 0 auto;
  width: min(72vw, 260px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  scroll-snap-align: start;
}

.memory-card .eyebrow {
  margin: 0;
}

.memory-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.3;
}

.memory-excerpt {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text);
  overflow-wrap: anywhere;
}

.memory-thumb {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 4px;
}

/* ---------- items ---------- */

.items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.items:empty {
  display: none;
}

.item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
}

.item-kind {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.item-when {
  flex: 1 1 auto;
}

.item-actions {
  display: flex;
  gap: 4px;
  margin: -6px -8px -6px 0;
}

.item-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.item-note {
  margin: 0;
  color: var(--text);
}

.item-marks {
  margin: 0;
}

.item-filename {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.item-upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.progress {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--platinum);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--gold-line);
}

.item-media {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player {
  width: 100%;
  max-width: 100%;
}

.video-player {
  height: auto;
  border-radius: 12px;
  background: #000;
}

.item-video {
  position: relative;
}

.play-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.thumb-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  overflow: hidden;
  cursor: zoom-in;
}

.thumb {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
  border-radius: 12px;
}

.thumb-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--platinum);
  color: var(--text);
}

.thumb-placeholder svg {
  color: var(--gold-deep);
}

.item-file {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-file svg {
  flex: none;
  color: var(--gold-deep);
}

.transcript {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
}

.transcript .eyebrow {
  margin: 0;
}

.transcript-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transcript .link-btn {
  align-self: flex-start;
}

.upload-pending .item-head {
  flex-wrap: wrap;
}

/* The full-screen image viewer (inside #view, so the lock wipe removes it). */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--sat) + 8px) var(--sar) var(--sab) var(--sal);
  background: rgba(17, 17, 17, 0.96);
}

.viewer-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.viewer-close {
  position: absolute;
  top: calc(var(--sat) + 10px);
  right: calc(var(--sar) + 10px);
}

/* ---------- the composer ---------- */

.composer-bar {
  display: flex;
  justify-content: space-around;
  gap: 2px;
}

.composer-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}

.composer-btn svg {
  color: var(--gold-deep);
}

.composer-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
}

.composer-heading {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.3;
}

.composer-text {
  min-height: 96px;
  max-height: 40vh;
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.composer-status {
  flex: 1 1 auto;
  margin: 0;
}

.composer-unsaved {
  color: var(--live);
  font-weight: 650;
}

.composer-note {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink);
}

/* ---------- a voice note in progress ---------- */

.voice-panel {
  padding: 12px 14px 12px 20px;
  margin-bottom: 8px;
}

.voice-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.voice-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.voice-label {
  font-weight: 650;
}

.voice-time {
  flex: 1 1 auto;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.voice-msg {
  margin: 8px 0 0;
  color: var(--ink);
}

.voice-msg:empty {
  display: none;
}

.lock-recording {
  margin: 0;
}

/* A voice note left waiting on this phone (the outbox): a persistent line, not a toast. */
.voice-leftovers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.voice-leftover {
  padding: 12px 14px 12px 20px;
}

.voice-leftover .composer-note {
  font-weight: 650;
}

.voice-leftover .composer-actions {
  margin-top: 8px;
}

@media (min-width: 720px) {
  .composer-bar {
    justify-content: center;
    gap: 12px;
  }

  .composer-btn {
    flex: 0 0 96px;
  }

  .memory-card {
    width: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voice-dot {
    animation: none;
  }
}


/* ======================================================================================
   webbrowse: the Day, Calendar, Year, Search, Memories, Reflections and Settings views
   (web/js/{dayview,calendar,year,search,memories,reflections,settings}.js). Appended by
   the webbrowse area; the house tokens above are used, nothing new is declared.
   ====================================================================================== */

/* The browse views share the .view column; named so a test or a style can find each. */
.day-view,
.calendar-view,
.year-view,
.search-view,
.memories-view,
.reflections-view,
.settings-view {
  gap: 14px;
}

/* ---------- read-only day ---------- */

.dayhead {
  gap: 4px;
}

.seal-late {
  margin-top: 4px;
}

.mood-word {
  font-size: 1rem;
  font-weight: 650;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.day-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.seal-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}

.seal-result:empty {
  display: none;
}

.items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-wrap {
  border-radius: calc(var(--radius) + 3px);
  outline: none;
}

/* The entry a search result or a memory pointed at. */
.item-target {
  box-shadow: 0 0 0 3px var(--gold-deep);
}

.item-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.day-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

/* ---------- calendar ---------- */

.cal-head {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cal-head .view-title {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.cal-wd {
  padding: 4px 0;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--faint);
}

.cal-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  min-height: 48px;
  padding: 5px 2px 4px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--pearl);
  color: var(--ink);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.cal-blank {
  background: none;
}

.cal-off {
  background: none;
  color: var(--faint);
}

.cal-day[data-entry="1"] {
  border-color: var(--hairline);
  box-shadow: var(--shadow-sm);
}

/* Shaded by mood, from a cool grey (Rough) to the logo's light gold (Great). */
.cal-day[data-mood="1"] {
  background: #d9d6d1;
}

.cal-day[data-mood="2"] {
  background: #e6e0d4;
}

.cal-day[data-mood="3"] {
  background: #efe3c9;
}

.cal-day[data-mood="4"] {
  background: #f1d9a6;
}

.cal-day[data-mood="5"] {
  background: var(--gold-hi);
}

.cal-day[data-today="1"] {
  border-color: var(--ink);
  border-width: 2px;
  font-weight: 700;
}

.cal-num {
  line-height: 1;
}

.cal-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  min-height: 7px;
}

/* One dot per kind: ink (a note), deep gold (voice, a recording), hollow (photo, video), faint (a file). */
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.dot-text {
  background: var(--ink);
}

.dot-voice,
.dot-audio {
  background: var(--gold-deep);
}

.dot-audio {
  border-radius: 2px;
}

.dot-photo,
.dot-video {
  background: none;
  border: 1.5px solid var(--ink);
}

.dot-video {
  border-radius: 2px;
}

.dot-file {
  background: var(--faint);
  border-radius: 2px;
}

/* A bookmarked day: a small gold corner mark. */
.cal-mark {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-line);
}

/* ---------- year ---------- */

.year-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.year-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.year-label {
  flex: none;
  display: inline-flex;
  align-items: center;
  width: 40px;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
}

.year-dots {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(31, minmax(0, 1fr));
  gap: 2px;
}

.ydot {
  display: block;
  aspect-ratio: 1 / 1;
  min-width: 0;
  border-radius: 2px;
  background: rgba(17, 17, 17, 0.08);
}

.ydot-none {
  background: none;
}

.ydot-future {
  background: rgba(17, 17, 17, 0.03);
}

.ydot-written {
  background: var(--faint);
}

.ydot-mood[data-mood="1"] {
  background: #b9b4ac;
}

.ydot-mood[data-mood="2"] {
  background: #d2c6b0;
}

.ydot-mood[data-mood="3"] {
  background: #e0c98f;
}

.ydot-mood[data-mood="4"] {
  background: var(--gold);
}

.ydot-mood[data-mood="5"] {
  background: var(--gold-deep);
}

.year-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.year-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.year-key .ydot {
  width: 14px;
  height: 14px;
}

/* ---------- search ---------- */

.search-bar {
  margin: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--pearl);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 650;
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-row {
  cursor: pointer;
}

.result-snippet {
  font-weight: 500;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* ---------- memories ---------- */

.memory-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.memory-card {
  display: flex;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.memory-thumb {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--platinum);
}

.memory-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.memory-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.memory-excerpt {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* ---------- reflections ---------- */

.reflection-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reflection-card,
.due-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reflection-week {
  font-size: 1.375rem;
}

.reflection-text {
  font-size: 1.0625rem;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------- settings ---------- */

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-section .section-h {
  margin-bottom: 0;
}

.settings-section .btn,
.settings-section .link-btn {
  align-self: flex-start;
}

/* A row of choices where one is on (lock time, stamps, the reflection switch). */
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seg-btn {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--pearl);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
}

.seg-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.recovery-shown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.range {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.range-field {
  flex: 1 1 140px;
  min-width: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* The space meter: a gold bar in a pearl trough, deep red past the warning line. */
.meter {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--platinum);
}

.meter-bar {
  height: 100%;
  max-width: 100%;
  border-radius: 999px;
  background: var(--gold-line);
}

.meter[data-warn="1"] .meter-bar {
  background: var(--live);
}

.seal-out {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seal-out:empty {
  display: none;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 1rem;
}

.note[data-tone="live"] {
  border-color: var(--live);
  background: #fbeceb;
}

.credits {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 479px) {
  .cal-cell {
    min-height: 44px;
    border-radius: 10px;
  }
  .year-label {
    width: 34px;
  }
  .memory-thumb {
    width: 60px;
    height: 60px;
  }
}

@media (forced-colors: active) {
  .cal-cell,
  .chip,
  .seg-btn,
  .meter,
  .ydot,
  .dot {
    border: 1px solid CanvasText;
  }
}
