:root {
  color-scheme: light;
  --bg: #f6f7f8;
  --panel: #ffffff;
  --border: #e7e8ea;
  --text: #17181a;
  --text-dim: #6b6f76;
  --text-muted: #898781;
  --accent: #1EA7E1;
  --sidebar-w: 220px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 17, 20, 0.04), 0 4px 14px rgba(16, 17, 20, 0.04);

  /* ---- Smarty brand ---- */
  --font-brand: 'Baloo 2', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --brand-yellow: #FFC72C;
  --brand-yellow-dark: #EFA500;
  --brand-blue: #1EA7E1;
  --brand-blue-dark: #147FAE;

  /* analytics chart tokens */
  --grid: #e1e0d9;
  --baseline: #c3c2b7;
  --good: #0ca30c;
  --critical: #d03b3b;
  --seq-450: #2a78d6;
  --seq-300: #6da7ec;
  --seq-150: #b7d3f6;
  --chart-pants: #D9A400;
  --chart-world: #9B59B6;
  --chart-smartys: #23272A;
  --badge-pants: #F1C40F;
  --badge-world: #9B59B6;
  --badge-smartys: #23272A;
  --tooltip-bg: #17181a;
  --tooltip-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #17181a;
    --panel: #1f2023;
    --border: #2d2e32;
    --text: #f2f3f5;
    --text-dim: #a3a7ad;
    --text-muted: #797d84;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 4px 14px rgba(0, 0, 0, 0.24);
    --grid: #333438;
    --baseline: #45474d;
    --good: #2ecc71;
    --critical: #ff6b6b;
    --seq-450: #5b9bff;
    --seq-300: #3d6fc4;
    --seq-150: #26375c;
    --chart-pants: #F1C40F;
    --chart-world: #c08ee0;
    --chart-smartys: #c9cdd3;
    --tooltip-bg: #f2f3f5;
    --tooltip-text: #17181a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17181a;
  --panel: #1f2023;
  --border: #2d2e32;
  --text: #f2f3f5;
  --text-dim: #a3a7ad;
  --text-muted: #797d84;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 4px 14px rgba(0, 0, 0, 0.24);
  --grid: #333438;
  --baseline: #45474d;
  --good: #2ecc71;
  --critical: #ff6b6b;
  --seq-450: #5b9bff;
  --seq-300: #3d6fc4;
  --seq-150: #26375c;
  --chart-pants: #F1C40F;
  --chart-world: #c08ee0;
  --chart-smartys: #c9cdd3;
  --tooltip-bg: #f2f3f5;
  --tooltip-text: #17181a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 4px;
}
.theme-toggle:hover { background: var(--bg); }

#app { min-height: 100vh; }

/* ---- Layout shell ---- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 0 8px;
}
.sidebar .brand img { height: 36px; width: auto; display: block; flex-shrink: 0; }
.sidebar .brand-word {
  font-family: var(--font-brand);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-yellow-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.sidebar .nav-item.active { background: var(--bg); color: var(--text); }
.sidebar .nav-item:hover { background: var(--bg); }

.sidebar .footer-user {
  margin-top: auto;
  padding: 10px 8px;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.main { flex: 1; padding: 40px 48px; max-width: 1200px; }

.page-header h1 { font-family: var(--font-brand); font-size: 30px; font-weight: 700; margin: 0 0 6px; }
.page-header .sub { color: var(--text-dim); font-size: 14px; margin: 0; }

/* ---- Cards / grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16, 17, 20, 0.09); }

.card .thumb {
  height: 150px;
  background: #eef0f2 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .accent-bar { height: 4px; width: 100%; }

.card .body { padding: 14px 16px 16px; }
.card .title { font-weight: 600; font-size: 15px; margin: 0 0 6px; line-height: 1.3; }
.card .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); }

.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.tab {
  padding: 7px 14px;
  border-radius: 999px;
  border: 2px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--panel);
  color: var(--text-dim);
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}
.tab:hover { border-color: var(--brand-blue); color: var(--text); }
.tab.active { color: var(--brand-blue-dark); border-color: var(--brand-blue); background: color-mix(in srgb, var(--brand-blue) 10%, var(--panel)); }
.tab .tab-count { color: var(--text-dim); font-weight: 500; }

.history-list .note-item { display: flex; align-items: center; gap: 12px; }
.history-list .text { flex: 1; }

.empty-state {
  margin-top: 60px;
  text-align: center;
  color: var(--text-dim);
}
.empty-state .big { font-size: 40px; margin-bottom: 10px; }

/* ---- Login ---- */
.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #0d3a52 url('/brand/smarty-subscribe-bg.jpg') center 65% / cover no-repeat;
  padding: 24px;
}
.login-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 40, 60, 0.55) 0%, rgba(10, 30, 46, 0.75) 100%);
}
.login-logo {
  position: relative;
  height: 96px;
  width: auto;
  display: block;
  margin: 0 auto 18px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}
