:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-hover: #eef2f6;
  --border: #dfe4ec;
  --border-strong: #c6d0de;
  --text: #111827;
  --text-muted: #526075;
  --text-subtle: #738298;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-text: #ffffff;
  --meat-bg: #fef2f2;
  --meat-text: #b91c1c;
  --meat-border: #fecaca;
  --living-bg: #ecfdf5;
  --living-text: #047857;
  --living-border: #a7f3d0;
  --pin-bg: #fffbeb;
  --pin-text: #b45309;
  --pin-border: #fde68a;
  --blue-badge-bg: #eff6ff;
  --blue-badge-text: #1d4ed8;
  --amber-badge-bg: #fffbeb;
  --amber-badge-text: #b45309;
  --green-badge-bg: #ecfdf5;
  --green-badge-text: #047857;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
  --base-font: 15px;
  --copy-font: 15px;
}

[data-theme="dark"] {
  --bg: #0c0e13;
  --surface: #141821;
  --surface-2: #1a1f2b;
  --surface-hover: #222838;
  --border: #262d3d;
  --border-strong: #374156;
  --text: #f3f4f6;
  --text-muted: #a4b0c4;
  --text-subtle: #7c899e;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --accent-text: #ffffff;
  --meat-bg: rgba(239, 68, 68, 0.14);
  --meat-text: #fca5a5;
  --meat-border: rgba(239, 68, 68, 0.3);
  --living-bg: rgba(16, 185, 129, 0.14);
  --living-text: #6ee7b7;
  --living-border: rgba(16, 185, 129, 0.3);
  --pin-bg: rgba(245, 158, 11, 0.15);
  --pin-text: #fcd34d;
  --pin-border: rgba(245, 158, 11, 0.32);
  --blue-badge-bg: rgba(59, 130, 246, 0.16);
  --blue-badge-text: #93c5fd;
  --amber-badge-bg: rgba(245, 158, 11, 0.16);
  --amber-badge-text: #fcd34d;
  --green-badge-bg: rgba(16, 185, 129, 0.16);
  --green-badge-text: #6ee7b7;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
}

[data-scale="lg"] {
  --base-font: 17px;
  --copy-font: 17.5px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", system-ui, -apple-system, sans-serif;
  font-size: var(--base-font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 20px 56px;
}

/* Top Sticky Bar */
.top-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.pill-badge.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.brand-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.controls-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ctrl-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.ctrl-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.ctrl-btn.share-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
}

.ctrl-btn.share-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.shortcut-hint {
  font-size: 12px;
  color: var(--text-subtle);
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px dashed var(--border);
}

/* Main Tab Nav */
.main-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.main-tab-btn {
  padding: 8px 15px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.main-tab-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.main-tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

.hidden {
  display: none !important;
}

/* Filter + Quick Number Strip */
.toolbar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-btn {
  padding: 6px 13px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.filter-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--surface);
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input {
  width: 260px;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13px;
  outline: none;
}

.search-input:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.quick-strip {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 7px;
  padding-bottom: 4px;
}

.quick-pill {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 7px 12px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  transition: all 0.15s ease;
  min-width: 122px;
}

.quick-pill:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.quick-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.quick-pill-code {
  font-size: 11.5px;
  font-weight: 800;
  opacity: 0.9;
}

.quick-pill-name {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* Split Workspace */
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(340px, 470px) 1fr;
  gap: 18px;
  align-items: start;
}

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

/* Left: Threads Timeline Simulator */
.phone-sim {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-md);
}

.sim-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.sim-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.nav-pair {
  display: flex;
  gap: 6px;
}

.nav-btn {
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 700;
}

.nav-btn:hover {
  background: var(--surface-hover);
}

/* Threads node row */
.thread-node {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
}

.thread-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.avatar-circle.small {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.rail-line {
  width: 2px;
  flex: 1;
  min-height: 16px;
  background: var(--border-strong);
  margin: 6px 0;
  border-radius: 2px;
}

.thread-content {
  padding-bottom: 16px;
  min-width: 0;
}

.thread-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.author-handle {
  font-size: 13.5px;
  font-weight: 800;
}

.verified-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 10px;
  margin-left: 4px;
}

.step-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.thread-text {
  font-size: var(--copy-font);
  line-height: 1.58;
  white-space: pre-line;
  margin: 0 0 10px;
}

/* 2-Tier Dark Price Card Inside Preview */
.card-switch-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.card-switch-btn {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.card-switch-btn.active {
  background: #111215;
  color: #fde047;
  border-color: #27272a;
}

.two-tier-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #27272a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  margin-bottom: 10px;
}

