/* Staff dashboard. Colors, buttons and fonts come from /style.css. */
.portal { background: var(--ground); color: var(--ink); font-family: var(--font); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.g { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ok { color: var(--online); }
.miss { color: var(--caution); }

/* ---------- Login ---------- */
.p-login { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px;
  background: radial-gradient(1200px 600px at 80% -10%, rgb(255 255 255 / .10), transparent 60%), var(--ground); }
.p-login-card { max-width: 520px; text-align: center; }
.p-login-logo { width: 96px; height: 96px; margin: 0 auto 22px; display: block; }
.p-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--peach); margin: 0 0 10px; font-weight: 700; }
.p-login h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.05; margin: 0 0 14px; font-weight: 850; font-variation-settings: 'wdth' 115; letter-spacing: -.01em; }
.p-login .muted { margin: 0 auto 26px; max-width: 44ch; }
.p-error { color: var(--alert); margin-top: 18px; }

/* ---------- Top bar ---------- */
.p-top { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr minmax(0, 480px) 1fr; align-items: center; gap: 16px;
  padding: 10px 20px; background: rgb(10 10 11 / .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.p-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.p-brand img { width: 32px; height: 32px; flex: none; }
.p-brand b { font-weight: 750; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-palette-btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px 0 14px; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--line-soft); color: var(--faint); font: inherit; font-size: 14px; cursor: pointer; }
.p-palette-btn:hover { border-color: var(--line); color: var(--muted); }
.p-palette-btn span { flex: 1; text-align: center; }
kbd { font-family: var(--mono); font-size: 11.5px; padding: 2px 7px; border-radius: 6px; background: var(--raised); border: 1px solid var(--line); color: var(--muted); }
.p-top-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.p-api { width: 30px; height: 30px; display: grid; place-items: center; }
.p-api i { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.p-api.ok i { background: var(--online); box-shadow: 0 0 0 4px rgb(92 212 155 / .15); }
.p-api.down i { background: var(--alert); box-shadow: 0 0 0 4px rgb(255 111 111 / .15); }
.p-icon-btn { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: none; border: 0; color: var(--muted); cursor: pointer; }
.p-icon-btn:hover { background: var(--surface); color: var(--ink); }
.p-badge { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--peach); color: var(--peach-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.p-user-menu { position: relative; }
#p-user-btn { background: none; border: 0; padding: 2px; border-radius: 50%; cursor: pointer; display: block; }
#p-user-btn img { width: 34px; height: 34px; border-radius: 50%; display: block; background: var(--raised); }
#p-user-btn:hover img { outline: 2px solid var(--line); }
.p-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; min-width: 220px; box-shadow: 0 12px 32px rgb(0 0 0 / .45); z-index: 30; }
.p-menu-head { padding: 8px 11px 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.p-menu-head b, .p-menu-head small { display: block; }
.p-menu-head small { color: var(--muted); font-size: 12.5px; }
.p-menu a, .p-menu button { display: block; width: 100%; text-align: left; padding: 9px 11px; border-radius: 7px; color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; font-size: 14px; cursor: pointer; }
.p-menu a:hover, .p-menu button:hover { background: var(--raised); }

/* ---------- Home: three columns ---------- */
.p-home { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr) minmax(300px, 380px); height: calc(100vh - 59px); }
.p-col { min-width: 0; overflow-y: auto; padding: 20px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.p-mid { border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; }
.p-h { margin: 0; font-size: 17px; font-weight: 750; font-variation-settings: 'wdth' 106; }
.p-block { margin-top: 26px; }
.p-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.p-block-head small { display: block; margin-top: 2px; }
.p-link { color: var(--muted); font-size: 13px; text-decoration: none; font-weight: 600; }
.p-link:hover { color: var(--peach); }
.p-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px 20px; min-width: 0; }

/* Profile */
.p-hey { display: flex; align-items: center; gap: 12px; }
.p-hey h1 { margin: 0; font-size: 21px; font-weight: 800; font-variation-settings: 'wdth' 108; line-height: 1.15; }
.av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; background: var(--raised); }
.av.lg { width: 46px; height: 46px; }
.av-i { display: inline-grid; place-items: center; font-weight: 750; font-size: 13px; color: var(--muted); }
.av-i.lg { font-size: 18px; }
.p-status-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.p-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 750; letter-spacing: .04em; color: var(--muted); }
.p-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--alert); }
.p-status.on { color: var(--online); border-color: rgb(92 212 155 / .35); background: rgb(92 212 155 / .08); }
.p-status.on i { background: var(--online); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(92 212 155 / .5); } 50% { box-shadow: 0 0 0 5px rgb(92 212 155 / 0); } }
.p-quota-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px 16px; }
.p-quota-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 650; }
.p-quota-num { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 10px; flex-wrap: wrap; }
.p-quota-num b { font-size: 30px; font-weight: 850; font-variant-numeric: tabular-nums; font-variation-settings: 'wdth' 110; line-height: 1; }
.p-quota-num span { font-size: 13px; }
.p-quota-card > small { display: block; margin-top: 8px; font-weight: 650; font-size: 13px; }
.p-meter { height: 7px; border-radius: 7px; background: var(--raised); overflow: hidden; }
.p-meter i { display: block; height: 100%; background: var(--peach); border-radius: inherit; transition: width .5s ease; }
.p-meter.ok i { background: var(--online); }

