@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #10233a;
  --ink-soft: #4b5d73;
  --muted: #6d7f93;
  --line: #d7e1ec;
  --line-strong: #c3d0df;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-soft: #f5f8fb;
  --bg: #e8eef5;
  --brand: #0f766e;
  --brand-deep: #115e59;
  --brand-soft: #d9eee9;
  --accent: #c9782c;
  --ok: #157a45;
  --ok-bg: #e7f7ee;
  --bad: #b42318;
  --bad-bg: #fef3f2;
  --warn: #9a6700;
  --warn-bg: #fff8e8;
  --shadow: 0 10px 30px rgba(16, 35, 58, 0.08);
  --shadow-sm: 0 4px 14px rgba(16, 35, 58, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 9px;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --ring: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(15, 118, 110, 0.16), transparent 60%),
    radial-gradient(780px 380px at 100% 0%, rgba(201, 120, 44, 0.12), transparent 55%),
    linear-gradient(180deg, #eef4f8 0%, var(--bg) 48%, #e4ebe8 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 35, 58, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 35, 58, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.35), transparent 85%);
  z-index: 0;
}

a { color: inherit; }

h1, h2, h3, p { margin: 0; }
h1 { font-family: var(--display); font-size: clamp(1.7rem, 2vw, 2.15rem); letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1rem; font-weight: 700; }

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(242, 247, 250, 0.78);
  border-bottom: 1px solid rgba(215, 225, 236, 0.9);
}

.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.brand-mark svg { width: 100%; height: 100%; display: block; }

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.page {
  max-width: 1440px;
  width: min(1440px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 22px 0 48px;
  display: grid;
  gap: 18px;
}

.page.narrow { max-width: 1080px; width: min(1080px, calc(100vw - 28px)); }

.page-hero {
  display: grid;
  gap: 10px;
  padding: 8px 2px 2px;
  animation: rise 420ms ease both;
}

.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-hero p {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  min-width: 0;
  animation: rise 480ms ease both;
}

.panel + .panel { animation-delay: 40ms; }

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.panel-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.panel-title .title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.head-actions,
.actions,
.row-controls,
.upload,
.lang-tabs {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}

.lang-tab {
  border: 1px solid var(--line, #d7deea);
  background: transparent;
  color: var(--muted, #64748b);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}

.lang-tab.active {
  background: var(--text, #0f172a);
  border-color: var(--text, #0f172a);
  color: #fff;
}

.run-lang-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.table-panel .row-controls {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.icon,
.icon-sm,
.toast-icon,
.btn-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: currentColor;
}

.icon svg,
.icon-sm svg,
.toast-icon svg,
.btn-icon svg,
[data-icon] svg {
  width: 100%;
  height: 100%;
  display: block;
}

.icon-sm { width: 14px; height: 14px; }
.toast-icon { width: 16px; height: 16px; }
.btn-icon { width: 16px; height: 16px; }

.title-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-deep);
  flex: 0 0 auto;
}

.title-icon .icon { width: 18px; height: 18px; }

button,
.button {
  appearance: none;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #149285, var(--brand));
  color: #fff;
  border-radius: 11px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.22);
}

button:hover,
.button:hover {
  transform: translateY(-1px);
}

button:active,
.button:active { transform: translateY(0); }

button:focus-visible,
.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

button.secondary,
.button.secondary {
  background: var(--surface-solid);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

button.secondary:hover,
.button.secondary:hover {
  background: #f8fafc;
  border-color: #aebcca;
}

button.ghost,
.button.ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: transparent;
  box-shadow: none;
}

button.danger,
.button.danger {
  background: var(--bad-bg);
  color: var(--bad);
  border-color: #f5c2c0;
  box-shadow: none;
}

button.danger:hover {
  background: #fee4e2;
  border-color: #f09793;
}

button.small,
.button.small {
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 9px;
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

label {
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--surface-solid);
  transition: border-color .15s ease, box-shadow .15s ease;
}

textarea { resize: vertical; min-height: 84px; }

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

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}

.checkline input {
  width: auto;
  margin: 0;
}

.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  white-space: nowrap;
}

.status-pill.is-ok {
  background: var(--ok-bg);
  border-color: #b7e4c7;
  color: var(--ok);
}

.status-pill.is-bad {
  background: var(--bad-bg);
  border-color: #f5c2c0;
  color: var(--bad);
}

.status-strip,
.status-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.create-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.create-project-form {
  display: grid;
  gap: 12px;
}

.create-project-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hint-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, #e7f5f2 0%, #ffffff 42%),
    var(--surface-solid);
  border: 1px solid #c5ddd7;
  box-shadow: var(--shadow-sm);
}

