:root {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --line: #e8ecf2;
  --text: #1b2330;
  --text-dim: #6b7789;
  --text-faint: #9aa5b4;
  --brand-a: #ff6b4a;
  --brand-b: #f0392b;
  --gold: #f5a524;
  --active-bg: #eaf2ff;
  --active-fg: #2f7ef5;
  --tile: #f2f5f9;
  --money: #16a34a;
  --danger-a: #f4544e;
  --danger-b: #e6332a;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sb-w: 248px;
}

:root[data-theme="dark"] {
  --bg: #0f141a;
  --panel: #161d26;
  --line: #28323f;
  --text: #e7edf3;
  --text-dim: #97a5b5;
  --text-faint: #63707e;
  --ink-a: #232a33;
  --ink-b: #14181e;
  --gold: #f5b544;
  --active-bg: #17293f;
  --active-fg: #5aa2ff;
  --tile: #1c2530;
  --money: #2ec07a;
  --danger-a: #f4544e;
  --danger-b: #ff6f68;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

.sidebar {
  width: var(--sb-w);
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--line);
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 14px 12px 16px;
}

.sb-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  margin: 0 2px 16px;
  border-radius: 12px;
  background: transparent;
  transition: transform .15s;
}

.sb-head:hover { transform: translateY(-1px); }

.logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text { line-height: 1.1; }

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}

.brand-tld { color: var(--gold); }

.brand-sub {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.search {
  position: relative;
  margin: 0 2px 18px;
}

.search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-faint);
  pointer-events: none;
}

.search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--tile);
  border-radius: 9px;
  padding: 8px 12px 8px 33px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, background .15s;
}

.search input::placeholder { color: var(--text-faint); }
.search input:focus { background: var(--panel); border-color: #c9d8f2; }

.sb-tools {
  display: flex;
  gap: 8px;
  margin: 0 2px 18px;
}

.sb-tools button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--tile);
  color: var(--text-dim);
  border-radius: 9px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .14s, color .14s, border-color .14s;
}

.sb-tools button:hover { color: var(--text); border-color: #c9d8f2; }
.sb-tools button svg { width: 15px; height: 15px; }
.sb-tools .flag { font-size: 14px; line-height: 1; }

.sb-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .11em;
  color: var(--text-faint);
  text-transform: uppercase;
  padding: 0 8px;
  margin-bottom: 8px;
}

.nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }

.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 8px;
  border-radius: 10px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  transition: background .14s, color .14s;
}

.nav a:hover { background: var(--tile); }

.nav .ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--tile);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: background .14s;
}

.nav a.active { background: var(--active-bg); color: var(--active-fg); font-weight: 600; }
.nav a.active .ico { background: var(--panel); }

.socials { display: flex; gap: 7px; padding: 0 6px; margin-bottom: 20px; }

.socials a {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition: border-color .14s, color .14s, transform .14s;
}

