/* Compact review history and intake only; existing navigation and capsule motion own their layout. */
#appView .review-history-page,
#appView .review-intake-page {
  --rh-ink: var(--minimal-ink, #202324);
  --rh-muted: var(--minimal-muted, #646970);
  --rh-canvas: var(--minimal-canvas, #ededed);
  --rh-soft: var(--minimal-soft, #f1f2f4);
  --rh-line: var(--minimal-line, #e7e8eb);
  --rh-dark: var(--minimal-dark, #2d3031);
  min-width: 0;
  max-width: 100%;
  gap: 16px;
  color: var(--rh-ink);
  font-family: inherit;
  color-scheme: light;
}
#appView .review-history-page *,
#appView .review-intake-page * { box-sizing: border-box; }

/* Controls retain their business attributes and the shared keyboard interaction. */
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page button,
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-intake-page button,
#appView .review-intake-page .ri-upload-row > label.button {
  min-width: 44px;
  min-height: 44px;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}
#appView .review-history-page button:disabled,
#appView .review-intake-page button:disabled { opacity: .45; cursor: default; }
#appView .review-history-page button:focus-visible,
#appView .review-history-page summary:focus-visible,
#appView .review-intake-page button:focus-visible,
#appView .review-intake-page summary:focus-visible {
  outline: 2px solid var(--rh-dark);
  outline-offset: 3px;
}

/* A single row list keeps the history readable without repeating card chrome. */
#appView .review-history-page .rh-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-header h2 {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
  font-size: 34px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: -1px !important;
  overflow-wrap: anywhere;
}
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-start,
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-intake-page .ri-actions .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  margin: 0;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--rh-dark) !important;
  color: #fff !important;
  text-align: center;
  white-space: normal;
}
#appView .review-history-page .rh-start { flex: none; }
#appView .review-history-page .rh-search {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}
#appView .review-history-page .rh-search input { flex: 1; min-width: 0; }
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-search button {
  flex: none;
  min-height: 48px;
  padding: 10px 16px;
  margin: 0;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--rh-ink) !important;
}
#appView .review-history-page .rh-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 20px;
  list-style: none;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: none;
}
#appView .review-history-page .rh-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--rh-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#appView .review-history-page .rh-row:last-child { border-bottom: 0; }
#appView .review-history-page .rh-cover {
  display: grid;
  place-items: center;
  width: 56px;
  height: 70px;
  max-width: 100%;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: var(--rh-soft);
  color: var(--rh-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  object-fit: cover;
  overflow: hidden;
}
#appView .review-history-page .rh-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
#appView .review-history-page .rh-content { min-width: 0; }
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-title {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent !important;
  color: var(--rh-ink) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  filter: none;
}
#appView .review-history-page .rh-meta {
  display: block;
  margin: 3px 0 0;
  color: var(--rh-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.7;
  white-space: normal;
  overflow-wrap: anywhere;
}
#appView .review-history-page .rh-goal {
  display: inline-block;
  max-width: 100%;
  margin: 4px 0 0;
  color: var(--rh-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-continue {
  align-self: center;
  min-width: 72px;
  padding: 10px 8px;
  margin: 0;
  border: 0;
  border-radius: 999px !important;
  background: var(--rh-soft) !important;
  color: var(--rh-ink) !important;
  text-align: center;
  white-space: normal;
  filter: none;
}
#appView .review-history-page .rh-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  color: var(--rh-muted);
  font-size: 11px;
  line-height: 1.6;
}
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-pagination button {
  flex: none;
  padding: 10px 14px;
  margin: 0;
  border: 0;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--rh-ink) !important;
}
#appView .review-history-page .rh-state {
  min-width: 0;
  margin: 0;
  padding: 24px 20px;
  border-radius: 28px;
  background: #fff;
  color: var(--rh-ink);
  overflow-wrap: anywhere;
}
#appView .review-history-page .rh-state strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.6; }
#appView .review-history-page .rh-state p { margin: 8px 0 0; font-size: 14px; font-weight: 400; line-height: 1.8; }
#appView .review-history-page .rh-state button { margin-top: 16px; }
#appView .review-history-page .rh-tools {
  min-width: 0;
  margin: 0;
  padding: 8px 20px;
  border-radius: 28px;
  background: #fff;
}
#appView .review-history-page .rh-tools summary,
#appView .review-intake-page .ri-references summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin: 0;
  color: var(--rh-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}
