/* Bookloom uses the shared jtoc.dev tokens. App rules stay scoped. */
#app {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 26px auto 60px;
  padding: 0 20px;
}
#app button,
#app input,
#app select,
#app textarea {
  font: inherit;
  max-width: 100%;
  color: var(--text);
}
#app button {
  cursor: pointer;
  touch-action: manipulation;
}
#app button:disabled {
  opacity: 0.55;
  cursor: wait;
}
#app :is(button, input, select, textarea, a):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
#app a {
  color: var(--accent-strong);
}
#app .shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
#app .nav {
  position: sticky;
  top: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 18px 12px;
}
#app .brand {
  font-size: 24px;
  font-weight: 700;
  padding: 18px 8px;
  letter-spacing: -0.05em;
}
#app .brand small {
  display: block;
  font-size: 10px;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
#app .site-link {
  font-size: 12px;
  text-decoration: none;
  padding: 0 8px;
}
#app .navbuttons {
  display: grid;
  gap: 5px;
}
#app .navbuttons button {
  background: none;
  border: 1px solid transparent;
  color: var(--muted);
  text-align: left;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  min-height: 44px;
}
#app .navbuttons button:is(.active, :hover) {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: var(--line-strong);
  color: var(--text);
}
#app .side-note {
  padding: 24px 8px 4px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
#app .main {
  min-width: 0;
}
#app h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin: 10px 0 16px;
  overflow-wrap: anywhere;
}
#app h2 {
  font-size: 22px;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