.hint-card h2 { font-family: var(--display); font-size: 1.35rem; }

.hint-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hint-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.45;
}

.hint-list .step-num {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.projects-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.search-field {
  position: relative;
  min-width: min(320px, 100%);
}

.search-field .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-field input {
  padding-left: 38px;
}

.projects-list {
  display: grid;
  gap: 12px;
}

.project-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #b7c8d8;
}

.project-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0f766e, #0b5f59);
  color: #fff;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
}

.project-card-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.project-title {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
}

.project-title:hover { color: var(--brand-deep); }

.project-card-main p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.project-card-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 36px 18px;
  color: var(--muted);
}

.empty-state .empty-art {
  width: 120px;
  height: 96px;
  margin-bottom: 4px;
}

.empty-state strong {
  color: var(--ink);
  font-size: 1rem;
}

.loading-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 28px 16px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(15, 118, 110, 0.22);
  border-top-color: var(--brand);
  animation: spin 0.7s linear infinite;
  flex: 0 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.prompts-panel.is-loading .prompt-table {
  opacity: 0.92;
}

.providers-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-chip {
  --chip: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
  opacity: 0.72;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background .15s ease, opacity .15s ease;
}

.platform-chip:hover {
  border-color: #a9bbcc;
  transform: translateY(-1px);
  opacity: 0.9;
}

.platform-chip input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }

.platform-chip:has(input:checked),
.platform-chip.readonly {
  opacity: 1;
  background: color-mix(in srgb, var(--chip) 10%, white);
  border-color: color-mix(in srgb, var(--chip) 42%, white);
  box-shadow: var(--shadow-sm);
}

.platform-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 2px solid color-mix(in srgb, var(--chip) 55%, #94a3b8);
  background: transparent;
  position: relative;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.platform-chip:has(input:checked) .platform-dot,
.platform-chip.readonly .platform-dot {
  background: var(--chip);
  border-color: var(--chip);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--chip) 18%, transparent);
}

.platform-chip:has(input:checked) .platform-dot::after,
.platform-chip.readonly .platform-dot::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.platform-copy {
  display: grid;
  gap: 1px;
}

.platform-copy strong {
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
}

.platform-chip:not(:has(input:checked)):not(.readonly) .platform-copy strong {
  color: var(--ink-soft);
}

