:root {
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:#eceef8;
  background:#101217;
  font-synthesis:none;
  --muted:#989eae;
  --line:#303440;
  --panel:#1a1d25;
  --accent:#9c9dff;
  --primary:#666be8;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  min-height:100dvh;
  background:radial-gradient(ellipse at 90% 0%,#272b4a80,transparent 50%),#101217;
}
button,input,select,textarea {
  font:inherit;
}
button,a,input,select,textarea,summary {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
  min-height:42px;
  border:1px solid transparent;
  border-radius:10px;
  padding:10px 16px;
  color:inherit;
  font-size:14px;
  font-weight:550;
}
button:disabled {
  opacity:.45;
  cursor:wait;
}
button:hover:not(:disabled) {
  filter:brightness(1.15);
}
button:focus-visible,a:focus-visible,summary:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:4px;
}
input,select,textarea {
  width:100%;
  color:inherit;
  border:1px solid #3a3f4e;
  border-radius:9px;
  background:#12151d;
  padding:11px 12px;
  min-height:43px;
  outline:none;
}
input:focus,select:focus,textarea:focus {
  border-color:var(--accent);
  box-shadow:0 0 0 2px #9395ff20;
}
textarea {
  resize:vertical;
  line-height:1.6;
  font-family:ui-monospace,SFMono-Regular,monospace;
  font-size:13px;
  overflow-wrap:anywhere;
}
label {
  display:flex;
  flex-direction:column;
  gap:9px;
  font-size:13px;
  color:#bdc2d1;
}
input::placeholder,textarea::placeholder {
  color:#737b90;
}
h1,h2,h3,p {
  margin-top:0;
}
h1,h2 {
  text-wrap:balance;
}
h1 {
  font-size:36px;
  line-height:1.25;
  font-weight:650;
  margin-bottom:12px;
}
h2 {
  font-size:21px;
  font-weight:600;
  margin-bottom:0;
}
h3 {
  font-size:15px;
}
p {
  line-height:1.7;
}
a {
  color:inherit;
  text-decoration:none;
}
.muted {
  color:var(--muted);
  font-size:14px;
}
.fine {
  font-size:12px;
  color:var(--muted);
  line-height:1.7;
  margin:14px 0;
}
.eyebrow {
  color:var(--accent);
  font-size:10px;
  font-weight:650;
  margin-bottom:14px;
}
.accent {
  color:var(--accent);
}
.primary {
  background:var(--primary);
  color:#fff;
}
.secondary {
  background:#272b38;
  border-color:#393e4c;
}
.ghost {
  background:#222630;
  color:#bfc5d5;
}
.text-button {
  background:transparent;
  color:var(--muted);
  padding:7px;
  min-height:34px;
  font-weight:400;
}
.danger {
  background:#b63851;
}
.wide {
  width:100%;
}
.panel {
  background:linear-gradient(125deg,#22252ee0,#1a1d27e8);
  border:1px solid #383d4b;
  border-radius:18px;
  box-shadow:0 8px 28px #0002;
}
.brand-mark {
  display:grid;
  place-items:center;
  border-radius:12px;
  color:#a5a0ff;
  background:#25243b;
  width:43px;
  height:43px;
  font:italic 700 32px ui-monospace,monospace;
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
}
.brand strong {
  font-size:20px;
}
.brand small {
  display:block;
  color:#8c93a8;
  font-size:11px;
  margin-top:5px;
}
.app-shell {
  display:grid;
  grid-template-columns:238px 1fr;
  min-height:100dvh;
}
.sidebar {
  position:sticky;
  top:0;
  height:100dvh;
  padding:34px 21px 24px;
  border-right:1px solid #2b2f3a;
  background:#191c22c9;
  display:flex;
  flex-direction:column;
}
.side-label {
  color:#81899d;
  font-size:11px;
  padding:48px 12px 14px;
}
.nav {
  text-align:left;
  display:flex;
  gap:13px;
  background:transparent;
  margin-bottom:8px;
  color:#aeb5c8;
  padding:13px 14px;
  align-items:center;
}
.nav>span:first-child {
  font-size:19px;
}
.nav.active {
  background:#30324e80;
  color:#b3b4ff;
}
.count {
  margin-left:auto;
  color:#a9afc1;
  font-size:12px;
}
.side-bottom {
  margin-top:auto;
}
.side-note {
  padding:20px 9px;
  font-size:12px;
  color:#c1c7d6;
}
.side-note p {
  font-size:11px;
  color:#818ba1;
  margin:10px 0 0 13px;
}
.status-dot {
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#7ac9ad;
  margin-right:7px;
  vertical-align:middle;
}
main {
  max-width:1600px;
  width:100%;
  padding:47px 4.5vw 30px;
  min-width:0;
}
.page-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:34px;
  gap:20px;
}
.page-header .eyebrow {
  margin-bottom:13px;
}
.page-header .muted {
  margin-bottom:0;
}
.stats {
  display:grid;
  grid-template-columns:repeat(3,1fr) 1.35fr;
  margin:0 0 28px;
  border:1px solid #303440;
  border-radius:14px;
  background:#1c202980;
}
.stats>div {
  padding:22px 27px;
  position:relative;
}
.stats>div+div:before {
  content:"";
  position:absolute;
  left:0;
  top:25%;
  bottom:25%;
  width:1px;
  background:#343947;
}
.stats span {
  color:var(--muted);
  font-size:12px;
  display:block;
}
.stats strong {
  display:block;
  font-size:28px;
  font-weight:550;
  font-variant-numeric:tabular-nums;
  margin-top:9px;
}
.snapshot-stat strong {
  font-size:14px;
  margin-top:17px;
}
.stats small {
  color:#81899e;
  font-size:10px;
  display:block;
  margin-top:6px;
}
.library-panel {
  overflow:hidden;
}
.toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:23px 23px 17px;
}
.search-wrap {
  position:relative;
  max-width:360px;
  width:100%;
}
.search-wrap span {
  position:absolute;
  top:9px;
  left:12px;
  font-size:23px;
  color:#8c94a8;
}
.search-wrap input {
  padding-left:39px;
  background:#151820aa;
}
.toolbar-actions {
  display:flex;
  gap:10px;
  white-space:nowrap;
}
.filters {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 23px 20px;
  gap:10px;
}
.filters>div {
  display:flex;
  gap:9px;
}
.filters select {
  font-size:12px;
  min-height:34px;
  padding:7px 25px 7px 10px;
  width:auto;
  background:#222631;
}
.table-wrap {
  overflow:auto;
}
table {
  border-collapse:collapse;
  width:100%;
  font-size:13px;
}
th {
  background:#15182080;
  color:#929db1;
  font-size:11px;
  font-weight:500;
  text-align:left;
  padding:14px 23px;
  white-space:nowrap;
}
td {
  padding:20px 23px;
  border-bottom:1px solid #30354380;
}
td:first-child {
  width:43%;
}
.node-title {
  font-size:14px;
  font-weight:550;
  overflow-wrap:anywhere;
}
.node-host {
  font:11px ui-monospace,SFMono-Regular,monospace;
  color:#929bb0;
  margin-top:8px;
  overflow-wrap:anywhere;
}
.badges {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  min-width:115px;
}
.badge {
  display:inline-block;
  border-radius:5px;
  padding:4px 6px;
  font-size:10px;
  border:1px solid #50537690;
  background:#555a942c;
  color:#b9baff;
  white-space:nowrap;
}
.badge.subtle {
  color:#a7afc2;
  background:#34394766;
  border-color:#4c536166;
}
.row-actions {
  display:flex;
  justify-content:flex-end;
  gap:5px;
}
.row-actions button {
  min-height:34px;
  padding:6px 9px;
  font-size:12px;
  background:transparent;
  color:#aeb7cc;
}
.row-actions .delete {
  color:#e092a2;
}
.align-right {
  text-align:right;
}
.toggle {
  position:relative;
  border:1px solid #535b6e;
  border-radius:30px;
  width:38px;
  height:23px;
  min-height:23px;
  padding:0;
  background:#343a49;
  display:block;
}
.toggle:after {
  content:"";
  position:absolute;
  width:15px;
  height:15px;
  border-radius:50%;
  top:3px;
  left:3px;
  background:#adb6c8;
}
.toggle[aria-checked=true] {
  background:#6267dc;
  border-color:#7e83ee;
}
.toggle[aria-checked=true]:after {
  transform:translateX(15px);
  background:white;
}
.disabled-row .node-title {
  color:#959bad;
}
.table-footer {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:17px 23px;
  color:#929cb1;
  font-size:11px;
}
.footnote {
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:#7f899d;
  font-size:10px;
  line-height:1.8;
  margin-top:24px;
}
.empty {
  text-align:center;
  padding:60px 20px 68px;
}
.empty h2 {
  font-size:19px;
  margin:17px 0 10px;
}
.empty-icon {
  font-size:34px;
  color:#9d9fff;
}
.empty .primary {
  margin-top:10px;
}
.notice {
  font-size:13px;
  color:#b8bcff;
  margin-top:20px;
  min-height:23px;
}
.error {
  color:#f0a1af;
  font-size:13px;
  line-height:1.6;
  white-space:pre-wrap;
}
.error:empty {
  display:none;
}
.warning {
  color:#e2c08a;
}
.login-view {
  display:grid;
  place-items:center;
  min-height:100dvh;
  padding:28px;
}
.login-panel {
  width:420px;
  max-width:100%;
  padding:38px;
}
.login-panel .brand-mark {
  margin-bottom:28px;
}
.login-panel h1 {
  font-size:35px;
  line-height:1.4;
}
.login-panel .muted {
  margin:16px 0 30px;
}
.login-panel .primary {
  margin-top:18px;
  display:flex;
  justify-content:space-between;
}
.login-panel .fine {
  margin-bottom:0;
  font-size:11px;
}
dialog {
  color:inherit;
  background:#1c202a;
  border:1px solid #474d61;
  border-radius:18px;
  box-shadow:0 30px 120px #0009;
  padding:0;
  width:650px;
  max-width:calc(100vw - 28px);
  max-height:calc(100dvh - 40px);
}
dialog::backdrop {
  background:#070911b8;
  backdrop-filter:blur(7px);
}
.dialog-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:24px 27px;
  border-bottom:1px solid #343a49;
}
.dialog-header .eyebrow {
  margin-bottom:9px;
}
.icon-button {
  font-size:26px;
  background:transparent;
  color:#a6afc4;
  padding:0;
  width:36px;
  height:36px;
  min-height:36px;
}
.dialog-body {
  padding:24px 27px;
  overflow-wrap:anywhere;
}
.dialog-footer {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:18px 27px;
  border-top:1px solid #343a49;
  background:#181c25;
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-bottom:23px;
}
.form-grid>label {
  min-width:0;
}
.span-two {
  grid-column:1/-1;
}
details {
  border:1px solid #343b4c;
  padding:14px;
  border-radius:10px;
  margin-bottom:23px;
}
summary {
  cursor:pointer;
  color:#bec3d6;
  font-size:13px;
}
details[open] summary {
  margin-bottom:16px;
}
details button {
  margin-top:12px;
}
.checkbox {
  flex-direction:row;
  align-items:center;
  gap:10px;
  margin:22px 0 0;
}
.checkbox input {
  width:17px;
  min-height:17px;
  height:17px;
  accent-color:var(--primary);
}
.file-label {
  margin-top:15px;
  font-size:12px;
}
.file-label input {
  font-size:12px;
}
.divider {
  display:flex;
  align-items:center;
  gap:15px;
  font-size:11px;
  color:#8d97ad;
  margin:25px 0;
}
.divider:before,.divider:after {
  content:"";
  height:1px;
  background:#343b4c;
  flex:1;
}
.preview-list {
  max-height:230px;
  overflow:auto;
  font-size:12px;
  line-height:1.6;
}
.preview-item {
  padding:8px 0;
  border-bottom:1px solid #343b4c;
  color:#b6becf;
}
.preview-item.error {
  color:#f0a1af;
}
.info-box {
  background:#262c3c;
  border:1px solid #3c455e;
  border-radius:12px;
  padding:17px 20px;
  margin-top:20px;
  font-size:13px;
}
.info-box p {
  margin:10px 0 0;
  font-size:12px;
  color:#a1acc3;
}
#sub-url {
  margin-bottom:18px;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
