.screen-body { min-height: 100svh; background: linear-gradient(145deg, #F7FAFF, #FFF 55%, #F3F7FD); color: #18304F; }
.screen-header, .screen-main, .screen-footer { width: min(1380px, calc(100% - 72px)); margin-inline: auto; }
.screen-header { display: flex; justify-content: space-between; align-items: center; min-height: 78px; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid #DCE5F2; }
.screen-header .text-link { font-size: .82rem; }
.screen-main { padding-block: 38px 28px; }
.screen-heading { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.screen-heading h1 { margin: 0; max-width: none; font-size: clamp(2.7rem, 5.4vw, 4.4rem); line-height: .98; font-weight: 620; letter-spacing: -.065em; }
.screen-heading .eyebrow { margin-bottom: 15px; }
#screen-empty { margin: 15px 0 0; color: #667C98; font-size: .86rem; }
.screen-metrics { display: flex; gap: 42px; align-items: center; flex-shrink: 0; }
.screen-count { display: grid; gap: 4px; }
.screen-count > span { color: #647B9A; font-size: .81rem; }
.screen-count > strong { font-size: 4rem; font-weight: 600; letter-spacing: -.075em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.screen-count > small { color: #768BA4; font-size: .74rem; }
.screen-overall { display: grid; justify-items: center; gap: 3px; }
.screen-overall .score-ring { --ring-size: 120px; }
.screen-overall > span { color: #647B9A; font-size: .76rem; }
.screen-layout { display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 56px; align-items: start; }
.screen-dashboard { min-width: 0; padding-top: 24px; border-top: 1px solid #DCE5F2; }
.screen-chart-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 13px; }
.screen-chart-heading h2 { margin: 0; font-size: 1.28rem; font-weight: 620; letter-spacing: -.03em; }
.screen-chart-heading p { margin: 0; font-size: .76rem; color: #7286A1; }
.screen-dashboard .score-ring { --ring-size: clamp(105px, 12vw, 150px); }
.screen-dashboard .dimension-name { font-size: .85rem; }
.screen-dashboard .dimension-face { padding-bottom: 16px; }
.screen-detail { min-height: 141px; padding: 18px 0 0; margin-top: 15px; }
.screen-detail-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 7px; }
.screen-detail h3 { margin: 0; font-size: 1.1rem; font-weight: 620; }
.screen-detail strong { font-size: .9rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.screen-detail p { margin: 0 0 7px; color: #526B8D; font-size: .86rem; line-height: 1.5; }
#dimension-detail-meaning { color: #7286A1; font-size: .78rem; }
.screen-disclaimer { padding-top: 13px; margin: 12px 0 0; border-top: 1px solid #DFE7F2; color: #778BA6; font-size: .71rem; line-height: 1.5; }
.join-panel { padding: 24px 0 0 30px; border-top: 1px solid #DCE5F2; border-left: 1px solid #E1E8F3; }
.join-panel .eyebrow { margin-bottom: 15px; }
.join-qr { display: block; width: 168px; height: 168px; padding: 6px; border: 1px solid #D9E4F2; border-radius: 9px; background: #fff; }
.join-panel h2 { margin: 17px 0 8px; font-size: 1.2rem; font-weight: 600; line-height: 1.25; letter-spacing: -.035em; }
.join-panel > p:not(.eyebrow) { margin: 0 0 9px; color: #7187A3; font-size: .79rem; line-height: 1.6; }
.join-panel .text-link { font-size: .75rem; min-height: 36px; white-space: nowrap; }
.screen-footer { display: flex; justify-content: space-between; gap: 24px; padding-block: 17px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #DCE5F2; color: #7B8FA9; font-size: .7rem; }
.screen-status { padding: 12px 16px; margin: 0 0 18px; border-left: 2px solid #AA4343; background: #FFF0F0; color: #933232; font-size: .82rem; }
@media (min-width: 901px) and (max-height: 860px) {
  .screen-header { min-height: 64px; }
  .screen-main { padding-block: 26px 20px; }
  .screen-heading { margin-bottom: 24px; }
  .screen-heading h1 { font-size: 3.6rem; }
  .screen-dashboard .score-ring { --ring-size: 125px; }
  .screen-dashboard { padding-top: 18px; }
  .screen-detail { min-height: 120px; }
}
@media (max-width: 1050px) {
  .screen-layout { grid-template-columns: minmax(0, 1fr) 200px; gap: 28px; }
  .join-panel { padding-left: 20px; }
  .join-qr { width: 150px; height: 150px; }
  .screen-dashboard .dimension-name { font-size: .72rem; }
}
@media (max-width: 900px) {
  .screen-header, .screen-main, .screen-footer { width: min(720px, calc(100% - 40px)); }
  .screen-heading { align-items: start; }
  .screen-heading h1 { font-size: 3rem; }
  .screen-metrics { gap: 22px; }
  .screen-count > strong { font-size: 3rem; }
  .screen-overall .score-ring { --ring-size: 95px; }
  .screen-layout { grid-template-columns: 1fr; gap: 26px; }
  .screen-dashboard .score-ring { --ring-size: 130px; }
  .screen-dashboard .dimension-name { font-size: .8rem; }
  .join-panel { display: grid; grid-template-columns: 132px 1fr; gap: 5px 22px; padding: 22px 0 0; border-left: 0; }
  .join-panel .eyebrow { grid-column: 2; grid-row: 1; margin: 0; }
  .join-qr { grid-column: 1; grid-row: 1 / 5; width: 132px; height: 132px; }
  .join-panel h2 { grid-column: 2; margin: 0; font-size: 1.1rem; }
  .join-panel > p:not(.eyebrow) { grid-column: 2; margin: 0; }
  .join-panel .text-link { grid-column: 2; justify-self: start; }
  .screen-footer { font-size: .67rem; }
}
@media (max-width: 600px) {
  .screen-header, .screen-main, .screen-footer { width: calc(100% - 36px); }
  .screen-header { min-height: 64px; }
  .screen-header .text-link { font-size: .72rem; }
  .screen-header .brand { font-size: .72rem; }
  .screen-heading { flex-direction: column; gap: 25px; margin-bottom: 24px; }
  .screen-main { padding-block: 33px 26px; }
  .screen-heading h1 { font-size: clamp(2.6rem, 11vw, 3.6rem); }
  .screen-heading .eyebrow { font-size: .65rem; }
  .screen-metrics { width: 100%; justify-content: space-between; padding-top: 18px; border-top: 1px solid #DCE5F2; }
  .screen-count > strong { font-size: 3.5rem; }
  .screen-overall .score-ring { --ring-size: 100px; }
  .screen-chart-heading { display: block; }
  .screen-chart-heading h2 { font-size: 1.25rem; }
  .screen-chart-heading p { margin-top: 5px; }
  .screen-dashboard .score-ring { --ring-size: min(128px, 36vw); }
  .screen-detail { min-height: 0; }
  .screen-detail h3 { font-size: 1rem; }
  .screen-detail p { font-size: .8rem; }
  .screen-detail strong { white-space: nowrap; font-size: .82rem; }
  .screen-disclaimer { font-size: .69rem; }
  .join-panel { grid-template-columns: 102px 1fr; gap: 5px 15px; }
  .join-qr { width: 102px; height: 102px; }
  .join-panel h2 { font-size: 1rem; }
  .join-panel p { font-size: .72rem; }
  .join-panel .text-link { font-size: .7rem; white-space: normal; gap: 4px; }
  .screen-footer { flex-direction: column; gap: 8px; }
}