.tier-top-dark {
  background: #111215;
  color: #f4f4f5;
  padding: 15px 15px 12px;
}

.tier-top-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.tier-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tier-item-line {
  font-size: 12.5px;
  line-height: 1.42;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}

.tier-item-name {
  color: #e4e4e7;
}

.tier-item-price {
  color: #fde047;
  font-weight: 700;
}

.tier-top-footer {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid #27272a;
  font-size: 12.5px;
  font-weight: 800;
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tier-bottom-shop {
  background: #ffffff;
  color: #18181b;
  padding: 12px 14px;
  border-top: 2px dashed #52525b;
}

.shop-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.shop-badge {
  background: #e11d48;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
}

.shop-unit-pill {
  background: #fef3c7;
  color: #92400e;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 5px;
}

.shop-prod-title {
  font-size: 13px;
  font-weight: 700;
  color: #18181b;
  margin-bottom: 5px;
}

.shop-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.shop-discount {
  font-size: 18px;
  font-weight: 900;
  color: #e11d48;
}

.shop-sale-price {
  font-size: 18px;
  font-weight: 900;
  color: #111827;
}

.shop-orig-price {
  font-size: 12.5px;
  color: #71717a;
  text-decoration: line-through;
}

.shop-hint {
  margin-top: 6px;
  font-size: 11.5px;
  color: #52525b;
}

/* Funnel Exit Box under 4/4 */
.funnel-exit-box {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.funnel-exit-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--accent);
}

.funnel-steps {
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.funnel-chip {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
}

/* Right: Editor & Explanation Panel */
.editor-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sample-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}

.cat-badge.meat {
  background: var(--meat-bg);
  color: var(--meat-text);
  border-color: var(--meat-border);
}

.cat-badge.living {
  background: var(--living-bg);
  color: var(--living-text);
  border-color: var(--living-border);
}

.cat-badge.pin {
  background: var(--pin-bg);
  color: var(--pin-text);
  border-color: var(--pin-border);
}

.summary-title {
  margin: 6px 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.summary-meta-line {
  font-size: 13px;
  color: var(--text-muted);
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 11px;
  border: none;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s ease;
}

.primary-btn:hover {
  background: var(--accent-hover);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.secondary-btn:hover {
  background: var(--surface-hover);
}

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

.meta-info-box {
  flex: 1;
  min-width: 170px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
}

.meta-info-k {
  font-size: 11.5px;
  color: var(--text-subtle);
  font-weight: 700;
}

.meta-info-v {
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

/* Copy Block Cards */
.copy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 15px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.copy-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.copy-title-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.step-color-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 7px;
}

.step-color-badge.blue {
  background: var(--blue-badge-bg);
  color: var(--blue-badge-text);
}

.step-color-badge.amber {
  background: var(--amber-badge-bg);
  color: var(--amber-badge-text);
}

.step-color-badge.green {
  background: var(--green-badge-bg);
  color: var(--green-badge-text);
}

.step-color-badge.neutral {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.copy-card-label {
  font-size: 14px;
  font-weight: 800;
}

.copy-btn {
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.copy-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.why-note {
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  padding: 6px 10px;
  border-radius: 0 8px 8px 0;
}

.copy-pre {
  margin: 0;
  font-family: inherit;
  font-size: var(--copy-font);
  line-height: 1.62;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
}

/* TAB 2: Grid Overview */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
}

.overview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.overview-hook {
  font-size: 13.5px;
  line-height: 1.5;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  white-space: pre-line;
}

.overview-items {
  margin: 0;
  padding-left: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* TAB 3: Canvas Generator */
.gen-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1024px) {
  .gen-layout {
    grid-template-columns: 1fr;
  }
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13.5px;
  outline: none;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  background: var(--surface-2);
  font-size: 13px;
  color: var(--text-muted);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.canvas-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#cardCanvas {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* TAB 4: Analysis & Checklist */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.ref-img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0c0e13;
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}

.bar-track {
  height: 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

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

@media (max-width: 900px) {
  .funnel-diagram {
    grid-template-columns: 1fr;
  }
}

.funnel-stage {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table th {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 12px;
}

.chk-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13px;
  cursor: pointer;
}

.chk-row input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.chk-row.done span {
  text-decoration: line-through;
  color: var(--text-subtle);
}

/* Toast */
.toast-box {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 12px;
  background: #111827;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .toast-box {
  background: #3b82f6;
}

.toast-box.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .app-shell {
    padding: 10px 12px 44px;
  }

  .top-header {
    position: static;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .shortcut-hint {
    display: none;
  }

  .search-wrap,
  .search-input {
    width: 100%;
  }

  .brand-title {
    font-size: 1.12rem;
  }
}
