:root {
  --bg: #f5efe3;
  --ink: #17313b;
  --muted: #5d6d73;
  --panel: #fffdf8;
  --accent: #0f8a83;
  --accent-dark: #0a5e5a;
  --line: #d7d0c2;
  --warm: #ffd985;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Arial", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(15, 138, 131, 0.12), transparent 30%),
    linear-gradient(180deg, #f7f2e8 0%, #f1ead9 100%);
}

a {
  color: var(--accent-dark);
}

.page {
  width: min(1680px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 16px 12px 34px;
}

.page-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-panel {
  width: min(520px, 100%);
}

.auth-form {
  grid-template-columns: 1fr;
}

.page > * + * {
  margin-top: 14px;
}

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

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

.breadcrumbs-link,
.breadcrumbs-current {
  font-size: 13px;
  font-weight: 600;
}

.breadcrumbs-link {
  color: var(--accent-dark);
  text-decoration: none;
}

.breadcrumbs-link:hover {
  text-decoration: underline;
}

.breadcrumbs-current {
  color: var(--muted);
}

.breadcrumbs-sep {
  color: var(--line);
  font-size: 13px;
}

.topbar-right {
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
  white-space: nowrap;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dark);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.82);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: stretch;
}

.hero.compact {
  align-items: center;
}

.report-hero-minimal {
  padding-bottom: 4px;
}

.report-hero-minimal h1 {
  margin-bottom: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  font-size: 12px;
  margin: 0 0 8px;
}

h1, h2, h3 {
  margin: 0 0 8px;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
  font-size: 14px;
}

.meta-card,
.card,
.panel {
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(24, 43, 50, 0.06);
}

.meta-card {
  min-width: 220px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.compact-meta {
  min-width: 240px;
}

.meta-label {
  color: var(--muted);
  font-size: 13px;
}

.meta-value {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
}

.meta-link {
  margin: 10px 0 0;
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 12px;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.setup-card {
  border: 1px solid #ece5d9;
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.setup-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(23, 49, 59, 0.28);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px;
  overflow-y: auto;
}

.modal-panel {
  width: min(1080px, 100%);
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(20, 40, 46, 0.16);
  padding: 20px;
  position: relative;
}

.modal-panel > * + * {
  margin-top: 14px;
}

.modal-hidden {
  display: none;
}

.modal-panel-narrow {
  width: min(760px, 100%);
}

.settings-form.modal-form-stack {
  grid-template-columns: 1fr;
}

.field-span-full {
  grid-column: 1 / -1;
}

.modal-three-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}

.onboarding-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.summary-main {
  border: 1px solid #d8dccc;
  border-radius: 18px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(217, 240, 238, 0.72), rgba(255, 253, 248, 0.95));
}

.summary-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
}

.summary-email {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  word-break: break-word;
}

.summary-text {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.summary-side {
  display: grid;
  gap: 8px;
}

.summary-chip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid #e6ddcc;
  background: rgba(255, 255, 255, 0.86);
}

.summary-chip strong {
  white-space: nowrap;
}

.summary-chip-done {
  background: #d9f0ee;
  color: #0d615c;
  border-color: #b5dfda;
}

.summary-chip-todo {
  background: #fff2cc;
  color: #7f5d00;
  border-color: #f1dfa0;
}

.onboarding-steps {
  display: grid;
  gap: 12px;
}

.onboarding-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid #ece5d9;
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #17313b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}

.step-body h3 {
  margin: 0 0 6px;
}

.step-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.step-body .actions {
  margin-top: 12px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent-dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: white;
}

