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

/* ── Veltox Design Tokens ── */
:root {
  --bg:         #16161e;
  --card:       #1c1c26;
  --popover:    #1e1e28;
  --secondary:  #222230;
  --muted:      #252535;
  --border:     #32324a;
  --fg:         #e8e8ee;
  --fg-muted:   #7a7a9a;
  --fg-sec:     #b8b8c8;
  --primary:    #5ab98c;
  --primary-fg: #0e0e14;
  --destructive:#d95c3a;
  --warning:    #c9a83a;
  --radius:     0.75rem;
}

html, body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  height: 100%;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* ── PWA Shell ── */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  height: 100vh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* ── Header ── */
.app-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 56px;
  border-bottom: 1px solid rgba(50,50,74,0.6);
  background: var(--card);
  z-index: 10;
}
.header-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.01em;
}
.header-actions { display: flex; gap: 4px; align-items: center; }

/* ── Scrollable Content ── */
.app-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.page-content {
  padding: 16px 16px 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Bottom Nav ── */
.bottom-nav {
  flex-shrink: 0;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 480px;
  margin: 0 auto;
  height: 64px;
  background: var(--card);
  border-top: 1px solid rgba(50,50,74,0.6);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 50;
}
.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 100%;
  cursor: pointer;
  position: relative;
  background: none;
  border: none;
  color: var(--fg-muted);
  font-family: inherit;
  text-decoration: none;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.nav-tab.active { color: var(--fg); }
.nav-tab.active::before {
  content: '';
  position: absolute;
  top: 8px;
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.nav-tab svg { width: 20px; height: 20px; }
.nav-tab.active svg { color: var(--primary); }
.nav-tab span {
  font-size: 11px;
  font-weight: 500;
}
.nav-tab.active span { color: var(--primary); }

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid rgba(50,50,74,0.6);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-content { padding: 16px; }
.card-content-sm { padding: 12px 16px; }

/* ── Search bar ── */
.search-bar {
  position: relative;
}
.search-bar svg {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--fg-muted);
  pointer-events: none;
}
.search-bar input {
  width: 100%;
  padding: 11px 36px 11px 36px;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.search-bar input:focus { border-color: var(--primary); }
.search-bar input::placeholder { color: var(--fg-muted); }
.search-clear {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--fg-muted); cursor: pointer;
  padding: 4px; font-size: 13px;
  display: none;
}
.search-clear.visible { display: block; }

/* ── Filter chips ── */
.filter-chips {
  display: flex; gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: 6px 14px;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--fg-sec);
  font-size: 12px; font-weight: 500;
  font-family: inherit; cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.chip.active {
  background: rgba(90,185,140,0.15);
  border-color: rgba(90,185,140,0.4);
  color: var(--primary);
}

/* ── Account card ── */
.account-card {
  background: var(--card);
  border: 1px solid rgba(50,50,74,0.6);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.account-card:active { background: var(--muted); }

.acc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.acc-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
  flex: 1;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(90,185,140,0.12);
  border: 1px solid rgba(90,185,140,0.25);
  border-radius: 20px;
  color: var(--primary);
  font-size: 11px; font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.acc-meta {
  display: flex; flex-direction: column; gap: 5px;
}
.acc-meta-row {
  display: flex; align-items: center; gap: 8px;
}
.meta-label {
  font-size: 11px; font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  min-width: 66px;
  flex-shrink: 0;
}
.meta-value {
  font-size: 13px; color: var(--fg-sec);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 200px;
}
.acc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(50,50,74,0.5);
}
.acc-attach {
  font-size: 11px; color: var(--fg-muted);
  display: flex; align-items: center; gap: 4px;
}
.acc-actions {
  display: flex; gap: 6px;
}
.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 14px;
  -webkit-tap-highlight-color: transparent;
  color: var(--fg-muted);
}
.icon-btn:active { background: var(--muted); }
.icon-btn.danger:active { background: rgba(217,92,58,0.2); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; border: none; border-radius: var(--radius);
  transition: opacity 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:active { opacity: 0.8; transform: scale(0.97); }
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 11px 18px;
}
.btn-primary.full { width: 100%; padding: 14px; border-radius: var(--radius); }
.btn-secondary {
  background: var(--secondary);
  color: var(--fg-sec);
  border: 1px solid var(--border);
  padding: 11px 16px;
}
.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  padding: 8px 14px;
  font-size: 13px;
}
.btn-icon-header {
  width: 34px; height: 34px;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-muted);
  font-size: 15px;
  -webkit-tap-highlight-color: transparent;
}

