@font-face { font-family: 'Schibsted Grotesk'; src: url('fonts/SchibstedGrotesk.ttf') format('truetype'); font-weight: 400 900; }
@font-face { font-family: 'Archivo'; src: url('fonts/Archivo.ttf') format('truetype'); font-weight: 100 900; font-stretch: 62% 125%; }

:root {
    --accent: #ef4444; --accent-rgb: 239, 68, 68;
    --win: rgba(15, 16, 20, .95);
    --well: rgba(255, 255, 255, .035); --well2: rgba(255, 255, 255, .06); --hair: rgba(255, 255, 255, .07);
    --text: #f2f3f5; --muted: #9097a1; --faint: #6b717b;
    --ok: #4ade80; --amber: #fbbf24; --red: #f87171; --blue: #93c5fd; --violet: #c4b5fd;
    --font: 'Schibsted Grotesk', system-ui, sans-serif;
    --display: 'Archivo', 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: transparent; font-family: var(--font); color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased; user-select: none; }
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; text-align: left; }
svg { display: block; flex: none; }
.num { font-family: var(--display); font-stretch: 82%; font-weight: 700; font-variant-numeric: tabular-nums; }

#root { position: fixed; inset: 0; display: grid; place-items: center; }
#bg { position: absolute; inset: 0; background: rgba(4, 5, 7, .62); }
#bg.img { background-size: cover; background-position: center; }

.wrap { position: relative; width: min(1660px, 95vw); max-height: 94vh; display: flex; flex-direction: column; gap: 12px; }
.wrap.enter > *, .wrap.enter .chip, .wrap.enter .col > * { animation: rise .26s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 18ms); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.panel, .chip, .tile, .link, .banner { position: relative; overflow: hidden; border-radius: 18px; background: var(--win); box-shadow: 0 20px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .05); }

