/* ─────────────────────────────────────────────────────────────────────────────
   Public company profile ("pub") — scoped styles.
   Everything here lives under .pub / .pub-nav / .pub-sheet so the staff
   portal (css/style.css) is unaffected.
   Brand: ink (from the logo) + one teal accent. Light is the default theme.
   ───────────────────────────────────────────────────────────────────────────── */

:root,
[data-theme="light"] {
  --p-bg: #ffffff;
  --p-bg-alt: #f6f6f3;
  --p-ink: #111418;
  --p-ink-2: #3a4048;
  --p-muted: #5d646d;
  --p-faint: #8a9099;
  --p-line: #e4e4df;
  --p-line-strong: #cfd0ca;
  --p-accent: #0e7c74;
  --p-accent-hover: #0a655e;
  --p-accent-ink: #0a5f59;
  --p-accent-wash: #e7f2f0;
  --p-on-accent: #ffffff;
  --p-plate: #ffffff;
  --p-scrim: rgba(17, 20, 24, 0.42);
  --p-shadow: 0 1px 2px rgba(17, 20, 24, 0.04), 0 8px 24px rgba(17, 20, 24, 0.06);
  --p-logo-filter: none;
}

[data-theme="dark"] {
  --p-bg: #0f1214;
  --p-bg-alt: #151a1d;
  --p-ink: #eceee9;
  --p-ink-2: #c5c9c4;
  --p-muted: #9aa1a8;
  --p-faint: #6f767d;
  --p-line: #252b30;
  --p-line-strong: #343b41;
  --p-accent: #43b5a6;
  --p-accent-hover: #5cc6b8;
  --p-accent-ink: #7fd3c7;
  --p-accent-wash: rgba(67, 181, 166, 0.12);
  --p-on-accent: #0b1513;
  --p-plate: #f4f4f1;
  --p-scrim: rgba(0, 0, 0, 0.6);
  --p-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  --p-logo-filter: invert(1) brightness(1.1);
}

.pub,
.pub-nav,
.pub-sheet {
  --p-font: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --p-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --p-wrap: 1180px;
  --p-gutter: clamp(16px, 4vw, 40px);
  font-family: var(--p-font);
  color: var(--p-ink);
  -webkit-font-smoothing: antialiased;
}

.pub { background: var(--p-bg); min-height: 100vh; }
/* Staff who open the profile while signed in see the fixed portal navbar (height varies by breakpoint) */
.navbar-logged ~ .pub { padding-top: 104px; }
@media (min-width: 1200px) { .navbar-logged ~ .pub { padding-top: 64px; } }
@media (max-width: 767px)  { .navbar-logged ~ .pub { padding-top: 56px; } }
.pub *, .pub-nav *, .pub-sheet * { box-sizing: border-box; }
.pub a, .pub-nav a, .pub-sheet a { color: inherit; }

.p-wrap {
  max-width: var(--p-wrap);
  margin: 0 auto;
  padding-left: var(--p-gutter);
  padding-right: var(--p-gutter);
}

.p-label {
  font-family: var(--p-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--p-accent-ink);
  margin: 0 0 14px;
}

.p-h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--p-ink);
}

.p-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--p-muted);
  margin: 0;
  max-width: 62ch;
}

.p-section { padding: clamp(64px, 9vw, 112px) 0; }
.p-section + .p-section { border-top: 1px solid var(--p-line); }
.p-section--alt { background: var(--p-bg-alt); }

.p-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-bottom: clamp(32px, 5vw, 48px);
}
@media (min-width: 900px) {
  .p-section-head--split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: end;
    gap: 48px;
  }
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: var(--p-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.p-btn:focus-visible,
.p-link:focus-visible,
.p-icon-btn:focus-visible,
.p-row:focus-visible,
.p-feature:focus-visible,
.p-seg button:focus-visible {
  outline: 2px solid var(--p-accent);
  outline-offset: 2px;
}
.p-btn--primary { background: var(--p-accent); color: var(--p-on-accent) !important; }
.p-btn--primary:hover { background: var(--p-accent-hover); }
.p-btn--ghost { background: transparent; border-color: var(--p-line-strong); color: var(--p-ink); }
.p-btn--ghost:hover { border-color: var(--p-ink-2); }
.p-btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.p-btn i { font-size: 18px; }

.p-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--p-accent-ink);
  cursor: pointer;
  text-decoration: none;
}
.p-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.p-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--p-line);
  background: transparent;
  color: var(--p-ink-2);
  cursor: pointer;
}
.p-icon-btn:hover { border-color: var(--p-line-strong); color: var(--p-ink); }
.p-icon-btn i { font-size: 18px; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.pub-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--p-bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.pub-nav.is-scrolled { border-bottom-color: var(--p-line); }
.pub-nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.p-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--p-ink);
  text-align: left;
  min-width: 0;
}
.p-brand img { height: 30px; width: auto; filter: var(--p-logo-filter); flex-shrink: 0; }
.p-brand-name { font-size: 14px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.2; white-space: nowrap; }
.p-brand-sub { font-family: var(--p-mono); font-size: 11px; color: var(--p-faint); line-height: 1.2; }