[hidden] {
  display:none!important;
}
@media(max-width:1050px) {
  .app-shell {
    grid-template-columns:190px 1fr;
  }
  .sidebar {
    padding:28px 14px;
  }
  .brand strong {
    font-size:17px;
  }
  main {
    padding:35px 25px;
  }
  .stats>div {
    padding:20px 18px;
  }
  th,td {
    padding-left:17px;
    padding-right:17px;
  }
  .toolbar {
    gap:10px;
  }
  .toolbar-actions {
    gap:7px;
  }
  .toolbar-actions button {
    padding:10px;
    font-size:12px;
  }
}
@media(max-width:760px) {
  .app-shell {
    display:block;
  }
  .sidebar {
    position:relative;
    width:100%;
    height:auto;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    padding:18px 20px;
    border-right:none;
    border-bottom:1px solid #303440;
  }
  .sidebar .side-label,.sidebar .nav,.side-note {
    display:none;
  }
  .side-bottom {
    margin:0;
  }
  .side-bottom button {
    font-size:11px;
    min-height:34px;
    padding:8px 12px;
  }
  .brand-mark {
    width:35px;
    height:35px;
    font-size:27px;
  }
  .brand small {
    font-size:9px;
  }
  .brand strong {
    font-size:17px;
  }
  main {
    padding:29px 18px;
  }
  .page-header {
    margin-bottom:24px;
    align-items:flex-end;
  }
  .page-header h1 {
    font-size:29px;
  }
  .page-header .eyebrow {
    font-size:8px;
  }
  .page-header .muted {
    font-size:12px;
  }
  .page-header>button {
    font-size:12px;
    padding:9px;
    min-height:36px;
  }
  .stats {
    grid-template-columns:repeat(3,1fr);
    margin-bottom:20px;
  }
  .stats>div {
    padding:17px;
  }
  .stats strong {
    font-size:24px;
  }
  .stats .snapshot-stat {
    grid-column:1/-1;
    border-top:1px solid #303440;
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 17px;
  }
  .stats .snapshot-stat:before {
    display:none;
  }
  .snapshot-stat strong {
    font-size:11px;
    margin:0;
  }
  .snapshot-stat small {
    margin:0 0 0 auto;
    font-size:9px;
  }
  .toolbar {
    padding:16px;
    flex-wrap:wrap;
  }
  .search-wrap {
    max-width:none;
  }
  .toolbar-actions {
    width:100%;
  }
  .toolbar-actions button {
    flex:1;
    font-size:13px;
  }
  .filters {
    padding:0 16px 15px;
  }
  th {
    font-size:10px;
    padding:12px;
  }
  td {
    padding:18px 12px;
  }
  th:nth-child(2),td:nth-child(2) {
    display:none;
  }
  td:first-child {
    width:50%;
  }
  .row-actions {
    flex-direction:column;
    gap:1px;
  }
  .row-actions button {
    font-size:11px;
    min-height:30px;
    padding:5px;
  }
  .node-title {
    font-size:12px;
  }
  .node-host {
    font-size:10px;
    max-width:180px;
  }
  .table-footer {
    padding:15px;
    font-size:10px;
  }
  .table-footer>span:last-child {
    font-size:9px;
  }
  .footnote {
    font-size:9px;
    display:block;
  }
  .footnote>span:last-child {
    display:none;
  }
  .dialog-header {
    padding:20px;
  }
  .dialog-body {
    padding:20px;
  }
  .dialog-footer {
    padding:16px;
    gap:7px;
  }
  .dialog-footer button {
    font-size:12px;
    padding:10px 12px;
  }
  .form-grid {
    gap:17px 12px;
  }
  .form-grid label {
    font-size:12px;
  }
  .form-grid input,.form-grid select {
    font-size:13px;
    padding:10px;
  }
  .login-panel {
    padding:30px;
  }
  dialog {
    max-height:calc(100dvh - 24px);
  }
  .empty {
    padding:45px 15px;
  }
  .table-wrap {
    overflow:visible;
  }
}
.subscription-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
}
.subscription-actions { flex-direction: row; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; }
.section-heading h3 { margin: 0; }
.node-picker { max-height: 320px; overflow: auto; margin: 14px 0 22px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; }
#subscription-node-search { margin-top: 14px; }
.picker-group { border: 0; padding: 5px 0 15px; margin: 16px 0 0; min-width: 0; }
.picker-group legend { width: 100%; padding: 0; }
.picker-heading { font-weight: 600; color: #c9caff; }
.picker-node { margin: 12px 0 0 24px; overflow-wrap: anywhere; }
.picker-heading { margin: 0; }
#ua-settings { margin-top: 22px; }
#ua-settings label { margin-top: 17px; }
#regenerate-sub { margin-top: 20px; }
@media (max-width: 760px) {
  .subscription-row { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 20px 16px; }
  .subscription-actions { grid-column: 1 / -1; justify-content: flex-start; gap: 18px; }
  .node-picker { max-height: 290px; }
}
