:root {
  --ink: #1e3028;
  --muted: #657067;
  --paper: #f4f1e9;
  --card: #fffdf8;
  --line: #dedfd4;
  --gold: #d9b576;
  --deep: #192b25;
  --danger: #a34332;
  --radius: 14px;
  --shadow: 0 12px 40px #15281b06;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
:is(button, input, select, textarea) {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 4.7vw, 4.9rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-bottom: 25px;
}
h1 em {
  font-weight: 400;
  color: #61745a;
}
h2 {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}
p {
  line-height: 1.6;
}
button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  padding: 10px 15px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: #ebece1;
  border-color: #a9b6a7;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #9c804d;
  outline-offset: 4px;
}
:is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  border: 1px solid #cfd4c8;
  border-radius: 8px;
  background: #fffefa;
  color: var(--ink);
  padding: 12px 13px;
  min-height: 44px;
  outline: none;
  margin-bottom: 17px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #6f8563;
  box-shadow: 0 0 0 3px #6f856322;
}
textarea {
  resize: vertical;
  min-height: 120px;
  font-family: monospace;
  font-size: 0.8rem;
}
input::placeholder,
textarea::placeholder {
  color: #838c82;
}
label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 7px;
}
small,
.optional {
  font-size: 0.75rem;
  color: var(--muted);
}
[hidden],
.hidden {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--card);
  padding: 16px;
  z-index: 10;
}
.skip-link:focus {
  top: 10px;
}
.app-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--deep);
  color: #e8ebde;
  padding: 38px 24px 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
  font-family: Georgia, serif;
  letter-spacing: 0.08em;
  font-size: 1.15rem;
}
.brand small {
  display: block;
  font:
    9px Arial,
    sans-serif;
  letter-spacing: 0.34em;
  color: #b7c2b2;
  margin-top: 7px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  font-style: italic;
  font-size: 34px;
  color: var(--gold);
  letter-spacing: -0.3em;
  border: 1px solid #66775b;
  border-radius: 50%;
  height: 51px;
  width: 51px;
  padding-left: 9px;
}
.brand-mark span {
  font-size: 24px;
  transform: translateY(6px);
}
.sidebar-caption {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #9faa97;
  margin: 52px 0 20px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  color: #c3cebf;
  background: none;
  text-align: left;
  padding: 14px 12px;
  font-size: 0.85rem;
}
.nav-item span {
  font-size: 0.75rem;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}