/* Toolbox */
.p-toolbox { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tool { --c: #888; display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 10px; border-radius: 11px; border: 0; cursor: pointer;
  background: var(--c); color: #fff; font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), inset 0 -2px 0 rgb(0 0 0 / .18); transition: transform .12s, filter .12s; }
.tool:hover { filter: brightness(1.08); transform: translateY(-1px); }
.tool:active { transform: translateY(0); filter: brightness(.95); }
.tool.disabled { opacity: .45; cursor: not-allowed; transform: none; }
.t-orange { --c: #E8833A; } .t-purple { --c: #8B5CF6; } .t-blue { --c: #4C6EF5; } .t-green { --c: #22A06B; } .t-pink { --c: #D6457A; } .t-teal { --c: #14A39A; } .t-gold { --c: #C9962B; } .t-indigo { --c: #5B5BD6; }

/* Players */
.p-join { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 14px;
  color: var(--online); background: rgb(92 212 155 / .12); border: 1px solid rgb(92 212 155 / .3); white-space: nowrap; }
.p-join .g { fill: currentColor; stroke: none; width: 14px; height: 14px; }
.p-join:hover { background: rgb(92 212 155 / .2); }
.p-code-row { display: flex; align-items: baseline; gap: 8px; margin: -2px 0 12px; }
.p-code { font: inherit; font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--peach); background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: .04em; }
.p-code:hover { text-decoration: underline; text-underline-offset: 3px; }
.p-players { display: grid; gap: 2px; margin-top: 10px; }
.p-player { display: flex; align-items: center; gap: 9px; padding: 7px 8px; margin: 0 -8px; border-radius: 9px; color: var(--ink); text-decoration: none; min-width: 0; }
.p-player:hover { background: var(--surface); }
.p-pname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; font-size: 14.5px; }
.p-team-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.team-police { background: #4C6EF5; } .team-sheriff { background: #C9A227; } .team-fire { background: #ED4245; } .team-dot { background: #E8833A; } .team-civilian { background: #8D8D8D; } .team-jail { background: #6B4E9B; }
.p-cs { font-family: var(--mono); font-size: 11.5px; color: var(--peach); background: rgb(255 255 255 / .1); padding: 1px 6px; border-radius: 5px; }
.p-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; }
.p-tag.staff { color: var(--online); background: rgb(92 212 155 / .12); }
.p-empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 30px 12px; color: var(--muted); font-size: 13.5px; list-style: none; }
.p-empty .g { width: 26px; height: 26px; color: var(--online); margin-bottom: 4px; }
.p-empty b { color: var(--ink); font-size: 15px; }

input[type="search"], .p-form input, .p-form select, .p-form textarea, .p-palette-input input {
  width: 100%; background: var(--surface); color: var(--ink); border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 9px 12px; font: inherit; font-size: 14px;
}
input[type="search"]:focus, .p-form :is(input, select, textarea):focus { outline: 2px solid rgb(255 255 255 / .45); outline-offset: 0; border-color: transparent; }

