/* ============================================================================
   Magic Marketing Tool — the client's own stylesheet, scoped.

   Taken from the design file they supplied rather than rebuilt by eye, so the
   spacing, weights and colours are exactly what they approved. Every selector
   is prefixed with .tsmp-tool so nothing escapes into the theme; the page-level
   rules (html, body, the global reset) are dropped for the same reason.

   Do not hand-edit. Regenerate from design-system.css.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

.tsmp-tool { color: var(--ink); font-family: var(--ff-body); font-size: 15px; line-height: 1.6; }
.tsmp-tool *, .tsmp-tool *::before, .tsmp-tool *::after { box-sizing: border-box; }
.tsmp-tool ul, .tsmp-tool ol { list-style: none; margin: 0; padding: 0; }
.tsmp-tool button { font: inherit; cursor: pointer; border: 0; background: none; }
.tsmp-tool a { color: inherit; }

.tsmp-tool {
  --bg: #FAFAF6;
  --white: #FFFFFF;
  --ink: #1C1A18;
  --mascot: #B48970;
  --dust: #C4B9AE;
  --border: #D8D4CE;
  --cream: #FAF7F2;
  --ivory: #F3EDE3;
  --hallway: #F0EFEE;
  --fri-yay: #C25F4E;
  --fri-yay-light: #F5E8E2;
  --gold: #C9A96E;
  --gold-light: #F6EFE1;
  --sage: #7A9B8A;
  --sage-dark: #5F7A6C;
  --sage-light: #E4F0EA;
  --pop-quiz: #b8433a;
  --ff-body: 'Inter', sans-serif;
  --ff-display: 'Playfair Display', serif;
  --ff-mono: 'IBM Plex Mono', monospace;
  --radius-card: 12px;
  --radius-btn: 4px;
  --radius-pill: 100px;
  --shadow-sm: 0 1px 3px rgba(28,26,24,0.04);
  --shadow-md: 0 4px 16px rgba(28,26,24,0.07);
  --shadow-lg: 0 12px 40px rgba(28,26,24,0.1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

.tsmp-tool img { display: block; max-width: 100%; }
.tsmp-tool button { font-family: inherit; cursor: pointer; background: none; border: none; }
.tsmp-tool input, .tsmp-tool select, .tsmp-tool textarea { font-family: inherit; }
.tsmp-tool .svg-icon { display: inline-block; vertical-align: middle; }

/* ===== TOP NAV ===== */
.tsmp-tool .topnav {
  height: 60px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.tsmp-tool .topnav-logo { font-family: var(--ff-display); font-style: italic; font-weight: 500; font-size: 20px; color: var(--ink); }
.tsmp-tool .topnav-links { display: flex; gap: 32px; list-style: none; }
.tsmp-tool .topnav-links a {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--ink); text-decoration: none; position: relative; padding-bottom: 4px;
}
.tsmp-tool .topnav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px;
  background: var(--mascot); transition: width 0.2s var(--ease-out);
}
.tsmp-tool .topnav-links a:hover { color: var(--mascot); }
.tsmp-tool .topnav-links a:hover::after { width: 100%; }

/* ===== BUTTONS ===== */
.tsmp-tool .btn {
  font-family: var(--ff-body); font-weight: 700; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: var(--radius-btn);
  padding: 13px 32px; transition: all 0.2s var(--ease-out); display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
}
.tsmp-tool .btn-primary { background: var(--fri-yay); color: var(--white); }
.tsmp-tool .btn-primary:hover { background: var(--mascot); }
.tsmp-tool .btn-primary:disabled { background: var(--border); color: var(--dust); cursor: not-allowed; }
.tsmp-tool .btn-approve { background: var(--sage-dark); color: var(--white); }
.tsmp-tool .btn-approve:hover { background: var(--sage); }
.tsmp-tool .btn-ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); padding: 11.5px 30.5px; }
.tsmp-tool .btn-ghost:hover { background: var(--ink); color: var(--white); }
.tsmp-tool .btn-ghost.small, .tsmp-tool .btn.small { padding: 6px 16px; font-size: 11px; }
.tsmp-tool .btn-full { width: 100%; }