.pub-nav-links { display: none; gap: 4px; margin-left: 12px; }
.pub-nav-links button {
  background: none;
  border: 0;
  padding: 8px 12px;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  color: var(--p-ink-2);
  cursor: pointer;
}
.pub-nav-links button:hover { color: var(--p-ink); background: var(--p-bg-alt); }

.pub-nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.p-signin {
  background: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  color: var(--p-muted);
  cursor: pointer;
  padding: 8px 6px;
}
.p-signin:hover { color: var(--p-ink); }

.p-seg {
  display: inline-flex;
  border: 1px solid var(--p-line);
  border-radius: 6px;
  padding: 2px;
}
.p-seg button {
  border: 0;
  background: transparent;
  font-family: var(--p-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--p-muted);
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.p-seg button[aria-pressed="true"] { background: var(--p-ink); color: var(--p-bg); }

.p-nav-cta { display: none; }
.p-hide-sm { display: none; }

@media (min-width: 640px) {
  .p-hide-sm { display: inline-flex; }
}
@media (min-width: 960px) {
  .pub-nav-links { display: flex; }
  .p-nav-cta { display: inline-flex; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.p-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); }
.p-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}
@media (min-width: 1000px) {
  .p-hero-grid { grid-template-columns: minmax(0, 11fr) minmax(0, 12fr); }
}
.p-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: var(--p-ink);
}
.p-hero h1 .p-hero-l2 { color: var(--p-muted); font-weight: 500; }
.p-hero .p-lead { font-size: 18px; }
.p-hero .p-lead p { margin: 0; }
.p-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.p-hero-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--p-line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.p-hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--p-ink-2);
}
.p-hero-points i { font-size: 20px; color: var(--p-accent); }
.p-hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--p-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-hero-note i { font-size: 16px; color: var(--p-accent); }

.p-shot {
  position: relative;
  border: 1px solid var(--p-line);
  border-radius: 10px;
  background: var(--p-bg-alt);
  box-shadow: var(--p-shadow);
  overflow: hidden;
}
.p-shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--p-line);
  background: var(--p-bg);
  font-family: var(--p-mono);
  font-size: 11px;
  color: var(--p-faint);
}
.p-shot-bar span.d { width: 8px; height: 8px; border-radius: 50%; background: var(--p-line-strong); }
.p-shot-bar .t { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-shot img { display: block; width: 100%; height: auto; }
.p-shot-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--p-faint);
}

/* Fallback panel when no screenshot exists: a plain capability list, no fake data */
.p-shot-list { list-style: none; margin: 0; padding: 8px 0; }
.p-shot-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--p-line);
  font-size: 14px;
  color: var(--p-ink-2);
}
.p-shot-list li:first-child { border-top: 0; }
.p-shot-list i { font-size: 18px; color: var(--p-accent); }
.p-shot-list b { display: block; color: var(--p-ink); font-weight: 500; }

/* ── Stats band ──────────────────────────────────────────────────────────── */
.p-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--p-line);
  border-bottom: 1px solid var(--p-line);
}
@media (min-width: 800px) {
  .p-stats { grid-template-columns: repeat(var(--p-stat-cols, 4), minmax(0, 1fr)); }
}
.p-stat { padding: 24px 20px 24px 0; }
.p-stat + .p-stat { padding-left: 20px; border-left: 1px solid var(--p-line); }
@media (max-width: 799px) {
  .p-stat:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
  .p-stat:nth-child(n + 3) { border-top: 1px solid var(--p-line); }
}
.p-stat-value {
  font-family: var(--p-mono);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--p-ink);
  line-height: 1.1;
}
.p-stat-label { margin-top: 6px; font-size: 14px; color: var(--p-muted); }

/* ── Client logo wall ────────────────────────────────────────────────────── */
.p-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--p-line);
  border: 1px solid var(--p-line);
  border-radius: 10px;
  overflow: hidden;
}
@media (min-width: 640px) { .p-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .p-logos { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.p-logo-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 132px;
  padding: 20px 16px;
  background: var(--p-bg);
  text-align: center;
}
.p-logo-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  width: 100%;
  border-radius: 6px;
}
[data-theme="dark"] .p-logo-plate { background: var(--p-plate); padding: 6px 10px; }
.p-logo-plate img { max-height: 44px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
.p-logo-name { font-size: 13px; line-height: 1.35; color: var(--p-muted); }
.p-logo-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--p-line-strong);
  font-family: var(--p-mono);
  font-size: 13px;
  color: var(--p-ink-2);
}

