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

:root {
  /* Apple-inspired palette */
  --primary: #0071e3;          /* Apple blue */
  --primary-light: #2997ff;
  --primary-dark: #0058b9;
  --success: #34c759;          /* Apple green */
  --success-light: #4bd374;
  --danger: #ff3b30;           /* Apple red */
  --danger-light: #ff6961;
  --warning: #ff9f0a;          /* Apple amber */
  --info: #5ac8fa;
  --dark: #1d1d1f;             /* Apple ink */
  --dark-light: #424245;
  --dark-medium: #6e6e73;
  --text: #1d1d1f;
  --text-light: #6e6e73;
  --text-lighter: #86868b;
  --bg: #fbfbfd;               /* Apple white */
  --surface: #ffffff;
  --surface-2: #f5f5f7;        /* Apple gray */
  --white: #ffffff;
  --border: #d2d2d7;
  --border-soft: #e8e8ed;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.06), 0 18px 40px rgba(0, 0, 0, 0.10);
  --radius: 10px;
  --radius-lg: 18px;
  --sidebar-width: 280px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ===== Layout ===== */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ===== Sidebar ===== */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: rgba(245, 245, 247, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: var(--text);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 100;
  border-right: 1px solid var(--border-soft);
}

.sidebar-logo {
  padding: 20px 20px 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.sidebar-logo .logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0071e3 0%, #0058b9 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.32);
}

.sidebar-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.sidebar-logo .logo-text small {
  margin-top: 2px;
  color: var(--text-lighter);
  font-size: 11.5px;
  font-weight: 400;
}

.sidebar-nav {
  flex: 1;
  padding: 10px 12px 24px;
}

.nav-section-title {
  padding: 20px 10px 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-lighter);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 7px 10px;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  font-size: 13.5px;
  border-radius: 8px;
  user-select: none;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

.nav-item.active {
  color: #ffffff;
  background: var(--primary);
  font-weight: 500;
}

.nav-item.disabled {
  cursor: default;
  color: var(--text-lighter);
  opacity: 0.7;
}

.nav-item.disabled:hover {
  background: transparent;
  color: var(--text-lighter);
}

.nav-item .nav-icon {
  font-size: 16px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}

.nav-code {
  width: 30px;
  min-width: 30px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--text-light);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.nav-item.active .nav-code {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.nav-label {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-state {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 159, 10, 0.14);
  color: #b76e00;
  font-size: 10.5px;
  font-weight: 600;
}

.nav-home {
  margin-bottom: 6px;
  min-height: 40px;
}

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px 36px 48px;
}

.page-section {
  display: none;
  animation: pageIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-section.active {
  display: block;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-header h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ===== Panels ===== */
.panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
  padding: 22px;
  margin-bottom: 20px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-header h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ===== Stat Cards ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.stat-card .stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 600;
  flex-shrink: 0;
}

.stat-card .stat-icon.blue { background: rgba(0, 113, 227, 0.10); color: var(--primary); }
.stat-card .stat-icon.green { background: rgba(52, 199, 89, 0.12); color: var(--success); }
.stat-card .stat-icon.red { background: rgba(255, 59, 48, 0.10); color: var(--danger); }
.stat-card .stat-icon.orange { background: rgba(255, 159, 10, 0.12); color: var(--warning); }
.stat-card .stat-icon.teal { background: rgba(90, 200, 250, 0.14); color: #0a84ff; }

.stat-card .stat-info { flex: 1; }
.stat-card .stat-value { font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.stat-card .stat-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* ===== Tables ===== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead {
  position: sticky;
  top: 0;
  z-index: 5;
}

thead th {
  background: var(--surface-2);
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12px;
  letter-spacing: 0.02em;
}

tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}

#imb-table .imb-similar-names-full,
#imb-table .imb-brands-full {
  min-width: 320px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

tbody tr {
  transition: background 0.15s ease;
}

tbody tr:hover {
  background: rgba(0, 113, 227, 0.03);
}

tbody tr.clickable {
  cursor: pointer;
}

tbody tr.clickable:hover {
  background: rgba(0, 113, 227, 0.06);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border: none;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1.4;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.btn-sm { padding: 5px 13px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: #0077ed; }

.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #2bb24c; }

.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #e02e24; }

.btn-warning { background: var(--warning); color: var(--white); }
.btn-warning:hover { background: #e88f00; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover { background: rgba(0, 113, 227, 0.06); }

.btn-ghost {
  background: transparent;
  color: var(--text-light);
}
.btn-ghost:hover { background: rgba(0, 0, 0, 0.04); color: var(--text); }

.btn-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

select.form-control {
  appearance: auto;
}

/* ===== Search Bar ===== */
.search-bar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-bar input {
  flex: 1;
  min-width: 200px;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 0 4px;
  flex-wrap: wrap;
}

.pagination .page-btn {
  min-width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  padding: 0 8px;
  font-family: inherit;
}

.pagination .page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .page-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination .page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination .page-info {
  font-size: 12px;
  color: var(--text-light);
  margin: 0 8px;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.15s ease;
  padding: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-dialog {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.modal-dialog.modal-lg { max-width: 900px; }
.modal-dialog.modal-sm { max-width: 400px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.modal-close {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  font-size: 18px;
  color: var(--text-light);
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--bg);
  color: var(--text);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ===== Tags & Badges ===== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.tag-blue { background: rgba(0, 113, 227, 0.10); color: var(--primary); }
.tag-green { background: rgba(52, 199, 89, 0.12); color: #1a9e3e; }
.tag-red { background: rgba(255, 59, 48, 0.10); color: var(--danger); }
.tag-orange { background: rgba(255, 159, 10, 0.12); color: #b76e00; }
.tag-gray { background: rgba(110, 110, 115, 0.12); color: var(--text-light); }

/* ===== Tabs ===== */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  font-family: inherit;
}

.tab-btn:hover { color: var(--primary); }

.tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* ===== Upload Zone ===== */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--surface-2);
}

.upload-zone:hover {
  border-color: var(--primary);
  background: rgba(0, 113, 227, 0.04);
}

.upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(0, 113, 227, 0.08);
}

.upload-zone .upload-icon {
  font-size: 36px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.upload-zone .upload-text {
  font-size: 14px;
  color: var(--text-light);
}

.upload-zone .upload-hint {
  font-size: 12px;
  color: var(--text-light);
  opacity: 0.7;
  margin-top: 6px;
}

.upload-result {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
}

.upload-result.success {
  background: rgba(46, 196, 182, 0.1);
  color: #1da89c;
  border: 1px solid rgba(46, 196, 182, 0.3);
}

.upload-result.error {
  background: rgba(230, 57, 70, 0.1);
  color: var(--danger);
  border: 1px solid rgba(230, 57, 70, 0.3);
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.empty-state .empty-text {
  font-size: 15px;
  margin-bottom: 8px;
}

.empty-state .empty-hint {
  font-size: 13px;
  opacity: 0.7;
}

/* ===== Loading Spinner ===== */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner-lg { width: 32px; height: 32px; border-width: 3px; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 10px;
  color: var(--text-light);
}

/* ===== Back Button ===== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  cursor: pointer;
  font-size: 14px;
  padding: 6px 0;
  transition: var(--transition);
  background: none;
  border: none;
  font-family: inherit;
}

.back-btn:hover { color: var(--primary); }

/* ===== Search Results ===== */
.search-section {
  margin-bottom: 24px;
}

.search-section h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.result-count {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 400;
  margin-left: 6px;
}

/* ===== Detail View ===== */
.detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.detail-item {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.detail-item .detail-label {
  color: var(--text-light);
  min-width: 100px;
  flex-shrink: 0;
}

.detail-item .detail-value {
  color: var(--text);
  font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .sidebar {
    width: 72px;
    min-width: 72px;
  }
  .sidebar-logo .logo-text,
  .nav-label,
  .nav-state,
  .nav-section-title {
    display: none;
  }
  .sidebar-logo {
    justify-content: center;
    padding: 14px 8px;
  }
  .nav-item {
    justify-content: center;
    padding: 9px 6px;
  }
  .nav-item .nav-icon {
    font-size: 20px;
  }
  .nav-code {
    width: 40px;
    min-width: 40px;
  }
  .main-content {
    padding: 16px;
  }
  .stat-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .page-header h2 {
    font-size: 18px;
  }
}

/* ===== Utility ===== */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success {
  background: rgba(52, 199, 89, 0.14);
  color: #1a9e3e;
}

.badge-warning {
  background: rgba(255, 159, 10, 0.16);
  color: #b76e00;
}

/* ===== Home (user-facing) ===== */
.home-hero {
  margin-bottom: 28px;
}

.home-hero .hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.home-hero .hero-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
}

.home-hero .hero-sub {
  font-size: 17px;
  color: var(--text-light);
  max-width: 640px;
  line-height: 1.5;
}

.home-search {
  position: relative;
  margin: 28px 0 8px;
  max-width: 640px;
}

.home-search input {
  width: 100%;
  height: 54px;
  padding: 0 60px 0 54px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.home-search input::placeholder { color: var(--text-lighter); }

.home-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14), var(--shadow);
}

.home-search .search-glyph {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-lighter);
  pointer-events: none;
}

.home-search .search-go {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 38px;
  padding: 0 20px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.home-search .search-go:hover { background: #0077ed; }

.home-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.home-suggestions .sug-chip {
  padding: 6px 14px;
  border-radius: 980px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--text-light);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.home-suggestions .sug-chip:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(0, 113, 227, 0.04);
}

/* Quick action tiles */
.home-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-lighter);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 8px 0 14px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.quick-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-family: inherit;
  box-shadow: var(--shadow);
}

.quick-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.quick-tile:active { transform: translateY(-1px); }

.quick-tile .tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}

.quick-tile .tile-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.quick-tile .tile-desc {
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.45;
}

/* Soft tinted icon backgrounds */
.tint-blue { background: rgba(0, 113, 227, 0.10); }
.tint-green { background: rgba(52, 199, 89, 0.12); }
.tint-orange { background: rgba(255, 159, 10, 0.14); }
.tint-purple { background: rgba(175, 82, 222, 0.12); }
.tint-pink { background: rgba(255, 55, 95, 0.10); }
.tint-teal { background: rgba(90, 200, 250, 0.16); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.font-bold { font-weight: 600; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 250px;
}
