.dashboard-shell { display: grid; grid-template-columns: 13.25rem minmax(0, 1fr); gap: 1.25rem; align-items: start; padding-block: clamp(1.1rem, 3vw, 2.7rem) 3.5rem; min-height: 70vh; }
.dash-sidebar { display: grid; position: sticky; top: .8rem; grid-template-rows: auto auto 1fr; min-height: 25rem; border: 1px solid #dce5f2; border-radius: 1rem; padding: .8rem; background: #fff; }
.dash-sidebar > strong { padding: .45rem .45rem .65rem; font-size: 1.02rem; }
.dash-sidebar nav, .dash-sidebar-footer { display: grid; gap: .2rem; }
.dash-sidebar nav a, .dash-sidebar-footer a { padding: .53rem .58rem; border-radius: .52rem; text-decoration: none; color: #354765; font-weight: 630; font-size: .93rem; }
.dash-sidebar nav a { display: flex; align-items: center; gap: .55rem; }
.dash-sidebar nav span { width: 1.3rem; color: #3a65c7; font-size: 1.18rem; text-align: center; line-height: 1; }
.dash-sidebar nav a:hover, .dash-sidebar-footer a:hover { background: #f2f6ff; }
.dash-sidebar nav a[aria-current] { color: #173c90; background: #eaf0ff; font-weight: 760; }
.dash-sidebar-footer { align-content: end; border-top: 1px solid var(--line); margin-top: 1.3rem; padding-top: .65rem; }
.dash-main { min-width: 0; }
.dash-head { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-end; margin-bottom: .95rem; }
.dash-head p { font-size: .95rem; margin-bottom: .2rem; }
.dash-head h1 { font-size: clamp(2.15rem, 4.65vw, 3.8rem); }
.dash-head-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: .65rem; }
.dash-pill { padding: .42rem .7rem; border-radius: .43rem; background: #e9efff; color: #26478b; font-size: .88rem; font-weight: 720; white-space: nowrap; }
.period { margin: 0; }
.period select { min-height: 2.4rem; margin-top: .16rem; }
.dash-notice { margin-bottom: 1.05rem; padding: .66rem .8rem; border: 1px solid #d9e5ff; background: #eef4ff; color: #324c80; border-radius: .55rem; }
.dash-panel, .dash-tile { background: #fff; border: 1px solid #dfe7f3; border-radius: .9rem; }
.dash-panel { padding: clamp(.85rem, 2.4vw, 1.35rem); margin-bottom: .9rem; min-width: 0; }
.dash-panel h2 { font-size: clamp(1.28rem, 2.23vw, 1.67rem); line-height: 1.2; margin-bottom: .45rem; }
.dash-panel p + form, .dash-panel h2 + label, .dash-panel > p + .field-pair { margin-top: .9rem; }
.dash-panel-head { display: flex; gap: .85rem; align-items: flex-start; justify-content: space-between; margin-bottom: .75rem; }
.dash-panel-head > a { white-space: nowrap; font-size: .92rem; }
.dash-panel-head p { font-size: .91rem; }
.dash-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; align-items: start; }
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); gap: .6rem; margin-bottom: .9rem; }
.dash-panel > .dash-tiles { margin-block: .85rem 0; }
.dash-tile { min-height: 6rem; padding: .75rem .84rem; }
.dash-tile p { font-size: .9rem; font-weight: 650; }
.dash-tile strong { display: block; font-size: clamp(1.25rem, 2.7vw, 2.03rem); letter-spacing: -.04em; line-height: 1.14; margin-block: .28rem .12rem; }
.dash-tile small { color: #465e87; font-size: .81rem; }
.dash-details { margin: .55rem 0 .85rem; }
.dash-details > div { display: flex; justify-content: space-between; align-items: baseline; gap: .7rem; padding: .43rem 0; border-top: 1px solid var(--line); }
.dash-details dd { margin: 0; color: var(--ink); text-align: right; font-weight: 700; }
.dash-details dt { color: #465570; }
.dash-chart-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: .23rem; min-height: 10.5rem; border-radius: .62rem; background: #f7f9ff; padding: .7rem .38rem .55rem; }
.dash-chart-bin { display: grid; grid-template-rows: 1.2rem 6.35rem auto; justify-items: center; gap: .2rem; font-size: .81rem; text-align: center; }
.dash-chart-bin progress { appearance: none; display: block; align-self: stretch; writing-mode: vertical-lr; direction: rtl; width: clamp(.75rem, 2vw, 1.55rem); height: 100%; border: 0; border-radius: .35rem; overflow: hidden; background: #edf2fc; }
.dash-chart-bin progress::-webkit-progress-bar { background: #e7eefb; }
.dash-chart-bin progress::-webkit-progress-value { background: #3163df; border-radius: .33rem; }
.dash-chart-bin progress::-moz-progress-bar { background: #3163df; border-radius: .33rem; }
.dash-chart-bin small { line-height: 1.1; font-size: .77rem; overflow-wrap: anywhere; color: #536689; }
.dash-table-wrap { position: relative; overflow-x: auto; }
.dash-table-wrap table { width: 100%; border-spacing: 0; text-align: left; min-width: 36.5rem; }
.dash-table-wrap th, .dash-table-wrap td { padding: .55rem .5rem; border-bottom: 1px solid #e8edf5; font-size: .9rem; }
.dash-table-wrap th { background: #f3f6fc; color: #374c71; }
.dash-table-wrap td small { display: block; color: #506181; font-size: .78rem; }
.dash-status { display: inline-flex; align-items: center; padding: .18rem .42rem; border-radius: .38rem; background: #edf2fb; color: #3c5379; font-size: .79rem; white-space: nowrap; font-weight: 700; }
.dash-status[data-status="new"] { color: #1b4ab3; background: #e7efff; }
.dash-status[data-status="won"] { color: #16634d; background: #ddf5eb; }
.dash-status[data-status="released"], .dash-status[data-status="offered"] { color: #725417; background: #fff2d6; }
.dash-detail-button { border: 1px solid #c7d7f3; background: #f2f6ff; color: #254c9d; border-radius: .42rem; padding: .26rem .46rem; font-weight: 680; }
.dash-detail-button:hover { background: #e1ebff; }
.dash-filters { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: .6rem; }
.dash-empty { background: #f6f8fc; color: #445777; padding: .75rem .8rem; border-radius: .55rem; }
.dash-billing-total { margin: .85rem 0 .45rem; font-size: 1.12rem; font-weight: 720; }
#dash-export[aria-disabled] { opacity: .58; }
.dash-help { font-size: .91rem; margin-top: .9rem; }
.dash-profile { max-width: 47rem; }
.dash-profile .button-group { margin-bottom: .35rem; }
.dash-dialog { border: 1px solid #dce4f2; border-radius: 1rem; max-width: min(calc(100% - 1.4rem), 38rem); width: 100%; color: var(--ink); padding: 1.1rem; }
.dash-dialog::backdrop { background: #14284a77; }
.dash-dialog-close { display: flex; justify-content: end; margin-bottom: .45rem; }
.dash-dialog h2 { font-size: 1.7rem; margin-bottom: .4rem; }
.dash-dialog p { margin-top: .7rem; }
.dash-dialog .button-group { margin-bottom: 0; }
#dash-access .button-group, #dash-calc button { margin-bottom: .5rem; }
@media (max-width: 905px) {
  .dashboard-shell { grid-template-columns: minmax(0,1fr); gap: .75rem; }
  .dash-sidebar { position: static; min-height: auto; gap: .2rem; }
  .dash-sidebar > strong { padding-bottom: .2rem; }
  .dash-sidebar nav, .dash-sidebar-footer { display: flex; flex-wrap: wrap; }
  .dash-sidebar-footer { margin-top: .15rem; padding-top: .24rem; }
}
@media (max-width: 690px) {
  .dash-columns, .dash-filters { grid-template-columns: minmax(0,1fr); }
  .dash-head { align-items: start; flex-direction: column; }
  .dash-head-actions { justify-content: start; }
  .dash-sidebar nav a { font-size: .85rem; padding: .4rem .45rem; gap: .25rem; }
  .dash-sidebar nav span { font-size: .9rem; width: .9rem; }
  .dash-chart-bin small { font-size: .74rem; }
}
@media (max-width: 420px) {
  .dash-profile .field-pair, #dash-calc .field-pair { grid-template-columns: 1fr; }
  .dash-panel-head { flex-wrap: wrap; }
}
