/* ── Global overrides ─────────────────────────────────────────── */

[v-cloak] {
  display: none !important;
}

.ns-body {
  background-color: var(--ns-bg);
  color: var(--ns-fg);
  min-height: 100vh;
}

/* ── Login ────────────────────────────────────────────────────── */

.ns-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem 1rem;
  background-color: var(--ns-bg-alt);
}

.ns-login__card {
  background: var(--ns-bg);
  border: 1px solid var(--ns-border);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 360px;
}

.ns-login__card--wide {
  max-width: 600px;
}

.ns-login__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ns-fg-emphasis);
  text-align: center;
  margin-bottom: 1.5rem;
}

.ns-login__links {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
}

.ns-login__links a {
  color: var(--ns-fg-muted);
}

.ns-login__links a:hover {
  color: var(--ns-fg);
}

.ns-login__links-sep {
  color: var(--ns-fg-muted);
  margin: 0 0.35rem;
}

.ns-legal h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ns-fg-emphasis);
  margin: 1.25rem 0 0.5rem;
}

.ns-legal p,
.ns-legal li {
  font-size: 0.9rem;
  color: var(--ns-fg);
  line-height: 1.6;
}

.ns-legal ul {
  margin-left: 1.25rem;
  list-style: disc;
}

.ns-legal li {
  margin-bottom: 0.25rem;
}

/* ── Public pages (privacy, terms) ────────────────────────────── */

.ns-public {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  position: relative;
  min-height: 100vh;
  background: #000;
  color: #e8e4dc;
}

.ns-public__bg {
  position: fixed;
  inset: 0;
  background: url('/static/img/kami-bg.jpg') center / 120% no-repeat;
  z-index: 0;
}

.ns-public__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 1;
}

.ns-public__page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3.5rem 1.5rem 3rem;
}

.ns-public__header {
  text-align: center;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: ns-public-fade-up 0.8s ease 0.1s forwards;
}

.ns-public__logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
}

.ns-public__logo img {
  width: 100%;
  height: 100%;
}

.ns-public__title {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.ns-public__date {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.04em;
}

.ns-public__card {
  max-width: 640px;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  padding: 2.5rem 2.5rem 2rem;
  box-shadow:
    0 4px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  animation: ns-public-fade-up 0.8s ease 0.25s forwards;
}

.ns-public__card h2 {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  margin: 2rem 0 0.6rem;
  letter-spacing: 0.02em;
}

.ns-public__card h2:first-child {
  margin-top: 0;
}

.ns-public__card p,
.ns-public__card li {
  font-size: 0.84rem;
  line-height: 1.75;
  color: rgba(232, 228, 220, 0.55);
  font-weight: 300;
}

.ns-public__card p + p {
  margin-top: 0.75rem;
}

.ns-public__card ul {
  margin: 0.5rem 0 0 1.25rem;
  list-style: none;
}

.ns-public__card li {
  position: relative;
  padding-left: 0.1rem;
  margin-bottom: 0.35rem;
}

.ns-public__card li::before {
  content: '\2013';
  position: absolute;
  left: -1.1rem;
  color: rgba(255, 255, 255, 0.18);
}

.ns-public__footer {
  margin-top: 2rem;
  font-size: 0.68rem;
  opacity: 0;
  animation: ns-public-fade-up 0.8s ease 0.4s forwards;
}

.ns-public__footer a {
  color: rgba(255, 255, 255, 0.22);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ns-public__footer a:hover {
  color: rgba(255, 255, 255, 0.5);
}

.ns-public__footer-sep {
  color: rgba(255, 255, 255, 0.08);
  margin: 0 0.6rem;
}

@keyframes ns-public-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .ns-public__title { font-size: 1.4rem; }
  .ns-public__card { padding: 1.75rem 1.5rem 1.5rem; }
}

/* ── Homepage (landing page) ──────────────────────────────────── */

.ns-home { font-family: 'Manrope', system-ui, -apple-system, sans-serif; background: #000; color: #1a1a1a; overflow-x: hidden; }
.ns-home .ns-home__bg { position: absolute; inset: 0; background: url('/static/img/kami-bg.jpg') center / 120% no-repeat; z-index: 0; }
.ns-home .ns-home__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.78); z-index: 1; }
.ns-home .ns-home__page { position: relative; z-index: 2; }

