/* Pages: settings are compact ("more per screen helps there"), the reading surface stays airy.
 * One calm page: a serif title, a sentence before any number, then labelled groups of cards. */

.page {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 56px 64px 96px;
}
.page-column {
  max-width: var(--w-settings);
}
.page.is-wide .page-column {
  max-width: 900px;
}
.page-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.page-title-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  justify-content: space-between;
}
.page-lead {
  max-width: 720px;
}
.page-lead strong {
  color: var(--ink);
  font-weight: 600;
}
.phone-back {
  display: none;
  margin-left: -8px;
}
.page-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 30px;
}
/* Being drawn again after a change: still there, not for clicking, and dimmed if it takes a moment. */
.page-body[aria-busy='true'] {
  opacity: 0.55;
  transition: opacity var(--d-fade) var(--ease-enter) 200ms;
}
.page-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section-label {
  font-size: var(--t-label);
}
.page-foot {
  font-size: calc(14px * var(--ts));
  color: var(--ink-quiet);
  line-height: 1.55;
  max-width: 720px;
}

.card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px 22px;
}
.card.card-list {
  padding: 0;
  overflow: hidden;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.row {
  --focus-radius: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  min-height: 56px;
  width: 100%;
  text-align: left;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.card-list > .row:last-child,
.card-list > :last-child > .row {
  border-bottom: 0;
}
.row.is-link:hover {
  background: color-mix(in oklch, var(--ground-sunken) 60%, transparent);
  color: var(--ink);
  text-decoration: none;
}
.row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.row-title {
  font-size: var(--t-body);
  line-height: 1.35;
  /* A word longer than the row (a name with no spaces, an address) breaks where it must, rather
     than running under the time and the button beside it. */
  overflow-wrap: anywhere;
}
.row-meta {
  font-size: var(--t-small);
  color: var(--ink-quiet);
  line-height: 1.4;
}
.row-meta .good {
  color: var(--success);
}
.row-meta .bad {
  color: var(--danger);
}
.row-chevron {
  color: var(--ink-placeholder);
}
.row-aside {
  font-size: var(--t-meta);
  color: var(--ink-quiet);
  white-space: nowrap;
}
.row.is-quiet .row-title {
  color: var(--ink-quiet);
}
.row .link {
  font-size: var(--t-meta);
  white-space: nowrap;
}

/* A square app mark: Gmail's M, a folder, the web. */
.app-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--app, var(--surface-selected));
}
.app-icon.is-neutral {
  color: var(--ink-soft);
  background: var(--surface-selected);
}
.app-icon svg {
  width: 18px;
  height: 18px;
}
.app-icon.is-small {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 14px;
}

/* ------------------------------------------------------------------------------------------ */
/* What this costs */

.ceiling-meter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ceiling-track {
  position: relative;
  height: 12px;
  border-radius: 6px;
  background: var(--surface-selected);
}
:root[data-theme='dark'] .ceiling-track {
  background: var(--line-soft);
}
.ceiling-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 6px;
  background: var(--accent);
  width: var(--share, 0%);
  transition: width var(--d-open) var(--ease-move);
}
.ceiling-warn {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 2px;
  background: var(--ink);
  left: var(--warn, 80%);
  border-radius: 1px;
}
.ceiling-scale {
  position: relative;
  display: flex;
  justify-content: space-between;
  font-size: var(--t-small);
  color: var(--ink-quiet);
}
.ceiling-scale .warn-label {
  position: absolute;
  left: var(--warn, 80%);
  transform: translateX(-50%);
  color: var(--ink);
  white-space: nowrap;
}
/* Where the meter is narrow, the warning's words take a line of their own, ending at its mark.
   Centred on the mark beside the ceiling's, they overlapped on a phone ("Warns you at $8" over
   "Ceiling $10"). Asked of the meter's own width, not the screen's, which the sidebar changes. */