/* ===== LAYOUT ===== */
.tsmp-tool .layout { display: flex; min-height: calc(100vh - 60px); }
.tsmp-tool .sidebar {
  width: 240px; flex-shrink: 0; background: var(--hallway);
  border-right: 1px solid var(--border); position: sticky; top: 60px;
  height: calc(100vh - 60px); overflow-y: auto;
}
.tsmp-tool .sidebar-label { font-weight: 700; font-size: 15px; color: var(--ink); padding: 24px 16px 16px; }
.tsmp-tool .sidebar-nav { list-style: none; }
.tsmp-tool .sidebar-nav li a {
  display: flex; align-items: center; min-height: 44px; padding: 0 16px 0 19px;
  font-weight: 500; font-size: 14px; color: var(--ink); text-decoration: none;
  border-left: 3px solid transparent; transition: background 0.15s;
}
.tsmp-tool .sidebar-nav li a:hover { color: var(--mascot); background: rgba(180,137,112,0.06); }
.tsmp-tool .sidebar-nav li.active a {
  border-left-color: var(--fri-yay); color: var(--fri-yay); background: var(--fri-yay-light);
  font-weight: 600;
}
.tsmp-tool .main { flex: 1; padding: 40px; min-width: 0; }
.tsmp-tool .main-inner { max-width: 900px; margin: 0 auto; }

/* ===== WIZARD HEADER ===== */
.tsmp-tool .wizard-header h1 { font-weight: 700; font-size: 28px; color: var(--ink); margin-bottom: 6px; }
.tsmp-tool .wizard-header p { font-size: 15px; color: var(--ink); }

/* ===== PROGRESS BAR ===== */
.tsmp-tool .progress-bar { display: flex; margin: 36px 0 28px; }
.tsmp-tool .p-step { flex: 1; position: relative; text-align: center; }
.tsmp-tool .p-step:not(:last-child)::after {
  content: ''; position: absolute; top: 15px; left: 50%; width: 100%; height: 2px;
  background: var(--border); z-index: 0;
}
.tsmp-tool .p-step.completed:not(:last-child)::after { background: var(--ink); }
.tsmp-tool .p-circle {
  position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--border); margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: 13px; color: var(--dust);
}
.tsmp-tool .p-step.active .p-circle {
  background: var(--fri-yay); border-color: var(--fri-yay); color: var(--white);
  box-shadow: 0 0 0 4px var(--fri-yay-light);
}
.tsmp-tool .p-step.completed .p-circle { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tsmp-tool .p-label { font-weight: 500; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dust); }
.tsmp-tool .p-step.active .p-label { color: var(--ink); }
.tsmp-tool .p-step.completed .p-label { color: var(--ink); }

