:root {
  color-scheme: light;
  --canvas: #f3f6f8;
  --surface: #ffffff;
  --surface-soft: #f7f9fa;
  --surface-muted: #eef3f5;
  --ink: #16202a;
  --ink-soft: #344252;
  --muted: #718092;
  --line: #dbe3e8;
  --line-strong: #cbd6dd;
  --brand: #087f73;
  --brand-dark: #07665e;
  --brand-soft: #e8f7f4;
  --blue: #2b67d1;
  --blue-soft: #edf3ff;
  --amber: #c57917;
  --amber-soft: #fff6e8;
  --red: #d64545;
  --red-soft: #fff0f0;
  --green: #1d7b52;
  --green-soft: #eaf7f0;
  --sidebar: #111b24;
  --sidebar-soft: #1a2731;
  --sidebar-line: #2b3944;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-sm: 0 5px 16px rgba(22, 32, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(22, 32, 42, 0.09);
  --radius: 8px;
  --radius-sm: 6px;
  --sidebar-width: 236px;
  font-family:
    Inter, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei",
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a,
select,
input[type="date"],
input[type="checkbox"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

button:hover {
  border-color: #aebdc6;
  background: var(--surface-soft);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(8, 127, 115, 0.15);
  outline-offset: 1px;
}

button.primary,
.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 7px 18px rgba(8, 127, 115, 0.16);
}

button.primary:hover,
.primary:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  box-shadow: 0 9px 22px rgba(8, 127, 115, 0.22);
}

button.wide {
  width: 100%;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 96px;
  padding: 11px 12px;
  line-height: 1.65;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #bbc8cf;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(8, 127, 115, 0.7);
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(8, 127, 115, 0.1),
    var(--shadow-xs);
  outline: 0;
}

input::placeholder,
textarea::placeholder {
  color: #9aa6b2;
}

label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
strong {
  letter-spacing: 0;
}

h1 {
  font-size: 24px;
  line-height: 1.2;
}

h2 {
  font-size: 18px;
  line-height: 1.3;
}

h3 {
  font-size: 16px;
  line-height: 1.35;
}

a {
  color: inherit;
  text-decoration: none;
}

.eyebrow {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.empty-state,
.empty-detail,
.empty-attachments,
.progress-empty {
  display: grid;
  place-items: center;
  min-height: 92px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  text-align: center;
}

/* Login */

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: #101922;
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 34px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  animation: loginIn 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.login-card::before {
  content: "CHZ";
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 2px;
  border-radius: var(--radius);
  background: var(--sidebar);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 -4px 0 #5ee1d2;
}

.login-card h1 {
  margin-top: 6px;
  font-size: 32px;
}

.login-card label {
  display: grid;
  gap: 8px;
}

.login-card input {
  min-height: 46px;
}

.login-card button {
  min-height: 46px;
  margin-top: 2px;
}

.login-hint,
.login-error {
  min-height: 0;
  font-size: 12px;
  font-weight: 700;
}

.login-hint {
  color: var(--brand);
}

.login-hint:empty,
.login-error:empty {
  display: none;
}

.login-error,
.login-hint[data-state="error"] {
  color: var(--red);
}

/* Shell and sidebar */

.app-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 100vh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  background: var(--sidebar);
  padding: 20px 16px;
  color: #fff;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 2px 18px;
  border-bottom: 1px solid var(--sidebar-line);
}

.brand > div {
  min-width: 0;
}

.brand strong {
  display: block;
  color: #fff;
  font-size: 15px;
  white-space: nowrap;
}

.brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid rgba(94, 225, 210, 0.32);
  border-radius: var(--radius);
  background: #162834;
  box-shadow: inset 0 -3px 0 #5ee1d2;
}

