/* Final product shell pass: tighter desktop workspace, clearer hierarchy, less empty canvas. */
:root {
  --ui-bg: #f4f8fc;
  --ui-ink: #0f172a;
  --ui-muted: #5f6f86;
  --ui-line: rgba(124, 145, 176, .28);
  --ui-line-strong: rgba(93, 118, 153, .42);
  --ui-panel: rgba(255, 255, 255, .9);
  --ui-panel-soft: rgba(247, 250, 254, .82);
  --ui-blue: #2563eb;
  --ui-cyan: #0ea5e9;
  --ui-teal: #14b8a6;
  --ui-green: #16a34a;
  --ui-orange: #f97316;
  --ui-violet: #7c3aed;
  --ui-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 36px rgba(31, 41, 55, .06);
  --ui-shadow-soft: 0 1px 2px rgba(15, 23, 42, .035), 0 8px 22px rgba(31, 41, 55, .045);
  --ui-surface-glow: linear-gradient(135deg, rgba(37, 99, 235, .07), rgba(20, 184, 166, .035) 46%, rgba(249, 115, 22, .045));
}

* {
  letter-spacing: 0 !important;
}

.app-body {
  background:
    linear-gradient(90deg, rgba(37, 99, 235, .026) 1px, transparent 1px),
    linear-gradient(0deg, rgba(14, 165, 233, .02) 1px, transparent 1px),
    radial-gradient(circle at 18% 0, rgba(20, 184, 166, .09), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(249, 115, 22, .08), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, var(--ui-bg) 42%, #eef4fb 100%);
  background-size: 56px 56px, 56px 56px, auto, auto, auto;
}

.sidebar {
  background:
    radial-gradient(circle at 18% 4%, rgba(37, 99, 235, .22), transparent 28%),
    linear-gradient(180deg, #0e1a2d 0%, #081322 58%, #06101c 100%);
  border-right: 1px solid rgba(148, 163, 184, .14);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .03);
  padding: 16px 12px;
  width: 232px;
}

.workspace {
  margin-left: 232px;
}

.brand {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .055));
  border: 1px solid rgba(226, 232, 240, .12);
  box-shadow: 0 14px 38px rgba(2, 6, 23, .24);
  padding: 12px;
}

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

.brand span {
  font-size: 12px;
}

.brand-mark {
  border-radius: 10px;
  height: 34px;
  width: 34px;
}

.side-nav {
  gap: 5px;
  margin-top: 16px;
}

.nav-link {
  border: 1px solid transparent;
  border-radius: 10px;
  min-height: 42px;
  padding: 8px 9px;
  position: relative;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

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

.nav-link.active {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .95), rgba(79, 70, 229, .84)),
    rgba(255, 255, 255, .08);
  border-color: rgba(147, 197, 253, .36);
  box-shadow: 0 14px 34px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .16);
}

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

.nav-icon {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .06));
  border: 1px solid rgba(226, 232, 240, .10);
  border-radius: 8px;
  height: 28px;
  min-width: 28px;
  width: 28px;
}

.sidebar-footer {
  gap: 9px;
}

.user-card {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 10px;
}

.sidebar-logout button {
  border-radius: 10px;
  min-height: 40px;
}

.workspace-header {
  backdrop-filter: blur(18px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(248, 251, 255, .82));
  border-bottom: 1px solid rgba(124, 145, 176, .22);
  min-height: 70px;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 15;
}

.workspace-kicker,
.section-kicker {
  font-size: 10px;
  margin-bottom: 4px;
}

.workspace-header h1 {
  font-size: 24px;
  line-height: 1.15;
}

.status-strip {
  gap: 7px;
}

.status-chip,
.header-link,
.model-badge {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(241, 247, 255, .86));
  border: 1px solid rgba(124, 145, 176, .28);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .045);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1;
  min-height: 32px;
  padding: 8px 10px;
}

.status-chip.online {
  background:
    linear-gradient(180deg, rgba(220, 252, 231, .96), rgba(240, 253, 244, .88));
  border-color: rgba(34, 197, 94, .28);
  color: #15803d;
}

.workspace-content {
  max-width: 1500px;
  min-height: calc(100vh - 118px);
  padding: 16px 20px 24px;
}

.workspace-content > .panel + .panel,
.workspace-content > .studio-grid + .panel,
.workspace-content > .product-home-layout + .panel {
  margin-top: 14px;
}

.site-footer {
  color: #7a8798;
  font-size: 12px;
  padding: 8px 20px 16px;
  text-align: center;
}

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

.workspace-context {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(246, 251, 255, .82)),
    radial-gradient(circle at 2% 0, rgba(34, 211, 238, .10), transparent 30%);
  border: 1px solid rgba(124, 145, 176, .22);
  border-radius: 12px;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.context-copy strong {
  font-size: 20px;
}

.context-copy small {
  font-size: 12px;
}

.context-metrics {
  gap: 8px;
}

.context-metrics span {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(124, 145, 176, .22);
  border-radius: 10px;
  min-width: 78px;
  padding: 7px 9px;
}

.context-metrics strong {
  font-size: 18px;
}

.panel,
.chat-rail,
.chat-canvas,
.chat-context,
.admin-filter-form {
  background:
    linear-gradient(180deg, var(--ui-panel), rgba(250, 252, 255, .86)),
    linear-gradient(120deg, rgba(37, 99, 235, .024), transparent 48%, rgba(20, 184, 166, .02));
  border-color: var(--ui-line);
  border-radius: 14px;
  box-shadow: var(--ui-shadow-soft);
  position: relative;
}

.panel:hover,
.metric-card:hover,
.product-module-card:hover {
  border-color: rgba(37, 99, 235, .22);
}

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

.command-card::before,
.recent-panel::before,
.admin-record-panel::before,
.settings-hero-panel::before,
.admin-hero-panel::before,
.chat-canvas::before,
.product-home-hero::before {
  background: linear-gradient(90deg, var(--ui-cyan), var(--ui-blue), var(--ui-violet), var(--ui-orange));
  border-radius: 999px;
  content: "";
  position: absolute;
  height: 2px;
  inset: 0 12px auto;
}

.studio-grid {
  align-items: start;
  gap: 14px;
}

.voice-studio-grid,
.image-studio-grid,
.spanish-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
}

.video-studio-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.command-card {
  padding: 18px;
}

