/**
 * Precision Navigator — UI layer (from stitch_saas_landing_page_redesign / DESIGN.md)
 * Visual tokens only; does not change behavior.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --pn-primary: #0048d4;
  --pn-primary-container: #1e60ff;
  --pn-surface: #f7f9ff;
  --pn-surface-low: #f1f4fa;
  --pn-surface-container: #ebeef4;
  --pn-surface-white: #ffffff;
  --pn-on-surface: #181c20;
  --pn-on-surface-variant: #434656;
  --pn-secondary-fixed: #dce1ff;
  --pn-on-secondary-container: #2b4186;
  --pn-error: #ba1a1a;
  --pn-tertiary: #9d3200;
  --pn-outline-ghost: rgba(195, 197, 217, 0.35);
  --pn-shadow-soft: 0 32px 48px rgba(24, 28, 32, 0.06);
  --pn-shadow-card: 0 8px 32px rgba(24, 28, 32, 0.04);
  --pn-radius-lg: 16px;
  --pn-radius-md: 12px;
  --pn-radius-sm: 8px;
  --pn-sidebar-width: 260px;
}

/* ── App shell ───────────────────────────────────────── */
body.pn-app {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--pn-on-surface);
  background: var(--pn-surface);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Bootstrap 5 theme alignment */
body.pn-app {
  --bs-primary: #0048d4;
  --bs-primary-rgb: 0, 72, 212;
  --bs-body-bg: var(--pn-surface);
  --bs-body-color: var(--pn-on-surface);
  --bs-border-color: var(--pn-outline-ghost);
  --bs-link-color: var(--pn-primary);
  --bs-link-hover-color: var(--pn-primary-container);
}

body.pn-app .btn-primary {
  background: linear-gradient(135deg, var(--pn-primary) 0%, var(--pn-primary-container) 100%);
  border: none;
  border-radius: var(--pn-radius-sm);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 72, 212, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

body.pn-app .btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 72, 212, 0.28);
}

body.pn-app .btn-outline-danger {
  border-radius: var(--pn-radius-sm);
  border-color: rgba(186, 26, 26, 0.35);
  color: var(--pn-error);
  font-weight: 500;
}

body.pn-app .btn-outline-danger:hover {
  background: rgba(186, 26, 26, 0.08);
  border-color: var(--pn-error);
  color: var(--pn-error);
}

body.pn-app .btn-outline-secondary {
  border-radius: var(--pn-radius-sm);
  border-color: var(--pn-outline-ghost);
  color: var(--pn-on-surface-variant);
}

body.pn-app .btn-outline-primary {
  border-radius: var(--pn-radius-sm);
  border-color: rgba(0, 72, 212, 0.35);
  color: var(--pn-primary);
}

body.pn-app .btn-outline-primary:hover {
  background: var(--pn-secondary-fixed);
  border-color: var(--pn-primary);
}

body.pn-app .form-control,
body.pn-app .form-select {
  background: var(--pn-surface-low);
  border: 1px solid transparent;
  border-radius: var(--pn-radius-sm);
  padding: 0.55rem 0.9rem;
}

body.pn-app .form-control:focus,
body.pn-app .form-select:focus {
  background: var(--pn-surface-white);
  border-color: rgba(0, 72, 212, 0.25);
  box-shadow: 0 0 0 3px rgba(0, 72, 212, 0.12);
}

body.pn-app .table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: var(--pn-surface-low);
}

body.pn-app .table thead th {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pn-on-surface-variant);
  border-bottom-width: 1px;
  border-color: var(--pn-outline-ghost);
}

body.pn-app .card {
  border: none;
  border-radius: var(--pn-radius-lg);
  background: var(--pn-surface-white);
  box-shadow: var(--pn-shadow-card);
  overflow: hidden;
}