/* Top bar */
.ns-home .ns-topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.04); transition: background 0.3s ease, border-color 0.3s ease; }
.ns-home .ns-topbar--light { background: rgba(255, 255, 255, 0.92); border-bottom-color: rgba(0, 0, 0, 0.06); }
.ns-home .ns-topbar__brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: rgba(255, 255, 255, 0.92); transition: color 0.3s ease; }
.ns-home .ns-topbar--light .ns-topbar__brand { color: #1a1a1a; }
.ns-home .ns-topbar__logo { width: 28px; height: 28px; transition: filter 0.3s ease; }
.ns-home .ns-topbar--light .ns-topbar__logo { filter: invert(1); }
.ns-home .ns-topbar__name { font-family: 'Syne', system-ui, sans-serif; font-size: 0.88rem; font-weight: 600; letter-spacing: 0.04em; }
.ns-home .ns-topbar__right { position: relative; }
.ns-home .ns-topbar__btn { font-family: 'Syne', system-ui, sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; padding: 0.45rem 1rem; cursor: pointer; transition: all 0.25s ease; }
.ns-home .ns-topbar__btn:hover { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.92); }
.ns-home .ns-topbar--light .ns-topbar__btn { color: #1a1a1a; background: rgba(0, 0, 0, 0.04); border-color: rgba(0, 0, 0, 0.12); }
.ns-home .ns-topbar--light .ns-topbar__btn:hover { background: rgba(0, 0, 0, 0.08); }

/* Login dropdown */
.ns-home .ns-login-dd { position: absolute; top: calc(100% + 0.6rem); right: 0; width: 280px; background: rgba(12, 12, 12, 0.9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 1.25rem; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all 0.25s ease; }
.ns-home .ns-login-dd.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.ns-home .ns-login-dd__row { display: flex; gap: 0.5rem; }
.ns-home .ns-login-dd__input { flex: 1; font-family: 'Manrope', sans-serif; font-size: 0.82rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; color: rgba(255, 255, 255, 0.85); padding: 0.55rem 0.75rem; outline: none; }
.ns-home .ns-login-dd__input::placeholder { color: rgba(255, 255, 255, 0.25); }
.ns-home .ns-login-dd__input:focus { border-color: rgba(255, 255, 255, 0.25); }
.ns-home .ns-login-dd__submit { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; color: rgba(255, 255, 255, 0.6); cursor: pointer; font-size: 1rem; transition: all 0.2s ease; }
.ns-home .ns-login-dd__submit:hover { background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.9); }
.ns-home .ns-login-dd__divider { display: flex; align-items: center; gap: 0.75rem; margin: 0.9rem 0; color: rgba(255, 255, 255, 0.2); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.ns-home .ns-login-dd__divider::before, .ns-home .ns-login-dd__divider::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.06); }
.ns-home .ns-login-dd__google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: 'Manrope', sans-serif; font-size: 0.78rem; color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 6px; padding: 0.55rem; cursor: not-allowed; opacity: 0.5; }
.ns-home .ns-login-dd__google svg { width: 14px; height: 14px; }

/* Hero */
.ns-home .ns-hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1.5rem; text-align: center; overflow: hidden; }
.ns-home .ns-hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.ns-home .ns-hero__logo { width: 130px; height: 130px; margin-bottom: 2rem; opacity: 0; animation: ns-home-fade-up 1s ease 0.1s forwards; }
.ns-home .ns-hero__logo img { width: 100%; height: 100%; }
.ns-home .ns-hero__title { font-family: 'Syne', system-ui, sans-serif; font-size: 2.8rem; font-weight: 700; color: rgba(255, 255, 255, 0.92); letter-spacing: 0.05em; margin-bottom: 0.5rem; opacity: 0; animation: ns-home-fade-up 1s ease 0.25s forwards; }
.ns-home .ns-hero__subtitle { font-family: 'Syne', system-ui, sans-serif; font-size: 0.72rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.28); margin-bottom: 2.2rem; opacity: 0; animation: ns-home-fade-up 1s ease 0.4s forwards; }
.ns-home .ns-hero__tagline { max-width: 520px; font-size: 0.92rem; font-weight: 300; line-height: 1.75; color: rgba(255, 255, 255, 0.5); margin-bottom: 2.5rem; opacity: 0; animation: ns-home-fade-up 1s ease 0.55s forwards; }
.ns-home .ns-hero__divider { width: 40px; height: 1px; background: rgba(255, 255, 255, 0.12); margin-bottom: 2.5rem; opacity: 0; animation: ns-home-fade-up 1s ease 0.65s forwards; }
.ns-home .ns-hero__scroll { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; opacity: 0; animation: ns-home-fade-up 1s ease 0.75s forwards; }
.ns-home .ns-hero__scroll-label { font-size: 0.64rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255, 255, 255, 0.2); }
.ns-home .ns-hero__scroll-arrow { font-size: 0.9rem; color: rgba(255, 255, 255, 0.2); animation: ns-home-bounce 2s ease-in-out infinite; }