#app h3 {
  font-size: 15px;
  margin: 0 0 10px;
}
#app .eyebrow,
#app .stat span,
#app .scorebox > p:first-child {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
#app .sub {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  margin: 0 0 28px;
  max-width: 66ch;
}
#app .panel,
#app .stat,
#app .book {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
#app .panel {
  padding: 22px;
  margin-bottom: 18px;
}
#app .toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
#app .btn,
#app .tabs button,
#app .qbuttons button,
#app .cover-choice {
  border: 1px solid var(--line-strong);
  background: var(--surface-elevated);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  min-height: 44px;
}
#app .btn:hover,
#app .tabs button:hover {
  border-color: var(--accent);
}
#app .btn.primary,
#app .tabs button.on,
#app .qbuttons button.on {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--bg-deep);
}
html[data-theme="dark"] #app .btn.primary,
html[data-theme="dark"] #app .tabs button.on {
  color: #050811;
}
#app .btn.danger {
  color: var(--muted);
}
#app .btn.tiny {
  font-size: 11px;
  padding: 7px 10px;
}
#app .muted {
  color: var(--muted);
}
#app .small {
  font-size: 12px;
  line-height: 1.65;
}
#app .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
#app .stat {
  padding: 18px;
}
#app .stat span {
  color: var(--muted);
  letter-spacing: 0.03em;
}
#app .stat strong {
  display: block;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-top: 10px;
}
#app .list {
  display: grid;
  gap: 12px;
}
#app .book {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
}
#app .cover {
  width: 58px;
  height: 82px;
  flex: none;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 5px 9px 9px 5px;
  background: linear-gradient(145deg, var(--accent-strong), var(--bg-deep));
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 24px;
}
#app .cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#app .cover img[hidden] {
  display: none;
}
#app .grow {
  flex: 1;
  min-width: 0;
}
#app .book h3 {
  margin: 0 0 5px;
  overflow-wrap: anywhere;
  font-size: 16px;
}
#app .book p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  overflow-wrap: anywhere;
}
#app .book .book-dates { margin-top: 5px; }
#app .book .book-rating {
  color: var(--accent-strong);
  margin-top: 7px;
  font-family: "IBM Plex Mono", monospace;
}
#app .actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
#app .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
}
#app .field :is(input, select, textarea),
#app .search,
#app #pasteBooks,
#app .weight-row input {
  border: 1px solid var(--line-strong) !important;
  border-radius: 10px;
  background: var(--surface-elevated);
  padding: 11px 12px;
  min-height: 44px;
  width: 100%;
}
#app .field textarea {
  min-height: 85px;
}
#app .formgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
#app .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#app .chip {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 8px 12px;
  background: var(--surface-elevated);
  color: var(--muted);
  font-size: 11px;
  min-height: 44px;
}
#app .chip.on {
  border-color: var(--accent);
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
}
#app .group {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 22px;
}
#app .questions {
  display: grid;
  gap: 12px;
}
#app .question {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-elevated);
}
#app .question p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 10px;
}
#app .rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
#app .star-control {
  width: 180px;
  height: 44px;
  position: relative;
  flex: none;
  border-radius: 6px;
}
#app .star-track {
  position: absolute;
  inset: 0;
  line-height: 44px;
  font-family: Arial, sans-serif;
  font-size: 34px;
  letter-spacing: 2px;
  white-space: nowrap;
  color: var(--line-strong);
  width: 180px;
}
#app .star-track > span {
  position: absolute;
  inset: 0;
  width: var(--fill, 0%);
  overflow: hidden;
  color: var(--accent-strong);
}
#app .star-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 44px;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
#app .star-control:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
#app output {
  font:
    11px "IBM Plex Mono",
    monospace;
  min-width: 72px;
  color: var(--muted);
}
#app .qbuttons {
  display: flex;
  gap: 6px;
}
#app .qbuttons button {
  font-size: 11px;
  padding: 8px 10px;
}
#app .scorebox {
  padding: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--accent-strong);
  border-radius: 18px;
  margin-bottom: 14px;
}
#app .scorebox strong {
  font-size: 44px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  color: var(--text);
}
#app .scorebox b {
  font-size: inherit;
}
#app .scorebox p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
#app .scorebox hr {
  border-color: var(--line) !important;
}
#app .layout2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 235px;
  gap: 18px;
  align-items: start;
}
#app .sticky {
  position: sticky;
  top: 20px;
}
#app .weight-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
}
#app .weight-row label {
  flex: 1;
  font-size: 12px;
}
#app .weight-row input {
  width: 80px;
  flex: none;
}
#app .notice,
#app .draft-banner {
  background: color-mix(in srgb, var(--accent) 9%, var(--surface-strong));
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 18px;
  color: var(--text);
}
#app .draft-banner {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
#app .draft-banner > span {
  flex: 1;
  overflow-wrap: anywhere;
}
#app .empty,
#app .filebox {
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  text-align: center;
  margin-bottom: 16px;
}
#app .tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
#app .tabs button {
  font-size: 11px;
  padding: 10px;
}
#app .badge {
  font:
    10px "IBM Plex Mono",
    monospace;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 20px;
  color: var(--muted);
}
#app .jump-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-size: 12px;
}
#app .jump-links a {
  padding: 8px 0;
}
#app .cover-editor {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin: 8px 0 20px;
}
#app .cover-current {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
#app .cover-current p {
  margin: 0;
}
#app .cover-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 12px;
}
#app .cover-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: left;
  min-width: 0;
}
#app .cover-choice img {
  width: 70px;
  height: 100px;
  object-fit: contain;
}
#app .cover-choice strong,
#app .cover-choice span {
  font-size: 11px;
  overflow-wrap: anywhere;
}
#app .save-dock {
  display: none;
}
.bookloom-skip {
  position: absolute;
  top: -100px;
  z-index: 40;
  padding: 12px;
  background: var(--surface-strong);
  color: var(--text);
}
.bookloom-skip:focus {
  top: 12px;
}
#status-message {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--accent-strong);
  border-radius: 12px;
  padding: 14px 18px;
  max-width: calc(100vw - 32px);
  width: max-content;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
