/* Product finish layer: refined SaaS texture without adding a frontend framework. */
:root {
  --finish-bg: #f3f7fb;
  --finish-ink: #0d1526;
  --finish-muted: #607089;
  --finish-faint: #8b9ab0;
  --finish-line: rgba(104, 127, 159, .24);
  --finish-line-strong: rgba(79, 102, 138, .34);
  --finish-panel: rgba(255, 255, 255, .86);
  --finish-panel-solid: #ffffff;
  --finish-blue: #2563eb;
  --finish-blue-strong: #1d4ed8;
  --finish-sky: #0ea5e9;
  --finish-teal: #14b8a6;
  --finish-purple: #7c3aed;
  --finish-orange: #f97316;
  --finish-green: #16a34a;
  --finish-radius: 14px;
  --finish-radius-lg: 18px;
  --finish-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 48px rgba(26, 36, 58, .075);
  --finish-shadow-soft: 0 1px 2px rgba(15, 23, 42, .035), 0 10px 28px rgba(26, 36, 58, .05);
}

html {
  background: var(--finish-bg);
}

body {
  color: var(--finish-ink);
}

.app-body {
  background:
    radial-gradient(circle at 18% 4%, rgba(14, 165, 233, .105), transparent 28%),
    radial-gradient(circle at 86% 0%, rgba(124, 58, 237, .07), transparent 24%),
    radial-gradient(circle at 90% 82%, rgba(249, 115, 22, .055), transparent 28%),
    linear-gradient(90deg, rgba(37, 99, 235, .024) 1px, transparent 1px),
    linear-gradient(0deg, rgba(14, 165, 233, .018) 1px, transparent 1px),
    linear-gradient(180deg, #fbfdff 0%, #f5f8fc 43%, #edf4fb 100%);
  background-attachment: fixed;
  background-size: auto, auto, auto, 72px 72px, 72px 72px, auto;
}

.app-body::before {
  background:
    linear-gradient(130deg, transparent 0 50%, rgba(37, 99, 235, .055) 50% 50.15%, transparent 50.15%),
    linear-gradient(35deg, transparent 0 67%, rgba(20, 184, 166, .055) 67% 67.16%, transparent 67.16%);
  opacity: .72;
}

.sidebar {
  background:
    radial-gradient(circle at 22% 6%, rgba(59, 130, 246, .26), transparent 25%),
    radial-gradient(circle at 96% 22%, rgba(20, 184, 166, .15), transparent 24%),
    linear-gradient(180deg, #0b1527 0%, #081323 58%, #07111f 100%);
  border-right: 1px solid rgba(203, 213, 225, .10);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .035), 12px 0 42px rgba(15, 23, 42, .08);
  padding: 16px 13px;
  width: 236px;
}

.workspace {
  margin-left: 236px;
}

.brand {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .055)),
    radial-gradient(circle at 12% 0, rgba(56, 189, 248, .16), transparent 38%);
  border: 1px solid rgba(226, 232, 240, .13);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(2, 6, 23, .25), inset 0 1px 0 rgba(255, 255, 255, .12);
  margin-bottom: 18px;
  padding: 11px;
}

.brand-mark,
.login-brand-mark {
  background:
    linear-gradient(145deg, #ffffff 0%, #e5f7ff 46%, #e8e0ff 100%);
  border: 1px solid rgba(255, 255, 255, .76);
  box-shadow: 0 14px 30px rgba(37, 99, 235, .24);
  color: #1d4ed8;
}

.brand strong {
  font-size: 19px;
  font-weight: 920;
}

.brand span {
  color: #b8c6d8;
}

.side-nav {
  gap: 6px;
}

.nav-link {
  border: 1px solid transparent;
  border-radius: 12px;
  color: #c8d3e3;
  min-height: 44px;
  padding: 8px 9px;
}

.nav-link:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(226, 232, 240, .11);
  color: #ffffff;
  transform: translateX(1px);
}

.nav-link.active {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .96), rgba(14, 165, 233, .72)),
    rgba(255, 255, 255, .08);
  border-color: rgba(191, 219, 254, .34);
  box-shadow: 0 16px 34px rgba(37, 99, 235, .24), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.nav-link.active::before {
  background: linear-gradient(180deg, #22d3ee, #f97316);
  border-radius: 999px;
  content: "";
  inset: 10px auto 10px -6px;
  position: absolute;
  width: 3px;
}

.nav-icon {
  border-radius: 9px;
}

.workspace-header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(248, 251, 255, .82));
  border-bottom: 1px solid rgba(104, 127, 159, .20);
  box-shadow: 0 12px 36px rgba(15, 23, 42, .055);
  min-height: 68px;
  padding: 13px 26px;
}

.workspace-header h1 {
  color: var(--finish-ink);
  font-size: 25px;
  font-weight: 920;
}

.workspace-kicker,
.section-kicker {
  color: #68758a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em !important;
}

.status-chip,
.header-link,
.model-badge {
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(243, 248, 255, .78));
  border: 1px solid rgba(104, 127, 159, .24);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
  color: #344054;
  font-size: 12px;
  min-height: 31px;
}

.header-link:hover,
.status-chip:hover,
.model-badge:hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, .30);
  box-shadow: 0 12px 30px rgba(37, 99, 235, .08);
  color: var(--finish-blue-strong);
}

.workspace-content {
  max-width: 1540px;
  padding: 18px 24px 26px;
}

.workspace-context,
.panel,
.chat-rail,
.chat-canvas,
.chat-context,
.admin-filter-form {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .90), rgba(249, 252, 255, .80)),
    radial-gradient(circle at 100% 0, rgba(37, 99, 235, .045), transparent 28%);
  border: 1px solid var(--finish-line);
  border-radius: var(--finish-radius);
  box-shadow: var(--finish-shadow-soft);
}

.panel {
  padding: 17px;
}

.command-card,
.product-home-hero,
.product-module-panel,
.product-activity-panel,
.recent-panel,
.admin-record-panel,
.settings-hero-panel,
.admin-hero-panel,
.selection-status-bar,
.selection-main,
.chat-canvas {
  box-shadow: var(--finish-shadow);
}

.command-card::before,
.product-home-hero::before,
.chat-canvas::before,
.recent-panel::before,
.admin-record-panel::before,
.settings-hero-panel::before,
.admin-hero-panel::before,
.selection-status-bar::before {
  background: linear-gradient(90deg, var(--finish-sky), var(--finish-blue), var(--finish-teal), var(--finish-orange));
  height: 3px;
}

.product-home-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .93), rgba(247, 251, 255, .82)),
    radial-gradient(circle at 82% 10%, rgba(37, 99, 235, .10), transparent 30%),
    radial-gradient(circle at 0 92%, rgba(20, 184, 166, .085), transparent 30%);
  padding: 19px 21px;
}

.product-home-hero h2,
.settings-hero-panel h2,
.admin-hero-panel h2 {
  color: var(--finish-ink);
  font-weight: 920;
}

.hint,
.command-card .hint,
.settings-list span,
.permission-help span,
.guide-grid span {
  color: var(--finish-muted);
}

.product-home-status span,
.context-metrics span,
.metric-card,
.focus-item,
.settings-list p,
.permission-help p,
.guide-grid p,
.selection-metric,
.selection-ops-summary span,
.selection-field-coverage > span,
.selection-field-coverage > div,
.selection-rule-strip span,
.product-activity-grid article {
  background: rgba(255, 255, 255, .70);
  border: 1px solid rgba(104, 127, 159, .18);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .68);
}

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

.product-module-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(245, 250, 255, .78)),
    radial-gradient(circle at 100% 0, rgba(37, 99, 235, .08), transparent 34%);
  border: 1px solid rgba(104, 127, 159, .20);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 112px;
}

.product-module-card::before {
  background: linear-gradient(180deg, var(--finish-blue), var(--finish-sky));
  border-radius: 999px;
  content: "";
  inset: 14px auto 14px 0;
  opacity: .42;
  position: absolute;
  width: 3px;
}

.product-module-card:hover {
  border-color: rgba(37, 99, 235, .34);
  box-shadow: 0 18px 42px rgba(37, 99, 235, .10);
  transform: translateY(-2px);
}

.product-module-card small {
  grid-column: 2;
  justify-self: start;
}

.product-module-card p {
  max-width: 34em;
}

.module-icon,
.title-icon,
.preset-icon {
  background: linear-gradient(135deg, rgba(14, 165, 233, .16), rgba(37, 99, 235, .13));
  border: 1px solid rgba(37, 99, 235, .16);
  color: var(--finish-blue-strong);
}

.section-heading h2,
.panel-header h2,
.command-title h2,
.product-home-hero h2 {
  color: var(--finish-ink);
  font-weight: 920;
}

.task-form > label,
.image-options label,
.spanish-form label,
.password-form label,
.admin-filter-form label,
.video-task-form label,
.video-material-plan-form label,
.range-control,
.select-control {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(248, 251, 255, .66));
  border: 1px solid rgba(104, 127, 159, .18);
  border-radius: 12px;
}

input,
textarea,
select,
.task-form input,
.task-form textarea,
.task-form select,
.spanish-form textarea,
.chat-composer textarea,
.video-material-plan-form textarea,
.video-task-form input,
.video-task-form textarea,
.video-task-form select {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(104, 127, 159, .28);
  border-radius: 11px;
  color: var(--finish-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(37, 99, 235, .58);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12), inset 0 1px 0 rgba(255, 255, 255, .88);
}

.primary-action,
.task-form button[type="submit"],
.spanish-form button[type="submit"],
.video-task-form button[type="submit"],
.login-panel button {
  background: linear-gradient(100deg, var(--finish-sky), var(--finish-blue) 55%, #4f46e5);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(37, 99, 235, .20);
}

.primary-action:hover,
.task-form button[type="submit"]:hover,
.spanish-form button[type="submit"]:hover,
.video-task-form button[type="submit"]:hover,
.login-panel button:hover {
  box-shadow: 0 20px 46px rgba(37, 99, 235, .26);
  filter: saturate(1.04);
  transform: translateY(-1px);
}

.drop-zone,
.image-upload-box,
.source-image-box,
.video-upload-card,
.selection-empty-state,
.drop-box {
  background:
    radial-gradient(circle at 100% 0, rgba(37, 99, 235, .08), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(247, 251, 255, .76));
  border: 1px dashed rgba(37, 99, 235, .26);
  border-radius: 14px;
}

.table-wrap {
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(104, 127, 159, .18);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .64);
}

th {
  background: rgba(247, 251, 255, .96);
  color: #526178;
  font-weight: 900;
}

td,
th {
  border-bottom: 1px solid rgba(104, 127, 159, .13);
}

tbody tr:hover td {
  background: rgba(37, 99, 235, .030);
}

.status,
.status-badge,
.queue-badge {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .58);
}

.chat-workbench {
  gap: 12px;
  grid-template-columns: 206px minmax(0, 1fr) 230px;
}

.chat-message-list {
  background:
    linear-gradient(90deg, rgba(37, 99, 235, .016) 1px, transparent 1px),
    linear-gradient(0deg, rgba(14, 165, 233, .012) 1px, transparent 1px),
    rgba(255, 255, 255, .56);
  background-size: 48px 48px;
  border: 1px solid rgba(104, 127, 159, .18);
  border-radius: 14px;
}

.chat-bubble {
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .055);
}

.chat-message.assistant .chat-bubble {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(104, 127, 159, .18);
}

.chat-message.user .chat-bubble {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: 0 14px 32px rgba(37, 99, 235, .20);
}

.chat-command-bar {
  background: rgba(255, 255, 255, .90);
  border: 1px solid rgba(104, 127, 159, .20);
  border-radius: 16px;
  box-shadow: 0 -10px 26px rgba(15, 23, 42, .035);
}

.conversation-link {
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(104, 127, 159, .16);
}

.conversation-link.active {
  background: linear-gradient(135deg, rgba(239, 246, 255, .98), rgba(236, 254, 255, .78));
  border-color: rgba(37, 99, 235, .32);
  box-shadow: inset 3px 0 0 var(--finish-blue), 0 12px 26px rgba(37, 99, 235, .08);
}

.video-material-workflow,
.video-form-section,
.video-material-plan-card,
.video-preview-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(248, 251, 255, .72));
  border: 1px solid rgba(104, 127, 159, .18);
  border-radius: 14px;
}

.video-step-row p {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(244, 249, 255, .74));
  border: 1px solid rgba(104, 127, 159, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.video-submit-warning,
.notice,
.video-form-intro {
  border-radius: 14px;
}

.shortcut-list a::after {
  color: var(--finish-blue);
  content: "↗";
  font-size: 12px;
  opacity: .66;
}

.login-body.dynamic-login {
  background:
    radial-gradient(circle at 16% 18%, rgba(14, 165, 233, .20), transparent 28%),
    radial-gradient(circle at 82% 74%, rgba(124, 58, 237, .15), transparent 28%),
    #06101d;
}

.login-bg-video {
  filter: saturate(.82) contrast(1.08) brightness(.34);
  opacity: .74;
}

.login-stage {
  gap: clamp(34px, 5vw, 72px);
  grid-template-columns: minmax(440px, 1fr) minmax(390px, 430px);
  max-width: 1160px;
}

.login-hero::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035)),
    radial-gradient(circle at 16% 20%, rgba(34, 211, 238, .14), transparent 34%);
  border-color: rgba(226, 232, 240, .14);
  border-radius: 22px;
}

.login-hero h1 {
  font-size: clamp(44px, 5vw, 62px);
  letter-spacing: 0 !important;
}

.login-copy {
  max-width: 420px;
}

.login-product-card span {
  backdrop-filter: blur(14px);
  border-color: rgba(226, 232, 240, .16);
}

.login-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .055)),
    rgba(8, 15, 29, .86);
  border-color: rgba(226, 232, 240, .20);
  border-radius: 20px;
  box-shadow: 0 36px 96px rgba(2, 6, 23, .46), inset 0 1px 0 rgba(255, 255, 255, .10);
}

.login-status {
  background: rgba(15, 23, 42, .72);
  color: #dbeafe;
}

.login-panel input {
  background: rgba(2, 6, 23, .62);
  border-color: rgba(125, 211, 252, .34);
}

/* Finish 2: product-grade depth, role color, and restrained motion. */
.workspace-header {
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.workspace-header::after {
  background: linear-gradient(90deg, rgba(14, 165, 233, .42), rgba(37, 99, 235, .20), rgba(249, 115, 22, .34));
  bottom: -1px;
  content: "";
  height: 1px;
  left: 26px;
  opacity: .75;
  position: absolute;
  right: 26px;
}

.status-strip {
  gap: 8px;
}

.status-chip.online::before,
.system-pill.online::before,
.context-status.online::before {
  background: #22c55e;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, .13);
  content: "";
  display: inline-block;
  height: 7px;
  margin-right: 7px;
  width: 7px;
}

.product-module-card {
  --module-a: var(--finish-blue);
  --module-b: var(--finish-sky);
  isolation: isolate;
  overflow: hidden;
}

.product-module-card::after {
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--module-a) 18%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--module-a) 10%, transparent), color-mix(in srgb, var(--module-b) 7%, transparent));
  content: "";
  inset: 0;
  opacity: .82;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.product-module-card::before {
  background: linear-gradient(180deg, var(--module-a), var(--module-b));
  opacity: .78;
}