.section-heading,
.panel-header {
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading h2,
.panel-header h2,
.command-title h2,
.product-home-hero h2 {
  font-size: 22px;
  line-height: 1.2;
}

.hint,
.command-card .hint {
  color: var(--ui-muted);
  font-size: 14px;
  line-height: 1.65;
}

.title-icon,
.module-icon,
.preset-icon {
  border-radius: 9px;
}

.voice-style-selector,
.image-mode-selector,
.source-image-box,
.script-coach,
.audio-checklist,
.settings-help,
.parameter-presets,
.task-tracker,
.video-material-workflow,
.video-material-plan-card,
.video-form-section,
.video-form-intro,
.video-preview-card {
  border-color: var(--ui-line);
  border-radius: 12px;
  box-shadow: none;
}

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

.assist-card,
.preset-card,
.metric-card,
.compact-history-card,
.voice-feature-card,
.image-result-card,
.image-result-spotlight,
.mini-task,
.focus-item,
.product-module-card,
.shortcut-list a,
.context-status,
.conversation-link,
.chat-starter,
.chat-rail-search,
.memory-rule-item,
.learning-card {
  border-radius: 10px;
}

.assist-card,
.mini-task,
.compact-history-card,
.product-module-card,
.conversation-link {
  padding: 11px;
}

.assist-card strong,
.product-module-card strong,
.mini-task strong,
.compact-history-card strong {
  font-size: 15px;
}

.assist-card span,
.product-module-card p,
.mini-task p,
.compact-history-card p {
  font-size: 12px;
  line-height: 1.45;
}

input,
textarea,
select {
  border-radius: 10px;
}

textarea {
  line-height: 1.55;
}

button,
.button-link,
.primary-action,
.task-action,
.danger-link {
  border-radius: 10px;
}

.primary-action {
  min-height: 46px;
}

.controls-grid {
  gap: 10px;
}

.range-control,
.select-control {
  border-radius: 10px;
  min-height: 78px;
  padding: 12px;
}

.drop-box {
  border-radius: 10px;
  min-height: 92px;
}

.studio-aside,
.video-aside,
.product-home-rail {
  display: grid;
  gap: 12px;
}

.studio-aside .panel,
.video-aside .panel,
.product-home-rail .panel {
  padding: 16px;
}

.mini-tasks,
.image-preview-panel,
.spanish-memory-panel,
.video-aside,
.chat-context {
  position: sticky;
  top: 86px;
}

.preset-list,
.template-list,
.settings-list,
.compact-list {
  gap: 8px;
}

.voice-feature-card,
.image-result-spotlight {
  gap: 8px;
  padding: 12px;
}

.voice-feature-card audio {
  max-width: 100%;
}

.compact-history-panel {
  margin-top: 14px;
  padding: 16px;
}

.compact-history-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-history-card {
  display: grid;
  gap: 8px;
  min-height: 124px;
}

.history-main p,
.history-meta,
.history-meta small {
  color: var(--ui-muted);
}

.history-main p {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  overflow: hidden;
}

.product-home-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(246, 251, 255, .80)),
    radial-gradient(circle at 88% 18%, rgba(37, 99, 235, .12), transparent 30%),
    radial-gradient(circle at 8% 80%, rgba(20, 184, 166, .10), transparent 34%);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 14px;
  padding: 20px;
}

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

.product-home-status {
  gap: 8px;
}

.product-home-status span {
  background: rgba(255, 255, 255, .70);
  border: 1px solid rgba(124, 145, 176, .22);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
  border-radius: 10px;
  min-width: 94px;
  padding: 10px 12px;
}

.product-home-layout {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  min-height: min(660px, calc(100vh - 260px));
}

.product-module-panel,
.product-activity-panel {
  padding: 16px;
}

.product-module-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.product-module-grid {
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 100%;
}

.product-module-card {
  align-items: flex-start;
  border: 1px solid rgba(124, 145, 176, .24);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 112px;
  position: relative;
}

.product-module-card::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0));
  content: "";
  height: 1px;
  inset: 0 12px auto;
  position: absolute;
}

.product-module-card:nth-child(odd) {
  background:
    var(--ui-surface-glow),
    rgba(255, 255, 255, .82);
}

.product-module-card:nth-child(even) {
  background:
    linear-gradient(135deg, rgba(14, 165, 233, .055), rgba(124, 58, 237, .04)),
    rgba(255, 255, 255, .82);
}

.product-activity-panel {
  margin-top: 14px;
}

.product-activity-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-activity-grid article {
  background: rgba(255, 255, 255, .68);
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  min-height: 136px;
  padding: 12px;
}

.product-activity-grid article strong {
  color: #1e293b;
  display: block;
  margin-bottom: 8px;
}

.product-activity-grid article,
.compact-history-card {
  overflow: hidden;
}

.product-activity-grid p {
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.45;
}

.focus-stack {
  gap: 8px;
}

.focus-item {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(245, 250, 255, .68));
  border: 1px solid rgba(124, 145, 176, .20);
  min-height: 70px;
  padding: 10px;
}

.product-home-rail {
  align-self: stretch;
}

.product-home-rail .panel {
  min-height: 0;
}

.shortcut-list {
  gap: 8px;
}

.shortcut-list a {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(124, 145, 176, .22);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.shortcut-list a:hover {
  border-color: rgba(37, 99, 235, .32);
  box-shadow: 0 12px 26px rgba(37, 99, 235, .08);
  transform: translateY(-1px);
}

.usage-bars span {
  border-radius: 8px;
}

.chat-workbench {
  display: grid;
  gap: 12px;
  grid-template-columns: 206px minmax(0, 1fr) 230px;
  min-height: calc(100vh - 170px);
}

.chat-fixed-workbench {
  height: calc(100vh - 170px);
}

.chat-rail,
.chat-canvas,
.chat-context {
  min-height: 0;
  padding: 12px;
}

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

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

.chat-toolbar {
  gap: 10px;
  margin-bottom: 10px;
}

.chat-message-list {
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.chat-bubble {
  border-radius: 10px;
  max-width: min(720px, 82%);
}

.chat-command-bar {
  margin-top: 10px;
  position: static;
}

.chat-composer {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.chat-composer textarea {
  max-height: 120px;
  min-height: 68px;
}

.conversation-list {
  gap: 7px;
}

.conversation-link {
  min-height: 58px;
}

.chat-context section + section {
  margin-top: 12px;
  padding-top: 12px;
}

.chat-tip-list {
  line-height: 1.55;
}

.context-actions {
  gap: 8px;
}

.context-actions button {
  min-height: 36px;
}

.compact-history-grid > .empty-state,
.product-activity-grid > .empty-state,
.admin-grid > .empty-state,
.settings-grid > .empty-state {
  grid-column: 1 / -1;
}

.empty-state {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .045), rgba(20, 184, 166, .03)),
    rgba(255, 255, 255, .76);
  border: 1px dashed rgba(100, 116, 139, .36);
  border-radius: 12px;
  color: #64748b;
  display: flex;
  justify-content: center;
  min-height: 128px;
  padding: 18px;
  text-align: center;
}

td.empty-state {
  display: table-cell;
  min-height: 0;
  vertical-align: middle;
}

.compact-history-grid:has(> .empty-state) {
  grid-template-columns: 1fr;
}

.recent-panel,
.product-activity-panel {
  min-height: 190px;
}

.page-voice .recent-panel,
.page-images .recent-panel {
  min-height: 214px;
}

.page-voice .compact-history-grid,
.page-images .compact-history-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.page-tasks .workspace-content {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-tasks .workspace-context,
.page-tasks .workspace-content > .panel:nth-of-type(2),
.page-tasks .workspace-content > .panel:nth-of-type(5),
.page-tasks .workspace-content > .panel:nth-of-type(6),
.page-tasks .workspace-content > .panel:nth-of-type(7) {
  grid-column: 1 / -1;
}

.page-tasks .workspace-content > .panel {
  margin-top: 0;
}

.page-tasks .workspace-content > .panel:nth-of-type(3),
.page-tasks .workspace-content > .panel:nth-of-type(4) {
  min-height: 220px;
}

.page-admin .workspace-content,
.page-settings .workspace-content,
.page-spanish_learning .workspace-content {
  display: grid;
  gap: 14px;
}

.page-admin .workspace-content > .panel,
.page-settings .workspace-content > .panel,
.page-spanish_learning .workspace-content > .panel {
  margin-top: 0;
}

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

.table-wrap {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(124, 145, 176, .18);
  overflow: auto;
}

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

.settings-dashboard,
.admin-dashboard,
.spanish-learning-dashboard {
  display: grid;
  gap: 14px;
}

.settings-hero-panel,
.admin-hero-panel {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(246, 251, 255, .82)),
    radial-gradient(circle at 88% 18%, rgba(37, 99, 235, .11), transparent 32%),
    radial-gradient(circle at 6% 88%, rgba(20, 184, 166, .09), transparent 32%);
  display: flex;
  justify-content: space-between;
}

.settings-hero-panel h2,
.admin-hero-panel h2 {
  font-size: 24px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.metric-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(246, 251, 255, .78)),
    radial-gradient(circle at 94% 12%, rgba(37, 99, 235, .10), transparent 32%);
  border: 1px solid rgba(124, 145, 176, .22);
  border-radius: 12px;
  min-height: 112px;
  padding: 14px;
}

