/* The business panel (mk-panel), v2 (2026-10-02). Its own sheet: style.css
   stays with the landing page and the console's sign-in pages, console.css
   with the console, so a change here moves neither.

   The same family as the console (documents/04-design-system.md): the blue
   accent, the night-navy dark, the system font, cards, pills and the reticle
   mark. The difference is who works here. The console is ours and dense; the
   panel is the customer's, on whatever screen they have. So the sidebar is
   the page's own surface rather than a navy instrument rail, the type does
   not shrink as far, and the content keeps to a readable width.

   Every colour comes from the tokens below; one written anywhere else is a
   bug. Dark follows prefers-color-scheme. */

/* ------------------------------------------------------------------ tokens */

:root {
  color-scheme: light dark;

  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --sunken: #eceef3;
  --line: #e3e6ea;
  --line-strong: #cfd5dd;

  --text: #0e1116;
  --text-2: #3f4955;
  --text-soft: #5f6874;
  --text-faint: #8f98a3;

  --accent: #2f86f6;
  --accent-strong: #1f6fd9;
  --accent-ink: #1a62c4;
  --accent-soft: #e8f1fe;
  --accent-line: #b9d5fb;
  --on-accent: #ffffff;

  --ok: #1a7f46;
  --ok-soft: #e4f5eb;
  --pending: #965a0c;
  --pending-soft: #fdf1dc;
  --danger: #c8333a;
  --danger-soft: #fdeceb;
  --danger-solid: #d33a3f;
  --ok-solid: #1d8f4e;

  --side-bg: #ffffff;
  --side-line: #e3e6ea;
  --side-hover: #f2f4f7;
  --mark-bg: #0e1621;
  --mark-fg: #5aa7f8;

  --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-2: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px -12px rgba(16, 24, 40, 0.18);
  --focus: 0 0 0 3px rgba(47, 134, 246, 0.35);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --side-w: 256px;
  --radius: 14px;
  --radius-sm: 9px;
  --gutter: 32px;
  --content-max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1018;
    --surface: #131c26;
    --surface-2: #17212b;
    --sunken: #0f1720;
    --line: #222e3a;
    --line-strong: #2f3d4b;

    --text: #eef2f6;
    --text-2: #c2ccd6;
    --text-soft: #94a1ae;
    --text-faint: #66768a;

    --accent: #4c9af5;
    --accent-strong: #6aaef8;
    --accent-ink: #8cc1fa;
    --accent-soft: #19304d;
    --accent-line: #2b4f7c;

    --ok: #4cd07d;
    --ok-soft: rgba(61, 208, 106, 0.13);
    --pending: #f2b544;
    --pending-soft: rgba(242, 181, 68, 0.13);
    --danger: #ff6b6f;
    --danger-soft: rgba(242, 85, 90, 0.14);

    --side-bg: #0e151e;
    --side-line: #1d2834;
    --side-hover: #16202b;
    --mark-bg: #19304d;
    --mark-fg: #8cc1fa;

    --shadow-1: 0 1px 0 rgba(0, 0, 0, 0.25);
    --shadow-2: 0 1px 0 rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.7);
    --focus: 0 0 0 3px rgba(76, 154, 245, 0.45);
  }
}

/* -------------------------------------------------------------------- base */

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body.pn {
  --fs: 15px;
  --fs-xs: 12.5px;
  --fs-sm: calc(var(--fs) * 0.93);
  --fs-lg: calc(var(--fs) * 1.13);
  --gap: 16px;

  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px)  { body.pn { --fs: 14.5px; --gap: 18px; } }
@media (min-width: 1280px) { body.pn { --fs: 14px; } }

.pn a { color: var(--accent-ink); text-decoration: none; }
.pn a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.pn :focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.pn h1, .pn h2, .pn h3 { color: var(--text); letter-spacing: -0.01em; }
.pn p { margin: 0 0 10px; }
.pn p:last-child { margin-bottom: 0; }
.pn strong { font-weight: 600; }
.pn code { font-family: var(--mono); font-size: 0.88em; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--on-accent) !important; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }
.icon { flex: 0 0 auto; display: block; }

/* ------------------------------------------------------------------- shell */

