:root{
  --bg:#ffffff;
  --text:#0b1f3a;
  --muted:#51657b;
  --border:#dfe7f1;
  --alt:#f2f7ff;

  /* UI / brand accent = BLUE */
  --blue:#0066ff;
  --blueHover:#0052cc;
  --bluePressed:#003f9e;

  /* Primary CTA = GREEN */
  --green:#2BB673;
  --greenHover:#24A965;
  --greenPressed:#1E8F55;

  /* Soft white for green buttons */
  --softWhite: rgba(255,255,255,.90);

  --shadow: 0 18px 45px rgba(11,31,58,.12);
  --shadow2: 0 10px 26px rgba(11,31,58,.08);
  --r:18px;
  --standard-text-size:10px;
  --placeholder-color:#888;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6
}
a{color:inherit;text-decoration:none}
.container{width:min(1200px, calc(100% - clamp(24px, 5vw, 72px))); margin:0 auto}

/* Header */
.header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border)
}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;font-weight:950}
.brand-text{letter-spacing:-0.02em}
.mark{
  width:14px;height:14px;border-radius:4px;
  background:var(--blue);
  box-shadow:0 10px 18px rgba(0,102,255,.18)
}
.navlinks{display:flex;gap:14px;align-items:center}
.navlinks a{color:var(--muted);font-weight:800;font-size:14px}
.navlinks a:hover{color:var(--text)}

.navlinks-app{
  margin-left:auto;
  gap:10px;
}
.navlinks-app a{
  font-size:13px;
}
.auth-password-hint{
  margin-top:6px;
}

/* Typography */
.section{padding:80px 0}
.section.alt{background:var(--alt);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
h1{font-size:clamp(40px,5vw,58px);line-height:1.03;letter-spacing:-0.03em;margin:14px 0}
h2{font-size:clamp(28px,3vw,38px);line-height:1.14;letter-spacing:-0.02em;margin:0 0 10px}
h3{margin:0 0 8px;font-size:18px;letter-spacing:-0.01em}
.lead{font-size:18px;color:var(--muted);margin:0 0 18px;max-width:52ch}
.body{color:var(--muted);margin:0 0 18px}
.micro{color:var(--muted);font-size:13px;margin:10px 0 0}
.muted{color:var(--muted)}
.accent{color:var(--text);font-weight:950}

/* Buttons (subtle 3D) */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 16px;border-radius:14px;
  font-weight:950;border:1px solid transparent;
  cursor:pointer; user-select:none; -webkit-tap-highlight-color:transparent;
  transition:transform .10s ease, box-shadow .16s ease, filter .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
  white-space:nowrap;
}
.btn:active{transform:translateY(2px)}
.btn-sm{padding:9px 12px;border-radius:12px;font-size:14px}
.btn-xs{padding:9px 10px;border-radius:12px;font-size:12px}