.ceiling-meter {
  container-type: inline-size;
}
@container (max-width: 700px) {
  .ceiling-scale {
    flex-wrap: wrap;
  }
  .ceiling-scale .warn-label {
    position: static;
    transform: none;
    order: 3;
    flex-basis: 100%;
    text-align: right;
    padding-right: calc(100% - var(--warn, 80%));
    margin-top: 2px;
  }
}
.money-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.money-figure {
  font-family: var(--font-serif);
  font-size: calc(32px * var(--ts));
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.money-figure small {
  font-family: var(--font-serif);
  font-size: calc(18px * var(--ts));
  color: var(--ink-quiet);
  margin-left: 6px;
}
.money-card p {
  font-size: calc(14.5px * var(--ts));
  color: var(--ink-soft);
  line-height: 1.5;
}
.money-card .link {
  margin-top: 6px;
  align-self: flex-start;
}
.amount {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.days-chart {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  align-items: end;
  gap: 6px;
  height: 96px;
  padding: 6px 2px 0;
}
.day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
  min-width: 0;
}
.day-col i {
  display: block;
  width: 100%;
  max-width: 22px;
  border-radius: 4px 4px 2px 2px;
  background: var(--accent);
  opacity: 0.85;
  min-height: 2px;
}
.day-col.is-empty i {
  background: var(--surface-selected);
}
.day-col span {
  font-size: 11px;
  color: var(--ink-quiet);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------------------------------ */
/* What it remembers */

.note-row .row-text {
  gap: 3px;
}
.note-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
/* A text link beside a switch or a badge needs room to read as two things. */
.note-actions:has(> .switch),
.note-actions:has(> .badge) {
  gap: 14px;
}
.note-edit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in oklch, var(--ground-sunken) 50%, transparent);
}
.note-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.memory-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
/* The sentence beside it takes the room it needs; "Forget everything" stays on one line. */
.memory-foot > .link {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ------------------------------------------------------------------------------------------ */
/* Where you chat */

.connect-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border-color: var(--accent-line);
}
.qr-box {
  width: 132px;
  height: 132px;
  flex: none;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px;
}
.qr-box svg,
.qr-box img {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.token-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.connect-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.connect-text > .link {
  align-self: flex-start;
}
.connect-text pre {
  font-family: var(--font-mono);
  font-size: var(--t-code);
  background: var(--ground-sunken);
  border-radius: 10px;
  padding: 10px 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}
.channel-card .row-text {
  gap: 3px;
}
.channel-state.is-connected {
  color: var(--success);
}

/* ------------------------------------------------------------------------------------------ */
/* Scheduled */

.schedule-composer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 14px;
  box-shadow: var(--e-lifted);
}
.schedule-input {
  width: 100%;
  border: 0;
  background: none;
  font-size: calc(16px * var(--ts));
  color: var(--ink);
  caret-color: var(--accent);
  resize: none;
  box-shadow: none !important;
}
.schedule-input::placeholder {
  color: var(--ink-placeholder);
}
.schedule-readback {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-meta);
  color: var(--ink-soft);
  min-height: 36px;
}
.schedule-readback svg {
  color: var(--ink-quiet);
}
.schedule-readback.is-problem {
  color: var(--danger);
}
.job-row.is-off .row-title {
  color: var(--ink-quiet);
}
.job-said:not(:empty) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ground-sunken);
}
.job-said p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------------------------------ */
/* Which AI answers you */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tier-card {
  --focus-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  padding: 20px 22px 22px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: border-color var(--d-micro) var(--ease-enter), background-color var(--d-micro) var(--ease-enter);
}
.tier-card:hover {
  border-color: var(--line-strong);
}
.tier-card[aria-checked='true'] {
  border: 1.5px solid var(--accent);
  padding: 19.5px 21.5px 21.5px;
}
.tier-card .radio {
  margin-bottom: 8px;
}
.tier-name {
  font-family: var(--font-serif);
  font-size: calc(24px * var(--ts));
  line-height: 1.15;
}
.tier-card .tier-model {
  margin-top: 8px;
  font-size: var(--t-small);
  color: var(--ink-quiet);
}
.tier-card p {
  font-size: calc(14.5px * var(--ts));
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ------------------------------------------------------------------------------------------ */
/* You */

.you-head {
  display: flex;
  align-items: center;
  gap: 18px;
}
.you-head .t-title {
  font-size: calc(32px * var(--ts));
}
.you-head .you-meta {
  font-size: var(--t-meta);
  color: var(--ink-quiet);
}
.you-head .you-meta strong {
  color: var(--ink);
  font-weight: 500;
}
.you-head .grow {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.you-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.setting-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.setting-line {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  font-size: var(--t-body);
  min-height: 30px;
}
.setting-line .quiet {
  font-size: var(--t-meta);
}
.text-size {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--t-body);
  color: var(--ink-soft);
}
.text-size .slider {
  flex: 1;
}
.text-size .big-a {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink);
}
.advanced-door {
  --focus-radius: var(--r-card);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-card);
  color: var(--ink);
  text-decoration: none;
  background: transparent;
}
.advanced-door:hover {
  background: color-mix(in oklch, var(--ground-sunken) 50%, transparent);
  color: var(--ink);
  text-decoration: none;
}
.advanced-door .row-meta {
  font-size: var(--t-small);
}
.you-sections {
  display: none;
  flex-direction: column;
}
.version-line {
  text-align: center;
  font-size: var(--t-small);
  color: var(--ink-quiet);
}

/* ------------------------------------------------------------------------------------------ */
/* Your conversations */