.shell {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}
.nav-toggle { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ----------------------------------------------------------------- sidebar */

.side {
  position: sticky; top: 0; align-self: start;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--side-bg);
  border-right: 1px solid var(--side-line);
  z-index: 30;
}
.side-head { display: flex; align-items: center; gap: 8px; padding: 18px 16px 12px 18px; flex: 0 0 auto; }

.pn .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.pn .brand:hover { text-decoration: none; color: var(--text); }
.brand-mark {
  flex: 0 0 auto; width: 34px; height: 34px; padding: 5px;
  border-radius: 10px; background: var(--mark-bg); color: var(--mark-fg);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.brand-sub { font-size: 10.5px; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); margin-top: 3px; }

.side-close {
  display: none; margin-left: auto; width: 36px; height: 36px; border-radius: 9px;
  align-items: center; justify-content: center; color: var(--text-soft); cursor: pointer;
}
.side-close:hover { background: var(--side-hover); color: var(--text); }

/* Whose panel this is: the organisation, its prefix and its badge. */
.pn a.org-chip {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 12px 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2); color: var(--text); text-decoration: none; min-width: 0;
}
.pn a.org-chip:hover { border-color: var(--accent-line); text-decoration: none; color: var(--text); }
.org-avatar {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15px;
}
.org-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.org-name { font-weight: 650; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-slug { font-family: var(--mono); font-size: 11.5px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The switcher, for a person in several organisations: the same chip, as a
   <details> summary, and the list opening under it in the flow (the sidebar
   scrolls; a floating menu would be clipped in the drawer). */
.org-switch { margin: 4px 12px 10px; }
.org-switch > summary { list-style: none; cursor: pointer; }
.org-switch > summary::-webkit-details-marker { display: none; }
.pn .org-switch > .org-chip {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-width: 0;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text);
}
.pn .org-switch > .org-chip:hover, .org-switch[open] > .org-chip { border-color: var(--accent-line); }
.org-switch > .org-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.org-caret { margin-left: auto; flex: 0 0 auto; display: inline-flex; color: var(--text-soft); transform: rotate(90deg); transition: transform .15s ease; }
.org-switch[open] .org-caret { transform: rotate(-90deg); }
.org-menu {
  margin-top: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2); box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}
.org-menu-label { margin: 4px 8px 6px !important; font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.org-menu ul { list-style: none; margin: 0; padding: 0; }
.org-menu form { margin: 0; }
.pn .org-option {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; min-width: 0; margin: 1px 0;
  padding: 7px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--text);
  font: inherit; text-align: left; cursor: pointer; box-shadow: none;
}
.pn .org-option:hover { background: var(--side-hover); }
.pn .org-option[aria-current="true"] { background: var(--side-hover); cursor: default; }
.org-option .org-avatar { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
.org-check { margin-left: auto; flex: 0 0 auto; display: inline-flex; color: var(--accent-ink); }
.pn a.org-menu-link {
  display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 10px;
  border-top: 1px solid var(--line); color: var(--text-soft); font-size: 13px; text-decoration: none;
}
.pn a.org-menu-link:hover { color: var(--text); }

.side-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 12px 16px; }
.nav-group-label {
  margin: 16px 10px 6px !important;
  font-size: 11px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint);
}
.pn .nav-item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  min-height: 38px; padding: 7px 12px; margin: 1px 0;
  border-radius: 10px;
  color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500;
}
.pn .nav-item .icon { width: 18px; height: 18px; color: var(--text-soft); }
.pn .nav-item:hover { background: var(--side-hover); color: var(--text); text-decoration: none; }
.pn .nav-item.is-active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.pn .nav-item.is-active .icon { color: var(--accent); }
.pn .nav-item.is-active::before {
  content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--accent);
}
.nav-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.side-foot {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 12px 12px 14px 16px; border-top: 1px solid var(--side-line);
}
.me { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.me-avatar {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sunken); color: var(--text-2); font-weight: 700; font-size: 13px;
}
.me-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.me-name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-role { color: var(--text-soft); font-size: 11.5px; margin-top: 2px; }
.pn .out { margin: 0; flex: 0 0 auto; }
.pn button.out-button {
  min-height: 32px; padding: 0 10px; gap: 6px;
  background: transparent; border: 1px solid var(--line); color: var(--text-2);
  font-size: 12.5px; font-weight: 500;
}
.pn button.out-button .icon { width: 15px; height: 15px; }
.pn button.out-button:hover { background: var(--side-hover); border-color: var(--line-strong); color: var(--text); }