/* ── FAB ── */
.fab {
  position: fixed;
  bottom: 80px; right: 20px;
  width: 52px; height: 52px;
  background: var(--primary);
  border: none; border-radius: 50%;
  color: var(--primary-fg);
  font-size: 24px; font-weight: 400;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(90,185,140,0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 40;
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.fab:active { transform: scale(0.93); box-shadow: 0 2px 10px rgba(90,185,140,0.3); }

/* ── Empty state ── */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 12px;
  color: var(--fg-muted);
}
.empty-icon { font-size: 48px; line-height: 1; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--fg); }
.empty-state p { font-size: 13px; line-height: 1.6; }
.empty-state .link { color: var(--primary); cursor: pointer; }

/* ── Spinner ── */
.spinner-wrap { display: flex; justify-content: center; padding: 40px 0; }
.spinner {
  width: 28px; height: 28px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Sheet / Bottom Modal ── */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  background: var(--card);
  border: 1px solid rgba(50,50,74,0.6);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 92dvh;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -12px 40px rgba(0,0,0,0.5);
  animation: slideUp 0.22s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.sheet-handle {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 12px 0 6px;
}
.sheet-handle::after {
  content: '';
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px;
}
.sheet-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 20px 16px;
}
.sheet-title { font-size: 17px; font-weight: 700; color: var(--fg); }
.sheet-close {
  width: 32px; height: 32px;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--fg-muted);
  -webkit-tap-highlight-color: transparent;
}
.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 20px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.sheet-footer {
  flex-shrink: 0;
  padding: 12px 20px 20px;
  border-top: 1px solid rgba(50,50,74,0.6);
  display: flex; gap: 10px;
}

/* ── Form ── */
.form-group {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 14px;
}
.form-label {
  font-size: 11px; font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--fg-muted); }
.form-textarea { resize: none; min-height: 80px; }
.pw-row { position: relative; }
.pw-row .form-input { padding-right: 42px; }
.pw-eye {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  cursor: pointer; font-size: 16px;
  color: var(--fg-muted);
  -webkit-tap-highlight-color: transparent;
  padding: 4px;
}

/* ── View detail rows ── */
.detail-grid {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 20px;
}
.detail-row {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
}
.detail-label {
  font-size: 10px; font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.detail-value-row {
  display: flex; align-items: center; gap: 8px;
}
.detail-value {
  flex: 1;
  font-size: 14px; color: var(--fg);
  word-break: break-all;
}
.detail-value.muted { color: var(--fg-muted); font-style: italic; font-size: 13px; }
.detail-value.mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 13px; }
.detail-value.notes { white-space: pre-wrap; line-height: 1.6; font-size: 13px; }

.copy-btn {
  flex-shrink: 0;
  width: 30px; height: 30px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--fg-muted);
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.copy-btn:active { background: rgba(90,185,140,0.15); color: var(--primary); }

.reveal-chip {
  flex-shrink: 0;
  background: rgba(90,185,140,0.1);
  border: 1px solid rgba(90,185,140,0.25);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--primary);
  font-size: 11px; font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.reveal-chip:active { background: rgba(90,185,140,0.2); }

/* ── Section label ── */
.section-label {
  font-size: 11px; font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

/* ── Gallery ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery-item .img-lbl {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.65);
  font-size: 10px; color: #fff;
  padding: 3px 6px;
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gallery-item .del-img-btn {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  background: rgba(0,0,0,0.6);
  border: none; border-radius: 50%;
  color: #fff; font-size: 11px;
  cursor: pointer;
  display: none; align-items: center; justify-content: center;
}
.gallery-item:hover .del-img-btn { display: flex; }
.pdf-thumb {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
}
.pdf-thumb span:first-child { font-size: 28px; }
.pdf-thumb span:last-child { font-size: 10px; color: var(--fg-muted); }

/* ── Upload zone ── */
.upload-zone {
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  color: var(--fg-muted);
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.upload-zone:active {
  border-color: var(--primary);
  background: rgba(90,185,140,0.05);
  color: var(--fg);
}

/* ── PIN sheet ── */
.pin-hint { font-size: 13px; color: var(--fg-muted); margin-bottom: 20px; text-align: center; }
.pin-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.pin-digit {
  width: 54px; height: 60px;
  background: var(--secondary);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--fg); font-size: 22px;
  text-align: center; font-family: inherit;
  outline: none; transition: border-color 0.2s;
  -webkit-appearance: none;
}
.pin-digit:focus { border-color: var(--primary); }
.pin-error {
  background: rgba(217,92,58,0.1);
  border: 1px solid rgba(217,92,58,0.3);
  color: #f4a49a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  text-align: center;
}

/* ── Vault unlock sheet ── */
.vault-icon { font-size: 40px; text-align: center; margin-bottom: 8px; }
.vault-subtitle { font-size: 13px; color: var(--fg-muted); text-align: center; margin-bottom: 20px; }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 10px; object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.12);
  border: none; border-radius: 50%;
  color: #fff; font-size: 18px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 600;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px; font-weight: 500; color: var(--fg);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { border-color: rgba(90,185,140,0.4); color: var(--primary); }
