:root {
  --ft-blue: #2563eb;
  --ft-blue-dark: #1d4ed8;
  --ft-ink: #0f172a;
  --ft-text: #334155;
  --ft-muted: #64748b;
  --ft-line: #e2e8f0;
  --ft-soft: #f5f7fb;
  --ft-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px rgba(15, 23, 42, 0.07);
}
.ft-container { max-width: 1240px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.ft-narrow { max-width: 900px; }
.ft-muted { color: var(--ft-muted); }
.ft-small { font-size: 13px; }

/* Hero */
.ft-hero {
  background: radial-gradient(1000px 380px at 85% -10%, rgba(255, 255, 255, 0.18), transparent 60%), linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
  color: #fff; padding: 60px 0 110px; text-align: center;
}
.ft-pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3); margin-bottom: 16px; }
.ft-hero h1 { font-size: 44px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; color: #fff; }
.ft-hero p { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.92); }
.ft-hero-features { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ft-hero-features li { font-size: 14px; font-weight: 600; padding: 6px 12px 6px 30px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); position: relative; }
.ft-hero-features li::before { content: ''; position: absolute; left: 11px; top: 50%; width: 12px; height: 7px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-70%) rotate(-45deg); }

/* Layout */
.ft-main { background: var(--ft-soft); padding-bottom: 48px; }
.ft-app { display: grid; gap: 22px; margin-top: -70px; position: relative; z-index: 1; }
.ft-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.ft-side { display: grid; gap: 22px; position: sticky; top: 16px; }
.ft-card { background: #fff; border: 1px solid var(--ft-line); border-radius: 16px; box-shadow: var(--ft-shadow); padding: 22px; min-width: 0; color: var(--ft-text); }
.ft-card h2 { font-size: 19px; font-weight: 800; color: var(--ft-ink); margin: 0; display: flex; align-items: center; gap: 10px; }
.ft-card-head { margin-bottom: 16px; }
.ft-card-head p { margin: 4px 0 0; font-size: 14px; }
.ft-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ft-step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ft-blue); color: #fff; font-size: 14px; font-weight: 800; }
.ft-head-actions { display: flex; gap: 8px; }