.scrim { display: none; }

/* -------------------------------------------------------------------- main */

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  min-height: 70px; padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.heading { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; max-width: var(--content-max); }
.topbar h1 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-soft); min-width: 0; }
.pn .crumbs a { color: var(--text-soft); }
.pn .crumbs a:hover { color: var(--accent-ink); }
.crumbs .sep { color: var(--text-faint); }
.crumbs .badge { height: 17px; padding: 0 5px; font-size: 10.5px; }

.menu-button {
  display: none; width: 42px; height: 42px; border-radius: 11px;
  align-items: center; justify-content: center; flex: 0 0 auto;
  color: var(--text); cursor: pointer; border: 1px solid var(--line); background: var(--surface);
}
.menu-button .icon { width: 20px; height: 20px; }

.content {
  width: 100%; max-width: calc(var(--content-max) + 2 * var(--gutter));
  padding: 26px var(--gutter) 56px;
  display: flex; flex-direction: column; gap: var(--gap);
  min-width: 0;
}

/* ------------------------------------------------------- narrow: a drawer */

@media (max-width: 899px) {
  :root { --gutter: 16px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side {
    position: fixed; inset: 0 auto 0 0;
    width: min(300px, 86vw); height: 100%;
    transform: translateX(-102%);
    transition: transform 0.26s cubic-bezier(.2,.7,.2,1), visibility 0s linear 0.26s;
    visibility: hidden; z-index: 50;
  }
  .nav-toggle:checked ~ .shell .side {
    transform: none; visibility: visible;
    transition: transform 0.26s cubic-bezier(.2,.7,.2,1);
    box-shadow: 24px 0 48px rgba(0, 0, 0, 0.3);
  }
  .side-close { display: inline-flex; }
  .nav-toggle:checked ~ .shell .scrim {
    display: block; position: fixed; inset: 0; z-index: 45;
    background: rgba(8, 14, 22, 0.5); cursor: pointer;
  }
  body.pn:has(.nav-toggle:checked) { overflow: hidden; }
  .menu-button { display: inline-flex; }
  .topbar { min-height: 62px; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .topbar h1 { font-size: 19px; }
  .content { padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none !important; } }

/* ------------------------------------------------------------------ panels */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 20px 22px;
  min-width: 0;
  overflow-x: auto;
}
@media (max-width: 599px) { .panel { padding: 16px; } }
.panel > h2 { margin: 0 0 12px; font-size: 16px; font-weight: 650; }
.panel h3 { margin: 18px 0 8px; font-size: 14px; font-weight: 650; }
.panel > h3:first-child, .panel h3:first-child { margin-top: 0; }
.section {
  margin: 12px 0 -4px !important;
  font-size: 12px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft);
}
.intro { color: var(--text-2); max-width: 62em; }
.eyebrow { margin: 0 0 6px !important; font-size: 11.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }

.soft { color: var(--text-soft); }
.small { font-size: var(--fs-xs); }
.wrap { white-space: normal !important; max-width: 24em; overflow-wrap: break-word; }
.ok, .pn td.ok { color: var(--ok); }
.warn-text { color: var(--danger); }
.num { font-variant-numeric: tabular-nums; }
.pn .num { font-family: var(--mono); font-size: 0.9em; }

