:root {
  --page: #eee8dc;
  --surface: #faf6ed;
  --panel: #f7f1e6;
  --soft: #e6ddd0;
  --text: #202936;
  --muted: #586372;
  --blue: #0b4a92;
  --blue-strong: #07366f;
  --amber: #a95f00;
  --amber-soft: #f0ddba;
  --line: #b7aa97;
  --shadow: 0 18px 40px rgba(32, 41, 54, 0.12);
  --inset: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

:root[data-theme="dark"] {
  --page: #07111f;
  --surface: #0d1a2c;
  --panel: #101f33;
  --soft: #172a43;
  --text: #f5f7fb;
  --muted: #a7b7cc;
  --blue: #82b2ff;
  --blue-strong: #4c91ff;
  --amber: #ffad19;
  --amber-soft: #493718;
  --line: #2c4260;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  --inset: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 420px), var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 70%, white); outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 64px;
  padding: 10px max(18px, calc((100vw - 1100px) / 2));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--blue), var(--blue-strong));
  color: white;
  font-weight: 800;
  box-shadow: var(--inset), 0 8px 18px rgba(11, 74, 146, 0.28);
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 0.78rem; }
nav { display: flex; gap: 6px; justify-content: center; overflow-x: auto; scrollbar-width: none; }
nav a, .theme-toggle, .focus-tabs a {
  min-height: 36px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--surface), var(--soft));
  color: var(--text);
  box-shadow: var(--inset);
  white-space: nowrap;
}
nav a, .focus-tabs a { display: inline-flex; align-items: center; padding: 0 12px; font-size: 0.9rem; }
nav a.active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 16%, var(--surface)), var(--soft));
  color: var(--blue-strong);
  border-color: color-mix(in srgb, var(--blue) 40%, var(--line));
}
.theme-toggle { padding: 0 12px; }

.section { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100svh - 64px);
  padding-top: 42px;
  padding-bottom: 34px;
}
.page-hero {
  padding-top: 48px;
  padding-bottom: 24px;
}
.page-hero h1 {
  max-width: 13ch;
}
.page-hero .lead {
  max-width: 820px;
}
.page-hero .focus-tabs {
  margin-top: 22px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; max-width: 11ch; font-size: clamp(3rem, 8vw, 5.9rem); line-height: 0.95; }
h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.05; }
h3 { margin: 0; font-size: 1.06rem; }
.lead { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.24rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  font-weight: 800;
  box-shadow: var(--inset), 0 10px 18px rgba(32, 41, 54, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: linear-gradient(180deg, #c17412, var(--amber)); color: white; }
.button.secondary { background: linear-gradient(180deg, var(--surface), var(--soft)); color: var(--blue-strong); }
.external-link {
  color: var(--blue);
  text-decoration: none;
  text-underline-offset: 3px;
}
.external-link:hover,
.external-link:focus-visible {
  color: var(--blue-strong);
  text-decoration: underline;
}
.project-link {
  display: inline-flex;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 800;
}
.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}
.resource-links a {
  font-size: 0.9rem;
  font-weight: 800;
}

.profile-panel, .credibility article, .experience-card, .capability-card, .project-card, .proof-card, .draft-panel, .contact, .route-card, .traffic-card, .story-card, .answer-card, .admin-table {
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, white), var(--panel));
  box-shadow: var(--inset), var(--shadow);
}
.profile-panel { padding: 24px; }
.portrait-panel {
  align-self: center;
  padding: 18px;
}
.panel-topline { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.9rem; }
.panel-topline strong { color: var(--blue); }
.profile-panel p, .credibility p, .capability-card p, .project-card p, .proof-card p, .contact p, .rich-text p, .path-note { color: var(--muted); }
.signal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.signal-grid span, .tag-row span {
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--amber-soft) 55%, var(--surface));
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}
.signal-grid span { padding: 11px; }
.profile-art {
  display: block;
  width: 100%;
  margin-top: 18px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(32, 41, 54, 0.14);
}
.portrait-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 310px);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--blue) 30%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--blue) 14%, transparent), transparent 42%),
    var(--soft);
  box-shadow: var(--inset), 0 18px 38px rgba(32, 41, 54, 0.2);
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid color-mix(in srgb, white 30%, transparent);
  border-radius: 6px;
  pointer-events: none;
}
.portrait-frame img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
}
.portrait-fallback {
  display: none;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--blue), var(--blue-strong));
  color: white;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: var(--inset), 0 12px 28px rgba(11, 74, 146, 0.28);
}
.portrait-frame.missing-photo .portrait-fallback {
  display: grid;
}
.credibility { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 10px; }
.credibility article, .capability-card, .project-card, .proof-card { padding: 18px; }
.credibility span, .project-card > span, .proof-card > span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.split { display: grid; grid-template-columns: 0.7fr 1fr; gap: 38px; align-items: start; }
.rich-text p:first-child { margin-top: 0; }
.section-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 18px; }
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.route-card {
  min-height: 150px;
  padding: 18px;
  transition: transform 160ms ease, border-color 160ms ease;
}
.route-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--blue) 48%, var(--line));
}
.route-card span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.route-card strong {
  display: block;
  font-size: 1.04rem;
  line-height: 1.35;
}
.compact-preview {
  padding-top: 34px;
}
.focus-tabs { display: inline-flex; gap: 6px; padding: 4px; border: 1px solid color-mix(in srgb, var(--line) 55%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--soft) 58%, transparent); overflow-x: auto; }
.focus-tabs a.active { background: linear-gradient(180deg, var(--blue), var(--blue-strong)); color: white; border-color: color-mix(in srgb, var(--blue) 80%, white); }
.experience-list { display: grid; gap: 14px; }
.experience-card { padding: 18px; }
.card-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.card-heading strong,
.card-heading small {
  display: block;
}
.card-heading small {
  color: var(--muted);
}
.experience-card summary {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 18px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.experience-card summary::-webkit-details-marker { display: none; }
.experience-card summary strong, .experience-card summary small { display: block; }
.experience-card summary small, .period { color: var(--muted); }
.summary-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}
.period { font-weight: 800; }
.expand-indicator {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.expand-indicator::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid color-mix(in srgb, var(--amber) 78%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--amber) 16%, var(--surface));
  color: var(--amber);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 14%, transparent), 0 0 18px color-mix(in srgb, var(--amber) 52%, transparent);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}