.metric-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.metric-card strong {
  color: #0f172a;
  display: block;
  font-size: 28px;
  line-height: 1.1;
  margin-top: 10px;
}

.metric-card small {
  color: #64748b;
  display: block;
  line-height: 1.45;
  margin-top: 8px;
}

.settings-grid,
.admin-grid {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
}

.account-settings-grid {
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
}

.admin-account-panel {
  min-height: 100%;
}

.admin-note-panel {
  position: sticky;
  top: 92px;
}

.settings-list,
.permission-help,
.guide-grid {
  display: grid;
  gap: 10px;
}

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

.settings-list p,
.permission-help p,
.guide-grid p {
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(124, 145, 176, .18);
  border-radius: 10px;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 11px 12px;
}

.settings-list strong,
.permission-help strong,
.guide-grid strong {
  color: #1e293b;
}

.settings-list span,
.permission-help span,
.guide-grid span {
  color: #64748b;
  line-height: 1.5;
}

.admin-filter-form,
.task-form {
  gap: 12px;
}

.admin-user-form {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .035), rgba(20, 184, 166, .025)),
    rgba(255, 255, 255, .58);
  border: 1px solid rgba(124, 145, 176, .18);
  border-radius: 12px;
  margin-top: 12px;
  padding: 12px;
}

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

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

.permission-row label,
.permission-chips span {
  background: rgba(239, 246, 255, .86);
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 9px;
}

.permission-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-row-details summary {
  background: rgba(239, 246, 255, .9);
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 999px;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  list-style: none;
  padding: 7px 10px;
  text-align: center;
}

.inline-edit-form {
  background: #ffffff;
  border: 1px solid rgba(124, 145, 176, .22);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
  display: grid;
  gap: 8px;
  margin-top: 8px;
  min-width: 240px;
  padding: 10px;
  position: absolute;
  right: 0;
  z-index: 20;
}

.admin-row-details {
  position: relative;
}

.admin-record-panel {
  min-height: 240px;
}

.history-card,
.module-card,
.product-module-card,
.metric-card,
.task-card {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.history-card:hover,
.module-card:hover,
.product-module-card:hover,
.task-card:hover {
  border-color: rgba(37, 99, 235, .32);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}

.video-material-workflow {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  padding: 14px;
}

.video-step-row {
  gap: 8px;
}

.video-step-row p {
  border-radius: 10px;
  min-height: 82px;
  padding: 10px;
}

.video-material-plan-form {
  gap: 10px;
}

.video-material-plan-card,
.video-task-form {
  margin-top: 12px;
}

.video-form-section {
  margin-top: 10px;
  padding: 14px;
}

.video-options-section {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, .92fr) minmax(320px, 1.08fr);
}

.video-upload-card {
  min-height: 156px;
}

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

.video-plan-box,
.video-quality-box,
.video-pickup-list,
.video-shot-checklist {
  border-radius: 10px;
}

.table-wrap {
  border-radius: 10px;
}

table {
  font-size: 13px;
}

th {
  font-size: 11px;
}

td,
th {
  padding: 10px 12px;
}

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

.settings-section-title,
.settings-hero-panel,
.admin-hero-panel {
  padding: 18px;
}

/* Functional modules: make forms, uploads, and selection results feel like one product. */
.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 {
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(124, 145, 176, .16);
  border-radius: 12px;
  padding: 12px;
}

.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, .92);
  border-color: rgba(124, 145, 176, .28);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

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

.primary-action,
.task-form button[type="submit"],
.spanish-form button[type="submit"],
.video-task-form button[type="submit"] {
  background: linear-gradient(100deg, #0ea5e9, #2563eb 56%, #4f46e5);
  border: 0;
  border-radius: 11px;
  box-shadow: 0 14px 32px rgba(37, 99, 235, .18);
  transition: box-shadow .18s ease, filter .18s ease, transform .18s ease;
}

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

.module-selection {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(240, 249, 255, .78)),
    radial-gradient(circle at 90% 10%, rgba(20, 184, 166, .16), transparent 34%),
    radial-gradient(circle at 4% 88%, rgba(249, 115, 22, .12), transparent 34%);
}

.module-selection .module-icon {
  background: linear-gradient(135deg, rgba(20, 184, 166, .18), rgba(37, 99, 235, .14));
  color: #0f766e;
}

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

.selection-status-bar {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(246, 251, 255, .82)),
    radial-gradient(circle at 86% 18%, rgba(20, 184, 166, .12), transparent 32%),
    radial-gradient(circle at 5% 88%, rgba(37, 99, 235, .10), transparent 28%);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

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

.selection-status-dot {
  background: #94a3b8;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(148, 163, 184, .14);
  display: inline-flex;
  flex: 0 0 auto;
  height: 11px;
  margin-top: 13px;
  width: 11px;
}

.selection-status-dot.success,
.selection-status-dot.partial_success {
  background: #16a34a;
  box-shadow: 0 0 0 6px rgba(22, 163, 74, .14);
}

.selection-status-dot.failed,
.selection-status-dot.needs_login,
.selection-status-dot.manual_action_required,
.selection-status-dot.access_denied {
  background: #f97316;
  box-shadow: 0 0 0 6px rgba(249, 115, 22, .16);
}

.selection-status-copy h2,
.selection-template-head h2,
.selection-section-head h2 {
  font-size: 22px;
  line-height: 1.18;
}

.selection-alert {
  color: #9a3412;
  line-height: 1.55;
  margin-top: 6px;
}

.selection-status-metrics,
.selection-ops-summary,
.selection-field-coverage,
.selection-rule-strip {
  display: grid;
  gap: 10px;
}

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

.selection-metric,
.selection-ops-summary span,
.selection-field-coverage > span,
.selection-field-coverage > div,
.selection-rule-strip span {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(124, 145, 176, .18);
  border-radius: 12px;
  padding: 11px 12px;
}

.selection-metric strong,
.selection-field-coverage strong {
  color: #0f172a;
  display: block;
  font-size: 18px;
  line-height: 1.15;
}

.selection-metric small,
.selection-ops-summary small,
.selection-field-coverage small,
.selection-rule-strip span {
  color: #64748b;
  line-height: 1.45;
}

.selection-run-form button,
.selection-auth-link,
.selection-export-link,
.selection-product-link,
.selection-filter-tabs a {
  border-radius: 999px;
  min-height: 34px;
}

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

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

.selection-template-panel,
.selection-boundary-panel,
.selection-main,
.kalodata-auth-workbench,
.kalodata-auth-status {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(248, 251, 255, .78));
}