.row-head { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.row-head > p { margin: 0; flex: 1 1 26em; }

.note {
  margin: 0; padding: 10px 14px; border-radius: 10px;
  background: var(--surface-2); border-left: 3px solid var(--accent);
  color: var(--text-2); font-size: var(--fs-sm);
}
.note.pending-note { background: var(--pending-soft); border-left-color: var(--pending); color: var(--text); }
/* The console's support session: the same amber as "waiting", on every page. */
.note.support-note { background: var(--pending-soft); border-left-color: var(--pending); color: var(--text); margin-bottom: 16px; }

.panel > p.soft:only-child { margin: 0; padding: 24px 12px; text-align: center; }

/* ----------------------------------------------------------------- flashes */

.done, .warn {
  position: relative; margin: 0;
  padding: 12px 14px 12px 44px;
  border-radius: 11px; border: 1px solid;
  font-weight: 500; line-height: 1.45; color: var(--text);
}
.done::before, .warn::before {
  position: absolute; left: 14px; top: 12px;
  width: 19px; height: 19px; border-radius: 50%;
  color: #fff; font-size: 12px; font-weight: 800; line-height: 19px; text-align: center;
}
.done { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 28%, transparent); }
.done::before { content: "✓"; background: var(--ok-solid); }
.warn { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.warn::before { content: "!"; background: var(--danger-solid); }

/* ----------------------------------------------------------------- buttons */

.pn button, .pn a.button, .pn .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-size: var(--fs-sm); font-weight: 600; line-height: 1.2;
  white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.pn button:hover, .pn a.button:hover {
  background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); text-decoration: none;
}
.pn .button.small, .pn button.small { min-height: 34px; padding: 0 13px; }
.pn .button.wide { width: 100%; min-height: 44px; font-size: var(--fs); }
.pn button.secondary, .pn a.button.secondary, .pn button.quiet-outline {
  background: var(--surface); color: var(--text); border-color: var(--line-strong);
}
.pn button.secondary:hover, .pn a.button.secondary:hover, .pn button.quiet-outline:hover {
  background: var(--surface-2); border-color: var(--text-faint); color: var(--text);
}
.pn button.quiet-outline { color: var(--accent-ink); }
.pn button.danger { background: var(--surface); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.pn button.danger:hover { background: var(--danger-solid); color: #fff; border-color: var(--danger-solid); }
.pn a.quiet {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 10px; border-radius: 9px;
  color: var(--text-soft); font-weight: 500;
}
.pn a.quiet:hover { background: var(--sunken); color: var(--text); text-decoration: none; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ------------------------------------------------------------------- forms */

.pn input[type="text"], .pn input[type="search"], .pn input[type="number"], .pn input[type="date"],
.pn input[type="tel"], .pn input[type="email"], .pn input[type="url"], .pn input[type="password"],
.pn select, .pn textarea {
  font: inherit; font-size: var(--fs);
  min-height: 40px; padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--text);
  min-width: 0; width: 100%;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.pn select { padding-right: 30px; }
.pn textarea { line-height: 1.5; resize: vertical; }
.pn input::placeholder, .pn textarea::placeholder { color: var(--text-faint); }
.pn input:hover, .pn select:hover, .pn textarea:hover { border-color: var(--text-faint); }
.pn input:focus, .pn select:focus, .pn textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.pn input[type="checkbox"], .pn input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; flex: 0 0 auto; }
.pn input[type="file"] { font: inherit; font-size: var(--fs-sm); color: var(--text-2); max-width: 100%; }
.pn input[name="slug"] { font-family: var(--mono); font-size: 0.95em; }
.pn input[type="file"]::file-selector-button {
  font: inherit; font-size: var(--fs-sm); font-weight: 600;
  margin-right: 10px; padding: 7px 12px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text);
}
.pn input[type="file"]::file-selector-button:hover { border-color: var(--text-faint); }
.panel > .field { margin-bottom: 8px; }

.stack-form { display: flex; flex-direction: column; gap: var(--gap); }
.stack-form .panel { overflow: visible; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(15em, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field > span { font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); }
.field small { font-weight: 400; color: var(--text-soft); font-size: var(--fs-xs); line-height: 1.45; }
.slug-box { margin: 0 !important; min-height: 40px; display: flex; align-items: center; }

.choices { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px 10px; min-width: 0; }
.choices legend {
  width: 100%; padding: 0; margin-bottom: 8px;
  color: var(--text-soft); font-size: var(--fs-xs); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase;
}
.choices label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); cursor: pointer;
}
.choices label:hover { border-color: var(--accent-line); }
.choices label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choices.field { margin: 0; }
.file { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; cursor: pointer; }
.file > span { font-weight: 600; font-size: var(--fs-sm); }
.attached { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.attached label { display: inline-flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------------ tables */

.pn table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
.pn th, .pn td { text-align: start; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.pn thead th {
  background: var(--surface-2); color: var(--text-soft);
  font-size: 11.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase;
}
.panel > table { margin: 0 -22px; width: calc(100% + 44px); }
.panel > table th:first-child, .panel > table td:first-child { padding-left: 22px; }
.panel > table th:last-child, .panel > table td:last-child { padding-right: 22px; }
.panel > table thead th { border-top: 1px solid var(--line); }
.panel > table:last-child { margin-bottom: -20px; }
.panel > table:last-child tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 599px) {
  .panel > table { margin: 0 -16px; width: calc(100% + 32px); }
  .panel > table th:first-child, .panel > table td:first-child { padding-left: 16px; }
  .panel > table th:last-child, .panel > table td:last-child { padding-right: 16px; }
  .panel > table:last-child { margin-bottom: -16px; }
}
.pn tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 50%, transparent); }
.pn table.striped tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.pn table.striped tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.pn td.end { text-align: end; }
.pn td.actions-cell { text-align: end; white-space: normal; min-width: 9em; }
.pn td.wrap { min-width: 9em; }
.pn td.actions-cell > * { display: inline-flex; vertical-align: middle; margin: 2px 0 2px 6px; }
.pn td.actions-cell form { margin: 2px 0 2px 6px; }
.pn td.actions-cell button { min-height: 32px; padding: 0 12px; }
.pn td.message { min-width: 14em; max-width: 30em; white-space: normal; }
.pn td.message .msg { display: flex; align-items: center; gap: 10px; }
.pn td.message .msg > span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* On a phone the sponsored list is a stack of cards: eight columns would
   scroll sideways and hide the buttons off to the right. */