.experience-card[open] .expand-indicator::before {
  content: "-";
  border-color: color-mix(in srgb, var(--blue) 48%, var(--line));
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: var(--blue-strong);
  box-shadow: none;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.tag-row span { padding: 5px 8px; }
.experience-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.experience-detail ul, .capability-card ul, .role-breakdown ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.role-breakdown {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.role-breakdown > h3 {
  margin-bottom: 12px;
}
.role-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.role-breakdown article {
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--soft) 38%, transparent);
}
.role-breakdown strong,
.role-breakdown small {
  display: block;
}
.role-breakdown small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}
.proof-box { grid-column: 1 / -1; padding: 15px; border: 1px dashed color-mix(in srgb, var(--amber) 72%, var(--line)); border-radius: 8px; background: color-mix(in srgb, var(--amber-soft) 36%, transparent); }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.project-grid, .proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.proof-card.hold { border-color: color-mix(in srgb, var(--amber) 60%, var(--line)); }
.proof-card.candidate { border-color: color-mix(in srgb, var(--blue) 58%, var(--line)); }
.proof-card small { color: var(--muted); }
.update-section { align-items: stretch; }
.draft-panel { display: grid; gap: 16px; padding: 18px; }
.draft-panel form { display: grid; gap: 12px; }
.narrow { max-width: 720px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 0.9rem; font-weight: 800; }
input, textarea { width: 100%; border: 1px solid color-mix(in srgb, var(--line) 85%, transparent); border-radius: 8px; background: var(--surface); color: var(--text); padding: 10px 11px; }
textarea { min-height: 92px; resize: vertical; }
.draft-list { display: grid; gap: 10px; }
.draft-list article { padding: 12px; border: 1px solid color-mix(in srgb, var(--line) 65%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--soft) 45%, transparent); }
.draft-list strong, .draft-list span { display: block; }
.draft-list span { color: var(--muted); font-size: 0.9rem; }
.contact { margin-bottom: 34px; padding: 28px; }
.form-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--amber) 70%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--amber-soft) 40%, transparent);
  color: var(--text);
  font-weight: 800;
}
.traffic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.traffic-card {
  padding: 16px;
}
.traffic-card span,
.story-card span,
.answer-card span {
  display: block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.traffic-card strong {
  display: block;
  margin-top: 6px;
  font-size: 2.1rem;
  line-height: 1;
}
.traffic-card small {
  color: var(--muted);
}
.admin-table {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  text-align: left;
  white-space: nowrap;
}
th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.story-list {
  display: grid;
  gap: 14px;
}
.story-card,
.answer-card {
  padding: 18px;
}
.story-card p,
.answer-card p,
.answer-card li {
  color: var(--muted);
}
.story-card .button {
  margin-top: 8px;
}
.answer-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.jp-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  touch-action: none;
  user-select: none;
}
.jp-widget.is-dragging {
  cursor: grabbing;
}
.jp-invite {
  position: absolute;
  right: 70px;
  bottom: 7px;
  width: 210px;
  border: 1px solid color-mix(in srgb, var(--amber) 70%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, white);
  color: var(--text);
  box-shadow: var(--inset), 0 14px 30px rgba(246, 166, 35, 0.24);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.22;
  animation: jpInviteFloat 3.4s ease-in-out infinite;
  cursor: pointer;
  touch-action: manipulation;
}
.jp-invite::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-top: 1px solid color-mix(in srgb, var(--amber) 70%, var(--line));
  border-right: 1px solid color-mix(in srgb, var(--amber) 70%, var(--line));
  background: color-mix(in srgb, var(--surface) 92%, white);
  transform: translateY(-50%) rotate(45deg);
}
.jp-invite:hover {
  border-color: var(--amber);
  box-shadow: var(--inset), 0 0 0 4px color-mix(in srgb, var(--amber) 18%, transparent), 0 18px 36px rgba(246, 166, 35, 0.28);
}
.jp-widget.is-open .jp-invite {
  display: none;
}
.jp-launcher {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid color-mix(in srgb, var(--amber) 70%, var(--line));
  border-radius: 50%;
  background: linear-gradient(180deg, var(--blue), var(--blue-strong));
  color: white;
  box-shadow: var(--inset), 0 14px 30px rgba(11, 74, 146, 0.34);
  font-weight: 900;
  touch-action: none;
  animation: jpLauncherGlow 2.8s ease-in-out infinite;
}
.jp-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: grid;
  grid-template-rows: auto minmax(170px, 1fr) auto;
  width: min(390px, calc(100vw - 28px));
  max-height: min(620px, calc(100svh - 110px));
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, white), var(--panel));
  box-shadow: var(--inset), 0 20px 52px rgba(32, 41, 54, 0.22);
  user-select: text;
}
.jp-panel[hidden] {
  display: none;
}
.jp-widget.open-down .jp-panel {
  top: 72px;
  bottom: auto;
}
.jp-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  cursor: grab;
  user-select: none;
}
.jp-header strong,
.jp-header small {
  display: block;
}
.jp-header small {
  color: var(--muted);
}
.jp-minimize {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 50%;
  background: var(--soft);
  color: var(--text);
  padding: 0;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  touch-action: manipulation;
}
.jp-minimize span {
  pointer-events: none;
}
.jp-minimize:hover {
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
  color: var(--blue-strong);
}
.jp-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
}
.jp-message {
  max-width: 92%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.94rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.jp-message.jp {
  justify-self: start;
  background: color-mix(in srgb, var(--soft) 72%, var(--surface));
  color: var(--text);
}
.jp-message.user {
  justify-self: end;
  background: linear-gradient(180deg, var(--blue), var(--blue-strong));
  color: white;
}
.jp-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  min-width: 0;
}
.jp-form textarea {
  min-height: 44px;
  max-height: 120px;
  min-width: 0;
}