.selection-template-head,
.selection-section-head,
.selection-table-actions,
.selection-filter-tabs {
  align-items: center;
  display: flex;
  gap: 10px;
}

.selection-template-head,
.selection-section-head {
  justify-content: space-between;
}

.selection-table-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.selection-template-row {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(124, 145, 176, .18);
  border-radius: 13px;
  display: grid;
  gap: 5px;
  padding: 13px;
}

.selection-template-row.active {
  border-color: rgba(20, 184, 166, .34);
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, .10), 0 12px 26px rgba(20, 184, 166, .08);
}

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

.selection-note-list li {
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(124, 145, 176, .16);
  border-radius: 10px;
  list-style: none;
  padding: 10px 12px;
}

.selection-workbench {
  display: grid;
}

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

.selection-rule-strip strong {
  color: #1d4ed8;
  display: block;
  margin-bottom: 4px;
}

.selection-field-coverage {
  grid-template-columns: minmax(160px, .7fr) repeat(auto-fit, minmax(130px, 1fr));
  margin-top: 12px;
}

.selection-pending-explain,
.selection-run-quality {
  background: rgba(255, 247, 237, .70);
  border: 1px solid rgba(249, 115, 22, .18);
  border-radius: 13px;
  margin-top: 12px;
  padding: 12px;
}

.selection-pending-explain {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(110px, auto));
}

.selection-pending-explain span {
  display: grid;
  gap: 4px;
}

.selection-pending-explain em {
  color: #9a3412;
  font-style: normal;
}

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

.selection-run-quality-row {
  background: rgba(255, 255, 255, .68);
  border-radius: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(160px, 1fr) repeat(3, minmax(90px, auto));
  padding: 10px;
}

.selection-results-table {
  margin-top: 14px;
  max-height: calc(100vh - 330px);
}

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

.selection-results-table th {
  background: rgba(248, 251, 255, .96);
  position: sticky;
  top: 0;
  z-index: 1;
}

.selection-sort-link,
.selection-product-link {
  color: #1d4ed8;
  font-weight: 850;
  text-decoration: none;
}

.selection-data-status,
.selection-filter-tabs a,
.selection-product-link {
  background: rgba(239, 246, 255, .86);
  border: 1px solid rgba(37, 99, 235, .14);
  display: inline-flex;
  padding: 6px 9px;
}

.selection-data-status.complete {
  background: rgba(220, 252, 231, .86);
  border-color: rgba(34, 197, 94, .18);
  color: #15803d;
}

.selection-reason-cell {
  min-width: 220px;
}

.selection-reason-cell small,
.selection-data-status-cell small,
.selection-missing-value,
.selection-link-missing {
  color: #64748b;
  display: block;
  line-height: 1.45;
  margin-top: 4px;
}

.kalodata-helper-actions,
.kalodata-auth-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kalodata-recollect-steps,
.kalodata-diagnostic-list,
.kalodata-debug-url-list {
  display: grid;
  gap: 10px;
}

.kalodata-recollect-steps li,
.kalodata-diagnostic-list li,
.kalodata-debug-url-list li {
  background: rgba(255, 255, 255, .70);
  border: 1px solid rgba(124, 145, 176, .18);
  border-radius: 12px;
  padding: 11px 12px;
}

/* Product refinement pass: tighter rhythm, richer surfaces, less empty canvas. */
@keyframes shellSweep {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes softPulse {
  0%,
  100% {
    opacity: .72;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.025);
  }
}

.app-body {
  background:
    linear-gradient(90deg, rgba(37, 99, 235, .025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(14, 165, 233, .022) 1px, transparent 1px),
    radial-gradient(circle at 16% 4%, rgba(34, 211, 238, .10), transparent 26%),
    radial-gradient(circle at 82% 2%, rgba(37, 99, 235, .09), transparent 25%),
    radial-gradient(circle at 88% 78%, rgba(249, 115, 22, .055), transparent 28%),
    linear-gradient(180deg, #fcfdff 0%, #f5f8fc 42%, #edf4fb 100%);
  background-size: 48px 48px, 48px 48px, auto, auto, auto, auto;
}

.workspace-content {
  max-width: 1560px;
  min-height: calc(100vh - 104px);
  padding: 18px 24px 22px;
}

.workspace-header {
  min-height: 66px;
  padding: 12px 24px;
}

.workspace-header h1 {
  font-size: 25px;
}

.workspace-context {
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  padding: 11px 13px;
}

.workspace-context::after,
.product-home-hero::after,
.command-card::after,
.selection-status-bar::after,
.chat-canvas::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .58), transparent);
  content: "";
  height: 1px;
  inset: 0 18px auto;
  opacity: .65;
  pointer-events: none;
  position: absolute;
}

.panel {
  border-radius: 16px;
}

.command-card,
.recent-panel,
.admin-record-panel,
.settings-hero-panel,
.admin-hero-panel,
.product-home-hero,
.product-module-panel,
.product-activity-panel,
.selection-status-bar,
.selection-main,
.chat-canvas {
  overflow: hidden;
}

.command-card::before,
.recent-panel::before,
.admin-record-panel::before,
.settings-hero-panel::before,
.admin-hero-panel::before,
.chat-canvas::before,
.product-home-hero::before,
.selection-status-bar::before {
  height: 3px;
}

.command-card:hover::before,
.product-home-hero:hover::before,
.selection-status-bar:hover::before,
.chat-canvas:hover::before {
  animation: shellSweep 1.8s ease-in-out;
}

.page-dashboard .workspace-content {
  display: grid;
  gap: 12px;
}

.product-home-hero {
  align-items: center;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, auto);
  margin-bottom: 0;
  padding: 18px 20px;
}

.product-home-hero h2 {
  font-size: 28px;
}

.product-home-hero .hint {
  max-width: 760px;
}

.product-home-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
}

.product-home-status span {
  align-items: center;
  display: grid;
  min-height: 66px;
  min-width: 0;
  padding: 10px 14px;
}

.product-home-status strong {
  color: #1d4ed8;
  font-size: 24px;
  line-height: 1;
}

.product-home-layout {
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(286px, 322px);
  min-height: 0;
}

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

.product-module-panel {
  grid-template-rows: auto auto;
}

.product-module-grid {
  align-content: start;
  grid-template-columns: repeat(4, minmax(188px, 1fr));
  height: auto;
}

.product-module-card {
  gap: 9px;
  min-height: 106px;
  padding: 12px;
}

.product-module-card .module-icon {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 10px 24px rgba(37, 99, 235, .12);
}

.product-module-card small {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(124, 145, 176, .18);
  border-radius: 999px;
  color: #475569;
  font-size: 11px;
  padding: 5px 8px;
  white-space: nowrap;
}

.product-home-rail {
  align-content: start;
  gap: 10px;
}

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

.product-focus-card h2,
.product-shortcut-card h2,
.product-usage-card h2,
.product-system-card h2 {
  font-size: 18px;
}

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

.focus-item {
  min-height: 62px;
  padding: 9px 10px;
}

.focus-item strong {
  font-size: 22px;
}

.shortcut-list {
  grid-template-columns: 1fr;
}

.shortcut-list a {
  justify-content: flex-start;
  min-height: 38px;
  padding: 0 11px;
}

.usage-bars {
  gap: 7px;
}

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

.product-activity-panel {
  margin-top: 0;
}

.product-activity-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-activity-grid article {
  min-height: 104px;
  padding: 11px;
}

.product-activity-grid p {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  overflow: hidden;
}

