.title-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  margin: 0;
}
.title-dialog[open] {
  display: grid;
  place-items: center;
}
.title-dialog::backdrop {
  background: rgba(0, 0, 0, 0.48);
}
.title-dialog-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(36rem, calc(100vw - 1.5rem));
  max-height: min(92dvh, 52rem);
  overflow: hidden;
  padding: 1.35rem 1.4rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--bg);
}
#title-dialog-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.1rem;
}
.title-dialog-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  width: 2.1rem;
  height: 2.1rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}
.title-dialog-close:hover {
  border-color: var(--ink);
  background: var(--chip);
}
.title-dialog-hero {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem 1.1rem;
  align-items: start;
  padding-right: 2.2rem;
  margin-bottom: 1.15rem;
}
.title-dialog-hero-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 8.25rem;
}
.title-dialog-hero-copy .taste-row {
  margin-top: 0.5rem;
  padding-top: 0;
  flex-wrap: wrap;
}
.title-dialog-hero-copy .taste-cluster {
  display: contents;
}
.title-dialog-hero-copy .taste-row .copy-toast {
  bottom: calc(100% + 0.28rem);
  top: auto;
}
.title-dialog-poster-btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
  width: 5.5rem;
  height: 8.25rem;
}
.title-dialog-poster-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.title-dialog-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--chip);
  display: block;
}
.title-dialog-hero > .title-dialog-poster {
  width: 5.5rem;
  height: 8.25rem;
}
.title-dialog-panel.is-poster-expanded {
  overflow: hidden;
}
.title-dialog-panel.is-poster-expanded #title-dialog-body {
  display: block;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.title-dialog-panel.is-poster-expanded .title-dialog-hero {
  display: block;
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  gap: 0;
}
.title-dialog-panel.is-poster-expanded .title-dialog-hero-copy,
.title-dialog-panel.is-poster-expanded .title-dialog-section {
  display: none;
}
.title-dialog-panel.is-poster-expanded .title-dialog-poster-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: zoom-out;
}
.title-dialog-panel.is-poster-expanded .title-dialog-poster {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.title-dialog-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem 0.65rem;
}
.title-dialog-heading {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}
.title-dialog-score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.28rem;
}
.title-dialog-copy {
  font: inherit;
  flex: 0 0 auto;
  width: 1.65rem;
  height: 1.65rem;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.title-dialog-copy svg {
  width: 0.88rem;
  height: 0.88rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.title-dialog-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
a.title-dialog-tmdb {
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  flex: 0 0 auto;
}
a.title-dialog-tmdb .score {
  font-family: Fraunces, Georgia, serif;
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
a.title-dialog-tmdb .score.empty {
  font-size: 1.35rem;
  font-weight: 500;
}
a.title-dialog-tmdb:hover {
  text-decoration: none;
}
a.title-dialog-tmdb:hover .score {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.title-dialog-section {
  margin: 0 0 1rem;
}
.title-dialog-section[hidden] {
  display: none;
}
.title-dialog-section .prefs-section-label {
  margin-bottom: 0.4rem;
}
.title-dialog .pills {
  max-height: min(14rem, 38vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.title-dialog .pill--other {
  color: var(--muted);
}
.title-dialog-overview {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}
.title-dialog-overview.is-empty {
  color: var(--muted);
}
.title-dialog .ext-links {
  width: 100%;
}
.title-dialog a.ext-link {
  min-height: 2rem;
  padding: 0.4rem 0.4rem;
  font-size: 0.85rem;
}
.ext-links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--bg);
}
a.ext-link,
.ext-links .score.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 1.35rem;
  padding: 0.18rem 0.28rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  background: transparent;
}
a.ext-link:last-child,
.ext-links > :last-child {
  border-right: 0;
}
a.ext-link {
  cursor: pointer;
}
a.ext-link:hover {
  color: var(--ink);
  background: var(--chip);
}
a.ext-link--imdb {
  background: color-mix(in srgb, #f5c518 55%, transparent);
  color: #2a2a2a;
}
a.ext-link--rt {
  background: color-mix(in srgb, #fa320a 48%, transparent);
  color: #2a2a2a;
}
a.ext-link--lb {
  background: color-mix(in srgb, #6b7280 50%, transparent);
  color: #2a2a2a;
}
[data-theme="dark"] a.ext-link--imdb {
  background: color-mix(in srgb, #f5c518 45%, transparent);
  color: #f2f2f2;
}
[data-theme="dark"] a.ext-link--rt {
  background: color-mix(in srgb, #fa320a 42%, transparent);
  color: #f2f2f2;
}
[data-theme="dark"] a.ext-link--lb {
  background: color-mix(in srgb, #9ca3af 40%, transparent);
  color: #f2f2f2;
}
a.ext-link--imdb:hover {
  background: color-mix(in srgb, #f5c518 70%, transparent);
  color: #2a2a2a;
}
a.ext-link--rt:hover {
  background: color-mix(in srgb, #fa320a 62%, transparent);
  color: #2a2a2a;
}
a.ext-link--lb:hover {
  background: color-mix(in srgb, #6b7280 65%, transparent);
  color: #2a2a2a;
}
[data-theme="dark"] a.ext-link--imdb:hover {
  background: color-mix(in srgb, #f5c518 58%, transparent);
  color: #f2f2f2;
}
[data-theme="dark"] a.ext-link--rt:hover {
  background: color-mix(in srgb, #fa320a 55%, transparent);
  color: #f2f2f2;
}
[data-theme="dark"] a.ext-link--lb:hover {
  background: color-mix(in srgb, #9ca3af 52%, transparent);
  color: #f2f2f2;
}
a.ext-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  z-index: 1;
}
.ext-arrow {
  speak: never;
  font-size: 0.85em;
  font-weight: 500;
  opacity: 0.8;
}
.theme-control {
  display: flex;
  flex-shrink: 0;
  width: 100%;
  border: 0;
  background: var(--bg);
}
.theme-control button {
  flex: 1 1 0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 0.55rem;
  cursor: pointer;
}
.theme-control button:last-child { border-right: 0; }
.theme-control button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--btn-fg);
}
.theme-control button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  z-index: 1;
}
.header-actions {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items: stretch;
  gap: 0;
  margin-top: 0.2rem;
  border: 1px solid var(--line);
  overflow: hidden;
}
.header-actions > * {
  border-bottom: 1px solid var(--line);
}
.header-actions > *:last-child {
  border-bottom: 0;
}
.account-btn,
.caviar-action-btn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
  background: var(--bg);
  color: var(--muted);
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  line-height: 1;
}
.caviar-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--train);
  color: #fff;
}
.caviar-action-tune {
  display: none;
  font-size: 0.95rem;
  line-height: 1;
}
.header-actions .caviar-action-label {
  display: none;
}
.header-actions .caviar-action-tune {
  display: inline;
  font-size: 0.85rem;
}
.account-btn[aria-pressed="true"],
.account-btn.is-signed-in {
  color: var(--ink);
}
.account-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.caviar-action-btn:focus-visible {
  outline: 2px solid var(--train);
  outline-offset: 2px;
}
.caviar-flair {
  display: inline-block;
  width: 0.78rem;
  height: 0.78rem;
  border: 1.5px solid var(--caviar, #8a8a8a);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.caviar-flair::after {
  content: "";
  position: absolute;
  inset: 22%;
  background: var(--caviar, #8a8a8a);
  border-radius: 50%;
}
.cell-caviar {
  text-align: center;
  padding-left: 0.15rem;
  padding-right: 0.15rem;
  width: 1.55rem;
}
.title-open-wrap {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}
.taste-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.taste-row button {
  font: inherit;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.taste-row button[hidden] {
  display: none;
}
.taste-row button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.taste-row button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--btn-fg);
  border-color: var(--ink);
}
.taste-row button[aria-pressed="true"] svg {
  fill: currentColor;
}
.watchlist-list {
  list-style: none;
  margin: 0 0 0.35rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.watchlist-list li {
  margin: 0;
  padding: 0;
}
.watchlist-list .watchlist-open {
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  width: 100%;
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.watchlist-list .watchlist-open:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.watchlist-empty {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.taste-row button[data-taste="dont-recommend"][aria-pressed="true"] svg,
.taste-row button[data-sig="dont-recommend"][aria-pressed="true"] svg {
  fill: none;
}
.copy-toast {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.38rem);
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.22rem 0.48rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  background: var(--ink);
  color: var(--btn-fg);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
}
.title-dialog-copy .copy-toast {
  top: calc(100% + 0.28rem);
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
}
.taste-row button[data-taste="dont-recommend"] .copy-toast {
  white-space: normal;
  width: max-content;
  max-width: 9.2rem;
  text-align: center;
}
.taste-row button.is-toast .copy-toast,
.title-dialog-copy.is-toast .copy-toast {
  opacity: 1;
  visibility: visible;
}
.taste-row button[data-train="skip"] {
  width: auto;
  padding: 0 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.train-examples {
  display: flex;
  gap: 0.5rem;
  margin: 0.6rem 0 0.9rem;
}
.train-examples figure { margin: 0; width: 4.6rem; }
.train-examples img,
.train-examples .poster-ph {
  width: 4.6rem;
  height: 6.9rem;
  object-fit: cover;
  background: var(--line);
  display: block;
}
.train-examples figcaption {
  font-size: 0.68rem;
  line-height: 1.2;
  margin-top: 0.25rem;
  color: var(--muted);
}
.train-example-note {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
}
.train-example-banner {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--train);
  text-transform: uppercase;
}
.train-examples figure.train-example-only {
  width: 7.2rem;
}
.train-progress {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0.8rem 0 0;
}
.flair-colors {
  display: flex;
  gap: 0.45rem;
  margin: 0.6rem 0 1rem;
}
.flair-colors button {
  width: 1.6rem;
  height: 1.6rem;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}
.flair-colors button[aria-pressed="true"] { border-color: var(--ink); }
/* CC-2026-108 — larger Train pack, vivid swatches, purple answers. */
#train-dialog.account-dialog {
  max-width: min(40rem, calc(100vw - 1rem));
}
#train-dialog .train-dialog-panel {
  width: min(40rem, calc(100vw - 1rem));
  padding: 1.5rem 1.35rem 1.4rem;
}
.train-pack {
  border: 1px solid var(--line);
  padding: 1rem 1rem 1.05rem;
}
.train-pack .train-prompt {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
#train-dialog .train-example-banner {
  font-size: 0.88rem;
  margin: 0 0 0.55rem;
}
#train-dialog .train-examples {
  gap: 0.65rem;
  margin: 0.85rem 0 1rem;
}
#train-dialog .train-examples figure { width: 6.4rem; }
#train-dialog .train-examples figure.train-example-only { width: 7.2rem; }
#train-dialog .train-examples img,
#train-dialog .train-examples .poster-ph {
  width: 6.4rem;
  height: 9.6rem;
}
#train-dialog .train-examples figcaption {
  font-size: 0.72rem;
}
#train-dialog .train-example-note {
  font-size: 0.88rem;
}
#train-dialog .taste-row {
  gap: 0.55rem;
  margin: 0;
}
#train-dialog .taste-row button {
  width: 3.15rem;
  height: 3.15rem;
  background: var(--train);
  border-color: var(--train);
  color: #fff;
}
#train-dialog .taste-row button svg {
  width: 1.45rem;
  height: 1.45rem;
}
#train-dialog .taste-row button[data-train="skip"] {
  width: auto;
  min-height: 3.15rem;
  padding: 0 1.15rem;
  font-size: 0.92rem;
}
#train-dialog .flair-colors button {
  width: 2.15rem;
  height: 2.15rem;
}
.caviar-history {
  max-height: 14rem;
  overflow: auto;
  font-size: 0.82rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}