/* Overview grid (dark) */
.ns-home .ns-overview { position: relative; padding: 6rem 1.5rem 7rem; overflow: hidden; }
.ns-home .ns-overview__inner { max-width: 960px; margin: 0 auto; }
.ns-home .ns-overview__label { font-family: 'Syne', system-ui, sans-serif; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.22); margin-bottom: 0.6rem; }
.ns-home .ns-overview__heading { font-family: 'Syne', system-ui, sans-serif; font-size: 1.6rem; font-weight: 700; color: rgba(255, 255, 255, 0.92); margin-bottom: 1rem; }
.ns-home .ns-overview__desc { font-size: 0.88rem; font-weight: 300; line-height: 1.6; color: rgba(255, 255, 255, 0.42); max-width: 480px; margin-bottom: 3rem; }
.ns-home .ns-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.ns-home .ns-bento__card { position: relative; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 12px; padding: 2rem; overflow: hidden; transition: border-color 0.3s ease, transform 0.3s ease; }
.ns-home .ns-bento__card:hover { border-color: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.ns-home .ns-bento__icon { width: 32px; height: 32px; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; }
.ns-home .ns-bento__icon svg { width: 22px; height: 22px; stroke: rgba(255, 255, 255, 0.38); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ns-home .ns-bento__title { font-family: 'Syne', system-ui, sans-serif; font-size: 0.95rem; font-weight: 600; color: rgba(255, 255, 255, 0.92); margin-bottom: 0.55rem; }
.ns-home .ns-bento__body { font-size: 0.82rem; font-weight: 300; line-height: 1.6; color: rgba(255, 255, 255, 0.48); }

/* Light feature sections */
.ns-home .ns-light { background: #fafafa; color: #1a1a1a; }
.ns-home .ns-feature { max-width: 820px; margin: 0 auto; padding: 6rem 2rem; display: flex; align-items: flex-start; gap: 4rem; }
.ns-home .ns-feature--reverse { flex-direction: row-reverse; }
.ns-home .ns-feature + .ns-feature { border-top: 1px solid rgba(0, 0, 0, 0.06); }
.ns-home .ns-feature__text { flex: 1; min-width: 0; }
.ns-home .ns-feature__number { font-family: 'Syne', system-ui, sans-serif; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(0, 0, 0, 0.18); margin-bottom: 0.5rem; }
.ns-home .ns-feature__title { font-family: 'Syne', system-ui, sans-serif; font-size: 1.4rem; font-weight: 700; color: #1a1a1a; margin-bottom: 1rem; }
.ns-home .ns-feature__body { font-size: 0.88rem; font-weight: 300; line-height: 1.8; color: rgba(26, 26, 26, 0.58); margin-bottom: 1.2rem; }
.ns-home .ns-feature__body:last-child { margin-bottom: 0; }
.ns-home .ns-feature__detail { font-size: 0.82rem; font-weight: 300; line-height: 1.75; color: rgba(26, 26, 26, 0.45); }
.ns-home .ns-feature__pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.ns-home .ns-feature__pill { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(26, 26, 26, 0.4); border: 1px solid rgba(26, 26, 26, 0.12); border-radius: 20px; padding: 0.3rem 0.75rem; }
.ns-home .ns-feature__visual { flex: 0 0 280px; height: 200px; border-radius: 12px; background: rgba(0, 0, 0, 0.03); border: 1px solid rgba(0, 0, 0, 0.06); overflow: hidden; }
.ns-home .ns-feature__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Process section (dark) */
.ns-home .ns-process { position: relative; background: #0a0a0a; padding: 6rem 1.5rem; overflow: hidden; }
.ns-home .ns-process__inner { max-width: 960px; margin: 0 auto; }
.ns-home .ns-process__label { font-family: 'Syne', system-ui, sans-serif; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.22); margin-bottom: 0.6rem; }
.ns-home .ns-process__heading { font-family: 'Syne', system-ui, sans-serif; font-size: 1.6rem; font-weight: 700; color: rgba(255, 255, 255, 0.92); margin-bottom: 3rem; }
.ns-home .ns-steps { display: flex; align-items: flex-start; justify-content: center; }
.ns-home .ns-step { flex: 1; max-width: 240px; text-align: center; }
.ns-home .ns-step__circle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; font-family: 'Syne', system-ui, sans-serif; font-size: 0.88rem; font-weight: 600; color: rgba(255, 255, 255, 0.72); margin: 0 auto 1.2rem; }
.ns-home .ns-step__title { font-family: 'Syne', system-ui, sans-serif; font-size: 0.95rem; font-weight: 600; color: rgba(255, 255, 255, 0.92); margin-bottom: 0.4rem; }
.ns-home .ns-step__body { font-size: 0.82rem; font-weight: 300; line-height: 1.55; color: rgba(255, 255, 255, 0.48); padding: 0 0.75rem; }
.ns-home .ns-step-line { flex-shrink: 0; width: 60px; display: flex; align-items: flex-start; padding-top: 20px; }
.ns-home .ns-step-line__inner { width: 100%; height: 1px; background: rgba(255, 255, 255, 0.08); }

/* Closing */
.ns-home .ns-closing { background: #0a0a0a; padding: 4rem 1.5rem 5rem; text-align: center; }
.ns-home .ns-closing__heading { font-family: 'Syne', system-ui, sans-serif; font-size: 1.6rem; font-weight: 700; color: rgba(255, 255, 255, 0.92); margin-bottom: 0.6rem; }
.ns-home .ns-closing__sub { font-size: 0.82rem; font-weight: 300; color: rgba(255, 255, 255, 0.36); margin-bottom: 3rem; }
.ns-home .ns-closing__links { display: flex; justify-content: center; gap: 1.5rem; }
.ns-home .ns-closing__link { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.2); text-decoration: none; transition: color 0.2s ease; }
.ns-home .ns-closing__link:hover { color: rgba(255, 255, 255, 0.5); }

/* Reveal animation */
.ns-home .ns-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.ns-home .ns-reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes ns-home-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ns-home-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Responsive */
@media (max-width: 768px) {
  .ns-home .ns-hero__title { font-size: 2rem; }
  .ns-home .ns-bento { grid-template-columns: 1fr; gap: 1rem; }
  .ns-home .ns-feature { flex-direction: column !important; gap: 2rem; padding: 4rem 1.5rem; }
  .ns-home .ns-feature__visual { flex: none; width: 100%; height: 160px; }
  .ns-home .ns-steps { flex-direction: column; align-items: center; gap: 2rem; }
  .ns-home .ns-step-line { width: 1px; height: 32px; padding: 0; }
  .ns-home .ns-step-line__inner { width: 1px; height: 100%; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .ns-home .ns-bento { grid-template-columns: repeat(2, 1fr); }
}

/* ── Layout ───────────────────────────────────────────────────── */

.ns-layout {
  display: flex;
  height: 100vh;
}

/* ── Navbar (left sidebar) ────────────────────────────────────── */

.ns-navbar {
  width: 180px;
  min-width: 180px;
  background-color: var(--ns-sidebar-bg);
  color: var(--ns-sidebar-fg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 10;
  transition: width 0.2s ease, min-width 0.2s ease;
}

.ns-navbar__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sol-base3);
  border-bottom: 1px solid var(--sol-base01);
  user-select: none;
}

.ns-navbar__brand > span:first-child {
  cursor: pointer;
}

.ns-navbar__brand > span:first-child:hover {
  color: var(--sol-base2);
}

.ns-navbar__theme-toggle {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.ns-navbar__theme-toggle:hover {
  opacity: 1;
}

.ns-navbar__sections {
  flex: 1;
  padding: 0.35rem 0.5rem 0.5rem;
  overflow-y: auto;
}

.ns-navbar__group-label {
  padding: 0.6rem 0.4rem 0.2rem 1rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sol-base01);
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.ns-navbar__group-label:hover {
  color: var(--sol-base0);
}

.ns-navbar__group-chevron {
  font-size: 0.5rem;
  transition: transform 0.15s ease;
  display: inline-block;
}

.ns-navbar__group-label--collapsed .ns-navbar__group-chevron {
  transform: rotate(-90deg);
}

.ns-navbar__group-items--collapsed {
  display: none;
}

.ns-layout--collapsed .ns-navbar__group-label {
  display: none;
}

.ns-navbar__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  margin: 0.1rem 0;
  border-radius: 4px;
  color: var(--ns-sidebar-fg);
  text-decoration: none;
  font-size: 0.85rem;
  transition: background-color 0.12s ease;
}

.ns-navbar__item:hover {
  background-color: var(--sol-base01);
  color: var(--sol-base3);
}

.ns-navbar__item--active {
  background-color: var(--sol-base03);
  color: var(--ns-sidebar-active);
  border-left: 3px solid var(--ns-sidebar-active);
  padding-left: calc(1rem - 3px);
}

.ns-navbar__label {
  white-space: nowrap;
  overflow: hidden;
}

.ns-navbar__badge {
  background-color: var(--ns-danger);
  color: var(--sol-base3);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.3rem;
  border-radius: 8px;
  margin-left: 0.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.ns-layout--collapsed .ns-navbar__badge {
  display: none !important;
}

/* Collapsed state */
.ns-layout--collapsed .ns-navbar {
  width: 52px;
  min-width: 52px;
}

.ns-layout--collapsed .ns-navbar__label {
  display: none;
}

.ns-layout--collapsed .ns-navbar__brand > span:first-child {
  font-size: 0;
}

.ns-layout--collapsed .ns-navbar__brand > span:first-child::after {
  content: 'N';
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.ns-layout--collapsed .ns-navbar__theme-toggle {
  display: none;
}

.ns-layout--collapsed .ns-navbar__sections {
  display: none;
}

/* ── Content area ─────────────────────────────────────────────── */

.ns-content {
  flex: 1;
  margin-left: 180px;
  padding: 1.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  transition: margin-left 0.2s ease;
}

/* Multi-column sections: lock viewport height, delegate scroll to columns */
.ns-content--columns {
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
}

.ns-content--columns > [id="admin-app"] {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ns-layout--collapsed .ns-content {
  margin-left: 52px;
}

.ns-content--flush {
  padding: 0;
}

/* ── Placeholder section ──────────────────────────────────────── */

.ns-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.ns-placeholder__content {
  text-align: center;
}

.ns-placeholder__icon {
  font-size: 2rem;
  color: var(--ns-fg-muted);
  margin-bottom: 1rem;
  display: block;
}

/* ── Books list ───────────────────────────────────────────────── */

.ns-books-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 600px;
}

.ns-books-list__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--ns-bg);
  border: 1px solid var(--ns-border);
  border-radius: 4px;
  color: var(--ns-accent);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.ns-books-list__item:hover {
  border-color: var(--ns-accent);
}

.ns-books-list__icon {
  color: var(--ns-fg-muted);
}

.ns-books-list__title {
  font-weight: 500;
}

/* ── Section title ────────────────────────────────────────────── */

.ns-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ns-fg-emphasis);
  margin: 0 0 1rem;
}

/* ── Loading state ────────────────────────────────────────────── */

.ns-loading {
  padding: 1.5rem;
  color: var(--ns-fg-muted);
}

/* ── Empty states ─────────────────────────────────────────────── */

/* Inline content empty: lists, tables, search results */
.ns-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--ns-fg-muted);
  font-size: 0.85rem;
}

