.period-select select{min-width:150px;background:var(--card);font-weight:600;border-radius:12px;padding:9px 28px 9px 12px}.period-controls{display:flex;align-items:center;gap:8px}.period-new{white-space:nowrap;padding:8px 10px}.period-dialog{width:min(440px,calc(100vw - 32px));padding:25px;border:1px solid var(--line);border-radius:20px;background:var(--card);color:var(--ink)}.period-dialog::backdrop{background:#0007;backdrop-filter:blur(3px)}.period-dialog-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.period-dialog-title h2{font-size:23px;margin:0}.period-dialog label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;margin:20px 0}.period-dialog select,.period-dialog input{padding:11px;width:100%}.period-copy-note{font-size:12px;line-height:1.7;background:var(--bg);padding:15px;border-radius:12px;color:var(--mute)}.period-dialog .actions{justify-content:flex-end;margin-top:20px}.period-history-intro{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:22px}.period-history-intro .sub{max-width:650px}.period-history-intro button{white-space:nowrap}.period-history-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:18px}.period-history-card.current{border-color:var(--pri)}.period-card-heading{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:22px}.period-card-heading h2{font-size:18px;margin:0}.period-card-heading .pill{font-size:10px;white-space:nowrap}.period-balance{font-size:30px;letter-spacing:-1px;font-weight:700;margin:8px 0 20px}.period-history-card small{color:var(--mute)}.period-history-card dl{margin:0}.period-history-card dl>div{display:flex;justify-content:space-between;gap:15px;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px}.period-history-card dt{color:var(--mute)}.period-history-card dd{margin:0;font-weight:600}.period-history-card .ghost{width:100%;margin-top:12px}.period-history-grid+.help{margin-top:18px}.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}@media(max-width:900px){.period-controls{margin-left:auto}}@media(max-width:550px){.period-controls{width:100%;margin:0;justify-content:space-between}.period-select{flex:1}.period-select select{width:100%}.period-history-intro{align-items:flex-start;flex-direction:column}}
.period-history-card .ghost{box-sizing:border-box}.period-history-card{min-width:0}
.period-select{min-width:0}.period-select select{max-width:100%}.period-card-heading{flex-wrap:wrap}
@media(max-width:580px){.period-select select{min-width:0}.period-controls{min-width:0}}