.socials a:hover { border-color: #cfd8e3; color: var(--text); transform: translateY(-1px); }
.socials svg { width: 15px; height: 15px; }

.user-card {
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.user-top { display: flex; align-items: center; gap: 10px; }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(140deg, #4a9bff, #2f6fe0);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.sb-login {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border: none; border-radius: 10px;
  background: var(--active-fg); color: #fff;
  font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: filter .14s;
}
.sb-login:hover { filter: brightness(1.06); }
.sb-login svg { width: 16px; height: 16px; }

.user-meta { flex: 1; min-width: 0; }
.user-logout {
  margin-left: auto; flex-shrink: 0;
  width: 32px; height: 32px; border: 1px solid var(--line); background: transparent;
  border-radius: 8px; color: var(--text-faint); cursor: pointer;
  display: grid; place-items: center;
  transition: background .14s, color .14s, border-color .14s;
}
.user-logout:hover { background: color-mix(in srgb, var(--danger-a) 12%, transparent); color: var(--danger-b); border-color: var(--danger-a); }
.user-logout svg { width: 16px; height: 16px; }

.user-name { font-size: 13.5px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-role { font-size: 10px; font-weight: 600; letter-spacing: .08em; color: var(--text-faint); }

.divider { height: 1px; background: var(--line); margin: 11px 0 9px; }

.bal-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .09em;
  color: var(--text-faint);
  margin-bottom: 2px;
}

.bal { font-size: 15px; font-weight: 700; color: var(--money); }

.sb-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background .14s, border-color .14s;
}

.sb-btn:hover { background: var(--tile); border-color: #d6dde6; }

.logout {
  margin-top: 2px;
  border: none;
  background: linear-gradient(140deg, var(--danger-a), var(--danger-b));
  color: #fff;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 11px;
  box-shadow: 0 3px 10px rgba(230, 51, 42, .28);
}

.logout:hover { filter: brightness(1.05); background: linear-gradient(140deg, var(--danger-a), var(--danger-b)); }

.spacer { flex: 1; min-height: 12px; }

.content { flex: 1; min-width: 0; padding: 32px 36px; }
.content h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.content p { color: var(--text-dim); font-size: 14px; }

.content { max-width: 920px; }
.content-wide { max-width: 1500px; }
.tool-seo p, .tool-seo .seo-steps { max-width: 880px; }

.tbx-app { display: flex; gap: 18px; align-items: flex-start; }

.tbx-fixed { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.tbx-fixed .topbar { flex-shrink: 0; }
.tbx-fixed .tool-head { flex-shrink: 0; }
.tbx-fixed .tbx-app { flex: 1; min-height: 0; align-items: stretch; }
.tbx-fixed .tbx-nav { position: static; top: auto; max-height: none; height: 100%; }
.tbx-fixed .tbx-work { overflow-y: auto; min-height: 0; padding-right: 2px; }

.tbx-nav {
  width: 186px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 4px;
}

.tbx-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  transition: background .13s, color .13s;
}
.tbx-nav a:hover { background: var(--tile); color: var(--text); }
.tbx-nav a.active { background: var(--active-bg); color: var(--active-fg); font-weight: 600; }

.tbx-work { flex: 1; min-width: 0; }

.tbx-tool {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.tbx-card-head h3 { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.tbx-card-head p { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; line-height: 1.5; }

.tbx-tool textarea { resize: vertical; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; line-height: 1.6; }
.tt-in { min-height: 120px; }
.tt-out { min-height: 120px; background: var(--tile); }

.tbx-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tbx-btns .btn { padding: 7px 13px; font-size: 12.5px; }

.tt-inl { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-dim); font-weight: 500; }
.tt-inl input { width: 88px; padding: 7px 9px; font-size: 13px; }
.tt-inl input[type="number"] { width: 66px; }

.tbx-out-wrap { display: flex; flex-direction: column; gap: 7px; }
.tbx-out-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 20px; }
.tbx-count { font-size: 12px; color: var(--text-faint); font-weight: 500; }

.tbx-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-dim); font-weight: 500; cursor: pointer; }
.tbx-chk input { width: 15px; height: 15px; accent-color: var(--active-fg); cursor: pointer; }

.tbx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tbx-two textarea { min-height: 120px; resize: vertical; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; line-height: 1.6; }

.np-page { display: flex; flex-direction: column; }
.np-page .topbar { flex-shrink: 0; }
.np-page .tool-head { flex-shrink: 0; }

.np-app { min-height: 0; display: flex; gap: 16px; height: 66vh; }

