/* Khazana v9 round 11: dashboard with the MacBook video downloader on top. */
.ds9 { display: grid; gap: 14px; }
.ds9-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .ds9-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ds9-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ds9-top h2 { margin: 0 0 4px; font-size: 1.12rem; }
.ds9-src { display: block; font-size: .78rem; color: var(--muted, #6b6b6b); }
.ds9-src.live { color: var(--good, #1f8a4c); font-weight: 600; }
.ds9-dl { border: 1.5px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.ds9-dl.st-off { border-color: #d92d20; }
.ds9-dl.st-some { border-color: #d97706; }
.ds9-sum { display: flex; align-items: center; gap: 14px; margin: 14px 0 10px; }
.ds9-sum b { display: block; }
.ds9-sum small { color: var(--muted, #6b6b6b); }
.ds9-big { font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--brand-text); font-variant-numeric: tabular-nums; }
.ds9-big small { font-size: 1.1rem; color: var(--muted, #6b6b6b); font-weight: 600; }
.ds9-warn { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #d92d20 12%, transparent); font-size: .88rem; }

.dv9-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dv9 { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 6%, transparent); }
.dv9-main, .dv9-side { min-width: 0; display: grid; gap: 2px; }
.dv9-main small, .dv9-side small { font-size: .76rem; color: var(--muted, #6b6b6b); overflow-wrap: anywhere; }
.dv9-side { text-align: right; }
.dv9-err { color: #b42318 !important; }
:root[data-theme="dark"] .dv9-err { color: #ff8a80 !important; }
.dv9-st { font-weight: 700; font-size: .85rem; }
.dv9.on .dv9-st { color: #15803d; }
.dv9.off .dv9-st { color: #b42318; }
:root[data-theme="dark"] .dv9.on .dv9-st { color: #4ade80; }
:root[data-theme="dark"] .dv9.off .dv9-st { color: #ff8a80; }
.dv9-dot { width: 12px; height: 12px; border-radius: 50%; background: #9ca3af; flex: none; }
.dv9.on .dv9-dot, .dl9.st-all .dv9-dot { background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); animation: dv9-pulse 2s infinite; }
.dv9.off .dv9-dot, .dl9.st-off .dv9-dot { background: #ef4444; }
.dl9.st-some .dv9-dot { background: #f59e0b; }
@keyframes dv9-pulse { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@media (max-width: 420px) { .dv9 { grid-template-columns: auto 1fr; } .dv9-side { grid-column: 2; text-align: left; } }

.sy9 { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.sy9 li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent); }
.sy9 li:last-child { border-bottom: 0; }
.sy9 small { display: block; font-size: .76rem; color: var(--muted, #6b6b6b); }
.sy9 em { font-style: normal; font-weight: 700; font-size: .78rem; padding: 3px 9px; border-radius: 999px; }
.sy9-on em { background: rgba(34, 197, 94, .16); color: #15803d; }
.sy9-off em { background: rgba(239, 68, 68, .14); color: #b42318; }
.sy9-warn em { background: rgba(245, 158, 11, .18); color: #92400e; }
.sy9-wait em, .sy9-na em { background: color-mix(in srgb, currentColor 8%, transparent); }
:root[data-theme="dark"] .sy9-on em { color: #4ade80; }
:root[data-theme="dark"] .sy9-off em { color: #ff8a80; }
:root[data-theme="dark"] .sy9-warn em { color: #fbbf24; }

.nm9 { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; margin-top: 8px; }
.nm9 div { padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 7%, transparent); }
.nm9 b { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.nm9 small { color: var(--muted, #6b6b6b); }

.fb9 { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; gap: 8px; }
.fb9 li { display: grid; grid-template-columns: minmax(70px, 34%) 1fr auto; align-items: center; gap: 10px; font-size: .88rem; }
.fb9 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb9 i { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--brand) 14%, transparent); position: relative; overflow: hidden; }
.fb9 i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--brand); }
.fb9 b { font-variant-numeric: tabular-nums; }

/* strip on Home */
.dl9 { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin: 0 0 12px; border-radius: 14px; text-decoration: none; color: inherit;
  background: color-mix(in srgb, var(--brand) 8%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); font-size: .86rem; flex-wrap: wrap; }
.dl9 span:not(.dv9-dot) { color: var(--muted, #6b6b6b); }
.dl9 em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--brand-text); }
.dl9:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .dv9-dot { animation: none !important; } }