@media (max-width: 699px) {
  .pn table.sponsored thead { display: none; }
  .pn table.sponsored, .pn table.sponsored tbody { display: block; }
  .pn table.sponsored tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px;
    padding: 14px 16px; border-bottom: 1px solid var(--line);
  }
  .pn table.sponsored tbody tr:last-child { border-bottom: 0; }
  .pn table.sponsored td { padding: 0 !important; border: 0; white-space: normal; max-width: none; min-width: 0; }
  .pn table.sponsored td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 3px;
    font-family: var(--sans); font-size: 10.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft);
  }
  .pn table.sponsored td.message, .pn table.sponsored td.actions-cell { grid-column: 1 / -1; }
  .pn table.sponsored td.message::before { display: none; }
  .pn table.sponsored td.actions-cell { text-align: start; }
  .pn table.sponsored td.actions-cell > *, .pn table.sponsored td.actions-cell form { margin: 0 6px 0 0; }
}
.who-name { font-weight: 600; color: var(--text); }
.thumb { border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: var(--sunken); }

/* ------------------------------------------------------------ tags, pills */

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 23px; padding: 0 10px; border-radius: 999px;
  background: var(--sunken); color: var(--text-2);
  font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: middle; line-height: 1;
}
.tag.on { background: var(--accent); color: var(--on-accent); }
.tag[class*="status-"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.tag.status-live, .tag.status-active { background: var(--ok-soft); color: var(--ok); }
.tag.status-review, .tag.status-pending { background: var(--pending-soft); color: var(--pending); }
.tag.status-rejected, .tag.status-paused { background: var(--danger-soft); color: var(--danger); }
.tag.status-ended, .tag.status-draft { background: var(--sunken); color: var(--text-soft); }
.tag.soon { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 21px; padding: 0 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 11.5px; font-weight: 700; white-space: nowrap; vertical-align: middle;
}
.pn code.slug {
  display: inline-flex; align-items: center; height: 23px;
  font-size: 12px; font-weight: 600; padding: 0 8px; border-radius: 7px;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line);
}
/* Inside a sentence: no box of its own, only the type. */
.pn code.slug.inline {
  display: inline; height: auto; padding: 0 2px; border: 0; background: none;
  color: var(--text); overflow-wrap: anywhere;
}

