/* ========================================================================
   Smart Copy DS — section-specific styles
   ======================================================================== */

/* TYPE */
.type-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-8); }
.type-stack { display: flex; flex-direction: column; gap: var(--s-5); }
.type-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--s-6);
  align-items: baseline;
  border-bottom: 1px dashed var(--border);
  padding-bottom: var(--s-5);
}
.type-row:last-child { border-bottom: none; }
.type-row .meta {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-muted);
  letter-spacing: 0.03em;
}
.type-row .sample { font-family: var(--font-display); color: var(--ink); }
.type-row .sample.body { font-family: var(--font-body); font-weight: 400; }
.type-row .sample.hand { font-family: var(--font-hand); font-weight: 600; color: var(--accent-ink); }
.type-row .sample.mono { font-family: var(--font-mono); color: var(--ink-soft); }
.type-display-1 { font-size: 80px; line-height: 0.92; letter-spacing: -0.035em; font-weight: 800; }
.type-display-2 { font-size: 56px; line-height: 0.98; letter-spacing: -0.03em; font-weight: 700; }
.type-h1 { font-size: 40px; line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
.type-h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.type-h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; }
.type-body-lg { font-size: 18px; line-height: 1.55; }
.type-body { font-size: 16px; line-height: 1.6; }
.type-small { font-size: 13px; line-height: 1.55; color: var(--ink-soft); }
.type-mono { font-size: 13px; line-height: 1.5; }
.type-hand { font-size: 32px; line-height: 1; }
.type-kicker {
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 600; color: var(--ink-muted);
}

.font-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--s-6);
  box-shadow: var(--shadow-1);
}
.font-card + .font-card { margin-top: var(--s-4); }
.font-card .head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--s-4);
}
.font-card .name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.font-card .name.hand { font-family: var(--font-hand); font-size: 28px; }
.font-card .name.body { font-family: var(--font-body); font-weight: 600; font-size: 18px; }
.font-card .name.mono { font-family: var(--font-mono); font-size: 16px; }
.font-card .role { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.font-card .glyphs { font-size: 28px; color: var(--ink-soft); letter-spacing: 0.02em; }
.font-card .desc { font-size: 13px; color: var(--ink-muted); line-height: 1.55; margin-top: var(--s-3); }
.font-card.f-display .glyphs { font-family: var(--font-display); font-weight: 700; }
.font-card.f-body .glyphs    { font-family: var(--font-body); }
.font-card.f-hand .glyphs    { font-family: var(--font-hand); font-weight: 600; color: var(--accent-ink); }
.font-card.f-mono .glyphs    { font-family: var(--font-mono); font-size: 22px; }

/* SPACING / RADIUS / SHADOW */
.measure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s-6);
}
.measure-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--s-6);
  box-shadow: var(--shadow-1);
}
.measure-card h4 { font-size: 16px; margin-bottom: var(--s-4); }

.space-row {
  display: grid;
  grid-template-columns: 56px 1fr 80px;
  gap: var(--s-3);
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-soft);
}
.space-row:last-child { border-bottom: none; }
.space-row .nm { font-family: var(--font-mono); font-size: 12px; color: var(--ink); }
.space-row .bar { background: var(--accent-soft); border-left: 3px solid var(--accent); height: 14px; border-radius: 2px; }
.space-row .px { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); text-align: right; }

.radius-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.radius-tile {
  aspect-ratio: 1.2;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  position: relative;
}
.radius-tile .nm { font-family: var(--font-mono); font-size: 11px; color: var(--accent-ink); font-weight: 600; }
.radius-tile .px { font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted); }

.shadow-stack { display: flex; flex-direction: column; gap: var(--s-4); }
.shadow-card {
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: var(--s-4) var(--s-5);
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--border-soft);
}
.shadow-card .nm { font-family: var(--font-mono); font-size: 12px; color: var(--ink); }
.shadow-card .px { font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted); }
.shadow-1c { box-shadow: var(--shadow-1); }
.shadow-2c { box-shadow: var(--shadow-2); }
.shadow-3c { box-shadow: var(--shadow-3); }
.shadow-4c { box-shadow: var(--shadow-4); }
.shadow-hardc { box-shadow: var(--shadow-hard); }

/* ICONS */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--s-2);
}
.icon-tile {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  aspect-ratio: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  color: var(--ink);
  transition: background .12s, border-color .12s;
}
.icon-tile:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile .name { font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted); }