.np-list { width: 234px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.np-new { justify-content: center; }
.np-items { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }

.np-item { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 11px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; background: var(--panel); transition: background .13s, border-color .13s; }
.np-item:hover { background: var(--tile); }
.np-item.active { border-color: var(--active-fg); background: var(--active-bg); }
.np-item-main { flex: 1; min-width: 0; }
.np-item-del { flex-shrink: 0; width: 28px; height: 28px; border: none; background: transparent; border-radius: 7px; color: var(--text-faint); cursor: pointer; display: grid; place-items: center; opacity: .55; transition: background .13s, color .13s, opacity .13s; }
.np-item-del:hover { background: color-mix(in srgb, var(--danger-a) 15%, transparent); color: var(--danger-b); opacity: 1; }
.np-item-del svg { width: 15px; height: 15px; }
.np-item-t { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-item-p { font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.np-empty { font-size: 13px; color: var(--text-faint); padding: 14px; text-align: center; }

.np-editor { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.np-editor .np-title-in { font-size: 16.5px; font-weight: 650; border: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 4px 2px 8px; background: transparent; }
.np-editor .np-title-in:focus { box-shadow: none; border-bottom-color: var(--active-fg); }
.np-editor .np-body { flex: 1; min-height: 0; resize: none; border: none; padding: 4px 2px; font-family: var(--sans); font-size: 14px; line-height: 1.7; background: transparent; }
.np-editor .np-body:focus { box-shadow: none; }

.np-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.np-stat { font-size: 12.5px; color: var(--text-faint); font-weight: 500; }
.np-actions { display: flex; align-items: center; gap: 8px; }
.np-actions .btn { padding: 7px 12px; font-size: 12.5px; }
.np-saved { font-size: 12px; color: var(--money); font-weight: 600; min-width: 60px; text-align: right; }
.np-del:hover { border-color: var(--danger-a); color: var(--danger-b); }

.btn.np-share-btn { background: var(--active-fg); border-color: var(--active-fg); color: #fff; }
.btn.np-share-btn:hover:not(:disabled) { filter: brightness(1.06); background: var(--active-fg); border-color: var(--active-fg); }

.np-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 4px;
  background: var(--active-bg); border: 1px solid var(--active-fg); border-radius: 10px;
  font-size: 13px; color: var(--active-fg); font-weight: 500;
}

.np-share {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--tile);
}
.np-share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.np-share-hint { font-size: 12px; color: var(--text-dim); font-weight: 500; }

.np-modes { display: inline-flex; gap: 2px; padding: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; flex-shrink: 0; }
.np-mode { border: none; background: transparent; color: var(--text-dim); font-family: inherit; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 6px; cursor: pointer; }
.np-mode:hover { color: var(--text); }
.np-mode.active { background: var(--active-bg); color: var(--active-fg); }
.np-editor .np-link {
  flex: 1; min-width: 180px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px;
  padding: 8px 10px; background: var(--panel);
}

@media (max-width: 760px) {
  .np-app { flex-direction: column; height: auto; }
  .np-list { width: 100%; }
  .np-items { max-height: 150px; }
}

.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 12, 20, .55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(2px);
}
.modal {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; width: 100%; max-width: 380px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.modal-msg { font-size: 14.5px; color: var(--text); line-height: 1.5; margin-bottom: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn.np-del-btn { background: var(--danger-a); border-color: var(--danger-a); color: #fff; }
.btn.np-del-btn:hover:not(:disabled) { filter: brightness(1.05); background: var(--danger-a); border-color: var(--danger-a); }

.tbx-pomo { align-items: center; text-align: center; }
.pomo-phase { font-size: 13px; font-weight: 600; color: var(--active-fg); text-transform: uppercase; letter-spacing: .08em; }
.pomo-time { font-family: ui-monospace, Consolas, monospace; font-size: 64px; font-weight: 700; letter-spacing: .02em; line-height: 1.1; }

@media (max-width: 760px) {
  .tbx-app { flex-direction: column; }
  .tbx-nav {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    position: static;
    max-height: none;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
  }
}

.topbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: background .14s, color .14s, border-color .14s, transform .14s;
}

.topbar a:hover { color: var(--text); border-color: #cfd8e3; transform: translateY(-1px); }
.topbar a.active { background: var(--active-bg); color: var(--active-fg); border-color: transparent; }
.topbar .tb-ico { font-size: 15px; line-height: 1; }

.tool-head { margin-bottom: 22px; }
.tool-head h1 { margin-bottom: 6px; }
.tool-head p { max-width: 620px; line-height: 1.6; }
.tool-head code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12.5px;
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.hidden { display: none !important; }

.tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 14px;
}

.tab {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .14s, color .14s;
}

.tab:hover { color: var(--text); }
.tab.active { background: var(--panel); color: var(--active-fg); box-shadow: 0 1px 3px rgba(20, 30, 45, .07); }

textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  padding: 11px 12px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  outline: none;
  resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}

textarea:focus { border-color: var(--active-fg); box-shadow: 0 0 0 3px rgba(47, 126, 245, .12); }
textarea::placeholder { color: var(--text-faint); }

.bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.bulk-count { font-size: 13px; font-weight: 600; color: var(--text-dim); }

.rows { margin-top: 10px; }

.row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
}

.row-item:last-child { border-bottom: none; }

.row-meta { min-width: 0; flex: 1; }

.row-name {
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-name.raw {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: .02em;
}

.row-item.bad .row-name { color: var(--text-faint); }
.row-err { font-size: 12px; color: var(--danger-b); margin-top: 2px; }

.row-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.row-code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--text);
  user-select: all;
}

.row-code.bad, .row-item.bad .row-code {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-faint);
  user-select: none;
}

.row-code.pending {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--active-fg);
  user-select: none;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.row-secs {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-faint);
  min-width: 26px;
  text-align: right;
}

.btn.icon-only { padding: 7px; }
.btn.icon-only svg { width: 14px; height: 14px; }

.status {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-faint);
  white-space: nowrap;
}

