/* Hidden88 — shared visual system, v1.5.79. No external assets. */
:root {
  color-scheme: dark;
  --bg: #090d12;
  --side: #0e141b;
  --card: #141c25;
  --text: #edf4f5;
  --muted: #a0afbd;
  --border: #2a3542;
  --accent: #84e4ba;
  --accent-2: #9ed8ed;
  --ok: #84e4ba;
  --warn: #e9c480;
  --bad: #f1a0a7;
  --h88-shadow: 0 12px 34px #00000020;
}
html { background: var(--bg); scroll-padding-top: 24px; }
body {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  background: radial-gradient(ellipse at 82% 0%, #284b4228 0, transparent 44%), radial-gradient(ellipse at 35% 75%, #263b5920 0, transparent 55%), var(--bg);
  background-attachment: fixed;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(#a3c6bd04 1px, transparent 1px), linear-gradient(90deg, #a3c6bd04 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(#000, transparent 90%);
}
.app, .auth { position: relative; }
.app { grid-template-columns: 248px minmax(0, 1fr); }
.side {
  height: 100dvh; position: sticky; top: 0; min-width: 0;
  padding: 24px 16px 20px; background: #0e141bf5;
  border-color: #26313c; gap: 16px;
}
.side-head { gap: 5px; }
.logo { display: block; text-decoration: none; font-size: 19px; letter-spacing: -.045em; padding: 0 8px; line-height: 1.2; }
.logo span { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-top: 7px; }
.side .logo::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--accent); box-shadow: 0 0 16px #84e4ba40; border-radius: 2px; }
.nav { scrollbar-width: thin; scrollbar-color: #35423e transparent; }
.nav-group-label { font-size: 9px; letter-spacing: .16em; font-weight: 650; color: #83949f; margin: 24px 12px 9px; }
.nav-group-label:first-child { margin-top: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 9px 12px; margin: 3px 0; border: 1px solid transparent; border-radius: 8px; font-size: 12px; line-height: 1.4; }
.nav a:hover { background: #ffffff06; color: var(--text); }
.nav a.active { color: #c5f8df; background: linear-gradient(90deg, #84e4ba16, #84e4ba08); border-color: #84e4ba23; }
.nav a.active .h88-icon { color: var(--accent); }
.h88-icon { display: inline-block; width: 19px; height: 19px; flex: 0 0 19px; vertical-align: middle; }
.main { width: 100%; padding: 28px clamp(22px, 3.1vw, 60px) 60px; overflow: visible; }
.top { align-items: center; gap: 24px; padding-bottom: 25px; margin-bottom: 26px; border-bottom: 1px solid #ffffff09; }
.top-lead { min-width: 180px; }
h1 { font-size: 26px; font-weight: 620; letter-spacing: -.045em; line-height: 1.2; }
h2, h3 { line-height: 1.3; letter-spacing: -.02em; }
.sub { color: var(--muted); font-size: 12px; line-height: 1.65; max-width: 78ch; }
.ux-crumb { font-size: 10px; margin-bottom: 9px; }
.ux-crumb a { color: var(--muted); }
.top-actions { gap: 7px; flex-wrap: wrap; }
.top-actions .btn { min-height: 38px; font-size: 11px; padding: 8px 11px; }
.ux-search-wrap { min-width: 170px; }
.ux-search-wrap input { min-height: 38px; height: 38px; font-size: 11px; width: 190px; }
.user-av { background: #84e4ba20; color: var(--accent); border: 1px solid #84e4ba30; border-radius: 8px; }
.card {
  background: linear-gradient(135deg, #1a242dc9, #111923ed);
  border: 1px solid var(--border); border-radius: 14px; padding: 22px;
  box-shadow: var(--h88-shadow); min-width: 0;
}
.card h2 { font-size: 14px; font-weight: 600; margin-bottom: 13px; }
.card .card { background: #0c131a60; box-shadow: none; }
.grid, .auto-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 18px; }
.meta { color: var(--muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.btn { min-height: 42px; border: 1px solid #b1f7d533; border-radius: 8px; padding: 10px 16px; font-size: 12px; font-weight: 650; text-decoration: none; background: var(--accent); color: #0d251b; box-shadow: 0 2px 5px #0002; letter-spacing: 0; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.btn:not(:disabled):hover { background: #a2f0cf; box-shadow: 0 3px 16px #84e4ba15; transform: translateY(-1px); }
.btn:not(:disabled):active { transform: translateY(0); }
.btn.ghost { background: #ffffff03; color: var(--text); border-color: #35424f; box-shadow: none; }
.btn.ghost:not(:disabled):hover { background: #ffffff09; border-color: #697e86; }
.btn:disabled { opacity: .42; transform: none; box-shadow: none; }
.btn.danger { background: #f1a0a714; border-color: #f1a0a750; color: var(--bad); }
input, select, textarea { background: #0d141c; color: var(--text); border: 1px solid #34424e; border-radius: 8px; font: inherit; font-size: 13px; padding: 11px 12px; max-width: 100%; min-width: 0; min-height: 42px; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #8393a0; }
input:hover, select:hover, textarea:hover { border-color: #596f79; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); min-height: 18px; width: 18px; height: 18px; flex-shrink: 0; }
label { color: #b6c4ce; font-size: 11px; font-weight: 550; gap: 7px; }
button, a, input, select, textarea, [tabindex] { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; border-color: var(--accent); box-shadow: 0 0 0 3px #84e4ba15; }
.pill { font-size: 10px; letter-spacing: .035em; font-weight: 600; padding: 4px 9px; border: 1px solid #ffffff0d; }
.pill.ok { color: #a2ebc9; background: #84e4ba10; border-color: #84e4ba24; }
.pill.bad { color: var(--bad); background: #f1a0a710; border-color: #f1a0a724; }
.pill.warn { color: var(--warn); background: #e9c48010; border-color: #e9c48024; }
.bar { height: 5px; background: #ffffff09; }
.bar > i { background: linear-gradient(90deg, #62ba99, #a2ebc9); border-radius: inherit; }
.table { font-size: 12px; }
.table th { background: #0b121980; color: #a4b5c1; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; padding: 13px 12px; }
.table td { padding: 15px 12px; border-color: #ffffff08; vertical-align: middle; }
.table tbody tr:hover { background: #ffffff03; }
.table code { font-size: 11px; }
.table-wrap, .table-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.toolbar, .filters { gap: 12px; align-items: end; }
.toolbar { padding: 16px; background: #111922b0; border: 1px solid #ffffff0d; border-radius: 12px; margin: 22px 0; }
.toolbar label { margin-bottom: 0; }
.tabs { padding: 7px; background: #0c131ad0; border: 1px solid #ffffff09; border-radius: 12px; gap: 5px; }
.tab { border-color: transparent; font-size: 10px; letter-spacing: .025em; border-radius: 7px; min-height: 38px; }
.tab.on { background: #84e4ba12; color: #b9f2d6; border-color: #84e4ba25; }
.tab:hover { color: var(--text); background: #ffffff08; }
.kv { grid-template-columns: minmax(70px, .6fr) minmax(0, 1.4fr); font-size: 12px; line-height: 1.75; }
.kv > div, .kv code { overflow-wrap: anywhere; }
.kv code { background: #050c1280; padding: 3px 6px; }
.empty { padding: 34px 24px; border-color: #3c4c5680; background: #0c151b80; color: #a8bac7; font-size: 13px; }
.error { color: var(--bad); overflow-wrap: anywhere; }
.modal { z-index: 80; background: #04090ebf; backdrop-filter: blur(9px); padding: 24px; align-items: center; }
.modal-card { background: linear-gradient(145deg, #1a2530, #101820); border-color: #46575f; border-radius: 18px; padding: 28px; max-height: calc(100dvh - 48px); box-shadow: 0 30px 100px #0009; animation: h88-dialog .16s ease-out; }
.modal-card h2 { margin-top: 0; }
.notify-panel, .user-drop, .ux-results, .ux-switcher, .ux-palette { background: #131e28f7; border-color: #3c505c; box-shadow: 0 22px 70px #0008; backdrop-filter: blur(18px); border-radius: 12px; }
.ux-palette { z-index: 90; }
.toast-host { z-index: 100; max-width: calc(100vw - 32px); }
.toast { background: #18232ff5; box-shadow: 0 12px 40px #0006; min-width: 0; font-size: 12px; max-width: 420px; }
.toast button { color: var(--muted); background: transparent; border: 0; font-size: 20px; min-width: 32px; cursor: pointer; }
.console-log { border-color: #2b3b47; background: #080e15; border-radius: 10px; line-height: 1.7; }
.skel, .skeleton { background: linear-gradient(100deg, #17212a, #24322d, #17212a); background-size: 200% 100%; border-radius: 12px; animation: h88-loading 2s ease-in-out infinite; }
.h88-welcome { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; min-height: 310px; border: 1px solid #52706555; border-radius: 18px; padding: 36px 40px; margin-bottom: 24px; background: radial-gradient(ellipse at 90% 80%, #426b4840, transparent 65%), linear-gradient(120deg, #182a29, #152321 55%, #101a1c); box-shadow: 0 18px 70px #0002; }
.h88-welcome::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#a3d4b90a 1px, transparent 1px), linear-gradient(90deg, #a3d4b90a 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg, transparent, #000); }
.h88-eyebrow { color: #a4cfb9; font-size: 9px; font-weight: 650; letter-spacing: .2em; margin: 0 0 20px; }
.h88-welcome h2 { margin: 0; font-size: clamp(28px, 3.1vw, 48px); line-height: 1.12; letter-spacing: -.055em; font-weight: 580; }
.h88-welcome h2 span { color: var(--accent); }
.h88-welcome p:not(.h88-eyebrow) { max-width: 350px; font-size: 12px; color: #adc2bb; margin: 16px 0 22px; }
.h88-world { position: relative; height: 250px; min-width: 0; perspective: 600px; }
.h88-world > span { position: absolute; left: 50%; top: 40%; color: #c5f8df; font-weight: 750; font-size: 44px; letter-spacing: -.08em; text-shadow: 0 0 45px #84e4ba35; transform: translateX(-50%); }
.h88-orbit { position: absolute; inset: 12% 0; border: 1px solid #a2ebc922; border-radius: 50%; transform: rotateX(62deg) rotateZ(-25deg); box-shadow: 0 0 60px #84e4ba10, inset 0 0 50px #84e4ba10; }
.h88-cube { position: absolute; width: 92px; height: 92px; background: linear-gradient(135deg, #64897666, #213f3266); border: 1px solid #b8edcb55; transform: rotateX(55deg) rotateZ(45deg); box-shadow: 16px 16px 0 #112c2499, 17px 17px 0 #a2ebc92a, 34px 34px 30px #0003; }
.cube-one { left: 14%; top: 27%; }
.cube-two { right: 14%; top: 13%; width: 63px; height: 63px; opacity: .7; }
.cube-three { right: 20%; bottom: 2%; width: 120px; height: 120px; opacity: .65; }
.dash-counts { gap: 12px; margin-bottom: 24px; }
.dash-counts .card { padding: 18px 20px; position: relative; background: #121b25b8; }
.dash-counts .card .meta { font-size: 10px; }
.dash-counts .card h2 { font-size: 29px; letter-spacing: -.06em; font-weight: 550; margin: 6px 0 0; }
.h88-health-counts .card:first-child::after { content: ""; position: absolute; right: 18px; top: 22px; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px #84e4ba30; }
.dash-section { margin-top: 28px; }
.dash-section > h2 { font-size: 11px; font-weight: 550; letter-spacing: .08em; color: #b8c8d2; margin-bottom: 15px; }
.srv-card { position: relative; border-top-color: #739d8566; }
.srv-card h2 { font-size: 20px; }
.srv-card .kv { margin: 20px 0; }
.srv-card .actions { border-top: 1px solid #ffffff09; padding-top: 17px; }
.srv-card .actions .btn { font-size: 10px; min-height: 38px; }
.auth { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 6vw, 110px); max-width: 1240px; margin: auto; padding: 60px; align-items: center; }
.auth .modal-card { width: 100%; max-width: 440px; justify-self: center; padding: 36px; animation: none; }
.auth .logo { margin: 0 0 32px; padding: 0; }
.auth h1 { font-size: 26px; margin-bottom: 10px; }
.auth .sub { margin-bottom: 28px; font-size: 13px; }
.auth label { margin-bottom: 18px; }
.auth .btn[type="submit"] { width: 100%; }
.h88-auth-story { position: relative; padding: 35px 0; }
.h88-auth-story h2 { font-size: clamp(38px, 4.5vw, 66px); line-height: 1.08; font-weight: 570; letter-spacing: -.055em; margin: 24px 0; }
.h88-auth-story h2 span { color: var(--accent); }
.h88-auth-story > p:not(.h88-eyebrow) { color: #a0b6b0; font-size: 14px; line-height: 1.8; }
.h88-auth-grid { height: 110px; width: 300px; background-image: linear-gradient(#84e4ba25 1px, transparent 1px), linear-gradient(90deg, #84e4ba25 1px, transparent 1px); background-size: 32px 32px; transform: perspective(200px) rotateX(50deg) rotateZ(-12deg); mask-image: radial-gradient(ellipse, #000, transparent 70%); }
.app.nav-collapsed { grid-template-columns: 80px minmax(0, 1fr); }
.app.nav-collapsed .side { padding: 22px 13px; }
.app.nav-collapsed .side-head { flex-direction: column; }
.app.nav-collapsed .logo::before { width: 14px; height: 14px; margin: 0; }
.app.nav-collapsed .logo span { display: none; }
.app.nav-collapsed .nav a { justify-content: center; padding: 11px; }
.app.nav-collapsed .nav-label { display: none !important; }
.app.nav-collapsed .nav-collapse .h88-icon { transform: rotate(180deg); }
@keyframes h88-loading { 50% { background-position: 100% 0; } }
@keyframes h88-dialog { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1700px) { .main { max-width: 1680px; margin-inline: auto; } .h88-welcome { min-height: 340px; } }
@media (max-width: 1100px) and (min-width: 861px) { .app { grid-template-columns: 210px minmax(0, 1fr); } .main { padding: 24px; } .top-actions { width: 100%; } .h88-welcome { padding: 28px; } }
@media (max-width: 860px) {
  .app, .app.nav-collapsed { display: block; }
  .side { position: relative; height: auto; padding: 17px 22px; border-right: 0; border-bottom: 1px solid var(--border); gap: 0; }
  .side .nav { display: none; }
  .side.drawer-open { padding: 22px; height: 100dvh; display: flex; gap: 20px; z-index: 65; }
  .side.drawer-open .nav { display: flex; flex-direction: column; }
  .nav-toggle { display: inline-flex; }
  .main { padding: 23px 22px 90px; }
  .top { gap: 18px; padding-bottom: 20px; }
  .top-actions { width: 100%; gap: 7px; }
  .ux-search-wrap { flex: 1 1 180px; width: auto; }
  .ux-search-wrap input { width: 100%; }
  .top-actions .btn { min-height: 44px; }
  .ux-bottom { display: flex; position: fixed; inset: auto 0 0; z-index: 60; background: #101923f5; backdrop-filter: blur(18px); padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .ux-bottom a, .ux-bottom button { font-size: 10px; border-radius: 7px; }
  .ux-bottom .active { color: var(--accent); background: #84e4ba0b; }
  .ux-backdrop { z-index: 64; backdrop-filter: blur(5px); }
  .h88-welcome { padding: 28px; grid-template-columns: 1.2fr .8fr; }
  .h88-world { height: 210px; }
  .h88-cube { width: 60px; height: 60px; }
  .cube-three { width: 80px; height: 80px; }
  .card { padding: 20px; }
  .dash-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modal { padding: 16px; }
  .modal-card { padding: 22px; max-height: calc(100dvh - 32px); }
  .auth { padding: 36px; gap: 28px; }
  .auth .modal-card { padding: 26px; }
  .h88-auth-story h2 { font-size: 40px; }
  .h88-auth-grid { width: 220px; }
}
@media (max-width: 600px) {
  h1 { font-size: 24px; }
  .main { padding-inline: 16px; }
  .top { margin-bottom: 20px; }
  .h88-welcome { display: block; padding: 26px 23px; min-height: 0; }
  .h88-welcome h2 { font-size: 36px; }
  .h88-welcome > div:first-child { position: relative; z-index: 1; }
  .h88-world { position: absolute; right: -110px; top: 0; width: 240px; opacity: .22; }
  .h88-world > span { display: none; }
  .h88-welcome p:not(.h88-eyebrow) { max-width: 230px; }
  .h88-welcome .btn { font-size: 11px; padding: 10px 12px; }
  .dash-counts { gap: 8px; }
  .dash-counts .card { padding: 13px; }
  .dash-counts .card h2 { font-size: 25px; }
  .h88-health-counts .card:first-child::after { right: 12px; top: 20px; width: 5px; height: 5px; }
  .toolbar { padding: 13px; gap: 10px; }
  .toolbar > input, .toolbar > select { flex: 1 1 100%; width: 100%; }
  .toolbar > label { min-width: 0; flex: 1 1 130px; }
  .toolbar input, .toolbar select { width: 100%; }
  .card { padding: 18px; }
  .kv { grid-template-columns: minmax(65px, .6fr) minmax(0, 1.4fr); gap: 8px; }
  .table { display: block; overflow-x: auto; max-width: 100%; }
  .table td { min-width: 85px; }
  .tabs { gap: 4px; padding: 5px; }
  .tab { min-height: 40px; padding: 8px 10px; }
  .notify-panel { position: fixed; inset: 130px 12px auto; width: auto; z-index: 70; }
  .toast-host { bottom: 85px; }
  .auth { display: flex; flex-direction: column; justify-content: center; padding: 28px 20px; gap: 18px; }
  .h88-auth-story { width: 100%; padding: 0 6px; }
  .h88-auth-story h2 { font-size: 32px; margin: 8px 0; }
  .h88-auth-story h2 br { display: none; }
  .h88-auth-story h2 span::before { content: " "; }
  .h88-auth-story > p:not(.h88-eyebrow), .h88-auth-grid { display: none; }
  .h88-auth-story .h88-eyebrow { margin: 0 0 12px; }
  .auth .modal-card { max-height: none; padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}

/* Keep the dashboard useful at a glance, including when there is one server. */
.meta, label { font-size: 12px; }
.nav a { font-size: 13px; }
.top-actions .btn, .ux-search-wrap input { font-size: 12px; }
#dash-servers { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.dash-counts:not(.h88-health-counts) .empty { padding: 12px 8px; border: 0; text-align: left; background: transparent; }
.dash-counts:not(.h88-health-counts) .card { padding: 16px; }
@media (min-width: 1100px) {
  .srv-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0 24px; }
  .srv-card > .pills, .srv-card > h2, .srv-card > .meta { grid-column: 1; }
  .srv-card > .kv { grid-column: 2; grid-row: 1 / 4; margin: 0; }
  .srv-card > .actions { grid-column: 1 / -1; }
}
@media (min-width: 861px) { .nav-toggle { display: none; } }
