/* v1.7.0: event overview page, compact weekly war / tournament cards, delete tools, Legendary badges. Theme tokens only. */
.v170-hub { display: grid; gap: 14px; min-width: 0; }
.v170-hub__hero { display: grid; gap: 8px; padding: 16px; border-radius: 20px; border: 1px solid var(--outline-variant, rgba(128, 138, 156, .28)); background: linear-gradient(160deg, rgb(255 176 32 / .12), var(--surface-container, #171b23) 60%); min-width: 0; }
.v170-hub__hero h2 { margin: 0; font-size: 1.3rem; line-height: 1.25; overflow-wrap: anywhere; }
.v170-hub__hero .small { margin: 0; color: var(--on-surface-variant, #aeb8c7); }
.v170-hub__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.v170-chip { font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.v170-chip.is-type { background: rgb(255 176 32 / .18); color: var(--primary, #ffb020); }
.v170-chip.is-live, .v170-chip.is-ok { background: rgb(52 199 89 / .18); color: #3ddc84; }
.v170-chip.is-soon { background: rgb(96 165 250 / .18); color: #7cb8ff; }
.v170-chip.is-warn { background: rgb(255 159 10 / .18); color: #ffb84d; }
.v170-chip.is-muted { background: var(--surface-container-high, rgba(255, 255, 255, .06)); color: var(--on-surface-variant, #aeb8c7); }
.v170-hub__progress, .ph-event__bar { display: block; height: 6px; border-radius: 999px; background: var(--surface-container-high, rgba(255, 255, 255, .08)); overflow: hidden; }
.v170-hub__progress i, .ph-event__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary, #ffb020), #ff7a45); }
.v170-hub__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; }
.v170-hub__stats div { display: grid; gap: 2px; padding: 8px; border-radius: 12px; background: var(--surface-container-high, rgba(255, 255, 255, .04)); text-align: center; }
.v170-hub__stats b { font-size: 1.05rem; }
.v170-hub__stats small { color: var(--on-surface-variant, #aeb8c7); font-size: .72rem; }
.v170-hub__next { display: grid; gap: 2px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1px solid rgb(255 176 32 / .35); background: rgb(255 176 32 / .08); color: inherit; font: inherit; cursor: pointer; min-height: 48px; }
.v170-hub__next small { color: var(--primary, #ffb020); font-weight: 800; text-transform: uppercase; font-size: .68rem; letter-spacing: .06em; }
.v170-hub__next span { color: var(--on-surface-variant, #aeb8c7); font-size: .82rem; }
.v170-hub__links, .v170-hub__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.v170-hub__links .btn, .v170-hub__tools .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.v170-hub__links svg, .v170-hub__tools svg, .v170-hub__del svg { width: 18px; height: 18px; flex: none; }
.v170-hub__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-container, #171b23); }
.v170-hub__tab { min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--on-surface-variant, #aeb8c7); font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.v170-hub__tab span { font-size: .72rem; padding: 0 6px; border-radius: 999px; background: var(--surface-container-high, rgba(255, 255, 255, .08)); }
.v170-hub__tab.is-active { background: var(--primary, #ffb020); color: var(--on-primary, #1a1200); }
.v170-hub__tab.is-active span { background: rgb(0 0 0 / .15); }
.v170-hub__day h4 { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 2px 6px; font-size: .9rem; }
.v170-hub__day h4 small { color: var(--on-surface-variant, #aeb8c7); font-weight: 600; }
.v170-hub__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.v170-hub__match { display: flex; gap: 6px; align-items: stretch; min-width: 0; }
.v170-hub__open { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--outline-variant, rgba(128, 138, 156, .22)); background: var(--surface-container, #171b23); color: inherit; font: inherit; text-align: left; cursor: pointer; min-height: 56px; }
.v170-hub__match.is-live .v170-hub__open { border-color: rgb(52 199 89 / .5); }
.v170-hub__match.is-played .v170-hub__open { opacity: .92; }
.v170-hub__time { display: grid; text-align: center; min-width: 56px; }
.v170-hub__time small, .v170-hub__body small { color: var(--on-surface-variant, #aeb8c7); font-size: .74rem; }
.v170-hub__body { display: grid; gap: 2px; min-width: 0; }
.v170-hub__body b, .v170-hub__body small { overflow-wrap: anywhere; }
.v170-hub__del { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 48px; min-height: 44px; align-self: center; padding: 4px 6px; font-size: .7rem; color: var(--error, #ff6b6b); }
.v170-hub__owner { display: grid; gap: 8px; padding: 14px; border-radius: 18px; border: 1px dashed rgb(255 107 107 / .4); background: rgb(255 107 107 / .05); }
.v170-hub__owner h3 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 1rem; }
.v170-hub__owner h3 svg { width: 18px; height: 18px; }
.v170-hub__owner .small { margin: 0; color: var(--on-surface-variant, #aeb8c7); }
.v170-preview { font-weight: 700; color: var(--primary, #ffb020); }
.v170-preview.is-error { color: var(--error, #ff6b6b); }
.v170-preview:empty { display: none; }

/* Compact weekly war / tournament card on Scrims > Practice */
.ph-event { padding: 0; overflow: hidden; }
.ph-event__open { display: grid; gap: 6px; width: 100%; padding: 14px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; min-height: 56px; }
.ph-event__top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ph-event__title { font-size: 1.05rem; overflow-wrap: anywhere; }
.ph-event__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--on-surface-variant, #aeb8c7); }
.ph-event__meta svg { width: 16px; height: 16px; flex: none; }
.ph-event__next { font-size: .85rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ph-event__cta { font-size: .82rem; font-weight: 700; color: var(--primary, #ffb020); }
.ph-schedule-link { border: 0; cursor: pointer; font: inherit; min-height: 32px; }

/* Legendary badges */
.v170-legends { display: grid; gap: 8px; margin: 4px 0 10px; padding: 12px; border-radius: 18px; border: 1px solid rgb(255 196 0 / .35); background: linear-gradient(150deg, rgb(255 196 0 / .12), rgb(255 93 115 / .08) 55%, transparent); }
.v170-legends h4 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; font-size: .95rem; }
.v170-legends h4 svg { width: 18px; height: 18px; color: #ffc400; }
.v170-legends h4 small { margin-left: auto; color: var(--on-surface-variant, #aeb8c7); font-weight: 600; font-size: .74rem; }
.v170-legend { border-color: rgb(255 196 0 / .45); }
.v170-legend__chip { position: absolute; top: 6px; right: 6px; padding: 1px 6px; border-radius: 999px; font-size: .55rem; font-weight: 900; letter-spacing: .08em; line-height: 1.5; color: #1a1200; background: linear-gradient(135deg, #ffd54a, #ff9f0a); pointer-events: none; }
.v106-badge-detail .v170-legend__chip { position: static; display: inline-block; margin-right: 4px; }

:root[data-theme="light"] .v170-hub__hero { background: linear-gradient(160deg, rgb(255 176 32 / .16), var(--surface-container, #f3f4f7) 60%); }
:root[data-theme="light"] .v170-chip.is-live, :root[data-theme="light"] .v170-chip.is-ok { color: #137a3a; }
:root[data-theme="light"] .v170-chip.is-soon { color: #1d5fbf; }
:root[data-theme="light"] .v170-chip.is-warn { color: #9a5a00; }
:root[data-theme="light"] .v170-chip.is-type, :root[data-theme="light"] .v170-preview, :root[data-theme="light"] .ph-event__cta, :root[data-theme="light"] .v170-hub__next small { color: #9a5a00; }
:root[data-theme="light"] .v170-legends h4 svg { color: #b07800; }
@media (max-width: 380px) { .v170-hub__open { grid-template-columns: auto 1fr; } .v170-hub__open .v170-chip { grid-column: 2; justify-self: start; } }
[data-repeat-days][hidden], [data-repeat-box][hidden] { display: none !important; }