.product-module-card .module-icon {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--module-a) 18%, #fff), color-mix(in srgb, var(--module-b) 13%, #fff));
  border-color: color-mix(in srgb, var(--module-a) 24%, transparent);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--module-a) 14%, transparent);
  color: color-mix(in srgb, var(--module-a) 72%, #0f172a);
}

.product-module-card small {
  background: rgba(255, 255, 255, .70);
  border: 1px solid color-mix(in srgb, var(--module-a) 16%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--module-a) 70%, #475569);
  font-weight: 850;
  padding: 4px 9px;
}

.module-voice { --module-a: #2563eb; --module-b: #06b6d4; }
.module-image { --module-a: #8b5cf6; --module-b: #ec4899; }
.module-spanish { --module-a: #f97316; --module-b: #f59e0b; }
.module-chat { --module-a: #4f46e5; --module-b: #06b6d4; }
.module-video { --module-a: #0f766e; --module-b: #22c55e; }
.module-selection { --module-a: #e11d48; --module-b: #fb923c; }
.module-queue { --module-a: #475569; --module-b: #0ea5e9; }
.module-settings { --module-a: #334155; --module-b: #64748b; }

.product-home-layout {
  align-items: start;
  gap: 14px;
}

.product-home-rail {
  gap: 12px;
}

.product-home-rail .panel {
  overflow: hidden;
  position: relative;
}

.product-home-rail .panel::after {
  background: linear-gradient(135deg, rgba(14, 165, 233, .10), transparent 42%);
  content: "";
  height: 90px;
  pointer-events: none;
  position: absolute;
  right: -34px;
  top: -34px;
  transform: rotate(18deg);
  width: 150px;
}

.focus-stack {
  gap: 9px;
}

.focus-item {
  display: grid;
  gap: 3px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.focus-item strong {
  color: var(--finish-blue-strong);
  font-size: 26px;
  line-height: 1;
}

.focus-item small {
  color: var(--finish-muted);
  grid-column: 1 / -1;
}

.focus-item.warning strong {
  color: #dc2626;
}

.usage-bars span {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(248, 251, 255, .56));
  border: 1px solid rgba(104, 127, 159, .18);
  border-radius: 10px;
  overflow: hidden;
  padding: 9px 10px 10px;
  position: relative;
}

.usage-bars span::before {
  background: linear-gradient(90deg, var(--finish-sky), var(--finish-blue), var(--finish-purple));
  border-radius: 999px;
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  max-width: 100%;
  opacity: .78;
  position: absolute;
  width: calc((var(--bar, 0) + 1) * 10%);
}

.system-pill-list {
  display: grid;
  gap: 8px;
}

.system-pill {
  align-items: center;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(104, 127, 159, .18);
  border-radius: 999px;
  color: #475569;
  display: inline-flex;
  font-size: 12px;
  font-weight: 820;
  min-height: 34px;
  padding: 7px 10px;
}

.product-activity-grid article {
  min-height: 136px;
  padding: 14px;
}

.product-activity-grid article > strong {
  color: var(--finish-ink);
  display: block;
  margin-bottom: 9px;
}

.product-activity-grid article p {
  align-items: center;
  display: flex;
  gap: 8px;
  line-height: 1.45;
  margin: 7px 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status.done,
.status-badge.done {
  background: #dcfce7;
  color: #166534;
}

.status.running,
.status-badge.running {
  background: #dbeafe;
  color: #1d4ed8;
}

.status.queued,
.status-badge.queued {
  background: #f1f5f9;
  color: #475569;
}

.status.failed,
.status-badge.failed {
  background: #fee2e2;
  color: #b91c1c;
}

.chat-main-shell {
  min-height: calc(100vh - 148px);
}

.chat-toolbar {
  border-bottom: 1px solid rgba(104, 127, 159, .16);
  margin: -2px -2px 12px;
  padding: 0 0 12px;
}

.chat-message-list {
  position: relative;
}

.chat-message-list::before {
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, .08), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(14, 165, 233, .07), transparent 24%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.chat-message,
.chat-empty {
  position: relative;
  z-index: 1;
}

.chat-bubble {
  max-width: min(760px, 86%);
}

.chat-message.assistant .chat-bubble {
  box-shadow: 0 16px 40px rgba(15, 23, 42, .065);
}

.chat-message-content {
  color: #182235;
  font-size: 15px;
  line-height: 1.75;
}

.chat-message.user .chat-message-content {
  color: #fff;
}

.chat-command-bar {
  backdrop-filter: blur(16px);
}

.chat-composer textarea {
  min-height: 76px;
}

.chat-context-rail section + section {
  border-top: 1px solid rgba(104, 127, 159, .16);
  margin-top: 15px;
  padding-top: 15px;
}

.context-actions button,
.chat-starter,
.chat-utility-popover summary {
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(245, 249, 255, .78));
  border: 1px solid rgba(104, 127, 159, .20);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .045);
}

.video-command-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(249, 252, 255, .82)),
    radial-gradient(circle at 95% 4%, rgba(14, 165, 233, .09), transparent 25%),
    radial-gradient(circle at 8% 96%, rgba(249, 115, 22, .07), transparent 30%);
}

.video-material-workflow {
  display: grid;
  gap: 15px;
}

.video-step-row p {
  border-radius: 14px;
  padding: 13px;
  position: relative;
}

.video-step-row p strong {
  background: linear-gradient(135deg, var(--finish-blue), var(--finish-sky));
  border-radius: 10px;
  color: #fff;
  display: inline-grid;
  height: 30px;
  place-items: center;
  width: 30px;
}

.video-step-row p span {
  color: var(--finish-ink);
  font-weight: 900;
}

.video-material-plan-card {
  box-shadow: 0 16px 42px rgba(37, 99, 235, .08);
  overflow: hidden;
}

.video-material-plan-card::before {
  background: linear-gradient(90deg, var(--finish-teal), var(--finish-blue), var(--finish-orange));
  content: "";
  display: block;
  height: 3px;
  margin: -1px -1px 14px;
}

.video-material-slots p {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(104, 127, 159, .16);
  border-radius: 12px;
  padding: 12px;
}

.video-story-arc {
  gap: 8px;
}

.video-story-arc span {
  background: linear-gradient(135deg, rgba(239, 246, 255, .95), rgba(236, 254, 255, .78));
  border: 1px solid rgba(37, 99, 235, .20);
  border-radius: 999px;
  color: #1d4ed8;
  font-weight: 850;
  padding: 7px 10px;
}

.video-form-intro,
.video-submit-warning {
  border: 1px solid rgba(249, 115, 22, .22);
  box-shadow: 0 10px 28px rgba(249, 115, 22, .055);
}

.video-form-section.primary {
  border-color: rgba(37, 99, 235, .25);
  box-shadow: 0 16px 40px rgba(37, 99, 235, .075);
}

.video-title-preview {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .92)),
    radial-gradient(circle at 90% 0, rgba(14, 165, 233, .35), transparent 34%);
  border: 1px solid rgba(148, 163, 184, .24);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .16);
  color: #e2e8f0;
}

.video-upload-summary {
  background: rgba(239, 246, 255, .92);
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 10px;
  color: #1d4ed8;
  padding: 10px;
}

.video-progress-panel {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(104, 127, 159, .18);
  border-radius: 14px;
  padding: 14px;
}

.video-progress-steps span {
  border-radius: 999px;
  min-height: 34px;
}

.video-plan-box,
.settings-list.compact-list p {
  background: rgba(255, 255, 255, .70);
  border: 1px solid rgba(104, 127, 159, .16);
  border-radius: 12px;
}

.table-wrap table {
  border-collapse: separate;
  border-spacing: 0;
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

/* Finish 3: polish secondary workspaces and admin surfaces. */
.image-command-card,
.settings-dashboard > .panel,
.admin-dashboard > .panel,
.task-tracker {
  overflow: hidden;
  position: relative;
}

.image-command-card::after,
.settings-hero-panel::after,
.admin-hero-panel::after,
.task-tracker::after {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .72), transparent 28%),
    linear-gradient(135deg, rgba(37, 99, 235, .11), rgba(14, 165, 233, .045), transparent 64%);
  content: "";
  height: 180px;
  pointer-events: none;
  position: absolute;
  right: -72px;
  top: -92px;
  transform: rotate(18deg);
  width: 260px;
}

.image-mode-selector,
.image-prompt-zone,
.source-image-box,
.submit-flow,
.image-preview-panel,
.prompt-template-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(248, 251, 255, .72)),
    radial-gradient(circle at 100% 0, rgba(37, 99, 235, .045), transparent 30%);
  border: 1px solid rgba(104, 127, 159, .18);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .70);
}

.image-mode-selector,
.source-image-box {
  padding: 14px;
}

.assist-card-grid {
  gap: 10px;
}

.assist-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(246, 250, 255, .78));
  border: 1px solid rgba(104, 127, 159, .18);
  border-radius: 13px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
  min-height: 88px;
  padding: 13px;
  text-align: left;
}

.assist-card strong {
  color: var(--finish-ink);
  display: block;
  font-weight: 900;
  margin-bottom: 4px;
}

.assist-card span {
  color: var(--finish-muted);
}

.assist-card.active,
.assist-card:hover {
  background:
    linear-gradient(145deg, rgba(239, 246, 255, .98), rgba(236, 254, 255, .82));
  border-color: rgba(37, 99, 235, .34);
  box-shadow: inset 3px 0 0 var(--finish-blue), 0 14px 32px rgba(37, 99, 235, .09);
}

.image-prompt-zone textarea {
  min-height: 190px;
}

.drop-upload .drop-box {
  min-height: 118px;
}

.image-options {
  gap: 10px;
}

.image-options label,
.image-result-card,
.compact-history-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .90), rgba(248, 251, 255, .72));
  border: 1px solid rgba(104, 127, 159, .18);
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .040);
}

.submit-flow {
  align-items: center;
  display: flex;
  gap: 8px;
  padding: 11px 12px;
}

.flow-step {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(104, 127, 159, .18);
  border-radius: 999px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  padding: 6px 10px;
  white-space: nowrap;
}

.flow-step.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, .96), rgba(14, 165, 233, .82));
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .16);
  color: #fff;
}

.flow-line {
  background: linear-gradient(90deg, rgba(37, 99, 235, .32), rgba(14, 165, 233, .10));
  border-radius: 999px;
  flex: 1;
  height: 2px;
  min-width: 18px;
}

.template-list {
  display: grid;
  gap: 8px;
}

.template-button,
.task-action,
.button-link.secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(245, 249, 255, .78));
  border: 1px solid rgba(104, 127, 159, .20);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .045);
  color: #1e40af;
  font-weight: 850;
}

.template-button:hover,
.task-action:hover,
.button-link.secondary:hover {
  border-color: rgba(37, 99, 235, .34);
  box-shadow: 0 12px 26px rgba(37, 99, 235, .09);
  color: var(--finish-blue-strong);
}

.image-result-spotlight {
  background:
    linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .90)),
    radial-gradient(circle at 85% 8%, rgba(14, 165, 233, .30), transparent 34%);
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .14);
  color: #e2e8f0;
  overflow: hidden;
  padding: 13px;
}

.image-result-spotlight img,
.image-result-card img {
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .16);
}

.image-result-spotlight strong,
.image-result-spotlight p {
  color: inherit;
}

.image-placeholder {
  background:
    radial-gradient(circle at 100% 0, rgba(37, 99, 235, .08), transparent 28%),
    linear-gradient(135deg, rgba(239, 246, 255, .95), rgba(236, 254, 255, .72));
  border: 1px dashed rgba(37, 99, 235, .26);
  border-radius: 13px;
  color: #64748b;
}

.settings-metrics,
.admin-metrics {
  gap: 12px;
}

.metric-card {
  isolation: isolate;
  min-height: 122px;
  overflow: hidden;
  padding: 15px;
  position: relative;
}

.metric-card::before {
  background: linear-gradient(180deg, var(--finish-blue), var(--finish-sky));
  border-radius: 999px;
  content: "";
  inset: 14px auto 14px 0;
  opacity: .38;
  position: absolute;
  width: 3px;
}

.metric-card::after {
  background:
    radial-gradient(circle at 72% 12%, rgba(37, 99, 235, .12), transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(20, 184, 166, .10), transparent 34%);
  content: "";
  inset: 0;
  opacity: .82;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.metric-card span {
  color: #5f6f86;
  font-size: 12px;
  font-weight: 880;
}

.metric-card strong {
  color: var(--finish-ink);
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 940;
  letter-spacing: 0 !important;
  line-height: 1.05;
}

.metric-card small {
  color: var(--finish-muted);
  line-height: 1.45;
}

.settings-grid,
.admin-grid {
  gap: 13px;
}

.settings-list p,
.permission-help p,
.guide-grid p {
  align-items: start;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.settings-list p strong,
.permission-help p strong,
.guide-grid p strong {
  color: var(--finish-ink);
  font-weight: 900;
}

.password-form,
.admin-user-form {
  background: rgba(255, 255, 255, .52);
  border: 1px solid rgba(104, 127, 159, .14);
  border-radius: 14px;
  padding: 12px;
}

.permission-row {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(248, 251, 255, .68));
  border: 1px solid rgba(104, 127, 159, .16);
  border-radius: 14px;
  gap: 8px;
  padding: 11px;
}

.permission-row label,
.permission-chips span {
  align-items: center;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(104, 127, 159, .18);
  border-radius: 999px;
  color: #42526a;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  gap: 6px;
  min-height: 30px;
  padding: 6px 10px;
}

.permission-row label:has(input:checked),
.permission-chips span {
  background: linear-gradient(135deg, rgba(239, 246, 255, .95), rgba(236, 254, 255, .76));
  border-color: rgba(37, 99, 235, .22);
  color: #1d4ed8;
}

.admin-filter-form {
  align-items: end;
  gap: 10px;
  padding: 12px;
}

.admin-row-details summary {
  background: rgba(239, 246, 255, .86);
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 999px;
  color: var(--finish-blue-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 880;
  padding: 6px 10px;
}

.inline-edit-form {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(104, 127, 159, .18);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .10);
  display: grid;
  gap: 8px;
  margin-top: 8px;
  min-width: 260px;
  padding: 10px;
}

.task-tracker {
  display: grid;
  gap: 13px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px;
}

.task-tracker .status {
  align-self: start;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 12px;
}

.tracker-actions,
.video-progress-panel {
  grid-column: 1 / -1;
}

.tracker-note,
.notice,
.empty-state {
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(104, 127, 159, .18);
  border-radius: 12px;
  color: var(--finish-muted);
  padding: 10px 12px;
}

.notice.success {
  background: rgba(220, 252, 231, .72);
  border-color: rgba(22, 163, 74, .22);
  color: #166534;
}

.notice.error {
  background: rgba(254, 226, 226, .76);
  border-color: rgba(220, 38, 38, .22);
  color: #991b1b;
}

.table-wrap td strong {
  color: var(--finish-ink);
}

.table-wrap td small {
  color: var(--finish-muted);
  display: block;
  line-height: 1.45;
  margin-top: 4px;
}

.video-table-preview {
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
  max-height: 96px;
}

.admin-record-panel,
.recent-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(249, 252, 255, .80)),
    radial-gradient(circle at 100% 0, rgba(14, 165, 233, .06), transparent 30%);
}