#appView .review-history-page .rh-tools summary::-webkit-details-marker,
#appView .review-intake-page .ri-references summary::-webkit-details-marker { display: none; }
#appView .review-history-page .rh-tools summary svg,
#appView .review-intake-page .ri-references summary svg { flex: none; width: 20px; height: 20px; }
#appView .review-history-page .rh-tools[open] > summary,
#appView .review-intake-page .ri-references[open] > summary,
#appView .review-intake-page .ri-references details[open] > summary { margin-bottom: 12px; }
#appView .review-history-page .rh-tools > div { display: grid; gap: 12px; min-width: 0; padding-bottom: 12px; }
#appView .review-history-page .rh-tools label { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 14px; line-height: 1.6; }
#appView .review-history-page .rh-tools label:has(input[type="checkbox"]) { flex-direction: row; align-items: center; min-height: 44px; }

/* The short intake remains a form, with white paper only around each logical section. */
#appView .review-intake-page .ri-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#appView .review-intake-page .ri-current-work,
#appView .review-intake-page .ri-materials,
#appView .review-intake-page .ri-references {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: none;
  overflow-wrap: anywhere;
}
#appView .review-intake-page .ri-current-work { display: flex; flex-direction: column; gap: 8px; }
#appView .review-intake-page .ri-current-work > span,
#appView .review-intake-page .ri-current-work > strong { color: var(--rh-ink); font-size: 14px; font-weight: 600; line-height: 1.6; }
#appView .review-intake-page .ri-current-work p,
#appView .review-intake-page .ri-materials p { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.8; }
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-intake-page .ri-materials h3 {
  margin: 0 0 12px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
}
#appView .review-intake-page .ri-goals {
  position: relative;
  top: auto;
  z-index: auto;
  display: flex;
  flex: none;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border-radius: 999px;
  background: var(--rh-soft);
  box-shadow: none;
}
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-intake-page .ri-goals > button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 8px;
  margin: 0;
  border: 0;
  border-radius: 999px !important;
  background: var(--rh-soft) !important;
  color: var(--rh-ink) !important;
  text-align: center;
  white-space: normal;
  filter: none;
}
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-intake-page .ri-goals > button[aria-pressed="true"] {
  background: var(--rh-dark) !important;
  color: #fff !important;
}
#appView .review-intake-page .ri-goals > button:focus-visible { outline-offset: -3px; }
#appView .review-intake-page .ri-goals > button[aria-pressed="true"]:focus-visible { outline-color: #fff; }
#appView .review-intake-page .ri-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; }
#appView .review-intake-page .ri-field > span { color: var(--rh-ink); font-size: 14px; font-weight: 600; line-height: 1.6; }
#appView .review-intake-page .ri-field > small,
#appView .review-intake-page .ri-current-work small,
#appView .review-intake-page .ri-materials small,
#appView .review-intake-page .ri-references small {
  display: block;
  margin: 0;
  color: var(--rh-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page select,
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-intake-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-intake-page select,
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-intake-page textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 0 !important;
  border-radius: 18px !important;
  background: var(--rh-soft) !important;
  color: var(--rh-ink) !important;
  font-family: inherit;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  outline: none !important;
  box-shadow: none !important;
  filter: none;
}
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-search input { background: #fff !important; }
#appView .review-history-page input::placeholder,
#appView .review-intake-page input::placeholder,
#appView .review-intake-page textarea::placeholder { color: var(--rh-muted); opacity: 1; }
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-intake-page textarea { min-height: 112px; resize: vertical; }
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page select,
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-intake-page select { max-width: 100%; padding-right: 32px; cursor: pointer; }
#appView .review-history-page option,
#appView .review-intake-page option { background: #fff; color: var(--rh-ink); font-family: inherit; font-size: 16px; line-height: 1.6; }
#appView .review-history-page option:checked,
#appView .review-intake-page option:checked { background: var(--rh-dark); color: #fff; }
#appView .review-history-page option:disabled,
#appView .review-intake-page option:disabled { color: var(--rh-muted); }
#appView .review-intake-page .ri-upload-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-intake-page .ri-upload-row > label.button,
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-intake-page .ri-materials label.review-upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: 12px 8px;
  border: 0;
  border-radius: 999px !important;
  background: var(--rh-soft) !important;
  color: var(--rh-ink) !important;
  text-align: center;
  white-space: normal;
  filter: none;
}
#appView .review-intake-page .ri-upload-row input[type="file"],
#appView .review-intake-page .ri-materials label.review-upload input[type="file"] {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
#appView .review-intake-page .ri-upload-row > label:focus-within,
#appView .review-intake-page .ri-materials label.review-upload:focus-within { outline: 2px solid var(--rh-dark); outline-offset: 3px; }
#appView .review-intake-page .ri-upload-row > label:has(input:disabled),
#appView .review-intake-page .ri-materials label.review-upload:has(input:disabled) { opacity: .45; cursor: default; }
#appView .review-intake-page .ri-upload-row input:disabled,
#appView .review-intake-page .ri-materials label.review-upload input:disabled { cursor: default; }
#appView .review-intake-page .ri-source-list { display: flex; flex-direction: column; gap: 0; min-width: 0; margin: 12px 0 0; padding: 0; list-style: none; }
#appView .review-intake-page .ri-source-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--rh-line);
}
#appView .review-intake-page .ri-source-row:last-child { border-bottom: 0; }
#appView .review-intake-page .ri-source-row > span,
#appView .review-intake-page .ri-source-row > div { flex: 1; min-width: 0; color: var(--rh-ink); font-size: 14px; font-weight: 400; line-height: 1.6; overflow-wrap: anywhere; }
#appView .review-intake-page .ri-source-row button { flex: none; margin: 0; padding: 10px 8px; border: 0; border-radius: 12px; background: transparent; color: var(--rh-muted); }
#appView .review-intake-page .ri-reference-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--rh-line);
  cursor: pointer;
}
#appView .review-intake-page .ri-reference-row:last-child { border-bottom: 0; }
#appView .review-intake-page .ri-reference-row > span,
#appView .review-intake-page .ri-reference-row > div { flex: 1; min-width: 0; font-size: 14px; font-weight: 400; line-height: 1.7; overflow-wrap: anywhere; }
#appView .review-intake-page .ri-reference-row b,
#appView .review-intake-page .ri-reference-row strong { font-size: 14px; font-weight: 600; line-height: 1.7; }
#appView .review-intake-page .ri-reference-row small { margin-top: 4px; }
#appView .review-intake-page .ri-reference-row input[type="checkbox"],
#appView .review-history-page .rh-tools input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 22px;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 1px 0 0;
  padding: 0;
  border: 2px solid var(--rh-dark) !important;
  border-radius: 50% !important;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}
