:root { color-scheme: dark; }
body { background: #0b0e14; }
.auth-bg { background: radial-gradient(1200px 600px at 50% -10%, rgba(255,77,141,.18), transparent 60%), #0b0e14; }
.logo-mark { width: 36px; height: 36px; border-radius: 12px; display: inline-block; flex: none;
  background: conic-gradient(from 210deg, #ff4d8d, #ff8a3d, #ffd166, #ff4d8d);
  box-shadow: 0 6px 18px -6px rgba(255,77,141,.6); position: relative; }
.logo-mark::after { content: ""; position: absolute; inset: 9px; border-radius: 6px; background: #0b0e14; clip-path: polygon(20% 15%, 85% 50%, 20% 85%); }
.logo-sm { width: 26px; height: 26px; border-radius: 8px; } .logo-sm::after { inset: 6px; border-radius: 4px; }
.card { background: #11151d; border: 1px solid #1f2634; border-radius: 1rem; box-shadow: 0 1px 0 0 rgba(255,255,255,.03) inset, 0 10px 30px -12px rgba(0,0,0,.6); }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid #1f2634; }
.card-head h2 { font-weight: 700; }
.tile { background: #11151d; border: 1px solid #1f2634; border-radius: 1rem; padding: 1rem 1.15rem; }
.tile-accent { background: linear-gradient(160deg, rgba(255,77,141,.10), rgba(255,138,61,.04) 60%, #11151d); }
.tile-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: #6b7590; font-weight: 600; }
.tile-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin-top: .25rem; }
.tile-foot { font-size: .75rem; color: #6b7590; margin-top: .25rem; }
.page-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.page-sub { color: #6b7590; font-size: .9rem; margin-top: .15rem; }
.nav-link { display: flex; align-items: center; gap: .75rem; padding: .6rem .85rem; border-radius: .75rem; color: #98a2b5; font-weight: 500; font-size: .92rem; transition: .15s; }
.nav-link:hover { background: #171c26; color: #eef1f6; }
.nav-active { background: linear-gradient(90deg, rgba(255,77,141,.18), rgba(255,77,141,.04)); color: #fff; box-shadow: inset 2px 0 0 #ff4d8d; }
.nav-link svg { width: 20px; height: 20px; }
nav.grid svg { width: 22px; height: 22px; }
.btn-primary, .btn-secondary, .btn-ghost, .btn-danger { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .6rem 1.05rem; border-radius: .75rem; font-weight: 600; font-size: .9rem; transition: .15s; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, #ff4d8d, #ff8a3d); color: #fff; box-shadow: 0 8px 20px -10px rgba(255,77,141,.8); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: #1f2634; color: #eef1f6; border: 1px solid #2a3344; } .btn-secondary:hover { background: #2a3344; }
.btn-ghost { color: #98a2b5; padding: .45rem .7rem; } .btn-ghost:hover { background: #171c26; color: #eef1f6; }
.btn-danger { background: rgba(244,63,94,.12); color: #fda4af; border: 1px solid rgba(244,63,94,.3); } .btn-danger:hover { background: rgba(244,63,94,.2); }
button:disabled, .btn-primary:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.field { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; color: #c9d0dc; font-weight: 500; }
.field input, .field select, .field textarea, .input, .select {
  width: 100%; background: #0b0e14; border: 1px solid #2a3344; border-radius: .7rem; padding: .6rem .8rem; color: #eef1f6; font-size: .92rem; outline: none; transition: .15s; }
.field input:focus, .input:focus, .select:focus, .field select:focus, .field textarea:focus { border-color: #ff4d8d; box-shadow: 0 0 0 3px rgba(255,77,141,.18); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398a2b5' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; padding-right: 2rem; }
.check { display: flex; align-items: center; gap: .75rem; font-size: .92rem; cursor: pointer; }
.check em { color: #6b7590; font-style: normal; font-size: .82rem; }
.check input { width: 18px; height: 18px; accent-color: #ff4d8d; }
.flash { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border-radius: .8rem; font-size: .9rem; border: 1px solid; }
.flash-ok { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.3); color: #a7f3d0; }
.flash-warn { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.3); color: #fde68a; }
.flash-error { background: rgba(244,63,94,.1); border-color: rgba(244,63,94,.3); color: #fecdd3; }
.badge { font-size: .68rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.badge-ok { background: rgba(52,211,153,.15); color: #6ee7b7; } .badge-muted { background: #1f2634; color: #98a2b5; }
.badge-err { background: rgba(244,63,94,.15); color: #fda4af; } .badge-warn { background: rgba(251,191,36,.15); color: #fde68a; }
.badge-type { font-size: .65rem; font-weight: 700; padding: .15rem .45rem; border-radius: .4rem; background: rgba(0,0,0,.6); color: #fff; backdrop-filter: blur(4px); }
.chip { padding: .4rem .8rem; border-radius: 999px; background: #171c26; border: 1px solid #1f2634; color: #98a2b5; }
.chip-active { background: rgba(255,77,141,.15); border-color: rgba(255,77,141,.4); color: #fff; }
.link { color: #ff6aa5; font-size: .85rem; font-weight: 500; } .link:hover { text-decoration: underline; }
.code { background: #1f2634; padding: .1rem .35rem; border-radius: .3rem; font-size: .85em; }
.empty { padding: 2.5rem 1.25rem; text-align: center; color: #6b7590; font-size: .9rem; }
.table { width: 100%; font-size: .88rem; }
.table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #6b7590; padding: .7rem 1rem; border-bottom: 1px solid #1f2634; white-space: nowrap; }
.table td { padding: .6rem 1rem; border-bottom: 1px solid #171c26; vertical-align: middle; }
.table tbody tr:hover { background: rgba(255,255,255,.02); }
.log-dot { width: 8px; height: 8px; border-radius: 999px; flex: none; margin-top: .4rem; }
.log-info { background: #3b4558; } .log-warn { background: #fbbf24; } .log-error { background: #f43f5e; }
.pulse { box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
details > summary::-webkit-details-marker { display: none; }
details > summary { list-style: none; }