.nav-item:is(:hover, .active) {
  background: #304337;
  color: #fff8e7;
}
.nav-item.active {
  box-shadow: inset 2px 0 var(--gold);
}
.sidebar-note {
  margin-top: auto;
  padding: 65px 12px 34px;
}
.tiny-rule {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 20px;
}
.sidebar-note p {
  font:
    italic 25px/1.25 Georgia,
    serif;
  margin-bottom: 16px;
}
.sidebar-note small {
  color: #a0af9b;
  line-height: 1.7;
}
.logout-button {
  display: flex;
  justify-content: space-between;
  background: none;
  border-color: #3c5143;
  color: #d0d9c7;
  font-size: 0.8rem;
}
.logout-button:hover {
  background: #304337;
}
.workspace {
  padding: 0 clamp(22px, 4vw, 70px);
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  outline: none;
}
.topbar {
  height: 86px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.session-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0;
  font-size: 0.75rem;
}
.session-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #75905d;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 285px;
  align-items: center;
  gap: 28px;
  padding: 55px 0 42px;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  font-weight: 650;
  color: #78816f;
  margin-bottom: 19px;
}
.hero-description {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}
.film-art {
  padding: 16px 16px 0;
  transform: rotate(4deg);
  background: #e5e3d7;
  border-radius: 6px;
  box-shadow: 10px 15px 0 #d5d8c655;
}
.film-frame {
  aspect-ratio: 1.05;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
  color: #eee9cf;
  background:
    radial-gradient(ellipse at 72% 82%, #b4ad76aa, transparent 38%),
    linear-gradient(135deg, #819381, #334938 60%, #1c3325);
  border: 8px solid #f8f5e7;
  outline: 1px solid #c3c8b6;
}
.film-frame span {
  font:
    9px Arial,
    sans-serif;
  letter-spacing: 0.3em;
}
.film-frame strong {
  font:
    italic 32px/1.05 Georgia,
    serif;
  font-weight: 400;
}
.film-frame small {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #d6dfc7;
}
.film-caption {
  display: block;
  font: 7px monospace;
  letter-spacing: 0.17em;
  text-align: center;
  padding: 13px 0;
  color: #6a7662;
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 27px;
}
.step-number {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  background: #eef0e6;
  color: #7c886d;
  font-size: 12px;
  border-radius: 50%;
}
.panel-heading p {
  font-size: 0.77rem;
  color: var(--muted);
  margin: 0;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  margin-bottom: 24px;
}
.tab-btn {
  border: 0;
  background: none;
  border-radius: 0;
  padding: 0 0 13px;
  font-size: 0.8rem;
  color: var(--muted);
}
.tab-btn:hover {
  background: none;
}
.tab-btn.active {
  color: var(--ink);
  box-shadow: 0 2px #637b58;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.drop-zone {
  padding: 27px 18px;
  min-height: 210px;
  border: 1px dashed #aebca4;
  border-radius: 10px;
  background: #f4f6ee;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 11px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.drop-zone:hover,
.drop-zone.drag-over {
  background: #e6ebdc;
  border-color: #6d815b;
}
.drop-zone strong {
  font-size: 0.88rem;
  font-weight: 550;
}
.drop-zone > span:not(.upload-symbol) {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}
.upload-symbol {
  width: 43px;
  height: 43px;
  border: 1px solid #bdcbb1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 25px;
  color: #758764;
  margin-bottom: 5px;
}
.drop-zone.uploading {
  pointer-events: none;
  opacity: 0.85;
}
.field-note {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.provider-note {
  font-size: 0.75rem;
  line-height: 1.65;
  border-left: 2px solid #bac9a8;
  padding-left: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.advanced {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 20px;
}
.advanced summary,
details.panel > summary {
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 17px;
}
.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
  font-weight: 500;
}
.check-row input {
  width: 16px;
  min-height: 16px;
  accent-color: #456242;
  margin: 2px 0;
}
.check-row small {
  display: block;
  font-size: 0.75rem;
  line-height: 1.6;
  margin: 5px 0 13px;
}
.btn-primary,
.btn-submit {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff9e8;
  padding: 13px 20px;
  font-size: 0.82rem;
  font-weight: 550;
}
.btn-primary:hover,
.btn-submit:hover {
  background: #345640;
  color: #fff;
}
.full-width {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.btn-small,
.btn-secondary,
.btn-danger {
  display: inline-block;
  text-decoration: none;
  font-size: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 12px;
  background: var(--card);
  margin: 3px 5px 3px 0;
  line-height: 1.4;
}
.btn-secondary:hover {
  background: #eff1e7;
}
:is(.btn-danger, .btn-warning) {
  color: #974a38;
}
.btn-danger {
  border-color: #ddc1b7;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.section-header .eyebrow {
  margin-bottom: 7px;
}
.section-header h2,
.section-header h3 {
  margin-bottom: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.jobs-list,
.translations-list {
  display: grid;
  gap: 14px;
}
.job-card,
.translation-card,
.paused-job {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-wrap: anywhere;
  background: #fbfcf6;
}
.job-card {
  border-left: 3px solid #c3c8b7;
}
.job-card.completed {
  border-left-color: #769b61;
}
.job-card.failed {
  border-left-color: #bb6d55;
}
.job-card.processing {
  border-left-color: #ca9c4d;
}
.job-card p,
.translation-card p,
.paused-job p {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.job-title {
  font-size: 1rem;
}
.empty-state {
  padding: 35px 18px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 10px;
  margin-bottom: 0;
}
.error-message {
  color: var(--danger) !important;
  overflow-wrap: anywhere;
}
.progress-bar {
  height: 5px;
  border-radius: 5px;
  background: #dde5d5;
  overflow: hidden;
  margin: 10px 0;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: #658451;
  transition: width 0.3s;
}
.pipeline-stages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  margin: 20px 0;
}
.pipeline-stage {
  min-width: 0;
}
.stage-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  font-size: 0.75rem;
}
.stage-heading strong {
  font-weight: 600;
}
.stage-heading span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pipeline-stage progress {
  display: block;
  appearance: none;
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e4e8df;
  margin: 7px 0;
  accent-color: #658451;
}
.pipeline-stage progress::-webkit-progress-bar {
  background: #e4e8df;
  border-radius: 8px;
}
.pipeline-stage progress::-webkit-progress-value {
  background: #658451;
  border-radius: 8px;
  transition: width 0.25s;
}
.pipeline-stage progress::-moz-progress-bar {
  background: #658451;
  border-radius: 8px;
}
.pipeline-stage[data-status='running'] progress {
  accent-color: #b18b46;
}
.pipeline-stage[data-status='running'] progress::-webkit-progress-value {
  background: #b18b46;
}
.pipeline-stage[data-status='failed'] progress::-webkit-progress-value {
  background: #bb6d55;
}
.pipeline-stage[data-status='skipped'] {
  opacity: 0.55;
}
.pipeline-stage .stage-detail {
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.pipeline-stage progress:not([value])::-webkit-progress-bar {
  background: repeating-linear-gradient(100deg, #e4e8df 0 15px, #c4cdbb 15px 30px);
}
.audio-review-chunk {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}
.audio-review-chunk h3 {
  font-size: 0.85rem;
}
.audio-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.audio-pair strong {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 8px;
}
.audio-pair audio {
  display: block;
  width: 100%;
  margin: 8px 0;
}
@media (max-width: 600px) {
  .pipeline-stages,
  .audio-pair {
    grid-template-columns: 1fr;
  }
}
.upload-progress {
  width: 100%;
  font-size: 0.75rem;
  color: var(--muted);
}
.page-intro {
  padding: 54px 0 32px;
  max-width: 650px;
}
.page-intro p:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}
.scanner-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  border-block: 1px solid var(--line);
  padding: 28px 0;
  margin-bottom: 25px;
}
.scanner-stats strong {
  display: block;
  font:
    36px Georgia,
    serif;
  margin-bottom: 8px;
}
.scanner-stats span {
  font-size: 0.75rem;
  color: var(--muted);
}
.scanner-badge {
  font-size: 0.75rem;
  color: var(--muted);
}
.library-row {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 25px;
}
.library-row .section-header {
  margin-bottom: 10px;
}
#skippedList {
  font-size: 0.8rem;
  line-height: 1.7;
}
.current-job p {
  margin-bottom: 20px;
}
.current-job .eyebrow {
  margin-bottom: 6px;
}
.connection-explainer {
  background: #e8ecdf;
  border: 1px solid #d4deca;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 25px;
  font-size: 0.8rem;
}
.connection-explainer p {
  margin: 6px 0 0;
  color: var(--muted);
}
.connections-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.connection-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  min-width: 0;
}
.connection-card.wide {
  grid-column: 1/-1;
}
.connection-card h3 {
  font-size: 0.92rem;
}
.connection-card .section-header {
  margin-bottom: 20px;
}
.connection-badge {
  font-size: 0.75rem;
  background: #edf0e5;
  padding: 5px 8px;
  border-radius: 12px;
  color: #5b7151;
}
.connection-badge.missing {
  background: #f0ece2;
  color: #877b64;
}
.connection-feedback {
  font-size: 0.75rem;
  color: var(--muted);
  min-height: 1.4em;
  margin: 8px 0 0;
}
.account-panel {
  max-width: 800px;
}
.account-panel > p {
  font-size: 0.8rem;
  color: var(--muted);
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 45px;
  padding: 25px 0;
  font-size: 0.75rem;
  color: #7b8275;
  letter-spacing: 0.06em;
}
.notice,
#connectionStatus:not(:empty) {
  margin-top: 18px;
  padding: 13px 17px;
  border: 1px solid #d6bba8;
  border-radius: 8px;
  background: #fff1e4;
  color: #8d482e;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.notice.success {
  background: #eaf0df;
  border-color: #cedbbc;
  color: #42613b;
}
.modal {
  width: min(850px, 92vw);
  max-height: 85vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 20px 90px #08170e55;
}
.modal::backdrop {
  background: #0e211bb8;
  backdrop-filter: blur(5px);
}
:is(.modal-header, .modal-footer) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.modal-header h2 {
  margin: 0;
  overflow-wrap: anywhere;
}
.modal-close {
  font-size: 22px;
  border: 0;
  background: none;
  padding: 2px 10px;
}
.modal-body {
  padding: 25px;
}
.modal-body p {
  font-size: 0.83rem;
  overflow-wrap: anywhere;
}
.modal-footer {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}
.logs-section {
  margin-top: 28px;
}
.logs-container {
  max-height: 260px;
  overflow: auto;
  background: #1c3027;
  color: #c1d5b7;
  font: 11px/1.8 monospace;
  border-radius: 10px;
  padding: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.review-cues {
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  margin-top: 20px;
}
.login-page {
  background: var(--deep);
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.login-story {
  padding: 55px clamp(30px, 6vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f0edda;
  background: radial-gradient(ellipse at 20% 70%, #43604966, transparent 60%), var(--deep);
  gap: 75px;
}
.login-story h1 {
  font-size: clamp(3.5rem, 5.4vw, 6rem);
  letter-spacing: -0.04em;
}
.login-story h1 em {
  color: var(--gold);
}
.login-story .eyebrow,
.login-footnote {
  color: #b6c5aa;
  font-size: 12px;
  letter-spacing: 0.16em;
}
.login-story p:last-child {
  color: #a8bba2;
  font-size: 0.8rem;
}
.login-form-panel {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px clamp(30px, 6vw, 100px);
}
.login-form-panel h2 {
  font:
    40px Georgia,
    serif;
  margin: 6px 0 18px;
}
.login-form-panel > p {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 350px;
  margin-bottom: 35px;
}
.login-form-panel form {
  max-width: 420px;
}
.login-form-panel > small {
  margin-top: 30px;
  line-height: 1.6;
}
.login-form-panel #loginError {
  font-size: 0.8rem;
  margin-top: 16px;
}
@media (min-width: 1700px) {
  .hero {
    grid-template-columns: 1fr 320px;
  }
  .film-frame {
    aspect-ratio: 1.1;
  }
  .hero h1 {
    font-size: 5.5rem;
  }
}
@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 17px;
  }
  .brand {
    font-size: 0.97rem;
    gap: 10px;
  }
  .hero {
    grid-template-columns: 1fr 210px;
  }
  .film-frame {
    padding: 18px;
  }
  .film-frame strong {
    font-size: 26px;
  }
  .studio-grid {
    gap: 16px;
  }
  .panel {
    padding: 21px;
  }
  .field-pair {
    gap: 10px;
  }
  .topbar > span:first-child {
    font-size: 12px;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
}
@media (max-width: 900px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .film-art {
    display: none;
  }
  .connections-grid {
    grid-template-columns: 1fr;
  }
  .scanner-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .login-layout {
    grid-template-columns: 1fr 1fr;
  }
  .login-story {
    padding: 40px 30px;
  }
  .login-form-panel {
    padding: 40px 30px;
  }
  .login-story h1 {
    font-size: 3.5rem;
  }
}
@media (max-width: 650px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 20px;
  }
  .brand-mark {
    height: 38px;
    width: 38px;
    font-size: 27px;
    padding-left: 7px;
  }
  .brand-mark span {
    font-size: 18px;
  }
  .brand small {
    font-size: 12px;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 20px;
  }
  .nav-item {
    font-size: 0.75rem;
    justify-content: center;
    padding: 10px 2px;
  }
  .nav-item span,
  .sidebar-caption,
  .sidebar-note {
    display: none;
  }
  .logout-button {
    position: absolute;
    right: 20px;
    top: 23px;
    padding: 8px 10px;
    font-size: 0.75rem;
    gap: 12px;
  }
  .workspace {
    padding: 0 20px;
  }
  .topbar {
    height: 62px;
  }
  .topbar > span:first-child {
    max-width: 140px;
    line-height: 1.6;
  }
  .session-badge {
    font-size: 0.75rem;
  }
  .hero {
    padding: 38px 0 30px;
  }
  .hero h1,
  .page-intro h1 {
    font-size: 3.35rem;
  }
  .hero-description {
    font-size: 0.8rem;
  }
  .panel {
    padding: 21px 18px;
  }
  .section-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .field-pair {
    gap: 12px;
  }
  .connections-grid {
    gap: 14px;
  }
  .connection-card {
    padding: 20px;
  }
  .page-intro {
    padding: 38px 0 20px;
  }
  .workspace-footer {
    font-size: 0.75rem;
  }
  .modal-body {
    padding: 19px;
  }
  .login-layout {
    display: block;
  }
  .login-story {
    min-height: 380px;
    padding: 30px;
    gap: 35px;
  }
  .login-story h1 {
    font-size: 2.9rem;
    margin-bottom: 15px;
  }
  .login-story h1 br:last-of-type {
    display: none;
  }
  .login-footnote {
    display: none;
  }
  .login-form-panel {
    min-height: 440px;
    padding: 38px 30px;
  }
  .login-form-panel h2 {
    font-size: 32px;
  }
  .login-form-panel .eyebrow {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pipeline-stage progress::-webkit-progress-value {
    transition: none;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

button[data-busy] {
  cursor: wait;
}
