.standout-study {
  --sd-page: #f4f5f7;
  --sd-surface: #ffffff;
  --sd-ink: #20262e;
  --sd-muted: #5d6673;
  --sd-line: #d6dce4;
  --sd-control-line: #748293;
  --sd-accent: #355f85;
  --sd-tint: #e8eef5;
  margin: 0;
  min-width: 0;
  background: var(--sd-page);
  color: var(--sd-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.standout-study *,
.standout-study *::before,
.standout-study *::after { box-sizing: border-box; }

.standout-study :focus-visible {
  outline: 3px solid var(--sd-accent);
  outline-offset: 4px;
}

.standout-study .study-shell {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(16px, 4vw, 40px);
}

.standout-study .study-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.standout-study .study-heading,
.standout-study main,
.standout-study section,
.standout-study details { min-width: 0; }

.standout-study .study-kicker {
  margin: 0 0 4px;
  color: var(--sd-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.standout-study h1 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 600; }
.standout-study h2 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 600; }
.standout-study h3 { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }

.standout-study .study-intro { margin: 12px 0 0; color: var(--sd-muted); }
.standout-study .study-badge {
  max-width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #c8d4e0;
  border-radius: 6px;
  background: var(--sd-tint);
  color: var(--sd-accent);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.standout-study .study-notice { margin: 0 0 24px; max-width: 76ch; color: var(--sd-muted); }
.standout-study .inventory-sections {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 24px;
  min-width: 0;
}

.standout-study .inventory-section {
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid var(--sd-line);
  border-radius: 10px;
  background: var(--sd-surface);
}

.standout-study .section-heading { margin-bottom: 20px; }
.standout-study .section-heading p { margin: 4px 0 0; color: var(--sd-muted); font-size: 14px; }
.standout-study .inventory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 8.5rem));
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.standout-study .inventory-slot {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  min-height: 128px;
  padding: 12px;
  border: 1px solid var(--sd-line);
  border-radius: 8px;
  background: var(--sd-surface);
}

.standout-study .slot-count {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.standout-study .slot-count dt { color: var(--sd-muted); font-size: 14px; overflow-wrap: anywhere; }
.standout-study .slot-count dd { min-width: 0; margin: 0; font-size: 24px; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }

.standout-study .study-logs {
  margin-top: 24px;
  border: 1px solid var(--sd-control-line);
  border-radius: 8px;
  background: var(--sd-surface);
}

.standout-study .study-logs summary { padding: 16px 20px; border-radius: 8px; cursor: pointer; }
.standout-study .study-logs summary::marker { color: var(--sd-accent); }
.standout-study .study-logs summary:hover { background: #f0f3f7; }
.standout-study .study-logs[open] summary { border-bottom: 1px solid var(--sd-line); border-radius: 8px 8px 0 0; }
.standout-study .logs-heading { font-size: 16px; font-weight: 600; }
.standout-study .logs-label { margin-left: 12px; color: var(--sd-muted); font-size: 14px; }
.standout-study .logs-body { min-width: 0; padding: 16px 20px 20px; }
.standout-study .logs-body p { margin: 0 0 12px; color: var(--sd-muted); }
.standout-study .logs-output {
  max-width: 100%;
  min-width: 0;
  max-height: 260px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--sd-control-line);
  border-radius: 6px;
  background: #f7f8fa;
  color: var(--sd-ink);
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 14px/1.6 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.standout-study .logs-output code { font: inherit; }
.standout-study .study-footer { margin-top: 24px; color: var(--sd-muted); font-size: 14px; }
.standout-study .study-footer p { margin: 0; }
.standout-study .study-footer strong { color: var(--sd-ink); font-weight: 600; }