.studio-grid {
  gap: 12px;
}

.voice-studio-grid,
.image-studio-grid,
.spanish-layout {
  grid-template-columns: minmax(0, 1fr) minmax(286px, 326px);
}

.video-studio-grid {
  grid-template-columns: minmax(0, 1fr) minmax(286px, 338px);
}

.command-card {
  padding: 16px;
}

.section-heading h2,
.panel-header h2,
.command-title h2 {
  font-size: 22px;
}

.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 {
  border-radius: 11px;
  padding: 11px;
}

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

.range-control,
.select-control {
  min-height: 74px;
}

.page-chat .workspace-content {
  padding-bottom: 16px;
}

.chat-workbench {
  gap: 10px;
  grid-template-columns: 198px minmax(0, 1fr) 218px;
  min-height: calc(100vh - 154px);
}

.chat-fixed-workbench {
  height: calc(100vh - 154px);
}

.chat-rail,
.chat-canvas,
.chat-context {
  padding: 11px;
}

.chat-message-list {
  background:
    linear-gradient(90deg, rgba(37, 99, 235, .018) 1px, transparent 1px),
    linear-gradient(0deg, rgba(14, 165, 233, .014) 1px, transparent 1px),
    rgba(255, 255, 255, .42);
  background-size: 42px 42px;
  border: 1px solid rgba(124, 145, 176, .16);
  border-radius: 13px;
}

.chat-bubble {
  border-radius: 13px;
}

.chat-command-bar {
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(124, 145, 176, .18);
  border-radius: 14px;
  padding: 9px;
}

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

.page-product_selection .workspace-content {
  max-width: 1600px;
}

.selection-console {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.selection-status-bar,
.selection-message,
.selection-workbench {
  grid-column: 1 / -1;
}

.selection-status-bar {
  border-radius: 16px;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(520px, auto) auto;
  padding: 14px;
}

.selection-status-copy h2,
.selection-template-head h2,
.selection-section-head h2 {
  font-size: 20px;
}

.selection-status-metrics {
  gap: 8px;
}

.selection-metric,
.selection-ops-summary span,
.selection-field-coverage > span,
.selection-field-coverage > div,
.selection-rule-strip span {
  border-radius: 11px;
  padding: 10px;
}

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

.selection-template-panel {
  grid-column: 8 / -1;
}

.selection-boundary-panel {
  grid-column: 1 / -1;
}

.selection-template-panel,
.selection-boundary-panel,
.selection-main {
  border-radius: 15px;
  padding: 14px;
}

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

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

.selection-note-list li {
  min-height: 58px;
  padding: 9px 10px;
}

.selection-rule-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.selection-field-coverage {
  grid-template-columns: minmax(154px, .64fr) repeat(auto-fit, minmax(116px, 1fr));
}

.selection-results-table {
  max-height: calc(100vh - 305px);
}

.page-product_selection .selection-results-table {
  max-height: min(72vh, 780px);
  overflow: auto !important;
  overscroll-behavior: contain;
}

.selection-results-table td,
.selection-results-table th {
  padding: 9px 10px;
}

.selection-pagination {
  align-items: center;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 16px;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: space-between;
  margin: 14px 0 10px;
  padding: 10px 12px;
}

.selection-pagination.bottom {
  margin: 10px 0 0;
}

.selection-pagination > span,
.selection-page-controls strong {
  color: #0f172a;
  font-weight: 800;
}

.selection-page-size,
.selection-page-controls {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selection-page-size a,
.selection-page-controls a,
.selection-page-controls .disabled {
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 8px 10px;
  text-decoration: none;
}

.selection-page-size a.active {
  background: rgba(37, 99, 235, .10);
  border-color: rgba(37, 99, 235, .32);
  color: #1d4ed8;
}

.selection-page-controls a {
  background: #fff;
}

.selection-page-controls .disabled {
  color: #94a3b8;
}

.video-material-workflow {
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
}

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

.video-form-section {
  padding: 12px;
}

.task-card,
.history-card,
.compact-history-card,
.selection-template-row,
.selection-note-list li,
.selection-metric,
.focus-item {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.task-card:hover,
.history-card:hover,
.compact-history-card:hover,
.selection-template-row:hover,
.selection-note-list li:hover,
.selection-metric:hover,
.focus-item:hover {
  border-color: rgba(37, 99, 235, .30);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
  transform: translateY(-1px);
}

.status-chip.online::before,
.system-pill.online::before {
  animation: softPulse 2.8s ease-in-out infinite;
}

.status-chip.online {
  padding-left: 24px;
  position: relative;
}

.status-chip.online::before {
  background: #16a34a;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(22, 163, 74, .14);
  content: "";
  height: 7px;
  left: 11px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
}

/* Login product pass: same product language as the inner workspace, with restrained motion. */
.login-body.dynamic-login {
  background:
    radial-gradient(circle at 18% 20%, rgba(56, 189, 248, .16), transparent 28%),
    radial-gradient(circle at 78% 70%, rgba(124, 58, 237, .12), transparent 28%),
    #07111f;
  color: #f8fbff;
  min-height: 100vh;
  overflow: hidden;
}

.login-body.dynamic-login::before {
  background:
    linear-gradient(90deg, rgba(148, 163, 184, .075) 1px, transparent 1px),
    linear-gradient(0deg, rgba(148, 163, 184, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  display: block;
  inset: 0;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, .2));
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.login-bg-video {
  filter: saturate(.86) contrast(1.05) brightness(.38);
  opacity: .7;
}

.login-grid,
.login-orbit,
.login-wave {
  opacity: .12;
}

.login-particles {
  opacity: .28;
}

.login-stage {
  align-items: center;
  display: grid;
  gap: clamp(32px, 5vw, 76px);
  grid-template-columns: minmax(420px, 1fr) minmax(390px, 440px);
  margin: 0 auto;
  max-width: 1180px;
  min-height: 100vh;
  padding: 52px 34px;
  position: relative;
  z-index: 2;
}

.login-hero {
  max-width: 560px;
  position: relative;
}

.login-hero::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035)),
    radial-gradient(circle at 18% 22%, rgba(34, 211, 238, .16), transparent 32%);
  border: 1px solid rgba(226, 232, 240, .13);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(2, 6, 23, .30);
  content: "";
  inset: -28px -34px -30px -24px;
  position: absolute;
  z-index: -1;
}

.login-brand {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(226, 232, 240, .16);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  display: inline-flex;
  padding: 9px 11px;
}

.login-brand-mark {
  border-radius: 10px;
  height: 38px;
  width: 38px;
}

.login-brand strong {
  font-size: 18px;
}

.login-brand span {
  color: rgba(226, 232, 240, .72);
  font-size: 12px;
}

.login-kicker {
  color: #8bd7ff;
  font-size: 11px;
  letter-spacing: 0 !important;
  margin-top: 36px;
  text-transform: uppercase;
}

.login-hero h1 {
  color: #f8fbff;
  font-size: clamp(42px, 5.2vw, 64px);
  line-height: 1.04;
  margin: 12px 0 0;
  max-width: 500px;
  text-wrap: balance;
}

.login-copy {
  color: rgba(226, 232, 240, .84);
  font-size: 16px;
  line-height: 1.75;
  margin-top: 18px;
  max-width: 440px;
}

.login-product-card {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 30px;
  max-width: 500px;
}

.login-product-card span {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .055));
  border: 1px solid rgba(226, 232, 240, .14);
  border-radius: 12px;
  color: rgba(248, 251, 255, .92);
  font-size: 12px;
  font-weight: 850;
  min-height: 44px;
  padding: 12px 10px;
  text-align: center;
}