.platform-copy small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.hue-azure { --chip: #2563eb; }
.hue-amber { --chip: #d97706; }
.hue-indigo { --chip: #4f46e5; }
.hue-emerald { --chip: #059669; }
.hue-slate { --chip: #475569; }
.hue-cyan { --chip: #0891b2; }

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.run-layout {
  display: grid;
  gap: 16px;
}

.run-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, .8fr) auto;
  gap: 12px;
  align-items: end;
}

.bulk-run {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.split-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.split-2 > .panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.split-2 .run-layout,
.split-2 .active-job {
  flex: 1;
}

.progress-panel .active-job,
.active-job {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  align-content: start;
}

.active-job.empty-state {
  padding: 28px 16px;
  place-content: center;
  text-align: center;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-soft);
}

.progress-bar,
.mini-progress {
  height: 9px;
  border-radius: 999px;
  background: #dce5ef;
  overflow: hidden;
}

.progress-bar > div,
.mini-progress > div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #14b8a6);
  transition: width .35s ease;
}

.current-step {
  font-size: 13px;
  font-weight: 650;
  color: var(--brand-deep);
}

.current-prompt {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.job-error {
  color: var(--bad);
  background: var(--bad-bg);
  border: 1px solid #f5c2c0;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12.5px;
}

.analysis-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.4fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.analysis-meta {
  margin-bottom: 12px;
  font-size: 13px;
}

.analysis-result {
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 14px;
  color: var(--ink);
  max-height: 520px;
  overflow: auto;
}

.analysis-result.empty-state {
  color: var(--muted);
  text-align: center;
}

.analysis-result-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.jobs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  max-height: 320px;
  overflow: auto;
}

@media (max-width: 980px) {
  .analysis-controls {
    grid-template-columns: 1fr;
  }
}

.job-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
}

.job-card.has-errors { border-color: #f5c2c0; }
.job-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}
.job-card-meta,
.job-card-current { font-size: 12px; color: var(--muted); }

.event-list {
  display: grid;
  gap: 6px;
  max-height: 140px;
  overflow: auto;
}

.event {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 6px 8px;
  border-radius: 8px;
  background: #f8fafc;
}

.event-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.event-context { color: var(--brand-deep); font-weight: 650; }
.event-error { background: var(--bad-bg); }
.event-success { background: var(--ok-bg); }
.event-warning { background: var(--warn-bg); }

.table-hint {
  color: var(--muted);
  font-size: 12.5px;
  margin-bottom: 10px;
}

.field-hint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

label.button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
}

.questions-import {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px dashed #b7c7d6;
  border-radius: 14px;
  background: #f7fafc;
}

.questions-import-copy {
  display: grid;
  gap: 4px;
  min-width: min(100%, 280px);
  flex: 1 1 280px;
}

.questions-import-copy strong {
  font-size: 13px;
}

.questions-import-copy span {
  font-size: 12.5px;
  line-height: 1.4;
}

.questions-import-actions,
.inline-import,
.answers-upload {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inline-import {
  margin: 0;
}

.table-wrap,
.excel-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
  background: var(--surface-solid);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.prompts-grid { max-height: 360px; }

.table-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  max-width: 100%;
}

.table-panel > .panel-head,
.table-panel > .row-controls,
.table-panel > .table-hint {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  background: var(--surface);
}

.table-panel > .row-controls {
  margin-bottom: 10px;
  padding-bottom: 2px;
}

.table-panel > .excel-wrap {
  flex: 1 1 auto;
  display: block;
  position: relative;
  z-index: 1;
  max-height: 72vh;
  min-height: 420px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: scroll;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
}

.table-panel > .excel-wrap::-webkit-scrollbar {
  height: 12px;
  width: 12px;
}

.table-panel > .excel-wrap::-webkit-scrollbar-thumb {
  background: #b7c7d6;
  border-radius: 999px;
  border: 2px solid var(--surface-solid);
}

.table-panel > .excel-wrap::-webkit-scrollbar-track {
  background: #eef3f7;
  border-radius: 999px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  border-bottom: 1px solid #edf2f7;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f7fafc;
  color: var(--muted);
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prompt-table { table-layout: fixed; }
.prompt-table th:nth-child(1),
.prompt-table td:nth-child(1) { width: 40px; }
.prompt-table th:nth-child(2),
.prompt-table td:nth-child(2) { width: 108px; }
.prompt-table th:nth-child(3),
.prompt-table td:nth-child(3) { width: 96px; }
.prompt-table th:nth-child(4),
.prompt-table td:nth-child(4) { width: 150px; }
.prompt-table th:nth-child(5),
.prompt-table td:nth-child(5) { width: 180px; }
.prompt-table th:nth-child(7),
.prompt-table td:nth-child(7) { width: 168px; }

.prompt-value {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
}

.prompt-value.prompt-text {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.prompt-table .q-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 7px 8px;
}

.prompt-table textarea.q-input.prompt-text {
  min-height: 48px;
  max-height: 84px;
}

.prompt-actions {
  text-align: right;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.compact-filter {
  display: inline-grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.compact-filter input,
.compact-filter select {
  height: 36px;
  min-width: 124px;
  padding: 0 10px;
}

.tabs .tab.active {
  background: var(--brand-soft);
  border-color: #9dcec5;
  color: var(--brand-deep);
  box-shadow: none;
}

.excel-table {
  min-width: 3400px;
  width: max-content;
  max-width: none;
  table-layout: fixed;
  font-size: 11px;
  line-height: 1.25;
  border-collapse: separate;
  border-spacing: 0;
}

.excel-table th,
.excel-table td {
  border-right: 1px solid #edf1f5;
  border-bottom: 1px solid #edf1f5;
  padding: 4px 6px;
  min-width: 82px;
  max-width: 180px;
  height: 24px;
}

.excel-table th {
  top: 0;
  z-index: 3;
  white-space: normal;
  font-size: 10px;
  line-height: 1.15;
  padding-top: 6px;
  padding-bottom: 6px;
  text-transform: none;
  letter-spacing: 0;
}

.excel-table .row-number {
  min-width: 40px;
  max-width: 40px;
  width: 40px;
  text-align: right;
  color: #6b7280;
  background: #f8fafc;
  position: sticky;
  left: 0;
  z-index: 4;
}

.excel-table td.row-number { z-index: 2; }

.excel-table .action-col {
  min-width: 108px;
  max-width: 108px;
  width: 108px;
  background: #fff;
  white-space: nowrap;
  vertical-align: middle;
}

.excel-table th.action-col {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f7fafc;
}

.excel-table .action-col .small {
  max-width: 100%;
  white-space: nowrap;
}

.editable-cell {
  cursor: cell;
  white-space: pre-wrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-content {
  max-height: 68px;
  overflow: auto;
  overscroll-behavior: contain;
}

.excel-table .col-answer .cell-content,
.excel-table .long-cell .cell-content {
  max-height: 160px;
  overflow: auto;
  scrollbar-gutter: stable;
}

.url-list a {
  color: #0b6bcb;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.editable-cell.long-cell {
  min-width: 220px;
  max-width: 360px;
}

.editable-cell.editing { padding: 0; overflow: visible; }

.editable-cell.editing textarea {
  width: 100%;
  min-height: 96px;
  border: 2px solid var(--brand);
  border-radius: 0;
  resize: vertical;
  box-sizing: border-box;
  font-size: 12px;
}

.editable-cell.dirty { background: #fff7d6; }

.excel-table .col-xs { min-width: 56px; max-width: 82px; }
.excel-table .col-sm { min-width: 82px; max-width: 120px; }
.excel-table .col-md { min-width: 110px; max-width: 160px; }
.excel-table .col-source { min-width: 150px; max-width: 230px; }
.excel-table .col-lg { min-width: 190px; max-width: 300px; }
.excel-table .col-answer { min-width: 280px; max-width: 420px; }

.excel-table .merged-cell {
  border-bottom-color: #dce5ef;
  vertical-align: top;
}

.excel-table tr.question-even td { background-color: #ffffff; }
.excel-table tr.question-odd td { background-color: #f7fafc; }
.excel-table tr.source-row td {
  background-image: linear-gradient(to right, rgba(15, 118, 110, 0.05), rgba(15, 118, 110, 0.05));
}
.excel-table tr.main-answer-row td { border-top: 2px solid #c7d5e5; }
.excel-table tr.main-answer-row:first-child td { border-top-width: 0; }
.excel-table tr.source-row .row-number { color: #8792a0; font-size: 10px; }
.excel-table tr.question-even .action-col,
.excel-table tr.question-even .row-number { background-color: #ffffff; }
.excel-table tr.question-odd .action-col,
.excel-table tr.question-odd .row-number { background-color: #f7fafc; }

.settings-grid,
.settings-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 14px;
  min-width: 0;
}

.settings-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-width: 0;
  overflow: hidden;
}

.settings-card * {
  min-width: 0;
}

.settings-card label,
.settings-card input,
.settings-card select,
.settings-card textarea {
  max-width: 100%;
}

.settings-card input,
.settings-card select,
.settings-card textarea {
  width: 100%;
  box-sizing: border-box;
}

.settings-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.settings-card-head .platform-chip {
  max-width: 100%;
}

.settings-card-head .platform-copy strong { font-size: 1rem; }
.settings-card-head .platform-copy small { font-size: 12px; overflow-wrap: anywhere; }

.settings-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid #e6edf4;
  min-width: 0;
  overflow: hidden;
}

.key-status-line {
  font-size: 13px;
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 10px;
  overflow-wrap: anywhere;
}

.key-status-line.is-ok {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid #b7e4c7;
}

.key-status-line.is-bad {
  background: var(--bad-bg);
  color: var(--bad);
  border: 1px solid #f3c4bf;
}

.settings-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.env-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 10px;
  background: #eef4f8;
  border: 1px dashed #b7c7d6;
  color: var(--ink-soft);
  font-size: 12px;
}

.env-badge-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--brand-deep);
}

.env-badge code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.feature-check {
  align-items: flex-start;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.feature-check span {
  display: grid;
  gap: 2px;
}

.feature-check strong {
  font-size: 13px;
  color: var(--ink);
}

.feature-check small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

.feature-check input {
  margin-top: 2px;
}

.settings-advanced {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0 12px;
}

.settings-advanced summary {
  cursor: pointer;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-soft);
}

.settings-advanced-body {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
}

.advanced-inline {
  font-size: 12px;
}

.settings-notes {
  margin-top: 2px;
}

.model-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.model-row select {
  min-width: 0;
  width: 100%;
}

.model-row .small {
  white-space: nowrap;
}

.model-status { font-size: 12px; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.4; }
.hidden { display: none !important; }

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: min(640px, calc(100vw - 24px));
  box-shadow: 0 24px 60px rgba(16, 35, 58, 0.22);
  background: transparent;
}

dialog::backdrop {
  background: rgba(12, 24, 38, 0.42);
  backdrop-filter: blur(4px);
}

dialog form {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: var(--surface-solid);
  border-radius: 18px;
  border: 1px solid var(--line);
}

dialog h2 {
  font-family: var(--display);
  font-size: 1.35rem;
}

dialog .actions {
  justify-content: flex-end;
  margin-top: 4px;
}

.toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 28px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #10233a;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: .22s ease;
  font-size: 13.5px;
  line-height: 1.4;
}

.toast.visible { opacity: 1; transform: none; }
.toast-success { background: #0f5132; }
.toast-error { background: #7f1d1d; }
.toast-warning { background: #7a4d00; }

.ok { color: var(--ok); }
.bad { color: var(--bad); }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .create-layout,
  .split-2,
  .run-grid,
  .grid2,
  .create-project-form .form-row {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: auto 1fr;
  }

  .project-card-actions {
    grid-column: 1 / -1;
  }

  .project-card-actions .button,
  .project-card-actions button {
    flex: 1;
  }
}

@media (max-width: 720px) {
  .topbar-inner,
  .page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page { width: 100%; }

  .brand-copy span { display: none; }

  .panel { padding: 14px; }

  .row-controls,
  .head-actions,
  .top-nav,
  .upload {
    width: 100%;
  }

  .panel-head {
    flex-direction: column;
  }
}

.settings-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  margin: 0 0 14px;
  border-radius: 12px;
  background: #eef3f7;
  border: 1px solid var(--line);
}

.settings-tab {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 650;
  box-shadow: none;
}

.settings-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.settings-tab-panel.hidden,
.fields-panel .hidden,
#projectFieldsEditor.hidden {
  display: none !important;
}

.fields-editor {
  display: grid;
  gap: 14px;
}

.fields-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.fields-editor-head h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.fields-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fields-hint {
  font-size: 13px;
  line-height: 1.4;
}

.fields-list {
  display: grid;
  gap: 10px;
}

.field-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
}

.field-card.is-disabled {
  opacity: 0.62;
  background: #f7f9fb;
}

.field-card-top {
  display: grid;
  grid-template-columns: auto minmax(160px, 1.4fr) 150px 110px auto;
  gap: 8px;
  align-items: center;
}

.field-card-top input,
.field-card-top select,
.field-desc textarea {
  width: 100%;
}

.field-card-tools {
  display: inline-flex;
  gap: 4px;
}

.field-enabled {
  margin: 0;
  white-space: nowrap;
}

.field-desc {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-soft);
}

.field-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
}

.fields-panel .fields-editor {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .field-card-top {
    grid-template-columns: 1fr;
  }
}

.field-docs {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
}

.field-values-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.field-value-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef5f8;
  border: 1px solid #d5e2ea;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .field-docs {
    grid-template-columns: 1fr;
  }
}

