/* ================================================================
   Insider Feedback Portal — Custom UI Design System
   ================================================================ */

:root {
  --adsk-blue-100: #cdeaf7;
  --adsk-blue-200: #9bd5ef;
  --adsk-blue-300: #6ac0e7;
  --adsk-blue-400: #38abdf;
  --adsk-blue-500: #0696d7;
  --adsk-blue-600: #007fc6;
  --adsk-blue-700: #006eaf;
  --adsk-blue-800: #074b78;
  --adsk-blue-900: #0a324d;

  --green-100: #e8f2d3;
  --green-500: #6a9728;
  --green-700: #4a7512;
  --turquoise-100: #d6f2ef;
  --turquoise-500: #32bcad;
  --turquoise-700: #168576;
  --orange-100: #feecd1;
  --orange-500: #faa21b;
  --orange-700: #d9730b;
  --red-100: #fce4e4;
  --red-600: #dd2222;

  --charcoal-100: #eeeeee;
  --charcoal-200: #dcdcdc;
  --charcoal-300: #cccccc;
  --charcoal-400: #b3b3b3;
  --charcoal-500: #999999;
  --charcoal-600: #808080;
  --charcoal-700: #666666;
  --charcoal-800: #4d4d4d;
  --charcoal-900: #3c3c3c;

  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --border: rgba(60, 60, 60, 0.1);
  --border-hover: rgba(60, 60, 60, 0.25);
  --text-primary: #3c3c3c;
  --text-secondary: rgba(60, 60, 60, 0.7);
  --text-muted: rgba(60, 60, 60, 0.4);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 6px rgba(0,0,0,0.1);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-pill: 9999px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ================================================================
   LOGIN
   ================================================================ */

.login-screen { min-height: 100vh; }

.login-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.login-left {
  flex: 1;
  background: linear-gradient(145deg, var(--adsk-blue-900) 0%, var(--adsk-blue-800) 60%, #1858a8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(6, 150, 215, 0.08);
}

.login-branding {
  max-width: 440px;
  position: relative;
  z-index: 1;
  color: white;
}

.login-branding h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.login-branding p {
  font-size: 16px;
  font-weight: 300;
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 40px;
}

.login-features { display: flex; flex-direction: column; gap: 14px; }

.login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  opacity: 0.85;
}

.login-feature .material-symbols-outlined {
  font-size: 20px;
  color: var(--adsk-blue-300);
}

.login-right {
  width: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  background: var(--bg-primary);
}

.login-card { width: 100%; max-width: 340px; }
.login-card-header { text-align: center; margin-bottom: 28px; }
.login-card-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.login-card-header p { font-size: 13px; color: var(--text-secondary); }
.login-note { font-size: 12px; color: var(--text-muted); text-align: center; }

/* ================================================================
   HEADER
   ================================================================ */

.portal-header {
  height: 48px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.portal-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.portal-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  position: relative;
}
.portal-user:hover { background: var(--bg-secondary); }

.portal-user-name { font-size: 13px; font-weight: 500; color: var(--text-primary); }

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--adsk-blue-500);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid var(--charcoal-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  z-index: 1000;
  padding: 4px 0;
  margin-top: 4px;
}

.user-dropdown .dropdown-item {
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  color: var(--charcoal-900);
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-dropdown .dropdown-item:hover { background: var(--charcoal-100); }
.user-dropdown .dropdown-item .material-symbols-outlined { font-size: 16px; color: var(--charcoal-500); }
.user-dropdown .dropdown-divider { height: 1px; background: var(--charcoal-200); margin: 4px 0; }

/* ================================================================
   CONTENT
   ================================================================ */

.portal-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}