body.pn-app .card-header {
  background: transparent;
  border-bottom: 1px solid var(--pn-outline-ghost);
  font-weight: 700;
  font-size: 1rem;
  color: var(--pn-on-surface);
  padding: 1rem 1.25rem;
}

body.pn-app .alert {
  border-radius: var(--pn-radius-md);
  border: none;
}

body.pn-app .badge {
  font-weight: 600;
  padding: 0.4em 0.65em;
  border-radius: 6px;
}

body.pn-app .progress {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--pn-surface-container);
}

body.pn-app .progress-bar {
  background: linear-gradient(90deg, var(--pn-primary), var(--pn-primary-container));
  border-radius: 999px;
}

/* ── Sidebar (new + legacy .sidebar) ─────────────────── */
.pn-sidebar,
body.pn-app nav.sidebar {
  width: var(--pn-sidebar-width);
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  background: var(--pn-surface-low);
  padding: 1.5rem 1rem 1rem;
  transition: margin 0.25s ease, transform 0.25s ease;
  overflow-y: auto;
}

body.pn-app nav.sidebar .sidebar-header {
  background: transparent;
  padding: 0;
}

.pn-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.5rem 1.5rem;
  margin-bottom: 0.5rem;
}

.pn-sidebar__logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--pn-radius-sm);
  background: linear-gradient(135deg, var(--pn-primary), var(--pn-primary-container));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 72, 212, 0.25);
}

.pn-sidebar__title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--pn-primary);
  line-height: 1.2;
  margin: 0;
}

.pn-sidebar__subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pn-on-surface-variant);
  margin: 0;
}

.pn-sidebar__site-logo {
  padding: 0.75rem 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pn-sidebar__site-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.pn-sidebar__user {
  padding: 1rem 0.75rem;
  border-radius: var(--pn-radius-md);
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.pn-sidebar__user small {
  color: var(--pn-on-surface-variant);
  font-size: 0.7rem;
  font-weight: 500;
}

.pn-sidebar__nav,
body.pn-app .sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.pn-sidebar__nav .nav-item,
body.pn-app .sidebar-nav .nav-item {
  margin-bottom: 0.25rem;
}

.pn-sidebar__nav .nav-link,
body.pn-app .sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--pn-radius-sm);
  color: var(--pn-on-surface-variant);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.pn-sidebar__nav .nav-link i,
body.pn-app .sidebar-nav .nav-link i {
  width: 1.25rem;
  text-align: center;
  opacity: 0.85;
  margin-right: 0;
}

.pn-sidebar__nav .nav-link:hover,
body.pn-app .sidebar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--pn-on-surface);
}

.pn-sidebar__nav .nav-link.active,
body.pn-app .sidebar-nav .nav-link.active {
  background: var(--pn-secondary-fixed);
  color: var(--pn-primary);
  font-weight: 700;
}

.pn-sidebar__footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--pn-outline-ghost);
}

.pn-sidebar__footer .btn {
  font-weight: 600;
}

/* ── Main (new + legacy .main-content) ───────────────── */
.pn-main,
body.pn-app .main-content {
  margin-left: var(--pn-sidebar-width);
  min-height: 100vh;
  padding: 0;
  background: var(--pn-surface);
  transition: margin 0.25s ease;
}

.pn-header,
body.pn-app .main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  margin: 0 0 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 0 0 var(--pn-radius-lg) var(--pn-radius-lg);
  box-shadow: var(--pn-shadow-soft);
}

.pn-header .page-title,
body.pn-app .main-header .page-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pn-on-surface);
}

.pn-page-inner {
  padding: 0 1.5rem 2rem;
}

body.pn-app .main-content > main[role='main'],
body.pn-app .main-content > .container-fluid {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 2rem;
}

/* Stats / dashboard tiles */
body.pn-app .stats-card {
  background: var(--pn-surface-white);
  border-radius: var(--pn-radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--pn-shadow-card);
  border: none;
}

body.pn-app .stats-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pn-on-surface);
}