/* Finish 4: translation, learning, and selection workspaces. */
.spanish-layout {
  align-items: start;
  gap: 18px;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr);
}

.spanish-command-card,
.spanish-memory-panel,
.spanish-result-panel,
.spanish-learning-dashboard > .panel,
.selection-status-bar,
.selection-ops-summary,
.selection-template-panel,
.selection-boundary-panel,
.selection-main,
.selection-side-section {
  overflow: hidden;
  position: relative;
}

.spanish-command-card::before,
.spanish-result-panel::before,
.spanish-learning-dashboard > .panel::before,
.selection-status-bar::before,
.selection-main::before,
.selection-template-panel::before {
  background: linear-gradient(90deg, #22d3ee, #2563eb 45%, #fb923c);
  content: "";
  height: 3px;
  inset: 0 0 auto;
  position: absolute;
}

.spanish-command-card {
  background:
    radial-gradient(circle at 12% 8%, rgba(251, 146, 60, .10), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(37, 99, 235, .08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(249, 252, 255, .82));
}

.spanish-memory-panel {
  background:
    radial-gradient(circle at 95% 0, rgba(251, 146, 60, .10), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 251, 235, .42));
  border-color: rgba(251, 146, 60, .18);
}

.spanish-command-card .hint,
.spanish-memory-panel .hint,
.selection-alert,
.selection-note-list li,
.learning-card p,
.active-rule-card p {
  color: var(--finish-muted);
  line-height: 1.55;
}

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

.memory-rule-item,
.learning-card,
.active-rule-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(248, 251, 255, .76));
  border: 1px solid rgba(104, 127, 159, .16);
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .07);
  padding: 14px;
}

.memory-rule-item {
  border-color: rgba(251, 146, 60, .24);
}

.memory-rule-item strong,
.learning-card h3,
.active-rule-card h3 {
  color: var(--finish-ink);
  display: block;
  font-weight: 920;
}

.memory-rule-item p {
  color: #5f6f86;
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0 0;
}

.spanish-result-panel {
  background:
    radial-gradient(circle at 0 0, rgba(34, 211, 238, .10), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(248, 251, 255, .78));
}

.spanish-report-grid {
  gap: 12px;
}

.spanish-report-grid article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(249, 252, 255, .82));
  border: 1px solid rgba(104, 127, 159, .16);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
  min-height: 160px;
  padding: 16px;
}

.spanish-report-grid article span {
  align-items: center;
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .18);
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 950;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.spanish-report-grid h3 {
  color: var(--finish-ink);
  font-size: 16px;
  font-weight: 920;
  margin: 12px 0 8px;
}

.spanish-report-grid p {
  color: #44546a;
  font-size: 14px;
  line-height: 1.62;
}

.spanish-report-grid .final-translation {
  background:
    radial-gradient(circle at 92% 0, rgba(34, 211, 238, .18), transparent 34%),
    linear-gradient(135deg, #0f172a, #1e3a8a 62%, #0f766e);
  border-color: rgba(125, 211, 252, .42);
  color: #fff;
}

.spanish-report-grid .final-translation h3,
.spanish-report-grid .final-translation p {
  color: #fff;
}

.spanish-report-grid .final-translation span {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .35);
}

.feedback-form {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .90), rgba(239, 246, 255, .64));
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 18px;
  margin-top: 14px;
  padding: 14px;
}

.feedback-form h3 {
  color: var(--finish-ink);
  font-size: 16px;
  margin: 0;
}

.spanish-learning-dashboard {
  display: grid;
  gap: 16px;
}

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

.learning-card {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.learning-card dl {
  background: rgba(248, 251, 255, .72);
  border: 1px solid rgba(104, 127, 159, .14);
  border-radius: 14px;
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 12px;
}

.learning-card dt {
  color: #6b7a90;
  font-size: 12px;
  font-weight: 880;
  text-transform: uppercase;
}

.learning-card dd {
  color: #334155;
  line-height: 1.55;
  margin: 0 0 4px;
}

.learning-actions {
  display: grid;
  gap: 8px;
  min-width: 130px;
}

.learning-actions button,
.learning-actions .danger-button {
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  min-height: 38px;
}

.active-rule-card {
  border-color: rgba(34, 197, 94, .24);
}

.selection-console {
  display: grid;
  gap: 16px;
}

.selection-status-bar {
  align-items: center;
  background:
    radial-gradient(circle at 0 0, rgba(34, 211, 238, .13), transparent 28%),
    radial-gradient(circle at 100% 0, rgba(251, 146, 60, .12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 250, 255, .78));
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.selection-status-copy {
  align-items: start;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.selection-status-copy h2 {
  color: var(--finish-ink);
  font-size: 24px;
  letter-spacing: 0;
  margin: 2px 0 6px;
}

.selection-status-dot {
  background: #94a3b8;
  border: 5px solid rgba(255, 255, 255, .88);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(104, 127, 159, .16), 0 12px 28px rgba(15, 23, 42, .12);
  flex: 0 0 auto;
  height: 24px;
  margin-top: 8px;
  width: 24px;
}

.selection-status-dot.success,
.selection-status-dot.online {
  background: #22c55e;
}

.selection-status-dot.needs_login,
.selection-status-dot.manual_action_required,
.selection-status-dot.partial_success {
  background: #f59e0b;
}

.selection-status-dot.failed,
.selection-status-dot.access_denied {
  background: #ef4444;
}

.selection-status-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(92px, auto));
}

.selection-metric {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(248, 251, 255, .76));
  border: 1px solid rgba(104, 127, 159, .16);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
  color: var(--finish-ink);
  min-width: 96px;
  padding: 12px 14px;
}

.selection-metric strong {
  color: #1d4ed8;
  display: block;
  font-size: 19px;
  font-weight: 950;
  line-height: 1.1;
}

.selection-metric small {
  color: var(--finish-muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 5px;
}

.selection-metric.wide {
  min-width: 150px;
}

.selection-run-form button {
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(37, 99, 235, .18);
  white-space: nowrap;
}

.selection-ops-summary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(249, 252, 255, .78));
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.selection-ops-summary span,
.selection-field-coverage > span,
.selection-field-coverage > div {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(248, 251, 255, .74));
  border: 1px solid rgba(104, 127, 159, .16);
  border-radius: 16px;
  padding: 13px;
}

.selection-ops-summary strong,
.selection-field-coverage strong {
  color: var(--finish-ink);
  display: block;
  font-weight: 930;
}

.selection-ops-summary small,
.selection-field-coverage small {
  color: var(--finish-muted);
  display: block;
  line-height: 1.45;
  margin-top: 4px;
}

.selection-message {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.selection-template-panel,
.selection-boundary-panel {
  background:
    radial-gradient(circle at 100% 0, rgba(251, 146, 60, .08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(249, 252, 255, .76));
}

.selection-template-head,
.selection-section-head {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.selection-template-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.selection-template-row {
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(104, 127, 159, .16);
  border-radius: 16px;
  display: grid;
  gap: 4px;
  padding: 13px;
}

.selection-template-row span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.selection-template-row strong {
  color: var(--finish-ink);
  font-size: 15px;
}

.selection-template-row.active {
  background:
    linear-gradient(135deg, rgba(239, 246, 255, .95), rgba(236, 254, 255, .74));
  border-color: rgba(37, 99, 235, .24);
}

.selection-note-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
}

.selection-note-list li {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(104, 127, 159, .14);
  border-radius: 13px;
  list-style: none;
  padding: 10px 12px;
}

.selection-workbench {
  display: grid;
  gap: 16px;
}

.selection-main {
  background:
    radial-gradient(circle at 0 0, rgba(37, 99, 235, .07), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 251, 255, .80));
}

.selection-table-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.selection-filter-tabs {
  background: rgba(226, 232, 240, .55);
  border: 1px solid rgba(104, 127, 159, .16);
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
}

.selection-filter-tabs a {
  border-radius: 999px;
  color: #526179;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 11px;
  text-decoration: none;
}

.selection-filter-tabs a.active {
  background: #fff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .10);
  color: #1d4ed8;
}

.selection-rule-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.selection-rule-strip span {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(248, 251, 255, .76));
  border: 1px solid rgba(104, 127, 159, .16);
  border-radius: 16px;
  color: #536176;
  font-size: 12px;
  line-height: 1.45;
  padding: 12px;
}

.selection-rule-strip strong {
  color: #0f172a;
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.selection-field-coverage {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 14px;
}

.selection-pending-explain,
.selection-run-quality {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 251, 235, .54));
  border: 1px solid rgba(251, 146, 60, .18);
  border-radius: 18px;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
}

.selection-pending-explain {
  grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(120px, 1fr));
}

.selection-pending-copy strong,
.selection-pending-explain span strong {
  color: var(--finish-ink);
  display: block;
  font-weight: 930;
}

.selection-pending-copy span,
.selection-pending-explain em {
  color: var(--finish-muted);
  font-style: normal;
  line-height: 1.45;
}

.selection-run-quality-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.selection-run-quality-head span {
  color: var(--finish-muted);
  font-size: 12px;
  font-weight: 800;
}

.selection-run-quality-list {
  display: grid;
  gap: 8px;
}

.selection-run-quality-row {
  align-items: center;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(104, 127, 159, .14);
  border-radius: 13px;
  color: #526179;
  display: grid;
  gap: 8px;
  grid-template-columns: 1.15fr repeat(3, minmax(0, .8fr));
  padding: 10px 12px;
}

.selection-run-quality-row strong {
  color: var(--finish-ink);
}

.selection-results-table {
  border-radius: 18px;
  box-shadow: 0 22px 52px rgba(15, 23, 42, .08);
  margin-top: 16px;
}

.selection-results-table table {
  min-width: 1080px;
}

.selection-sort-link {
  align-items: center;
  color: #475569;
  display: inline-flex;
  gap: 4px;
  text-decoration: none;
}

.selection-sort-link.active {
  color: #1d4ed8;
}

.selection-sort-link span {
  background: rgba(37, 99, 235, .10);
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 11px;
  padding: 2px 6px;
}

.selection-index-cell {
  color: #0f172a;
  font-weight: 950;
}

.selection-product-link,
.selection-data-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  min-height: 28px;
  padding: 5px 10px;
  text-decoration: none;
}

.selection-product-link {
  background: rgba(239, 246, 255, .90);
  border: 1px solid rgba(37, 99, 235, .18);
  color: #1d4ed8;
}

.selection-data-status {
  background: rgba(255, 237, 213, .80);
  border: 1px solid rgba(251, 146, 60, .22);
  color: #c2410c;
}

.selection-data-status.complete {
  background: rgba(220, 252, 231, .82);
  border-color: rgba(22, 163, 74, .22);
  color: #15803d;
}

.selection-missing-value,
.selection-link-missing {
  color: #ef4444;
  font-size: 12px;
  font-weight: 850;
}

.selection-reason-cell {
  max-width: 360px;
}

.selection-reason-cell span,
.selection-reason-cell small {
  line-height: 1.5;
}

.kalodata-helper-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 12px;
}

.kalodata-helper-actions .primary-action {
  justify-content: start;
}

.kalodata-recollect-panel,
.kalodata-advanced-auth {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(104, 127, 159, .16);
  border-radius: 18px;
  margin-top: 14px;
  padding: 14px;
}

.kalodata-recollect-steps,
.kalodata-acceptance {
  display: grid;
  gap: 9px;
}

.kalodata-recollect-steps {
  counter-reset: step;
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.kalodata-recollect-steps li {
  background: rgba(248, 251, 255, .82);
  border: 1px solid rgba(104, 127, 159, .14);
  border-radius: 14px;
  counter-increment: step;
  display: grid;
  gap: 4px;
  padding: 11px 12px 11px 42px;
  position: relative;
}

.kalodata-recollect-steps li::before {
  align-items: center;
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  border-radius: 999px;
  color: #fff;
  content: counter(step);
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  height: 24px;
  justify-content: center;
  left: 12px;
  position: absolute;
  top: 12px;
  width: 24px;
}

.kalodata-recollect-steps strong {
  color: var(--finish-ink);
}

.kalodata-recollect-steps span {
  color: var(--finish-muted);
  line-height: 1.45;
}

.kalodata-acceptance {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.kalodata-acceptance strong,
.kalodata-acceptance span {
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(104, 127, 159, .14);
  border-radius: 999px;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
  text-align: center;
}

.kalodata-acceptance strong {
  background: rgba(239, 246, 255, .92);
  color: #1d4ed8;
}

.kalodata-advanced-auth summary {
  color: var(--finish-ink);
  cursor: pointer;
  font-weight: 920;
}

@keyframes finish-soft-in {
  from {
    opacity: .72;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes finish-glow-scan {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .product-module-card,
  .panel,
  .workspace-context {
    animation: finish-soft-in .32s ease both;
  }

  .product-module-card::after {
    transition: opacity .2s ease, transform .2s ease;
  }

  .product-module-card:hover::after {
    opacity: 1;
    transform: scale(1.015);
  }

  .primary-action,
  .task-form button[type="submit"],
  .spanish-form button[type="submit"],
  .video-task-form button[type="submit"],
  .login-panel button {
    position: relative;
    overflow: hidden;
  }

  .primary-action::after,
  .task-form button[type="submit"]::after,
  .spanish-form button[type="submit"]::after,
  .video-task-form button[type="submit"]::after,
  .login-panel button::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
    content: "";
    inset: 0;
    position: absolute;
    transform: translateX(-120%);
  }

  .primary-action:hover::after,
  .task-form button[type="submit"]:hover::after,
  .spanish-form button[type="submit"]:hover::after,
  .video-task-form button[type="submit"]:hover::after,
  .login-panel button:hover::after {
    animation: finish-glow-scan .75s ease;
  }

  .assist-card,
  .metric-card,
  .image-result-card,
  .template-button,
  .task-tracker,
  .memory-rule-item,
  .learning-card,
  .selection-template-row,
  .selection-metric,
  .selection-rule-strip span,
  .selection-run-quality-row {
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  }

  .assist-card:hover,
  .metric-card:hover,
  .image-result-card:hover,
  .template-button:hover,
  .task-tracker:hover,
  .memory-rule-item:hover,
  .learning-card:hover,
  .selection-template-row:hover,
  .selection-metric:hover,
  .selection-rule-strip span:hover,
  .selection-run-quality-row:hover {
    transform: translateY(-1px);
  }
}

/* Finish 5: productized shell details inspired by mature SaaS dashboards. */
.app-shell {
  isolation: isolate;
}

.sidebar::before {
  background:
    radial-gradient(circle at 35% 8%, rgba(96, 165, 250, .24), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, .09), transparent 32%);
  content: "";
  inset: 0 0 auto;
  height: 180px;
  pointer-events: none;
  position: absolute;
}

.brand,
.side-nav,
.sidebar-footer {
  position: relative;
  z-index: 1;
}

.brand-mark {
  position: relative;
}

.brand-mark::after {
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  border: 2px solid rgba(255, 255, 255, .80);
  border-radius: 999px;
  content: "";
  height: 9px;
  position: absolute;
  right: -2px;
  top: -2px;
  width: 9px;
}

.nav-link {
  overflow: hidden;
  position: relative;
}

.nav-link::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, .18), transparent);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-18px);
  transition: opacity .18s ease, transform .18s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: translateX(0);
}

