/* Scoped SGP calendar, respects existing dark/light site colors */
.sgp-calendar{min-width:0}.sgp-calendar .sectionhead{gap:12px;align-items:center}.sgpcal-lead{margin:8px 0 15px;font-size:13px;opacity:.82}.sgpcal-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 16px}.sgpcal-nav strong{font-size:16px;text-align:center}.sgpcal-nav button{width:40px;height:36px;border-radius:11px;border:1px solid #55728d;background:#17314a;color:#fff;font-size:26px;cursor:pointer}.sgpcal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.sgpcal-days{margin-bottom:7px}.sgpcal-days span{text-align:center;font-size:12px;font-weight:700;opacity:.82;padding:8px 0;background:rgba(105,144,181,.13);border-radius:7px}.sgpcal-date{min-width:0;height:39px;border:1px solid rgba(113,152,190,.25);border-radius:9px;background:rgba(94,137,180,.12);color:inherit;font-weight:700;cursor:pointer}.sgpcal-date.has-result{border-color:#2088f5;box-shadow:inset 0 -2px #2088f5}.sgpcal-date.selected{background:#2088f5;color:#fff;border-color:#7bc0ff;box-shadow:0 0 0 2px rgba(32,136,245,.18)}.sgpcal-date:focus-visible,.sgpcal-nav button:focus-visible{outline:2px solid #84caff;outline-offset:2px}.sgpcal-detail{margin-top:16px;border:1px solid rgba(32,136,245,.55);border-radius:12px;padding:14px;background:rgba(101,130,162,.12);font-size:13px}.sgpcal-detail>a{display:inline-block;color:#82c7ff;font-weight:700;margin-top:9px}.sgpcal-result{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px}.sgpcal-result span{display:flex;flex-direction:column;gap:2px;min-width:55px}.sgpcal-result b{font-size:11px;opacity:.8}.sgpcal-result strong{font-size:21px;color:#82c7ff}.sgpcal-note{font-size:11px;opacity:.72;margin:12px 0 0}@media(max-width:520px){.sgpcal-grid{gap:4px}.sgpcal-date{height:36px;font-size:12px}.sgpcal-nav strong{font-size:14px}.sgpcal-days span{font-size:11px}}

/* Two source cards in calendar detail */
.sgpcal-sources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.sgpcal-source{min-width:0;border:1px solid rgba(32,136,245,.35);border-radius:10px;padding:12px;background:rgba(32,136,245,.06)}.sgpcal-source-title{display:block;font-size:13px;color:#8bcaff}.sgpcal-source .sgpcal-result{gap:9px}.sgpcal-source .sgpcal-result span{min-width:38px}.sgpcal-source .sgpcal-result strong{font-size:18px}.sgpcal-source>a{display:inline-block;margin-top:10px;font-size:12px;color:#82c7ff;font-weight:700}.sgpcal-missing{font-size:12px;opacity:.78;line-height:1.5;margin:12px 0}.sgpcal-date.has-result{border-color:#2088f5}@media(max-width:640px){.sgpcal-sources{grid-template-columns:1fr}}

/* V3: history above calendar; consistent spacing, no empty right-column space */
@media(min-width:781px){.dashboard-grid{align-items:start}.dashboard-grid .dashboard-main,.dashboard-grid .dashboard-side{min-width:0}.dashboard-grid .dashboard-side{align-self:start}}
.dashboard-side>.history,.dashboard-side>.sgp-calendar{width:100%;min-width:0;margin:0;box-sizing:border-box}
.dashboard-side>.history .sectionhead{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.dashboard-side>.history .sectionhead h2{font-size:clamp(15px,1.35vw,20px);line-height:1.35;margin:0}
.dashboard-side>.history .tablewrap{max-width:100%;overflow-x:auto}
.dashboard-side>.history table{width:100%;min-width:0;table-layout:auto}
.dashboard-side>.history th,.dashboard-side>.history td{padding:10px 7px;white-space:nowrap;font-size:clamp(11px,.85vw,13px)}
.dashboard-side>.history td:first-child,.dashboard-side>.history th:first-child{white-space:normal;min-width:125px}
.dashboard-side>.sgp-calendar .sgpcal-grid{width:100%;min-width:0}
.dashboard-side>.sgp-calendar .sgpcal-date{width:100%}
@media(max-width:780px){.dashboard-side>.history th,.dashboard-side>.history td{font-size:12px}.dashboard-side>.history td:first-child{min-width:110px}}
