/* pdfedge.com — pages on a cutting mat. Provisional brand (PLAN.md, Brand):
   a green self-healing mat with its grid and ruler, paper-white sheets with a
   folded corner, ink-green as the one accent. Fraunces for display, IBM Plex
   Sans for text, IBM Plex Mono for data. */
:root {
  --mat: #1d5a48;
  --mat-deep: #154536;
  --mat-ink: #eaf6ef;
  --mat-soft: rgba(234, 246, 239, 0.74);
  --grid: rgba(234, 246, 239, 0.075);
  --grid-strong: rgba(234, 246, 239, 0.15);
  --paper: #fffdf8;
  --paper-2: #f4f1e8;
  --fold: #dcefe5;
  --ink: #13201c;
  --ink-2: #33433d;
  --muted: #5f6e68;
  --rule: #e2ddd0;
  --accent: #1f7a5c;
  --accent-ink: #145a43;
  --mint: #d6f1e3;
  --mint-2: #ecf8f2;
  --bad: #b3261e;
  --code-bg: #10201b;
  --code-ink: #dfeee7;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 12px 32px -18px rgba(8, 36, 27, 0.45);
  --display: "Fraunces", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #13201c;
    --paper-2: #0e1815;
    --fold: #1f3a30;
    --ink: #e8f1ec;
    --ink-2: #c5d3cc;
    --muted: #94a59e;
    --rule: #26382f;
    --accent: #5fc79c;
    --accent-ink: #8fe3bf;
    --mint: #1b3a2e;
    --mint-2: #152c23;
    --bad: #ff8a80;
    --code-bg: #08110e;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 12px 32px -18px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
code { font-family: var(--mono); font-size: 0.88em; background: var(--mint-2); padding: 0.1em 0.35em; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-variation-settings: "opsz" 144; font-weight: 600; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-variation-settings: "opsz" 72; }
h3 { font-size: 1.2rem; font-variation-settings: "opsz" 24; }
p { margin: 0 0 1em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- the mat ---- */
.mat {
  position: relative;
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  color: var(--mat-ink);
}
.mat a { color: var(--mat-ink); }
.ruler {
  position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background:
    repeating-linear-gradient(90deg, var(--mat-soft) 0 1px, transparent 1px 96px) bottom / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--grid-strong) 0 1px, transparent 1px 24px) bottom / 100% 7px no-repeat;
  opacity: 0.8;
}