.facts { margin: 0; display: grid; gap: 12px; }
.facts > div { display: grid; grid-template-columns: 1fr; gap: 3px; min-width: 0; }
.facts dt { color: var(--text-soft); font-size: var(--fs-xs); font-weight: 600; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 520px) { .facts > div { grid-template-columns: 9em minmax(0, 1fr); align-items: center; gap: 12px; } }

/* --------------------------------------------------------------- dashboard */

.widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); align-items: stretch; }
.summary-card { display: flex; flex-direction: column; gap: 8px; }
.summary-title { margin: 0 !important; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.summary-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 !important; }
.summary-link { margin-top: auto !important; padding-top: 6px; }
.summary-link a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.summary-link .icon { width: 15px; height: 15px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); }
.stat {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1);
  min-width: 0;
}
.stat-label { font-size: 12px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); }
.stat-value { font-size: 32px; font-weight: 750; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text); }

.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); }
.pn a.choice-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1);
  color: var(--text); text-decoration: none;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
.pn a.choice-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-2); transform: translateY(-1px); text-decoration: none; color: var(--text); }
.choice-card .icon { width: 22px; height: 22px; color: var(--accent); margin-bottom: 4px; }
.choice-card strong { font-size: var(--fs-lg); }

/* What is coming: an honest list, no controls. */
.roadmap { display: flex; flex-direction: column; gap: 12px; border-style: dashed; border-color: var(--line-strong); background: var(--surface-2); box-shadow: none; }
.roadmap-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel .roadmap-head h2 { margin: 0; font-size: 17px; }
.roadmap > p { margin: 0; max-width: 62em; }
.roadmap-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.roadmap-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
}
.roadmap-list li > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.roadmap-list .soft { font-size: var(--fs-sm); }
.roadmap-icon {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-ink);
}
.roadmap-icon .icon { width: 19px; height: 19px; }

/* ---------------------------------------------------------------- packages */

.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); align-items: stretch; }
.package { display: flex; flex-direction: column; gap: 8px; overflow: visible; }
.panel.package > h2 { margin: 0; font-size: 18px; }
.package.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow-2); }
.price { margin: 4px 0 0 !important; font-size: 26px; font-weight: 750; letter-spacing: -0.02em; color: var(--text); }
.price .soft { font-size: 14px; font-weight: 500; }
.bullets { margin: 4px 0; padding-inline-start: 1.2em; display: flex; flex-direction: column; gap: 4px; color: var(--text-2); }
.package-state, .package-action { margin-top: auto !important; padding-top: 8px; }
.package-action { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* --------------------------------------------------------------- sponsored */

.sp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-items: start; }
@media (min-width: 1100px) {
  .sp-layout { grid-template-columns: minmax(0, 1fr) 21em; }
  .sp-preview-panel { position: sticky; top: 90px; }
}
.sp-phone { background: var(--sunken); border: 1px solid var(--line); border-radius: 16px; padding: 8px; margin-bottom: 10px; }
.sp-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 11px; background: var(--surface); }
.sp-pic { flex: 0 0 48px; width: 48px; height: 48px; }
.sp-thumb { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; display: block; }
.sp-blank { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 700; }
.sp-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sp-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sp-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-label { flex: 0 0 auto; font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 4px; }
.sp-body, .sp-by { color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); }
.sp-by { font-size: var(--fs-xs); }
.sp-more { color: var(--text-soft); padding: 0 4px; }

.privacy-note {
  margin: 0 0 12px !important; padding: 10px 14px; border-radius: 10px;
  background: var(--accent-soft); border-left: 3px solid var(--accent); color: var(--text); font-weight: 500;
}
.audience-panel > p.soft { margin: 0 0 14px; }
.estimate {
  margin: 6px 0 0 !important; padding: 12px 14px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: var(--fs-lg);
}
.estimate strong { color: var(--accent-ink); font-variant-numeric: tabular-nums; }

/* ----------------------------------------------- before signing in (bare) */