/* Live feed */
.p-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--online); text-transform: uppercase; letter-spacing: .08em; }
.p-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--online); animation: pulse 2s infinite; }
.p-feed-tools { display: grid; gap: 10px; margin-bottom: 12px; }
.p-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.p-chips button { background: var(--surface); border: 1px solid var(--line-soft); color: var(--muted); padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; }
.p-chips button:hover { color: var(--ink); }
.p-chips button.on { background: var(--peach); color: var(--peach-ink); border-color: var(--peach); font-weight: 700; }
.p-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.p-feed li:not(.p-empty) { display: flex; align-items: flex-start; gap: 11px; padding: 11px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); animation: rise .25s ease; }
@keyframes rise { from { transform: translateY(4px); opacity: 0; } to { transform: none; opacity: 1; } }
.p-feed p { margin: 0; font-size: 14.5px; line-height: 1.45; min-width: 0; overflow-wrap: anywhere; }
.p-feed time { color: var(--faint); font-size: 12.5px; white-space: nowrap; margin-left: 4px; }
.f-icon { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-weight: 850; font-size: 12px; flex: none; font-family: var(--mono); }
.f-join .f-icon { color: var(--online); background: rgb(92 212 155 / .13); }
.f-leave .f-icon { color: var(--muted); background: var(--raised); }
.f-kill .f-icon { color: var(--alert); background: rgb(255 111 111 / .13); }
.f-cmd .f-icon { color: #9AA8FF; background: rgb(76 110 245 / .16); }
.f-mod .f-icon { color: var(--caution); background: rgb(242 193 94 / .14); }

/* Announcements */
.p-ann-feed { display: grid; gap: 10px; }
.p-ann { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px 16px; }
.p-ann.pinned { border-color: rgb(255 255 255 / .35); background: linear-gradient(180deg, rgb(255 255 255 / .06), transparent 70%), var(--surface); }
.p-ann header { display: flex; align-items: center; gap: 7px; }
.p-ann h3 { margin: 0; font-size: 15px; font-weight: 750; }
.p-ann .pin { width: 15px; height: 15px; color: var(--peach); }
.p-ann-body { font-size: 14px; color: var(--ink-2, var(--ink)); line-height: 1.5; margin-top: 6px; }
.p-ann-body p { margin: 4px 0; }
.p-ann-body ul, .p-ann-body ol { margin: 4px 0; padding-left: 20px; }
.p-ann-body a { color: var(--peach); }
.p-ann-body.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.p-ann footer { margin-top: 8px; color: var(--faint); font-size: 12.5px; }
.p-leaders-wrap { margin-top: 26px; }
.p-leaders { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.p-leaders li { display: grid; grid-template-columns: 18px 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; margin: 0 -8px; border-radius: 9px; }
.p-leaders li.is-me { background: rgb(255 255 255 / .08); }
.p-leaders .pos { color: var(--faint); font-weight: 800; font-size: 12.5px; text-align: center; }
.p-leaders li:first-child .pos { color: var(--peach); }
.p-leaders .who { min-width: 0; }
.p-leaders .who b, .p-leaders .who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-leaders .who b { font-size: 14px; font-weight: 650; }
.p-leaders .who small { color: var(--muted); font-size: 12px; }
.p-leaders .hrs { font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Full pages ---------- */
.p-page { max-width: 1120px; margin: 0 auto; padding: 24px 24px 60px; }
.p-page-head { margin-bottom: 22px; }
.p-page-head h1 { margin: 10px 0 4px; font-size: clamp(26px, 4vw, 34px); font-weight: 850; font-variation-settings: 'wdth' 112; letter-spacing: -.01em; }
.p-page-head p { margin: 0; }
.p-back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.p-back:hover { color: var(--peach); }
.p-back .g { width: 16px; height: 16px; }

#p-lb { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.p-rank h3 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 16px; }
.p-rank h3 i { width: 10px; height: 10px; border-radius: 50%; }
.p-rank ol { list-style: none; margin: 0; padding: 0; }
.p-rank li { display: grid; grid-template-columns: 24px 30px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 7px 8px; margin: 0 -8px; border-radius: 9px; }
.p-rank li.is-me { background: rgb(255 255 255 / .09); outline: 1px solid rgb(255 255 255 / .25); }
.p-rank .pos { text-align: center; color: var(--faint); font-weight: 700; font-size: 13px; }
.p-rank .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14.5px; }
.p-rank .who small { color: var(--peach); font-weight: 500; }
.p-rank .hrs { font-weight: 750; font-variant-numeric: tabular-nums; }
.p-rank .q { font-size: 12.5px; font-weight: 650; min-width: 46px; text-align: right; }

.p-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.p-stats .p-card { padding: 16px 18px; }
.p-stats b { display: block; font-size: 22px; font-weight: 800; margin: 4px 0 2px; font-variation-settings: 'wdth' 110; overflow-wrap: anywhere; }
.p-stats .p-card.warn { border-color: rgb(242 193 94 / .4); }
.p-two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.p-two h3 { margin: 0; font-size: 16px; }
.p-timeline { list-style: none; margin: 0; padding: 0; }
.p-timeline li { position: relative; padding: 12px 0 12px 20px; border-top: 1px solid var(--line-soft); }
.p-timeline li:first-child { border-top: 0; }
.p-timeline li::before { content: ''; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.p-timeline li.on::before, .t-suspension::before, .t-termination::before { background: var(--alert) !important; }
.t-warning.on::before { background: var(--caution) !important; }
.t-promotion::before { background: var(--online) !important; }
.t-demotion::before { background: var(--caution) !important; }
.t-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.t-head time { margin-left: auto; color: var(--faint); font-size: 12.5px; }
.t-head .tag { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--raised); color: var(--muted); }
li.on .tag { background: rgb(255 111 111 / .14); color: var(--alert); }
.p-timeline p { margin: 6px 0 4px; }

.p-docbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.p-docbar input { max-width: 320px; }
.p-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.p-doc { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink); font: inherit; cursor: pointer; min-height: 140px; transition: border-color .15s, transform .15s; }
.p-doc:hover { border-color: rgb(255 255 255 / .45); transform: translateY(-1px); }
.p-doc b { font-size: 16.5px; font-weight: 700; }
.p-doc-cat { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--peach); font-weight: 700; margin: 0; }
.p-doc-go { margin-top: auto; color: var(--muted); font-size: 13px; font-weight: 600; }
.p-reader { max-width: 780px; }
.p-prose { line-height: 1.65; font-size: 15.5px; }
.p-prose h1 { font-size: 30px; margin: 6px 0 14px; line-height: 1.15; font-variation-settings: 'wdth' 112; }
.p-prose h2 { font-size: 21px; margin: 26px 0 8px; }
.p-prose h3 { font-size: 17px; margin: 20px 0 6px; }
.p-prose h4 { font-size: 15px; margin: 16px 0 4px; }
.p-prose a { color: var(--peach); }
.p-prose blockquote { margin: 10px 0; padding: 8px 14px; border-left: 3px solid var(--peach); background: var(--raised); border-radius: 0 8px 8px 0; }
.p-prose code { font-family: var(--mono); background: var(--raised); padding: 1px 5px; border-radius: 5px; font-size: .9em; }
.p-prose hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.p-prose ul, .p-prose ol { padding-left: 22px; }