#appView .review-intake-page .ri-reference-row input:checked,
#appView .review-history-page .rh-tools input:checked {
  background: var(--rh-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 12 3.5 3.5 7.5-7.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px 18px no-repeat;
}
#appView .review-intake-page .ri-reference-row input:focus-visible,
#appView .review-history-page .rh-tools input[type="checkbox"]:focus-visible { outline: 2px solid var(--rh-dark); outline-offset: 3px; }
#appView .review-intake-page .ri-reference-row:has(input:disabled) { opacity: .45; cursor: default; }
#appView .review-intake-page .ri-reference-row input:disabled { cursor: default; }
#appView .review-intake-page .ri-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 12px 0 max(16px, env(safe-area-inset-bottom));
  background: var(--rh-canvas);
}
#appView .review-intake-page .ri-actions > button { width: 100%; margin: 0; }
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-intake-page .ri-actions .secondary {
  padding: 10px 16px;
  border: 0;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--rh-ink) !important;
  text-align: center;
}
#appView .review-intake-page .ri-progress,
#appView .review-intake-page .ri-warning {
  min-width: 0;
  margin: 0;
  padding: 16px 20px;
  border-radius: 20px;
  background: #fff;
  color: var(--rh-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
#appView .review-intake-page .ri-progress p,
#appView .review-intake-page .ri-warning p { margin: 0; font-size: 14px; line-height: 1.8; }
#appView .review-intake-page .ri-progress strong,
#appView .review-intake-page .ri-warning strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.8; }
#appView .review-intake-page .ri-warning { border-inline-start: 2px solid var(--minimal-accent, #f4b95f); }
#appView .review-intake-page .ri-progress button,
#appView .review-intake-page .ri-warning button { margin-top: 12px; }
#appView .review-history-page [hidden],
#appView .review-intake-page [hidden] { display: none !important; }

/* The integrated form also reuses ordinary .field and the shared select adapter. */
#appView .review-intake-page .ri-materials > .field,
#appView .review-intake-page .ri-materials details > .field,
#appView .review-intake-page .ri-materials details > .ri-field { margin-bottom: 16px; }
#appView .review-intake-page .ri-materials > .field:last-child,
#appView .review-intake-page .ri-materials details > .field:last-child,
#appView .review-intake-page .ri-materials details > .ri-field:last-child { margin-bottom: 0; }
#appView .review-intake-page .ri-materials > details { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rh-line); }
#appView .review-intake-page .ri-form summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#appView .review-intake-page .ri-form summary::-webkit-details-marker { display: none; }
#appView .review-intake-page .ri-form details[open] > summary { margin-bottom: 12px; }
#appView .review-history-page .rh-tools > summary:not(:has(> svg))::after,
#appView .review-intake-page .ri-form summary:not(:has(> svg))::after {
  content: "";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d3031' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E") center/20px 20px no-repeat;
}
#appView .review-history-page .rh-tools[open] > summary::after,
#appView .review-intake-page .ri-form details[open] > summary::after { transform: rotate(180deg); }
#appView .review-history-page .rh-tools > button { display: block; width: 100%; margin-top: 8px; }
#appView .review-history-page .rh-tools > label { margin-bottom: 12px; }
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-tools .ui-select-trigger,
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-intake-page .ri-form .ui-select-trigger {
  min-height: 48px;
  padding: 12px 14px;
  background: var(--rh-soft) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.6;
}
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-tools .ui-select-value,
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-intake-page .ri-form .ui-select-value { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
#appView .review-intake-page .ri-source-list:empty { display: none; }
#appView .review-intake-page .ri-materials details > label.review-upload { width: 100%; margin-top: 0; }
#appView .review-intake-page .ri-form input:disabled,
#appView .review-intake-page .ri-form textarea:disabled { opacity: .65; cursor: default; }

/* Local containers may be narrower than the unchanged 402px application shell. */
@media (max-width: 360px) {
  #appView .review-history-page .rh-list { padding-inline: 16px; }
  #appView .review-history-page .rh-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; }
  #appView .review-history-page .rh-cover { width: 48px; height: 60px; }
  #appView .review-history-page .rh-start { padding-inline: 14px; }
  #appView .review-intake-page .ri-current-work,
  #appView .review-intake-page .ri-materials,
  #appView .review-intake-page .ri-references { padding: 16px; }
}
@media (max-height: 600px) {
  #appView .review-intake-page .ri-actions { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  #appView .review-history-page,
  #appView .review-intake-page { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  #appView .review-history-page .rh-cover,
  #appView .review-history-page .rh-list,
  #appView .review-intake-page .ri-materials,
  #appView .review-intake-page .ri-current-work,
  #appView .review-intake-page .ri-references { border: 1px solid CanvasText; }
  #appView .review-intake-page .ri-reference-row input:checked,
  #appView .review-history-page .rh-tools input:checked { appearance: auto; -webkit-appearance: auto; accent-color: auto; }
}

/* Work management: compact account row, paired actions, horizontal source control. */
#appView .review-history-page .rh-tools { padding: 12px 20px 16px; }
#appView .review-history-page .rh-tools > summary { border-radius: 14px; padding: 0 4px; }
#appView .review-history-page .rh-tools > summary:focus:not(:focus-visible) { outline: none; }
#appView .review-history-page .rh-tools > summary:focus-visible { outline-offset: 2px; }
#appView .review-history-page .rh-tools[open] > summary { margin-bottom: 8px; }
#appView .review-history-page .rh-tools > .rh-tools-body { gap: 16px; padding: 0; }
#appView .review-history-page .rh-tools .rh-tools-account { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 16px; margin: 0; }
#appView .review-history-page .rh-tools-account > span { font-size: 14px; color: var(--rh-muted); }
#appView .review-history-page .rh-tools-account .ui-select { min-width: 0; width: 100%; }
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-tools-account .ui-select-trigger { min-height: 44px; padding: 9px 14px; font-size: 14px !important; }
#appView .review-history-page .rh-tools-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-tools-actions > button { width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 10px 8px; border: 0; border-radius: 999px; background: var(--rh-soft) !important; color: var(--rh-ink) !important; text-align: center; }
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-tools-actions > button[data-review="import-library"] { background: var(--rh-dark) !important; color: #fff !important; }
#appView .review-history-page .rh-tools-actions > button[data-review="import-library"]:focus-visible { outline-offset: 3px; }
#appView .review-history-page .rh-tools .review-demo-switch { display: flex; gap: 4px; min-width: 0; margin: 0; padding: 4px; border-radius: 999px; background: var(--rh-soft); }
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-tools .review-demo-switch > button { flex: 1 1 0; width: auto; min-width: 0; min-height: 44px; margin: 0; padding: 8px; border-radius: 999px !important; color: var(--rh-muted) !important; background: transparent !important; }
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-tools .review-demo-switch > button[aria-pressed="true"] { background: #fff !important; color: var(--rh-ink) !important; }
#appView .review-history-page .rh-tools .review-demo-switch > button:focus-visible { outline-offset: -2px; }
#appView .review-history-page .rh-tools-body > .review-demo-label { margin: -8px 0 0; font-size: 11px; text-align: center; }

/* Account-owned link and screenshot intake, separate from library filters. */
#appView .review-import-page .review-link-import { padding: 20px; gap: 20px; }
#appView .review-import-page .review-link-import .review-hint { margin: 0; font-size: 11px; line-height: 1.7; }
#appView .review-import-page .review-link-import .review-uploads:empty { display: none; }
#appView .review-import-page .review-link-import .review-uploads { margin-top: 4px; }
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-import-page .review-link-import :is(input:not([type=file]),.ui-select-trigger) { min-height: 48px; font-size: 16px !important; background: var(--minimal-soft) !important; }
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-import-page .review-link-import :is(.button,button) { min-height: 44px; font-size: 14px !important; border-radius: 999px !important; }
#appView .review-import-page .review-link-import .review-upload { margin-top: 4px; }
#appView .review-import-page .review-link-import :is(button,.review-upload):focus-visible { outline: 2px solid var(--minimal-dark); outline-offset: 3px; }
#appView .review-import-page .review-link-import .review-upload:focus-within { outline: 2px solid var(--minimal-dark); outline-offset: 3px; }
#appView .review-import-page .review-link-import .review-upload { position: relative; }
#appView .review-import-page .review-link-import .review-upload input[type=file] { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

#appView .review-history-page .rh-tools-actions > button:only-child { grid-column: 1 / -1; }

/* One continuous dark surface for the account and work intake at the top. */
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-account-hub {
  padding: 4px 20px; border: 0; border-radius: 28px; min-width: 0;
  background-color: var(--dark-card-floor); background-image: var(--dark-card-sheen);
  color: #fff; box-shadow: 0 6px 24px #20232407;
}
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-account-hub > button {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-width: 0; min-height: 80px; margin: 0; padding: 16px 0;
  border: 0; border-radius: 0 !important; background: transparent !important;
  color: #fff !important; text-align: left; font-style: normal; box-shadow: none !important;
}
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-account-hub > button + button { border-top: 1px solid rgba(255,255,255,.18); }
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-account-hub > button > span { display: grid; gap: 5px; min-width: 0; }
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-account-hub strong { color: #fff !important; font-size: 16px !important; font-weight: 600 !important; line-height: 1.5; }
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-account-hub small { color: rgba(255,255,255,.78) !important; font-size: 11px !important; font-weight: 400; line-height: 1.7; white-space: normal; overflow-wrap: anywhere; }
html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-account-hub b { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 64px; min-height: 36px; padding: 6px 12px; border-radius: 999px; background: var(--minimal-accent); color: var(--rh-ink) !important; font-size: 14px; font-weight: 600; }
#appView .review-history-page .rh-account-hub > button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 12px !important; }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  html[data-visual-mode="minimal"] body.theme-liquid #appView .review-history-page .rh-account-hub { background-image: none; }
}

/* The content list is primary; positioning is a concise expandable context. */
html[data-visual-mode="minimal"] body.theme-liquid.v2-app #appView.ui-view .rw-home .rh-header{margin-bottom:8px;gap:12px}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app #appView.ui-view .rw-home .rw-account-context{padding:0 4px;margin:0;border:0;background:transparent;box-shadow:none}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app #appView.ui-view .rw-account-context>summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;gap:8px;list-style:none;cursor:pointer;font-size:13px;color:#61666b}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app #appView.ui-view .rw-account-context>summary span{font-size:12px;flex:none}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app #appView.ui-view .rw-home .rw-source-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:8px 0}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app #appView.ui-view .rw-home .rh-search{margin:8px 0;gap:8px}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app #appView.ui-view .rw-home .rw-filters{padding:0 4px;margin:0 0 12px;border:0;background:transparent}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app #appView.ui-view .rw-home .rw-filters>summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app #appView.ui-view .rw-home .rh-list{margin-top:12px}

