/* Georgia Simulations CAD — Melonly-style dark UI */
:root {
  --bg: #111111; --bg2: #161616; --card: #1a1a1a; --card2: #202020; --hover: #262626; --line: #2a2a2a; --line2: #343434;
  --text: #e5e5e5; --dim: #909296; --mute: #5c5f66;
  --teal: #38d9a9; --teal-f: #099268; --green: #51cf66; --orange: #ffa94d; --blue: #4dabf7; --red: #ff8787; --red-f: #e03131;
  --gray: #ced4da; --yellow: #ffd43b; --violet: #9775fa; --pink: #f06595; --peach: #ff9a4d; --brand: #b4121b;
  --r: 16px; --r2: 10px; --r3: 8px;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.4, .5, 1);
  --shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .4);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.45 "Open Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--teal); text-decoration: none; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
::selection { background: rgba(56, 217, 169, .3); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #2c2c2c; border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; } ::-webkit-scrollbar-thumb:hover { background-color: #3a3a3a; } ::-webkit-scrollbar-track { background: transparent; }
.mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; letter-spacing: -.01em; }
.dim { color: var(--dim); } .mute { color: var(--mute); }
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; animation: fadeIn .35s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(56, 217, 169, .45); } 100% { box-shadow: 0 0 0 16px rgba(56, 217, 169, 0); } }
@keyframes flash { 0%, 100% { background: rgba(224, 49, 49, .12); } 50% { background: rgba(224, 49, 49, .32); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------------- buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r2); border: 1px solid var(--line2); background: var(--card2); color: var(--text); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: background .15s, border-color .15s, transform .12s var(--ease), opacity .15s; white-space: nowrap; user-select: none; }
.btn:hover { background: var(--hover); } .btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.pri { background: var(--teal-f); border-color: transparent; color: #fff; } .btn.pri:hover { background: #0ca678; }
.btn.danger { background: var(--red-f); border-color: transparent; color: #fff; } .btn.danger:hover { background: #f03e3e; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--dim); } .btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.out { background: transparent; border-color: var(--c, var(--line2)); color: var(--c, var(--text)); }
.btn.out:hover { background: color-mix(in srgb, var(--c, #fff) 10%, transparent); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: var(--r3); }
.btn.xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; gap: 5px; } .btn.xs svg.i { width: 14px; height: 14px; }
.btn.icon { width: 36px; padding: 0; } .btn.sm.icon { width: 30px; } .btn.xs.icon { width: 26px; }
.btn.discord { background: #5865f2; border-color: transparent; color: #fff; height: 46px; padding: 0 22px; border-radius: 14px; font-size: 15px; } .btn.discord:hover { background: #4752c4; }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }

/* ---------------- inputs ---------------- */
.in { width: 100%; height: 36px; padding: 0 12px; border-radius: var(--r3); border: 1px solid var(--line2); background: var(--bg2); outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.in::placeholder { color: var(--mute); }
.in:hover { border-color: #3e3e3e; }
.in:focus { border-color: var(--teal-f); box-shadow: 0 0 0 3px rgba(9, 146, 104, .22); background: #141414; }
textarea.in { height: auto; min-height: 84px; padding: 9px 12px; resize: vertical; line-height: 1.5; }
select.in { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23909296' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 9l4-4 4 4M16 15l-4 4-4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; }
select.in option { background: #1a1a1a; }
.f { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text); }
.f > span.lbl { display: flex; gap: 4px; } .f .req { color: var(--red); }
.f .hint { font-weight: 400; color: var(--dim); font-size: 12px; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.row2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; } .row3 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr 1fr; }
form.stack, .stack { display: grid; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 500; font-size: 13.5px; }
.check input { appearance: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line2); flex: none; margin: 0; display: grid; place-items: center; transition: .15s; cursor: pointer; }
.check input:checked { background: var(--teal-f); border-color: var(--teal-f); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { height: 32px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line2); background: transparent; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--dim); transition: .15s; }
.pill:hover { color: var(--text); border-color: #444; } .pill.on { background: rgba(9, 146, 104, .18); border-color: var(--teal-f); color: var(--teal); }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { height: 30px; padding: 0 12px; border-radius: 9px; border: 0; background: none; color: var(--dim); font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: .15s; }
.seg button:hover { color: var(--text); } .seg button.on { background: var(--card2); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset; }

/* ---------------- badges ---------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: color-mix(in srgb, var(--c, var(--gray)) 16%, transparent); color: var(--c, var(--gray)); white-space: nowrap; }
.badge.solid { background: var(--c); color: #fff; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ub { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 8px; border-radius: 99px; background: var(--c); color: #fff; font-weight: 700; font-size: 12px; white-space: nowrap; }
.ub svg.i { width: 13px; height: 13px; stroke-width: 2.4; }
.ub.lt { color: #111; }
.tag { display: inline-flex; padding: 1px 7px; border-radius: 6px; background: var(--hover); color: var(--dim); font-size: 11.5px; font-weight: 600; }

/* ---------------- toasts, modal ---------------- */
#toasts { position: fixed; z-index: 200; bottom: 18px; right: 18px; display: grid; gap: 8px; width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #1d1d1d; border: 1px solid var(--line2); box-shadow: var(--shadow); animation: toastIn .4s var(--spring); font-weight: 500; }
.toast i { width: 4px; align-self: stretch; border-radius: 4px; background: var(--c); flex: none; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
.ov { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fadeIn .2s; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: #161616; border: 1px solid var(--line2); border-radius: 16px; box-shadow: var(--shadow); animation: pop .28s var(--spring); overflow: hidden; }
.modal.wide { width: min(760px, 100%); }
.modal > header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #141414; font-weight: 700; }
.modal > header .x { margin-left: auto; }
.modal > .body { padding: 18px; overflow: auto; }
.modal > footer { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); background: #141414; }
.ov.closing { animation: fadeIn .18s reverse forwards; } .ov.closing .modal { animation: pop .18s reverse forwards; }

/* ---------------- login ---------------- */
.login { display: grid; place-items: center; background: #0b0b0b; overflow: hidden; }
.login .bgimg { position: absolute; inset: -40px; background: url(/img/hero.jpg) center/cover; filter: blur(18px) saturate(1.2) brightness(.35); transform: scale(1.08); }
.login .bgimg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 0, #0b0b0b 75%); }
.login .card { position: relative; width: min(430px, calc(100vw - 32px)); padding: 34px 30px 26px; border-radius: 22px; background: rgba(20, 20, 20, .82); border: 1px solid rgba(255, 255, 255, .07); backdrop-filter: blur(14px); box-shadow: var(--shadow); text-align: center; animation: rise .55s var(--spring); }
.login .card img.logo { width: 92px; height: 92px; filter: drop-shadow(0 8px 24px rgba(255, 140, 60, .25)); }
.login h1 { margin: 14px 0 6px; font-size: 24px; letter-spacing: -.02em; }
.login p { margin: 0 0 22px; color: var(--dim); }
.login .err { margin: -6px 0 16px; padding: 10px 12px; border-radius: 10px; background: rgba(224, 49, 49, .12); color: var(--red); font-weight: 600; font-size: 13px; }
.btn.roblox { background: #fff; color: #111; border-color: transparent; height: 46px; padding: 0 22px; border-radius: 14px; font-size: 15px; } .btn.roblox:hover { background: #e9e9e9; }
.linkpair { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 6px; }
.linkpair .dots { display: flex; gap: 5px; } .linkpair .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); animation: pulse 1.2s infinite; } .linkpair .dots i:nth-child(2) { animation-delay: .2s; } .linkpair .dots i:nth-child(3) { animation-delay: .4s; }
.rbxmark { width: 64px; height: 64px; border-radius: 18px; background: #fff; color: #111; display: grid; place-items: center; } .rbxmark svg { width: 34px; height: 34px; }
.rbxverified { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(81,207,102,.07); border: 1px solid rgba(81,207,102,.3); }
.rbxverified img { width: 40px; height: 40px; border-radius: 50%; background: #222; } .rbxverified b { display: block; } .rbxverified span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--green); font-weight: 600; } .rbxverified span svg { width: 12px; height: 12px; }
.login .fine { margin-top: 18px; font-size: 12px; color: var(--mute); }

/* ---------------- top bar (picker + onboarding) ---------------- */
.topnav { height: 62px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(17, 17, 17, .9); backdrop-filter: blur(10px); z-index: 5; }
.brandmark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; letter-spacing: -.01em; color: var(--text); }
.brandmark img { width: 34px; height: 34px; }
.brandmark b { color: var(--peach); font-weight: 800; }
.me { margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: .15s; position: relative; }
.me:hover { background: var(--hover); }
.av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #2a2a2a; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--dim); flex: none; overflow: hidden; }
.av.lg { width: 44px; height: 44px; font-size: 15px; } .av.xl { width: 64px; height: 64px; font-size: 20px; }
.menu { position: fixed; z-index: 150; min-width: 210px; padding: 6px; border-radius: 12px; background: #1b1b1b; border: 1px solid var(--line2); box-shadow: var(--shadow); animation: pop .18s var(--spring); transform-origin: top right; }
.menu button { width: 100%; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--text); text-align: left; }
.menu button:hover { background: var(--hover); } .menu button.red { color: var(--red); } .menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 2px; }
.menu .mh { padding: 6px 10px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); font-weight: 700; }

/* ---------------- panel picker ---------------- */
.picker { overflow: auto; }
.picker main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 50px; gap: 34px; min-height: min-content; }
.cadmark { display: flex; align-items: center; gap: 14px; font-size: 34px; font-weight: 800; letter-spacing: -.03em; animation: rise .5s var(--spring); }
.cadmark img { width: 58px; height: 58px; filter: drop-shadow(0 10px 30px rgba(255, 140, 60, .2)); }
.cadmark span { color: var(--teal); } .cadmark em { font-style: normal; color: #ff5a5f; }
.greet { margin-top: -22px; color: var(--dim); font-size: 15px; animation: rise .5s .05s var(--spring) backwards; }
.pcards { display: flex; gap: 12px; width: 100%; max-width: 1300px; overflow-x: auto; padding: 6px 4px 14px; scroll-snap-type: x mandatory; justify-content: safe center; }
.pcard { position: relative; flex: 1 0 196px; max-width: 230px; height: 340px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, #171717, #0f0f0f); padding: 16px; display: flex; flex-direction: column; cursor: pointer; overflow: hidden; scroll-snap-align: center; transition: transform .35s var(--spring), border-color .25s, box-shadow .3s; animation: rise .55s var(--spring) backwards; text-align: left; color: var(--text); }
.pcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 110%, color-mix(in srgb, var(--c) 34%, transparent), transparent 70%); opacity: .35; transition: opacity .35s; }
.pcard::after { content: ""; position: absolute; inset: auto -30% -30% auto; width: 220px; height: 220px; border-radius: 50%; background: var(--c); filter: blur(70px); opacity: 0; transition: opacity .4s; }
.pcard:hover:not(.locked) { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 55%, var(--line)); box-shadow: 0 24px 60px -20px color-mix(in srgb, var(--c) 45%, transparent); }
.pcard:hover:not(.locked)::before { opacity: 1; } .pcard:hover:not(.locked)::after { opacity: .18; }
.pcard h3 { position: relative; margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.pcard p { position: relative; margin: 6px 0 0; color: var(--dim); font-size: 12.5px; line-height: 1.4; }
.pcard .big { position: relative; margin: auto auto 6px; width: 92px; height: 92px; border-radius: 26px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, #161616); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); transition: transform .45s var(--spring); }
.pcard .big svg.i { width: 44px; height: 44px; stroke-width: 1.6; }
.pcard:hover:not(.locked) .big { transform: scale(1.08) rotate(-4deg); }
.pcard .foot { position: relative; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; min-height: 22px; }
.pcard.locked { cursor: not-allowed; } .pcard.locked > * { opacity: .38; } .pcard.locked .lock { opacity: 1; }
.pcard .lock { position: absolute; top: 14px; right: 14px; color: var(--mute); }
.srvrow { display: flex; flex-direction: column; align-items: center; gap: 10px; animation: rise .5s .15s var(--spring) backwards; }
.srvrow .nm { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.srvrow .nm img { width: 34px; height: 34px; }
.srvrow .acts { display: flex; gap: 8px; }
.livebar { display: flex; gap: 22px; color: var(--dim); font-size: 13px; animation: rise .5s .1s var(--spring) backwards; flex-wrap: wrap; justify-content: center; }
.livebar b { color: var(--text); } .livebar .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; box-shadow: 0 0 0 0 rgba(81, 207, 102, .5); animation: ring 2s infinite; }

/* ---------------- onboarding ---------------- */
.onb { overflow: auto; background: radial-gradient(1200px 600px at 50% -10%, rgba(255, 140, 60, .08), transparent 60%), var(--bg); }
.onb main { width: min(760px, calc(100vw - 32px)); margin: 0 auto; padding: 34px 0 70px; }
.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 26px; }
.step { display: flex; align-items: center; gap: 9px; color: var(--mute); font-weight: 700; font-size: 13px; transition: color .3s; }
.step i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line2); font-style: normal; font-size: 12px; transition: .35s var(--spring); }
.step.on { color: var(--text); } .step.on i { border-color: var(--teal-f); color: var(--teal); box-shadow: 0 0 0 4px rgba(9, 146, 104, .15); }
.step.done { color: var(--dim); } .step.done i { background: var(--teal-f); border-color: var(--teal-f); color: #fff; }
.steps .bar { flex: 1; height: 2px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.steps .bar::after { content: ""; position: absolute; inset: 0; background: var(--teal-f); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .5s var(--ease); }
.panelbox { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; animation: rise .45s var(--spring); }
.panelbox h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; } .panelbox > p.lead { margin: 0 0 20px; color: var(--dim); }
.panelbox .nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.welcomehero { position: relative; height: 200px; border-radius: 14px; overflow: hidden; margin: -6px -6px 22px; background: url(/img/hero-sm.jpg) center/cover; }
.welcomehero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(26, 26, 26, .95)); }
.welcomehero .t { position: absolute; left: 20px; bottom: 16px; z-index: 1; display: flex; align-items: center; gap: 12px; }
.welcomehero img { width: 56px; height: 56px; } .welcomehero h2 { margin: 0; font-size: 24px; }
.obbanner { display: block; width: calc(100% + 12px); margin: -6px -6px 20px; border-radius: 14px; aspect-ratio: 1872 / 562; object-fit: cover; background: #1d1d22; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 4px; }
.flow > div { padding: 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.flow b { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; } .flow b span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(9, 146, 104, .2); color: var(--teal); font-size: 12px; }
.flow p { margin: 0; color: var(--dim); font-size: 12.5px; }
.q { padding: 16px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); transition: border-color .2s; }
.q:focus-within { border-color: #3a3a3a; }
.q .ql { display: block; font-weight: 700; margin-bottom: 4px; } .q .qh { display: block; color: var(--dim); font-size: 12.5px; margin-bottom: 10px; }
.q .wc { margin-top: 6px; font-size: 11.5px; color: var(--mute); text-align: right; } .q .wc.ok { color: var(--teal); }
.status-card { text-align: center; padding: 38px 26px 30px; }
.status-ic { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); position: relative; }
.status-ic svg.i { width: 38px; height: 38px; }
.status-ic.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: ring 1.8s infinite; box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 50%, transparent); }
.timeline { display: grid; gap: 0; text-align: left; max-width: 380px; margin: 24px auto 0; }
.tl { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.tl:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--line); }
.tl.done:not(:last-child)::before { background: var(--teal-f); }
.tl i { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid var(--line2); background: var(--bg); }
.tl.done i { background: var(--teal-f); border-color: var(--teal-f); } .tl.now i { border-color: var(--yellow); } .tl.now i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); animation: pulse 1.2s infinite; }
.tl b { display: block; } .tl span { color: var(--dim); font-size: 12.5px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; }