.p-ann-search { max-width: 360px; margin-bottom: 16px; }
.p-ann-all { display: grid; gap: 12px; max-width: 780px; }
.p-ann-all .p-ann { padding: 18px 20px; }
.p-ann-all .p-ann h3 { font-size: 17px; }
.p-month { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 14px 0 0; }
.p-month:first-child { margin-top: 0; }

/* ---------- Modals, palette, tour ---------- */
.p-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgb(10 5 7 / .72); backdrop-filter: blur(4px); }
.p-modal-card { width: min(480px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 24px 60px rgb(0 0 0 / .5); animation: pop .22s ease; }
.p-modal-card.p-center { text-align: center; padding: 30px 28px 24px; width: min(440px, 100%); }
.p-modal-top { display: flex; align-items: center; justify-content: space-between; }
.p-modal-top h2, .p-center h2 { margin: 0; font-size: 22px; font-weight: 800; font-variation-settings: 'wdth' 110; }
.p-center h2 { margin: 0 0 8px; font-size: 24px; }
.p-x { background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.p-x:hover { color: var(--ink); }
.p-modal-logo { width: 64px; height: 64px; margin: 0 auto 14px; display: block; }
.p-modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.p-form { display: grid; gap: 14px; }
.p-form > p { margin: -4px 0 0; }
.p-form label { display: grid; gap: 7px; font-weight: 600; font-size: 14px; }
.p-form textarea { resize: vertical; min-height: 100px; }
.p-form-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.p-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.p-palette { position: fixed; inset: 0; z-index: 55; background: rgb(10 5 7 / .6); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.p-palette-card { width: min(600px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgb(0 0 0 / .55); overflow: hidden; animation: pop .16s ease; }
.p-palette-input { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
.p-palette-input input { border: 0; background: none; padding: 4px 0; font-size: 16px; outline: none; }
.p-palette-list { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow-y: auto; }
.p-palette-list li[data-i] { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 9px; cursor: pointer; font-size: 14.5px; }
.p-palette-list li[data-i] small { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.p-palette-list li.on { background: var(--raised); }
.p-palette-list li.on span { color: var(--peach); }
.p-pal-group { padding: 10px 12px 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 700; }
.p-pal-none { padding: 18px; color: var(--muted); text-align: center; }

.p-tour { position: fixed; inset: 0; z-index: 60; }
.p-tour-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgb(10 5 7 / .74); outline: 2px solid var(--peach); transition: all .25s ease; pointer-events: none; }
.p-tour-tip { position: fixed; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: 0 18px 44px rgb(0 0 0 / .5); transition: top .25s ease, left .25s ease; }
.p-tour-step { margin: 0 0 4px; color: var(--peach); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.p-tour-tip h3 { margin: 0 0 6px; font-size: 17px; }
.p-tour-tip p { margin: 0; color: var(--muted); font-size: 14.5px; }
.p-tour-actions { display: flex; justify-content: space-between; margin-top: 14px; }

.p-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: var(--raised); border: 1px solid var(--line); border-left: 3px solid var(--online); padding: 12px 16px; border-radius: 10px; max-width: min(520px, calc(100vw - 32px)); box-shadow: 0 12px 30px rgb(0 0 0 / .4); }
.p-toast.bad { border-left-color: var(--alert); }

/* ---------- Smaller screens ---------- */
@media (max-width: 1180px) {
  .p-home { grid-template-columns: minmax(290px, 340px) minmax(0, 1fr); height: auto; }
  .p-col { overflow: visible; }
  .p-right { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; align-items: start; }
  .p-right > .p-block-head { grid-column: 1; }
  .p-right .p-ann-feed { grid-column: 1; }
  .p-right .p-leaders-wrap { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .p-mid { border-right: 0; }
}
@media (max-width: 760px) {
  .p-top { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 10px 14px; }
  .p-brand b { display: none; }
  .p-palette-btn span { text-align: left; }
  .p-palette-btn kbd { display: none; }
  .p-home { grid-template-columns: minmax(0, 1fr); }
  .p-col { padding: 16px; }
  .p-mid { border: 0; border-top: 1px solid var(--line-soft); }
  .p-right { display: block; }
  .p-right .p-leaders-wrap { margin-top: 26px; }
  .p-page { padding: 18px 16px 48px; }
  .p-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .p-two { grid-template-columns: minmax(0, 1fr); }
  .p-form-row { grid-template-columns: minmax(0, 1fr); }
}
.p-palette-input input:focus { outline: none; box-shadow: none; }

/* ---------- Interactive bits ---------- */
button.p-player { width: calc(100% + 16px); background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.p-head { width: 26px; height: 26px; border-radius: 50%; flex: none; background: var(--raised); object-fit: cover; }
.p-head-i { display: grid; place-items: center; font-size: 11px; font-weight: 750; color: var(--muted); }
.f-who { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.f-who:hover { color: var(--peach); text-decoration: underline; text-underline-offset: 3px; }
.p-rank li[data-lb] { cursor: pointer; transition: background .12s; }
.p-rank li[data-lb]:hover, .p-rank li[data-lb]:focus-visible { background: var(--raised); outline: none; }

/* Open staff requests */
.p-requests { margin-bottom: 22px; }
.p-count-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 11px; background: var(--caution); color: #2a1a00; font-size: 12px; font-weight: 850; vertical-align: 2px; }
.p-req { border: 1px solid rgb(242 193 94 / .4); background: linear-gradient(180deg, rgb(242 193 94 / .08), transparent 80%), var(--surface); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; animation: rise .25s ease; }
.p-req-top { display: flex; justify-content: space-between; gap: 10px; }
.p-req-top time { color: var(--faint); font-size: 12.5px; }
.p-req p { margin: 6px 0 8px; font-size: 14.5px; }
.p-req-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12.5px; }
.p-req-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }

/* Side panel */
.p-drawer-back { position: fixed; inset: 0; z-index: 44; background: rgb(10 5 7 / .5); }
.p-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 45; width: min(400px, 100vw); background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: -20px 0 50px rgb(0 0 0 / .4); padding: 24px 22px; overflow-y: auto; transform: translateX(105%); transition: transform .25s cubic-bezier(.2,.8,.2,1); visibility: hidden; }
.p-drawer.open { transform: none; visibility: visible; }
.p-drawer-x { position: absolute; top: 14px; right: 14px; }
.d-head { display: flex; align-items: center; gap: 14px; margin: 6px 40px 16px 0; }
.d-head img, .d-av { width: 56px; height: 56px; border-radius: 50%; background: var(--raised); flex: none; }
.d-av { display: grid; place-items: center; font-weight: 800; font-size: 20px; color: var(--muted); }
.d-head h2 { margin: 0; font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }
.d-head p { margin: 3px 0 0; }
.d-tag { display: inline-block; margin: 0 0 14px; }
.d-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.d-h { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.d-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.d-events li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.d-events .f-icon.f-join { color: var(--online); background: rgb(92 212 155 / .13); }
.d-events .f-icon.f-leave { color: var(--muted); background: var(--raised); }
.d-events .f-icon.f-kill { color: var(--alert); background: rgb(255 111 111 / .13); }
.d-events .f-icon.f-cmd { color: #9AA8FF; background: rgb(76 110 245 / .16); }
.d-events .f-icon.f-mod { color: var(--caution); background: rgb(242 193 94 / .14); }
.d-events time { color: var(--faint); font-size: 12px; white-space: nowrap; }
.d-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.d-stats > div { background: var(--ground); border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px; }
.d-stats b { display: block; font-size: 18px; font-weight: 800; margin-top: 2px; }

/* Confetti */
.p-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.p-confetti i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { top: 105vh; transform: rotate(720deg) translateX(40px); opacity: .9; } }
.p-toast a { color: var(--peach); margin-left: 6px; }

/* ---------- Staff Management ---------- */
.t-red { --c: #C2413A; }
.mg-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.mg-bar input { max-width: 320px; }
.mg-list { display: grid; gap: 22px; }
.mg-rank h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; font-size: 15px; font-weight: 750; }
.mg-rank h2 i { width: 10px; height: 10px; border-radius: 50%; }
.mg-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 8px; }
.mg-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, transform .12s; }
.mg-row:hover { border-color: rgb(255 255 255 / .4); transform: translateY(-1px); }
.mg-row.is-me { outline: 1px solid rgb(255 255 255 / .25); }
.mg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mg-name small { color: var(--peach); font-weight: 500; }
.mg-tags { display: flex; gap: 4px; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.tag.warn { color: var(--caution); background: rgb(242 193 94 / .13); }
.tag.bad { color: var(--alert); background: rgb(255 111 111 / .13); }
.mg-hrs { font-weight: 750; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.mg-box { display: grid; gap: 10px; margin-top: 16px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--ground); }
.mg-box h3 { margin: 0; font-size: 15px; }
.mg-box select, .mg-box input { width: 100%; background: var(--surface); color: var(--ink); border: 1px solid var(--line-soft); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; }
.mg-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: var(--surface); }
.mg-seg button { background: none; border: 0; color: var(--muted); padding: 7px 4px; border-radius: 7px; font: inherit; font-size: 13px; cursor: pointer; }
.mg-seg button.on { background: var(--raised); color: var(--ink); font-weight: 650; }
.btn-danger { background: var(--alert) !important; color: #2a0505 !important; border-color: var(--alert) !important; }
.mg-note { margin: 12px 0 0; padding: 9px 12px; border-radius: 10px; background: rgb(242 193 94 / .1); color: var(--caution); font-size: 13px; }
.mg-tabs { display: flex; gap: 4px; margin: 20px 0 6px; border-bottom: 1px solid var(--line-soft); }
.mg-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 8px 10px; font: inherit; font-size: 13.5px; cursor: pointer; margin-bottom: -1px; }
.mg-tabs button.on { color: var(--ink); border-bottom-color: var(--peach); }
.mg-hist { list-style: none; margin: 0; padding: 0; }
.mg-hist li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.mg-hist li:first-child { border-top: 0; }
.mg-hist li.on b { color: var(--alert); }
.mg-hist p { margin: 4px 0 0; font-size: 14px; }
.p-drawer { width: min(440px, 100vw); }

/* ---------- My stats ---------- */
.st-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.st-hero > img, .st-hero > .av { width: 56px; height: 56px; border-radius: 50%; }
.st-who { flex: 1; min-width: 0; display: grid; }
.st-who b { font-size: 20px; font-weight: 800; }
.st-ring { --p: 0; width: 86px; height: 86px; border-radius: 50%; flex: none; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--surface) 78%, transparent 79% 100%), conic-gradient(var(--online) calc(var(--p) * 1%), var(--raised) 0); }
.st-ring span { font-weight: 850; font-size: 19px; line-height: 1; }
.st-ring small { color: var(--muted); font-size: 10.5px; }
.st-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 10px; align-items: end; margin-top: 10px; }
.st-bar { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.st-col { position: relative; width: 100%; max-width: 46px; height: 150px; background: var(--raised); border-radius: 8px; overflow: hidden; }
.st-col i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--line); border-radius: 8px 8px 0 0; }
.st-bar.met .st-col i { background: var(--online); }
.st-bar.miss .st-col i { background: var(--caution); }
.st-bar.cur .st-col { outline: 2px solid var(--ink); outline-offset: 2px; }
.st-col em { position: absolute; left: -2px; right: -2px; height: 2px; background: var(--ink); opacity: .7; }
.st-bar b { font-size: 13px; }
.st-bar small { color: var(--muted); font-size: 11.5px; line-height: 1.2; }
.st-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 8px; }
.st-badge { display: flex; gap: 10px; align-items: center; background: var(--raised); border-radius: 12px; padding: 10px 12px; }
.st-badge > span { font-size: 24px; }
.st-badge div { display: grid; min-width: 0; }
.p-page .p-card + .p-card, .p-page .p-stats + .p-card { margin-top: 14px; }
/* ---------- LOA ---------- */
.lv-now, .lv-wait { margin-bottom: 14px; border-color: rgb(92 212 155 / .4); }
.lv-wait { border-color: rgb(242 193 94 / .4); }
.lv-now p, .lv-wait p { margin: 6px 0 12px; }
.lv-form { display: grid; gap: 12px; align-content: start; }
.lv-form h3, .lv-h { margin: 0; }
.lv-h { margin-top: 18px; }
.lv-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.lv-form input[type=date], .lv-form textarea { font: inherit; color: var(--ink); background: var(--ground); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; color-scheme: dark; }
.lv-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lv-kinds label { cursor: pointer; position: relative; }
.lv-kinds input { position: absolute; left: 8px; top: 8px; width: 1px; height: 1px; opacity: 0; }
.lv-kinds span { display: grid; gap: 2px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--ground); }
.lv-kinds small { color: var(--muted); font-weight: 500; }
.lv-kinds input:checked + span { border-color: var(--online); background: rgb(92 212 155 / .08); }
.lv-kinds input:focus-visible + span { outline: 2px solid var(--ink); }
.lv-away { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.lv-away li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.lv-away li:first-child { border-top: 0; }
.lv-st { font-weight: 700; white-space: nowrap; }
.lv-active, .lv-scheduled { color: var(--online); } .lv-pending { color: var(--caution); } .lv-denied { color: var(--alert); } .lv-ended, .lv-cancelled { color: var(--muted); }
.p-btn { font: inherit; font-weight: 700; border: 0; border-radius: 10px; padding: 10px 16px; background: var(--ink); color: var(--ground); cursor: pointer; justify-self: start; }
.p-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.p-btn:disabled { opacity: .5; }
@media (max-width: 760px) {
  .st-hero { flex-wrap: wrap; }
  .st-ring { width: 72px; height: 72px; }
  .st-col { height: 110px; }
  .lv-kinds { grid-template-columns: 1fr; }
}
.p-page .p-stats > .p-card, .p-page .p-two > .p-card { margin-top: 0; }
.lv-form[hidden] { display: none; }
/* Plate search */
.ps-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ps-bar input[type="search"] { flex: 1; min-width: 200px; }
.ps-hits { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.ps-stats { display: flex; gap: 18px; margin: 14px 2px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.ps-stats b { color: var(--ink); }
.ps-list { padding: 4px 0; }
.ps-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.ps-row:last-child { border-bottom: 0; }
.ps-row.hit { box-shadow: inset 3px 0 0 #FF6F6F; background: rgb(255 111 111 / .06); }
.ps-row small { display: block; color: var(--muted); font-size: 12.5px; }
.ps-row .ps-why { color: #FF6F6F; }
.ps-row time { color: var(--muted); font-size: 12.5px; }
.ps-plate { font-family: ui-monospace, Menlo, monospace; font-weight: 800; letter-spacing: .08em; background: #F4F4F5; color: #09090B; border: 1px solid #000; border-radius: 4px; padding: 3px 7px; font-size: 13px; white-space: nowrap; }
.ps-hot { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; flex-wrap: wrap; }
.ps-kind { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; color: var(--muted); }
.ps-flag { display: grid; grid-template-columns: 100px 1fr; gap: 8px; margin-top: 12px; }
.ps-flag #ps-why { grid-column: 1 / -1; }
/* Live map */
.p-page.p-wide { max-width: 1500px; }
.sm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.sm-count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.sm-count b { color: var(--ink); font-size: 20px; }
.sm-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.sm-mapbox { position: relative; }
.sm-map { position: relative; aspect-ratio: 1; max-height: calc(100vh - 170px); width: 100%; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: #0b0b0c; cursor: grab; touch-action: none; user-select: none; }
.sm-map:active { cursor: grabbing; }
.sm-inner { position: absolute; inset: 0; transform-origin: 0 0; --inv: 1; }
.sm-inner img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
#sm-dots { position: absolute; inset: 0; }
.sm-dot { position: absolute; transform: translate(-50%, -50%) scale(var(--inv)); background: none; border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.sm-dot i { width: 13px; height: 13px; border-radius: 50%; background: var(--c); border: 2px solid #000; box-shadow: 0 0 0 1.5px rgb(255 255 255 / .8); flex: none; }
.sm-dot.staff i { border-radius: 3px; }
.sm-dot.wanted i { box-shadow: 0 0 0 2px #FF6F6F; animation: smPulse 1.6s infinite; }
@keyframes smPulse { 50% { box-shadow: 0 0 0 6px rgb(255 111 111 / .25); } }
.sm-dot span { display: none; font: 700 11px/1 Inter, sans-serif; color: #fff; background: rgb(0 0 0 / .8); padding: 3px 6px; border-radius: 5px; white-space: nowrap; }
.sm-dot:hover span, .sm-dot.sel span { display: block; }
.sm-dot.sel i { width: 17px; height: 17px; box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgb(0 0 0 / .5); }
.sm-zoom { position: absolute; top: 12px; right: 12px; display: grid; gap: 4px; }
.sm-zoom button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: rgb(10 10 11 / .85); color: #fff; font-size: 17px; cursor: pointer; }
.sm-bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 4px; align-items: center; background: rgb(10 10 11 / .92); border: 1px solid var(--line); border-radius: 12px; padding: 6px; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 24px); }
.sm-bar span { font-size: 13px; color: var(--muted); padding: 0 8px; }
.sm-bar button, .sm-btns button { font: inherit; font-size: 13px; font-weight: 600; background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; cursor: pointer; }
.sm-bar button.red, .sm-btns button.red { color: #FF6F6F; }
.sm-bar button:hover, .sm-btns button:hover { border-color: var(--ink); }
.sm-side .p-card { padding: 14px; }
.sm-list { max-height: calc(100vh - 170px); overflow-y: auto; display: grid; gap: 2px; }
.sm-list input { margin-bottom: 8px; }
.sm-li { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--ink); font: inherit; text-align: left; padding: 8px; border-radius: 9px; cursor: pointer; }
.sm-li:hover, .sm-li.sel { background: var(--raised); }
.sm-li i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.sm-li span { flex: 1; min-width: 0; }
.sm-li small { display: block; color: var(--muted); font-size: 12px; }
.sm-li em { font-style: normal; font-size: 11px; color: #FF6F6F; }
.sm-li em.st { color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 6px; }
.sm-prof h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 16px 0 6px; }
.sm-back { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 0; margin-bottom: 10px; }
.sm-who { display: flex; gap: 12px; align-items: center; }
.sm-who b { display: block; font-size: 16px; overflow-wrap: anywhere; }
.sm-av { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--c); display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: none; }
.sm-av img { width: 100%; height: 100%; object-fit: cover; }
.sm-chip { display: inline-block; font-size: 11.5px; font-weight: 700; border: 1px solid var(--c, var(--line)); border-radius: 999px; padding: 1px 8px; margin: 4px 4px 0 0; }
.sm-chip.red { color: #FF6F6F; border-color: #FF6F6F; }
.sm-sec { margin-top: 10px; }
.sm-kv { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.sm-kv:last-child { border-bottom: 0; }
.sm-kv span { color: var(--muted); }
.sm-kv b { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.sm-trust { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.sm-trust > div { display: flex; align-items: baseline; gap: 6px; }
.sm-trust > div span { flex: 1; font-size: 13px; color: var(--muted); }
.sm-trust > div b { font-size: 22px; }
.sm-trust i { display: block; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) var(--w), var(--raised) var(--w)); margin: 6px 0; }
.sm-acts { display: grid; gap: 6px; font-size: 13px; }
.sm-prof #sm-text { width: 100%; margin-bottom: 8px; }
.sm-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.sm-link { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .sm-wrap { grid-template-columns: 1fr; } .sm-map { max-height: none; } .sm-list { max-height: 50vh; } .sm-dot span { display: none !important; } .sm-dot.sel span { display: block !important; } }
.sm-map { width: min(100%, calc(100vh - 230px)); min-width: min(100%, 420px); max-height: none; margin: 0 auto; }
.sm-mapbox { display: flex; justify-content: center; }
.sm-zoom { right: max(12px, calc((100% - min(100%, calc(100vh - 230px))) / 2 + 12px)); }
@media (max-width: 900px) { .sm-map { width: 100%; min-width: 0; } .sm-zoom { right: 12px; } }
@media (min-width: 901px) { .sm-wrap { grid-template-columns: minmax(0, max(420px, calc(100vh - 230px))) 340px; justify-content: center; } .sm-map { width: 100%; min-width: 0; } .sm-zoom { right: 12px; } }
.sm-dot i { width: 15px; height: 15px; box-shadow: 0 0 0 2px rgb(255 255 255 / .9), 0 2px 6px rgb(0 0 0 / .7); }
.sm-dot.off i { border-style: dashed; opacity: .75; }
.sm-dot span small { display: block; font-size: 10px; font-weight: 500; opacity: .8; margin-top: 2px; }
.sm-dot { transition: left 2s linear, top 2s linear; }
.sm-dot.fresh { transition: none; }