body.pn-app .stats-card p {
  color: var(--pn-on-surface-variant);
  margin: 0;
  font-size: 0.9rem;
}

/* Sidebar user block (legacy .user-profile) */
body.pn-app .pn-sidebar__user,
body.pn-app nav.sidebar .user-profile {
  padding: 1rem 0.75rem;
  border-radius: var(--pn-radius-md);
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  border-top: none;
  margin-top: 0;
}

body.pn-app nav.sidebar .user-profile small {
  color: var(--pn-on-surface-variant);
  font-size: 0.7rem;
  font-weight: 500;
}

body.pn-app nav.sidebar .user-profile .fw-bold,
body.pn-app nav.sidebar .user-profile span.fw-bold {
  color: var(--pn-on-surface);
}

/* School admin: logo row text */
body.pn-app .pn-school-brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  display: block;
  color: var(--pn-on-surface-variant);
  font-size: 0.7rem;
  font-weight: 600;
}

body.pn-app .pn-school-panel-title {
  color: var(--pn-on-surface);
  font-weight: 700;
}

.pn-school-logo-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--pn-radius-sm);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.85);
  padding: 3px;
  margin-right: 10px;
  flex-shrink: 0;
}

.pn-school-logo-placeholder {
  width: 42px;
  height: 42px;
  border-radius: var(--pn-radius-sm);
  background: var(--pn-secondary-fixed);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
  color: var(--pn-primary);
  font-size: 1.1rem;
}

/* ── Mobile sidebar + overlay ───────────────────────── */

/* Dim overlay behind the drawer */
.pn-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.50);
  z-index: 1040;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.pn-overlay.active { display: block; animation: pnFadeIn 0.2s ease; }
@keyframes pnFadeIn { from { opacity: 0 } to { opacity: 1 } }

/* Close ✕ button inside sidebar — shown only on mobile */
.pn-sidebar-close-btn {
  display: none;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--pn-on-surface-variant);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: var(--pn-radius-sm);
  line-height: 1;
  z-index: 2;
}
.pn-sidebar-close-btn:hover { background: rgba(0,0,0,0.06); }

@media (max-width: 991.98px) {
  /* Sidebar: off-canvas drawer with smooth transform */
  .pn-sidebar,
  body.pn-app nav.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1050;
    width: min(var(--pn-sidebar-width), 85vw);
    transform: translateX(-110%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0 !important;
    overflow-y: auto;
    box-shadow: 4px 0 32px rgba(10,15,30,0.18);
  }

  .pn-sidebar.pn-sidebar--open,
  body.pn-app nav.sidebar.active {
    transform: translateX(0);
  }

  /* Main fills full width */
  .pn-main,
  body.pn-app .main-content {
    margin-left: 0;
  }

  /* Blue hamburger button */
  .pn-toggle-sidebar,
  body.pn-app .toggle-sidebar {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--pn-primary) !important;
    border: none !important;
    color: #fff !important;
    border-radius: var(--pn-radius-sm) !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 72, 212, 0.22);
    padding: 0 !important;
    flex-shrink: 0;
  }
  .pn-toggle-sidebar:hover,
  body.pn-app .toggle-sidebar:hover {
    background: var(--pn-primary-container) !important;
  }

  /* Show close button inside sidebar */
  .pn-sidebar-close-btn { display: flex; }

  /* Header — tighter on mobile */
  .pn-header,
  body.pn-app .main-header {
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.75rem;
    border-radius: 0;
    gap: 0.6rem;
  }

  .pn-header .page-title,
  body.pn-app .main-header .page-title {
    font-size: 1.05rem;
  }

  /* Content padding on mobile */
  body.pn-app .main-content > main[role='main'],
  body.pn-app .main-content > .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: 1.5rem;
  }

  /* Stats cards — tighter padding on mobile */
  body.pn-app .stats-card {
    padding: 0.9rem 1rem;
  }
}