.icon-rules {
  margin-top: var(--s-6);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4);
}
.icon-rules .card .ttl { font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.icon-rules .card .body { font-size: 12px; color: var(--ink-muted); line-height: 1.5; }

/* BUTTONS */
.btn-matrix {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-1);
  padding: var(--s-6);
}
.btn-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--s-5);
  padding: var(--s-4) 0;
  border-bottom: 1px dashed var(--border-soft);
  align-items: center;
}
.btn-row:last-child { border-bottom: none; }
.btn-row .rl { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.btn-row .ex { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }

/* INPUTS */
.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}
.field {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--s-6);
  box-shadow: var(--shadow-1);
}
.field + .field { margin-top: var(--s-4); }
.field .ttl { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); margin-bottom: var(--s-3); letter-spacing: 0.06em; text-transform: uppercase; }
.field .help { font-size: 12px; color: var(--ink-muted); margin-top: 6px; }
.input.is-error { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.input.is-success { border-color: var(--success); }

.check {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; cursor: pointer;
}
.check input { display: none; }
.check .box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 3px;
  background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s, border-color .12s;
}
.check input:checked + .box {
  background: var(--accent); border-color: var(--accent);
}
.check input:checked + .box::after {
  content: "";
  width: 10px; height: 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5 L7 12 L13 5' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: contain;
}
.radio .box { border-radius: 50%; }
.radio input:checked + .box { background: var(--surface); border-color: var(--accent); border-width: 1.5px; }
.radio input:checked + .box::after {
  content: "";
  width: 10px; height: 10px;
  background: var(--accent); border-radius: 50%;
}

.toggle {
  width: 36px; height: 20px;
  border-radius: var(--r-full);
  background: var(--border-strong);
  position: relative; cursor: pointer;
  transition: background .14s;
}
.toggle::after {
  content: ""; position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-1);
  transition: transform .14s;
}
.toggle.on { background: var(--accent); }
.toggle.on::after { transform: translateX(16px); }

/* SURFACES */
.surface-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s-5);
}

/* note card sample */
.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--s-6);
  box-shadow: var(--shadow-2);
  position: relative;
}
.note .corner-fold {
  position: absolute; top: 0; right: 0;
  width: 26px; height: 26px;
  background: linear-gradient(225deg, var(--paper-deep) 50%, transparent 50%);
  border-bottom-left-radius: 4px;
}
.note h5 { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.note p { font-size: 13px; color: var(--ink-muted); line-height: 1.55; }
.note .clip {
  position: absolute; top: -10px; left: 20px;
  width: 50px; height: 18px;
  background: linear-gradient(180deg, #c8ccd2 0%, #9ea3ab 50%, #c8ccd2 100%);
  border-radius: 8px;
  box-shadow: var(--shadow-2);
}
.note.tape::before {
  content: "";
  position: absolute; top: -8px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 80px; height: 22px;
  background: rgba(245, 196, 0, 0.55);
  border: 1px dashed rgba(168, 134, 10, 0.35);
}
.note.sticky {
  background: #fef6b8;
  border-color: rgba(168, 134, 10, 0.2);
  box-shadow: var(--shadow-3), -2px 2px 0 rgba(168, 134, 10, 0.06);
  transform: rotate(-1deg);
}

/* BADGES */
.badge-board {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--s-6);
  box-shadow: var(--shadow-1);
}
.badge-board h4 { font-size: 14px; margin-bottom: var(--s-4); font-family: var(--font-mono); font-weight: 500; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: var(--s-3); }

/* STATES */
.states-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
.empty {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-sm);
  padding: var(--s-10) var(--s-6);
  text-align: center;
  position: relative;
}
.empty .icon-bubble {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-4);
}
.empty .icon-bubble svg { width: 26px; height: 26px; }
.empty h5 { font-size: 18px; margin-bottom: 6px; }
.empty p { font-size: 13px; color: var(--ink-muted); max-width: 320px; margin: 0 auto var(--s-4); line-height: 1.55; }
.empty .doodle {
  position: absolute;
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--ink-muted);
}
.empty .doodle.tl { top: 20px; left: 24px; transform: rotate(-8deg); }
.empty .doodle.br { bottom: 18px; right: 28px; transform: rotate(4deg); }