#status-message[hidden] {
  display: none;
}
@media (max-width: 1100px) {
  #app .layout2 {
    grid-template-columns: 1fr;
  }
  #app .layout2 > .sticky {
    grid-row: auto;
    position: static;
  }
  #app .scorebox {
    margin-bottom: 0;
  }
  #app .scorebox p {
    margin: 4px 0;
  }
  #app .save-dock {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 25;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: var(--surface-strong);
    border-top: 1px solid var(--line-strong);
    backdrop-filter: blur(12px);
  }
  #app .save-dock span {
    font-size: 11px;
    color: var(--muted);
  }
  #app .main:has(.save-dock) {
    padding-bottom: 80px;
  }
  #status-message {
    bottom: 90px;
  }
}
@media (max-width: 760px) {
  #app {
    padding: 0 16px;
    margin-top: 18px;
  }
  #app .shell {
    display: block;
  }
  #app .nav {
    position: static;
    padding: 10px 12px;
    margin-bottom: 24px;
  }
  #app .brand {
    padding: 8px;
    font-size: 20px;
  }
  #app .brand small,
  #app .side-note,
  #app .site-link {
    display: none;
  }
  #app .navbuttons {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
  }
  #app .navbuttons button {
    white-space: normal;
    font-size: 11px;
    padding: 8px 3px;
    min-width: 0;
    min-height: 48px;
    line-height: 1.25;
    text-align: center;
  }
  #app .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #app .stat {
    padding: 10px 8px;
  }
  #app .stat span {
    font-size: 9px;
    display: block;
    line-height: 1.3;
  }
  #app .stat strong {
    font-size: 22px;
    line-height: 1.2;
    margin-top: 4px;
  }
  #app .panel {
    padding: 17px;
  }
  #app .formgrid {
    grid-template-columns: 1fr;
  }
  #app :is(input, textarea, select) {
    font-size: 16px !important;
  }
  #app .book {
    flex-wrap: wrap;
    gap: 12px;
  }
  #app .actions {
    width: 100%;
  }
  #app .actions button {
    flex: 1;
  }
  #app .rating-row {
    gap: 10px;
  }
  #app .question {
    padding: 12px;
  }
  #app .qbuttons {
    width: 100%;
  }
  #app .qbuttons button {
    flex: 1;
  }
  #app .cover-editor .toolbar {
    justify-content: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  #app * {
    scroll-behavior: auto !important;
  }
}

/* A five-cell mask keeps fractional fills aligned to the actual star shapes. */
#app .star-track {
  font-size: 0;
  background: var(--line-strong);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m10 1 2.7 5.5 6.1.9-4.4 4.3 1 6.1-5.4-2.9-5.4 2.9 1-6.1L1.2 7.4l6.1-.9Z'/%3E%3C/svg%3E");
  mask-size: 36px 36px;
  mask-repeat: repeat-x;
  mask-position: left center;
}
#app .star-track > span {
  background: var(--accent-strong);
  font-size: 0;
}