.card {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.card-key {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.card h2 {
  font-size: 20px;
  line-height: 1.2;
}

.card-title-link {
  color: inherit;
  text-decoration: none;
}

.card-title-link:hover {
  text-decoration: underline;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 124px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.status-compact {
  min-height: 28px;
  min-width: 0;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 12px;
  white-space: nowrap;
}

.status-run {
  background: #fff2cc;
  color: #7f5d00;
}

.status-idle {
  background: #d9f0ee;
  color: #0d615c;
}

.status-new {
  background: #e7f1ff;
  color: #1f5d99;
}

.status-warning {
  background: #fff2cc;
  color: #7f5d00;
}

.status-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 14px 0 18px;
}

.status-summary-grid h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

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

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.facts div {
  border: 1px solid #ece5d9;
  border-radius: 14px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.76);
}

.facts dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.facts dd {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  word-break: break-word;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}

.actions.vertical {
  flex-direction: column;
  align-items: stretch;
  min-width: 188px;
}

.actions form {
  margin: 0;
  display: flex;
}

.button {
  appearance: none;
  border: none;
  border-radius: 12px;
  min-height: 38px;
  min-width: 188px;
  padding: 9px 13px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  font-size: 13px;
}

.actions .button,
.actions form .button {
  width: auto;
  min-width: 0;
}

.actions-triplet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.actions-triplet .button,
.actions-triplet form .button,
.actions-triplet form {
  width: 100%;
}

.actions-triplet .button,
.actions-triplet form .button {
  min-width: 0;
  min-height: 33px;
  padding: 7px 10px;
  font-size: 12px;
}

.actions.vertical .button,
.actions.vertical form .button {
  width: 100%;
}

.actions-compact .button,
.actions-compact form .button {
  min-height: 30px;
  min-width: 0;
  padding: 5px 10px;
  font-size: 12px;
}

.button-small {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 10px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.button-light {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent-dark);
}

.button.primary {
  background: var(--accent-dark);
}

.page-error {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-panel {
  width: min(720px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 40px rgba(24, 43, 50, 0.1);
}

.error-code {
  width: fit-content;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #ffe7b3;
  color: #634800;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0;
}

.error-hint {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  text-decoration: none;
}

.panel {
  padding: 14px;
}

.run-toolbar-panel {
  padding: 16px;
}

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

.progress-hero {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(217, 240, 238, 0.75), rgba(255, 253, 248, 0.96));
  border: 1px solid #cfe2df;
}

.progress-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 15px;
}

.progress-bar-shell {
  margin-top: 12px;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(23, 49, 59, 0.08);
}

.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f8a83, #36b8aa);
  transition: width 0.5s ease;
}

.progress-bar-fill-indeterminate {
  width: 35% !important;
  animation: progress-slide 1.8s ease-in-out infinite;
}

.progress-hero-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.run-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c8d2d5;
  flex: 0 0 auto;
}

.run-dot-live {
  background: #0f8a83;
  box-shadow: 0 0 0 0 rgba(15, 138, 131, 0.45);
  animation: run-pulse 1.8s infinite;
}

@keyframes run-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(15, 138, 131, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(15, 138, 131, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(15, 138, 131, 0);
  }
}

@keyframes progress-slide {
  0% {
    transform: translateX(-120%);
  }
  50% {
    transform: translateX(110%);
  }
  100% {
    transform: translateX(260%);
  }
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 12px;
}

.settings-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-form span {
  font-size: 12px;
  color: var(--muted);
}

.settings-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  font-size: 14px;
}

.settings-form select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 34px 8px 11px;
  background: white;
  color: var(--ink);
  font-size: 14px;
}

.filters-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px 12px;
  align-items: end;
  margin: 16px 0 12px;
  padding: 12px;
  border: 1px solid #ece5d9;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
}

.filters-form .form-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.6fr));
  gap: 10px;
  align-items: end;
}

.filters-form label {
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.filters-form input,
.filters-form select {
  min-height: 38px;
  border-color: #dfd8ca;
  background: rgba(255, 253, 248, 0.9);
}

.filters-form input:focus,
.filters-form select:focus {
  outline: 2px solid rgba(15, 138, 131, 0.16);
  border-color: #90c9c4;
}

.filters-form .compact-actions {
  margin-top: 0;
  align-self: end;
  flex-wrap: nowrap;
}

.filters-form .button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

.filters-form .button-light {
  background: rgba(255, 253, 248, 0.76);
  border-color: #b8d8d4;
}

.filters-form .button-light:hover {
  background: #eaf6f4;
  border-color: #7ebbb6;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.settings-form.modal-form-stack .form-actions {
  grid-column: 1 / -1;
}

.helper-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  font-size: 13px;
}

.notice-banner {
  padding: 12px 14px;
  border-radius: 16px;
  background: #e2f7ef;
  border: 1px solid #b8e5d2;
  color: #0d615c;
  line-height: 1.4;
  font-size: 14px;
}

.file-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.stack {
  display: grid;
  gap: 12px;
}

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

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

.settings-head {
  margin-bottom: 12px;
}

.inline-report {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}

.inline-links-spaced {
  margin-top: 12px;
}

.stacked-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 4px;
}

.inline-report-label {
  color: var(--muted);
  font-size: 12px;
}

.compact-actions {
  margin-top: 10px;
}

