  .nav-tools { display: flex; align-items: center; gap: 8px; }
  .lang-seg {
    display: inline-flex; padding: 3px; gap: 2px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-pill); backdrop-filter: blur(20px);
  }
  .lang-seg button {
    appearance: none; border: 0; background: transparent; cursor: pointer;
    font-family: var(--font-display); font-weight: 600; font-size: 12px;
    color: var(--text-dim); padding: 5px 11px; border-radius: var(--r-pill);
    transition: color .15s, background .2s;
  }
  .lang-seg button:hover { color: var(--text); }
  .lang-seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); }
  .theme-toggle {
    appearance: none; cursor: pointer; width: 36px; height: 36px;
    display: grid; place-items: center; border-radius: var(--r-pill);
    background: var(--surface); border: 1px solid var(--border-strong);
    color: var(--text); backdrop-filter: blur(12px); transition: background .2s;
  }
  .theme-toggle:hover { background: var(--surface-2); }
  .theme-toggle svg { width: 17px; height: 17px; }
  .theme-toggle .ico-sun { display: none; }
  [data-theme="light"] .theme-toggle .ico-sun { display: block; }
  [data-theme="light"] .theme-toggle .ico-moon { display: none; }

  /* Functional search */
  .search-wrap { position: relative; }
  .topbar .search { transition: border-color .15s, background .15s; }
  .topbar .search:focus-within { border-color: var(--border-strong); background: var(--surface-2); }
  #search-input { flex: 1; min-width: 0; appearance: none; border: 0; background: transparent;
    color: var(--text); font-family: inherit; font-size: 13px; outline: none; }
  #search-input::placeholder { color: var(--text-dim); }
  #search-kbd { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
    border: 1px solid var(--border); padding: 1px 6px; border-radius: 4px; }
  .search-results { position: absolute; top: calc(100% + 8px); left: 0; width: 420px; max-width: 90vw;
    max-height: 380px; overflow-y: auto; z-index: 60; padding: 6px;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,.45); backdrop-filter: blur(20px); }
  .sr-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
    text-decoration: none; color: var(--text); cursor: pointer; }
  .sr-item:hover, .sr-item.active { background: var(--surface-2); }
  .sr-badge { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 700; font-size: 13px; }
  .sr-badge.high { background: rgba(52,211,153,.16); color: #6EE7B7; }
  .sr-badge.mid { background: rgba(245,181,68,.16); color: #FFD27A; }
  .sr-badge.low { background: rgba(255,107,154,.16); color: #FF96B6; }
  .sr-title { font-size: 14px; font-weight: 500; }
  .sr-meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
  .sr-empty { padding: 18px 14px; text-align: center; color: var(--text-dim); font-size: 13px; }
  .sr-head { padding: 8px 12px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); font-family: var(--font-display); }

  /* Notifications */
  .notif-wrap { position: relative; }
  .notif-dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%;
    background: #FF6B9A; border: 2px solid var(--bg, #0b0b12); }
  .notif-panel { position: absolute; top: calc(100% + 8px); right: 0; width: 340px; max-width: 90vw;
    max-height: 440px; overflow-y: auto; z-index: 60; padding: 6px;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,.45); backdrop-filter: blur(20px); }
  .notif-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 8px; }
  .notif-head h4 { margin: 0; font-family: var(--font-display); font-size: 14px; color: var(--text); }
  .notif-enable { appearance: none; border: 1px solid var(--border); background: var(--surface-2);
    color: var(--text-dim); font-size: 11px; padding: 3px 9px; border-radius: var(--r-pill); cursor: pointer; }
  .notif-enable:hover { color: var(--text); border-color: var(--border-strong); }
  .notif-item { display: flex; gap: 11px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); }
  .notif-item:hover { background: var(--surface-2); }
  .notif-ic { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; background: var(--surface-3); }
  .notif-body { flex: 1; min-width: 0; }
  .notif-title { font-size: 13.5px; line-height: 1.4; }
  .notif-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
  .notif-empty { padding: 26px 14px; text-align: center; color: var(--text-dim); font-size: 13px; }

  /* Empty state helpers */
  .empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 20px; gap: 12px; text-align: center;
  }
  .empty-state .es-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--surface-2); display: grid; place-items: center;
    color: var(--text-faint);
  }
  .empty-state h4 { margin: 0; font-size: 14px; color: var(--text); }
  .empty-state p { margin: 0; font-size: 12px; color: var(--text-dim); max-width: 220px; line-height: 1.6; }
  .stat .val.empty { color: var(--text-faint); font-size: 28px; letter-spacing: 0; }
  .stat .delta { visibility: hidden; }
  .session-row {
    display: flex; align-items: center; gap: 14px; padding: 12px 0;
    border-bottom: 1px solid var(--border); cursor: pointer;
    text-decoration: none; color: inherit;
  }
  .session-row:last-child { border-bottom: 0; }
  .session-row:hover .session-scenario { color: var(--text); }
  .session-score-badge {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    display: grid; place-items: center;
    font-family: var(--font-display); font-size: 14px; font-weight: 700;
    background: var(--surface-2); border: 1px solid var(--border);
  }
  .session-score-badge.high { background: rgba(52,211,153,0.14); color: #6EE7B7; border-color: rgba(52,211,153,0.3); }
  .session-score-badge.mid  { background: rgba(124,92,255,0.14); color: #A48BFF; border-color: rgba(124,92,255,0.3); }
  .session-score-badge.low  { background: rgba(245,181,68,0.14); color: #FFD27A; border-color: rgba(245,181,68,0.3); }
  .session-scenario { font-size: 13.5px; font-weight: 500; color: var(--text-dim); transition: color .15s; }
  .session-meta-row { display: flex; gap: 12px; margin-top: 3px; font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); }
  .session-ts { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); white-space: nowrap; }