/* Primary = GREEN (soft white text) */
.btn-primary{
  color:var(--softWhite);
  background:linear-gradient(180deg, #35c684 0%, var(--green) 70%);
  border-color:rgba(0,0,0,.06);
  box-shadow:
    0 18px 38px rgba(43,182,115,.30),
    0 3px 0 rgba(30,143,85,.62);
  text-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.btn-primary:hover{
  color:var(--softWhite);
  background:linear-gradient(180deg, #3ad08c 0%, var(--greenHover) 78%);
  transform:translateY(-1px);
  box-shadow:
    0 22px 44px rgba(43,182,115,.34),
    0 3px 0 rgba(30,143,85,.66);
  filter:saturate(1.06);
}
.btn-primary:active{
  color:var(--softWhite);
  background:linear-gradient(180deg, var(--greenHover) 0%, var(--greenPressed) 85%);
  box-shadow:
    0 14px 28px rgba(43,182,115,.26),
    0 1px 0 rgba(30,143,85,.60);
}
.btn-primary.big{padding:14px 18px;border-radius:15px;font-size:15px}

/* Secondary = blue outline + grey text */
.btn-secondary{
  background:#fff;
  border:2px solid rgba(0,102,255,.75);
  color:var(--muted);
  box-shadow:
    0 12px 24px rgba(0,102,255,.10),
    0 2px 0 rgba(0,102,255,.08);
}
.btn-secondary:hover{
  background:rgba(0,102,255,.06);
  border-color:rgba(0,82,204,.90);
  color:var(--text);
  transform:translateY(-1px);
  box-shadow:
    0 16px 30px rgba(0,102,255,.14),
    0 2px 0 rgba(0,102,255,.08);
}
.btn-secondary:active{
  background:rgba(0,102,255,.10);
  border-color:rgba(0,63,158,.95);
  box-shadow:
    0 10px 18px rgba(0,102,255,.10),
    0 1px 0 rgba(0,102,255,.08);
}

.btn-outline{
  background:#fff;
  border:1px solid #cfe0ee;
  color:var(--text);
  box-shadow:0 10px 18px rgba(11,31,58,.06), 0 2px 0 rgba(11,31,58,.06);
}
.btn-outline:hover{
  border-color:#bcd3e7;
  transform:translateY(-1px);
  box-shadow:0 14px 24px rgba(11,31,58,.08), 0 2px 0 rgba(11,31,58,.06);
}

/* Small link CTA */
.cta-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:10px;
  font-weight:900;
  font-size:13px;
  color:var(--bluePressed);
  text-decoration:underline;
  text-underline-offset:4px;
}
.cta-link:hover{color:var(--blueHover)}
.cta-link:active{color:var(--bluePressed); transform:translateY(1px)}

/* Hero */
.hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:28px;align-items:start}
.chips{display:flex;gap:10px;flex-wrap:wrap}
.chip{font-size:12px;font-weight:950;color:var(--muted);border:1px solid var(--border);background:#fff;padding:8px 10px;border-radius:999px}
.cta{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0 6px}
.hero-visual{
  width:100%;
  position:relative;
  min-height:760px;
}
.hero-shot{
  position:absolute;
  top:0;
  left:0;
  width:731px;
  height:601px;
  transform:translate(0, -33px);
  border:1px solid #d3deec;
  border-radius:28px;
  background:#eef2f8;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(11,31,58,.12);
}
.hero-shot__image{
  display:block;
  width:max-content;
  max-width:none;
  transform-origin:top left;
  transform:translate(-10px, -10px) scale(0.85);
}
.hero-app{
  border:1px solid #d3deec;
  border-radius:28px;
  background:#eef2f8;
  padding:28px;
  display:grid;
  grid-template-columns:235px 1fr;
  gap:18px;
  box-shadow:0 10px 30px rgba(11,31,58,.07);
}
.hero-app__left{
  border:1px solid #d3deec;
  border-radius:14px;
  background:#e9eef6;
  padding:18px;
}
.hero-app__left h3{
  font-size:37px;
  line-height:1.05;
  margin:0 0 16px;
}
.hero-pill{
  border:1px solid #d3deec;
  border-radius:10px;
  padding:8px 12px;
  margin-bottom:10px;
  font-weight:700;
  color:#36517a;
  background:#f4f7fc;
  font-size:13px;
}
.hero-app__right{display:flex;flex-direction:column;gap:8px}
.hero-step{
  border:1px solid #d3deec;
  border-radius:12px;
  background:#f1f4f9;
  padding:10px 20px;
}
.hero-step h3{
  margin:0;
  font-size:20px;
  line-height:1.1;
}
.hero-step p{
  margin:4px 0 0;
  color:#405f88;
  font-size:14px;
  font-weight:600;
}
.hero-step--active{
  border:2px solid #3a7cff;
  background:#edf3ff;
}
.hero-field{
  margin-top:10px;
  border:1px solid #d6dfec;
  border-radius:9px;
  overflow:hidden;
}
.hero-field label{
  display:block;
  font-size:12px;
  font-weight:700;
  color:#25416b;
  background:#ecf2fb;
  border-bottom:1px dashed #cfdbec;
  padding:5px 10px;
}
.hero-field div{
  font-size:13px;
  color:#223b5f;
  background:#f7f9fe;
  padding:8px 12px;
  line-height:1.45;
}
.hero-upload{
  text-align:center;
  border:1px dashed #cfdbec;
  border-radius:7px;
}
.mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}
.mini{border:1px solid var(--border);border-radius:var(--r);padding:12px;background:#fff;box-shadow:var(--shadow2)}
.mini-title{font-weight:950}
.mini-sub{color:var(--muted);font-size:13px;margin-top:2px}

/* Device mock */
.device{border:1px solid var(--border);border-radius:22px;background:#fff;overflow:hidden;box-shadow:var(--shadow)}
.device-top{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--border);background:#f9fbff}
.dots{display:flex;gap:6px}
.dots span{width:10px;height:10px;border-radius:50%;border:1px solid #cbd5e1;background:#fff}
.device-title{font-weight:950;font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}

.pill{
  font-size:12px;font-weight:950;padding:6px 10px;border-radius:999px;
  border:1px solid rgba(0,102,255,.25);
  background:rgba(0,102,255,.10);
  color:var(--bluePressed);
}

.device-body{display:grid;grid-template-columns:160px 1fr;min-height:460px}
.device-left{padding:12px;border-right:1px solid var(--border);background:#fff}
.navitem{padding:10px 10px;border-radius:14px;color:var(--muted);font-size:13px;font-weight:950;margin-bottom:6px}
.navitem.active{
  color:var(--bluePressed);
  background:rgba(0,102,255,.12);
  border:1px solid rgba(0,102,255,.20);
}
.sep{height:1px;background:var(--border);margin:10px 0}
.small{font-size:12px;font-weight:950}
.device-right{padding:12px;display:flex;flex-direction:column;gap:12px}

.card{border:1px solid var(--border);border-radius:18px;overflow:hidden;box-shadow:var(--shadow2)}
.card-head{display:flex;justify-content:space-between;gap:12px;padding:12px;border-bottom:1px solid var(--border);background:#f9fbff}
.h{font-weight:950;font-size:13px}
.p{color:var(--muted);font-size:12px;margin-top:2px}
.badges{display:flex;gap:8px;flex-wrap:wrap}
.badge{font-size:12px;font-weight:950;padding:6px 10px;border-radius:999px;border:1px solid var(--border);color:var(--muted);background:#fff}
.badge.warn{border-color:rgba(245,158,11,.25);background:rgba(245,158,11,.12);color:#92400e}
.field{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-top:1px solid #eef2ff;font-size:12px}
.label{color:var(--muted);font-weight:950}
.value{font-weight:950}

.tokens{padding:10px 12px;display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid #eef2ff}
.tokens span{
  font-size:12px;font-weight:950;padding:6px 10px;border-radius:999px;
  border:1px solid rgba(0,102,255,.22);
  background:rgba(0,102,255,.10);
  color:var(--bluePressed);
}

.editor{padding:12px;border-top:1px solid #eef2ff;font-size:12px;color:var(--muted);min-height:120px}
.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:12px;border-top:1px solid #eef2ff}
.hint{margin-left:auto;color:var(--muted);font-size:12px;font-weight:950}

.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.stat{border:1px solid var(--border);border-radius:18px;padding:12px;background:#fff;box-shadow:var(--shadow2)}
.n{font-weight:950;font-size:18px}
.t{color:var(--muted);font-size:12px;font-weight:950;margin-top:2px}

/* Sections */
.split{display:grid;grid-template-columns:1.05fr .95fr;gap:26px;align-items:start}
.bullets{margin:0;padding-left:18px;color:var(--muted)}
.bullets li{margin:8px 0}
.panel{border:1px solid var(--border);border-radius:18px;padding:16px;background:#fff;box-shadow:var(--shadow2)}
.panel-title{font-weight:950;margin-bottom:10px}
.list{display:flex;flex-direction:column;gap:10px}
.li{display:flex;justify-content:space-between;border:1px solid var(--border);border-radius:14px;padding:12px;font-weight:950;background:#fff}
.panel-foot{margin-top:12px;color:var(--muted);font-size:13px;font-weight:900}

.head{max-width:720px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:22px}
.box{border:1px solid var(--border);border-radius:18px;padding:18px;background:#fff;box-shadow:var(--shadow2)}
.num{
  width:36px;height:36px;border-radius:14px;display:flex;align-items:center;justify-content:center;
  background:rgba(0,102,255,.12);
  border:1px solid rgba(0,102,255,.20);
  color:var(--bluePressed);
  font-weight:950;margin-bottom:10px
}

.bcc{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
.bccgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.good{border-color:rgba(0,102,255,.26)}

/* Pricing */
.prices{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:28px;
  margin-top:24px;
  align-items:stretch;
  padding-top:18px;
  padding-bottom:10px;
}

.price{
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  background:#fff;
  box-shadow:var(--shadow2);
  display:flex;
  flex-direction:column;
  min-height: 430px;
  position:relative;
  transform-origin:center;
}

.price.rec{
  border-color:rgba(0,102,255,.35);
  box-shadow:0 32px 68px rgba(0,102,255,.14);
  transform:scale(1.10);
  z-index:2;
  margin:0 10px;
}

.tag{
  position:absolute;
  top:-14px;
  left:50%;
  transform:translateX(-50%);
  font-size:12px;
  font-weight:800;
  padding:6px 14px;
  border-radius:999px;
  white-space:nowrap;
  background:var(--blue);
  color:#fff;
  border:none;
  box-shadow:0 10px 26px rgba(0,102,255,.28);
}

.top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.name{font-weight:950}
.money{font-weight:950;font-size:34px;letter-spacing:-0.02em}
.money span{font-size:14px;color:var(--muted);font-weight:950}
.price ul{margin:14px 0 0}

.btn-row{
  margin-top:auto;
  padding-top:16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.price-cta-slot{
  min-height:28px;
  margin-top:10px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}

.price-cta-slot .cta-link{
  margin-top:0;
  white-space:nowrap;
  line-height:1;
}

/* Compare table */
.table{
  margin-top:42px;
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow2)
}
.tablehead{padding:14px 16px;border-bottom:1px solid var(--border);font-weight:950;background:#f9fbff}
.tablescroll{overflow:auto}
table{width:100%;border-collapse:collapse;min-width:980px}
th,td{padding:12px 14px;border-bottom:1px solid var(--border);font-size:14px}
th{text-align:left;font-weight:950;background:#f9fbff}
td:nth-child(n+2), th:nth-child(n+2){text-align:center}
tbody tr:nth-child(even) td{background:#fbfdff}

/* FAQ */
.faq{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}
details{border:1px solid var(--border);border-radius:18px;padding:14px 16px;background:#fff;box-shadow:var(--shadow2)}
summary{cursor:pointer;font-weight:950}
details p{color:var(--muted);margin:10px 0 0}

/* Final CTA */
.finalbox{
  border:1px solid var(--border);border-radius:22px;padding:22px;
  display:flex;justify-content:space-between;align-items:center;gap:18px;
  background:linear-gradient(135deg, rgba(0,102,255,.10), rgba(255,255,255,.86));
  box-shadow:var(--shadow)
}
.finalcta{text-align:right}
.finalcta .muted{transform:translateY(50%)}

/* Footer */
.footer{border-top:1px solid var(--border);background:#fff;padding:22px 0}
.foot{display:flex;justify-content:space-between;align-items:center;gap:16px}

/* Simple internal page layout */
.page-hero{padding:56px 0 28px;}
.kicker{display:inline-flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.kicker .chip{background:#fff}
.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}
.card-grid--auth .box{
  display:flex;
  flex-direction:column;
}
.card-grid--auth .auth-card-action{
  margin-top:auto;
  padding-top:10px;
  padding-bottom:18px;
}
.note{
  border:1px solid var(--border);border-radius:18px;padding:16px;background:#fff;box-shadow:var(--shadow2);
  color:var(--muted)
}

.auth-shell{
  width:min(480px, 100%);
  margin-top:18px;
}
.auth-form{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.auth-form .btn{margin-top:10px;width:fit-content}
.auth-links-row{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.auth-intent-note{
  margin:0 0 10px;
  color:#3f5f87;
}
.auth-status{
  min-height:20px;
  margin-top:12px;
  color:#3f5f87;
  font-weight:700;
}
.auth-admin-link{
  margin-top:14px;
}
.auth-admin-link a{
  text-decoration:underline;
  text-underline-offset:3px;
}

@media (max-width:1100px){
  .prices{grid-template-columns:1fr 1fr}
  .price.rec{transform:scale(1.07); margin:0 8px;}
  .table{margin-top:34px;}
}
@media (max-width:960px){
  .nav{justify-content:center}
  .nav .brand{width:100%;justify-content:center}
  .navlinks{justify-content:center;flex-wrap:wrap}
  .hero-grid{grid-template-columns:1fr}
  .hero-visual{min-height:auto}
  .hero-shot{
    position:relative;
    width:100%;
    height:auto;
    transform:none !important;
  }
  .hero-shot__image{
    width:100%;
    max-width:100%;
    transform:none !important;
  }
  .mini-grid{grid-template-columns:1fr}
  .device-body{grid-template-columns:1fr}
  .device-left{display:none}
  .split{grid-template-columns:1fr}
  .grid3{grid-template-columns:1fr}
  .bcc{grid-template-columns:1fr}
  .bccgrid{grid-template-columns:1fr}
  .prices{grid-template-columns:1fr}
  .price.rec{transform:scale(1.03); margin:0;}
  .faq{grid-template-columns:1fr}
  .finalbox{flex-direction:column;align-items:flex-start}
  .finalcta{text-align:left}
  table{min-width:860px}
  .table{margin-top:24px;}
  .card-grid{grid-template-columns:1fr}
}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Modal */
.modal{position:fixed;inset:0;display:none;z-index:9999}
.modal.is-open{display:block}
.modal__overlay{position:absolute;inset:0;background:rgba(11,31,58,.55);backdrop-filter:blur(6px)}
.modal__dialog{
  position:relative;
  width:min(560px, calc(100% - 28px));
  margin:8vh auto 0;
  background:#fff;
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.modal__head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  padding:16px 18px;
  background:#f9fbff;
  border-bottom:1px solid var(--border);
}
.modal__title{font-weight:950;letter-spacing:-0.02em}
.modal__sub{color:var(--muted);font-size:13px;margin-top:2px}
.modal__x{
  border:1px solid var(--border);
  background:#fff;
  border-radius:12px;
  width:38px;height:38px;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(11,31,58,.06);
}
.modal__body{padding:18px}
.modal__dialog--contacts{
  width:min(780px, calc(100% - 28px));
}
.contacts-modal__actions{
  flex-wrap:nowrap;
}
.contacts-modal__actions > *{
  white-space:nowrap;
}
.contacts-modal__actions .btn{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  font-size:14px;
  font-weight:950;
  padding:12px 16px;
  align-items:center;
  justify-content:center;
}
.contacts-test-flow{
  border-style:dashed;
  background:#f9fbff;
}

/* Demo content */
.demo__label{display:block;font-weight:950;font-size:13px;color:var(--muted);margin-bottom:6px}
.demo__input{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  outline:none;
  font-weight:700;
}
.demo__input:focus{border-color:rgba(0,102,255,.55);box-shadow:0 0 0 4px rgba(0,102,255,.12)}
.demo__row{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px;align-items:center}
.demo__fine{color:var(--muted);font-size:12px;margin-top:10px;font-weight:800}
.demo__progress{display:flex;flex-direction:column;gap:10px}
.demo__bar{height:12px;border-radius:999px;background:#eef3fb;border:1px solid var(--border);overflow:hidden}
.demo__bar span{display:block;height:100%;width:0%;background:linear-gradient(90deg, var(--blue), var(--green));transition:width .25s ease}
.demo__status{color:var(--muted);font-weight:900;font-size:13px}
.demo__success{font-weight:950;margin-bottom:10px}

/* App UI additions */
.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:14px}
.input, .select, .textarea{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  outline:none;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  line-height:1.55;
  font-weight:500;
  background:#fff;
}

.compose-page input,
.compose-page textarea,
.compose-page .attachments-section,
.compose-page .attachments-section *{
  font-size:var(--standard-text-size);
}

.compose-page input::placeholder,
.compose-page textarea::placeholder{
  font-size:var(--standard-text-size);
  color:var(--placeholder-color);
}
.select{font-weight:700}
.textarea{min-height:180px;resize:vertical;font-weight:500;color:var(--text)}
.input:focus, .select:focus, .textarea:focus{border-color:rgba(0,102,255,.55);box-shadow:0 0 0 4px rgba(0,102,255,.12)}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.kpi{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}
.kpi .box{padding:14px}
.table-lite{border:1px solid var(--border);border-radius:18px;overflow:hidden;background:#fff;box-shadow:var(--shadow2);margin-top:14px}
.table-lite .th{background:#f9fbff;border-bottom:1px solid var(--border);font-weight:950}
.table-lite .row{display:grid;grid-template-columns:1.4fr 1.2fr 1fr .8fr;gap:10px;padding:12px 14px;border-bottom:1px solid var(--border);align-items:center;font-size:14px}
.table-lite .row:last-child{border-bottom:none}
.table-lite#customValuesTable .row{grid-template-columns:1.1fr 1.2fr 1.2fr 1.1fr;align-items:flex-start}
.insert-cell-missing{
  border-color:rgba(239,68,68,.45)!important;
  background:rgba(239,68,68,.07)!important;
}
.micro.ok{color:#0f5132}
.micro.err{color:#7f1d1d}
.pill2{font-size:12px;font-weight:950;padding:6px 10px;border-radius:999px;border:1px solid var(--border);color:var(--muted);background:#fff;display:inline-flex;gap:6px;align-items:center}
.pill2.ok{border-color:rgba(43,182,115,.25);background:rgba(43,182,115,.12);color:#0f5132}
.pill2.err{border-color:rgba(239,68,68,.25);background:rgba(239,68,68,.10);color:#7f1d1d}
.panel2{border:1px solid var(--border);border-radius:18px;padding:16px;background:#fff;box-shadow:var(--shadow2)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}
@media (max-width:960px){
  .form-row{grid-template-columns:1fr}
  .grid2{grid-template-columns:1fr}
  .kpi{grid-template-columns:1fr}
  .table-lite .row{grid-template-columns:1fr;gap:6px}
  .compose-editor-head{flex-wrap:wrap}
  .contacts-modal__actions{
    flex-wrap:wrap;
  }
}


/* Conditional sections UI */
.section-card{
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow2);
  padding:14px;
  margin-bottom:12px;
}
.section-head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.section-title{font-weight:950}
.section-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.btn-xs{padding:7px 10px;border-radius:12px;font-size:12px}
.section-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:10px}
@media (max-width:960px){ .section-grid{grid-template-columns:1fr} }


/* Compose page layout */
body.compose-page{
  --sidebar-width:320px;
  --sidebar-collapsed-peek:52px;
  --header-height:64px;
}
body.compose-page.sidebar-collapsed{
  --sidebar-offset:calc((-1 * var(--sidebar-width)) + var(--sidebar-collapsed-peek));
}
body.compose-page:not(.sidebar-collapsed){
  --sidebar-offset:0px;
}

.container-wide{max-width:1300px}

body.compose-page .container-wide{
  max-width:1560px;
  padding-left:calc(var(--sidebar-width) + var(--sidebar-offset) + 24px);
  transition:padding-left 260ms cubic-bezier(.22,.61,.36,1);
}

.compose-layout{margin-top:16px}

.rail{
  position:fixed;
  left:0;
  top:var(--header-height);
  height:calc(100vh - var(--header-height));
  width:var(--sidebar-width);
  background:#fff;
  border-right:1px solid var(--border);
  z-index:40;
  transform:translateX(var(--sidebar-offset));
  transition:transform 260ms cubic-bezier(.22,.61,.36,1), width 260ms cubic-bezier(.22,.61,.36,1);
  overflow:visible;
}
.rail__inner{height:100%;display:flex;flex-direction:column;padding:12px}
.rail__brand{font-weight:950;letter-spacing:-0.02em}
.rail__body{overflow:auto;padding-right:4px}
.rail__footer{
  margin-top:auto;
  padding:12px 14px 14px;
}
.rail__settingsBtn{
  width:100%;
  justify-content:center!important;
}
.rail-section{
  padding:14px;
}
.rail-section__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 0 10px;
  border-bottom:1px solid rgba(11,31,58,.06);
  margin-bottom:0;
  cursor:pointer;
}
.rail-section--inserts .rail-section__header{cursor:default}
.rail-section__header:focus-visible{
  outline:2px solid rgba(0,102,255,.35);
  outline-offset:6px;
  border-radius:10px;
}
.rail-collapse-pill{
  width:14px;
  height:14px;
  border-radius:4px;
  box-shadow:
    0 4px 10px rgba(11,31,58,.14),
    inset 0 1px 0 rgba(255,255,255,.9);
}
.rail-collapse-pill .collapse-pill__glyph{
  font-size:9px;
}
.rail-collapse-pill--sm{
  width:12px;
  height:12px;
  border-radius:3px;
}
.rail-collapse-pill--sm .collapse-pill__glyph{
  font-size:8px;
}
.rail-section__body{
  margin-top:12px;
  max-height:1200px;
  opacity:1;
  overflow:hidden;
  transition:max-height 220ms cubic-bezier(.22,.61,.36,1), opacity 200ms ease;
}
.rail-section__body:not(.is-open){
  max-height:0;
  opacity:0;
}

.rail__toggle{
  position:absolute;
  top:50%;
  right:-10px;
  transform:translateY(-50%);
  width:24px;
  height:48px;
  border:none;
  border-radius:999px;
  background:linear-gradient(180deg, #fff 0%, #f3f7ff 100%);
  display:flex;
  flex-direction:column;
  gap:0;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 24px rgba(11,31,58,.18);
  z-index:2;
  cursor:pointer;
  transition:transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
}
.rail__toggle:hover{
  transform:translateY(-50%) scale(1.04);
  box-shadow:0 14px 30px rgba(11,31,58,.22);
}
.rail__toggle:focus-visible{
  outline:2px solid rgba(0,102,255,.35);
  outline-offset:3px;
}
.rail__toggleIcon{
  font-size:11px;
  line-height:1;
  font-weight:900;
  color:#1f3555;
  transition:transform 180ms ease, opacity 160ms ease;
}
.rail__toggle[aria-expanded="false"] .rail__toggleIcon{display:none}
.rail__toggle[aria-expanded="true"] .rail__toggleIcon{display:block}
.rail__toggleLabel{
  display:none;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:950;
  color:var(--bluePressed);
  opacity:.8;
  line-height:1;
  writing-mode:vertical-rl;
  text-orientation:mixed;
  transform:rotate(180deg);
}

body.compose-page.sidebar-collapsed .rail__brand,
body.compose-page.sidebar-collapsed .rail-section__header,
body.compose-page.sidebar-collapsed .rail__body{display:none}
body.compose-page.sidebar-collapsed .rail__footer{display:none}
body.compose-page.sidebar-collapsed .rail__inner{padding:12px 6px}
body.compose-page.sidebar-collapsed .rail__toggle{
  width:24px;
  height:84px;
  right:8px;
  border:1px solid rgba(0,102,255,.16);
  background:linear-gradient(180deg, #fbfdff 0%, #edf4ff 100%);
}
body.compose-page.sidebar-collapsed .rail__toggleLabel{display:block}
body.compose-page.sidebar-collapsed .rail__toggleIcon{display:none}

.compose-content{
  max-width:1296px;
  width:100%;
}
.compose-main-stack{
  display:flex;
  flex-direction:column;
  gap:var(--compose-section-gap, 24px);
}
.panel2{width:100%}

.row-split{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;flex-wrap:wrap}
.row-actions{display:flex;gap:10px;flex-wrap:wrap}
.stack{display:flex;flex-direction:column;gap:10px}
.stack .btn{justify-content:flex-start}
.rail__actions{
  margin-top:12px;
}
.rail__addInsertBtn{
  width:100%;
  justify-content:center!important;
}
.insert-row{
  position:relative;
  display:flex;
  align-items:center;
  min-width:0;
}
.insert-row .btn{
  width:100%;
  padding-right:12px;
  min-width:0;
}
.insert-row--custom .btn{
  padding-right:36px;
}
.insert-row__content{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  min-width:0;
}
.insert-row__label{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.insert-row__token{
  flex:0 0 auto;
  min-width:max-content;
  font-size:12px;
  white-space:nowrap;
}
.insert-row__label--token-only{
  flex:1 1 auto;
  min-width:0;
  font-weight:600;
}
.insert-row__delete{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:20px;
  height:20px;
  border:none;
  border-radius:999px;
  background:rgba(31,53,85,.08);
  color:#50627b;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  line-height:1;
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transition:opacity .14s ease, background .14s ease, color .14s ease;
}
.insert-row--custom:hover .insert-row__delete,
.insert-row--custom:focus-within .insert-row__delete{
  opacity:1;
  visibility:visible;
}
.insert-row__delete:hover{
  background:rgba(189,28,28,.14);
  color:#a11f2f;
}
.compose-section{padding:20px}
.compose-section{
  position:relative;
  z-index:1;
}
.compose-section__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 0 10px;
  border-bottom:1px solid rgba(11,31,58,.06);
}
.compose-section__headMain{
  width:100%;
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  flex-wrap:nowrap;
}
.compose-section__headMain .row-actions{
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
  margin-left:auto;
}
.compose-section__titleGroup{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex:1 1 auto;
}
.compose-section__titleGroup .panel-title{
  margin:0;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.compose-section__statusTick{
  width:25px;
  height:25px;
  border-radius:999px;
  border:2px solid rgba(22,163,74,.88);
  color:#15803d;
  display:none;
  align-items:center;
  justify-content:center;
  font-size:17px;
  font-weight:950;
  line-height:1;
  flex:0 0 auto;
  margin-left:auto;
  align-self:center;
  transition:all .16s ease;
}
.compose-section__statusTick.is-complete{
  display:inline-flex;
  border-color:#16a34a;
  background:rgba(22,163,74,.28);
  color:#166534;
  box-shadow:0 0 0 1px rgba(22,163,74,.22);
}
.compose-title-step{
  color:#6f8198;
  font-size:.92em;
  font-weight:800;
}
.compose-title-main{
  color:var(--text);
  font-weight:950;
}
.compose-section__collapse{
  width:28px;
  height:28px;
  border-radius:9px;
}
.compose-section__collapse:hover{
  transform:translateY(-1px) scale(1.02);
}
.compose-section__toggle{
  width:100%;
  text-align:left;
  background:transparent;
  border:none;
  cursor:pointer;
  padding:0;
}
.compose-section__toggle:focus-visible{
  outline:2px solid var(--ring, #74a7ff);
  outline-offset:6px;
  border-radius:12px;
}
.compose-section.is-collapsible:not(.is-open) .compose-section__head{
  min-height:44px;
  padding:4px 0;
}
.compose-section.is-collapsible:not(.is-open) .compose-section__headMain,
.compose-section.is-collapsible:not(.is-open) .compose-section__titleGroup,
.compose-section.is-collapsible:not(.is-open) .compose-section__headMain .row-actions{
  align-items:center;
}
.compose-section__body{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.recipients-actions{
  align-items:center;
  gap:8px;
}
.recipients-actions__btn{
  min-height:22px;
  padding:5px 10px;
  border-radius:10px;
  font-size:12px;
}
.signature-header{
  display:flex;
  align-items:center;
}
.signature-toggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:none;
  background:transparent;
  padding:0;
  cursor:pointer;
  font:inherit;
  color:inherit;
}
.signature-toggle > span:first-child{
  font-size:13px;
  font-weight:800;
  color:#425A78;
}
.signature-toggle-arrow{
  font-size:12px;
  line-height:1;
  transition:transform .16s ease;
}
#signatureDropdownToggle[aria-expanded="true"] .signature-toggle-arrow{
  transform:rotate(180deg);
}
.signature-dropdown{
  border:1px solid #ddd;
  padding:10px;
  background:#fff;
  border-radius:10px;
  max-width:420px;
}
#signatureList{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:10px;
}
#signatureList > div{
  display:flex;
  gap:8px;
  justify-content:flex-start;
  align-items:center;
  padding:6px 8px;
  border:1px solid var(--border);
  border-radius:8px;
  cursor:pointer;
}
#signatureList > div.is-active{
  border-color:#0E65FF;
  background:#f5f9ff;
}
#signatureList .signature-default-pill{
  margin-left:auto;
  font-size:11px;
  color:#0E65FF;
  font-weight:700;
}
.hidden{
  display:none !important;
}
#signatureModal:not(.hidden){
  display:block;
}
.modal-content{
  background:#fff;
  padding:20px;
  max-width:500px;
  margin:10% auto;
  border-radius:12px;
}
#signatureModal .modal-content{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.modal-content--signature{
  position:relative;
  width:min(860px, calc(100vw - 48px));
  max-width:860px;
  margin:5vh auto;
  max-height:90vh;
  overflow:auto;
}
.signature-manager-grid{
  display:grid;
  grid-template-columns:240px 1fr;
  gap:14px;
}
.signature-manager-list-wrap{
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px;
  background:#f9fbff;
}
.signature-manager-list-title{
  font-size:12px;
  font-weight:700;
  color:#5a6e8a;
  margin-bottom:10px;
}
.signature-manager-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:300px;
  overflow:auto;
}
.signature-manager-list button{
  text-align:left;
}
.signature-manager-editor-wrap{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.signature-manager-toolbar{
  display:flex;
  gap:8px;
}
.signature-manager-editor{
  min-height:220px;
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  outline:none;
}
.signature-manager-editor:empty::before{
  content:attr(data-placeholder);
  color:#6a7c92;
}
.signature-manager-editor img{
  max-width:100%;
  height:auto;
  display:block;
  margin-top:8px;
}
.signature-default-check{
  font-size:13px;
  color:#425A78;
}
.modal-actions{
  display:flex;
  gap:10px;
}
.modal-actions--signature{
  justify-content:space-between;
  align-items:center;
}
.modal-actions__right{
  display:flex;
  gap:10px;
}
.setting-item .input-with-unit{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.setting-item .input-with-unit span{
  color:#5a6e8a;
  font-size:13px;
  font-weight:600;
}
.setting-item .input-with-unit input{
  width:84px;
}
.signature-editor{
  position:relative;
  min-height:156px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:14px;
  line-height:1.5;
  overflow-wrap:anywhere;
  color:var(--text);
  outline:none;
}
.signature-editor:focus{
  border-color:rgba(0,102,255,.55);
  box-shadow:0 0 0 4px rgba(0,102,255,.12);
}
.signature-editor:empty::before,
.signature-editor.is-empty::before{
  content:attr(data-placeholder);
  color:#6a7c92;
  white-space:pre-line;
  pointer-events:none;
}
.signature-editor img{
  max-width:100%;
  height:auto;
  display:block;
  margin-top:10px;
  border-radius:8px;
}
.signature-editor img.is-selected{
  outline:2px solid rgba(0,102,255,.6);
  outline-offset:2px;
}
.signature-editor.is-resizing-image{
  user-select:none;
}
.signature-image-resize-handle{
  position:absolute;
  width:14px;
  height:14px;
  border:1px solid rgba(0,82,204,.9);
  background:#fff;
  border-radius:3px;
  box-shadow:0 2px 6px rgba(0,0,0,.18);
  transform:translate(-50%, -50%);
  z-index:5;
  cursor:nwse-resize;
  padding:0;
  display:none;
}
.signature-image-resize-handle.is-visible{
  display:block;
}
.compose-page #subject,
.compose-page .contacts-editor .textarea{
  font-size:var(--standard-text-size);
  line-height:1.5;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
.compose-page #body{
  line-height:1.5;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
.compose-page #subject{
  font-weight:500;
}
.attachments-section{
  margin-top:12px;
}
.attachments-dropzone{
  border:1px dashed #ccc;
  padding:12px;
  cursor:pointer;
  text-align:center;
  border-radius:6px;
}
.attachments-dropzone p{
  margin:0;
  color:var(--placeholder-color);
}
.attachments-dropzone.dragover{
  background:rgba(0,0,0,0.05);
}
.attachments-list{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.attachment-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
}
.attachment-item__icon{
  width:32px;
  height:32px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  font-weight:800;
  letter-spacing:.2px;
  flex:0 0 auto;
  border:1px solid transparent;
}
.attachment-item__icon--pdf{
  color:#b3261e;
  background:#fde8e7;
  border-color:#f3beb9;
}
.attachment-item__icon--excel{
  color:#20603d;
  background:#e9f7ef;
  border-color:#b9e1c6;
}
.attachment-item__icon--word{
  color:#1d4f91;
  background:#eaf1ff;
  border-color:#c3d5fa;
}
.attachment-item__icon--image{
  color:#7a4b00;
  background:#fff4d9;
  border-color:#f2ddab;
}
.attachment-item__icon--default{
  color:#4f566b;
  background:#edf0f5;
  border-color:#d9deea;
}
.attachment-item__content{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.attachment-item__name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:600;
}
.attachment-item__size{
  color:var(--muted);
  font-size:12px;
  line-height:1.1;
}
.attachment-item__remove{
  margin-left:auto;
  border:none;
  background:transparent;
  color:#6e7587;
  cursor:pointer;
  padding:2px;
  line-height:1;
  font-size:14px;
  border-radius:6px;
}
.attachment-item__remove:hover{
  color:var(--text);
  background:#edf0f5;
}
.compose-section.is-collapsible:not(.is-open) .compose-section__body{display:none}
.insert-group{padding:2px 0}
.insert-format-row{
  display:flex;
  align-items:center;
  gap:6px;
  margin:8px 0;
  flex-wrap:nowrap;
}
.contact-editor-toolbar__format{
  display:flex;
  align-items:center;
  gap:6px;
}
.contact-editor-toolbar{
  margin:0;
  flex-shrink:0;
}
.contact-editor-toolbar .btn-xs,
.contact-editor-toolbar .insert-font-select{
  min-height:var(--format-control-height);
}
.inline-format-controls .btn-xs,
.inline-format-controls .insert-font-select,
.insert-format-row .btn-xs,
.insert-format-row .insert-font-select{
  height:var(--format-control-height);
}
.insert-font-select{
  box-sizing:border-box;
  margin:0;
  max-width:90px;
  min-width:86px;
  width:auto;
  padding:0 30px 0 10px;
  border-radius:var(--format-control-radius);
  border:1px solid var(--format-control-border);
  background:var(--format-control-bg);
  background-image:var(--format-control-arrow-icon);
  background-repeat:no-repeat;
  background-position:right 8px center;
  background-size:14px 14px;
  box-shadow:var(--format-control-shadow);
  font-size:12px;
  font-weight:950;
  font-family:inherit;
  line-height:1;
  color:var(--text);
  appearance:none;
  -webkit-appearance:none;
  transition:transform .10s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}
.insert-font-select:hover{
  border-color:var(--format-control-hover-border);
  transform:translateY(-1px);
  box-shadow:var(--format-control-hover-shadow);
}
.insert-font-select:focus{
  border-color:var(--format-control-focus-border);
  box-shadow:var(--format-control-focus-shadow);
}
.insert-font-select:disabled{
  opacity:.58;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}
.inline-format-controls{
  display:flex;
  align-items:center;
  gap:6px;
}
.inline-format-controls .insert-font-select{max-width:86px}
.compose-editor-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.compose-editor-head .demo__label{
  margin:0;
}
.compose-editor-head__labelWrap{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.compose-editor-head__helper{
  font-size:12px;
  line-height:1.4;
}
.textarea-rich{
  min-height:180px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.textarea-rich a{
  color:var(--blue);
  text-decoration:underline;
  cursor:pointer;
}
.textarea-rich:empty:before{
  content:attr(data-placeholder);
  color:#8ea0b8;
}
.editor-context-menu{
  position:fixed;
  z-index:1400;
  min-width:148px;
  border:1px solid #d5dfef;
  border-radius:10px;
  background:#fff;
  box-shadow:0 12px 30px rgba(15,23,42,.18);
  padding:6px;
}
.editor-context-menu[hidden]{
  display:none;
}
.editor-context-menu__item{
  width:100%;
  border:none;
  background:transparent;
  border-radius:8px;
  padding:8px 10px;
  text-align:left;
  font-size:13px;
  font-weight:600;
  color:#1f2a44;
  cursor:pointer;
}
.editor-context-menu__item:hover{
  background:#eef4ff;
}
.editor-context-menu__item:disabled{
  opacity:.45;
  cursor:not-allowed;
  background:transparent;
}
.message-token{
  border-radius:0;
  padding:0;
  background:transparent;
}
.compose-list-row{grid-template-columns:minmax(260px, 1fr)}
.recipients-toolbar{margin-top:0}
.contacts-editor{display:flex;flex-direction:column;gap:10px}
.contact-editor-toolbar .insert-font-select{min-width:86px}
@media (max-width: 640px){
  .contact-editor-field__head{
    flex-wrap:wrap;
    align-items:flex-start;
  }
  .contact-editor-toolbar{
    flex-wrap:wrap;
  }
}
.contact-row{
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}
.contact-row__head{
  width:100%;
  border:none;
  background:transparent;
  text-align:left;
  padding:12px 14px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  cursor:pointer;
}
.contact-row__meta{display:flex;align-items:center;gap:10px}
.contact-row__name{font-weight:900}
.contact-row__body{display:none;padding:0 14px 14px}
.contact-row.is-open .contact-row__body{display:block}
.contact-editor-field{margin-top:10px}
.contact-editor-custom{margin-top:8px}
.contact-editor-field.is-disabled{opacity:.72}
.contact-editor-field__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
}
.contact-editor-field__head .demo__label{
  margin:0;
  white-space:nowrap;
}
.contact-editor-field__toggle{margin:6px 0}
.contact-editor-field__na-state{
  margin-top:4px;
  min-height:88px;
  border:1px solid #cfddeb;
  border-radius:12px;
  background:linear-gradient(180deg, #f5f9ff 0%, #edf4ff 100%);
  color:#355276;
  padding:12px 13px;
  font-weight:700;
  display:flex;
  align-items:center;
  pointer-events:none;
  user-select:none;
}

.collapse-pill{
  width:28px;
  height:28px;
  border:none;
  border-radius:9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg, #fff 0%, #f3f7ff 100%);
  border:1px solid rgba(0,102,255,.18);
  box-shadow:
    0 10px 24px rgba(11,31,58,.18),
    inset 0 1px 0 rgba(255,255,255,.9);
  color:#1f3555;
  cursor:pointer;
  transition:transform 200ms ease, box-shadow 200ms ease, background 150ms ease;
  flex-shrink:0;
}
.collapse-pill:hover{
  transform:translateY(-1px);
  box-shadow:
    0 14px 30px rgba(11,31,58,.22),
    inset 0 1px 0 rgba(255,255,255,.95);
  background:linear-gradient(180deg, #fff 0%, #ebf3ff 100%);
}
.collapse-pill:active{transform:translateY(2px)}
.collapse-pill:focus-visible{
  outline:2px solid rgba(0,102,255,.35);
  outline-offset:2px;
}
.collapse-pill__glyph{
  font-size:11px;
  line-height:1;
  font-weight:900;
  display:inline-flex;
  transition:transform .24s ease;
}
.compose-section.is-open .collapse-pill__glyph{
  transform:rotate(180deg);
}

/* Compose theme system */
body.compose-page{
  --compose-bg:#f5f8fe;
  --compose-rail-bg:#f6f9ff;
  --compose-rail-border:#d7e3f3;
  --compose-panel-bg:#ffffff;
  --compose-panel-border:#dce6f2;
  --compose-panel-shadow:0 12px 24px rgba(11,31,58,.06);
  --compose-radius:16px;
  --compose-density-gap:16px;
  --compose-section-gap:24px;
  --compose-font:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  --compose-text:#0b1f3a;
  --format-control-height:32px;
  --format-control-radius:12px;
  --format-control-bg:#fff;
  --format-control-border:#cfe0ee;
  --format-control-shadow:0 10px 18px rgba(11,31,58,.06), 0 2px 0 rgba(11,31,58,.06);
  --format-control-hover-border:#bcd3e7;
  --format-control-hover-shadow:0 14px 24px rgba(11,31,58,.08), 0 2px 0 rgba(11,31,58,.06);
  --format-control-focus-border:#8eb1d1;
  --format-control-focus-shadow:0 0 0 4px rgba(0,102,255,.12), 0 14px 24px rgba(11,31,58,.08), 0 2px 0 rgba(11,31,58,.06);
  --format-control-arrow-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23445f7c' d='M4.22 5.97a.75.75 0 0 1 1.06.03L8 8.86 10.72 6a.75.75 0 1 1 1.08 1.04l-3.26 3.4a.75.75 0 0 1-1.08 0L4.19 7.04a.75.75 0 0 1 .03-1.07z'/%3E%3C/svg%3E");
}
body.compose-page main{
  background:var(--compose-bg);
  font-family:var(--compose-font);
}
body.compose-page .compose-layout{gap:var(--compose-density-gap)}
body.compose-page .rail{
  background:var(--compose-rail-bg);
  border-color:var(--compose-rail-border);
}
body.compose-page .panel2{
  background:var(--compose-panel-bg);
  border-color:var(--compose-panel-border);
  border-radius:var(--compose-radius);
  box-shadow:var(--compose-panel-shadow);
  color:var(--compose-text);
}
body.compose-page .compose-main-stack > .panel2 + .panel2{margin-top:0!important}
body.compose-page .btn{
  border-radius:calc(var(--compose-radius) - 2px);
}
body.compose-page .btn-outline{
  border-color:var(--compose-panel-border);
}
body.compose-page .theme-switch{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  flex-wrap:wrap;
}
body.compose-page .theme-switch__label{
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
  margin-right:4px;
}
body.compose-page .theme-switch__btn{
  min-width:82px;
}
body.compose-page .theme-switch__btn.is-active{
  color:var(--bluePressed);
  border-color:rgba(0,102,255,.38);
  background:rgba(0,102,255,.10);
}

body.theme-gmail.compose-page{
  --compose-bg:#f7f9fc;
  --compose-rail-bg:#ffffff;
  --compose-rail-border:#f7f9fc;
  --compose-panel-bg:#ffffff;
  --compose-panel-border:transparent;
  --compose-panel-shadow:none;
  --compose-radius:16px;
  --compose-density-gap:16px;
  --compose-section-gap:16px;
  --compose-font:Arial, "Helvetica Neue", Helvetica, Roboto, sans-serif;
  --compose-text:#202124;
  --format-control-height:32px;
  --format-control-radius:999px;
  --format-control-bg:#fff;
  --format-control-border:#cfe0ee;
  --format-control-shadow:0 10px 18px rgba(11,31,58,.06), 0 2px 0 rgba(11,31,58,.06);
  --format-control-hover-border:#bcd3e7;
  --format-control-hover-shadow:0 14px 24px rgba(11,31,58,.08), 0 2px 0 rgba(11,31,58,.06);
  --format-control-focus-border:#8eb1d1;
  --format-control-focus-shadow:0 0 0 4px rgba(0,102,255,.12), 0 14px 24px rgba(11,31,58,.08), 0 2px 0 rgba(11,31,58,.06);
  --format-control-arrow-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23445f7c' d='M4.22 5.97a.75.75 0 0 1 1.06.03L8 8.86 10.72 6a.75.75 0 1 1 1.08 1.04l-3.26 3.4a.75.75 0 0 1-1.08 0L4.19 7.04a.75.75 0 0 1 .03-1.07z'/%3E%3C/svg%3E");
}
body.theme-gmail.compose-page .btn{
  border-radius:999px;
}
body.theme-gmail.compose-page .container-wide{
  padding-left:calc(var(--sidebar-width) + var(--sidebar-offset) + clamp(30px, 3.3vw, 56px));
}
body.theme-gmail.compose-page .compose-layout{margin-top:22px}
body.theme-gmail.compose-page .rail{
  border-right:1px solid #f8f9fb;
}
body.theme-gmail.compose-page .rail__inner{
  padding:20px 18px;
}
body.theme-gmail.compose-page .rail__body{margin-top:18px}
body.theme-gmail.compose-page .panel2{
  padding:22px;
  border:none;
}
body.theme-gmail.compose-page .compose-main-stack > .panel2 + .panel2{margin-top:0!important}
body.theme-gmail.compose-page .form-row,
body.theme-gmail.compose-page .grid2,
body.theme-gmail.compose-page .toolbar{
  gap:16px;
}
body.theme-gmail.compose-page .compose-section__head{
  border-bottom:1px solid rgba(60,64,67,.12);
}
body.theme-gmail.compose-page .rail__toggle{
  border-radius:999px;
  background:#fff;
  box-shadow:none;
  border:1px solid #eceff3;
}

body.theme-outlook.compose-page{
  --compose-bg:#dde5f1;
  --compose-rail-bg:#dbe4f2;
  --compose-rail-border:#9fb2cb;
  --compose-panel-bg:#edf2fa;
  --compose-panel-border:#95abc7;
  --compose-panel-shadow:none;
  --compose-radius:6px;
  --compose-density-gap:16px;
  --compose-section-gap:32px;
  --compose-font:"Segoe UI", Tahoma, Arial, sans-serif;
  --compose-text:#1e3655;
  --format-control-height:30px;
  --format-control-radius:6px;
  --format-control-bg:linear-gradient(180deg,#f2f7ff 0%, #d7e3f5 100%);
  --format-control-border:#96adca;
  --format-control-shadow:inset 0 1px 0 rgba(255,255,255,.9);
  --format-control-hover-border:#7397c5;
  --format-control-hover-shadow:inset 0 1px 0 rgba(255,255,255,.9);
  --format-control-focus-border:#6c91be;
  --format-control-focus-shadow:0 0 0 3px rgba(77,123,184,.28), inset 0 1px 0 rgba(255,255,255,.85);
  --format-control-arrow-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23325982' d='M4.22 5.97a.75.75 0 0 1 1.06.03L8 8.86 10.72 6a.75.75 0 1 1 1.08 1.04l-3.26 3.4a.75.75 0 0 1-1.08 0L4.19 7.04a.75.75 0 0 1 .03-1.07z'/%3E%3C/svg%3E");
}
body.theme-outlook.compose-page .panel-title{letter-spacing:0}
body.theme-outlook.compose-page .compose-layout{margin-top:10px}
body.theme-outlook.compose-page .rail{
  border-right:1px solid #95abc7;
  box-shadow:inset -1px 0 0 #b5c6da;
}
body.theme-outlook.compose-page .rail__inner{padding:10px}
body.theme-outlook.compose-page .rail__body{margin-top:8px}
body.theme-outlook.compose-page .panel2{
  border-width:1px;
  border-style:solid;
  background:#f3f7fd;
}
body.theme-outlook.compose-page .compose-section{
  padding:14px;
}
body.theme-outlook.compose-page .compose-main-stack > .panel2 + .panel2{margin-top:0!important}
body.theme-outlook.compose-page .toolbar,
body.theme-outlook.compose-page .form-row,
body.theme-outlook.compose-page .grid2,
body.theme-outlook.compose-page .kpi{
  gap:8px;
}
body.theme-outlook.compose-page .btn{
  border-radius:6px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
  border-width:1px;
}
body.theme-outlook.compose-page .btn-secondary{
  background:linear-gradient(180deg,#f8fbff 0%, #dce8f8 100%);
  border-color:#7397c5;
  color:#1c3a5d;
}
body.theme-outlook.compose-page .btn-outline{
  background:linear-gradient(180deg,#f2f7ff 0%, #d7e3f5 100%);
  border-color:#96adca;
}
body.theme-outlook.compose-page .rail__toggle{
  border-radius:6px;
  background:linear-gradient(180deg,#f8fbff 0%, #ccdbf0 100%);
  border:1px solid #91a9c6;
  box-shadow:0 4px 12px rgba(20,49,84,.15);
}

body.theme-chatgpt.compose-page{
  --compose-bg:#f4f5f7;
  --compose-rail-bg:#eff1f4;
  --compose-rail-border:#d8dde3;
  --compose-panel-bg:#ffffff;
  --compose-panel-border:#e4e8ee;
  --compose-panel-shadow:0 8px 20px rgba(15,23,42,.05);
  --compose-radius:14px;
  --compose-density-gap:14px;
  --compose-section-gap:18px;
  --compose-font:Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --compose-text:#111827;
  --format-control-height:32px;
  --format-control-radius:10px;
  --format-control-bg:#fff;
  --format-control-border:#d1d8e0;
  --format-control-shadow:none;
  --format-control-hover-border:#b9c3d0;
  --format-control-hover-shadow:none;
  --format-control-focus-border:#8ea0b4;
  --format-control-focus-shadow:0 0 0 3px rgba(148,163,184,.22);
  --format-control-arrow-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2355697f' d='M4.22 5.97a.75.75 0 0 1 1.06.03L8 8.86 10.72 6a.75.75 0 1 1 1.08 1.04l-3.26 3.4a.75.75 0 0 1-1.08 0L4.19 7.04a.75.75 0 0 1 .03-1.07z'/%3E%3C/svg%3E");
}
body.theme-chatgpt.compose-page .compose-layout{margin-top:16px}
body.theme-chatgpt.compose-page .rail{
  border-right:1px solid #d8dde3;
  box-shadow:none;
}
body.theme-chatgpt.compose-page .rail__inner{padding:14px 14px 18px}
body.theme-chatgpt.compose-page .rail__body{margin-top:12px}
body.theme-chatgpt.compose-page .panel2{
  border:1px solid #e4e8ee;
  background:#fff;
  padding:18px;
}
body.theme-chatgpt.compose-page .compose-section__head{
  border-bottom:1px solid #e7ebf0;
}
body.theme-chatgpt.compose-page .btn{
  border-radius:10px;
  box-shadow:none;
}
body.theme-chatgpt.compose-page .btn-outline{
  background:#fff;
  border-color:#d3dae3;
}
body.theme-chatgpt.compose-page .btn-secondary{
  border-color:#c8d3df;
  color:#374151;
  background:#fff;
}
body.theme-chatgpt.compose-page .rail__toggle{
  border-radius:10px;
  border:1px solid #d3dae3;
  background:#fff;
  box-shadow:none;
}

body.theme-linear.compose-page{
  --compose-bg:#101217;
  --compose-rail-bg:#131722;
  --compose-rail-border:#2b3140;
  --compose-panel-bg:#171b26;
  --compose-panel-border:#30384a;
  --compose-panel-shadow:0 12px 26px rgba(3,6,13,.38);
  --compose-radius:12px;
  --compose-density-gap:14px;
  --compose-section-gap:18px;
  --compose-font:Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --compose-text:#e7ebf3;
  --format-control-height:32px;
  --format-control-radius:8px;
  --format-control-bg:#121722;
  --format-control-border:#3a4356;
  --format-control-shadow:none;
  --format-control-hover-border:#4a556e;
  --format-control-hover-shadow:none;
  --format-control-focus-border:#6d7d9a;
  --format-control-focus-shadow:0 0 0 3px rgba(125,146,184,.24);
  --format-control-arrow-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23aeb9cc' d='M4.22 5.97a.75.75 0 0 1 1.06.03L8 8.86 10.72 6a.75.75 0 1 1 1.08 1.04l-3.26 3.4a.75.75 0 0 1-1.08 0L4.19 7.04a.75.75 0 0 1 .03-1.07z'/%3E%3C/svg%3E");
}
body.theme-linear.compose-page main{color:#dbe2f2}
body.theme-linear.compose-page .page-hero > .container > h1{color:#eef2ff}
body.theme-linear.compose-page .theme-switch__label{color:#9aa5be}
body.theme-linear.compose-page .theme-switch__btn.is-active{
  color:#dbe7ff;
  border-color:#576586;
  background:rgba(83,109,165,.28);
}
body.theme-linear.compose-page .rail{
  border-right:1px solid #2c3344;
  box-shadow:inset -1px 0 0 #1b2130;
}
body.theme-linear.compose-page .rail__inner{padding:14px}
body.theme-linear.compose-page .rail__body{margin-top:10px}
body.theme-linear.compose-page .panel2{
  border:1px solid #30384a;
  background:#171b26;
  padding:18px;
}
body.theme-linear.compose-page .compose-section__head{border-bottom:1px solid #2d3548}
body.theme-linear.compose-page .panel-title,
body.theme-linear.compose-page .compose-title-main,
body.theme-linear.compose-page .compose-title-step{color:#ecf1ff}
body.theme-linear.compose-page .muted,
body.theme-linear.compose-page .micro,
body.theme-linear.compose-page .demo__label{color:#a8b2c6}
body.theme-linear.compose-page .input,
body.theme-linear.compose-page .textarea,
body.theme-linear.compose-page .select,
body.theme-linear.compose-page .signature-editor{
  background:#101520;
  border-color:#394156;
  color:#e4e9f5;
}
body.theme-linear.compose-page{--placeholder-color:#7f8aa3}
body.theme-linear.compose-page .input::placeholder,
body.theme-linear.compose-page .textarea::placeholder{color:var(--placeholder-color)}
body.theme-linear.compose-page .btn{
  border-radius:8px;
  box-shadow:none;
}
body.theme-linear.compose-page .btn-outline{
  background:#121823;
  border-color:#3b4458;
  color:#dce5f7;
}
body.theme-linear.compose-page .btn-secondary{
  background:#1a2232;
  border-color:#4f5e7d;
  color:#dce7ff;
}
body.theme-linear.compose-page .pill2,
body.theme-linear.compose-page .collapse-pill,
body.theme-linear.compose-page .compose-section__statusTick{
  border-color:#3f4a62;
  background:#111725;
  color:#c2d1f5;
}
body.theme-linear.compose-page .rail__toggle{
  border-radius:8px;
  border:1px solid #404b62;
  background:#141b29;
  color:#dbe4f9;
  box-shadow:none;
}
body.theme-linear.compose-page .modal__dialog,
body.theme-linear.compose-page .overlay__panel{
  background:#171b26;
  border-color:#30384a;
  color:#e7ecf8;
}


/* Overlay preview */
.overlay{position:fixed;inset:0;display:none;z-index:9998}
.overlay.is-open{display:block}
.overlay__backdrop{position:absolute;inset:0;background:rgba(11,31,58,.55);backdrop-filter:blur(6px)}
.overlay__panel{
  position:relative;
  width:min(1020px, calc(100% - 28px));
  margin:6vh auto 0;
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:0 16px 36px rgba(11,31,58,.14);
  overflow:hidden;
}
.overlay__head{
  display:grid;
  grid-template-columns:1fr auto auto;
  align-items:flex-start;
  gap:16px;
  padding:16px 18px;
  background:#f9fbff;
  border-bottom:1px solid var(--border);
}
.overlay__title{font-weight:950;letter-spacing:-0.02em}
.overlay__sub{color:var(--muted);font-size:13px;margin-top:2px}
.overlay__actions{display:flex;gap:8px;flex-wrap:wrap}
.overlay__actions--left{justify-self:start}
.overlay__actions--right{justify-self:end}
.overlay__x{justify-self:end}

.review-progress{
  position:relative;
  width:min(420px, calc(100% - 32px));
  margin:0;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:0 16px 36px rgba(11,31,58,.18);
  padding:18px;
}
#reviewActionProgressOverlay{
  z-index:10020;
  align-items:center;
  justify-content:center;
}
#reviewActionProgressOverlay.is-open{
  display:flex;
}
#reviewActionProgressOverlay .overlay__backdrop{
  z-index:0;
}
#reviewActionProgressOverlay .review-progress{
  z-index:1;
}
.review-progress__title{
  font-weight:800;
  color:var(--text);
  margin-bottom:10px;
}
.review-progress__bar{
  height:8px;
  border-radius:999px;
  background:#e9f0fa;
  overflow:hidden;
}
.review-progress__bar span{
  display:block;
  height:100%;
  width:12%;
  border-radius:inherit;
  background:linear-gradient(90deg, var(--blue), #4d97ff);
  transition:width .2s ease;
}
.review-progress--completion{
  width:min(460px, calc(100% - 32px));
}
.review-progress__actions{
  margin-top:14px;
  display:flex;
  justify-content:flex-end;
}

#reviewActionCompletionOverlay{
  z-index:10021;
  align-items:center;
  justify-content:center;
}
#reviewActionCompletionOverlay.is-open{
  display:flex;
}
#reviewActionCompletionOverlay .overlay__backdrop{
  z-index:0;
}
#reviewActionCompletionOverlay .review-progress{
  z-index:1;
}

.overlay__body{padding:18px}
#previewOverlay .overlay__panel{
  height:min(88vh, calc(100vh - 32px));
  max-height:88vh;
  display:flex;
  flex-direction:column;
}
#previewOverlay .overlay__body{
  flex:1;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
}
.preview-nav{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
}
.review-validation-list{
  margin:0;
  padding-left:18px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.app-page-overlay .overlay__body{
  max-height:74vh;
  overflow:auto;
}
.app-page-overlay__panel{
  width:min(920px, calc(100% - 28px));
}
.app-page-overlay__panel--wide{
  width:min(1080px, calc(100% - 28px));
}
.app-page-overlay__head{
  align-items:center;
}
.template-page-actions,
.contacts-page-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.contacts-page-toolbar .input{
  flex:1 1 320px;
}
.contacts-page-groups{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.contacts-group{
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}
.contacts-group--empty{
  padding:16px;
}
.contacts-group__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid var(--border);
  background:#f9fbff;
}
.contacts-group__toggle{
  border:none;
  background:transparent;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0;
  font-weight:800;
  color:var(--text);
  cursor:pointer;
}
.contacts-group__arrow{
  font-size:12px;
  color:var(--muted);
}
.contacts-group__title{
  letter-spacing:-.01em;
}
.contacts-group__body{
  padding:10px 12px 12px;
}
.contacts-group__body.is-collapsed{
  display:none;
}
.contacts-group__columns,
.contacts-group__row{
  display:grid;
  gap:10px;
  grid-template-columns:30px minmax(130px,1.05fr) minmax(168px,1.2fr) minmax(132px,1fr) minmax(170px,1.1fr);
  align-items:center;
}
.contacts-group__columns > :nth-child(3),
.contacts-group__row > :nth-child(3){
  padding-right:10px;
}
.contacts-group__columns{
  font-size:12px;
  font-weight:800;
  color:var(--muted);
  padding:0 0 8px;
}
.contacts-group__row{
  border-top:1px solid #edf2fa;
  padding:9px 0;
}
.contacts-group__selectCell{
  display:flex;
  justify-content:center;
}
.contacts-group__empty{
  border-top:1px solid #edf2fa;
  padding-top:10px;
}
@media (max-width: 840px){
  .contacts-group__columns{
    display:none;
  }
  .contacts-group__row{
    grid-template-columns:24px 1fr;
    gap:6px 10px;
  }
  .contacts-group__row > :nth-child(3)::before{content:"Email: "; color:var(--muted); font-weight:700;}
  .contacts-group__row > :nth-child(4)::before{content:"Company: "; color:var(--muted); font-weight:700;}
  .contacts-group__row > :nth-child(3),
  .contacts-group__row > :nth-child(4),
  .contacts-group__row > :nth-child(5){
    grid-column:2;
  }
}
.table-lite--templates .row{
  grid-template-columns:1.2fr 1fr;
}
.templates-manage-list{
  margin-top:0;
  border:none;
  border-radius:0;
  box-shadow:none;
}
.templates-manage-list .th{
  background:transparent;
}
.templates-manage-list .row{
  padding-left:0;
  padding-right:0;
}
.table-lite--contacts-page .row{
  grid-template-columns:1.1fr 1.2fr 1fr 1.2fr;
}
.table-lite--import-preview .row{
  grid-template-columns:1fr;
}
.app-overlay-section-title{
  margin:14px 0 8px;
  font-size:15px;
  letter-spacing:-.01em;
}
.import-layout{
  display:grid;
  gap:14px;
}
.import-card{
  box-shadow:none;
  margin:0;
}
.import-upload-toolbar .select{
  flex:1 1 260px;
}
.import-dropzone{
  margin-top:12px;
  border:1.5px dashed #b9cbe1;
  background:#f7fbff;
  border-radius:14px;
  min-height:130px;
  padding:18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:6px;
  cursor:pointer;
  transition:border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.import-dropzone:hover{
  border-color:#7ea5cf;
  background:#f1f8ff;
}
.import-dropzone:focus-visible{
  outline:none;
  border-color:#5f96cf;
  box-shadow:0 0 0 3px rgba(0,102,255,.16);
}
.import-dropzone__icon{
  width:38px;
  height:38px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border:1px solid #d5e2f2;
  font-size:18px;
}
.import-dropzone__title{
  font-weight:800;
  font-size:14px;
}
.import-dropzone__sub{
  color:var(--muted);
  font-size:12px;
}
.import-dropzone.is-dragover{
  border-color:#317ed5;
  background:#ebf4ff;
  transform:translateY(-1px);
}
.import-dropzone.is-loaded{
  border-style:solid;
  border-color:rgba(43,182,115,.55);
  background:rgba(43,182,115,.10);
}
.file-drop-overlay{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:10000;
  background:rgba(15,23,42,.12);
  backdrop-filter:blur(2px);
}
.file-drop-overlay.is-open{
  display:flex;
}
.file-drop-overlay__inner{
  border:1px dashed #b9cbe1;
  border-radius:14px;
  background:#fff;
  padding:24px 28px;
  text-align:center;
  box-shadow:0 18px 60px rgba(2,6,23,.18);
}
.file-drop-overlay__title{
  font-weight:800;
  font-size:16px;
}
.file-drop-overlay__sub{
  margin-top:6px;
  color:var(--muted);
  font-size:12px;
}
.import-save-toolbar .input{
  flex:1 1 320px;
}

.carousel{
  display:flex;
  gap:14px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:80px;
  padding:2px 80px 10px;
}
.card-preview{
  min-width:min(860px, calc(100vw - 240px));
  max-width:860px;
  border:none;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  padding:0;
  scroll-snap-align:center;
}
.mail-client{
  min-height:360px;
  border:1px solid #d7e2ef;
  border-radius:12px;
  background:#fff;
  padding:14px;
  overflow:hidden;
}
.mail-main{min-width:0;display:flex;flex-direction:column}
.mail-fields{
  border-bottom:1px solid #e6edf7;
  padding-bottom:10px;
}
.mail-field-row{
  display:grid;
  grid-template-columns:70px 1fr;
  gap:8px;
  font-size:12px;
  line-height:1.4;
}
.mail-field-row + .mail-field-row{margin-top:5px}
.mail-field-label{font-weight:700;color:#4b5f78}
.mail-field-value{
  color:#1e2f46;
  min-width:0;
  word-break:break-word;
}
.mail-body-box{
  margin-top:10px;
  border:1px solid #dfe8f4;
  border-radius:8px;
  background:#fbfdff;
  padding:10px 11px;
  min-height:235px;
}
.mail-body{
  white-space:pre-wrap;
  word-break:break-word;
  font-size:13px;
  line-height:1.52;
}
.mail-body a,
.mail-signature a{
  color:var(--blue);
  text-decoration:underline;
  cursor:pointer;
}
.mail-body ul,
.mail-body ol{
  margin:0;
  padding-left:20px;
}
.mail-body li{
  margin:0;
  line-height:inherit;
}
.mail-signature{
  margin-top:2px;
  white-space:normal;
  word-break:normal;
  overflow-wrap:normal;
}
.mail-signature p,
.mail-signature div{
  margin:0;
  white-space:normal;
}
.mail-signature p + p,
.mail-signature div + div,
.mail-signature p + div,
.mail-signature div + p{
  margin-top:4px;
}
.mail-signature img{
  max-width:100%;
  height:auto;
  display:block;
  margin-top:10px;
  border-radius:8px;
}

/* ChatGPT preview — flat and airy */
.chatgpt-preview{
  font-family:Arial, "Helvetica Neue", Helvetica, Roboto, sans-serif;
  background:#fff;
  border-color:#dce5f2;
}
.chatgpt-preview .mail-field-label{color:#5f6368}
.chatgpt-preview .mail-field-value{color:#202124}
.chatgpt-preview .mail-body{
  color:#3c4043;
  line-height:1.58;
}

/* Linear preview — structured and dark */
.linear-preview{
  font-family:"Segoe UI", Tahoma, Arial, sans-serif;
  background:#151b28;
  border-color:#313a4d;
}
.linear-preview .mail-field-label{
  color:#9aa6be;
  font-weight:600;
}
.linear-preview .mail-field-value{color:#e8eefb}
.linear-preview .mail-body-box{
  background:#101520;
  border-color:#354058;
}
.linear-preview .mail-body{
  color:#d3ddf2;
  line-height:1.48;
}


@media (max-width:960px){
  .carousel{
    scroll-padding-inline:18px;
    padding-inline:18px;
  }
  .card-preview{min-width:min(680px, calc(100vw - 72px));max-width:760px}
}
@media (max-width:1040px){
  body.compose-page .container-wide{padding-left:16px}
  .compose-section{padding:16px}
  .compose-section__headMain{flex-wrap:wrap}
  .compose-section__titleGroup{width:100%}
  .rail{
    position:sticky;
    top:0;
    height:auto;
    width:100%;
    border-right:none;
    border-bottom:1px solid var(--border);
  }
  .rail__toggle{display:none}
  .compose-content{max-width:100%}
}
@media (min-width:1200px){
  body.compose-page .container-wide{
    padding-left:calc(var(--sidebar-width) + var(--sidebar-offset) + 34px);
  }
}
@media (min-width:1460px){
  body.compose-page .container-wide{
    padding-left:calc(var(--sidebar-width) + var(--sidebar-offset) + 48px);
  }
  .compose-content{max-width:1344px}
}

/* Billing/admin scaffold (placeholder) */
.admin-shell{max-width:1040px}
.admin-shell--narrow{max-width:680px}
.admin-section{margin-top:18px}
.admin-form{display:grid;gap:10px;max-width:440px}
.admin-note{margin-top:10px}
.admin-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.admin-kpis .box{display:flex;flex-direction:column;gap:4px}
.admin-table{width:100%;border-collapse:collapse;margin-top:10px}
.admin-table th,.admin-table td{padding:10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.admin-actions{display:flex;gap:8px;flex-wrap:wrap}
.admin-wrap{flex-wrap:wrap}


/* Customer billing/account scaffold */
.billing-shell{max-width:1040px}
.billing-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}
.billing-list{display:grid;gap:10px}
.billing-list div{display:flex;flex-direction:column;gap:2px}
.billing-list strong{font-size:16px;line-height:1.35}
.billing-actions{margin-top:16px}
@media (max-width:960px){
  .billing-grid{grid-template-columns:1fr}
}

/* Tracking page */
.tracking-shell{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.tracking-kpis{
  display:grid;
  grid-template-columns:repeat(7, minmax(120px, 1fr));
  gap:12px;
}
.tracking-card{
  padding:14px;
}
.tracking-card__n{
  font-weight:950;
  font-size:20px;
  line-height:1.1;
}
.tracking-card__t{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.tracking-date-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.tracking-table-wrap{
  overflow:auto;
  margin-top:10px;
}
.tracking-table{
  width:100%;
  border-collapse:collapse;
  min-width:1120px;
}
.tracking-table th,
.tracking-table td{
  border-bottom:1px solid var(--border);
  padding:10px;
  text-align:left;
  vertical-align:top;
  font-size:13px;
}
.tracking-table th{
  background:#f9fbff;
  font-weight:900;
}
.tracking-row-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
@media (max-width:1200px){
  .tracking-kpis{grid-template-columns:repeat(3, minmax(120px, 1fr));}
}
@media (max-width:960px){
  .tracking-kpis{grid-template-columns:repeat(2, minmax(120px, 1fr));}
  .tracking-date-row{grid-template-columns:1fr;}
}