/* ── Product board ───────────────────────────────────────────────────────── */
.p-board { display: grid; gap: 16px; }

.p-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--p-line);
  border-radius: 10px;
  background: var(--p-bg);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  padding: 0;
  transition: border-color .15s ease;
}
.p-feature:hover { border-color: var(--p-line-strong); }
@media (min-width: 960px) { .p-feature:has(.p-feature-media) { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.p-feature:not(:has(.p-feature-media)) .p-prod-desc { max-width: 70ch; }
.p-feature-body { padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.p-feature-media {
  background: var(--p-bg-alt);
  border-top: 1px solid var(--p-line);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px 0 0 24px;
  min-height: 220px;
}
@media (min-width: 960px) {
  .p-feature-media { border-top: 0; border-left: 1px solid var(--p-line); padding: 40px 0 0 40px; }
}
.p-feature-media img {
  display: block;
  width: 100%;
  height: auto;
  border-top-left-radius: 8px;
  border: 1px solid var(--p-line);
  border-right: 0;
  border-bottom: 0;
}
.p-feature-points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.p-feature-points li { display: flex; gap: 10px; font-size: 15px; color: var(--p-ink-2); line-height: 1.5; }
.p-feature-points i { color: var(--p-accent); font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.p-feature .p-link { margin-top: auto; padding-top: 8px; }

.p-tagline { display: flex; align-items: center; gap: 10px; }
.p-tag {
  font-family: var(--p-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--p-accent-ink);
  background: var(--p-accent-wash);
  padding: 3px 8px;
  border-radius: 4px;
}
.p-prod-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--p-line);
  color: var(--p-ink);
  flex-shrink: 0;
}
.p-prod-icon i { font-size: 22px; }
.p-prod-name { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; margin: 0; line-height: 1.25; }
.p-prod-desc { font-size: 15px; line-height: 1.6; color: var(--p-muted); margin: 0; }

.p-rows { border: 1px solid var(--p-line); border-radius: 10px; overflow: hidden; background: var(--p-bg); }
.p-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 20px clamp(16px, 2.5vw, 28px);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--p-line);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background-color .15s ease;
}
.p-row:first-child { border-top: 0; }
.p-row:hover { background: var(--p-bg-alt); }
.p-row-main { min-width: 0; }
.p-row-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.p-row-name { font-size: 17px; font-weight: 600; color: var(--p-ink); }
.p-row-desc {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--p-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-row > i { font-size: 20px; color: var(--p-faint); transition: transform .15s ease, color .15s ease; }
.p-row:hover > i { color: var(--p-accent); transform: translateX(2px); }

.p-subhead {
  font-family: var(--p-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--p-faint);
  margin: 28px 0 10px;
}

/* ── Why TAM ─────────────────────────────────────────────────────────────── */
.p-why {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 40px;
}
@media (min-width: 760px) { .p-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .p-why { grid-template-columns: repeat(var(--p-why-cols, 3), minmax(0, 1fr)); } }
.p-why-item { padding: 24px 0 32px; border-top: 1px solid var(--p-line); }
.p-why-num { font-family: var(--p-mono); font-size: 12px; color: var(--p-faint); margin-bottom: 18px; }
.p-why-title { font-size: 18px; font-weight: 600; line-height: 1.3; margin: 0 0 10px; color: var(--p-ink); }
.p-why-text { font-size: 15px; line-height: 1.6; color: var(--p-muted); }
.p-why-text p { margin: 0; }

/* ── Partners ────────────────────────────────────────────────────────────── */
.p-partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 760px) { .p-partners { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.p-partner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--p-line);
  border-radius: 8px;
  background: var(--p-bg);
  min-width: 0;
}
.p-partner .p-logo-plate { width: 56px; height: 40px; flex-shrink: 0; }
.p-partner .p-logo-plate img { max-height: 34px; max-width: 52px; }
[data-theme="dark"] .p-partner .p-logo-plate { padding: 4px; }
.p-partner-name { font-size: 14px; font-weight: 500; color: var(--p-ink); line-height: 1.3; }
.p-partner-role { font-size: 12px; color: var(--p-faint); margin-top: 2px; }

