:root {
      --primary: #0043FF;
      --primary-hover: #0036CC;
      --primary-active: #002DA3;
      --primary-tint: #EBF0FF;
      --accent: #F7630C;
      --accent-hover: #E55A0A;
      --success: #13612E;
      --success-bg: #E6F4EC;
      --error: #B84233;
      --error-tint: #FEF2F0;
      --moderate-bg: #FEF3E2;
      --moderate-text: #C27B00;
      --bg: #F2F3F6;
      --card: #FFFFFF;
      --text: #222222;
      --text-muted: #4A5568;
      --border: #E2E8F0;
      --border-light: #EDF2F7;
      --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
      --shadow-md: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.07);
      --radius-sm: 8px;
      --radius-md: 10px;
      --radius-pill: 24px;
      --font-body: 'DM Sans', -apple-system, sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
      --banner-height: 0px;
      --sidebar-width: 240px;
    }

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

    body {
      font-family: var(--font-body);
      font-size: 15px;
      color: var(--text);
      background: var(--bg);
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    /* -- Mockup banner -- */
    .mockup-banner {
      background: #1e2228;
      color: #fff;
      text-align: center;
      padding: 8px 16px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.04em;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
      height: var(--banner-height);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .mockup-banner span { color: var(--accent); }

    /* -- Sidebar -- */
    .sidebar {
      width: var(--sidebar-width);
      background: #FAFBFC;
      box-shadow: 1px 0 0 var(--border), 4px 0 16px rgba(0,0,0,0.03);
      position: fixed;
      top: 0;
      bottom: 0;
      left: 0;
      display: flex;
      flex-direction: column;
      z-index: 50;
      overflow-y: auto;
    }

    .sidebar-header {
      padding: 24px 20px 20px;
      border-bottom: 1px solid var(--border-light);
    }
    .sidebar-logo {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .sidebar-logo svg { flex-shrink: 0; }
    .sidebar-logo-text {
      font-size: 20px;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--text);
    }
    .sidebar-logo-sub {
      font-size: 11px;
      color: var(--text-muted);
      font-weight: 500;
      margin-top: -2px;
    }

    .sidebar-nav {
      flex: 1;
      padding: 12px 10px;
      display: flex;
      flex-direction: column;
    }

    .nav-group-label {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-muted);
      padding: 16px 12px 6px;
      opacity: 0.7;
    }
    .nav-group-label:first-child {
      padding-top: 8px;
    }

    .nav-sep {
      height: 1px;
      background: var(--border-light);
      margin: 6px 12px;
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 12px;
      margin-bottom: 4px;
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-weight: 500;
      color: var(--text-muted);
      cursor: pointer;
      transition: all 0.12s;
      position: relative;
      border: none;
      background: none;
      width: 100%;
      text-align: left;
      font-family: var(--font-body);
    }
    .nav-item:hover {
      background: var(--bg);
      color: var(--text);
    }
    .nav-item.active {
      background: var(--primary-tint);
      color: var(--primary);
      font-weight: 600;
      box-shadow: inset 3px 0 0 var(--primary);
    }
    .nav-item.active svg { color: var(--primary); }
    .nav-item svg {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      color: var(--text-muted);
    }
    .nav-item.disabled {
      opacity: 0.4;
      cursor: default;
    }
    .nav-item.disabled:hover {
      background: none;
      color: var(--text-muted);
    }

    .nav-badge {
      margin-left: auto;
      font-size: 11px;
      font-weight: 700;
      min-width: 20px;
      height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      background: var(--border);
      color: var(--text-muted);
      padding: 0 6px;
    }

    .nav-spacer { flex: 1; }

    .sidebar-footer {
      padding: 16px 10px;
      border-top: 1px solid var(--border-light);
    }
    .sidebar-user {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 12px;
      border-radius: var(--radius-sm);
      cursor: pointer;
      transition: background 0.12s;
    }
    .sidebar-user:hover { background: var(--bg); }
    .sidebar-user-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #2D3748;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 700;
      flex-shrink: 0;
    }
    .sidebar-user-info { flex: 1; min-width: 0; }
    .sidebar-user-name { font-size: 13px; font-weight: 600; color: var(--text); }
    .sidebar-user-action { font-size: 11px; color: var(--text-muted); }

    /* -- Main content -- */
    .main-content {
      margin-left: var(--sidebar-width);
      min-height: calc(100vh - var(--banner-height));
      padding-top: 0;
    }

    .content-area {
      max-width: 860px;
      margin: 0 auto;
      padding: 32px 32px 80px;
    }

    /* -- Screens -- */
    .screen { display: none; }
    .screen.active { display: block; }

    /* -- Content tabs (home page) -- */
    .content-tabs {
      display: flex;
      gap: 0;
      border-bottom: 1px solid var(--border);
      margin-bottom: 28px;
    }
    .content-tab {
      padding: 10px 20px;
      font-size: 14px;
      font-weight: 600;
      color: var(--text-muted);
      border: none;
      background: none;
      cursor: pointer;
      border-bottom: 2px solid transparent;
      font-family: var(--font-body);
      transition: color 0.15s;
    }
    .content-tab:hover { color: var(--text); }
    .content-tab.active {
      color: var(--primary);
      border-bottom-color: var(--primary);
    }

    .tab-panel { display: none; }
    .tab-panel.active { display: block; }

    /* -- Page header -- */
    .page-header { margin-bottom: 28px; }
    .page-header h1 {
      font-family: var(--font-body);
      font-size: 26px;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-bottom: 4px;
    }
    .page-header .subtitle {
      color: var(--text-muted);
      font-size: 14px;
      margin: 0;
    }
    .page-header-row {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    /* -- Form card -- */
    .form-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-sm);
      padding: 28px;
    }

    .form-group {
      margin-bottom: 20px;
    }
    .form-group:last-child {
      margin-bottom: 0;
    }
    .form-label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 6px;
    }
    .form-label .required {
      color: var(--error);
      margin-left: 2px;
    }
    .form-hint {
      display: block;
      font-size: 12px;
      color: var(--text-muted);
      margin-bottom: 6px;
    }
    .form-input {
      width: 100%;
      padding: 10px 14px;
      font-size: 15px;
      font-family: var(--font-body);
      color: var(--text);
      background: var(--bg);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .form-input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 2px rgba(94,129,172,0.15);
      background: var(--card);
    }
    textarea.form-input {
      resize: vertical;
      min-height: 80px;
    }

    /* -- Sector pills -- */
    .sector-pills {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .sector-pill {
      padding: 7px 16px;
      font-size: 13px;
      font-weight: 500;
      font-family: var(--font-body);
      color: var(--text-muted);
      background: var(--card);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-pill);
      cursor: pointer;
      transition: all 0.15s;
    }
    .sector-pill:hover {
      border-color: var(--primary);
      color: var(--primary);
    }
    .sector-pill.active {
      background: var(--primary-tint);
      border-color: var(--primary);
      color: var(--primary);
      font-weight: 600;
    }

    /* -- Form actions -- */
    .form-actions {
      display: flex;
      gap: 10px;
      margin-top: 24px;
      flex-wrap: wrap;
    }

    /* -- Breadcrumb -- */
    .breadcrumb {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 20px;
    }
    .breadcrumb a {
      color: var(--primary);
      text-decoration: none;
      font-weight: 500;
      cursor: pointer;
    }
    .breadcrumb a:hover { text-decoration: underline; }
    .breadcrumb svg {
      width: 14px;
      height: 14px;
      color: var(--border);
    }

    /* -- Badges -- */
    .badge {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      padding: 3px 10px;
      border-radius: 20px;
      white-space: nowrap;
    }
    .badge--brief { background: #EBF0FF; color: #0043FF; }
    .badge--contacts { background: #E6F4EC; color: #13612E; }
    .badge--list { background: #EDF2F7; color: #4A5568; font-weight: 400; text-transform: none; letter-spacing: 0; }

    .confidence {
      display: inline-block;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      padding: 3px 10px;
      border-radius: 4px;
      margin-left: 6px;
      vertical-align: middle;
    }
    .confidence--strong { background: var(--success-bg); color: var(--success); }
    .confidence--moderate { background: var(--moderate-bg); color: var(--moderate-text); }
    .confidence--speculative { background: var(--border-light); color: var(--text-muted); }

    .timestamp {
      font-size: 12px;
      color: var(--text-muted);
    }

    /* -- Buttons -- */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 15px;
      font-weight: 600;
      font-family: var(--font-body);
      border: none;
      border-radius: var(--radius-sm);
      cursor: pointer;
      padding: 11px 24px;
      transition: background 0.15s, box-shadow 0.15s;
    }
    .btn:hover { box-shadow: var(--shadow-sm); }
    .btn:active { box-shadow: none; }
    .btn:disabled { opacity: 0.5; cursor: not-allowed; }
    .btn-primary { background: var(--primary); color: white; }
    .btn-primary:hover { background: var(--primary-hover); }
    .btn-outline {
      background: transparent;
      color: var(--text);
      border: 1.5px solid var(--border);
    }
    .btn-outline:hover { border-color: var(--primary); color: var(--primary); }
    .btn-cost { display: block; font-size: 11px; font-weight: 400; opacity: 0.7; margin-top: 2px; }
    .btn-ghost {
      background: transparent;
      color: var(--text-muted);
      padding: 8px 14px;
      font-size: 13px;
    }
    .btn-ghost:hover { color: var(--text); background: var(--bg); }
    .btn-sm { padding: 8px 16px; font-size: 14px; }
    .btn-full { width: 100%; justify-content: center; }

    /* -- Company list cards -- */
    .company-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .company-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 20px 24px;
      margin-bottom: 12px;
      cursor: pointer;
      transition: box-shadow 0.15s, border-color 0.15s;
      box-shadow: var(--shadow-sm);
    }
    .company-card:hover {
      box-shadow: var(--shadow-md);
      border-color: #CBD5E0;
    }
    .company-card--no-data {
      cursor: default;
    }
    .company-card--no-data:hover {
      box-shadow: var(--shadow-sm);
      border-color: var(--border);
    }
    .company-card-top {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 6px;
    }
    .company-card-name {
      font-size: 16px;
      font-weight: 700;
      letter-spacing: -0.01em;
    }
    .company-card-excerpt {
      font-size: 13px;
      color: var(--text-muted);
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .company-card-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 8px;
      font-size: 12px;
      color: var(--text-muted);
    }
    .meta-sep { color: var(--border); }
    .company-card-actions {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 12px;
    }
    .from-list-tag {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      color: var(--text-muted);
      background: var(--border-light);
      padding: 3px 10px;
      border-radius: 4px;
    }

    /* -- Section cards (detail view) -- */
    .section-cards {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .section-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-sm);
      padding: 28px;
    }
    .section-card--highlight {
      border: 1.5px solid var(--primary);
      box-shadow: var(--shadow-md), 0 0 0 1px rgba(0,67,255,0.08);
      background: linear-gradient(to bottom, #F7F9FF 0%, #FFFFFF 80px);
    }
    .section-card h2 {
      font-family: var(--font-body);
      font-size: 20px;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-bottom: 14px;
    }
    .section-body {
      font-size: 14px;
      line-height: 1.7;
    }
    .section-body p { margin-bottom: 10px; }
    .section-body ul { padding-left: 18px; margin-bottom: 10px; }
    .section-body li { margin-bottom: 8px; }
    .section-body li strong:first-child { font-weight: 700; }
    .section-body a {
      color: var(--primary);
      text-decoration: underline;
      text-decoration-color: rgba(0,67,255,0.3);
      text-underline-offset: 2px;
    }
    .section-body a:hover { text-decoration-color: var(--primary); }
    .data-val { font-family: var(--font-mono); font-size: 13px; }

    /* -- Data grid (profile) -- */
    .data-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px 24px;
    }
    .data-item label {
      display: block;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-muted);
      margin-bottom: 2px;
    }
    .data-item span {
      font-size: 14px;
    }
    .data-item--full {
      grid-column: 1 / -1;
    }

    /* -- Section divider -- */
    .section-divider {
      margin: 32px 0;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .section-divider::before,
    .section-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }
    .section-divider span {
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-muted);
      white-space: nowrap;
    }

    /* -- Contacts grid -- */
    .contacts-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }
    .contacts-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }
    .contacts-header h2 {
      font-family: var(--font-body);
      font-size: 20px;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin: 0;
    }
    .contact-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 20px;
      display: flex;
      gap: 14px;
      transition: box-shadow 0.2s;
      box-shadow: var(--shadow-sm);
    }
    .contact-card:hover { box-shadow: var(--shadow-md); }
    .contact-avatar {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: #2D3748;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 700;
      flex-shrink: 0;
    }
    .contact-info { flex: 1; min-width: 0; }
    .contact-name { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
    .contact-title { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
    .contact-relevance {
      font-size: 12px;
      color: var(--text-muted);
      background: var(--border-light);
      padding: 4px 8px;
      border-radius: 4px;
      margin-bottom: 8px;
      display: inline-block;
    }
    .contact-actions { display: flex; gap: 6px; flex-wrap: wrap; }
    .contact-action {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 12px;
      font-weight: 500;
      font-family: var(--font-body);
      padding: 4px 10px;
      border-radius: 4px;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text-muted);
      cursor: pointer;
      text-decoration: none;
      transition: all 0.15s;
    }
    .contact-action:hover { border-color: var(--primary); color: var(--primary); }
    .contact-action--email { background: var(--success-bg); border-color: transparent; color: var(--success); }
    .contact-action--not-found {
      border-style: dashed;
      border-color: var(--border);
      color: var(--text-muted);
      opacity: 0.7;
    }

    /* -- Follow-up -- */
    .followup-section {
      margin-top: 32px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-sm);
      padding: 20px 24px;
    }
    .followup-section h3 {
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 10px;
    }
    .followup-form {
      display: flex;
      gap: 8px;
    }
    .followup-form input {
      flex: 1;
      padding: 12px 16px;
      font-size: 15px;
      font-family: var(--font-body);
      color: var(--text);
      background: var(--bg);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .followup-form input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 2px rgba(94,129,172,0.15);
    }

    /* -- Token usage (dev only) -- */
    .token-toggle {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      cursor: default;
      color: var(--text-muted);
    }
    .token-toggle svg { opacity: 0.5; }
    .token-tooltip {
      display: inline;
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--text-muted);
    }

    /* -- Action bar -- */
    .action-bar {
      margin-top: 24px;
      padding-top: 24px;
      border-top: 1px solid var(--border-light);
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    /* -- Lists screen -- */
    .list-cards {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .list-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 20px 24px;
      margin-bottom: 12px;
      cursor: pointer;
      transition: box-shadow 0.15s, border-color 0.15s;
      box-shadow: var(--shadow-sm);
    }
    .list-card:hover {
      box-shadow: var(--shadow-md);
      border-color: #CBD5E0;
    }
    .list-card-name {
      font-size: 16px;
      font-weight: 700;
      letter-spacing: -0.01em;
      margin-bottom: 4px;
    }
    .list-card-meta {
      font-size: 13px;
      color: var(--text-muted);
    }

    /* -- List generator (in home tab) -- */
    .list-generator-helper {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 12px;
    }

    /* -- Screen top bar -- */
    .screen-top-bar {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      margin-bottom: 20px;
    }

    /* -- Contacts table -- */
    .contacts-table-wrap {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
    }
    .contacts-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 14px;
    }
    .contacts-table thead th {
      text-align: left;
      padding: 12px 16px;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-muted);
      border-bottom: 1px solid var(--border);
      background: var(--border-light);
    }
    .contacts-table tbody tr {
      border-bottom: 1px solid var(--border-light);
    }
    .contacts-table tbody tr:last-child {
      border-bottom: none;
    }
    .contacts-table tbody tr:nth-child(even) {
      background: #FAFBFC;
    }
    .contacts-table td {
      padding: 12px 16px;
      vertical-align: middle;
    }
    .contacts-table .name-cell {
      font-weight: 600;
    }
    .contacts-table .email-cell {
      font-family: var(--font-mono);
      font-size: 12px;
    }
    .contacts-table .email-link {
      color: var(--success);
      cursor: pointer;
      text-decoration: none;
    }
    .contacts-table .email-link:hover {
      text-decoration: underline;
    }
    .contacts-table .email-missing {
      color: var(--text-muted);
    }
    .contacts-table .company-link {
      color: var(--primary);
      cursor: pointer;
      text-decoration: none;
      font-weight: 500;
    }
    .contacts-table .company-link:hover {
      text-decoration: underline;
    }
    .page-search {
      position: relative;
      margin-bottom: 20px;
    }
    .page-search input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 2px rgba(94,129,172,0.15);
    }

    .contacts-filter {
      margin-bottom: 16px;
      position: relative;
    }
    .contacts-filter svg {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      width: 16px;
      height: 16px;
      color: var(--text-muted);
      pointer-events: none;
    }
    .contacts-filter input {
      width: 100%;
      max-width: 320px;
      padding: 10px 14px 10px 38px;
      font-size: 14px;
      font-family: var(--font-body);
      color: var(--text);
      background: var(--card);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .contacts-filter input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 2px rgba(94,129,172,0.15);
    }

    /* -- List detail -- */
    .list-detail-meta {
      font-size: 14px;
      color: var(--text-muted);
      margin-bottom: 24px;
    }
    .list-company-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 18px 24px;
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 10px;
      box-shadow: 0 1px 2px rgba(0,0,0,0.04);
      transition: box-shadow 0.15s;
    }
    .list-company-card:hover {
      box-shadow: var(--shadow-sm);
    }
    .list-company-info { flex: 1; min-width: 0; }
    .list-company-name {
      font-weight: 700;
      font-size: 15px;
      margin-bottom: 2px;
    }
    .list-company-desc {
      font-size: 13px;
      color: var(--text-muted);
    }
    .list-company-location {
      font-size: 13px;
      color: var(--text-muted);
      white-space: nowrap;
      flex-shrink: 0;
      min-width: 100px;
    }
    .list-company-status {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      font-weight: 500;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
    }
    .status-dot--done {
      background: var(--success);
    }
    .status-dot--pending {
      border: 1.5px solid var(--text-muted);
      background: transparent;
    }
    .list-company-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }
    .view-brief-link {
      font-size: 13px;
      color: var(--primary);
      text-decoration: none;
      font-weight: 500;
      cursor: pointer;
    }
    .view-brief-link:hover { text-decoration: underline; }

    /* -- Responsive -- */
    /* Dark mode toggle button */
    .dark-mode-toggle {
      margin-left: auto;
      background: none;
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 6px;
      cursor: pointer;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      transition: color 0.15s;
    }
    .dark-mode-toggle:hover { color: var(--text); }

    /* Dark mode overrides */
    body.dark-mode {
      --bg: #1e2228;
      --card: #2c333a;
      --text: #e5e9f0;
      --text-muted: #8899a6;
      --border: #4c566a;
      --border-light: #343d46;
      --primary: #5e81ac;
      --primary-hover: #81a1c1;
    }
    body.dark-mode .sidebar { background: #242930; box-shadow: 1px 0 0 #343d46; }
    body.dark-mode .mockup-banner { background: #1a1e24; }
    body.dark-mode .sidebar-user-avatar { background: #5e81ac; }
    body.dark-mode .nav-item:hover { background: rgba(255,255,255,0.05); }
    body.dark-mode .nav-item.active { background: rgba(94,129,172,0.15); color: #81a1c1; }
    body.dark-mode .nav-badge { background: #4c566a; color: #9faab5; }
    body.dark-mode .form-input, body.dark-mode .form-textarea { background: #1e2228; color: #e5e9f0; border-color: #4c566a; }
    body.dark-mode .page-search input { background: #1e2228; color: #e5e9f0; border-color: #4c566a; }
    body.dark-mode .btn-outline { color: #d0d6dc; border-color: #4c566a; }
    body.dark-mode .btn-outline:hover { border-color: #5e81ac; color: #5e81ac; }
    body.dark-mode .contacts-table-wrap { background: #2c333a; border-color: #4c566a; }
    body.dark-mode .contacts-table { background: #2c333a; }
    body.dark-mode .contacts-table th { background: #343d46; color: #9faab5; border-color: #4c566a; }
    body.dark-mode .contacts-table td { border-color: #343d46; color: #d0d6dc; background: #2c333a; }
    body.dark-mode .contacts-table tr:nth-child(even) td { background: #343d46; }
    body.dark-mode .contacts-table .name-cell { color: #ffffff; }
    body.dark-mode .contacts-table .email-link { color: #a3be8c; }
    body.dark-mode .contacts-table .email-missing { color: #555577; }
    body.dark-mode .contacts-table .company-link { color: #81a1c1; }
    body.dark-mode .timestamp { color: #7777aa; }
    body.dark-mode .company-card, body.dark-mode .list-card, body.dark-mode .list-company-card { background: #2c333a; border-color: #4c566a; }
    body.dark-mode .company-card:hover, body.dark-mode .list-card:hover { border-color: #5e81ac; }
    body.dark-mode .company-card-name, body.dark-mode .list-card-name, body.dark-mode .list-company-name { color: #ffffff; }
    body.dark-mode .badge--brief { background: #2e3440; color: #81a1c1; }
    body.dark-mode .badge--contacts { background: #2e3a30; color: #a3be8c; }
    body.dark-mode .from-list-tag { background: #343d46; color: #8899a6; }
    body.dark-mode .section-card { background: #2c333a; border-color: #4c566a; }
    body.dark-mode .section-card--highlight { background: #2c333a; border-color: #5e81ac; box-shadow: none; background-image: none; }
    body.dark-mode .section-card h2 { color: #ffffff; }
    body.dark-mode .section-body li { color: #d0d6dc; }
    body.dark-mode .section-body strong { color: #ffffff; }
    body.dark-mode .confidence--strong { background: #2e3a30; color: #a3be8c; }
    body.dark-mode .confidence--moderate { background: #3a3428; color: #ebcb8b; }
    body.dark-mode .confidence--speculative { background: #343d46; color: #8899a6; }
    body.dark-mode .contact-card { background: #2c333a; border-color: #4c566a; }
    body.dark-mode .contact-name { color: #ffffff; }
    body.dark-mode .contact-relevance { background: #343d46; color: #b8c4ce; }
    body.dark-mode .contact-action--email { background: #2e3a30; color: #a3be8c; }
    body.dark-mode .followup-section { background: #2c333a; border-color: #4c566a; }
    body.dark-mode .followup-section input { background: #1e2228; color: #e5e9f0; border-color: #4c566a; }
    body.dark-mode .form-card { background: #2c333a; border-color: #4c566a; }
    body.dark-mode .pill { color: #8899a6; border-color: #4c566a; }
    body.dark-mode .pill:hover { color: #d0d6dc; border-color: #5e81ac; }
    body.dark-mode .dark-mode-toggle { border-color: #4c566a; color: #8899a6; }
    body.dark-mode .icon-sun { display: none; }
    body.dark-mode .icon-moon { display: block !important; }
    body:not(.dark-mode) .icon-moon { display: none; }

    @media (max-width: 768px) {
      .sidebar {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 64px;
        border-right: none;
        border-top: 1px solid var(--border);
        flex-direction: row;
        overflow: visible;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
        z-index: 100;
      }
      .sidebar-header,
      .sidebar-footer,
      .nav-sep,
      .nav-spacer,
      .nav-group-label {
        display: none;
      }
      .sidebar-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        padding: 0 8px;
        width: 100%;
      }
      .nav-item {
        flex-direction: column;
        gap: 2px;
        padding: 8px;
        font-size: 10px;
        text-align: center;
        border-radius: 0;
      }
      .nav-item svg {
        width: 20px;
        height: 20px;
      }
      .nav-badge {
        position: absolute;
        top: 2px;
        right: 2px;
        min-width: 16px;
        height: 16px;
        font-size: 9px;
        padding: 0 4px;
      }
      .nav-item.active {
        box-shadow: inset 0 3px 0 var(--primary);
        background: transparent;
      }
      .nav-item.disabled {
        display: none;
      }
      .main-content {
        margin-left: 0;
        padding-bottom: 80px;
      }
      .content-area {
        padding: 24px 16px 80px;
      }
      .data-grid {
        grid-template-columns: 1fr;
      }
      .contacts-grid {
        grid-template-columns: 1fr;
      }
      .contacts-table-wrap {
        overflow-x: auto;
      }
      .list-company-card {
        flex-wrap: wrap;
      }
      .form-actions {
        flex-direction: column;
      }
      .form-actions .btn {
        width: 100%;
        justify-content: center;
      }
    }
/* --- Production-only styles (not in mockup) --- */

/* Login */
#screen-login { display: none; min-height: 100vh; align-items: center; justify-content: center; padding: 24px; }
#screen-login.active { display: flex; }
.login-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 40px 32px; max-width: 380px; width: 100%; text-align: center; }
.logo-mark { color: var(--accent); margin-bottom: 12px; }
.logo-text { font-family: var(--font-body); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); margin-bottom: 4px; }
.tagline { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.error-text { color: var(--error); font-size: 13px; margin-top: 10px; min-height: 20px; }

/* Shimmer loading */
.shimmer { background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; min-height: 48px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Active section highlight */
.section-card--active { border-top: 3px solid var(--primary); }

/* Follow-up cards */
.followup-card { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--text-muted); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 20px 24px; margin-top: 12px; }
.followup-card h3 { font-size: 14px; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; }

/* Cancel bar */
.cancel-bar { display: none; align-items: center; justify-content: space-between; padding: 10px 16px; margin-top: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; color: var(--text-muted); }
.cancel-status { display: flex; align-items: center; gap: 8px; }
.cancel-status::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }

/* Error + Cached banners */
.error-banner { display: none; background: #F7F8FA; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; margin-top: 16px; font-size: 13px; color: var(--text-muted); align-items: center; gap: 12px; }
.cached-banner { display: none; background: var(--primary-tint); border: 1px solid #B3CCFF; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; font-size: 13px; color: var(--primary); align-items: center; gap: 12px; }

/* Upgrade banner (quick -> full) */
.upgrade-banner { background: var(--primary-tint); border: 1px solid #B3CCFF; border-radius: var(--radius-sm); padding: 16px 20px; margin-top: 16px; font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 16px; }
.upgrade-banner p { margin: 0; flex: 1; }
body.dark-mode .upgrade-banner { background: #2e3440; border-color: #3a4a7c; color: #c0d0ff; }

/* Placeholder card */
.placeholder-card { background: var(--card); border: 2px dashed var(--border); border-radius: var(--radius-md); padding: 32px; text-align: center; }
.placeholder-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }

/* Section divider */
.section-divider { margin: 32px 0; display: flex; align-items: center; gap: 12px; }
.section-divider::before, .section-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.section-divider span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); white-space: nowrap; }

/* Contacts grid + cards */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contacts-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.contacts-header h2 { font-family: var(--font-body); font-size: 22px; font-weight: 700; color: var(--text); margin: 0; }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; display: flex; gap: 14px; box-shadow: var(--shadow-sm); }
.contact-card:hover { box-shadow: var(--shadow-md); }
.contact-avatar { width: 42px; height: 42px; border-radius: 50%; background: #2D3748; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.contact-info { flex: 1; min-width: 0; }
.contact-name { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.contact-title { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.contact-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.contact-action { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; font-family: var(--font-body); padding: 4px 10px; border-radius: 4px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; text-decoration: none; transition: all 0.15s; }
.contact-action:hover { border-color: var(--primary); color: var(--primary); }
.contact-action--email { background: var(--success-bg); border-color: transparent; color: var(--success); }
.contact-action--email:hover { background: #3e4a3e; }
.contact-relevance { font-size: 12px; color: var(--text); margin-top: 8px; padding: 6px 10px; background: var(--border-light); border-radius: 4px; line-height: 1.5; }

/* Confidence badges */
.confidence { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 10px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.confidence--strong { background: var(--success-bg); color: var(--success); }
.confidence--moderate { background: var(--moderate-bg); color: var(--moderate-text); }
.confidence--speculative { background: var(--border-light); color: var(--text-muted); }

/* Section body content */
.section-body { font-size: 14px; line-height: 1.7; }
.section-body ul { padding-left: 18px; margin-bottom: 10px; }
.section-body li { margin-bottom: 8px; }
.section-body li strong:first-child { font-weight: 700; }
.section-body a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(0,67,255,0.3); text-underline-offset: 2px; }
.section-body a:hover { text-decoration-color: var(--primary); }
.section-body p { margin-bottom: 10px; }

/* Dark mode: production additions */
body.dark-mode .login-card { background: #2c333a; border-color: #4c566a; }
body.dark-mode .login-card .logo-text { color: #e5e9f0; }
body.dark-mode .login-card input { background: #1e2228; color: #e5e9f0; border-color: #4c566a; }
body.dark-mode .shimmer { background: linear-gradient(90deg, #343d46 25%, #4c566a 50%, #343d46 75%); background-size: 200% 100%; }
body.dark-mode .section-card--active { border-top-color: #5e81ac; }
body.dark-mode .followup-card { background: #2c333a; border-color: #4c566a; border-left-color: #5e81ac; }
body.dark-mode .cancel-bar { background: #2c333a; border-color: #4c566a; }
body.dark-mode .error-banner { background: #2a1a1a; border-color: #5c3a3a; }
body.dark-mode .cached-banner { background: #2e3440; border-color: #3a4a7c; color: #81a1c1; }
body.dark-mode .placeholder-card { background: #2c333a; border-color: #4c566a; }
body.dark-mode .contact-card { background: #2c333a; border-color: #4c566a; }
body.dark-mode .contact-name { color: #fff; }
body.dark-mode .contact-relevance { background: #343d46; color: #b8c4ce; }
body.dark-mode .contact-action--email { background: #2e3a30; color: #a3be8c; }
body.dark-mode .confidence--strong { background: #2e3a30; color: #a3be8c; }
body.dark-mode .confidence--moderate { background: #3a3428; color: #ebcb8b; }
body.dark-mode .confidence--speculative { background: #343d46; color: #8899a6; }

/* ===== Help guide ===== */

/* Table of contents */
.guide-toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
  margin-bottom: 32px;
}
.guide-toc-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.guide-toc-list {
  padding-left: 20px;
  margin: 0;
  columns: 2;
  column-gap: 32px;
}
.guide-toc-list li {
  font-size: 14px;
  margin-bottom: 8px;
  break-inside: avoid;
}
.guide-toc-list a {
  color: var(--primary);
  text-decoration: none;
}
.guide-toc-list a:hover {
  text-decoration: underline;
}

/* Sections */
.guide-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px 28px 24px;
  margin-bottom: 16px;
}
.guide-section h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.guide-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 8px;
}
.guide-section p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 10px;
}

/* Steps */
.guide-steps {
  padding-left: 22px;
  margin: 12px 0;
}
.guide-steps li {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 6px;
  color: var(--text);
}

/* Unordered list */
.guide-list {
  padding-left: 22px;
  margin: 10px 0 14px;
}
.guide-list li {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 6px;
  color: var(--text);
}

/* Tables */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 14px 0;
}
.guide-table thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--border-light);
}
.guide-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
.guide-table tbody tr:last-child td {
  border-bottom: none;
}

/* Callout boxes */
.guide-callout {
  font-size: 13px;
  line-height: 1.6;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
}
.guide-callout strong {
  font-weight: 700;
}
.guide-callout--tip {
  background: var(--success-bg);
  border: 1px solid #B8E0CC;
  color: var(--success);
}
.guide-callout--note {
  background: var(--primary-tint);
  border: 1px solid #B3CCFF;
  color: #003ACC;
}
.guide-callout--important {
  background: var(--error-tint);
  border: 1px solid #F0C4BE;
  color: var(--error);
}

/* Tips grid */
.guide-tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.guide-tip-card {
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}
.guide-tip-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}
.guide-tip-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* Dark mode: guide */
body.dark-mode .guide-toc { background: #2c333a; border-color: #4c566a; }
body.dark-mode .guide-toc-list a { color: #81a1c1; }
body.dark-mode .guide-section { background: #2c333a; border-color: #4c566a; }
body.dark-mode .guide-section h2 { color: #fff; border-bottom-color: #4c566a; }
body.dark-mode .guide-section h3 { color: #e5e9f0; }
body.dark-mode .guide-table thead th { background: #343d46; color: #9faab5; border-color: #4c566a; }
body.dark-mode .guide-table tbody td { border-color: #343d46; color: #d0d6dc; }
body.dark-mode .guide-callout--tip { background: #2e3a30; border-color: #2a5a3a; color: #a3be8c; }
body.dark-mode .guide-callout--note { background: #2e3440; border-color: #2a3a6c; color: #81a1c1; }
body.dark-mode .guide-callout--important { background: #3a1a1a; border-color: #5c2a2a; color: #ff8877; }
body.dark-mode .guide-tip-card { background: #1e2228; border-color: #343d46; }
body.dark-mode .guide-tip-card h3 { color: #e5e9f0; }
body.dark-mode .guide-tip-card p { color: #8899a6; }

@media (max-width: 768px) {
  .guide-toc-list { columns: 1; }
  .guide-tips-grid { grid-template-columns: 1fr; }
  .guide-section { padding: 20px 18px; }
  .guide-toc { padding: 18px 20px; }
}

/* Button spinner */
.btn-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: btn-spin 0.6s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
body.dark-mode .btn-spinner { border-color: rgba(255,255,255,0.2); border-top-color: #fff; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }
.content-area { scroll-behavior: smooth; }

/* Filter pills */
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-pill {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text-muted);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-pill:hover { border-color: var(--text-muted); color: var(--text); }
.filter-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Dark mode filter pills */
body.dark-mode .filter-pill { background: #343d46; color: #8899a6; border-color: #4c566a; }
body.dark-mode .filter-pill:hover { color: #d0d6dc; border-color: #5e81ac; }
body.dark-mode .filter-pill.active { background: #5e81ac; color: #fff; border-color: #5e81ac; }

/* ===== Usage panel ===== */
.usage-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 500px;
  max-width: 100vw;
  z-index: 200;
  background: #1C2B33;
  color: #F5F2ED;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.25);
  overflow-y: auto;
}
.usage-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.usage-panel-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #F5F2ED;
}
.usage-panel-header .btn-text {
  color: #F5F2ED;
  opacity: 0.7;
  font-size: 13px;
}
.usage-panel-header .btn-text:hover { opacity: 1; }
.usage-filters {
  display: flex;
  gap: 6px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.usage-filters .filter-pill {
  background: rgba(255,255,255,0.08);
  color: rgba(245,242,237,0.7);
  border-color: rgba(255,255,255,0.15);
  font-size: 12px;
  padding: 5px 12px;
}
.usage-filters .filter-pill:hover {
  color: #F5F2ED;
  border-color: rgba(255,255,255,0.3);
}
.usage-filters .filter-pill.active {
  background: #C47B2B;
  color: #fff;
  border-color: #C47B2B;
}

/* Summary stat cards */
.usage-summary {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
}
.usage-stat-card {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.usage-stat-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: #F5F2ED;
  margin-bottom: 4px;
}
.usage-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(245,242,237,0.5);
}

/* Type breakdown */
.usage-by-type {
  padding: 0 24px 16px;
}
.usage-type-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.usage-type-label {
  flex: 1;
  font-weight: 500;
  color: #F5F2ED;
}
.usage-type-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(245,242,237,0.6);
  min-width: 60px;
  text-align: right;
}
.usage-type-tokens {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(245,242,237,0.6);
  min-width: 60px;
  text-align: right;
}
.usage-type-cost {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #C47B2B;
  min-width: 60px;
  text-align: right;
}

/* Recent activity log */
.usage-log {
  padding: 0 24px 24px;
}
.usage-log-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(245,242,237,0.5);
  padding: 12px 0 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.usage-log-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.usage-log-type {
  font-weight: 600;
  color: rgba(245,242,237,0.7);
  min-width: 90px;
}
.usage-log-name {
  flex: 1;
  color: #F5F2ED;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.usage-log-tokens {
  font-family: var(--font-mono);
  color: rgba(245,242,237,0.5);
  min-width: 50px;
  text-align: right;
}
.usage-log-time {
  color: rgba(245,242,237,0.4);
  min-width: 80px;
  text-align: right;
  font-size: 11px;
}

@media (max-width: 768px) {
  .usage-panel { width: 100vw; }
  .usage-summary { flex-direction: column; }
}

/* -- Procurement card -- */
.procurement-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
  margin-top: 20px;
}
.procurement-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.procurement-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.procurement-desc { font-size: 13px; color: var(--text-muted); }
.procurement-contracts { margin-top: 12px; }
.procurement-contract {
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.procurement-contract-provider { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.procurement-contract-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.procurement-contract-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.procurement-contract-meta span { white-space: nowrap; }
.procurement-source { font-size: 12px; color: var(--primary); text-decoration: none; margin-top: 4px; display: inline-block; }
.procurement-links { margin-top: 12px; font-size: 12px; }
.procurement-links a { color: var(--primary); text-decoration: none; margin-left: 8px; }
.procurement-links a:hover { text-decoration: underline; }

/* -- Search links card -- */
.search-links-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 20px;
}
.search-links-card h3 { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.search-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.search-link {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.15s;
}
.search-link:hover { border-color: var(--primary); }
.search-link-name { font-size: 13px; font-weight: 600; color: var(--text); }
.search-link-desc { font-size: 11px; color: var(--text-muted); }

/* Dark mode: procurement and search links */
body.dark-mode .procurement-card { background: #2c333a; border-color: #4c566a; }
body.dark-mode .procurement-contract { border-color: #4c566a; }
body.dark-mode .search-links-card { background: #2c333a; border-color: #4c566a; }
body.dark-mode .search-link { border-color: #4c566a; }
body.dark-mode .search-link:hover { border-color: #5e81ac; }
body.dark-mode .search-link-name { color: #e5e9f0; }

@media (max-width: 640px) {
  .search-links-grid { grid-template-columns: 1fr; }
}

/* Employee count in list detail */
.list-company-size {
  display: inline-block;
  margin-left: 10px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
body.dark-mode .list-company-size { color: #8899a6; }

/* Usage panel close button visibility */
.usage-panel .btn-text { color: #e5e9f0; opacity: 0.8; }
.usage-panel .btn-text:hover { opacity: 1; color: #ffffff; }

/* Force usage panel button visibility */
.usage-panel-header .btn,
.usage-panel .btn-text,
#usage-panel .btn-text {
  background: rgba(255,255,255,0.1) !important;
  color: #e5e9f0 !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 6px;
}
.usage-panel-header .btn:hover,
.usage-panel .btn-text:hover,
#usage-panel .btn-text:hover {
  background: rgba(255,255,255,0.2) !important;
  color: #ffffff !important;
}