.run-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 18px;
  flex-wrap: wrap;
}

.btn.run {
  background: var(--active-fg);
  border-color: var(--active-fg);
  color: #fff;
  padding: 10px 20px;
}
.btn.run:hover:not(:disabled) { filter: brightness(1.06); background: var(--active-fg); border-color: var(--active-fg); }

.progress { font-size: 13px; color: var(--text-dim); font-weight: 500; }

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.result-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.result-box.live { border-color: color-mix(in srgb, var(--money) 45%, var(--line)); }
.result-box.die { border-color: color-mix(in srgb, var(--danger-a) 40%, var(--line)); }

.result-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
}

.result-title { font-size: 13.5px; font-weight: 700; }
.result-box.live .result-title { color: var(--money); }
.result-box.die .result-title { color: var(--danger-b); }

.result-count {
  font-size: 12px;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
  padding: 1px 8px;
  border-radius: 999px;
  color: var(--text-dim);
  background: var(--tile);
}
.result-box.live .result-count { color: var(--money); background: rgba(22, 163, 74, .1); }
.result-box.die .result-count { color: var(--danger-b); background: rgba(230, 51, 42, .09); }

.result-head .btn { margin-left: auto; }
.btn.copy-live:hover:not(:disabled) { border-color: var(--money); color: var(--money); }
.btn.copy-die:hover:not(:disabled) { border-color: var(--danger-a); color: var(--danger-b); }

.result-out {
  border: none;
  border-radius: 0;
  min-height: 230px;
  resize: vertical;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}
.result-out:focus { box-shadow: none; }
.result-box.live .result-out { background: rgba(22, 163, 74, .04); }
.result-box.die .result-out { background: rgba(230, 51, 42, .035); }

@media (max-width: 620px) {
  .result-grid { grid-template-columns: 1fr; }
  .result-out { min-height: 170px; }
}

.status.live { color: var(--money); border-color: var(--money); background: rgba(22, 163, 74, .08); }
.status.die { color: var(--danger-b); border-color: var(--danger-a); background: rgba(230, 51, 42, .07); }
.status.pending { color: var(--active-fg); border-color: #c9d8f2; }
.status.error, .status.unknown { color: var(--text-faint); }

label.field { display: block; margin-bottom: 18px; }
label.field:last-child { margin-bottom: 0; }

label.field > span {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 7px;
}

input[type="text"], select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

input[type="text"]:focus, select:focus {
  border-color: var(--active-fg);
  box-shadow: 0 0 0 3px rgba(47, 126, 245, .12);
}

select { cursor: pointer; }

.hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; }

.code-out {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text);
  user-select: all;
  line-height: 1.2;
}

.code.idle { color: var(--text-faint); font-weight: 500; }
.code.err { color: var(--danger-b); font-size: 14px; letter-spacing: 0; font-weight: 500; user-select: none; }

.countdown { display: flex; align-items: center; gap: 12px; }

.ring { width: 40px; height: 40px; transform: rotate(-90deg); flex-shrink: 0; }
.ring circle { fill: none; stroke-width: 3.5; }
.ring .track { stroke: var(--line); }
.ring .bar { stroke: var(--active-fg); stroke-linecap: round; transition: stroke-dashoffset .9s linear, stroke .3s; }
.ring.low .bar { stroke: var(--danger-a); }
.ring.idle .bar { stroke: transparent; transition: none; }

.secs {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12.5px;
  color: var(--text-dim);
  min-width: 28px;
}

.btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 9px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background .14s, border-color .14s, color .14s;
}

.btn:hover:not(:disabled) { background: var(--tile); border-color: #cfd8e3; }
.btn svg { width: 15px; height: 15px; }
.btn.copied { color: var(--money); border-color: var(--money); }
.btn:disabled { opacity: .45; cursor: default; }

.adv { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }

.adv summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  user-select: none;
}

.adv summary::-webkit-details-marker { display: none; }
.adv summary:hover { color: var(--text); }
.adv summary svg { width: 14px; height: 14px; transition: transform .18s; }
.adv[open] summary svg { transform: rotate(90deg); }

.adv-body {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.adv-body label.field { margin-bottom: 0; }

.note {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--money);
  background: var(--panel);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.note svg { width: 17px; height: 17px; color: var(--money); flex-shrink: 0; margin-top: 2px; }
.note strong { color: var(--text); font-weight: 600; }

@media (max-width: 560px) {
  .code { font-size: 28px; }
  .code-out { justify-content: center; }
}

.sb-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 30;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}