@keyframes jpLauncherGlow {
  0%, 100% {
    box-shadow: var(--inset), 0 14px 30px rgba(11, 74, 146, 0.34), 0 0 0 0 color-mix(in srgb, var(--blue) 26%, transparent);
  }
  50% {
    box-shadow: var(--inset), 0 16px 36px rgba(11, 74, 146, 0.42), 0 0 0 8px color-mix(in srgb, var(--blue) 10%, transparent);
  }
}
@keyframes jpInviteFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
@media (max-width: 820px) {
  .site-header { grid-template-columns: auto auto; }
  nav { grid-column: 1 / -1; justify-content: start; order: 3; }
  .theme-toggle { justify-self: end; }
  .section { width: min(100% - 24px, 1100px); padding: 38px 0; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 26px; }
  .portrait-frame { width: min(100%, 220px); }
  h1 { font-size: 3.5rem; }
  .credibility, .split, .capability-grid, .project-grid, .proof-grid, .experience-detail, .role-breakdown-grid, .route-grid, .traffic-grid { grid-template-columns: 1fr; }
  .section-heading, .card-heading { align-items: start; flex-direction: column; }
  .experience-card summary { align-items: start; }
  .summary-meta { width: 100%; justify-content: space-between; }
}
@media (max-width: 430px) {
  .brand span:last-child { display: none; }
  h1 { font-size: 3rem; }
  .signal-grid { grid-template-columns: 1fr; }
  .portrait-panel { padding: 14px; }
  .portrait-frame { width: min(100%, 190px); margin-bottom: 14px; }
  .hero-actions .button { flex: 1 1 100%; }
  .jp-widget {
    right: 12px;
    bottom: 12px;
  }
  .jp-invite {
    right: 58px;
    bottom: 3px;
    width: min(212px, calc(100vw - 94px));
    padding: 9px 12px;
    font-size: 0.78rem;
  }
  .jp-launcher {
    width: 48px;
    height: 48px;
    font-size: 0.95rem;
    box-shadow: var(--inset), 0 10px 22px rgba(11, 74, 146, 0.28);
  }
  .jp-panel {
    right: 0;
    bottom: 58px;
    width: min(340px, calc(100vw - 24px));
    max-height: min(430px, 54svh);
    grid-template-rows: auto minmax(120px, 1fr) auto;
  }
  .jp-widget.open-down .jp-panel {
    top: 58px;
    bottom: auto;
  }
  .jp-header {
    padding: 11px 12px;
  }
  .jp-header strong {
    font-size: 1rem;
  }
  .jp-header small {
    font-size: 0.82rem;
  }
  .jp-minimize {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 1rem;
  }
  .jp-messages {
    padding: 12px;
  }
  .jp-message {
    max-width: 96%;
    font-size: 0.9rem;
  }
  .jp-form {
    padding: 12px;
  }
  .jp-form {
    grid-template-columns: 1fr;
  }
  .jp-form textarea {
    min-height: 42px;
    max-height: 88px;
  }
}
