:root {
  --bg: #0e0f11; --panel: #141619; --panel-2: #181a1e; --field: #1b1d22; --field-hover: #20232a;
  --line: rgba(255, 255, 255, 0.07); --line-strong: rgba(255, 255, 255, 0.13);
  --text: #eceef1; --text-2: #a3a8b1; --text-3: #6f7580;
  --accent: #8b7fd9;
  --accent-hover: color-mix(in srgb, var(--accent) 86%, white);
  --accent-ink: color-mix(in srgb, var(--accent) 12%, #07080a);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-text: color-mix(in srgb, var(--accent) 62%, white);
  --ok: #46a883; --ok-soft: rgba(70, 168, 131, 0.13); --warn: #cfa349; --warn-soft: rgba(207, 163, 73, 0.13);
  --bad: #d0645e; --bad-soft: rgba(208, 100, 94, 0.13);
  --r: 16px; --r-sm: 10px; --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 15px/1.55 Outfit, 'Segoe UI', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--text); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .86em; background: var(--field); border: 1px solid var(--line); border-radius: 6px; padding: .05em .4em; color: var(--text-2); }
.ic { width: 18px; height: 18px; flex: none; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.grow { flex: 1; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
.eyebrow { color: var(--text-3); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; font-weight: 500; }
.skel { display: inline-block; height: 1em; border-radius: 6px; background: linear-gradient(90deg, #1a1c20, #23262c, #1a1c20); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; vertical-align: middle; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 15px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--field); color: var(--text); font: 500 14px Outfit, system-ui, sans-serif; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease); }
.btn:hover { background: var(--field-hover); border-color: rgba(255,255,255,.2); color: var(--text); }
.btn:active { transform: scale(0.97); }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(255,255,255,.05); border-color: transparent; }
.btn-danger { background: var(--bad-soft); border-color: rgba(208,100,94,.35); color: #eba19c; }
.btn-danger:hover { background: var(--bad); border-color: var(--bad); color: #1a0907; }
.btn-sm { height: 34px; padding: 0 11px; font-size: 13.5px; border-radius: 9px; }
.btn-xs { height: 28px; padding: 0 9px; font-size: 12.5px; border-radius: 8px; gap: 5px; }
.btn-block { width: 100%; height: 44px; }
.btn-icon { width: 40px; padding: 0; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.loading::after { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: var(--text); animation: spin .7s linear infinite; }
.btn-primary.loading::after { border-color: rgba(0,0,0,.25); border-top-color: var(--accent-ink); }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease); }
.icon-btn:hover { background: rgba(255,255,255,.06); color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.icon-btn[aria-pressed="true"] { color: var(--accent); }
input:not([type=checkbox]):not([type=file]), select, textarea { width: 100%; height: 42px; padding: 0 13px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--field); color: var(--text); font: 15px Outfit, system-ui, sans-serif; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease); }
textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.6; }
input:hover, select:hover, textarea:hover { background: var(--field-hover); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
.field { display: grid; gap: 7px; align-content: start; }
.field > span { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.hint { color: var(--text-3); font-size: 12.5px; }
.form-error { color: #eba19c; font-size: 13.5px; }
.field.has-error input { border-color: rgba(208,100,94,.6); }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14px; color: var(--text-2); user-select: none; }
.check input { appearance: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-strong); background: var(--field); margin: 0; display: grid; place-items: center; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 11px; cursor: pointer; user-select: none; font-size: 14px; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: #2a2d34; margin: 0; cursor: pointer; position: relative; transition: background-color .2s var(--ease); flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #c9ccd2; transition: transform .25s var(--ease), background-color .2s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); background: var(--accent-ink); }

.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 max(20px, calc((100vw - 1240px) / 2)); background: rgba(14,15,17,.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand .mark { width: 28px; height: 28px; transition: transform .5s var(--ease); }
.brand:hover .mark { transform: rotate(-12deg) scale(1.05); }
.brand em { font-style: normal; color: var(--accent-text); }
.sites { display: flex; gap: 2px; margin-left: 14px; }
.sites a { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 9px; color: var(--text-2); font-size: 14px; font-weight: 500; transition: background-color .2s var(--ease), color .2s var(--ease); }
.sites a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); opacity: .8; }
.sites a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.sites a.on { color: var(--text); background: rgba(255,255,255,.06); }
.sites a.off { color: var(--text-3); }
.sites a.off::after { content: 'versteckt'; font-size: 10.5px; color: var(--text-3); border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 4px; margin-left: 2px; }
.me { margin-left: auto; position: relative; }
.me-btn { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 6px 0 4px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 500 14px Outfit, system-ui, sans-serif; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.me-btn:hover, .me-btn[aria-expanded="true"] { background: rgba(255,255,255,.05); border-color: var(--line-strong); }
.me-btn .name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-btn .ic { width: 14px; height: 14px; color: var(--text-3); margin-right: 4px; }
.avatar { --s: 32px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: color-mix(in srgb, var(--accent) 24%, #1b1d22); color: var(--accent-text); font-weight: 600; font-size: calc(var(--s) * .4); letter-spacing: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); width: 270px; padding: 6px; border-radius: 14px; border: 1px solid var(--line-strong); background: #17191d; box-shadow: 0 24px 48px -16px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.04); transform-origin: top right; animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.menu-head { display: flex; gap: 11px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head b { display: block; font-weight: 600; }
.menu-head span { display: block; color: var(--text-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; border-radius: 9px; border: 0; background: none; color: var(--text-2); font: 14px Outfit, system-ui, sans-serif; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: rgba(255,255,255,.05); color: var(--text); }
.menu .ic { width: 16px; height: 16px; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu-sites { display: none; }

.page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 40px 20px 72px; flex: 1; }
.page-narrow { max-width: 880px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.page-head h1 { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.035em; line-height: 1.05; margin-top: 6px; }
.page-head .lead { color: var(--text-2); margin-top: 10px; max-width: 62ch; }
.banner { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; margin-bottom: 22px; background: var(--warn-soft); border: 1px solid rgba(207,163,73,.3); color: #e7c98a; font-size: 14px; }
.banner .ic { width: 16px; height: 16px; }
.banner a { color: inherit; text-decoration: underline; text-underline-offset: 3px; margin-left: auto; }
.flashes { display: grid; gap: 8px; margin-bottom: 22px; }
.flash { padding: 11px 15px; border-radius: 11px; font-size: 14px; border: 1px solid var(--line-strong); background: var(--panel); animation: rise .35s var(--ease); }
.flash.ok { border-color: rgba(70,168,131,.35); background: var(--ok-soft); color: #9fd7c1; }
.flash.error { border-color: rgba(208,100,94,.35); background: var(--bad-soft); color: #eba19c; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2 { font-size: 17px; }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: rgba(255,255,255,.06); color: var(--text-2); white-space: nowrap; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: #8fd0b7; }
.pill.warn { background: var(--warn-soft); color: #e2c27e; }
.pill.bad { background: var(--bad-soft); color: #eba19c; }
.pill.live .dot { animation: breathe 2.4s ease-in-out infinite; }
.empty { display: grid; justify-items: start; gap: 8px; padding: 34px 26px; border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--text-2); }
.empty h3 { font-size: 17px; color: var(--text); }
.empty .ic { width: 26px; height: 26px; color: var(--accent); }
.foot { border-top: 1px solid var(--line); padding: 22px max(20px, calc((100vw - 1240px) / 2)); display: flex; gap: 18px; flex-wrap: wrap; color: var(--text-3); font-size: 13px; }
.foot a { color: var(--text-3); }
.foot a:hover { color: var(--text); }
.foot .grow { flex: 1; }
.toasts { position: fixed; z-index: 60; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); }
.toast { padding: 12px 16px; border-radius: 12px; background: #1d2025; border: 1px solid var(--line-strong); box-shadow: 0 20px 40px -12px rgba(0,0,0,.6); font-size: 14px; animation: rise .3s var(--ease); }
.toast.ok { border-color: rgba(70,168,131,.4); }
.toast.error { border-color: rgba(208,100,94,.45); color: #f0b2ad; }
.stagger > * { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }

.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100dvh; }
.auth-brand { position: relative; overflow: hidden; padding: 52px 60px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); background: radial-gradient(120% 90% at 0% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), linear-gradient(165deg, #15171b, #0f1013); }
.auth-brand canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.auth-brand > * { position: relative; }
.auth-brand .mark { width: 48px; height: 48px; }
.auth-brand h1 { font-size: clamp(36px, 4vw, 54px); letter-spacing: -0.04em; line-height: 1.02; }
.auth-brand p { color: var(--text-2); margin-top: 14px; font-size: 16px; max-width: 40ch; }
.auth-apps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.auth-apps span { font-size: 12.5px; color: var(--text-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 11px; background: rgba(14,15,17,.5); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 6vh 7vw; }
.auth-form { width: 100%; max-width: 400px; display: grid; gap: 16px; animation: rise .45s var(--ease) both; }
.auth-form h2 { font-size: 28px; letter-spacing: -0.03em; }
.auth-target { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; }
.auth-target .ic { width: 16px; height: 16px; }
.auth-foot { margin-top: 28px; color: var(--text-3); font-size: 13px; }

.profile-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin-bottom: 30px; }
.avatar-edit { position: relative; }
.avatar-edit .avatar { --s: 84px; font-size: 32px; }
.avatar-edit label { position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); border: 3px solid var(--bg); cursor: pointer; transition: transform .2s var(--ease); }
.avatar-edit label:hover { transform: scale(1.08); }
.avatar-edit label .ic { width: 14px; height: 14px; }
.avatar-edit input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.profile-hero h1 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.03em; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.app-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.app-tile { display: grid; gap: 4px; padding: 14px 15px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); transition: border-color .2s var(--ease), transform .2s var(--ease), background-color .2s var(--ease); }
.app-tile:hover { border-color: var(--line-strong); transform: translateY(-2px); color: var(--text); background: #1b1d22; }
.app-tile b { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.app-tile b::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.app-tile span { color: var(--text-3); font-size: 13px; }
.list { display: grid; }
.list > div, .list > li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list > :first-child { border-top: 0; }
.list .meta { display: grid; gap: 1px; min-width: 0; flex: 1; }
.list .meta b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .meta span { color: var(--text-3); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }

.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); width: fit-content; margin-bottom: 24px; flex-wrap: wrap; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 9px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.tabs a:hover { color: var(--text); }
.tabs a.on { background: var(--field-hover); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.tabs .count { font-family: var(--mono); font-size: 11.5px; color: var(--accent-text); background: var(--accent-soft); border-radius: 6px; padding: 0 6px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.users { display: grid; }
.user { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.user:first-child { border-top: 0; padding-top: 2px; }
.user .meta b { font-weight: 600; }
.user .meta span { color: var(--text-3); font-size: 13px; display: block; }
.user details { grid-column: 1 / -1; }
.user summary { list-style: none; cursor: pointer; color: var(--text-3); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.user summary::-webkit-details-marker { display: none; }
.user summary:hover { color: var(--text); }
.user details[open] summary { color: var(--text-2); margin-bottom: 12px; }
.user-edit { display: grid; gap: 14px; padding: 16px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.site-row:first-of-type { border-top: 0; padding-top: 0; }
.site-row b { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.site-row b::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.site-row span { color: var(--text-3); font-size: 13px; }
.invite-box { display: grid; gap: 10px; padding: 16px; border-radius: 12px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-family: var(--mono) !important; font-size: 13px !important; }
.log { display: grid; font-size: 13.5px; }
.log div { display: grid; grid-template-columns: 92px 80px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.log div:first-child { border-top: 0; }
.log time, .log i { font-family: var(--mono); font-size: 12px; color: var(--text-3); font-style: normal; }
.log span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-admin { display: grid; gap: 10px; }
.srv-card { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; transition: border-color .2s var(--ease); }
.srv-card.is-visible { border-color: color-mix(in srgb, var(--accent) 38%, transparent); }
.srv-card summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; }
.srv-card summary::-webkit-details-marker { display: none; }
.srv-card summary b { font-weight: 600; }
.srv-card summary .sub { color: var(--text-3); font-size: 13px; display: block; }
.srv-card form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 4px 18px 18px; }
.srv-card .full { grid-column: 1 / -1; }
.srv-card .chev { transition: transform .25s var(--ease); color: var(--text-3); }
.srv-card[open] .chev { transform: rotate(90deg); }
.wish-admin { display: grid; gap: 10px; }
.wish-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.wish-row p { font-size: 15.5px; line-height: 1.5; }
.wish-row .by { color: var(--text-3); font-size: 13px; margin-top: 6px; }

.status-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 26px 28px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(120deg, color-mix(in srgb, var(--state) 12%, var(--panel)), var(--panel) 60%); margin-bottom: 26px; }
.status-hero .orb { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--state) 18%, transparent); color: var(--state); position: relative; }
.status-hero .orb::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--state) 40%, transparent); animation: ring 2.8s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.status-hero .orb .ic { width: 24px; height: 24px; }
.status-hero h1 { font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -0.03em; }
.status-hero p { color: var(--text-2); margin-top: 4px; }
.status-hero .checked { text-align: right; color: var(--text-3); font-size: 13px; }
.svc-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 6px 24px; }
.svc { padding: 20px 0; border-top: 1px solid var(--line); }
.svc:first-child { border-top: 0; }
.svc-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.svc-head h3 { font-size: 16px; }
.svc-head a { color: var(--text-3); font-size: 13px; font-family: var(--mono); }
.svc-head a:hover { color: var(--text); }
.svc-head .up { margin-left: auto; font-size: 13px; color: var(--text-2); }
.bars { display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 2px; height: 34px; }
.bars i { display: block; border-radius: 2px; background: #24272d; transition: transform .2s var(--ease), filter .2s; transform-origin: bottom; position: relative; }
.bars i.ok { background: var(--ok); opacity: .85; }
.bars i.minor { background: var(--warn); }
.bars i.major { background: var(--bad); }
.bars i:hover { transform: scaleY(1.12); filter: brightness(1.2); }
.bars-foot { display: flex; justify-content: space-between; color: var(--text-3); font-size: 12px; margin-top: 7px; }
.tip { position: fixed; z-index: 70; pointer-events: none; padding: 7px 10px; border-radius: 9px; background: #202329; border: 1px solid var(--line-strong); font-size: 12.5px; color: var(--text-2); box-shadow: 0 12px 24px -8px rgba(0,0,0,.6); white-space: nowrap; }
.tip b { color: var(--text); font-weight: 600; }
.status-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 26px; }
.incidents { display: grid; }
.incident { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.incident:first-child { border-top: 0; padding-top: 0; }
.incident .mk { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; background: var(--text-3); }
.incident.crit .mk { background: var(--bad); }
.incident.warn .mk { background: var(--warn); }
.incident.ok .mk { background: var(--ok); }
.incident b { font-weight: 500; display: block; }
.incident span { color: var(--text-3); font-size: 13px; }
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--text-3); font-size: 14px; }
.facts dd { margin: 0; font-family: var(--mono); font-size: 14px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--text-3); font-size: 12.5px; margin-top: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.play-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 34px; align-items: end; margin-bottom: 34px; }
.play-hero h1 { font-size: clamp(34px, 4.4vw, 58px); letter-spacing: -0.045em; line-height: .98; margin-top: 8px; }
.play-hero .lead { color: var(--text-2); margin-top: 14px; max-width: 54ch; font-size: 16px; }
.play-sum { display: flex; gap: 28px; justify-content: flex-end; }
.play-sum div { display: grid; gap: 2px; }
.play-sum b { font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: -0.04em; }
.play-sum span { color: var(--text-3); font-size: 13px; }
.servers { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.server { grid-column: span 6; position: relative; display: grid; align-content: space-between; gap: 16px; padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.server:hover { border-color: var(--line-strong); }
.server.featured { grid-column: span 12; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; }
.server.online { background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 9%, var(--panel)), var(--panel) 55%); }
.server-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.server h2 { font-size: 22px; letter-spacing: -0.03em; }
.server .desc { color: var(--text-2); max-width: 60ch; }
.server .motd { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); padding: 9px 12px; border-radius: 10px; background: rgba(0,0,0,.18); border: 1px solid var(--line); white-space: pre-wrap; }
.addr { display: flex; align-items: center; gap: 4px; height: 46px; padding: 0 5px 0 15px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--field); }
.addr code { flex: 1; background: none; border: 0; padding: 0; font-size: 14.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.players { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.player-heads { display: flex; }
.player-heads img { width: 26px; height: 26px; border-radius: 6px; border: 2px solid var(--panel); margin-left: -6px; image-rendering: pixelated; background: #24272d; }
.player-heads img:first-child { margin-left: 0; }
.meter { height: 6px; border-radius: 99px; background: #24272d; overflow: hidden; flex: 1; min-width: 80px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .6s var(--ease); }
.server-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.reader { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; align-items: start; }
.feeds-side { position: sticky; top: 88px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; max-height: calc(100dvh - 110px); overflow: auto; padding-right: 4px; }
.feeds-side nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.feeds-side .grp { color: var(--text-3); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 12px 10px 4px; }
.fl { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 10px; border-radius: 9px; color: var(--text-2); font-size: 14px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; font-family: inherit; }
.fl:hover { background: rgba(255,255,255,.04); color: var(--text); }
.fl.on { background: var(--accent-soft); color: var(--text); }
.fl .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl .n { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.fl.on .n { color: var(--accent-text); }
.fl .fav { width: 16px; height: 16px; border-radius: 4px; flex: none; background: #24272d; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: var(--text-2); }
.fl .err { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.fl .ic { width: 16px; height: 16px; }
.reader-main { min-width: 0; }
.reader-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.reader-tools h1 { font-size: 26px; letter-spacing: -0.03em; margin-right: auto; }
.search { position: relative; width: 240px; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.search input { padding-left: 36px !important; height: 38px !important; }
.items { display: grid; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) 116px; gap: 20px; padding: 18px 4px; border-top: 1px solid var(--line); cursor: pointer; transition: background-color .2s var(--ease); border-radius: 4px; }
.item:first-child { border-top: 0; }
.item:hover { background: rgba(255,255,255,.02); }
.item.no-img { grid-template-columns: minmax(0, 1fr); }
.item .src { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12.5px; }
.item .src b { color: var(--accent-text); font-weight: 500; }
.item h3 { font-size: 17px; line-height: 1.35; margin: 6px 0; font-weight: 600; }
.item.read h3 { color: var(--text-3); font-weight: 500; }
.item.read .src b { color: var(--text-3); }
.item p { color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item.read p { color: var(--text-3); }
.item .thumb { width: 116px; aspect-ratio: 4 / 3; border-radius: 10px; object-fit: cover; background: #1d2025; }
.item .acts { display: flex; gap: 2px; margin-top: 8px; margin-left: -8px; opacity: .7; }
.item:hover .acts { opacity: 1; }
.item .acts .icon-btn { width: 30px; height: 30px; }
.item .acts .ic { width: 16px; height: 16px; }
.more { display: flex; justify-content: center; padding: 22px 0; }
.skel-item { padding: 20px 4px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.dlg { border: 1px solid var(--line-strong); border-radius: 18px; background: #16181c; color: var(--text); padding: 0; width: min(480px, calc(100vw - 32px)); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.dlg::backdrop { background: rgba(6,7,8,.65); backdrop-filter: blur(3px); }
.dlg[open] { animation: pop .25s var(--ease); }
.dlg form { display: grid; gap: 16px; padding: 24px; }
.dlg h3 { font-size: 20px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; }

body.site-wishes { background: #0b0c10; }
.sky { position: fixed; inset: 0; z-index: 0; }
.sky canvas { width: 100%; height: 100%; display: block; }
body.site-wishes .top { background: rgba(11,12,16,.55); }
body.site-wishes .page, body.site-wishes .foot { position: relative; z-index: 1; }
body.site-wishes .foot { background: transparent; border-top-color: rgba(255,255,255,.05); }
.wish-stage { min-height: calc(100dvh - 64px - 140px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; align-items: center; }
.wish-copy h1 { font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -0.05em; line-height: .95; }
.wish-copy p { color: var(--text-2); font-size: 17px; margin-top: 18px; max-width: 42ch; }
.wish-copy .count { margin-top: 26px; color: var(--text-3); font-size: 14px; }
.wish-copy .count b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.wish-form { display: grid; gap: 14px; padding: 26px; border-radius: 22px; background: rgba(20,22,25,.72); border: 1px solid rgba(255,255,255,.09); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 60px -30px rgba(0,0,0,.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.wish-form h2 { font-size: 20px; }
.wish-form textarea { min-height: 110px; background: rgba(27,29,34,.8); }
.wish-form .meta { display: flex; justify-content: space-between; color: var(--text-3); font-size: 12.5px; }
.wish-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wish-card { position: fixed; z-index: 30; max-width: 300px; padding: 14px 16px; border-radius: 14px; background: rgba(23,25,29,.94); border: 1px solid var(--line-strong); box-shadow: 0 20px 40px -14px rgba(0,0,0,.8); font-size: 14.5px; line-height: 1.5; animation: pop .25s var(--ease); pointer-events: none; }
.wish-card span { display: block; color: var(--text-3); font-size: 12.5px; margin-top: 6px; }
.wish-list { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.wish-list figure { margin: 0; padding: 16px 18px; border-radius: 14px; background: rgba(20,22,25,.6); border: 1px solid rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.wish-list blockquote { margin: 0; font-size: 15px; line-height: 1.5; }
.wish-list figcaption { color: var(--text-3); font-size: 12.5px; margin-top: 8px; }

.err { min-height: 60dvh; display: grid; align-content: center; gap: 14px; max-width: 560px; }
.err .code { font-family: var(--mono); font-size: 14px; color: var(--accent-text); }
.err h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.035em; }
.err p { color: var(--text-2); }

@media (max-width: 960px) {
  .sites { display: none; }
  .menu-sites { display: block; }
  .profile-grid, .admin-grid, .status-grid, .play-hero, .reader, .wish-stage { grid-template-columns: minmax(0, 1fr); }
  .play-sum { justify-content: flex-start; }
  .server, .server.featured { grid-column: span 12; grid-template-columns: minmax(0, 1fr); }
  .feeds-side { position: static; max-height: none; }
  .feeds-side nav { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .feeds-side .grp { display: none; }
  .fl { width: auto; flex: none; border: 1px solid var(--line); }
  .wish-stage { min-height: 0; padding-top: 6vh; }
}
@media (max-width: 760px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-brand { padding: 30px 22px 34px; border-right: 0; border-bottom: 1px solid var(--line); min-height: 260px; }
  .auth-brand h1 { font-size: 34px; }
  .auth-panel { padding: 32px 20px 48px; }
  .page { padding: 26px 16px 56px; }
  .me-btn .name { display: none; }
  .form-grid, .srv-card form { grid-template-columns: minmax(0, 1fr); }
  .profile-hero { grid-template-columns: auto minmax(0, 1fr); }
  .profile-hero > :last-child { grid-column: 1 / -1; }
  .status-hero { grid-template-columns: auto minmax(0, 1fr); padding: 20px; }
  .status-hero .checked { grid-column: 1 / -1; text-align: left; }
  .svc-list { padding: 4px 16px; }
  .bars { grid-template-columns: repeat(45, minmax(0, 1fr)); }
  .bars i:nth-child(-n+45) { display: none; }
  .item { grid-template-columns: minmax(0, 1fr) 84px; gap: 14px; }
  .item .thumb { width: 84px; }
  .search { width: 100%; order: 3; }
  .srv-card summary { grid-template-columns: minmax(0, 1fr) auto auto; }
  .srv-card summary .chev { display: none; }
  .log div { grid-template-columns: 80px minmax(0, 1fr); }
  .log i { display: none; }
  .wish-row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.site-card { --accent: var(--dot); display: grid; gap: 18px; align-content: space-between; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(160deg, color-mix(in srgb, var(--dot) 8%, var(--panel)), var(--panel) 55%); transition: border-color .25s var(--ease), transform .25s var(--ease); }
.site-card:hover { border-color: color-mix(in srgb, var(--dot) 35%, transparent); }
.site-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.site-card h2 { font-size: 19px; display: flex; align-items: center; gap: 9px; }
.site-card h2::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.site-card .host { color: var(--text-3); font-family: var(--mono); font-size: 12.5px; }
.site-card .host:hover { color: var(--text); }
.site-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.site-stats div { padding: 11px 12px; border-radius: 11px; background: rgba(0,0,0,.18); border: 1px solid var(--line); }
.site-stats dt { color: var(--text-3); font-size: 12px; }
.site-stats dd { margin: 3px 0 0; font-size: 18px; font-weight: 500; }
.site-toggles { display: grid; gap: 10px; }
.site-toggles .switch { color: var(--text-2); }
.site-card footer { display: flex; gap: 8px; flex-wrap: wrap; }
.site-card .btn-primary { background: var(--dot); border-color: var(--dot); color: color-mix(in srgb, var(--dot) 12%, #07080a); }

.auth-eyebrow { color: var(--accent-text); font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; font-weight: 500; margin-bottom: 10px; }
.auth-local { display: grid; gap: 3px; padding: 12px 14px; border-radius: 11px; border: 1px dashed var(--line-strong); font-size: 13.5px; }
.auth-local span { color: var(--text-3); }
.auth-local a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.auth-local a:hover { color: var(--text); }
body, .site-card {
  --accent-hover: color-mix(in srgb, var(--accent) 86%, white);
  --accent-ink: color-mix(in srgb, var(--accent) 12%, #07080a);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-text: color-mix(in srgb, var(--accent) 62%, white);
}
.auth-brand { background: radial-gradient(120% 90% at 0% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%), linear-gradient(165deg, #15171b, #0f1013); }
.code-input { font-family: var(--mono) !important; font-size: 24px !important; letter-spacing: .4em; text-align: center; height: 56px !important; }