.nav-icon {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
}

.sidebar-footer {
  border-top: 1px solid rgba(226, 232, 240, .10);
  padding-top: 12px;
}

.user-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .055)),
    radial-gradient(circle at 0 0, rgba(34, 211, 238, .12), transparent 40%);
  border: 1px solid rgba(226, 232, 240, .12);
  border-radius: 14px;
}

.user-avatar {
  background: linear-gradient(135deg, #0ea5e9, #4f46e5);
  box-shadow: 0 12px 26px rgba(37, 99, 235, .25);
}

.sidebar-logout button {
  background: rgba(255, 255, 255, .095);
  border: 1px solid rgba(226, 232, 240, .12);
  border-radius: 12px;
}

.workspace-header {
  overflow: hidden;
}

.workspace-header::before {
  background:
    radial-gradient(circle at 12% 0, rgba(34, 211, 238, .18), transparent 30%),
    radial-gradient(circle at 78% -18%, rgba(124, 58, 237, .10), transparent 28%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.workspace-header > * {
  position: relative;
  z-index: 1;
}

.workspace-kicker,
.section-kicker {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.workspace-kicker::before,
.section-kicker::before {
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  border-radius: 999px;
  content: "";
  height: 7px;
  width: 7px;
}

.workspace-context {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 18px 20px;
  position: relative;
}

.workspace-context::before {
  background:
    linear-gradient(90deg, #22d3ee, #2563eb 42%, #8b5cf6, #fb923c),
    radial-gradient(circle at 100% 0, rgba(37, 99, 235, .11), transparent 34%);
  content: "";
  height: 3px;
  inset: 0 0 auto;
  position: absolute;
}

.workspace-context::after {
  background:
    radial-gradient(circle at 88% 28%, rgba(37, 99, 235, .08), transparent 28%),
    linear-gradient(135deg, transparent, rgba(14, 165, 233, .035));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.context-copy,
.context-metrics {
  position: relative;
  z-index: 1;
}

.context-copy strong {
  color: var(--finish-ink);
  display: block;
  font-size: 32px;
  font-weight: 950;
  line-height: 1.05;
  margin-top: 4px;
}

.context-copy small {
  color: var(--finish-muted);
  display: block;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 6px;
}

.context-metrics {
  gap: 10px;
}

.context-metrics span {
  min-width: 94px;
  padding: 12px 14px;
}

.context-metrics strong {
  color: var(--finish-blue-strong);
  font-size: 22px;
  font-weight: 950;
}

.status-chip,
.header-link,
.model-badge,
.button-link,
.danger-link,
.icon-action {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease, color .18s ease;
}

.status-chip:hover,
.header-link:hover,
.model-badge:hover,
.button-link:hover,
.danger-link:hover,
.icon-action:hover {
  transform: translateY(-1px);
}

.panel,
.workspace-context,
.command-card,
.product-module-card,
.video-material-plan-card,
.task-tracker,
.spanish-report-grid article,
.selection-status-bar,
.chat-canvas,
.chat-rail,
.chat-context {
  backdrop-filter: blur(14px);
}

.panel {
  transition: border-color .18s ease, box-shadow .18s ease;
}

.panel:hover {
  border-color: rgba(37, 99, 235, .24);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 20px 52px rgba(37, 99, 235, .07);
}

.section-heading {
  align-items: start;
}

.section-heading h2,
.command-title h2,
.panel-header h2 {
  line-height: 1.16;
}

.hint,
.field-title,
.field-title-line em,
.video-material-plan-card p,
.video-form-intro small,
.video-upload-card small {
  line-height: 1.55;
}

.task-form > label,
.image-options label,
.spanish-form label,
.video-task-form label,
.video-material-plan-form label,
.range-control,
.select-control {
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.task-form > label:focus-within,
.image-options label:focus-within,
.spanish-form label:focus-within,
.video-task-form label:focus-within,
.video-material-plan-form label:focus-within,
.range-control:focus-within,
.select-control:focus-within {
  background: #ffffff;
  border-color: rgba(37, 99, 235, .36);
  box-shadow: 0 14px 34px rgba(37, 99, 235, .075);
}

.primary-action:active,
.task-form button[type="submit"]:active,
.spanish-form button[type="submit"]:active,
.video-task-form button[type="submit"]:active,
.login-panel button:active,
.button-link:active,
.header-link:active {
  transform: translateY(0) scale(.99);
}

.status,
.status-badge,
.queue-badge {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.status::before,
.status-badge::before {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 6px;
  opacity: .72;
  width: 6px;
}

.table-wrap {
  overflow: hidden;
}

.table-wrap table {
  width: 100%;
}

.table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.table-wrap tbody tr {
  transition: background .16s ease, transform .16s ease;
}

.table-wrap tbody tr:hover {
  background: rgba(37, 99, 235, .026);
}

.table-wrap tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 rgba(37, 99, 235, .42);
}

.product-module-card strong,
.selection-product-link,
.conversation-title,
.chat-toolbar h2 {
  color: var(--finish-ink);
}

.product-module-card p,
.conversation-meta,
.chat-tip-list,
.selection-data-status,
.selection-note-list {
  color: var(--finish-muted);
}

.chat-workbench {
  align-items: stretch;
}

.chat-rail,
.chat-context {
  align-self: stretch;
}

.chat-toolbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(248, 251, 255, .56));
  border-radius: 13px;
  margin: 0 0 12px;
  padding: 12px;
}

.chat-message-list {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.chat-bubble {
  border: 1px solid rgba(104, 127, 159, .14);
}

.chat-command-bar {
  border-color: rgba(37, 99, 235, .18);
}

.video-step-row p,
.video-material-slots p,
.selection-template-row,
.learning-card,
.memory-rule-item {
  box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
}

.video-story-arc span {
  box-shadow: 0 10px 22px rgba(37, 99, 235, .065);
}

.video-progress-steps span.done,
.video-progress-steps span.active,
.video-progress-steps span.running {
  box-shadow: 0 12px 26px rgba(22, 163, 74, .10);
}

.selection-filter-tabs a,
.selection-sort-link,
.task-action,
.template-button,
.context-actions button,
.chat-starter {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.selection-filter-tabs a:hover,
.selection-sort-link:hover,
.task-action:hover,
.template-button:hover,
.context-actions button:hover,
.chat-starter:hover {
  transform: translateY(-1px);
}

.site-footer {
  color: #6b7a90;
  font-size: 12px;
  padding: 12px 24px 22px;
  text-align: center;
}

.site-footer a {
  color: #64748b;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--finish-blue-strong);
}

/* Finish 6: screenshot-guided density fixes for the workspace pages. */
.voice-feature-card,
.mini-task {
  color: #172033;
}

.voice-feature-card p,
.mini-task p {
  color: #526178;
  opacity: 1;
}

.voice-feature-card .status.running,
.voice-feature-card .status.queued,
.mini-task .status.running,
.mini-task .status.queued {
  background: #dbeafe;
  color: #1d4ed8;
}

.voice-feature-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(246, 250, 255, .82)),
    radial-gradient(circle at 100% 0, rgba(37, 99, 235, .10), transparent 34%);
  border-color: rgba(37, 99, 235, .18);
}

.chat-workbench {
  grid-template-columns: 190px minmax(0, 1fr) 204px;
}

.page-chat .chat-workbench {
  min-height: min(720px, calc(100vh - 276px));
}

.page-chat .chat-fixed-workbench {
  height: min(720px, calc(100vh - 276px));
}

.chat-context {
  padding: 13px;
}

.chat-context h2 {
  font-size: 17px;
}

.chat-tip-list {
  font-size: 13px;
  line-height: 1.58;
  padding-left: 17px;
}

.chat-message-list {
  min-height: 0;
  padding: 18px 16px 24px;
}

.sticky-composer {
  margin-top: 10px;
  position: relative;
  z-index: 3;
}

.chat-canvas {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.chat-canvas.has-config-banner {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.chat-command-bar {
  align-self: end;
}

.chat-message.assistant .chat-bubble {
  max-width: min(720px, 82%);
}

.chat-message.user .chat-bubble {
  max-width: min(520px, 70%);
}

.chat-error {
  background: rgba(254, 226, 226, .90);
  border: 1px solid rgba(220, 38, 38, .20);
  border-radius: 12px;
  color: #b91c1c;
  font-size: 13px;
  margin-top: 10px;
  padding: 10px;
}

.video-material-workflow {
  align-items: start;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
}

.video-step-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-material-plan-form {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(240px, .78fr) minmax(0, 1.22fr);
}

.video-material-plan-form label {
  min-height: 126px;
}

.video-material-plan-form label:nth-of-type(2) {
  grid-row: span 2;
}

.video-material-plan-form textarea {
  min-height: 76px;
}

.video-material-plan-form label:nth-of-type(2) textarea {
  min-height: 170px;
}

.video-material-plan-form button[type="submit"] {
  align-self: stretch;
  border-radius: 14px;
  grid-column: 1 / -1;
  min-width: 190px;
  padding: 14px 18px;
}

.video-task-form {
  display: grid;
  gap: 13px;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
}

.video-form-intro,
.video-form-section.primary,
.video-form-section:has(.video-script-field),
.video-form-section:has(.video-brief-field),
.video-form-section.video-options-section,
.video-submit-warning,
.video-task-form > button,
.video-submit-feedback {
  grid-column: 1 / -1;
}

.video-form-section.primary {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .48fr);
}

.video-title-preview {
  align-self: stretch;
  display: grid;
  place-content: center start;
}

.video-form-section:has(.video-script-field),
.video-form-section:has(.video-brief-field) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.video-script-field {
  min-height: 150px;
}

.video-brief-field {
  min-height: 112px;
}

.video-options-section {
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
}

.video-task-form button[type="submit"] {
  min-height: 58px;
}

.selection-console {
  align-items: start;
}

.selection-status-bar {
  grid-template-columns: minmax(0, 1fr);
}

.selection-status-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.selection-run-form {
  justify-self: start;
}

.selection-ops-summary,
.selection-template-panel,
.selection-boundary-panel,
.selection-workbench {
  grid-column: 1 / -1;
}

.selection-ops-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.selection-template-panel {
  width: 100%;
}

.selection-template-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.selection-boundary-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.selection-boundary-list li {
  min-height: 62px;
}

.selection-main {
  width: 100%;
}

.product-home-layout {
  grid-template-columns: minmax(0, 1fr) minmax(288px, 330px);
}

.product-home-rail .panel {
  padding: 14px;
}

.usage-bars {
  gap: 8px;
}

.usage-bars span {
  min-height: 46px;
  padding: 8px 10px;
}

@media (max-width: 1320px) {
  .video-material-plan-form,
  .video-task-form,
  .video-form-section.primary,
  .video-options-section {
    grid-template-columns: 1fr;
  }

  .selection-status-metrics,
  .selection-boundary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 1180px) {
  .sidebar {
    width: 220px;
  }

  .workspace {
    margin-left: 220px;
  }
}

/* Finish 7: younger, sharper product surface inspired by modern open-source admin dashboards. */
:root {
  --finish-bg: #f6f8fc;
  --finish-ink: #111827;
  --finish-muted: #5d6b82;
  --finish-faint: #93a0b4;
  --finish-line: rgba(120, 142, 171, .24);
  --finish-line-strong: rgba(82, 105, 138, .36);
  --finish-panel: rgba(255, 255, 255, .90);
  --finish-panel-solid: #ffffff;
  --finish-blue: #2563eb;
  --finish-blue-strong: #155eef;
  --finish-cyan: #06b6d4;
  --finish-lime: #84cc16;
  --finish-rose: #fb7185;
  --finish-amber: #f59e0b;
  --finish-radius: 15px;
  --finish-radius-lg: 20px;
  --finish-shadow: 0 1px 2px rgba(15, 23, 42, .045), 0 18px 54px rgba(28, 44, 78, .08);
  --finish-shadow-soft: 0 1px 2px rgba(15, 23, 42, .035), 0 10px 30px rgba(28, 44, 78, .052);
  --finish-ring: 0 0 0 4px rgba(37, 99, 235, .10);
}

.app-body {
  background:
    linear-gradient(90deg, rgba(37, 99, 235, .035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(14, 165, 233, .026) 1px, transparent 1px),
    linear-gradient(180deg, #fbfdff 0%, #f6f9fd 36%, #eef5fb 100%);
  background-attachment: fixed;
  background-size: 64px 64px, 64px 64px, auto;
}

.app-body::before {
  background:
    linear-gradient(115deg, transparent 0 48%, rgba(37, 99, 235, .045) 48% 48.12%, transparent 48.12%),
    linear-gradient(25deg, transparent 0 64%, rgba(6, 182, 212, .052) 64% 64.14%, transparent 64.14%),
    linear-gradient(180deg, rgba(255, 255, 255, .70), transparent 28%);
  opacity: .86;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .94), rgba(6, 15, 31, .98)),
    #0a1220;
  border-right: 1px solid rgba(226, 232, 240, .12);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .04), 14px 0 44px rgba(15, 23, 42, .10);
}

.sidebar::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .10), transparent 34%),
    linear-gradient(90deg, rgba(37, 99, 235, .20), transparent 48%);
  height: 100%;
  opacity: .62;
}

.brand {
  border-color: rgba(226, 232, 240, .16);
  box-shadow: 0 18px 40px rgba(2, 6, 23, .24), inset 0 1px 0 rgba(255, 255, 255, .14);
}

.brand-mark {
  font-size: 0;
}

.brand-mark::before {
  color: #155eef;
  content: "G";
  font-size: 19px;
  font-weight: 950;
}

.nav-link {
  color: #cbd5e1;
  font-weight: 760;
  letter-spacing: 0;
}

.nav-link:hover {
  background: rgba(255, 255, 255, .082);
  border-color: rgba(226, 232, 240, .13);
  color: #ffffff;
}

.nav-link.active {
  background:
    linear-gradient(135deg, #2563eb 0%, #155eef 48%, #06b6d4 100%);
  box-shadow: 0 18px 34px rgba(37, 99, 235, .27), inset 0 1px 0 rgba(255, 255, 255, .20);
}

.nav-link.active::before {
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(255, 255, 255, .70);
  content: "";
  height: 18px;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
}

.nav-icon {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(226, 232, 240, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}

.user-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .055));
  border-color: rgba(226, 232, 240, .16);
}

.workspace-header {
  background: rgba(255, 255, 255, .84);
  border-bottom: 1px solid rgba(120, 142, 171, .20);
  box-shadow: 0 10px 34px rgba(29, 78, 216, .045);
}

.workspace-header::before {
  background:
    linear-gradient(90deg, rgba(37, 99, 235, .11), transparent 36%, rgba(6, 182, 212, .09)),
    linear-gradient(180deg, rgba(255, 255, 255, .72), transparent);
}

.workspace-kicker,
.section-kicker {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.workspace-kicker::before,
.section-kicker::before {
  background: linear-gradient(135deg, var(--finish-blue), var(--finish-cyan));
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .08);
}

.workspace-header h1 {
  color: #0f172a;
  font-size: clamp(30px, 2.2vw, 42px);
  letter-spacing: 0;
}

.status-strip {
  gap: 9px;
}

.status-chip,
.header-link,
.model-badge {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(120, 142, 171, .25);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .035);
}

