:root {
  --ink: #d8e6e8;
  --ink-strong: #f5fbfc;
  --muted: #8fa7ad;
  --paper: #132329;
  --canvas: #071115;
  --surface: #0c1a20;
  --surface-2: #102832;
  --line: #243b43;
  --line-strong: #3b5963;
  --teal: #49d4d0;
  --teal-dark: #079da1;
  --green: #6fe0a0;
  --soft-green: #14362b;
  --orange: #e0ae59;
  --danger: #ff8f9e;
  --danger-bg: #351a22;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  color: var(--ink);
  background: var(--canvas);
  color-scheme: dark;
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; margin: 0; background: var(--canvas); }
body, input, textarea, select, button { font: inherit; letter-spacing: 0; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }

.app-shell { min-height: 100vh; color: var(--ink); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 16px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 48px) 12px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 17, 21, 0.66), rgba(7, 17, 21, 0.92)),
    linear-gradient(90deg, rgba(7, 17, 21, 0.26), rgba(7, 17, 21, 0.74) 38%, rgba(7, 17, 21, 0.74) 62%, rgba(7, 17, 21, 0.28)),
    url("bubbliez-header-band.jpg?v=20260617-headerfix") center top / cover no-repeat,
    rgba(7, 17, 21, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 -1px 0 rgba(73, 212, 208, 0.12);
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  grid-column: 1;
  grid-row: 1;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  color: var(--ink-strong);
  font-weight: 800;
  text-decoration: none;
}

.brand img { width: 38px; height: 38px; border-radius: 8px; }

.site-nav {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  gap: 8px;
  justify-content: center;
  min-width: 0;
}

.site-nav a,
.admin-nav-link,
.session-chip button,
.primary-action,
.secondary-action,
.danger-action,
.download-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.site-nav a { flex: 0 0 auto; padding: 8px 12px; color: var(--muted); white-space: nowrap; }
.site-nav a:hover, .site-nav a.is-active { background: var(--soft-green); color: var(--ink-strong); }

.session-chip {
  display: inline-flex;
  grid-column: 3;
  grid-row: 1;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.86rem;
}

.session-chip form { margin: 0; }
.session-chip button, .admin-nav-link, .secondary-action {
  padding: 7px 11px;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.admin-nav-link:hover, .admin-nav-link.is-active { background: var(--soft-green); color: var(--ink-strong); }

.header-lab-card {
  display: grid;
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  gap: 1px;
  width: min(100%, 260px);
  padding: 7px 11px;
  border: 1px solid rgba(120, 185, 190, 0.34);
  border-radius: 8px;
  background: rgba(12, 26, 32, 0.66);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.header-lab-card:hover, .header-lab-card.is-active {
  border-color: rgba(73, 212, 208, 0.72);
  background: rgba(16, 40, 50, 0.82);
}

.header-lab-card span {
  color: var(--ink-strong);
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1.2;
}

.header-lab-card strong {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
}

.primary-action, .download-button {
  padding: 10px 16px;
  background: var(--teal-dark);
  color: #fff;
  border-color: var(--teal-dark);
  font-weight: 800;
}

.danger-action {
  padding: 8px 12px;
  border-color: #7d3542;
  background: var(--danger-bg);
  color: var(--danger);
  font-weight: 800;
}

.hero-section {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(680px, calc(100vh - 110px));
  padding: 58px 24px 68px;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 17, 21, 0.26), rgba(7, 17, 21, 0.66)),
    url("hero-lab-bg.png") center / cover no-repeat;
}

.hero-section::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    radial-gradient(circle at 50% 38%, rgba(7, 17, 21, 0.08), rgba(7, 17, 21, 0.38) 56%, rgba(7, 17, 21, 0.72)),
    linear-gradient(90deg, rgba(7, 17, 21, 0.44), transparent 26%, transparent 74%, rgba(7, 17, 21, 0.46));
}

