@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
  /* Default scheme: Open sky. Other schemes override these on .studio-body (see studio-theme.js). */
  --ink:#1e293b;
  --muted:color-mix(in srgb,#1e293b 74%,#fff);
  --line:color-mix(in srgb,#0b78c9 6%,#e4e7ec);
  --surface:#fff;
  --canvas:color-mix(in srgb,#0b78c9 4%,#f6f7f9);
  --soft:color-mix(in srgb,#0b78c9 7%,#f1f3f6);
  --brand:#0b78c9;
  --brand-dark:color-mix(in srgb,#0b78c9 84%,#000);
  --brand-ink:color-mix(in srgb,#0b78c9 84%,#000);
  --brand-on:#fff;
  --brand-soft:color-mix(in srgb,#0b78c9 10%,#fff);
  --accent-border:color-mix(in srgb,#0b78c9 35%,#fff);
  --accent-hover:color-mix(in srgb,#0b78c9 4%,#fff);
  --accent-focus:color-mix(in srgb,#0b78c9 60%,#fff);
  --accent-shadow:color-mix(in srgb,#0b78c9 18%,transparent);
  --mark-shadow:color-mix(in srgb,#0b78c9 18%,#fff);
  --hero-bg:color-mix(in srgb,#0b78c9 12%,#fff);
  --hero-border:color-mix(in srgb,#0b78c9 22%,#fff);
  --hero-copy:color-mix(in srgb,#0b78c9 25%,#5b6472);
  --hero-ring:color-mix(in srgb,#0b78c9 11%,transparent);
  --stage-bg:color-mix(in srgb,#0b78c9 6%,#eef0f3);
  --stage-border:color-mix(in srgb,#0b78c9 10%,#dfe3e8);
  --deep:color-mix(in srgb,#0b78c9 30%,#0f172a);
  --deep-panel:color-mix(in srgb,#0b78c9 38%,#0f172a);
  --deep-border:color-mix(in srgb,#0b78c9 45%,#1e293b);
  --deep-chip:color-mix(in srgb,#0b78c9 42%,#0f172a);
  --email-start:color-mix(in srgb,#0b78c9 12%,#fff);
  --email-end:color-mix(in srgb,#0b78c9 4%,#fff);
  --email-feature:color-mix(in srgb,#0b78c9 20%,#fff);
  --email-feature-ink:color-mix(in srgb,#0b78c9 55%,#fff);
  --mint:#d9f5e8;
  --green:#197b59;
  --amber:#fff0d8;
  --shadow:0 16px 45px rgba(15,23,42,.06);
  --radius:16px;
  color-scheme:light
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth
}
body {
  margin:0;
  color:var(--ink);
  background:var(--canvas);
  font:14px/1.5 'DM Sans',Arial,sans-serif
}
h1,h2,h3,h4,p {
  margin:0
}
h1,h2,h3,h4 {
  font-family:Manrope,Arial,sans-serif;
  letter-spacing:-.035em
}
a {
  color:inherit;
  text-decoration:none
}
button,input,select,textarea {
  font:inherit
}
button {
  cursor:pointer
}
svg {
  width:18px;
  height:18px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:none
}
img {
  max-width:100%
}
.eyebrow {
  font-size:11px;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:var(--brand)
}
.muted {
  color:var(--muted)
}
.small {
  font-size:12px
}
.tiny {
  font-size:11px
}
.strong {
  font-weight:700
}
.row {
  display:flex;
  align-items:center;
  gap:10px
}
.between {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px
}
.stack {
  display:grid;
  gap:16px
}
.divider {
  height:1px;
  background:var(--line);
  margin:20px 0
}
.badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 9px;
  border-radius:7px;
  background:var(--brand-soft);
  color:var(--brand-dark);
  font-size:11px;
  font-weight:700
}
.badge.green {
  background:#e5f6ee;
  color:#167b58
}
.badge.amber {
  background:var(--amber);
  color:#9c6722
}
.badge.gray {
  background:#eff1f5;
  color:#687087
}
.dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:currentColor;
  display:inline-block
}
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:40px;
  padding:0 16px;
  border-radius:10px;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--ink);
  font-weight:700;
  white-space:nowrap;
  box-shadow:0 1px 2px rgba(25,28,55,.03)
}
.btn:hover,.nav-link:hover,.tool-link:hover {
  border-color:#c9c9e6;
  background:#fafaff
}
.btn svg {
  width:16px;
  height:16px
}
.btn.primary {
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
  box-shadow:0 5px 12px var(--accent-shadow)
}
.btn.primary:hover {
  background:var(--brand-dark)
}
.btn.dark {
  background:var(--ink);
  color:#fff;
  border-color:var(--ink)
}
.btn.small {
  min-height:32px;
  padding:0 11px;
  font-size:12px;
  border-radius:8px
}
.btn.ghost {
  border-color:transparent;
  background:transparent;
  box-shadow:none
}
.icon-button {
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--surface);
  color:var(--muted)
}
.icon-button:hover {
  color:var(--brand);
  border-color:#cac8f5
}
.field {
  display:grid;
  gap:7px
}
.field>span,.field>label {
  font-size:12px;
  font-weight:700;
  color:#3e4459
}
.input,.field input,.field select,.field textarea {
  width:100%;
  min-height:40px;
  border:1px solid #dfe2eb;
  border-radius:9px;
  background:#fff;
  padding:9px 12px;
  color:var(--ink);
  outline:none
}
.field textarea {
  min-height:85px;
  resize:vertical
}
.field input:focus,.field textarea:focus,.field select:focus {
  border-color:#9894ef;
  box-shadow:0 0 0 3px var(--brand-soft)
}
.field input[readonly] {
  background:#f8f9fc;
  color:#687086
}
.input-prefix {
  position:relative
}
.input-prefix svg {
  position:absolute;
  left:12px;
  top:12px;
  color:#8991a3
}
.input-prefix input {
  padding-left:38px
}
.card {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:0 2px 10px rgba(29,35,71,.025)
}
.pill {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:6px 10px;
  background:#f2f3f8;
  border-radius:999px;
  color:#5d6478;
  font-size:11px;
  font-weight:700
}
.section-title {
  font-size:19px;
  line-height:1.25
}
.mono {
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace
}
/* Public website */
.site-header {
  height:74px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.94);
  display:flex;
  align-items:center;
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(16px)
}
.site-header .wrap,.site-footer .wrap,.site-main {
  width:min(1180px,calc(100% - 48px));
  margin:auto
}
.site-header .wrap {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px
}
.brand {
  display:inline-flex;
  align-items:center;
  gap:10px;
  font:800 17px Manrope,sans-serif;
  letter-spacing:-.05em;
  white-space:nowrap
}
.brand-mark {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:10px;
  background:var(--brand);
  color:#fff;
  font:800 19px Manrope,sans-serif;
  box-shadow:4px 4px 0 #dddafe
}
.site-nav {
  display:flex;
  align-items:center;
  gap:27px;
  color:#555c70;
  font-weight:600;
  font-size:13px
}
.site-nav a:hover {
  color:var(--brand)
}
.header-actions {
  display:flex;
  gap:10px
}
.site-main {
  padding:56px 0 100px
}
.hero {
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:70px;
  min-height:480px;
  padding:35px 0 68px
}
.hero h1 {
  font-size:clamp(48px,5.4vw,76px);
  line-height:1.05;
  letter-spacing:-.075em;
  margin:18px 0 22px;
  max-width:660px
}
.hero h1 em {
  font-style:normal;
  color:var(--brand)
}
.hero p {
  font-size:17px;
  line-height:1.7;
  color:#626b81;
  max-width:550px
}
.hero .row {
  margin-top:30px
}
.hero-note {
  margin-top:28px!important;
  font-size:12px!important
}
.hero-art {
  position:relative;
  min-height:410px;
  border-radius:28px;
  background:linear-gradient(145deg,var(--hero-bg),var(--email-end) 55%,var(--soft));
  border:1px solid var(--hero-border);
  overflow:hidden;
  padding:30px
}
.hero-art:before {
  content:'';
  position:absolute;
  inset:auto -45px -100px auto;
  width:280px;
  height:280px;
  border-radius:50%;
  background:var(--accent-border);
  filter:blur(35px)
}
.mini-window {
  position:relative;
  background:white;
  border:1px solid #e4e6ef;
  border-radius:15px;
  box-shadow:0 20px 48px rgba(53,57,118,.14);
  overflow:hidden;
  transform:rotate(-2deg)
}
.mini-window .mini-top {
  height:39px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  padding:0 15px;
  gap:5px
}
.mini-top i {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#d6d9e4
}
.mini-body {
  display:grid;
  grid-template-columns:91px 1fr;
  min-height:280px
}
.mini-nav {
  background:#f7f7fb;
  border-right:1px solid var(--line);
  padding:17px 9px
}
.mini-nav div {
  height:9px;
  border-radius:5px;
  background:#e5e6f0;
  margin-bottom:16px
}
.mini-nav div:nth-child(2) {
  background:#c9c6ff
}
.mini-content {
  padding:20px
}
.mini-content h4 {
  font-size:18px
}
.mini-tools {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin-top:21px
}
.mini-tool {
  border:1px solid #e8e8f0;
  border-radius:10px;
  padding:12px;
  background:#fff;
  font-size:11px;
  font-weight:700
}
.mini-tool span {
  display:block;
  width:23px;
  height:23px;
  border-radius:7px;
  background:var(--brand-soft);
  margin-bottom:11px
}
.float-note {
  position:absolute;
  bottom:20px;
  left:3px;
  background:#fff;
  padding:13px 16px;
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:var(--shadow);
  font-size:12px;
  font-weight:700;
  transform:rotate(3deg)
}
.public-section {
  padding:56px 0
}
.public-section .section-head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  margin-bottom:24px
}
.section-head h2 {
  font-size:32px;
  line-height:1.2;
  margin-top:8px
}
.section-head p {
  color:var(--muted);
  margin-top:7px
}
.tool-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px
}
.tool-card {
  padding:23px;
  min-height:170px;
  display:flex;
  flex-direction:column;
  align-items:start;
  transition:transform .2s,box-shadow .2s
}
.tool-card:hover {
  transform:translateY(-3px);
  box-shadow:var(--shadow)
}
.tool-card .tool-icon {
  margin-bottom:17px
}
.tool-card h3 {
  font-size:15px
}
.tool-card p {
  color:var(--muted);
  font-size:12px;
  margin-top:6px;
  line-height:1.5
}
.tool-card .arrow {
  margin-top:auto;
  align-self:end;
  color:var(--brand);
  font-weight:700
}
.tool-icon {
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:var(--brand-soft);
  color:var(--brand)
}
.tool-icon.peach {
  background:#fff1e8;
  color:#d87043
}
.tool-icon.mint {
  background:#e6f6ee;
  color:#299369
}
.tool-icon.blue {
  background:#e9f0ff;
  color:#4575ca
}
.tool-icon svg {
  width:19px;
  height:19px
}
.category-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px
}
.category-card {
  padding:20px;
  min-height:136px;
  display:flex;
  flex-direction:column;
  justify-content:space-between
}
.category-card h3 {
  font-size:15px
}
.category-card p {
  font-size:12px;
  color:var(--muted)
}
.workflow-strip {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px
}
.workflow {
  padding:21px
}
.workflow h3 {
  font-size:15px;
  margin-bottom:14px
}
.workflow .steps {
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap
}
.workflow .steps span {
  font-size:11px;
  font-weight:700;
  padding:6px 9px;
  border-radius:7px;
  background:#f4f5fa
}
.workflow .steps b {
  color:var(--brand)
}
.compare-band {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  padding:31px;
  background:#ebeaff;
  border-radius:20px;
  align-items:center
}
.compare-band h2 {
  font-size:27px
}
.compare-band p {
  color:#666887;
  margin-top:8px
}
.compare-band .row {
  justify-content:end
}
.guide-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px
}
.guide-card {
  overflow:hidden
}
.guide-art {
  height:140px;
  background:radial-gradient(circle at 65% 40%,#d5d0ff 0 20%,transparent 21%),linear-gradient(130deg,#e7e5ff,#f9f9ff);
  display:grid;
  place-items:center;
  color:#7f79dc;
  font:800 66px Manrope
}
.guide-card:nth-child(2) .guide-art {
  background:linear-gradient(130deg,#e1f4eb,#f9fffb);
  color:#66a989
}
.guide-card:nth-child(3) .guide-art {
  background:linear-gradient(130deg,#fff0e4,#fffaf6);
  color:#dca376
}
.guide-card .body {
  padding:19px
}
.guide-card h3 {
  font-size:15px;
  margin:7px 0
}
.guide-card p {
  font-size:12px;
  color:var(--muted)
}
.site-footer {
  border-top:1px solid var(--line);
  background:#fff;
  padding:42px 0
}
.site-footer .wrap {
  display:flex;
  justify-content:space-between;
  gap:30px
}
.site-footer p {
  color:var(--muted);
  font-size:12px;
  margin-top:9px
}
.footer-links {
  display:flex;
  gap:22px;
  color:#667084;
  font-size:12px
}
.breadcrumbs {
  font-size:12px;
  color:#4b5565;
  display:flex;
  gap:9px;
  align-items:center;
  margin-bottom:26px
}
.breadcrumbs a {
  color:#4b5565;
  text-decoration:underline;
  text-underline-offset:2px
}
.breadcrumbs a:hover {
  color:var(--brand)
}
.page-heading {
  max-width:720px;
  margin-bottom:34px
}
.page-heading h1 {
  font-size:clamp(38px,4vw,56px);
  line-height:1.12;
  margin:10px 0 16px
}
.page-heading p {
  font-size:16px;
  color:var(--muted);
  line-height:1.65
}
.landing-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:24px;
  align-items:start
}
.landing-content {
  display:grid;
  gap:20px
}
.landing-box {
  padding:25px
}
.landing-box h2 {
  font-size:20px;
  margin-bottom:12px
}
.landing-box p {
  color:#626c80;
  line-height:1.75
}
.landing-box ul {
  padding-left:20px;
  color:#626c80;
  line-height:1.85
}
.preview-url {
  padding:16px;
  background:#f5f6fa;
  border:1px dashed #cbcedd;
  border-radius:10px;
  word-break:break-all;
  color:#49567d;
  font:12px/1.7 ui-monospace,monospace
}
.article-layout {
  display:grid;
  grid-template-columns:minmax(0,720px) 260px;
  gap:100px;
  align-items:start
}
.article-body {
  font-size:16px;
  line-height:1.85;
  color:#50586a
}
.article-body h2 {
  font-size:28px;
  margin:36px 0 12px;
  color:var(--ink)
}
.article-body h3 {
  font-size:20px;
  margin:26px 0 10px;
  color:var(--ink)
}
.article-body p,.article-body ul {
  margin:0 0 18px
}
.article-body ul {
  padding-left:20px
}
.article-body .callout {
  border-left:3px solid var(--brand);
  padding:18px 22px;
  background:#f1f0ff;
  border-radius:0 10px 10px 0;
  margin:25px 0
}
.toc {
  padding:23px;
  position:sticky;
  top:96px
}
.toc h3 {
  font-size:14px;
  margin-bottom:12px
}
.toc a {
  display:block;
  color:#687084;
  font-size:12px;
  padding:7px 0
}
.toc a:hover {
  color:var(--brand)
}
/* Studio shell */
.studio-body {
  /* Studio default scheme: Graphite. The public site keeps the :root scheme. */
  --ink:#1e293b;
  --muted:color-mix(in srgb,#1e293b 62%,#fff);
  --line:color-mix(in srgb,#334155 6%,#e4e7ec);
  --canvas:color-mix(in srgb,#334155 4%,#f6f7f9);
  --soft:color-mix(in srgb,#334155 7%,#f1f3f6);
  --brand:#334155;
  --brand-dark:color-mix(in srgb,#334155 84%,#000);
  --brand-ink:color-mix(in srgb,#334155 84%,#000);
  --brand-soft:color-mix(in srgb,#334155 10%,#fff);
  --accent-border:color-mix(in srgb,#334155 35%,#fff);
  --accent-hover:color-mix(in srgb,#334155 4%,#fff);
  --accent-focus:#64748b;
  --accent-shadow:color-mix(in srgb,#334155 18%,transparent);
  --mark-shadow:color-mix(in srgb,#334155 18%,#fff);
  --hero-bg:color-mix(in srgb,#334155 12%,#fff);
  --hero-border:color-mix(in srgb,#334155 22%,#fff);
  --hero-copy:color-mix(in srgb,#334155 25%,#5b6472);
  --hero-ring:color-mix(in srgb,#334155 11%,transparent);
  --stage-bg:color-mix(in srgb,#334155 6%,#eef0f3);
  --stage-border:color-mix(in srgb,#334155 10%,#dfe3e8);
  --deep:color-mix(in srgb,#334155 30%,#0f172a);
  --deep-panel:color-mix(in srgb,#334155 38%,#0f172a);
  --deep-border:color-mix(in srgb,#334155 45%,#1e293b);
  --deep-chip:color-mix(in srgb,#334155 42%,#0f172a);
  --email-start:color-mix(in srgb,#334155 12%,#fff);
  --email-end:color-mix(in srgb,#334155 4%,#fff);
  --email-feature:color-mix(in srgb,#334155 20%,#fff);
  --email-feature-ink:color-mix(in srgb,#334155 55%,#fff);
  background:var(--canvas)
}
.studio-body .eyebrow,.studio-body .tool-tabs .active,.studio-body .workflow-home .steps b {
  color:var(--brand-ink)
}
.studio-body .rail a.active {
  color:var(--brand-ink)
}
.studio-body .badge:not(.green):not(.amber):not(.gray),.studio-body .section-list a.active {
  color:var(--brand-ink)
}
.studio-body .btn.primary,.studio-body .operation .tick {
  color:var(--brand-on)
}
.studio-body .brand-mark {
  color:var(--brand-on);
  box-shadow:4px 4px 0 var(--mark-shadow)
}
.studio-body .btn:hover,.studio-body .tool-link:hover {
  border-color:var(--accent-border);
  background:var(--accent-hover)
}
.studio-body .btn.primary:hover {
  background:var(--brand-dark);
  color:var(--brand-on)
}
.studio-body .btn.primary {
  box-shadow:0 5px 12px var(--accent-shadow)
}
.studio-body .icon-button:hover {
  border-color:var(--accent-border)
}
.studio-body .field input:focus,.studio-body .field textarea:focus,.studio-body .field select:focus {
  border-color:var(--accent-focus);
  box-shadow:0 0 0 3px var(--brand-soft)
}
.studio-shell {
  display:grid;
  grid-template-columns:70px 224px minmax(0,1fr);
  grid-template-rows:66px minmax(calc(100vh - 66px),auto);
  min-height:100vh
}
.studio-top {
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:0 24px;
  position:sticky;
  top:0;
  z-index:30
}
.studio-top .brand {
  font-size:16px
}
.studio-top .brand-mark {
  width:29px;
  height:29px;
  font-size:17px
}
.studio-label {
  margin-left:9px;
  padding-left:14px;
  border-left:1px solid var(--line);
  color:#868da0;
  font-weight:700;
  font-size:12px
}
.top-search {
  width:min(350px,35vw);
  height:35px;
  background:#f7f8fb;
  border:1px solid var(--line);
  border-radius:9px;
  padding:0 12px;
  display:flex;
  align-items:center;
  gap:9px;
  color:#8a91a1;
  font-size:12px
}
.top-search kbd {
  margin-left:auto;
  background:#fff;
  border:1px solid var(--line);
  border-radius:5px;
  padding:1px 5px;
  color:#8990a1;
  font:10px 'DM Sans'
}
.top-actions {
  display:flex;
  align-items:center;
  gap:9px
}
.theme-picker {
  position:relative;
  flex:none
}
.theme-trigger {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:36px;
  padding:0 11px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--surface);
  color:var(--ink);
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  list-style:none
}
.theme-trigger::-webkit-details-marker {
  display:none
}
.theme-trigger:hover,.theme-picker[open] .theme-trigger {
  border-color:var(--accent-border);
  background:var(--accent-hover)
}
.theme-trigger:focus-visible,.theme-option:focus-visible {
  outline:2px solid var(--brand-ink);
  outline-offset:2px
}
.theme-trigger svg {
  width:15px;
  height:15px;
  color:var(--brand-ink)
}
.theme-menu {
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:264px;
  max-height:70vh;
  overflow-y:auto;
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
  box-shadow:0 18px 45px rgba(31,42,69,.16);
  z-index:50
}
.theme-menu-title {
  display:block;
  padding:4px 5px 9px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.02em
}
.theme-option {
  display:flex;
  width:100%;
  align-items:center;
  gap:10px;
  padding:8px;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:var(--ink);
  text-align:left
}
.theme-option:hover {
  background:var(--soft)
}
.theme-option[aria-pressed="true"] {
  border-color:var(--accent-border);
  background:var(--brand-soft)
}
.theme-swatch {
  width:43px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:7px;
  border:1px solid rgba(0,0,0,.06);
  flex:none
}
.theme-swatch:after {
  content:'';
  width:16px;
  height:16px;
  border-radius:5px;
  background:var(--swatch-strong)
}
.theme-option-name {
  display:block;
  font-size:12px;
  font-weight:800
}
.theme-option-source {
  display:block;
  color:var(--muted);
  font-size:10px
}
.top-actions .btn {
  font-size:12px
}
.rail {
  background:#fff;
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  padding:20px 0;
  position:sticky;
  top:66px;
  height:calc(100vh - 66px)
}
.rail a {
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:#8991a3;
  position:relative
}
.rail a:hover {
  background:var(--accent-hover);
  color:var(--brand)
}
.rail a.active {
  background:var(--brand-soft);
  color:var(--brand)
}
.rail a.active:before {
  content:'';
  position:absolute;
  left:-14px;
  width:3px;
  height:22px;
  background:var(--brand);
  border-radius:2px
}
.rail .rail-spacer {
  flex:1
}
.rail .rail-sep {
  height:1px;
  width:28px;
  background:var(--line);
  margin:6px 0
}
.rail a svg {
  width:19px;
  height:19px
}
.tool-nav {
  background:#fff;
  border-right:1px solid var(--line);
  padding:23px 12px;
  position:sticky;
  top:66px;
  height:calc(100vh - 66px);
  overflow:auto
}
.tool-nav h2 {
  font-size:17px;
  margin:0 8px
}
.tool-nav .description {
  color:#8a91a2;
  font-size:11px;
  line-height:1.5;
  margin:5px 8px 20px
}
.tool-nav .nav-search {
  display:flex;
  gap:8px;
  align-items:center;
  background:#f8f9fc;
  border:1px solid var(--line);
  padding:8px 10px;
  border-radius:8px;
  margin-bottom:20px;
  color:#a0a5b4;
  font-size:11px
}
.tool-nav .nav-search svg {
  width:14px;
  height:14px
}
.nav-group {
  margin:20px 0
}
.nav-group h3 {
  font-size:10px;
  letter-spacing:.13em;
  color:#a1a7b5;
  text-transform:uppercase;
  padding:0 10px;
  margin-bottom:8px
}
.tool-link {
  min-height:36px;
  display:flex;
  align-items:center;
  gap:9px;
  color:#656e83;
  font-size:12px;
  font-weight:600;
  padding:0 10px;
  border-radius:8px;
  border:1px solid transparent
}
.tool-link svg {
  width:15px;
  height:15px
}
.tool-link.active {
  background:var(--brand-soft);
  color:var(--brand-ink);
  font-weight:800
}
.tool-link span:last-child {
  margin-left:auto
}
.nav-footer {
  font-size:11px;
  color:#a0a6b4;
  margin:25px 8px
}
.workspace {
  min-width:0;
  padding:27px 34px 60px;
  max-width:100%;
  overflow:hidden
}
.workspace.wide {
  padding:24px 28px 50px
}
.workspace-head {
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:22px
}
.workspace-head h1 {
  font-size:27px;
  line-height:1.2;
  margin:4px 0 6px
}
.workspace-head p {
  color:var(--muted);
  font-size:12px
}
.workspace-head .actions {
  display:flex;
  gap:8px;
  align-items:center
}
.workspace-head .eyebrow {
  font-size:10px
}
.subtle-note {
  font-size:11px;
  color:#98a0af
}
.static-note {
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#9b6c28;
  background:#fff6e8;
  border:1px solid #f4dfc4;
  padding:6px 9px;
  border-radius:7px;
  font-size:10px;
  font-weight:700
}
.workspace h2.block-title {
  font-size:16px;
  margin-bottom:13px
}
.studio-home {
  max-width:1240px
}
.home-welcome {
  background:var(--hero-bg);
  border:1px solid var(--hero-border);
  border-radius:17px;
  padding:29px 34px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:28px;
  overflow:hidden;
  position:relative
}
.home-welcome:after {
  content:'';
  width:240px;
  height:240px;
  border:34px solid var(--hero-ring);
  border-radius:50%;
  position:absolute;
  right:25%;
  top:-118px
}
.home-welcome h1 {
  font-size:29px;
  margin:7px 0
}
.home-welcome p {
  color:var(--hero-copy);
  font-size:13px
}
.home-welcome .btn {
  position:relative;
  z-index:1
}
.quick-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:11px
}
.quick-item {
  padding:18px;
  display:flex;
  align-items:center;
  gap:13px;
  min-height:83px
}
.quick-item:hover {
  border-color:var(--accent-border)
}
.quick-item h3 {
  font-size:13px
}
.quick-item p {
  font-size:11px;
  color:var(--muted);
  margin-top:3px
}
.quick-item .chev {
  margin-left:auto;
  color:#a2a7b5
}
.home-columns {
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:17px;
  margin-top:27px
}
.home-panel {
  padding:20px
}
.recent-row {
  display:flex;
  align-items:center;
  gap:11px;
  padding:11px 0;
  border-top:1px solid #eef0f5
}
.recent-row:first-of-type {
  border-top:0
}
.recent-row h3 {
  font-size:12px
}
.recent-row p {
  font-size:11px;
  color:var(--muted)
}
.recent-row .badge {
  margin-left:auto
}
.category-list {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:9px
}
.category-item {
  padding:13px;
  border:1px solid var(--line);
  border-radius:10px;
  font-size:12px;
  font-weight:700;
  background:#fff
}
.category-item span {
  color:var(--muted);
  font-weight:500;
  display:block;
  font-size:10px;
  margin-top:4px
}
.workflow-home {
  margin-top:25px;
  padding:20px
}
.workflow-home .steps {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:13px
}
.workflow-home .steps span {
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  font-size:11px;
  font-weight:700
}
.workflow-home .steps b {
  color:var(--brand)
}
/* Tool workspaces */
.tool-tabs {
  display:flex;
  gap:22px;
  border-bottom:1px solid var(--line);
  margin-bottom:20px;
  font-size:12px;
  font-weight:700;
  color:#9299a8
}
.tool-tabs span {
  padding:0 1px 12px
}
.tool-tabs .active {
  color:var(--brand);
  border-bottom:2px solid var(--brand)
}
.editor-split {
  display:grid;
  grid-template-columns:minmax(390px,.95fr) minmax(420px,1.05fr);
  gap:16px;
  align-items:start
}
.editor-panel,.preview-panel {
  min-width:0
}
.panel-pad {
  padding:21px
}
.panel-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:19px
}
.panel-header h2 {
  font-size:15px
}
.panel-header p {
  color:var(--muted);
  font-size:11px;
  margin-top:3px
}
.form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px
}
.form-grid.one {
  grid-template-columns:1fr
}
.form-grid.three {
  grid-template-columns:repeat(3,minmax(0,1fr))
}
.span-2 {
  grid-column:1/-1
}
.line-table {
  width:100%;
  border-collapse:collapse;
  font-size:11px
}
.line-table th {
  text-align:left;
  color:#8b92a2;
  font-weight:700;
  background:#f7f8fb;
  padding:9px 8px
}
.line-table td {
  padding:7px 5px;
  border-bottom:1px solid #edf0f4
}
.line-table input {
  width:100%;
  min-width:0;
  border:1px solid #e3e5ee;
  border-radius:7px;
  padding:7px;
  color:#465066;
  background:#fff
}
.line-table .qty {
  width:48px
}
.line-table .money {
  width:73px
}
.line-table tfoot td {
  border:0
}
.field-help {
  font-size:10px;
  color:#a2a8b6
}
.toggle-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:12px;
  padding:8px 0
}
.toggle {
  width:28px;
  height:16px;
  border-radius:20px;
  background:#dadde8;
  position:relative
}
.toggle:after {
  content:'';
  position:absolute;
  width:12px;
  height:12px;
  background:#fff;
  border-radius:50%;
  top:2px;
  left:2px
}
.toggle.on {
  background:var(--brand)
}
.toggle.on:after {
  left:14px
}
.preview-panel {
  background:var(--stage-bg);
  border:1px solid var(--stage-border);
  border-radius:15px;
  min-height:600px;
  padding:16px
}
.preview-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
  color:#697186;
  font-size:11px;
  font-weight:700
}
.paper {
  width:min(100%,520px);
  min-height:650px;
  background:white;
  box-shadow:0 13px 30px rgba(45,50,75,.12);
  margin:auto;
  padding:39px;
  color:#333a4a
}
.paper h2 {
  font-size:30px
}
.paper p {
  font-size:10px;
  color:#777f90;
  line-height:1.6
}
.paper-top {
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:20px
}
.paper-logo {
  display:flex;
  gap:8px;
  align-items:center;
  font-size:11px;
  font-weight:800
}
.paper-logo span {
  width:22px;
  height:22px;
  border-radius:6px;
  background:var(--brand);
  display:inline-block
}
.paper hr {
  border:0;
  border-top:1px solid #e5e7ee;
  margin:23px 0
}
.paper-addresses {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin:34px 0
}
.paper-addresses strong {
  font-size:10px
}
.paper-table {
  width:100%;
  border-collapse:collapse;
  font-size:10px
}
.paper-table th {
  text-align:left;
  background:#f2f5fa;
  padding:9px
}
.paper-table td {
  padding:10px 9px;
  border-bottom:1px solid #e9eaf0
}
.paper-total {
  width:45%;
  margin:25px 0 0 auto;
  font-size:11px
}
.paper-total div {
  display:flex;
  justify-content:space-between;
  padding:7px 0
}
.paper-total .grand {
  border-top:2px solid var(--ink);
  font-weight:800;
  font-size:13px
}
.section-list {
  display:grid;
  gap:4px
}
.section-list a {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  border-radius:8px;
  font-size:12px;
  color:#697186
}
.section-list a.active {
  background:var(--brand-soft);
  color:var(--brand-dark);
  font-weight:800
}
.proposal-grid {
  display:grid;
  grid-template-columns:170px minmax(350px,1fr) minmax(320px,.9fr);
  gap:14px
}
.proposal-grid .preview-panel {
  min-height:640px
}
.proposal-paper {
  padding:0;
  overflow:hidden
}
.proposal-cover {
  min-height:235px;
  background:var(--deep);
  color:white;
  padding:35px;
  display:flex;
  flex-direction:column;
  justify-content:space-between
}
.proposal-cover h2 {
  font-size:27px;
  max-width:300px
}
.proposal-paper .proposal-copy {
  padding:30px 36px
}
.proposal-copy h3 {
  font-size:15px;
  margin:20px 0 7px
}
.proposal-copy p {
  font-size:10px
}
.edit-surface {
  border:1px solid #e5e7ef;
  padding:17px;
  border-radius:9px;
  background:#fff;
  line-height:1.7;
  color:#5d6578;
  font-size:12px;
  min-height:80px
}
.edit-surface h3 {
  font-size:14px;
  color:var(--ink);
  margin-bottom:5px
}
.format-bar {
  display:flex;
  gap:4px;
  align-items:center;
  flex-wrap:wrap;
  padding:9px;
  border-bottom:1px solid var(--line)
}
.format-bar span {
  min-width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:5px;
  color:#5d657a;
  font-weight:700;
  font-size:12px
}
.format-bar span.active {
  background:var(--brand-soft);
  color:var(--brand)
}
.rich-grid {
  display:grid;
  grid-template-columns:minmax(400px,1fr) 250px minmax(320px,.8fr);
  gap:14px;
  align-items:start
}
.rich-canvas {
  padding:27px;
  min-height:530px;
  line-height:1.8;
  color:#596173
}
.rich-canvas h2 {
  font-size:24px;
  margin-bottom:20px
}
.rich-canvas h3 {
  font-size:16px;
  margin:25px 0 8px
}
.settings-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid #eef0f4;
  padding:10px 0;
  font-size:11px
}
.email-grid {
  display:grid;
  grid-template-columns:180px minmax(380px,1fr) 230px;
  gap:14px;
  align-items:start
}
.block-library {
  padding:16px
}
.block-choice {
  border:1px solid var(--line);
  padding:12px;
  border-radius:8px;
  margin-top:8px;
  font-size:12px;
  font-weight:700;
  display:flex;
  gap:9px;
  align-items:center;
  color:#677085
}
.block-choice svg {
  width:15px;
  height:15px
}
.email-canvas-wrap {
  background:var(--stage-bg);
  padding:24px;
  border:1px solid var(--line);
  border-radius:14px;
  min-height:680px
}
.email-canvas {
  max-width:530px;
  margin:auto;
  background:#fff;
  min-height:620px;
  box-shadow:0 10px 26px rgba(30,38,72,.08)
}
.email-brand {
  padding:25px 30px;
  color:var(--brand-ink);
  font-weight:800;
  border-bottom:1px solid var(--line)
}
.email-hero {
  padding:48px 36px 35px;
  background:linear-gradient(135deg,var(--email-start),var(--email-end))
}
.email-hero .eyebrow {
  font-size:10px
}
.email-hero h2 {
  font-size:29px;
  line-height:1.2;
  margin:11px 0
}
.email-hero p {
  font-size:12px;
  color:#6b6d85;
  line-height:1.7
}
.email-hero .btn {
  margin-top:20px
}
.email-content {
  padding:34px 36px
}
.email-content h3 {
  font-size:16px;
  margin:12px 0
}
.email-content p {
  font-size:11px;
  color:#6f778a;
  line-height:1.7
}
.email-feature {
  height:120px;
  background:linear-gradient(135deg,var(--email-end),var(--email-feature));
  border-radius:9px;
  display:grid;
  place-items:center;
  color:var(--email-feature-ink);
  font-size:12px
}
.email-footer {
  padding:18px;
  text-align:center;
  border-top:1px solid var(--line);
  font-size:10px;
  color:#9ca2b0
}
.upload-zone {
  border:1px dashed var(--accent-border);
  border-radius:13px;
  background:var(--accent-hover);
  min-height:110px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  color:#5b6578
}
.upload-zone strong {
  color:#454c62
}
.data-summary {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px
}
.stat-card {
  padding:16px
}
.stat-card span {
  font-size:11px;
  color:#5f6878
}
.stat-card strong {
  display:block;
  font:800 24px Manrope;
  margin-top:8px
}
.data-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 240px;
  gap:15px
}
.data-table {
  width:100%;
  border-collapse:collapse;
  font-size:11px;
  white-space:nowrap
}
.data-table th {
  text-align:left;
  background:#f7f8fb;
  color:#5f6878;
  padding:12px 14px
}
.data-table td {
  border-top:1px solid #eceef4;
  padding:12px 14px;
  color:#5b6478
}
.data-table tr.duplicate {
  background:#fff9ee
}
.data-table tr.clean {
  background:#f7fcf9
}
.data-toolbar {
  padding:15px;
  display:flex;
  gap:7px;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line)
}
.data-scroll {
  overflow:auto
}
.operation {
  display:flex;
  align-items:start;
  gap:9px;
  padding:12px 0;
  border-top:1px solid var(--line);
  font-size:11px
}
.operation:first-of-type {
  border-top:0
}
.operation .tick {
  width:16px;
  height:16px;
  border-radius:5px;
  background:var(--brand);
  color:white;
  display:grid;
  place-items:center;
  font-size:10px;
  flex:none
}
.utm-layout {
  display:grid;
  grid-template-columns:minmax(390px,1fr) minmax(330px,.8fr);
  gap:16px;
  align-items:start;
  max-width:1100px
}
.utm-result {
  padding:25px;
  background:var(--deep);
  color:white;
  border-radius:16px;
  min-height:300px;
  position:relative;
  overflow:hidden
}
.utm-result:after {
  content:'';
  position:absolute;
  width:220px;
  height:220px;
  border:45px solid rgba(105,151,255,.17);
  border-radius:50%;
  right:-90px;
  bottom:-100px
}
.utm-result h2 {
  font-size:18px;
  margin-bottom:7px
}
.utm-result p {
  font-size:11px;
  color:#c6d5f1
}
.utm-result .url {
  margin:29px 0 18px;
  word-break:break-all;
  padding:15px;
  background:var(--deep-panel);
  border:1px solid var(--deep-border);
  border-radius:9px;
  font:11px/1.7 ui-monospace,monospace;
  color:#e2ebff
}
.utm-result .btn {
  position:relative;
  z-index:1
}
.result-breakdown {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:28px
}
.result-breakdown span {
  padding:5px 8px;
  background:var(--deep-chip);
  border-radius:5px;
  font-size:10px;
  color:#d3e0f8
}
.faq-item {
  padding:15px 0;
  border-top:1px solid var(--line)
}
.faq-item h3 {
  font-size:14px
}
.faq-item p {
  font-size:12px;
  color:var(--muted);
  margin-top:6px
}
/* Responsive and optional dark preview */
@media(max-width:1200px) {
  .studio-shell {
    grid-template-columns:64px 190px minmax(0,1fr)
  }
  .workspace {
    padding:22px
  }
  .editor-split,.utm-layout {
    grid-template-columns:1fr
  }
  .proposal-grid {
    grid-template-columns:145px 1fr
  }
  .proposal-grid .preview-panel {
    grid-column:2
  }
  .rich-grid {
    grid-template-columns:1fr 220px
  }
  .rich-grid .preview-panel {
    grid-column:1/-1
  }
  .email-grid {
    grid-template-columns:150px 1fr
  }
  .email-grid>.card:last-child {
    grid-column:2
  }
  .paper {
    width:min(100%,610px)
  }
}
@media(max-width:800px) {
  .site-header .wrap,.site-footer .wrap,.site-main {
    width:min(100% - 32px,1180px)
  }
  .site-nav {
    display:none
  }
  .header-actions .btn:not(.primary) {
    display:none
  }
  .hero {
    grid-template-columns:1fr;
    gap:20px;
    padding-top:15px
  }
  .hero-art {
    min-height:350px
  }
  .tool-grid,.guide-grid {
    grid-template-columns:repeat(2,1fr)
  }
  .category-grid {
    grid-template-columns:repeat(2,1fr)
  }
  .workflow-strip {
    grid-template-columns:1fr
  }
  .compare-band,.article-layout,.landing-grid {
    grid-template-columns:1fr
  }
  .article-layout {
    gap:25px
  }
  .toc {
    position:static
  }
  .studio-shell {
    grid-template-columns:1fr;
    grid-template-rows:60px auto auto 1fr
  }
  .studio-top {
    grid-column:1;
    grid-row:1;
    padding:0 14px
  }
  .studio-label,.top-search,.top-actions .btn {
    display:none
  }
  .rail {
    grid-row:2;
    grid-column:1;
    position:static;
    height:auto;
    flex-direction:row;
    overflow:auto;
    padding:6px 12px;
    justify-content:start;
    border-right:0;
    border-bottom:1px solid var(--line)
  }
  .rail a {
    width:35px;
    height:35px;
    flex:none
  }
  .rail a.active:before,.rail .rail-spacer,.rail .rail-sep {
    display:none
  }
  .tool-nav {
    grid-row:3;
    grid-column:1;
    position:static;
    height:auto;
    padding:8px 15px;
    overflow:auto;
    border-right:0;
    border-bottom:1px solid var(--line)
  }
  .tool-nav h2,.tool-nav .description,.tool-nav .nav-search,.tool-nav .nav-footer {
    display:none
  }
  .tool-nav .nav-group {
    display:flex;
    align-items:center;
    gap:3px;
    margin:0;
    min-width:max-content
  }
  .tool-nav .nav-group h3 {
    display:none
  }
  .tool-link {
    white-space:nowrap
  }
  .workspace {
    grid-row:4;
    grid-column:1;
    padding:20px 15px 45px
  }
  .workspace.wide {
    padding:20px 15px
  }
  .proposal-grid,.rich-grid,.email-grid,.data-layout {
    grid-template-columns:1fr
  }
  .proposal-grid .preview-panel,.rich-grid .preview-panel,.email-grid>.card:last-child {
    grid-column:auto
  }
  .proposal-grid>.card:first-child .section-list {
    display:flex;
    overflow:auto
  }
  .home-columns {
    grid-template-columns:1fr
  }
}
@media(max-width:560px) {
  .site-main {
    padding-top:30px
  }
  .hero h1 {
    font-size:44px
  }
  .hero-art {
    min-height:300px;
    padding:15px
  }
  .mini-body {
    min-height:240px
  }
  .mini-content {
    padding:12px
  }
  .tool-grid,.guide-grid,.category-grid,.quick-grid,.data-summary {
    grid-template-columns:1fr
  }
  .public-section {
    padding:38px 0
  }
  .section-head h2 {
    font-size:26px
  }
  .section-head .btn {
    display:none
  }
  .site-footer .wrap {
    display:block
  }
  .footer-links {
    margin-top:20px;
    flex-wrap:wrap
  }
  .workspace-head {
    display:block
  }
  .workspace-head .actions {
    margin-top:14px;
    flex-wrap:wrap
  }
  .home-welcome {
    padding:22px;
    display:block
  }
  .home-welcome .btn {
    margin-top:18px
  }
  .form-grid,.form-grid.three {
    grid-template-columns:1fr
  }
  .editor-split,.utm-layout {
    grid-template-columns:minmax(0,1fr)
  }
  .editor-split {
    gap:12px
  }
  .panel-pad {
    padding:16px
  }
  .preview-panel {
    padding:9px;
    overflow:auto
  }
  .paper {
    min-width:350px;
    padding:24px;
    min-height:550px
  }
  .data-summary {
    grid-template-columns:repeat(2,1fr)
  }
  .email-canvas-wrap {
    padding:10px
  }
  .article-body {
    font-size:14px
  }
  .page-heading h1 {
    font-size:37px
  }
}
/* Optional dark preview class for future theme wiring */
  .theme-dark {
    --ink:#eef0fb;
    --muted:#a6acc1;
    --line:#34394b;
    --surface:#232736;
    --canvas:#171a25;
    --soft:#292e40;
    --brand:#8eacff;
    --brand-dark:#b4c8ff;
    --brand-soft:#2d3f65;
    --shadow:0 16px 45px rgba(0,0,0,.2);
    color-scheme:dark
  }
  .theme-dark .studio-top,.theme-dark .rail,.theme-dark .tool-nav,.theme-dark .card,.theme-dark .site-header,.theme-dark .site-footer {
    background:var(--surface)
  }
  .theme-dark .field input,.theme-dark .field select,.theme-dark .field textarea,.theme-dark .btn,.theme-dark .icon-button,.theme-dark .category-item,.theme-dark .workflow-home .steps span {
    background:#2b3041;
    color:var(--ink);
    border-color:var(--line)
  }
  .theme-dark .preview-panel,.theme-dark .email-canvas-wrap {
    background:#1d2130
  }
  .theme-dark .paper,.theme-dark .email-canvas {
    background:#fff;
    color:#303545
  }
  .theme-dark .home-welcome {
    background:#203758;
    border-color:#39577c
  }
  .theme-dark .tool-link.active {
    background:#2d3f65
  }
  .theme-dark .nav-search,.theme-dark .top-search {
    background:#292e40
  }
  .theme-dark .line-table th,.theme-dark .data-table th {
    background:#292e40
  }
  .theme-dark .line-table input {
    background:#2b3041;
    color:var(--ink);
    border-color:var(--line)
  }
/* Labeled category navigation */
.studio-shell {
  grid-template-columns:112px 224px minmax(0,1fr)
}
.rail {
  align-items:stretch;
  padding:18px 7px;
  gap:5px
}
.rail a,.rail .rail-placeholder {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  width:auto;
  height:67px;
  padding:6px 4px;
  border-radius:9px;
  font-size:10px;
  font-weight:700;
  text-align:center;
  white-space:nowrap
}
.rail a svg,.rail .rail-placeholder svg {
  width:20px;
  height:20px
}
.rail .rail-placeholder {
  color:#abb1bf;
  cursor:default
}
.rail .rail-label {
  overflow:hidden;
  text-overflow:ellipsis
}
.rail a.active:before {
  left:-7px
}
.tool-link.planned {
  color:#858d9f;
  cursor:default
}
.home-welcome h2 {
  font-size:29px;
  margin:7px 0
}
@media(max-width:1200px) {
  .studio-shell {
    grid-template-columns:106px 190px minmax(0,1fr)
  }
}
@media(max-width:800px) {
  .studio-shell {
    grid-template-columns:1fr
  }
  .rail {
    align-items:center;
    padding:6px 12px;
    gap:4px
  }
  .rail a,.rail .rail-placeholder {
    flex-direction:row;
    width:auto;
    height:35px;
    flex:none;
    padding:0 9px;
    gap:6px
  }
  .rail .rail-placeholder {
    display:flex
  }
}
.field-help.error {
  color:#b42318
}
.field input[type="color"] {
  height:40px;
  padding:3px;
  cursor:pointer
}
a.btn[aria-disabled="true"] {
  opacity:.5;
  pointer-events:none
}
.toast {
  position:fixed;
  left:50%;
  bottom:28px;
  transform:translate(-50%,16px);
  padding:10px 16px;
  border-radius:10px;
  background:var(--deep);
  color:#fff;
  font-size:13px;
  font-weight:600;
  box-shadow:0 12px 32px rgba(15,23,42,.25);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s,transform .18s;
  z-index:100
}
.toast.show {
  opacity:1;
  transform:translate(-50%,0)
}
.input-affix {
  display:flex;
  align-items:center;
  gap:0;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  overflow:hidden
}
.input-affix:focus-within {
  border-color:var(--accent-focus);
  box-shadow:0 0 0 3px var(--accent-shadow)
}
.input-affix input {
  border:0!important;
  box-shadow:none!important;
  flex:1;
  min-width:0;
  background:transparent
}
.input-affix .affix {
  padding:0 11px;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
  white-space:nowrap
}
.input-affix .affix:first-child {
  padding-right:0
}
.input-affix .affix.unit {
  font-weight:500;
  font-size:11px
}
.field input.invalid {
  color:#b42318
}
.currency-pick {
  display:flex;
  align-items:center;
  gap:8px
}
.currency-pick select {
  min-height:32px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  color:var(--ink);
  font-size:12px
}
.calc-headline {
  font-size:32px;
  margin:10px 0 6px;
  letter-spacing:-.04em
}
.calc-row {
  padding:8px 0;
  border-bottom:1px solid var(--line)
}
.calc-row:last-of-type {
  border-bottom:0
}
.small.error {
  color:#b42318
}
button.top-search {
  font:inherit;
  text-align:left;
  cursor:pointer;
  color:var(--muted)
}
.nav-search {
  display:flex;
  align-items:center;
  gap:8px
}
.nav-search input {
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--ink);
  font-size:12px
}
.nav-search:focus-within {
  border-color:var(--accent-focus)
}
.tool-link[hidden],.nav-group[hidden] {
  display:none
}
.star-btn svg {
  width:15px;
  height:15px
}
.star-btn[aria-pressed="true"] {
  border-color:var(--accent-border);
  background:var(--brand-soft);
  color:var(--brand-ink)
}
.star-btn[aria-pressed="true"] svg {
  fill:currentColor
}
.empty-state {
  padding:26px;
  border:1px dashed var(--accent-border);
  border-radius:14px;
  background:var(--surface);
  max-width:520px
}
.empty-state[hidden] {
  display:none
}
.empty-state h3 {
  font-size:15px
}
.empty-state p {
  margin:6px 0 14px;
  color:var(--muted);
  font-size:13px
}
.palette-overlay {
  position:fixed;
  inset:0;
  z-index:200;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:12vh 16px 16px;
  background:rgba(15,23,42,.38)
}
.palette {
  width:min(560px,100%);
  max-height:70vh;
  display:flex;
  flex-direction:column;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 30px 80px rgba(15,23,42,.3);
  overflow:hidden
}
.palette-input {
  border:0;
  border-bottom:1px solid var(--line);
  outline:0;
  padding:17px 20px;
  font-size:15px;
  background:transparent;
  color:var(--ink)
}
.palette-list {
  overflow-y:auto;
  padding:8px
}
.palette-row {
  display:flex;
  align-items:center;
  gap:12px;
  padding:9px 12px;
  border-radius:10px;
  color:var(--ink)
}
.palette-row.active {
  background:var(--brand-soft);
  color:var(--brand-ink)
}
.palette-row.planned {
  opacity:.5;
  cursor:default
}
.palette-text {
  display:flex;
  flex-direction:column;
  flex:1;
  min-width:0
}
.palette-text strong {
  font-size:13px
}
.palette-text small {
  color:var(--muted);
  font-size:11px
}
.palette-fav {
  color:var(--brand)
}
.palette-empty {
  padding:22px;
  text-align:center;
  color:var(--muted);
  font-size:13px
}
.palette-foot {
  padding:9px 18px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:11px
}
/* Shared select + color controls (assets/js/core/controls.js) */
.cs {
  position:relative;
  display:block;
  width:100%
}
.cs-native {
  position:absolute!important;
  inset:0 auto auto 0;
  width:1px!important;
  height:1px!important;
  opacity:0;
  pointer-events:none;
  min-height:0!important;
  padding:0!important;
  border:0!important
}
.cs-trigger {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  min-height:40px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  color:var(--ink);
  font:inherit;
  text-align:left;
  cursor:pointer
}
.cs-trigger:hover {
  border-color:var(--accent-border)
}
.cs-trigger:focus-visible,.cs-trigger[aria-expanded="true"] {
  outline:0;
  border-color:var(--accent-focus);
  box-shadow:0 0 0 3px var(--accent-shadow)
}
.cs-trigger:disabled {
  opacity:.55;
  cursor:not-allowed
}
.cs-label {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.cs-chevron {
  width:14px;
  height:14px;
  color:var(--muted);
  transform:rotate(90deg);
  transition:transform .15s
}
.cs-trigger[aria-expanded="true"] .cs-chevron {
  transform:rotate(-90deg)
}
.cs-menu {
  position:fixed;
  z-index:300;
  max-width:min(360px,calc(100vw - 16px));
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 20px 50px rgba(15,23,42,.2);
  overflow:hidden
}
.cs-menu:focus {
  outline:0
}
.cs-search {
  display:block;
  width:100%;
  border:0;
  border-bottom:1px solid var(--line);
  outline:0;
  padding:11px 13px;
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:13px
}
.cs-list {
  max-height:260px;
  overflow-y:auto;
  padding:5px
}
.cs-option {
  padding:8px 10px;
  border-radius:8px;
  font-size:13px;
  cursor:pointer;
  position:relative
}
.cs-option[hidden] {
  display:none
}
.cs-option.active {
  background:var(--brand-soft);
  color:var(--brand-ink)
}
.cs-option.selected {
  font-weight:700;
  padding-right:28px
}
.cs-option.selected:after {
  content:'✓';
  position:absolute;
  right:10px;
  color:var(--brand)
}
.cs-option.disabled {
  opacity:.45;
  cursor:not-allowed
}
.cs-empty {
  margin:0;
  padding:14px;
  color:var(--muted);
  font-size:12px;
  text-align:center
}
.cf {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:4px 8px 4px 4px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface)
}
.cf:focus-within {
  border-color:var(--accent-focus);
  box-shadow:0 0 0 3px var(--accent-shadow)
}
.cf .cf-swatch {
  width:32px!important;
  height:30px!important;
  min-height:0!important;
  padding:0!important;
  border:1px solid var(--line)!important;
  border-radius:7px!important;
  background:none;
  cursor:pointer;
  flex:none;
  box-shadow:none!important
}
.cf-swatch::-webkit-color-swatch-wrapper {
  padding:0
}
.cf-swatch::-webkit-color-swatch {
  border:0;
  border-radius:6px
}
.cf-swatch::-moz-color-swatch {
  border:0;
  border-radius:6px
}
.cf .cf-text {
  flex:1;
  min-width:0;
  border:0!important;
  outline:0;
  box-shadow:none!important;
  background:transparent;
  font:13px ui-monospace,monospace;
  text-transform:lowercase;
  padding:0!important;
  min-height:0!important
}
.qr-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,380px);
  gap:16px;
  align-items:start;
  max-width:1100px
}
.qr-sticky {
  position:sticky;
  top:16px;
  display:grid;
  gap:16px
}
.qr-stage {
  display:grid;
  place-items:center;
  width:100%;
  aspect-ratio:1;
  border:1px solid var(--line);
  border-radius:12px;
  background:
    linear-gradient(45deg,var(--soft) 25%,transparent 25%,transparent 75%,var(--soft) 75%),
    linear-gradient(45deg,var(--soft) 25%,var(--surface) 25%,var(--surface) 75%,var(--soft) 75%);
  background-size:16px 16px;
  background-position:0 0,8px 8px;
  overflow:hidden
}
.qr-stage svg,.qr-stage canvas {
  display:block;
  width:300px;
  height:300px;
  max-width:100%;
  stroke:none
}
.qr-stage svg {
  fill:initial
}
.preset-row {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px
}
.preset {
  min-height:32px;
  padding:0 13px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  color:var(--ink);
  font-size:12px;
  font-weight:700
}
.preset:hover {
  border-color:var(--accent-focus);
  background:var(--accent-hover)
}
.check-field {
  flex-direction:row!important;
  align-items:center;
  gap:9px!important;
  min-height:40px
}
.check-field input {
  width:16px;
  height:16px;
  accent-color:var(--brand)
}
.field input[type="range"] {
  padding:0;
  min-height:0;
  height:24px;
  accent-color:var(--brand);
  border:0
}
.file-btn {
  cursor:pointer
}
@media (max-width:900px) {
  .qr-layout {
    grid-template-columns:1fr
  }
  .qr-sticky {
    position:static;
    order:-1
  }
}
.upload-zone.drag {
  border-color:var(--accent-focus);
  background:var(--brand-soft)
}
.upload-zone:focus-visible {
  outline:2px solid var(--brand-ink);
  outline-offset:2px
}
.error-text {
  color:#b42318;
  margin:10px 0
}
.op {
  display:flex;
  align-items:flex-start;
  gap:11px;
  padding:9px 0;
  cursor:pointer
}
.op input {
  width:17px;
  height:17px;
  margin-top:2px;
  accent-color:var(--brand);
  flex:none
}
.op strong {
  display:block;
  font-size:13px
}
.op small {
  display:block;
  color:var(--muted);
  font-size:11px
}
.col-list {
  display:grid;
  gap:8px;
  max-height:260px;
  overflow-y:auto
}
.col-row {
  display:flex;
  align-items:center;
  gap:10px
}
.col-row input[type="checkbox"] {
  width:17px;
  height:17px;
  accent-color:var(--brand);
  flex:none
}
.col-row input[type="text"] {
  flex:1;
  min-width:0;
  min-height:34px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  color:var(--ink);
  font:inherit;
  font-size:13px
}
.change-log {
  margin:0;
  padding-left:18px;
  display:grid;
  gap:5px
}
.csv .data-layout {
  grid-template-columns:minmax(0,1fr) 340px
}
.csv .data-scroll {
  max-height:560px;
  overflow:auto
}
td.muted {
  color:var(--muted)
}
@media (max-width:1000px) {
  .csv .data-layout {
    grid-template-columns:1fr
  }
}
/* Long tool names wrap instead of overflowing the sidebar */
.tool-link {
  min-width:0;
  line-height:1.3;
  overflow-wrap:anywhere
}
.calc-row,.calc-row span {
  gap:14px
}
.calc-row strong {
  text-align:right;
  flex:none
}
.input-affix input[type="number"]::-webkit-outer-spin-button,.input-affix input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance:none;
  margin:0
}
.input-affix input[type="number"] {
  -moz-appearance:textfield;
  appearance:textfield
}
/* Keep form rows aligned even when only some fields carry help text */
.form-grid {
  align-items:start
}
.form-grid .field {
  align-self:start
}
.input-affix {
  min-height:40px
}
.input-affix input {
  min-height:38px
}
/* CSV Cleaner rhythm and table fit */
.csv>*+*,.csv [data-csv-loaded]>*+* {
  margin-top:16px
}
.csv .data-table th,.csv .data-table td {
  padding:11px 12px;
  white-space:nowrap
}
.csv .data-layout {
  grid-template-columns:minmax(0,1fr) 320px;
  gap:16px
}
.csv .data-summary {
  gap:16px
}
/* ---------- Quote Builder ---------- */
.qb {
  display:grid;
  grid-template-columns:minmax(380px,1fr) minmax(0,600px);
  gap:16px;
  align-items:start
}
.qb-editor,.qb-preview {
  min-width:0
}
.qb-preview {
  position:sticky;
  top:12px;
  background:var(--stage-bg);
  border:1px solid var(--stage-border);
  border-radius:15px;
  padding:14px
}
.qb-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
  flex-wrap:wrap
}
.qb-zoom {
  width:120px
}
.qb-stage {
  width:100%;
  overflow:hidden;
  position:relative
}
.qb-scaler {
  width:794px;
  transform-origin:top left
}
.qb-item {
  display:grid;
  grid-template-columns:minmax(60px,.7fr) minmax(70px,1fr) minmax(90px,1.2fr) 32px;
  gap:10px;
  align-items:end;
  padding:14px 0;
  border-bottom:1px solid var(--line)
}
.qb-desc {
  grid-column:1/-1
}
.qb-item:last-child {
  border-bottom:0
}
.qb-amount {
  display:flex;
  align-items:center;
  min-height:40px;
  font-weight:700;
  font-size:13px;
  white-space:nowrap
}
.qb-remove {
  align-self:end;
  margin-bottom:4px;
  font-size:18px
}
@media (max-width:1100px) {
  .qb {
    grid-template-columns:1fr
  }
  .qb-preview {
    position:static
  }
}
/* The A4 sheet. Sizes are real pixels at 96 dpi: 794 x 1123. */
.qdoc {
  --doc-accent:#0b78c9;
  width:794px;
  min-height:1123px;
  padding:56px 60px;
  background:#fff;
  color:#1f2937;
  font:13px/1.55 'DM Sans',Arial,sans-serif;
  box-shadow:0 13px 30px rgba(45,50,75,.14);
  box-sizing:border-box
}
.qdoc h2,.qdoc h3 {
  margin:0;
  font-family:Manrope,Arial,sans-serif;
  letter-spacing:-.02em
}
.qdoc-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
  margin-bottom:36px
}
.qdoc-brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  font-size:15px
}
.qdoc-brand img {
  max-height:54px;
  max-width:200px;
  display:block
}
.qdoc-mark {
  width:26px;
  height:26px;
  border-radius:7px;
  background:var(--doc-accent);
  display:inline-block
}
.qdoc-title {
  text-align:right
}
.qdoc-title h2 {
  font-size:34px;
  color:var(--doc-accent);
  line-height:1.1;
  margin-bottom:6px
}
.qdoc-meta {
  font-size:12px;
  color:#6b7280
}
.qdoc-parties {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
  margin-bottom:30px
}
.qdoc-label {
  font-size:10px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--doc-accent);
  margin-bottom:5px
}
.qdoc-text {
  font-size:12.5px;
  color:#374151
}
.qdoc-strong {
  font-weight:700;
  color:#111827
}
.qdoc-intro {
  margin-bottom:22px
}
.qdoc-intro h3 {
  font-size:17px;
  margin-bottom:5px
}
.qdoc-intro p {
  margin:0;
  color:#4b5563
}
.qdoc-table {
  width:100%;
  border-collapse:collapse;
  font-size:12.5px
}
.qdoc-table th {
  text-align:left;
  padding:10px 12px;
  background:var(--doc-accent);
  color:#fff;
  font-size:11px;
  letter-spacing:.04em
}
.qdoc-table td {
  padding:11px 12px;
  border-bottom:1px solid #e5e7eb;
  vertical-align:top
}
.qdoc-table .num {
  text-align:right;
  white-space:nowrap
}
.qdoc-table tr {
  break-inside:avoid
}
.qdoc-totals {
  width:46%;
  margin:20px 0 0 auto;
  font-size:13px;
  break-inside:avoid
}
.qdoc-totals>div {
  display:flex;
  justify-content:space-between;
  padding:6px 0
}
.qdoc-totals .grand {
  border-top:2px solid var(--doc-accent);
  margin-top:6px;
  padding-top:10px;
  font-weight:800;
  font-size:16px;
  color:var(--doc-accent)
}
.qdoc-foot {
  margin-top:34px;
  padding-top:18px;
  border-top:1px solid #e5e7eb;
  break-inside:avoid
}
.qdoc-foot p {
  margin:0 0 12px;
  font-size:12px;
  color:#4b5563
}
/* Minimal: no fills, hairlines only */
.qdoc--minimal .qdoc-table th {
  background:none;
  color:var(--doc-accent);
  border-bottom:2px solid var(--doc-accent);
  padding-left:0;
  padding-right:0
}
.qdoc--minimal .qdoc-table td {
  padding-left:0;
  padding-right:0
}
.qdoc--minimal .qdoc-title h2 {
  font-size:26px;
  font-weight:600
}
/* Classic: serif, centered title, boxed table */
.qdoc--classic {
  font-family:Georgia,'Times New Roman',serif
}
.qdoc--classic h2,.qdoc--classic h3 {
  font-family:Georgia,'Times New Roman',serif
}
.qdoc--classic .qdoc-head {
  border-bottom:3px double var(--doc-accent);
  padding-bottom:18px
}
.qdoc--classic .qdoc-table {
  border:1px solid #9ca3af
}
.qdoc--classic .qdoc-table th {
  background:#f3f4f6;
  color:#111827;
  border-bottom:1px solid #9ca3af
}
.qdoc--classic .qdoc-label {
  letter-spacing:.06em
}
/* Printing: only the quote, on A4 */
#print-sheet {
  display:none
}
@page {
  size:A4;
  margin:14mm 12mm
}
@media print {
  body>*:not(#print-sheet) {
    display:none!important
  }
  html,body {
    background:#fff!important
  }
  #print-sheet {
    display:block!important
  }
  #print-sheet .qdoc {
    width:100%;
    min-height:0;
    padding:0;
    box-shadow:none;
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact
  }
}
[hidden] {
  display:none!important
}
/* ---------- Email Template Builder ---------- */
.eb {
  display:grid;
  grid-template-columns:230px minmax(0,1fr) 290px;
  gap:16px;
  align-items:start
}
.eb-left,.eb-right {
  min-width:0
}
.eb-center {
  min-width:0;
  background:var(--stage-bg);
  border:1px solid var(--stage-border);
  border-radius:15px;
  padding:14px
}
.eb-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
  flex-wrap:wrap
}
.eb-stage {
  overflow:hidden;
  position:relative;
  border-radius:8px
}
.eb-scaler {
  transform-origin:top left
}
.eb-code {
  width:100%;
  min-height:560px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  color:var(--ink);
  font:12px/1.55 ui-monospace,monospace;
  resize:vertical
}
.eb-library {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px
}
.eb-add {
  min-height:36px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--surface);
  color:var(--ink);
  font-size:12px;
  font-weight:700;
  padding:0 8px
}
.eb-add:hover {
  border-color:var(--accent-focus);
  background:var(--accent-hover)
}
.eb-list {
  display:grid;
  gap:6px
}
.eb-row {
  display:flex;
  align-items:center;
  gap:4px;
  padding:4px 4px 4px 0;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--surface)
}
.eb-row.active {
  border-color:var(--accent-focus);
  background:var(--brand-soft)
}
.eb-row-main {
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:1px;
  padding:5px 4px 5px 10px;
  border:0;
  background:none;
  text-align:left;
  color:var(--ink)
}
.eb-row-main strong {
  font-size:12px
}
.eb-row-main small {
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted);
  font-size:11px
}
.eb-row-tools {
  display:none;
  gap:2px
}
.eb-row:hover .eb-row-tools,.eb-row:focus-within .eb-row-tools,.eb-row.active .eb-row-tools {
  display:flex
}
.eb-row-tools button {
  width:22px;
  height:24px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--muted);
  font-size:13px;
  line-height:1
}
.eb-row-tools button:hover:not(:disabled) {
  background:var(--soft);
  color:var(--ink)
}
.eb-row-tools button:disabled {
  opacity:.3
}
.eb-panel {
  margin-top:14px
}
.eb-panel-title {
  font-size:14px;
  margin-bottom:12px
}
.eb-panel .form-grid.one {
  gap:14px
}
.seg {
  display:inline-flex;
  padding:3px;
  gap:2px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface)
}
.seg-full {
  display:flex
}
.seg-full button {
  flex:1
}
.seg button {
  min-height:30px;
  padding:0 12px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--muted);
  font-size:12px;
  font-weight:700
}
.seg button.active {
  background:var(--brand-soft);
  color:var(--brand-ink)
}
.eb-checks {
  display:grid;
  gap:8px
}
.eb-check {
  padding:9px 11px;
  border-radius:9px;
  font-size:12px;
  line-height:1.45
}
.eb-check.ok {
  background:#ecf8f2;
  color:#15613f
}
.eb-check.warn {
  background:#fff4e0;
  color:#8a5200
}
@media (max-width:1200px) {
  .eb {
    grid-template-columns:200px minmax(0,1fr)
  }
  .eb-right {
    grid-column:1/-1
  }
}
@media (max-width:760px) {
  .eb {
    grid-template-columns:1fr
  }
}
/* ---------- Proposal Builder ---------- */
.pb-add {
  width:160px
}
.pb-check {
  width:16px;
  height:16px;
  margin-left:9px;
  accent-color:var(--brand);
  flex:none
}
.pb-rows {
  display:grid;
  gap:10px
}
.pb-row {
  display:grid;
  gap:8px;
  align-items:start;
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  position:relative
}
.pb-row input,.pb-row textarea {
  width:100%;
  min-width:0;
  border:1px solid var(--line);
  border-radius:8px;
  padding:7px 9px;
  font:inherit;
  font-size:13px;
  background:var(--surface);
  color:var(--ink)
}
.pb-row--pricing {
  grid-template-columns:minmax(0,1fr) 110px 30px
}
.pb-row--timeline {
  grid-template-columns:1fr 1fr 30px
}
.pb-row--timeline textarea {
  grid-column:1/3
}
.pb-row .icon-button {
  grid-column:3;
  grid-row:1;
  width:28px;
  height:28px
}
.pdoc-pages {
  width:794px;
  display:grid;
  gap:24px
}
.pdoc {
  --doc-accent:#0b78c9;
  width:794px;
  min-height:1123px;
  background:#fff;
  color:#1f2937;
  font:13.5px/1.6 'DM Sans',Arial,sans-serif;
  box-shadow:0 13px 30px rgba(45,50,75,.14);
  box-sizing:border-box;
  position:relative;
  overflow:hidden
}
.pdoc h1,.pdoc h2 {
  margin:0;
  font-family:Manrope,Arial,sans-serif;
  letter-spacing:-.025em
}
.pdoc-cover {
  height:1123px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:72px 70px;
  background:var(--doc-accent);
  color:#fff
}
.pdoc-company {
  font-weight:800;
  font-size:17px;
  letter-spacing:.04em
}
.pdoc-logo {
  max-height:60px;
  max-width:220px;
  display:block
}
.pdoc-kicker {
  font-size:13px;
  letter-spacing:.14em;
  text-transform:uppercase;
  opacity:.85;
  margin-bottom:16px
}
.pdoc-title {
  font-size:52px;
  line-height:1.08
}
.pdoc-cover-bottom {
  font-size:14px;
  line-height:1.8;
  opacity:.92
}
.pdoc--minimal.pdoc-cover {
  background:#fff;
  color:#111827;
  border-left:14px solid var(--doc-accent)
}
.pdoc--minimal .pdoc-kicker {
  color:var(--doc-accent);
  opacity:1
}
.pdoc--bold.pdoc-cover {
  background:#0f172a;
  color:#fff
}
.pdoc--bold.pdoc-cover:after {
  content:'';
  position:absolute;
  right:-120px;
  top:180px;
  width:420px;
  height:420px;
  border-radius:50%;
  background:var(--doc-accent);
  opacity:.9
}
.pdoc--bold .pdoc-cover-top,.pdoc--bold .pdoc-cover-mid,.pdoc--bold .pdoc-cover-bottom {
  position:relative;
  z-index:1
}
.pdoc-body {
  padding:64px 70px
}
.pdoc-section {
  margin-bottom:34px
}
.pdoc-section:last-child {
  margin-bottom:0
}
.pdoc-num {
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  color:var(--doc-accent);
  margin-bottom:4px
}
.pdoc-h2 {
  font-size:24px;
  margin-bottom:12px;
  color:#111827
}
.pdoc-p {
  margin:0 0 10px;
  color:#374151
}
.pdoc-list {
  margin:0 0 12px;
  padding-left:20px;
  color:#374151
}
.pdoc-list li {
  margin-bottom:4px
}
.pdoc-note {
  font-size:12px;
  color:#6b7280;
  margin:10px 0 0
}
.pdoc-table {
  width:100%;
  border-collapse:collapse;
  font-size:13px;
  margin-top:6px;
  break-inside:avoid
}
.pdoc-table th {
  text-align:left;
  padding:9px 12px;
  background:var(--doc-accent);
  color:#fff;
  font-size:11px;
  letter-spacing:.05em;
  text-transform:uppercase
}
.pdoc-table td {
  padding:10px 12px;
  border-bottom:1px solid #e5e7eb;
  vertical-align:top
}
.pdoc-table .num {
  text-align:right;
  white-space:nowrap
}
.pdoc-table tr.total td {
  font-weight:800;
  border-top:2px solid var(--doc-accent);
  border-bottom:0;
  color:var(--doc-accent)
}
.pdoc--minimal .pdoc-table th {
  background:none;
  color:var(--doc-accent);
  border-bottom:2px solid var(--doc-accent)
}
.pdoc-sign {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  margin-top:46px;
  break-inside:avoid
}
.pdoc-sign-line {
  border-bottom:1px solid #111827;
  height:34px
}
.pdoc-sign-name {
  margin-top:7px;
  font-weight:700;
  font-size:12.5px
}
.pdoc-sign-date {
  font-size:11px;
  color:#6b7280
}
.pdoc-section {
  break-inside:auto
}
.pdoc-h2 {
  break-after:avoid
}
@media print {
  #print-sheet .pdoc-pages {
    width:100%;
    display:block
  }
  #print-sheet .pdoc {
    width:100%;
    min-height:0;
    box-shadow:none;
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact
  }
  #print-sheet .pdoc-cover {
    height:268mm;
    break-after:page;
    padding:20mm 18mm
  }
  #print-sheet .pdoc-body {
    padding:0
  }
}
@media (max-width:600px) {
  .pb-row--pricing {
    grid-template-columns:minmax(0,1fr) 90px 30px
  }
}
/* ---------- PDF Maker ---------- */
.pm {
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:16px;
  align-items:start
}
.pm-main {
  min-width:0;
  background:var(--stage-bg);
  border:1px solid var(--stage-border);
  border-radius:15px;
  padding:12px
}
.pm-toolbar {
  position:sticky;
  top:0;
  z-index:5;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 12px;
  padding:8px 10px;
  margin-bottom:12px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:11px
}
.pm-style {
  width:140px
}
.pm-group {
  display:inline-flex;
  gap:2px;
  padding-right:10px;
  border-right:1px solid var(--line)
}
.pm-group:last-child {
  border-right:0
}
.pm-toolbar button,.pm-btn {
  min-width:32px;
  height:32px;
  padding:0 9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:12.5px;
  font-weight:600;
  cursor:pointer
}
.pm-toolbar button:hover,.pm-btn:hover {
  background:var(--soft)
}
.pm-toolbar button.active {
  background:var(--brand-soft);
  color:var(--brand-ink)
}
.pm-stage {
  position:relative;
  overflow:hidden
}
.pm-sheet {
  background:#fff;
  color:#1f2937;
  box-shadow:0 13px 30px rgba(45,50,75,.14);
  box-sizing:border-box;
  line-height:1.6;
  position:relative
}
.pm-editor {
  min-height:600px;
  outline:0;
  overflow-wrap:anywhere
}
.pm-head,.pm-foot {
  position:absolute;
  left:0;
  right:0;
  text-align:center;
  font-size:11px;
  color:#6b7280
}
.pm-head {
  top:14px
}
.pm-foot {
  bottom:14px
}
.pm-editor h1,.pm-content h1 {
  font:700 2em/1.2 Manrope,Arial,sans-serif;
  margin:.4em 0 .3em;
  letter-spacing:-.02em
}
.pm-editor h2,.pm-content h2 {
  font:700 1.5em/1.25 Manrope,Arial,sans-serif;
  margin:.9em 0 .3em
}
.pm-editor h3,.pm-content h3 {
  font:700 1.2em/1.3 Manrope,Arial,sans-serif;
  margin:.8em 0 .25em
}
.pm-editor p,.pm-content p {
  margin:0 0 .75em
}
.pm-editor ul,.pm-editor ol,.pm-content ul,.pm-content ol {
  margin:0 0 .75em;
  padding-left:1.5em
}
.pm-editor blockquote,.pm-content blockquote {
  margin:0 0 .75em;
  padding:.2em 1em;
  border-left:3px solid #cbd5e1;
  color:#475569
}
.pm-editor a,.pm-content a {
  color:#0b78c9;
  text-decoration:underline
}
.pm-editor table,.pm-content table {
  width:100%;
  border-collapse:collapse;
  margin:0 0 .9em
}
.pm-editor td,.pm-editor th,.pm-content td,.pm-content th {
  border:1px solid #cbd5e1;
  padding:6px 9px;
  text-align:left;
  vertical-align:top
}
.pm-editor th,.pm-content th {
  background:#f1f5f9
}
.pm-editor hr,.pm-content hr {
  border:0;
  border-top:1px solid #cbd5e1;
  margin:1em 0
}
.pm-editor img,.pm-content img {
  max-width:100%;
  height:auto;
  display:block;
  margin:.4em 0
}
.pm-editor img[data-w="25"],.pm-content img[data-w="25"] {
  width:25%
}
.pm-editor img[data-w="50"],.pm-content img[data-w="50"] {
  width:50%
}
.pm-editor img[data-w="75"],.pm-content img[data-w="75"] {
  width:75%
}
.pm-editor img[data-w="100"],.pm-content img[data-w="100"] {
  width:100%
}
.pm-editor img[data-align="center"],.pm-content img[data-align="center"] {
  margin-left:auto;
  margin-right:auto
}
.pm-editor img[data-align="right"],.pm-content img[data-align="right"] {
  margin-left:auto
}
.pm-editor img {
  cursor:pointer
}
.pm-editor img.sel {
  outline:2px solid #0b78c9;
  outline-offset:2px
}
.pm-break {
  border-top:2px dashed #94a3b8;
  margin:1.2em 0;
  height:0;
  position:relative
}
.pm-break:after {
  content:'Page break';
  position:absolute;
  right:0;
  top:-9px;
  background:#fff;
  padding:0 6px;
  font-size:10px;
  color:#94a3b8
}
.pm-content .pm-break {
  border:0;
  margin:0;
  break-after:page
}
.pm-content .pm-break:after {
  display:none
}
.pm-imgbar {
  position:absolute;
  z-index:6;
  display:flex;
  align-items:center;
  gap:2px;
  padding:4px;
  background:var(--deep);
  border-radius:9px;
  box-shadow:0 8px 24px rgba(15,23,42,.3)
}
.pm-imgbar[hidden] {
  display:none
}
.pm-imgbar button {
  height:28px;
  min-width:28px;
  padding:0 7px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#fff;
  font-size:12px;
  font-weight:600
}
.pm-imgbar button:hover {
  background:rgba(255,255,255,.18)
}
.pm-sep {
  width:1px;
  height:18px;
  background:rgba(255,255,255,.25);
  margin:0 3px
}
.pm-print-head,.pm-print-foot {
  display:none
}
@media print {
  #print-sheet .pm-print {
    color:#111827;
    line-height:1.6
  }
  #print-sheet .pm-print-head,#print-sheet .pm-print-foot {
    display:block;
    position:fixed;
    left:0;
    right:0;
    text-align:center;
    font-size:10px;
    color:#6b7280
  }
  #print-sheet .pm-content img,#print-sheet .pm-content table,#print-sheet .pm-content tr {
    break-inside:avoid
  }
  #print-sheet .pm-content h1,#print-sheet .pm-content h2,#print-sheet .pm-content h3 {
    break-after:avoid
  }
}
@media (max-width:1000px) {
  .pm {
    grid-template-columns:1fr
  }
}
/* Calculator chart */
.calc-chart {
  position:relative;
  margin-top:10px
}
.calc-svg {
  width:100%;
  height:auto;
  display:block;
  stroke:none
}
.calc-svg .axis {
  stroke:var(--line);
  stroke-width:1
}
.calc-svg .axis.zero {
  stroke:var(--muted);
  stroke-width:1.2
}
.calc-svg .tick {
  fill:var(--muted);
  font-size:10.5px
}
.calc-svg .line {
  fill:none;
  stroke:var(--brand);
  stroke-width:2.5;
  stroke-linejoin:round
}
.calc-svg .area {
  fill:var(--brand);
  opacity:.1;
  stroke:none
}
.calc-svg .be-line {
  stroke:var(--brand-ink);
  stroke-width:1;
  stroke-dasharray:4 3;
  opacity:.6
}
.calc-svg .be-dot {
  fill:var(--surface);
  stroke:var(--brand-ink);
  stroke-width:2.5
}
.calc-svg .be-label {
  fill:var(--brand-ink);
  font-size:11px;
  font-weight:700
}
.calc-svg .hover-dot {
  fill:var(--brand);
  stroke:var(--surface);
  stroke-width:2
}
.calc-tip {
  position:absolute;
  top:0;
  padding:5px 9px;
  border-radius:8px;
  background:var(--deep);
  color:#fff;
  font-size:11px;
  font-weight:600;
  pointer-events:none;
  white-space:nowrap
}
/* Calculator PDF */
.calc-print {
  display:none
}
@media print {
  #print-sheet .calc-print {
    display:block;
    color:#111827;
    font:13px/1.55 'DM Sans',Arial,sans-serif;
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact
  }
  .calc-print .cp-kicker {
    font-size:11px;
    font-weight:800;
    letter-spacing:.14em;
    text-transform:uppercase;
    color:var(--brand)
  }
  .calc-print h1 {
    font:800 28px/1.15 Manrope,Arial,sans-serif;
    margin:4px 0 2px
  }
  .calc-print h2 {
    font:700 15px/1.3 Manrope,Arial,sans-serif;
    margin:22px 0 8px;
    break-after:avoid
  }
  .calc-print .cp-date {
    color:#6b7280;
    font-size:12px
  }
  .calc-print .cp-head {
    margin-top:18px;
    padding:18px 20px;
    border:1px solid #e5e7eb;
    border-left:5px solid var(--brand);
    border-radius:10px;
    background:#f8fafc
  }
  .calc-print .cp-head-label {
    font-size:11px;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:#6b7280
  }
  .calc-print .cp-head-value {
    font:800 34px/1.2 Manrope,Arial,sans-serif;
    letter-spacing:-.03em
  }
  .calc-print .cp-table {
    width:100%;
    border-collapse:collapse;
    break-inside:avoid
  }
  .calc-print .cp-table td {
    padding:8px 2px;
    border-bottom:1px solid #e5e7eb
  }
  .calc-print .cp-table .num {
    text-align:right;
    font-weight:700;
    white-space:nowrap
  }
  .calc-print .cp-chart {
    break-inside:avoid
  }
  .calc-print .cp-chart svg {
    width:100%;
    height:auto;
    display:block
  }
  .calc-print .cp-note {
    margin-top:18px;
    font-size:12px;
    color:#4b5563
  }
  .calc-print .cp-foot {
    margin-top:24px;
    padding-top:10px;
    border-top:1px solid #e5e7eb;
    font-size:11px;
    color:#6b7280
  }
}
/* ---------- Markdown to PDF ---------- */
.md-split {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}
.md-col {
  min-width:0
}
.md-input {
  width:100%;
  min-height:620px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  color:var(--ink);
  font:13px/1.6 ui-monospace,Menlo,Consolas,monospace;
  resize:vertical;
  tab-size:2
}
.md-input:focus {
  outline:0;
  border-color:var(--accent-focus);
  box-shadow:0 0 0 3px var(--accent-shadow)
}
.md-preview-label {
  margin:0 0 8px
}
.md-preview {
  min-height:620px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:0 8px 24px rgba(45,50,75,.1);
  overflow:auto;
  max-height:760px
}
.md-sheet {
  padding:28px 30px;
  color:#1f2937;
  line-height:1.6;
  overflow-wrap:anywhere
}
.md-sheet:empty:before {
  content:'Your document appears here';
  color:#94a3b8
}
.pm-content pre,.md-sheet pre {
  margin:0 0 .9em;
  padding:12px 14px;
  background:#f1f5f9;
  border-radius:8px;
  overflow:auto;
  font:12px/1.55 ui-monospace,Menlo,Consolas,monospace;
  break-inside:avoid
}
.pm-content code,.md-sheet code {
  font:.9em ui-monospace,Menlo,Consolas,monospace;
  background:#f1f5f9;
  padding:.1em .35em;
  border-radius:4px
}
.pm-content pre code,.md-sheet pre code {
  background:none;
  padding:0
}
.pm-content del,.md-sheet del {
  color:#64748b
}
@media (max-width:1250px) {
  .md-split {
    grid-template-columns:1fr
  }
  .md-input,.md-preview {
    min-height:360px
  }
}
/* ---------- Form-driven documents (Meeting Notes, Client Brief) ---------- */
.df-include {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap
}
.df-include input {
  accent-color:var(--brand)
}
.df-rows {
  display:grid;
  gap:8px
}
.df-row {
  display:grid;
  gap:8px;
  align-items:center
}
.df-row input {
  min-width:0;
  min-height:36px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  color:var(--ink);
  font:inherit;
  font-size:13px
}
.df-rows>.btn {
  justify-self:start
}
.dfdoc {
  --doc-accent:#334155
}
.dfdoc .df-kicker {
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--doc-accent)
}
.dfdoc .df-title {
  font:800 1.9em/1.15 Manrope,Arial,sans-serif;
  letter-spacing:-.02em;
  margin:.15em 0 .6em;
  padding-bottom:.45em;
  border-bottom:3px solid var(--doc-accent)
}
.dfdoc .df-meta {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 24px;
  margin-bottom:1.3em
}
.dfdoc .df-meta-wide {
  grid-column:1/-1
}
.dfdoc .df-meta-label {
  font-size:.72em;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#6b7280
}
.dfdoc .df-meta-value {
  font-size:.95em
}
.dfdoc .df-section {
  margin-bottom:1.3em;
  break-inside:avoid
}
.dfdoc .df-section h2 {
  font:700 1.2em/1.3 Manrope,Arial,sans-serif;
  margin:0 0 .35em;
  color:var(--doc-accent)
}
.dfdoc .df-empty {
  color:#94a3b8
}
.dfdoc table th {
  background:var(--doc-accent);
  color:#fff;
  border-color:var(--doc-accent)
}
/* ---------- Document Merger ---------- */
.dm {
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:16px;
  align-items:start
}
.dm-list {
  display:grid;
  gap:8px
}
.dm-row {
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  cursor:grab
}
.dm-row.bad {
  border-color:#f1b5ae;
  background:#fff6f5
}
.dm-row.dragging {
  opacity:.5
}
.dm-row.over {
  border-color:var(--accent-focus);
  box-shadow:0 0 0 3px var(--accent-shadow)
}
.dm-grip {
  color:var(--muted);
  letter-spacing:-2px;
  user-select:none
}
.dm-info {
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column
}
.dm-info strong {
  font-size:13px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.dm-info small {
  color:var(--muted);
  font-size:11px
}
.dm-row.bad small {
  color:#b42318
}
.dm-range {
  width:110px;
  min-height:32px;
  padding:0 9px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  color:var(--ink);
  font:inherit;
  font-size:12px
}
.dm-range.invalid {
  border-color:#e0554a;
  color:#b42318
}
.dm-tools {
  display:flex;
  gap:2px
}
.dm-tools button {
  width:26px;
  height:28px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--muted);
  font-size:14px
}
.dm-tools button:hover:not(:disabled) {
  background:var(--soft);
  color:var(--ink)
}
.dm-tools button:disabled {
  opacity:.3
}
@media (max-width:1000px) {
  .dm {
    grid-template-columns:1fr
  }
}
/* ---------- CSV <-> JSON ---------- */
.cj {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  align-items:start
}
.cj-opts {
  grid-column:1/-1
}
.cj-text {
  width:100%;
  min-height:340px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  color:var(--ink);
  font:12.5px/1.6 ui-monospace,Menlo,Consolas,monospace;
  resize:vertical;
  tab-size:2
}
.cj-text:focus {
  outline:0;
  border-color:var(--accent-focus);
  box-shadow:0 0 0 3px var(--accent-shadow)
}
.cj-text.drag {
  border-color:var(--accent-focus);
  background:var(--brand-soft)
}
@media (max-width:1000px) {
  .cj {
    grid-template-columns:1fr
  }
}
/* ---------- CSV Column Mapper ---------- */
.cm-grid {
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);
  gap:16px;
  margin-top:16px;
  align-items:start
}
.cm-rows {
  display:grid;
  gap:10px
}
.cm-row {
  display:grid;
  grid-template-columns:minmax(120px,.8fr) minmax(160px,1.2fr) minmax(90px,.8fr);
  gap:12px;
  align-items:center;
  padding-bottom:10px;
  border-bottom:1px solid var(--line)
}
.cm-name {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  font-size:13px
}
.cm-side {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.cm-fixed {
  width:100%;
  min-height:36px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  color:var(--ink);
  font:inherit;
  font-size:13px
}
.cm-warn {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:6px
}
.cm-warn li {
  padding:8px 10px;
  border-radius:8px;
  background:#fff4e0;
  color:#8a5200
}
.cm-warn li.ok {
  background:#ecf8f2;
  color:#15613f
}
@media (max-width:1100px) {
  .cm-grid {
    grid-template-columns:1fr
  }
  .cm-row {
    grid-template-columns:1fr 1fr
  }
  .cm-side {
    grid-column:1/-1
  }
}
/* ---------- Email Signature ---------- */
.es-stage {
  border:1px solid var(--line);
  border-radius:10px;
  background:
    linear-gradient(45deg,var(--soft) 25%,transparent 25%,transparent 75%,var(--soft) 75%),
    linear-gradient(45deg,var(--soft) 25%,var(--surface) 25%,var(--surface) 75%,var(--soft) 75%);
  background-size:16px 16px;
  background-position:0 0,8px 8px;
  padding:14px;
  overflow:auto
}
.es-help {
  margin-top:14px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface)
}
.es-help p {
  margin:6px 0 0;
  color:var(--muted)
}

/* ---------- Practical CRM tools (validator, duplicates, pipeline, scoring, funnel, checklist, planner) ---------- */
.nt{display:grid;gap:16px}
.nt-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;align-items:start}
.nt-grid>*{min-width:0}
.nt-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}
.nt-stat{padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.nt-stat span{display:block;font-size:12px;color:var(--muted)}
.nt-stat b{font:800 22px Manrope,sans-serif;letter-spacing:-.04em}
.nt-stat.err b{color:#b42318}.nt-stat.warn b{color:#b54708}.nt-stat.ok b{color:var(--green)}
.nt-tabs{display:flex;gap:6px;flex-wrap:wrap}
.nt-tabs button{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:6px 12px;font-weight:600;font-size:12.5px;color:#475467}
.nt-tabs button.on{background:var(--brand);border-color:var(--brand);color:#fff}
.nt-table{width:100%;border-collapse:collapse;font-size:12.5px}
.nt-table th{text-align:left;color:var(--muted);font-weight:700;padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
.nt-table td{padding:9px 10px;border-bottom:1px solid var(--line);vertical-align:top}
.nt-table td.mono,.nt .mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;word-break:break-word}
.sev{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.sev.error{background:#fee4e2;color:#b42318}.sev.warn{background:#fef0c7;color:#93400d}.sev.info{background:var(--brand-soft);color:var(--brand-ink)}
.nt-cell-err{background:#fef3f2;box-shadow:inset 0 0 0 1px #fecdca}
.nt-cell-warn{background:#fffaeb;box-shadow:inset 0 0 0 1px #fedf89}
.nt-opts{display:flex;flex-wrap:wrap;gap:8px 18px}
.nt-opts label{display:flex;gap:8px;align-items:center;font-size:13px}
.nt-group{border:1px solid var(--line);border-radius:12px;padding:14px;background:var(--surface);display:grid;gap:10px}
.nt-group.confirmed{border-color:#a6dcc3;background:#f6fcf9}
.nt-group.skipped{opacity:.6}
.nt-rec{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start;padding:8px 0;border-top:1px solid var(--line);font-size:13px}
.nt-rec:first-of-type{border-top:0}
.nt-rec small{color:var(--muted)}
.nt-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.nt-stage{display:grid;grid-template-columns:auto minmax(0,1.4fr) 110px auto auto;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.nt-stage input[type=text],.nt-stage input[type=number],.nt-input{width:100%;min-height:38px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font:inherit;font-size:13.5px;color:var(--ink)}
.nt-color{width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:8px;background:none}
.nt-iconbtn{width:34px;height:34px;display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:#475467}
.nt-iconbtn:disabled{opacity:.35;cursor:default}
.nt-kanban{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(150px,1fr);gap:10px;overflow-x:auto;padding-bottom:6px}
.nt-col{border-radius:12px;background:var(--canvas);border:1px solid var(--line);padding:10px;display:grid;gap:8px;align-content:start;border-top:4px solid var(--c,#999)}
.nt-col h4{font:700 13px Manrope,sans-serif}
.nt-col small{color:var(--muted)}
.nt-card{background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:9px;font-size:12px;color:var(--muted)}
.nt-crit{border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--surface);display:grid;gap:8px}
.nt-opt{display:grid;grid-template-columns:minmax(0,1fr) 90px auto;gap:8px;align-items:center}
.nt-score{font:800 40px Manrope,sans-serif;letter-spacing:-.05em}
.nt-bar{height:10px;border-radius:999px;background:var(--soft);overflow:hidden}
.nt-bar i{display:block;height:100%;background:var(--brand);border-radius:999px;transition:width .2s}
.nt-check{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;padding:9px 0;border-top:1px solid var(--line);font-size:14px;align-items:start}
.nt-check input{width:18px;height:18px;margin-top:2px;accent-color:var(--brand)}
.nt-check.done span{color:var(--muted);text-decoration:line-through}
.nt-section h3{font-size:16px;margin:0 0 4px}
.nt-risk{padding:10px 12px;border-radius:10px;background:#fffaeb;border:1px solid #fedf89;font-size:13px}
.nt-step{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;padding:10px 0;border-top:1px solid var(--line)}
.nt-step>b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--brand-soft);color:var(--brand-ink);font-size:13px}
.nt-funnel svg{width:100%;height:auto;display:block}
@media(max-width:900px){
 .nt-grid{grid-template-columns:minmax(0,1fr)}
 .nt-stage{grid-template-columns:auto minmax(0,1fr) auto auto}
 .nt-stage .nt-prob{grid-column:2 / -1}
}
@media print{.nt-noprint{display:none!important}}
.nt>*,.nt-grid>*{min-width:0}
.nt .data-toolbar{flex-wrap:wrap}
.nt .panel-header{flex-wrap:wrap;gap:10px}
.nt .data-scroll{max-width:100%}
.nt-kanban{max-width:100%}
.nt-stats{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}
.nt-funnel svg,.nt-funnel svg *{stroke:none;stroke-width:0}
@media(max-width:900px){
 .nt-stage{grid-template-columns:auto minmax(0,1fr) auto auto}
 .nt-stage>:nth-child(2){grid-column:2 / -1}
 .nt-stage>:nth-child(3){grid-column:2;grid-row:2}
 .nt-stage>:nth-child(4){grid-column:3;grid-row:2}
 .nt-stage>:nth-child(5){grid-column:4;grid-row:2}
 .nt-stage .nt-prob{grid-column:2}
}
.nt-prob{display:flex;align-items:center;gap:8px;min-width:0}
.nt-prob input{width:76px!important;flex:none}
@media(max-width:900px){.nt-stage{grid-template-columns:auto minmax(0,1fr) auto}.nt-stage>:nth-child(2){grid-column:2 / -1}.nt-stage>:nth-child(3){grid-column:2;grid-row:2}.nt-stage>:nth-child(4){grid-column:2;grid-row:3}.nt-stage>:nth-child(5){grid-column:3;grid-row:3}}
.nt-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:12px}
.nt-grid-box{max-width:100%;min-width:0}
.nt-grid-box .tabulator{border-color:var(--line);border-radius:10px;font-size:13px}
.nt-grid-box .tabulator .tabulator-header{background:var(--soft)}
.nt-grid-box .tabulator-row.tabulator-selected{background:var(--brand-soft)}

/* ---------- Feature badges and the CRM Comparison Builder ---------- */
.fx{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.fx:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.fx-yes{background:#e7f6ee;color:#157347}
.fx-no{background:#f1f3f6;color:#475467}
.fx-partial{background:#fff3d6;color:#93400d}
.fx-unknown{background:#f4f4f6;color:#8a8f9c;font-weight:600}
.fx-unknown:before{background:transparent;border:1.5px dashed currentColor}
/* CRM Comparison Builder v2 */
.cb{display:grid;gap:22px}
.cb-picker{background:linear-gradient(180deg,#fff,var(--canvas));border:1px solid var(--line);border-radius:20px;padding:22px}
.cb-picker-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}
.cb-picker-head h2{font-size:20px;letter-spacing:-.035em}
.cb-picker-head p{color:var(--muted);font-size:13.5px;margin-top:2px}
.cb-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
.cb-card{display:flex;gap:12px;align-items:flex-start;text-align:left;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s;font:inherit;color:inherit}
.cb-card:hover{border-color:var(--accent-border);box-shadow:0 6px 18px rgba(15,23,42,.06);transform:translateY(-1px)}
.cb-card:focus-visible{outline:2px solid var(--accent-focus);outline-offset:2px}
.cb-card.on{border-color:var(--brand);background:var(--brand-soft);box-shadow:0 0 0 1px var(--brand) inset}
.cb-card.off{opacity:.5}
.cb-tick{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:1.5px solid #c3cad5;color:#667085;font-weight:800;font-size:15px;line-height:1;background:#fff}
.cb-card.on .cb-tick{background:var(--brand);border-color:var(--brand);color:#fff}
.cb-card-body{display:grid;gap:2px;min-width:0}
.cb-card-body strong{font:700 15px Manrope,sans-serif;letter-spacing:-.02em}
.cb-card-aud{font-size:12px;color:var(--muted);line-height:1.35}
.cb-card-price{font-size:12.5px;font-weight:700;color:var(--brand-ink);margin-top:4px}

.cb-result{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 18px 50px -24px rgba(15,23,42,.25)}
.cb-bar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--line);background:#fafbfc}
.cb-switches{display:flex;flex-wrap:wrap;gap:8px}
.cb-switch{position:relative;cursor:pointer}
.cb-switch input{position:absolute;opacity:0;inset:0}
.cb-switch span{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border:1px solid var(--line);border-radius:999px;font-size:13px;font-weight:600;background:#fff;color:#475467}
.cb-switch span:before{content:"";width:14px;height:14px;border-radius:4px;border:1.5px solid #b8c0cc;background:#fff}
.cb-switch input:checked+span{border-color:var(--accent-border);background:var(--brand-soft);color:var(--brand-ink)}
.cb-switch input:checked+span:before{background:var(--brand);border-color:var(--brand);box-shadow:inset 0 0 0 2px #fff}
.cb-switch input:focus-visible+span{outline:2px solid var(--accent-focus);outline-offset:2px}

.cb-scroll{overflow-x:auto}
.cb-table{width:100%;border-collapse:separate;border-spacing:0;font-size:14px;min-width:560px;table-layout:fixed}
.cb-table th,.cb-table td{padding:14px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.cb-corner{width:150px;background:#fff}
.cb-head{padding:16px 12px;background:#fff;position:sticky;top:0;z-index:3;border-bottom:1px solid var(--line)}
.cb-hcard{display:grid;gap:6px;padding:14px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg,#fff,var(--canvas))}
.cb-hname{font:800 17px Manrope,sans-serif;letter-spacing:-.035em;color:var(--ink)}
.cb-haud{font-size:12px;color:var(--muted);line-height:1.35;min-height:32px}
.cb-hprice{font:800 15px Manrope,sans-serif;color:var(--brand-ink)}
.cb-hchips{display:flex;flex-wrap:wrap;gap:6px}
.cb-chip{padding:3px 9px;border-radius:999px;background:var(--soft);font-size:11.5px;font-weight:700;color:#475467}
.cb-chip.good{background:#e7f6ee;color:#157347}
.cb-hlink{font-size:12.5px;font-weight:700;color:var(--brand-ink)}
.cb-hlink:hover{text-decoration:underline}
.cb-section td{padding:10px 16px;background:var(--soft);font:800 11.5px Manrope,sans-serif;text-transform:uppercase;letter-spacing:.09em;color:#475467}
.cb-rowhead{width:150px;font-weight:700;color:#344054;background:#fff;position:sticky;left:0;z-index:2}
.cb-differs{display:inline-block;margin-left:8px;padding:1px 7px;border-radius:999px;background:#fff3d6;color:#93400d;font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;vertical-align:middle}
.cb-diff td{background:#fffdf6}
.cb-diff .cb-rowhead{background:#fffdf6}
.cb-table tbody tr:not(.cb-section):hover td,.cb-table tbody tr:not(.cb-section):hover .cb-rowhead{background:#f7f9fc}
.cb-plans{padding:10px 12px}
.cb-plan{padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:#fff;margin-bottom:6px}
.cb-plan:last-child{margin-bottom:0}
.cb-plan-name{font-size:12px;font-weight:700;color:var(--muted)}
.cb-plan-price{font-weight:800;color:var(--ink);font-size:13.5px}
.cb-cellnote{font-size:12px;color:var(--muted);margin-top:5px;line-height:1.4}
.cb-srcrow td{color:var(--muted);font-size:13px}
.cb-foot{display:flex;flex-wrap:wrap;gap:12px 24px;justify-content:space-between;align-items:center;padding:14px 18px;background:#fafbfc}
.cb-foot p{max-width:760px;line-height:1.6;margin:0}
.cb-foot a{color:var(--brand-ink);text-decoration:underline}
.cb-legend{display:flex;gap:6px;flex-wrap:wrap}
.cb-empty{display:grid;gap:4px;place-items:center;text-align:center;padding:48px 20px;border:1px dashed var(--accent-border);border-radius:20px;background:var(--accent-hover);color:var(--muted)}
.cb-empty strong{color:var(--ink);font:700 17px Manrope,sans-serif}
.cb-table.cols-2 .cb-head,.cb-table.cols-2 td{width:auto}
@media(max-width:760px){
 .cb-picker{padding:16px;border-radius:16px}
 .cb-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cb-card{padding:11px;gap:9px}
 .cb-card-aud{display:none}
 .cb-table{min-width:0;table-layout:auto}
 .cb-corner,.cb-rowhead{width:96px;min-width:96px;font-size:12.5px}
 .cb-table th,.cb-table td{padding:10px 8px}
 .cb-head{padding:10px 6px;min-width:150px}
 .cb-hcard{padding:10px}
 .cb-haud{display:none}
 .cb-hname{font-size:14px}
 .cb-differs{display:block;margin:4px 0 0;width:fit-content}
}
@media(max-width:760px){.cb-card-price{display:none}.cb-card{align-items:center;padding:10px}.cb-cards{gap:8px}.cb-hprice{font-size:13px}}