.fields-legend {
  margin-bottom: 4px;
}

.fields-legend-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7fafc;
  padding: 10px 14px 12px;
}

.fields-legend-box > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.fields-legend-box > summary::-webkit-details-marker { display: none; }

.fields-legend-box > summary::before {
  content: "▸ ";
  color: var(--muted);
}

.fields-legend-box[open] > summary::before {
  content: "▾ ";
}

.fields-legend-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.fields-legend-grid h4 {
  margin: 0 0 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.fields-legend-grid > section > p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
}

.fields-legend-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.fields-legend-item {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e4edf4;
}

.fields-legend-item dt {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}

.fields-legend-item dt code {
  display: inline-block;
  margin-right: 4px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #eef4f8;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-deep);
}

.fields-legend-item dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 900px) {
  .fields-legend-grid {
    grid-template-columns: 1fr;
  }
}

a.button.is-disabled,
a.button[hidden] {
  pointer-events: none;
  opacity: 0.45;
}

.analysis-result-head .button.small {
  margin-left: auto;
}

dialog.fields-dialog {
  width: min(1100px, calc(100vw - 32px));
  max-width: 1100px;
  max-height: calc(100vh - 48px);
  padding: 18px 18px 12px;
  overflow: auto;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(16, 35, 58, 0.22);
  color: var(--ink);
}

