@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;550;600;650;700&family=Noto+Sans+JP:wght@400;500;600&display=swap");
:root {
  font-family:
    Inter,
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #202630;
  background: #f8f9fb;
  font-synthesis: none;
  --primary: #2d4b69;
  --muted: #68717d;
  --line: #e2e6eb;
  --surface: #fff;
  --soft: #edf2f7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
a {
  color: var(--primary);
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #829db9;
  outline-offset: 4px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #829db9;
  outline-offset: 1px;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.topbar {
  height: 96px;
  max-width: 1168px;
  margin: auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #263545;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font:
    500 24px "Noto Sans JP",
    sans-serif;
}
.brand-sub {
  display: block;
  font-size: 12px;
  letter-spacing: 0.15px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}
.icon-button {
  border: 0;
  background: transparent;
  color: #536171;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
}
.icon-button:hover {
  background: #e9edf2;
}
main {
  max-width: 1104px;
  margin: auto;
  padding: 30px 0 48px;
}
.home-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 38px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: #697584;
}
.home-heading h1 {
  font-size: 38px;
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: -1.3px;
  margin: 14px 0;
}
.home-heading p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}
.heading-kanji {
  font-size: 86px;
  font-weight: 400;
  color: #e3e8ee;
  margin-right: 30px;
  letter-spacing: -5px;
  user-select: none;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 36px;
}
.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 2px 5px #182a3b03;
}
.composer {
  padding: 26px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 9px;
}
textarea,
input:not([type="checkbox"]),
select {
  width: 100%;
  color: #25313e;
  background: #f8f9fb;
  border: 1px solid #dce1e7;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
}
textarea {
  resize: vertical;
  min-height: 126px;
  line-height: 1.65;
}
textarea::placeholder {
  color: #87919d;
}
.composer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #7a8490;
  margin-top: 8px;
}
.options-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 25px 0 19px;
}
.options-row label {
  color: #657080;
  font-weight: 400;
  margin: 0;
}
.options-row select {
  display: block;
  margin-top: 8px;
  background: #fff;
  font-size: 14px;
  height: 48px;
}
.button {
  min-height: 48px;
  border-radius: 100px;
  font-weight: 550;
  font-size: 14px;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.primary {
  background: var(--primary);
  color: white;
}
.primary:hover {
  background: #243f5b;
  box-shadow: 0 3px 8px #2d4b6926;
}
.secondary {
  background: #f0f3f7;
  border-color: #e5e9ee;
  color: #344b62;
}
.secondary:hover {
  background: #e3eaf2;
}
.full {
  width: 100%;
}
.quiet {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}
.setup-note {
  text-align: center;
  margin: 12px 0 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 15px;
}
.section-heading h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.section-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.topic-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  padding: 19px 16px;
  border-radius: 14px;
  color: #344151;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.topic-card:hover,
.topic-card.selected {
  background: #edf2f7;
  border-color: #acbccd;
}
.topic-card strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.5;
}
.topic-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.topic-icon {
  font-size: 12px;
  padding-top: 3px;
  color: #8492a0;
  font-variant-numeric: tabular-nums;
}
.approach {
  padding: 25px;
  background: #f0f3f7;
  border-color: transparent;
  box-shadow: none;
}
.approach h2 {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.5px;
  margin: 12px 0 26px;
}
.approach ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.approach li {
  display: flex;
  gap: 13px;
  margin-bottom: 23px;
}
.approach li > span {
  font-size: 12px;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 1px solid #c9d4df;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #5d738a;
}
.approach strong {
  font-size: 14px;
  font-weight: 550;
}
.approach p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 5px 0 0;
}
.approach-footer {
  border-top: 1px solid #dce3eb;
  padding-top: 20px;
  font-size: 13px;
  color: #69788a;
  line-height: 1.8;
}
.empty-text {
  font-size: 13px;
  line-height: 1.8;
  color: #89919a;
}
.history-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  width: 100%;
  background: transparent;
  text-align: left;
  display: block;
  color: #354457;
}
.history-item strong {
  font-size: 14px;
  line-height: 1.6;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 285px;
}
.history-item span {
  font-size: 12px;
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.text-button {
  background: none;
  border: 0;
  padding: 10px 0;
  min-height: 44px;
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}
.text-button:hover {
  text-decoration: underline;
}
footer {
  max-width: 1104px;
  border-top: 1px solid var(--line);
  margin: auto;
  padding: 22px 0 28px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #89919d;
}
dialog {
  width: min(520px, calc(100% - 32px));
  border: 1px solid #e3e7ee;
  border-radius: 24px;
  padding: 30px;
  color: #27313e;
  box-shadow: 0 24px 80px #13233730;
  max-height: 90dvh;
}
dialog::backdrop {
  background: #15203060;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 24px;
  font-weight: 550;
  margin: 8px 0 14px;
  letter-spacing: -0.5px;
}
dialog p {
  font-size: 14px;
  line-height: 1.8;
  color: #687482;
}
dialog label {
  margin-top: 20px;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.dialog-heading .icon-button {
  margin: -12px -14px 0 0;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--primary);
}
dialog .quiet {
  font-size: 12px;
}
.dialog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 12px;
}
.dialog-footer a {
  font-size: 14px;
}
.advanced {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.advanced summary {
  font-size: 14px;
  color: #657282;
  cursor: pointer;
}
.advanced input {
  font-size: 13px;
}
.backup-row {
  display: flex;
  gap: 25px;
}
.backup-row label {
  margin: 0;
  cursor: pointer;
}
.danger {
  color: #a04444;
}
.error-text {
  color: #a04444 !important;
}
.end-options {
  display: grid;
  gap: 10px;
}
.session-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.time {
  font-size: 14px;
  color: #556373;
  font-variant-numeric: tabular-nums;
}
.session-label {
  font-size: 13px;
  color: #7b8693;
}
.session-context {
  max-width: 640px;
  margin: 35px auto 0;
  text-align: center;
}
.session-context h1 {
  font-size: 20px;
  font-weight: 450;
  line-height: 1.75;
  margin: 12px 0;
  color: #3d4a59;
}
.conversation-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 0 30px;
}
.voice-disc {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: #e9eff5;
  color: #46627f;
  display: grid;
  place-items: center;
  border: 1px solid #dbe4ed;
  transition: box-shadow 0.3s;
}
.voice-disc svg {
  width: 38px;
  height: 38px;
  stroke-width: 1.4;
}
.speaking .voice-disc {
  box-shadow:
    0 0 0 14px #edf2f7,
    0 0 0 28px #f2f5f8;
}
.wave {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 28px 0 4px;
}
.wave i {
  width: 3px;
  height: 5px;
  border-radius: 4px;
  background: #6b839b;
}
.speaking .wave i {
  animation: wave 0.8s ease-in-out infinite alternate;
}
.wave i:nth-child(2n) {
  animation-delay: 0.2s;
}
.wave i:nth-child(3n) {
  animation-delay: 0.45s;
}
.conversation-stage h2 {
  font-size: 24px;
  font-weight: 500;
  margin: 14px 0 8px;
}
.conversation-stage > p {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  max-width: 450px;
  line-height: 1.7;
  margin: 0;
}
.turn-count {
  font-size: 12px;
  color: #8a95a1;
  margin-top: 20px;
}
.session-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px auto 28px;
}
.transcript {
  max-width: 730px;
  margin: auto;
  padding: 0 22px;
}
.transcript summary {
  cursor: pointer;
  min-height: 56px;
  padding: 17px 0;
  font-size: 14px;
  color: #546679;
}
.transcript summary span {
  font-size: 12px;
  color: #8b949e;
  margin-left: 14px;
}
.transcript-list {
  max-height: 400px;
  overflow: auto;
  overflow-wrap: anywhere;
}
.message {
  padding: 15px 0;
  border-top: 1px solid #e8ecf0;
}
.message strong {
  font-size: 12px;
  color: #758395;
  font-weight: 500;
}
.message p {
  font-family: "Noto Sans JP", Inter, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  margin: 6px 0;
  color: #2f3e4e;
  white-space: pre-wrap;
}
.message.user p {
  color: #264562;
}
.session-footnote {
  font-size: 12px;
  text-align: center;
  color: #87919d;
  line-height: 1.8;
  margin: 20px auto;
  max-width: 550px;
}
.review-heading {
  margin: 20px 0 28px;
}
.review-heading h1 {
  font-size: 32px;
  font-weight: 550;
  letter-spacing: -1px;
}
.review-heading p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}
.review-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}
.stat {
  background: #edf2f6;
  border-radius: 16px;
  padding: 23px;
}
.stat strong {
  display: block;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -1px;
}
.stat span {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}
.review-content {
  padding: 25px;
}
.review-content .section-heading {
  margin-top: 0;
}
.review-content .transcript-list {
  max-height: 550px;
}
.review-actions {
  display: flex;
  gap: 12px;
  margin: 25px 0;
}
.import-label {
  display: inline-flex;
  align-items: center;
}
#toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: #293644;
  color: white;
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 14px;
  line-height: 1.6;
  max-width: calc(100% - 32px);
  width: max-content;
  box-shadow: 0 8px 24px #14223725;
  z-index: 10;
}
@keyframes wave {
  to {
    height: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media (min-width: 1400px) {
  main {
    padding-top: 48px;
  }
}
@media (max-width: 1190px) {
  main,
  footer {
    margin-left: 32px;
    margin-right: 32px;
  }
}
@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .approach {
    display: none;
  }
  .history-block {
    max-width: 100%;
  }
  .history-item strong {
    max-width: 100%;
  }
  .home-heading {
    margin-bottom: 26px;
  }
  .heading-kanji {
    font-size: 70px;
    margin-right: 0;
  }
  .topbar {
    height: 80px;
  }
  .home-heading h1 {
    font-size: 32px;
  }
  .session-label {
    display: none;
  }
}
@media (max-width: 480px) {
  .topbar {
    height: 74px;
    padding: 0 20px;
  }
  .brand {
    font-size: 20px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 22px;
  }
  .brand-sub {
    font-size: 11px;
  }
  main {
    padding-top: 22px;
    margin: 0 20px;
  }
  .home-heading h1 {
    font-size: 29px;
    letter-spacing: -0.9px;
  }
  .home-heading p {
    font-size: 14px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.3px;
  }
  .heading-kanji {
    display: none;
  }
  .composer {
    padding: 20px;
    border-radius: 18px;
  }
  textarea {
    min-height: 118px;
  }
  .composer-bottom span:first-child {
    font-size: 11px;
  }
  .composer-bottom span:last-child {
    display: none;
  }
  .options-row {
    gap: 10px;
    margin-top: 20px;
  }
  .options-row select {
    padding: 10px;
    font-size: 13px;
  }
  .topic-grid {
    gap: 10px;
  }
  .topic-card {
    padding: 15px 12px;
    gap: 8px;
  }
  .topic-icon {
    display: none;
  }
  .topic-card strong {
    font-size: 13px;
  }
  .topic-card small {
    font-size: 12px;
  }
  .section-heading {
    margin-top: 25px;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  .setup-note {
    font-size: 12px;
  }
  .session-context {
    margin-top: 24px;
  }
  .session-context h1 {
    font-size: 16px;
    line-height: 1.75;
  }
  .conversation-stage {
    padding: 35px 0 24px;
  }
  .voice-disc {
    width: 108px;
    height: 108px;
  }
  .conversation-stage h2 {
    font-size: 22px;
  }
  .session-actions {
    gap: 8px;
  }
  .session-actions .button {
    font-size: 12px;
    padding: 12px 15px;
  }
  .session-actions .button:first-child {
    width: 100%;
    max-width: 280px;
    margin: 0 40px 4px;
  }
  .transcript {
    padding: 0 16px;
  }
  .transcript summary span {
    font-size: 11px;
    margin-left: 7px;
  }
  .session-footnote {
    font-size: 11px;
  }
  footer {
    margin: 0 20px;
    font-size: 11px;
    gap: 20px;
    line-height: 1.6;
  }
  .review-heading h1 {
    font-size: 27px;
  }
  .review-stats {
    gap: 8px;
  }
  .stat {
    padding: 17px 12px;
  }
  .stat strong {
    font-size: 24px;
  }
  .stat span {
    font-size: 11px;
  }
  .review-content {
    padding: 18px;
  }
  .review-content .section-heading {
    display: block;
  }
  .review-content .section-heading > span {
    display: block;
    margin-top: 8px;
  }
  .review-actions {
    flex-direction: column;
  }
  dialog {
    padding: 24px;
  }
  .dialog-footer .button {
    padding: 12px 18px;
  }
  .message p {
    font-size: 15px;
  }
}

/* Comfortable layouts for desktop, tablet and phones. */
body { line-height: 1.5; }
main { width: min(1200px, calc(100% - 64px)); max-width: 1200px; margin: auto; }
.topbar, footer { max-width: 1264px; }
footer { width: min(1200px, calc(100% - 64px)); margin: auto; }
.layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
.layout > *, .settings-grid > *, .review-grid > * { min-width: 0; }
.home-heading h1 { font-size: clamp(28px, 3.5vw, 42px); }
#topic { min-height: 170px; }
#scenario { background: var(--soft); }
#keyNote { overflow-wrap: anywhere; }
select { min-height: 48px; padding-right: 28px; }
button:disabled { cursor: default; }
.history-item strong { max-width: 100%; }
#settingsDialog { width: min(960px, calc(100% - 48px)); padding: 0 28px; overflow: auto; overscroll-behavior: contain; }
#settingsForm > .dialog-heading { position: sticky; top: 0; z-index: 2; background: white; padding: 24px 0 12px; border-bottom: 1px solid var(--line); align-items: center; }
#settingsForm .dialog-heading .icon-button { margin: 0; flex-shrink: 0; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.settings-section { padding: 20px; background: #f8f9fb; border: 1px solid var(--line); border-radius: 16px; }
.settings-section h3 { margin: 0; font-size: 16px; color: var(--primary); }
.settings-section input:not([type="checkbox"]), .settings-section select { background: white; }
#settingsDialog .quiet { font-size: 13px; }
#settingsDialog .advanced { margin-top: 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; }
#settingsDialog summary { min-height: 44px; display: list-item; padding: 10px 0; color: var(--primary); font-weight: 550; }
.prompt-settings { grid-column: 1 / -1; }
#prompt { min-height: 280px; font-size: 16px; }
#settingsForm .dialog-footer { position: sticky; bottom: 0; z-index: 2; background: white; border-top: 1px solid var(--line); padding: 16px 0 max(16px, env(safe-area-inset-bottom)); }
#settingsForm .error-text { padding: 12px; background: #fff3f1; border-radius: 10px; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.review-content h2 { margin-top: 0; font-size: 19px; }
.revision-panel { overflow-wrap: anywhere; }
.revision-item { border: 1px solid var(--line); border-left: 4px solid #7293b2; border-radius: 12px; padding: 16px; margin: 16px 0; background: #f8fafc; }
.revision-item.error { border-left-color: #ba7768; }
.revision-item.uncertain { border-left-color: #b89b55; }
.revision-item h3 { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.revision-item p { line-height: 1.85; white-space: pre-wrap; margin: 8px 0; }
#revisionStatus { color: var(--muted); font-size: 14px; }
#sessionView { max-width: 900px; margin: auto; }
#sessionTopic, #reviewTopic { overflow-wrap: anywhere; }
.session-actions .button { min-height: 48px; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .layout aside { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .approach { display: block; }
  .history-block .section-heading { margin-top: 0; }
  .review-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  main, footer { width: calc(100% - 32px); margin: auto; }
  .topbar { height: 76px; padding: 0 16px; }
  main { padding-top: 16px; }
  .home-heading { margin-bottom: 22px; }
  .heading-kanji { display: none; }
  .composer { padding: 18px; }
  #topic { min-height: 150px; }
  .options-row { gap: 12px; }
  .options-row select { font-size: 16px; height: auto; min-height: 50px; }
  .composer-bottom { flex-wrap: wrap; }
  .composer-bottom span:last-child { display: inline; }
  .layout aside { display: block; }
  .approach { display: none; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card { padding: 16px; min-height: 76px; background: white; }
  .topic-card strong { font-size: 15px; }
  .topic-card small { font-size: 13px; }
  .topic-icon { display: block; }
  #settingsDialog { width: calc(100% - 16px); max-height: 94dvh; padding: 0 16px; border-radius: 18px; }
  .settings-grid { grid-template-columns: 1fr; gap: 16px; }
  .settings-section { padding: 16px; }
  #settingsForm > .dialog-heading { padding-top: 16px; }
  #settingsDialog h2 { font-size: 22px; }
  #settingsForm .dialog-footer { flex-wrap: wrap; gap: 8px; }
  #settingsForm .dialog-footer .button { flex: 1; min-width: 180px; }
  .advanced input { font-size: 16px; }
  #prompt { min-height: 250px; }
  .session-top { flex-wrap: wrap; }
  .session-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .session-actions .button { font-size: 14px; padding: 12px; }
  .session-actions .button:first-child { grid-column: 1 / -1; width: 100%; max-width: none; margin: 0; }
  .transcript summary span { display: block; margin: 4px 0 0; }
  .conversation-stage > p { padding: 0 8px; }
  .review-stats { gap: 8px; }
  .stat { padding: 16px 10px; }
  .stat span { font-size: 12px; }
  .review-actions { flex-direction: column; }
  .revision-item { padding: 12px; }
  #revisionButton { width: 100%; }
  footer { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 360px) {
  .options-row { grid-template-columns: 1fr; }
  .review-stats { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: center; gap: 14px; }
}

.model-settings { grid-column: 1 / -1; }
#loadRevisionModels, #revisionModelChoices { margin-top: 12px; }
#model { border-color: #829db9; background: #edf2f7; }