/* Thumbnails */
.ft-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ft-thumb { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; font-family: inherit; }
.ft-thumb-frame { display: block; height: 110px; overflow: hidden; position: relative; border: 2px solid var(--ft-line); border-radius: 12px; background: #fff; transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.ft-thumb-inner { position: absolute; left: 0; top: 0; width: 640px; transform: scale(0.29); transform-origin: top left; pointer-events: none; }
.ft-thumb-name { font-size: 13px; font-weight: 700; color: var(--ft-text); text-align: center; }
.ft-thumb:hover .ft-thumb-frame { border-color: #93c5fd; transform: translateY(-2px); }
.ft-thumb.active .ft-thumb-frame { border-color: var(--ft-blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }
.ft-thumb.active .ft-thumb-name { color: var(--ft-blue); }

/* Tabs and fields */
.ft-tabs, .ft-otabs { display: flex; gap: 4px; padding: 4px; background: #f1f5f9; border-radius: 12px; margin-bottom: 18px; overflow-x: auto; }
.ft-tab, .ft-otab { flex: 1 0 auto; border: 0; background: none; padding: 9px 12px; border-radius: 9px; font: 700 13px/1.2 inherit; color: #475569; cursor: pointer; white-space: nowrap; }
.ft-tab.active, .ft-otab.active { background: #fff; color: var(--ft-blue-dark); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
.ft-panel[hidden], .ft-out[hidden], .ft-custom-only[hidden], .ft-note[hidden] { display: none; }
.ft-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.ft-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.ft-grid2 .ft-field { margin-bottom: 0; }
.ft-field > span { font-size: 13px; font-weight: 700; color: var(--ft-ink); }
.ft-field > span em { font-style: normal; font-weight: 500; color: var(--ft-muted); }
.ft-field > span b { color: #dc2626; }
.ft-field small { font-size: 12px; color: var(--ft-muted); line-height: 1.5; }
.ft-field input[type="text"], .ft-field select, .ft-field textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--ft-line); border-radius: 10px;
  background: #fbfcfe; font: 14px/1.4 inherit; color: var(--ft-ink);
}
.ft-field textarea { resize: vertical; }
.ft-field input:focus, .ft-field select:focus, .ft-field textarea:focus { outline: none; border-color: var(--ft-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); background: #fff; }
.ft-color input[type="color"] { width: 100%; height: 42px; padding: 3px; border: 1px solid var(--ft-line); border-radius: 10px; background: #fff; cursor: pointer; }
.ft-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.ft-checks label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ft-checks input { accent-color: var(--ft-blue); width: 17px; height: 17px; }
.ft-note { font-size: 13px; line-height: 1.6; background: #eff6ff; border: 1px solid #dbeafe; color: #1e3a8a; border-radius: 10px; padding: 8px 12px; margin: -4px 0 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

/* Buttons */
.ft-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 999px; border: 1px solid #dbeafe; background: #eff6ff; color: var(--ft-blue-dark); font: 700 14px/1.2 inherit; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease; }
.ft-btn:hover { transform: translateY(-1px); background: #dbeafe; }
.ft-btn-primary { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28); }
.ft-btn-ghost { background: #fff; color: var(--ft-text); border-color: var(--ft-line); }
.ft-btn-sm { padding: 6px 12px; font-size: 13px; }
.ft-btn.ft-done { background: #16a34a; color: #fff; border-color: #16a34a; }

/* Preview */
.ft-toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.ft-toggle { display: inline-flex; background: #f1f5f9; border-radius: 999px; padding: 3px; }
.ft-toggle button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font: 700 12px/1.2 inherit; color: #475569; cursor: pointer; }
.ft-toggle button.active { background: #fff; color: var(--ft-blue-dark); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
.ft-mock { border: 1px solid var(--ft-line); border-radius: 12px; overflow: hidden; background: #fff; margin: 0 auto; max-width: 100%; transition: max-width 0.25s ease; }
.ft-mock.ft-mobile { max-width: 375px; }
.ft-mock-email { padding: 22px 24px; }
.ft-mock-line { height: 10px; border-radius: 6px; background: #e5e7eb; margin-bottom: 10px; }
.ft-w80 { width: 80%; } .ft-w60 { width: 60%; } .ft-w70 { width: 70%; }
.ft-preview { overflow-x: auto; }
.ft-mock.ft-dark { background: #1e1e1e; border-color: #333; }
.ft-mock.ft-dark .ft-mock-line { background: #3a3a3a; }
.ft-mock.ft-dark .ft-preview { filter: invert(1) hue-rotate(180deg); }
.ft-mock.ft-dark .ft-preview img { filter: invert(1) hue-rotate(180deg); }

/* Check */
.ft-check-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ft-check-head p { margin: 2px 0 0; }
.ft-score-ring { --p: 100; --c: #16a34a; flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), #e5e7eb 0); display: flex; align-items: center; justify-content: center; position: relative; }
.ft-score-ring::before { content: ''; position: absolute; inset: 7px; background: #fff; border-radius: 50%; }
.ft-score-ring span { position: relative; font-size: 19px; font-weight: 800; color: var(--ft-ink); }
.ft-score-ring.ft-mid { --c: #f59e0b; }
.ft-score-ring.ft-bad { --c: #ef4444; }
.ft-checklist-out { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ft-h { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; padding: 8px 10px; border-radius: 10px; background: #f8fafc; border: 1px solid var(--ft-line); }
.ft-h-tag { flex: 0 0 auto; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 999px; }
.ft-h-high { background: #fef2f2; border-color: #fecaca; } .ft-h-high .ft-h-tag { background: #fee2e2; color: #b91c1c; }
.ft-h-medium { background: #fffbeb; border-color: #fde68a; } .ft-h-medium .ft-h-tag { background: #fef3c7; color: #b45309; }
.ft-h-low .ft-h-tag { background: #e0f2fe; color: #0369a1; }
.ft-h-info .ft-h-tag { background: #ede9fe; color: #6d28d9; }
.ft-h-ok { background: #ecfdf5; border-color: #a7f3d0; color: #047857; font-weight: 700; }

/* Output */
.ft-out { display: grid; gap: 10px; justify-items: start; }
.ft-out p { margin: 0; }
.ft-out-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ft-code { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid #1e293b; background: #0f172a; color: #e2e8f0; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; }

/* Ads (between sections, never inside the tool) */
.ft-adbox { width: 100%; max-width: 1140px; margin: 0 auto; padding: 24px 16px; box-sizing: border-box; text-align: center; align-self: stretch; }
.ft-ad-label { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ft-muted); margin-bottom: 6px; }
.ft-ad-inner { display: block; width: 100%; min-height: 100px; }
.ft-ad-inner ins.adsbygoogle { display: block; width: 100%; }

/* Content */
.ft-section { padding: 64px 0; color: var(--ft-text); }
.ft-alt { background: var(--ft-soft); }
.ft-h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--ft-ink); margin: 0 0 12px; }
.ft-h2-left { margin-top: 44px; }
.ft-section p { font-size: 16px; line-height: 1.8; }
.ft-section a { color: var(--ft-blue); font-weight: 600; }
.ft-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 8px 0 16px; }
.ft-feature { background: #fff; border: 1px solid var(--ft-line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--ft-shadow); }
.ft-feature h3 { font-size: 16px; font-weight: 800; color: var(--ft-ink); margin: 0 0 6px; }
.ft-feature p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ft-muted); }
.ft-list { margin: 0 0 16px; padding-left: 20px; font-size: 15.5px; line-height: 1.9; }
.ft-table-wrap { overflow-x: auto; border: 1px solid var(--ft-line); border-radius: 12px; background: #fff; margin: 8px 0 14px; }
.ft-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ft-table th, .ft-table td { padding: 11px 14px; border-bottom: 1px solid #eef2f7; text-align: left; vertical-align: top; }
.ft-table tr:last-child td { border-bottom: 0; }
.ft-table thead th { background: #f8fafc; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ft-muted); }
.ft-table td:first-child { font-weight: 700; color: var(--ft-ink); white-space: nowrap; }
.ft-faq { display: grid; gap: 10px; }
.ft-faq-item { background: #fff; border: 1px solid var(--ft-line); border-radius: 12px; overflow: hidden; box-shadow: var(--ft-shadow); }
.ft-faq-q { width: 100%; text-align: left; padding: 16px 52px 16px 18px; background: none; border: 0; font: 700 16px/1.4 inherit; color: var(--ft-ink); cursor: pointer; position: relative; }
.ft-faq-q::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; line-height: 25px; text-align: center; border-radius: 50%; background: #eff6ff; color: var(--ft-blue); font-size: 18px; }
.ft-faq-q[aria-expanded="true"]::after { content: '\2212'; }
.ft-faq-a { padding: 0 18px 16px; font-size: 15px; line-height: 1.75; color: var(--ft-muted); }
.ft-faq-a[hidden] { display: none; }
.tl-more .mk-container { max-width: 1240px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }

@media (max-width: 991px) {
  .ft-workspace { grid-template-columns: 1fr; }
  .ft-side { position: static; }
  .ft-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-hero h1 { font-size: 36px; }
}
@media (max-width: 575px) {
  .ft-hero { padding: 44px 0 96px; }
  .ft-hero h1 { font-size: 30px; }
  .ft-hero p { font-size: 16px; }
  .ft-card { padding: 16px; }
  .ft-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-grid2, .ft-cards { grid-template-columns: 1fr; }
  .ft-h2 { font-size: 24px; }
  .ft-table td:first-child { white-space: normal; }
}

/* Steps list */
.ft-steps { margin: 0 0 18px; padding-left: 22px; }
.ft-steps li { font-size: 16px; line-height: 1.75; margin-bottom: 10px; padding-left: 4px; }
.ft-steps li::marker { color: var(--ft-blue); font-weight: 800; }

/* v3: new panels */
.ft-sub { font-size: 15px; font-weight: 800; color: var(--ft-ink); margin: 18px 0 10px; }
.ft-forward-only[hidden], .ft-dark-only[hidden], .ft-cta-only[hidden], #ft-ad-custom[hidden], #ft-reason-custom[hidden], #ft-share-wrap[hidden], #ft-platform-note[hidden], #ft-saved-empty[hidden] { display: none; }
#ft-platform-note { margin: -6px 0 14px; }
.ft-save-row { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 8px; }
.ft-save-row .ft-field { flex: 1; margin-bottom: 0; }
.ft-saved { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.ft-saved-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--ft-line); border-radius: 10px; background: #f8fafc; }
.ft-saved-item div:first-child { display: flex; flex-direction: column; min-width: 0; }
.ft-saved-item strong { font-size: 14px; color: var(--ft-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-saved-item small { font-size: 12px; color: var(--ft-muted); }
.ft-saved-btns { display: flex; gap: 6px; flex: 0 0 auto; }
.ft-share-out { width: 100%; box-sizing: border-box; margin-top: 10px; padding: 9px 12px; border: 1px solid var(--ft-line); border-radius: 10px; background: #fbfcfe; font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ft-ink); }
.ft-mock.ft-dark-real { background: #1e1e1e; border-color: #333; }
.ft-mock.ft-dark-real .ft-mock-line { background: #3a3a3a; }
.ft-out-actions .ft-btn { white-space: nowrap; }
@media (max-width: 575px) { .ft-save-row { flex-direction: column; align-items: stretch; } }
.ft-tabs { flex-wrap: wrap; overflow: visible; }
.ft-tabs .ft-tab { flex: 1 1 auto; }
.ft-preview .efm-wrap { width: 100% !important; }