.hero-section > *:not(.hero-backdrop) { position: relative; z-index: 1; }
.hero-content {
  display: grid;
  justify-items: center;
  width: min(860px, 100%);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(120, 185, 190, 0.34);
  border-radius: 8px;
  background: rgba(7, 17, 21, 0.56);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(3px);
}
.hero-icon {
  width: clamp(136px, 15vw, 172px);
  height: clamp(136px, 15vw, 172px);
  margin-top: 18px;
  border-radius: 30px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}
.eyebrow, .section-kicker { color: var(--teal); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; }
.hero-section h1, .page-title h1 { margin: 0; color: var(--ink-strong); font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: 1; }
.hero-copy { max-width: 820px; margin: 22px auto 0; color: rgba(255, 255, 255, 0.9); font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }

.hero-section--bubbliez {
  display: grid;
  grid-template-rows: minmax(330px, 56vh) auto;
  place-items: stretch;
  min-height: calc(100vh - 110px);
  padding: 0;
  background: var(--canvas);
}

.hero-section--bubbliez::after { content: none; }

.hero-banner {
  position: relative;
  min-height: 330px;
  background:
    linear-gradient(180deg, rgba(7, 17, 21, 0.03), rgba(7, 17, 21, 0.13)),
    url("bubbliez-hero-banner.jpg?v=20260617-141256") center / cover no-repeat;
}

.hero-banner::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(7, 17, 21, 0.78));
}

.hero-section--bubbliez .hero-content {
  width: 100%;
  padding: clamp(26px, 4vw, 44px) clamp(20px, 6vw, 88px) clamp(34px, 5vw, 58px);
  border-width: 1px 0 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(7, 17, 21, 0.98), rgba(12, 26, 32, 0.96));
  box-shadow: none;
  backdrop-filter: none;
}

.hero-section--bubbliez .hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.hero-section--bubbliez .hero-copy {
  margin-top: 16px;
}

.intro-band, .notice-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(42px, 7vw, 82px) clamp(20px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}

.intro-band h2, .notice-band h2, .release-list h2, .admin-panel h2, .patio-form h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.75rem;
  line-height: 1.18;
}

