.admin-home { padding: 22px 30px 36px; color: #111; }
.home-proposals-link { margin-top: 24px; padding: 10px 14px; border: 1px solid #dedede; border-radius: 8px; color: #52616b; font-size: 13px; }
.home-context { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; font-size: 13px; color: #757575; }
.home-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.home-card { border: 1px solid #e6e6e6; border-radius: 20px; padding: 21px 18px 18px; min-width: 0; }
.home-card h2 { font-size: 19px; font-weight: 400; line-height: 1.35; margin: 0 0 8px; }
.home-metric { font-size: 30px; font-weight: 700; line-height: 1.2; margin: 0 0 10px; letter-spacing: .5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-metric small { font-size: 13px; font-weight: 400; letter-spacing: 0; }
.home-detail { font-size: 15px; color: #747474; margin: 0; }
.home-teal { color: #008f95; }
.home-tabs { display: flex; gap: 30px; margin-top: 46px; border-bottom: 5px solid #f1f1f1; }
.home-tabs button { position: relative; padding: 9px 0 14px; font-size: 19px; font-weight: 700; }
.home-tabs button[aria-selected='true']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; border-radius: 3px; background: #303030; }
.home-chart-panel { padding-top: 44px; }
.home-chart-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.home-chart-heading h1 { font-size: 32px; line-height: 1.25; margin: 0; }
.home-chart-heading > span { font-size: 14px; color: #747474; }
.trend-chart { min-width: 0; }
.trend-help { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.trend-note { color: #747474; font-size: 12px; line-height: 1.5; margin: 12px 0; }
.trend-plot { position: relative; width: 100%; height: clamp(280px, 39vh, 470px); }
.trend-svg { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.trend-svg text { font: 13px 'Trebuchet MS', Arial, sans-serif; fill: #444; }
.trend-svg .trend-last-tag text { fill: #fff; font-weight: 700; }
.trend-point { transition: r .1s; }
.trend-point.is-active { r: 6; stroke-width: 2; }
.trend-tooltip { position: absolute; z-index: 1; max-width: calc(100% - 8px); padding: 12px 15px; background: #fff; border: 1px solid #dbe4f0; border-radius: 8px; box-shadow: 0 3px 14px #18284514; font-size: 14px; line-height: 1.5; pointer-events: none; }
.trend-footer, .trend-periods, .trend-tools { display: flex; align-items: center; gap: 8px; }
.trend-footer { justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
.trend-footer button, .trend-close { min-height: 40px; padding: 9px 14px; border-radius: 8px; font-size: 14px; }
.trend-tools button, .trend-close { border: 1px solid #e4e7ec; }
.trend-footer button:hover, .trend-close:hover { background: #f6f6f6; }
.trend-periods button[aria-pressed='true'], .trend-tools button[aria-pressed='true'] { background: #f1f1f1; font-weight: 700; }
.trend-table-wrap { overflow: auto; max-height: 470px; margin-top: 20px; }
.trend-table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.trend-table-wrap caption { text-align: left; padding: 0 0 16px; color: #666; }
.trend-table-wrap th, .trend-table-wrap td { padding: 12px 16px; border-bottom: 1px solid #ececec; text-align: left; font-weight: 400; }
.trend-table-wrap thead th { font-weight: 700; background: #f8f9fa; }
.trend-table-wrap th:last-child, .trend-table-wrap td { text-align: right; font-variant-numeric: tabular-nums; }
.trend-dialog { width: min(1500px, calc(100vw - 48px)); max-width: none; max-height: calc(100vh - 64px); padding: 28px; border: 1px solid #e4e7ec; border-radius: 18px; color: #111; }
.trend-dialog::backdrop { background: #18202b66; }
.trend-dialog .trend-plot { height: clamp(220px, 52vh, 680px); }
.trend-dialog .home-chart-heading { flex-wrap: wrap; }
.trend-close { margin-left: auto; }
.trend-chart [hidden] { display: none !important; }
@media (max-width: 520px) { .trend-dialog { width: calc(100vw - 20px); padding: 16px; } .trend-tools { flex-wrap: wrap; } }
@media (max-width: 1100px) { .home-cards { gap: 16px; } .home-card h2 { font-size: 16px; } .home-metric { font-size: 26px; } .home-detail { font-size: 13px; } }
@media (max-width: 900px) { .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-chart-heading { align-items: flex-start; flex-direction: column; gap: 10px; } .home-chart-heading h1 { font-size: 28px; } }
@media (max-width: 520px) { .admin-home { padding: 20px 16px; } .home-context { flex-direction: column; gap: 6px; } .home-cards { grid-template-columns: 1fr; } .home-tabs { gap: 24px; margin-top: 28px; } .home-tabs button { font-size: 17px; } }