.login-product-card span:nth-child(1) {
  box-shadow: inset 0 -2px 0 rgba(34, 211, 238, .65);
}

.login-product-card span:nth-child(2) {
  box-shadow: inset 0 -2px 0 rgba(37, 99, 235, .65);
}

.login-product-card span:nth-child(3) {
  box-shadow: inset 0 -2px 0 rgba(20, 184, 166, .65);
}

.login-product-card span:nth-child(4) {
  box-shadow: inset 0 -2px 0 rgba(124, 58, 237, .65);
}

.login-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .055)),
    rgba(8, 16, 31, .84);
  border: 1px solid rgba(226, 232, 240, .18);
  border-radius: 16px;
  box-shadow: 0 34px 90px rgba(2, 6, 23, .42);
  max-width: 440px;
  padding: 30px;
  position: relative;
  z-index: 2;
}

.login-panel::before {
  background: linear-gradient(90deg, #22d3ee, #2563eb 48%, #7c3aed 76%, #f97316);
  border-radius: 999px;
  content: "";
  height: 3px;
  inset: 0 26px auto;
  opacity: .95;
  position: absolute;
}

.login-status {
  background: rgba(15, 23, 42, .62);
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  color: #c7d2fe;
  display: inline-flex;
  font-size: 12px;
  padding: 7px 11px;
}

.login-panel h2 {
  color: #f8fbff;
  font-size: 32px;
  margin: 16px 0 0;
}

.login-panel p {
  color: rgba(226, 232, 240, .76);
  font-size: 14px;
  line-height: 1.7;
}

.login-panel label {
  color: #eaf2ff;
  gap: 8px;
}

.login-panel input {
  background: rgba(2, 6, 23, .58);
  border: 1px solid rgba(125, 211, 252, .34);
  border-radius: 12px;
  color: #f8fbff;
  min-height: 52px;
}

.login-panel input:focus {
  border-color: rgba(34, 211, 238, .88);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .14), 0 18px 42px rgba(37, 99, 235, .16);
}

.login-panel button {
  background: linear-gradient(100deg, #0ea5e9, #2563eb 58%, #7c3aed);
  border-radius: 12px;
  min-height: 52px;
  transition: box-shadow .18s ease, transform .18s ease, filter .18s ease;
}

.login-panel button:hover {
  box-shadow: 0 20px 48px rgba(37, 99, 235, .32);
  filter: saturate(1.06);
  transform: translateY(-1px);
}

.login-footnote,
.login-icp a {
  color: rgba(226, 232, 240, .62);
}

.login-icp {
  bottom: 16px;
  position: fixed;
  z-index: 3;
}

@media (max-width: 1320px) {
  .compact-history-grid,
  .product-activity-grid,
  .selection-status-metrics,
  .selection-rule-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .chat-context {
    display: none;
  }

  .selection-status-bar,
  .selection-pending-explain {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .voice-studio-grid,
  .image-studio-grid,
  .spanish-layout,
  .video-studio-grid,
  .product-home-layout,
  .page-tasks .workspace-content,
  .settings-grid,
  .admin-grid,
  .account-settings-grid,
  .video-material-workflow,
  .video-options-section,
  .selection-ops-summary,
  .selection-field-coverage {
    grid-template-columns: 1fr;
  }

  .mini-tasks,
  .image-preview-panel,
  .spanish-memory-panel,
  .video-aside,
  .product-home-rail,
  .admin-note-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .sidebar {
    width: 212px;
  }

  .workspace {
    margin-left: 212px;
  }

  .workspace-header {
    align-items: flex-start;
    display: grid;
  }

  .product-home-hero,
  .compact-history-grid,
  .product-module-grid,
  .product-activity-grid,
  .guide-grid,
  .compact-controls,
  .chat-workbench {
    grid-template-columns: 1fr;
  }

  .chat-fixed-workbench {
    height: auto;
  }

  .login-stage {
    grid-template-columns: 1fr;
    max-width: 760px;
    overflow: auto;
  }

  .login-hero::before {
    inset: -18px;
  }

  .login-product-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1480px) {
  .product-module-grid {
    grid-template-columns: repeat(3, minmax(196px, 1fr));
  }

  .product-home-status {
    grid-template-columns: repeat(3, minmax(82px, 1fr));
  }

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

@media (max-width: 1180px) {
  .selection-console {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 860px) {
  .product-home-hero,
  .product-home-status,
  .product-module-grid,
  .product-activity-grid,
  .selection-boundary-list,
  .selection-template-list,
  .selection-rule-strip {
    grid-template-columns: 1fr;
  }
}

/* Product texture pass: borrow the clarity of mature SaaS dashboards without adding a frontend stack. */
:root {
  --pro-bg: #eef5fb;
  --pro-panel: rgba(255, 255, 255, .82);
  --pro-panel-strong: rgba(255, 255, 255, .94);
  --pro-ink: #0b1220;
  --pro-muted: #657289;
  --pro-line: rgba(118, 141, 176, .24);
  --pro-line-strong: rgba(72, 99, 138, .34);
  --pro-blue: #2563eb;
  --pro-cyan: #12b7e8;
  --pro-green: #17b26a;
  --pro-violet: #6d5dfc;
  --pro-amber: #f59e0b;
  --pro-rose: #f43f5e;
  --pro-shadow: 0 18px 50px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .05);
  --pro-shadow-hover: 0 24px 64px rgba(15, 23, 42, .12), 0 1px 2px rgba(15, 23, 42, .06);
  --pro-card-glow: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(18, 183, 232, .045) 44%, rgba(245, 158, 11, .055));
}

.app-body {
  background:
    linear-gradient(90deg, rgba(30, 64, 175, .035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(14, 165, 233, .026) 1px, transparent 1px),
    radial-gradient(circle at 20% -6%, rgba(18, 183, 232, .15), transparent 31%),
    radial-gradient(circle at 86% 3%, rgba(109, 93, 252, .13), transparent 29%),
    radial-gradient(circle at 62% 106%, rgba(245, 158, 11, .10), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, var(--pro-bg) 42%, #e8f1fa 100%);
  background-size: 48px 48px, 48px 48px, auto, auto, auto, auto;
}

.app-body::before {
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .36) 36%, transparent 62%),
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, .46), transparent 42%);
  content: "";
  inset: 0 0 auto 232px;
  height: 220px;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

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

.sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), transparent 18%),
    radial-gradient(circle at 18% 2%, rgba(34, 211, 238, .24), transparent 30%),
    radial-gradient(circle at 92% 34%, rgba(79, 70, 229, .20), transparent 28%),
    linear-gradient(180deg, #0b1628 0%, #07111f 56%, #040b14 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, .05), 18px 0 58px rgba(3, 7, 18, .10);
}

.brand {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .055)),
    radial-gradient(circle at 0 0, rgba(34, 211, 238, .22), transparent 48%);
  border-color: rgba(226, 232, 240, .15);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(2, 6, 23, .28), inset 0 1px 0 rgba(255, 255, 255, .10);
}