.fields-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  position: sticky;
  top: -18px;
  z-index: 2;
  margin: -18px -18px 8px;
  padding: 16px 18px 12px;
  background: var(--surface-solid);
  border-bottom: 1px solid var(--line);
}

.fields-dialog-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
}

.toolbar-import {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.run-selected-btn {
  animation: rise 280ms ease both;
}

.run-selected-btn.is-ready {
  box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.45);
  animation: run-ready-pulse 1.1s ease-in-out 3;
}

@keyframes run-ready-pulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.45); transform: translateY(0); }
  50% { box-shadow: 0 0 0 10px rgba(15, 118, 110, 0); transform: translateY(-1px); }
  100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0); transform: translateY(0); }
}

button.icon-only,
.button.icon-only {
  width: 40px;
  min-width: 40px;
  padding-inline: 0;
  justify-content: center;
}

.proxy-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.proxy-mode-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  cursor: pointer;
}

.proxy-mode-card:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: var(--ring);
}

.proxy-mode-card input {
  margin-top: 3px;
}

.proxy-mode-card strong {
  display: block;
  margin-bottom: 4px;
}

.proxy-mode-card small {
  color: var(--muted);
  line-height: 1.4;
}

.proxy-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.proxy-table {
  width: 100%;
  border-collapse: collapse;
}