.loading {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--s-6);
  box-shadow: var(--shadow-1);
}
.loading h5 { font-size: 14px; margin-bottom: var(--s-4); font-family: var(--font-mono); font-weight: 500; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.skel {
  height: 12px;
  background: linear-gradient(90deg, var(--paper-edge) 0%, var(--paper-deep) 50%, var(--paper-edge) 100%);
  background-size: 200% 100%;
  border-radius: var(--r-xs);
  animation: skel 1.4s linear infinite;
}
.skel + .skel { margin-top: 10px; }
@keyframes skel {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.thinking {
  display: flex; align-items: center; gap: 10px;
  margin-top: var(--s-4);
  padding: 10px 14px;
  background: var(--info-soft);
  border: 1px solid rgba(103, 97, 168, 0.22);
  border-radius: var(--r-sm);
  color: var(--info);
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
}
.thinking .dots { display: inline-flex; gap: 3px; }
.thinking .dots span {
  width: 5px; height: 5px; border-radius: 50%; background: currentColor;
  animation: pulse 1.2s ease-in-out infinite;
}
.thinking .dots span:nth-child(2) { animation-delay: 0.15s; }
.thinking .dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* IN-PRODUCT MOMENTS */
.moments {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-12);
}
.moment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-8);
  box-shadow: var(--shadow-3);
  position: relative;
  overflow: hidden;
}
.moment .moment-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: var(--s-6);
  flex-wrap: wrap; gap: var(--s-3);
}
.moment .moment-head h3 { font-size: 24px; }
.moment .moment-head .num {
  font-family: var(--font-hand);
  font-size: 56px;
  color: var(--accent);
  line-height: 0.8;
  margin-right: var(--s-4);
}
.moment .moment-head h3 { display: flex; align-items: center; }
.moment .annotate {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--ink-muted);
  position: absolute;
}

/* Browser frame */
.browser {
  background: var(--paper-edge);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-3);
}
.browser .bar {
  background: var(--paper-deep);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.browser .bar .traffic { display: flex; gap: 6px; }
.browser .bar .traffic span {
  width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong);
}
.browser .bar .traffic span:nth-child(1) { background: #ed6a5e; }
.browser .bar .traffic span:nth-child(2) { background: #f5bf4f; }
.browser .bar .traffic span:nth-child(3) { background: #61c454; }
.browser .bar .url {
  flex: 1;
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 6px 12px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-muted);
  border: 1px solid var(--border-soft);
}

/* Moment 1: side panel parsing */
.moment-1 .stage {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 0;
  background: #fff;
  min-height: 480px;
}
.moment-1 .crm {
  padding: var(--s-6);
  border-right: 1px solid var(--border);
  background: var(--paper);
  position: relative;
}
.moment-1 .crm .crm-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--s-5);
}
.moment-1 .crm .crm-head .ttl { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.moment-1 .crm .crm-head .sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }
.moment-1 .form-fld {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: var(--s-3);
  transition: all .12s;
}
.moment-1 .form-fld .lbl { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.moment-1 .form-fld .val { font-size: 13px; color: var(--ink); font-family: var(--font-body); }
.moment-1 .form-fld .val.empty { color: var(--ink-faint); font-style: italic; }
.moment-1 .form-fld.filled { background: var(--success-soft); border-color: rgba(0,155,114,0.25); }
.moment-1 .form-fld.filled .val { color: var(--ink); font-weight: 500; }
.moment-1 .form-fld.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #fff;
}
.moment-1 .form-fld.active .lbl { color: var(--accent-ink); }
.moment-1 .form-fld .pill { font-family: var(--font-mono); font-size: 10px; color: var(--success); background: var(--success-soft); padding: 1px 6px; border-radius: 3px; }

