/* panels.css -- start-screen setup, workout panel, results screen and shooting-range overlay */

.setup { text-align: left; margin: 14px 0 8px; }
.setup > label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); font-weight: 600; }
.setup select { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: 0;
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--edge); background: rgba(255,255,255,0.06); color: var(--text); }
.setup select option { background: #0b1324; }
.desc { margin: 6px 0 10px !important; font-size: 12px !important; }
.settings { display: flex; gap: 10px; justify-content: space-between; }
.settings label { flex: 1; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.settings input { display: block; width: 100%; margin-top: 4px; font: inherit; font-size: 15px; font-weight: 600; padding: 7px 8px; border-radius: 8px;
  border: 1px solid var(--edge); background: rgba(255,255,255,0.06); color: var(--text); }
.fine { font-size: 11px !important; opacity: 0.75; }
#history { margin-top: 12px; text-align: left; }
.hist-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
button.hist { display: grid; grid-template-columns: 1fr auto; width: 100%; margin: 4px 0; padding: 8px 12px; text-align: left; font-weight: 500; }
button.hist b { grid-row: span 2; align-self: center; font-size: 16px; }
button.hist i { font-style: normal; font-size: 11px; color: var(--muted); }

/* workout panel */
#wo { top: 84px; left: 50%; transform: translateX(-50%); width: min(420px, calc(100% - 32px)); padding: 10px 14px; }
.wo-top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.wo-top b { font-size: 22px; font-variant-numeric: tabular-nums; }
.wo-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.1); margin: 8px 0 6px; overflow: hidden; }
.wo-bar div { height: 100%; width: 0; background: var(--accent); transition: width 0.3s; }
.wo-bottom { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; }
#wo.work .wo-bar div { background: var(--red); }
#wo.rest .wo-bar div { background: var(--green); }
.intarget { color: var(--green) !important; }
.offtarget { color: var(--red) !important; }
.zbadge { display: inline-block; font-style: normal; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 6px; margin-right: 6px; color: #0b1324; }

/* results */
#results { position: fixed; inset: 0; overflow-y: auto; padding: 28px max(16px, calc(50% - 520px)); background: rgba(6, 12, 28, 0.92);
  backdrop-filter: blur(8px); z-index: 20; }