.brand-mark {
  background:
    radial-gradient(circle at 35% 30%, #ffffff, #dbeafe 58%, #b9d6ff 100%);
  box-shadow: 0 16px 34px rgba(37, 99, 235, .28), inset 0 0 0 1px rgba(255, 255, 255, .72);
  color: transparent;
  overflow: hidden;
  position: relative;
}

.brand-mark::before {
  border: 2px solid rgba(37, 99, 235, .52);
  border-radius: 999px;
  content: "";
  height: 15px;
  position: absolute;
  width: 15px;
}

.brand-mark::after {
  background: linear-gradient(135deg, var(--pro-cyan), var(--pro-violet));
  border-radius: 999px;
  content: "";
  height: 6px;
  position: absolute;
  transform: translate(8px, 8px);
  width: 6px;
}

.side-nav {
  padding-top: 4px;
}

.nav-link {
  color: rgba(226, 232, 240, .82);
  isolation: isolate;
  overflow: hidden;
}

.nav-link::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, .14), transparent);
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity .18s ease;
  z-index: -1;
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
}

.nav-link.active {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .98), rgba(79, 70, 229, .86)),
    rgba(255, 255, 255, .08);
  box-shadow: 0 18px 34px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.queue-badge {
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
}

.user-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.workspace-header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(247, 251, 255, .78));
  box-shadow: 0 14px 40px rgba(15, 23, 42, .055);
}

.workspace-kicker,
.section-kicker {
  color: #5a6a83;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-header h1,
.context-copy strong,
.product-home-hero h2,
.section-heading h2,
.panel h2,
.command-title h2 {
  color: var(--pro-ink);
}

.status-chip,
.header-link,
.model-badge {
  backdrop-filter: blur(12px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(238, 246, 255, .82));
  border-color: rgba(118, 141, 176, .30);
  color: #334155;
}

.status-chip.online {
  background:
    linear-gradient(180deg, rgba(220, 252, 231, .96), rgba(240, 253, 244, .86));
  box-shadow: 0 10px 24px rgba(23, 178, 106, .10);
}

.workspace-context {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(245, 250, 255, .76)),
    radial-gradient(circle at 3% 0, rgba(18, 183, 232, .14), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(109, 93, 252, .10), transparent 34%);
  box-shadow: var(--pro-shadow);
}

.panel,
.chat-rail,
.chat-canvas,
.chat-context,
.admin-filter-form {
  backdrop-filter: blur(16px);
  background:
    linear-gradient(180deg, var(--pro-panel-strong), var(--pro-panel)),
    linear-gradient(120deg, rgba(37, 99, 235, .035), transparent 52%, rgba(18, 183, 232, .028));
  border: 1px solid var(--pro-line);
  box-shadow: var(--pro-shadow);
}

.panel::after,
.product-module-card::before,
.metric-card::after,
.focus-item::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, 0));
  content: "";
  height: 1px;
  inset: 0 14px auto;
  pointer-events: none;
  position: absolute;
}

.panel:hover,
.product-module-card:hover,
.metric-card:hover {
  box-shadow: var(--pro-shadow-hover);
}

.command-card::before,
.recent-panel::before,
.admin-record-panel::before,
.settings-hero-panel::before,
.admin-hero-panel::before,
.chat-canvas::before,
.product-home-hero::before {
  height: 3px;
  inset: 0 16px auto;
  opacity: .92;
}

.product-home-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(245, 250, 255, .78)),
    radial-gradient(circle at 82% 20%, rgba(37, 99, 235, .16), transparent 34%),
    radial-gradient(circle at 10% 86%, rgba(18, 183, 232, .13), transparent 36%),
    radial-gradient(circle at 94% 92%, rgba(245, 158, 11, .10), transparent 32%);
  border-color: rgba(72, 99, 138, .24);
  min-height: 148px;
}

.product-home-hero h2 {
  font-size: 34px;
  line-height: 1.08;
}

.product-home-status span,
.context-metrics span,
.selection-metric,
.selection-ops-summary span,
.selection-field-coverage > span,
.selection-field-coverage > div,
.selection-rule-strip span {
  backdrop-filter: blur(10px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(247, 251, 255, .70));
  border-color: rgba(118, 141, 176, .22);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .055);
}

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

.product-module-card {
  background:
    var(--pro-card-glow),
    rgba(255, 255, 255, .86) !important;
  border-color: rgba(118, 141, 176, .22);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .065);
  overflow: hidden;
}

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

.product-module-card small {
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(118, 141, 176, .18);
  border-radius: 999px;
  color: #315174;
  font-weight: 900;
  padding: 5px 8px;
  white-space: nowrap;
}

.module-icon,
.title-icon,
.preset-icon {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(18, 183, 232, .10)),
    rgba(255, 255, 255, .62);
  border: 1px solid rgba(37, 99, 235, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 10px 22px rgba(37, 99, 235, .10);
  color: #175cd3;
}

.module-video .module-icon,
.page-video .title-icon {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, .20), rgba(244, 63, 94, .10)),
    rgba(255, 255, 255, .70);
  border-color: rgba(245, 158, 11, .25);
  color: #b45309;
}

.module-chat .module-icon,
.page-chat .title-icon {
  background:
    linear-gradient(135deg, rgba(109, 93, 252, .16), rgba(18, 183, 232, .12)),
    rgba(255, 255, 255, .70);
  border-color: rgba(109, 93, 252, .22);
  color: #4f46e5;
}

.module-spanish .module-icon,
.module-selection .module-icon {
  background:
    linear-gradient(135deg, rgba(23, 178, 106, .16), rgba(18, 183, 232, .10)),
    rgba(255, 255, 255, .70);
  border-color: rgba(23, 178, 106, .22);
  color: #0f766e;
}

.product-activity-grid article,
.assist-card,
.preset-card,
.mini-task,
.compact-history-card,
.image-result-card,
.focus-item,
.shortcut-list a,
.settings-list p,
.permission-help p,
.guide-grid p,
.video-step-row p,
.video-form-section,
.video-material-plan-card,
.video-material-workflow {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(248, 251, 255, .66));
  border-color: rgba(118, 141, 176, .20);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
}

.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 {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(249, 252, 255, .68));
  border-color: rgba(118, 141, 176, .20);
}

