.moon-size-dashboard { width: 100%; max-width: none; padding: 20px 26px 32px; color: var(--home-ink); container-type: inline-size; }
.moon-size-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.moon-size-dashboard svg:not(#moon-size-history-chart) { fill: none; stroke: currentColor; stroke-width: 1.8; }
.moon-size-dashboard .planet-size-header { display: flex; align-items: flex-start; gap: 18px; max-width: none; margin: 0 0 22px; text-align: left; }
.moon-size-dashboard h1 { margin: 0 0 12px; font: 700 clamp(27px,2.7vw,36px)/1.2 var(--home-serif); }
.moon-size-title h1::after { content: ''; display: block; width: 64px; height: 3px; margin-top: 12px; background: var(--home-blue); }
.moon-size-dashboard h2 { margin: 0 0 9px; font: 700 24px/1.25 var(--home-serif); }
.moon-size-dashboard p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; }
.moon-size-dashboard .planet-size-intro { max-width: 850px; }
.moon-size-dashboard .moon-size-period { margin-bottom: 0; color: var(--home-muted); font-size: 12px; }
.moon-size-heading-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; background: var(--home-soft); color: var(--home-blue); }
.moon-size-heading-icon svg { width: 28px; height: 28px; }
.moon-size-dashboard :is(.planet-size-panel,.moon-size-comparison,.moon-size-full-moons,.planet-size-timeline) { margin: 0 0 16px; padding: 18px 20px; border: 1px solid var(--home-line); border-radius: 17px; background: var(--home-paper); box-shadow: 0 2px 7px #10294c09; }
.moon-size-dashboard .planet-size-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: center; }
.moon-size-date-control { display: flex; align-items: center; gap: 10px; width: min(100%,290px); padding: 5px 11px; border: 1px solid var(--home-line); border-radius: 12px; color: var(--home-blue); }
.moon-size-explore-title { display: flex; align-items: center; gap: 10px; }
.moon-size-explore-title svg { width: 26px; height: 26px; color: var(--home-blue); }
.moon-size-date-control svg { width: 21px; height: 21px; flex: 0 0 21px; }
.moon-size-date-control input { width: 100%; min-width: 0; min-height: 30px; border: 0; outline: 0; background: transparent; color: var(--home-ink); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; }
.moon-size-date-control:focus-within { outline: 2px solid var(--home-blue); outline-offset: 2px; }
.moon-size-dashboard .planet-size-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 16px 0 0; }
.moon-size-dashboard .planet-size-stats > div { display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 3px 10px; align-content: center; min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--home-soft); }
.moon-size-dashboard .planet-size-stats svg { grid-row: 1/3; width: 24px; height: 24px; align-self: center; color: var(--home-blue); }
.moon-size-dashboard .planet-size-stats dt { grid-column: 2; font-size: 12px; color: var(--home-ink); }
.moon-size-dashboard .planet-size-stats dd { grid-column: 2; margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.moon-size-dashboard .planet-size-visual { position: relative; min-width: 0; overflow: hidden; border-radius: 14px; background: #050b18; color: #fff; }
.moon-size-dashboard #moon-size-date { position: absolute; top: 14px; left: 8px; right: 8px; z-index: 1; font-size: 14px; pointer-events: none; }
.moon-size-dashboard .moon-size-interactive canvas { display: block; width: 100%; height: auto; max-width: none; margin: 0; border: 0; border-radius: 0; }
.moon-size-comparison > header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 16px; margin-bottom: 12px; }
.moon-size-comparison > header :is(h2,p) { margin: 0; }
.moon-size-comparison > header p { color: var(--home-muted); font-size: 13px; }
.moon-size-dashboard .planet-size-events { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; --moon-disk-base: 100px; }
.moon-size-dashboard .planet-size-event-card { padding: 10px; gap: 4px; background: var(--home-paper); border: 1px solid var(--home-line); border-radius: 9px; box-shadow: none; }
.moon-size-dashboard .planet-size-event-card--current { background: var(--home-soft); border-color: var(--home-blue); }
.moon-size-dashboard .planet-size-event-icon { height: 106px; }
.moon-size-dashboard .planet-size-event-icon::after { border-width: 1px; opacity: .55; }
.moon-size-dashboard .planet-size-event-card > span:not(.planet-size-event-icon) { font-size: 12px; font-weight: 700; letter-spacing: 0; }
.moon-size-dashboard .planet-size-event-card--current > span:not(.planet-size-event-icon) { color: var(--home-blue); }
.moon-size-dashboard .planet-size-event-card time { font-size: 13px; min-height: 1.3em; color: var(--home-ink); }
.moon-size-dashboard .planet-size-event-card b { font-size: 21px; }
.moon-size-dashboard .moon-size-reference-legend { margin: 10px 0 0; font-size: 12px; color: var(--home-muted); }
.moon-size-dashboard .moon-size-ring-legend { color: var(--home-muted); font-size: 12px; }
.moon-size-section-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.moon-size-section-heading h2 { margin-bottom: 7px; }
.moon-size-section-heading p { margin-bottom: 0; }
.moon-size-dashboard .moon-size-full-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.moon-size-full-groups > div { min-width: 0; overflow: hidden; border: 1px solid var(--home-line); border-radius: 11px; }
.moon-size-dashboard .moon-size-full-groups h3 { margin: 0; padding: 8px 12px; background: #fff1d5; color: #684716; font: inherit; font-size: 14px; font-weight: 650; line-height: 1.4; }
.moon-size-dashboard .moon-size-micro-group h3 { background: #e7edff; color: #233b87; }
.moon-size-dashboard .moon-size-full-list { display: block; overflow-x: auto; }
.moon-size-full-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.moon-size-dashboard .moon-size-full-card { display: table-row; padding: 0; border: 0; border-radius: 0; background: transparent; }
.moon-size-full-table td { padding: 7px 10px; border-bottom: 1px solid var(--home-line); white-space: nowrap; }
.moon-size-full-table tr:last-child td { border-bottom: 0; }
.moon-size-full-table td:not(:first-child) { text-align: right; }
.moon-size-full-table time { font-size: 13px; font-weight: 400; }
.moon-size-full-table strong { font-size: 14px; }
.moon-size-dashboard .moon-size-largest-full { margin: 12px 0 0; padding: 0; border: 0; background: transparent; color: var(--home-muted); font-size: 12px; }
.moon-size-dashboard .planet-size-timeline { display: grid; grid-template-columns: minmax(180px,.85fr) minmax(260px,1.15fr) minmax(300px,1.2fr); align-items: start; gap: 18px; }
.moon-size-timeline-copy .moon-size-heading-icon { width: 40px; height: 40px; flex-basis: 40px; }
.moon-size-timeline-copy .moon-size-section-heading { gap: 12px; }
.moon-size-timeline-copy h2 { font-size: 22px; }
.moon-size-timeline-copy p { font-size: 13px; }
.moon-size-chart { min-width: 0; }
.moon-size-chart-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin: 2px 0 8px; font-size: 11px; }
.moon-size-chart-legend span::before { content: ''; display: inline-block; width: 16px; margin-right: 5px; border-top: 2px solid #f58a21; vertical-align: middle; }
.moon-size-chart-legend span:last-child::before { border-color: #1768e6; }
.moon-size-chart > svg { display: block; width: 100%; height: auto; overflow: visible; font-family: inherit; }
.moon-size-chart-grid { stroke: var(--home-line); stroke-width: 1; }
.moon-size-chart-size,.moon-size-chart-distance { fill: none; stroke: #f58a21; stroke-width: 2.5; stroke-linejoin: round; }
.moon-size-chart-distance { stroke: #1768e6; }
.moon-size-chart-tick { fill: var(--home-muted); font-size: 13px; }
.moon-size-chart-tick-size { fill: #df770e; }
.moon-size-chart-tick-distance { fill: #1768e6; }
.moon-size-chart-selected { fill: #f58a21; stroke: var(--home-paper); stroke-width: 2; }
.moon-size-chart-selected-distance { fill: #1768e6; }
.moon-size-table-preview { min-width: 0; }
.moon-size-dashboard .planet-size-table-wrap { border: 0; border-radius: 0; }
.moon-size-dashboard .planet-size-table-wrap table { min-width: 0; font-size: 12px; }
.moon-size-dashboard .planet-size-table-wrap :is(th,td) { padding: 7px 6px; font-size: 12px; }
.moon-size-dashboard .planet-size-table-wrap th { background: var(--home-soft); font-size: 10px; white-space: normal; }
.moon-size-table-preview[data-expanded="false"] tbody tr:nth-child(n+5),.moon-size-table-preview[data-expanded="false"] :is(th,td):nth-child(5),.moon-size-table-preview[data-expanded="false"] .moon-size-table-guide { display: none; }
.moon-size-table-preview[data-expanded="false"] .moon-size-year-badge { font-size: 10px; }
.moon-size-table-preview[data-expanded="true"] { grid-column: 1/-1; }
.moon-size-table-preview[data-expanded="true"] .planet-size-table-wrap { max-height: 480px; overflow: auto; }
.moon-size-table-preview[data-expanded="true"] .planet-size-table-wrap table { min-width: 650px; }
.moon-size-table-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 7px 12px; margin-top: 10px; border: 1px solid transparent; border-radius: 11px; background: var(--home-soft); color: var(--home-blue); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.moon-size-dashboard button:focus-visible { outline: 2px solid var(--home-blue); outline-offset: 3px; }
.moon-size-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.home-night-mode .moon-size-full-groups h3 { background: var(--home-soft); color: var(--home-ink); }
@container (max-width: 1000px) { .moon-size-dashboard .planet-size-timeline { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .moon-size-timeline-copy { grid-column: 1/-1; } }
@container (max-width: 750px) { .moon-size-dashboard .planet-size-panel,.moon-size-dashboard .moon-size-full-groups { grid-template-columns: minmax(0,1fr); } .moon-size-dashboard .planet-size-visual { max-width: 600px; width: 100%; justify-self: center; } }
@container (max-width: 550px) {
 .moon-size-dashboard .planet-size-timeline { grid-template-columns: minmax(0,1fr); }
 .moon-size-dashboard :is(.planet-size-panel,.moon-size-comparison,.moon-size-full-moons,.planet-size-timeline) { padding: 16px 12px; }
 .moon-size-dashboard .planet-size-header { gap: 12px; }
 .moon-size-dashboard h2 { font-size: 22px; }
 .moon-size-dashboard .planet-size-stats dd { font-size: 16px; }
 .moon-size-dashboard .planet-size-event-card { padding: 8px 4px; }
 .moon-size-dashboard .planet-size-event-icon { height: 82px; }
 .moon-size-dashboard .planet-size-events { --moon-disk-base: 76px; gap: 6px; }
 .moon-size-dashboard .planet-size-event-card time { font-size: 11px; }
 .moon-size-dashboard .planet-size-event-card b { font-size: 18px; }
}
@media(max-width:650px) { .moon-size-dashboard { padding: 16px 12px; } }