.section { margin-bottom: 28px; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-header h2 { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.section-meta { font-size: 12px; color: var(--text-muted); }

/* ================================================================
   STATS
   ================================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon.blue { background: var(--adsk-blue-100); color: var(--adsk-blue-700); }
.stat-icon.gray { background: var(--charcoal-100); color: var(--charcoal-600); }
.stat-icon.teal { background: var(--turquoise-100); color: var(--turquoise-700); }
.stat-icon.green { background: var(--green-100); color: var(--green-700); }
.stat-icon.orange { background: var(--orange-100); color: var(--orange-700); }
.stat-icon .material-symbols-outlined { font-size: 20px; }

.stat-value { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }

/* ================================================================
   VIEW TABS
   ================================================================ */

.view-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
}

.view-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.view-tab:hover { background: var(--bg-secondary); color: var(--text-primary); }

.view-tab.active {
  background: var(--adsk-blue-500);
  color: white;
  box-shadow: 0 1px 3px rgba(6, 150, 215, 0.3);
}

.view-tab .material-symbols-outlined { font-size: 18px; }

.tab-count {
  background: rgba(255,255,255,0.2);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.view-tab:not(.active) .tab-count {
  background: var(--charcoal-100);
  color: var(--charcoal-700);
}

/* ================================================================
   STATUS CHART
   ================================================================ */

.status-chart { display: flex; flex-direction: column; gap: 6px; }

.chart-row { display: flex; align-items: center; gap: 10px; }
.chart-label { font-size: 12px; color: var(--text-secondary); width: 80px; text-align: right; flex-shrink: 0; }
.chart-bar-bg { flex: 1; height: 18px; background: var(--bg-secondary); border-radius: 3px; overflow: hidden; }
.chart-bar { height: 100%; border-radius: 3px; transition: width 0.4s ease; min-width: 0; }
.chart-bar.submitted { background: var(--charcoal-400); }
.chart-bar.under-review { background: var(--adsk-blue-400); }
.chart-bar.accepted { background: var(--turquoise-500); }
.chart-bar.live { background: var(--green-500); }
.chart-bar.not-prioritized { background: var(--orange-500); }
.chart-bar.gathering-support { background: #a78bfa; }
.chart-bar.unmatched { background: var(--charcoal-300); }
.chart-count { font-size: 11px; font-weight: 600; color: var(--text-muted); width: 24px; flex-shrink: 0; }

/* ================================================================
   CARDS
   ================================================================ */

.card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ================================================================
   FILTERS
   ================================================================ */

.filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.filter-select {
  padding: 5px 10px;
  border: 1px solid rgba(128,128,128,0.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-primary);
  cursor: pointer;
  min-height: 32px;
}
.filter-select:focus { outline: none; border-color: var(--adsk-blue-500); }

.filter-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(128,128,128,0.2);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  flex: 1;
}
.filter-search .material-symbols-outlined { font-size: 16px; color: var(--text-muted); }
.filter-search input {
  border: none;
  outline: none;
  font-size: 13px;
  font-family: inherit;
  flex: 1;
  background: transparent;
}

/* ================================================================
   TABLE
   ================================================================ */

.table-container { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }

.data-table th {
  text-align: left;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  user-select: none;
}

.sort-header {
  cursor: pointer;
  transition: color 0.15s;
}
.sort-header:hover { color: var(--text-primary); }
.sort-header.active { color: var(--adsk-blue-700); }

.sort-icon {
  font-size: 14px !important;
  vertical-align: middle;
  margin-left: 2px;
  opacity: 0.4;
}
.sort-header.active .sort-icon { opacity: 1; color: var(--adsk-blue-500); }
.sort-header:hover .sort-icon { opacity: 0.7; }

.data-table td {
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tbody tr { transition: background 0.1s; }
.data-table tbody tr:hover { background: var(--bg-secondary); }
.data-table tbody tr:last-child td { border-bottom: none; }

.cell-title {
  font-weight: 500;
  color: var(--text-primary);
  max-width: 360px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.cell-date { color: var(--text-muted); white-space: nowrap; font-size: 12px; }
.table-empty { text-align: center; padding: 32px 14px !important; color: var(--text-muted); }

.expandable-row { cursor: pointer; }

.expand-icon {
  font-size: 18px !important;
  color: var(--text-muted);
  transition: transform 0.15s, color 0.15s;
  flex-shrink: 0;
  margin-top: 1px;
}
.expand-icon.expanded { color: var(--adsk-blue-500); }

.expand-row td { padding: 0 !important; border-bottom: 1px solid var(--border); }
.expand-cell { background: var(--bg-secondary); }

.expand-content {
  padding: 14px 20px 14px 38px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.expand-field { }
.expand-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.expand-value { font-size: 13px; color: var(--text-primary); line-height: 1.5; }

.expand-meta {
  display: flex;
  gap: 24px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.expand-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.forum-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue-600);
  font-weight: 500;
  text-decoration: none;
}
.forum-link:hover { text-decoration: underline; }

/* ================================================================
   MATCH SELECTION
   ================================================================ */

.match-section {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
}

.match-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.match-section-header .material-symbols-outlined {
  font-size: 18px;
  color: var(--adsk-blue-500);
}

.match-section-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.match-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.match-card {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  background: var(--bg-primary);
}

.match-card:hover {
  border-color: var(--charcoal-300);
  background: rgba(6, 150, 215, 0.04);
  box-shadow: 0 0 0 1px var(--adsk-blue-400);
}

.match-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.match-source-icon {
  font-size: 16px !important;
  color: var(--text-muted);
}

.match-source-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.match-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

.match-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.match-card-votes {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.match-card-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--adsk-blue-500);
  text-decoration: none;
}

.match-card-link:hover {
  text-decoration: underline;
}

.match-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 4px;
}

.match-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  margin-top: 6px;
  border: 1px solid var(--adsk-blue-400);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  color: var(--adsk-blue-600);
  cursor: pointer;
  transition: all 0.15s;
}

.match-select-btn:hover {
  background: var(--adsk-blue-500);
  color: #fff;
  border-color: var(--adsk-blue-500);
}

.match-none-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.match-none-btn:hover {
  background: var(--charcoal-100);
  color: var(--text-primary);
  border-color: var(--charcoal-400);
}

.match-pending {
  background: var(--bg-secondary);
  border-style: dashed;
}

.match-pending .match-section-header .material-symbols-outlined {
  color: var(--text-muted);
}

.match-spinner {
  animation: spin 1.2s linear infinite;
}

.match-confirmed-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

.match-confirmed-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.match-confirmed-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.match-confirmed-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.match-unmatched-body {
  margin-top: 6px;
}

.match-unmatched-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.match-unmatched-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.match-recovery-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: var(--orange-100);
  border-left: 3px solid var(--orange-500);
  border-radius: var(--radius-sm);
}