body.pn-bare { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.bare-head { display: flex; justify-content: center; padding: 36px 16px 8px; }
.bare-main { flex: 1 0 auto; display: flex; justify-content: center; align-items: flex-start; padding: 16px 16px 40px; }
.bare-foot { text-align: center; padding: 16px; font-size: var(--fs-xs); color: var(--text-faint); }
.bare-card {
  width: 100%; max-width: 480px;
  padding: 30px 30px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 14px;
}
.bare-card > * { margin: 0 !important; }
.bare-card h1 { font-size: 23px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; }
.bare-card .lede { color: var(--text-2); font-size: var(--fs-lg); }
.bare-card > div { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 479px) { .bare-card { padding: 22px 18px 20px; border-radius: 16px; } .bare-head { padding-top: 24px; } }
.link-card { max-width: 620px; }

.flow-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.flow-steps li { position: relative; padding: 2px 0 0 38px; color: var(--text-2); counter-increment: step; min-height: 26px; }
.flow-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  font-weight: 700; font-size: 13px; line-height: 26px; text-align: center;
}
.flow-steps strong { color: var(--text); }

.link-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
@media (max-width: 559px) { .link-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; } }
.qr { background: #ffffff; border-radius: 14px; padding: 12px; line-height: 0; border: 1px solid var(--line); }
.qr-code { display: block; width: 220px; height: 220px; max-width: 64vw; max-height: 64vw; }

/* "ya da" between GlobalTrustID and the e-mail and password form (panel_login). */
.or-line { display: flex; align-items: center; gap: 12px; color: var(--text-faint); font-size: var(--fs-sm); }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.password-login { display: flex; flex-direction: column; gap: 12px; }
.password-login button { align-self: stretch; }

.dev-login {
  margin-top: 6px !important; padding-top: 16px; border-top: 1px dashed var(--line-strong);
  display: flex; flex-direction: column; gap: 12px;
}
.dev-login button { align-self: flex-start; }

/* --- Team and network marketing (panel_team, panel_nm*) --------------------- */
.pn .row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.pn .row-actions form { margin: 0; }
.pn .copy-field { width: 100%; font-family: var(--mono, ui-monospace, monospace); font-size: var(--fs-xs); }
.pn .sync-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pn .sync-actions form { margin: 0; }
.pn .filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: var(--gap); }
.pn .pager-links { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: var(--gap); }

/* --- İletişim (panel_app_users, panel_org_accounts, panel_broadcast*) ---- */
.pn .row-actions.start { justify-content: flex-start; }
.pn .presence { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); vertical-align: middle; }
.pn .presence.is-online { background: var(--ok); }
.pn .org-account-head { display: flex; gap: 12px; align-items: center; margin-bottom: var(--gap); }
.pn .org-account-head h3 { margin: 0; }
.pn .org-account-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.pn .org-account-avatar.blank { display: inline-flex; align-items: center; justify-content: center; background: var(--sunken); color: var(--text-soft); font-weight: 700; }
.pn .inline-upload { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; margin-top: var(--gap); }
.pn .estimate { font-weight: 600; }