/* ---- header ---- */
.top { background: var(--mat-deep); color: var(--mat-ink); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .word { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; font-variation-settings: "opsz" 48; }
.top .brand, .top .brand:hover { color: var(--mat-ink); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.nav a { color: var(--mat-soft); text-decoration: none; }
.nav a:hover { color: var(--mat-ink); }
@media (max-width: 520px) { .nav { gap: 12px; font-size: 0.88rem; } .nav a[href="/#agents"] { display: none; } }

/* ---- hero ---- */
.hero { padding: 64px 0 88px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mat-soft); margin-bottom: 14px; }
.hero h1 { color: #fff; }
.lede { font-size: 1.15rem; line-height: 1.55; color: var(--mat-soft); max-width: 36em; }
.hero .lede { font-size: 1.22rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { width: 100%; height: auto; }
@media (max-width: 860px) {
  .hero { padding: 40px 0 64px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin: 8px auto 0; }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.98rem/1 var(--sans); padding: 13px 20px; border-radius: 8px; border: 1.5px solid transparent;
  background: var(--accent); color: #fff; text-decoration: none; cursor: pointer; transition: transform 0.08s ease, background 0.15s ease;
}
.btn:hover { background: var(--accent-ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn[hidden] { display: none; } /* .btn's display would otherwise beat the hidden attribute */
.btn.light { background: var(--paper); color: var(--mat-deep); }
.btn.light:hover { background: #fff; color: var(--mat-deep); }
/* dark mode: the accent turns light, so filled buttons take dark text; outline and ghost buttons keep theirs */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.light { background: #fffdf8; } :root:not([data-theme="light"]) .btn:not(.outline-light):not(.ghost), :root:not([data-theme="light"]) .btn:not(.outline-light):not(.ghost):hover { color: #0b1a14; } }
.btn.outline-light { background: transparent; border-color: var(--mat-soft); color: var(--mat-ink); }
.btn.outline-light:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent-ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---- sheets: paper with a folded corner ---- */
.sheet { position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow); clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); }
.sheet::after { content: ""; position: absolute; top: -1px; right: -1px; width: 27px; height: 27px; background: linear-gradient(225deg, transparent 49.5%, var(--fold) 50%); border-bottom-left-radius: 3px; }

/* ---- sections ---- */
.section { padding: 72px 0; }
.section.tight { padding: 40px 0 56px; }
.paper2 { background: var(--paper-2); }
.section-head { max-width: 46em; margin-bottom: 28px; }
.section-head p { color: var(--ink-2); font-size: 1.06rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .section { padding: 52px 0; } }
.small-h { font-size: 1.4rem; }
.note { color: var(--muted); font-size: 0.92rem; }
.soon { font-size: 0.95rem; color: var(--ink-2); background: var(--mint-2); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 0 6px 6px 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 26px; margin: 0 0 8px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ---- the workbench ---- */
.bench-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.bench-tabs button {
  font: 500 0.92rem/1 var(--sans); padding: 10px 14px; border-radius: 999px; cursor: pointer;
  background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--rule);
}
.bench-tabs button:hover { border-color: var(--accent); color: var(--accent-ink); }
.bench-tabs button[aria-selected="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bench-tabs button[aria-selected="true"] { color: #0b1a14; } }
.bench-sheet { padding: 26px; }
@media (max-width: 600px) { .bench-sheet { padding: 18px 14px; } .bench-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .bench-tabs button { flex: none; } }
.drop {
  border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--rule)); border-radius: 10px; padding: 30px 18px; text-align: center;
  background: var(--mint-2); transition: background 0.15s ease, border-color 0.15s ease;
}
.drop.over { background: var(--mint); border-color: var(--accent); }
.drop-icon { width: 44px; height: 44px; margin: 0 auto 8px; color: var(--accent); }
.drop-label { font-weight: 500; margin: 0 0 4px; }
.drop-note { margin: 0; font-size: 0.86rem; color: var(--muted); }
.has-files .drop { padding: 16px 18px; }
.has-files .drop-icon { display: none; }
.files { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.file { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); }
.file.bad { border-color: var(--bad); }
.file-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { font: 0.82rem var(--mono); color: var(--muted); white-space: nowrap; }
.file.bad .file-meta { color: var(--bad); }
.file input { font: 0.88rem var(--sans); padding: 6px 8px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink); width: 130px; }
.file-actions { display: flex; gap: 4px; }
.file-actions button { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--rule); background: var(--paper-2); color: var(--ink-2); cursor: pointer; font-size: 0.85rem; }
.file-actions button:hover { border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 600px) {
  .file { grid-template-columns: minmax(0, 1fr) auto; }
  .file-meta { grid-column: 1; grid-row: 2; }
  .file input { grid-column: 1 / -1; width: 100%; }
  .file-actions { grid-column: 2; grid-row: 1 / span 2; }
}
.opts fieldset { border: 0; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; }
.opts fieldset[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 150px; }
.field.wide { flex: 1 1 280px; }
.field label { font-size: 0.86rem; font-weight: 500; color: var(--ink-2); }
.field small { font-size: 0.78rem; color: var(--muted); }
.field input:not([type="checkbox"]):not([type="range"]), .field select {
  font: 0.95rem var(--sans); padding: 9px 10px; border: 1px solid var(--rule); border-radius: 7px; background: var(--paper); color: var(--ink); min-height: 40px;
}
.field input[type="range"] { accent-color: var(--accent); min-height: 40px; }
.field.check { flex-direction: row; align-items: center; gap: 8px; min-height: 40px; }
.field.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.field.check label { font-weight: 400; color: var(--ink); }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; width: 100%; }
.fields .note { grid-column: 1 / -1; margin: 0; }
.run { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.status { font-size: 0.92rem; color: var(--ink-2); }
.result { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--rule); }
.facts { font: 0.88rem var(--mono); color: var(--ink-2); }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.text-out { width: 100%; min-height: 220px; margin-top: 14px; font: 0.86rem/1.5 var(--mono); padding: 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-2); color: var(--ink); resize: vertical; }
.api-call { margin-top: 16px; }
.api-call summary { cursor: pointer; font-weight: 500; color: var(--accent-ink); }
.api-call .code { margin-top: 10px; }

/* ---- code ---- */
.code { position: relative; background: var(--code-bg); color: var(--code-ink); border-radius: 10px; overflow: hidden; }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 0.84rem/1.6 var(--mono); }
.code code { background: none; padding: 0; color: inherit; font-size: inherit; white-space: pre; }
.copy { position: absolute; top: 10px; right: 10px; font: 500 0.78rem var(--sans); padding: 5px 9px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); color: var(--code-ink); cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, 0.14); }