@media (max-width: 820px) {
  .sb-toggle { display: grid; place-items: center; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 25;
    padding-top: 62px;
    transform: translateX(-100%);
    transition: transform .2s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, .12);
  }
  .sidebar.open { transform: none; }
  .content { padding: 68px 20px 24px; }
}

@media (max-width: 640px) {
  body { overflow-x: hidden; }

  .content { padding: 58px 14px 20px; }
  .tool-head { margin-bottom: 16px; }
  .tool-head h1, .content h1, .hero h1 { font-size: 20px; }
  .tool-head p, .content p, .hero p { font-size: 13px; line-height: 1.55; }

  .topbar { flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin-bottom: 16px; padding-bottom: 12px; }
  .topbar a { flex-shrink: 0; padding: 8px 11px; font-size: 12.5px; }
  .topbar .tb-ico { font-size: 14px; }

  .panel { padding: 15px; }
  .code { font-size: 24px; letter-spacing: .03em; }
  .adv-body { grid-template-columns: 1fr 1fr; gap: 12px; }
  .code-out, .bulk-bar, .run-row { gap: 12px; }

  .grid { grid-template-columns: 1fr; }

  .tbx-fixed, .np-page { height: auto; overflow: visible; }
  .tbx-fixed .tbx-app { flex-direction: column; }
  .tbx-fixed .tbx-nav { flex-direction: row; width: 100%; height: auto; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 8px; margin-bottom: 4px; }
  .tbx-fixed .tbx-nav a { flex-shrink: 0; white-space: nowrap; }
  .tbx-fixed .tbx-work { overflow: visible; height: auto; }
  .np-editor { min-height: 340px; }
  .np-editor .np-body { min-height: 240px; }
  .result-out { min-height: 150px; }
}

.auth-body { display: block; }
.auth-top { position: absolute; top: 16px; right: 16px; display: flex; gap: 8px; }
.auth-top button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 9px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.auth-top button svg { width: 15px; height: 15px; }
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; gap: 18px; }
.auth-brand { display: flex; align-items: center; gap: 10px; }
.auth-brand .logo { width: 40px; height: 40px; }
.auth-brand .brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.auth-card { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 10px 40px rgba(20, 30, 50, .06); }
.auth-tabs { display: flex; gap: 6px; background: var(--tile); padding: 4px; border-radius: 11px; margin-bottom: 18px; }
.auth-tab { flex: 1; padding: 9px; border: 0; background: transparent; color: var(--text-dim); font-size: 13.5px; font-weight: 600; border-radius: 8px; cursor: pointer; font-family: inherit; }
.auth-tab.active { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.auth-field { display: block; margin-bottom: 13px; }
.auth-field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.auth-field input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font-size: 14px; font-family: inherit; }
.auth-field input:focus { outline: none; border-color: var(--active-fg); background: var(--panel); }
.auth-hint { font-size: 12px; color: var(--text-faint); margin: -4px 0 12px; }
.auth-msg { font-size: 13px; padding: 9px 12px; border-radius: 9px; margin-bottom: 13px; }
.auth-msg.bad { background: rgba(230, 51, 42, .1); color: var(--danger-b); }
.auth-msg.good { background: rgba(22, 163, 74, .12); color: var(--money); }
.auth-submit { width: 100%; justify-content: center; }
.auth-back { color: var(--text-dim); font-size: 13px; }
.auth-back:hover { color: var(--active-fg); }