.toast.error   { border-color: rgba(217,92,58,0.4); color: #f4a49a; }

/* ── Divider ── */
.divider { height: 1px; background: rgba(50,50,74,0.6); margin: 4px 0; }

/* ── Platform page ── */
.stats-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat-card {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.stat-label { font-size: 11px; color: var(--fg-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
.stat-value { font-size: 22px; font-weight: 700; color: var(--fg); }

/* ── Lock Screen ── */
.lock-screen {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.lock-card {
  width: 100%; max-width: 360px;
  background: var(--card);
  border: 1px solid rgba(50,50,74,0.8);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lock-icon { font-size: 52px; margin-bottom: 14px; line-height: 1; }
.lock-title { font-size: 22px; font-weight: 800; color: var(--fg); margin-bottom: 6px; }
.lock-sub { font-size: 13px; color: var(--fg-muted); margin-bottom: 24px; line-height: 1.5; }

/* ── Docs FAB ── */
.docs-fab {
  position: fixed;
  bottom: 80px; right: 20px;
  width: 52px; height: 52px;
  background: var(--primary);
  border: none; border-radius: 50%;
  color: var(--primary-fg);
  font-size: 26px; font-weight: 300;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(90,185,140,0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 48;
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
  max-width: 480px;
}
.docs-fab:active { transform: scale(0.92); box-shadow: 0 2px 10px rgba(90,185,140,0.3); }

/* ── Sticky save bar (above bottom nav on form pages) ── */
.sticky-save-bar {
  position: fixed;
  bottom: 64px; /* sits just above the 64px bottom nav */
  left: 0; right: 0;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  background: var(--card);
  border-top: 1px solid rgba(50,50,74,0.7);
  z-index: 45;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

/* scrollbar hide */
.app-main::-webkit-scrollbar,
.sheet-body::-webkit-scrollbar { display: none; }
.app-main { scrollbar-width: none; }
.sheet-body { scrollbar-width: none; }

/* ── Doc type selector ── */
.doc-type-selector {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;
}
.doc-type-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 12px 6px;
  background: var(--secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer; font-family: inherit;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.doc-type-btn span:first-child { font-size: 22px; }
.doc-type-btn span:nth-child(2) { font-size: 13px; font-weight: 600; color: var(--fg); }
.doc-type-btn small { font-size: 10px; color: var(--fg-muted); text-align: center; line-height: 1.3; }
.doc-type-btn.active {
  border-color: var(--primary);
  background: rgba(90,185,140,0.1);
}
.doc-type-btn.active span:nth-child(2) { color: var(--primary); }

/* ── Doc card ── */
.doc-card {
  background: var(--card);
  border: 1px solid rgba(50,50,74,0.6);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
  display: flex; flex-direction: column; gap: 10px;
}
.doc-card:active { background: var(--muted); }
.doc-type-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px; font-weight: 600;
  white-space: nowrap;
}
.doc-type-tag.personal { background: rgba(90,140,185,0.15); border: 1px solid rgba(90,140,185,0.3); color: #7ab3e0; }
.doc-type-tag.company  { background: rgba(185,155,90,0.15); border: 1px solid rgba(185,155,90,0.3); color: #e0c47a; }
.doc-type-tag.other    { background: rgba(140,90,185,0.15); border: 1px solid rgba(140,90,185,0.3); color: #b87ae0; }

/* ── File pills in doc view ── */
.file-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.file-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--secondary); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 12px;
  font-size: 12px; color: var(--fg-sec);
  cursor: pointer; transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.file-pill:active { background: var(--muted); }
.file-pill .pill-del {
  background: none; border: none;
  color: var(--fg-muted); font-size: 13px; cursor: pointer;
  padding: 0 0 0 4px; line-height: 1;
}
.file-pill .pill-del:hover { color: var(--destructive); }
