/* ---- Directory / Table ---- */
  .directory-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
  .search-box { position: relative; flex: 1; min-width: 220px; max-width: 340px; }
  .search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-muted); stroke-width: 1.8; }
  .search-box input { width: 100%; padding: 10px 12px 10px 36px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-panel); font-size: 13.5px; }
  .search-box input:focus { outline: none; border-color: var(--ink-navy); box-shadow: 0 0 0 3px var(--gold-soft); }

  .chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .chip {
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.5px; text-transform: uppercase;
    padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper-panel);
    cursor: pointer; color: var(--ink-muted); transition: all 0.15s ease;
  }
  .chip:hover { border-color: var(--ink-navy); color: var(--ink-navy); }
  .chip.active { background: var(--ink-navy); color: #FBFAF5; border-color: var(--ink-navy); }

  .table-scroll { overflow-x: auto; }
  table { width: 100%; border-collapse: collapse; min-width: 760px; }
  thead th {
    text-align: left; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--ink-muted); padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--paper-alt);
  }
  tbody td { padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
  tbody tr:last-child td { border-bottom: none; }
  tbody tr:hover { background: rgba(200,155,60,0.05); }
  tbody tr.row-new { animation: highlightRow 1.8s ease; }
  @keyframes highlightRow { 0% { background: var(--gold-soft); } 100% { background: transparent; } }

  .client-name { font-weight: 600; color: var(--ink-navy); }
  .client-id { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
  .muted-cell { color: var(--ink-muted); font-size: 12.5px; }
  .row-actions { display: flex; gap: 6px; }
  .icon-btn {
    width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper-panel);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-muted);
    transition: all 0.15s ease;
  }
  .icon-btn svg { width: 14px; height: 14px; stroke-width: 1.8; }
  .icon-btn:hover { border-color: var(--ink-navy); color: var(--ink-navy); }
  .icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-bg); }

  .empty-state { text-align: center; padding: 60px 30px; }
  .empty-state svg { width: 44px; height: 44px; color: var(--line); margin: 0 auto 16px; stroke-width: 1.3; }
  .empty-state h3 { font-family: var(--font-display); font-size: 18px; color: var(--ink-navy); margin-bottom: 6px; }
  .empty-state p { color: var(--ink-muted); font-size: 13.5px; margin-bottom: 18px; }

  /* ---- Mini list (dashboard recent) ---- */
  .mini-list { }
  .mini-row { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
  .mini-row:last-child { border-bottom: none; }
  .mini-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink-navy-soft); color: var(--ink-navy); font-family: var(--font-display); font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .mini-info { flex: 1; min-width: 0; }
  .mini-info .n { font-weight: 600; font-size: 13.5px; color: var(--ink-text); }
  .mini-info .r { font-size: 12px; color: var(--ink-muted); }
  .mini-date { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); white-space: nowrap; }

  /* ---- Modal ---- */
  .modal-overlay {
    position: fixed; inset: 0; background: rgba(16,48,43,0.45); backdrop-filter: blur(2px);
    display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
  }
  .modal-overlay.open { display: flex; }
  .modal-card {
    background: var(--paper-panel); border-radius: 10px; max-width: 480px; width: 100%;
    padding: 30px 30px 26px; box-shadow: 0 20px 60px rgba(16,48,43,0.3); position: relative;
    animation: modalIn 0.2s ease;
  }
  @keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
  .modal-close { position: absolute; top: 18px; right: 18px; }
  .modal-card .stamp { position: absolute; top: 26px; right: 60px; }
  .modal-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink-navy); margin-bottom: 2px; padding-right: 90px; }
  .modal-id { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); margin-bottom: 20px; }
  .modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; border-top: 1px dashed var(--line); padding-top: 18px; }
  .modal-grid .mg-full { grid-column: 1 / -1; }
  .modal-grid dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 3px; }
  .modal-grid dd { font-size: 13.5px; color: var(--ink-text); }

  /* ---- Toast ---- */
  .toast {
    position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(12px);
    background: var(--ink-navy); color: #FBFAF5; padding: 13px 22px; border-radius: 7px;
    font-size: 13.5px; font-weight: 500; box-shadow: 0 10px 30px rgba(16,48,43,0.35);
    display: flex; align-items: center; gap: 10px; z-index: 200;
    opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
  .toast svg { width: 16px; height: 16px; color: var(--gold); stroke-width: 2; }