.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 16px 22px 16px 16px; border-radius: 22px; }
.topbar::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px 200px at 0 0, rgba(var(--accent-rgb), .16), transparent 70%); }
.topbar > * { position: relative; }
.who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.avatar { width: 48px; height: 48px; flex: none; border-radius: 14px; background: rgba(var(--accent-rgb), .16); background-size: cover; background-position: center; }
.who-tx { min-width: 0; }
.who b { display: block; font-family: var(--display); font-stretch: 80%; font-size: 24px; font-weight: 800; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand { text-align: center; line-height: 1.1; }
.brand-name { display: block; font-family: var(--display); font-stretch: 74%; font-weight: 800; font-size: 32px; line-height: 1; }
.brand-tag { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.session { display: flex; gap: 8px; justify-content: flex-end; }
.sess { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--hair); font-size: 15px; }
.sess small { font-size: 12.5px; color: var(--muted); }
.sess.clock { min-width: 84px; justify-content: center; font-size: 19px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px rgba(74, 222, 128, .7); }

.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.chip { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; border-radius: 16px; }
.chip .ic { flex: none; color: var(--muted); }
.chip .tx { min-width: 0; }
.chip .k { display: block; color: var(--muted); font-size: 12px; }
.chip .v { font-family: var(--display); font-stretch: 82%; font-size: 21px; font-weight: 700; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.chip.green .ic { color: var(--ok); }
.chip.blue .ic { color: var(--blue); }
.chip.amber .ic { color: var(--amber); }
.chip.violet .ic { color: var(--violet); }
.chip .v.flash { animation: flash .6s ease; }
@keyframes flash { 0% { color: #ff8a8a; } 100% { color: inherit; } }

.grid { display: grid; grid-template-columns: 1.05fr .85fr 1.1fr; gap: 12px; min-height: 0; flex: 1; }
.col { display: flex; flex-direction: column; gap: 12px; min-height: 0; }

.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 0; padding: 22px 24px; transition: box-shadow .15s, background .15s; }
.tile.large { flex: 1; min-height: 132px; }
.tile:hover { background: rgba(24, 25, 30, .96); box-shadow: 0 20px 50px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(var(--accent-rgb), .35), 0 0 40px rgba(var(--accent-rgb), .16); }
.tile .ic { position: relative; z-index: 1; color: var(--muted); transition: color .12s; }
.tile:hover .ic { color: #ff8a8a; }
.tile.danger:hover .ic { color: var(--red); }
.tile .tx { position: relative; z-index: 1; }
.tile b { display: block; font-family: var(--display); font-stretch: 76%; font-size: 34px; font-weight: 800; line-height: 1; }
.tile .tx span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.tile.large .ic svg { width: 26px; height: 26px; }
.tile.small { flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; padding: 16px 20px; }
.tile.small b { font-family: var(--font); font-stretch: 100%; font-size: 17px; font-weight: 600; }
.tile.small .tx span { margin-top: 2px; }
.tile.danger:hover { background: rgba(32, 18, 20, .96); box-shadow: 0 20px 50px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(var(--accent-rgb), .45); }
.tile.danger:hover b { color: #fca5a5; }
.tile.has-img { background-size: cover; background-position: center; }
.tile.has-img .shade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(12, 13, 16, .9), rgba(12, 13, 16, .55)); transition: background .12s; }
.tile.has-img:hover .shade { background: linear-gradient(90deg, rgba(12, 13, 16, .82), rgba(12, 13, 16, .4)); }
.col-actions .tile:first-child { color: #fff; background: linear-gradient(180deg, #f45b5b, var(--accent)); box-shadow: 0 14px 36px rgba(var(--accent-rgb), .38), inset 0 1px 0 rgba(255, 255, 255, .3); }
.col-actions .tile:first-child .ic, .col-actions .tile:first-child .tx span { color: rgba(255, 255, 255, .85); }
.col-actions .tile:first-child:hover { filter: brightness(1.07); }

.link { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 24px; transition: box-shadow .15s; }
.link::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(380px 200px at 0 0, var(--c), transparent 70%); opacity: .16; transition: opacity .15s; }
.link:hover::after { opacity: .26; }
.link > * { position: relative; z-index: 1; }
.link:hover { box-shadow: 0 20px 50px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.link .top { display: flex; align-items: center; gap: 15px; }
.link .badge { flex: none; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 22px rgba(0, 0, 0, .35); }
.link b { display: block; font-family: var(--display); font-stretch: 80%; font-size: 26px; font-weight: 800; line-height: 1; }
.link .sub { display: block; color: var(--muted); font-size: 13.5px; margin-top: 5px; }
.link .cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: #fff; background: var(--c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); transition: filter .12s; }
.link:hover .cta { filter: brightness(1.1); }
.link .members { color: var(--muted); font-size: 12.5px; }

.col-news { padding: 20px 22px 4px; }
.news-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px 14px 0; border-bottom: 1px solid var(--hair); }
h2 { font-family: var(--display); font-stretch: 78%; font-size: 30px; font-weight: 800; line-height: 1; }
.count { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 8px; color: #ffb4b4; background: rgba(var(--accent-rgb), .18); }
.count:empty { display: none; }
.news { overflow-y: auto; padding: 0 6px 10px 0; }
.item { padding: 16px 0; }
.item + .item { border-top: 1px solid var(--hair); }
.item .meta { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.item .tag { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 7px; color: #ffb4b4; background: rgba(var(--accent-rgb), .18); }
.item .date { font-size: 13px; color: var(--faint); }
.item b { display: block; font-size: 16.5px; font-weight: 600; margin-bottom: 4px; }
.item p { color: #b3b8bf; font-size: 13.5px; line-height: 1.55; }
.empty { color: var(--faint); font-size: 13px; text-align: center; padding: 30px 0; }

.banner { --c: var(--accent); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; cursor: pointer; background-size: cover; background-position: center; }
.banner::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 180px at 0 50%, var(--c), transparent 70%); opacity: .2; }
.banner.has-img::after { display: none; }
.banner .shade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(12, 13, 16, .92) 30%, rgba(12, 13, 16, .45)); }
.banner .btx { position: relative; z-index: 1; }
.banner .btx b { display: block; font-family: var(--display); font-stretch: 76%; font-size: 32px; font-weight: 800; line-height: 1; }
.banner .btx span { display: block; color: #c3c7cd; font-size: 14px; margin-top: 5px; }
.banner .bcta { position: relative; z-index: 1; display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 13px; font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; background: var(--c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 26px rgba(0, 0, 0, .35); }
.banner:hover { box-shadow: 0 20px 50px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .14); }

.foot { display: flex; justify-content: flex-end; color: var(--muted); font-size: 13px; padding: 2px 4px 0; }
.hint { display: flex; align-items: center; gap: 8px; }
.hint b { display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 8px; font-weight: 600; font-size: 11.5px; color: var(--text); background: rgba(255, 255, 255, .08); border-radius: 7px; }

.confirm { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4, 5, 7, .6); }
.confirm-card { width: 400px; padding: 28px 26px 24px; text-align: center; border-radius: 22px; background: #15161b; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .07); animation: rise .2s ease-out; }
.confirm-ic { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, #ff6b6b, var(--accent) 55%, #b91c1c); box-shadow: 0 10px 28px rgba(var(--accent-rgb), .4), inset 0 1px 0 rgba(255, 255, 255, .35); }
.confirm-card b { display: block; font-family: var(--display); font-stretch: 76%; font-size: 32px; font-weight: 800; line-height: 1; margin-bottom: 22px; }
.confirm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.confirm-row button { height: 46px; text-align: center; border-radius: 14px; font-size: 14px; font-weight: 600; background: var(--well); box-shadow: inset 0 0 0 1px var(--hair); transition: background .12s; }
.confirm-row button:hover { background: var(--well2); }
.confirm-row .yes { color: #fff; font-weight: 700; background: linear-gradient(180deg, #f45b5b, var(--accent)); box-shadow: 0 10px 28px rgba(var(--accent-rgb), .35), inset 0 1px 0 rgba(255, 255, 255, .3); }
.confirm-row .yes:hover { filter: brightness(1.07); background: linear-gradient(180deg, #f45b5b, var(--accent)); }

.toast { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 11px; padding: 12px 18px 12px 14px; border-radius: 16px; font-size: 14px; font-weight: 500; background: #1b1c22; box-shadow: 0 20px 50px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--hair); animation: toastIn .2s ease-out; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }
.toast svg { color: var(--ok); }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 1250px) { .grid { grid-template-columns: 1fr 1fr; } .col-news { grid-column: 1 / -1; } .topbar { grid-template-columns: 1fr auto; } .brand { display: none; } }
