.page-hero[hidden] { display: none; }
button.btn { font-family: inherit; cursor: pointer; border: 0; }
button.btn-outline { border: 1px solid var(--line-strong); }
button.btn:disabled, .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-small { padding: 7px 13px; font-size: 13px; border-radius: 10px; gap: 6px; }
.btn.danger { color: #f6a5a6; }
.btn.danger:hover:not(:disabled) { border-color: rgba(237, 66, 69, .6); background: rgba(237, 66, 69, .08); }
.btn.go { color: #9be5b4; }
.btn.go:hover:not(:disabled) { border-color: rgba(59, 165, 93, .6); background: rgba(59, 165, 93, .08); }
.btn-danger { background: linear-gradient(180deg, #f05a5d, var(--red)); color: #fff; box-shadow: none; }
.btn-danger:hover:not(:disabled) { filter: brightness(1.08); }

body.dash-app { overflow: hidden; }
body.dash-app::before, body.dash-app::after { display: none; }
body.dash-app .site-nav, body.dash-app .dock, body.dash-app .dock-sheet, body.dash-app .site-footer,
body.dash-app .scroll-bar, body.dash-app .to-top, body.dash-app .page-hero { display: none !important; }
body.dash-app main.wrap { padding: 0 !important; max-width: none; margin: 0; }
body.dash-app #dash-root { position: fixed; inset: 0; z-index: 100; background: var(--bg-deep); }
#dash-root > * { animation: rise .7s var(--out) both; }
body.dash-app #dash-root > * { animation: none; }

.app { position: relative; display: flex; flex-direction: column; height: 100%; isolation: isolate; }
.app::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(88, 101, 242, .06), transparent 60%),
    radial-gradient(700px 420px at 10% 110%, rgba(139, 92, 246, .04), transparent 60%),
    radial-gradient(500px 300px at 50% 40%, rgba(79, 195, 224, 0), transparent 70%);
}
.app::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.app-top {
  flex: none; height: 66px; display: flex; align-items: center; gap: 12px; padding: 0 18px;
  background: rgba(14, 15, 20, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line); position: relative; z-index: 5;
}
.app-grow { flex: 1; min-width: 8px; }
.app-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--text); padding-right: 6px; letter-spacing: -.01em; }
.app-brand img { border-radius: 9px; }
.app-icon { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--text); cursor: pointer; }
.app-icon .svg-i svg { width: 20px; height: 20px; }