.search-row {
  position: relative;
}
.hit-row {
  --focus-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}
.hit-row:hover,
.hit-row:focus-within {
  background: var(--ground-sunken);
  color: var(--ink);
  text-decoration: none;
}
.hit-row .row-title {
  text-align: left; /* a conversation's name keeps its place in the list, whichever way it reads */
  font-weight: 500;
}
.hit-row .row-meta {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hit-when {
  font-size: var(--t-small);
  color: var(--ink-quiet);
  white-space: nowrap;
}
mark {
  background: var(--accent-wash);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}
.hit-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 -16px;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 64px 16px;
  max-width: 440px;
  margin: 0 auto;
}
.empty-state .t-question {
  font-size: calc(26px * var(--ts));
}
.swipe-row {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.swipe-row .swipe-delete {
  position: absolute;
  inset: 0 0 0 auto;
  width: 88px;
  background: var(--danger);
  color: var(--on-danger);
  font-weight: 600;
  font-size: var(--t-button);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Beside the row, clipped out of sight, until a swipe brings it in with the row. */
  transform: translateX(100%);
  transition: transform var(--d-micro) var(--ease-enter);
}
.swipe-row .hit-row {
  background: var(--ground);
  transition: transform var(--d-micro) var(--ease-enter);
  touch-action: pan-y;
}

/* ------------------------------------------------------------------------------------------ */
/* First run */

.welcome {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  padding: 48px 24px 32px;
}
.welcome-step {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100%;
}
.welcome-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
}
.welcome-progress {
  display: flex;
  gap: 8px;
}
.welcome-progress span {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--surface-selected);
}
.welcome-progress span.is-done {
  background: var(--accent);
}
.welcome-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}
.welcome-body .t-display {
  font-size: calc(40px * var(--ts));
}
.welcome-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
}
.welcome-amount {
  font-family: var(--font-serif);
  font-size: calc(64px * var(--ts));
  line-height: 1;
  text-align: center;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.welcome-scale {
  display: flex;
  justify-content: space-between;
  font-size: var(--t-small);
  color: var(--ink-quiet);
}
.choice-card {
  --focus-radius: var(--r-card);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface-raised);
  text-align: left;
  width: 100%;
}
.choice-card[aria-checked='true'] {
  border: 1.5px solid var(--accent);
  padding: 13.5px 15.5px;
}
.choice-card .radio {
  margin-left: auto;
}
.suggest-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.suggest {
  --focus-radius: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-raised);
  text-align: left;
  font-size: var(--t-body);
  color: var(--ink-soft);
}
.suggest:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
.promise-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
}
.promise-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--t-body);
}

/* Pairing: six digits. */
.code-boxes {
  display: flex;
  gap: 8px;
}
.code-boxes input {
  width: 48px;
  height: 60px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
  color: var(--ink);
  caret-color: var(--accent);
}
.code-boxes input:focus {
  border: 1.5px solid var(--accent);
  box-shadow: none;
}
.big-code {
  font-family: var(--font-serif);
  font-size: calc(46px * var(--ts));
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------------------------------ */
/* Advanced, Projects */

.dev-list .row-title {
  font-weight: 500;
}
.mono {
  font-family: var(--font-mono);
  font-size: var(--t-code);
}
.doc-view {
  font-family: var(--font-mono);
  font-size: var(--t-code);
  line-height: 1.6;
  white-space: pre-wrap;
  background: var(--ground-sunken);
  border-radius: 12px;
  padding: 14px 16px;
  max-height: 320px;
  overflow: auto;
  margin: 0 20px 16px;
}
textarea.doc-edit {
  font-family: var(--font-mono);
  font-size: var(--t-code);
  line-height: 1.6;
  min-height: 200px;
}
/* What a document says now, under an edit made to an older version of it. */
.doc-now summary {
  cursor: pointer;
  font-weight: 500;
  margin-bottom: 8px;
}
.doc-now .doc-view {
  margin: 0;
  max-height: 200px;
}
.project-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-card .row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
/* A published site: its name opens it; what can be done with it sits beside, or under on a phone.
   The name keeps room for a line of its own before the actions take any: without it, on a phone,
   four actions left the name a column one syllable wide. */
.row.site-row {
  flex-wrap: wrap;
  row-gap: 8px;
}
.row.site-row .row-text {
  flex: 1 1 240px;
}
.row.site-row .row-meta {
  overflow-wrap: anywhere;
}
.site-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
/* What visitors sent a site: under its row, each entry's fields as a list of name and answer. */
.site-item:not(:last-child) > .entries-panel {
  border-bottom: 1px solid var(--line-soft);
}
.entries-panel {
  display: flex;
  flex-direction: column;
  gap: var(--s-inset);
  padding: 4px 20px 18px;
}
.entries-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.entries-head .t-label {
  margin: 0;
}
.entries-head .link {
  margin-left: auto;
}
/* The same size as the links on the site's row above. */
.entries-panel .link {
  font-size: var(--t-meta);
  white-space: nowrap;
}
.entry-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-tight);
}
.entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--r-row);
  background: var(--ground);
}
.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.entry-fields {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  gap: 3px 14px;
  font-size: var(--t-small);
}
.entry-fields dt {
  color: var(--ink-quiet);
  overflow-wrap: anywhere;
}
.entry-fields dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.entries-panel > .btn {
  align-self: flex-start;
}

