:root {
  --red: #e60023;
  --red-dark: #b9001c;
  --ink: #191b20;
  --muted: #69717d;
  --line: #e7e8ec;
  --soft: #f6f6f8;
  --pink: #fff3f5;
  --white: #fff;
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--white);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--white); color: var(--ink); }
a { color: inherit; }
main { min-height: calc(100vh - 150px); }

.site-header {
  height: 72px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { font-weight: 900; text-decoration: none; letter-spacing: .04em; }
.brand span { color: var(--red); }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.site-nav a, .link-button { text-decoration: none; color: #40454e; font: inherit; }
.nav-cta { color: var(--white); background: var(--ink); padding: 9px 15px; border-radius: 999px; }
.inline-form { display: inline; }
.link-button { border: 0; background: transparent; cursor: pointer; padding: 0; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle:focus-visible { outline: 3px solid rgba(230, 0, 35, .2); outline-offset: 2px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.environment-banner {
  padding: 7px 20px;
  background: #fff8d8;
  color: #67560c;
  font-size: 11px;
  text-align: center;
  letter-spacing: .08em;
  font-weight: 800;
}

.hero {
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 80px 24px;
  background:
    radial-gradient(circle at 72% 24%, rgba(230,0,35,.16), transparent 26%),
    linear-gradient(145deg, #15171b 0%, #262a31 100%);
  color: var(--white);
}
.hero-copy { width: min(960px, 100%); }
.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero h1 { margin: 0; font-size: clamp(42px, 8vw, 86px); line-height: 1.03; letter-spacing: -.05em; }
.hero p:not(.eyebrow) { max-width: 650px; color: #d3d6db; font-size: 17px; line-height: 1.9; }
.hero-actions, .upgrade-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { background: var(--red); color: var(--white); }
.button.primary:hover { background: var(--red-dark); }
.button.secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.button:disabled { cursor: not-allowed; opacity: .42; }

.section, .dashboard, .report-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}
.section h2, .dashboard h1 { margin: 0 0 30px; font-size: clamp(28px, 4vw, 46px); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-card, .panel, .report-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(25, 27, 32, .05);
}
.plan-card { padding: 25px; }
.plan-card h3 { margin: 0 0 14px; }
.price { margin: 8px 0; color: var(--red); font-size: 30px; font-weight: 900; }
.price small { margin-left: 5px; font-size: 11px; color: var(--muted); }
.fine-print { color: var(--muted); font-size: 12px; line-height: 1.7; }

.narrow { width: min(560px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0; }
.panel { padding: clamp(24px, 5vw, 42px); }
.panel h1 { margin: 0 0 14px; font-size: 34px; }
.panel h2 { margin-top: 0; }
.stack { display: grid; gap: 18px; margin-top: 26px; }
label { display: grid; gap: 8px; font-size: 13px; font-weight: 800; }
input, textarea, select {
  width: 100%;
  border: 1px solid #cfd2d8;
  border-radius: 11px;
  padding: 13px;
  font: inherit;
  background: var(--white);
}
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(230,0,35,.12); border-color: var(--red); }
textarea { min-height: 100px; resize: vertical; }
.alert { border-radius: 11px; padding: 13px 15px; margin: 18px 0; line-height: 1.6; }
.alert.error { background: #fff0f0; color: #92202a; border: 1px solid #f2bec3; }
.alert.success { background: #effaf3; color: #23643a; border: 1px solid #b9e1c5; }
.dev-box { padding: 16px; background: #fff8d8; border: 1px solid #eadb8e; border-radius: 12px; margin: 22px 0; }
.dev-box a { display: block; margin-top: 10px; font-weight: 800; }

.dashboard-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.dashboard-head h1 { margin-bottom: 5px; }
.dashboard-head p:last-child { color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: 390px 1fr; gap: 22px; align-items: start; }
.libreview-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  margin-bottom: 22px;
  border: 1px solid #dfe5e1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f4faf7, #fff);
}
.libreview-summary h2 { margin: 0 0 8px; }
.libreview-summary p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.7; }
.libreview-summary .measurement-range { margin-top: 7px; font-size: 12px; }
.libreview-summary .sync-explanation { margin-top: 8px; font-size: 12px; }
.connection-status {
  display: inline-flex;
  padding: 4px 8px;
  margin-right: 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}
.connection-status.linked { background: #eaf8ef; color: #23643a; }
.connection-status.pending { background: #fff8d8; color: #67560c; }
.access-overview {
  padding: clamp(24px, 5vw, 40px);
  margin: 28px 0 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}
.access-overview-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.access-overview h2 { margin: 0 0 9px; font-size: clamp(24px, 4vw, 34px); }
.access-overview-head > div > p:last-child { max-width: 650px; margin: 0; color: var(--muted); line-height: 1.75; }
.access-summary { display: grid; grid-template-columns: repeat(3, minmax(92px, 1fr)); margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.access-summary div { min-width: 100px; padding: 14px; border-left: 1px solid var(--line); }
.access-summary div:first-child { border-left: 0; }
.access-summary dt { color: var(--muted); font-size: 10px; font-weight: 800; }
.access-summary dd { margin: 5px 0 0; font-size: 20px; font-weight: 900; }
.mypage-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.mypage-plan-card { position: relative; display: flex; flex-direction: column; min-height: 270px; padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.mypage-plan-card.recommended { border-color: #f0a1ad; box-shadow: 0 12px 30px rgba(230, 0, 35, .08); }
.mypage-plan-card h3 { margin: 12px 0 0; font-size: 19px; }
.mypage-plan-card > p:not(.mypage-plan-price) { margin: 5px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.mypage-plan-card > small { margin-top: auto; color: var(--muted); font-weight: 750; }
.mypage-plan-card > a { margin-top: 12px; color: var(--red-dark); font-size: 12px; font-weight: 850; }
.plan-level { width: fit-content; padding: 4px 8px; border-radius: 999px; background: var(--pink); color: var(--red-dark); font-size: 10px; font-weight: 900; }
.mypage-plan-price { margin: 8px 0 0; color: var(--red); font-size: 27px; font-weight: 900; }
.mypage-plan-price small { margin-left: 4px; color: var(--muted); font-size: 10px; }
.report-list { display: grid; gap: 12px; }
.report-list-section { margin-top: 28px; }
.report-list-heading { scroll-margin-top: 92px; }
.report-list-heading h2 { margin: 0 0 5px; }
.report-list-heading p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.report-card { display: grid; gap: 16px; padding: 20px; }
.report-card:hover { border-color: #babec6; }
.report-card small { color: var(--muted); }
.report-card-main { display: grid; gap: 6px; color: inherit; text-decoration: none; }
.report-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.report-card-actions form { margin: 0; }
.report-access-copy { margin-right: auto; color: var(--muted); font-size: 11px; font-weight: 800; }
.report-access-copy.unlocked { color: #23643a; }
.compact-button { min-height: 42px; padding: 10px 16px; font-size: 12px; }
.status {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
}
.empty-state { min-height: 180px; display: grid; place-items: center; border: 1px dashed #c9ccd2; border-radius: var(--radius); color: var(--muted); }

.admin-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0; }
.admin-access-panel { margin-bottom: 18px; padding: clamp(22px, 4vw, 34px); }
.admin-access-panel h2 { margin: 0 0 8px; }
.admin-invite-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-top: 22px; }
.admin-invite-form label { margin: 0; }
.admin-invite-form .button { min-height: 48px; }
.admin-account-list { display: grid; gap: 8px; margin-top: 20px; }
.admin-account-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.admin-account-row strong { display: block; overflow-wrap: anywhere; }
.admin-account-row .fine-print { display: block; margin: 3px 0 0; }
.admin-revoke-form { display: grid; justify-items: end; gap: 6px; }
.admin-revoke-form label { display: flex; align-items: center; gap: 6px; margin: 0; }
.admin-revoke-form input[type="checkbox"] { width: auto; }
.admin-search-panel { margin-bottom: 18px; }
.admin-search-controls { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-search-controls label { margin: 0; }
.admin-search-controls input, .admin-search-controls select { margin-top: 8px; }
@media (max-width: 700px) { .admin-search-controls { grid-template-columns: 1fr; } }
.admin-search-panel .fine-print { margin-bottom: 0; }
.admin-user-list { display: grid; gap: 18px; }
.admin-user-card { padding: clamp(22px, 4vw, 34px); }
.admin-user-summary { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.admin-user-summary h2 { margin: 0; overflow-wrap: anywhere; font-size: 22px; }
.admin-user-counts { display: grid; grid-template-columns: repeat(2, minmax(95px, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.admin-user-counts div { padding: 12px 16px; }
.admin-user-counts div + div { border-left: 1px solid var(--line); }
.admin-user-counts dt { color: var(--muted); font-size: 10px; font-weight: 800; }
.admin-user-counts dd { margin: 4px 0 0; font-size: 18px; font-weight: 900; }
.admin-connection-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1px; margin-top: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.admin-connection-grid > div { min-width: 0; padding: 14px; background: var(--white); }
.admin-connection-grid span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 800; }
.admin-connection-grid strong { display: block; overflow-wrap: anywhere; font-size: 13px; }
.admin-import-form { padding-top: 22px; border-top: 1px solid var(--line); }
.admin-import-form .button { justify-self: start; }
.admin-import-form [data-admin-preview-result] { white-space: pre-line; }
.admin-filter-empty[hidden], .admin-user-card[hidden] { display: none; }

.report-shell { max-width: 820px; }
.report-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 7vw, 70px);
  border-radius: 28px;
  color: var(--white);
  background: linear-gradient(145deg, #191b20, #292e37);
  margin-bottom: 18px;
}
.report-hero h1 { font-size: clamp(38px, 8vw, 70px); margin: 0 0 10px; letter-spacing: -.04em; }
.report-hero .score { font-size: 72px; line-height: 1; font-weight: 900; color: #ff6a7e; margin: 30px 0 18px; }
.report-hero .score small { font-size: 15px; color: #bbbfc7; }
.report-hero .analysis-window { margin: 18px 0 0; color: #d4d7dd; font-size: 12px; }
.report-section {
  padding: clamp(26px, 6vw, 50px);
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.section-number { margin: 0; color: var(--red); font-size: 11px; font-weight: 900; }
.report-section h2 { margin: 8px 0 22px; font-size: clamp(22px, 4vw, 32px); }
.report-body { white-space: pre-wrap; line-height: 1.95; color: #343943; }
.locked { background: #fafafb; }
.mosaic { overflow: hidden; filter: blur(5px); opacity: .38; user-select: none; }
.mosaic i { display: block; height: 12px; margin: 10px 0; border-radius: 999px; background: linear-gradient(90deg, #8e939c 20%, #c6c9cf 20% 44%, #9ea3ac 44% 76%, #d4d6db 76%); }
.mosaic i:nth-child(2) { width: 83%; }
.mosaic i:nth-child(3) { width: 94%; }
.mosaic i:nth-child(4) { width: 68%; }
.locked-note { margin-top: 20px; color: var(--red); font-size: 13px; font-weight: 800; }
.upgrade-panel { padding: clamp(28px, 6vw, 54px); background: var(--ink); color: var(--white); border-radius: 24px; margin-top: 18px; }
.upgrade-panel h2 { margin-top: 0; }
.upgrade-panel .fine-print { color: #bfc3ca; }
.danger-panel {
  padding: clamp(24px, 5vw, 42px);
  margin-top: 18px;
  border: 1px solid #f1c5cb;
  border-radius: 22px;
  background: #fff8f9;
}
.danger-panel h2 { margin-top: 0; }
.danger-panel p { color: var(--muted); line-height: 1.8; }
.button.danger { background: var(--white); color: var(--red-dark); border-color: #eaa9b2; }
.button.danger:hover { background: #fff0f2; }
.button.danger:disabled:hover { background: var(--white); }
.check-label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.check-label input { width: auto; margin: 0; }
.consent-box {
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  line-height: 1.7;
}
.consent-box input { margin-top: 4px; }
.consent-box a { color: var(--red-dark); }
.treatment-questions {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--soft);
}
.treatment-questions legend { padding: 0 6px; font-size: 14px; font-weight: 900; }
.treatment-questions > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.history-section { margin-top: 42px; }
.history-section h2 { margin-bottom: 16px; }
.history-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.history-table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 13px; }
.history-table th, .history-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; }
.history-table th { background: var(--soft); color: var(--muted); font-size: 11px; }
.history-table tbody tr:last-child td { border-bottom: 0; }
.history-table small { display: block; margin-top: 3px; color: var(--muted); }
.payment-status { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: var(--soft); font-size: 11px; font-weight: 800; }
.status-paid { background: #eaf8ef; color: #23643a; }
.status-refunded { background: #eef1f5; color: #4f5968; }
.status-pending { background: #fff8d8; color: #67560c; }
.status-failed { background: #fff0f0; color: #92202a; }
.muted { color: var(--muted); }
.empty-state.compact { min-height: 100px; }
.lead-copy { color: var(--muted); line-height: 1.85; }
.account-pair { display: grid; gap: 1px; margin: 24px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.account-pair div { display: grid; grid-template-columns: 160px 1fr; gap: 14px; padding: 14px 16px; background: var(--white); }
.account-pair dt { color: var(--muted); font-size: 12px; font-weight: 800; }
.account-pair dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 750; }
.form-note { margin: -6px 0 0; }
.practice-steps, .disconnect-panel { margin-top: 18px; }
.practice-steps ol { display: grid; gap: 12px; padding-left: 1.4em; color: #343943; line-height: 1.7; }
.connection-next-step { padding: 18px; border: 1px solid #dfe5e1; border-radius: 12px; background: #f7fbf9; }
.connection-next-step p { margin: 10px 0 0; line-height: 1.7; }
.inline-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.text-link { font-size: 12px; font-weight: 800; }
.libreview-guide { display: grid; gap: 22px; margin-top: 24px; }
.libreview-guide-step { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #f6f7f8; }
.libreview-guide-step figcaption { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--white); font-size: 13px; font-weight: 800; line-height: 1.55; }
.libreview-guide-step figcaption span { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); }
.libreview-guide-step img { display: block; width: min(100%, 430px); height: auto; margin: 0 auto; }
.practice-id { display: grid; gap: 6px; padding: 18px; margin: 22px 0; border: 1px solid #b9e1c5; border-radius: 14px; background: #effaf3; text-align: center; }
.practice-id span { color: #467458; font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.practice-id strong { font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 26px; letter-spacing: .06em; }
.pending-alert { background: #fff8d8; color: #67560c; border: 1px solid #eadb8e; }
.disconnect-panel p { color: var(--muted); line-height: 1.8; }
.measurement-summary { display: grid; gap: 1px; margin: 24px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.measurement-summary div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 16px; background: var(--white); }
.measurement-summary dt { color: var(--muted); font-size: 12px; font-weight: 800; }
.measurement-summary dd { margin: 0; font-size: 13px; font-weight: 800; }
.period-output { padding: 12px 14px; margin: 0; border-radius: 11px; background: var(--soft); color: var(--muted); font-size: 13px; font-weight: 750; }
.collection-status { padding: 20px; margin-top: 24px; border: 1px solid #eadb8e; border-radius: 14px; background: #fffaf0; }
.collection-status p { margin: 12px 0 0; color: var(--muted); line-height: 1.8; }
.collection-status .sync-explanation { padding-top: 12px; border-top: 1px solid #eadb8e; font-size: 12px; }
.analysis-actions { display: grid; gap: 14px; margin-top: 18px; }
.back-link { margin: 22px 0 0; text-align: center; }
.back-link a { color: var(--muted); font-size: 13px; }
.reanalyze-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--soft);
}
.reanalyze-panel h2 { margin: 0 0 8px; }
.reanalyze-panel p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.7; }

/* Editorial report — production rendering of lp/glucolens_report_sample.html */
.editorial-report {
  --report-red: #e60020;
  --report-red-dark: #c00019;
  --report-red-light: #ff4d63;
  --report-pink: #f4879b;
  --report-pink-soft: #fce4e8;
  --report-pink-bg: #fdf3f5;
  --report-ink: #231815;
  --report-sub: #574c47;
  --report-muted: #948a84;
  --report-line: #eee7e6;
  --report-dark: #1c1411;
  width: min(820px, 100%);
  margin: 32px auto 0;
  color: var(--report-ink);
  background: #fff;
  box-shadow: 0 2px 40px rgba(35, 24, 21, .08);
  line-height: 1.85;
}
.report-pad { padding-left: clamp(22px, 5vw, 52px); padding-right: clamp(22px, 5vw, 52px); }
.report-ribbon {
  padding: 8px 16px;
  background: var(--report-red);
  color: #fff;
  text-align: center;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}
.editorial-head {
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--report-line);
  background: linear-gradient(160deg, #fff, var(--report-pink-bg));
}
.report-brand-row { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.report-mark {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--report-red);
}
.report-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
}
.report-brand-name { font-size: 16px; font-weight: 850; }
.report-brand-name small {
  margin-left: 7px;
  color: var(--report-muted);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .18em;
}
.report-meta {
  margin-left: auto;
  color: var(--report-muted);
  text-align: right;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.7;
}
.report-ostag, .editorial-number {
  margin: 0 0 7px;
  color: var(--report-red);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
}
.report-osname {
  margin: 0 0 9px;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.28;
  letter-spacing: -.03em;
}
.report-osname small {
  color: var(--report-sub);
  font-size: .42em;
  font-weight: 750;
  letter-spacing: 0;
}
.report-underline { background: linear-gradient(transparent 68%, var(--report-pink-soft) 68%); }
.report-lead { margin: 0; color: var(--report-sub); font-size: 14px; }
.hero-stats {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 26px;
}
.score-gauge {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  padding: 11px;
  border-radius: 50%;
  background: conic-gradient(
    #db704f 0 216deg,
    #d4a63b 216deg 291.6deg,
    #4d9a72 291.6deg 360deg
  );
}
.score-gauge::after {
  content: "";
  position: absolute;
  top: 2px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--report-red);
  box-shadow: 0 1px 5px rgba(35,24,21,.28);
  transform: rotate(var(--score-degrees));
  transform-origin: 6px 73px;
}
.score-gauge-inner {
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: #fff;
  text-align: center;
}
.score-gauge strong { color: var(--report-red); font-size: 44px; line-height: 1; }
.score-gauge span {
  color: var(--report-muted);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: .12em;
}
.hero-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-kv-item {
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--report-line);
  border-radius: 12px;
  background: var(--report-pink-bg);
}
.hero-kv-item > span {
  display: block;
  color: var(--report-muted);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: .07em;
}
.hero-kv-item strong { display: block; margin-top: 2px; font-size: 20px; line-height: 1.35; }
.hero-kv-item strong.compact { font-size: 15px; }
.hero-kv-item strong small { color: var(--report-muted); font-size: 10px; }
.score-guide {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f4f2;
  color: var(--report-muted);
  font-size: 10px;
  line-height: 1.6;
}
.score-gauge { grid-row: 1 / span 2; }
.hero-kv { grid-column: 2; grid-row: 2; }
.score-guide strong { margin-right: 8px; color: var(--report-ink); font-size: 12px; }
.score-guide.score-caution { border-left: 4px solid #db704f; }
.score-guide.score-normal { border-left: 4px solid #d4a63b; }
.score-guide.score-stable { border-left: 4px solid #4d9a72; }
.analysis-note { margin: 18px 0 0; color: var(--report-muted); font-size: 11px; }
.treatment-notice {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #e1bd63;
  border-radius: 12px;
  background: #fff8dd;
  color: #5d4b15;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.75;
}
.editorial-section { position: relative; padding: 31px 0; border-bottom: 1px solid var(--report-line); }
.editorial-section h2, .editorial-upgrade h2 {
  margin: 5px 0 13px;
  font-size: clamp(20px, 3.6vw, 25px);
  line-height: 1.45;
}
.editorial-copy {
  margin: 0;
  color: var(--report-sub);
  font-size: 14px;
  white-space: pre-line;
}
.editorial-quote {
  margin: 15px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--report-red);
  border-radius: 0 10px 10px 0;
  background: var(--report-pink-bg);
  color: var(--report-ink);
  font-size: 13px;
}
.runner-up { margin: 0; color: var(--report-muted); font-size: 12px; }
.daily-trend {
  display: grid;
  min-height: 210px;
  grid-template-columns: repeat(14, minmax(28px, 1fr));
  align-items: end;
  gap: 6px;
  margin-top: 18px;
  overflow-x: auto;
  padding: 16px 10px 8px;
  border: 1px solid var(--report-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fff8f8);
}
.daily-trend-item { display: grid; min-width: 34px; justify-items: center; gap: 4px; }
.daily-trend-bar { display: flex; width: 13px; height: 120px; align-items: flex-end; }
.daily-trend-bar i { display: block; width: 100%; height: var(--bar-height); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--report-red-light), var(--report-red)); }
.daily-trend-item b { color: var(--report-ink); font-size: 9px; }
.daily-trend-item small { color: var(--report-muted); text-align: center; font-size: 8px; line-height: 1.35; white-space: nowrap; }
.chart-unit { margin: 7px 0 0; color: var(--report-muted); text-align: right; font-size: 9px; }
.mini-metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 16px; }
.mini-metric-row > div { padding: 13px; border: 1px solid var(--report-line); border-radius: 12px; }
.mini-metric-row span { display: block; color: var(--report-muted); font-size: 10px; }
.mini-metric-row strong { display: block; font-size: 18px; }
.mini-metric-row small { margin-left: 3px; color: var(--report-muted); font-size: 10px; }
.tempo-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 17px 0; }
.tempo-slot { padding: 13px; border: 1px solid var(--report-line); border-radius: 12px; background: #fff; }
.tempo-slot.hot { border-color: var(--report-red); background: var(--report-pink-bg); }
.tempo-slot strong { display: block; color: var(--report-red); font-size: 14px; }
.tempo-slot strong em { margin-left: 5px; font-size: 10px; font-style: normal; }
.tempo-slot > span { display: block; color: var(--report-muted); font-size: 10px; line-height: 1.6; }
.tempo-slot p { margin: 7px 0 0; color: var(--report-sub); font-size: 11px; line-height: 1.55; }
.report-heatmap { margin-top: 20px; }
.heatmap-caption {
  margin: 0 0 10px;
  color: var(--report-muted);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: .06em;
}
.heatmap-header, .heatmap-row {
  display: grid;
  grid-template-columns: 74px repeat(4, minmax(52px, 1fr));
  gap: 4px;
  margin-bottom: 4px;
}
.heatmap-header b, .heatmap-row > b {
  align-self: center;
  color: var(--report-muted);
  text-align: center;
  font-size: 10px;
}
.heatmap-row > b small { display: block; font-size: 8px; font-weight: 500; }
.heatmap-cell {
  display: grid;
  min-height: 30px;
  place-items: center;
  border-radius: 5px;
  color: #17202a;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
}
.hm-none { background: #f0eeed; color: #aaa; }
.hm-low { background: #2c7bb6; color: #fff; }
.hm-target { background: #63ad69; color: #fff; }
.hm-high { background: #f29e4c; color: #231815; }
.hm-very-high { background: #d1495b; color: #fff; }
.heatmap-cell > i { font-style: normal; margin-right: 2px; }
.heatmap-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 11px; }
.heatmap-legend span { display: inline-flex; align-items: center; gap: 4px; color: var(--report-muted); font-size: 9px; }
.heatmap-legend i { width: 10px; height: 10px; border-radius: 2px; }
.integrated-reading { display: grid; gap: 10px; }
.integrated-reading p { margin: 0; color: var(--report-sub); font-size: 13px; line-height: 1.8; }
.prescription-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.prescription-grid article {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--report-line);
  border-radius: 12px;
}
.prescription-icon {
  display: grid;
  flex: none;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--report-pink-soft);
  color: var(--report-red);
  font-size: 12px;
  font-weight: 900;
}
.prescription-grid small { color: var(--report-muted); font-size: 9px; }
.prescription-grid p { margin: 2px 0 0; color: var(--report-ink); font-size: 12px; line-height: 1.6; }
.subsection-title { margin: 28px 0 12px; font-size: 16px; }
.diagnosis-chart { padding: 24px 26px; border-radius: 18px; background: var(--report-dark); color: #f2ebe9; }
.chart-title { margin: 0 0 15px; color: var(--report-red-light); font: 10px "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .15em; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chart-box { padding: 14px; border: 1px solid #3a2d29; border-radius: 12px; background: #241a17; }
.chart-box > span { display: block; color: #c1b8b2; font-size: 9px; }
.chart-box strong { display: block; margin-top: 3px; color: #fff; font-size: 16px; }
.chart-box strong.accent { color: var(--report-red-light); }
.chart-box p { margin: 4px 0 0; color: #c9bdb8; font-size: 10px; line-height: 1.5; }
.metric-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.metric-group { padding: 11px; border: 1px solid #3a2d29; border-radius: 11px; background: #241a17; }
.metric-group h4 { margin: 0 0 8px; color: var(--report-red-light); font-size: 10px; letter-spacing: .06em; }
.metric-group-items { display: grid; gap: 6px; }
.metric-group-items > span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.metric-group-items small { color: #a99d97; font-size: 8px; line-height: 1.4; }
.metric-group-items b { flex: none; color: #fff; font-size: 11px; }
.comparison-note { margin: 12px 0 0; color: #a99d97; font-size: 9px; line-height: 1.6; }
.week-plan { width: 100%; border-collapse: collapse; font-size: 12px; }
.week-plan th, .week-plan td { padding: 10px 12px; border: 1px solid var(--report-line); text-align: left; }
.week-plan th { width: 52px; background: var(--report-pink-bg); color: var(--report-red); }
.week-plan td { color: var(--report-sub); }
.visual-prompt {
  padding: 18px 20px;
  border: 1px dashed var(--report-pink);
  border-radius: 14px;
  background: var(--report-pink-bg);
}
.visual-prompt small { color: var(--report-red); font: 9px "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .1em; }
.visual-prompt p { margin: 7px 0 0; color: var(--report-sub); font-size: 12px; font-style: italic; }
.editorial-essay { margin: 0; color: var(--report-ink); font-size: 14px; line-height: 2; }
.editorial-poem { margin: 20px 0 0; color: var(--report-red-dark); text-align: center; font-size: 15px; font-weight: 750; }
.metric-mosaic {
  display: inline-flex;
  width: 112px;
  height: 24px;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  filter: blur(4px);
  opacity: .58;
  user-select: none;
}
.metric-mosaic i { display: block; height: 14px; border-radius: 4px; background: #766f6c; }
.metric-mosaic i:nth-child(1) { width: 38px; }
.metric-mosaic i:nth-child(2) { width: 24px; }
.metric-mosaic i:nth-child(3) { width: 35px; }
.is-locked { overflow: hidden; background: linear-gradient(180deg, #fff, #fdfbfb); }
.locked-preview-wrap {
  position: relative;
  min-height: 315px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #eee8e5;
  border-radius: 16px;
  background: #fff;
}
.locked-editorial {
  min-height: 315px;
  padding: 24px;
  filter: blur(5.5px);
  opacity: .7;
  pointer-events: none;
  transform: scale(1.02);
  user-select: none;
}
.locked-kicker { display: flex; gap: 9px; margin-bottom: 18px; }
.locked-kicker i { display: block; width: 88px; height: 8px; border-radius: 999px; background: #b5aeaa; }
.locked-kicker i + i { width: 54px; background: var(--report-pink); }
.locked-lines i {
  display: block;
  width: 100%;
  height: 10px;
  margin: 9px 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #817a76 0 18%, #beb8b5 18% 32%, #918985 32% 59%, #cbc6c3 59% 72%, #8f8884 72% 100%);
}
.locked-lines i:nth-child(2) { width: 88%; }
.locked-lines i:nth-child(3) { width: 72%; }
.locked-lines i:nth-child(5) { width: 80%; }
.locked-lines i:nth-child(6) { width: 94%; }
.locked-lines i:nth-child(7) { width: 66%; }
.locked-card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 17px; }
.locked-card-row > i {
  display: flex;
  height: 72px;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 11px;
  background: #e6e0dd;
}
.locked-card-row b { display: block; width: 62%; height: 8px; border-radius: 4px; background: #938b87; }
.locked-card-row b + b { width: 84%; height: 15px; background: #b9b1ad; }
.locked-chart-preview {
  display: flex;
  height: 72px;
  align-items: flex-end;
  gap: 12px;
  margin-top: 18px;
  padding: 0 16px;
  border-bottom: 2px solid #c8c0bc;
}
.locked-chart-preview span { flex: 1; height: 35%; border-radius: 5px 5px 0 0; background: var(--report-pink); }
.locked-chart-preview span:nth-child(2) { height: 58%; }
.locked-chart-preview span:nth-child(3) { height: 42%; }
.locked-chart-preview span:nth-child(4) { height: 82%; }
.locked-chart-preview span:nth-child(5) { height: 67%; }
.locked-chart-preview span:nth-child(6) { height: 48%; }
.locked-gate {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(390px, calc(100% - 32px));
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid rgba(220, 215, 212, .95);
  border-radius: 16px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 14px 45px rgba(40, 31, 28, .18);
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
}
.locked-gate-icon { font-size: 18px; }
.locked-gate strong { color: var(--report-ink); font-size: 15px; }
.locked-gate > span:not(.locked-gate-icon) { color: var(--report-sub); font-size: 11px; }
.locked-gate a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--report-red);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}
.locked-gate a:hover { background: var(--report-red-dark); }
.locked-gate a:focus-visible { outline: 3px solid var(--report-pink); outline-offset: 3px; }
.editorial-upgrade { margin: 28px 0 34px; padding: 30px; border-radius: 18px; background: var(--report-dark); color: #fff; }
.editorial-upgrade .editorial-number { color: var(--report-red-light); }
.editorial-upgrade > p:not(.editorial-number):not(.fine-print) { color: #d4cbc7; font-size: 13px; }
.editorial-upgrade .fine-print { color: #a99e99; }
.editorial-disclaimer { padding: 31px 0 38px; background: var(--report-dark); text-align: center; }
.editorial-disclaimer p { margin: 0 auto 17px; max-width: 620px; color: #b9aca6; font-size: 11px; line-height: 1.8; }
.editorial-disclaimer strong { color: var(--report-red-light); }
.editorial-disclaimer span { color: #c1b8b2; font: 9px "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .16em; }
.report-danger-wrap { width: min(820px, calc(100% - 40px)); margin: 24px auto 72px; }
.summary-list { color: var(--muted); line-height: 1.8; }
.site-footer {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px max(24px, calc((100vw - 1120px) / 2));
  background: #14161a;
  color: #aeb2ba;
  font-size: 11px;
}
.legal-links { display: flex; flex-wrap: wrap; gap: 12px; }
.legal-links a { color: inherit; text-decoration: none; }
.legal-links a:hover { color: var(--white); }

/* Service unavailable — intentionally self-contained and free of user data. */
.sorry-page {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(230, 0, 35, .11), transparent 30rem),
    radial-gradient(circle at 100% 100%, rgba(230, 0, 35, .07), transparent 34rem),
    #faf9fa;
}
.sorry-header {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0;
}
.sorry-main {
  display: grid;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  place-items: center;
  padding: 28px 0 64px;
}
.sorry-card {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 540px;
  grid-template-columns: minmax(280px, .82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: clamp(30px, 7vw, 86px);
  padding: clamp(38px, 7vw, 84px);
  overflow: hidden;
  border: 1px solid rgba(231, 232, 236, .9);
  border-radius: 30px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 28px 90px rgba(25, 27, 32, .10);
}
.sorry-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), #ff8194 68%, transparent);
  content: "";
}
.sorry-visual {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
}
.sorry-orbit, .sorry-pulse {
  position: absolute;
  border-radius: 50%;
}
.sorry-orbit {
  inset: 0;
  border: 1px solid rgba(230, 0, 35, .18);
}
.sorry-orbit::after {
  position: absolute;
  top: 12%;
  right: 8%;
  width: 16px;
  height: 16px;
  border: 6px solid #fff;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 8px 26px rgba(230, 0, 35, .28);
  content: "";
}
.sorry-orbit-inner {
  inset: 18%;
  border-color: rgba(25, 27, 32, .12);
}
.sorry-orbit-inner::after {
  top: auto;
  right: auto;
  bottom: 6%;
  left: 8%;
  width: 10px;
  height: 10px;
  border-width: 5px;
  background: var(--ink);
  box-shadow: none;
}
.sorry-pulse {
  inset: 36%;
  display: grid;
  place-items: center;
  background: var(--red);
  box-shadow: 0 18px 46px rgba(230, 0, 35, .28);
}
.sorry-pulse::before, .sorry-pulse::after {
  position: absolute;
  width: 30%;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  content: "";
}
.sorry-pulse::before { transform: translateX(-42%) rotate(45deg); }
.sorry-pulse::after { transform: translateX(42%) rotate(-45deg); }
.sorry-copy { position: relative; z-index: 1; }
.sorry-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.24;
  letter-spacing: -.045em;
}
.sorry-lead {
  max-width: 630px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}
.sorry-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sorry-note {
  display: flex;
  max-width: 650px;
  align-items: flex-start;
  gap: 11px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}
.sorry-note p { margin: 0; }
.sorry-note-icon {
  display: grid;
  flex: none;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #cfd2d8;
  border-radius: 50%;
  color: #555d68;
  font-size: 11px;
  font-weight: 900;
}
.sorry-footer {
  display: flex;
  width: min(1120px, calc(100% - 48px));
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 24px 0 30px;
  color: #8a9099;
  font-size: 10px;
}

@media (max-width: 760px) {
  .site-header { height: 62px; padding: 0 18px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    left: 14px;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 18px 44px rgba(25, 27, 32, .16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .site-nav a, .site-nav .link-button {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: left;
  }
  .site-nav a:hover, .site-nav .link-button:hover { background: var(--soft); }
  .site-nav .inline-form { display: block; }
  .site-nav .nav-cta { justify-content: center; color: var(--white); background: var(--ink); }
  .hero { min-height: 500px; padding-top: 55px; }
  .plan-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .libreview-summary { align-items: stretch; flex-direction: column; }
  .libreview-summary .button { width: 100%; }
  .access-overview-head { grid-template-columns: 1fr; }
  .access-summary { grid-template-columns: 1fr; }
  .access-summary div { border-top: 1px solid var(--line); border-left: 0; }
  .access-summary div:first-child { border-top: 0; }
  .mypage-plan-grid { grid-template-columns: 1fr; }
  .mypage-plan-card { min-height: 0; }
  .report-card-actions, .inline-actions { align-items: stretch; flex-direction: column; }
  .report-card-actions form, .report-card-actions .button, .inline-actions .button { width: 100%; }
  .report-access-copy { margin-right: 0; }
  .admin-shell { width: min(100% - 28px, 680px); padding: 48px 0; }
  .admin-invite-form { grid-template-columns: 1fr; }
  .admin-invite-form .button { width: 100%; }
  .admin-account-row { align-items: flex-start; flex-direction: column; }
  .admin-revoke-form { width: 100%; justify-items: start; }
  .admin-user-summary { flex-direction: column; }
  .admin-user-counts { width: 100%; }
  .admin-connection-grid { grid-template-columns: 1fr; }
  .admin-import-form .button { width: 100%; }
  .account-pair div { grid-template-columns: 1fr; gap: 4px; }
  .section, .dashboard, .report-shell { width: min(100% - 28px, 820px); padding: 48px 0; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .upgrade-actions, .upgrade-actions form, .upgrade-actions button { width: 100%; }
  .editorial-report { margin-top: 0; }
  .hero-stats { grid-template-columns: 1fr; }
  .score-gauge, .score-guide, .hero-kv { grid-column: 1; grid-row: auto; }
  .hero-kv { grid-template-columns: 1fr 1fr; }
  .tempo-slots { grid-template-columns: 1fr 1fr; }
  .prescription-grid, .chart-grid { grid-template-columns: 1fr; }
  .metric-groups { grid-template-columns: 1fr; }
  .report-brand-row { flex-wrap: wrap; }
  .report-meta {
    width: 100%;
    margin-left: 35px;
    padding-top: 7px;
    border-top: 1px solid var(--report-line);
    text-align: left;
    font-size: 9px;
    line-height: 1.6;
  }
  .mini-metric-row { grid-template-columns: 1fr; }
  .heatmap-cell { min-height: 27px; font-size: 8px; }
  .report-heatmap { overflow-x: auto; padding-bottom: 6px; }
  .heatmap-header, .heatmap-row { min-width: 420px; }
  .report-danger-wrap { width: min(100% - 28px, 820px); }
  .reanalyze-panel { align-items: stretch; flex-direction: column; }
  .sorry-header, .sorry-main, .sorry-footer { width: min(100% - 28px, 680px); }
  .sorry-header { padding: 20px 0; }
  .sorry-main { padding: 12px 0 34px; }
  .sorry-card {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 24px;
    border-radius: 22px;
  }
  .sorry-visual { width: min(190px, 62vw); }
  .sorry-copy { text-align: center; }
  .sorry-lead br { display: none; }
  .sorry-actions { flex-direction: column; }
  .sorry-actions .button { width: 100%; }
  .sorry-note { text-align: left; }
  .sorry-footer { align-items: flex-start; flex-direction: column; padding-bottom: 24px; }
}

/* 2026-10-06 9項目構成：同じ項目の続き（小見出し）・02 血糖カーブ・低血糖の注意書き */
.editorial-section.has-sub { border-bottom: none; padding-bottom: 8px; }
.editorial-section.is-sub { padding-top: 8px; }
.editorial-subtitle { font-size: 17px; border-left: 3px solid #e60020; padding-left: 10px; margin: 6px 0 10px; }
.report-curve { margin-top: 14px; border: 1px solid var(--report-line); border-radius: 12px; padding: 10px; background: #fff; }
.report-curve svg { width: 100%; height: 220px; display: block; }
.curve-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 11px; color: #574c47; }
.curve-legend span { display: inline-flex; align-items: center; gap: 4px; }
.curve-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.hypo-caveat { margin: 18px 0 4px; background: #fff6e9; border: 1px solid #f0d9a8; border-left: 4px solid #e0902e; border-radius: 12px; padding: 13px 16px; color: #6b4e1e; font-size: 13.5px; line-height: 1.8; }
.hypo-caveat strong { color: #b5721a; }
.hypo-caveat p { margin: 4px 0 0; }
