/* PDF Wiz theme: Financial Times colours (salmon paper, claret, oxford blue)
   with the DataVoxy grid on top. Loaded last on every page. */

:root {
  --ft-paper: #FFF1E5;
  --ft-wheat: #F2DFCE;
  --ft-card: #FFF8F2;
  --ft-ink: #33302E;
  --ft-black: #262A33;
  --ft-muted: #66605C;
  --ft-line: #E3D3C5;
  --ft-line-strong: #CCC1B7;
  --ft-claret: #990F3D;
  --ft-claret-dark: #7A0C31;
  --ft-oxford: #0F5499;
  --ft-teal: #0D7680;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
  /* names used by the older pages */
  --bg: var(--ft-paper);
  --panel: var(--ft-card);
  --ink: var(--ft-ink);
  --muted: var(--ft-muted);
  --primary: var(--ft-claret);
  --primary-dark: var(--ft-claret-dark);
  --border: var(--ft-line);
  --shadow: none;
  --green: var(--ft-claret);
  --deep: var(--ft-claret-dark);
  --line: var(--ft-line);
  --paper: var(--ft-card);
  --accent: var(--ft-claret);
}

html { color-scheme: light; scroll-behavior: smooth; }
html body {
  margin: 0; background: var(--ft-paper); color: var(--ft-ink);
  font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
/* DataVoxy grid, in ink on salmon, fading out from the top */
html body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(51, 48, 46, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 48, 46, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 25%, transparent 78%);
}
html body::after { content: none; }
::selection { background: #F2C9B5; color: var(--ft-black); }
:focus-visible { outline: 2px solid var(--ft-oxford); outline-offset: 2px; }

/* Type: serif headlines like a newspaper, sans for UI */
html body :is(h1, h2, h3) {
  font-family: var(--serif) !important; color: var(--ft-black); letter-spacing: -0.01em;
  background: none !important; -webkit-text-fill-color: currentColor !important;
}
html body h1 { font-weight: 600 !important; line-height: 1.08 !important; }
html body :is(h2, h3) { font-weight: 600 !important; }
html body a { color: var(--ft-oxford); text-decoration: none; }
html body a:hover { text-decoration: underline; text-underline-offset: 3px; }
html body p { color: var(--ft-ink); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 241, 229, 0.94); backdrop-filter: blur(8px); border-top: 4px solid var(--ft-claret); border-bottom: 1px solid var(--ft-line-strong); }
.site-header-inner { max-width: 1160px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
html body .brand { display: flex; align-items: center; gap: 10px; color: var(--ft-black); text-decoration: none !important; }
html body .brand img { border-radius: 8px; box-shadow: none; animation: none; }
.brand-name { font: 700 1.45rem/1 var(--serif); color: var(--ft-black); letter-spacing: -0.02em; }
.brand-name em, html body .brand span, html body .brand em, html body .footer-brand em, html body .workspace-brand em { color: var(--ft-claret) !important; font-style: normal; font-family: var(--serif) !important; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--ft-ink); font-size: .88rem; font-weight: 600; padding: 8px 10px; border-radius: 4px; }
.site-nav a:hover { background: var(--ft-wheat); text-decoration: none; }
.site-nav .nav-cta { color: var(--ft-claret); border: 1px solid var(--ft-claret); margin-left: 6px; }
.site-nav .nav-cta:hover { background: var(--ft-claret); color: #fff; }
@media (max-width: 760px) { .site-nav a:not(.nav-cta):not(:first-child) { display: none; } .site-header-inner { padding: 8px 14px; } }

/* ---------- buttons ---------- */
html body :is(.btn-primary, .export, .primary, .button, .signup-button, .plus-cta, .cta-btn, #confirmPayment, #continueSave, #analyzeBtn, #exportBtn) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ft-claret); color: #fff !important; border: 0; border-radius: 4px; box-shadow: none;
  font: 700 1rem var(--sans); padding: 14px 22px; cursor: pointer; text-decoration: none !important; transition: background .15s ease;
}
html body :is(.btn-primary, .export, .primary, .button, .signup-button, .plus-cta, .cta-btn, #analyzeBtn, #exportBtn):hover:not(:disabled) { background: var(--ft-claret-dark); transform: none; box-shadow: none; }
html body :is(.btn-primary, .export, #exportBtn):disabled { background: #C9B6AA; filter: none; cursor: not-allowed; }
.btn-quiet { background: transparent; border: 1px solid var(--ft-ink); color: var(--ft-ink); border-radius: 4px; padding: 11px 18px; font: 600 .92rem var(--sans); cursor: pointer; }
.btn-quiet:hover { background: var(--ft-wheat); }
html body .tool { background: var(--ft-card); color: var(--ft-ink); border: 1px solid var(--ft-line-strong); border-radius: 4px; box-shadow: none; }
html body .tool:hover:not(:disabled) { background: var(--ft-wheat); border-color: var(--ft-ink); transform: none; }
html body .tool.active { background: var(--ft-black); color: #fff; border-color: var(--ft-black); }
html body .tool:disabled, html body button:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- page layout ---------- */
.page { max-width: 1160px; margin: 0 auto; padding: 0 24px 40px; }
.crumbs { padding: 18px 0 0; font-size: .82rem; color: var(--ft-muted); }
.crumbs span { margin: 0 4px; }
.kicker { margin: 0 0 8px; color: var(--ft-claret) !important; font: 700 .78rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.standfirst { font: 400 1.22rem/1.5 var(--serif); color: var(--ft-ink); max-width: 720px; margin: 0; }

.tool-hero { padding: 22px 0 18px; border-bottom: 1px solid var(--ft-line-strong); }
.tool-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 0 0 12px; }

.tool-box { margin: 24px 0 8px; padding: 24px; background: var(--ft-card); border: 1px solid var(--ft-line-strong); border-top: 4px solid var(--ft-black); }
.drop-ft { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 170px; padding: 26px; text-align: center; cursor: pointer; background: var(--ft-paper); border: 2px dashed var(--ft-line-strong); border-radius: 2px; transition: border-color .15s, background .15s; }
.drop-ft:hover, .drop-ft.dragover { border-color: var(--ft-claret); background: #FDE8DA; }
.drop-ft.has-files { min-height: 96px; }
.drop-title { font: 600 1.35rem var(--serif); color: var(--ft-black); }
.drop-title::before { content: '+'; display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; background: var(--ft-claret); color: #fff; font: 700 1.2rem/1 var(--sans); vertical-align: 3px; }
.drop-hint { color: var(--ft-muted); font-size: .88rem; max-width: 560px; }
.file-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--ft-line); }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--ft-line); font-size: .92rem; }
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file-size { color: var(--ft-muted); font-size: .8rem; }
.file-btn { width: 30px; height: 30px; border: 1px solid var(--ft-line-strong); background: var(--ft-paper); border-radius: 4px; cursor: pointer; color: var(--ft-ink); font-size: .95rem; }
.file-btn:hover:not(:disabled) { border-color: var(--ft-ink); }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 18px 0 0; }
.opt { display: flex; flex-direction: column; gap: 5px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ft-muted); }
.opt-wide { grid-column: span 2; }
@media (max-width: 520px) { .opt-wide { grid-column: auto; } }
html body :is(.opt select, .opt input, .save-field, .prompt, .select) { font: 500 .95rem var(--sans); text-transform: none; letter-spacing: 0; color: var(--ft-ink); background: #fff; border: 1px solid var(--ft-line-strong); border-radius: 4px; padding: 10px; width: 100%; }
html body :is(input, select, textarea):focus { outline: none; border-color: var(--ft-oxford); box-shadow: 0 0 0 3px rgba(15, 84, 153, .18); }
.go { width: 100%; margin-top: 18px; font-size: 1.08rem !important; padding: 16px 22px !important; }
.go.working { opacity: .8; cursor: progress; }
.go.working::after { content: ''; width: 16px; height: 16px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tool-status { min-height: 1.4em; margin: 12px 0 0; font-size: .92rem; color: var(--ft-muted); }
.tool-status.ok { color: var(--ft-teal); font-weight: 600; }
.tool-status.error { color: var(--ft-claret); font-weight: 600; }
.tool-status.warn { color: #9A5B00; }
.result { margin-top: 16px; padding: 18px; background: #E6F1EF; border-left: 4px solid var(--ft-teal); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.result-head { margin: 0; font: 600 1.2rem var(--serif); color: var(--ft-black); }
.result-note { margin: 0; color: var(--ft-muted); font-size: .88rem; }
.result .download { max-width: 100%; overflow-wrap: anywhere; text-align: left; }

.how, .faq-ft, .related { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--ft-line-strong); }
.how h2, .faq-ft h2, .related h2, .section-head h2 { font-size: 1.7rem; margin: 0 0 14px; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; max-width: 760px; }
.steps li { padding-left: 4px; }
html body :is(.faq-ft, .faq, .seo-faq) details { border-bottom: 1px solid var(--ft-line); padding: 14px 0; max-width: 820px; }
html body :is(.faq-ft, .faq, .seo-faq) summary { cursor: pointer; font: 600 1.08rem var(--serif); color: var(--ft-black); }
html body :is(.faq-ft, .faq, .seo-faq) details p { margin: 8px 0 0; color: var(--ft-ink); }

/* ---------- tool cards ---------- */
.tool-grid-ft { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--ft-line-strong); border-left: 1px solid var(--ft-line-strong); }
.tool-card-ft { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; color: var(--ft-ink) !important; background: rgba(255, 248, 242, .7); border-right: 1px solid var(--ft-line-strong); border-bottom: 1px solid var(--ft-line-strong); text-decoration: none !important; transition: background .15s; }
.tool-card-ft:hover { background: var(--ft-card); }
.tool-card-ft:hover strong { color: var(--ft-oxford); text-decoration: underline; text-underline-offset: 3px; }
.tool-tag { align-self: flex-start; font: 700 .68rem var(--sans); letter-spacing: .08em; color: var(--ft-claret); }
.tool-card-ft strong { font: 600 1.18rem/1.25 var(--serif); color: var(--ft-black); }
.tool-desc { color: var(--ft-muted); font-size: .88rem; }
.tool-free { position: absolute; top: 16px; right: 14px; font: 700 .64rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ft-teal); }

/* ---------- homepage ---------- */
.home-hero { padding: 46px 0 34px; text-align: center; border-bottom: 1px solid var(--ft-line-strong); }
.home-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 6px auto 16px; max-width: 900px; }
.home-hero h1 span { color: var(--ft-claret); display: block; }
.home-hero .standfirst { margin: 0 auto; }
.drop-home { max-width: 640px; margin: 28px auto 0; background: var(--ft-card); }
.popular { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 18px; font-size: .92rem; }
.popular span { color: var(--ft-muted); font-weight: 600; }
.popular a { font-weight: 600; }
.tools-ft { margin-top: 36px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 4px solid var(--ft-black); margin-bottom: 18px; }
.section-head p { margin: 0 0 10px; color: var(--ft-muted); }
.tool-group { margin-bottom: 28px; }
.tool-group h3 { font-size: 1.05rem; margin: 0 0 10px; font-family: var(--sans) !important; text-transform: uppercase; letter-spacing: .06em; color: var(--ft-claret); }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 30px; border-top: 1px solid var(--ft-line-strong); border-bottom: 1px solid var(--ft-line-strong); }
.why div { padding: 20px 20px 16px; border-right: 1px solid var(--ft-line); }
.why div:last-child { border-right: 0; }
.why h3 { margin: 0 0 6px; font-size: 1.25rem; }
.why p { margin: 0; color: var(--ft-muted); }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } .why div { border-right: 0; border-bottom: 1px solid var(--ft-line); } }
.plus-ft { margin-top: 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; padding: 30px; background: var(--ft-black); color: #F3ECE6; }
.plus-ft h2 { color: #fff !important; font-size: clamp(1.9rem, 3.5vw, 2.7rem); margin: 0 0 10px; }
.plus-ft p { color: #E6DCD3; }
.plus-ft .kicker { color: #FF7FAA !important; }
.plus-ft .fine { font-size: .82rem; color: #BFB3A9; margin-top: 12px; }
.plus-ft .tool-status { color: #E6DCD3; }
.plus-ft .tool-status a { color: #9CC8F5; }
.plus-price { font-size: 1rem; }
.plus-price b { color: #fff; font: 700 1.5rem var(--serif); }
.plus-price span { display: block; color: #BFB3A9; font-size: .88rem; margin-top: 2px; }
.plus-form { display: grid; gap: 10px; margin-top: 14px; max-width: 460px; }
.plus-email { display: flex; flex-direction: column; gap: 4px; color: #BFB3A9; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
html body .plus-email input { background: #fff; color: var(--ft-ink); border: 0; border-radius: 4px; padding: 12px; font: 500 1rem var(--sans); text-transform: none; }
html body .plus-ft label.plus-consent { color: #F3ECE6; }
html body .consent-ft { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; color: var(--ft-ink); font-size: .92rem; line-height: 1.4; }
.consent-ft input { margin-top: 3px; accent-color: var(--ft-claret); }
.waitlist-form { max-width: 560px; }
html body .site-footer-ft .brand span.brand-name { color: #fff !important; }
html body .site-footer-ft .brand-name em { color: #FF7FAA !important; }
html body .plus-consent { display: flex; gap: 8px; align-items: flex-start; color: #E6DCD3; font-size: .86rem; line-height: 1.4; }
.plus-consent input { margin-top: 3px; accent-color: var(--ft-claret); }
.plus-form .btn-primary { justify-self: start; }
.plus-ft .tool-status.ok { color: #7FD1C3; }
.plus-ft .tool-status.error { color: #FF9FBF; }
.plus-compare table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.plus-compare th, .plus-compare td { padding: 10px 8px; border-bottom: 1px solid #4A4E58; text-align: left; vertical-align: top; }
.plus-compare thead th { color: #fff; font: 700 .76rem var(--sans); text-transform: uppercase; letter-spacing: .06em; }
.plus-compare thead th:last-child, .plus-compare td:last-child { color: #fff; font-weight: 600; }
.plus-compare tbody th { color: #E6DCD3; font-weight: 500; }
.plus-compare td { color: #BFB3A9; white-space: nowrap; }
.plus-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; align-content: start; }
.plus-list li { padding: 12px 0; border-bottom: 1px solid #4A4E58; display: flex; flex-direction: column; }
.plus-list b { color: #fff; font: 600 1.08rem var(--serif); }
.plus-list span { color: #BFB3A9; font-size: .9rem; }
@media (max-width: 760px) { .plus-ft { grid-template-columns: 1fr; padding: 22px; } }

/* ---------- footer ---------- */
.site-footer-ft { margin-top: 48px; background: var(--ft-black); color: #CFC6BE; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 34px 24px 20px; display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 24px; font-size: .86rem; }
.footer-inner .brand-name { color: #fff; }
.footer-inner p { color: #CFC6BE; }
.footer-inner a { color: #E9E1DA; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col b { color: #fff; font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; margin-bottom: 4px; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.dv-version { padding: 14px 24px 22px; text-align: center; color: #8F857D; font-size: .74rem; letter-spacing: .03em; background: var(--ft-black); }
body:not(:has(.site-footer-ft)) .dv-version { background: transparent; color: var(--ft-muted); }

/* ---------- older pages (editor, regional, guides, contact) ---------- */
html body :is(.topbar, header:not(.site-header)) { background: rgba(255, 241, 229, .94); border-bottom: 1px solid var(--ft-line-strong); backdrop-filter: blur(8px); }
html body .topbar { border-top: 4px solid var(--ft-claret); }
html body :is(.panel, .tool-card, .card, .upload-card, .contact-card, .feature, .cta-box, .trust div, .plus-features div, .lower-bar, .analysis-result, .editor-toolbar, .thumbnails, .meta .mini, .seo-links a, .features div, .meta div, .payment-modal) {
  background: var(--ft-card); border: 1px solid var(--ft-line-strong); box-shadow: none; color: var(--ft-ink); border-radius: 2px;
}
html body .panel { border-top: 4px solid var(--ft-black); }
html body .plus-section { background: var(--ft-wheat); border: 1px solid var(--ft-line-strong); border-radius: 2px; }
html body :is(.badge, .eyebrow) { background: transparent; border: 0; padding: 0; color: var(--ft-claret); }
html body .small-label { color: var(--ft-claret); }
html body :is(.dropzone, .drop, .upload) { background: var(--ft-paper); border: 2px dashed var(--ft-line-strong); border-radius: 2px; box-shadow: none; color: var(--ft-claret); }
html body :is(.dropzone, .drop, .upload):hover { border-color: var(--ft-claret); background: #FDE8DA; transform: none; }
html body input[type="file"] { color: var(--ft-muted); }
html body :is(input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea, select) { background: #fff; color: var(--ft-ink); border: 1px solid var(--ft-line-strong); border-radius: 4px; }
html body :is(label, .save-label, .field-label) { color: var(--ft-muted); }
html body .canvas-wrap, html body .preview { background: var(--ft-wheat); border: 1px solid var(--ft-line-strong); border-radius: 2px; }
html body .page-stage { box-shadow: 0 6px 22px rgba(51, 48, 46, .25); }
html body .thumbnail { background: #fff; }
html body .thumbnail.active { border-color: var(--ft-claret); box-shadow: none; }
html body .annotation { border-color: var(--ft-oxford); }
html body .drawing-shape { stroke: var(--ft-claret); }
html body .ann-btn { background: var(--ft-black); color: #fff; border: 0; border-radius: 3px; }
html body .modal-backdrop { background: rgba(38, 42, 51, .55); }
html body .modal-close { background: transparent; color: var(--ft-muted); }
html body :is(.full-footer, .footer-bottom, .lower, .seo-content, .site-footer, .contact-strip, footer:not(.site-footer-ft)) { border-color: var(--ft-line-strong); color: var(--ft-muted); }
html body .full-footer .footer-column a { color: var(--ft-ink); }
html body .footer-column b, html body .footer-brand strong { color: var(--ft-black); }

/* Plain legacy pages */
html.dv-basic body, html.dv-plain body { max-width: 760px; margin: 0 auto; padding: 36px 24px 0; }
html.dv-basic body h1, html.dv-plain body h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 16px 0 12px; }
html.dv-basic body :is(a, button):not([style]), html.dv-plain body button { background: var(--ft-claret); color: #fff; border: 0; border-radius: 4px; padding: 12px 18px; display: inline-block; }
html.dv-basic body > main > p:first-child a { background: none !important; color: var(--ft-black) !important; padding: 0 !important; font: 700 1.4rem var(--serif); }
html.dv-basic body > main > p:first-child a::before { content: ''; display: inline-block; width: 26px; height: 26px; margin-right: 8px; vertical-align: -6px; border-radius: 6px; background: url('/wizard-logo.svg') center/cover; }
html.dv-basic body a[style] { background: none !important; color: var(--ft-oxford) !important; padding: 0 !important; }
html.dv-plain body a { color: var(--ft-oxford); }
html.dv-basic body p, html.dv-plain body p, html.dv-plain .note { color: var(--ft-ink); }
html.dv-plain body section { background: var(--ft-card); border: 1px solid var(--ft-line-strong); border-top: 4px solid var(--ft-black); padding: 22px; }

/* ---------- editor page layout ---------- */
html body .hero:has(.editor-panel) { grid-template-columns: 1fr; gap: 18px; }
html body .hero:has(.editor-panel) > .panel:first-child { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px 32px; align-items: center; padding: 24px 28px; }
html body .hero:has(.editor-panel) > .panel:first-child h1 { font-size: clamp(2rem, 4vw, 3rem) !important; margin: 6px 0 8px; }
html body .hero:has(.editor-panel) > .panel:first-child .small-label { grid-column: 1 / -1; }
html body .hero:has(.editor-panel) > .panel:first-child :is(h1, p) { grid-column: 1; }
html body .hero:has(.editor-panel) > .panel:first-child p { margin: 0; }
html body .hero:has(.editor-panel) > .panel:first-child .meta { grid-column: 2; grid-row: 2 / span 2; margin: 0; grid-template-columns: 1fr; gap: 8px; }
html body .hero:has(.editor-panel) .meta .mini { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; }
html body .hero:has(.editor-panel) .meta .mini strong { font-size: 1rem; margin: 0; }
html body .editor-panel { padding: 22px 24px; }
html body .editor-panel .workspace-brand { display: none; }
html body .editor-panel .upload { display: inline-flex; align-items: center; justify-content: center; margin: 10px 0 6px; padding: 12px 18px; }
html body .editor-panel .editor-toolbar { display: inline-flex; width: auto; margin: 0 10px 0 0; padding: 4px; vertical-align: middle; }
html body .editor-panel .editor-toolbar .toolbar-divider { display: none; }
html body .editor-panel .editor-toolbar .tool { padding: 7px 12px; font-size: .8rem; }
html body .editor-panel .page-controls { display: inline-flex; vertical-align: middle; gap: 10px; margin: 8px 0 14px; }
html body .editor-panel .page-controls span { min-width: 92px; text-align: center; }
html body .editor-panel .page-stage { min-width: min(520px, 100%); min-height: 460px; }
html body .editor-body { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
html body .thumbnails { max-height: 720px; align-self: start; }
html body .editor-main { display: grid; grid-template-columns: minmax(0, 1fr) 240px; grid-template-areas: "tools tools" "canvas side"; gap: 14px 16px; align-items: start; }
html body .editor-main > .tools { grid-area: tools; margin: 0; }
html body .editor-main > .canvas-wrap { grid-area: canvas; min-height: 560px; }
html body .editor-side { grid-area: side; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 86px; }
html body .editor-side > * { margin: 0 !important; }
html body .editor-side :is(#analyzeBtn, #exportBtn) { width: 100%; }
html body #analyzeBtn { background: transparent; color: var(--ft-ink) !important; border: 1px solid var(--ft-ink); }
html body #analyzeBtn:hover { background: var(--ft-wheat); }
html body .editor-side .conversion-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
html body .editor-side .conversion-tools .tool { font-size: .8rem; padding: 10px 8px; line-height: 1.25; }
html body .editor-side .status:empty { display: none; }
html body .editor-side .status { padding: 10px 12px; border: 1px solid var(--ft-line-strong); background: var(--ft-card); }
html body .editor-side .privacy { font-size: .76rem; }
html body .page-stage.drawing-mode { cursor: crosshair; touch-action: none; }
html body :is(.hero > .panel, .editor-panel, .editor-body > *, .editor-main > *, .editor-side, .canvas-wrap) { min-width: 0; }
@media (max-width: 900px) {
  html body .hero:has(.editor-panel) > .panel:first-child { grid-template-columns: 1fr; }
  html body .hero:has(.editor-panel) > .panel:first-child .meta { grid-column: 1; grid-row: auto; grid-template-columns: repeat(3, 1fr); }
  html body .editor-main { grid-template-columns: 1fr; grid-template-areas: "tools" "canvas" "side"; }
  html body .editor-side { position: static; }
}
@media (max-width: 680px) {
  html body .editor-body { grid-template-columns: 1fr; }
  html body .hero:has(.editor-panel) > .panel:first-child .meta { grid-template-columns: 1fr; }
  html body .container { padding-left: 14px; padding-right: 14px; }
  html body .topbar { margin-left: -14px; margin-right: -14px; padding: 12px 14px; }
  html body .topbar :is(.badge, .support-email), html body .brand-subtitle { display: none; }
  html body .panel { padding: 18px 16px; }
  html body .editor-panel .page-controls { display: flex; justify-content: space-between; }
  html body .thumbnails { flex-wrap: nowrap; }
  html body .thumbnails .thumb-empty { display: none; }
  .tool-box { padding: 16px; }
  .page { padding: 0 14px 30px; }
}