.match-recovery-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.match-recovery-banner-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.match-recovery-banner-sub {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.match-recovery-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

/* ----------------------------------------------------------------
   Unmatched modal
   ---------------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.15s ease;
}

.modal-content {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 460px;
  width: 90%;
  padding: 24px;
  animation: scaleIn 0.2s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  background: var(--charcoal-100);
  color: var(--text-primary);
}

.modal-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 10px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Wide modal variant — used by the Status Legend */
.modal-content-wide {
  max-width: 620px;
}

/* Status Legend rows */
.legend-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.legend-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 12px;
  background: var(--bg-secondary, #f7f8fa);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: var(--radius-md, 6px);
}

.legend-chip {
  align-self: flex-start;
  font-size: 11px;
  white-space: nowrap;
  justify-self: start;
}

.legend-desc {
  font-size: 12.5px;
  color: var(--text-secondary, #4b5563);
  line-height: 1.5;
}

.btn-ghost {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

.btn-ghost:hover {
  background: var(--charcoal-100);
  color: var(--text-primary);
}

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

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ================================================================
   ROW ACTIONS (Remove / etc.)
   ================================================================ */

.row-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.row-remove-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--adsk-charcoal-600);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.row-remove-btn:hover {
  background: var(--adsk-charcoal-100);
  border-color: var(--adsk-charcoal-400);
  color: var(--adsk-charcoal-900);
}

/* ================================================================
   CUSTOMER NOTES
   ================================================================ */

.notes-section {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.notes-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  color: var(--adsk-blue-600);
  cursor: pointer;
  transition: all 0.15s;
}
.notes-add-btn:hover { background: var(--adsk-blue-100); border-color: var(--adsk-blue-300); }

.notes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}

.notes-empty {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  padding: 4px 0;
}

.note-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  overflow: hidden;
}

.note-key {
  padding: 3px 8px;
  background: var(--adsk-blue-100);
  color: var(--adsk-blue-800);
  font-weight: 600;
  font-size: 11px;
}

.note-val {
  padding: 3px 8px;
  color: var(--text-primary);
}

.note-remove {
  padding: 3px 5px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}
.note-remove:hover { color: var(--red-600); background: var(--red-100); }

.note-add-form {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  width: 100%;
}

.note-input {
  padding: 4px 8px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: inherit;
  background: var(--bg-primary);
}
.note-input:focus { outline: none; border-color: var(--adsk-blue-500); }
.note-key-input { width: 120px; }
.note-val-input { flex: 1; }