/* --- Sohbetler (panel_chats): the app's chat, in the panel ---------------- */
.pn .chat-accounts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--gap); }
.pn .chat-account { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; background: var(--surface); }
.pn .chat-account.is-active { border-color: var(--accent); background: var(--accent-soft, var(--sunken)); }
.pn .chat-account img, .pn .chat-account .chat-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.pn .chat-shell { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); min-height: 560px; }
.pn .chat-list { border-right: 1px solid var(--line); overflow-y: auto; max-height: 72vh; }
.pn .chat-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.pn .chat-row:hover { background: var(--sunken); text-decoration: none; }
.pn .chat-row.is-active { background: var(--sunken); }
.pn .chat-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.pn .chat-avatar.blank { display: inline-flex; align-items: center; justify-content: center; background: var(--sunken); color: var(--text-soft); font-weight: 700; }
.pn .chat-row-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pn .chat-row-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn .chat-row-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-sm); }
.pn .chat-row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pn .chat-unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pn .chat-pane { display: flex; flex-direction: column; min-width: 0; background: var(--sunken); }
.pn .chat-head { padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.pn .chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; max-height: 60vh; }
.pn .chat-bubble { max-width: 72%; align-self: flex-start; background: var(--surface); border-radius: 14px 14px 14px 4px; padding: 8px 12px; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.pn .chat-bubble.mine { align-self: flex-end; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-radius: 14px 14px 4px 14px; }
.pn .chat-bubble p { margin: 0; white-space: pre-wrap; word-wrap: break-word; }
.pn .chat-time { display: block; text-align: right; margin-top: 2px; }
.pn .chat-picture { display: block; max-width: 240px; max-height: 240px; border-radius: 10px; margin-bottom: 4px; }
.pn .chat-compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); align-items: flex-end; }
.pn .chat-compose textarea { flex: 1; resize: none; }
.pn .chat-empty { padding: 24px; text-align: center; }
@media (max-width: 760px) {
  .pn .chat-shell { grid-template-columns: 1fr; }
  .pn .chat-list { max-height: 30vh; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* --- Network marketing › Üyeler (panel_nm_members, panel_nm_sheet) ------- */
/* The member list is a wide table: this page takes the whole width. */
.content.is-wide, .heading.is-wide { max-width: none; }
.pn .filters .field.grow { flex: 1 1 16em; }
.pn .filters .field select { min-width: 10em; }
.pn table.nm-members tr.is-link { cursor: pointer; }
.pn table.nm-members tr.is-link:hover td { background: var(--sunken); }

.pn .pn-dialog {
  width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-2); overflow: auto;
}
.pn .pn-dialog::backdrop { background: rgba(8, 14, 22, 0.5); }
.pn .pn-dialog.small { width: min(620px, calc(100vw - 32px)); }
.pn .nm-sheet { display: flex; flex-direction: column; }
.pn .sheet-head { display: flex; gap: 12px; align-items: center; padding: 18px 22px 12px; }
.pn .sheet-head h2 { margin: 0; font-size: 18px; }
.pn .sheet-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pn .sheet-close { font-size: 18px; }
.pn .sheet-tabs { display: flex; gap: 4px; padding: 0 22px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.pn .sheet-tab { padding: 10px 12px; color: var(--text-soft); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.pn .sheet-tab:hover { color: var(--text); text-decoration: none; }
.pn .sheet-tab.on { color: var(--accent-ink); border-bottom-color: var(--accent); }
.pn .sheet-panel { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: var(--gap); }
.pn .sheet-panel h3 { margin: 6px 0 0; }
.pn .sheet-panel > table { width: 100%; }
.pn .sheet-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pn .sheet-bar p { margin: 0; }
.pn .sheet-bar form { margin: 0; }
@media (max-width: 599px) {
  .pn .sheet-head, .pn .sheet-panel { padding-left: 16px; padding-right: 16px; }
  .pn .sheet-tabs { padding: 0 10px; }
}
/* A sheet drawn under the list without the script: a plain card. */
.pn .pn-dialog[data-open]:not([open]) { display: block; position: static; width: 100%; max-height: none; margin: 0; }

.pn .nm-identity { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; }
.pn .nm-identity > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); min-width: 12em; }
.pn .nm-nickname { font-size: 20px; overflow-wrap: anywhere; }
.pn .nm-code-box { border-color: var(--accent-line) !important; background: var(--accent-soft) !important; }
.pn .nm-code { font-size: 30px; letter-spacing: 0.18em; font-family: var(--mono, ui-monospace, monospace); color: var(--accent-ink); }
.pn .nm-count { font-size: 20px; }

.pn details.nm-demo > summary { list-style: none; align-self: flex-start; }
.pn details.nm-demo > summary::-webkit-details-marker { display: none; }
.pn details.nm-demo[open] > summary { margin-bottom: var(--gap); }
.pn .nm-demo-form { padding: 0; }
.pn .pn-dialog .nm-demo-form { padding: 20px 22px 22px; }
.pn .nm-demo-form h3 { margin: 0; }
.pn fieldset.checks { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(16em, 1fr)); gap: 10px 18px; }
.pn fieldset.checks legend { padding: 0 6px; font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); }
.pn fieldset.checks label { display: flex; gap: 8px; align-items: center; }

.pn .dropzone-area {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 120px; padding: 14px; border: 2px dashed var(--line-strong); border-radius: 12px;
  background: var(--surface-2); color: var(--text-soft); text-align: center; cursor: pointer;
}
.pn .dropzone-area:hover, .pn .dropzone.is-over .dropzone-area { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.pn .dropzone-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.pn .dropzone-preview { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