.res-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.res-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; }
.res-head h2 { margin: 2px 0; font-size: 54px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.res-sub { color: var(--muted); font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.card { background: var(--panel); border: 1px solid var(--edge); border-radius: 12px; padding: 12px 14px; }
.card span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.card b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.card i { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 4px; }
.block { background: var(--panel); border: 1px solid var(--edge); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.block h3 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.block-head { display: flex; justify-content: space-between; align-items: center; }
.legend span { font-size: 11px; font-weight: 600; margin-left: 12px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 3px; margin-right: 5px; vertical-align: middle; }
.lg-w::before { background: #fbbf24; }
.lg-h::before { background: #ef4444; }
.lg-v::before { background: #60a5fa; }
.lg-e::before { background: #94a3b8; }
#resChart { width: 100%; height: 240px; display: block; }
.zone { display: grid; grid-template-columns: 150px 1fr 60px; align-items: center; gap: 10px; font-size: 13px; margin: 6px 0; }
.zone .bar { height: 10px; background: rgba(255,255,255,0.06); border-radius: 5px; overflow: hidden; }
.zone .bar div { height: 100%; border-radius: 5px; }
.zone b { text-align: right; font-variant-numeric: tabular-nums; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 4px 6px; }
td { padding: 5px 6px; border-top: 1px solid var(--edge); }
tr.best td { color: var(--green); font-weight: 700; }
tr.worst td { color: var(--red); }
tr.dim td { color: var(--muted); }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } .res-head h2 { font-size: 40px; } }

/* shooting range overlay */
#range { position: fixed; inset: 0; z-index: 15; background: rgba(2, 6, 23, 0.35); }
#range canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
#range .title { position: absolute; top: 18%; left: 50%; transform: translateX(-50%); z-index: 1; font-size: 22px; font-weight: 800;
  letter-spacing: 0.12em; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
#range .info { position: absolute; bottom: 18%; left: 50%; transform: translateX(-50%); z-index: 1; font-size: 14px; font-weight: 600;
  color: #e2e8f0; background: rgba(9,20,44,0.8); padding: 8px 16px; border-radius: 999px; white-space: nowrap; }

/* course picker button + folder browser */
.course-btn { display: grid; grid-template-columns: 1fr auto; width: 100%; margin: 6px 0 4px; padding: 10px 12px; text-align: left; }
.course-btn span { grid-column: 1; font-size: 11px; color: var(--muted); font-weight: 600; }
.course-btn b { grid-column: 1; font-size: 15px; }
.course-btn i { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; color: var(--accent); font-size: 13px; }
#browser { position: fixed; inset: 0; z-index: 30; background: rgba(4, 10, 24, 0.7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cb-panel { width: min(980px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(9,20,44,0.97), rgba(9,20,44,0.93));
  border: 1px solid var(--edge); border-radius: 18px; box-shadow: 0 20px 60px rgba(2,6,23,0.5); }
.cb-head { display: flex; gap: 12px; align-items: center; padding: 18px 20px 12px; border-bottom: 1px solid var(--edge); }
.cb-head h2 { margin: 0; font-size: 20px; white-space: nowrap; }
.cb-search { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--edge); background: rgba(255,255,255,0.06); color: var(--text); }
.cb-close { margin: 0; padding: 8px 12px; }
.cb-body { overflow-y: auto; padding: 16px 20px 20px; }
.cb-tabs { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: 6px; padding: 12px 20px 0; }
.cb-tab { margin: 0; padding: 7px 13px; border-radius: 999px; white-space: nowrap; font-size: 13px; font-weight: 700; background: rgba(255,255,255,0.05); color: var(--muted); border: 1px solid transparent; }
.cb-tab small { margin-left: 6px; font-size: 11px; opacity: 0.7; }
.cb-tab.on { background: var(--accent); color: #06122a; }
.cb-filters { display: flex; flex-shrink: 0; gap: 6px; flex-wrap: wrap; padding: 10px 20px 0; }
.cb-chip { margin: 0; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: transparent; color: var(--muted); border: 1px solid var(--edge); }
.cb-chip.on { color: var(--text); border-color: var(--accent); background: rgba(94,200,242,0.12); }
.cb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cb-race { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0 0 12px; overflow: hidden; text-align: left; font-weight: 500; border-radius: 14px; }
.cb-prof { display: block; width: 100%; height: 64px; background: linear-gradient(180deg, rgba(94,200,242,0.10), rgba(94,200,242,0)); }
.cb-prof path { fill: rgba(94,200,242,0.35); stroke: var(--accent); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.cb-name { display: flex; gap: 8px; align-items: baseline; padding: 0 14px; }
.cb-flag { font-size: 16px; line-height: 1; }
.cb-name b { font-size: 14.5px; line-height: 1.25; }
.cb-meta { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 14px; font-size: 12px; color: var(--muted); }
.cb-meta span:first-child { color: var(--accent); font-weight: 700; }
.cb-tag, .cb-now { position: absolute; top: 8px; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.cb-tag { right: 8px; }
.cb-tag.free { background: #16a34a; color: #fff; }
.cb-tag.plus { background: #f59e0b; color: #111827; }
.cb-now { left: 8px; background: var(--accent); color: #06122a; }
.cb-race.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.cb-empty { color: var(--muted); }

/* SkiErg block (left panel) */
.erg-head { display: flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.erg-dot { width: 9px; height: 9px; border-radius: 50%; background: #475569; }
.erg-dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.erg-dot.wait { background: var(--accent); }
.erg-main { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--edge); }
.erg-main .big { font-size: 40px; }
#left { min-width: 280px; }
.row.trail { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--edge); }
.row.trail b { font-size: 18px; }

/* in-race menu */
#menuBtn { position: fixed; top: 16px; left: 50%; transform: translateX(calc(-50% + 230px)); z-index: 12; margin: 0; padding: 8px 14px;
  background: var(--panel); border: 1px solid var(--edge); border-radius: 999px; font-size: 13px; }
#menu { position: fixed; inset: 0; z-index: 25; background: rgba(4, 10, 24, 0.6); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; }
.menu-panel { width: min(380px, calc(100% - 32px)); padding: 24px; border-radius: 18px; text-align: center; border: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(9,20,44,0.97), rgba(9,20,44,0.92)); box-shadow: 0 20px 60px rgba(2,6,23,0.5); }
.menu-panel h2 { margin: 0 0 4px; font-size: 22px; }
.menu-panel p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.menu-panel button { display: block; width: 100%; margin: 8px 0; }
button.danger { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); color: #fecaca; }

/* settings */
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.settings-row span { font-size: 12px; color: var(--muted); text-align: left; }
.settings-row button { margin: 0; white-space: nowrap; }
#settingsDlg { position: fixed; inset: 0; z-index: 32; background: rgba(4,10,24,0.7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.st-panel { width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(9,20,44,0.97), rgba(9,20,44,0.93)); box-shadow: 0 20px 60px rgba(2,6,23,0.5); }
.st-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 8px; }
.st-head h2 { margin: 0; font-size: 20px; }
.st-tabs { display: flex; gap: 6px; padding: 0 20px 10px; border-bottom: 1px solid var(--edge); }
.st-tabs button { margin: 0; padding: 8px 14px; font-size: 13px; }
.st-tabs button.on { background: var(--blue); border-color: transparent; }
.st-body { overflow-y: auto; padding: 14px 20px; }
.st-field { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 4px 12px; margin: 10px 0; font-size: 13px; color: var(--muted); }
.st-field > span { font-weight: 600; }
.st-field input, .st-field select { font: inherit; font-size: 14px; color: var(--text); background: rgba(255,255,255,0.06); border: 1px solid var(--edge);
  border-radius: 8px; padding: 7px 9px; width: 100%; max-width: 240px; }
.st-field select option { background: #0b1324; }
.st-field i { grid-column: 2; font-style: normal; font-size: 11px; opacity: 0.8; }
.st-zones { margin-top: 10px; }
.st-zones input { width: 64px; font: inherit; color: var(--text); background: rgba(255,255,255,0.06); border: 1px solid var(--edge); border-radius: 6px; padding: 4px 6px; }
.st-reset { margin: 10px 0 0; font-size: 12px; padding: 7px 12px; }
.st-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--edge); }
.st-foot button { margin: 0; }

/* pass picker, own passes, target */
.mode-row { display: flex; gap: 6px; align-items: stretch; }
.mode-row select { flex: 1; min-width: 0; }
.mode-row button { margin: 0; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.target-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 4px; flex-wrap: wrap; }
.target-row select, .target-row input { font: inherit; color: var(--text); background: rgba(255,255,255,0.06); border: 1px solid var(--edge); border-radius: 8px; padding: 6px 8px; }
.target-row select option { background: #0b1324; }
.target-row input { width: 130px; }
#passDlg { position: fixed; inset: 0; z-index: 32; background: rgba(4,10,24,0.7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pb-rows { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.pb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; padding: 8px 10px; border: 1px solid var(--edge); border-radius: 10px; background: rgba(255,255,255,0.03); }
.pb-row b { min-width: 96px; }
.pb-row input, .pb-row select { font: inherit; color: var(--text); background: rgba(255,255,255,0.06); border: 1px solid var(--edge); border-radius: 6px; padding: 4px 6px; }
.pb-row select option { background: #0b1324; }
.pb-rest { color: var(--muted); }
.pb-tools { margin-left: auto; display: flex; gap: 4px; }
.pb-tools button, .pb-add button { margin: 0; padding: 4px 9px; font-size: 12px; }
.pb-add { display: flex; flex-wrap: wrap; gap: 6px; }

.force { margin-top: 4px; }
.force canvas { width: 100%; height: 46px; display: block; border-radius: 6px; background: rgba(255,255,255,0.04); }

/* today, plans, statistics */
.today { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid rgba(251,191,36,0.35); background: rgba(251,191,36,0.08); font-size: 13px; text-align: left; }
.today:empty { display: none; }
.today i { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.today button, .extra-row button { margin: 0; padding: 6px 12px; font-size: 13px; }
.extra-row { display: flex; gap: 8px; margin-top: 8px; }
.extra-row button { flex: 1; }
.dlg { position: fixed; inset: 0; z-index: 32; background: rgba(4,10,24,0.7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dlg .st-panel { width: min(760px, 100%); }
.dlg h3 { margin: 16px 0 8px; font-size: 14px; }
.sx-level b { font-size: 18px; }
.sx-level span { display: block; font-size: 12px; color: var(--muted); }
.sx-xp { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); margin: 6px 0; overflow: hidden; }
.sx-xp i { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.sx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.sx-card { padding: 10px 12px; border: 1px solid var(--edge); border-radius: 10px; background: rgba(255,255,255,0.03); }
.sx-card h4 { margin: 0 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.sx-card b { font-size: 20px; display: block; }
.sx-card span { display: block; font-size: 12px; color: var(--muted); }
.sx-bars { display: flex; align-items: flex-end; gap: 4px; height: 110px; padding-bottom: 16px; }
.sx-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.sx-bar i { width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #fbbf24, rgba(251,191,36,0.35)); }
.sx-bar span { position: absolute; bottom: -16px; font-size: 9px; color: var(--muted); }
.sx-ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sx-ach div { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--edge); opacity: 0.38; filter: grayscale(1); font-size: 12px; }
.sx-ach div.on { opacity: 1; filter: none; border-color: rgba(251,191,36,0.5); background: rgba(251,191,36,0.07); }
.sx-ach em { font-style: normal; font-size: 20px; display: block; }
.sx-ach span { display: block; color: var(--muted); font-size: 11px; }
.pl-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; margin: 6px 0; border: 1px solid var(--edge); border-radius: 10px; }
.pl-card span { display: block; font-size: 12px; color: var(--muted); }
.pl-card button { margin: 0; white-space: nowrap; }
.pl-weeks { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.pl-week { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 8px; }
.pl-week.now { background: rgba(37,99,235,0.18); }
.pl-week b { width: 32px; font-size: 12px; }
.pl-week button { margin: 0; padding: 4px 8px; font-size: 11px; }
.pl-week button.done { background: rgba(34,197,94,0.25); border-color: rgba(34,197,94,0.5); }
.ach-new div { font-size: 14px; margin: 4px 0; }
.ach-new em { font-style: normal; font-size: 20px; margin-right: 6px; }

.remote-info { font-size: 11px; margin-top: 6px; word-break: break-all; }
.target-row select { width: auto; flex: 0 0 auto; }
.target-row input { flex: 1; min-width: 110px; }

/* climb warning above the elevation profile */
#hill { top: 330px; left: 16px; width: 280px; padding: 10px 14px; border-width: 2px; } /* under the SkiErg panel; top set in hud.js */
.hill-top { display: flex; flex-direction: column; gap: 2px; }
.hill-top b { font-size: 15px; }
.hill-top span, #hillHint { font-size: 12px; color: var(--muted); }
#hillHint { margin-top: 4px; color: #fde68a; font-weight: 600; }
#hillAhead { width: 100%; height: 54px; display: block; margin-top: 6px; border-radius: 6px; background: rgba(255,255,255,0.04); }

/* compact start panel: fits a laptop screen, scrolls if it ever has to */
#start { width: min(660px, calc(100% - 32px)); max-height: calc(100vh - 24px); overflow-y: auto; padding: 20px 24px; }
#start h1 { font-size: 24px; }
#start p { margin: 4px 0; }
#start .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; margin-top: 8px; }
#start .grid2 label { display: block; margin: 0 0 4px; }
#start .course-btn { width: 100%; margin: 0; }
#start .mode-row button { padding: 0 10px; font-size: 16px; }
#start .target-row { justify-content: center; }
#start .today { margin-top: 6px; }
.connect-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.connect-row button { margin: 0; }
#start #btnGo { margin: 8px 0 4px; }
.toolbar { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.toolbar button { margin: 0; padding: 6px 10px; font-size: 13px; }
#start .fine { font-size: 11px; }
#start .fine:empty { display: none; }
@media (max-width: 560px) { #start .grid2 { grid-template-columns: 1fr; } }
#start .tagline { margin: 0 0 4px; font-size: 12px; letter-spacing: 0.04em; color: var(--gold, #fbbf24); }

/* Strava */
button.strava { background: #fc4c02; border-color: transparent; color: #fff; }
.st-conn { margin: 6px 0 12px; padding: 10px 12px; border: 1px solid var(--edge); border-radius: 10px; font-size: 13px; line-height: 1.5; }
.st-conn button { margin: 0 0 0 8px; padding: 5px 10px; font-size: 12px; }
button.c2 { background: #0b3d91; border-color: transparent; color: #fff; }
tr.me td { color: #5ec8f2; font-weight: 700; }
.event-info a { color: #5ec8f2; font-weight: 600; }

/* online: chat (chat.js), group ride status (group.js), friends on the top list */
#chat { position: fixed; top: 16px; right: 244px; width: 270px; z-index: 6; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; }
#chat > * { pointer-events: auto; }
#chat .chat-toggle { order: -1; margin: 0; padding: 7px 11px; border-radius: 12px; background: var(--panel); }
#chat .chat-lines { display: flex; flex-direction: column; gap: 4px; width: 100%; }
#chat .chat-line { background: rgba(9, 20, 44, 0.72); border: 1px solid var(--edge); border-radius: 10px; padding: 5px 9px; font-size: 12.5px; line-height: 1.35; color: var(--text); word-wrap: break-word; }
#chat .chat-line b { cursor: pointer; color: #7dd3fc; }
#chat .chat-line.sys b { color: #fbbf24; cursor: default; }
#chat .chat-input { width: 100%; background: var(--panel); border: 1px solid var(--edge); border-radius: 12px; padding: 8px; }
#chat .chat-quick { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
#chat .chat-quick button { margin: 0; padding: 4px 8px; font-size: 12px; border-radius: 8px; }
#chat form { display: flex; gap: 6px; margin: 0; }
#chat form input { flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--edge); background: rgba(255,255,255,0.06); color: var(--text); }
#chat form button { margin: 0; padding: 6px 10px; font-size: 12px; }
.group-info { position: fixed; bottom: 150px; left: 50%; transform: translateX(-50%); z-index: 5; background: rgba(120, 53, 15, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.5); border-radius: 12px; padding: 6px 14px; font-size: 13px; font-weight: 700; color: #fef3c7; white-space: nowrap; }
button.friend { margin: 0; padding: 2px 8px; font-size: 11px; border-radius: 8px; }
.st-field textarea { font: inherit; font-size: 13px; color: var(--text); background: rgba(255,255,255,0.06); border: 1px solid var(--edge); border-radius: 8px; padding: 6px 8px; resize: vertical; }
.st-conn code { font-size: 13px; letter-spacing: 0.04em; background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 6px; }
.st-conn input { font: inherit; font-size: 13px; color: var(--text); background: rgba(255,255,255,0.06); border: 1px solid var(--edge); border-radius: 8px; padding: 5px 8px; width: 230px; margin-top: 6px; }
@media (max-width: 900px) { #chat { right: 16px; top: 64px; width: min(270px, calc(100vw - 32px)); } }
#chat .chat-menu { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; width: 100%; }
#chat .chat-menu button { margin: 0; padding: 4px 9px; font-size: 12px; border-radius: 8px; }
#chat .chat-menu button[data-a="report"] { background: rgba(185, 28, 28, 0.85); color: #fff; }
#chat .chat-terms { font-size: 12.5px; line-height: 1.4; color: var(--text); margin-top: 6px; }
#chat .chat-terms a { color: #7dd3fc; }
#chat .chat-terms button { display: block; margin: 6px 0 0 auto; padding: 5px 10px; font-size: 12px; }
#chat .chat-buttons { order: -1; display: flex; align-items: center; gap: 6px; }
#chat .chat-buttons .chat-toggle { order: 0; }
#chat .chat-mic { margin: 0; padding: 7px 11px; border-radius: 12px; background: var(--panel); }
#chat .chat-voice:not(:empty) { background: rgba(9, 20, 44, 0.8); border: 1px solid var(--edge); border-radius: 10px; padding: 4px 9px; font-size: 12px; color: #fde68a; max-width: 200px; }
.st-panels { margin: 14px 0 6px; padding: 10px 12px; border: 1px solid var(--edge); border-radius: 12px; font-size: 13px; }
.st-panels i { display: block; font-style: normal; font-size: 11px; opacity: 0.8; margin: 2px 0 8px; }
.st-panels > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-bottom: 8px; }
.st-panels label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.st-panels button { margin: 4px 6px 0 0; padding: 6px 12px; font-size: 12px; }

/* SkiRival Plus */
.plus-panel { max-width: 520px; }
.plus-reason { font-weight: 700; color: #fbbf24; }
.plus-on { color: #4ade80; font-weight: 700; }
.plus-list { margin: 8px 0 10px 18px; line-height: 1.6; }
.plus-buy { display: grid; gap: 8px; margin: 10px 0; }
.plus-row { display: flex; gap: 8px; }
.plus-row button { flex: 1; }
.plus-legal a { color: #93c5fd; }
.plus-info { color: #fbbf24; }

.st-danger { margin-top: 8px; background: #7f1d1d; color: #fff; border-color: #b91c1c; }
@media (max-width: 560px) {
  .cb-head { padding: 14px 14px 10px; gap: 8px; } .cb-head h2 { font-size: 17px; }
  .cb-tabs, .cb-filters { padding-left: 14px; padding-right: 14px; } .cb-tab { padding: 6px 10px; font-size: 12px; } .cb-body { padding: 12px 14px 16px; }
}