.moment-1 .panel {
  background: #fff;
  padding: var(--s-5) var(--s-4);
  border-left: 1px dashed var(--border);
  position: relative;
}
.moment-1 .panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--s-4); padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--border);
}
.moment-1 .panel-head .src { font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.moment-1 .panel-head .meta { font-family: var(--font-mono); font-size: 10px; color: var(--accent-ink); }
.moment-1 .panel-head .meta::before { content: "● "; color: var(--success); }
.moment-1 .email-from {
  font-size: 12px; color: var(--ink-muted); margin-bottom: 8px;
}
.moment-1 .email-from strong { color: var(--ink); font-weight: 600; }
.moment-1 .email-subject { font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-bottom: var(--s-3); }
.moment-1 .email-body {
  font-size: 11.5px; line-height: 1.65; color: var(--ink-soft);
  padding: var(--s-3); background: var(--paper); border-radius: var(--r-xs);
  border: 1px solid var(--border-soft);
  margin-bottom: var(--s-4);
  max-height: 130px; overflow: hidden;
  position: relative;
}
.moment-1 .email-body::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 30px;
  background: linear-gradient(180deg, transparent, var(--paper));
}
.moment-1 .extracted-head {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.moment-1 .extracted-head::before { content: "↓"; color: var(--accent); font-size: 14px; }
.moment-1 .chip-row { display: flex; flex-direction: column; gap: 6px; }
.moment-1 .chip {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: grab;
  transition: all .12s;
}
.moment-1 .chip:hover { background: var(--accent-soft); border-color: var(--accent); }
.moment-1 .chip.placed { background: var(--success-soft); border-color: rgba(0,155,114,0.25); opacity: 0.6; }
.moment-1 .chip.placed .v { text-decoration: line-through; }
.moment-1 .chip .k { font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.moment-1 .chip .v { font-size: 12px; color: var(--ink); font-weight: 500; margin-top: 2px; }
.moment-1 .chip .col { display: flex; flex-direction: column; gap: 0; }
.moment-1 .chip.dragging {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: var(--shadow-3);
  transform: rotate(-1deg);
}

/* Moment 2: field setup */
.moment-2 .stage {
  background: var(--paper);
  padding: var(--s-8);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}
.moment-2 .setup-head {
  display: flex; align-items: center; gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.moment-2 .setup-head .crumbs { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }
.moment-2 .setup-head .crumbs strong { color: var(--ink); font-weight: 600; }
.moment-2 .setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s-3);
}
.moment-2 .setup-field {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--s-4);
  box-shadow: var(--shadow-1);
  position: relative;
}
.moment-2 .setup-field .fl-name {
  font-family: var(--font-body);
  font-weight: 600; font-size: 13px;
  margin-bottom: 4px;
}
.moment-2 .setup-field .fl-prompt {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: var(--s-3);
}
.moment-2 .setup-field .fl-meta {
  display: flex; gap: 6px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 10px;
}
.moment-2 .setup-field .fl-meta .tag {
  background: var(--paper-edge);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: var(--r-xs);
  color: var(--ink-muted);
}
.moment-2 .setup-field.add {
  border-style: dashed;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted);
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .12s;
  min-height: 110px;
}
.moment-2 .setup-field.add:hover { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }

/* FOOTER */
.ds-footer {
  border-top: 1px dashed var(--border);
  padding: var(--s-12) 0 var(--s-16);
  background: var(--paper);
}
.ds-footer .row {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: var(--s-6);
}
.ds-footer .row p { font-family: var(--font-hand); font-size: 22px; color: var(--ink-soft); max-width: 480px; line-height: 1.3; }
.ds-footer .row .sig { font-family: var(--font-hand); font-size: 22px; color: var(--accent); }

/* Tweaks panel */
.tweaks-panel {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-4);
  font-family: var(--font-body);
  display: none;
  min-width: 220px;
}
.tweaks-panel.open { display: block; }
.tweaks-panel .head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.tweaks-panel .head .ttl {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.tweaks-panel .head button {
  background: transparent; border: none; cursor: pointer;
  color: var(--ink-muted); font-size: 16px; line-height: 1; padding: 4px;
}
.tweaks-panel .row {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.tweak-opts {
  display: flex; gap: 6px;
}
.tweak-opts button {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: all .12s;
}
.tweak-opts button:hover { border-color: var(--accent); }
.tweak-opts button.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.tweak-opts button .sw {
  width: 28px; height: 18px;
  border: 1px solid var(--border);
  border-radius: 2px;
}

@media (max-width: 960px) {
  .hero-inner, .type-grid, .surface-grid, .color-usage, .input-grid, .states-grid, .logo-grid, .moment-1 .stage, .moment-2 .setup-grid { grid-template-columns: 1fr; }
  .palette-grid, .measure-grid, .index-strip { grid-template-columns: repeat(2, 1fr); }
  .icon-grid { grid-template-columns: repeat(4, 1fr); }
  .top-nav nav { display: none; }
}
