:root {
  color-scheme: light;
  --canvas: #f5f7f9;
  --paper: #ffffff;
  --paper-soft: #f8fafc;
  --ink: #10283e;
  --muted: #596b7b;
  --line: #dce4eb;
  --line-strong: #c9d5df;
  --green: #123b5a;
  --green-dark: #0a2a44;
  --green-light: #edf3f7;
  --dark: #0a2339;
  --dark-panel: #173a55;
  --gold: #b79b60;
  --gold-light: #e8d5a6;
  --danger: #a63d3b;
  --radius: 14px;
  font-family: "Segoe UI Variable", "Segoe UI", Aptos, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); }
::selection { background: #e8d5a6; color: #10283e; }
a { color: var(--green-dark); text-underline-offset: 3px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .53; cursor: not-allowed; }
button, input, textarea { accent-color: var(--green); }
:where(a, button, input, textarea):focus-visible {
  outline: 3px solid #d4b674;
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: 1200px; min-height: 78px; margin: auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand-logo { display: block; width: 43px; height: 46px; object-fit: contain; flex-shrink: 0; }
.brand-lockup { display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.brand-name { font-size: 1.16rem; font-weight: 740; letter-spacing: -.033em; line-height: 1.25; white-space: nowrap; }
.brand-stop { color: #a08348; }
.brand-caption { color: #697989; font-size: .61rem; letter-spacing: .18em; font-weight: 710; }
.header-tools { display: flex; align-items: center; gap: 13px; }
.logout-form { margin: 0; }
.logout-form button.logout-button { border: 1px solid var(--line-strong); background: #fff; color: var(--ink); border-radius: 9px; padding: 7px 12px; min-height: 36px; font-weight: 700; font-size: .79rem; white-space: nowrap; }
.logout-form button.logout-button:hover { border-color: var(--gold); background: #fcf9f0; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a { color: #56645d; font-size: .9rem; font-weight: 650; text-decoration: none; padding: 28px 0 24px; border-bottom: 3px solid transparent; transition: color 160ms ease, border-color 160ms ease; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.local-tag { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: .74rem; letter-spacing: .03em; color: #5f6e65; font-weight: 650; }
.local-tag-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.container { width: min(100%, 1200px); margin: 0 auto; padding: 30px 28px 90px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(325px, .94fr); gap: clamp(26px, 4vw, 66px); align-items: center; padding: 44px; border-radius: 21px; background: var(--dark); color: #f7fbf8; }
.hero-copy { min-width: 0; }
.hero-copy h1 { font-size: 2.75rem; line-height: 1.13; letter-spacing: -.034em; font-weight: 680; margin: 0 0 18px; max-width: 550px; }
.hero-copy h1 span { color: var(--gold-light); }
.hero-copy p { color: #d6e1e9; max-width: 48ch; font-size: .98rem; line-height: 1.75; margin: 0; }
.hero-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 28px; color: #ecdfc2; font-weight: 640; font-size: .82rem; }
.hero-steps span:not(:last-child)::after { content: ""; display: inline-block; width: 18px; height: 1px; margin: 0 0 4px 13px; background: #ac9464; }

.connection-panel { min-width: 0; background: var(--dark-panel); border: 1px solid #45637b; border-radius: 14px; padding: 26px 28px; }
.connection-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.connection-heading h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.014em; margin: 0 0 7px; color: #fff; }
.connection-state { margin: 0 0 18px; color: #d7e4eb; font-size: .88rem; line-height: 1.5; }
.connection-indicator { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: .72rem; color: #dbe5ec; padding: 5px 9px; background: #264962; border-radius: 999px; }
.connection-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #bac4bc; }
.connection-dot[data-state="connected"] { background: #70e2a6; box-shadow: 0 0 0 3px #70e2a622; }
.connection-dot[data-state="waiting"], .connection-dot[data-state="starting"] { background: #ffcb73; }
.connection-dot[data-state="error"] { background: #ff9591; }
.button-connect { background: var(--gold-light); color: #172c3c; border: 1px solid var(--gold-light); border-radius: 9px; padding: 12px 18px; font-weight: 720; min-height: 46px; transition: background 160ms ease, transform 160ms ease; }
.button-connect:hover:not(:disabled) { background: #f3e6c3; transform: translateY(-1px); }
.connection-help { color: #c7d6e1; font-size: .76rem; line-height: 1.65; margin: 15px 0 0; }
.qr-panel { color: #e9f6ed; margin-top: 18px; font-size: .84rem; }
.qr-panel p { margin: 0 0 14px; line-height: 1.6; }
.qr-panel img { display: block; width: 220px; height: 220px; max-width: 100%; background: white; border: 8px solid white; border-radius: 10px; object-fit: contain; }

.workspace-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 42px 0 25px; }
.workspace-heading h2, .page-heading h1 { font-size: 1.62rem; line-height: 1.22; font-weight: 725; letter-spacing: -.03em; margin: 0 0 7px; }
.workspace-heading p, .page-heading p { color: var(--muted); font-size: .93rem; margin: 0; max-width: 70ch; }
.workflow-count { white-space: nowrap; border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; color: #54655a; font-weight: 700; font-size: .8rem; background: var(--paper); }
.campaign-form { display: flex; flex-direction: column; }
.work-section { display: grid; grid-template-columns: minmax(205px, .36fr) minmax(0, 1fr); gap: 38px; border-top: 1px solid var(--line-strong); padding: 29px 0 32px; }
.step-lead { display: flex; align-items: flex-start; gap: 15px; }
.step-index { color: #7c632e; background: #f2e9d6; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: .83rem; font-variant-numeric: tabular-nums; font-weight: 750; flex: 0 0 38px; }
.step-lead h3 { margin: 2px 0 7px; font-size: 1.025rem; line-height: 1.3; letter-spacing: -.02em; font-weight: 725; }
.step-lead p { margin: 0; max-width: 24ch; font-size: .85rem; color: var(--muted); line-height: 1.65; }
.step-lead .compact { display: inline-flex; margin-top: 18px; }
.step-body { min-width: 0; }
.field-label { display: block; margin-bottom: 9px; font-size: .86rem; color: #2a3930; font-weight: 700; }
.optional { color: #526459; font-size: .78rem; font-weight: 500; margin-left: 5px; }
input[type=file], input[type=number], .text-input, textarea {
  width: 100%; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--paper); padding: 12px 14px; min-height: 47px; font-size: .94rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
input[type=file] { padding: 10px; font-size: .82rem; }
input[type=file]::file-selector-button { border: 1px solid #d9e2ed; background: #eef3f7; color: var(--green-dark); border-radius: 7px; padding: 9px 12px; margin-right: 13px; font: inherit; font-weight: 700; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: #e3edf5; }
input[type=number] { font-variant-numeric: tabular-nums; }
input:hover, textarea:hover { border-color: #9eb5a7; }
input:focus, textarea:focus { border-color: #b69a63; box-shadow: 0 0 0 3px #ead9ae80; outline: none; }
textarea { resize: vertical; min-height: 119px; line-height: 1.6; }
textarea::placeholder, input::placeholder { color: #506257; opacity: 1; }
.hint { color: var(--muted); font-size: .815rem; line-height: 1.65; margin: 9px 0 0; max-width: 76ch; }
.hint strong { color: #44564b; }
.radio-box { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.radio-option { display: flex; gap: 14px; align-items: flex-start; padding: 17px 20px; cursor: pointer; transition: background 160ms ease; }
.radio-option + .radio-option { border-top: 1px solid var(--line); }
.radio-option:hover { background: #f8faf8; }
.radio-option:has(input:checked) { background: #eef3f8; }
.radio-option input { width: 17px; height: 17px; flex-shrink: 0; margin: 3px 0 0; }
.radio-option strong, .radio-option small { display: block; }
.radio-option strong { color: var(--ink); font-weight: 720; font-size: .92rem; }
.radio-option small { color: var(--muted); font-weight: 430; font-size: .81rem; line-height: 1.5; margin-top: 3px; }
.branch-instructions { margin: 0 0 12px; }
#branches { display: flex; flex-direction: column; gap: 16px; }
.branch-card { background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 22px; min-width: 0; }
.branch-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.branch-heading strong { font-size: .97rem; color: var(--ink); letter-spacing: -.01em; }
.branch-heading .pill { font-weight: 650; }
.branch-card > .field-label:not(:first-of-type) { margin-top: 17px; }
.media-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.media-fields > div { min-width: 0; }
.media-fields input[type=file] { min-width: 0; font-size: .76rem; }
.media-fields input[type=file]::file-selector-button { display: block; margin: 0 0 8px; }
.local-preview, .campaign-preview { display: block; max-width: 100%; max-height: 270px; border-radius: 9px; object-fit: contain; object-position: left top; margin-top: 12px; }
.local-video-preview, .campaign-preview-video { display: block; max-width: 100%; width: 480px; max-height: 310px; margin-top: 12px; border-radius: 9px; background: var(--dark); }
.campaign-preview-video { color: #f2f8f3; }
.branch-card .hint { margin-top: 13px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

button:not(.text-button):not(.button-connect):not(.login-reveal):not(.login-submit):not(.logout-button) { border: 1px solid var(--green); background: var(--green); color: #fff; min-height: 44px; border-radius: 9px; padding: 11px 18px; font-weight: 720; font-size: .9rem; transition: background 160ms ease, border-color 160ms ease, transform 160ms ease; }
button:not(.text-button):not(.button-connect):not(.login-reveal):not(.login-submit):not(.logout-button):hover:not(:disabled) { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }
button.secondary { color: var(--green-dark) !important; background: var(--paper) !important; border: 1px solid #b8c9d8 !important; }
button.secondary:hover:not(:disabled) { background: #edf3f8 !important; }
button.danger { color: #9d3737 !important; background: #fff3f2 !important; border-color: #f0cecb !important; }
button.danger:hover:not(:disabled) { background: #fbe1df !important; }
button.compact { min-height: 38px !important; padding: 8px 12px !important; font-size: .81rem !important; }
.text-button { border: 0; background: transparent; color: var(--danger); font-size: .8rem; font-weight: 700; padding: 6px; }
.text-button:hover { text-decoration: underline; }
.submit-panel { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 26px 30px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); margin-top: 8px; box-shadow: 0 8px 25px #1c30200d; }
.submit-panel strong { font-size: .99rem; }
.submit-panel p { color: var(--muted); margin: 3px 0 0; font-size: .85rem; }
.submit-panel button { min-width: 200px; }

.site-footer { max-width: 1200px; margin: 0 auto; padding: 14px 28px 24px; border-top: 1px solid var(--line); color: #56697a; font-size: .78rem; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-brand { display: inline-flex; align-items: center; justify-content: center; width: 100px; flex-shrink: 0; }
.footer-brand img { display: block; width: 100px; height: 84px; object-fit: contain; }
.alert { background: #fff4f2; border: 1px solid #eebeb7; color: #84332b; border-radius: 10px; padding: 14px 16px; margin-bottom: 22px; font-size: .92rem; }

/* Shared treatment for review and campaign monitoring */
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 26px 0; }
.page-heading h1 { font-size: 2rem; margin-bottom: 8px; }
.page-heading .back { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line-strong); background: var(--line); border-radius: var(--radius); overflow: hidden; margin: 8px 0 30px; }
.stats > div { background: var(--paper); padding: 24px 26px; }
.stats strong { font-size: 2.1rem; font-weight: 725; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; display: block; }
.stats span { display: block; margin-top: 8px; color: var(--muted); font-size: .83rem; }
.review-meta { display: flex; flex-wrap: wrap; gap: 16px 35px; margin-bottom: 32px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.review-meta strong { color: var(--ink); }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 16px; }
.section-title h2, .detail-section > h2, .monitor-panel h2 { font-size: 1.12rem; font-weight: 720; letter-spacing: -.018em; margin: 0; }
.detail-section { margin: 32px 0; }
.preview { background: var(--paper-soft); padding: 16px 18px; border-radius: 9px; border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .91rem; color: var(--ink); line-height: 1.6; margin: 10px 0; }
.pill { font-size: .8rem; font-weight: 730; border-radius: 999px; padding: 6px 11px; background: #eff2f8; color: var(--green-dark); white-space: nowrap; }
.number-list { list-style: none; padding: 0 14px; margin: 13px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); max-height: 330px; overflow: auto; }
.number-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid #e7ece8; color: #39473e; font-size: .86rem; overflow-wrap: anywhere; }
.number-list li:last-child { border: 0; }
.number-list li strong { color: var(--green-dark); }
.consent { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid var(--line-strong); background: var(--paper-soft); border-radius: 10px; line-height: 1.55; font-size: .86rem; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.review-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.review-actions button { flex: 1; min-width: 210px; }
.back { color: var(--green-dark); text-decoration: none; font-weight: 660; font-size: .85rem; }
.back:hover { text-decoration: underline; }
.review-actions .back { width: 100%; text-align: center; margin-top: 6px; }
.monitor-panel { background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 23px 25px; margin: 20px 0; }
.monitor-panel h2 { margin-bottom: 15px; }
.progress-track { height: 8px; background: #edf0ed; border-radius: 30px; overflow: hidden; margin-bottom: 11px; }
.progress-bar { height: 100%; width: 0%; background: var(--green); border-radius: inherit; transition: width 250ms ease; }
.progress-caption { color: var(--muted); font-size: .82rem; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions button { min-width: 140px; flex: 1; }
.branch-stats { list-style: none; padding: 0; margin: 0; }
.branch-stats li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.branch-stats li:last-child { border: 0; }
.branch-stats li span { color: var(--muted); font-variant-numeric: tabular-nums; }
.monitor-log .number-list { border: 0; border-radius: 0; max-height: 360px; margin: 0; padding: 0; }
.monitor-log .number-list li { padding: 10px 0; font-variant-numeric: tabular-nums; }
.status-banner { display: flex; align-items: center; gap: 12px; background: var(--dark); color: #f2f9f4; padding: 17px 21px; border-radius: var(--radius); }
.status-banner::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9bddba; flex-shrink: 0; }
.status-banner[data-state="idle"]::before { background: #a9bbb0; }
.status-banner p { margin: 0; color: #f2f9f4; font-size: .91rem; }
.status-banner[data-state="error"]::before, .status-banner[data-state="cancelled"]::before { background: #ee9b91; }
.status-banner[data-state="paused"]::before { background: #f4cc79; }

/* Vastor private-access screen */
.login-page { background: #f5f7f9; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); }
.login-aside {
  background: var(--dark); color: white; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(32px, 5.2vw, 82px);
  position: relative; isolation: isolate; overflow: hidden;
}
.login-aside::after {
  content: ""; position: absolute; z-index: -1; width: 620px; height: 620px;
  right: -350px; bottom: -250px; border: 1px solid #d8c18c33; border-radius: 50%;
  box-shadow: 0 0 0 85px #d8c18c08, 0 0 0 170px #d8c18c06;
  pointer-events: none;
}
.login-aside-top { display: flex; align-items: center; gap: 14px; }
.login-symbol { width: 51px; height: 52px; object-fit: contain; padding: 6px; background: #fff; border-radius: 11px; }
.login-identity { color: #fff; font-weight: 750; letter-spacing: .12em; font-size: .88rem; }
.login-identity span { display: block; font-size: .57rem; color: var(--gold-light); letter-spacing: .32em; }
.login-intro { padding: 65px 0; max-width: 540px; }
.login-eyebrow { display: block; font-size: .71rem; font-weight: 710; color: var(--gold-light); letter-spacing: .2em; margin-bottom: 24px; }
.login-intro h1 { font-size: clamp(3.4rem, 5.5vw, 5.5rem); font-weight: 650; letter-spacing: -.055em; line-height: 1.07; margin: 0 0 27px; }
.login-intro h1 em { font-weight: 600; font-style: normal; color: var(--gold-light); }
.login-intro p { color: #cbdae5; font-size: 1rem; line-height: 1.85; max-width: 42ch; margin: 0; }
.login-aside-bottom { display: flex; align-items: center; gap: 13px; color: #a5b8c8; font-size: .78rem; font-weight: 580; }
.login-line { height: 1px; width: 36px; background: var(--gold); flex-shrink: 0; }
.login-main { display: flex; align-items: center; justify-content: center; padding: 52px 32px; }
.login-card { width: 100%; max-width: 455px; }
.login-logo { display: block; width: 136px; height: 115px; object-fit: contain; object-position: left center; margin: 0 0 32px; }
.login-card-heading h2 { font-size: clamp(1.85rem, 3vw, 2.3rem); letter-spacing: -.043em; line-height: 1.18; margin: 0 0 11px; font-weight: 750; }
.login-card-heading p { color: var(--muted); font-size: .95rem; line-height: 1.7; margin: 0 0 34px; }
.login-form { display: flex; flex-direction: column; }
.login-form .field-label { font-size: .86rem; margin-bottom: 9px; }
.login-form input[type=text], .login-form input[type=password], .login-password input[type=text] {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 14px 16px;
  background: #fff; color: var(--ink); font-size: 1rem; min-height: 52px;
}
.login-form #username { margin-bottom: 21px; }
.login-password { position: relative; margin-bottom: 27px; }
.login-password input { padding-right: 98px !important; }
.login-password .login-reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--green-dark); padding: 8px 11px; font-size: .78rem; font-weight: 700; border-radius: 7px; }
.login-password .login-reveal:hover { background: #edf3f8; }
.login-submit { display: flex; justify-content: space-between; align-items: center; gap: 18px; width: 100%; border: 1px solid var(--green); background: var(--green); color: #fff; padding: 14px 18px; min-height: 56px; border-radius: 10px; font-size: .95rem; font-weight: 750; transition: background 160ms ease, transform 160ms ease; }
.login-submit:hover { background: var(--green-dark); transform: translateY(-1px); }
.login-submit span { font-size: 1.45rem; font-weight: 400; line-height: 1; }
.login-alert { margin: 0 0 24px; }
.login-private { display: flex; align-items: center; justify-content: center; gap: 9px; color: #758595; font-size: .77rem; margin: 28px 0 0; }
.login-lock { color: #b79b60; font-size: .6rem; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(290px, .9fr); gap: 25px; padding: 30px; }
  .hero-copy h1 { font-size: 2.15rem; }
  .connection-panel { padding: 20px; }
  .work-section { grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
  .login-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .login-aside { padding: 42px 30px; }
  .login-intro h1 { font-size: 3.45rem; }
}
@media (max-width: 740px) {
  .header-inner { padding: 0 20px; min-height: 68px; gap: 12px; }
  .local-tag { display: none; }
  .main-nav { gap: 17px; }
  .main-nav a { padding: 23px 0 19px; font-size: .8rem; }
  .container { padding: 20px 18px 65px; }
  .hero { grid-template-columns: 1fr; padding: 28px; }
  .hero-copy h1 { font-size: 2.15rem; }
  .hero-steps { margin-top: 17px; }
  .work-section { grid-template-columns: 1fr; gap: 19px; padding: 24px 0 28px; }
  .step-lead p { max-width: none; }
  .step-lead .compact { margin-top: 12px; }
  .workspace-heading { padding: 29px 0 22px; }
  .login-layout { grid-template-columns: 1fr; }
  .login-aside { min-height: auto; padding: 25px 28px 34px; gap: 18px; }
  .login-aside::after { width: 300px; height: 300px; right: -160px; bottom: -180px; box-shadow: 0 0 0 45px #d8c18c08; }
  .login-intro { padding: 26px 0 0; }
  .login-eyebrow { margin-bottom: 10px; }
  .login-intro h1 { font-size: 2.7rem; margin-bottom: 13px; }
  .login-intro p { font-size: .9rem; line-height: 1.6; }
  .login-aside-bottom { display: none; }
  .login-main { padding: 28px 22px 48px; }
  .login-logo { width: 96px; height: 80px; margin-bottom: 18px; }
  .login-card-heading p { margin-bottom: 25px; }
}
@media (max-width: 520px) {
  .brand-name { font-size: .96rem; }
  .brand-logo { width: 33px; height: 38px; }
  .brand-caption { font-size: .51rem; letter-spacing: .15em; }
  .header-inner { padding: 0 14px; }
  .main-nav { gap: 10px; }
  .main-nav a { font-size: .74rem; }
  .container { padding: 14px 12px 50px; }
  .hero { padding: 24px 20px; border-radius: 16px; }
  .hero-copy h1 { font-size: 2.03rem; }
  .hero-copy p { font-size: .91rem; }
  .connection-panel { padding: 17px; }
  .connection-heading { gap: 8px; }
  .connection-indicator { padding: 5px 7px; font-size: .72rem; }
  .workspace-heading h2 { font-size: 1.35rem; }
  .workspace-heading p { font-size: .84rem; }
  .workflow-count { display: none; }
  .media-fields, .fields { grid-template-columns: 1fr; }
  .branch-card { padding: 18px; }
  .submit-panel { flex-direction: column; align-items: stretch; padding: 22px; gap: 18px; }
  .submit-panel button { width: 100%; }
  .site-footer { padding: 15px 15px 22px; font-size: .72rem; }
  .site-footer span:last-child { text-align: right; }
  .stats > div { padding: 15px 10px; }
  .stats strong { font-size: 1.65rem; }
  .stats span { font-size: .72rem; line-height: 1.35; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .number-list li, .branch-stats li { font-size: .8rem; }
  .header-tools { gap: 0; }
  .logout-form button.logout-button { font-size: .74rem; padding: 7px 10px; }
  .login-aside { padding: 21px 20px 28px; }
  .login-main { padding: 26px 20px 42px; }
}
@media (max-width: 420px) {
  .main-nav a[href="/"] { display: none; }
  .header-inner { gap: 8px; }
  .hero-copy h1 { font-size: 1.88rem; }
  .main-nav { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