/* ===== PROTOTYPE SWITCHER ===== */
.tsmp-tool .proto-switcher-wrap { margin-bottom: 32px; }
.tsmp-tool .proto-switcher-tag {
  font-family: var(--ff-mono); font-size: 11px; color: var(--pop-quiz);
  text-align: center; display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.tsmp-tool .proto-switcher-tag::before, .tsmp-tool .proto-switcher-tag::after { content: ''; flex: 1; height: 1px; background: var(--pop-quiz); opacity: 0.3; }
.tsmp-tool .proto-switcher { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tsmp-tool .proto-switcher button {
  border: 1px solid var(--border); background: var(--white); color: var(--ink);
  font-size: 11px; font-weight: 500; padding: 7px 14px; border-radius: var(--radius-btn);
}
.tsmp-tool .proto-switcher button:hover { border-color: var(--mascot); color: var(--mascot); }
.tsmp-tool .proto-switcher button.is-current { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ===== STAGE CARD ===== */
.tsmp-tool .stage-card {
  background: var(--white); border-radius: var(--radius-card); max-width: 860px; margin: 0 auto;
  border-top: 3px solid var(--ink); border-left: 1px solid var(--border);
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 40px;
}
.tsmp-tool .stage-card[hidden] { display: none; }
.tsmp-tool .card-header { margin-bottom: 28px; }
.tsmp-tool .card-header h2 { font-weight: 700; font-size: 20px; color: var(--ink); margin-bottom: 4px; }
.tsmp-tool .card-header p { font-size: 15px; color: var(--ink); }
.tsmp-tool .card-footer { margin-top: 32px; }
.tsmp-tool .eyebrow { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mascot); display: block; margin-bottom: 12px; }

/* ===== FORM FIELDS ===== */
.tsmp-tool .field { margin-bottom: 20px; }
.tsmp-tool .field label { display: block; font-weight: 600; font-size: 13px; color: var(--ink); margin-bottom: 8px; }
.tsmp-tool .field input, .tsmp-tool .field select {
  width: 100%; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-btn);
  padding: 11px 14px; font-size: 15px; color: var(--ink);
}
.tsmp-tool .field input::placeholder { color: var(--dust); }
.tsmp-tool .field-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ===== STAGE 1 ===== */
.tsmp-tool .upload-zone {
  border: 2px dashed var(--border); background: var(--ivory); border-radius: var(--radius-card);
  height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; margin-bottom: 32px; color: var(--ink); gap: 4px;
}
.tsmp-tool .upload-zone .up-main { font-weight: 500; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.tsmp-tool .upload-zone .up-sub { font-size: 12px; color: var(--dust); }
.tsmp-tool .upload-zone.uploaded {
  border: 2px solid var(--fri-yay); background: var(--fri-yay-light); flex-direction: row; gap: 10px;
}
.tsmp-tool .upload-zone.uploaded .up-main { font-family: var(--ff-mono); font-size: 13px; }
.tsmp-tool .images-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.tsmp-tool .img-slot { display: flex; flex-direction: column; gap: 6px; }
.tsmp-tool .img-slot .slot-box {
  position: relative; border: 2px dashed var(--border); border-radius: var(--radius-btn);
  aspect-ratio: 9 / 16; display: flex; align-items: center; justify-content: center; background: var(--white);
}
.tsmp-tool .img-slot.blog-feature .slot-box { aspect-ratio: 16 / 9; }
.tsmp-tool .img-slot.profile .slot-box { aspect-ratio: 1 / 1; border-radius: 50%; }
.tsmp-tool .img-slot .req-dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--fri-yay); }
.tsmp-tool .img-slot .slot-name { font-weight: 500; font-size: 11px; color: var(--ink); }
.tsmp-tool .img-slot .slot-dim { font-size: 11px; color: var(--dust); }
.tsmp-tool .img-slot.filled .slot-box {
  border: none; background: linear-gradient(135deg, var(--gold-light), var(--fri-yay-light));
}
.tsmp-tool .img-slot.filled .slot-check {
  position: absolute; bottom: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center;
}

/* ===== STAGE 2 — CHAT ===== */
.tsmp-tool .intro-panel { background: var(--ivory); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px; margin-bottom: 20px; font-size: 15px; }
.tsmp-tool .chat-container { background: var(--white); border-radius: var(--radius-card); overflow: hidden; }
.tsmp-tool .chat-messages { display: flex; flex-direction: column; gap: 14px; padding-bottom: 20px; }
.tsmp-tool .msg { max-width: 78%; padding: 14px 16px; border-radius: var(--radius-card); font-size: 15px; }
.tsmp-tool .msg.claude { align-self: flex-start; background: var(--white); border: 1px solid var(--border); }
.tsmp-tool .msg.teacher { align-self: flex-end; background: var(--fri-yay-light); }
.tsmp-tool .summary-card {
  background: var(--ivory); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 20px; margin: 8px 0 0 16px;
}
.tsmp-tool .summary-card ul { list-style: none; font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.tsmp-tool .summary-card ul li::before { content: '— '; color: var(--mascot); }
.tsmp-tool .chat-confirm-btn { margin-top: 16px; }
.tsmp-tool .chat-confirm-note { font-size: 12px; color: var(--ink); margin-top: 10px; }
.tsmp-tool .chat-input-bar {
  margin-top: 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-pill);
  display: flex; align-items: center; padding: 6px 8px 6px 20px; gap: 10px;
}
.tsmp-tool .chat-input-bar input { flex: 1; border: none; font-size: 15px; color: var(--ink); }
.tsmp-tool .chat-input-bar input::placeholder { color: var(--dust); }
.tsmp-tool .icon-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink); flex-shrink: 0; }
.tsmp-tool .icon-btn.send { background: var(--fri-yay); color: var(--white); }