.admin-body { display: block; background: var(--bg); }
.ad-gate { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
.ad-spin { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--active-fg); border-radius: 50%; animation: adspin .8s linear infinite; }
@keyframes adspin { to { transform: rotate(360deg); } }
.admin-shell { min-height: 100vh; width: 100%; }
.ad-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--panel); border-bottom: 1px solid var(--line); }
.ad-brand { display: flex; align-items: center; gap: 9px; }
.ad-brand .logo { width: 30px; height: 30px; }
.ad-brand .brand-name { font-size: 16px; font-weight: 800; }
.ad-tag { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #fff; background: var(--brand-b); padding: 2px 7px; border-radius: 6px; }
.ad-top-r { display: flex; align-items: center; gap: 8px; }
.ad-top-r button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 9px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.ad-top-r button svg { width: 15px; height: 15px; }
.ad-who { font-size: 12.5px; color: var(--text-dim); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-main { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }
.ad-main h1 { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.ad-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.ad-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.ad-stat-n { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.ad-stat-l { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }
.ad-stat.good .ad-stat-n { color: var(--money); }
.ad-stat.accent .ad-stat-n { color: var(--active-fg); }
.ad-stat.bad .ad-stat-n { color: var(--danger-b); }
.ad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.ad-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.ad-panel-h { font-size: 13.5px; font-weight: 700; margin-bottom: 14px; }
.ad-chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.ad-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.ad-bar-v { font-size: 11px; color: var(--text-dim); }
.ad-bar { width: 60%; max-width: 32px; background: linear-gradient(var(--brand-a), var(--brand-b)); border-radius: 5px 5px 0 0; min-height: 3px; }
.ad-bar-x { font-size: 10.5px; color: var(--text-faint); }
.ad-log { display: flex; flex-direction: column; gap: 2px; max-height: 150px; overflow-y: auto; }
.ad-log-row { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.ad-log-a { font-weight: 600; color: var(--active-fg); flex-shrink: 0; min-width: 92px; }
.ad-log-e { flex: 1; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-log-t { color: var(--text-faint); font-size: 11px; flex-shrink: 0; }
.ad-users-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ad-search { padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--text); font-size: 13px; font-family: inherit; width: 220px; max-width: 50%; }
.ad-search:focus { outline: none; border-color: var(--active-fg); }
.ad-table-wrap { overflow-x: auto; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ad-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ad-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ad-mut { color: var(--text-dim); white-space: nowrap; }
.ad-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: var(--tile); color: var(--text-dim); text-transform: uppercase; }
.ad-badge.admin { background: rgba(47, 126, 245, .14); color: var(--active-fg); }
.ad-badge.ok { background: rgba(22, 163, 74, .12); color: var(--money); }
.ad-badge.bad { background: rgba(230, 51, 42, .12); color: var(--danger-b); }
.ad-acts { display: flex; gap: 5px; flex-wrap: wrap; }
.ad-act { font-size: 11.5px; font-weight: 600; padding: 5px 9px; border: 1px solid var(--line); background: var(--panel); color: var(--text-dim); border-radius: 7px; cursor: pointer; white-space: nowrap; font-family: inherit; }
.ad-act:hover { background: var(--tile); color: var(--text); }
.ad-act.warn:hover { border-color: var(--gold); color: var(--gold); }
.ad-act.danger:hover { border-color: var(--danger-a); color: var(--danger-b); }
.ad-empty { text-align: center; color: var(--text-faint); padding: 20px; }
.ad-pager { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; }
.ad-pg { padding: 5px 11px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 7px; cursor: pointer; }
.ad-pg:disabled { opacity: .4; cursor: default; }
.ad-pg-cur { color: var(--text-dim); }

.user-card .divider, .user-card .bal-label, .user-card .bal { display: none; }

@media (max-width: 720px) {
  .ad-stats { grid-template-columns: repeat(2, 1fr); }
  .ad-grid { grid-template-columns: 1fr; }
  .ad-who { display: none; }
}

.ad-tabbar { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 5px; margin-bottom: 20px; width: fit-content; max-width: 100%; overflow-x: auto; }
.ad-tabbtn { padding: 9px 16px; border: 0; background: transparent; color: var(--text-dim); font-size: 13px; font-weight: 600; border-radius: 8px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.ad-tabbtn.active { background: var(--active-bg); color: var(--active-fg); }
.ad-tabpane { display: none; }
.ad-tabpane.active { display: block; }
.ad-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.an-chart { display: flex; align-items: flex-end; gap: 5px; height: 170px; }
.an-bcol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.an-bars { display: flex; align-items: flex-end; justify-content: center; gap: 2px; width: 100%; height: 100%; }
.an-b { width: 44%; max-width: 16px; border-radius: 4px 4px 0 0; min-height: 2px; }
.an-b.v { background: var(--active-fg); }
.an-b.u { background: var(--gold); }
.an-legend { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--text-dim); }
.an-legend span[data-i18n] { margin-right: 14px; }
.an-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.an-dot.v { background: var(--active-fg); }
.an-dot.u { background: var(--gold); }
.an-rank { display: flex; flex-direction: column; gap: 11px; }
.an-row-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; margin-bottom: 4px; }
.an-row-l { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-row-c { color: var(--text-dim); flex-shrink: 0; font-weight: 600; }
.an-row-bar { height: 6px; background: var(--tile); border-radius: 4px; overflow: hidden; }
.an-row-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-a), var(--brand-b)); border-radius: 4px; }
@media (max-width: 860px) { .ad-grid-3 { grid-template-columns: 1fr; } }

.home-hero { padding: 8px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.home-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 12px; }
.home-hero p { font-size: 15px; color: var(--text-dim); line-height: 1.6; max-width: 720px; }
.home-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 38px; }
.home-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; }
.home-card:hover { border-color: var(--active-fg); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20, 30, 50, .06); }
.hc-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--tile); display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.home-card h2 { font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.home-card p { font-size: 13px; color: var(--text-dim); line-height: 1.55; flex: 1; }
.hc-go { margin-top: 13px; font-size: 13px; font-weight: 600; color: var(--active-fg); }
.home-why { margin-bottom: 38px; }
.home-why h2, .home-faq h2 { font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.why-item { display: flex; gap: 12px; }
.why-ic { font-size: 22px; flex-shrink: 0; line-height: 1.3; }
.why-item b { display: block; font-size: 14px; margin-bottom: 3px; }
.why-item p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.home-faq { margin-bottom: 20px; }
.faq-item { border: 1px solid var(--line); border-radius: 11px; margin-bottom: 10px; background: var(--panel); }
.faq-item summary { padding: 14px 40px 14px 16px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--text-faint); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 16px 15px; font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }
@media (max-width: 640px) {
  .home-hero h1 { font-size: 24px; }
  .home-cards { grid-template-columns: 1fr; }
}

.ad-box { margin: 26px 0; text-align: center; }
.ad-lbl { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 7px; }
.ad-slot { display: flex; justify-content: center; align-items: center; overflow: hidden; }
.ad-desktop { display: none; }
@media (min-width: 820px) { .ad-desktop { display: block; } }

.doc-body { display: block; background: var(--bg); }
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.doc-brand { display: flex; align-items: center; gap: 9px; }
.doc-brand .logo { width: 30px; height: 30px; }
.doc-brand .brand-name { font-size: 16px; font-weight: 800; }
.doc-top-r { display: flex; gap: 8px; }
.doc-top-r button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 9px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.doc-top-r button svg { width: 15px; height: 15px; }
.doc-main { max-width: 800px; margin: 0 auto; padding: 34px 22px 44px; }
.doc-main h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.doc-updated { color: var(--text-faint); font-size: 13px; margin-bottom: 26px; }
.doc-main h2 { font-size: 17px; font-weight: 700; margin: 26px 0 10px; }
.doc-main p { color: var(--text-dim); font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.doc-main ul { color: var(--text-dim); font-size: 14px; line-height: 1.7; margin: 0 0 10px 20px; }
.doc-main li { margin-bottom: 5px; }
.doc-main a { color: var(--active-fg); }
.doc-main b { color: var(--text); }
.doc-foot, .site-foot { border-top: 1px solid var(--line); padding: 22px; text-align: center; }
.site-foot { margin-top: 34px; }
.doc-foot a, .site-foot a { color: var(--text-dim); font-size: 13px; margin: 0 9px; }
.doc-foot a:hover, .site-foot a:hover { color: var(--active-fg); }
.doc-foot .foot-copy, .site-foot .foot-copy { display: block; margin-top: 10px; color: var(--text-faint); font-size: 12px; }

.tool-seo { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.tool-seo h2 { font-size: 18px; font-weight: 700; margin: 22px 0 10px; }
.tool-seo h2:first-child { margin-top: 0; }
.tool-seo p { color: var(--text-dim); font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.seo-steps { color: var(--text-dim); font-size: 14px; line-height: 1.7; margin: 0 0 14px 20px; }
.seo-steps li { margin-bottom: 6px; }

.blog-list { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.blog-card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; transition: border-color .15s, transform .15s; }
.blog-card:hover { border-color: var(--active-fg); transform: translateY(-2px); }
.blog-card h2 { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.blog-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; margin: 0; }
.blog-card .bc-meta { font-size: 12px; color: var(--text-faint); margin-top: 8px; }
.art-breadcrumb { font-size: 12.5px; color: var(--text-faint); margin-bottom: 14px; }
.art-breadcrumb a { color: var(--text-dim); }
.art-breadcrumb a:hover { color: var(--active-fg); }
.art-meta { color: var(--text-faint); font-size: 13px; margin-bottom: 22px; }
.doc-main.article h2 { font-size: 19px; }
.doc-main.article h3 { font-size: 15.5px; font-weight: 700; margin: 18px 0 8px; }
.doc-main.article ol { color: var(--text-dim); font-size: 14px; line-height: 1.7; margin: 0 0 12px 20px; }
.doc-main.article ol li { margin-bottom: 6px; }
.art-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--active-bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 22px 0; }
.art-cta span { font-size: 14px; font-weight: 600; color: var(--text); }
.art-cta a { background: var(--active-fg); color: #fff; padding: 9px 18px; border-radius: 9px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.art-related { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.art-related h2 { font-size: 16px; margin-bottom: 10px; }
.art-related a { display: block; color: var(--active-fg); font-size: 14px; padding: 4px 0; }

body.np-full { overflow: hidden; }
.np-full .sb-toggle { display: none; }
.np-full .np-editor {
  position: fixed; inset: 0; z-index: 300;
  margin: 0; border: none; border-radius: 0;
  background: var(--panel);
  padding: 16px 18px;
  display: flex; flex-direction: column; width: auto; max-width: none;
}
.np-full .np-body { flex: 1 1 auto; min-height: 0; height: auto; resize: none; }
#npFull.active { background: var(--active-bg); border-color: var(--active-fg); color: var(--active-fg); }

.ad-live { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }
.ad-live b { color: var(--text); font-size: 15px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--money); position: relative; flex-shrink: 0; }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: var(--money); opacity: .4; animation: livePulse 1.6s ease-out infinite; }
@keyframes livePulse { 0% { transform: scale(.5); opacity: .5; } 100% { transform: scale(1.9); opacity: 0; } }

.ad-urow { cursor: pointer; }
.ad-urow:hover { background: var(--tile); }
.modal-lg { max-width: 560px; width: 92%; text-align: left; }
.ad-ud-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.ad-ud-head b { font-size: 16px; word-break: break-all; }
.ad-ud-close { border: none; background: transparent; font-size: 18px; color: var(--text-faint); cursor: pointer; padding: 2px 6px; line-height: 1; }
.ad-ud-close:hover { color: var(--text); }
.ad-ud-info { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 16px; margin-bottom: 18px; }
.ud-cell { display: flex; flex-direction: column; gap: 2px; }
.ud-k { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }
.ud-v { font-size: 13.5px; color: var(--text); word-break: break-all; }
#adUserModal .ad-log { max-height: 230px; overflow-y: auto; }

.fx-input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font-size: 15px; font-family: inherit; resize: vertical; margin-bottom: 16px; }
.fx-input:focus { outline: none; border-color: var(--active-fg); background: var(--panel); }
.fx-out { display: flex; flex-direction: column; gap: 10px; }
.fx-row { display: flex; align-items: center; gap: 10px; background: var(--tile); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.fx-styled { flex: 1; min-width: 0; font-size: 16px; line-height: 1.5; word-break: break-word; }
.fx-copy { flex-shrink: 0; padding: 7px 13px; font-size: 12.5px; }
.fx-empty { color: var(--text-faint); text-align: center; padding: 24px; }
.sc-wrap { display: flex; flex-direction: column; gap: 18px; }
.sc-cat-h { font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.sc-note { font-size: 12.5px; color: var(--text-dim); margin-bottom: 10px; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; }
.sc-tile { height: 46px; border: 1px solid var(--line); background: var(--panel); border-radius: 9px; font-size: 20px; cursor: pointer; color: var(--text); display: flex; align-items: center; justify-content: center; transition: border-color .12s, transform .12s; }
.sc-tile:hover { border-color: var(--active-fg); transform: translateY(-1px); }
.sc-blank { color: var(--text-faint); font-size: 15px; }
.sc-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--panel); padding: 9px 18px; border-radius: 20px; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 400; }
.sc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.av-bar { display: flex; gap: 10px; }
.av-input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font-size: 14px; font-family: inherit; }
.av-input:focus { outline: none; border-color: var(--active-fg); background: var(--panel); }
.av-result { margin-top: 18px; }
.av-msg { text-align: center; color: var(--text-dim); padding: 20px; }
.av-err { color: var(--danger-b); }
.av-card { text-align: center; }
.av-name { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.av-uid { font-size: 12.5px; color: var(--text-faint); margin-bottom: 14px; }
.av-imgwrap { display: inline-block; max-width: 100%; }
.av-img { max-width: 320px; width: 100%; border-radius: 14px; border: 1px solid var(--line); display: block; }
.av-actions { margin-top: 16px; }
.av-dl { text-decoration: none; }
@media (max-width: 640px) { .av-bar { flex-direction: column; } }