@media (min-width: 992px) {
  .pn-toggle-sidebar,
  body.pn-app .toggle-sidebar.d-lg-none {
    display: none !important;
  }
  .pn-sidebar-close-btn { display: none !important; }
  .pn-overlay { display: none !important; }
}

/* ── Public booking shell ───────────────────────────── */
body.pn-public {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--pn-on-surface);
  background: var(--pn-surface);
  -webkit-font-smoothing: antialiased;
}

.pn-public .navbar.pn-navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none !important;
  box-shadow: var(--pn-shadow-card);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.pn-public .navbar-brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pn-on-surface) !important;
}

.pn-public .pn-navbar-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: var(--pn-surface-container);
  padding: 3px;
  border-radius: 10px;
}

.pn-public footer.footer {
  border: none !important;
  padding: 2rem 0;
  margin-top: 3rem;
  background: var(--pn-surface-low);
  color: var(--pn-on-surface-variant);
  font-size: 0.875rem;
}

.pn-booking-progress .progress {
  height: 0.45rem;
  border-radius: 999px;
}

/* Utilities */
.pn-text-muted {
  color: var(--pn-on-surface-variant) !important;
}

.pn-surface-panel {
  background: var(--pn-surface-white);
  border-radius: var(--pn-radius-lg);
  box-shadow: var(--pn-shadow-card);
  padding: 1.5rem;
}

/* ═══════════════════════════════════════════════════════
   Main site shell (no sidebar) — Login, Home, Landing
   ═══════════════════════════════════════════════════════ */
body.pn-site {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--pn-on-surface);
  background: var(--pn-surface);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body.pn-site {
  --bs-primary: #0048d4;
  --bs-primary-rgb: 0, 72, 212;
  --bs-body-bg: var(--pn-surface);
  --bs-body-color: var(--pn-on-surface);
  --bs-border-color: var(--pn-outline-ghost);
}

body.pn-site .navbar.pn-navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none !important;
  box-shadow: var(--pn-shadow-card);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

body.pn-site .navbar-brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pn-on-surface) !important;
}

body.pn-site .nav-link {
  font-weight: 500;
  color: var(--pn-on-surface-variant) !important;
}

body.pn-site .nav-link:hover,
body.pn-site .nav-link:focus {
  color: var(--pn-primary) !important;
}

body.pn-site .btn-primary {
  background: linear-gradient(135deg, var(--pn-primary) 0%, var(--pn-primary-container) 100%);
  border: none;
  border-radius: var(--pn-radius-sm);
  font-weight: 600;
}

body.pn-site .btn-outline-primary {
  border-radius: var(--pn-radius-sm);
  font-weight: 600;
}

body.pn-site footer.footer {
  border: none !important;
  margin-top: 2rem;
  padding: 2rem 0;
  background: var(--pn-surface-low);
  color: var(--pn-on-surface-variant);
  font-size: 0.9rem;
}

/* Auth card (Login) */
.pn-auth-wrap {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.pn-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--pn-surface-white);
  border-radius: var(--pn-radius-lg);
  box-shadow: var(--pn-shadow-soft);
  padding: 2rem 2rem 1.75rem;
}

.pn-auth-card .pn-auth-logo {
  width: 3rem;
  height: 3rem;
  border-radius: var(--pn-radius-sm);
  background: linear-gradient(135deg, var(--pn-primary), var(--pn-primary-container));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 24px rgba(0, 72, 212, 0.25);
}

.pn-auth-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 0.35rem;
}