.status-chip.online,
.system-pill.online,
.model-badge.success {
  background: linear-gradient(135deg, rgba(220, 252, 231, .95), rgba(236, 253, 245, .78));
  border-color: rgba(22, 163, 74, .20);
  color: #047857;
}

.workspace-content {
  max-width: 1560px;
  padding-top: 26px;
}

.workspace-context,
.panel,
.product-module-card,
.chat-canvas,
.chat-rail,
.chat-context,
.selection-status-bar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(249, 251, 255, .86));
  border: 1px solid rgba(120, 142, 171, .24);
  border-radius: var(--finish-radius-lg);
  box-shadow: var(--finish-shadow-soft);
}

.panel,
.product-module-card,
.focus-item,
.shortcut-list a,
.selection-template-row,
.video-material-plan-card,
.chat-bubble {
  outline: 1px solid rgba(255, 255, 255, .62);
  outline-offset: -2px;
}

.panel:hover,
.product-module-card:hover,
.focus-item:hover,
.shortcut-list a:hover {
  border-color: rgba(37, 99, 235, .28);
  box-shadow: var(--finish-shadow);
}

.workspace-context::before,
.recent-panel::before,
.admin-record-panel::before,
.settings-hero-panel::before,
.admin-hero-panel::before {
  background: linear-gradient(90deg, var(--finish-cyan), var(--finish-blue) 40%, #8b5cf6 72%, var(--finish-amber));
  height: 3px;
}

.workspace-context {
  padding: 20px 22px;
}

.context-copy strong {
  font-size: clamp(30px, 2.4vw, 42px);
}

.context-metrics span,
.product-home-status span,
.selection-metric,
.metric-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(241, 247, 255, .78));
  border: 1px solid rgba(120, 142, 171, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), 0 8px 20px rgba(15, 23, 42, .035);
}

.product-home-hero {
  align-items: end;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(240, 249, 255, .88)),
    linear-gradient(90deg, rgba(37, 99, 235, .06), transparent 48%, rgba(6, 182, 212, .06));
  overflow: hidden;
  position: relative;
}

.product-home-hero::after {
  background:
    linear-gradient(90deg, transparent, rgba(37, 99, 235, .12), transparent);
  content: "";
  height: 1px;
  left: 28px;
  position: absolute;
  right: 28px;
  top: 0;
}

.product-home-hero h2 {
  font-size: clamp(36px, 3.2vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.product-module-grid {
  gap: 14px;
}

.product-module-card {
  min-height: 134px;
  padding: 18px;
  position: relative;
}

.product-module-card::after {
  background: linear-gradient(180deg, rgba(37, 99, 235, .12), transparent);
  border-radius: 999px;
  content: "";
  height: 44px;
  opacity: 0;
  position: absolute;
  right: 18px;
  top: 18px;
  transform: scale(.82);
  transition: opacity .18s ease, transform .18s ease;
  width: 44px;
}

.product-module-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.module-icon,
.nav-icon,
.user-avatar {
  flex: 0 0 auto;
}

.module-icon {
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .48), 0 12px 28px rgba(37, 99, 235, .14);
}

.product-module-card small,
.model-badge,
.status-chip,
.system-pill {
  border-radius: 999px;
  font-weight: 850;
}

.focus-item,
.shortcut-list a {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(246, 250, 255, .84));
  border: 1px solid rgba(120, 142, 171, .22);
  border-radius: 14px;
}

.usage-bars span {
  background: rgba(241, 247, 255, .82);
  border: 1px solid rgba(120, 142, 171, .20);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.usage-bars span::before {
  background: linear-gradient(90deg, var(--finish-blue), var(--finish-cyan));
  border-radius: inherit;
  bottom: 0;
  content: "";
  left: 0;
  opacity: .18;
  position: absolute;
  top: 0;
  width: min(calc(var(--bar, 0) * 18%), 100%);
}

.usage-bars span > * {
  position: relative;
  z-index: 1;
}

.product-activity-grid article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(246, 250, 255, .82));
  border: 1px solid rgba(120, 142, 171, .20);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .035);
}

.product-activity-grid article > strong {
  color: #0f172a;
  display: inline-flex;
  font-size: 15px;
  gap: 8px;
  margin-bottom: 10px;
}

.product-activity-grid article > strong::before {
  background: linear-gradient(135deg, var(--finish-blue), var(--finish-cyan));
  border-radius: 999px;
  content: "";
  height: 9px;
  margin-top: 5px;
  width: 9px;
}

.table-wrap {
  border: 1px solid rgba(120, 142, 171, .20);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .80);
}

.table-wrap thead th,
.recent-panel th {
  background: rgba(244, 248, 253, .94);
  color: #5b6780;
  font-size: 12px;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.table-wrap td,
.recent-panel td {
  border-color: rgba(120, 142, 171, .14);
}

.task-form input,
.task-form textarea,
.image-command-card textarea,
.spanish-form textarea,
.video-task-form input,
.video-task-form textarea,
.video-task-form select,
.chat-command-bar textarea,
.search-input,
.selection-search-input {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(120, 142, 171, .26);
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.task-form input:focus,
.task-form textarea:focus,
.image-command-card textarea:focus,
.spanish-form textarea:focus,
.video-task-form input:focus,
.video-task-form textarea:focus,
.video-task-form select:focus,
.chat-command-bar textarea:focus,
.search-input:focus,
.selection-search-input:focus {
  border-color: rgba(37, 99, 235, .44);
  box-shadow: var(--finish-ring);
  outline: none;
}

.task-form button[type="submit"],
.spanish-form button[type="submit"],
.video-task-form button[type="submit"],
.primary-action,
.chat-command-bar button[type="submit"] {
  background: linear-gradient(135deg, var(--finish-blue), #4f46e5 66%, var(--finish-cyan));
  border: 1px solid rgba(255, 255, 255, .34);
  box-shadow: 0 14px 30px rgba(37, 99, 235, .22);
}

.task-form button[type="submit"]:hover,
.spanish-form button[type="submit"]:hover,
.video-task-form button[type="submit"]:hover,
.primary-action:hover,
.chat-command-bar button[type="submit"]:hover {
  box-shadow: 0 18px 40px rgba(37, 99, 235, .28);
  filter: saturate(1.08);
}

.chat-canvas,
.chat-rail,
.chat-context {
  border-color: rgba(120, 142, 171, .24);
}

.chat-message-list {
  background:
    linear-gradient(90deg, rgba(37, 99, 235, .026) 1px, transparent 1px),
    linear-gradient(0deg, rgba(14, 165, 233, .020) 1px, transparent 1px),
    rgba(255, 255, 255, .45);
  background-size: 44px 44px;
  border: 1px solid rgba(120, 142, 171, .18);
  border-radius: 16px;
}

.chat-message.assistant .chat-bubble {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .055);
}

.chat-message.user .chat-bubble {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: 0 14px 30px rgba(37, 99, 235, .24);
}

.video-progress-panel,
.video-material-plan-card,
.selection-template-row,
.learning-card,
.memory-rule-item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(246, 250, 255, .84));
  border-color: rgba(120, 142, 171, .22);
}

.login-body {
  background-color: #07111f;
}

.login-panel {
  border-color: rgba(226, 232, 240, .22);
  box-shadow: 0 28px 80px rgba(2, 6, 23, .42), inset 0 1px 0 rgba(255, 255, 255, .11);
}

@media (prefers-reduced-motion: no-preference) {
  .workspace-content > .panel,
  .workspace-content > .studio-grid,
  .workspace-context,
  .product-home-layout {
    animation: finish7Rise .38s cubic-bezier(.2, .8, .2, 1) both;
  }

  .product-module-card:hover,
  .focus-item:hover,
  .shortcut-list a:hover,
  .panel:hover {
    transform: translateY(-2px);
  }

  .nav-link.active .nav-icon,
  .status-chip.online {
    animation: finish7Breathe 3s ease-in-out infinite;
  }
}

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

@keyframes finish7Breathe {
  0%,
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 0 rgba(37, 99, 235, 0);
  }
  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 22px rgba(37, 99, 235, .28);
  }
}

/* Finish 8: product-grade visual tightening, keeping the app lightweight and HTML/CSS-only. */
:root {
  --finish8-ink: #101827;
  --finish8-muted: #647084;
  --finish8-line: rgba(118, 139, 171, .22);
  --finish8-blue: #1d6cff;
  --finish8-cyan: #09c7ee;
  --finish8-violet: #7657ff;
  --finish8-green: #13c785;
  --finish8-card: rgba(255, 255, 255, .88);
  --finish8-shadow: 0 18px 60px rgba(20, 31, 54, .10);
  --finish8-soft-shadow: 0 10px 28px rgba(20, 31, 54, .075);
}

.app-body {
  color: var(--finish8-ink);
}

.app-body::before {
  background:
    radial-gradient(circle at 24% 7%, rgba(9, 199, 238, .15), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(118, 87, 255, .12), transparent 28%),
    linear-gradient(90deg, rgba(29, 108, 255, .034) 1px, transparent 1px),
    linear-gradient(0deg, rgba(29, 108, 255, .026) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.sidebar {
  background:
    radial-gradient(circle at 16% 0%, rgba(72, 137, 255, .26), transparent 31%),
    linear-gradient(180deg, rgba(17, 31, 54, .98), rgba(6, 15, 29, .98));
  border-right: 1px solid rgba(212, 225, 255, .12);
  box-shadow: 18px 0 46px rgba(3, 10, 24, .18);
}

.brand {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .055)),
    radial-gradient(circle at 0% 0%, rgba(9, 199, 238, .20), transparent 52%);
  border: 1px solid rgba(226, 238, 255, .14);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 16px 36px rgba(2, 8, 20, .18);
}

.brand-mark,
.login-brand-mark {
  background:
    radial-gradient(circle at 28% 24%, #ffffff 0 7%, rgba(255, 255, 255, .48) 8% 16%, transparent 17%),
    linear-gradient(135deg, rgba(237, 247, 255, .98), rgba(151, 190, 255, .76));
  color: #1445a8;
}

.nav-link {
  border-radius: 13px;
  position: relative;
}

.nav-link::after {
  background: linear-gradient(180deg, var(--finish8-cyan), var(--finish8-blue));
  border-radius: 999px;
  bottom: 11px;
  content: "";
  left: -10px;
  opacity: 0;
  position: absolute;
  top: 11px;
  transform: scaleY(.35);
  transition: opacity .18s ease, transform .18s ease;
  width: 3px;
}

.nav-link.active::after,
.nav-link:hover::after {
  opacity: 1;
  transform: scaleY(1);
}

.nav-icon {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

.queue-badge,
.status-chip {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(241, 247, 255, .86));
  border: 1px solid rgba(118, 139, 171, .24);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .055);
}

.status-chip.online {
  background: linear-gradient(135deg, rgba(19, 199, 133, .14), rgba(9, 199, 238, .11));
  border-color: rgba(19, 199, 133, .24);
  color: #057a53;
}

.workspace-header {
  backdrop-filter: blur(18px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(248, 252, 255, .76));
  border-bottom: 1px solid rgba(118, 139, 171, .17);
}

.workspace-header h1 {
  letter-spacing: 0;
}

.workspace-kicker,
.section-kicker {
  color: #496078;
  font-weight: 900;
  letter-spacing: .12em;
}

.workspace-kicker::before,
.section-kicker::before {
  box-shadow: 0 0 18px rgba(9, 199, 238, .52);
}

.header-link {
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(118, 139, 171, .20);
  border-radius: 999px;
  color: #334155;
  font-weight: 850;
  padding: 9px 13px;
  text-decoration: none;
}

.header-link:hover {
  border-color: rgba(29, 108, 255, .26);
  color: #1452cb;
  transform: translateY(-1px);
}

.panel,
.product-module-card,
.chat-canvas,
.chat-rail,
.chat-context,
.video-command-card {
  box-shadow: var(--finish8-soft-shadow);
}

.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(248, 251, 255, .82));
  border: 1px solid var(--finish8-line);
  overflow: hidden;
  position: relative;
}

.panel::before {
  background: linear-gradient(90deg, rgba(9, 199, 238, .60), rgba(29, 108, 255, .68), rgba(118, 87, 255, .54), rgba(255, 139, 56, .50));
  content: "";
  height: 3px;
  left: 22px;
  opacity: .78;
  position: absolute;
  right: 22px;
  top: 0;
}

.workspace-context {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(239, 248, 255, .74)),
    radial-gradient(circle at 96% 18%, rgba(9, 199, 238, .16), transparent 24%);
}

.context-metrics span,
.product-home-status span {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(118, 139, 171, .18);
  box-shadow: 0 10px 24px rgba(20, 31, 54, .06);
}

.product-home-hero {
  background:
    radial-gradient(circle at 7% 14%, rgba(9, 199, 238, .18), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(240, 247, 255, .78));
}

.product-home-hero h2,
.section-heading h2,
.chat-toolbar h2,
.video-material-workflow h3,
.video-material-plan-head h3 {
  color: #111827;
  letter-spacing: 0;
}

.product-module-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(246, 250, 255, .84));
  border: 1px solid rgba(118, 139, 171, .20);
  isolation: isolate;
  min-height: 148px;
  overflow: hidden;
}

.product-module-card::before {
  background: radial-gradient(circle at 18% 6%, rgba(9, 199, 238, .16), transparent 34%);
  content: "";
  inset: 0;
  opacity: .9;
  position: absolute;
  z-index: -1;
}

.product-module-card::after {
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, .74), transparent);
  content: "";
  height: 180%;
  left: -80%;
  opacity: 0;
  position: absolute;
  top: -50%;
  transform: rotate(18deg);
  transition: left .42s ease, opacity .2s ease;
  width: 42%;
  z-index: -1;
}

.product-module-card:hover::after {
  left: 110%;
  opacity: .72;
}

.module-icon {
  background: linear-gradient(135deg, var(--finish8-blue), var(--finish8-violet));
  box-shadow: 0 14px 28px rgba(29, 108, 255, .22);
  color: #fff;
}