/* ===== STAGE 3/4 — EDITOR LAYOUT ===== */
.tsmp-tool .editor-layout { display: flex; gap: 24px; align-items: flex-start; }
.tsmp-tool .editor-col { flex: 0 0 60%; min-width: 0; }
.tsmp-tool .preview-col { flex: 0 0 36%; position: sticky; top: 100px; }
.tsmp-tool .editor-toolbar { display: flex; gap: 4px; border: 1px solid var(--border); border-bottom: none; border-radius: var(--radius-card) var(--radius-card) 0 0; padding: 8px 10px; background: var(--cream); }
.tsmp-tool .editor-toolbar button { width: 28px; height: 28px; font-size: 13px; font-weight: 700; color: var(--ink); border-radius: var(--radius-btn); }
.tsmp-tool .editor-toolbar button:hover { background: var(--border); }
.tsmp-tool .editor-body {
  border: 1px solid var(--border); border-radius: 0 0 var(--radius-card) var(--radius-card);
  padding: 24px; font-size: 15px; color: var(--ink); min-height: 220px;
}
.tsmp-tool .editor-body h1.blog-title { font-family: var(--ff-display); font-style: normal; font-weight: 500; font-size: 44px; line-height: 1.15; margin-bottom: 20px; }
.tsmp-tool .editor-body h2.blog-sub { font-weight: 700; font-size: 17px; margin: 20px 0 8px; }
.tsmp-tool .editor-body h3.listing-title { font-weight: 700; font-size: 19px; margin-bottom: 14px; }
.tsmp-tool .editor-body p { margin-bottom: 14px; }
.tsmp-tool .revision-bar {
  margin-top: 14px; background: var(--ivory); border-radius: var(--radius-pill); border: 1px solid var(--border);
  display: flex; align-items: center; padding: 4px 6px 4px 18px; gap: 8px;
}
.tsmp-tool .revision-bar input { flex: 1; border: none; background: none; font-size: 14px; color: var(--ink); }
.tsmp-tool .revision-bar input::placeholder { color: var(--dust); }
.tsmp-tool .coaching-tip { background: var(--ivory); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 12px; font-size: 13px; color: var(--mascot); margin-bottom: 14px; }
.tsmp-tool .auto-link { color: var(--fri-yay); text-decoration: underline; }
.tsmp-tool .auto-link:hover { color: var(--mascot); }
.tsmp-tool .preview-eyebrow { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mascot); margin-bottom: 10px; display: block; }
.tsmp-tool .preview-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.tsmp-tool .preview-thumb { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--gold-light), var(--fri-yay-light)); }
.tsmp-tool .preview-thumb.wide { aspect-ratio: 1200/630; }
.tsmp-tool .preview-body { padding: 16px; }
.tsmp-tool .preview-body .p-title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.tsmp-tool .preview-body .p-price { font-weight: 700; color: var(--fri-yay); margin-bottom: 6px; }
.tsmp-tool .preview-body .p-excerpt { font-size: 13px; color: var(--ink); }
.tsmp-tool .preview-byline { font-size: 12px; color: var(--mascot); margin: 6px 0 10px; }
.tsmp-tool .tag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tsmp-tool .chip { background: var(--ivory); border: 1px solid var(--border); border-radius: var(--radius-btn); padding: 4px 12px; font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--ink); }

