/* Evergreen Code storefront.
   Layout concept: a quiet product shelf. Narrow reading column for words, a wider
   shelf for products; the real product (live demo) does the selling. */
@font-face { font-family: "Familjen Grotesk"; src: url("fonts/familjen-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("fonts/familjen-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #f5f7f4;      /* page: cool off-white with a faint green bias */
  --surface: #ffffff;    /* cards, panels */
  --ink: #15201a;        /* text */
  --muted: #586860;      /* secondary text */
  --line: #d5ddd7;       /* borders */
  --pine: #1d5c45;       /* accent: buttons, links */
  --on-pine: #ffffff;
  --mint: #e3eee7;       /* soft accent fill */
  --sheet: #fbfcfa;      /* spreadsheet cells in illustrations */
  --font-display: "Familjen Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 10px;
  --wide: 1400px;
  --gutter: max(16px, min(4vw, 56px));
  --narrow: 720px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1512; --surface: #161e1a; --ink: #e2eae4; --muted: #9caca2; --line: #27332d;
    --pine: #74c79e; --on-pine: #0b1510; --mint: #1b2a22; --sheet: #121a16; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1512; --surface: #161e1a; --ink: #e2eae4; --muted: #9caca2; --line: #27332d;
  --pine: #74c79e; --on-pine: #0b1510; --mint: #1b2a22; --sheet: #121a16; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--font-body); }
img { max-width: 100%; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; }
code, pre { font-family: var(--font-mono); font-size: 0.88em; }
:not(pre) > code { background: var(--mint); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wide); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.narrow { max-width: var(--narrow); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section + .section { border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 60ch; }
.eyebrow { font: 600 13px/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine); }
.muted { color: var(--muted); }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 19px/1 var(--font-display); }
.brand svg { width: 26px; height: 26px; flex: none; }
.site-nav { display: flex; gap: 6px 20px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--pine); text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); margin-top: 0; padding-block: 36px 96px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: var(--r); border: 1px solid var(--pine); background: var(--pine); color: var(--on-pine); font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--pine); }
.btn.ghost:hover { background: var(--mint); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Home hero: a full-bleed pine band. One spreadsheet at the back, the three products it becomes in front. */
.hero-band { --band: #1d5c45; --band-ink: #ffffff; --band-soft: #cfe6da; background: var(--band); color: var(--band-ink); padding-block: clamp(48px, 7vw, 96px); overflow: hidden; }
:root[data-theme="dark"] .hero-band { --band: #12382a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-band { --band: #12382a; } }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-copy h1 { font-size: clamp(40px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -0.03em; max-width: 13ch; }
.hero-lede { font-size: clamp(17px, 1.9vw, 20px); line-height: 1.55; color: var(--band-soft); max-width: 42ch; }
.hero-fine { font-size: 14px; color: var(--band-soft); max-width: 54ch; }
.btn.light { background: #ffffff; border-color: #ffffff; color: #15201a; }
.btn.outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: #ffffff; }
.btn.outline-light:hover { background: rgba(255,255,255,.1); }
.hero-band :focus-visible { outline-color: #ffffff; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .hero-copy h1 { max-width: 16ch; } }

/* The stage: fixed proportions so the overlap stays composed at every width */
.stage { position: relative; aspect-ratio: 1.1; min-width: 0; font-size: clamp(11px, 1.15vw, 14px); color: #15201a; }
@media (max-width: 900px) { .stage { max-width: 560px; width: 100%; justify-self: center; font-size: clamp(10px, 2.4vw, 14px); } }
.gsheet { position: absolute; left: 0; top: 4%; width: 74%; background: #ffffff; border-radius: 8px; overflow: hidden; transform: rotate(-4deg); box-shadow: 0 24px 50px rgba(5, 30, 20, .35); opacity: .96; }
.gs-cols, .gs-row { display: grid; grid-template-columns: 2.2em 6.5em 1fr 4em; }
.gs-cols span, .gs-row span { border-right: 1px solid #dfe5e1; border-bottom: 1px solid #dfe5e1; padding: .45em .6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 2.2em; }
.gs-cols span { background: #eef2ef; color: #6b7a71; text-align: center; font-size: .9em; }
.gs-row span:first-child { background: #eef2ef; color: #6b7a71; text-align: center; font-size: .9em; }
.gs-row.hl span:not(:first-child) { background: #e3f1e9; box-shadow: inset 0 0 0 0 #1d5c45; }
.gs-row.hl span:nth-child(3) { outline: 2px solid #1d5c45; outline-offset: -2px; }
.gs-tabs { display: flex; gap: 2px; padding: .4em .5em 0; background: #eef2ef; }
.gs-tabs span { padding: .35em .9em; border-radius: 6px 6px 0 0; color: #6b7a71; }
.gs-tabs .on { background: #ffffff; color: #1d5c45; font-weight: 600; }

.mock { position: absolute; display: flex; flex-direction: column; gap: .55em; background: #ffffff; color: #15201a; border-radius: 12px; padding: 1.1em 1.2em 1.2em; text-decoration: none; box-shadow: 0 22px 44px rgba(5, 30, 20, .4); }
.m-name { font: 700 1.05em/1.2 var(--font-display); color: #1d5c45; margin-bottom: .15em; }
.m-sched { right: 0; top: 0; width: 56%; }
.m-lib { right: 0; top: 61%; width: 42%; }
.m-quiz { left: 4%; top: 44%; width: 49%; }
.m-tabs { display: flex; gap: .4em; }
.m-tabs b, .m-tabs i { font: 600 .9em/1 var(--font-body); padding: .45em .8em; border-radius: 99px; border: 1px solid #d5ddd7; font-style: normal; }
.m-tabs b { background: #1d5c45; color: #ffffff; border-color: #1d5c45; }
.m-ev { display: grid; grid-template-columns: 3em 1fr auto; gap: .6em; align-items: start; padding: .55em .6em; border-radius: 8px; border: 1px solid #e3e9e5; }
.m-ev em { font-style: normal; font-weight: 600; color: #586860; }
.m-ev small { display: block; color: #586860; font-size: .88em; }
.m-ev.now { border-color: #1d5c45; background: #f1f7f3; }
.m-ev mark { background: #1d5c45; color: #ffffff; font-size: .8em; font-weight: 700; padding: .2em .55em; border-radius: 99px; }
.m-search { border: 1px solid #d5ddd7; border-radius: 8px; padding: .55em .7em; color: #6b7a71; }
.m-doc { display: flex; align-items: center; gap: .6em; padding: .45em 0; border-bottom: 1px solid #edf1ee; font-weight: 600; }
.m-doc:last-child { border-bottom: 0; }
.m-doc i { font-style: normal; font-size: .75em; font-weight: 700; padding: .15em .4em; border: 1px solid #d5ddd7; border-radius: 4px; color: #586860; }
.m-q { font-weight: 700; font-size: 1.05em; }
.m-opt { display: flex; align-items: center; gap: .6em; padding: .55em .7em; border: 1px solid #d5ddd7; border-radius: 8px; }
.m-opt::before { content: ""; width: .95em; height: .95em; border-radius: 50%; border: 2px solid #b8c4bc; flex: none; }
.m-opt.on { border-color: #1d5c45; background: #f1f7f3; }
.m-opt.on::before { border-color: #1d5c45; background: radial-gradient(#1d5c45 45%, transparent 50%); }
.m-hot { align-self: flex-start; margin-top: .2em; font-weight: 700; font-size: .9em; color: #a3471a; background: #fbeee6; padding: .3em .7em; border-radius: 99px; }

/* One load moment: the products slide out of the sheet into place. */
@media (prefers-reduced-motion: no-preference) {
  .mock { transition: transform .2s ease, box-shadow .2s ease; animation: deal .7s cubic-bezier(.2,.8,.2,1) both; }
  .m-sched { animation-delay: .15s; } .m-lib { animation-delay: .3s; } .m-quiz { animation-delay: .45s; }
  @keyframes deal { from { opacity: 0; transform: translate(-18%, -6%) rotate(-4deg) scale(.92); } to { opacity: 1; transform: none; } }
}

/* Product shelf */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.product-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.product-card:hover { border-color: var(--pine); }
.product-card a.cover { position: absolute; inset: 0; border-radius: inherit; }
.product-card .visual.has-img { height: auto; aspect-ratio: 16 / 10; background: #1d5c45; }
.product-card .visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-card .visual { aspect-ratio: 16 / 10; border-radius: 8px; background: var(--mint); margin-bottom: 4px; overflow: hidden; position: relative; }
.product-card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; font-size: 14px; }
.price { font: 700 18px/1 var(--font-display); }
.status { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); }
.status.available { border-color: var(--pine); color: var(--pine); }

/* Card visuals: drawn with CSS so they match both themes */
.v-library::before, .v-library::after, .v-report::before, .v-schedule::before, .v-quiz::before, .v-quiz::after { content: ""; position: absolute; }
.v-library::before { left: 16px; right: 16px; top: 16px; height: 18px; border-radius: 5px; background: var(--surface); border: 1px solid var(--line); }
.v-library::after { left: 16px; right: 16px; top: 46px; bottom: -10px; background:
  linear-gradient(var(--surface), var(--surface)) 0 0 / calc(33% - 6px) 100% no-repeat,
  linear-gradient(var(--surface), var(--surface)) 50% 0 / calc(33% - 6px) 100% no-repeat,
  linear-gradient(var(--surface), var(--surface)) 100% 0 / calc(33% - 6px) 100% no-repeat; }
.v-report::before { left: 22px; right: 22px; top: 18px; bottom: 0; background:
  repeating-linear-gradient(var(--surface) 0 14px, var(--line) 14px 15px); border-radius: 6px 6px 0 0; border: 1px solid var(--line); }
.v-schedule::before { inset: 16px 16px 0; background:
  repeating-linear-gradient(90deg, var(--surface) 0 calc(25% - 4px), transparent calc(25% - 4px) 25%); border-radius: 6px 6px 0 0; }

.v-quiz::before { left: 22%; right: 22%; top: 16px; bottom: 0; border-radius: 6px 6px 0 0; background: var(--surface); border: 1px solid var(--line); }
.v-quiz::after { left: calc(22% + 14px); right: calc(22% + 14px); top: 30px; bottom: 0; background:
  linear-gradient(var(--pine), var(--pine)) 0 0 / 60% 4px no-repeat,
  linear-gradient(var(--line), var(--line)) 0 0 / 100% 4px no-repeat,
  linear-gradient(var(--mint), var(--mint)) 0 16px / 100% 20px no-repeat,
  linear-gradient(var(--mint), var(--mint)) 0 44px / 100% 20px no-repeat,
  linear-gradient(var(--mint), var(--mint)) 0 72px / 100% 20px no-repeat; }

.example-shot { margin: 0; background: var(--mint); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(12px, 3vw, 32px); }
.example-shot img { display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto; border-radius: 8px; box-shadow: 0 12px 32px rgba(10, 40, 28, .14); }

.tool-band { background: var(--mint); }
.tool-row { display: flex; gap: 20px 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tool-row .stack { max-width: 62ch; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(step); font: 700 15px/1 var(--font-display); color: var(--on-pine); background: var(--pine); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px; }

.platforms { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.platforms li { border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: 15px; background: var(--surface); }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.principles h3 { margin-bottom: 6px; }

/* Product page */
.product-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 32px 56px; align-items: start; }
@media (max-width: 860px) { .product-hero { grid-template-columns: 1fr; } }
.product-hero .stack > p { max-width: 68ch; }
.buy-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.buy-box .price { font-size: 30px; }
.buy-box ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

.demo-frame { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: clamp(16px, 3vw, 32px); }
.demo-label { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 18px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px 36px; }
.features h3 { margin-bottom: 6px; }

.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 32%; padding-right: 16px; font-weight: 600; }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; max-width: 760px; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.tier.highlight { border: 2px solid var(--pine); }
.tier .price { font-size: 34px; }
.tier .price small { font: 400 15px var(--font-body); color: var(--muted); }
.tier ul { margin: 0; padding-left: 20px; flex: 1; }
.tier li + li { margin-top: 4px; }
.fine { font-size: 14px; color: var(--muted); }

.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: var(--narrow); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style-position: outside; }
.faq details p { padding: 0 0 16px; color: var(--muted); }

/* Prose (docs, legal) */
.prose { max-width: var(--narrow); min-width: 0; }
.prose > * + * { margin-top: 16px; }
.prose h1 { margin-bottom: 8px; }
.prose h2 { margin-top: 44px; font-size: 26px; }
.prose h3 { margin-top: 28px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose li > ul, .prose li > ol { margin-top: 6px; }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; overflow-x: auto; }
.prose blockquote { margin-left: 0; padding-left: 16px; border-left: 3px solid var(--line); color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { background: var(--mint); font-weight: 600; }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.docs-nav { position: sticky; top: 16px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.docs-nav a { color: var(--muted); text-decoration: none; padding: 3px 0; }
.docs-nav a:hover { color: var(--pine); }
.docs-nav .lvl3 { padding-left: 12px; }
@media (max-width: 860px) { .docs-layout { grid-template-columns: 1fr; } .docs-nav { position: static; } }

/* Forms */
.form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; min-height: 46px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 12px 14px; border-radius: var(--r); background: var(--mint); }
.form-status[data-kind="error"] { border: 1px solid var(--line); background: transparent; }

@media (prefers-reduced-motion: no-preference) { .btn, .product-card { transition: border-color .15s, background-color .15s, filter .15s; } }

/* "Questions?" message bubble: email, not live chat. Bottom-right, out of the way of page content. */
.ec { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.ec-launch { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 14px; border: 0; border-radius: 999px; background: var(--pine); color: var(--on-pine);
  font: 600 15px/1 var(--font-body); cursor: pointer; box-shadow: 0 10px 28px rgba(8, 40, 28, .28); }
.ec-launch:hover { filter: brightness(1.08); }
.ec-launch:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.ec-launch-icon { width: 24px; height: 24px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-5 4v-4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-5 4v-4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ec.is-open .ec-launch-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ec-panel { width: min(360px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(8, 40, 28, .3); }
.ec-panel[hidden] { display: none; }
.ec-head { display: flex; gap: 10px; align-items: center; padding: 14px 14px 14px 16px; background: var(--pine); color: var(--on-pine); }
.ec-avatar { border-radius: 8px; background: #fff; flex: none; }
.ec-title { font: 700 16px/1.2 var(--font-display); margin: 0; }
.ec-sub { font-size: 12px; opacity: .85; margin: 2px 0 0; }
.ec-close { margin-left: auto; width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: inherit; font: 400 26px/1 var(--font-body); cursor: pointer; flex: none; }
.ec-close:hover { background: rgba(255, 255, 255, .15); }
.ec-close:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.ec-thread { padding: 14px 14px 4px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.ec-bubble { margin: 0; max-width: 88%; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: var(--mint); font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ec-mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--pine); color: var(--on-pine); }
.ec-form { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px 14px; }
.ec-form[hidden] { display: none; }
.ec-form label { font-size: 13px; font-weight: 600; }
.ec-form input, .ec-form textarea { font: inherit; font-size: 15px; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; width: 100%; }
.ec-form textarea { resize: vertical; min-height: 84px; }
.ec-form .ec-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.ec-send { margin-top: 6px; min-height: 42px; border: 0; border-radius: 10px; background: var(--pine); color: var(--on-pine); font: 600 15px/1 var(--font-body); cursor: pointer; }
.ec-send[disabled] { opacity: .6; cursor: progress; }
.ec-status { margin: 2px 0 0; font-size: 13px; color: #9b2c1a; }
@media (max-width: 520px) { .ec-launch-text { display: none; } .ec-launch { padding: 0; width: 52px; justify-content: center; } }
@media (prefers-reduced-motion: no-preference) { .ec-panel:not([hidden]) { animation: ec-pop .18s ease-out; transform-origin: bottom right; } @keyframes ec-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } } }
@media print { .ec { display: none; } }

.field[hidden] { display: none; }
