/* Gotcha.now website. No web fonts, no trackers: Windows' own type, like the app. */
:root {
  --paper: #ffffff;
  --mist: #f3f5f7;          /* alternate sections */
  --stage: #3a3c42;         /* the editor's picture area */
  --slate: #455467;         /* wordmark, headings */
  --ink: #26303c;           /* body text */
  --muted: #5d6877;
  --line: #dfe4ea;
  --teal: #009688;          /* brand */
  --teal-deep: #00796b;
  --select: #00bfa5;        /* the capture outline */
  --markup: #e61e1e;        /* annotation red, used sparingly */
  --radius: 10px;
  --wrap: 1120px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper);
}
img, video, svg { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--select); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); color: var(--slate); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); font-weight: 750; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; }
.small { font-size: .9rem; color: var(--muted); }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 50; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { color: var(--slate); text-decoration: none; font-weight: 550; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal-deep); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--select); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; color: var(--slate); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 8px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--font); line-height: 1.2; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-ghost { border-color: var(--slate); color: var(--slate); background: transparent; }
.btn-ghost:hover { background: var(--slate); color: #fff; }
.nav .btn { padding: 9px 16px; }
/* the Download button keeps white text in every state, including on its own page */
.nav .btn, .nav .btn:hover, .nav .btn[aria-current="page"] { color: #fff; box-shadow: none; }
.nav .btn[aria-current="page"] { background: var(--teal-deep); }
.btn .sub { font-weight: 450; opacity: .85; font-size: .88rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.checkout-page p { max-width: none; }
.checkout-action { margin-bottom: 40px; }

/* ---------- hero: the headline is the thing being captured ---------- */
.hero { padding: 72px 0 36px; }
.capture { position: relative; display: inline-block; padding: 14px 26px 18px; margin: 0 0 22px -26px; }
.capture::before { /* the selection outline */
  content: ""; position: absolute; inset: 0; border: 2px solid var(--select);
  clip-path: inset(0 100% 100% 0); animation: select 900ms cubic-bezier(.2,.7,.2,1) 250ms forwards;
}
.capture .h { position: absolute; width: 12px; height: 12px; background: var(--paper); border: 2px solid var(--select); opacity: 0; animation: appear 200ms ease 1100ms forwards; }
.capture .h.tl { left: -6px; top: -6px; } .capture .h.tr { right: -6px; top: -6px; }
.capture .h.bl { left: -6px; bottom: -6px; } .capture .h.br { right: -6px; bottom: -6px; }
.capture .size { position: absolute; right: 0; bottom: -34px; background: #1d2127; color: #fff; font-size: .8rem; font-weight: 650; padding: 3px 8px; border-radius: 3px; opacity: 0; animation: appear 200ms ease 1150ms forwards; font-variant-numeric: tabular-nums; }
.capture h1 { margin: 0; }
@keyframes select { to { clip-path: inset(0 0 0 0); } }
@keyframes appear { to { opacity: 1; } }
.hero .lead { margin-top: 26px; }

.stage { background: var(--stage); border-radius: 14px; padding: clamp(10px, 2vw, 18px); margin-top: 52px; box-shadow: 0 30px 60px -30px rgba(38,48,60,.55); }
.stage video, .stage img { border-radius: 6px; width: 100%; height: auto; background: #fff; }
.stage-caption { color: var(--muted); font-size: .9rem; margin-top: 14px; }

/* ---------- facts strip ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 64px; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 22px 22px 22px 0; }
.facts li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--slate); letter-spacing: -0.01em; }
.facts span { color: var(--muted); font-size: .95rem; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.alt { background: var(--mist); }
.section-intro { max-width: 680px; margin-bottom: 44px; }

/* the real three-step flow, numbered with the app's own step markers */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: step; }
.flow li { counter-increment: step; }
.flow li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--markup); color: #fff; font-weight: 750; font-family: var(--display); margin-bottom: 16px; box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0,0,0,.25); }
.flow p { color: var(--muted); }
kbd { font-family: var(--font); font-size: .85em; font-weight: 650; padding: 1px 7px; border: 1px solid #c9d0d8; border-bottom-width: 2px; border-radius: 5px; background: #fff; color: var(--slate); white-space: nowrap; }

.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip .text { order: 2; }
.feature ul { padding-left: 1.1em; margin: 0; color: var(--muted); }
.feature li { margin: .35em 0; }
.feature li strong { color: var(--ink); }
.shot { background: var(--stage); border-radius: 12px; padding: 14px; }
.shot img { border-radius: 4px; width: 100%; height: auto; }
.shot.plain { background: transparent; padding: 0; }

/* ---------- price comparison ---------- */
.price-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.price-compare > div { padding: 34px; }
.price-compare > div + div { border-left: 1px solid var(--line); background: var(--mist); }
.big { font-family: var(--display); font-size: 3.4rem; font-weight: 750; color: var(--slate); letter-spacing: -0.03em; line-height: 1; margin: 6px 0 10px; }
.big small { font-size: 1.05rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.them .big { color: var(--muted); }
.big small { display: block; margin-top: 2px; }
.big s { font-size: .48em; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-right: .2em; vertical-align: .35em; }
.intro-note { display: inline-block; background: #e3f6f3; color: #0b5c53; border-radius: 6px; padding: 8px 14px; font-size: .95rem; font-weight: 550; margin: 18px 0 0; }

/* ---------- pricing page ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; background: var(--paper); }
.plan.main { border: 2px solid var(--select); position: relative; }
.plan.main .tag { position: absolute; top: -13px; left: 26px; background: var(--select); color: #06352f; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 4px; }
.plan ul { padding-left: 1.1em; color: var(--muted); margin: 8px 0 24px; }
.plan li { margin: .3em 0; }
.plan .buy { margin-top: auto; }
.pp-slot { min-height: 50px; }
.pp-pending { border: 1px dashed #b9c2cc; border-radius: 8px; padding: 12px 14px; font-size: .9rem; color: var(--muted); background: #fbfcfd; }

.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; color: var(--slate); font-size: 1.05rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: inline-block; width: 1.3em; color: var(--teal); font-weight: 700; }
.faq details[open] summary::before { content: "\2212"; }
.faq details p { margin: 10px 0 0 1.3em; color: var(--muted); }

/* ---------- download ---------- */
.download-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--paper); }
.meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: .95rem; margin: 18px 0 0; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; word-break: break-all; }
.steps { padding-left: 1.3em; }
.steps li { margin: .5em 0; }

/* ---------- help ---------- */
.keys { width: 100%; border-collapse: collapse; font-size: .97rem; }
.keys th, .keys td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.keys th { color: var(--slate); font-weight: 650; background: var(--mist); }
.keys td:first-child { white-space: nowrap; }
.toc { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 40px; padding: 0; list-style: none; }

/* ---------- prose pages (privacy, terms) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose li { margin: .35em 0; }
.notice { border-left: 4px solid var(--select); background: var(--mist); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 0 0 28px; }

.page-head { padding: 64px 0 8px; }

/* ---------- pricing head: headline left, example licence email right ---------- */
.price-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.price-head h1 { font-size: clamp(2.4rem, 5.2vw, 4.3rem); }
.licence-card { margin: 0; position: relative; padding-top: 14px; }
.lc-tag { position: absolute; top: -6px; left: 0; z-index: 1; background: rgba(20, 20, 20, .9); color: #fff; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 3px; }
.lc-frame { border: 2px solid var(--select); padding: 12px; }
.lc-mail { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; box-shadow: 0 22px 44px -26px rgba(38, 48, 60, .5); }
.lc-from { margin: 0; font-size: .85rem; color: var(--muted); }
.lc-subject { margin: 2px 0 16px; font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--slate); }
.lc-label { margin: 0 0 4px; font-size: .8rem; font-weight: 650; color: var(--muted); }
.lc-key { margin: 0 0 18px; padding: 10px 12px; border-radius: 6px; background: var(--mist); font-family: Consolas, "Cascadia Mono", monospace; font-size: .82rem; line-height: 1.5; color: var(--ink); word-break: break-all; }
.lc-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; font-size: .95rem; }
.lc-facts dt { color: var(--muted); }
.lc-facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.licence-card figcaption { margin-top: 12px; font-size: .88rem; color: var(--muted); }
@media (max-width: 860px) { .price-head { grid-template-columns: 1fr; gap: 40px; } .licence-card { max-width: 460px; } }

/* ---------- footer ---------- */
.site-foot { background: var(--slate); color: #d7dde4; padding: 56px 0 40px; margin-top: 0; font-size: .95rem; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h3 { color: #fff; font-size: 1rem; margin-bottom: .7em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: .4em 0; }
.foot-grid img { height: 30px; width: auto; margin-bottom: 14px; }
.fine { border-top: 1px solid rgba(255,255,255,.18); margin-top: 40px; padding-top: 20px; font-size: .85rem; color: #b8c2cd; }
.fine p { max-width: none; margin: .3em 0; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .text { order: 0; }
  .plans { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 18px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--teal-deep); }
  .nav .btn { margin-top: 8px; width: auto; }
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .price-compare { grid-template-columns: 1fr; }
  .price-compare > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .download-box { grid-template-columns: 1fr; }
  .capture { margin-left: -14px; padding: 10px 14px 14px; }
  section { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .facts ul { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 16px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr; }
  .keys td:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .capture::before { animation: none; clip-path: none; }
  .capture .h, .capture .size { animation: none; opacity: 1; }
}

/* ---------- admin: sign-in and sales ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-sm { padding: 8px 14px; font-size: .92rem; }
.btn-xs { padding: 5px 10px; font-size: .84rem; border-width: 1.5px; border-radius: 6px; font-weight: 600; }

/* sign-in: the card is framed like a capture selection, the brand's own gesture */
.admin-login { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 56px 20px; background: var(--mist); }
.login-card { position: relative; width: min(400px, 100%); background: var(--paper); padding: 40px 36px 30px; border: 2px solid var(--select); }
.login-card .h { position: absolute; width: 12px; height: 12px; background: var(--paper); border: 2px solid var(--select); }
.login-card .h.tl { left: -7px; top: -7px; } .login-card .h.tr { right: -7px; top: -7px; }
.login-card .h.bl { left: -7px; bottom: -7px; } .login-card .h.br { right: -7px; bottom: -7px; }
.login-mark { width: 44px; height: 44px; margin-bottom: 18px; }
.login-card h1 { font-size: 1.9rem; letter-spacing: -0.02em; margin-bottom: .25em; }
.login-sub { color: var(--muted); font-size: 1rem; margin-bottom: 22px; }
.login-form label { display: block; font-weight: 600; font-size: .95rem; color: var(--slate); margin-bottom: 6px; }
.pw-field { display: flex; border: 1.5px solid #b9c2cc; border-radius: 8px; background: var(--paper); }
.pw-field:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,191,165,.25); }
.pw-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; padding: 11px 12px; color: var(--ink); outline: none; }
.pw-field input[aria-invalid="true"] { color: #8d1b1b; }
.pw-toggle { border: 0; border-left: 1px solid var(--line); background: none; font: inherit; font-size: .88rem; font-weight: 600; color: var(--teal-deep); padding: 0 14px; cursor: pointer; border-radius: 0 8px 8px 0; }
.pw-toggle:hover { background: var(--mist); }
.login-go { width: 100%; justify-content: center; margin-top: 18px; }
.login-foot { font-size: .84rem; color: var(--muted); margin: 18px 0 0; }

.admin-alert { border-left: 4px solid var(--teal); background: #e3f6f3; color: #0b4d45; padding: 10px 14px; border-radius: 0 6px 6px 0; font-size: .95rem; max-width: none; }
.admin-alert.is-bad { border-left-color: #c62828; background: #fdecea; color: #7f1d1d; }

/* sales */
.admin { padding: 44px 0 72px; background: var(--paper); }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.admin-head h1 { font-size: 2.4rem; margin-bottom: .15em; }
.admin-head p { margin: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div { padding: 16px 20px 18px 0; }
.stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.stats dt { font-size: .85rem; color: var(--muted); font-weight: 600; }
.stats dd { margin: 2px 0 0; font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--slate); font-variant-numeric: tabular-nums; }
.stats dd small { display: block; font-family: var(--font); font-size: .8rem; font-weight: 500; color: var(--muted); }
.stats .stat-alert dd { color: #b3261e; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { font: inherit; font-size: .9rem; font-weight: 600; color: var(--slate); background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 13px; cursor: pointer; }
.chip span { color: var(--muted); font-weight: 500; margin-left: 2px; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: #b9c2cc; }
.chip[aria-pressed="true"] { background: var(--slate); border-color: var(--slate); color: #fff; }
.chip[aria-pressed="true"] span { color: #cfd6de; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.sales { width: 100%; border-collapse: collapse; font-size: .93rem; }
.sales th { text-align: left; font-size: .8rem; font-weight: 650; color: var(--muted); background: var(--mist); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.sales td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sales tbody tr:last-child td { border-bottom: 0; }
.sales tbody tr:hover { background: #fafbfc; }
.sales .row-attention { box-shadow: inset 3px 0 0 #d93025; }
.sales .num { text-align: right; font-variant-numeric: tabular-nums; }
.sales .nowrap { white-space: nowrap; }
.sales .buyer { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.sales td:nth-child(2) { min-width: 280px; }
.sales .tag { display: inline-block; font-size: .72rem; font-weight: 700; color: #6a4a00; background: #fff3cd; border-radius: 4px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px; }
.ids { font-size: .8rem; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.ids summary { cursor: pointer; width: max-content; }
.attempts { display: block; margin-top: 3px; font-size: .8rem; }
.pill { white-space: nowrap; display: inline-block; font-size: .8rem; font-weight: 650; padding: 2px 9px; border-radius: 999px; line-height: 1.5; }
.pill-ok { background: #e3f6f3; color: #0b5c53; }
.pill-wait { background: #e8eef7; color: #2b4a75; }
.pill-warn { background: #fff3cd; color: #6a4a00; }
.pill-bad { background: #fdecea; color: #8d1b1b; }
.pill-muted { background: var(--mist); color: var(--muted); }
.row-actions form { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin: 0; }
.row-actions { text-align: right; }
.admin-note { margin-top: 12px; }

.admin-empty { border: 1.5px dashed #c5cdd6; border-radius: var(--radius); padding: 36px; text-align: center; }
.admin-empty h2 { font-size: 1.4rem; }
.admin-empty p { margin: 0 auto; color: var(--muted); }

.manual-panel { border: 2px solid var(--select); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 28px; background: #f6fcfb; }
.manual-panel h2 { font-size: 1.3rem; margin-bottom: .3em; }
.manual-panel p { max-width: none; font-size: .95rem; }
.manual-panel textarea { width: 100%; font: .88rem/1.5 Consolas, "Cascadia Mono", monospace; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); resize: vertical; }
.manual-actions { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.copied { font-size: .9rem; font-weight: 600; color: var(--teal-deep); }

@media (max-width: 820px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* admin: search, add a licence, send form */
.admin-tools { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.search-form { display: flex; gap: 8px; align-items: center; flex: 1 1 360px; }
.search-form input, .add-form input[type=text], .add-form input[type=email], .add-form input[type=number], .send-form input {
  font: inherit; font-size: .95rem; padding: 8px 10px; border: 1.5px solid #b9c2cc; border-radius: 6px; background: var(--paper); color: var(--ink); min-width: 0; }
.search-form input { flex: 1; max-width: 420px; }
.search-form input:focus, .add-form input:focus, .send-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,191,165,.25); }
.add-licence { flex: 0 1 auto; }
.add-licence > summary { list-style: none; }
.add-licence > summary::-webkit-details-marker { display: none; }
.add-licence[open] { flex-basis: 100%; }
.add-licence[open] > summary { margin-bottom: 12px; }
.add-form { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--mist); }
.add-form .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; margin-bottom: 12px; }
.add-form label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 600; color: var(--slate); }
.add-form .grid { align-items: end; }
.add-form label .lab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.add-form label .hint { font-weight: 400; color: var(--muted); margin-left: 6px; }
.add-form .grid input { width: 100%; height: 42px; }
.add-form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; margin-bottom: 12px; }
.send-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.send-form label { font-size: .9rem; font-weight: 600; color: var(--slate); }
.send-form input { width: 300px; max-width: 100%; }
.sales .tag-manual { color: #2b4a75; background: #e8eef7; }
.sales .ids { display: block; margin-top: 2px; }
@media (max-width: 820px) { .add-form .grid { grid-template-columns: 1fr; } }

.send-form .sent-line { flex-basis: 100%; margin: 0 0 4px; font-size: .92rem; max-width: none; }
.manual-panel { position: relative; }
.panel-close { position: absolute; top: 16px; right: 18px; font-size: .9rem; font-weight: 650; color: var(--slate); text-decoration: none; border: 1.5px solid var(--line); border-radius: 6px; padding: 4px 12px; background: var(--paper); }
.panel-close:hover { border-color: var(--slate); color: var(--slate); }
.manual-panel h2 { padding-right: 90px; }
.add-form .form-actions { display: flex; gap: 10px; }
.test-mail { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.test-mail h2 { font-size: 1.25rem; margin-bottom: .3em; }
.test-mail .send-form { border-top: 0; padding-top: 0; margin-top: 8px; }
.error-log { margin-top: 32px; }
.error-log > summary { cursor: pointer; font-weight: 650; color: #8d1b1b; margin-bottom: 10px; }
.error-log td { font-size: .85rem; }
.site-foot .fine a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.site-foot .fine a:hover { color: #fff; }