/* Detail-pane empty: flex-centred placeholder in list/detail layouts */
.ns-empty--pane {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: var(--ns-fg-muted);
}

/* "Nothing configured" state with dashed border */
.ns-empty-state {
  padding: 1.5rem;
  text-align: center;
  color: var(--ns-fg-muted);
  border: 1px dashed var(--ns-border);
  border-radius: 4px;
  max-width: 600px;
}

/* ── Feature nav (multi-view section sidebar) ────────────────── */

.ns-feature-nav {
  width: 140px;
  flex-shrink: 0;
  border-right: 1px solid var(--ns-border);
  display: flex;
  flex-direction: column;
  padding-top: 0.5rem;
}

.ns-feature-nav__header {
  padding: 0.35rem 1rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ns-fg-muted);
  border-bottom: none;
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.ns-feature-nav__items {
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem 0;
}

.ns-feature-nav__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  margin: 0.1rem 0;
  border-left: 3px solid transparent;
  color: var(--ns-fg);
  text-decoration: none;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.ns-feature-nav__item:hover {
  background-color: var(--ns-bg-alt);
}

.ns-feature-nav__item--active {
  background-color: var(--ns-bg-alt);
  border-left-color: var(--ns-accent);
  color: var(--ns-fg-emphasis);
}

.ns-feature-nav__label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ns-feature-nav__badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 8px;
  line-height: 1;
  flex-shrink: 0;
  background-color: var(--ns-bg-alt);
  color: var(--ns-fg-muted);
}