.module-image .module-icon,
.module-video .module-icon {
  background: linear-gradient(135deg, #09aeea, #7657ff);
}

.module-spanish .module-icon,
.module-selection .module-icon {
  background: linear-gradient(135deg, #13c785, #1d6cff);
}

.focus-item,
.shortcut-list a,
.system-pill {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.focus-item:hover,
.shortcut-list a:hover {
  border-color: rgba(29, 108, 255, .28);
  box-shadow: 0 14px 30px rgba(29, 108, 255, .10);
}

.product-activity-grid article {
  min-height: 152px;
}

.product-activity-grid article p {
  background: rgba(255, 255, 255, .58);
  border-radius: 11px;
  margin: 8px 0 0;
  padding: 8px 10px;
}

.task-form input,
.task-form textarea,
.image-command-card textarea,
.spanish-form textarea,
.video-task-form input,
.video-task-form textarea,
.video-task-form select,
.chat-command-bar textarea,
.search-input,
.selection-search-input {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.task-form input:hover,
.task-form textarea:hover,
.image-command-card textarea:hover,
.spanish-form textarea:hover,
.video-task-form input:hover,
.video-task-form textarea:hover,
.video-task-form select:hover,
.chat-command-bar textarea:hover {
  border-color: rgba(29, 108, 255, .24);
}

.chat-workbench {
  gap: 16px;
}

.chat-rail,
.chat-context,
.chat-canvas {
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(16px);
}

.conversation-link {
  border-radius: 12px;
}

.conversation-link.active {
  background: linear-gradient(135deg, rgba(29, 108, 255, .13), rgba(9, 199, 238, .08));
  border-color: rgba(29, 108, 255, .28);
  box-shadow: inset 3px 0 0 rgba(29, 108, 255, .68);
}

.chat-message-list {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.chat-message.assistant .chat-bubble,
.chat-message.user .chat-bubble {
  border-radius: 18px;
}

.chat-message.assistant .chat-bubble {
  border: 1px solid rgba(118, 139, 171, .18);
}

.chat-command-bar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .70), rgba(255, 255, 255, .94));
  border-color: rgba(118, 139, 171, .18);
  backdrop-filter: blur(12px);
}

.context-actions button,
.chat-starter,
.icon-action {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.context-actions button:hover,
.chat-starter:hover,
.icon-action:hover {
  box-shadow: 0 12px 26px rgba(29, 108, 255, .12);
  transform: translateY(-1px);
}

.video-material-workflow,
.video-material-plan-card,
.video-form-section,
.video-progress-panel,
.video-preview-card {
  border-radius: 18px;
}

.video-step-row p,
.video-material-slots p {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(246, 250, 255, .80));
  border-color: rgba(118, 139, 171, .20);
  box-shadow: 0 10px 24px rgba(20, 31, 54, .045);
}

.video-step-row strong {
  background: linear-gradient(135deg, var(--finish8-blue), var(--finish8-cyan));
  color: #fff;
}

.video-submit-warning {
  background:
    linear-gradient(135deg, rgba(255, 247, 237, .95), rgba(255, 255, 255, .86));
  border-color: rgba(251, 146, 60, .34);
}

.video-task-form button[type="submit"] strong,
.task-form button[type="submit"],
.spanish-form button[type="submit"],
.primary-action {
  letter-spacing: 0;
}

.progress-meter {
  background: rgba(226, 237, 250, .92);
  border: 1px solid rgba(118, 139, 171, .20);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .08);
}

.progress-meter span {
  background: linear-gradient(90deg, var(--finish8-cyan), var(--finish8-blue), var(--finish8-violet));
}

.video-progress-steps span {
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .70);
}

.table-wrap,
.recent-panel {
  background: rgba(255, 255, 255, .80);
}

.site-footer,
.login-icp {
  color: rgba(100, 116, 139, .88);
}

.site-footer a,
.login-icp a {
  color: inherit;
}

.dynamic-login::after {
  background:
    linear-gradient(90deg, rgba(9, 199, 238, .10) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  opacity: .55;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.login-stage {
  position: relative;
  z-index: 2;
}

.login-hero,
.login-panel {
  backdrop-filter: blur(18px);
}

.login-hero {
  background: linear-gradient(135deg, rgba(7, 17, 31, .18), rgba(7, 17, 31, .04));
  border: 1px solid rgba(226, 238, 255, .10);
  border-radius: 26px;
  padding: clamp(26px, 4vw, 52px);
}

.login-panel {
  background:
    linear-gradient(180deg, rgba(10, 23, 43, .86), rgba(8, 19, 37, .74)),
    radial-gradient(circle at 100% 0%, rgba(9, 199, 238, .18), transparent 28%);
  border-radius: 24px;
}

.login-panel input {
  background: rgba(2, 8, 20, .48);
}

.login-product-card span {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(226, 238, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .11);
}

@media (prefers-reduced-motion: no-preference) {
  .workspace-header::before {
    animation: finish8HeaderSweep 7s linear infinite;
  }

  .panel::before {
    animation: finish8PanelLine 7s ease-in-out infinite;
  }

  .product-module-card:hover,
  .video-step-row p:hover,
  .conversation-link:hover {
    transform: translateY(-2px);
  }

  .login-orbit {
    animation-duration: 14s;
  }
}

@keyframes finish8HeaderSweep {
  0% {
    transform: translateX(-12%);
  }
  50% {
    transform: translateX(8%);
  }
  100% {
    transform: translateX(-12%);
  }
}

@keyframes finish8PanelLine {
  0%,
  100% {
    opacity: .45;
    transform: scaleX(.72);
  }
  50% {
    opacity: .92;
    transform: scaleX(1);
  }
}

/* Finish 9: reduce visual noise, sharpen brand identity, and make dense pages feel more finished. */
:root {
  --finish9-surface: rgba(255, 255, 255, .90);
  --finish9-surface-strong: rgba(255, 255, 255, .96);
  --finish9-hairline: rgba(113, 134, 165, .18);
  --finish9-shadow: 0 18px 48px rgba(15, 23, 42, .085);
  --finish9-focus: 0 0 0 4px rgba(29, 108, 255, .12), 0 18px 40px rgba(29, 108, 255, .12);
}

.app-body::before {
  opacity: .78;
}

.brand-mark,
.login-brand-mark {
  align-items: center;
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  letter-spacing: 0;
}

.brand-mark {
  color: #0e3f98;
  font-size: 18px;
}

.login-brand-mark {
  color: #0e3f98;
  font-size: 18px;
}

.brand strong,
.login-brand strong {
  letter-spacing: 0;
}

.sidebar {
  background:
    radial-gradient(circle at 8% 0%, rgba(52, 115, 255, .28), transparent 28%),
    radial-gradient(circle at 90% 54%, rgba(9, 199, 238, .08), transparent 28%),
    linear-gradient(180deg, #122038, #06101f 86%);
}

.brand,
.user-card,
.sidebar-logout button {
  border-color: rgba(225, 237, 255, .12);
}

.nav-link {
  min-height: 46px;
}

.nav-link.active {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .90), rgba(6, 182, 212, .82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 16px 34px rgba(37, 99, 235, .24);
}

.nav-link.active .nav-icon {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.workspace-header {
  min-height: 90px;
}

.status-strip {
  gap: 9px;
}

.status-chip,
.header-link {
  min-height: 36px;
}

.header-link {
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.workspace-content {
  gap: 18px;
}

.panel,
.product-module-card,
.chat-canvas,
.chat-rail,
.chat-context,
.video-command-card {
  border-color: var(--finish9-hairline);
}

.panel {
  background:
    linear-gradient(180deg, var(--finish9-surface-strong), rgba(247, 251, 255, .84));
}

.panel::before {
  left: 32px;
  opacity: .46;
  right: 32px;
}

.product-home-rail .panel::before,
.video-aside .panel::before,
.chat-rail::before,
.chat-context::before,
.product-activity-panel::before {
  opacity: .28;
}

.workspace-context::before,
.product-home-hero::before {
  opacity: .54;
}

.workspace-context,
.product-home-hero {
  box-shadow: var(--finish9-shadow);
}

.product-home-hero {
  min-height: 168px;
}

.product-home-status span,
.context-metrics span {
  min-width: 116px;
}

.product-module-panel,
.product-home-rail .panel,
.product-activity-panel {
  box-shadow: 0 16px 44px rgba(15, 23, 42, .075);
}

.product-module-grid {
  gap: 16px;
}

.product-module-card {
  border-radius: 17px;
  min-height: 136px;
  padding: 22px;
}

.product-module-card strong {
  font-size: 18px;
}

.product-module-card p {
  color: #637086;
  line-height: 1.65;
}

.product-module-card small,
.model-badge {
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(113, 134, 165, .18);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
}

.focus-item,
.shortcut-list a,
.usage-bars span,
.product-activity-grid article {
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(248, 251, 255, .78));
}

.focus-item,
.shortcut-list a {
  border-radius: 14px;
  min-height: 56px;
}

.shortcut-list a {
  color: #1452cb;
}

.usage-bars {
  gap: 10px;
}

.product-activity-grid article {
  border-radius: 17px;
}

.product-activity-grid article p {
  color: #46566b;
}

.chat-workbench {
  grid-template-columns: minmax(190px, 230px) minmax(560px, 1fr) minmax(230px, 300px);
}

.chat-rail,
.chat-canvas,
.chat-context {
  border-radius: 18px;
}

.chat-toolbar {
  border-bottom: 1px solid rgba(113, 134, 165, .13);
  margin: -6px -6px 14px;
  padding: 6px 6px 16px;
}

.chat-message-list {
  background:
    linear-gradient(90deg, rgba(29, 108, 255, .018) 1px, transparent 1px),
    linear-gradient(0deg, rgba(29, 108, 255, .014) 1px, transparent 1px),
    rgba(255, 255, 255, .46);
  background-size: 52px 52px;
  min-height: 520px;
}

.chat-message.assistant .chat-bubble {
  max-width: 78%;
}

.chat-message.user .chat-bubble {
  max-width: 70%;
}

.chat-command-bar {
  border-radius: 18px;
  box-shadow: 0 -10px 34px rgba(15, 23, 42, .055);
}

.chat-composer textarea {
  min-height: 74px;
}

.context-status.online {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 12px 26px rgba(19, 199, 133, .10);
}

.video-studio-grid {
  gap: 18px;
}

.video-command-card {
  box-shadow: var(--finish9-shadow);
}

.video-material-workflow {
  background:
    radial-gradient(circle at 92% 8%, rgba(29, 108, 255, .10), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(248, 251, 255, .86));
  border: 1px solid rgba(113, 134, 165, .18);
}

.video-step-row p {
  min-height: 116px;
}

.video-form-intro {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .94), rgba(29, 54, 105, .92)),
    radial-gradient(circle at 100% 0%, rgba(9, 199, 238, .20), transparent 32%);
  border-color: rgba(255, 255, 255, .12);
  color: #eaf3ff;
}

.video-form-intro small {
  color: rgba(226, 236, 255, .72);
}

.video-form-section {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(113, 134, 165, .16);
}

.video-upload-card {
  background:
    linear-gradient(180deg, rgba(247, 251, 255, .92), rgba(255, 255, 255, .82));
}

.video-aside .settings-list p,
.video-plan-box,
.video-ai-judgment,
.video-quality-box,
.video-vision-status {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(113, 134, 165, .16);
}

.task-form input:focus,
.task-form textarea:focus,
.image-command-card textarea:focus,
.spanish-form textarea:focus,
.video-task-form input:focus,
.video-task-form textarea:focus,
.video-task-form select:focus,
.chat-command-bar textarea:focus,
.search-input:focus,
.selection-search-input:focus {
  box-shadow: var(--finish9-focus);
}

.login-stage {
  gap: clamp(46px, 6vw, 92px);
}

.login-hero {
  box-shadow: 0 30px 90px rgba(2, 8, 20, .22), inset 0 1px 0 rgba(255, 255, 255, .10);
}

.login-hero h1 {
  letter-spacing: 0;
}

.login-panel {
  box-shadow: 0 30px 80px rgba(2, 8, 20, .48), 0 0 0 1px rgba(56, 189, 248, .18);
}

.login-panel button {
  box-shadow: 0 18px 40px rgba(37, 99, 235, .30);
}

.login-panel input:focus {
  box-shadow: 0 0 0 4px rgba(9, 199, 238, .16), inset 0 1px 0 rgba(255, 255, 255, .08);
}

@media (prefers-reduced-motion: no-preference) {
  .product-module-card,
  .focus-item,
  .shortcut-list a,
  .video-step-row p,
  .chat-bubble {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  }

  .product-module-card:hover,
  .focus-item:hover,
  .shortcut-list a:hover,
  .video-step-row p:hover {
    box-shadow: 0 20px 46px rgba(29, 108, 255, .13);
  }

  .brand-mark,
  .login-brand-mark {
    animation: finish9BrandPulse 4s ease-in-out infinite;
  }
}

@keyframes finish9BrandPulse {
  0%,
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 0 0 rgba(9, 199, 238, 0);
  }
  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 0 24px rgba(9, 199, 238, .26);
  }
}

/* Finish 10: product-grade refinement inspired by mature open-source admin and AI workbench layouts. */
:root {
  --finish10-ink: #0d1729;
  --finish10-muted: #5b6b82;
  --finish10-line: rgba(91, 111, 139, .18);
  --finish10-line-strong: rgba(91, 111, 139, .28);
  --finish10-card: rgba(255, 255, 255, .93);
  --finish10-card-solid: #fff;
  --finish10-blue: #1769ff;
  --finish10-cyan: #10c7e9;
  --finish10-violet: #7c5cff;
  --finish10-shadow: 0 1px 2px rgba(15, 23, 42, .045), 0 22px 58px rgba(25, 42, 78, .078);
  --finish10-lift: 0 18px 42px rgba(23, 105, 255, .14);
}

.app-body {
  color: var(--finish10-ink);
}

.app-body::before {
  background:
    radial-gradient(circle at 18% 10%, rgba(16, 199, 233, .095), transparent 26%),
    radial-gradient(circle at 84% 8%, rgba(124, 92, 255, .075), transparent 28%),
    linear-gradient(90deg, rgba(23, 105, 255, .024) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 105, 255, .018) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  opacity: .70;
}

.sidebar {
  background:
    radial-gradient(circle at 18% 0%, rgba(46, 119, 255, .30), transparent 34%),
    radial-gradient(circle at 92% 52%, rgba(16, 199, 233, .11), transparent 28%),
    linear-gradient(180deg, #13223a 0%, #07111f 86%);
}

.brand {
  border-radius: 18px;
  gap: 12px;
  padding: 14px;
}

.brand-mark,
.login-brand-mark {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(207, 229, 255, .88)),
    radial-gradient(circle at 72% 18%, rgba(16, 199, 233, .28), transparent 34%);
  color: #0d46b8;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 18px;
  line-height: 1;
  text-shadow: none;
}

.brand-mark::before,
.login-brand-mark::before,
.brand-mark::after,
.login-brand-mark::after {
  content: none;
}

.nav-link {
  border-color: transparent;
  color: rgba(226, 236, 250, .78);
}

.nav-link:hover {
  background: rgba(255, 255, 255, .078);
  border-color: rgba(213, 229, 255, .12);
  transform: translateX(2px);
}

.nav-link.active {
  background:
    linear-gradient(135deg, rgba(32, 106, 255, .96), rgba(83, 96, 255, .92) 58%, rgba(16, 199, 233, .90));
  border-color: rgba(255, 255, 255, .18);
}

.nav-icon {
  border-radius: 10px;
}

.workspace-header {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, .78);
  border-bottom-color: rgba(99, 121, 154, .16);
}

.workspace-kicker,
.section-kicker {
  color: #42608a;
  font-size: 12px;
  letter-spacing: .12em;
}