/* ── Contact ─────────────────────────────────────────────────────────────── */
.p-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) { .p-contact { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; } }
.p-contact-card {
  border: 1px solid var(--p-line);
  border-radius: 10px;
  background: var(--p-bg);
  overflow: hidden;
}
.p-contact-line {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-top: 1px solid var(--p-line);
  text-decoration: none;
  transition: background-color .15s ease;
}
.p-contact-line:first-child { border-top: 0; }
.p-contact-line:hover { background: var(--p-bg-alt); }
.p-contact-line .k { font-size: 12px; font-family: var(--p-mono); color: var(--p-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.p-contact-line .v { font-size: 16px; font-weight: 500; color: var(--p-ink); overflow-wrap: anywhere; }
.p-contact-line > i:last-child { color: var(--p-faint); font-size: 18px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.p-footer { border-top: 1px solid var(--p-line); padding: 48px 0 32px; background: var(--p-bg); }
.p-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
@media (min-width: 800px) { .p-footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } }
.p-footer h4 {
  font-family: var(--p-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--p-faint);
  margin: 0 0 14px;
}
.p-footer-links { display: grid; gap: 10px; justify-items: start; }
.p-footer-links button,
.p-footer-links a {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--p-ink-2);
  cursor: pointer;
  text-decoration: none;
  text-align: left;
}
.p-footer-links button:hover,
.p-footer-links a:hover { color: var(--p-ink); text-decoration: underline; text-underline-offset: 3px; }
.p-footer-about { font-size: 14px; line-height: 1.6; color: var(--p-muted); max-width: 46ch; margin: 14px 0 0; }
.p-footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--p-line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--p-faint);
}

/* ── Product detail sheet ────────────────────────────────────────────────── */
.pub-sheet {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  justify-content: flex-end;
}
.p-scrim { position: absolute; inset: 0; background: var(--p-scrim); }
.p-panel {
  position: relative;
  width: min(760px, 100%);
  height: 100%;
  background: var(--p-bg);
  border-left: 1px solid var(--p-line);
  display: flex;
  flex-direction: column;
  box-shadow: var(--p-shadow);
}
.p-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid var(--p-line);
  flex-shrink: 0;
}
.p-panel-head .p-crumb { font-family: var(--p-mono); font-size: 12px; color: var(--p-faint); }
.p-panel-head .p-spacer { flex: 1; }
.p-panel-body { overflow-y: auto; padding: clamp(24px, 4vw, 40px) clamp(16px, 3vw, 32px) 48px; flex: 1; overscroll-behavior: contain; }
.p-panel-body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 16px 0 12px; }
.p-panel-body .p-lead { font-size: 17px; }
.p-panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.p-panel-gallery { margin-top: 28px; display: grid; gap: 12px; }
.p-panel-gallery img { width: 100%; height: auto; display: block; border: 1px solid var(--p-line); border-radius: 8px; }

.p-panel-section { margin-top: 36px; }
.p-panel-section > h3 {
  font-family: var(--p-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--p-faint);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--p-line);
}

.p-rich { font-size: 15px; line-height: 1.65; color: var(--p-ink-2); }
.p-rich p { margin: 0 0 12px; }
.p-rich p:has(> br:only-child) { display: none; }
.p-rich ul { list-style: none; margin: 0; padding: 0; }
.p-rich li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid var(--p-line); }
.p-rich li:first-child { border-top: 0; padding-top: 0; }
.p-rich li:first-child::before { top: 9px; }
.p-rich li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 21px;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--p-accent);
}
.p-rich strong { color: var(--p-ink); font-weight: 600; }

.p-facts { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; }
.p-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--p-line);
}
.p-facts > div:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 560px) { .p-facts > div { grid-template-columns: 180px minmax(0, 1fr); gap: 16px; } }
.p-facts dt { font-size: 14px; color: var(--p-faint); }
.p-facts dd { margin: 0; font-size: 15px; color: var(--p-ink); line-height: 1.5; }

.p-panel-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px clamp(16px, 3vw, 32px);
  border-top: 1px solid var(--p-line);
  flex-shrink: 0;
}
.p-panel-foot button { max-width: 48%; }
.p-panel-foot button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.p-sheet-enter-active, .p-sheet-leave-active { transition: opacity .2s ease; }
.p-sheet-enter-active .p-panel, .p-sheet-leave-active .p-panel { transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.p-sheet-enter-from, .p-sheet-leave-to { opacity: 0; }
.p-sheet-enter-from .p-panel, .p-sheet-leave-to .p-panel { transform: translateX(32px); }

@media (prefers-reduced-motion: reduce) {
  .p-sheet-enter-active, .p-sheet-leave-active,
  .p-sheet-enter-active .p-panel, .p-sheet-leave-active .p-panel { transition: none; }
}
