.jdt-page {
  width: var(--page-width);
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 0 48px;
  color: var(--ink);
}

.jdt-page [hidden] { display: none !important; }
.jdt-page h1, .jdt-page h2, .jdt-page p { margin: 0; }
.jdt-page h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.3; letter-spacing: -.02em; text-wrap: balance; }
.jdt-page h2 { font-size: 1.25rem; line-height: 1.4; text-wrap: balance; }
.jdt-page p { line-height: 1.75; text-wrap: pretty; }
.jdt-page button { font-family: inherit; font-size: .9375rem; line-height: 1.4; }
.jdt-page button:disabled { cursor: not-allowed; opacity: 1; color: var(--muted); background: var(--surface-muted, var(--canvas)); box-shadow: none; transform: none; }
.jdt-page :is(button, a, summary, textarea):focus-visible { outline: 3px solid var(--focus-ring, var(--coral)); outline-offset: 3px; }
.jdt-page :is(.primary-button, .secondary-button, .refresh-button) { min-height: 44px; max-width: 100%; padding: 11px 16px; white-space: normal; text-align: center; }
.jdt-page .primary-button { min-height: 48px; }
.jdt-page .secondary-button { box-shadow: none; }
.jdt-intro { display: grid; gap: 12px; max-width: 75ch; margin-bottom: 24px; }
.jdt-back { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; color: var(--berry); text-underline-offset: 4px; }
.jdt-title-line { display: flex; align-items: center; gap: 12px; }
.jdt-title-line .platform-logo { width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain; }
.jdt-summary { font-size: 1rem; }
.jdt-muted, .jdt-field-help, .jdt-row-detail { color: var(--muted); }
.jdt-guide { border-block: 1px solid var(--line); margin-bottom: 24px; }
.jdt-guide summary { min-height: 52px; padding: 14px 4px; cursor: pointer; font-weight: 700; }
.jdt-guide summary::marker { color: var(--berry); }
.jdt-guide-content { display: grid; gap: 24px; padding: 8px 4px 24px; }
.jdt-guide-content h2 { font-size: 1.0625rem; }
.jdt-guide-content ol { margin: 12px 0 0; padding-left: 24px; }
.jdt-guide-content li { padding: 4px 0 4px 2px; line-height: 1.7; }
.jdt-guide-content p { margin-top: 12px; color: var(--muted); }
.jdt-guide code { font-family: inherit; overflow-wrap: anywhere; }
.jdt-workspace { overflow: hidden; display: grid; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.jdt-publish, .jdt-pool { min-width: 0; padding: 20px; }
.jdt-publish { border-bottom: 1px solid var(--line); }
.jdt-publish > p { margin-top: 8px; }
.jdt-publish form { display: grid; gap: 10px; margin-top: 20px; }
.jdt-page label { display: block; font-weight: 700; }
.jdt-page textarea { display: block; width: 100%; min-width: 0; min-height: 132px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); background: var(--surface); font: inherit; font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; resize: vertical; }
.jdt-page textarea::placeholder { color: var(--muted); opacity: 1; }
.jdt-page textarea[readonly] { background: var(--surface-muted, var(--canvas)); }
.jdt-page textarea[aria-invalid="true"] { border-color: var(--danger); }
.jdt-field-help { font-size: .875rem; }
.jdt-section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.jdt-section-header > div { min-width: 0; }
.jdt-section-header p { margin-top: 6px; }
.jdt-section-header > button { flex: 0 0 auto; }
.jdt-rows { margin: 0; padding: 0; list-style: none; }
.jdt-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.jdt-row:last-child { border-bottom: 0; }
.jdt-row-info { flex: 1 1 180px; min-width: 0; }
.jdt-masked-label { display: block; font-size: 1rem; font-weight: 750; overflow-wrap: anywhere; word-break: break-word; }
.jdt-row-status { display: inline-block; margin-top: 5px; font-size: .875rem; font-weight: 700; }
.jdt-row-detail { margin-top: 5px !important; font-size: .875rem; font-variant-numeric: tabular-nums; }
.jdt-row-actions { display: flex; flex: 0 1 auto; flex-wrap: wrap; gap: 8px; }
.jdt-empty, .jdt-load-state { padding: 20px 0; color: var(--muted); }
.jdt-error { color: var(--danger); font-weight: 600; }
.jdt-operation-error, .jdt-notice { margin-top: 20px !important; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.jdt-notice { color: var(--success); }
.jdt-open-panel { display: grid; gap: 14px; margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); scroll-margin-block: 24px; }
.jdt-open-panel .jdt-section-header { margin: 0; }
.jdt-panel-state { color: var(--berry); font-weight: 750; font-variant-numeric: tabular-nums; }
.jdt-panel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#jdt-copy-status { font-size: .9375rem; }
.jdt-records { display: grid; gap: 32px; margin-top: 32px; }
.jdt-records > section { min-width: 0; }
.jdt-records > section > .jdt-muted { margin-top: 8px; font-size: .9375rem; }
.jdt-records .jdt-rows { margin-top: 8px; }
.jdt-retention { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.jdt-retention h2 { font-size: 1rem; }
.jdt-retention p { max-width: 75ch; margin-top: 8px; color: var(--muted); font-size: .875rem; }

@media (min-width: 800px) {
  .jdt-page { padding-top: 40px; }
  .jdt-workspace { grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); }
  .jdt-publish, .jdt-pool { padding: 24px; }
  .jdt-publish { border-bottom: 0; border-right: 1px solid var(--line); }
  .jdt-guide-content { grid-template-columns: 1fr 1fr; gap: 40px; }
  .jdt-open-panel { padding: 24px; }
}

@media (max-width: 479px) {
  .jdt-publish, .jdt-pool, .jdt-open-panel { padding: 16px; }
  .jdt-section-header { gap: 10px; }
  .jdt-section-header > button { padding-inline: 12px; }
  .jdt-open-panel .jdt-section-header { flex-wrap: wrap; }
  .jdt-row-actions { width: 100%; }
  .jdt-row-actions button { flex: 1 1 auto; }
  .jdt-panel-actions button { flex: 1 1 auto; }
  .jdt-publish .primary-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .jdt-page *, .jdt-page *::before, .jdt-page *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