/* ---------------- MDT (unit panels) ---------------- */
.mdt { background: var(--bg); }
.tb { flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tb::-webkit-scrollbar { display: none; }
.tb .sep { width: 1px; height: 30px; background: var(--line); margin: 0 4px; flex: none; }
.tbtn { flex: none; display: grid; justify-items: center; align-content: center; gap: 1px; min-width: 82px; height: 44px; padding: 0 10px; border-radius: var(--r); border: .8px solid var(--c, var(--gray)); color: var(--c, var(--gray)); background: transparent; font-weight: 600; font-size: 12.5px; cursor: pointer; transition: background .15s, transform .12s var(--ease), color .15s; white-space: nowrap; }
.tbtn svg.i { width: 17px; height: 17px; }
.tbtn:hover { background: color-mix(in srgb, var(--c, #fff) 10%, transparent); } .tbtn:active { transform: scale(.95); }
.tbtn.on { background: var(--teal-f); border-color: transparent; color: #fff; }
.tbtn.fill { background: var(--c); border-color: transparent; color: #fff; }
.tbtn.home { width: 44px; min-width: 44px; padding: 0; border: 0; background: #222; color: #fff; }
.tbtn.home img { width: 30px; height: 30px; }
.tbtn.panic { --c: var(--red); } .tbtn.panic.on, .tbtn.panic.armed { background: var(--red-f); color: #fff; border-color: transparent; animation: pulse 1s infinite; }
.clock { margin-left: auto; text-align: right; flex: none; padding-left: 12px; }
.clock b { display: block; font-size: 20px; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1.1; } .clock span { font-size: 11px; color: var(--dim); }
.sb { flex: none; display: flex; align-items: center; gap: 4px; padding: 0 10px; height: 38px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.sb::-webkit-scrollbar { display: none; }
.sb .lnk { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border-radius: 8px; border: 0; background: none; color: var(--teal); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; transition: background .15s; }
.sb .lnk:hover { background: rgba(56, 217, 169, .08); } .sb .lnk svg.i { width: 16px; height: 16px; }
.sb .lnk.w { color: var(--text); font-weight: 700; } .sb .right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.unitpill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px 0 10px; border-radius: 10px; background: var(--c); color: #fff; font-weight: 800; font-size: 12.5px; border: 0; cursor: pointer; transition: filter .15s; }
.unitpill:hover { filter: brightness(1.1); } .unitpill svg.i { width: 15px; height: 15px; }
.unitpill.off { background: var(--card2); color: var(--dim); border: 1px solid var(--line2); }
.mdtbody { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(380px, 1.05fr) minmax(420px, 1fr); }
.col { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.col + .col { border-left: 1px solid var(--line); }
.pane { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.pane + .pane { border-top: 1px solid var(--line); }
.ph { flex: none; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); }
.ph h4 { margin: 0; font-size: 15px; font-weight: 700; white-space: nowrap; }
.ph .grow { flex: 1; }
.ph .search { position: relative; width: 190px; } .ph .search .in { height: 30px; padding-left: 30px; font-size: 13px; border-radius: 9px; } .ph .search svg.i { position: absolute; left: 9px; top: 7px; width: 15px; height: 15px; color: var(--mute); }
.pb { flex: 1; overflow: auto; padding: 12px 14px; min-height: 0; }
.tablewrap { border: 1px solid var(--line); border-radius: 12px; overflow: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-weight: 700; color: var(--text); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: #141414; z-index: 1; font-size: 12.5px; }
table.t td { padding: 8px 12px; border-bottom: 1px solid #1f1f1f; white-space: nowrap; vertical-align: middle; }
table.t tbody tr { transition: background .12s; cursor: default; }
table.t tbody tr.click { cursor: pointer; } table.t tbody tr:hover { background: #181818; }
table.t tbody tr.sel { background: rgba(9, 146, 104, .1); } table.t tbody tr:last-child td { border-bottom: 0; }
table.t tbody tr.new { animation: rowIn .6s var(--ease); }
@keyframes rowIn { from { background: rgba(56, 217, 169, .18); } }
table.t tr.p1 td:first-child { box-shadow: inset 3px 0 0 var(--red-f); }
table.t tr.panic { animation: flash 1s infinite; }
.loc { display: inline-flex; align-items: center; gap: 4px; color: var(--text); } .loc svg.i { width: 14px; height: 14px; color: var(--teal); }
.empty { display: grid; place-items: center; text-align: center; padding: 34px 16px; color: var(--dim); gap: 6px; }
.empty svg.i { width: 30px; height: 30px; color: var(--teal); stroke-width: 1.6; }
.empty b { color: var(--text); font-size: 16px; }
.empty.inbox { border: 1px solid var(--line); border-radius: 12px; margin-top: 0; }
.callform { display: grid; gap: 12px; }
.callform .grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.callform .grid4b { display: grid; grid-template-columns: 1.4fr 1.4fr .8fr 1fr; gap: 12px; }
.callform .in[readonly], .callform .in:disabled { color: var(--dim); }
.unitchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 26px; }
.notes { display: grid; gap: 6px; margin-top: 2px; }
.note { padding: 8px 10px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); font-size: 13px; animation: rise .3s var(--ease); }
.note .by { display: flex; gap: 8px; color: var(--dim); font-size: 11.5px; margin-bottom: 2px; } .note .by b { color: var(--teal); font-weight: 700; }
.noteline { display: flex; gap: 8px; align-items: center; }
.noteline .in { flex: 1; }
.callhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.callhead .num { font-weight: 800; }
.dutycard { margin: auto; text-align: center; max-width: 360px; padding: 20px; }
.dutycard .status-ic { width: 70px; height: 70px; }

/* ---------------- floating windows ---------------- */
.win { position: fixed; z-index: 60; display: flex; flex-direction: column; min-width: 340px; min-height: 160px; background: #141414; border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; animation: winIn .3s var(--spring); resize: both; }
@keyframes winIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.win.closing { animation: winIn .18s reverse forwards; }
.win.front { z-index: 61; }
.win.max { inset: 8px !important; width: auto !important; height: auto !important; resize: none; }
.win.min { height: 44px !important; min-height: 0; resize: none; }
.win.min .wb { display: none; }
.wh { flex: none; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--line); cursor: grab; user-select: none; background: #161616; }
.wh:active { cursor: grabbing; }
.wh .t { font-weight: 700; display: flex; align-items: center; gap: 8px; } .wh .t svg.i { color: var(--teal); }
.wh .tabs { display: flex; gap: 2px; margin-left: 10px; }
.wh .tabs button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 0; background: none; color: var(--dim); font-weight: 600; cursor: pointer; }
.wh .tabs button.on { background: var(--card2); color: var(--text); } .wh .tabs button:hover { color: var(--text); }
.wh .tools { margin-left: auto; display: flex; gap: 2px; }
.wh .tools button { width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--dim); cursor: pointer; display: grid; place-items: center; }
.wh .tools button:hover { background: var(--hover); color: var(--text); } .wh .tools button.x:hover { background: var(--red-f); color: #fff; }
.wh .tools svg.i { width: 15px; height: 15px; }
.wb { flex: 1; overflow: auto; padding: 14px; min-height: 0; }
.searchbar { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 12px; background: #1a1a1a; border: 1px solid var(--line); }
.searchbar .in { border: 0; background: transparent; height: 32px; box-shadow: none !important; }
.result { margin-top: 12px; display: grid; gap: 12px; }

/* ID card / profile */
.idcard { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 16px; border-radius: 14px; background: linear-gradient(135deg, #1c1c1c, #151515); border: 1px solid var(--line); position: relative; overflow: hidden; animation: rise .35s var(--ease); }
.idcard::before { content: "GEORGIA"; position: absolute; right: 14px; top: 10px; font-weight: 900; letter-spacing: .3em; font-size: 11px; color: rgba(255, 154, 77, .45); }
.idcard .ph0 { width: 92px; height: 112px; border-radius: 10px; background: #242424; display: grid; place-items: center; color: var(--mute); font-size: 30px; font-weight: 800; overflow: hidden; }
.idcard .ph0 img { width: 100%; height: 100%; object-fit: cover; }
.idcard h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px 14px; }
.kv div { display: grid; } .kv span { font-size: 11px; color: var(--mute); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; } .kv b { font-weight: 600; font-size: 13.5px; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sect { margin-top: 16px; } .sect h5 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.charges { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.charge { display: grid; grid-template-columns: 22px 92px 1fr auto; gap: 8px; align-items: center; padding: 7px 10px; border-bottom: 1px solid #1f1f1f; cursor: pointer; font-size: 13px; }
.charge:hover { background: #1b1b1b; } .charge:last-child { border-bottom: 0; }
.charge input { accent-color: var(--teal-f); } .charge .mono { color: var(--dim); font-size: 12px; }
.total { display: flex; gap: 18px; padding: 10px 12px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); font-weight: 700; margin-top: 8px; }
.ac { position: relative; } .acbox { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; background: #1b1b1b; border: 1px solid var(--line2); border-radius: 10px; box-shadow: var(--shadow); padding: 4px; max-height: 240px; overflow: auto; }
.acbox button { display: flex; width: 100%; gap: 8px; align-items: center; padding: 8px 10px; border: 0; background: none; border-radius: 7px; text-align: left; cursor: pointer; }
.acbox button:hover, .acbox button.on { background: var(--hover); }

/* map */
.mapwrap { position: relative; height: 100%; min-height: 300px; border-radius: 10px; overflow: hidden; background: #0d0d0d; }
.leaflet-container { background: #0d0d0d !important; font: inherit !important; }
.mk { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 10px; font-weight: 800; border: 2px solid #111; box-shadow: 0 3px 10px rgba(0, 0, 0, .5); transition: transform .2s; }
.mk.call { border-radius: 8px; transform: rotate(45deg); } .mk.call span { transform: rotate(-45deg); }
.mk.player { width: 12px; height: 12px; border-width: 1.5px; }
.mklbl { position: absolute; left: 30px; top: 3px; white-space: nowrap; background: rgba(17, 17, 17, .85); padding: 1px 6px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #fff; }
.leaflet-tooltip { background: #1b1b1b !important; color: var(--text) !important; border: 1px solid var(--line2) !important; border-radius: 8px !important; box-shadow: var(--shadow) !important; }

/* civilian */
.civgrid { flex: 1; min-height: 0; display: grid; grid-template-columns: 330px 1fr; }
.civlist { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.civitem { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: background .15s, transform .2s var(--spring); border: 1px solid transparent; }
.civitem:hover { background: #181818; } .civitem.on { background: rgba(9, 146, 104, .1); border-color: rgba(9, 146, 104, .35); }
.civitem .av { width: 40px; height: 40px; border-radius: 12px; }
.civitem b { display: block; } .civitem span { color: var(--dim); font-size: 12.5px; }
.vehrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.plate { font-family: "JetBrains Mono", monospace; font-weight: 800; padding: 3px 9px; border-radius: 6px; background: #f4f4f4; color: #111; letter-spacing: .08em; font-size: 13px; border-bottom: 3px solid #ff9a4d; }

/* staff */
.staff { background: var(--bg); }
.staffbody { flex: 1; min-height: 0; display: grid; grid-template-columns: 232px 1fr; }
.side { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; overflow: auto; }
.side button { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 10px; border: 0; background: none; color: var(--dim); font-weight: 600; cursor: pointer; text-align: left; transition: .15s; }
.side button:hover { background: #181818; color: var(--text); } .side button.on { background: rgba(9, 146, 104, .14); color: var(--teal); }
.side button .n { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--red-f); color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 800; }
.side .mh { padding: 14px 12px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--mute); font-weight: 700; }
.smain { overflow: auto; padding: 22px 26px 40px; }
.smain > h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; } .smain > p.lead { margin: 0 0 20px; color: var(--dim); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); animation: rise .4s var(--ease) backwards; }
.stat span { color: var(--dim); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; } .stat span svg.i { width: 16px; height: 16px; color: var(--c, var(--teal)); }
.stat b { display: block; font-size: 28px; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.box h4 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.applist { display: grid; grid-template-columns: 330px 1fr; gap: 14px; align-items: start; }
.appitem { display: flex; gap: 11px; align-items: center; padding: 10px 12px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; transition: .15s; }
.appitem:hover { background: #181818; } .appitem.on { background: rgba(9, 146, 104, .1); border-color: rgba(9, 146, 104, .35); }
.appitem b { display: block; } .appitem span { color: var(--dim); font-size: 12px; }
.answer { padding: 12px 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.answer .qq { font-size: 12px; font-weight: 700; color: var(--dim); margin-bottom: 4px; } .answer .aa { white-space: pre-wrap; word-break: break-word; }
.logline { display: flex; gap: 12px; padding: 8px 4px; border-bottom: 1px solid #1d1d1d; font-size: 13px; } .logline time { color: var(--mute); font-variant-numeric: tabular-nums; flex: none; width: 62px; }
.maprow { display: grid; grid-template-columns: 220px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #1e1e1e; }
.maprow:last-child { border-bottom: 0; }
.ok-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); display: inline-block; } .ok-dot.bad { background: var(--red-f); }

.offline { position: fixed; top: 10px; left: 50%; transform: translate(-50%, -60px); z-index: 250; padding: 8px 14px; border-radius: 99px; background: var(--red-f); color: #fff; font-weight: 700; font-size: 13px; transition: transform .35s var(--spring); box-shadow: var(--shadow); }
.offline.on { transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .mdtbody { grid-template-columns: 1fr; overflow: auto; } .col + .col { border-left: 0; border-top: 1px solid var(--line); }
  .pane { min-height: 320px; }
  .civgrid, .staffbody, .applist { grid-template-columns: 1fr; } .civlist { border-right: 0; border-bottom: 1px solid var(--line); max-height: 40vh; }
  .side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; } .side .mh { display: none; } .side button { flex: none; }
}
@media (max-width: 640px) {
  .row2, .row3, .callform .grid4, .callform .grid4b, .flow { grid-template-columns: 1fr; }
  .pcards { justify-content: flex-start; } .smain { padding: 16px; } .panelbox { padding: 18px; }
  .win { inset: 6px !important; width: auto !important; height: auto !important; }
}