/* Cloud sync: a single obvious action, compact status, progressive disclosure. */
#app .brand-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
#app #cloudStatus { width: 100%; min-width: 0; }
#app .sync-control { width: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-elevated); font-size: 11px; line-height: 1.35; }
#app .sync-attention { border-color: var(--accent-strong); font-weight: 650; }
#app .sync-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#app .sync-banner > span { flex: 1; min-width: 180px; }
#app .library-stats { margin-bottom: 20px; }
#app .library-filters { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 175px) minmax(0, 220px); justify-content: start; }
#app .book-title { border: 0; padding: 0; background: none; color: var(--text); text-align: left; font-weight: inherit; overflow-wrap: anywhere; }
#app .book-title:hover { text-decoration: underline; }
#app .optional-panel > summary { cursor: pointer; min-height: 44px; }
#app .optional-panel > summary h2 { display: inline; font-size: 20px; }
#app .optional-panel > summary small { display: block; margin: 6px 0 0 18px; color: var(--muted); font-size: 11px; font-weight: 400; }
#app .optional-panel[open] > summary { margin-bottom: 18px; }
#app .field-error { color: var(--text); font-size: 12px; line-height: 1.5; }
#app [aria-invalid="true"] { outline: 2px solid var(--accent-strong); }
#app [hidden] { display: none !important; }
#status-message .btn { min-height: 44px; margin-left: 8px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; color: var(--text); background: var(--surface-elevated); font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  #app .brand-row { flex-wrap: nowrap; justify-content: space-between; gap: 6px; margin-bottom: 4px; }
  #app .brand { padding: 4px 0; }
  #app #cloudStatus { width: auto; max-width: 54%; }
  #app .sync-control { font-size: 10px; padding: 6px; }
  #app .nav { margin-bottom: 18px; }
  #app h1 { font-size: 28px; margin-bottom: 12px; }
  #app .sub { margin-bottom: 18px; }
  #app .library-filters { grid-template-columns: minmax(0, 1fr) 120px; gap: 8px; }
  #app #librarySort { grid-column: 1 / -1; }
  #app .library-filters > * { min-width: 0; }
  #app .jump-links { gap: 14px; margin-bottom: 12px; }
}
#app .cloud-card { padding: 0; overflow: hidden; }
#app .cloud-header { display: flex; align-items: center; gap: 14px; padding: 24px 24px 15px; }
#app .cloud-header h2 { margin: 2px 0 0; font-size: clamp(19px, 2.5vw, 24px); }
#app .cloud-mark {
  flex: 0 0 46px; height: 46px; display: grid; place-items: center;
  border-radius: 14px; color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-elevated));
  border: 1px solid var(--line-strong);
}
#app .cloud-mark svg { width: 26px; height: 26px; }
#app .cloud-eyebrow {
  font: 600 10px "IBM Plex Mono", monospace; letter-spacing: .11em;
  color: var(--accent-strong); margin: 0;
}
#app .cloud-overview { padding: 3px 24px 20px; }
#app .cloud-status-line {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; margin: 7px 0 10px;
}
#app .cloud-status {
  display: inline-flex; gap: 8px; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 6px 10px; font-size: 11px; font-weight: 650;
  background: var(--surface-elevated); white-space: nowrap;
}
#app .cloud-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
#app .cloud-status--ready {
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface-elevated));
}
#app .cloud-status--ready .cloud-status-dot { background: var(--accent-strong); }
#app .cloud-status--attention { color: var(--text); border-color: var(--accent-strong); }
#app .cloud-status--attention .cloud-status-dot { background: var(--accent-strong); }
#app .cloud-account {
  font-size: 11px; color: var(--muted);
  overflow-wrap: anywhere; min-width: 0; text-align: right;
}
#app .cloud-description { margin: 10px 0 0; line-height: 1.65; font-size: 13px; color: var(--muted); }
#app .cloud-counts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-elevated); margin-top: 18px; overflow: hidden;
}
#app .cloud-counts > div { min-width: 0; padding: 13px 16px; }
#app .cloud-counts > div + div { border-left: 1px solid var(--line); }
#app .cloud-counts span, #app .cloud-counts strong { display: block; }
#app .cloud-counts span {
  font: 10px "IBM Plex Mono", monospace; letter-spacing: .03em;
  color: var(--muted); margin-bottom: 6px;
}
#app .cloud-counts strong { font-size: 14px; overflow-wrap: anywhere; }
#app .cloud-updated { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
#app .cloud-primary-actions, #app .cloud-conflict-actions {
  padding: 0 24px 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
#app .cloud-primary-actions > .cloud-help { flex-basis: 100%; margin: 0; }
#app .cloud-main-button { min-width: 170px; text-align: center; }
#app .cloud-action-caption, #app .cloud-help { color: var(--muted); font-size: 11px; line-height: 1.65; }
#app .cloud-action-caption { padding-left: 2px; }
#app .cloud-help { margin: 12px 0 0; }
#app .cloud-solo-help { margin: -12px 24px 24px; }
#app .cloud-choices {
  padding: 0 24px 24px; display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px;
}
#app .cloud-choice {
  min-width: 0; border: 1px solid var(--line-strong); border-radius: 13px;
  padding: 16px; background: var(--surface-elevated);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