.brand-mark span {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.control-group {
  display: grid;
  gap: 7px;
  border: 1px solid var(--sidebar-line);
  border-radius: var(--radius);
  background: var(--sidebar-soft);
  padding: 12px;
}

.control-group label {
  color: #93a2ae;
  font-size: 11px;
}

.control-group strong {
  color: #fff;
  font-size: 13px;
}

.control-group select,
.control-group button {
  min-height: 40px;
  border-color: #40505d;
  background: #24313b;
  color: #eef4f6;
  box-shadow: none;
}

.control-group select:disabled {
  color: #8d9aa5;
}

.session-card button {
  margin-top: 4px;
}

.side-nav {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.side-nav a {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0 12px 0 30px;
  color: #b6c2ca;
  font-weight: 750;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.side-nav a::before {
  content: "";
  position: absolute;
  left: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #71818d;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.side-nav a:hover {
  background: #1b2934;
  color: #fff;
  transform: translateX(2px);
}

.side-nav a.active {
  border-color: rgba(94, 225, 210, 0.2);
  background: #20313a;
  color: #fff;
}

.side-nav a.active::before {
  background: #5ee1d2;
  box-shadow: 0 0 0 4px rgba(94, 225, 210, 0.09);
  transform: scale(1.15);
}

/* Workspace */

.workspace {
  width: 100%;
  min-width: 0;
  padding: 18px;
}

.topbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px 16px 14px 18px;
  box-shadow: var(--shadow-xs);
}

.topbar > div:first-child {
  min-width: 0;
}

.topbar h1 {
  margin-top: 4px;
  white-space: nowrap;
}

.top-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-date,
.date-picker-wrap {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 7px 11px;
}

.top-date,
#activeDateLabel {
  display: none;
}

.top-date span,
.date-picker-wrap span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.top-date strong {
  font-size: 14px;
}

.date-picker-wrap {
  min-width: 176px;
}

.date-picker-wrap input {
  min-height: 25px;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
}

#activeDateLabel {
  min-width: 50px;
  min-height: 48px;
  display: none;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(480px, 1fr) minmax(360px, 0.72fr);
  gap: 10px;
  margin-top: 10px;
}

.metric-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.metric {
  position: relative;
  min-width: 0;
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 14px;
  box-shadow: var(--shadow-xs);
}

.metric::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--blue);
}

.metric:nth-child(2)::after {
  background: var(--amber);
}

.metric.warning::after {
  background: var(--red);
}

.metric.success::after {
  background: var(--green);
}