/* ------------------------------------------------------------------------------------------ */
/* Skeleton pages and failures */

.skeleton-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sk-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface-raised);
}
.sk-row {
  height: 14px;
  border-radius: 7px;
}

/* ------------------------------------------------------------------------------------------ */
/* Phone */

@media (max-width: 859px) {
  .page {
    padding: calc(12px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom));
  }
  .phone-back {
    display: inline-flex;
  }
  .page-head .t-title {
    font-size: calc(30px * var(--ts));
  }
  .page-lead {
    font-size: calc(16px * var(--ts));
  }
  .page-body {
    margin-top: 20px;
    gap: 22px;
  }
  .card-grid,
  .you-grid,
  .tier-grid {
    grid-template-columns: 1fr;
  }
  .tier-card {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
  }
  .tier-card[aria-checked='true'] {
    padding: 13.5px 15.5px;
  }
  .tier-card .radio {
    margin: 0;
    order: -1;
  }
  .tier-name {
    font-size: calc(20px * var(--ts));
  }
  .row {
    padding: 12px 16px;
  }
  .connect-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .you-sections {
    display: flex;
  }
  .you-desktop-only {
    display: none !important;
  }
  .welcome {
    padding: calc(16px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
  }
  .welcome-body .t-display {
    font-size: calc(34px * var(--ts));
  }
  .code-boxes input {
    width: 44px;
    height: 56px;
  }
  .memory-foot {
    flex-direction: column;
  }
  .hit-list {
    margin: 0 -8px;
  }
}

/* ------------------------------------------------------------------------------------------ */
/* Small pieces the pages share */

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.center {
  text-align: center;
  align-self: center;
}
.start-chips.is-left {
  justify-content: flex-start;
}
.card.is-warning {
  border-color: var(--accent-line);
  background: color-mix(in oklch, var(--accent-wash) 55%, var(--surface-raised));
}
.empty-line {
  padding: 8px 0;
}
.row-title.is-quote {
  color: var(--ink);
}
.deleted-section {
  margin-top: 28px;
}
.mono-title .row-title {
  font-family: var(--font-mono);
  font-size: var(--t-code);
}
.phone-only-inline {
  display: none;
}
@media (max-width: 859px) {
  .phone-only-inline {
    display: inline-flex;
  }
}

/* Accent and background choices on You. */
.swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.swatch {
  --focus-radius: 50%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid color-mix(in oklch, var(--swatch), #1E1A16 18%);
  position: relative;
  transition: transform var(--d-press) var(--ease-enter);
}
.swatch:active {
  transform: scale(0.94);
}
.swatch[aria-checked='true']::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--ink);
}

/* Fields inside a dialog. */
.dialog-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dialog-fields.is-row {
  flex-direction: row;
}
.dialog-fields.is-row > * {
  flex: 1;
}
.whats-new {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-soft);
}
.welcome-step.is-first-message .welcome-body {
  justify-content: flex-end;
}
.path-line {
  display: block;
  font-size: calc(12px * var(--ts));
  color: var(--ink-quiet);
  overflow-wrap: anywhere;
}
.row-aside.ellipsis {
  max-width: 50%;
}

/* A member's view of the settings: seen, not changed (readOnly in pages/shell.js). */
.members-note {
  font-size: var(--t-small);
  color: var(--ink-quiet);
  background: var(--ground-sunken);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 16px;
}
[data-admin][aria-disabled='true'],
[data-admin] [aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Signing in (pages/signin.js). */
.sign-in-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sign-in-form .field-label:not(:first-child) {
  margin-top: 10px;
}
.sign-in-form .btn {
  margin-top: 14px;
}

/* Choosing a model (pages/ai.js): a list of radio rows, the last with a field for any other. */
.choice-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.choice-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.choice-row:hover {
  background: var(--surface-hover, var(--ground-sunken));
}
.choice-row input[type='radio'] {
  accent-color: var(--accent);
  flex: none;
}
.choice-row .field {
  margin-top: 6px;
}