/* ---- verbs, why, tools ---- */
.verbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .verbs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .verbs { grid-template-columns: 1fr; } }
.verb { padding: 22px 22px 18px; }
.verb h3 { font-size: 1.5rem; color: var(--accent-ink); }
.verb p { color: var(--ink-2); font-size: 0.96rem; }
.ops { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.ops code { font-size: 0.78rem; }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
@media (max-width: 860px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }
.why-item { border-top: 2px solid var(--accent); padding-top: 14px; }
.why-item p { color: var(--ink-2); font-size: 0.97rem; margin: 0; }
.tool-hero { padding: 48px 0 60px; }
.tool-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); }
.crumbs { font: 0.82rem var(--mono); color: var(--mat-soft); margin-bottom: 12px; }
.crumbs a { color: var(--mat-soft); }
a.on-mat { color: #fff; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tool-card { display: flex; flex-direction: column; padding: 20px; text-decoration: none; color: var(--ink); transition: transform 0.12s ease; }
.tool-card:hover { transform: translateY(-2px); color: var(--ink); }
.tool-card h3 { color: var(--accent-ink); font-size: 1.15rem; }
.tool-card p { color: var(--ink-2); font-size: 0.93rem; flex: 1; }
.op { font: 0.75rem var(--mono); color: var(--muted); }
.steps { padding-left: 1.3em; color: var(--ink-2); }
.steps li { margin-bottom: 6px; }
.prose { max-width: 44em; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose p { color: var(--ink-2); }

/* ---- footer ---- */
.foot { background: var(--mat-deep); color: var(--mat-soft); padding: 48px 0 56px; font-size: 0.92rem; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 40px; }
.foot .brand { color: var(--mat-ink); margin-bottom: 12px; }
.foot a { color: var(--mat-soft); }
.foot a:hover { color: #fff; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-cols h2 { font: 600 0.78rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mat-ink); margin-bottom: 10px; }
.foot-cols a { display: block; text-decoration: none; margin-bottom: 6px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-cols > div:nth-child(2) h2 { display: none; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.fields .field.check { align-self: end; }
.nav a.nav-cta { color: var(--mat-deep); background: var(--mat-ink); padding: 6px 12px; border-radius: 7px; font-weight: 600; }
.nav a.nav-cta:hover { color: var(--mat-deep); background: #fff; }
@media (max-width: 520px) { .nav a.nav-cta { padding: 5px 9px; } }

/* ---- result checks: what pdf.js found when it read the result back ---- */
.checks { list-style: none; padding: 0; margin: 2px 0 16px; display: grid; gap: 3px; font-size: 0.9rem; color: var(--ink-2); }
.checks:empty { display: none; }
.checks li { position: relative; padding-left: 24px; }
.checks li.ok::before { content: ""; position: absolute; left: 3px; top: 0.5em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.checks li.bad { color: var(--bad); font-weight: 500; }
.checks li.bad::before { content: "✕"; position: absolute; left: 3px; top: 0; font-size: 0.85em; }
.checks-failed { padding: 12px 14px; border: 1px solid var(--bad); border-radius: 8px; color: var(--ink); background: color-mix(in srgb, var(--bad) 7%, var(--paper)); font-size: 0.92rem; }
.checks-failed a { color: var(--bad); }
.result-actions[hidden], .api-call[hidden] { display: none; }

/* ---- the page grid (organize): thumbnails to drag, turn and delete ---- */
.pgrid-wrap { flex: 1 1 100%; min-width: 0; }
.pgrid-wrap .note { margin: 0; }
.pgrid-bar { display: none; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.pgrid-wrap.has-pages .pgrid-bar { display: flex; }
.pgrid-hint { display: none; }
.pgrid-wrap.has-pages .pgrid-hint { display: block; margin-top: 12px; }
.pgrid-count { font: 0.84rem var(--mono); color: var(--muted); }
.pgrid-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 0.86rem/1 var(--sans); padding: 8px 11px; border-radius: 7px; border: 1px solid var(--rule); background: var(--paper-2); color: var(--ink-2); cursor: pointer; }
.chip:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-ink); }
.chip:disabled { opacity: 0.45; cursor: default; }
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 14px 12px; }
.pcard { display: flex; flex-direction: column; gap: 5px; list-style: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pthumb { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--paper-2); cursor: grab; overflow: hidden; }
.pthumb:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--rule)); }
.pthumb img { position: absolute; left: 50%; top: 50%; max-width: none; background: #fff; box-shadow: 0 1px 3px rgba(8, 36, 27, 0.22); transition: transform 0.15s ease; }
.pcard.picked .pthumb { border-color: var(--accent); background: var(--mint); box-shadow: inset 0 0 0 1.5px var(--accent); }
.pcard.gone .pthumb img { opacity: 0.22; }
.pgone { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 600 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--bad); }
.pbar { display: flex; align-items: center; gap: 2px; }
.pno { font: 500 0.8rem var(--mono); color: var(--muted); margin-right: auto; padding-left: 2px; }
.pbar button { width: 24px; height: 24px; padding: 0; border-radius: 5px; border: 1px solid transparent; background: none; color: var(--ink-2); font-size: 0.82rem; line-height: 1; cursor: pointer; }
.pbar button:hover:not(:disabled) { border-color: var(--rule); background: var(--paper-2); color: var(--accent-ink); }
.pbar button:disabled { opacity: 0.3; cursor: default; }
.pbar button[data-drop]:hover { color: var(--bad); }
.pcard.lifted .pthumb { border-style: dashed; border-color: var(--accent); background: var(--mint-2); box-shadow: none; }
.pcard.lifted .pthumb img, .pcard.lifted .pbar { opacity: 0.25; }
.pghost { position: fixed; z-index: 100; margin: 0; pointer-events: none; transform: rotate(-2deg); }
.pghost .pthumb { border-color: var(--accent); cursor: grabbing; box-shadow: var(--shadow); }

/* ---- the field editor (/editor): pages on the mat, boxes where values go ----
   Box, guide and own-field colours are fixed, not themed: they are drawn on
   the PDF's own white pages in both modes. */
.ed { --sel: #1f7a5c; --own: #2f62c9; --guide: #e8590c; padding: 14px 0 40px; }
.ed-wrap { width: min(1600px, 100% - 32px); margin: 0 auto; }
.ed-head { padding: 26px 0 22px; }
.ed-head-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 40px; align-items: end; }
.ed-head h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0; }
.ed-head .crumbs { margin-bottom: 6px; }
.ed-head .lede { font-size: 1rem; margin: 0; max-width: 52em; }
@media (max-width: 860px) { .ed-head-in { grid-template-columns: 1fr; } }
.btn-sm { padding: 8px 12px; font-size: 0.86rem; border-radius: 7px; }
.ed-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 12px; }
.ed-doc { font: 0.82rem var(--mono); color: var(--muted); max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-seg { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--rule); border-radius: 9px; padding: 2px; background: var(--paper); }
.ed-seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ink-2); padding: 6px 9px; border-radius: 7px; cursor: pointer; font: 500 0.84rem var(--sans); }
.ed-seg button:hover:not(:disabled) { background: var(--mint-2); color: var(--accent-ink); }
.ed-seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ed-seg button[aria-pressed="true"] { color: #0b1a14; } }
.ed-seg button:disabled { opacity: 0.35; cursor: default; }
.ed-seg svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ed-zoom { font: 0.76rem var(--mono); }
.ed-zoom [data-zoom-label] { padding: 0 4px; color: var(--muted); min-width: 4.5ch; text-align: center; }
/* the status line takes what room is left, so Fill & download stays on the toolbar */
.ed-status { flex: 1 1 0; min-width: 0; text-align: right; font: 0.78rem var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-status.bad { color: var(--bad); }
.ed-body { display: grid; grid-template-columns: 220px minmax(0, 1fr) 340px; gap: 12px; height: clamp(560px, calc(100vh - 150px), 1300px); }
.ed-side { border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.ed-side-h, .ed-sub { font: 600 0.72rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); padding: 12px 12px 6px; }
.ed-list { list-style: none; margin: 0; padding: 0 6px 10px; overflow: auto; flex: 1; min-height: 0; }
.ed-list .ed-pg { font: 0.7rem var(--mono); color: var(--muted); padding: 10px 6px 3px; text-transform: uppercase; letter-spacing: 0.08em; }
.ed-list .note { padding: 8px 6px; font-size: 0.82rem; line-height: 1.45; margin: 0; }
.ed-row { display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: 7px; cursor: pointer; font-size: 0.84rem; }
.ed-row:hover { background: var(--paper-2); }
.ed-row.sel { background: var(--mint); }
.ed-row .ty { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 4px; background: var(--mint-2); color: var(--accent-ink); font: 600 0.7rem var(--mono); }
.ed-row.own .ty { background: var(--paper-2); color: var(--muted); }
/* the name keeps its room; the value takes what is left */
.ed-row .nm { flex: 0 1 auto; font: 0.8rem var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 4ch; }
.ed-row .vl { flex: 1 1 0; min-width: 0; text-align: right; color: var(--muted); font-size: 0.74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-row .x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 2px; font-size: 1rem; line-height: 1; visibility: hidden; }
.ed-row:hover .x, .ed-row.sel .x { visibility: visible; }
.ed-row .x:hover { color: var(--bad); }
.ed-rename { flex: 1; min-width: 0; font: 0.8rem var(--mono); padding: 2px 5px; border: 1px solid var(--accent); border-radius: 5px; background: var(--paper); color: var(--ink); }
.ed-keys { border-top: 1px solid var(--rule); padding: 8px 12px 10px; font-size: 0.76rem; color: var(--muted); flex: none; max-height: 55%; overflow: auto; }
.ed-keys summary { cursor: pointer; font: 600 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.ed-keys dl { margin: 6px 0 0; line-height: 1.35; }
.ed-keys dt { font: 0.7rem var(--mono); color: var(--ink); margin-top: 7px; }
.ed-keys dd { margin: 1px 0 0; }

/* the stage: the PDF's pages stacked on the mat */
.ed-stage { position: relative; overflow: auto; border-radius: 10px; min-height: 0; }
.ed-stage.dropping { outline: 3px dashed var(--mint); outline-offset: -8px; }
.ed-empty { min-height: 100%; display: grid; place-items: center; padding: 24px; }
.ed-empty[hidden] { display: none; }
.ed-empty .drop { width: min(460px, 100%); background: var(--paper); color: var(--ink); padding: 34px 22px; box-shadow: var(--shadow); border-color: var(--rule); }
.ed-or { margin: 16px 0 0; }
.ed-pages { display: flex; flex-direction: column; align-items: center; gap: 36px; padding: 36px 32px 48px; width: max-content; min-width: 100%; }
.ed-pages:empty { display: none; }
.ed-page { position: relative; background: #fff; box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(0, 0, 0, 0.08); flex: none; }
.ed-pnum { position: absolute; left: 0; top: -22px; font: 0.72rem var(--mono); color: var(--mat-soft); pointer-events: none; }
.ed-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ed-ov { position: absolute; inset: 0; touch-action: pan-x pan-y; }
.ed[data-drawing]:not([data-drawing=""]) .ed-ov { cursor: crosshair; touch-action: none; }
.ed-box { position: absolute; box-sizing: border-box; border: 1px dashed rgba(31, 122, 92, 0.75); background: rgba(31, 122, 92, 0.09); cursor: move; touch-action: none; }
.ed-box:hover { border-color: var(--sel); }
.ed-box.filled { background: transparent; }
.ed-box.filled:not(.sel):not(:hover) { border-color: rgba(31, 122, 92, 0.32); }
.ed-box.sel { border: 1.5px solid var(--sel); z-index: 2; }
.ed-ph { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 4px; font: 500 11px/1 var(--mono); color: rgba(20, 90, 67, 0.85); overflow: hidden; white-space: nowrap; pointer-events: none; }
.ed-check .ed-ph, .ed-image .ed-ph { justify-content: center; }
.ed-box.filled .ed-ph { display: none; }
.ed-form { position: absolute; box-sizing: border-box; border: 1px dotted var(--own); background: rgba(47, 98, 201, 0.07); cursor: pointer; }
.ed-form:hover { background: rgba(47, 98, 201, 0.15); }
.ed-group { position: absolute; box-sizing: border-box; border: 1px dashed var(--sel); pointer-events: none; z-index: 3; }
.ed-guide { position: absolute; background: var(--guide); pointer-events: none; z-index: 4; }
.ed-guide.v { top: 0; bottom: 0; width: 1px; }
.ed-guide.h { left: 0; right: 0; height: 1px; }
.ed-marquee, .ed-ghost { position: absolute; box-sizing: border-box; pointer-events: none; z-index: 5; border: 1px solid var(--sel); background: rgba(31, 122, 92, 0.1); }
.ed-ghost { border: 1.5px dashed var(--sel); background: rgba(31, 122, 92, 0.14); }
.ed-tag { position: absolute; bottom: calc(100% + 4px); left: -1px; font: 10.5px/1.4 var(--mono); background: var(--sel); color: #fff; padding: 2px 6px; border-radius: 4px; white-space: nowrap; pointer-events: none; }
.ed-h { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--sel); border-radius: 2px; box-sizing: border-box; }
.ed-h.nw { left: -5px; top: -5px; cursor: nwse-resize; } .ed-h.se { right: -5px; bottom: -5px; cursor: nwse-resize; }
.ed-h.ne { right: -5px; top: -5px; cursor: nesw-resize; } .ed-h.sw { left: -5px; bottom: -5px; cursor: nesw-resize; }
.ed-h.n { left: 50%; top: -5px; margin-left: -4.5px; cursor: ns-resize; } .ed-h.s { left: 50%; bottom: -5px; margin-left: -4.5px; cursor: ns-resize; }
.ed-h.w { top: 50%; left: -5px; margin-top: -4.5px; cursor: ew-resize; } .ed-h.e { top: 50%; right: -5px; margin-top: -4.5px; cursor: ew-resize; }

/* the right-hand panel: Field, Test data, Template & API */
.ed-tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--rule); flex: none; }
.ed-tabs button { background: none; border: 0; padding: 7px 10px; font: 500 0.82rem var(--sans); color: var(--muted); border-radius: 7px 7px 0 0; cursor: pointer; }
.ed-tabs button:hover { color: var(--accent-ink); }
.ed-tabs button[aria-selected="true"] { color: var(--accent-ink); background: var(--mint-2); box-shadow: inset 0 -2px 0 var(--accent); }
.ed-pane { overflow: auto; flex: 1; min-height: 0; padding-bottom: 14px; }
.ed-pane[hidden] { display: none; }
.ed-pane > .note, [data-props] > .note { padding: 0 12px; font-size: 0.82rem; }
.ed-type { padding: 12px 12px 2px; font: 600 0.72rem var(--mono); color: var(--accent-ink); text-transform: uppercase; letter-spacing: 0.1em; }
.flds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px; }
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fld.wide { grid-column: 1 / -1; }
.fld label, .fld .lbl { font: 0.72rem var(--mono); color: var(--ink-2); }
.fld small { font-size: 0.72rem; color: var(--muted); line-height: 1.35; }
.fld input:not([type="checkbox"]):not([type="color"]), .fld select, .fld textarea { font: 0.88rem var(--sans); padding: 6px 8px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink); min-width: 0; width: 100%; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.fld.check { flex-direction: row; align-items: center; gap: 8px; grid-column: 1 / -1; }
.fld.check label { font: 0.86rem var(--sans); color: var(--ink); }
.fld input[type="checkbox"], .chk input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; flex: none; }
.chk { display: inline-flex; align-items: center; gap: 7px; font-size: 0.84rem; color: var(--ink); }
.colour { display: flex; gap: 6px; }
.colour input[type="color"] { width: 36px; height: 32px; padding: 2px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); flex: none; }
.ed-arrange { padding: 10px 12px 8px; border-bottom: 1px solid var(--rule); }
.ed-arrange[hidden] { display: none; }
.arr-row { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.ed-arrange button { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink-2); cursor: pointer; }
.ed-arrange button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-ink); background: var(--mint-2); }
.ed-arrange button:disabled { opacity: 0.35; cursor: default; }
.ed-arrange svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.ed-arrange .sep { width: 1px; height: 18px; background: var(--rule); margin: 0 3px; }
.ed-arrange .to { margin-left: auto; font: 0.7rem var(--mono); color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.ed-arrange select { font: 0.76rem var(--sans); padding: 3px 5px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink); }
.ed-sub { padding: 12px 0 0; grid-column: 1 / -1; }
.ed-img { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ed-img img { max-width: 150px; max-height: 52px; background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: 2px; }
.ed-img .none { font-size: 0.8rem; color: var(--muted); }
.ed-img .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.ed-img .btn-sm { padding: 6px 9px; font-size: 0.8rem; }
.ed-fill { border-top: 1px solid var(--rule); margin-top: 4px; padding: 12px; display: grid; gap: 10px; justify-items: start; }
.ed-fill .note { margin: 0; font-size: 0.8rem; }
.ed-api { padding: 12px; }
.ed-api .note, .ed-api > .note { font-size: 0.82rem; padding: 0; }
.ed-api h3 { font: 600 0.82rem var(--sans); margin: 16px 0 6px; color: var(--ink); letter-spacing: 0; }
.ed-api .code pre { padding: 32px 14px 12px; font-size: 0.72rem; }
.ed-api .code code { white-space: pre-wrap; word-break: break-all; }
.ed-api .copy { top: 6px; right: 6px; }
.ed-json { width: 100%; min-height: 220px; font: 0.74rem/1.45 var(--mono); padding: 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-2); color: var(--ink); resize: vertical; }
.ed-btns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.ed-btns .grow { flex: 1; }