.caviar-history li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.4rem 0;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.caviar-history .hist-label {
  flex: 1 1 8rem;
  min-width: 0;
}
.results tbody tr.result-row.is-seen .title-open,
.results tbody tr.result-row.is-seen .title-kind,
.results tbody tr.result-row.is-seen .cell-year,
.results tbody tr.result-row.is-seen .cell-num {
  color: var(--muted);
}
.results tbody tr.result-row.is-seen .title-open {
  opacity: 0.72;
}
/* CC-2026-125: swipe overlays exist only on mobile. */
.cell-swipe,
.cell-swipe-cover {
  display: none;
}
.account-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: calc(100vw - 2rem);
}
.account-dialog::backdrop {
  background: rgba(0, 0, 0, 0.35);
}
.account-dialog-panel {
  position: relative;
  width: min(22rem, calc(100vw - 2rem));
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 1.35rem 1.25rem 1.25rem;
}
.account-dialog-heading {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}
.account-dialog-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.account-dialog-lead .train-lead-mark {
  display: inline-block;
  vertical-align: -0.1em;
  width: 0.78rem;
  height: 0.78rem;
  color: var(--train);
  margin: 0 0.05rem;
}
/* Theme lives in Account (desktop + mobile), below sign-in / Log out. */
.account-theme {
  display: block;
  margin: 1.1rem 0;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line);
}
#account-guest:not([hidden]) + #account-signed[hidden] ~ .account-theme,
#account-signed:not([hidden]) ~ .account-theme {
  margin-top: 1.1rem;
}
.account-theme .prefs-section-label {
  margin-bottom: 0.4rem;
}
.account-theme .theme-control {
  border: 1px solid var(--line);
}
.account-signed-actions {
  margin-top: 0.65rem;
}
.account-watchlist-zone {
  margin: 1.1rem 0 0;
  padding: 0.65rem 0 0;
  border-top: 1px solid var(--line);
}
.account-watchlist-zone summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.account-watchlist-zone summary::-webkit-details-marker {
  display: none;
}
.account-watchlist-zone summary::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 0.4rem;
  vertical-align: 0.12em;
  border-left: 0.28rem solid transparent;
  border-right: 0.28rem solid transparent;
  border-top: 0.34rem solid currentColor;
  transform: rotate(-90deg);
  opacity: 0.75;
}
.account-watchlist-zone[open] > summary::before {
  transform: rotate(0deg);
}
.account-watchlist-zone[open] > summary {
  margin-bottom: 0.55rem;
}
.account-watchlist-zone .watchlist-list {
  margin-bottom: 0;
}
.account-watchlist-zone .watchlist-empty {
  margin-bottom: 0;
}
#account-flair .flair-colors {
  margin: 0;
}
.account-email {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  word-break: break-all;
}
.account-nested-zone {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0 0;
  border-top: 1px solid var(--line);
}
.account-nested-zone:first-of-type {
  margin-top: 0.85rem;
  padding-top: 0;
  border-top: 0;
}
.account-nested-zone summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.account-nested-zone summary::-webkit-details-marker {
  display: none;
}
.account-nested-zone summary::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 0.4rem;
  vertical-align: 0.12em;
  border-left: 0.28rem solid transparent;
  border-right: 0.28rem solid transparent;
  border-top: 0.34rem solid currentColor;
  transform: rotate(-90deg);
  opacity: 0.75;
}
.account-nested-zone[open] > summary::before {
  transform: rotate(0deg);
}
.account-nested-zone[open] summary {
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.account-nested-zone .account-dialog-lead {
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
}
.account-nested-zone .account-actions {
  margin-top: 0;
}
.account-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.35rem;
}
.account-form input[type="email"] {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  margin: 0 0 0.75rem;
}
.account-form input[type="email"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
}
.account-actions button {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--btn-fg);
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}
.account-actions button.secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}
.account-dialog-panel > .caviar-action-btn {
  width: 100%;
  margin: 0 0 1.1rem;
  box-sizing: border-box;
  white-space: normal;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
}
.account-actions button.danger {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}
.account-actions button:disabled {
  opacity: 0.55;
  cursor: default;
}
.account-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted);
  min-height: 1.25em;
}
.account-status a {
  color: var(--ink);
  word-break: break-all;
}
/* CC-2026-085 / 109: signed-in = status; × sluit; Log out secondary. */
.account-danger-zone {
  margin: 1.1rem 0 0;
  padding: 0.65rem 0 0;
  border-top: 1px solid var(--line);
}
.account-danger-zone summary {
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.account-danger-zone summary::-webkit-details-marker {
  display: none;
}
.account-danger-zone summary::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 0.4rem;
  vertical-align: 0.12em;
  border-left: 0.28rem solid transparent;
  border-right: 0.28rem solid transparent;
  border-top: 0.34rem solid currentColor;
  transform: rotate(-90deg);
  opacity: 0.75;
}
.account-danger-zone[open] > summary::before {
  transform: rotate(0deg);
}
.account-danger-zone[open] > summary {
  margin-bottom: 0.85rem;
}
.account-danger-zone .account-dialog-lead {
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
}
.account-danger-zone .account-actions { margin-top: 0; }
.account-danger-zone .account-actions button.danger,
.account-nested-zone .account-actions button.danger {
  font-size: 0.75rem;
  font-weight: 400;
  padding: 0.28rem 0.5rem;
  border-color: var(--line);
  color: var(--muted);
}
/* Space before feedback; More options sits above when signed in. */
.account-feedback-actions {
  margin-top: 1.1rem;
  padding-top: 0.65rem;
}
/* CC-2026-054 / 055: sort carets + link-out / pill button affordance. */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  max-height: 4rem;
  overflow: hidden;
}
.results .pills {
  flex-wrap: nowrap;
  max-height: none;
  overflow: hidden;
  align-items: center;
}
.results .pills .pill:not(:first-child):not(.pill--more) {
  display: none;
}
.pill {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.28rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  line-height: 1.2;
}
span.pill { color: var(--muted); }
button.pill--more {
  display: inline-flex;
  flex-shrink: 0;
  font: inherit;
  cursor: pointer;
  color: var(--muted);
}
button.pill--more:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--chip);
}
a.pill { cursor: pointer; }
a.pill:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--chip);
}
a.pill:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.pill--leaving {
  border-color: var(--leave);
}
.pill-cc {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.pill-leaving {
  color: var(--leave);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}
a.pill.pill--leaving:hover {
  border-color: var(--leave);
}
footer {
  margin-top: 2.5rem;
  font-size: 0.85rem;
}
footer .legal-links { margin: 0; }
footer .legal-attr {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
footer a,
footer .feedback-link {
  color: var(--ink);
  text-decoration: underline;
}
footer .legal-attr a {
  color: inherit;
}
footer .feedback-link {
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
footer .legal-sep {
  color: var(--muted);
}