.pn-auth-sub {
  text-align: center;
  color: var(--pn-on-surface-variant);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

body.pn-site .pn-auth-card .form-control {
  background: var(--pn-surface-low);
  border: 1px solid transparent;
  border-radius: var(--pn-radius-sm);
  padding: 0.55rem 0.9rem;
}

body.pn-site .pn-auth-card .form-control:focus {
  background: var(--pn-surface-white);
  border-color: rgba(0, 72, 212, 0.25);
  box-shadow: 0 0 0 3px rgba(0, 72, 212, 0.12);
}

/* List / CRUD page toolbar */
body.pn-app .pn-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

body.pn-app .pn-page-toolbar h1,
body.pn-app .pn-page-toolbar h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.pn-app .pn-table-card {
  border-radius: var(--pn-radius-lg);
  overflow: hidden;
}

body.pn-app .pn-table-card .table thead th {
  background: transparent;
}

body.pn-app .input-group-text {
  background: var(--pn-surface-low);
  border: 1px solid transparent;
  color: var(--pn-on-surface-variant);
  border-radius: var(--pn-radius-sm) 0 0 var(--pn-radius-sm);
}

body.pn-app .btn-sm i {
  line-height: 1;
}

/* Dashboard: stat icon + avatars (shared with area dashboards) */
body.pn-app .stats-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.pn-app .stats-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pn-shadow-soft);
}

body.pn-app .stat-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pn-radius-md);
}

body.pn-app .avatar {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.pn-app .avatar-sm {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

body.pn-app .avatar-title {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--pn-radius-sm);
}

body.pn-app .bg-primary-subtle {
  background-color: rgba(0, 72, 212, 0.1) !important;
}

body.pn-app .text-primary {
  color: var(--pn-primary) !important;
}

body.pn-app .table > :not(caption) > * > * {
  padding: 0.85rem 0.75rem;
  vertical-align: middle;
}

body.pn-app .table thead.table-light th {
  background: var(--pn-surface-low) !important;
  color: var(--pn-on-surface-variant);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.pn-app .pn-workload-track {
  height: 8px;
  background: var(--pn-surface-container);
  border-radius: 999px;
  overflow: hidden;
  flex: 1;
}

body.pn-app .pn-workload-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Public booking — landing hero */
body.pn-public .pn-ds-hero {
  background: linear-gradient(135deg, rgba(0, 72, 212, 0.08) 0%, rgba(30, 96, 255, 0.06) 100%);
  border-radius: var(--pn-radius-lg);
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--pn-shadow-card);
}

@media (min-width: 768px) {
  body.pn-public .pn-ds-hero {
    padding: 2.5rem 2.5rem;
  }
}

body.pn-public .pn-ds-hero h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pn-on-surface);
}

body.pn-public .pn-ds-contact i {
  width: 1.25rem;
  color: var(--pn-primary);
  margin-right: 0.5rem;
}

body.pn-public .pn-kicker {
  letter-spacing: 0.14em;
}

body.pn-public .card {
  border: none;
  border-radius: var(--pn-radius-lg);
  box-shadow: var(--pn-shadow-card);
  background: var(--pn-surface-white);
}

body.pn-app pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 0.8rem;
  background: var(--pn-surface-low);
  padding: 1rem;
  border-radius: var(--pn-radius-md);
  border: 1px solid var(--pn-outline-ghost);
}

/* ─── Notification panel ─────────────────────────────────────────────────── */
.pn-notif-panel {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 1050;
  width: 320px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-top: 3px solid #16a34a;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pn-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f0fdf4;
  border-bottom: 1px solid rgba(22, 163, 74, 0.12);
}

.pn-notif-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #15803d;
  display: flex;
  align-items: center;
}

.pn-notif-close {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.pn-notif-close:hover {
  background: rgba(0, 0, 0, 0.07);
  color: #111827;
}

.pn-notif-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  max-height: 300px;
  overflow-y: auto;
}

.pn-notif-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.12s ease;
}

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

.pn-notif-item:hover {
  background: #f9fafb;
}

.pn-notif-avatar {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.pn-notif-avatar--theory {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.pn-notif-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pn-notif-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pn-notif-sub {
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pn-notif-time {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: #9ca3af;
  white-space: nowrap;
}