.tsmp-tool .seo-toggle { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 20px; }
.tsmp-tool .seo-toggle-row { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.tsmp-tool .seo-toggle-row .eyebrow { margin: 0; }
.tsmp-tool .seo-toggle-row svg { transition: transform 0.2s var(--ease-out); }
.tsmp-tool .seo-toggle-row.is-open svg { transform: rotate(180deg); }
.tsmp-tool .seo-body { display: none; padding-top: 16px; }
.tsmp-tool .seo-toggle-row.is-open + .seo-body { display: block; }
.tsmp-tool .seo-field { margin-bottom: 14px; }
.tsmp-tool .seo-field label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--dust); margin-bottom: 6px; }
.tsmp-tool .seo-field .val { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-btn); padding: 10px 14px; font-size: 14px; color: var(--ink); }
.tsmp-tool .seo-note { font-size: 12px; color: var(--ink); margin-top: 4px; }

.tsmp-tool .checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; }
.tsmp-tool .checkbox-row input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--ink); }
.tsmp-tool .checkbox-row .cb-sub { font-size: 12px; color: var(--dust); margin-top: 2px; }

/* ===== STAGE 5 — PINS ===== */
.tsmp-tool .tabs-row { display: flex; gap: 28px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tsmp-tool .tabs-row button { font-weight: 600; font-size: 13px; color: var(--dust); padding-bottom: 12px; border-bottom: 2px solid transparent; }
.tsmp-tool .tabs-row button.active { color: var(--ink); border-bottom-color: var(--ink); }
.tsmp-tool .pin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.tsmp-tool .pin-panel[hidden] { display: none; }
.tsmp-tool .pin-card { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--white); overflow: hidden; }
.tsmp-tool .pin-graphic { aspect-ratio: 9/16; background: linear-gradient(160deg, var(--gold-light), var(--fri-yay-light)); position: relative; }
.tsmp-tool .pin-month {
  position: absolute; top: 8px; right: 8px; background: var(--gold-light); color: var(--gold);
  font-family: var(--ff-mono); font-size: 10px; padding: 3px 8px; border-radius: var(--radius-btn);
}
.tsmp-tool .pin-body { padding: 12px; }
.tsmp-tool .pin-body .pin-headline { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.tsmp-tool .pin-body .pin-value { font-size: 12px; color: var(--ink); margin-bottom: 10px; }
.tsmp-tool .pin-approve { display: flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--sage-dark); color: var(--sage-dark); }
.tsmp-tool .pin-approve:hover { background: var(--sage-light); }
.tsmp-tool .pin-approve.is-approved { background: var(--sage-dark); border-color: var(--sage-dark); color: var(--white); }
.tsmp-tool .pin-approve.is-approved:hover { background: var(--sage); }