.note-save-btn, .note-cancel-btn {
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
}
.note-save-btn:hover { background: var(--green-100); color: var(--green-700); border-color: var(--green-500); }
.note-cancel-btn:hover { background: var(--red-100); color: var(--red-600); }

/* ================================================================
   STATUS & CHIPS
   ================================================================ */

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.status-chip.submitted { background: var(--charcoal-100); color: var(--charcoal-700); }
.status-chip.under-review { background: var(--adsk-blue-100); color: var(--adsk-blue-800); }
.status-chip.accepted { background: var(--turquoise-100); color: var(--turquoise-700); }
.status-chip.live { background: var(--green-500); color: white; }
.status-chip.not-prioritized { background: var(--orange-100); color: var(--orange-700); }
.status-chip.gathering-support { background: #ede9fe; color: #6d28d9; }
.status-chip.unmatched { background: var(--charcoal-100); color: var(--charcoal-600); }

.module-chip {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  background: rgba(128,128,128,0.12);
  color: var(--charcoal-800);
}

.priority-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.priority-chip.blocker, .priority-chip.critical { color: var(--red-600); }
.priority-chip.important { color: var(--orange-700); }
.priority-chip.standard { color: var(--charcoal-700); }

/* ================================================================
   FORMS
   ================================================================ */

.form-card { padding: 20px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.form-group .required { color: var(--red-600); }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(128,128,128,0.25);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group .filter-select:focus {
  outline: none;
  border-color: var(--adsk-blue-500);
}

.form-group textarea { resize: vertical; line-height: 1.5; }
.form-group .filter-select { width: 100%; min-height: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.form-error {
  padding: 8px 12px;
  background: var(--red-100);
  color: var(--red-600);
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin-bottom: 12px;
}

/* ================================================================
   BUTTONS
   ================================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--adsk-blue-500);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--adsk-blue-600); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary .material-symbols-outlined { font-size: 16px; }
.btn-full { width: 100%; justify-content: center; padding: 10px; }

/* ================================================================
   TOAST
   ================================================================ */

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal-900);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  z-index: 300;
  animation: toastIn 0.3s;
}

@keyframes toastIn {
  from { transform: translateX(-50%) translateY(10px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.toast .material-symbols-outlined { color: var(--green-500); font-size: 18px; }

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ================================================================
   ONBOARDING TOUR
   ================================================================ */

.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: tourFadeIn 0.25s ease;
}

.welcome-card {
  background: white;
  border-radius: 12px;
  padding: 40px 36px 28px;
  max-width: 420px;
  width: 90vw;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: tourSlideUp 0.35s ease;
}

.welcome-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--adsk-blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.welcome-icon .material-symbols-outlined {
  font-size: 28px;
  color: var(--adsk-blue-600);
}

.welcome-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.welcome-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.welcome-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-secondary:hover { background: var(--bg-secondary); color: var(--text-primary); }

.welcome-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}
.welcome-toggle input { cursor: pointer; }

.tour-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 8998;
  transition: opacity 0.2s;
}

.tour-spotlight {
  position: fixed;
  z-index: 8999;
  border-radius: 6px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.tour-tooltip {
  position: fixed;
  z-index: 9001;
  animation: tourSlideUp 0.3s ease;
}

.tour-tooltip-content {
  background: white;
  border-radius: 10px;
  padding: 16px 18px 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  width: 320px;
}

.tour-step-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--adsk-blue-500);
  margin-bottom: 4px;
}

.tour-step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tour-step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.tour-tooltip-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tour-nav {
  display: flex;
  gap: 6px;
}

.tour-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: var(--adsk-blue-500);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.tour-btn-next:hover { background: var(--adsk-blue-600); }
.tour-btn-next .material-symbols-outlined { font-size: 14px; }

.tour-btn-prev {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
}
.tour-btn-prev:hover { background: var(--bg-secondary); }
.tour-btn-prev .material-symbols-outlined { font-size: 14px; }

.tour-btn-skip {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  padding: 4px 0;
}
.tour-btn-skip:hover { color: var(--text-secondary); }

@keyframes tourFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes tourSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
  .login-left { display: none; }
  .login-right { width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .expand-meta { flex-direction: column; gap: 10px; }
}