/* dialogs: the password prompt and the signature pad */
.ed-dlg { border: 0; border-radius: 12px; padding: 20px; width: min(680px, calc(100% - 32px)); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6); }
.ed-dlg[data-pwd] { width: min(420px, calc(100% - 32px)); }
.ed-dlg.ed-check { width: min(520px, calc(100% - 32px)); }
.ed-dlg .checks { margin: 0; }
/* the status and the last download's checks share the status's place: beside the tools when there's room, a row of their own when not */
.ed-state { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; }
.ed-state > .ed-status { flex: 1 1 0; order: 0; }
@media (max-width: 1180px) { .ed-state { order: 10; flex-basis: 100%; } }
/* the last download's checks: a tick when they passed, a cross when one failed */
.ed-checked { flex: none; position: relative; font: 500 0.78rem/1 var(--sans); padding: 6px 10px 6px 24px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--rule)); background: var(--mint-2); color: var(--accent-ink); cursor: pointer; }
.ed-checked::before { content: ""; position: absolute; left: 10px; top: 8px; width: 8px; height: 4px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.ed-checked.bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, var(--paper)); color: var(--bad); }
.ed-checked.bad::before { content: "✕"; border: 0; transform: none; width: auto; height: auto; top: 6px; left: 9px; font-size: 0.72rem; }
.ed-checked[hidden] { display: none; }
.ed-dlg::backdrop { background: rgba(8, 30, 23, 0.55); }
.ed-dlg h2 { font-size: 1.3rem; margin-bottom: 12px; }
.ed-dlg .note { margin: 10px 0 0; }
.ed-dlg .note.bad { color: var(--bad); }
.ed-pwl { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }
.ed-pwl b { font-weight: 600; overflow-wrap: anywhere; }
.ed-pwl input { font: 0.95rem var(--sans); padding: 9px 10px; border: 1px solid var(--rule); border-radius: 7px; background: var(--paper); color: var(--ink); }
/* the baseline is drawn by CSS, not on the canvas, so it is not part of the signature */
.ed-sign canvas { display: block; width: 100%; aspect-ratio: 3 / 1; border: 1px solid var(--rule); border-radius: 8px; touch-action: none; cursor: crosshair; background: linear-gradient(to top, transparent 24%, #c9d3ce 24%, #c9d3ce calc(24% + 1px), transparent calc(24% + 1px)) #fff; }

.tool-card.feature { background: var(--mint-2); border-color: color-mix(in srgb, var(--accent) 40%, var(--rule)); }
@media (max-width: 1100px) { .ed-body { grid-template-columns: 190px minmax(0, 1fr) 300px; } }
@media (max-width: 900px) {
  .ed-body { grid-template-columns: minmax(0, 1fr); height: auto; }
  .ed-stage { height: 72vh; }
  .ed-right { order: 2; max-height: 75vh; }
  .ed-left { order: 3; max-height: 360px; }
  .ed-status { order: 10; flex-basis: 100%; text-align: left; }
  .ed-seg button span { display: none; }
  .ed-doc { max-width: 40vw; }
}
@media (max-width: 520px) { .nav a[href="/editor"] { display: none; } }
.hero-note { margin: 16px 0 0; font-size: 0.92rem; color: var(--mat-soft); }
.hero-note a { color: #fff; text-underline-offset: 3px; }

/* typing on the page, in a box or in one of the PDF's own text fields */
.ed-box.typing { border: 1.5px solid var(--sel); background: transparent; z-index: 3; }
.ed-typer { position: absolute; inset: 0; width: 100%; height: 100%; box-sizing: border-box; margin: 0; border: 0; padding: 0 2px; background: rgba(255, 255, 255, 0.94); color: #13201c; font-family: Helvetica, Arial, sans-serif; line-height: 1.15; outline: 2px solid var(--sel); outline-offset: 1px; resize: none; cursor: text; touch-action: auto; }
textarea.ed-typer { padding-top: 1px; }
.ed-form .ed-typer { outline-color: var(--own); }
/* filling in, a box shows where it is, not its name */
.ed:not([data-mode="edit"]) .ed-ph { display: none; }
.ed-also { margin: 8px 0 0; font-size: 0.92rem; color: var(--mat-soft); }
.ed-also a { color: #fff; }

/* the signature pad: draw it, or type it in a handwriting font */
.ed-padtabs { margin-bottom: 10px; }
.ed-typesig { display: grid; gap: 8px; margin-bottom: 10px; }
.ed-typesig[hidden] { display: none; }
.ed-typesig input { font: 1rem var(--sans); padding: 9px 10px; border: 1px solid var(--rule); border-radius: 7px; background: var(--paper); color: var(--ink); }
.ed-sigfonts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ed-sigfonts button { font-size: 1.35rem; line-height: 1.25; padding: 8px 6px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; color: #10243e; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ed-sigfonts button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.ed-sign canvas.typed { cursor: default; }
.ed-mysig img { max-height: 44px; }
/* a hint in a field grid spans it; on narrower screens the file name gives way to the tools */
.flds > .note { grid-column: 1 / -1; margin: 0; }
@media (max-width: 1180px) { .ed-doc { max-width: 12ch; } .ed-status { order: 10; flex-basis: 100%; text-align: left; } }
[data-values] > .note { padding: 0 12px; }

/* ---- what every free tool promises, on the mat under a heading or the main buttons ---- */
.promises { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 0.92rem var(--sans); color: var(--mat-ink); }
.promises li { position: relative; padding-left: 20px; }
.promises li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 10px; height: 5px; border-left: 2px solid #7fe0b0; border-bottom: 2px solid #7fe0b0; transform: rotate(-45deg); }
.ed-head .promises { margin-top: 10px; font-size: 0.86rem; }

/* a sample, for trying a tool without a file to hand */
.drop-sample { margin: 8px 0 0; font-size: 0.86rem; color: var(--muted); }
.has-files .drop-sample { display: none; }

/* the field editor's kept PDFs, under the drop sheet on the mat */
.ed-empty { align-content: center; gap: 20px; }
.ed-recent { width: min(460px, 100%); }
.ed-recent[hidden] { display: none; }
.ed-recent h2 { font: 600 0.72rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mat-soft); margin: 0 0 8px; }
.ed-recent ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ed-recent li { display: flex; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.ed-recent-open { flex: 1; min-width: 0; display: grid; gap: 1px; text-align: left; border: 0; background: none; padding: 9px 12px; color: var(--ink); font: inherit; cursor: pointer; }
.ed-recent-open:hover { background: var(--mint-2); }
.ed-recent-open b { font-weight: 600; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-recent-open span { font: 0.74rem var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-recent-x { flex: none; border: 0; border-left: 1px solid var(--rule); background: none; color: var(--muted); padding: 0 13px; cursor: pointer; }
.ed-recent-x:hover { color: var(--bad); background: var(--paper-2); }
.ed-recent .note { color: var(--mat-soft); font-size: 0.8rem; margin: 8px 0 0; }

/* Save to your account, at the top of the Template & API tab */
.ed-acct { padding-bottom: 14px; margin-bottom: 2px; border-bottom: 1px solid var(--rule); }
.ed-acct h3 { margin-top: 2px; }
.ed-acct-msg { margin: 8px 0 0; font-size: 0.82rem; color: var(--accent-ink); overflow-wrap: anywhere; }
.ed-acct-msg:empty { display: none; }
.ed-acct-msg.bad { color: var(--bad); }

/* framed by the dashboard (dash.pdfedge.com/app): the editor alone */
.embedded .top, .embedded .foot, .embedded .skip, .embedded .ed-head, .embedded .ed ~ .section { display: none; }
.embedded .ed { padding: 10px 0 12px; }
.embedded .ed-wrap { width: calc(100% - 20px); }
@media (min-width: 901px) { .embedded .ed-body { height: max(480px, calc(100vh - 76px)); } }

/* ---- the questions page ---- */
.faq { max-width: 46em; }
.faq h2 { font-size: 1.4rem; margin: 1.9em 0 0.5em; }
.faq h2:first-child { margin-top: 0; }
.faq-q { border-bottom: 1px solid var(--rule); }
.faq h2 + .faq-q { border-top: 1px solid var(--rule); }
.faq-q summary { position: relative; list-style: none; cursor: pointer; padding: 14px 32px 14px 0; font-weight: 600; font-size: 1.04rem; color: var(--ink); }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after { content: "+"; position: absolute; right: 4px; top: 11px; font: 400 1.3rem/1.2 var(--mono); color: var(--accent); }
.faq-q[open] summary::after { content: "−"; }
.faq-q summary:hover { color: var(--accent-ink); }
.faq-q p { margin: 0 0 16px; color: var(--ink-2); }
.hero .promises { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 24px; }
.forms-note { margin-top: 22px; }

/* ---- licences ---- */
.prose .ijg { color: var(--ink); font-weight: 500; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--mint-2); border-radius: 0 8px 8px 0; }
.lic-wrap { overflow-x: auto; }
.lic { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.lic th { text-align: left; font: 600 0.74rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); }
.lic td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
.lic td:nth-child(2), .lic td:nth-child(3) { font-family: var(--mono); font-size: 0.82rem; white-space: nowrap; }
.lic-text { border-bottom: 1px solid var(--rule); padding: 8px 0; }
.lic-text summary { cursor: pointer; font-weight: 500; color: var(--accent-ink); }
.lic-text pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 0.78rem/1.5 var(--mono); color: var(--ink-2); background: var(--paper-2); border-radius: 8px; padding: 12px 14px; margin: 10px 0 4px; }
.lic-text .note { margin: 8px 0 0; }
/* on a phone each package stacks: name and version, then its licence, then what it does */
@media (max-width: 600px) {
  .lic thead { display: none; }
  .lic, .lic tbody { display: block; }
  .lic tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .lic td { border: 0; padding: 0; }
  .lic td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .lic td:nth-child(3), .lic td:nth-child(4) { grid-column: 1 / -1; white-space: normal; }
}

/* your templates, in the dashboard: a way in on the empty page, and a list in Template & API */
.ed-mine { margin-bottom: 14px; }
.ed-recent li.here { border-color: var(--accent); }
.ed-recent-open:disabled { cursor: default; background: var(--mint-2); }
.ed-mine-acct { width: auto; margin-top: 12px; }
.ed-mine-acct h3 { margin: 0 0 6px; }
.ed-mine-acct .note { color: var(--muted); margin: 0; }
.ed-mine-acct ul { max-height: 260px; overflow: auto; }
.ed-dash-link { font-size: 0.86rem; color: var(--mat-soft); margin: 14px 0 0; text-align: center; }
.ed-dash-link a { color: #fff; }
[data-dash-link][hidden] { display: none; }
.ed-recent .note.bad, .ed-mine-acct .note.bad { color: var(--bad); }
