:root {
    --bg: #01040B;
    --surface: #020B12;
    --panel: #07121D;
    --panel-raised: #0B1A28;
    --blue: #91BEE4;
    --blue-light: #D6E7FD;
    --white: #F5F5F5;
    --gold: #EDCA9E;
    --gold-low: #CAA980;
    --muted: #8395A7;
    --line: rgba(145, 190, 228, .13);
    --line-strong: rgba(145, 190, 228, .24);
    --shadow: 0 25px 75px rgba(0,0,0,.36);
    --chat-width: 376px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--white); background: radial-gradient(ellipse at 65% -15%, rgba(33,79,113,.27), transparent 45%), var(--bg); font: 14px/1.6 Inter, "Segoe UI", Arial, sans-serif; }
button, input, textarea, select { font: inherit; }
a { color: var(--blue); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--blue-light); }
.topbar { height: 78px; display: flex; align-items: center; gap: 36px; padding: 0 calc(var(--chat-width) + 32px) 0 max(28px,calc((100vw - 1500px)/2)); position: sticky; top: 0; z-index: 15; border-bottom: 1px solid var(--line); background: rgba(1,4,11,.88); backdrop-filter: blur(22px); }
.brand { flex: 0 0 auto; color: var(--white); display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .19em; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; color: #07111B; background: linear-gradient(145deg,var(--blue-light),var(--blue)); font-size: 19px; font-style: italic; box-shadow: 0 5px 22px rgba(145,190,228,.2); }
.brand-dot, .footer-brand span { color: var(--gold); margin-left: -10px; }
.topbar nav { display: flex; align-items: center; gap: clamp(14px,2vw,28px); flex: 1; min-width: 0; }
.topbar nav a { white-space: nowrap; color: #A5B4C2; font-size: 12px; }
.topbar nav a:hover { color: var(--blue-light); }
.top-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.user-pill, .badge { padding: 4px 9px; border: 1px solid rgba(237,202,158,.27); border-radius: 20px; color: var(--gold); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.page-shell { width: min(1440px,calc(100% - var(--chat-width) - 64px)); margin: 0 auto 0 max(28px,calc((100vw - var(--chat-width) - 1440px)/2)); padding: 34px 0 0; transition: width .32s ease, margin .32s ease; }
body.chat-collapsed { --chat-width: 54px; }
body.chat-collapsed .topbar { padding-right: 72px; }
body.chat-collapsed .page-shell { width: min(1500px,calc(100% - 100px)); }
footer { margin-top: 76px; padding: 24px 2px 30px; border-top: 1px solid var(--line); color: #6F8091; display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; font-size: 11px; }
footer .footer-brand { color: var(--white); font-weight: 800; letter-spacing: .17em; }
footer nav { display: flex; gap: 20px; grid-column: 1 / -1; padding-top: 8px; }
footer nav a { color: var(--muted); font-size: 11px; }
footer small { grid-column: 1 / -1; color: #5F7080; }
.eyebrow { color: var(--blue); font-size: 10px; font-weight: 750; letter-spacing: .2em; text-transform: uppercase; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 12px; color: var(--blue-light); font-size: clamp(34px,4vw,54px); line-height: 1.04; letter-spacing: -.047em; }
h2 { color: var(--blue-light); font-size: 22px; line-height: 1.2; letter-spacing: -.025em; }
h3 { color: var(--blue-light); }
.hero { position: relative; display: grid; grid-template-columns: minmax(0,1.5fr) minmax(220px,.8fr); gap: 26px; align-items: center; min-height: 300px; overflow: hidden; margin: 8px 0 38px; padding: 44px clamp(28px,4vw,58px); border: 1px solid var(--line-strong); border-radius: 21px; background: radial-gradient(ellipse at 82% 48%,rgba(67,129,175,.21),transparent 42%), linear-gradient(112deg,#091927 0%,#06111B 58%,#040A12 100%); box-shadow: var(--shadow); }
.hero:after { content: ""; position: absolute; width: 350px; height: 350px; right: 9%; top: -45%; border: 1px solid rgba(145,190,228,.1); border-radius: 50%; box-shadow: 0 0 0 25px rgba(145,190,228,.025),0 0 0 55px rgba(145,190,228,.02),0 0 0 90px rgba(145,190,228,.015); pointer-events: none; }
.hero > div { position: relative; z-index: 1; }
.hero p { max-width: 560px; margin: 0 0 22px; color: #9DADBC; }
.hero-side { justify-self: end; text-align: right; }
.hero-side strong { display: block; color: var(--gold); font: 500 36px/1.15 Georgia,serif; }
.hero-side span { color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.btn { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; transition: transform .18s ease,filter .18s ease,border-color .18s ease,background .18s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-blue { color: #06121C; background: linear-gradient(135deg,#D6E7FD,#86B5DB); box-shadow: 0 6px 20px rgba(90,143,183,.14); }
.btn-blue:hover { color: #06121C; }
.btn-quiet { color: var(--blue-light); border-color: var(--line-strong); background: rgba(145,190,228,.055); }
.btn-gold { color: #17130C; background: linear-gradient(135deg,#F6E3C3,#CAA980); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 34px 0 15px; }
.section-head h2 { margin: 3px 0 0; }
.section-head h1 { margin: 5px 0 0; }
.section-head > a,.section-head > span { color: var(--muted); font-size: 11px; }
.muted { color: var(--muted); font-size: 11px; }
.filters { display: flex; gap: 7px; }
.filters a { padding: 6px 11px; border: 1px solid var(--line); border-radius: 20px; color: #9CACBA; font-size: 10px; }
.filters .active { color: var(--blue-light); border-color: var(--blue); background: rgba(145,190,228,.08); }
.match-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.match-card,.card { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(148deg,rgba(9,24,37,.96),rgba(4,12,20,.98)); box-shadow: 0 9px 28px rgba(0,0,0,.17); }
.match-card { padding: 18px; transition: transform .23s ease,border-color .23s ease,box-shadow .23s ease; }
.match-card:hover { transform: translateY(-3px); border-color: rgba(145,190,228,.4); box-shadow: 0 18px 42px rgba(0,0,0,.28); }
.match-meta { display: flex; justify-content: space-between; gap: 8px; color: #8294A4; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.status { color: var(--blue); }
.status-live { color: #FC8989; }
.teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 22px 0 16px; text-align: center; }
.team { color: #E0EAF3; font-size: 12px; font-weight: 680; }
.team img { display: block; width: 40px; height: 40px; margin: 0 auto 8px; object-fit: contain; }
.vs { color: #74879A; font-size: 9px; letter-spacing: .14em; }
.score { color: var(--gold); font-size: 18px; font-weight: 750; }
.match-date { padding-top: 11px; border-top: 1px solid var(--line); color: #91A0AE; font-size: 10px; text-align: center; }
.prediction { margin-top: 13px; }
.prediction small { display: block; margin-bottom: 8px; color: #8396A7; font-size: 9px; text-align: center; }
.pick-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: block; padding: 7px 3px; border: 1px solid var(--line); border-radius: 6px; color: #A5B6C5; font-size: 9px; text-align: center; cursor: pointer; transition: .18s ease; }
.pick input:checked + span,.pick span:hover { color: var(--blue-light); border-color: var(--blue); background: rgba(145,190,228,.12); }
.pick-button { width: 100%; margin-top: 8px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--blue-light); background: #102638; font-size: 10px; cursor: pointer; }
.two-col { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(290px,.75fr); gap: 18px; }
.card { padding: 21px; }
.stat-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.stat { padding: 15px 16px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg,rgba(145,190,228,.055),rgba(145,190,228,.015)); }
.stat strong { display: block; color: var(--blue-light); font-size: 23px; line-height: 1.3; }
.stat span { color: var(--muted); font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.leader-row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.leader-row:last-child { border-bottom: 0; }
.rank { color: #9CAEBE; font: 16px Georgia,serif; }
.leader-row:nth-child(-n+3) .rank { color: var(--gold); }
.leader-row.current-user { margin: 0 -10px; padding-right: 10px; padding-left: 10px; border-radius: 8px; background: rgba(145,190,228,.075); }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; overflow: hidden; border: 1px solid rgba(145,190,228,.2); border-radius: 50%; color: var(--blue); background: #142A3B; object-fit: cover; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.leader-name { color: #E5EDF5; font-size: 11px; font-weight: 680; }
.leader-xp { color: var(--gold); font-size: 10px; white-space: nowrap; }
.comment-row { display: flex; align-items: flex-start; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.comment-row:last-child { border-bottom: 0; }
.comment-row p { margin: 4px 0; color: #AEBCC9; font-size: 12px; }
.comment-row small { color: #7D8FA0; font-size: 9px; }
.comment-body { flex: 1; min-width: 0; }
.reply { margin-left: 30px; }
.form-card { max-width: 540px; margin: 52px auto; padding: 30px; }
.field { margin: 14px 0; }
.field label { display: block; margin-bottom: 6px; color: #AAB9C7; font-size: 10px; }
.field input,.field textarea,.field select,.search,select,input[type=number],input[type=datetime-local] { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid var(--line-strong); border-radius: 7px; outline: none; color: var(--white); background: #030C14; }
.field textarea { resize: vertical; }
.field input:focus,.field textarea:focus,.search:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(145,190,228,.08); }
.validation-summary-errors { margin: 12px 0; color: #FFAFA5; }
.notice { margin-bottom: 16px; padding: 11px 14px; border: 1px solid rgba(237,202,158,.3); border-radius: 8px; color: var(--gold); background: rgba(237,202,158,.07); }
.match-detail { padding: 27px; text-align: center; }
.match-detail .teams { max-width: 620px; margin: auto; padding: 26px 0; }
.discussion { margin-top: 18px; }
.progress { height: 7px; overflow: hidden; border-radius: 9px; background: #172536; }
.progress i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg,#6DA5D1,#D6E7FD); }
.inline { display: inline-flex; align-items: center; gap: 7px; }
.table { width: 100%; border-collapse: collapse; }
.table th,.table td { padding: 11px; border-bottom: 1px solid var(--line); font-size: 11px; text-align: left; }
.table th { color: #8496A6; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.admin-nav a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; color: #ABC1D2; background: rgba(145,190,228,.035); font-size: 10px; }
.admin-nav a:hover { border-color: var(--blue); background: rgba(145,190,228,.09); }
.toolbar { display: flex; align-items: center; gap: 9px; margin: 14px 0; }
.toolbar > * { flex: 1; }
.toolbar .btn { flex: 0 0 auto; }
.chat-sidebar { position: fixed; z-index: 30; top: 0; right: 0; bottom: 0; display: flex; width: 376px; flex-direction: column; overflow: hidden; border-left: 1px solid rgba(145,190,228,.2); background: linear-gradient(180deg,#07131F,#030A11 36%,#02080E); box-shadow: -18px 0 55px rgba(0,0,0,.29); transition: width .3s cubic-bezier(.2,.8,.2,1),transform .3s ease; }
.chat-header { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 8px; padding: 15px 17px; border-bottom: 1px solid var(--line); background: rgba(8,20,31,.92); }
.chat-brand { display: flex; align-items: center; gap: 11px; }
.chat-brand b,.chat-brand strong { display: block; }
.chat-brand b { color: #AAB9C7; font-size: 10px; font-weight: 600; }
.chat-brand strong { color: var(--blue-light); font-size: 14px; letter-spacing: -.01em; }
.chat-live-dot,.chat-presence i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #58D69A; box-shadow: 0 0 12px rgba(88,214,154,.45); }
.chat-head-tools { display: flex; align-items: center; gap: 10px; }
.chat-connection { color: #8A9BAB; font-size: 9px; white-space: nowrap; }
.chat-connection.online { color: #79D6A3; }
.chat-connection.offline { color: #E5A28F; }
.chat-connection.connecting { color: var(--gold); }
.chat-head-tools button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 7px; color: var(--blue-light); background: rgba(145,190,228,.06); font-size: 18px; cursor: pointer; }
.chat-presence { display: flex; min-height: 42px; align-items: center; justify-content: space-between; padding: 0 17px; border-bottom: 1px solid rgba(145,190,228,.08); color: #91A2B2; font-size: 10px; }
.chat-presence i { width: 6px; height: 6px; margin-right: 6px; }
.chat-presence b { color: #C8D6E2; }
.chat-public { color: #6F8294; font-size: 8px; letter-spacing: .13em; }
.chat-message-list { position: relative; display: flex; flex: 1; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #24394A transparent; scrollbar-width: thin; }
.chat-messages { display: flex; flex-direction: column; gap: 2px; padding: 14px 13px 20px; }
.chat-message { display: flex; align-items: flex-start; gap: 9px; padding: 10px 5px; border-bottom: 1px solid rgba(145,190,228,.055); }
.chat-avatar { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; overflow: hidden; border: 1px solid rgba(145,190,228,.17); border-radius: 50%; color: var(--blue); background: #13283A; font-size: 10px; font-weight: 700; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-message-content { flex: 1; min-width: 0; }
.chat-message-meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
.chat-message-meta b { overflow: hidden; color: #DCE7F0; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.chat-message-meta time { margin-left: auto; color: #718394; font-size: 8px; white-space: nowrap; }
.chat-level { padding: 1px 5px; border: 1px solid rgba(145,190,228,.16); border-radius: 9px; color: #93BBDC; font-size: 7px; white-space: nowrap; }
.chat-message-content p { margin: 3px 0 0; color: #A6B4C1; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.chat-system { margin: 5px 0; padding: 10px; border: 1px solid rgba(237,202,158,.16); border-radius: 8px; background: rgba(237,202,158,.045); }
.chat-system .chat-message-content p { color: var(--gold); }
.chat-older { align-self: center; margin: 8px auto; padding: 6px 10px; border: 1px solid var(--line); border-radius: 20px; color: var(--blue); background: #0B1B29; font-size: 9px; cursor: pointer; }
.chat-older[hidden] { display: none; }
.chat-message-list.guest-blur #chatMessages { filter: blur(4px); opacity: .48; user-select: none; }
.chat-guest-cover { position: absolute; z-index: 2; top: 50%; left: 50%; width: calc(100% - 34px); padding: 24px 20px; transform: translate(-50%,-50%); border: 1px solid rgba(145,190,228,.22); border-radius: 14px; background: rgba(5,15,24,.94); box-shadow: 0 20px 60px rgba(0,0,0,.55); text-align: center; }
.guest-cover-icon { display: grid; width: 38px; height: 38px; margin: 0 auto 12px; place-items: center; border: 1px solid rgba(237,202,158,.25); border-radius: 12px; color: var(--gold); background: rgba(237,202,158,.08); font-size: 17px; }
.chat-guest-cover h3 { margin: 7px 0 6px; font-size: 20px; }
.chat-guest-cover p { color: #9AABB9; font-size: 11px; }
.chat-guest-cover .btn { margin: 4px 3px; }
.chat-form { padding: 13px; border-top: 1px solid var(--line); background: rgba(4,12,20,.88); }
.chat-compose { display: flex; align-items: center; gap: 7px; padding: 6px; border: 1px solid rgba(145,190,228,.22); border-radius: 11px; background: #030B12; }
.chat-compose textarea { flex: 1; min-width: 0; max-height: 110px; resize: none; padding: 6px 7px; border: 0; outline: none; color: var(--white); background: transparent; font-size: 11px; }
.chat-compose textarea::placeholder { color: #697C8C; }
.chat-compose button { width: 32px; height: 32px; flex: 0 0 32px; border: 0; border-radius: 8px; color: #06121C; background: linear-gradient(135deg,#D6E7FD,#84B2D8); font-size: 19px; font-weight: 700; cursor: pointer; }
.chat-compose button:disabled { opacity: .5; }
.chat-compose-foot { display: flex; justify-content: space-between; padding: 7px 2px 0; color: #647687; font-size: 8px; }
.chat-mobile-visible { display: none; }
body.chat-collapsed .chat-sidebar { width: 54px; }
body.chat-collapsed .chat-sidebar > :not(.chat-header) { visibility: hidden; opacity: 0; }
body.chat-collapsed .chat-header { justify-content: center; padding: 10px 3px; }
body.chat-collapsed .chat-brand,body.chat-collapsed .chat-connection { display: none; }
body.chat-collapsed .chat-head-tools button { font-size: 0; }
body.chat-collapsed .chat-head-tools button:after { content: "+"; font-size: 18px; }
.empty-state { padding: 36px 18px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); text-align: center; }
@media (max-width:1200px) { :root { --chat-width: 340px; } .chat-sidebar { width: 340px; } .topbar { gap: 19px; } .topbar nav { gap: 13px; } .match-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:800px) { :root { --chat-width: 0px; } .topbar { height: auto; min-height: 68px; flex-wrap: wrap; gap: 10px; padding: 12px 16px; } .topbar nav { order: 3; width: 100%; overflow-x: auto; padding: 4px 0; } .top-actions { margin-left: auto; } .page-shell,body.chat-collapsed .page-shell { width: calc(100% - 32px); margin: 0 16px; padding-top: 22px; } .hero { min-height: 260px; padding: 30px 25px; } .chat-sidebar { top: 0; right: 0; bottom: 0; width: min(100vw,480px); transform: translateX(102%); border-left: 0; } body.chat-drawer-open-mobile .chat-sidebar { width: min(100vw,480px); transform: translateX(0); } body.chat-drawer-open-mobile .page-shell,body.chat-drawer-open-mobile .topbar { filter: brightness(.34); pointer-events: none; } .chat-mobile-visible { position: fixed; z-index: 24; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; padding: 12px 15px; border: 1px solid var(--line-strong); border-radius: 26px; color: var(--blue-light); background: #0B1B29; box-shadow: var(--shadow); font-size: 11px; cursor: pointer; } .chat-mobile-visible i { width: 7px; height: 7px; border-radius: 50%; background: #58D69A; } body.chat-collapsed .chat-sidebar { width: min(100vw,480px); } body.chat-collapsed .chat-sidebar > :not(.chat-header) { visibility: visible; opacity: 1; } body.chat-collapsed .chat-sidebar { transform: translateX(102%); } body.chat-collapsed .chat-mobile-visible { display: flex; } }
@media (max-width:620px) { .match-grid { grid-template-columns: 1fr; } .two-col { grid-template-columns: 1fr; } .hero { grid-template-columns: 1fr; gap: 16px; min-height: 0; } .hero-side { justify-self: start; text-align: left; } .stat-row { grid-template-columns: repeat(3,minmax(0,1fr)); } .stat { padding: 12px 9px; } .stat strong { font-size: 19px; } .stat span { font-size: 8px; } .section-head { align-items: flex-start; } .section-head > span { max-width: 130px; text-align: right; } .form-card { margin: 25px auto; padding: 22px; } .card { padding: 16px; } .toolbar { flex-direction: column; align-items: stretch; } .table { min-width: 720px; } .card:has(.table) { overflow-x: auto; } footer { grid-template-columns: 1fr; } footer nav { flex-wrap: wrap; gap: 13px; } }
.hero-feature { position: relative; z-index: 1; justify-self: end; width: min(100%,380px); padding: 20px; border: 1px solid rgba(145,190,228,.18); border-radius: 13px; background: rgba(1,7,13,.45); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.hero-feature > strong { display: block; margin: 8px 0; color: var(--gold); font: 500 34px Georgia,serif; }
.hero-feature small { display: block; margin-top: 12px; color: #91A3B1; font-size: 10px; }
.hero-fixture { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 15px; color: var(--blue-light); font-size: 12px; font-weight: 700; text-align: center; }
.hero-fixture b { color: var(--gold); font-size: 9px; }
.join-prompt { margin: 12px 0 18px; padding: 20px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(140deg,rgba(145,190,228,.07),rgba(145,190,228,.02)); }
.join-prompt h3 { margin: 6px 0; }
.join-prompt p { margin: 0 0 12px; color: #A0B0BE; font-size: 11px; }
.search-form { width: min(100%,390px); }
.community-stats { margin-bottom: 30px; }
.admin-sidebar { position: fixed; z-index: 12; top: 78px; bottom: 0; left: 0; display: flex; width: 210px; flex-direction: column; gap: 5px; padding: 20px 12px; border-right: 1px solid var(--line); background: rgba(3,10,16,.93); }
.admin-sidebar-label { padding: 4px 10px 12px; color: #748698; font-size: 9px; letter-spacing: .17em; }
.admin-sidebar a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid transparent; border-radius: 7px; color: #9FB1C0; font-size: 11px; }
.admin-sidebar a:hover { border-color: var(--line); color: var(--blue-light); background: rgba(145,190,228,.07); }
.admin-shell .topbar { padding-left: 230px; }
.admin-shell .page-shell { width: auto; max-width: none; margin: 0 calc(var(--chat-width) + 28px) 0 232px; }
.admin-shell .admin-nav { display: none; }
@media(max-width:800px) { .admin-sidebar { display: none; } .admin-shell .topbar { padding-left: 16px; } .admin-shell .page-shell { width: calc(100% - 32px); margin: 0 16px; } }
.podium { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: end; gap: 13px; margin: 22px 0 27px; }
.podium-card { display: flex; min-height: 212px; flex-direction: column; align-items: center; justify-content: center; padding: 18px; border: 1px solid rgba(237,202,158,.18); border-radius: 14px; background: linear-gradient(150deg,rgba(237,202,158,.07),rgba(7,18,29,.9) 55%); text-align: center; }
.podium-1 { min-height: 242px; border-color: rgba(237,202,158,.42); background: radial-gradient(ellipse at 50% 0%,rgba(237,202,158,.13),transparent 70%),#091520; box-shadow: 0 14px 45px rgba(0,0,0,.24); }
.podium-rank { color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.podium-avatar { display: grid; width: 55px; height: 55px; margin: 12px 0; place-items: center; overflow: hidden; border: 2px solid rgba(237,202,158,.48); border-radius: 50%; color: var(--gold); background: #1D2B34; font: 21px Georgia,serif; }
.podium-avatar img { width: 100%; height: 100%; object-fit: cover; }
.podium-card b { color: var(--blue-light); font-size: 13px; }
.podium-card span,.podium-card small { color: #8899A8; font-size: 9px; }
.podium-card strong { margin: 7px 0 1px; color: var(--gold); font-size: 17px; }
@media(max-width:620px) { .podium { gap: 7px; } .podium-card,.podium-1 { min-height: 185px; padding: 11px 6px; } .podium-card b { font-size: 10px; } .podium-card strong { font-size: 13px; } }
.match-details-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(270px,.72fr); gap: 18px; margin-top: 25px; }
.distribution-row { margin: 14px 0; }
.distribution-row > div:first-child { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: #C5D2DE; font-size: 10px; }
.distribution-row span { color: var(--gold); }
.your-prediction { margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.your-prediction b { color: var(--blue-light); }
.comment-actions { display: flex; gap: 7px; margin: 7px 0; }
.comment-actions form { display: inline-flex; }
.reply-form { width: 100%; margin: 8px 0 0 30px; }
.reply-form .search { flex: 1; }
.demo-seed-card { max-width: 820px; margin: 20px auto; padding: 30px; }
.demo-seed-card p { color: #A7B6C3; font-size: 12px; }
.demo-seed-card b { color: var(--gold); }
@media(max-width:800px) { .match-details-grid { grid-template-columns: 1fr; } }
.favorite-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0; }
.favorite-chip { padding: 6px 9px; border: 1px solid rgba(237,202,158,.2); border-radius: 18px; color: var(--gold); background: rgba(237,202,158,.05); font-size: 9px; cursor: pointer; }
.notification-menu { position: relative; flex: 0 0 auto; }
.notification-toggle { padding: 7px 9px; border: 1px solid transparent; border-radius: 7px; color: #A5B4C2; background: transparent; font-size: 12px; cursor: pointer; }
.notification-toggle:hover { color: var(--blue-light); background: rgba(145,190,228,.06); }
.notification-toggle .badge { margin-left: 4px; }
.notification-dropdown { position: absolute; z-index: 40; top: calc(100% + 13px); right: 0; display: none; width: 300px; padding: 13px; border: 1px solid var(--line-strong); border-radius: 12px; background: #07131E; box-shadow: var(--shadow); }
.notification-dropdown.open { display: block; animation: pop-in .15s ease-out; }
.notification-dropdown > b { display: block; padding: 3px 5px 9px; color: var(--blue-light); font-size: 11px; }
.notification-dropdown > a { display: block; padding: 9px 5px; border-top: 1px solid var(--line); color: #D6E0E9; }
.notification-dropdown > a strong,.notification-dropdown > a small { display: block; }
.notification-dropdown > a strong { font-size: 10px; }
.notification-dropdown > a small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.notification-dropdown > a.notification-all { color: var(--blue); font-size: 9px; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media(max-width:800px){.admin-shell .admin-nav{display:flex;overflow-x:auto;flex-wrap:nowrap}.admin-shell .admin-nav a{white-space:nowrap}}
.pagination { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 18px 0; color: var(--muted); font-size: 10px; }
.rank-callout { margin: 12px 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; color: #A8B8C6; background: rgba(145,190,228,.04); font-size: 10px; }
.rank-callout b { margin-left: 4px; color: var(--gold); font-size: 14px; }
.profile-activity { margin-top: 25px; }
.leader-row:not(.top-three) .rank{color:#9CAEBE}
.member-profile-heading { display: flex; align-items: center; gap: 15px; }
.member-profile-heading h1 { margin-bottom: 0; }
.profile-avatar { display: grid; width: 64px; height: 64px; flex: 0 0 64px; place-items: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--blue-light); background: #142A3B; font: 24px Georgia,serif; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Touchline 2026 editorial interface */
:root {
    --bg: #050B10;
    --surface: #08121A;
    --panel: #0B1822;
    --panel-raised: #102331;
    --blue: #91BEE4;
    --blue-light: #D9E9F7;
    --gold: #EDCA9E;
    --muted: #8B9BA8;
    --line: rgba(181,207,226,.13);
    --line-strong: rgba(181,207,226,.25);
    --chat-width: 360px;
    --ink: #F2F4F6;
    /* --serif:Georgia,"Times New Roman",serif;*/
}
body { color:var(--ink); background:#050B10; font-family:Inter,"Segoe UI",Arial,sans-serif; font-size:14px; line-height:1.65; }
a { color:var(--blue); }
button,input,textarea,select { font:inherit; }
.site-header { position:sticky; top:0; z-index:50; display:flex; align-items:center; gap:clamp(24px,4vw,68px); height:76px; padding:0 clamp(22px,4vw,64px); border-bottom:1px solid var(--line); background:rgba(5,11,16,.94); backdrop-filter:blur(18px); }
.brand { display:inline-flex; align-items:center; gap:11px; flex:0 0 auto; color:#F4F5F4; }
.brand:hover { color:#fff; }
.brand-mark { display:grid; width:32px; height:32px; place-items:center; border:1px solid rgba(237,202,158,.6); border-radius:4px; color:var(--gold); background:transparent; font:italic 19px var(--serif); box-shadow:none; }
.brand-word { font-size:12px; font-weight:750; letter-spacing:.22em; }
.brand-word span { color:var(--gold); }
.main-nav { display:flex; align-items:center; align-self:stretch; gap:clamp(20px,3vw,42px); flex:1; }
.main-nav a,.header-link { position:relative; display:inline-flex; align-items:center; height:100%; border:0; color:#9BA9B4; background:none; font-size:11px; font-weight:600; letter-spacing:.045em; cursor:pointer; }
.main-nav a:after { position:absolute; right:0; bottom:-1px; left:0; height:2px; background:var(--gold); content:""; transform:scaleX(0); transform-origin:left; transition:transform .2s ease; }
.main-nav a:hover,.main-nav a.active,.header-link:hover { color:#F3F5F6; }
.main-nav a.active:after,.main-nav a:hover:after { transform:scaleX(1); }
.header-actions { display:flex; align-items:center; gap:16px; margin-left:auto; }
.header-logout { height:100%; }
.header-logout button { padding:0; }
.profile-link { display:flex; align-items:center; gap:8px; color:#D8E0E6; font-size:11px; }
.profile-dot { display:grid; width:27px; height:27px; place-items:center; border:1px solid var(--line-strong); border-radius:50%; color:var(--gold); font-size:10px; }
.icon-button { position:relative; width:34px; height:36px; border:0; color:#D0D9E0; background:none; font-size:18px; cursor:pointer; }
.notification-count { position:absolute; top:0; right:-1px; min-width:16px; padding:1px 4px; border-radius:8px; color:#09131B; background:var(--gold); font-size:9px; font-weight:800; }
.notification-dropdown { top:calc(100% + 12px); width:315px; border-radius:4px; background:#0B1822; }
.dropdown-title { padding:7px 6px 12px; color:#F4F5F6; font:20px var(--serif); }
.dropdown-all { display:flex!important; justify-content:space-between; }
.btn { min-height:42px; padding:10px 16px; border:1px solid transparent; border-radius:4px; font-size:11px; font-weight:700; letter-spacing:.03em; box-shadow:none; }
.btn:hover { transform:translateY(-1px); }
.btn-primary,.btn-blue { color:#101820; background:var(--gold); box-shadow:none; }
.btn-primary:hover,.btn-blue:hover { color:#101820; background:#F5DAB8; }
.btn-small { min-height:35px; padding:7px 13px; }
.btn-quiet { border-color:var(--line-strong); color:#D6E1E9; background:transparent; }
.btn-text,.text-link { display:inline-flex; align-items:center; gap:8px; color:#CFD8DF; font-size:11px; }
.page-shell { width:min(1260px,calc(100% - var(--chat-width) - 80px)); margin:0 auto 0 max(36px,calc((100vw - var(--chat-width) - 1260px)/2)); padding:42px 0 0; }
body.chat-collapsed { --chat-width:54px; }
.site-footer { margin-top:100px; padding:36px 0 28px; border-top:1px solid var(--line); color:var(--muted); }
.footer-main { display:grid; grid-template-columns:minmax(210px,.8fr) 1fr; gap:14px 50px; }
.footer-main .brand { grid-row:span 2; align-self:start; }
.footer-main p { max-width:390px; margin:0; color:#8796A2; font-size:12px; }
.footer-links { display:flex; flex-wrap:wrap; gap:12px 24px; }
.footer-links a,.footer-meta { color:#9AA7B2; font-size:10px; }
.footer-links a:hover { color:var(--gold); }
.footer-meta { display:flex; justify-content:space-between; margin-top:30px; padding-top:14px; border-top:1px solid var(--line); color:#6F7E89; font-size:9px; letter-spacing:.08em; }
.eyebrow { color:var(--blue); font-size:9px; font-weight:750; letter-spacing:.19em; }
.eyebrow-line { display:inline-block; width:24px; height:1px; margin:0 9px 3px 0; background:var(--gold); }
h1,h2,h3 { color:#F0F3F5; }
h1 { font:400 clamp(42px,5vw,70px)/1.02 var(--serif); letter-spacing:-.04em; }
h1 em { color:var(--gold); font-style:normal; }
h2 { font:400 clamp(24px,2.3vw,32px)/1.15 var(--serif); letter-spacing:-.018em; }
h3 { font:400 21px/1.18 var(--serif); }
.home-intro { position:relative; display:flex; min-height:440px; align-items:center; justify-content:space-between; gap:44px; overflow:hidden; margin:4px 0 25px; padding:58px clamp(24px,5vw,68px); border:1px solid var(--line); border-radius:2px; background:linear-gradient(105deg,#0C1A25 0%,#09141D 48%,#0B1A25 100%); }
.home-intro:after { position:absolute; top:-26%; right:8%; width:440px; height:440px; border:1px solid rgba(145,190,228,.14); border-radius:50%; box-shadow:0 0 0 34px rgba(145,190,228,.025),0 0 0 70px rgba(145,190,228,.02),0 0 0 112px rgba(145,190,228,.016); content:""; pointer-events:none; }
.home-intro-copy { position:relative; z-index:1; max-width:640px; }
.home-intro h1 { margin:23px 0 18px; }
.home-intro p { max-width:490px; margin:0; color:#A5B1BA; font-size:14px; }
.home-actions { display:flex; align-items:center; gap:21px; margin-top:27px; }
.home-index { position:relative; z-index:1; display:flex; min-width:185px; flex-direction:column; gap:15px; padding:23px 0 23px 24px; border-left:1px solid var(--line-strong); color:#AAB6BF; }
.home-index span { display:flex; align-items:center; gap:8px; font-size:9px; letter-spacing:.13em; }
.home-index i { width:4px; height:4px; border-radius:50%; background:var(--gold); }
.index-rule { width:100%; height:1px; margin:6px 0; background:var(--line); }
.home-index small { color:#7F8F9A; font-size:8px; line-height:1.8; letter-spacing:.17em; }
.community-ribbon { display:grid; grid-template-columns:repeat(3,1fr) 1.4fr; align-items:center; min-height:70px; border-bottom:1px solid var(--line); }
.community-ribbon span { display:flex; align-items:baseline; gap:8px; color:#93A2AD; font-size:10px; }
.community-ribbon b { color:#E4E9EC; font:22px var(--serif); }
.community-ribbon .ribbon-mark { justify-content:flex-end; color:#7C8B96; font-size:8px; letter-spacing:.15em; }
.ribbon-mark i { color:var(--gold); font-style:normal; }
.member-progress-strip { display:grid; grid-template-columns:auto minmax(100px,1fr) auto; align-items:center; gap:24px; margin:24px 0; padding:17px 20px; border:1px solid var(--line); background:#09151E; }
.member-progress-strip>div:first-child { display:grid; grid-template-columns:auto auto; align-items:center; gap:2px 15px; }
.member-progress-strip .eyebrow { grid-column:1/-1; }
.member-progress-strip strong { font:19px var(--serif); }
.member-progress-strip small { color:var(--muted); font-size:9px; }
.member-progress-strip>a { color:var(--gold); font-size:10px; }
.progress-track,.prediction-track { height:3px; overflow:hidden; background:#22313B; }
.progress-track i,.prediction-track i { display:block; height:100%; background:var(--gold); transition:width .5s ease; }
.home-content-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(265px,.8fr); gap:clamp(28px,5vw,72px); margin-top:65px; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:12px; margin:0 0 18px; }
.section-heading h2 { margin:5px 0 0; }
.section-link { color:#AFC1CE; font-size:10px; }
.section-link span { color:var(--gold); }
.discussion-feature { display:grid; grid-template-columns:42px minmax(0,1fr) 24px; gap:13px; padding:21px 0; border-top:1px solid var(--line); }
.discussion-index { padding-top:1px; color:#687A87; font:15px var(--serif); }
.discussion-main { min-width:0; }
.discussion-meta { display:flex; align-items:center; gap:11px; color:#7E8E99; font-size:9px; }
.discussion-meta a { color:#D9E0E4; font-size:10px; font-weight:650; }
.discussion-topic { display:block; margin:7px 0 5px; color:#F0F2F3; font:21px/1.25 var(--serif); }
.discussion-topic span { color:var(--gold); }
.discussion-main>p { margin:0; color:#A0ADB6; font-size:12px; }
.discussion-foot { display:flex; justify-content:space-between; margin-top:12px; color:#83929E; font-size:9px; }
.discussion-foot a { color:var(--gold); }
.context-trigger { width:25px; height:25px; border:0; color:#98A7B2; background:none; cursor:pointer; }
.leaderboard-list { border-top:1px solid var(--line); }
.leaderboard-row { display:grid; grid-template-columns:26px 32px minmax(0,1fr) auto; align-items:center; gap:10px; padding:13px 0; border-bottom:1px solid var(--line); color:#EDF0F2; }
.leader-rank { color:#70828F; font:14px var(--serif); }
.leader-avatar { display:grid; width:30px; height:30px; place-items:center; overflow:hidden; border:1px solid var(--line-strong); border-radius:50%; color:var(--gold); background:#142430; font-size:10px; }
.leader-avatar img { width:100%; height:100%; object-fit:cover; }
.leader-detail { display:grid; gap:2px; }
.leader-detail b { overflow:hidden; color:#E2E8EC; font-size:10px; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }
.leader-detail small,.leaderboard-row>strong small { color:#80909C; font-size:8px; font-weight:400; }
.leaderboard-row>strong { color:var(--gold); font:15px var(--serif); }
.aside-callout { margin-top:28px; padding:22px; border-left:2px solid var(--gold); background:#0B1822; }
.aside-callout h3 { margin:13px 0 8px; }
.aside-callout p { color:#9AA8B3; font-size:11px; }
.aside-callout a { color:var(--gold); font-size:10px; }
.empty-editorial { display:flex; align-items:center; gap:18px; padding:22px 0; border-top:1px solid var(--line); }
.empty-editorial>span { color:var(--gold); font:24px var(--serif); }
.empty-editorial h3 { margin:0 0 3px; }
.empty-editorial p { margin:0; color:#92A0AA; font-size:11px; }
.empty-editorial>a { margin-left:auto; color:var(--gold); font-size:10px; white-space:nowrap; }
.community-cta { margin-top:72px; padding:38px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.community-cta h2 { margin:7px 0 6px; }
.community-cta p { color:#9AA8B3; font-size:12px; }
.community-cta .btn { margin-top:7px; }
.matches-heading { display:flex; align-items:end; justify-content:space-between; gap:30px; margin:17px 0 30px; }
.matches-heading h1 { margin:12px 0 7px; }
.matches-heading p { margin:0; color:#9AA8B3; font-size:12px; }
.matches-search { display:flex; width:min(330px,40vw); align-items:center; gap:10px; border-bottom:1px solid var(--line-strong); }
.matches-search span { color:#8696A2; font-size:18px; }
.matches-search input { width:100%; height:42px; border:0; outline:0; color:#F1F4F6; background:transparent; font-size:11px; }
.matches-search button { border:0; color:var(--gold); background:none; cursor:pointer; }
.match-count-strip { display:flex; gap:27px; margin:0 0 6px; border-bottom:1px solid var(--line); }
.match-count-strip>a { display:flex; align-items:center; gap:7px; padding:12px 0; border-bottom:2px solid transparent; color:#8D9BA6; font-size:10px; }
.match-count-strip>a.active { border-color:var(--gold); color:#F0F2F4; }
.match-count-strip b { color:var(--gold); font-size:9px; }
.live-pulse { display:inline-block; width:6px; height:6px; border-radius:50%; background:#EF806C; box-shadow:0 0 0 3px rgba(239,128,108,.12); animation:pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow:0 0 0 6px rgba(239,128,108,0); } }
.fixture-row { display:grid; grid-template-columns:minmax(95px,.7fr) minmax(250px,1.8fr) minmax(120px,.8fr) minmax(125px,1fr); align-items:center; gap:20px; min-height:111px; padding:19px 13px; border-bottom:1px solid var(--line); transition:background .18s ease; }
.fixture-row:hover { background:rgba(145,190,228,.035); }
.fixture-competition { display:flex; flex-direction:column; gap:10px; color:#8796A1; font-size:9px; }
.fixture-status { display:inline-flex; width:max-content; align-items:center; gap:6px; padding:4px 7px; border:1px solid var(--line); color:#A8B5BE; font-size:8px; letter-spacing:.08em; }
.fixture-status.is-live { border-color:rgba(239,128,108,.3); color:#F49A89; }
.fixture-status.is-upcoming { color:var(--blue); }
.fixture-status.is-finished { color:#84929C; }
.fixture-teams { display:grid; grid-template-columns:minmax(0,1fr) 45px minmax(0,1fr); align-items:center; gap:10px; }
.fixture-side { display:flex; min-width:0; align-items:center; gap:11px; color:#E5E9EC; font-size:12px; }
.fixture-side b { overflow:hidden; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }
.fixture-side img,.team-monogram { width:36px; height:36px; flex:0 0 36px; object-fit:contain; }
.team-monogram { display:grid; place-items:center; border:1px solid var(--line-strong); border-radius:50%; color:var(--gold); background:#11212D; font:16px var(--serif); }
.fixture-side.away { justify-content:flex-end; text-align:right; }
.fixture-score { display:flex; justify-content:center; gap:6px; color:var(--gold); font:24px var(--serif); }
.fixture-score strong { font-weight:400; }
.fixture-versus { color:#748490; font:11px "Segoe UI",sans-serif; letter-spacing:.12em; }
.fixture-time { color:#94A2AC; text-align:center; font-size:9px; }
.fixture-time span { color:#F19A88; }
.fixture-actions { display:flex; flex-direction:column; align-items:flex-end; gap:7px; }
.fixture-detail { color:#BAC8D1; font-size:9px; }
.fixture-detail span { color:var(--gold); }
.prediction-form { display:flex; align-items:center; gap:6px; }
.prediction-form select,.match-prediction-form select { max-width:125px; height:31px; padding:4px 7px; }
.prediction-submit { padding:7px 9px; border:1px solid rgba(237,202,158,.45); color:var(--gold); background:transparent; font-size:8px; cursor:pointer; }
.prediction-submit:hover { background:rgba(237,202,158,.09); }
.modern-pagination { justify-content:space-between; margin:23px 0; }
.modern-pagination a { color:var(--gold); font-size:10px; }
.match-hero { padding:20px clamp(18px,4vw,44px) 0; border:1px solid var(--line); background:linear-gradient(118deg,#0B1923,#0B151E 55%,#101E28); }
.breadcrumbs { display:flex; gap:10px; margin:0 0 18px; color:#84939E; font-size:9px; }
.breadcrumbs a { color:#BBC9D2; }
.match-hero-top,.match-hero-bottom { display:flex; align-items:center; justify-content:space-between; color:#8D9BA5; font-size:9px; }
.match-hero-teams { display:grid; grid-template-columns:1fr minmax(130px,.55fr) 1fr; align-items:center; gap:20px; padding:34px 0; }
.match-hero-team { display:flex; flex-direction:column; align-items:center; gap:13px; text-align:center; }
.match-hero-team img,.match-hero-team .team-monogram { width:64px; height:64px; object-fit:contain; }
.match-hero-team h1 { margin:0; font:24px var(--serif); letter-spacing:-.01em; }
.match-hero-score { display:flex; justify-content:center; align-items:center; gap:10px; color:var(--gold); font:42px var(--serif); }
.match-hero-score strong { font-weight:400; }
.match-hero-score small { position:absolute; margin-top:87px; color:#A1AEB7; font:10px "Segoe UI",sans-serif; white-space:nowrap; }
.match-hero-bottom { padding:12px 0; border-top:1px solid var(--line); color:#8796A0; font-size:8px; letter-spacing:.12em; }
.match-hero-bottom i { color:var(--gold); font-style:normal; }
.match-hero-bottom a { color:var(--gold); letter-spacing:0; }
.match-content-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(245px,.72fr); align-items:start; gap:34px; margin-top:43px; }
.count-inline { color:#8B9AA5; font:13px "Segoe UI",sans-serif; }
.comment-form,.prediction-panel { padding:20px; border:1px solid var(--line); background:#09151E; }
.comment-form { margin:20px 0; }
.comment-form-label { display:flex; align-items:center; gap:9px; margin-bottom:13px; color:#D7E0E6; font-size:10px; }
.comment-form-label small { margin-left:auto; color:#85949F; }
.comment-form-label small button { border:0; color:var(--gold); background:none; cursor:pointer; }
.comment-form textarea,.report-form textarea { width:100%; resize:vertical; border:1px solid var(--line); padding:12px; color:#E8EDF0; background:#07111A; font-size:11px; }
.comment-form-bottom { display:flex; justify-content:space-between; align-items:center; margin-top:10px; color:#81909B; font-size:9px; }
.comment-form-bottom .btn { min-height:34px; }
.guest-action-prompt { margin:20px 0; padding:19px; border-left:2px solid var(--gold); background:#0A161F; }
.guest-action-prompt p { margin:5px 0 14px; color:#A4B0B8; font-size:11px; }
.guest-action-prompt .text-link { margin-left:12px; }
.discussion-entry { display:grid; grid-template-columns:35px minmax(0,1fr); gap:12px; padding:20px 0; border-top:1px solid var(--line); }
.discussion-reply { display:grid; grid-template-columns:27px minmax(0,1fr); gap:9px; margin:16px 0 0 17px; padding:12px 0 0; border-top:1px solid rgba(181,207,226,.08); }
.comment-avatar { display:grid; width:33px; height:33px; place-items:center; border:1px solid var(--line-strong); border-radius:50%; color:var(--gold); background:#10212D; font:14px var(--serif); }
.comment-avatar.small-avatar { width:26px; height:26px; font-size:11px; }
.comment-body { min-width:0; }
.comment-content { margin:8px 0 10px; color:#D0D9DF; font-size:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.comment-actions { display:flex; align-items:center; gap:13px; }
.like-form { display:inline-flex; }
.like-button,.like-count-static,.inline-action { display:inline-flex; align-items:center; gap:5px; padding:2px 0; border:0; color:#91A0AA; background:none; font-size:9px; cursor:pointer; }
.like-button.is-liked { color:var(--gold); cursor:default; }
.like-button:disabled { opacity:1; }
.inline-action:hover { color:var(--gold); }
.match-aside { position:sticky; top:100px; }
.prediction-panel h2 { margin:7px 0 21px; }
.prediction-stat { margin:13px 0; }
.prediction-stat>div:first-child { display:flex; justify-content:space-between; margin-bottom:6px; color:#C6D0D7; font-size:9px; }
.prediction-stat b { color:var(--gold); font-size:9px; }
.prediction-stat:nth-of-type(2) i { background:#91BEE4; }
.prediction-stat:nth-of-type(3) i { background:#CDAE88; }
.prediction-panel>small { display:block; margin-top:12px; color:#85949F; font-size:9px; }
.match-prediction-form { display:grid; gap:9px; margin-top:21px; padding-top:19px; border-top:1px solid var(--line); }
.match-prediction-form label { color:#D3DDE3; font-size:10px; }
.match-prediction-form select { max-width:none; width:100%; }
.match-prediction-form .btn { min-height:36px; }
.prediction-signin { margin-top:20px; padding-top:16px; border-top:1px solid var(--line); }
.prediction-signin p,.prediction-signin a { font-size:10px; }
.prediction-signin a { color:var(--gold); }
.aside-note { margin-top:15px; padding:15px; border-left:1px solid var(--line-strong); }
.aside-note p { margin:6px 0 0; color:#84939E; font-size:10px; }
.chat-sidebar { width:var(--chat-width); border-left:1px solid var(--line-strong); background:#07121A; box-shadow:none; }
.chat-header { min-height:76px; padding:0 17px; border-bottom:1px solid var(--line); background:#091721; }
.chat-brand b { color:#ECEFF1; font:18px var(--serif); }
.chat-brand strong { color:#84939F; font-size:8px; letter-spacing:.16em; text-transform:uppercase; }
.chat-live-dot { width:7px; height:7px; border-radius:50%; background:#82C6A2; box-shadow:0 0 0 4px rgba(130,198,162,.1); }
.chat-connection { color:#80909B; font-size:8px; }
.chat-presence { min-height:37px; padding:0 17px; border-bottom:1px solid var(--line); background:#08141D; }
.chat-presence>span:first-child { color:#99A7B1; font-size:9px; }
.chat-presence i { background:#80C19B; }
.chat-public { color:#73838E; font-size:7px; letter-spacing:.15em; }
.chat-message-list { padding:12px 15px; }
.chat-message { grid-template-columns:27px minmax(0,1fr); gap:9px; padding:8px 0; border-bottom:1px solid rgba(181,207,226,.07); }
.chat-avatar { width:26px; height:26px; border-radius:50%; color:var(--gold); background:#172934; font-size:10px; }
.chat-message-meta b { color:#DBE2E7; font-size:9px; }
.chat-level { color:#D1B58F; font-size:7px; }
.chat-message-meta time { color:#71818C; font-size:7px; }
.chat-message-content p { color:#B4C0C8; font-size:10px; line-height:1.5; }
.chat-context-menu { position:relative; margin-left:auto; }
.chat-context-menu summary { width:24px; height:22px; list-style:none; color:#82929D; text-align:center; cursor:pointer; }
.chat-context-menu summary::-webkit-details-marker { display:none; }
.context-menu-item { position:absolute; z-index:3; top:24px; right:0; width:118px; padding:8px; border:1px solid var(--line-strong); color:#E7ECEF; background:#10212C; text-align:left; font-size:9px; cursor:pointer; }
.chat-form { padding:13px; border-top:1px solid var(--line); background:#09151E; }
.chat-compose { border:1px solid var(--line-strong); background:#07111A; }
.chat-compose textarea { color:#E8EDF0; font-size:10px; }
.chat-compose button { color:#111B22; background:var(--gold); }
.chat-compose-foot { color:#788893; font-size:7px; }
.guest-blur { filter:blur(3px); opacity:.63; }
.chat-guest-cover { background:linear-gradient(180deg,rgba(7,18,26,.15),#07121A 23%); }
.chat-guest-cover h3 { font:23px var(--serif); }
.chat-guest-cover p { color:#9BA9B3; font-size:10px; }
.chat-guest-cover .btn { min-height:35px; }
.chat-mobile-visible { border:1px solid var(--line-strong); border-radius:4px; color:#18232C; background:var(--gold); font-weight:700; }
.toast-region { position:fixed; z-index:120; top:88px; right:calc(var(--chat-width) + 18px); display:flex; width:min(360px,calc(100vw - 30px)); flex-direction:column; gap:8px; pointer-events:none; }
.toast { display:grid; grid-template-columns:20px minmax(0,1fr) 22px; align-items:center; gap:9px; padding:12px; border:1px solid var(--line-strong); border-left:2px solid #88C5A1; color:#E5EAED; background:#0C1B25; box-shadow:0 12px 30px rgba(0,0,0,.3); font-size:10px; animation:toast-in .2s ease-out; pointer-events:auto; }
.toast-error { border-left-color:#E28D7D; }
.toast-marker { color:#9CD4B1; font-size:12px; }
.toast-error .toast-marker { color:#EAA091; }
.toast-close { border:0; color:#9BA9B2; background:none; font-size:17px; cursor:pointer; }
@keyframes toast-in { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:translateY(0); } }
.report-dialog { width:min(440px,calc(100vw - 28px)); padding:0; border:1px solid var(--line-strong); color:#EFF2F4; background:#0C1A24; box-shadow:0 28px 80px rgba(0,0,0,.55); }
.report-dialog::backdrop { background:rgba(0,0,0,.72); backdrop-filter:blur(3px); }
.report-form { position:relative; padding:29px; }
.report-form h2 { margin:10px 0 6px; }
.report-form p { color:#99A7B1; font-size:11px; }
.report-form label { display:block; margin:18px 0 6px; color:#DCE3E7; font-size:10px; }
.dialog-close { position:absolute; top:15px; right:16px; border:0; color:#9EABB4; background:none; font-size:23px; cursor:pointer; }
.dialog-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:16px; }
.admin-sidebar { position:fixed; z-index:12; top:76px; bottom:0; left:0; display:flex; width:202px; flex-direction:column; gap:3px; padding:22px 13px; border-right:1px solid var(--line); background:#07121A; }
.admin-sidebar-label { margin:0 0 10px 9px; color:#82919C; font-size:8px; font-weight:750; letter-spacing:.15em; }
.admin-sidebar a { padding:9px 10px; border-left:2px solid transparent; color:#9DABB5; font-size:10px; }
.admin-sidebar a:hover { border-color:var(--gold); color:#F1F3F4; background:rgba(145,190,228,.035); }
.admin-shell .site-header { padding-left:225px; }
.admin-shell .page-shell { width:min(1200px,calc(100% - 270px - var(--chat-width))); margin-left:225px; }
.admin-shell .chat-sidebar,.admin-shell #chatMobileOpen { display:none; }
.admin-shell .page-shell { padding-bottom:25px; }
.admin-shell h1 { font-size:42px; }
.admin-shell h2 { font-size:24px; }
.card,.match-card,.demo-seed-card { border:1px solid var(--line); border-radius:3px; background:#0A161F; box-shadow:none; }
.card { padding:19px; }
.table { width:100%; border-collapse:collapse; }
.table th { padding:10px; border-bottom:1px solid var(--line-strong); color:#8A9AA5; text-align:left; font-size:8px; letter-spacing:.1em; text-transform:uppercase; }
.table td { padding:11px 10px; border-bottom:1px solid var(--line); color:#CCD5DB; font-size:10px; }
.admin-nav { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.admin-nav a { padding:8px 11px; border:1px solid var(--line); color:#BAC8D1; font-size:9px; }
.field input,.field select,.search,.toolbar input,.toolbar select,.admin-auth-form input,.prediction-form select,.match-prediction-form select { border:1px solid var(--line-strong); border-radius:2px; color:#E9EDF0; background:#07121A; }
.field label,.admin-auth-form label { color:#C9D3D9; font-size:10px; }
.notice { padding:10px 13px; border:1px solid rgba(130,198,162,.3); border-radius:2px; color:#B7D8C2; background:rgba(130,198,162,.07); font-size:10px; }
.pagination a,.pagination .btn { border-radius:2px; }
.admin-auth-page { display:grid; min-height:100vh; place-items:center; padding:30px; background:radial-gradient(ellipse at 50% 0,rgba(33,79,113,.24),transparent 45%),#050B10; }
.admin-auth-shell { width:min(100%,420px); padding:36px; border:1px solid var(--line-strong); background:#0A161F; box-shadow:0 28px 80px rgba(0,0,0,.25); }
.admin-auth-shell .brand { margin-bottom:50px; }
.admin-auth-label { margin-bottom:10px; color:var(--blue); font-size:8px; letter-spacing:.2em; }
.admin-auth-shell h1 { margin:0 0 10px; font-size:37px; }
.admin-auth-shell>p { margin-bottom:24px; color:#9BA9B3; font-size:11px; }
.admin-auth-form { display:grid; gap:9px; }
.admin-auth-form label { margin-top:7px; }
.admin-auth-form input { width:100%; height:43px; padding:10px; }
.admin-auth-form .btn { margin-top:12px; }
.admin-auth-back,.admin-auth-shell>small { display:block; margin-top:17px; color:#8D9BA5; font-size:9px; }
.admin-auth-shell>small { margin-top:27px; padding-top:13px; border-top:1px solid var(--line); }
.admin-auth-logout { margin-top:12px; }
.validation-summary { margin:10px 0; color:#F0A495; font-size:10px; }
.auth-page { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(320px,.75fr); max-width:950px; min-height:470px; margin:8px auto; border:1px solid var(--line); background:#09151E; }
.auth-story { display:flex; flex-direction:column; justify-content:center; padding:clamp(28px,5vw,61px); border-right:1px solid var(--line); background:linear-gradient(145deg,#10212C,#09151E 74%); }
.auth-story h1 { margin:22px 0 15px; font-size:clamp(40px,4.5vw,58px); }
.auth-story p { max-width:350px; color:#A2AFB8; font-size:12px; }
.auth-story-foot { margin-top:50px; color:#8796A1; font-size:8px; letter-spacing:.12em; }
.auth-story-foot span { margin:0 7px; color:var(--gold); }
.auth-form-panel { align-self:center; padding:clamp(25px,4vw,45px); }
.auth-form-panel h2 { margin:7px 0 3px; font-size:30px; }
.auth-form-panel>p { color:#97A5AF; font-size:11px; }
.auth-form { display:grid; gap:9px; margin-top:23px; }
.auth-form label { margin-top:6px; color:#D7DFE4; font-size:10px; }
.auth-form label small { float:right; color:#84939E; }
.auth-form input { width:100%; height:41px; padding:9px 10px; border:1px solid var(--line-strong); color:#E8EDF0; background:#07111A; }
.auth-form input:focus,.comment-form textarea:focus,.report-form textarea:focus { outline:1px solid rgba(237,202,158,.6); border-color:var(--gold); }
.auth-form .btn { margin-top:10px; }
.auth-form-foot { display:flex; flex-wrap:wrap; gap:6px; margin-top:19px; color:#8998A2; font-size:9px; }
.auth-form-foot a,.auth-admin-link { color:var(--gold); }
.auth-admin-link { display:inline-block; margin-top:20px; font-size:9px; }
.page-intro { max-width:760px; padding:28px 0 35px; }
.page-intro h1 { margin:16px 0 17px; }
.page-intro p { max-width:620px; margin-bottom:22px; color:#A3AFB8; font-size:13px; }
.about-columns { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; padding:28px 0; border-top:1px solid var(--line); }
.about-columns h2 { margin:12px 0 7px; font-size:23px; }
.about-columns p,.contact-note p { color:#9BA9B3; font-size:11px; }
.contact-note { max-width:590px; padding:20px; border-left:2px solid var(--gold); background:#0B1822; }
.contact-note p { margin:6px 0 0; }
.profile-hero { position:relative; display:grid; grid-template-columns:1fr auto; align-items:center; gap:14px 25px; padding:28px; border:1px solid var(--line); background:linear-gradient(110deg,#0C1A24,#08141D); }
.profile-identity { display:flex; align-items:center; gap:17px; }
.profile-identity h1 { margin:4px 0 2px; font-size:38px; }
.profile-identity p { margin:0; color:#9AA8B2; font-size:10px; }
.profile-identity p span { color:var(--gold); }
.profile-level { display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.profile-level strong { color:var(--gold); font:25px var(--serif); }
.profile-level>span:not(.eyebrow) { color:#9AA8B2; font-size:9px; }
.profile-level a { color:#C8D3DA; font-size:9px; }
.profile-bio { grid-column:1/-1; max-width:700px; margin:0; color:#C2CCD2; font-size:12px; }
.profile-owner-tag { position:absolute; right:28px; bottom:17px; color:#8796A1; font-size:7px; letter-spacing:.14em; }
.profile-stat-row { margin:13px 0 30px; }
.profile-stat-row .stat { border-bottom:1px solid var(--line); background:none; }
.profile-content-grid { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(280px,.8fr); gap:34px; }
.profile-prediction-list { border-top:1px solid var(--line); }
.profile-prediction-row { display:grid; grid-template-columns:55px minmax(120px,1fr) 90px 70px; align-items:center; gap:10px; padding:13px 0; border-bottom:1px solid var(--line); color:#9EACB6; font-size:9px; }
.profile-prediction-row b { color:#E1E7EB; font-size:10px; }
.profile-prediction-row b i { color:var(--gold); font-style:normal; }
.profile-prediction-row strong { color:#98A7B1; text-align:right; font-size:9px; }
.profile-prediction-row .result-correct { color:#9BD0AA; }
.profile-prediction-row .result-missed { color:#D99586; }
.profile-activity { margin-top:36px; }
.profile-activity-list { border-top:1px solid var(--line); }
.profile-activity-list>a { display:grid; gap:5px; padding:13px 0; border-bottom:1px solid var(--line); }
.profile-activity-list b { color:#DDE4E8; font:16px var(--serif); }
.profile-activity-list span { color:#9AA8B2; font-size:10px; }
.profile-activity-list small { color:#788994; font-size:8px; }
.profile-settings { padding:18px; border:1px solid var(--line); background:#09151E; }
.profile-settings .section-heading { margin-bottom:14px; }
.profile-settings .section-heading h2 { font-size:23px; }
.profile-settings .field { margin-bottom:11px; }
.profile-settings .field input,.profile-settings .field textarea { width:100%; }
.profile-setting-block { margin-top:21px; padding-top:16px; border-top:1px solid var(--line); }
.profile-setting-block h3 { margin-bottom:11px; font:19px var(--serif); }
.favorite-chips { display:flex; flex-wrap:wrap; gap:6px; }
.favorite-chip { border-radius:2px; color:var(--gold); }
.favorite-add { display:flex; gap:7px; margin-top:10px; }
.favorite-add .search { flex:1; min-width:0; }
.preference-row { display:flex; align-items:center; gap:8px; margin:9px 0; color:#B6C1C8; font-size:10px; }
.preference-row input { accent-color:#D1B58F; }
.notification-list { border-top:1px solid var(--line); }
.notification-row { display:grid; grid-template-columns:88px minmax(0,1fr) auto; align-items:start; gap:17px; padding:17px 4px; border-bottom:1px solid var(--line); }
.notification-row.is-read { opacity:.63; }
.notification-type { padding-top:3px; color:var(--gold); font-size:7px; letter-spacing:.12em; }
.notification-copy a { color:#E6EAED; font-size:11px; }
.notification-copy p { margin:4px 0; color:#9BA8B1; font-size:10px; }
.notification-copy time { color:#788994; font-size:8px; }
.notification-row form { align-self:center; }
.notification-row form .inline-action { color:var(--gold); white-space:nowrap; }
@media(max-width:700px) {
    .auth-page { grid-template-columns:1fr; }
    .auth-story { min-height:250px; padding:27px; border-right:0; border-bottom:1px solid var(--line); }
    .auth-story h1 { margin:15px 0 9px; font-size:42px; }
    .auth-story-foot { margin-top:24px; }
    .auth-form-panel { width:100%; padding:25px; }
    .about-columns { grid-template-columns:1fr; gap:19px; }
    .profile-hero { grid-template-columns:1fr; padding:20px; }
    .profile-identity h1 { font-size:29px; }
    .profile-level { align-items:flex-start; padding-left:82px; }
    .profile-owner-tag { top:23px; right:18px; bottom:auto; }
    .profile-content-grid { grid-template-columns:1fr; }
    .profile-settings { grid-row:1; }
    .profile-prediction-row { grid-template-columns:44px minmax(90px,1fr) 76px; }
    .profile-prediction-row>span:nth-child(3) { display:none; }
    .notification-row { grid-template-columns:1fr; gap:7px; }
    .notification-row form { justify-self:start; }
}
.nav-toggle { display:none; }
@media(max-width:1120px) {
    :root { --chat-width:320px; }
    .page-shell { width:calc(100% - var(--chat-width) - 56px); margin-left:28px; }
    .fixture-row { grid-template-columns:100px minmax(220px,1.7fr) minmax(112px,.8fr) minmax(115px,1fr); gap:12px; }
    .fixture-side { font-size:10px; }
    .admin-shell .page-shell { width:calc(100% - 245px - var(--chat-width)); margin-left:220px; }
}
@media(max-width:900px) {
    :root { --chat-width:0px; }
    .site-header { gap:20px; }
    .page-shell,body.chat-collapsed .page-shell { width:calc(100% - 48px); margin:0 24px; }
    .chat-sidebar { width:min(390px,100vw); transform:translateX(102%); }
    body.chat-drawer-open-mobile .chat-sidebar { width:min(390px,100vw); transform:translateX(0); }
    .chat-mobile-visible { display:flex; }
    .toast-region { right:16px; }
    .fixture-row { grid-template-columns:95px minmax(220px,1fr) minmax(110px,.7fr); }
    .fixture-actions { grid-column:2/-1; flex-direction:row; justify-content:space-between; align-items:center; }
    .match-content-grid { grid-template-columns:minmax(0,1fr) 260px; gap:22px; }
    .home-content-grid { gap:28px; }
    .admin-sidebar { width:175px; }
    .admin-shell .site-header { padding-left:195px; }
    .admin-shell .page-shell { width:calc(100% - 220px); margin-left:195px; }
}
@media(max-width:700px) {
    .site-header { height:65px; justify-content:space-between; padding:0 18px; }
    .nav-toggle { display:flex; width:34px; height:34px; flex-direction:column; justify-content:center; gap:5px; order:3; border:1px solid var(--line); background:transparent; }
    .nav-toggle span { width:15px; height:1px; margin:auto; background:#D8E0E5; }
    .main-nav { position:absolute; top:64px; right:0; left:0; display:none; align-items:stretch; gap:0; padding:9px 18px 14px; border-bottom:1px solid var(--line); background:#08131C; }
    .nav-open .main-nav { display:flex; flex-direction:column; }
    .main-nav a { min-height:40px; }
    .main-nav a:after { display:none; }
    .header-actions { gap:10px; }
    .header-actions .header-link { font-size:9px; }
    .profile-link>span:last-child { display:none; }
    .header-actions .btn { min-height:32px; padding:6px 9px; }
    .page-shell,body.chat-collapsed .page-shell { width:calc(100% - 32px); margin:0 16px; padding-top:25px; }
    .home-intro { min-height:0; padding:34px 23px; }
    .home-intro:after { right:-190px; }
    .home-index { display:none; }
    .home-intro h1 { font-size:45px; }
    .home-intro p { max-width:390px; font-size:12px; }
    .community-ribbon { grid-template-columns:repeat(3,1fr); gap:12px 5px; padding:13px 0; }
    .community-ribbon span { display:block; font-size:8px; line-height:1.5; }
    .community-ribbon b { display:block; font-size:19px; }
    .community-ribbon .ribbon-mark { display:none; }
    .member-progress-strip { grid-template-columns:1fr auto; gap:12px; }
    .member-progress-strip .progress-track { grid-column:1/-1; grid-row:2; }
    .home-content-grid { grid-template-columns:1fr; margin-top:43px; }
    .home-aside { padding-top:21px; border-top:1px solid var(--line); }
    .discussion-topic { font-size:18px; }
    .matches-heading { align-items:flex-start; flex-direction:column; gap:14px; margin-top:4px; }
    .matches-heading h1 { font-size:48px; }
    .matches-search { width:100%; }
    .match-count-strip { gap:17px; overflow-x:auto; }
    .match-count-strip>a { white-space:nowrap; }
    .fixture-row { grid-template-columns:1fr; gap:10px; padding:16px 4px; }
    .fixture-competition { flex-direction:row; justify-content:space-between; align-items:center; }
    .fixture-teams { grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr); }
    .fixture-side { gap:7px; font-size:10px; }
    .fixture-side img,.team-monogram { width:28px; height:28px; flex-basis:28px; }
    .fixture-time { text-align:left; }
    .fixture-actions { grid-column:auto; }
    .match-hero { padding:16px 15px 0; }
    .match-hero-teams { gap:7px; padding:27px 0; }
    .match-hero-team img,.match-hero-team .team-monogram { width:42px; height:42px; }
    .match-hero-team h1 { font-size:16px; }
    .match-hero-score { gap:5px; font-size:33px; }
    .match-hero-score small { margin-top:68px; font-size:8px; }
    .match-hero-bottom { font-size:7px; }
    .match-content-grid { grid-template-columns:1fr; margin-top:30px; }
    .match-aside { position:static; grid-row:1; }
    .prediction-panel { padding:17px; }
    .footer-main { grid-template-columns:1fr; gap:14px; }
    .footer-main .brand { grid-row:auto; }
    .footer-links { gap:10px 16px; }
    .footer-meta { gap:8px; font-size:8px; }
    .admin-sidebar { position:static; display:flex; width:100%; flex-direction:row; overflow-x:auto; padding:8px 12px; border-right:0; border-bottom:1px solid var(--line); }
    .admin-sidebar-label { display:none; }
    .admin-sidebar a { flex:0 0 auto; white-space:nowrap; }
    .admin-shell .site-header { padding:0 16px; }
    .admin-shell .page-shell { width:calc(100% - 32px); margin:0 16px; }
    .admin-shell .admin-nav { display:flex; overflow-x:auto; flex-wrap:nowrap; }
    .admin-shell .admin-nav a { white-space:nowrap; }
    .admin-auth-shell { padding:27px 22px; }
    .toast-region { top:73px; right:11px; }
}
@media(prefers-reduced-motion:reduce) { *,*:before,*:after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; } }


/* Keep chat below the site navigation and collapse it into a right-edge rail. */
.chat-sidebar { top:76px; bottom:0; transform:translateX(0); transition:width .3s cubic-bezier(.2,.8,.2,1); }
.chat-head-tools button { display:grid; place-items:center; flex:0 0 28px; padding:0; border:1px solid var(--line-strong); border-radius:3px; color:var(--blue-light); background:#10212C; font-size:18px; line-height:1; cursor:pointer; }
.chat-head-tools button:hover { border-color:var(--gold); color:var(--gold); }
.chat-head-tools button:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
body.chat-collapsed .chat-sidebar { width:54px; transform:translateX(0); }
body.chat-collapsed .chat-sidebar > :not(.chat-header) { visibility:hidden; opacity:0; pointer-events:none; }
body.chat-collapsed .chat-header { justify-content:center; padding:0 4px; }
body.chat-collapsed .chat-brand,body.chat-collapsed .chat-connection { display:none; }
body.chat-collapsed .chat-head-tools { width:100%; justify-content:center; }
.admin-shell .chat-sidebar { display:none; }
@media(max-width:900px) {
    .chat-sidebar { top:76px; bottom:0; width:min(390px,100vw); transform:translateX(0); }
    body.chat-collapsed .chat-sidebar { width:54px; transform:translateX(0); }
}
@media(max-width:700px) { .chat-sidebar { top:65px; } }

.admin-shell .page-shell { width:calc(100% - 270px); max-width:none; margin:0 45px 0 225px; }
@media(max-width:1120px) and (min-width:801px) { .admin-shell .page-shell { width:calc(100% - 245px); margin:0 25px 0 220px; } }
@media(max-width:800px) { .admin-shell .page-shell { width:calc(100% - 32px); margin:0 16px; } }

.chat-widget-launcher { display:none; }
.admin-shell .chat-widget-launcher { display:none!important; }
@media(max-width:800px) {
    .chat-sidebar { top:auto; right:14px; bottom:76px; width:min(380px,calc(100vw - 28px)); height:min(68vh,520px); max-height:calc(100vh - 100px); min-height:240px; border:1px solid var(--line-strong); box-shadow:0 18px 55px rgba(0,0,0,.48); }
    body.chat-collapsed .chat-sidebar { display:none; width:min(380px,calc(100vw - 28px)); }
    body:not(.chat-collapsed) .chat-sidebar { display:flex; width:min(380px,calc(100vw - 28px)); }
    body.chat-collapsed .chat-sidebar > :not(.chat-header) { visibility:visible; opacity:1; pointer-events:auto; }
    body.chat-collapsed .chat-header { justify-content:space-between; padding:0 14px; }
    body.chat-collapsed .chat-brand,body.chat-collapsed .chat-connection { display:flex; }
    body.chat-collapsed .chat-head-tools { width:auto; justify-content:flex-end; }
    .chat-widget-launcher { position:fixed; z-index:41; right:15px; bottom:15px; display:flex; min-width:104px; height:46px; align-items:center; justify-content:center; gap:9px; padding:0 14px; border:1px solid rgba(237,202,158,.5); border-radius:24px; color:#101820; background:var(--gold); box-shadow:0 8px 26px rgba(0,0,0,.32); font-size:12px; cursor:pointer; }
    .chat-widget-launcher span { font-size:17px; }
    .chat-widget-launcher i { width:7px; height:7px; border-radius:50%; background:#4FAF7B; }
    .chat-widget-launcher:focus-visible { outline:2px solid var(--blue-light); outline-offset:3px; }
    body:not(.chat-collapsed) .chat-widget-launcher { display:none; }
}