.lab-home { width: min(100%, 1176px); margin: auto; padding: clamp(22px, 5vw, 64px) clamp(14px, 4vw, 36px) 56px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(24px, 6vw, 80px); padding: clamp(20px, 4.5vw, 58px); background: #f1edff; border: 1px solid #ded6fa; border-radius: 19px; }
.home-intro h1 { font-size: clamp(28px, 5vw, 52px); line-height: 1.2; letter-spacing: -.045em; }
.home-intro p { max-width: 34rem; margin-top: 14px; color: #454663; font-size: clamp(15px, 2vw, 18px); }
.home-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.home-actions a { padding: 9px 14px; font-weight: 700; border-radius: 8px; text-decoration: none; }
.home-primary { background: var(--accent); color: white; }
.home-primary:hover { background: #4434a1; }
.home-secondary { color: var(--accent); background: #fff; border: 1px solid #ded6fa; }
.home-secondary:hover { border-color: var(--accent); }
.home-code { min-width: 0; border: 1px solid #363653; background: #25263a; color: #f2eeff; border-radius: 12px; font: 14px/1.7 var(--code); overflow: hidden; }
.home-filename, .home-output { padding: 9px 14px; background: #2d2e45; color: #d1cbee; }
.home-code pre { overflow: auto; margin: 0; padding: 13px 14px; }
.home-output { display: flex; justify-content: space-between; align-items: center; }
.home-output span { font: 13px system-ui, sans-serif; }
.home-kw { color: #d3b7ff; }
.home-call { color: #a5e7ee; }
.home-section-head { margin: 32px 0 13px; }
.home-section-head h2 { font-size: 23px; }
.home-section-head p { color: var(--muted); }
.home-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.home-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-card { display: grid; gap: 6px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; color: inherit; background: #fff; text-decoration: none; }
.home-card:hover { border-color: var(--accent); }
.home-card p { color: var(--muted); }
.home-card .home-route, .home-card span { color: var(--accent); font-size: 13px; font-weight: 700; }
.home-card h3 { font-size: 18px; }
.home-card span { margin-top: 7px; }
.membership-home { max-width: 920px; }
.membership-home > p { margin: 0 0 14px; color: var(--muted); }
.membership-modes { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.membership-modes legend { padding: 0; margin-bottom: 6px; font-size: 14px; font-weight: 750; }
.membership-mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.membership-mode { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; padding: 11px; border: 1px solid #d9d3e8; border-radius: 9px; background: #fff; }
.membership-mode:hover { border-color: var(--accent); }
.membership-mode:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); color: #453499; box-shadow: inset 0 0 0 1px var(--accent); }
.membership-mode input { flex: none; margin: .38em 0 0; accent-color: var(--accent); }
.membership-mode small { display: block; color: var(--muted); margin-top: 2px; }
@media (max-width: 540px) {
  .membership-mode-options { grid-template-columns: minmax(0, 1fr); }
}
.membership-form { display: grid; gap: 13px; }
.membership-form label { display: grid; gap: 4px; color: #34384d; font-weight: 650; }
.membership-form fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 11px; }
.membership-form legend { padding: 0 6px; font-weight: 700; }
.membership-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 8px; margin-bottom: 8px; }
.membership-form :is(input, textarea, select) { width: 100%; min-width: 0; padding: 7px; border: 1px solid #cecddd; border-radius: 6px; background: white; font: 14px/1.55 var(--code); }
.membership-form textarea { resize: vertical; }
.membership-form fieldset button { margin-top: 6px; }
.membership-result { margin-top: 12px; }
.membership-result[data-status="accepted"] { background: #eef8f1; }
.membership-result[data-status="invalid"] { background: #fff0ee; }
.membership-result pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .home-hero, .home-cards { grid-template-columns: minmax(0, 1fr); }
}