.login-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  padding: 32px 32px 36px;
  width: 320px;
  text-align: center;
}
.login-card h1 { font-family: var(--font-brand); font-size: 24px; font-weight: 700; margin: 0 0 6px; color: var(--brand-blue-dark); }
.login-card p { color: var(--text-dim); font-size: 13px; margin: 0 0 20px; }
.login-card input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  margin-bottom: 12px;
}
.login-card .error { color: #d64545; font-size: 13px; margin-bottom: 10px; min-height: 16px; }

button.primary {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: none;
  background: var(--brand-blue);
  color: #fff;
  font-family: var(--font-brand);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--brand-blue-dark);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease;
}
button.primary:hover { background: var(--brand-blue-dark); }
button.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--brand-blue-dark); }
button.primary:disabled { opacity: 0.5; cursor: default; box-shadow: none; transform: none; }

/* ---- Review page ---- */
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 24px;
  margin-top: 20px;
  align-items: start;
}

.back-link {
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.back-link:hover { color: var(--text); }

video {
  width: 100%;
  border-radius: var(--radius);
  background: #000;
  display: block;
}

.add-note-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.add-note-row input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
}
.add-note-row button {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.add-note-row .ts-badge {
  align-self: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-dim);
  font-size: 13px;
  padding: 0 4px;
}

.notes-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}
.notes-panel h3 { margin: 0 0 4px; font-size: 15px; }
.notes-panel .hint { font-size: 12px; color: var(--text-dim); margin: 0 0 14px; }

.notes-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.note-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.note-item:last-child { border-bottom: none; }
.note-item .ts {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  padding-top: 1px;
}
.note-item .text { flex: 1; font-size: 13.5px; line-height: 1.4; }
.note-item .del {
  flex-shrink: 0;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
}
.note-item .del:hover { color: #d64545; }

.send-btn {
  margin-top: 14px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #2ecc71;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.send-btn:disabled { opacity: 0.5; cursor: default; }
.send-btn:hover:not(:disabled) { opacity: 0.92; }

.approve-btn {
  margin-top: 8px;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.approve-btn:disabled { opacity: 0.5; cursor: default; }
.approve-btn:hover:not(:disabled) { background: var(--bg); color: var(--text); }

.video-title { font-size: 20px; font-weight: 700; margin: 4px 0 2px; }
.video-sub { color: var(--text-dim); font-size: 13px; margin: 0 0 14px; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: var(--shadow);
}

/* ---- Analytics ---- */
.banner {
  background: #fff8e1;
  border: 1px solid #f0dfa8;
  color: #6b5a1e;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  margin-bottom: 18px;
}
:root[data-theme="dark"] .banner { background: #2e2a17; border-color: #4a3f1e; color: #e0c979; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .banner { background: #2e2a17; border-color: #4a3f1e; color: #e0c979; }
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 14px; margin-bottom: 20px; }
.stat-tile {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.stat-tile .label { font-size: 12px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.stat-tile .value { font-size: 26px; font-weight: 700; margin: 6px 0 4px; }
.stat-tile .delta { font-size: 12.5px; font-weight: 600; }
.stat-tile .delta.up { color: var(--good); }
.stat-tile .delta.down { color: var(--critical); }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 20px;
}
.panel h2 { font-size: 15px; margin: 0 0 2px; }
.panel .panel-sub { font-size: 12.5px; color: var(--text-dim); margin: 0 0 14px; }

.a-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; flex-wrap: wrap; }
.a-legend span { display: inline-flex; align-items: center; gap: 6px; }
.a-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

.chart-wrap { position: relative; }
#a-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--tooltip-bg);
  color: var(--tooltip-text);
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  line-height: 1.5;
  opacity: 0;
  transform: translate(-50%, -110%);
  white-space: nowrap;
  z-index: 5;
}

.video-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.video-row:last-child { border-bottom: none; }
.video-row .rank { width: 20px; color: var(--text-muted); font-weight: 700; font-size: 13px; }
.video-row .thumb { width: 64px; height: 36px; border-radius: 6px; flex-shrink: 0; object-fit: cover; background-size: cover; background-position: center; }
.video-row .title { flex: 1; font-size: 13.5px; font-weight: 600; }
.video-row .chan { font-size: 11.5px; color: var(--text-dim); font-weight: 500; }
.video-row .num { font-size: 13px; font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }
.video-row .num.rev { color: var(--good); font-weight: 700; }

.table-toggle { font-size: 12px; color: var(--text-dim); cursor: pointer; text-decoration: underline; margin-top: 8px; display: inline-block; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 10px; display: none; }
table.data-table th, table.data-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
table.data-table.show { display: table; }

@media (max-width: 760px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; align-items: center; padding: 14px 16px; overflow-x: auto; }
  .sidebar .brand { margin: 0 16px 0 0; }
  .sidebar .footer-user { display: none; }
  .main { padding: 24px 18px; }
  .review-layout { grid-template-columns: 1fr; }
}

/* ---- Sidebar section divider (separates Queue/History from Analytics/Workflow/Day-to-Day) ---- */
.nav-divider { height: 1px; background: var(--border); margin: 10px 8px; }
@media (max-width: 760px) {
  .nav-divider { width: 1px; height: 24px; margin: 0 6px; }
}

/* ---- Secondary buttons (Workflow connect/disconnect, etc.) ---- */
button.secondary {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
button.secondary:hover { background: var(--bg); }

/* ---- Connection status dot (Workflow cards, Analytics banner) ---- */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 2px; }
.status-dot.on { background: var(--good, #2ecc71); }
.status-dot.off { background: var(--text-muted, #999); }

.banner-link { text-decoration: underline; cursor: pointer; font-weight: 600; }

/* ---- Workflow cards ---- */
.workflow-card { cursor: default; }
.workflow-card:hover { transform: none; box-shadow: var(--shadow); }

/* ---- Day-to-Day Tasks ---- */
.dt-group { margin-top: 18px; }
.dt-group:first-child { margin-top: 4px; }
.dt-group-header { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-dim); font-weight: 600; margin-bottom: 8px; }
.dt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
}
.dt-row:hover { background: var(--bg); }
.dt-row-arrow { color: var(--text-dim); font-size: 12px; font-weight: 600; }

/* ---- Workflow: Drive-connection strip above the board ---- */
.wf-drive-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  margin: 14px 0 20px;
}

/* ---- Analytics: per-channel Google-connect rows in the banner ---- */
.a-connect-rows { display: flex; flex-direction: column; gap: 6px; }
.a-connect-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ---- Workflow: Trello-style board ---- */
.board-wrap { margin-top: 4px; }
.board-cols {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 12px;
}
.board-col {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 268px;
  flex-shrink: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 260px);
  box-shadow: var(--shadow);
}
.board-col-add { background: transparent; border-style: dashed; justify-content: center; box-shadow: none; }
.board-col-add input {
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 13.5px;
  font-family: var(--font-brand);
}
.board-col-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 10px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14.5px;
}
.board-col:hover .board-col-menu { opacity: 1; }
.board-col-name { flex: 1; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-col-count {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 11.5px;
  font-family: var(--font-brand);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 8px;
}
.board-col-menu { color: var(--text-muted); cursor: pointer; font-size: 11px; padding: 2px; opacity: 0; transition: opacity 0.1s ease, color 0.1s ease; }
.board-col-menu:hover { color: var(--brand-blue-dark); }
.board-col-cards { overflow-y: auto; flex: 1; min-height: 8px; padding: 2px; }
.board-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: grab;
  font-size: 13px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(16, 17, 20, 0.05);
  transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}