.intro-band p, .notice-band p, .page-title p { max-width: 760px; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.feature-grid article { min-height: 240px; padding: clamp(28px, 5vw, 54px); border-right: 1px solid var(--line); }
.feature-grid article:last-child { border-right: 0; }
.feature-grid span { display: inline-flex; margin-bottom: 28px; color: var(--orange); font-weight: 800; }
.feature-grid h3 { margin: 0 0 12px; color: var(--ink-strong); font-size: 1.28rem; }
.feature-grid p { margin: 0; color: var(--muted); }

.link-band {
  display: grid;
  gap: 6px;
  padding: 24px clamp(20px, 6vw, 88px) 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.link-band p { margin: 0; }
.link-band a { color: var(--teal); font-weight: 800; text-underline-offset: 3px; }

.page-stack, .bbs-layout { padding: clamp(28px, 5vw, 58px) clamp(18px, 4vw, 52px) 80px; }
.page-title { max-width: 880px; margin-bottom: 32px; }
.page-title h1 { font-size: clamp(2.1rem, 5vw, 4.4rem); margin-bottom: 16px; }
.lab-page { display: grid; gap: 16px; }
.lab-page-title {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
}
.lab-page-title .section-kicker {
  display: block;
}
.lab-page-title h1,
.lab-page-title p {
  margin: 0;
}
.lab-title-lockup {
  display: flex;
  gap: clamp(14px, 2.5vw, 24px);
  align-items: center;
}
.lab-title-lockup h1 {
  line-height: 0.98;
}
.lab-title-icon {
  width: clamp(74px, 10vw, 112px);
  height: clamp(74px, 10vw, 112px);
  flex: 0 0 auto;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}
.lab-showcase {
  display: grid;
  gap: 26px;
  max-width: 1160px;
}
.lab-showcase figure { margin: 0; }
.lab-showcase-main,
.lab-thumb-grid figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #08111a;
  box-shadow: var(--shadow);
}
.lab-image-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}
.lab-image-trigger:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: -3px;
}
.lab-showcase-main img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
}
.lab-thumb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  max-width: 1160px;
}
.lab-thumb-grid figure { margin: 0; }
.lab-thumb-grid img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  object-position: top center;
  background: #050a10;
}
.lab-introduction {
  display: grid;
  gap: 18px;
  max-width: 1160px;
}
.lab-intro-lead,
.lab-fit-panel,
.lab-purpose-panel,
.lab-note-panel,
.lab-api-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.lab-intro-lead {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(135deg, rgba(16, 40, 50, 0.72), rgba(12, 26, 32, 0.94));
}
.lab-intro-lead h2,
.lab-fit-panel h2,
.lab-purpose-panel h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.18;
}
.lab-intro-lead p,
.lab-purpose-panel p,
.lab-note-panel p {
  margin: 0;
  color: var(--ink);
  line-height: 1.9;
}
.lab-feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.lab-feature-list article {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 230px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.lab-feature-list span {
  color: var(--orange);
  font-weight: 900;
}
.lab-feature-list h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.18rem;
  line-height: 1.28;
}
.lab-feature-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
.lab-api-note {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px 24px;
  border-color: rgba(73, 212, 208, 0.34);
  background: linear-gradient(135deg, rgba(10, 31, 37, 0.84), rgba(22, 29, 45, 0.84));
}
.lab-api-note h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.32rem;
  line-height: 1.24;
}
.lab-api-note-body {
  display: grid;
  gap: 8px;
}
.lab-api-note p {
  margin: 0;
  color: var(--ink);
  line-height: 1.8;
}
.lab-api-note strong {
  color: var(--green);
}
.lab-fit-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
  padding: 24px;
}
.lab-fit-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lab-fit-panel li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
}
.lab-fit-panel li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal);
  content: "";
}
.lab-purpose-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(7, 17, 21, 0.84), rgba(20, 54, 43, 0.46));
}
.lab-purpose-panel strong {
  color: var(--green);
}
.lab-note-panel {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-color: rgba(224, 174, 89, 0.38);
  background: rgba(57, 44, 18, 0.46);
}
.lab-note-panel strong {
  flex: 0 0 auto;
  color: var(--orange);
}
.lab-page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lab-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 330px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.lab-panel span { color: var(--orange); font-weight: 900; }
.lab-panel h2 { margin: 0; color: var(--ink-strong); font-size: 1.35rem; line-height: 1.25; }
.lab-panel p { margin: 0; color: var(--muted); line-height: 1.85; }
.lab-sample-cta {
  display: grid;
  gap: 18px;
  max-width: 1160px;
  padding: 22px;
  border: 1px solid rgba(73, 212, 208, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(16, 40, 50, 0.76), rgba(12, 26, 32, 0.92));
  box-shadow: var(--shadow);
}
.lab-sample-cta > div { display: grid; gap: 10px; max-width: 920px; }
.lab-sample-cta h2 { margin: 0; color: var(--ink-strong); font-size: 1.5rem; line-height: 1.22; }
.lab-sample-cta p { margin: 0; color: var(--muted); }
.lab-sample-button {
  width: fit-content;
  min-height: 64px;
  padding: 16px 26px;
  font-size: 1.16rem;
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(7, 157, 161, 0.28);
}
.lab-sample-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(73, 212, 208, 0.22);
}
.lab-sample-points section {
  display: grid;
  gap: 8px;
  align-content: start;
}
.lab-sample-points span {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}
.lab-sample-points h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.05rem;
  line-height: 1.32;
}
.lab-sample-points p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.meeting-report-sample-page {
  gap: 24px;
}
.lab-report-fold-panel {
  max-width: 1400px;
}
.lab-report-fold {
  overflow: hidden;
  border: 1px solid rgba(73, 212, 208, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(16, 40, 50, 0.76), rgba(12, 26, 32, 0.94));
  box-shadow: var(--shadow);
}
.lab-report-fold > summary {
  display: flex;
  min-height: 78px;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}
