.dashboard-period{position:relative;max-width:100%;--period-accent:#92c5ff;--period-edge:#528dc8;--period-surface:#151e2b;--period-ink:#f0f6ff;--period-muted:#b3c3d8;--period-active:#223c59;z-index:30}
.dashboard-period-trigger{display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 15px;border:1px solid var(--period-edge);border-radius:16px;background:linear-gradient(120deg,#203c5c,#192c45);color:var(--period-ink);text-align:left;cursor:pointer;font:inherit;box-shadow:inset 0 1px 0 #ffffff0b;transition:background .18s,border-color .18s,box-shadow .18s}
.dashboard-period-trigger>svg{width:21px;height:21px;flex:none;color:var(--period-accent)}
.dashboard-period-trigger .period-chevron{width:16px;height:16px;transition:transform .18s}
.dashboard-period-trigger[aria-expanded=true] .period-chevron{transform:rotate(180deg)}
.dashboard-period-trigger span{display:grid;gap:3px}.dashboard-period-trigger strong{font-size:13px;font-weight:600;letter-spacing:.01em;white-space:nowrap;font-variant-numeric:tabular-nums}.dashboard-period-trigger small{font-size:10px;color:var(--period-muted)}
.dashboard-period-trigger:hover{border-color:var(--period-accent);box-shadow:0 0 0 3px #75acff12}.dashboard-period-trigger:focus-visible,.dashboard-period-options button:focus-visible{outline:2px solid var(--period-accent);outline-offset:3px}
.dashboard-period-menu{position:absolute;right:0;top:calc(100% + 8px);width:310px;max-width:calc(100vw - 32px);border:1px solid var(--period-edge);border-radius:18px;background:var(--period-surface);color:var(--period-ink);padding:10px 7px 0;box-shadow:0 18px 50px #0007;overflow:hidden;animation:period-open .16s ease-out}
.dashboard-period-menu[hidden]{display:none}.dashboard-period-menu h2{font-size:15px;line-height:1.4;font-weight:600;padding:9px 15px 14px;margin:0;color:var(--period-ink)}
.dashboard-period-options button{position:relative;display:grid;gap:5px;width:100%;min-height:62px;text-align:left;padding:12px 42px 12px 15px;border:0;border-radius:10px;background:transparent;color:var(--period-ink);font:inherit;cursor:pointer}.dashboard-period-options button>span{font-size:14px}.dashboard-period-options small{font-size:11px;font-variant-numeric:tabular-nums;color:var(--period-muted)}.dashboard-period-options svg{position:absolute;right:14px;top:23px;width:17px;height:17px;color:var(--period-accent);opacity:0}.dashboard-period-options button[aria-pressed=true],.dashboard-period-options button:hover{background:var(--period-active)}.dashboard-period-options button[aria-pressed=true] svg{opacity:1}.dashboard-period-menu p{font-size:10px;color:var(--period-muted);padding:14px 15px;margin:8px -7px 0;border-top:1px solid #7c9fc22e}
html[data-theme=light] .dashboard-period{--period-accent:#216de0;--period-edge:#83b5f5;--period-surface:#fff;--period-ink:#163459;--period-muted:#536b88;--period-active:#e8f3ff}html[data-theme=light] .dashboard-period-trigger{background:#d9ecff;color:var(--period-ink)}html[data-theme=light] .dashboard-period-menu{box-shadow:0 16px 40px #16345924}
@keyframes period-open{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.heading-controls{flex-wrap:wrap;gap:10px}.dashboard-period-trigger{padding:10px 12px;gap:9px}.dashboard-period-trigger strong{font-size:12px}.dashboard-period-menu{right:auto;left:0}}
@media(prefers-reduced-motion:reduce){.dashboard-period-menu{animation:none}.dashboard-period-trigger,.dashboard-period-trigger .period-chevron{transition:none}}
[data-count-value]{font-variant-numeric:tabular-nums}

.dashboard-period-menu{max-height:min(70vh,460px);overflow-y:auto;overscroll-behavior:contain}
body[data-demo-workspace] .demo-banner{gap:12px;flex-wrap:wrap}body[data-demo-workspace] .demo-banner p{flex:1 1 320px}body[data-demo-workspace] .demo-banner a{min-height:36px;display:inline-flex;align-items:center;white-space:nowrap}
