:root {
  --bg: #f5f7f9;
  --surface: #fff;
  --surface2: #f8fafb;
  --text: #192d35;
  --muted: #70838b;
  --border: #e4ebee;
  --accent: #098b76;
  --accent-soft: #e7f5ef;
  --sidebar: #102c32;
  --danger: #bd4559;
  --warning: #a87820;
  --shadow: 0 3px 12px #173b4104;
  color-scheme: light;
  font:
    16px/1.5 "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
html[data-theme="dark"] {
  --bg: #101d22;
  --surface: #182a31;
  --surface2: #1e3239;
  --text: #e4eeec;
  --muted: #9aafb5;
  --border: #2d4148;
  --accent: #5bd5b7;
  --accent-soft: #21483f;
  --sidebar: #0b2026;
  --danger: #f091a2;
  --warning: #e6c57b;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button,
input,
select,
textarea,
a {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #55c6af;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  line-height: 1.25;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 17px;
  letter-spacing: -0.2px;
}
p {
  color: var(--muted);
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e4f4d3;
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -1.5px;
  white-space: nowrap;
}
.brand > span {
  color: #fff;
}
.brand small {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1px;
  color: #a9c9c2;
}
.brand-dot {
  color: #b4d991;
}
.sidebar {
  width: 248px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--sidebar);
  color: #c3d6d8;
  padding: 28px 20px 16px;
  display: flex;
  flex-direction: column;
  z-index: 30;
  overflow-y: auto;
}
.sidebar > .brand {
  margin: 0 12px 30px;
}
.workspace-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 10px;
  border: 1px solid #ffffff12;
  border-radius: 12px;
  background: #ffffff04;
}
.workspace-card strong {
  font-size: 14px;
  color: #eef6f3;
  display: block;
}
.workspace-card small {
  font-size: 13px;
  color: #a3bfc0;
}
.icon-box {
  color: var(--accent);
  background: var(--accent-soft);
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  flex-shrink: 0;
}
.workspace-card .icon-box {
  width: 30px;
  background: #ffffff0d;
  color: #b7d9d4;
}
.nav-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: #78999d;
  font-weight: 650;
  margin: 30px 12px 14px;
}
.sidebar nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  background: none;
  border: 0;
  border-radius: 9px;
  font-size: 14px;
  color: #bacfd2;
  text-align: left;
  margin-bottom: 5px;
}
.sidebar nav button.active {
  background: #b3d79324;
  color: #d8efbd;
}
.sidebar nav button:hover {
  background: #ffffff0b;
}
.nav-count {
  margin-left: auto;
  font-size: 12px;
  background: #ffffff10;
  border-radius: 4px;
  padding: 1px 6px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 28px;
}
.phase-link {
  display: flex;
  gap: 11px;
  padding: 15px 10px;
  background: #ffffff06;
  border-radius: 10px;
  color: #c1dcd4;
}
.phase-link strong {
  font-size: 13px;
  display: block;
}
.phase-link small {
  font-size: 12px;
  color: #92afb0;
  display: block;
  margin-top: 3px;
}
.theme-toggle {
  display: flex;
  gap: 10px;
  background: none;
  border: 0;
  color: #aac1c1;
  font-size: 13px;
  margin: 22px 0 16px;
  padding: 4px 10px;
}
.admin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #ffffff13;
  padding-top: 18px;
}
.admin-profile strong {
  font-size: 13px;
  color: #e2eeec;
  display: block;
}
.admin-profile small {
  font-size: 12px;
  color: #8fafb1;
}
.admin-profile .icon-button {
  margin-left: auto;
  color: #a6c1c0;
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #e6efec;
  color: #35595a;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 650;
  flex-shrink: 0;
}
.shell {
  margin-left: 248px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  height: 78px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb strong {
  font-weight: 600;
  color: var(--text);
}
.breadcrumb > span {
  color: var(--border);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.health-button {
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.health-button i {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.health-button.warn i {
  background: var(--warning);
}
.icon-button {
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.menu {
  display: none;
}
main {
  padding: 34px 38px 48px;
  width: 100%;
  max-width: 1700px;
  margin: auto;
  flex: 1;
}
footer {
  padding: 20px 38px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--border);
  margin: 0 38px;
}
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin-bottom: 11px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-head p {
  margin-top: 9px;
  font-size: 15px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.button svg {
  width: 17px;
  height: 17px;
}
.primary {
  background: var(--accent);
  color: #fff;
}
html[data-theme="dark"] .primary {
  color: #103c32;
}
.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.ghost {
  background: var(--accent-soft);
  color: var(--accent);
}
.small {
  font-size: 13px;
  padding: 7px 10px;
}
.wide {
  width: 100%;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow);
}
.card-head {
  padding: 23px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.card-head p {
  font-size: 14px;
  margin-top: 5px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat {
  padding: 21px 23px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
  gap: 8px;
}
.stat .icon-box {
  width: 33px;
  height: 33px;
  border-radius: 9px;
}
.stat strong {
  display: block;
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 12px 0 17px;
  line-height: 1;
}
.stat p {
  font-size: 12px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  margin-bottom: 25px;
}
.hero {
  padding: 28px;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background: linear-gradient(120deg, #edf7ef, #edf5f8);
  color: #183b3e;
}
.hero h2 {
  font-size: 26px;
  max-width: 390px;
}
.hero p {
  font-size: 14px;
  max-width: 370px;
  margin: 12px 0 22px;
  color: #65858a;
}
.hero .eyebrow {
  color: #608080;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-wave {
  position: absolute;
  right: -30px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 150px;
  opacity: 0.18;
  transform: rotate(-13deg);
}
.hero-wave i {
  width: 8px;
  height: var(--h);
  background: #168f7a;
  border-radius: 8px;
}
.workflow-card {
  padding: 24px;
}
.workflow-card h3 {
  margin-bottom: 16px;
}
.mini-step {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 9px 0;
}
.mini-step > span {
  background: var(--accent-soft);
  color: var(--accent);
  height: 28px;
  width: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 650;
}
.mini-step strong {
  font-size: 14px;
  display: block;
}
.mini-step small {
  font-size: 12px;
  color: var(--muted);
}
.mini-step:last-child {
  opacity: 0.6;
}
.period {
  padding: 17px 21px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.period-title {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.period-title svg {
  color: var(--accent);
}
.period-title strong {
  font-size: 14px;
  display: block;
}
.period-title small {
  font-size: 12px;
  color: var(--muted);
}
.period label {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.period input {
  margin-top: 3px;
  width: 145px;
  padding: 7px 9px;
  font-size: 13px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 14px;
}
th {
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 550;
  background: var(--surface2);
  padding: 13px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td strong {
  display: block;
  font-weight: 600;
}
td small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  font-size: 12px;
  padding: 4px 8px;
  background: var(--surface2);
  color: var(--muted);
  white-space: nowrap;
}
.badge.completed,
.badge.analyzed,
.badge.linked {
  background: var(--accent-soft);
  color: var(--accent);
}
.badge.running,
.badge.queued,
.badge.downloading {
  background: #e8f1ff;
  color: #5371a7;
}
.badge.failed,
.badge.interrupted,
.badge.upload_failed {
  background: #fbecee;
  color: #bb5260;
}
.filters {
  padding: 0 24px 20px;
}
.search {
  position: relative;
}
.search svg {
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--muted);
  width: 17px;
}
.search input {
  padding-left: 38px;
}
.empty {
  padding: 55px 25px;
  text-align: center;
}
.empty .icon-box {
  margin-bottom: 18px;
  width: 54px;
  height: 54px;
}
.empty h3 {
  font-size: 19px;
  margin-bottom: 7px;
}
.empty p {
  font-size: 14px;
  max-width: 480px;
  margin: auto;
}
.empty .button {
  margin-top: 20px;
}
.job-card {
  margin-bottom: 18px;
  padding: 23px;
}
.job-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.job-top > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.job-top h3 {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.job-top p {
  font-size: 13px;
  margin-top: 3px;
}
.job-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.stage-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}
.stage-track div {
  border-top: 4px solid var(--border);
  padding-top: 9px;
  font-size: 12px;
  color: var(--muted);
}
.stage-track .done {
  border-color: var(--accent);
  color: var(--accent);
}
.stage-track .running {
  border-color: #70a9e1;
  color: #6592bf;
}
.stage-track .failed {
  border-color: var(--danger);
  color: var(--danger);
}
.stage-track small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.job-error {
  padding: 10px 12px;
  background: color-mix(in srgb, var(--danger) 7%, transparent);
  color: var(--danger);
  border-radius: 7px;
  margin-top: 16px;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 180px;
  overflow: auto;
}
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.campaign-card {
  padding: 25px;
  display: flex;
  flex-direction: column;
}
.campaign-card h2 {
  margin: 18px 0 8px;
}
.campaign-card p {
  font-size: 14px;
}
.campaign-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px 0;
  margin: 10px 0 22px;
  border-bottom: 1px solid var(--border);
}
.campaign-facts span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 7px;
}
.campaign-facts strong {
  font-size: 18px;
  font-weight: 600;
}
.campaign-card .job-actions {
  margin-top: auto;
}
.notice {
  display: flex;
  gap: 11px;
  padding: 16px 18px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 15%, var(--border));
  color: var(--accent);
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 22px;
}
.notice p {
  color: inherit;
}
.notice.warning {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--muted);
}
label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 550;
  gap: 8px;
  color: var(--text);
}
label .hint,
.hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
}
input,
select,
textarea {
  display: block;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 11px 12px;
  width: 100%;
  font-size: 14px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-color: var(--accent);
}
select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2370838b' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.span-2 {
  grid-column: span 2;
}
input[readonly] {
  background: var(--surface2);
  color: var(--muted);
}
.error {
  font-size: 14px;
  color: var(--danger);
  padding: 12px 0;
  white-space: pre-wrap;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}
dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: 0 20px 80px #0003;
  width: min(760px, calc(100% - 30px));
  max-height: 90vh;
  padding: 0;
}
dialog::backdrop {
  background: #071e2b70;
  backdrop-filter: blur(3px);
}
.dialog-header {
  padding: 24px 26px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}
.dialog-header .eyebrow {
  font-size: 10px;
  margin-bottom: 7px;
}
.dialog-header h2 {
  font-size: 23px;
}
#dialog-body {
  padding: 25px 26px;
}
.detail-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.detail-tabs button {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13px;
}
.detail-tabs button.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}
.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0;
}
.data-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}
.data-grid strong {
  font-weight: 550;
  font-size: 14px;
  overflow-wrap: anywhere;
}
audio {
  width: 100%;
  margin: 15px 0;
}
.audio-section {
  padding: 18px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 18px;
}
.audio-section h3 {
  font-size: 16px;
}
.audio-section small {
  font-size: 12px;
  color: var(--muted);
}
.audio-section .button {
  margin-top: 4px;
}
.artifact-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.text-output {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 9px;
  font:
    13px/1.75 ui-monospace,
    monospace;
  max-height: 450px;
  overflow: auto;
}
.turn {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.turn > div {
  flex: 1;
}
.turn small {
  font-size: 11px;
  white-space: nowrap;
  color: var(--muted);
}
.turn strong {
  display: block;
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 4px;
}
.turn p {
  font-size: 14px;
  color: var(--text);
}
.folder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.folder-card {
  padding: 22px;
  display: flex;
  gap: 17px;
  align-items: center;
}
.folder-card h3 {
  font-size: 16px;
}
.folder-card p {
  font-size: 13px;
  margin-top: 6px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.settings-card {
  padding: 25px;
}
.settings-card h3 {
  margin-bottom: 8px;
}
.settings-card p {
  font-size: 14px;
  margin-bottom: 20px;
}
.settings-card form {
  display: grid;
  gap: 18px;
}
.health-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  font-size: 14px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sidebar);
  color: #e1f1eb;
  border: 1px solid #ffffff22;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 14px;
  max-width: 90vw;
  box-shadow: 0 8px 30px #0002;
  z-index: 100;
}
.login-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-story {
  background: #102f36;
  padding: 48px 65px;
  color: #eaf5e9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.login-story > .brand {
  margin-bottom: 60px;
}
.login-story .eyebrow {
  color: #a6c0ba;
  font-size: 11px;
}
.login-story h1 {
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -2px;
  margin: 20px 0;
}
.login-story p {
  color: #a3bebc;
  font-size: 16px;
}
.login-wave {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 7px;
  height: 170px;
  margin: 40px 0 20px;
  border: 1px solid #ffffff14;
  border-radius: 20px;
  background: linear-gradient(140deg, #ffffff0a, #ffffff02);
  padding: 20px 35px;
}
.login-wave i {
  height: 40%;
  width: 8px;
  border-radius: 8px;
  background: #b5d99d;
}
.login-wave i:nth-child(3n) {
  height: 85%;
  opacity: 0.8;
}
.login-wave i:nth-child(3n + 1) {
  height: 25%;
  opacity: 0.5;
}
.login-wave i:nth-child(4n) {
  height: 65%;
  opacity: 0.9;
}
.login-tags {
  display: flex;
  gap: 25px;
  font-size: 13px;
  color: #bad0c7;
}
.login-story .login-foot {
  font-size: 12px;
  margin-top: 50px;
  color: #6f9699;
}
.login-form-side {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
  background: var(--surface);
}
.theme-button {
  position: absolute;
  right: 30px;
  top: 28px;
}
.login-form-side form {
  width: 100%;
  max-width: 390px;
}
.phase-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 7px 10px;
  border-radius: 6px;
  margin-bottom: 25px;
}
.login-form-side h2 {
  font-size: 34px;
  letter-spacing: -1px;
  margin-bottom: 9px;
}
.login-form-side form > p {
  font-size: 15px;
  margin-bottom: 32px;
}
.login-form-side label {
  margin-bottom: 20px;
}
.login-form-side input {
  padding: 13px;
}
.login-form-side .primary {
  margin-top: 5px;
  padding: 13px;
}
.demo-access {
  padding: 22px 0;
  border-top: 1px solid var(--border);
  margin-top: 30px;
}
.demo-access > span {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
  display: block;
  margin-bottom: 14px;
}
.demo-access p {
  font-size: 12px;
  margin-top: 10px;
  text-align: center;
}
.login-note {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 18px;
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: #0006;
  border: 0;
  z-index: 25;
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1600px) {
  .hero {
    min-height: 310px;
  }
  .hero h2 {
    font-size: 32px;
  }
}
@media (max-width: 1150px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .workflow-card {
    display: none;
  }
  .campaign-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 40px;
  }
  .login-story h1 {
    font-size: 39px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .shell {
    margin-left: 0;
  }
  .menu {
    display: grid;
  }
  .breadcrumb {
    margin-right: auto;
    gap: 10px;
  }
  header {
    height: 66px;
    padding: 0 20px;
  }
  .header-actions {
    gap: 12px;
  }
  .health-button span {
    display: none;
  }
  main {
    padding: 27px 20px;
  }
  footer {
    margin: 0 20px;
    padding: 20px 0;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-story {
    display: none;
  }
  .login-form-side {
    min-height: 100vh;
    padding: 30px;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 28px;
  }
}
@media (max-width: 600px) {
  .header-actions .avatar {
    display: none;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 17px;
  }
  .stat-top {
    font-size: 12px;
  }
  .stat strong {
    font-size: 27px;
  }
  .stat p {
    font-size: 11px;
  }
  .stat .icon-box {
    width: 27px;
    height: 27px;
  }
  .page-head {
    flex-direction: column;
  }
  .page-head > .button {
    width: 100%;
  }
  .hero {
    padding: 23px;
  }
  .hero h2 {
    font-size: 25px;
  }
  .period {
    gap: 10px;
    padding: 15px;
  }
  .period-title {
    width: 100%;
  }
  .period input {
    width: 120px;
  }
  .period .button {
    padding: 8px;
    font-size: 12px;
  }
  .card-head {
    padding: 19px;
  }
  .filters {
    padding: 0 18px 18px;
  }
  .folder-grid {
    grid-template-columns: 1fr;
  }
  .form-grid,
  .data-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .campaign-facts {
    gap: 9px;
  }
  .stage-track {
    gap: 5px;
  }
  .stage-track div {
    font-size: 10px;
  }
  .stage-track small {
    font-size: 9px;
  }
  .job-card {
    padding: 18px;
  }
  .job-top {
    flex-wrap: wrap;
  }
  .job-top > div:nth-child(2) {
    flex-basis: 70%;
  }
  .job-top > .badge {
    margin-left: 56px;
  }
  .job-actions .button {
    flex: 1;
  }
  .dialog-header {
    padding: 19px;
  }
  #dialog-body {
    padding: 19px;
  }
  .turn {
    gap: 10px;
  }
  .turn small {
    font-size: 10px;
  }
  footer {
    font-size: 10px;
  }
  .health-row {
    font-size: 13px;
  }
}
.speaker-review {
  margin-bottom: 20px;
}
.voice-review-row {
  display: grid;
  grid-template-columns: 175px 1fr;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}
.voice-review-row label {
  font-size: 12px;
}
.voice-review-row p {
  max-height: 130px;
  overflow: auto;
  font-size: 13px;
}
.voice-review-row select {
  font-size: 13px;
}
@media (max-width: 600px) {
  .voice-review-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .voice-review-row p {
    max-height: 90px;
  }
}

.form-section-title {
  margin: 28px 0 16px;
  font-size: 18px;
}
.form-section-title:first-child {
  margin-top: 0;
}
.campaign-card .job-actions {
  flex-wrap: wrap;
}

.optional-cut {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.optional-cut summary {
  cursor: pointer;
  font-weight: 650;
}
.optional-cut .hint {
  margin: 12px 0;
}