.lab-report-fold > summary::-webkit-details-marker {
  display: none;
}
.lab-report-fold > summary::after {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink-strong);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  content: "閉じる";
}
.lab-report-fold:not([open]) > summary::after {
  content: "開く";
}
.lab-report-fold summary span {
  display: grid;
  gap: 4px;
}
.lab-report-fold summary strong {
  color: var(--ink-strong);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.2;
}
.lab-report-fold summary small {
  color: var(--muted);
  font-size: 0.95rem;
}
.lab-report-frame-wrap {
  border-top: 1px solid var(--line);
  background: #eef2f7;
}
.lab-report-frame-wrap iframe {
  display: block;
  width: 100%;
  height: min(82vh, 920px);
  min-height: 720px;
  border: 0;
  background: #eef2f7;
}

.is-lightbox-open { overflow: hidden; }
.image-lightbox[hidden] { display: none; }
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 44px);
}
.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(1, 6, 9, 0.88);
  cursor: zoom-out;
}
.image-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: min(1360px, 100%);
  max-height: min(86vh, 900px);
}
.image-lightbox-panel img {
  display: block;
  max-width: 100%;
  max-height: min(86vh, 900px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #050a10;
  object-fit: contain;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.56);
}
.image-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-strong);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}
.image-lightbox-close:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.meeting-sample-page { gap: 24px; }
.meeting-sample-hero {
  display: grid;
  gap: 14px;
}
.meeting-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.meeting-metrics {
  max-width: 1160px;
}
.meeting-metrics dl {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(190px, 1.4fr);
  gap: 10px;
  margin: 0;
}
.meeting-metrics div {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 82px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 26, 32, 0.82);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}
.meeting-metrics dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}
.meeting-metrics dd {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.meeting-metrics-featured {
  padding: 18px;
  border: 1px solid rgba(73, 212, 208, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(16, 40, 50, 0.68), rgba(7, 17, 21, 0.28));
  box-shadow: var(--shadow);
}
.meeting-metrics-compact {
  margin-top: 8px;
}
.meeting-metrics-compact dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.meeting-metrics-compact div {
  min-height: 68px;
  padding: 10px 12px;
}
.meeting-metrics-compact .meeting-cost,
.meeting-metrics-compact .meeting-highlight {
  grid-column: span 3;
}
.meeting-cost,
.meeting-highlight {
  border-color: rgba(224, 174, 89, 0.74) !important;
  background: linear-gradient(135deg, rgba(224, 174, 89, 0.18), rgba(57, 44, 18, 0.62)) !important;
}
.meeting-cost dd,
.meeting-highlight dd {
  color: var(--orange);
}
.meeting-cost strong,
.meeting-highlight strong {
  display: inline-block;
  margin-left: 4px;
  color: #ffe6a8;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 0.95;
  text-shadow: 0 0 18px rgba(224, 174, 89, 0.42);
}
.meeting-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.meeting-summary-grid article,
.meeting-flow-panel,
.meeting-disclaimer,
.meeting-turn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.meeting-summary-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
}
.meeting-summary-grid span {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}
.meeting-summary-grid h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.24rem;
  line-height: 1.25;
}
.meeting-summary-grid p { margin: 0; color: var(--muted); }
.meeting-flow-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.4fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
  padding: 22px;
}
.meeting-flow-panel h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.4rem;
}
.meeting-speaker-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.meeting-speaker-legend li {
  --speaker-color: var(--teal);
  --speaker-bg: rgba(73, 212, 208, 0.12);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--speaker-color);
  border-radius: 999px;
  background: var(--speaker-bg);
  color: var(--ink);
  font-size: 0.86rem;
}
.meeting-speaker-legend span {
  color: var(--speaker-color);
  font-weight: 900;
}
.meeting-disclaimer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-color: rgba(224, 174, 89, 0.38);
  background: rgba(57, 44, 18, 0.46);
}
.meeting-disclaimer strong { color: var(--orange); }
.meeting-disclaimer p { margin: 0; color: var(--ink); }
.meeting-section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.meeting-section-head h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.7rem;
}
.meeting-section-head p { margin: 0; color: var(--muted); }
.meeting-transcript {
  max-width: 1040px;
}
.meeting-turn {
  --speaker-color: var(--teal);
  --speaker-bg: rgba(73, 212, 208, 0.1);
  overflow: hidden;
  margin-bottom: 12px;
  border-left: 4px solid var(--speaker-color);
}
.meeting-turn summary {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  background: linear-gradient(90deg, var(--speaker-bg), rgba(12, 26, 32, 0));
  cursor: pointer;
}
.meeting-turn summary::-webkit-details-marker { display: none; }
.meeting-turn summary::after {
  content: "開く";
  justify-self: start;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.meeting-turn[open] summary::after { content: "閉じる"; }
.meeting-turn-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.meeting-speaker-name {
  color: var(--ink-strong);
  font-weight: 900;
}
.meeting-speaker-role,
.meeting-turn time {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--speaker-bg);
  color: var(--speaker-color);
  font-size: 0.76rem;
  font-weight: 900;
}
.meeting-turn time {
  background: var(--paper);
  color: var(--muted);
}
.meeting-turn-preview {
  color: var(--muted);
  font-size: 0.92rem;
}
.meeting-turn-body {
  padding: 4px 18px 20px;
  color: var(--ink);
  line-height: 1.9;
  white-space: normal;
}
.meeting-turn-body strong {
  color: var(--ink-strong);
}
.meeting-turn-body a {
  color: var(--teal);
  font-weight: 800;
  text-underline-offset: 3px;
}
.meeting-speaker--system { --speaker-color: #8fa7ad; --speaker-bg: rgba(143, 167, 173, 0.12); }
.meeting-speaker--ai-a { --speaker-color: #ff7386; --speaker-bg: rgba(255, 115, 134, 0.12); }
.meeting-speaker--ai-b { --speaker-color: #9e7cff; --speaker-bg: rgba(158, 124, 255, 0.13); }
.meeting-speaker--gemini { --speaker-color: #e0ae59; --speaker-bg: rgba(224, 174, 89, 0.13); }
.meeting-speaker--reviewer { --speaker-color: #7bd1ff; --speaker-bg: rgba(123, 209, 255, 0.12); }
.meeting-speaker--final { --speaker-color: #6fe0a0; --speaker-bg: rgba(111, 224, 160, 0.13); }

.gate-page { min-height: calc(100vh - 69px); display: grid; place-items: center; padding: 32px 18px; }
.gate-panel, .empty-panel, .admin-panel, .release-card, .patio-shell, .patio-form, .thread-open {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gate-panel { width: min(520px, 100%); padding: 34px; text-align: center; }
.gate-panel img { width: 74px; height: 74px; border-radius: 16px; }
.gate-panel h1 { margin: 18px 0 8px; color: var(--ink-strong); font-size: 2rem; }

.inline-form, .upload-form, .patio-form, .reply-form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; color: var(--ink); font-size: 0.92rem; font-weight: 700; }
.label-with-note { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.label-with-note small { color: var(--muted); font-size: 0.78rem; font-weight: 500; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #0a171c;
  color: var(--ink);
  padding: 10px 12px;
}
textarea { resize: vertical; }

.form-error { color: var(--danger); font-weight: 700; }
.form-success { color: var(--green); font-weight: 700; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.release-grid, .admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.release-card, .admin-panel { padding: 22px; }
.release-card h3 { margin: 0 0 12px; color: var(--ink-strong); }
.release-comment {
  max-width: 880px;
  color: var(--ink);
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.release-changelog strong { color: var(--ink-strong); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.meta-row div { min-width: 96px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.meta-row dt { color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.meta-row dd { margin: 2px 0 0; color: var(--ink-strong); font-weight: 800; }

.patio-theme { background: var(--canvas); }
.patio-shell { width: min(980px, 100%); margin: 0 auto; padding: 18px; border-color: var(--line-strong); }
.patio-head { text-align: center; border-bottom: 4px solid #1c3b49; padding: 10px 0 14px; }
.patio-head h1 { margin: 0; color: var(--ink-strong); font-size: clamp(1.55rem, 4vw, 2.4rem); }
.patio-head p, .breadcrumb { margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; }

.patio-menu { display: flex; flex-wrap: wrap; justify-content: center; margin: 14px 0; border: 1px solid var(--line-strong); background: linear-gradient(#14303a, #10232b); }
.patio-menu a, .patio-menu button { min-height: 34px; padding: 6px 15px; border: 0; border-right: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-weight: 700; text-decoration: none; cursor: pointer; }
.patio-menu a:last-child, .patio-menu button:last-child { border-right: 0; }
.patio-menu a:hover, .patio-menu button:hover { background: var(--surface-2); }

.patio-notice, .patio-search, .thread-close-form, .post-edit-panel {
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0a171d;
}

.patio-search { display: grid; grid-template-columns: minmax(240px, 1fr) 210px auto auto; gap: 12px; align-items: end; }
.toggle-line { display: flex; min-height: 42px; align-items: center; gap: 8px; white-space: nowrap; }
.toggle-line input { width: auto; }

.patio-list h2 { margin: 0 0 8px; color: var(--ink-strong); font-size: 1.18rem; }
.patio-table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 4px; }
.patio-table { width: 100%; min-width: 760px; border-collapse: collapse; background: var(--surface); font-size: 0.94rem; }
.patio-table th { padding: 9px 10px; border-bottom: 1px solid var(--line-strong); background: #183747; color: var(--ink-strong); text-align: left; }
.patio-table td { padding: 10px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.patio-table th:nth-child(n + 3), .patio-table td:nth-child(n + 3) { text-align: center; white-space: nowrap; }
.patio-table tr:nth-child(even) td { background: #0a171d; }
.patio-table tr:hover td { background: var(--surface-2); }

.topic-link { display: grid; gap: 4px; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; font-weight: 800; }
.topic-meta { color: var(--muted); font-size: 0.82rem; font-weight: 400; text-decoration: none; }
.thread-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.thread-flags b, .category-pill, .post-meta-list dd span { display: inline-flex; min-height: 24px; align-items: center; padding: 2px 8px; border-radius: 999px; background: var(--soft-green); color: var(--green); font-size: 0.78rem; font-weight: 800; }
.thread-flags b:nth-child(2), .thread-flags b:nth-child(3) { background: #392c12; color: var(--orange); }
.patio-legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 16px 0 8px; color: var(--muted); font-size: 0.86rem; }
.patio-footer { margin-top: 26px; color: var(--muted); text-align: center; font-size: 0.88rem; }

.patio-form { max-width: 760px; margin: 18px auto 0; padding: 22px; border-color: var(--line-strong); background: #0a171d; box-shadow: none; }
.thread-open { padding: 18px; border-color: var(--line-strong); box-shadow: none; }
.article-title { padding: 12px 0 16px; border-bottom: 1px solid var(--line); }
.article-title h2 { margin: 8px 0 0; color: var(--ink-strong); }
.closed-note, .edited-note, .locked-note { color: var(--orange); font-weight: 800; }
.locked-note { padding: 14px; border-radius: 7px; background: #392c12; }

.thread-close-form { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 10px; align-items: end; }
.post-stack { display: grid; gap: 0; margin: 22px 0; }
.post-item { padding: 18px 0; border-top: 1px solid var(--line); }
.post-item h3 { margin: 0 0 12px; color: var(--teal); font-size: 1.05rem; }
.post-body { white-space: pre-wrap; }
.post-meta-list { display: grid; grid-template-columns: 130px 1fr; margin: 0 0 14px; border: 1px solid var(--line); }
.post-meta-list div { display: contents; }
.post-meta-list dt, .post-meta-list dd { margin: 0; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.post-meta-list div:last-child dt, .post-meta-list div:last-child dd { border-bottom: 0; }
.post-meta-list dt { background: var(--paper); color: var(--teal); font-weight: 800; }
.post-edit-panel summary { color: var(--teal); font-weight: 800; cursor: pointer; }
.post-edit-panel form { display: grid; gap: 10px; margin-top: 12px; }

.attachment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.attachment-grid a, .deleted-attachment { display: grid; gap: 6px; color: var(--ink); text-decoration: none; font-size: 0.82rem; }
.attachment-grid img, .file-badge { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 7px; object-fit: cover; }
.file-badge { display: grid; place-items: center; background: var(--surface-2); color: var(--teal); font-weight: 900; }
.attachment-grid small { color: var(--muted); }
.deleted-attachment { opacity: 0.72; }

.admin-list { display: grid; gap: 10px; margin-top: 16px; }
.admin-list article { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.admin-list strong { color: var(--ink-strong); }
.admin-list span { color: var(--muted); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-panel { max-width: 820px; margin: 0 auto; }
.contact-message-body { margin: 0; color: var(--ink); white-space: pre-wrap; }
.release-edit-panel { margin-top: 4px; }
.release-edit-panel form { display: grid; gap: 10px; margin-top: 12px; }

@media (max-width: 920px) {
  .site-header { grid-template-columns: 1fr; justify-items: center; }
  .brand, .site-nav, .session-chip, .header-lab-card { grid-column: auto; grid-row: auto; }
  .header-lab-card { width: min(100%, 260px); }
  .site-nav { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .hero-section--bubbliez { grid-template-rows: minmax(300px, 50vh) auto; }
  .hero-banner { background-position: center top; }
  .intro-band, .notice-band, .feature-grid, .patio-search, .admin-grid, .thread-close-form, .lab-page-grid, .lab-feature-list, .lab-fit-panel, .lab-api-note, .meeting-summary-grid, .meeting-flow-panel { grid-template-columns: 1fr; }
  .meeting-metrics dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meeting-metrics .meeting-cost { grid-column: 1 / -1; }
  .feature-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .lab-sample-cta .primary-action { width: 100%; }
  .lab-sample-points { grid-template-columns: 1fr; }
  .lab-report-frame-wrap iframe { min-height: 640px; }
}

@media (max-width: 560px) {
  .hero-section { min-height: min(620px, calc(100vh - 150px)); padding: 54px 18px 64px; }
  .hero-section--bubbliez { grid-template-rows: 176px auto; min-height: auto; padding: 0; }
  .hero-section--bubbliez .hero-content { padding: 24px 18px 34px; }
  .hero-banner {
    min-height: 176px;
    background-color: #5fc6f6;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
  }
  .hero-actions { flex-direction: column; }
  .primary-action, .secondary-action, .download-button { width: 100%; }
  .gate-panel, .patio-shell, .patio-form, .thread-open, .admin-panel { padding: 18px; }
  .post-meta-list { grid-template-columns: 1fr; }
  .post-meta-list dt { border-bottom: 0; }
  .lab-thumb-grid { grid-template-columns: 1fr; }
  .meeting-metrics dl, .meeting-metrics-compact dl { grid-template-columns: 1fr; }
  .meeting-metrics-compact .meeting-cost, .meeting-metrics-compact .meeting-highlight { grid-column: auto; }
  .meeting-cost strong, .meeting-highlight strong { display: block; margin: 6px 0 0; }
  .lab-note-panel { display: grid; }
  .lab-report-fold > summary { align-items: flex-start; flex-direction: column; }
  .lab-report-fold > summary::after { width: 100%; }
  .lab-report-frame-wrap iframe { min-height: 560px; }
}