#app .cloud-choice strong { font-size: 14px; }
#app .cloud-choice p { font-size: 12px; line-height: 1.6; margin: 0; color: var(--muted); flex: 1; }
#app .cloud-choice .btn { width: 100%; }
#app .cloud-choice-note { grid-column: 1 / -1; margin: 2px 0 0; }
#app .cloud-alert, #app .cloud-notice {
  margin: 0 24px 18px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 11px;
  background: var(--surface-elevated); font-size: 12px; line-height: 1.6;
}
#app .cloud-alert { border-color: var(--accent-strong); }
#app .cloud-sections { border-top: 1px solid var(--line); }
#app .cloud-details { border-bottom: 1px solid var(--line); }
#app .cloud-details > summary {
  display: flex; gap: 16px; justify-content: space-between; align-items: center;
  padding: 17px 24px; cursor: pointer; list-style: none;
}
#app .cloud-details > summary::-webkit-details-marker { display: none; }
#app .cloud-details > summary:hover { background: var(--surface-elevated); }
#app .cloud-details > summary:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: -3px; }
#app .cloud-details > summary > span:first-child { display: grid; gap: 5px; min-width: 0; }
#app .cloud-details > summary strong { font-size: 13px; }
#app .cloud-details > summary small { font-size: 11px; line-height: 1.5; color: var(--muted); }
#app .cloud-chevron {
  width: 9px; height: 9px; border: solid var(--muted);
  border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); flex-shrink: 0;
  transition: transform .15s ease;
}
#app .cloud-details[open] .cloud-chevron { transform: rotate(225deg); }
#app .cloud-details-body { padding: 0 24px 22px; display: grid; justify-items: start; gap: 12px; }
#app .cloud-details-body > .cloud-help { margin: 0; }
#app .cloud-backup-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
}
#app .cloud-backup-row > span { display: grid; gap: 5px; }
#app .cloud-backup-row small { color: var(--muted); font-size: 11px; }
#app .cloud-advanced { gap: 0; }
#app .cloud-advanced-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 12px 0; border-top: 1px solid var(--line);
}
#app .cloud-advanced-row > div { min-width: 0; flex: 1; }
#app .cloud-advanced-row strong { font-size: 12px; }
#app .cloud-advanced-row p { margin: 5px 0 0; font-size: 11px; line-height: 1.55; color: var(--muted); }
#app .cloud-advanced-row .btn { flex-shrink: 0; }
#app .cloud-danger-row { margin-top: 8px; }
#app .cloud-danger-row .btn { color: var(--text); border-color: var(--line-strong); }
#app .cloud-privacy {
  margin: 0; padding: 18px 24px 22px;
  font-size: 11px; line-height: 1.7; color: var(--muted);
}
#app .cloud-files-panel .toolbar { justify-content: flex-start; }
@media (max-width: 760px) {
  #app .cloud-header { padding: 20px 18px 12px; }
  #app .cloud-overview { padding: 3px 18px 20px; }
  #app .cloud-account { text-align: left; }
  #app .cloud-primary-actions, #app .cloud-conflict-actions { padding: 0 18px 20px; }
  #app .cloud-primary-actions > .cloud-main-button { width: 100%; }
  #app .cloud-choices { grid-template-columns: 1fr; padding: 0 18px 20px; }
  #app .cloud-choice-note { grid-column: auto; }
  #app .cloud-alert, #app .cloud-notice { margin: 0 18px 18px; }
  #app .cloud-solo-help { margin: -8px 18px 22px; }
  #app .cloud-details > summary { padding: 17px 18px; }
  #app .cloud-details-body { padding: 0 18px 20px; }
  #app .cloud-privacy { padding: 16px 18px 20px; }
  #app .cloud-advanced-row { flex-wrap: wrap; gap: 10px; }
  #app .cloud-advanced-row > div { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #app .cloud-chevron { transition: none; }
}


#app .quote-fields {
  min-width: 0;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
#app .quote-fields .field { margin-bottom: 12px; }
#app .saved-quote {
  margin: 16px 0 0;
  padding-inline-start: 16px;
  border-inline-start: 2px solid var(--line);
  overflow-wrap: anywhere;
}
#app .saved-quote blockquote {
  margin: 0;
  white-space: pre-wrap;
}
#app .saved-quote figcaption { margin-top: 6px; }