.ns-feature-nav__badge--danger {
  background-color: var(--ns-danger);
  color: var(--sol-base3);
}

.ns-feature-nav__item--active .ns-feature-nav__badge {
  background-color: rgba(38, 139, 210, 0.12);
  color: var(--ns-accent);
}

.ns-feature-nav__item--active .ns-feature-nav__badge--danger {
  background-color: var(--ns-danger);
  color: var(--sol-base3);
}

.ns-feature-nav__group-label {
  padding: 0.6rem 0.75rem 0.2rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ns-fg-muted);
}

/* ── Detail header (multi-view section title bar) ────────────── */

.ns-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--ns-border);
  flex-shrink: 0;
  min-height: 2.5rem;
  box-sizing: border-box;
}

.ns-detail-header__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ns-fg-emphasis);
  margin: 0;
}

.ns-detail-header__refresh {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--ns-border);
  border-radius: 4px;
  background: none;
  color: var(--ns-fg);
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease;
}

.ns-detail-header__refresh:hover {
  border-color: var(--ns-accent);
  color: var(--ns-accent);
}

.ns-detail-header__refresh:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Account tabs (Gmail, Telegram account filter row) ────────── */

.ns-account-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--ns-border);
  padding: 0 0.75rem;
  flex-shrink: 0;
  min-height: 2.5rem;
  box-sizing: border-box;
}