input,
textarea,
select {
  border-color: rgba(101, 114, 137, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(37, 99, 235, .28);
}

button,
.button-link,
.primary-action,
.task-action,
.danger-link {
  box-shadow: 0 12px 26px rgba(15, 23, 42, .075);
}

.primary-action,
.task-form button[type="submit"],
.spanish-form button[type="submit"],
.video-task-form button[type="submit"] {
  background:
    linear-gradient(100deg, var(--pro-cyan), var(--pro-blue) 54%, var(--pro-violet));
  box-shadow: 0 18px 44px rgba(37, 99, 235, .22);
  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 {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
  content: "";
  inset: 0 auto 0 -40%;
  position: absolute;
  transform: skewX(-16deg);
  width: 34%;
}

.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 {
  animation: product-sheen .82s ease;
}

.drop-zone,
.image-upload-box,
.source-image-box,
.video-upload-card,
.selection-empty-state {
  background:
    radial-gradient(circle at 100% 0, rgba(37, 99, 235, .08), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(244, 249, 255, .74));
  border-color: rgba(37, 99, 235, .30);
}

.table-wrap {
  background: rgba(255, 255, 255, .74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .74);
}

th {
  color: #53627a;
  text-transform: uppercase;
}

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

.status.done,
.status.running,
.status.voiceover_running,
.status.queued,
.status.voiceover_queued,
.status.render_queued,
.status.failed {
  border-radius: 999px;
  font-weight: 900;
}

.chat-message-list {
  background:
    linear-gradient(180deg, rgba(248, 251, 255, .72), rgba(255, 255, 255, .62)),
    linear-gradient(90deg, rgba(37, 99, 235, .026) 1px, transparent 1px),
    linear-gradient(0deg, rgba(18, 183, 232, .020) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}

.chat-bubble {
  border: 1px solid rgba(118, 141, 176, .18);
}

.chat-message.user .chat-bubble {
  background: linear-gradient(135deg, #2563eb, #5b55f6);
  border-color: rgba(255, 255, 255, .16);
}

.video-progress-steps span.done,
.video-progress-steps span.active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62);
}

@keyframes product-sheen {
  0% {
    left: -40%;
  }
  100% {
    left: 118%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .workspace-context,
  .product-home-hero,
  .command-card,
  .product-module-card {
    animation: product-rise .34s ease both;
  }

  .product-module-card:nth-child(2n) {
    animation-delay: .025s;
  }

  .product-module-card:nth-child(3n) {
    animation-delay: .05s;
  }
}

@keyframes product-rise {
  from {
    opacity: .82;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Product texture pass 2: reduce prototype grid feel and make module cards feel actionable. */
:root {
  --pro-paper: #f7fbff;
  --pro-paper-2: #edf5fb;
  --pro-card: rgba(255, 255, 255, .9);
  --pro-card-soft: rgba(247, 251, 255, .78);
  --pro-hairline: rgba(92, 119, 154, .22);
  --pro-hairline-strong: rgba(50, 80, 122, .32);
}

.app-body {
  background:
    linear-gradient(120deg, rgba(18, 183, 232, .06), transparent 28%, rgba(245, 158, 11, .045) 62%, transparent 88%),
    linear-gradient(90deg, rgba(15, 23, 42, .018) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 23, 42, .014) 1px, transparent 1px),
    linear-gradient(180deg, #fbfdff 0%, var(--pro-paper) 38%, var(--pro-paper-2) 100%);
  background-size: auto, 64px 64px, 64px 64px, auto;
}

.app-body::before {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, .62), transparent 36%),
    linear-gradient(180deg, rgba(37, 99, 235, .05), transparent 74%);
  inset: 0 0 auto 232px;
}

.workspace-content {
  max-width: 1520px;
  padding: 18px 24px 30px;
}

.workspace-header {
  min-height: 74px;
  padding: 14px 26px;
}

.workspace-header h1 {
  font-size: 25px;
}

.workspace-context {
  border-color: var(--pro-hairline);
  margin-bottom: 16px;
  overflow: hidden;
}

.workspace-context::before {
  background: linear-gradient(90deg, #12b7e8, #2563eb 45%, #f59e0b);
  content: "";
  height: 2px;
  inset: 0 18px auto;
  position: absolute;
}

.panel,
.chat-rail,
.chat-canvas,
.chat-context,
.admin-filter-form {
  background:
    linear-gradient(180deg, var(--pro-card), var(--pro-card-soft)),
    linear-gradient(135deg, rgba(37, 99, 235, .025), transparent 56%, rgba(245, 158, 11, .022));
  border-color: var(--pro-hairline);
}

.panel::after,
.product-module-card::before,
.metric-card::after,
.focus-item::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, 0));
}

.product-home-hero {
  background:
    radial-gradient(circle at 100% 0, rgba(37, 99, 235, .08), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(246, 250, 255, .78));
  border-color: rgba(50, 80, 122, .24);
  padding: 22px 24px;
}

.product-home-hero h2 {
  font-size: 36px;
}

.product-home-hero .hint {
  max-width: 760px;
}

.product-home-status span {
  min-width: 108px;
}

.product-home-status strong,
.context-metrics strong {
  color: #1d4ed8;
}

.product-module-panel,
.product-activity-panel,
.product-home-rail .panel {
  border-color: rgba(50, 80, 122, .22);
}

.product-module-card {
  --module-accent: #2563eb;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(249, 252, 255, .72)) !important;
  border-color: rgba(92, 119, 154, .24);
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--module-accent), transparent 14%), 0 12px 30px rgba(15, 23, 42, .055);
  min-height: 118px;
  padding: 14px;
}

.product-module-card::before {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--module-accent), white 60%), transparent);
  content: "";
  height: auto;
  inset: 10px auto 10px 0;
  opacity: .42;
  position: absolute;
  width: 18px;
}

.product-module-card::after {
  background: color-mix(in srgb, var(--module-accent), white 84%);
  border-radius: 999px;
  color: color-mix(in srgb, var(--module-accent), black 12%);
  content: "→";
  display: grid;
  font-size: 15px;
  font-weight: 900;
  height: 28px;
  inset: auto 12px 12px auto;
  place-items: center;
  position: absolute;
  width: 28px;
}

.product-module-card:hover {
  box-shadow: inset 3px 0 0 var(--module-accent), 0 22px 54px rgba(15, 23, 42, .105);
}

.product-module-card:hover::after {
  transform: translateX(2px);
}

.module-voice {
  --module-accent: #2563eb;
}

.module-image {
  --module-accent: #7c3aed;
}

.module-spanish,
.module-selection {
  --module-accent: #0f766e;
}

.module-chat {
  --module-accent: #4f46e5;
}

.module-video {
  --module-accent: #f59e0b;
}

.module-queue,
.module-settings {
  --module-accent: #64748b;
}

.module-icon {
  background: color-mix(in srgb, var(--module-accent), white 86%);
  border-color: color-mix(in srgb, var(--module-accent), white 68%);
  color: color-mix(in srgb, var(--module-accent), black 12%);
}

.product-module-card strong {
  color: #111827;
  font-size: 16px;
}

.product-module-card p {
  color: #5d6b80;
  font-size: 12.5px;
  line-height: 1.55;
  padding-right: 16px;
}

.product-module-card small {
  justify-self: end;
}

.focus-item,
.shortcut-list a,
.product-activity-grid article {
  border-color: rgba(92, 119, 154, .20);
}

.shortcut-list a {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(248, 251, 255, .70));
  color: #1d4ed8;
}

.shortcut-list a::after {
  content: "→";
  float: right;
  opacity: .56;
}

.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 {
  border-color: rgba(92, 119, 154, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.drop-zone,
.image-upload-box,
.source-image-box,
.video-upload-card,
.selection-empty-state {
  background:
    radial-gradient(circle at 100% 0, rgba(37, 99, 235, .08), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(246, 250, 255, .78));
}

.status-strip {
  max-width: 760px;
}

.header-link:hover,
.status-chip:hover,
.model-badge:hover {
  border-color: rgba(37, 99, 235, .26);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .075);
}

.chat-workbench,
.studio-grid {
  gap: 16px;
}

.chat-canvas,
.command-card {
  overflow: hidden;
}

.chat-message-list {
  border-color: rgba(92, 119, 154, .20);
}

.chat-command-bar {
  backdrop-filter: blur(14px);
  border-color: rgba(92, 119, 154, .22);
}

.video-step-row p strong {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: 0 12px 26px rgba(37, 99, 235, .18);
}

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

@supports not (color: color-mix(in srgb, #000, #fff)) {
  .product-module-card {
    box-shadow: inset 3px 0 0 #2563eb, 0 12px 30px rgba(15, 23, 42, .055);
  }

  .product-module-card::after {
    background: #eaf2ff;
    color: #1d4ed8;
  }
}
