:root {
  color-scheme: dark;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  color: #eef8f7;
  background: #07111f;
  --bg: #07111f;
  --surface: #0d1c2d;
  --surface-raised: #11263b;
  --surface-soft: #0a1726;
  --surface-accent: #123c42;
  --line: #1d3850;
  --line-strong: #31536d;
  --text: #eef8f7;
  --text-muted: #8da5b5;
  --text-soft: #b7c9d0;
  --accent: #63ddc3;
  --accent-strong: #9df6df;
  --accent-deep: #1b796f;
  --accent-ink: #061b1c;
  --warning: #f2bd70;
  --warning-soft: #342a1b;
  --danger: #ff8e8e;
  --danger-soft: #351e29;
  --success: #69e3a8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

button,
input,
select,
textarea {
  max-width: 100%;
  font: inherit;
  letter-spacing: 0;
}

button,
select,
input {
  min-height: 44px;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.app-shell {
  min-height: 100vh;
  background: var(--bg);
}

.app-header {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid rgba(49, 83, 109, 0.58);
  background: rgba(7, 17, 31, 0.93);
  backdrop-filter: blur(18px);
}

.app-header__inner {
  display: flex;
  width: min(1440px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 18px 34px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-block,
.topbar-meta,
.service-indicator,
.settings-title,
.sidebar__footer-heading,
.sidebar-status-item,
.panel-mode,
.primary-button,
.secondary-button,
.check-field {
  display: flex;
  align-items: center;
}

.brand-block {
  min-width: 0;
  gap: 13px;
}

.settings-trigger {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  margin-left: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.settings-trigger:hover,
.settings-trigger[aria-expanded="true"] {
  border-color: var(--accent-deep);
  background: rgba(99, 221, 195, 0.09);
  color: var(--accent-strong);
}

.settings-trigger__icon {
  color: currentColor;
  font-size: 0.95rem;
  line-height: 1;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid #4fcbb8;
  border-radius: 15px;
  background: #123d43;
  box-shadow: inset 0 0 0 5px rgba(99, 221, 195, 0.06), 0 0 28px rgba(99, 221, 195, 0.12);
  color: var(--accent-strong);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.brand-copy {
  min-width: 0;
}

h1 {
  margin-bottom: 2px;
  color: #f4fbfa;
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.2;
}

.brand-context {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.77rem;
}

.topbar-meta {
  min-width: 0;
  gap: 18px;
}

.workspace-badge,
.eyebrow,
.panel-kicker,
.result-kicker {
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.workspace-badge {
  padding: 6px 10px;
  border: 1px solid rgba(99, 221, 195, 0.25);
  border-radius: 999px;
  background: rgba(99, 221, 195, 0.08);
  white-space: nowrap;
}

.service-indicator {
  min-height: 38px;
  flex: 0 0 auto;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.78rem;
  white-space: nowrap;
}

.service-indicator__dot,
.sidebar__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(105, 227, 168, 0.11);
}

.service-indicator__dot--offline {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(242, 189, 112, 0.11);
}

.app-layout {
  display: grid;
  width: min(1440px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 34px;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.sidebar {
  position: sticky;
  top: 104px;
  display: flex;
  min-width: 0;
  min-height: calc(100vh - 138px);
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.sidebar__intro {
  padding: 5px 4px 22px;
}

.sidebar__intro p {
  max-width: 185px;
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.83rem;
  line-height: 1.65;
}

.task-tabs {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.task-tab {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 68px;
  padding: 12px 12px;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.task-tab:hover {
  border-color: var(--line);
  background: rgba(17, 38, 59, 0.72);
  color: var(--text);
  transform: translateX(2px);
}

.task-tab[aria-selected="true"] {
  border-color: rgba(99, 221, 195, 0.42);
  background: var(--surface-accent);
  color: var(--accent-strong);
  box-shadow: inset 3px 0 0 var(--accent), 0 10px 30px rgba(4, 24, 34, 0.3);
}

.task-tab__icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  font-size: 1rem;
}

.task-tab[aria-selected="true"] .task-tab__icon {
  border-color: rgba(99, 221, 195, 0.42);
  background: rgba(99, 221, 195, 0.11);
  color: var(--accent);
}

.task-tab__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.task-tab__copy strong {
  color: currentColor;
  font-size: 0.83rem;
  font-weight: 720;
}

.task-tab__copy small {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.task-tab__arrow {
  color: var(--line-strong);
  font-size: 0.93rem;
  text-align: right;
}

.task-tab[aria-selected="true"] .task-tab__arrow {
  color: var(--accent);
}

.sidebar__footer {
  margin-top: auto;
  padding: 18px 4px 3px;
  border-top: 1px solid var(--line);
}

.sidebar__footer-heading {
  justify-content: space-between;
}

.sidebar__pulse {
  width: 7px;
  height: 7px;
}

.sidebar-status-list {
  display: grid;
  margin-top: 15px;
  gap: 10px;
}

.sidebar-status-item {
  min-width: 0;
  gap: 7px;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.sidebar-status-item strong {
  margin-left: auto;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 650;
}

.sidebar__note {
  margin: 18px 0 0;
  color: #617a8b;
  font-size: 0.68rem;
  line-height: 1.7;
}

.runtime-status__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #466174;
}

.runtime-status__dot--ready {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(105, 227, 168, 0.1);
}

.main-content {
  min-width: 0;
  max-width: 970px;
}

.page-intro {
  display: flex;
  min-width: 0;
  min-height: 132px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}

.page-intro h2 {
  max-width: 680px;
  margin: 10px 0 5px;
  color: #f2fbfa;
  font-size: clamp(1.9rem, 4vw, 3.35rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.page-intro p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.page-intro__mark {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 720;
  letter-spacing: -0.05em;
}

.page-intro__mark span {
  margin-left: 5px;
  color: var(--line-strong);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
}

.settings-dialog {
  width: min(720px, calc(100vw - 32px));
  max-width: 720px;
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}

.settings-dialog::backdrop {
  background: rgba(2, 8, 15, 0.76);
  backdrop-filter: blur(7px);
}

.settings-dialog__surface {
  max-height: calc(100vh - 32px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  overflow-y: auto;
}

.settings-band__header,
.settings-title,
.panel-heading,
.output-heading,
.region-heading,
.prompt-card__footer,
.solution-options {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.settings-band__header {
  margin-bottom: 17px;
}

.settings-dialog__actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.settings-title {
  gap: 11px;
}

.settings-title__icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--accent);
  font-size: 0.86rem;
}

.settings-title h2 {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 750;
}

.settings-title p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 0.71rem;
}

.lock-state {
  min-height: 1.5em;
  color: var(--warning);
  font-size: 0.71rem;
  text-align: right;
}

.dialog-close {
  display: grid;
  width: 38px;
  height: 38px;
  min-height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.dialog-close:hover {
  border-color: var(--accent-deep);
  background: rgba(99, 221, 195, 0.1);
  color: var(--accent-strong);
}

.settings-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.settings-dialog__footer {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.settings-dialog__footer p {
  max-width: 420px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.71rem;
  line-height: 1.6;
}

.settings-dialog__footer-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.settings-dialog__save-options {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.settings-dialog__save-options .check-field {
  min-height: 30px;
  gap: 7px;
}

.settings-dialog__save-options .check-field label {
  color: var(--text-soft);
  font-size: 0.71rem;
}

.text-button {
  min-height: 30px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.69rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button:hover:not(:disabled) {
  color: var(--accent-strong);
}

.settings-save-status {
  min-height: 1.4em;
  color: var(--text-muted);
  font-size: 0.71rem;
  overflow-wrap: anywhere;
}

.settings-save-status[data-state="success"] {
  color: var(--success);
}

.settings-save-status[data-state="error"] {
  color: #ffb7b7;
}

.settings-dialog__footer-actions {
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.api-test-status {
  min-height: 1.4em;
  color: var(--text-muted);
  font-size: 0.71rem;
  overflow-wrap: anywhere;
}

.api-test-status[data-state="pending"] {
  color: var(--warning);
}

.api-test-status[data-state="success"] {
  color: var(--success);
}

.api-test-status[data-state="error"] {
  color: #ffb7b7;
}

.field-group {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.field-group--wide-setting {
  grid-column: span 2;
}

.field-group--wide {
  width: 100%;
}

.field-group--compact {
  width: min(170px, 100%);
}

.label-hint {
  color: var(--text-muted);
  font-size: 0.63rem;
  font-weight: 500;
}

label {
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 680;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: var(--surface-soft);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input,
select {
  padding: 9px 11px;
}

textarea {
  min-height: 126px;
  padding: 14px 15px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #5f7787;
  opacity: 1;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #426b84;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-deep);
  background: #0b1c2c;
  box-shadow: 0 0 0 3px rgba(99, 221, 195, 0.12);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background: #2b1823;
}

:focus-visible {
  outline: 3px solid rgba(99, 221, 195, 0.72);
  outline-offset: 3px;
}

.task-panels {
  min-width: 0;
}

.task-panel {
  min-width: 0;
  margin-top: 24px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-heading {
  align-items: flex-start;
  margin-bottom: 25px;
}

.panel-heading__copy {
  min-width: 0;
}

.panel-kicker,
.result-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.63rem;
}

.panel-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.panel-heading p {
  max-width: 560px;
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.panel-mode {
  min-height: 31px;
  flex: 0 0 auto;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.68rem;
  white-space: nowrap;
}

.panel-mode__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 221, 195, 0.1);
}

.task-form {
  min-width: 0;
}

.prompt-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.prompt-card textarea {
  min-height: 150px;
  border-color: #29475f;
  background: #0a1929;
  font-size: 0.95rem;
  line-height: 1.65;
}

.prompt-card__footer {
  align-items: flex-end;
  margin-top: 15px;
}

.prompt-card__footer--end {
  justify-content: flex-end;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  justify-content: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 11px;
  font-size: 0.8rem;
  font-weight: 750;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.primary-button:hover:not(:disabled) {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--accent-deep);
  background: rgba(99, 221, 195, 0.08);
  color: var(--accent-strong);
}

.secondary-button:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(99, 221, 195, 0.15);
}

.button-arrow {
  font-size: 1rem;
  line-height: 1;
}

.task-status,
.task-error,
.provider-notice {
  min-height: 1.5em;
  margin: 16px 0 0;
  font-size: 0.78rem;
}

.task-status:not(:empty)::before {
  content: "●";
  margin-right: 7px;
  color: var(--accent);
}

.task-error {
  padding: 11px 13px;
  border: 1px solid rgba(255, 142, 142, 0.25);
  border-left: 3px solid var(--danger);
  border-radius: 10px;
  background: var(--danger-soft);
  color: #ffb7b7;
  overflow-wrap: anywhere;
}

.task-error::before {
  content: "错误：";
  font-weight: 750;
}

.provider-notice {
  padding: 10px 13px;
  border: 1px solid rgba(242, 189, 112, 0.2);
  border-left: 3px solid var(--warning);
  border-radius: 10px;
  background: var(--warning-soft);
  color: #f7cf9a;
}

.provider-notice::before {
  content: "注意：";
  font-weight: 750;
}

.task-output,
.sources-region {
  min-width: 0;
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.output-heading,
.region-heading {
  align-items: flex-start;
  margin-bottom: 15px;
}

.output-heading h3,
.region-heading h3,
.sources-region h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
}

.result-kicker {
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.59rem;
}

.result-meta,
.source-score {
  color: var(--text-muted);
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}

.answer-text {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0a1828;
  color: var(--text-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  line-height: 1.78;
}

.source-list,
.solution-rows {
  display: grid;
  min-width: 0;
  margin-top: 12px;
  gap: 10px;
}

.source-item,
.solution-row {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-raised);
  transition: border-color 160ms ease, transform 160ms ease;
}

.source-item:hover,
.solution-row:hover {
  border-color: #3e6680;
  transform: translateY(-1px);
}

.source-item h4,
.solution-row h4 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 0.86rem;
}

.source-item p,
.solution-row p {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.source-item a {
  display: inline-block;
  max-width: 100%;
  margin-top: 9px;
  color: var(--accent);
  font-size: 0.73rem;
  overflow-wrap: anywhere;
}

.source-score {
  display: inline-block;
  margin-top: 9px;
}

.solution-options {
  align-items: flex-end;
  margin-top: 15px;
}

.solution-options > .field-group {
  width: min(420px, 100%);
}

.check-field {
  min-width: 0;
  min-height: 44px;
  gap: 9px;
}

.check-field input {
  width: 19px;
  min-width: 19px;
  min-height: 19px;
  margin: 0;
  accent-color: var(--accent);
}

.solution-row__fields {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 20px;
}

.solution-row__label {
  color: var(--text-muted);
  font-weight: 650;
}

@media (max-width: 1120px) {
  .app-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
  }

  .app-layout,
  .app-header__inner {
    padding-right: 24px;
    padding-left: 24px;
  }

  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-group--wide-setting {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .app-header__inner {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .app-layout {
    display: block;
    padding-top: 24px;
  }

  .sidebar {
    position: static;
    min-height: auto;
    margin-bottom: 24px;
    padding: 16px;
  }

  .sidebar__intro {
    padding: 2px 2px 14px;
  }

  .sidebar__intro p {
    max-width: none;
    margin-top: 6px;
    font-size: 0.78rem;
  }

  .task-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .task-tab {
    min-height: 65px;
    padding: 10px;
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .task-tab__icon {
    width: 27px;
    height: 27px;
  }

  .task-tab__arrow {
    display: none;
  }

  .sidebar__footer {
    display: none;
  }

  .main-content {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .app-header__inner,
  .app-layout {
    padding-right: 16px;
    padding-left: 16px;
  }

  .topbar-meta {
    gap: 10px;
  }

  .workspace-badge {
    display: none;
  }

  .service-indicator {
    font-size: 0;
  }

  .service-indicator__dot {
    width: 9px;
    height: 9px;
  }

  .page-intro {
    min-height: 112px;
  }

  .page-intro h2 {
    font-size: 2.08rem;
  }

  .page-intro p {
    max-width: 270px;
    font-size: 0.78rem;
  }

  .page-intro__mark {
    display: none;
  }

  .settings-dialog__surface,
  .task-panel {
    padding: 18px 15px 20px;
    border-radius: 18px;
  }

  .settings-dialog .settings-band__header,
  .panel-heading {
    align-items: flex-start;
  }

  .settings-dialog .settings-band__header {
    display: grid;
    gap: 8px;
  }

  .settings-dialog__actions {
    justify-content: space-between;
  }

  .lock-state {
    text-align: left;
  }

  .settings-dialog__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-dialog__footer-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .settings-dialog__save-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .settings-dialog__footer-actions .primary-button,
  .settings-dialog__footer-actions .secondary-button {
    width: 100%;
  }

  .settings-grid,
  .solution-row__fields {
    grid-template-columns: 1fr;
  }

  .field-group--wide-setting {
    grid-column: auto;
  }

  .task-tabs {
    gap: 6px;
  }

  .task-tab {
    min-height: 58px;
    padding: 8px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 3px;
    text-align: center;
  }

  .task-tab__copy small {
    display: none;
  }

  .task-tab__copy strong {
    font-size: 0.7rem;
  }

  .task-panel {
    margin-top: 16px;
  }

  .settings-trigger {
    width: 38px;
    justify-content: center;
    margin-left: 0;
    padding-right: 7px;
    padding-left: 7px;
  }

  .settings-trigger > span:last-child {
    display: none;
  }

  .panel-heading {
    display: grid;
    gap: 14px;
  }

  .panel-heading h2 {
    font-size: 1.25rem;
  }

  .panel-mode {
    justify-self: start;
  }

  .prompt-card {
    padding: 12px;
  }

  .prompt-card textarea {
    min-height: 145px;
  }

  .prompt-card__footer,
  .solution-options {
    display: grid;
    grid-template-columns: 1fr;
  }

  .field-group--compact,
  .solution-options > .field-group {
    width: 100%;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .output-heading,
  .region-heading {
    display: grid;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