.srv { position: relative; min-width: 0; }
.srv-btn {
  display: flex; align-items: center; gap: 10px; max-width: 280px; padding: 6px 12px 6px 6px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--text); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .3s var(--spring);
}
.srv-btn:hover, .srv.open .srv-btn { border-color: rgba(88, 101, 242, .6); background: rgba(88, 101, 242, .08); }
.srv-btn .gicon { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
.srv-btn:not(:has(.gicon)) { padding-left: 14px; }
.srv-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-btn .caret svg { width: 14px; height: 14px; }
.caret { transition: transform .3s var(--spring); }
.srv.open .caret { transform: rotate(180deg); }
.srv-menu {
  position: absolute; top: calc(100% + 10px); left: 0; width: 330px; max-width: calc(100vw - 24px); padding: 10px;
  border: 1px solid var(--line-strong); border-radius: 18px; background: var(--glass-strong); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55); animation: pop-in .3s var(--spring) both; transform-origin: top left;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.srv-menu[hidden] { display: none; }
.srv-menu .search { width: 100%; margin-bottom: 8px; }
.srv-list { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.srv-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 12px; background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: background .2s ease; }
.srv-item:hover { background: rgba(255, 255, 255, .05); }
.srv-item.on { background: rgba(88, 101, 242, .16); }
.srv-item .gicon { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
.srv-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-empty { padding: 12px 8px; color: var(--muted); font-size: 13.5px; }
.srv-all { width: 100%; margin-top: 8px; padding: 10px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--cyan); font: inherit; font-size: 13.5px; cursor: pointer; }
.srv-all:hover { color: var(--text); }

.app-user { display: flex; align-items: center; gap: 10px; flex: none; }
.app-user img { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-hover); box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); }
.app-user-name { font-size: 14px; font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-out { flex: none; display: flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, .03); color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.app-out:hover { color: var(--text); border-color: rgba(237, 66, 69, .5); background: rgba(237, 66, 69, .06); }
.app-out .svg-i svg { width: 16px; height: 16px; }

.app-body { flex: 1; display: flex; min-height: 0; position: relative; }
.app-side {
  flex: none; width: 262px; display: flex; flex-direction: column; gap: 3px; padding: 16px 14px 18px; overflow-y: auto;
  background: rgba(14, 15, 20, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-right: 1px solid var(--line);
}
.side-label { margin: 14px 12px 8px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.side-label:first-child { margin-top: 4px; }
.side-grow { flex: 1; min-height: 16px; }
.side-bottom { display: flex; flex-direction: column; gap: 3px; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); }
.side-item {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 7px 10px; border: 0; border-radius: 14px; background: none;
  color: var(--soft); font: inherit; font-size: 14.5px; font-weight: 500; text-align: left; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .35s var(--spring);
}
.side-item .svg-i {
  width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 11px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--muted);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .5s var(--spring), box-shadow .25s ease;
}
.side-item .svg-i svg { width: 18px; height: 18px; }
.side-item:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.side-item:hover .svg-i { color: var(--text); transform: rotate(-6deg) scale(1.06); }
.side-item.on { background: linear-gradient(90deg, rgba(88, 101, 242, .18), rgba(88, 101, 242, .04)); color: #fff; cursor: default; }
.side-item.on .svg-i { background: linear-gradient(180deg, #6773f6, var(--blurple)); border-color: transparent; color: #fff; box-shadow: none; transform: none; }
.side-sub { display: flex; flex-direction: column; margin: 4px 0 8px 27px; padding-left: 14px; border-left: 1px solid var(--line-strong); }
.side-sub:empty { display: none; }
.side-sub a { position: relative; padding: 6px 10px; border-radius: 9px; color: var(--muted); font-size: 13.5px; transition: color .2s ease, background .2s ease, padding .3s var(--spring); }
.side-sub a:hover { color: var(--text); background: rgba(255, 255, 255, .04); padding-left: 14px; }
.side-sub a.on { color: var(--text); }
.side-sub a.on::before { content: ''; position: absolute; left: -15px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--cyan); }

.app-main { flex: 1; min-width: 0; overflow-y: auto; scroll-behavior: smooth; }
.app-page { max-width: 1020px; margin: 0 auto; padding: 36px 34px 100px; }
.page-head { margin-bottom: 26px; animation: rise .6s var(--out) both; }
.page-head .eyebrow { margin-bottom: 10px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.page-head .hint { margin: 8px 0 0; font-size: 15px; color: var(--soft); max-width: 60ch; }
.app-scrim { display: none; }
.app.no-side .app-menu { display: none; }

.dash-panel {
  position: relative; overflow: hidden; min-width: 0; margin-bottom: 18px; padding: 26px;
  border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.dash-panel:hover { border-color: var(--line-strong); }
.dash-panel h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.dash-panel > .hint:first-of-type { margin-bottom: 18px; }
p.hint { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; line-height: 1.55; }
p.hint.small { font-size: 12.5px; margin: 10px 0 0; }
.dash-section { animation: rise .55s var(--out) both; scroll-margin-top: 20px; }
.dash-section:nth-of-type(2) { animation-delay: 50ms; }
.dash-section:nth-of-type(3) { animation-delay: 100ms; }
.dash-section:nth-of-type(4) { animation-delay: 150ms; }
.dash-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dash-row .search { width: auto; flex: 1 1 180px; }
.dash-row .search[maxlength="5"] { flex: 0 0 140px; }
.dash-msg { margin-top: 12px; font-size: 13.5px; min-height: 20px; color: var(--muted); }
.dash-msg:empty { min-height: 0; margin-top: 0; }
.dash-msg.ok { color: #8fe0aa; animation: msg-in .35s var(--spring) both; }
.dash-msg.bad { color: #f6a5a6; animation: msg-in .35s var(--spring) both; }
.dash-msg.ok::before { content: '✓ '; }
@keyframes msg-in { from { opacity: 0; transform: translateY(-4px); } }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 4px 16px; }
.dash-grid.four { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.dash-field { display: flex; flex-direction: column; min-width: 0; }
.dash-field .search, .dash-field select { width: 100%; }
.dash-field[hidden] { display: none; }
.field-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--soft); margin: 14px 0 7px; }
.dash-select {
  width: auto; min-width: 200px; max-width: 100%; padding-top: 10px; padding-bottom: 10px; padding-right: 36px; cursor: pointer;
  appearance: none; -webkit-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='%238b8d9c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.dash-select option { background: #1a1b22; color: var(--text); }
.dash-select:disabled { opacity: .5; cursor: not-allowed; }
.search, .dash-select { border-radius: 12px; }
.search.num { font-variant-numeric: tabular-nums; }
textarea.search { resize: vertical; min-height: 64px; }
input[type="datetime-local"].search { color-scheme: dark; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }
.sub-head { font-size: 15px; font-weight: 700; margin: 24px 0 6px; }
.inline-link { display: inline-block; margin-top: 6px; color: var(--cyan); font-size: 13px; }

.dash-toggle { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; margin: 8px 0; cursor: pointer; user-select: none; }
.dash-toggle input {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 40px; height: 23px; margin: 0; cursor: pointer;
  border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line-strong); transition: background .25s ease, border-color .25s ease;
}
.dash-toggle input::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #d6d8e2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .35s var(--spring), background .25s ease;
}
.dash-toggle input:checked { background: linear-gradient(180deg, #6773f6, var(--blurple)); border-color: transparent; }
.dash-toggle input:checked::after { transform: translateX(17px); background: #fff; }
.dash-toggle input:disabled { opacity: .5; cursor: default; }
.dash-toggle input:focus-visible { outline: 2px solid var(--blurple); outline-offset: 3px; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); max-width: 100%; }
.seg-opt { padding: 8px 14px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .25s ease, color .2s ease, box-shadow .25s ease; }
.seg-opt:hover { color: var(--text); }
.seg-opt.on { background: rgba(88, 101, 242, .22); color: #fff; box-shadow: inset 0 0 0 1px rgba(88, 101, 242, .5); }
.dash-panel > .seg { margin-bottom: 16px; }

.guild-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.guild-card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 16px; text-align: left; min-width: 0;
  border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  color: var(--text); font-family: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: transform .45s var(--spring), border-color .25s ease, box-shadow .3s ease;
  animation: rise .6s var(--out) both; animation-delay: calc(var(--i, 0) * 55ms);
}
.guild-card:hover { transform: translateY(-3px); border-color: rgba(88, 101, 242, .45); }
.guild-card:active { transform: scale(.98); }
.gicon { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .06); flex: none; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--soft); overflow: hidden; transition: transform .5s var(--spring); }
.gicon img { width: 100%; height: 100%; object-fit: cover; }
.guild-card:hover .gicon { transform: rotate(-6deg) scale(1.08); }
.gtext { display: block; min-width: 0; flex: 1; }
.gname { display: block; overflow-wrap: anywhere; line-height: 1.3; }
.gmeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.gtag { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; border: 1px solid rgba(88, 101, 242, .45); color: #c9cdfb; background: rgba(88, 101, 242, .1); white-space: nowrap; }
.gtag.ok { color: #9be5b4; border-color: rgba(59, 165, 93, .5); background: rgba(59, 165, 93, .1); }
.gtag.no { color: #f3a3a4; border-color: rgba(237, 66, 69, .45); background: rgba(237, 66, 69, .09); }

.profile { display: flex; gap: 22px; align-items: center; }
.profile-pic { width: 92px; height: 92px; border-radius: 28px; background: var(--bg-hover); flex: none; display: block; box-shadow: 0 0 0 4px rgba(255, 255, 255, .05), 0 18px 40px rgba(0, 0, 0, .4); }
.profile-main { min-width: 0; flex: 1; }
.profile-main h2 { font-family: var(--serif); font-size: 28px; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; line-height: 1.15; }
.profile-main .hint { margin-bottom: 8px; }
.profile-badges { display: flex; gap: 6px; margin-bottom: 12px; }
.profile-badges:empty { display: none; }
.profile-facts { display: grid; grid-template-columns: max-content 1fr; gap: 7px 18px; font-size: 14px; }
.profile-facts dt { color: var(--muted); }
.profile-facts dd { margin: 0; overflow-wrap: anywhere; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.stat-tile {
  position: relative; overflow: hidden; padding: 18px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  transition: transform .4s var(--spring), border-color .25s ease;
}
.stat-tile:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.stat-tile b {
  display: block; font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15;
  background: linear-gradient(180deg, #fff, #b8bdf8); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-tile span { font-size: 12.5px; color: var(--muted); }

.case-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.case-list { display: flex; flex-direction: column; gap: 8px; }
.case-list:empty { display: none; }
.case-row { padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); transition: background .2s ease, border-color .2s ease; }
.case-row:hover { background: rgba(255, 255, 255, .04); border-color: var(--line-strong); }
.case-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13.5px; }
.case-type { font-weight: 700; }
.case-when { color: var(--muted); margin-left: auto; font-size: 12.5px; }
.case-row p { margin-top: 6px; font-size: 13.5px; color: var(--soft); overflow-wrap: anywhere; }
.case-row p.case-dur { color: var(--muted); margin-top: 3px; }
.case-row.clickable { cursor: pointer; }
.case-list > p.hint { padding: 14px 16px !important; border: 1px dashed var(--line-strong); border-radius: 14px; margin: 0; }

.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; margin-top: 14px; }
.bar { flex: 1; min-height: 2px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, #8a93ff, var(--blurple)); opacity: .85; transform-origin: bottom; animation: grow .8s var(--out) both; transition: opacity .2s ease, filter .2s ease; }
.bar:nth-child(3n) { animation-delay: 80ms; }
.bar:nth-child(3n+1) { animation-delay: 160ms; }
.bar:hover { opacity: 1; filter: brightness(1.15); }
.bars-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); margin-top: 8px; }
.top-list { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: top; }
.top-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; counter-increment: top; }
.top-list li:last-child { border-bottom: none; }
.top-list li span { overflow-wrap: anywhere; }
.top-list li span::before { content: counter(top) ". "; color: var(--muted); font-family: var(--mono); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; padding: 4px 4px 4px 11px; border-radius: 99px; background: rgba(88, 101, 242, .1); border: 1px solid rgba(88, 101, 242, .35); color: #d6d9fb; transition: transform .3s var(--spring); animation: pop-in .3s var(--spring) both; }
.chip:hover { transform: translateY(-1px); }
.chip-x { background: none; border: 0; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; padding: 0 6px; border-radius: 99px; }
.chip-x:hover { color: var(--red); }
.chip-none { font-size: 12.5px; color: var(--muted); }
.picker { display: flex; flex-direction: column; gap: 4px; }
.picker .dash-select { width: 100%; }

.access-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.access-row, .access-head {
  display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 11px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .015); font-size: 13.5px;
}
.access-head { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font-family: inherit; cursor: pointer; transition: background .2s ease; }
.access-head:hover:not(:disabled) { background: rgba(255, 255, 255, .04); }
.access-head:disabled { cursor: default; opacity: .7; }
.access-row:last-child, .access-item:last-child .access-head { border-bottom: 0; }
.access-row code, .access-head code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.access-desc { color: var(--muted); }
.access-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.access-item.open .access-head { background: rgba(88, 101, 242, .08); }
.access-edit { padding: 6px 16px 16px; background: rgba(88, 101, 242, .05); border-bottom: 1px solid var(--line); }

.immune-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.immune-box { border: 1px solid var(--line); background: rgba(255, 255, 255, .02); border-radius: 16px; padding: 14px 16px; }
.immune-box b { display: block; margin-bottom: 4px; }
.note-add { display: grid; gap: 8px; }

.level-row { display: grid; grid-template-columns: 210px 1fr 48px; gap: 16px; align-items: center; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.level-row:last-of-type { border-bottom: 0; }
.level-row input[type=range] { width: 100%; accent-color: var(--blurple); cursor: pointer; }
.level-value { text-align: right; font-family: var(--mono); font-size: 13px; padding: 3px 0; border-radius: 8px; background: rgba(255, 255, 255, .04); text-align: center; }

.log-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.log-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: rgba(255, 255, 255, .02); transition: border-color .25s ease, transform .4s var(--spring); animation: rise .45s var(--out) both; animation-delay: calc(var(--i, 0) * 40ms); }
.log-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.log-card select { width: 100%; margin-top: 10px; }
.log-name { display: flex; align-items: center; gap: 9px; }
.log-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); opacity: .45; transition: background .25s ease, opacity .25s ease, box-shadow .25s ease; }
.log-dot.on { background: var(--green); opacity: 1; box-shadow: 0 0 0 4px rgba(59, 165, 93, .18); }
.warn-text { color: var(--yellow); margin: 6px 0 0; }

.ticket-preview { border-left: 4px solid #3498db; background: rgba(0, 0, 0, .25); border-radius: 10px; padding: 14px 16px; max-width: 460px; }
.ticket-preview p { margin: 6px 0 10px; color: var(--muted); font-size: 14px; }
.fake-btn { display: inline-block; background: #248046; color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 6px; }

.danger-list { margin: 6px 0 14px; padding-left: 20px; color: var(--muted); font-size: 14px; }
.danger-list li { margin: 3px 0; }
.row-out { opacity: 0; transform: translateX(14px); transition: opacity .3s ease, transform .3s ease; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); gap: 24px; align-items: start; }
.form-col { min-width: 0; }
.preview-box { position: sticky; top: 0; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); }
.preview-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pv-ping { display: inline-block; margin-bottom: 8px; padding: 0 4px; border-radius: 4px; font-size: 14px; font-weight: 500; color: #c9cdfb; background: rgba(88, 101, 242, .3); }
.pv-embed { border-left: 4px solid var(--green); background: #2b2d31; border-radius: 6px; padding: 12px 14px; font-size: 13.5px; color: #dbdee1; overflow-wrap: anywhere; }
.pv-embed.star { border-left-color: var(--yellow); }
.pv-embed b { display: block; font-size: 15px; color: #fff; margin-bottom: 6px; }
.pv-embed p { margin: 2px 0; }
.pv-embed strong { color: #fff; }
.pv-embed ul { margin: 2px 0 4px 18px; }
.pv-embed small { display: block; margin-top: 8px; color: #00a8fc; font-size: 12.5px; }
.pv-sub { margin-top: 10px !important; font-weight: 700; color: #fff; }
.pv-foot { margin-top: 10px !important; color: #b5bac1; }
.pv-reacts { margin-top: 8px; }
.star-count { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 8px; font-size: 13px; background: rgba(88, 101, 242, .18); border: 1px solid rgba(88, 101, 242, .6); color: #dee0fc; }

details.fold { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .02); overflow: hidden; transition: border-color .25s ease; }
details.fold[open] { border-color: rgba(88, 101, 242, .4); }
details.fold summary { list-style: none; cursor: pointer; padding: 14px 16px 14px 44px; position: relative; display: flex; flex-direction: column; gap: 2px; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::before { content: ''; position: absolute; left: 18px; top: 19px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .3s var(--spring); }
details.fold[open] summary::before { transform: rotate(45deg); }
details.fold summary span { font-weight: 700; font-size: 14.5px; }
details.fold summary small { color: var(--muted); font-size: 12.5px; }
.fold-body { padding: 0 16px 16px; animation: rise .4s var(--out) both; }

.meter-card { margin-bottom: 18px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(90deg, rgba(88, 101, 242, .1), rgba(255, 255, 255, .015) 60%); animation: rise .5s var(--out) both; }
.meter-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; font-size: 14px; }
.meter-top b { font-family: var(--serif); font-size: 24px; }
.meter-top .hint { margin: 0; font-size: 12.5px; }
.meter { height: 8px; margin-top: 10px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blurple), var(--cyan)); animation: fill 1s var(--out) both; transform-origin: left; }
@keyframes fill { from { transform: scaleX(0); } }

.gw-list { display: grid; gap: 10px; }
.gw-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .02); transition: border-color .25s ease, background .25s ease, transform .4s var(--spring); animation: rise .45s var(--out) both; animation-delay: calc(var(--i, 0) * 45ms); }
.gw-card:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .035); }
.gw-head { display: flex; align-items: center; gap: 12px; }
.gw-ico { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 19px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.gw-title { flex: 1; min-width: 0; }
.gw-title b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.gw-title small { display: block; color: var(--muted); font-size: 12.5px; }
.gw-facts { margin: 10px 0 6px; font-size: 13px; color: var(--soft); }
.gw-win { margin: 6px 0 0; font-size: 13.5px; color: #f3d58a; }
.gw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.gw-actions a.inline { margin-right: 6px; font-size: 13.5px; }
.pill { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--muted); }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.run { color: #8fe0aa; border-color: rgba(59, 165, 93, .5); background: rgba(59, 165, 93, .1); }
.pill.run::before { animation: blink 1.6s ease-in-out infinite; }
.pill.pause { color: #f5c76a; border-color: rgba(240, 178, 50, .5); background: rgba(240, 178, 50, .1); }
.pill.sched { color: #8fd3ea; border-color: rgba(79, 195, 224, .5); background: rgba(79, 195, 224, .1); }
.empty-card { padding: 26px; text-align: center; color: var(--muted); font-size: 14px; border: 1px dashed var(--line-strong); border-radius: 18px; }

.dash-panel.soon-card { padding: 54px 32px; text-align: center; }
.dash-panel.soon-card h3 { font-family: var(--serif); font-size: 30px; margin: 16px 0 8px; }

.dash-loading { display: grid; gap: 4px; }
.dash-loading .empty { padding: 10px 0 0; text-align: left; }

.login-card {
  position: relative; overflow: hidden; max-width: 620px; margin: 10px auto 0; padding: 42px 34px 30px; text-align: center;
  border: 1px solid var(--line-strong); border-radius: 28px;
  background: radial-gradient(520px 260px at 50% 0%, rgba(88, 101, 242, .12), transparent 70%), linear-gradient(180deg, #1a1c27, #14151c);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}
.login-glow { display: none; }
.login-logo { width: 72px; height: 72px; border-radius: 22px; margin-bottom: 18px; }
.login-card h2 { font-family: var(--serif); font-size: 32px; letter-spacing: -.02em; }
.login-card .hint { max-width: 44ch; margin: 10px auto 24px; color: var(--soft); }
.login-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; text-align: left; }
.perk { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .03); animation: rise .6s var(--out) both; animation-delay: calc(var(--i) * 90ms + 250ms); }
.perk-ico { display: block; font-size: 20px; margin-bottom: 6px; }
.perk b { display: block; font-size: 14px; }
.perk small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.dash-down { text-align: center; }
.down-icon { font-size: 44px; display: block; margin-bottom: 6px; animation: float 4s ease-in-out infinite; }

@media (max-width: 1080px) {
  .app-user-name { display: none; }
}
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .preview-box { position: static; }
}
@media (max-width: 860px) {
  .app-icon { display: flex; }
  .app.no-side .app-icon { display: none; }
  .app-brand span, .app-out span:not(.svg-i), .app-jump span:not(.svg-i), .app-place span:not(.svg-i) { display: none; }
  .app-jump { padding: 9px; }
  .app-out { padding: 9px; }
  .app-top { gap: 8px; padding: 0 12px; }
  .srv-btn { max-width: 190px; }
  .app-side { position: absolute; z-index: 20; top: 0; bottom: 0; left: 0; width: min(296px, 86vw); background: rgba(14, 15, 20, .96); transform: translateX(-102%); transition: transform .35s var(--out); box-shadow: 0 0 50px rgba(0, 0, 0, .6); }
  .app.nav-open .app-side { transform: none; }
  .app.nav-open .app-scrim { display: block; position: absolute; inset: 0; z-index: 10; background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px); }
  .app-page { padding: 24px 16px 80px; }
  .access-row, .access-head { grid-template-columns: 1fr; gap: 4px; }
  .access-tags { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .dash-cols, .immune-grid { grid-template-columns: 1fr; }
  .me-cta { flex-wrap: wrap; }
  .me-cta-go { width: 100%; text-align: right; }
  .dash-panel { padding: 20px 16px; border-radius: 18px; }
  .profile { flex-direction: column; align-items: flex-start; }
  .level-row { grid-template-columns: 1fr 48px; }
  .level-row span:first-child { grid-column: 1 / -1; }
  .login-card { padding: 30px 20px 22px; }
  .login-perks { grid-template-columns: 1fr; }
  .seg { display: flex; }
  .seg-opt { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .log-card, .down-icon, .gw-card, .chip, .meter i, .dash-section, .page-head, .guild-card, .ov-card, .me-cta { animation: none; }
  .row-out, .app-side { transition: none; }
}

.app-place { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 14px; border: 1px solid rgba(88, 101, 242, .45); background: rgba(88, 101, 242, .1); color: #dfe1fd; font-size: 14px; font-weight: 600; white-space: nowrap; }
.app-place .svg-i svg, .app-jump .svg-i svg { width: 16px; height: 16px; }
.app-jump { flex: none; display: flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, .03); color: var(--soft); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.app-jump:hover { color: var(--text); border-color: rgba(88, 101, 242, .55); background: rgba(88, 101, 242, .08); }

.me-cta {
  display: flex; align-items: center; gap: 16px; width: 100%; margin-bottom: 30px; padding: 18px 20px; text-align: left;
  border: 1px solid rgba(88, 101, 242, .4); border-radius: 22px; color: var(--text); font: inherit; cursor: pointer;
  background: linear-gradient(90deg, rgba(88, 101, 242, .14), rgba(255, 255, 255, .02) 70%);
  transition: transform .45s var(--spring), border-color .25s ease, background .25s ease; animation: rise .55s var(--out) both;
}
.me-cta:hover { transform: translateY(-2px); border-color: rgba(88, 101, 242, .7); }
.me-cta-pic { width: 54px; height: 54px; flex: none; border-radius: 16px; background: var(--bg-hover); display: flex; align-items: center; justify-content: center; color: var(--soft); }
.me-cta-pic svg { width: 24px; height: 24px; }
.me-cta-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.me-cta-text b { font-size: 17px; }
.me-cta-text small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.me-cta-go { flex: none; color: var(--cyan); font-size: 14px; font-weight: 600; }
.list-head { font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

.me-filter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.me-filter .field-label { margin: 0; }
.me-filter .dash-select { min-width: 240px; }
.page-head > .hint.small { margin-top: 12px; }

.me-hello { padding: 20px 24px; }
.profile.me-hello { flex-direction: row; align-items: center; gap: 16px; }
.me-hello .profile-pic { width: 64px; height: 64px; border-radius: 20px; }
.me-hello .profile-main h2 { font-size: 24px; }
.me-hello .hint { margin: 4px 0 0; }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ov-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 18px 20px; text-align: left;
  border: 1px solid var(--line); border-radius: 20px; color: var(--text); font: inherit; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  transition: transform .45s var(--spring), border-color .25s ease; animation: rise .5s var(--out) both;
}
.ov-card:nth-child(2) { animation-delay: 40ms; }
.ov-card:nth-child(3) { animation-delay: 80ms; }
.ov-card:nth-child(4) { animation-delay: 120ms; }
.ov-card:nth-child(5) { animation-delay: 160ms; }
.ov-card:nth-child(6) { animation-delay: 200ms; }
.ov-card:hover { transform: translateY(-3px); border-color: rgba(88, 101, 242, .45); }
.ov-top { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--soft); margin-bottom: 10px; }
.ov-top .svg-i { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(88, 101, 242, .14); color: #c9cdfb; }
.ov-top .svg-i svg { width: 16px; height: 16px; }
.ov-big { font-family: var(--serif); font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.ov-label { font-size: 13px; color: var(--muted); }
.ov-lines { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; font-size: 13px; color: var(--soft); }
.ov-go { margin-top: 12px; font-size: 13px; color: var(--cyan); }

.hp-state { margin: -4px 0 14px; }
.callout[hidden] { display: none; }
.hp-toggles { display: flex; flex-direction: column; margin-top: 10px; }
.pv-embed.pin { border-left-color: var(--yellow); }
.pv-embed .pv-pinned { margin: 0 0 6px; color: #b5bac1; font-size: 12px; }
.hp-steps { margin: 6px 0 0 18px; padding: 0; font-size: 13.5px; color: var(--soft); }
.hp-steps li { margin: 4px 0; }
.where { margin: 10px 0 0; }
.where b { display: block; font-size: 12.5px; color: var(--soft); margin-bottom: 4px; }
.me-body > .empty-card { margin-bottom: 18px; }

.app .btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.app .btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); filter: brightness(1.06); }
.app .btn-primary::after { display: none; }
.app .btn-outline:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .05); }