.proxy-table th,
.proxy-table td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.proxy-table input[type="text"],
.proxy-table input[type="password"],
.proxy-table input[type="number"] {
  width: 100%;
  min-width: 0;
}

.proxy-table th:first-child,
.proxy-table td:first-child,
.proxy-table th:last-child,
.proxy-table td:last-child {
  width: 48px;
  text-align: center;
}

.proxy-platform-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-width: 220px;
  max-width: 340px;
}

.proxy-platform-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted, #64748b);
  white-space: nowrap;
  cursor: pointer;
}

.proxy-platform-check input {
  margin: 0;
}

@media (max-width: 900px) {
  .proxy-mode-row {
    grid-template-columns: 1fr;
  }
}

.login-body {
  min-height: 100vh;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.login-page {
  width: min(440px, 100%);
}

.login-card {
  padding: 28px 24px;
  animation: rise 480ms ease both;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.login-brand strong {
  display: block;
  font-size: 1rem;
}

.login-brand span {
  color: var(--muted);
  font-size: 13px;
}

.login-card h1 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.login-form button {
  margin-top: 4px;
}

.login-error {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bad-bg);
  color: var(--bad);
  border: 1px solid #f3c4bf;
  font-size: 14px;
  font-weight: 600;
}

.button.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-soft);
  box-shadow: none;
}

.button.ghost:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.billing-grid,
.billing-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
  min-width: 0;
  width: 100%;
  overflow-x: clip;
}

.billing-card,
.billing-config-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  padding: 14px;
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.billing-card *,
.billing-config-card * {
  min-width: 0;
}

.billing-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.billing-card-head .platform-chip {
  max-width: 100%;
  flex: 1 1 160px;
}

.billing-card-head .platform-copy {
  min-width: 0;
}

.billing-card-head .platform-copy strong,
.billing-card-head .platform-copy small {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.billing-card-head .status-pill {
  flex: 0 1 auto;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.billing-metrics {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.billing-metric {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.billing-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.billing-metric strong {
  font-size: 1.15rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.billing-metric small {
  color: var(--ink-soft);
  font-size: 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.billing-details {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 13px;
  display: grid;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.billing-details li {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
}

.billing-error {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bad-bg);
  color: var(--bad);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
  max-width: 100%;
}

.billing-notes,
.billing-source {
  font-size: 13px;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
  max-width: 100%;
}

.billing-config-card {
  border-radius: 14px;
  gap: 10px;
}

.billing-config-card label {
  display: grid;
  gap: 6px;
  max-width: 100%;
}

.billing-config-card input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.billing-config-card .settings-card-head {
  margin-bottom: 0;
}

.billing-config-card p {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}
