:root {
  --bg: #0b0d0e;
  --panel: rgba(19, 23, 24, .94);
  --panel-solid: #15191a;
  --panel-soft: rgba(25, 30, 31, .88);
  --line: rgba(255, 255, 255, .085);
  --line-strong: rgba(255, 255, 255, .15);
  --text: #f3f0e9;
  --muted: #8d9493;
  --orange: #db5b2c;
  --orange-bright: #ff7540;
  --green: #4ac887;
  --red: #dd5454;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font-family: Inter, "Segoe UI", Arial, sans-serif; }
button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.dashboard-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("cosmo-island-bg-v2.png") center / cover no-repeat;
  filter: saturate(.8) contrast(1.05);
}
.dashboard-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(9, 11, 12, .96) 0%, rgba(9, 11, 12, .9) 42%, rgba(9, 11, 12, .74) 100%), linear-gradient(0deg, rgba(9, 11, 12, .88), transparent 55%);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 22px;
  background: rgba(13, 16, 17, .91);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(22px);
}
.logo { display: flex; align-items: center; gap: 12px; padding: 0 8px 38px; }
.logo b { font-size: 17px; letter-spacing: 2px; }
.logo small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; letter-spacing: 3px; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; color: #fff; background: linear-gradient(145deg, var(--orange-bright), #a83213); clip-path: polygon(50% 0, 92% 24%, 92% 76%, 50% 100%, 8% 76%, 8% 24%); font-size: 22px; font-weight: 900; }
.brand-mark.small { width: 39px; height: 39px; font-size: 17px; }
.sidebar nav { display: flex; flex-direction: column; gap: 7px; }
.nav-item { display: flex; align-items: center; gap: 13px; width: 100%; padding: 13px 14px; color: #8f9696; background: transparent; border: 1px solid transparent; border-radius: 10px; text-align: left; font-size: 14px; cursor: pointer; transition: .2s; }
.nav-item i { width: 20px; font-size: 19px; font-style: normal; text-align: center; }
.nav-item em { min-width: 24px; margin-left: auto; padding: 3px 6px; color: #b9bfbd; background: #252a2b; border-radius: 10px; font-size: 9px; font-style: normal; text-align: center; }
.nav-item em.online { color: var(--green); background: rgba(74, 200, 135, .11); }
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .035); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(219, 91, 44, .16), rgba(255, 255, 255, .025)); border-color: rgba(219, 91, 44, .23); box-shadow: inset 3px 0 var(--orange); }
.nav-item.active i { color: var(--orange-bright); }
.nav-link { text-decoration: none; }
.sidebar-bottom { margin-top: auto; }
.secure { display: flex; align-items: center; gap: 10px; padding: 12px; background: rgba(9, 12, 13, .72); border: 1px solid var(--line); border-radius: 10px; }
.secure > span { color: var(--green); font-size: 10px; }
.secure b, .secure small { display: block; font-size: 11px; }
.secure small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.logout { width: 100%; margin-top: 14px; padding: 11px; color: #747b7b; background: transparent; border: 1px solid transparent; border-radius: 8px; cursor: pointer; transition: .2s; }
.logout:hover { color: #fff; background: rgba(221, 84, 84, .08); border-color: rgba(221, 84, 84, .16); }

.content { max-width: 1580px; min-height: 100vh; margin-left: 236px; padding: 34px 42px 22px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 54px; margin-bottom: 26px; }
.eyebrow { margin: 0 0 7px; color: var(--orange-bright); font-size: 9px; font-weight: 800; letter-spacing: 2.2px; }
.topbar h1 { max-width: 720px; margin: 0; overflow: hidden; font-size: 25px; letter-spacing: -.5px; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.live-pill, .auto-pill { padding: 10px 14px; color: #b2b8b6; background: rgba(17, 21, 22, .82); border: 1px solid var(--line); border-radius: 30px; font-size: 11px; backdrop-filter: blur(10px); }
.live-pill i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 10px var(--green); }
.auto-pill { color: #697170; font-size: 9px; letter-spacing: 1px; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: rgba(17, 21, 22, .82); border: 1px solid var(--line); border-radius: 50%; font-size: 20px; cursor: pointer; }
.icon-button:hover { border-color: var(--line-strong); background: #202526; }

.view-section { display: none; animation: viewIn .24s ease; }
.view-section.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; margin: 5px 0 22px; }
.section-title h2 { margin: 0; font-size: 26px; letter-spacing: -.5px; }
.section-title p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

.welcome-card { display: flex; align-items: center; justify-content: space-between; min-height: 155px; margin-bottom: 15px; padding: 30px 34px; overflow: hidden; background: linear-gradient(100deg, rgba(15, 19, 20, .98), rgba(19, 23, 24, .72)), url("cosmo-island-bg-v2.png") 76% 48% / cover; border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); }
.welcome-card h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.7px; }
.welcome-card p:last-child { max-width: 540px; margin: 0; color: #9ca2a1; font-size: 13px; line-height: 1.6; }
.server-badge { min-width: 195px; padding: 17px 20px; background: rgba(10, 13, 14, .7); border: 1px solid rgba(255, 255, 255, .13); border-radius: 11px; backdrop-filter: blur(10px); }
.server-badge span, .server-badge b { display: block; }
.server-badge span { margin-bottom: 7px; color: var(--orange-bright); font-size: 9px; font-weight: 800; letter-spacing: 2px; }
.server-badge b { font-size: 12px; letter-spacing: 1px; }

.metric-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.metric { display: flex; align-items: flex-start; gap: 16px; min-height: 130px; padding: 23px; background: linear-gradient(135deg, rgba(27, 32, 33, .94), rgba(17, 21, 22, .94)); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .15); backdrop-filter: blur(12px); }
.metric-icon { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; color: #bbb; background: #262b2d; border-radius: 9px; font-size: 18px; }
.metric-icon.orange { color: var(--orange-bright); background: rgba(219, 91, 44, .16); }
.metric small { display: block; margin: 2px 0 10px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.metric strong { display: block; font-size: 27px; line-height: 1; }
.metric strong em { color: #676e6e; font-size: 14px; font-style: normal; font-weight: 500; }
.subvalue { display: block; margin-top: 10px; color: #747b7b; font-size: 10px; }
.bar { width: 140px; height: 3px; margin-top: 15px; overflow: hidden; background: #292e2f; border-radius: 3px; }
.bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-bright)); transition: width .4s; }

.panel { background: linear-gradient(145deg, rgba(25, 30, 31, .96), rgba(17, 21, 22, .96)); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); backdrop-filter: blur(15px); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.panel-head.compact { padding-bottom: 9px; border: 0; }
.panel h2 { margin: 0; font-size: 17px; }
.overview-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; }
.healthy { color: var(--green); font-size: 10px; }
.status-lines { padding: 5px 24px 22px; }
.status-lines div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .055); font-size: 11px; }
.status-lines div:last-child { border: 0; }
.status-lines span { color: var(--muted); }
.status-lines b { font-weight: 600; }
.text-button { color: var(--orange-bright); background: transparent; border: 0; font-size: 10px; cursor: pointer; }
.online-preview { padding: 5px 20px 18px; }
.online-preview > button { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; width: 100%; padding: 9px 6px; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .05); text-align: left; cursor: pointer; }
.online-preview > button:hover { background: rgba(255, 255, 255, .025); }
.online-preview b, .online-preview small { display: block; }
.online-preview b { margin-bottom: 3px; font-size: 11px; }
.online-preview small { color: #6f7675; font: 9px Consolas, monospace; }
.online-preview i { color: #777e7d; font-size: 9px; font-style: normal; }

.player-count { display: flex; align-items: center; gap: 9px; }
.player-count strong { color: var(--orange-bright); font-size: 24px; }
.player-count span { color: var(--muted); font-size: 11px; }
.player-tools { display: flex; gap: 9px; }
.search, .catalog-search { display: flex; align-items: center; min-width: 260px; height: 38px; padding: 0 11px; color: #666; background: #101314; border: 1px solid var(--line); border-radius: 8px; }
.search input, .catalog-search input { width: 100%; padding: 8px; color: #fff; background: transparent; border: 0; outline: 0; }
.primary { padding: 10px 16px; color: #fff; background: linear-gradient(135deg, var(--orange-bright), #c74319); border: 0; border-radius: 8px; box-shadow: 0 7px 18px rgba(219, 91, 44, .2); font-size: 12px; font-weight: 700; cursor: pointer; transition: .2s; }
.primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.primary:disabled { opacity: .42; cursor: not-allowed; filter: none; transform: none; }
.wide { width: 100%; padding: 13px; }
.table-wrap { min-height: 330px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 14px 24px; color: #707777; border-bottom: 1px solid var(--line); font-size: 9px; letter-spacing: 1.2px; text-align: left; }
td { padding: 14px 24px; color: #c9ccca; border-bottom: 1px solid rgba(255, 255, 255, .055); }
tbody tr { transition: .15s; }
tbody tr:hover { background: rgba(255, 255, 255, .02); }
.player-cell { display: flex; align-items: center; gap: 11px; }
.avatar { display: grid; flex: 0 0 auto; place-items: center; width: 35px; height: 35px; color: var(--orange-bright); background: linear-gradient(145deg, #353b3d, #222728); border: 1px solid rgba(255, 255, 255, .07); border-radius: 9px; font-weight: 800; }
.avatar.mini { width: 32px; height: 32px; font-size: 11px; }
.player-cell b, .player-cell small { display: block; }
.player-cell b { color: #fff; }
.player-cell small { margin-top: 4px; color: var(--green); font-size: 8px; }
.steam { color: #858c8b; font-family: Consolas, monospace; }
.ping-good { color: var(--green); }
.manage { padding: 8px 12px; color: #d8dad8; background: #202526; border: 1px solid #363d3e; border-radius: 7px; cursor: pointer; }
.manage:hover { color: #fff; border-color: var(--orange); }
.manage span { margin-left: 5px; color: var(--orange-bright); }
.empty { padding: 90px 20px; color: #707777; text-align: center; }
.small-empty { padding: 40px 15px; }
.loading { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .42; } }

.command-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.command-panel { min-height: 160px; }
.broadcast-form { display: flex; gap: 9px; padding: 14px 24px 24px; }
.broadcast-form input, .drawer input { width: 100%; padding: 12px; color: #fff; background: #101314; border: 1px solid var(--line); border-radius: 8px; outline: none; }
.broadcast-form input:focus, .drawer input:focus { border-color: rgba(255, 117, 64, .65); }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 24px 24px; }
.quick-actions button { display: grid; gap: 3px; justify-items: center; padding: 12px; color: #c6cac8; background: #101314; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.quick-actions button:hover { background: #1d2223; border-color: var(--line-strong); }
.quick-actions span { color: var(--orange-bright); font-size: 18px; }
.quick-actions b { font-size: 10px; }
.quick-actions small { color: #6f7675; font-size: 8px; }
.me-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 14px; }
.me-profile { overflow: hidden; }
.me-cover { position: relative; display: flex; align-items: flex-end; justify-content: space-between; min-height: 175px; padding: 24px; background: linear-gradient(0deg, rgba(11, 14, 15, .88), transparent), url("cosmo-island-bg-v2.png") 72% center / cover; border-bottom: 1px solid var(--line); }
.me-cover > span { display: grid; place-items: center; width: 66px; height: 66px; color: #fff; background: linear-gradient(145deg, var(--orange-bright), #a83213); border: 3px solid rgba(255, 255, 255, .16); border-radius: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); font-size: 24px; font-weight: 900; }
.me-cover i { padding: 7px 10px; color: var(--green); background: rgba(11, 14, 15, .78); border: 1px solid var(--line); border-radius: 20px; font-size: 9px; font-style: normal; backdrop-filter: blur(8px); }
.me-cover i.offline { color: #858c8b; }
.me-details { padding: 24px; }
.me-details h2 { margin: 0 0 6px; font-size: 22px; }
.me-details > p:not(.eyebrow) { min-height: 35px; margin: 18px 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.me-details .copy-id { font-size: 11px; }
.perks-panel { padding-bottom: 10px; }
.perk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; padding: 12px 24px 24px; }
.spawn-panel { margin-top: 14px; }
.spawn-grid { grid-template-columns: repeat(4, 1fr); }
.perk-grid > button { display: grid; grid-template-columns: 43px 1fr; align-items: center; gap: 12px; min-height: 82px; padding: 14px; color: var(--text); background: #101415; border: 1px solid var(--line); border-radius: 10px; text-align: left; cursor: pointer; transition: .18s; }
.perk-grid > button:hover { background: #1c2223; border-color: rgba(255, 117, 64, .35); transform: translateY(-1px); }
.perk-grid > button:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.perk-grid > button > span { display: grid; place-items: center; width: 43px; height: 43px; color: var(--orange-bright); background: rgba(219, 91, 44, .12); border-radius: 10px; font-size: 18px; }
.perk-grid b, .perk-grid small { display: block; }
.perk-grid b { margin-bottom: 5px; font-size: 11px; }
.perk-grid small { color: #737a79; font-size: 9px; line-height: 1.4; }
.event-control-panel { margin-bottom: 14px; overflow: hidden; border-color: rgba(255, 117, 64, .28); }
.event-control-panel .panel-head p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.owner-only-badge { padding: 8px 11px; color: #ffc288; background: rgba(219, 91, 44, .11); border: 1px solid rgba(255, 117, 64, .3); border-radius: 7px; font-size: 8px; font-weight: 900; letter-spacing: 1.1px; }
.event-control-layout { display: grid; grid-template-columns: minmax(400px, 1.15fr) minmax(320px, .85fr); gap: 22px; padding: 0 24px 24px; }
.event-map-column { min-width: 0; }
.event-map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; margin-bottom: 8px; padding: 6px 7px 6px 12px; background: #101415; border: 1px solid var(--line); border-radius: 9px; }
.event-map-toolbar > strong { min-width: 0; overflow: hidden; color: #c5cac7; font: 9px Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.event-map-toolbar > div { display: flex; flex: 0 0 auto; gap: 5px; }
.event-map-toolbar button { min-width: 32px; height: 26px; padding: 0 8px; color: #d7dbd8; background: #202627; border: 1px solid #394142; border-radius: 6px; font-size: 12px; font-weight: 800; cursor: pointer; }
.event-map-toolbar button:hover { color: #fff; border-color: rgba(255,117,64,.55); }
.event-map-toolbar #event-map-reset { min-width: 50px; color: var(--orange-bright); font-size: 8px; }
.event-map { position: relative; display: block; width: 100%; overflow: hidden; background: #0b3b4a; border: 1px solid #344648; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 18px 40px rgba(0,0,0,.24); cursor: crosshair; aspect-ratio: 1; touch-action: none; user-select: none; }
.event-map:hover { border-color: rgba(255, 117, 64, .62); }
.event-map:focus-visible { outline: 2px solid var(--orange-bright); outline-offset: 3px; }
.event-map.dragging { cursor: grabbing; }
.event-map-content { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.event-map-content > img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.event-map-grid { position: absolute; inset: 0; background-image: repeating-linear-gradient(to right, rgba(255,255,255,.18) 0 1px, transparent 1px 2.5%), repeating-linear-gradient(to bottom, rgba(255,255,255,.18) 0 1px, transparent 1px 2.5%); box-shadow: inset 0 0 35px rgba(0,0,0,.16); pointer-events: none; }
.event-map-grid > span { position: absolute; display: grid; place-items: center; width: 2.5%; height: 2.5%; color: rgba(255,255,255,.8); font: 700 5px Consolas, monospace; line-height: 1; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.event-map-content.zoomed .event-map-grid > span { color: rgba(255,255,255,.95); }
.event-map-marker { position: absolute; z-index: 2; width: 22px; height: 22px; background: rgba(255, 93, 43, .22); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255, 93, 43, .7), 0 0 24px rgba(255, 93, 43, .95); transform: translate(-50%, -50%); pointer-events: none; }
.event-map-marker::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; background: #fff; border-radius: 50%; transform: translate(-50%, -50%); }
.event-map-meta { display: flex; justify-content: space-between; gap: 14px; margin-top: 9px; color: #6f7776; font-size: 9px; }
.event-map-meta strong { color: #b9bfbc; text-align: right; }
.event-picker { display: flex; flex-direction: column; min-width: 0; }
.event-step { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #aeb4b2; font-size: 10px; font-weight: 800; }
.event-step:not(:first-child) { margin-top: 20px; }
.event-step span { display: grid; place-items: center; width: 21px; height: 21px; color: #fff; background: var(--orange); border-radius: 6px; font-size: 9px; }
.event-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.event-type-grid button { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 9px; align-items: center; min-height: 67px; padding: 10px; color: #cbd0cd; background: #101415; border: 1px solid var(--line); border-radius: 9px; text-align: left; cursor: pointer; transition: .16s; }
.event-type-grid button:hover { background: #1b2122; border-color: rgba(255, 117, 64, .4); }
.event-type-grid button.active { background: rgba(219, 91, 44, .13); border-color: var(--orange-bright); box-shadow: inset 0 0 0 1px rgba(255, 117, 64, .16); }
.event-type-grid i { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; color: var(--orange-bright); background: rgba(219, 91, 44, .13); border-radius: 8px; font-size: 16px; font-style: normal; }
.event-type-grid b { font-size: 10px; line-height: 1.2; }
.event-type-grid small { color: #6e7674; font-size: 8px; line-height: 1.25; }
.event-selection-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 13px; background: #101415; border: 1px solid var(--line); border-radius: 10px; }
.event-selection-summary > div:first-child { grid-column: 1 / -1; }
.event-selection-summary span, .event-selection-summary b { display: block; }
.event-selection-summary span { margin-bottom: 5px; color: #6d7573; font-size: 8px; text-transform: uppercase; letter-spacing: .7px; }
.event-selection-summary b { color: #e4e7e4; font-size: 10px; }
.event-launch { width: 100%; margin-top: 12px; padding: 13px; }
.event-security-note { margin: 10px 2px 0; color: #67706e; font-size: 8px; line-height: 1.5; }
.bot-control-panel { margin-bottom: 14px; overflow: hidden; border-color: rgba(76, 199, 142, .22); background: radial-gradient(circle at 91% 0, rgba(76, 199, 142, .08), transparent 32%), var(--panel); }
.bot-intro-panel { display: grid; grid-template-columns: minmax(330px, .82fr) minmax(480px, 1.18fr); gap: 24px; margin-bottom: 14px; padding: 26px; overflow: hidden; background: radial-gradient(circle at 15% 0, rgba(76,199,142,.17), transparent 36%), linear-gradient(135deg, #18201e, #111516 58%); border: 1px solid rgba(76,199,142,.24); border-radius: var(--radius); box-shadow: var(--shadow); }
.bot-intro-copy { align-self: center; }
.bot-intro-kicker { color: #78d9aa; font-size: 8px; font-weight: 900; letter-spacing: 1.25px; }
.bot-intro-copy h2 { max-width: 540px; margin: 12px 0 12px; font-size: clamp(24px, 3vw, 37px); line-height: 1.05; }
.bot-intro-copy > p { max-width: 580px; margin: 0; color: #9ba5a2; font-size: 10px; line-height: 1.7; }
.bot-rule-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 22px; }
.bot-rule-row > span { padding: 11px; background: rgba(8,12,11,.48); border: 1px solid rgba(255,255,255,.07); border-radius: 9px; }
.bot-rule-row b, .bot-rule-row small { display: block; }
.bot-rule-row b { margin-bottom: 4px; color: #eaf8f0; font-size: 14px; }
.bot-rule-row small { color: #707a77; font-size: 7px; line-height: 1.3; }
.bot-behaviour-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.bot-behaviour-grid > div { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto 1fr; column-gap: 10px; padding: 13px; background: rgba(8,12,11,.62); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; }
.bot-behaviour-grid i { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; color: #78d9aa; background: rgba(76,199,142,.1); border-radius: 8px; font-size: 15px; font-style: normal; }
.bot-behaviour-grid b { font-size: 9px; }
.bot-behaviour-grid p { margin: 5px 0 0; color: #727c79; font-size: 8px; line-height: 1.4; }
.bot-control-panel .panel-head p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.bot-status-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; color: #a6aeac; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 999px; font-size: 8px; letter-spacing: .5px; white-space: nowrap; }
.bot-status-badge i { width: 8px; height: 8px; background: #6b7472; border-radius: 50%; }
.bot-status-badge.enabled { color: #a8efc8; border-color: rgba(76,199,142,.32); background: rgba(76,199,142,.09); }
.bot-status-badge.enabled i { background: var(--green); box-shadow: 0 0 12px var(--green); }
.bot-status-badge.unavailable { color: #ffb4a4; border-color: rgba(255,112,82,.28); }
.bot-status-badge.unavailable i { background: #e56e55; }
.bot-control-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; padding: 7px 24px 24px; }
.bot-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.bot-metrics > div { min-height: 96px; padding: 16px; background: #101415; border: 1px solid var(--line); border-radius: 10px; }
.bot-metrics span, .bot-metrics strong, .bot-metrics small { display: block; }
.bot-metrics span { margin-bottom: 9px; color: #747c7a; font-size: 8px; letter-spacing: .75px; }
.bot-metrics strong { margin-bottom: 4px; color: #edf0ed; font-size: 24px; }
.bot-metrics small { color: #69716f; font-size: 8px; line-height: 1.35; }
.bot-controls { display: flex; flex-direction: column; gap: 10px; }
.bot-count-field { padding: 14px; background: #101415; border: 1px solid var(--line); border-radius: 10px; }
.bot-count-field label { display: block; margin-bottom: 8px; color: #aeb5b3; font-size: 9px; font-weight: 800; }
.bot-count-field > div { display: grid; grid-template-columns: 80px 1fr; gap: 8px; }
.bot-count-field input { min-width: 0; padding: 10px 12px; color: #fff; background: #090c0d; border: 1px solid #303738; border-radius: 8px; outline: 0; font-size: 13px; font-weight: 800; }
.bot-count-field input:focus { border-color: rgba(76,199,142,.6); }
.bot-count-field small { display: block; margin-top: 8px; color: #69716f; font-size: 8px; line-height: 1.4; }
.bot-action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bot-action-grid button { display: grid; justify-items: center; gap: 4px; min-height: 77px; padding: 10px 7px; color: #d6dad7; background: #101415; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.bot-action-grid button:hover { border-color: rgba(76,199,142,.4); background: #18201e; }
.bot-action-grid button:disabled { opacity: .4; cursor: not-allowed; }
.bot-action-grid span { color: #6fd5a1; font-size: 16px; }
.bot-action-grid b { font-size: 9px; }
.bot-action-grid small { color: #69716f; font-size: 7px; text-align: center; }
.bot-control-note { margin: 0; padding: 10px 12px; color: #78817f; background: rgba(76,199,142,.045); border-left: 2px solid rgba(76,199,142,.45); border-radius: 0 7px 7px 0; font-size: 8px; line-height: 1.5; }
.announce-panel { margin-bottom: 14px; overflow: hidden; border-color: rgba(255, 117, 64, .22); }
.announce-panel .panel-head p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.announce-preview-tag { padding: 8px 11px; color: var(--orange-bright); background: rgba(219, 91, 44, .1); border: 1px solid rgba(255, 117, 64, .25); border-radius: 6px; font-size: 8px; font-weight: 800; letter-spacing: 1.3px; }
.announce-form { display: grid; grid-template-columns: 1fr 125px auto; gap: 9px; padding: 13px 24px 24px; }
.announce-form > input { width: 100%; padding: 12px; color: #fff; background: #101314; border: 1px solid var(--line); border-radius: 8px; outline: none; }
.announce-form > input:focus { border-color: rgba(255, 117, 64, .65); }
.announce-form label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px; padding-left: 10px; color: #777e7d; background: #101314; border: 1px solid var(--line); border-radius: 8px; font-size: 8px; }
.announce-form select { min-width: 0; padding: 10px 4px; color: #fff; background: transparent; border: 0; outline: none; font-size: 10px; }
.announce-form select option { color: #fff; background: #171b1c; }
footer { display: flex; justify-content: space-between; padding: 22px 4px; color: #59605f; font-size: 9px; letter-spacing: .5px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 30; visibility: hidden; background: rgba(0, 0, 0, .66); opacity: 0; backdrop-filter: blur(3px); transition: .25s; }
.drawer-backdrop.open { visibility: visible; opacity: 1; }
.drawer { position: fixed; inset: 0; z-index: 31; width: 100vw; height: 100vh; padding: 28px clamp(22px, 5vw, 82px); overflow: auto; background: radial-gradient(circle at 80% 0, rgba(219, 91, 44, .08), transparent 34%), #111516; border: 1px solid var(--line-strong); box-shadow: 0 0 100px rgba(0, 0, 0, .72); visibility: hidden; opacity: 0; transform: scale(.985); transition: opacity .22s, transform .22s, visibility .22s; }
.drawer.open { visibility: visible; opacity: 1; transform: none; }
.drawer-close { position: fixed; z-index: 2; top: 22px; right: 30px; display: grid; place-items: center; width: 44px; height: 44px; color: #aeb4b2; background: #1d2324; border: 1px solid var(--line-strong); border-radius: 12px; font-size: 28px; cursor: pointer; }
.drawer-close:hover { color: #fff; border-color: rgba(255, 117, 64, .55); }
body.drawer-open { overflow: hidden; }
.player-identity { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 14px; margin: 19px 0 27px; }
.player-identity > span { display: grid; place-items: center; width: 58px; height: 58px; color: var(--orange-bright); background: linear-gradient(145deg, #353c3e, #222728); border-radius: 13px; font-size: 24px; font-weight: 900; }
.player-identity h2 { margin: 0 0 5px; }
.online-dot { color: var(--green); font-size: 8px; font-style: normal; }
.copy-id { padding: 0; color: #747b7b; background: transparent; border: 0; font: 10px Consolas, monospace; cursor: pointer; }
.drawer-section { padding: 23px 0; border-top: 1px solid var(--line); }
.drawer-section label { display: block; color: #a2a7a6; font-size: 11px; font-weight: 700; }
.drawer-label-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.drawer-label-row span { color: #686f6e; font-size: 9px; }
.catalog-search { width: 100%; min-width: 0; margin-bottom: 10px; }
.category-tabs { display: flex; gap: 6px; padding: 2px 0 10px; overflow-x: auto; scrollbar-width: thin; }
.category-tabs button { flex: 0 0 auto; padding: 7px 10px; color: #8b9291; background: #1d2223; border: 1px solid var(--line); border-radius: 20px; font-size: 9px; cursor: pointer; }
.category-tabs button:hover, .category-tabs button.active { color: #fff; background: rgba(219, 91, 44, .18); border-color: rgba(255, 117, 64, .45); }
.item-catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; min-height: 270px; max-height: calc(100vh - 430px); padding: 4px 6px 4px 0; overflow-y: auto; scrollbar-color: #3a4142 #171b1c; }
.item-card { position: relative; display: grid; grid-template-columns: 55px 1fr; align-items: center; gap: 10px; min-width: 0; padding: 8px; color: var(--text); background: #1a1f20; border: 1px solid var(--line); border-radius: 9px; text-align: left; cursor: pointer; transition: .15s; }
.item-card:hover { background: #222829; border-color: var(--line-strong); }
.item-card.selected { background: rgba(219, 91, 44, .12); border-color: var(--orange); box-shadow: inset 0 0 0 1px rgba(255, 117, 64, .15); }
.item-card[hidden] { display: none; }
.item-image { position: relative; display: grid; place-items: center; width: 55px; height: 55px; overflow: hidden; background: radial-gradient(circle, #3a4142, #24292a); border-radius: 8px; }
.item-image img { position: relative; z-index: 2; width: 51px; height: 51px; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(0, 0, 0, .35)); }
.item-image img.broken { display: none; }
.item-image i { position: absolute; color: #596060; font-size: 19px; font-style: normal; font-weight: 900; }
.item-info { min-width: 0; }
.item-info b, .item-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-info b { font-size: 10px; }
.item-info small { margin-top: 5px; color: #68706f; font: 8px Consolas, monospace; }
.item-card > em { position: absolute; top: 6px; right: 7px; display: none; color: var(--orange-bright); font-size: 10px; font-style: normal; }
.item-card.selected > em { display: block; }
.selected-item { display: grid; grid-template-columns: 1fr 110px; align-items: center; gap: 10px; margin-top: 11px; padding: 10px 12px; background: #0f1213; border: 1px solid var(--line); border-radius: 8px; }
.selected-item small, .selected-item b { display: block; }
.selected-item small { margin-bottom: 4px; color: #69706f; font-size: 8px; letter-spacing: 1px; }
.selected-item b { font-size: 11px; }
.selected-item input { padding: 9px; text-align: center; }
.amount-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 8px 0 11px; }
.amount-chips button { padding: 8px 3px; color: #aeb4b2; background: #202526; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; cursor: pointer; }
.amount-chips button:hover { color: #fff; border-color: var(--orange); }
.danger-zone { margin-top: 3px; }
.danger-zone > input { margin-top: 9px; }
.danger-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.danger-actions button { padding: 11px; color: #fff; background: #202526; border: 1px solid #3b4244; border-radius: 8px; cursor: pointer; }
.danger-actions .danger { color: #ff9292; background: rgba(221, 84, 84, .11); border-color: rgba(221, 84, 84, .42); }

.modal-backdrop { position: fixed; inset: 0; z-index: 70; display: grid; visibility: hidden; place-items: center; padding: 20px; background: rgba(0, 0, 0, .75); opacity: 0; backdrop-filter: blur(7px); transition: .2s; }
.modal-backdrop.open { visibility: visible; opacity: 1; }
.confirm-card { width: min(420px, 95vw); padding: 29px; background: linear-gradient(145deg, #1e2324, #131718); border: 1px solid var(--line-strong); border-radius: 15px; box-shadow: 0 35px 100px rgba(0, 0, 0, .55); text-align: center; transform: translateY(8px) scale(.98); transition: .2s; }
.modal-backdrop.open .confirm-card { transform: none; }
.confirm-icon { display: grid; place-items: center; width: 45px; height: 45px; margin: 0 auto 16px; color: #ffb092; background: rgba(219, 91, 44, .14); border: 1px solid rgba(255, 117, 64, .35); border-radius: 50%; font-size: 20px; font-weight: 800; }
.confirm-card h2 { margin: 0 0 9px; font-size: 19px; }
.confirm-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 23px; }
.confirm-actions button { padding: 11px; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; }
.secondary { color: #d5d8d6; background: #272c2d; border: 1px solid #383f40; }
.danger-solid { color: #fff; background: linear-gradient(135deg, #e46336, #b63e1c); border: 0; }

.toast-stack { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 280px; padding: 13px 15px; color: #fff; background: #222829; border: 1px solid #394142; border-radius: 10px; box-shadow: var(--shadow); animation: toastIn .25s; }
.toast > span { display: grid; place-items: center; width: 21px; height: 21px; color: var(--green); background: rgba(74, 200, 135, .12); border-radius: 50%; font-size: 10px; }
.toast.error > span { color: #ff9696; background: rgba(221, 84, 84, .13); }
.toast.info > span { color: #9fa6a5; background: #303637; }
.toast p { margin: 0; font-size: 11px; }
.toast.leaving { opacity: 0; transform: translateY(7px); transition: .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

.audience-open-site { align-self: center; color: #fff; text-decoration: none; }
.audience-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.audience-metrics article { padding: 19px 20px; background: linear-gradient(145deg, rgba(27,32,33,.96), rgba(17,21,22,.96)); border: 1px solid var(--line); border-radius: 12px; }
.audience-metrics span, .audience-metrics small, .audience-metrics strong { display: block; }
.audience-metrics span { color: #7b8381; font-size: 8px; font-weight: 800; letter-spacing: 1.15px; }
.audience-metrics strong { margin: 9px 0 5px; color: #fff; font-size: 27px; }
.audience-metrics small { color: #626a68; font-size: 9px; }
.community-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.community-editor { overflow: hidden; }
.community-editor .panel-head { border-bottom: 1px solid var(--line); }
.toggle-field { display: flex; align-items: center; gap: 8px; color: #919896; font-size: 9px; cursor: pointer; }
.toggle-field input { position: absolute; opacity: 0; }
.toggle-field > span { position: relative; width: 36px; height: 20px; background: #292f30; border: 1px solid #3a4243; border-radius: 999px; transition: .2s; }
.toggle-field > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; background: #7f8785; border-radius: 50%; transition: .2s; }
.toggle-field input:checked + span { background: rgba(219,91,44,.25); border-color: var(--orange); }
.toggle-field input:checked + span::after { left: 19px; background: var(--orange-bright); }
.editor-fields { display: grid; grid-template-columns: 1fr 170px; gap: 12px; padding: 20px 24px 24px; }
.editor-fields.one-column { grid-template-columns: 1fr; }
.editor-fields label, .announcement-presets > textarea { min-width: 0; }
.editor-fields label > span { display: block; margin-bottom: 7px; color: #858c8a; font-size: 9px; font-weight: 700; }
.editor-fields input, .editor-fields textarea, .announcement-presets > textarea { width: 100%; padding: 12px; color: #fff; background: #101314; border: 1px solid var(--line); border-radius: 8px; outline: none; resize: vertical; }
.editor-fields input:focus, .editor-fields textarea:focus, .announcement-presets > textarea:focus { border-color: rgba(255,117,64,.62); }
.wide-field { grid-column: 1 / -1; }
.goal-preview { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin: 0 24px 24px; padding: 14px; background: #101314; border: 1px solid var(--line); border-radius: 8px; }
.goal-preview > span { color: #7f8785; font-size: 9px; }
.goal-preview > b { height: 6px; overflow: hidden; background: #272d2e; border-radius: 99px; }
.goal-preview > b i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--orange), #f6a35a); transition: width .35s ease; }
.goal-preview > strong { font-size: 10px; }
.poll-admin-results { display: grid; gap: 9px; padding: 0 24px 18px; }
.poll-admin-results > div:not(.empty) { display: grid; grid-template-columns: minmax(110px, .7fr) 1fr 74px; align-items: center; gap: 10px; }
.poll-admin-results span, .poll-admin-results strong { font-size: 9px; }
.poll-admin-results strong { color: #aeb4b2; text-align: right; }
.poll-admin-results b { height: 5px; overflow: hidden; background: #292f30; border-radius: 99px; }
.poll-admin-results b i { display: block; height: 100%; background: var(--orange); }
.reset-votes { margin: 0 24px 24px; padding: 9px 12px; border-radius: 7px; cursor: pointer; }
.announcement-presets { padding-bottom: 24px; }
.preset-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 20px 24px 10px; }
.preset-list button { min-height: 58px; padding: 10px; color: #c2c7c4; background: #1a1f20; border: 1px solid var(--line); border-radius: 8px; font-size: 9px; cursor: pointer; }
.preset-list button:hover { color: #fff; border-color: rgba(255,117,64,.5); }
.announcement-presets > textarea { width: calc(100% - 48px); margin: 0 24px 10px; }
.announcement-presets > .wide { width: calc(100% - 48px); margin: 0 24px; }
.community-savebar { grid-column: 1 / -1; position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; background: rgba(19,23,24,.94); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.community-savebar span { color: #7f8785; font-size: 9px; }

.login-body { display: grid; place-items: center; min-height: 100vh; overflow: hidden; background: linear-gradient(90deg, rgba(9, 11, 12, .96), rgba(9, 11, 12, .7)), url("cosmo-island-bg-v2.png") center / cover no-repeat; }
.login-shell { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 90px; width: min(1050px, 92vw); }
.login-brand h1 { margin: 20px 0; color: #eeece7; font-size: 52px; line-height: 1.04; letter-spacing: -2.4px; }
.login-brand h1 span { color: var(--orange-bright); }
.login-copy { max-width: 460px; color: #8d9493; font-size: 15px; line-height: 1.7; }
.feature-row { display: flex; gap: 22px; margin-top: 27px; color: #666e6d; font-size: 9px; letter-spacing: 1.5px; }
.feature-row span:first-child { color: var(--green); }
.login-card { padding: 30px; background: linear-gradient(145deg, rgba(28, 33, 34, .96), rgba(17, 21, 22, .96)); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 35px 100px rgba(0, 0, 0, .5); backdrop-filter: blur(18px); }
.login-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.status-orb { width: 9px; height: 9px; background: var(--green); border-radius: 50%; box-shadow: 0 0 12px var(--green); }
.login-card-head strong, .login-card-head small { display: block; }
.login-card-head small { margin-top: 4px; color: #6f7675; font-size: 10px; }
.login-card label { display: block; margin-bottom: 8px; color: #969c9b; font-size: 10px; font-weight: 700; }
.password-wrap { position: relative; }
.password-wrap input { width: 100%; padding: 13px 42px 13px 13px; color: #fff; background: #0f1213; border: 1px solid var(--line-strong); border-radius: 8px; outline: none; }
.password-wrap input:focus { border-color: var(--orange); }
.reveal { position: absolute; top: 6px; right: 8px; padding: 8px; color: #777e7d; background: transparent; border: 0; cursor: pointer; }
.login-card .primary { margin-top: 14px; }
.primary span { float: right; }
.form-error { margin: 9px 0 0; color: #ff8585; font-size: 11px; }
.privacy-note { margin: 18px 10px 0; color: #606766; font-size: 9px; line-height: 1.5; text-align: center; }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .login-shell { gap: 45px; }
  .login-brand h1 { font-size: 42px; }
  .spawn-grid { grid-template-columns: repeat(2, 1fr); }
  .event-control-layout { grid-template-columns: 1fr; }
  .bot-control-layout { grid-template-columns: 1fr; }
  .bot-intro-panel { grid-template-columns: 1fr; }
  .audience-metrics { grid-template-columns: repeat(2, 1fr); }
  .community-admin-grid { grid-template-columns: 1fr; }
  .community-savebar { grid-column: 1; }
}
@media (max-width: 800px) {
  .sidebar { width: 72px; padding: 22px 10px; }
  .logo { padding: 0 7px 28px; }
  .logo > div:last-child, .nav-item span, .nav-item em, .secure div, .logout { display: none; }
  .nav-item { justify-content: center; padding: 12px; }
  .secure { justify-content: center; padding: 12px 5px; }
  .content { margin-left: 72px; padding: 24px 17px; }
  .topbar { align-items: flex-start; }
  .auto-pill { display: none; }
  .command-layout { grid-template-columns: 1fr; }
  .me-layout { grid-template-columns: 1fr; }
  .login-shell { display: block; width: min(420px, 90vw); }
  .login-brand { margin-bottom: 25px; }
  .login-brand h1 { font-size: 34px; }
  .login-copy, .feature-row { display: none; }
  .brand-mark { width: 40px; height: 40px; }
  .login-body { padding: 35px 0; overflow: auto; }
}
@media (max-width: 600px) {
  .content { padding: 20px 10px; }
  .topbar h1 { max-width: 230px; font-size: 17px; white-space: normal; }
  .top-actions .live-pill { display: none; }
  .welcome-card { align-items: flex-start; padding: 23px; }
  .welcome-card h2 { font-size: 22px; }
  .server-badge { display: none; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric { padding: 19px; }
  .panel-head { flex-direction: column; align-items: flex-start; padding: 18px; }
  .player-tools { display: grid; grid-template-columns: 1fr; width: 100%; }
  .search { width: 100%; min-width: 0; }
  th, td { padding: 12px; }
  th:nth-child(2), td:nth-child(2), th:nth-child(4), td:nth-child(4) { display: none; }
  .quick-actions { grid-template-columns: 1fr; }
  .perk-grid { grid-template-columns: 1fr; }
  .announce-form { grid-template-columns: 1fr; }
  .event-control-layout { padding: 0 17px 18px; }
  .event-type-grid { grid-template-columns: 1fr; }
  .event-map-toolbar { align-items: flex-start; flex-direction: column; }
  .event-map-toolbar > strong { width: 100%; white-space: normal; }
  .event-map-meta { flex-direction: column; gap: 4px; }
  .event-map-meta strong { text-align: left; }
  .bot-control-layout { padding: 0 17px 18px; }
  .bot-metrics, .bot-action-grid { grid-template-columns: 1fr; }
  .bot-intro-panel { padding: 19px; }
  .bot-rule-row, .bot-behaviour-grid { grid-template-columns: 1fr; }
  .announce-form label { grid-template-columns: auto auto; justify-content: start; padding: 0 12px; }
  .broadcast-form { flex-direction: column; }
  .drawer { padding: 22px 16px 32px; }
  .drawer-close { top: 14px; right: 14px; }
  .item-catalog { grid-template-columns: 1fr; }
  .amount-chips { grid-template-columns: repeat(2, 1fr); }
  .player-identity { grid-template-columns: 58px 1fr; }
  .online-dot { display: none; }
  footer { flex-direction: column; gap: 8px; }
  .login-card { padding: 23px; }
  .audience-metrics { grid-template-columns: 1fr 1fr; }
  .editor-fields { grid-template-columns: 1fr; padding: 17px; }
  .wide-field { grid-column: auto; }
  .goal-preview, .reset-votes { margin-left: 17px; margin-right: 17px; }
  .poll-admin-results { padding-left: 17px; padding-right: 17px; }
  .preset-list { grid-template-columns: 1fr; padding-left: 17px; padding-right: 17px; }
  .announcement-presets > textarea, .announcement-presets > .wide { width: calc(100% - 34px); margin-left: 17px; margin-right: 17px; }
  .community-savebar { align-items: stretch; flex-direction: column; }
}

.game-chat-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.game-chat-head p{color:#8c9caf}.game-chat-profile{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}.game-chat-profile input{max-width:260px;padding:12px;border:1px solid #344255;border-radius:9px;background:#101722;color:#e7eff9}.game-chat-messages{height:50vh;min-height:260px;max-height:650px;overflow:auto;overflow-wrap:anywhere;background:#101722;border:1px solid #283447;border-radius:14px;padding:18px}.game-chat-row{padding:14px 0;border-bottom:1px solid #263243}.game-chat-row>div{display:flex;gap:14px;align-items:baseline;flex-wrap:wrap}.game-chat-row small{color:#8c9caf}.game-chat-row p{margin:8px 0 0;line-height:1.5;white-space:pre-wrap}.game-chat-row.from-admin strong{color:#a8caff}.game-chat-compose{margin-top:20px}.game-chat-compose>div{display:flex;gap:12px;margin-top:10px}.game-chat-compose input{flex:1;min-width:0;padding:14px;background:#101722;border:1px solid #344255;border-radius:9px;color:#e7eff9}#game-chat-status,#game-chat-profile-status{color:#a8bbd2;font-size:13px}@media(max-width:600px){.game-chat-head{align-items:flex-start;flex-direction:column}.game-chat-profile{align-items:stretch;flex-direction:column}.game-chat-profile input{max-width:none}.game-chat-compose>div{flex-direction:column}.game-chat-messages{padding:12px;height:48vh}}

[data-view-panel="chat"] button{padding:12px 18px;border:1px solid #35404c;border-radius:10px;background:#202a35;color:#e9eff7;font:600 14px inherit;cursor:pointer}[data-view-panel="chat"] button.primary{background:#ed743e;border-color:#ed743e;color:#fff}[data-view-panel="chat"] button:disabled{opacity:.5;cursor:wait}[data-view-panel="chat"] button:hover{filter:brightness(1.1)}

.npc-metrics{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}.npc-metrics article{padding:24px;background:#131a20;border:1px solid #30383d;border-radius:16px}.npc-metrics span,.npc-metrics small{display:block;color:#95a5b1;font-size:12px}.npc-metrics strong{display:block;font-size:40px;margin:12px 0}.npc-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:20px}.npc-fields{display:flex;flex-direction:column;gap:16px;padding:24px}.npc-fields label{display:flex;flex-direction:column;gap:9px;font-size:14px}.npc-fields select,.npc-fields textarea{width:100%;box-sizing:border-box;padding:13px;background:#11191f;color:#edf2f7;border:1px solid #35414a;border-radius:10px;font:inherit}.npc-fields p{font-size:13px;line-height:1.6;color:#9caab5;margin:0}.npc-delete{display:flex;gap:10px;flex-wrap:wrap}.npc-log{padding:0 24px 20px;max-height:320px;overflow:auto}.npc-log article{padding:14px 0;border-bottom:1px solid #30383d;overflow-wrap:anywhere}.npc-log strong{font-size:13px}.npc-log p{font-size:13px;color:#a8b6c0;margin:8px 0}.npc-log .npc-error strong{color:#ff9e88}.npc-roaming{margin-top:24px}.npc-roaming summary{padding:20px;cursor:pointer;color:#a7b6c0}.npc-editor{align-self:start}#npc-status{color:#a8bbc9;font-size:14px;margin:20px 0}@media(max-width:800px){.npc-layout{grid-template-columns:1fr}.npc-metrics{gap:12px}.npc-metrics article{padding:18px}.npc-fields{padding:18px}}@media(max-width:430px){.npc-metrics{grid-template-columns:1fr}.npc-delete{flex-direction:column}}

.npc-title{gap:16px}.npc-title button{flex-shrink:0;padding:12px 18px;border:1px solid #35414a;border-radius:10px;background:#202a31;color:#edf2f7;font:inherit;cursor:pointer}@media(max-width:600px){.npc-title{align-items:flex-start;flex-direction:column}.npc-title button{align-self:flex-start}}

.observer-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:20px 0}.observer-toolbar button,.observer-buttons button{padding:12px 16px;border:1px solid #36434d;border-radius:10px;background:#202c35;color:#e8f0f7;cursor:pointer;font:inherit}.observer-toolbar button.primary{background:#dc713e}.observer-toolbar select{padding:10px;background:#18242d;color:#edf2f7;border:1px solid #36434d;border-radius:8px}.observer-screen{position:relative;background:#0b131c;border:1px solid #35404b;border-radius:16px;overflow:hidden;max-width:1100px}.observer-screen canvas{display:block;width:100%;height:auto;image-rendering:auto;touch-action:none}.observer-screen p{position:absolute;top:12px;left:12px;background:#080e18da;color:#fff;padding:10px;border-radius:8px;pointer-events:none}.observer-buttons{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.observer-buttons button{touch-action:none;user-select:none}.observer-help{color:#a4b4c2;font-size:13px;line-height:1.7;max-width:950px}#observer-status,#observer-position{font-size:13px;color:#acbecd;line-height:1.5}[data-view-panel="observer"] button:disabled{opacity:.5;cursor:default}@media(max-width:600px){.observer-toolbar{align-items:stretch}.observer-toolbar button{flex:1}.observer-buttons{display:grid;grid-template-columns:1fr 1fr}.observer-buttons button{padding:14px 8px;font-size:12px}}

.observer-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.observer-quality-badge{flex:none;padding:9px 12px;border:1px solid #f28a4d55;border-radius:999px;background:#f0783c1a;color:#ffad7b;font-size:13px;font-weight:800;letter-spacing:.08em}.observer-filter-badges{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap}.observer-filter-badges span{flex:none;padding:7px 9px;border:1px solid #74b88945;border-radius:999px;background:#4b9a6814;color:#9bd7ae;font-size:12px;font-weight:800;letter-spacing:.05em}.observer-workspace{display:grid;grid-template-columns:minmax(280px,340px) minmax(0,1fr);gap:20px;align-items:start}.observer-map-panel,.observer-camera-panel{min-width:0;border:1px solid #2d3b45;border-radius:17px;background:linear-gradient(155deg,#151e25,#10171d);box-shadow:0 16px 40px #05090d38}.observer-map-panel{padding:16px;position:sticky;top:18px}.observer-camera-panel{padding:18px}.observer-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.observer-panel-head small{display:block;color:#8093a1;font-size:12px;font-weight:800;letter-spacing:.09em}.observer-panel-head b{display:block;margin-top:4px;color:#f0f5f8;font-size:15px}.observer-panel-head .icon-button{width:40px;height:40px}.observer-map-panel input,.observer-map-panel select{box-sizing:border-box;width:100%;border:1px solid #344550;border-radius:10px;background:#0c141a;color:#edf4f8;font:inherit}.observer-map-panel input{padding:12px 13px;margin-bottom:12px}.observer-map-panel select{min-height:158px;padding:5px}.observer-map-panel option{padding:8px}.observer-map-wrap{position:relative;overflow:hidden;border:1px solid #3b4b55;border-radius:13px;background:#091218}.observer-map-wrap canvas{display:block;width:100%;height:auto;cursor:crosshair}.observer-map-wrap span{position:absolute;right:8px;bottom:8px;padding:6px 8px;border-radius:7px;background:#071018dc;color:#eaf2f7;font-size:12px;pointer-events:none}.observer-base-label{display:block;margin:14px 0 7px;color:#aab9c2;font-size:14px;font-weight:700}.observer-base-details{min-height:76px;margin:12px 0;padding:11px 12px;border-left:3px solid #ed793f;border-radius:5px;background:#0b1319;color:#bac8d0;font-size:13px;line-height:1.55;white-space:pre-line;overflow-wrap:anywhere}.observer-jump{width:100%;padding:12px 14px;border:0;border-radius:10px;background:linear-gradient(135deg,#ef783e,#c9582d);color:#fff;font:700 14px inherit;cursor:pointer}.observer-camera-panel .observer-toolbar{margin:0 0 14px}.observer-camera-panel .observer-screen{max-width:none;border-radius:13px;box-shadow:inset 0 0 0 1px #ffffff08}.observer-readout{display:flex;justify-content:space-between;gap:20px;padding:10px 2px 0}.observer-readout p{margin:0}.observer-camera-panel .observer-help{margin-bottom:2px}.observer-camera-panel .observer-buttons{margin-bottom:12px}@media(max-width:1050px){.observer-workspace{grid-template-columns:290px minmax(0,1fr)}.observer-buttons{display:grid;grid-template-columns:repeat(5,1fr)}.observer-buttons button{padding:10px 7px;font-size:12px}}@media(max-width:820px){.observer-title{align-items:flex-start;flex-direction:column}.observer-filter-badges{justify-content:flex-start}.observer-workspace{grid-template-columns:1fr}.observer-map-panel{position:static}.observer-map-wrap{max-width:520px;margin:auto}.observer-readout{flex-direction:column;gap:3px}}@media(max-width:600px){.observer-camera-panel,.observer-map-panel{padding:13px}.observer-buttons{grid-template-columns:1fr 1fr}.observer-filter-badges span{font-size:11px}.observer-map-wrap span{font-size:11px}.observer-title h2{font-size:26px}}