.workspace-header h1 {
  font-size: clamp(28px, 2.35vw, 38px);
  letter-spacing: 0;
}

.workspace-content {
  max-width: 1540px;
}

.workspace-context,
.panel,
.product-module-card,
.chat-canvas,
.chat-rail,
.chat-context,
.video-command-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 251, 255, .88));
  border-color: var(--finish10-line);
  box-shadow: var(--finish10-shadow);
}

.panel::before,
.chat-rail::before,
.chat-context::before {
  background: linear-gradient(90deg, transparent, rgba(23, 105, 255, .22), rgba(16, 199, 233, .18), transparent);
  opacity: .36;
}

.product-home-hero,
.workspace-context {
  background:
    radial-gradient(circle at 88% 18%, rgba(16, 199, 233, .12), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(241, 247, 255, .90));
  border-radius: 22px;
}

.product-home-hero h2,
.workspace-context strong,
.section-heading h2,
.chat-toolbar h2,
.video-command-card h2 {
  letter-spacing: 0;
}

.product-home-status span,
.context-metrics span {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(241, 247, 255, .86));
  border: 1px solid var(--finish10-line);
  border-radius: 16px;
}

.product-module-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.product-module-card {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.product-module-card::before {
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--module-a, var(--finish10-blue)) 18%, transparent), transparent 34%),
    linear-gradient(90deg, color-mix(in srgb, var(--module-a, var(--finish10-blue)) 52%, transparent), color-mix(in srgb, var(--module-b, var(--finish10-cyan)) 46%, transparent));
  border-radius: 999px;
  content: "";
  height: 4px;
  left: 22px;
  opacity: .65;
  position: absolute;
  right: 22px;
  top: 0;
}

.module-icon {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(238, 246, 255, .80)),
    radial-gradient(circle at 78% 20%, color-mix(in srgb, var(--module-b, var(--finish10-cyan)) 26%, transparent), transparent 38%);
  border: 1px solid var(--finish10-line);
  color: var(--module-a, var(--finish10-blue));
}

.product-module-card strong {
  color: #111827;
}

.product-module-card p,
.hint,
.workspace-context small {
  color: var(--finish10-muted);
}

.focus-stack,
.shortcut-list,
.system-pill-list {
  gap: 10px;
}

.focus-item,
.shortcut-list a,
.product-activity-grid article,
.video-step-row p,
.video-plan-box,
.video-ai-judgment,
.video-quality-box,
.video-vision-status {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(246, 250, 255, .82));
  border: 1px solid var(--finish10-line);
}

.chat-workbench {
  align-items: stretch;
  grid-template-columns: minmax(200px, 232px) minmax(620px, 1fr) minmax(230px, 286px);
}

.chat-message-list {
  background:
    radial-gradient(circle at 12% 0%, rgba(23, 105, 255, .045), transparent 24%),
    linear-gradient(90deg, rgba(23, 105, 255, .016) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 105, 255, .012) 1px, transparent 1px),
    rgba(255, 255, 255, .54);
  background-size: auto, 58px 58px, 58px 58px, auto;
  border-color: rgba(91, 111, 139, .12);
}

.chat-message.assistant .chat-bubble {
  border-radius: 16px 16px 16px 8px;
}

.chat-message.user .chat-bubble {
  background:
    linear-gradient(135deg, #1769ff, #635bff 72%);
  border-radius: 16px 16px 8px 16px;
}

.chat-command-bar {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  border-color: rgba(91, 111, 139, .16);
}

.chat-command-bar button[type="submit"],
.task-form button,
.video-task-form button[type="submit"],
.login-panel button {
  background:
    linear-gradient(135deg, #1769ff, #4b5cff 66%, #10b9dd);
  box-shadow: 0 18px 38px rgba(23, 105, 255, .24);
}

.video-form-intro {
  background:
    radial-gradient(circle at 94% 10%, rgba(16, 199, 233, .22), transparent 28%),
    linear-gradient(135deg, #101d33, #182b55 62%, #172554);
  border-radius: 20px;
}

.video-material-workflow,
.video-task-tracker,
.video-preview-card {
  border-radius: 20px;
}

.login-body::after {
  background:
    linear-gradient(90deg, transparent 0 42%, rgba(16, 199, 233, .18) 42% 42.08%, transparent 42.08%),
    linear-gradient(18deg, transparent 0 62%, rgba(124, 92, 255, .15) 62% 62.12%, transparent 62.12%);
  content: "";
  inset: 0;
  opacity: .62;
  pointer-events: none;
  position: fixed;
}

.login-stage {
  position: relative;
  z-index: 2;
}

.login-hero {
  border-color: rgba(213, 229, 255, .18);
}

.login-hero h1 {
  font-size: clamp(54px, 6.4vw, 96px);
  line-height: .98;
  max-width: 760px;
}

.login-copy {
  max-width: 560px;
}

.login-panel {
  border-color: rgba(124, 185, 255, .24);
  border-radius: 24px;
  max-width: 460px;
}

.login-status {
  background: rgba(9, 21, 40, .76);
  border: 1px solid rgba(120, 190, 255, .24);
}

@media (prefers-reduced-motion: no-preference) {
  .product-module-card:hover {
    border-color: rgba(23, 105, 255, .28);
    box-shadow: var(--finish10-lift);
    transform: translateY(-3px);
  }

  .focus-item:hover,
  .shortcut-list a:hover,
  .video-step-row p:hover {
    transform: translateY(-2px);
  }

  .status-chip.online {
    animation: finish10OnlinePulse 3.6s ease-in-out infinite;
  }
}

@keyframes finish10OnlinePulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(34, 197, 94, 0);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, .08);
  }
}

@media (max-width: 1180px) {
  .chat-workbench {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .chat-context {
    display: none;
  }
}

/* Finish 11: resolve inherited brand mark conflict and make the shell feel less like a demo grid. */
:root {
  --finish11-panel: rgba(255, 255, 255, .965);
  --finish11-shell-line: rgba(84, 107, 139, .15);
  --finish11-soft-shadow: 0 1px 2px rgba(15, 23, 42, .035), 0 18px 48px rgba(20, 38, 76, .070);
}

.app-body::before {
  opacity: .50;
}

.brand-mark,
.login-brand-mark {
  color: #0f48b7 !important;
  font-size: 18px !important;
  font-weight: 950;
  overflow: visible;
  position: relative;
}

.brand-mark::before,
.brand-mark::after,
.login-brand-mark::before,
.login-brand-mark::after {
  content: none !important;
  display: none !important;
}

.brand-mark {
  height: 42px;
  min-width: 42px;
  width: 42px;
}

.login-brand-mark {
  height: 40px;
  min-width: 40px;
  width: 40px;
}

.brand-mark,
.login-brand-mark,
.nav-icon,
.module-icon,
.user-avatar {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .76),
    0 10px 28px rgba(23, 105, 255, .16);
}

.sidebar {
  padding: 18px 14px 16px;
}

.brand {
  min-height: 72px;
}

.brand strong {
  font-size: 19px;
}

.brand span,
.user-card span {
  color: rgba(226, 236, 250, .72);
}

.side-nav {
  gap: 7px;
  margin-top: 22px;
}

.nav-link {
  min-height: 44px;
  padding: 9px 10px;
}

.nav-link .queue-badge {
  box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
}

.workspace {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .58), rgba(244, 249, 255, .50));
}

.workspace-header {
  min-height: 86px;
  padding-inline: 26px 28px;
}

.workspace-content {
  padding: 26px 28px 34px;
}

.workspace-context,
.panel,
.product-module-card,
.chat-canvas,
.chat-rail,
.chat-context,
.video-command-card {
  background:
    linear-gradient(180deg, var(--finish11-panel), rgba(248, 251, 255, .92));
  border-color: var(--finish11-shell-line);
  box-shadow: var(--finish11-soft-shadow);
}

.panel::before,
.chat-rail::before,
.chat-context::before {
  left: 38px;
  opacity: .28;
  right: 38px;
}

.product-home-hero,
.workspace-context {
  box-shadow: 0 1px 2px rgba(15, 23, 42, .035), 0 20px 52px rgba(23, 105, 255, .075);
}

.product-home-hero h2 {
  font-size: clamp(38px, 3.8vw, 60px);
}

.product-module-card {
  min-height: 128px;
  padding: 20px;
}

.product-module-card p {
  font-size: 14px;
}

.product-module-card small {
  backdrop-filter: blur(12px);
}

.module-icon {
  height: 42px;
  min-width: 42px;
  width: 42px;
}

.focus-item,
.shortcut-list a,
.product-activity-grid article {
  box-shadow: 0 10px 24px rgba(15, 23, 42, .036);
}

.product-activity-grid article p {
  align-items: flex-start;
  display: flex;
  gap: 8px;
}

.status.done,
.status.queued,
.status.running,
.status.failed {
  min-width: 0;
  white-space: nowrap;
}

.chat-message-list {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

.chat-bubble {
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.chat-message.user .chat-bubble {
  box-shadow: 0 14px 34px rgba(75, 91, 255, .20);
}

.chat-command-bar textarea,
.task-form input,
.task-form textarea,
.video-task-form input,
.video-task-form textarea,
.video-task-form select,
.image-command-card textarea,
.spanish-form textarea {
  background: rgba(255, 255, 255, .88);
  border-color: rgba(91, 111, 139, .18);
}

.video-step-row p {
  box-shadow: 0 12px 26px rgba(15, 23, 42, .045);
}

.video-form-intro {
  box-shadow: 0 20px 42px rgba(15, 23, 42, .14);
}

.login-hero,
.login-panel {
  backdrop-filter: blur(20px);
}

.login-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .115), rgba(255, 255, 255, .045)),
    radial-gradient(circle at 18% 18%, rgba(16, 199, 233, .16), transparent 36%);
}

.login-product-card span {
  background: rgba(255, 255, 255, .105);
  border-color: rgba(213, 229, 255, .20);
}

@media (prefers-reduced-motion: no-preference) {
  .nav-link,
  .header-link,
  .status-chip,
  .login-product-card span {
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  }

  .header-link:hover,
  .status-chip:hover,
  .login-product-card span:hover {
    transform: translateY(-1px);
  }
}

/* Ops-tech theme: productized workspace with restrained technology details. */
:root {
  --ops-bg: #f6f8fb;
  --ops-paper: #ffffff;
  --ops-sidebar: #101827;
  --ops-sidebar-2: #0d1422;
  --ops-ink: #111827;
  --ops-muted: #667085;
  --ops-faint: #98a2b3;
  --ops-line: #e4e7ec;
  --ops-line-strong: #d0d5dd;
  --ops-blue: #2563eb;
  --ops-blue-soft: #eff6ff;
  --ops-green: #16a34a;
  --ops-orange: #f97316;
  --ops-red: #dc2626;
  --ops-radius: 12px;
  --ops-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --ops-shadow-soft: 0 1px 2px rgba(16, 24, 40, .035), 0 4px 14px rgba(16, 24, 40, .045);
}

html,
.app-body {
  background: var(--ops-bg) !important;
}

.app-body {
  color: var(--ops-ink);
}

.app-body::before,
.app-body::after {
  display: none !important;
}

.workspace {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .68), rgba(246, 248, 251, .92) 220px),
    var(--ops-bg) !important;
}

.sidebar {
  background: linear-gradient(180deg, var(--ops-sidebar) 0%, var(--ops-sidebar-2) 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, .08);
  box-shadow: none !important;
}

.brand {
  background: rgba(255, 255, 255, .05) !important;
  border: 1px solid rgba(255, 255, 255, .09) !important;
  border-radius: 14px;
  box-shadow: none !important;
}

.brand-mark,
.login-brand-mark {
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .16) !important;
  color: var(--ops-blue) !important;
}

.brand strong {
  color: #f8fafc;
  font-weight: 820;
}

.brand span {
  color: rgba(226, 232, 240, .68) !important;
}

.nav-link {
  border-radius: 10px !important;
  color: rgba(226, 232, 240, .78) !important;
  transform: none !important;
}

.nav-link:hover {
  background: rgba(255, 255, 255, .07) !important;
  border-color: rgba(255, 255, 255, .10) !important;
  color: #ffffff !important;
}

.nav-link.active {
  background: #2563eb !important;
  border-color: rgba(147, 197, 253, .32) !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .22) !important;
  color: #ffffff !important;
}

.nav-link.active::before,
.nav-link.active::after {
  display: none !important;
}

.nav-icon {
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(255, 255, 255, .10) !important;
  box-shadow: none !important;
}

.nav-link.active .nav-icon {
  background: rgba(255, 255, 255, .16) !important;
}

.user-card,
.sidebar-logout button {
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  box-shadow: none !important;
}

.user-avatar {
  background: var(--ops-blue) !important;
  box-shadow: none !important;
}

.workspace-header {
  backdrop-filter: saturate(120%) blur(10px);
  background: rgba(255, 255, 255, .94) !important;
  border-bottom: 1px solid var(--ops-line) !important;
  box-shadow: none !important;
  min-height: 76px;
}

.workspace-header h1 {
  color: var(--ops-ink);
  font-size: 24px;
  font-weight: 820;
}