.ns-account-tabs__tab {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ns-fg-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease;
}

.ns-account-tabs__tab:hover {
  color: var(--ns-fg);
}

.ns-account-tabs__tab--active {
  color: var(--ns-accent);
  border-bottom-color: var(--ns-accent);
}

.ns-account-tabs__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Split pane (list/detail two-column layout) ──────────────── */

.ns-split-pane {
  display: flex;
  height: 100%;
  overflow: hidden;
}

.ns-split-pane__list {
  flex-shrink: 0;
  border-right: 1px solid var(--ns-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.ns-split-pane__detail {
  flex: 1;
  overflow-y: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Reset link styling for split-pane list items rendered as <a> */
.ns-split-pane__list a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ── Toaster ──────────────────────────────────────────────────── */

.ns-toaster {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 380px;
}

.ns-toast {
  padding: 0.6rem 0.85rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  animation: ns-toast-in 0.2s ease;
}

.ns-toast--success {
  background: var(--ns-success);
  color: var(--sol-base3);
}

.ns-toast--error {
  background: var(--ns-danger);
  color: var(--sol-base3);
}

.ns-toast__close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
}

.ns-toast__close:hover {
  opacity: 1;
}

@keyframes ns-toast-in {
  from { opacity: 0; transform: translateX(1rem); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Saved indicator ──────────────────────────────────────────── */

.ns-saved-indicator {
  color: var(--ns-fg-muted);
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ns-saved-indicator--visible {
  opacity: 1;
}

/* ── Shared: expand/collapse chevron (SVG) ────────────────────── */

.ns-chevron {
  display: inline-block;
  width: 0.65em;
  height: 0.65em;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.ns-chevron__svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ns-chevron--open {
  transform: rotate(90deg);
}

/* ── Bulma overrides ──────────────────────────────────────────── */

.button.is-link {
  background-color: var(--ns-accent);
}

.button.is-link:hover {
  background-color: var(--sol-blue);
  filter: brightness(0.9);
}

.input:focus,
.textarea:focus {
  border-color: var(--ns-accent);
  box-shadow: 0 0 0 0.125em rgba(38, 139, 210, 0.25);
}

.notification.is-danger.is-light {
  background-color: rgba(220, 50, 47, 0.1);
  color: var(--ns-danger);
}
