/* ============================================================
   TempoMail USA — Trio pages (Live Stats · Widget · Glossary)
   Built 2026-10-23 for the three Route::view pages whose views
   never existed (500s). Design System: pastel-glass, indigo
   #4f46e5 family, Jakarta. Pairs with ds-pages-v1.css (dsp-*).
   ============================================================ */

.dst-wrap { max-width: 1080px; margin: 0 auto; padding: 48px 20px 76px; }

/* ---------- Live Stats: KPI cards ---------- */
.dst-kpis {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    margin-bottom: 22px;
}
.dst-kpi {
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    backdrop-filter: blur(16px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 20px;
    padding: 20px 18px 16px;
    box-shadow: 0 14px 34px -18px rgba(76, 64, 180, .25);
}
html[data-theme="dark"] .dst-kpi {
    background: linear-gradient(150deg, rgba(23, 30, 48, .88), rgba(15, 20, 34, .84));
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .6);
}
.dst-kpi-ico {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    font-size: 16px; color: #4338ca; background: #e6e2ff; margin-bottom: 12px;
}
html[data-theme="dark"] .dst-kpi-ico { background: rgba(99, 102, 241, .25); color: #c7d2fe; }
.dst-kpi-num {
    font-size: 31px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05;
    color: var(--ink); font-variant-numeric: tabular-nums;
}
.dst-kpi-label { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-top: 4px; }
.dst-kpi-sub { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 2px; }

/* ---------- Breakdown bars ---------- */
.dst-bars { display: flex; flex-direction: column; gap: 18px; }
.dst-bar-head {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    font-size: 13.5px; margin-bottom: 7px;
}
.dst-bar-head strong { color: var(--ink); font-weight: 700; }
.dst-bar-head span { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dst-bar {
    height: 10px; border-radius: 999px; overflow: hidden;
    background: rgba(79, 70, 229, .12); display: flex;
}
html[data-theme="dark"] .dst-bar { background: rgba(255, 255, 255, .09); }
.dst-bar-fill { height: 100%; background: linear-gradient(90deg, #6366f1, #4338ca); }
.dst-bar-fill.alt { background: linear-gradient(90deg, #a78bfa, #7c3aed); }
.dst-bar-fill.gold { background: linear-gradient(90deg, #f59e0b, #d97706); }

/* ---------- Widget: snippet cards ---------- */
.dst-snips { display: flex; flex-direction: column; gap: 22px; }
.dst-snip-preview {
    border: 1px dashed rgba(79, 70, 229, .35); border-radius: 16px;
    padding: 20px; display: flex; align-items: center; justify-content: center;
    background: rgba(79, 70, 229, .04); margin-bottom: 12px; text-align: center;
}
html[data-theme="dark"] .dst-snip-preview { background: rgba(99, 102, 241, .08); }
.dst-code {
    position: relative; background: #0f172a; border-radius: 16px;
    padding: 16px 18px; overflow-x: auto; margin: 0;
}
.dst-code code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.8px; line-height: 1.65; color: #e2e8f0; white-space: pre;
}
.dst-copy {
    min-height: 44px; margin-top: 12px;
    display: inline-flex; align-items: center; gap: 8px;
}

/* ---------- Glossary ---------- */
.dst-search {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid var(--ds-line); border-radius: 16px;
    padding: 0 16px; min-height: 54px; margin-bottom: 18px;
}
html[data-theme="dark"] .dst-search { background: rgba(23, 30, 48, .85); }
.dst-search i { color: #4f46e5; flex: none; }
.dst-search input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    font-size: 15px; min-height: 52px;
    color: var(--ink); -webkit-text-fill-color: var(--ink); caret-color: #4f46e5;
}
.dst-search input::placeholder { color: var(--muted); -webkit-text-fill-color: var(--muted); }
.dst-alpha { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.dst-letter-link {
    min-width: 44px; min-height: 44px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; font-weight: 800; font-size: 14px; text-decoration: none;
    color: #4338ca; background: rgba(79, 70, 229, .08); border: 1px solid rgba(79, 70, 229, .16);
}
html[data-theme="dark"] .dst-letter-link { color: #c7d2fe; background: rgba(99, 102, 241, .14); }
.dst-letter {
    font-size: 15px; font-weight: 800; color: var(--muted);
    letter-spacing: .14em; margin: 30px 0 12px; text-transform: uppercase;
}
.dst-gloss-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dst-term {
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    backdrop-filter: blur(16px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 18px; padding: 20px 22px;
    box-shadow: 0 12px 30px -18px rgba(76, 64, 180, .22);
}
html[data-theme="dark"] .dst-term {
    background: linear-gradient(150deg, rgba(23, 30, 48, .88), rgba(15, 20, 34, .84));
    border-color: rgba(255, 255, 255, .14);
}
.dst-term h3 { font-size: 16.5px; font-weight: 800; color: var(--ink); margin: 0 0 6px; letter-spacing: -.01em; }
.dst-term p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }
.dst-term p strong { color: var(--ink); }
.dst-count { font-size: 13px; color: var(--muted); font-weight: 600; margin: 4px 0 0; }
.dst-empty {
    text-align: center; padding: 44px 24px;
    border: 1px dashed rgba(79, 70, 229, .35); border-radius: 20px;
    color: var(--muted); font-size: 14.5px; line-height: 1.65;
}
.dst-empty strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* ---------- Responsive (390px phones) ---------- */
@media (max-width: 720px) {
    .dst-gloss-grid { grid-template-columns: 1fr; }
    .dst-kpis { grid-template-columns: 1fr 1fr; }
    .dst-wrap { padding: 36px 16px 60px; }
}
@media (prefers-reduced-motion: reduce) {
    .dst-bar-fill { transition: none; }
}