/* ===== STAGE 6 — SOCIAL ===== */
.tsmp-tool .completion-tracker { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.tsmp-tool .completion-tracker .ct-item { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 11px; color: var(--ink); }
.tsmp-tool .ct-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dust); display: flex; align-items: center; justify-content: center; }
.tsmp-tool .ct-item.done .ct-dot { background: var(--ink); color: var(--white); width: 14px; height: 14px; }
.tsmp-tool .platform-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.tsmp-tool .platform-tabs button { font-weight: 600; font-size: 12px; text-transform: uppercase; color: var(--dust); padding-bottom: 12px; border-bottom: 2px solid transparent; display: flex; align-items: center; gap: 6px; }
.tsmp-tool .platform-tabs button.active { color: var(--fri-yay); border-bottom-color: var(--fri-yay); }
.tsmp-tool .platform-tabs button.done { color: var(--ink); }
.tsmp-tool .post-panel[hidden] { display: none; }
.tsmp-tool .post-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 24px; }
.tsmp-tool .post-card { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--white); overflow: hidden; cursor: pointer; }
.tsmp-tool .post-thumb { aspect-ratio: 1/1; background: linear-gradient(150deg, var(--sage), var(--gold-light)); position: relative; }
.tsmp-tool .wk-badge { position: absolute; top: 6px; right: 6px; font-family: var(--ff-mono); font-size: 9px; color: var(--dust); background: rgba(255,255,255,0.85); padding: 2px 5px; border-radius: 3px; }
.tsmp-tool .post-caption { padding: 8px; font-size: 11px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tsmp-tool .yt-card { border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; }
.tsmp-tool .yt-thumb { aspect-ratio: 9/16; max-width: 260px; margin: 0 auto 10px; background: linear-gradient(150deg, var(--ink), var(--mascot)); border-radius: var(--radius-btn); display: flex; align-items: center; justify-content: center; }
.tsmp-tool .yt-meta { font-family: var(--ff-mono); font-size: 11px; color: var(--dust); margin-bottom: 16px; }
.tsmp-tool .yt-script-toggle { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; margin-bottom: 12px; cursor: pointer; }
.tsmp-tool .yt-script { background: var(--ivory); border-radius: var(--radius-card); padding: 16px; font-size: 14px; margin-bottom: 20px; }
.tsmp-tool .yt-buttons { display: flex; gap: 12px; }

/* ===== CONFIRMATION ===== */
.tsmp-tool .confirmation-card { text-align: center; padding: 56px 40px; }
.tsmp-tool .confirmation-card .headline-script { font-family: var(--ff-display); font-style: italic; font-weight: 500; font-size: 36px; margin-bottom: 10px; }
.tsmp-tool .confirmation-card .headline-main { font-weight: 700; font-size: 28px; margin-bottom: 32px; }
.tsmp-tool .confirm-checklist { list-style: none; max-width: 460px; margin: 0 auto 36px; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.tsmp-tool .confirm-checklist li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.tsmp-tool .confirm-checklist .cl-check { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tsmp-tool .confirm-checklist .cl-link { margin-left: auto; color: var(--fri-yay); font-weight: 700; font-size: 13px; text-decoration: none; }
.tsmp-tool .confirm-buttons { display: flex; gap: 14px; justify-content: center; }

/* ===== POST EXPAND MODAL ===== */
.tsmp-tool .post-card { transition: box-shadow 0.2s var(--ease-out); }
.tsmp-tool .post-card:hover { box-shadow: var(--shadow-md); }
.tsmp-tool .post-modal-overlay {
  position: fixed; inset: 0; background: rgba(28,26,24,0.5); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.tsmp-tool .post-modal-overlay[hidden] { display: none; }
.tsmp-tool .post-modal {
  background: var(--white); border-radius: var(--radius-card); padding: 32px; width: 100%;
  max-width: 380px; position: relative; box-shadow: var(--shadow-lg);
}
.tsmp-tool .post-modal-close {
  position: absolute; top: 16px; right: 16px; color: var(--ink); font-size: 14px;
  width: 28px; height: 28px; border-radius: 50%;
}
.tsmp-tool .post-modal-close:hover { background: var(--ivory); }
.tsmp-tool .post-modal-thumb { aspect-ratio: 1/1; border-radius: var(--radius-btn); background: linear-gradient(150deg, var(--sage), var(--gold-light)); margin-bottom: 16px; }
.tsmp-tool .post-modal label { display: block; font-weight: 600; font-size: 13px; color: var(--ink); margin: 14px 0 8px; }
.tsmp-tool .post-modal textarea {
  width: 100%; min-height: 100px; border: 1px solid var(--border); border-radius: var(--radius-btn);
  padding: 12px 14px; font-family: var(--ff-body); font-size: 14px; color: var(--ink); resize: vertical;
  margin-bottom: 20px;
}

@media (max-width: 860px) {
  .tsmp-tool .editor-layout { flex-direction: column; }
  .tsmp-tool .preview-col { flex: 1; position: static; width: 100%; }
  .tsmp-tool .field-row { grid-template-columns: 1fr; }
  .tsmp-tool .images-grid { grid-template-columns: repeat(2, 1fr); }
  .tsmp-tool .pin-grid, .tsmp-tool .post-grid { grid-template-columns: repeat(2, 1fr); }
  .tsmp-tool .sidebar { display: none; }
}