.metric span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric strong {
  font-size: 24px;
  line-height: 1;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.panel-head {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e7ecef;
}

.panel-head h2 {
  margin-top: 3px;
}

.panel-note {
  max-width: 440px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.progress-board {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto minmax(150px, 0.9fr) minmax(210px, 1.1fr);
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 11px 12px;
}

.progress-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 128px;
}

.progress-head h2 {
  margin-top: 2px;
  font-size: 15px;
  white-space: nowrap;
}

.progress-rate {
  min-width: 46px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.overall-progress {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.progress-track,
.mini-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf0;
}

.progress-track span,
.mini-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transform-origin: left center;
  animation: progressGrow 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 10px;
}

.progress-summary strong {
  color: var(--ink-soft);
}

.editor-progress-list {
  min-width: 0;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.editor-progress-row {
  flex: 0 0 210px;
  min-width: 0;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 7px;
}

.editor-rank {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
}

.editor-progress-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.editor-progress-title {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.editor-progress-title strong,
.editor-progress-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-progress-title strong {
  font-size: 11px;
}

.editor-progress-title span {
  color: var(--muted);
  font-size: 9px;
}

.editor-rate {
  font-size: 11px;
}

.progress-empty {
  min-height: 46px;
  grid-column: 2 / -1;
  border: 0;
  background: var(--surface-soft);
}

.dashboard-layout {
  min-width: 0;
  margin-top: 10px;
}

.work-column,
.main-grid {
  min-width: 0;
}

.view-section {
  display: none;
}

.view-section.active-view {
  display: block;
  animation: viewIn 240ms ease both;
}

.main-grid.active-view {
  display: grid;
}

.workspace[data-active-view="products"] .overview-grid,
.workspace[data-active-view="people"] .overview-grid,
.workspace[data-active-view="weekly"] .overview-grid,
.workspace[data-active-view="products"] .dashboard-layout,
.workspace[data-active-view="people"] .dashboard-layout,
.workspace[data-active-view="weekly"] .dashboard-layout {
  display: none;
}

/* Task workspace */

.main-grid {
  grid-template-columns: minmax(380px, 0.82fr) minmax(600px, 1.58fr);
  grid-template-areas:
    "queue detail"
    "create detail";
  gap: 10px;
  align-items: start;
}

.task-panel {
  grid-area: queue;
  padding: 14px;
}

.task-panel:has(.task-row:nth-child(3)) {
  height: clamp(480px, calc(100vh - 220px), 720px);
  display: flex;
  flex-direction: column;
}

.task-panel:has(.task-row:nth-child(3)) .task-list {
  flex: 1;
  min-height: 0;
  max-height: none;
}

.create-panel {
  grid-area: create;
  padding: 14px;
}

.detail-panel {
  grid-area: detail;
  padding: 16px;
}

.task-panel .panel-head {
  align-items: center;
}

.task-panel-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.task-panel-heading h2 {
  margin: 0;
}

.task-count-badge {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--surface-muted);
  padding: 2px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.task-filter-bar {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(108px, 1fr) minmax(108px, 1fr) minmax(88px, 0.72fr);
  gap: 7px;
}

.task-filter-bar label {
  display: grid;
  gap: 5px;
}

.task-filter-bar select {
  min-height: 36px;
  padding: 0 9px;
  font-size: 12px;
}

.task-list {
  max-height: 650px;
  display: grid;
  gap: 8px;
  overflow-y: auto;
  margin-top: 12px;
  padding-right: 3px;
  scrollbar-color: #c5d0d6 transparent;
  scrollbar-width: thin;
}

.task-row {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
  animation: rowIn 220ms ease both;
}

.task-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
  transition: background-color 160ms ease;
}

.task-row:hover {
  border-color: #b9c8ce;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.task-row.selected {
  border-color: rgba(8, 127, 115, 0.42);
  background: #f3fbf9;
  box-shadow: 0 7px 20px rgba(8, 127, 115, 0.08);
}

.task-row.selected::before {
  background: var(--brand);
}

.task-row:nth-child(2),
.product-card:nth-child(2),
.people-row:nth-child(2) {
  animation-delay: 35ms;
}

.task-row:nth-child(3),
.product-card:nth-child(3),
.people-row:nth-child(3) {
  animation-delay: 70ms;
}

.task-row:nth-child(4),
.product-card:nth-child(4),
.people-row:nth-child(4) {
  animation-delay: 105ms;
}

.task-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.task-title-line,
.task-title-main {
  min-width: 0;
}

.task-title-main {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.priority-badge {
  flex: 0 0 auto;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(8, 127, 115, 0.23);
  border-radius: 999px;
  background: var(--brand-soft);
  padding: 2px 8px;
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 850;
}

.task-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  overflow: visible;
}

.identity-chip {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 3px 7px;
  color: var(--ink-soft);
  font-size: 11px;
  white-space: nowrap;
}

.identity-chip em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.identity-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-chip {
  max-width: 150px;
  border-color: rgba(43, 103, 209, 0.22);
  background: var(--blue-soft);
  color: #184b9d;
}

.category-chip {
  max-width: 96px;
}

.country-chip {
  max-width: 108px;
  border-color: rgba(197, 121, 23, 0.24);
  background: var(--amber-soft);
  color: #8a4c05;
}

.platform-chip {
  max-width: 140px;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  color: var(--muted);
  font-size: 10px;
}

.country-badge {
  color: #8a4c05;
  font-weight: 800;
}

.task-quantity {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  background: var(--ink);
  padding: 2px 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.task-script-preview {
  display: grid;
  gap: 3px;
  border-top: 1px dashed var(--line);
  padding-top: 7px;
}

.task-script-preview p {
  min-width: 0;
  overflow: hidden;
  color: #607083;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-script-preview p span {
  display: inline-block;
  width: 34px;
  color: var(--brand);
  font-weight: 800;
}

.task-script-preview p:nth-child(n + 3) {
  display: none;
}

.task-script-empty {
  color: #9aa5af;
  font-size: 10px;
}

.task-media-strip {
  display: flex;
  gap: 5px;
}

.task-media-strip figure,
.task-media-strip.empty {
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.task-media-strip figure {
  position: relative;
  margin: 0;
}

.task-media-strip img,
.task-media-strip video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.task-media-strip.empty {
  width: auto;
  min-width: 98px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
}

.task-media-strip.empty strong {
  max-width: 60px;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-thumb span {
  position: absolute;
  inset: auto 3px 3px;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.82);
  padding: 1px 3px;
  color: #fff;
  font-size: 7px;
  text-align: center;
}

.task-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.product-logo {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  box-shadow: var(--shadow-xs);
}

.product-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-logo.large {
  width: 46px;
  height: 46px;
  font-size: 14px;
}

.product-logo.card {
  width: 40px;
  height: 40px;
}

.product-logo.mini {
  width: 28px;
  height: 28px;
}

.product-logo.empty {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.task-logo-upload {
  position: relative;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.task-logo-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.task-logo-upload.static {
  cursor: default;
}

.status {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.status.new {
  background: var(--red-soft);
  color: var(--red);
}

.status.done {
  background: var(--green-soft);
  color: var(--green);
}

.delete-task {
  min-height: 28px;
  border-color: #f0baba;
  background: #fffafa;
  padding: 0 8px;
  color: var(--red);
  font-size: 10px;
}

.task-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.task-form > label {
  display: grid;
  gap: 5px;
}

.task-form > label:has(#platformInput),
.task-form > button,
.product-profile-preview {
  grid-column: 1 / -1;
}

.task-form input,
.task-form select {
  min-height: 40px;
}

.task-form > button {
  min-height: 42px;
}

.platform-picker {
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 6px;
}

.platform-picker label {
  position: relative;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  padding: 3px 9px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease;
}

.platform-picker label:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.platform-picker input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
}

.product-profile-preview:empty {
  display: none;
}

.product-profile-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 8px;
}

.product-profile-mini > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.product-profile-mini span,
.product-profile-mini p {
  color: var(--muted);
  font-size: 10px;
}

.product-profile-mini strong {
  font-size: 12px;
}

.product-profile-mini.empty {
  min-height: 46px;
  display: grid;
}

/* Detail editor */

.detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.detail-hero > div:first-child {
  min-width: 0;
}

.detail-title-with-logo {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.task-identity-detail {
  flex-wrap: wrap;
  overflow: visible;
}

.task-identity-detail .identity-chip {
  font-size: 12px;
}

.detail-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

.save-status {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.save-status[data-state="saving"] {
  color: var(--amber);
  animation: savePulse 780ms ease infinite alternate;
}

.save-status[data-state="error"] {
  color: var(--red);
}

.save-button {
  min-height: 36px;
  border-color: var(--brand);
  background: var(--brand);
  padding: 0 12px;
  color: #fff;
}

.status-workflow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid #cde8e3;
  border-radius: var(--radius);
  background: var(--brand-soft);
  padding: 9px 10px;
}

.status-workflow > div:first-child {
  min-width: 0;
}

.status-workflow > div:first-child strong {
  display: block;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 112px);
  gap: 6px;
}

.status-actions button {
  min-height: 34px;
  border-color: rgba(8, 127, 115, 0.28);
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-dark);
}

.status-actions button.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.product-info-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 10px;
}

.product-info-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.product-info-title > div {
  min-width: 0;
}

.product-info-title strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-info-category,
.product-card-category {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-top: 3px;
  border: 1px solid #d8dfe4;
  border-radius: 999px;
  background: #fff;
  padding: 2px 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.product-intro {
  overflow: hidden;
  color: #59697a;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-benefit-chips,
.product-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.product-benefit-chips span,
.product-benefits span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--brand-soft);
  padding: 2px 7px;
  color: var(--brand-dark);
  font-size: 9px;
  font-weight: 750;
}

.product-link {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0 9px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.basic-editor {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.basic-editor > label {
  position: relative;
  display: grid;
  align-content: start;
  gap: 5px;
}

.basic-editor input,
.basic-editor select {
  min-height: 40px;
}

.basic-editor > label:has(.platform-picker) {
  grid-column: span 2;
}

.field-choice-hint {
  position: absolute;
  top: 4px;
  right: 0;
  color: #9aa6b2;
  font-size: 9px;
  font-weight: 600;
}

.country-field input {
  border-color: rgba(197, 121, 23, 0.36);
  background: #fffaf2;
  color: #764009;
  font-weight: 800;
}

.quantity-field input {
  border-color: rgba(8, 127, 115, 0.52);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 19px;
  font-weight: 900;
}

.script-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.script-cell {
  min-width: 0;
  display: grid;
  grid-template-rows: 38px minmax(260px, auto);
  background: #fff;
}

.script-cell + .script-cell {
  border-left: 1px solid var(--line);
}

.script-cell > span {
  display: grid;
  place-items: center;
  background: var(--sidebar);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.script-cell textarea {
  min-height: 260px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  resize: vertical;
}

.script-cell textarea:focus {
  background: #fbfefd;
  box-shadow: inset 0 0 0 2px rgba(8, 127, 115, 0.18);
}

.upload-panel {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 12px;
}

.upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upload-head > div {
  display: grid;
  gap: 2px;
}

.upload-head strong {
  font-size: 14px;
}

.upload-head span {
  color: var(--muted);
  font-size: 10px;
}

.upload-button {
  position: relative;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand);
  padding: 0 12px;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.upload-button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.attachment-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.attachment-card:hover {
  border-color: #b7c5cc;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.attachment-preview {
  height: 124px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e8edef;
}

.attachment-preview img,
.attachment-preview video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.attachment-preview audio {
  width: calc(100% - 16px);
}

.attachment-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 9px 9px 4px;
}

.attachment-meta strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-meta span {
  color: var(--muted);
  font-size: 9px;
}

.attachment-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 6px 9px 9px;
}

.attachment-actions button,
.attachment-actions a {
  min-height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 750;
}

.attachment-actions a {
  border-color: rgba(8, 127, 115, 0.28);
  color: var(--brand-dark);
}

.file-placeholder {
  color: var(--muted);
  font-size: 11px;
}

.empty-attachments {
  grid-column: 1 / -1;
  min-height: 72px;
}

.empty-detail {
  min-height: 240px;
  align-content: center;
  gap: 7px;
}

.empty-detail p:last-child {
  max-width: 520px;
  font-size: 12px;
}

.preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 15, 22, 0.74);
  animation: fadeIn 160ms ease both;
}

.preview-dialog {
  width: min(980px, 100%);
  max-height: 90vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: #0d151d;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  animation: dialogIn 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  color: #fff;
}

.preview-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-head button {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.preview-body {
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 14px;
  background: #080d12;
}

.preview-body img,
.preview-body video {
  max-width: 100%;
  max-height: calc(90vh - 90px);
  object-fit: contain;
}

.preview-body audio {
  width: min(680px, 100%);
}

/* Product library */

.products-panel,
.people-panel,
.weekly-panel {
  margin-top: 10px;
  padding: 16px;
}

.product-editor-form {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 14px;
}

.product-logo-column {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
}

.product-logo-library-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.product-logo-drop {
  position: relative;
  min-height: 196px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px dashed #9fc7c1;
  border-radius: var(--radius);
  background: #eef9f7;
  padding: 16px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.product-logo-drop:hover {
  border-color: var(--brand);
  background: #e7f7f4;
  box-shadow: 0 8px 24px rgba(8, 127, 115, 0.09);
  transform: translateY(-1px);
}

.product-logo-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.product-logo-preview {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.product-logo-preview .product-logo {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.product-logo-drop > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.product-logo-drop strong {
  color: var(--ink);
  font-size: 14px;
}

.product-logo-drop em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.product-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.product-form-actions button {
  min-height: 42px;
  padding: 0 10px;
  font-size: 11px;
}

.product-fields-column {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-fields-column > label,
.product-basic-grid label {
  display: grid;
  gap: 6px;
}

.product-basic-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-basic-grid .wide-field {
  grid-column: 1 / -1;
}

.product-editor-form textarea {
  min-height: 116px;
}

.library-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 0 1px 10px;
  border-bottom: 1px solid var(--line);
}

.library-section-head h3 {
  margin-top: 2px;
}

.library-section-head > span {
  color: var(--muted);
  font-size: 10px;
}

.product-library-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.product-library-list > .empty-state {
  grid-column: 1 / -1;
}

.product-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
  animation: rowIn 220ms ease both;
}

.product-card:hover {
  border-color: #b8c6cd;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.product-card-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
}

.product-card-main > div {
  min-width: 0;
}

.product-card-main strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-main p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-main a {
  display: inline-block;
  margin-top: 7px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.product-benefits {
  margin-top: 7px;
}

.product-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card-actions button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 10px;
}

/* People */

.people-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 10px;
  margin-top: 14px;
}

.people-form label {
  display: grid;
  gap: 6px;
}

.people-form button {
  min-width: 120px;
  min-height: 42px;
}

.people-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.people-list > .empty-state {
  grid-column: 1 / -1;
}

.people-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 12px;
}

.people-row > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.people-row strong {
  font-size: 14px;
}

.people-row span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Weekly */

.table-wrap {
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

td {
  color: var(--ink-soft);
  font-size: 12px;
}

tbody tr {
  transition: background-color 150ms ease;
}

tbody tr:hover {
  background: #f8fbfc;
}

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

/* Responsive */

@media (max-width: 1480px) {
  :root {
    --sidebar-width: 220px;
  }

  .workspace {
    padding: 14px;
  }

  .overview-grid {
    grid-template-columns: minmax(430px, 1fr) minmax(320px, 0.75fr);
  }

  .progress-board {
    grid-template-columns: auto minmax(140px, 1fr);
  }

  .editor-progress-list {
    display: none;
  }

  .main-grid {
    grid-template-columns: minmax(350px, 0.78fr) minmax(520px, 1.45fr);
  }

  .task-panel .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-filter-bar {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .basic-editor {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .progress-board {
    grid-template-columns: auto minmax(160px, 1fr) minmax(220px, 1fr);
  }

  .editor-progress-list {
    display: flex;
  }

  .main-grid {
    grid-template-columns: minmax(330px, 0.78fr) minmax(470px, 1.22fr);
  }

  .task-identity .category-chip,
  .task-identity .platform-chip {
    display: none;
  }

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

  .script-cell {
    grid-template-rows: 38px minmax(220px, auto);
  }

  .script-cell textarea {
    min-height: 220px;
  }

  .product-editor-form {
    grid-template-columns: 230px minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    overflow: visible;
    padding: 12px;
  }

  .brand {
    min-height: 44px;
    padding: 0;
    border: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .control-group {
    display: none;
  }

  .side-nav {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
  }

  .side-nav a {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .side-nav a::before {
    display: none;
  }

  .main-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "queue"
      "detail"
      "create";
  }

  .task-list {
    max-height: 480px;
  }

  .product-editor-form {
    grid-template-columns: 1fr;
  }

  .product-logo-column {
    grid-template-columns: minmax(0, 1fr) 220px;
    grid-template-rows: auto;
    align-items: end;
  }

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

@media (max-width: 720px) {
  .workspace {
    padding: 9px;
  }

  .sidebar {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .side-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .topbar h1 {
    white-space: normal;
  }

  .top-actions {
    width: 100%;
  }

  .top-date {
    display: none;
  }

  .date-picker-wrap {
    flex: 1;
    min-width: 0;
  }

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

  .progress-board {
    grid-template-columns: 1fr auto;
  }

  .overall-progress {
    grid-column: 1 / -1;
  }

  .editor-progress-list {
    grid-column: 1 / -1;
  }

  .task-panel .panel-head,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-filter-bar {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-filter-bar label {
    display: grid;
  }

  .task-filter-bar label:last-child {
    grid-column: 1 / -1;
  }

  .task-row {
    grid-template-columns: minmax(0, 1fr) 58px;
  }

  .task-identity {
    flex-wrap: wrap;
    overflow: visible;
  }

  .task-identity .category-chip,
  .task-identity .platform-chip {
    display: inline-flex;
  }

  .task-form,
  .basic-editor,
  .product-basic-grid,
  .product-fields-column,
  .people-form {
    grid-template-columns: 1fr;
  }

  .task-form > label:has(#platformInput),
  .task-form > button,
  .product-profile-preview,
  .basic-editor > label:has(.platform-picker),
  .product-basic-grid .wide-field,
  .product-basic-grid {
    grid-column: auto;
  }

  .detail-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .status-workflow {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-actions {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .product-info-panel {
    grid-template-columns: 1fr;
  }

  .script-grid {
    grid-template-columns: 1fr;
  }

  .script-cell + .script-cell {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .script-cell,
  .script-cell textarea {
    min-height: 180px;
  }

  .product-logo-column {
    grid-template-columns: 1fr;
  }

  .product-form-actions {
    grid-template-columns: 1fr;
  }

  .library-section-head > span,
  .panel-note {
    display: none;
  }
}

/* Motion */

@keyframes loginIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

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

@keyframes progressGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes savePulse {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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