.l3a-lab {
  --l3a-ink: #233c31;
  --l3a-muted: #53675a;
  --l3a-green: #285f49;
  --l3a-line: #d5dfd0;
  --l3a-paper: #fffefb;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow-wrap: anywhere;
  border: 1px solid var(--l3a-line);
  border-radius: 14px;
  background: var(--l3a-paper);
  color: var(--l3a-ink);
  font-family: Inter, "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.75;
  text-align: left;
  isolation: isolate;
}
.l3a-lab *, .l3a-lab *::before, .l3a-lab *::after { box-sizing: border-box; }
.l3a-lab [hidden] { display: none !important; }
.l3a-lab :is(button, input, select, textarea) { font: inherit; }
.l3a-lab :is(button, input, select, textarea, a, summary, [tabindex]):focus-visible { outline: 3px solid #315dc0; outline-offset: 3px; }
.l3a-lab :is(h3, h4, p, ol, ul, dl) { max-width: 100%; }
.l3a-lab button { cursor: pointer; }
.l3a-demo-notice { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 14px 22px; border-bottom: 1px solid var(--l3a-line); border-radius: 13px 13px 0 0; background: #eef3e8; font-size: 12px; }
.l3a-demo-notice strong { color: #294d37; }
.l3a-demo-notice span { color: #4f6254; }
.l3a-progress { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; padding: 20px 24px; margin: 0 !important; border-bottom: 1px solid #e3e9de; font-size: 12px; }
.l3a-progress li { display: flex; align-items: center; gap: 7px; color: #596b5d; }
.l3a-progress li span { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; flex: none; border: 1px solid #aebfa6; border-radius: 50%; font-size: 11px; }
.l3a-progress li[aria-current="step"] { color: #234f36; font-weight: 700; }
.l3a-progress li[aria-current="step"] span { color: #fff; background: #2c6046; border-color: #2c6046; }
.l3a-content { max-width: 760px; margin: 0 auto; padding: 28px; }
.l3a-content .l3a-heading { margin: 0 0 10px; padding: 0; color: var(--l3a-ink); font-size: clamp(20px, 2.7vw, 26px); font-weight: 650; line-height: 1.5; letter-spacing: -.02em; }
.l3a-intro { margin: 0 0 22px; color: var(--l3a-muted); font-size: 14px; }
.l3a-content h4 { margin: 0 0 8px; color: var(--l3a-ink); font-size: 16px; line-height: 1.6; }
.l3a-content p { margin-top: 0; }
.l3a-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 20px 0 10px; }
.l3a-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; max-width: 100%; padding: 10px 16px; border: 1px solid var(--l3a-green); border-radius: 7px; background: var(--l3a-green); color: #fffefb; font-size: 13px; font-weight: 650; line-height: 1.6; text-align: center; overflow-wrap: anywhere; }
.l3a-button:hover { background: #204d3b; }
.l3a-button.l3a-secondary { border-color: #9fb69b; background: #fffefb; color: #28593d; }
.l3a-button.l3a-secondary:hover { background: #edf3e7; }
.l3a-button.l3a-quiet { border-color: transparent; background: transparent; color: #365e46; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.l3a-button.l3a-quiet:hover { background: #edf3e7; }
.l3a-button.l3a-danger { border-color: #8c3a2c; background: #8c3a2c; color: #fff; }
.l3a-button.l3a-danger:hover { background: #712c21; }
.l3a-button:disabled { cursor: not-allowed; color: #687366; border-color: #c7cfc2; background: #edf0e9; text-decoration: none; }
.l3a-field { margin: 18px 0; min-width: 0; }
.l3a-field label, .l3a-label { display: block; margin-bottom: 7px; font-weight: 650; font-size: 13px; color: #294736; }
.l3a-input { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 46px; padding: 9px 12px; border: 1px solid #a4b89b; border-radius: 6px; background: #fffefb; color: var(--l3a-ink); font-size: 16px !important; line-height: 1.6; }
select.l3a-input { padding-right: 24px; }
.l3a-input[aria-invalid="true"], .l3a-check input[aria-invalid="true"] { border: 2px solid #a13e2e; }
.l3a-hint { margin: 5px 0 8px; color: #53675a; font-size: 12px; line-height: 1.75; }
.l3a-field-error { margin: 8px 0 0; color: #96392b; font-size: 13px; font-weight: 600; }
.l3a-sample { padding: 18px 20px; margin: 20px 0; border: 1px dashed #91a882; border-radius: 8px; background: #f2f6ec; }
.l3a-sample > span { display: block; font-size: 11px; color: #50654b; }
.l3a-sample .l3a-code { display: block; margin: 6px 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 26px; font-weight: 650; letter-spacing: .08em; user-select: text; }
.l3a-sample p { margin: 5px 0 0; color: #53644f; font-size: 12px; }
.l3a-callout { padding: 16px 18px; margin: 18px 0; border: 1px solid #bbcdb1; border-left: 4px solid #598346; border-radius: 7px; background: #f1f6eb; }
.l3a-callout strong { display: block; margin-bottom: 5px; font-size: 14px; }
.l3a-callout p { margin: 0; font-size: 13px; }
.l3a-callout.l3a-warning { border-color: #d6bd80; border-left-color: #957118; background: #fbf6e8; color: #65501c; }
.l3a-callout.l3a-success { background: #eaf3e6; border-color: #a6c395; color: #2d5838; }
.l3a-callout.l3a-neutral { background: #f3f5ee; border-color: #bfcdb7; }
.l3a-summary { margin: 20px 0; border: 1px solid var(--l3a-line); border-radius: 8px; background: #f9faf5; }
.l3a-summary > div { display: grid; grid-template-columns: minmax(100px, 32%) minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-bottom: 1px solid #e1e7db; }
.l3a-summary > div:last-child { border-bottom: 0; }
.l3a-summary dt { color: #566a58; font-size: 12px; }
.l3a-summary dd { min-width: 0; margin: 0; font-size: 13px; font-weight: 600; }
.l3a-document { padding: 20px; margin: 24px 0; border: 1px solid var(--l3a-line); border-radius: 9px; background: #f8faf3; }
.l3a-document p { margin-bottom: 10px; font-size: 13px; color: #53634f; }
.l3a-eyebrow { display: block; margin-bottom: 10px; color: #53694f; font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.l3a-role-switch { display: grid; grid-template-columns: minmax(140px, .65fr) minmax(150px, 1fr); align-items: center; gap: 7px 16px; padding: 15px 18px; margin: 0 0 26px; border: 1px solid #baccad; border-radius: 8px; background: #edf3e5; }
.l3a-role-switch label { color: #365333; font-size: 12px; font-weight: 650; }
.l3a-role-switch p { grid-column: 1 / -1; margin: 0; color: #56674d; font-size: 11px; }
.l3a-approval-status { list-style: none; padding: 0; margin: 22px 0; }
.l3a-approval-status li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 14px 16px; margin: 8px 0; border: 1px solid #d1dec6; border-radius: 7px; background: #f1f5e9; font-size: 13px; }
.l3a-approval-status span { color: #536b48; }
.l3a-return-form { border-top: 1px solid var(--l3a-line); margin-top: 24px; padding-top: 3px; }
.l3a-details { margin: 24px 0 0; padding: 12px 16px; border: 1px solid var(--l3a-line); border-radius: 7px; background: #f6f8f0; font-size: 12px; }
.l3a-details summary { min-height: 44px; display: list-item; padding: 10px 0; cursor: pointer; font-size: 13px; font-weight: 650; }
.l3a-details ol { margin: 8px 0; padding-left: 22px; }
.l3a-details li { margin: 8px 0; }
.l3a-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 18px 0; }
.l3a-toolbar .l3a-field { flex: 1; min-width: 150px; margin: 0; }
.l3a-notification-list { padding: 0; margin: 20px 0; list-style: none; border: 1px solid var(--l3a-line); border-radius: 8px; }
.l3a-notification-list > li + li { border-top: 1px solid var(--l3a-line); }
.l3a-notification { display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 76px; padding: 18px 16px; border: 0; background: transparent; color: var(--l3a-ink); text-align: left; line-height: 1.7; }
.l3a-notification:hover { background: #f0f5e9; }
.l3a-notification-text { flex: 1; min-width: 0; }
.l3a-notification-text strong { display: block; font-size: 14px; font-weight: 600; }
.l3a-notification-text small { display: block; margin-top: 5px; font-size: 12px; color: #586b54; }
.l3a-badge { display: inline-flex; align-items: center; width: fit-content; padding: 3px 8px; border: 1px solid #c4d5b8; border-radius: 5px; background: #edf4e6; color: #3a6031; font-size: 11px; font-weight: 650; }
.l3a-notification .l3a-badge { flex: none; }
.l3a-fieldset { min-width: 0; padding: 12px 18px; margin: 20px 0; border: 1px solid var(--l3a-line); border-radius: 8px; }
.l3a-fieldset legend { padding: 0 7px; color: #365637; font-size: 13px; font-weight: 650; }
.l3a-check { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 12px 0; cursor: pointer; color: #2c4735; font-size: 13px; }
.l3a-check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--l3a-green); }
.l3a-check span { flex: 1; min-width: 0; }
.l3a-check strong, .l3a-check small { display: block; }
.l3a-check small { margin-top: 5px; color: #526650; font-size: 12px; }
.l3a-check-panel { margin: 20px 0; padding: 18px; border: 1px solid var(--l3a-line); border-radius: 8px; background: #f2f6ec; }
.l3a-export { min-height: 188px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important; font-size: 12px !important; line-height: 1.6; }
.l3a-impact { padding-left: 22px; margin: 20px 0; }
.l3a-impact li { margin: 10px 0; padding-left: 2px; font-size: 13px; }
.l3a-test-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 0 0; margin-top: 24px; border-top: 1px dashed #c8d4bf; }
.l3a-test-tools .l3a-button { padding-left: 5px; padding-right: 5px; font-size: 12px; }
.l3a-test-tools span { color: #5b6c56; font-size: 11px; }
.l3a-live { min-height: 0; margin: 0 !important; padding: 0 24px; color: #305e3e; font-size: 13px; }
.l3a-live:not(:empty) { padding: 14px 24px; border-top: 1px solid #cbdac1; background: #eff5e8; }
.l3a-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 10px 18px; border-top: 1px solid var(--l3a-line); border-radius: 0 0 13px 13px; background: #f3f5ed; }
.l3a-footer > span { color: #596b53; font-size: 11px; }
.l3a-footer .l3a-button { font-size: 12px; }
@media (max-width: 600px) {
  .l3a-content { padding: 22px 18px; }
  .l3a-progress { padding: 17px 18px; gap: 9px 13px; font-size: 11px; }
  .l3a-demo-notice { padding: 13px 18px; }
  .l3a-actions > .l3a-button { flex: 1 1 190px; }
  .l3a-role-switch { grid-template-columns: 1fr; padding: 14px; }
  .l3a-role-switch p { grid-column: auto; }
  .l3a-document { padding: 16px; }
}
@media (max-width: 380px) {
  .l3a-content { padding: 19px 13px; }
  .l3a-progress, .l3a-demo-notice { padding: 13px; }
  .l3a-summary > div { grid-template-columns: 1fr; gap: 4px; padding: 10px 12px; }
  .l3a-notification { gap: 8px; padding: 14px 10px; }
  .l3a-notification .l3a-badge { padding: 3px 5px; }
  .l3a-fieldset, .l3a-check-panel, .l3a-callout { padding: 13px; }
  .l3a-footer { padding: 10px 13px; }
  .l3a-sample { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .l3a-lab *, .l3a-lab *::before, .l3a-lab *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