.workspace-kicker,
.section-kicker,
.login-kicker {
  color: #667085 !important;
  font-size: 11px !important;
  font-weight: 760 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.header-link,
.status-chip,
.model-badge {
  background: #ffffff !important;
  border: 1px solid var(--ops-line) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: #344054 !important;
}

.status-chip.online {
  background: #ecfdf3 !important;
  border-color: #abefc6 !important;
  color: #067647 !important;
}

.status-chip.online::before {
  background: #12b76a;
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: 7px;
  margin-right: 6px;
  width: 7px;
}

.workspace-content {
  max-width: 1480px;
}

.workspace-context,
.panel,
.product-module-card,
.chat-canvas,
.chat-rail,
.chat-context,
.video-command-card,
.admin-filter-form,
.selection-pagination {
  background: var(--ops-paper) !important;
  border: 1px solid var(--ops-line) !important;
  border-radius: var(--ops-radius) !important;
  box-shadow: var(--ops-shadow-soft) !important;
}

.panel::before,
.panel::after,
.chat-rail::before,
.chat-context::before,
.product-module-card::before,
.product-module-card::after,
.product-home-hero::after,
.command-card::before,
.recent-panel::before,
.admin-record-panel::before,
.settings-hero-panel::before,
.admin-hero-panel::before,
.selection-status-bar::before {
  display: none !important;
}

.product-home-hero,
.settings-hero-panel,
.admin-hero-panel,
.selection-status-bar,
.command-card {
  background:
    linear-gradient(180deg, #ffffff, #fbfcff) !important;
  border-top: 3px solid var(--ops-blue) !important;
  box-shadow: var(--ops-shadow) !important;
}

.product-home-hero h2,
.settings-hero-panel h2,
.admin-hero-panel h2,
.panel h2,
.chat-toolbar h2,
.chat-layout h2 {
  color: var(--ops-ink) !important;
  font-weight: 820 !important;
}

.product-home-hero h2 {
  font-size: 30px !important;
}

.hint,
.product-module-card p,
.chat-rail li,
.settings-list span,
.guide-grid span,
.permission-help span {
  color: var(--ops-muted) !important;
}

.product-home-status span,
.context-metrics span,
.metric-card,
.focus-item,
.settings-list p,
.permission-help p,
.guide-grid p,
.selection-metric,
.selection-ops-summary span,
.selection-field-coverage > span,
.selection-field-coverage > div,
.product-activity-grid article {
  background: #f9fafb !important;
  border: 1px solid var(--ops-line) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.product-module-grid {
  gap: 12px !important;
}

.product-module-card {
  min-height: 116px !important;
  padding: 16px !important;
}

.product-module-card:hover,
.panel:hover {
  border-color: var(--ops-line-strong) !important;
  box-shadow: var(--ops-shadow) !important;
  transform: translateY(-1px);
}

.product-module-card .module-icon,
.module-icon {
  background: var(--ops-blue-soft) !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: var(--ops-blue) !important;
}

.product-module-card small,
.selection-page-size a.active,
.selection-data-status.complete {
  background: var(--ops-blue-soft) !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}

.task-form > label,
.video-task-form label,
.range-control,
.upload-panel,
.image-upload-panel,
.reference-upload-box {
  background: #ffffff !important;
  border: 1px solid var(--ops-line) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.task-form input,
.task-form textarea,
.task-form select,
.video-task-form input,
.video-task-form textarea,
.video-task-form select,
.login-panel input,
.chat-command-bar textarea,
.image-command-card textarea,
.spanish-form textarea {
  background: #ffffff !important;
  border: 1px solid var(--ops-line-strong) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: var(--ops-ink) !important;
}

.task-form input:focus,
.task-form textarea:focus,
.task-form select:focus,
.video-task-form input:focus,
.video-task-form textarea:focus,
.video-task-form select:focus,
.login-panel input:focus,
.chat-command-bar textarea:focus,
.image-command-card textarea:focus,
.spanish-form textarea:focus {
  border-color: #84aaf5 !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12) !important;
  outline: none !important;
}

.task-form button[type="submit"],
.video-task-form button[type="submit"],
.login-panel button,
.chat-command-bar button,
.button-link:not(.secondary) {
  background: var(--ops-blue) !important;
  border: 1px solid var(--ops-blue) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .18) !important;
  color: #ffffff !important;
}

.task-form button[type="submit"]::after,
.video-task-form button[type="submit"]::after {
  display: none !important;
}

.task-form button[type="submit"]:hover,
.video-task-form button[type="submit"]:hover,
.login-panel button:hover,
.chat-command-bar button:hover,
.button-link:not(.secondary):hover {
  background: #1d4ed8 !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .22) !important;
}

.button-link.secondary,
.selection-product-link,
.header-link:hover {
  background: #ffffff !important;
  border-color: var(--ops-line-strong) !important;
  color: #1d4ed8 !important;
}

.table-wrap {
  background: #ffffff !important;
  border: 1px solid var(--ops-line) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.table-wrap thead th {
  background: #f9fafb !important;
  color: #475467 !important;
}

.table-wrap td,
.table-wrap th {
  border-bottom-color: var(--ops-line) !important;
}

.status.done {
  background: #ecfdf3 !important;
  color: #067647 !important;
}

.status.running,
.status.queued {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.status.failed {
  background: #fef3f2 !important;
  color: #b42318 !important;
}

.login-body {
  background:
    linear-gradient(120deg, rgba(37, 99, 235, .10), transparent 32%),
    linear-gradient(180deg, #0f172a 0%, #111827 100%) !important;
}

.login-bg-video {
  filter: saturate(.86) contrast(.92) brightness(.58) !important;
  opacity: .36 !important;
}

.login-grid,
.login-orbit,
.login-wave {
  opacity: .18 !important;
}

.login-stage {
  gap: clamp(28px, 4vw, 64px) !important;
}

.login-hero,
.login-panel {
  background: rgba(15, 23, 42, .70) !important;
  border: 1px solid rgba(226, 232, 240, .18) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 64px rgba(2, 6, 23, .34) !important;
}

.login-hero h1 {
  font-size: clamp(46px, 5vw, 76px) !important;
  line-height: 1.02 !important;
}

.login-copy,
.login-panel p,
.login-footnote {
  color: rgba(226, 232, 240, .72) !important;
}

.login-status,
.login-product-card span {
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(226, 232, 240, .18) !important;
  border-radius: 999px !important;
  color: rgba(248, 250, 252, .86) !important;
}

.login-panel::before {
  background: var(--ops-blue) !important;
  height: 3px !important;
}

@media (prefers-reduced-motion: no-preference) {
  .status-chip.online::before {
    animation: opsStatusPulse 1.8s ease-in-out infinite;
  }

  .product-module-card,
  .panel,
  .nav-link,
  .button-link,
  button {
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  }
}

@keyframes opsStatusPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(18, 183, 106, .24);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(18, 183, 106, 0);
  }
}

/* Premium login interaction layer, intentionally separated from app chrome. */
.login-body.dynamic-login {
  --login-cyan: #38d7ff;
  --login-blue: #2f7cff;
  --login-violet: #7466ff;
  --login-amber: #ffb547;
  --login-panel: rgba(8, 18, 34, .76);
  color: #f8fbff;
  overflow: hidden;
}

.login-body.dynamic-login.gsap-login .login-hero,
.login-body.dynamic-login.gsap-login .login-brand,
.login-body.dynamic-login.gsap-login .login-product-card,
.login-body.dynamic-login.gsap-login .login-signal-board,
.login-body.dynamic-login.gsap-login .login-flow-line,
.login-body.dynamic-login.gsap-login .login-panel {
  will-change: transform, opacity;
}

.login-body.dynamic-login::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    radial-gradient(circle at var(--login-pointer-x, 34%) var(--login-pointer-y, 42%), rgba(56, 215, 255, .18), transparent 26%),
    linear-gradient(135deg, rgba(15, 23, 42, .32), rgba(8, 13, 28, .74));
  background-size: 88px 88px, 88px 88px, auto, auto;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 1;
}

.login-body.dynamic-login::after {
  background:
    linear-gradient(90deg, transparent, rgba(56, 215, 255, .18), transparent),
    radial-gradient(circle at var(--login-pointer-x, 50%) var(--login-pointer-y, 50%), rgba(255, 255, 255, .12), transparent 16%);
  content: "";
  height: 100%;
  inset: 0;
  opacity: .72;
  pointer-events: none;
  position: fixed;
  transform: translateX(-45%);
  z-index: 2;
}

.login-bg-video {
  filter: saturate(.9) contrast(1.05) brightness(.52) !important;
  opacity: .44 !important;
  transform: scale(1.03);
}

.login-particles,
.login-grid,
.login-orbit,
.login-wave,
.login-cursor {
  z-index: 3;
}

.login-stage {
  align-items: center !important;
  min-height: 100vh;
  padding: clamp(40px, 6vw, 84px) clamp(30px, 5vw, 96px) max(92px, clamp(52px, 7vw, 108px)) !important;
  position: relative;
  z-index: 5;
}

.login-stage::before {
  background:
    linear-gradient(90deg, rgba(56, 215, 255, 0), rgba(56, 215, 255, .45), rgba(255, 181, 71, .48), rgba(116, 102, 255, 0));
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 9vw;
  opacity: .86;
  position: absolute;
  right: 9vw;
  top: 9vh;
}

.login-stage::after {
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 28px;
  bottom: 9vh;
  content: "";
  left: 7vw;
  pointer-events: none;
  position: absolute;
  right: 7vw;
  top: 12vh;
}

.login-hero {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  max-width: 720px;
  padding: clamp(20px, 3vw, 38px) !important;
  position: relative;
  transition: transform .28s ease;
}

.login-hero::before {
  background:
    linear-gradient(135deg, rgba(56, 215, 255, .18), rgba(116, 102, 255, .08)),
    linear-gradient(90deg, rgba(255, 255, 255, .18), transparent 34%);
  border: 1px solid rgba(226, 232, 240, .14);
  border-radius: 26px;
  bottom: -18px;
  content: "";
  left: -20px;
  opacity: .42;
  position: absolute;
  right: 72px;
  top: 72px;
  z-index: -1;
}

.login-brand {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(226, 232, 240, .18);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(2, 6, 23, .28);
  display: inline-flex !important;
  gap: 14px;
  margin-bottom: 44px !important;
  padding: 12px 16px;
  transition: transform .2s ease;
}

.login-brand-mark {
  background:
    linear-gradient(145deg, rgba(248, 250, 252, .95), rgba(219, 234, 254, .78)) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .18), 0 12px 30px rgba(56, 189, 248, .16) !important;
  color: #1e3a8a !important;
}

.login-kicker {
  color: rgba(186, 230, 253, .78) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.login-hero h1 {
  color: #ffffff !important;
  font-size: clamp(54px, 6.2vw, 96px) !important;
  font-weight: 920 !important;
  letter-spacing: 0 !important;
  max-width: 10ch;
  text-shadow: 0 18px 52px rgba(15, 23, 42, .46);
}

.login-copy {
  color: rgba(226, 241, 255, .82) !important;
  font-size: clamp(17px, 1.35vw, 23px) !important;
  line-height: 1.7 !important;
  max-width: 520px;
}

.login-product-card {
  background: rgba(4, 12, 28, .38) !important;
  border: 1px solid rgba(148, 163, 184, .18) !important;
  border-radius: 999px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 20px 42px rgba(2, 6, 23, .24) !important;
  display: inline-flex !important;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px !important;
  padding: 10px !important;
  transition: transform .2s ease;
}

.login-product-card span {
  background: rgba(255, 255, 255, .09) !important;
  border: 1px solid rgba(226, 232, 240, .20) !important;
  box-shadow: none !important;
  font-weight: 760 !important;
  padding: 9px 15px !important;
}

.login-signal-board {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  max-width: 620px;
  transition: transform .2s ease;
}

.login-signal-board span {
  background: linear-gradient(180deg, rgba(15, 23, 42, .62), rgba(8, 13, 28, .42));
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, .18);
  overflow: hidden;
  padding: 14px 15px;
  position: relative;
}

.login-signal-board span::before {
  background: var(--login-cyan);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(56, 215, 255, .9);
  content: "";
  height: 7px;
  position: absolute;
  right: 14px;
  top: 15px;
  width: 7px;
}

.login-signal-board strong,
.login-signal-board small {
  display: block;
}

.login-signal-board strong {
  color: #f8fbff;
  font-size: 14px;
  margin-bottom: 5px;
}

.login-signal-board small {
  color: rgba(203, 213, 225, .72);
  font-size: 12px;
}

.login-flow-line {
  background: rgba(15, 23, 42, .54);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 999px;
  height: 9px;
  margin-top: 20px;
  max-width: 620px;
  overflow: hidden;
  position: relative;
  transition: transform .2s ease;
}

.login-flow-line i {
  background: linear-gradient(90deg, transparent, rgba(56, 215, 255, .95), rgba(255, 181, 71, .92), transparent);
  border-radius: inherit;
  height: 100%;
  left: -45%;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 45%;
}

.login-body:not(.gsap-login) .login-flow-line i {
  animation: loginSignalRun 2.8s ease-in-out infinite;
  opacity: 1;
}

.login-flow-line i:nth-child(2) {
  animation-delay: .8s;
}

.login-flow-line i:nth-child(3) {
  animation-delay: 1.55s;
}

.login-panel {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .88), rgba(8, 13, 28, .80)) !important;
  border: 1px solid rgba(203, 213, 225, .24) !important;
  border-radius: 24px !important;
  box-shadow: 0 36px 90px rgba(2, 6, 23, .46), inset 0 1px 0 rgba(255, 255, 255, .09) !important;
  max-width: 520px !important;
  padding: clamp(28px, 3vw, 42px) !important;
  position: relative;
}

.login-panel::before {
  background: linear-gradient(90deg, var(--login-cyan), var(--login-blue), var(--login-amber)) !important;
  border-radius: 999px !important;
  height: 3px !important;
  left: 28px !important;
  right: 28px !important;
  top: -2px !important;
  width: auto !important;
}

.login-panel::after {
  background:
    radial-gradient(circle at 100% 0, rgba(56, 215, 255, .10), transparent 30%),
    linear-gradient(180deg, rgba(56, 215, 255, .10), transparent 35%);
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: .42;
  pointer-events: none;
  position: absolute;
}

.login-panel > * {
  position: relative;
  z-index: 1;
}

.login-status {
  background: rgba(56, 215, 255, .10) !important;
  border-color: rgba(56, 215, 255, .32) !important;
  color: #dff8ff !important;
  display: inline-flex;
  font-weight: 760 !important;
  padding: 8px 14px !important;
}

.login-panel h2 {
  color: #ffffff !important;
  font-size: clamp(34px, 3vw, 52px) !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.login-panel label {
  color: rgba(226, 232, 240, .92) !important;
  font-weight: 760 !important;
}

.login-panel input {
  background: rgba(2, 6, 23, .56) !important;
  border-color: rgba(125, 211, 252, .30) !important;
  color: #ffffff !important;
  height: 58px;
}

.login-panel input::placeholder {
  color: rgba(203, 213, 225, .58);
}

.login-panel input:focus {
  border-color: rgba(56, 215, 255, .92) !important;
  box-shadow: 0 0 0 4px rgba(56, 215, 255, .14), 0 0 30px rgba(56, 215, 255, .14) !important;
}

.login-panel button {
  background: linear-gradient(135deg, #14b8e5, #2563eb 58%, #6957f2) !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 42px rgba(37, 99, 235, .34), inset 0 1px 0 rgba(255, 255, 255, .22) !important;
  height: 60px;
  position: relative;
  overflow: hidden;
}

.login-panel button::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .36), transparent);
  content: "";
  height: 100%;
  left: -100%;
  position: absolute;
  top: 0;
  transform: skewX(-18deg);
  width: 70%;
}

.login-panel button:hover::after {
  animation: loginButtonSweep .9s ease;
}

.login-footnote,
.login-icp a {
  color: rgba(203, 213, 225, .64) !important;
}

.login-icp {
  background: rgba(2, 6, 23, .34);
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 999px;
  bottom: 14px;
  box-shadow: 0 12px 32px rgba(2, 6, 23, .20);
  left: 50%;
  padding: 6px 13px;
  position: fixed;
  right: auto;
  transform: translateX(-50%);
  z-index: 6;
}

.login-icp a {
  font-size: 12px !important;
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .login-body.dynamic-login::after {
    animation: loginScanSweep 7s ease-in-out infinite;
  }

  .login-signal-board span::before {
    animation: opsStatusPulse 1.7s ease-in-out infinite;
  }
}

@media (max-width: 980px) {
  .login-stage {
    grid-template-columns: 1fr !important;
  }

  .login-signal-board {
    grid-template-columns: 1fr;
  }

  .login-hero h1 {
    max-width: 12ch;
  }
}

@keyframes loginSignalRun {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  12%, 72% {
    opacity: 1;
  }
  100% {
    transform: translateX(330%);
    opacity: 0;
  }
}

@keyframes loginScanSweep {
  0%, 100% {
    transform: translateX(-52%);
    opacity: .42;
  }
  50% {
    transform: translateX(52%);
    opacity: .78;
  }
}

@keyframes loginButtonSweep {
  to {
    left: 130%;
  }
}