.board-card:hover { border-color: var(--brand-blue); box-shadow: 0 6px 16px rgba(16, 17, 20, 0.12); transform: translateY(-2px); }
.board-card.dragging { opacity: 0.35; }
.board-card-accent { height: 4px; width: 100%; flex-shrink: 0; }
.board-card-image { height: 130px; background-size: cover; background-position: center; flex-shrink: 0; background-color: var(--bg); }
.board-card-body { padding: 10px 11px 11px; }
.board-card-labels { display: flex; gap: 5px; margin-bottom: 7px; flex-wrap: wrap; }
.wf-label-chip { display: inline-block; width: 32px; height: 8px; border-radius: 4px; }
.board-card-title { font-weight: 600; line-height: 1.4; color: var(--text); }
.board-card-footer { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 11.5px; color: var(--text-dim); }
.board-card-footer .bcf-icon { display: inline-flex; align-items: center; gap: 3px; }
.board-add-card {
  padding: 9px 8px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  margin-top: 2px;
}
.board-add-card:hover { background: var(--panel); color: var(--brand-blue-dark); }

/* ---- Card modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 16px;
  z-index: 50;
  overflow-y: auto;
}
.modal-box {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 480px;
}
.modal-header { display: flex; align-items: center; gap: 10px; padding: 16px 16px 0; }
.modal-header input {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 6px 4px;
  border-radius: 6px;
}
.modal-header input:focus { background: var(--bg); outline: none; }
.modal-close { cursor: pointer; color: var(--text-dim); font-size: 15px; padding: 4px; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 12px 16px; display: flex; flex-direction: column; }
.modal-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text-dim); margin: 14px 0 6px; }
.modal-label:first-child { margin-top: 0; }
.modal-body textarea, .modal-body select, .modal-body input[type="file"] {
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  resize: vertical;
}
.wf-card-image-preview { height: 140px; border-radius: 8px; background-size: cover; background-position: center; margin-bottom: 10px; }
.wf-label-list { display: flex; flex-direction: column; gap: 6px; }
.wf-label-row { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.modal-footer { display: flex; align-items: center; gap: 10px; padding: 12px 16px 16px; }
.modal-footer button.secondary, .modal-footer button.primary { padding: 8px 16px; }