.report-panel {
  background: linear-gradient(135deg, rgba(15, 138, 131, 0.08), rgba(255, 255, 255, 0.92));
}

.report-name {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.file-list {
  margin: 0;
  padding-left: 18px;
}

.file-list li {
  margin-bottom: 8px;
}

.table-wrap {
  overflow-x: auto;
}

.project-table-panel {
  padding: 16px;
}

.project-table-wrap {
  margin-top: 8px;
}

.project-table {
  width: 100%;
  min-width: 1240px;
  border-collapse: collapse;
}

.project-table th,
.project-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #ece5d9;
  text-align: left;
  vertical-align: middle;
}

.project-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.project-table tbody tr:hover {
  background: rgba(15, 138, 131, 0.04);
}

.project-progress-row:hover {
  background: transparent !important;
}

.project-alert-row:hover {
  background: transparent !important;
}

.dashboard-progress {
  padding: 10px 4px 2px;
}

.dashboard-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  margin-bottom: 8px;
}

.dashboard-progress-meta {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-warning {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #efc8c8;
  border-radius: 12px;
  background: #fff7f7;
  color: #7e2424;
  font-size: 13px;
}

.dashboard-warning span,
.dashboard-warning p {
  margin: 0;
}

.dashboard-warning span {
  color: #965151;
  font-size: 12px;
}

.project-table-footer {
  display: flex;
  justify-content: center;
  padding-top: 14px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 14px;
}

.pagination-button,
.pagination-gap {
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.pagination-button {
  padding: 6px 10px;
  border: 1px solid #d9eee9;
  background: rgba(255, 253, 248, 0.86);
  color: var(--accent-dark);
  text-decoration: none;
}

.pagination-button:hover {
  background: #eaf6f4;
  border-color: #9acfc9;
}

.pagination-current {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  pointer-events: none;
}

.pagination-edge {
  min-width: 42px;
}

.pagination-gap {
  color: var(--muted);
}

.plus-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 138, 131, 0.2);
}

.project-title-cell {
  min-width: 300px;
}

.project-title-link {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.project-title-link:hover {
  text-decoration: underline;
}

.project-title-button {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.project-title-button:hover {
  text-decoration: underline;
}

.panel-embedded {
  margin-top: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.panel-embedded h3 {
  margin: 0;
  font-size: 18px;
}

.project-history-table {
  min-width: 0;
}

.modal-panel-report {
  width: min(1360px, 100%);
}

.report-preview-shell {
  border: 1px solid #ece5d9;
  border-radius: 18px;
  overflow: hidden;
  background: white;
}

.report-preview-shell iframe {
  display: block;
  width: 100%;
  height: min(78vh, 920px);
  border: none;
  background: white;
}

.mini-link-button {
  appearance: none;
  border: 1px solid #cfe5df;
  background: #f7fbfa;
  padding: 6px 10px;
  margin: 0;
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  border-radius: 10px;
  line-height: 1;
  font-size: 12px;
  font-weight: 700;
}

.table-subtle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.mini-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 68px;
}

.mini-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #cfe5df;
  background: #f7fbfa;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
}

.mini-link-button:hover,
.mini-links a:hover {
  background: #eef8f5;
  border-color: #9acfc2;
}

.icon-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  align-items: center;
}

.icon-actions form {
  margin: 0;
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--accent-dark);
  background: transparent;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.icon-button-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.icon-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.preview-table {
  margin-top: 12px;
}

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

th, td {
  padding: 8px 10px;
  border-bottom: 1px solid #ece5d9;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
}

.log-box {
  background: #1f2b31;
  color: #eff7f5;
  padding: 14px;
  border-radius: 14px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 13px;
}

.warning-box {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff1f1;
  color: #7e2424;
  border: 1px solid #efc8c8;
  font-size: 13px;
}

.run-failure-box {
  display: grid;
  gap: 6px;
}

.run-failure-box span,
.run-failure-box p {
  margin: 0;
}

@media (max-width: 900px) {
  .page {
    width: min(100%, calc(100vw - 16px));
    padding-inline: 8px;
  }

  .hero,
  .hero.compact {
    flex-direction: column;
  }

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

  .topbar-right {
    justify-content: space-between;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions.vertical,
  .meta-card {
    min-width: 100%;
  }

  .actions-triplet {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .status-summary-grid {
    grid-template-columns: 1fr;
  }

  .filters-form,
  .filters-form .form-grid {
    grid-template-columns: 1fr;
  }

  .filters-form .compact-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .project-table {
    min-width: 980px;
  }
}
