/* ── Enzo Review App — Stylesheet ─────────────────────────────────────────────
   Mobile-first. Designed for iPad and MacBook use by clothiers.
   Large tap targets, clear typography, minimal chrome.
   ──────────────────────────────────────────────────────────────────────────── */

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

:root {
  --navy:       #1a1f2e;
  --navy-light: #252b3b;
  --gold:       #c9a84c;
  --gold-light: #e8c96e;
  --white:      #ffffff;
  --off-white:  #f7f7f5;
  --grey-100:   #f0f0ed;
  --grey-200:   #e0e0db;
  --grey-400:   #a0a09a;
  --grey-600:   #6b6b65;
  --grey-800:   #3a3a36;
  --text:       #1a1a18;
  --success:    #2d7a4f;
  --success-bg: #eaf5ef;
  --warning:    #8a6200;
  --warning-bg: #fff8e6;
  --error:      #b33a3a;
  --error-bg:   #fdf0f0;
  --info:       #1e5fa8;
  --info-bg:    #eef4fc;

  --radius:     8px;
  --radius-lg:  12px;
  --shadow:     0 1px 4px rgba(0,0,0,0.10);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.12);

  --font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size:  16px;
  --line:       1.55;
}

html { font-size: var(--font-size); }

body {
  font-family: var(--font);
  line-height: var(--line);
  color: var(--text);
  background: var(--off-white);
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); text-decoration: underline; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* ── Navigation ────────────────────────────────────────────────────────────── */
.nav {
  background: var(--navy);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.nav-brand {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand span.gold { color: var(--gold); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-user {
  color: var(--grey-400);
  font-size: 0.875rem;
}

.nav-link {
  color: var(--grey-400);
  font-size: 0.875rem;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--white); text-decoration: none; }

.nav-admin-link {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 10px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  transition: all 0.15s;
}
.nav-admin-link:hover {
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
}

/* ── Page header ───────────────────────────────────────────────────────────── */
.page-header {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--grey-200);
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
}

.page-header p {
  color: var(--grey-600);
  margin-top: 4px;
  font-size: 0.95rem;
}

/* ── Flash messages ────────────────────────────────────────────────────────── */
.flash-list {
  list-style: none;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 4px solid;
}

.flash.success { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.flash.error   { background: var(--error-bg);   color: var(--error);   border-color: var(--error); }
.flash.warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning); }
.flash.info    { background: var(--info-bg);    color: var(--info);    border-color: var(--info); }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 16px;
}

.card-sm { padding: 16px; }

/* ── Order list ────────────────────────────────────────────────────────────── */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  transition: box-shadow 0.15s, transform 0.1s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--grey-200);
}

.order-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}

.order-card-info { flex: 1; }

.order-client {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

.order-meta {
  font-size: 0.85rem;
  color: var(--grey-600);
  margin-top: 3px;
}

.order-arrow {
  color: var(--grey-400);
  font-size: 1.25rem;
  margin-left: 16px;
}

.order-age {
  font-size: 0.78rem;
  color: var(--grey-400);
  white-space: nowrap;
  margin-left: 16px;
}

.order-age.overdue {
  color: var(--error);
  font-weight: 500;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--grey-600);
}

.empty-state .icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state h2 { color: var(--navy); font-size: 1.1rem; }
.empty-state p  { margin-top: 6px; font-size: 0.9rem; }

/* ── Order detail ──────────────────────────────────────────────────────────── */
.order-detail-header {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.order-detail-header .label {
  font-size: 0.75rem;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.order-detail-header .client-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}

.order-detail-header .order-ref {
  font-size: 0.875rem;
  color: var(--grey-400);
  margin-top: 6px;
}

/* Score selector */
.score-section { margin: 24px 0; }

.score-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.score-section p {
  font-size: 0.875rem;
  color: var(--grey-600);
  margin-bottom: 16px;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 6px;
}

.score-grid input[type="radio"] { display: none; }

.score-grid label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: var(--radius);
  border: 2px solid var(--grey-200);
  background: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--grey-600);
  cursor: pointer;
  transition: all 0.12s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.score-grid label:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.score-grid input[type="radio"]:checked + label {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* Colour coding: 0-4 red tones, 5-7 amber, 8-10 green */
.score-grid input[value="0"]:checked + label,
.score-grid input[value="1"]:checked + label,
.score-grid input[value="2"]:checked + label,
.score-grid input[value="3"]:checked + label,
.score-grid input[value="4"]:checked + label {
  background: var(--error);
  border-color: var(--error);
}

.score-grid input[value="5"]:checked + label,
.score-grid input[value="6"]:checked + label,
.score-grid input[value="7"]:checked + label {
  background: #b36200;
  border-color: #b36200;
}

.score-grid input[value="8"]:checked + label,
.score-grid input[value="9"]:checked + label,
.score-grid input[value="10"]:checked + label {
  background: var(--success);
  border-color: var(--success);
}

.score-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--grey-400);
}

/* Notes field */
.notes-section { margin: 20px 0; }

.notes-section label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--grey-800);
  margin-bottom: 6px;
}

.notes-section .hint {
  font-size: 0.78rem;
  color: var(--grey-400);
  margin-bottom: 8px;
}

textarea {
  width: 100%;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 12px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.15s;
}

textarea:focus {
  outline: none;
  border-color: var(--gold);
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  font-size: 1.05rem;
}

.btn-primary:hover {
  background: var(--navy-light);
  color: var(--white);
  text-decoration: none;
}

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

.btn-secondary {
  background: transparent;
  color: var(--grey-600);
  border: 1.5px solid var(--grey-200);
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  border-color: var(--grey-400);
  color: var(--text);
  text-decoration: none;
}

.btn-danger {
  background: var(--error-bg);
  color: var(--error);
  border: 1.5px solid var(--error);
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-danger:hover {
  background: var(--error);
  color: var(--white);
  text-decoration: none;
}

.btn-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1.5px solid var(--success);
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--grey-600);
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.back-link:hover { color: var(--navy); text-decoration: none; }

/* ── Login page ─────────────────────────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  padding: 20px;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-md);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.login-logo p {
  color: var(--grey-600);
  font-size: 0.875rem;
  margin-top: 4px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--grey-800);
  margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
select {
  width: 100%;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
  -webkit-appearance: none;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--gold);
}

.login-submit {
  width: 100%;
  margin-top: 8px;
  padding: 15px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.login-submit:hover { background: var(--navy-light); }

/* ── Admin layout ───────────────────────────────────────────────────────────── */
.admin-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--grey-200);
  padding-bottom: 0;
}

.admin-nav-link {
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-600);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
  text-decoration: none;
}

.admin-nav-link:hover { color: var(--navy); text-decoration: none; }

.admin-nav-link.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

/* Dashboard summary cards */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.summary-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--grey-200);
}

.summary-card.pending { border-top-color: var(--warning); }
.summary-card.sent    { border-top-color: var(--info); }
.summary-card.clicked { border-top-color: var(--gold); }
.summary-card.done    { border-top-color: var(--success); }

.summary-card .count {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.summary-card .label {
  font-size: 0.8rem;
  color: var(--grey-600);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Admin tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--grey-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--grey-200);
}

.data-table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--grey-100);
  color: var(--text);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--off-white); }

/* Status badges */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-active  { background: var(--success-bg); color: var(--success); }
.badge-inactive { background: var(--grey-100); color: var(--grey-600); }
.badge-admin   { background: var(--info-bg); color: var(--info); }

/* Admin forms */
.admin-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.admin-form h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--grey-400);
  margin-top: 4px;
}

/* Token display (Google OAuth) */
.token-box {
  background: var(--navy);
  color: var(--gold);
  border-radius: var(--radius);
  padding: 16px;
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 0.8rem;
  word-break: break-all;
  margin: 12px 0;
}

/* ── Error pages ────────────────────────────────────────────────────────────── */
.error-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--grey-200);
  line-height: 1;
}

.error-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 8px;
}

.error-message {
  color: var(--grey-600);
  margin-top: 8px;
  max-width: 380px;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .score-grid { grid-template-columns: repeat(6, 1fr); }
  /* Wrap 0-5 on first row, 6-10 on second — handled by grid auto-flow */

  .form-row { grid-template-columns: 1fr; }

  .summary-grid { grid-template-columns: 1fr 1fr; }

  .login-card { padding: 28px 20px; }

  .data-table { font-size: 0.82rem; }
  .data-table th, .data-table td { padding: 8px; }
}

@media (min-width: 768px) {
  .page-wrap { padding: 0 24px 60px; }
  .score-grid label { height: 58px; font-size: 1.15rem; }
}

/* ─── v2 additions ─────────────────────────────────────────────────────── */

/* Search bar */
.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.search-bar input[type="search"] {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.search-clear {
  font-size: 0.85rem;
  color: var(--grey-600);
  text-decoration: underline;
}

/* Showroom filter chips (above the order list) */
.showroom-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px 0;
}
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--grey-100, #f4f5f7);
  color: var(--grey-600, #4a4a4a);
  text-decoration: none;
  border: 1px solid var(--grey-200, #e3e3e3);
  transition: all 0.12s;
}
.chip:hover { background: var(--grey-200, #e3e3e3); }
.chip.active {
  background: var(--navy, #1a1f36);
  color: var(--white, #fff);
  border-color: var(--navy, #1a1f36);
}

/* Inline showroom tag on order cards */
.showroom-chip-inline {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-right: 6px;
  background: var(--grey-100, #f4f5f7);
  color: var(--grey-600, #4a4a4a);
}

/* Tinted variants — Airtable's main palette */
.chip-color-blue,    .showroom-chip-color-blue    { background:#dbeafe; color:#1e3a8a; border-color:#bfdbfe; }
.chip-color-cyan,    .showroom-chip-color-cyan    { background:#cffafe; color:#155e75; border-color:#a5f3fc; }
.chip-color-teal,    .showroom-chip-color-teal    { background:#ccfbf1; color:#115e59; border-color:#99f6e4; }
.chip-color-green,   .showroom-chip-color-green   { background:#dcfce7; color:#14532d; border-color:#bbf7d0; }
.chip-color-yellow,  .showroom-chip-color-yellow  { background:#fef9c3; color:#713f12; border-color:#fef08a; }
.chip-color-orange,  .showroom-chip-color-orange  { background:#ffedd5; color:#7c2d12; border-color:#fed7aa; }
.chip-color-red,     .showroom-chip-color-red     { background:#fee2e2; color:#7f1d1d; border-color:#fecaca; }
.chip-color-pink,    .showroom-chip-color-pink    { background:#fce7f3; color:#831843; border-color:#fbcfe8; }
.chip-color-purple,  .showroom-chip-color-purple  { background:#ede9fe; color:#4c1d95; border-color:#ddd6fe; }
.chip-color-grey,    .showroom-chip-color-grey    { background:#f1f1f1; color:#4a4a4a; border-color:#dcdcdc; }
.chip.active.chip-color-blue,
.chip.active.chip-color-cyan,
.chip.active.chip-color-teal,
.chip.active.chip-color-green,
.chip.active.chip-color-yellow,
.chip.active.chip-color-orange,
.chip.active.chip-color-red,
.chip.active.chip-color-pink,
.chip.active.chip-color-purple,
.chip.active.chip-color-grey {
  filter: brightness(0.85);
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

/* Three-section list */
.order-section { margin-bottom: 28px; }
.section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy, #1a1f36);
  margin: 0 0 4px 0;
}
.section-sub {
  font-size: 0.8rem;
  color: var(--grey-600, #5a5a5a);
  margin: 0 0 12px 0;
}
.section-fallback .section-title { color: var(--warning, #b54708); }

/* Order card right-side meta column */
.order-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--grey-600);
}
.order-appt {
  font-weight: 600;
  color: var(--navy, #1a1f36);
  font-size: 0.85rem;
}
.order-arrival { color: var(--grey-500, #6b6b6b); }

/* Empty mini-state for sections */
.empty-state-mini {
  text-align: center;
  padding: 18px 12px;
  color: var(--grey-500, #6b6b6b);
  font-size: 0.85rem;
  background: var(--grey-50, #fafafa);
  border-radius: var(--radius);
  border: 1px dashed var(--grey-200, #e3e3e3);
}

/* Generic badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--grey-100, #f4f5f7);
  color: var(--grey-600, #4a4a4a);
}
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-active   { background: #dcfce7; color: #14532d; }
.badge-inactive { background: #fee2e2; color: #7f1d1d; }
.badge-admin    { background: #ede9fe; color: #4c1d95; }

/* Detail page — collection card */
.collection-card { padding: 20px; margin-bottom: 20px; }
.collection-form h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy, #1a1f36);
  margin-bottom: 4px;
}
.collection-form p {
  font-size: 0.85rem;
  color: var(--grey-600);
  margin-bottom: 12px;
}
.collection-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--navy);
}
.collection-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--navy, #1a1f36);
}
.collection-confirmed {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 4px 0;
}
.collection-confirmed .check {
  font-size: 1.5rem;
  color: var(--success, #14532d);
  font-weight: 700;
}
.collection-headline { font-weight: 600; color: var(--navy); }
.collection-sub      { font-size: 0.8rem; color: var(--grey-600); }

/* Gated rating form (visually muted until collection confirmed) */
form.gated, .card.gated { opacity: 0.55; pointer-events: none; }
form.gated #submit-btn { pointer-events: auto; }

/* Dashboard summary — additional v2 cards */
.summary-card.warn {
  background: #fef3c7;
  color: #92400e;
}
.nav-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  background: var(--warning, #b54708);
  color: var(--white, #fff);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Issues page */
.issues-list { display: flex; flex-direction: column; gap: 12px; }
.issue-card { padding: 16px 18px; border-left: 4px solid var(--grey-300, #d1d5db); }
.issue-card.issue-resolved { opacity: 0.7; border-left-color: var(--success, #14532d); }
.issue-card.issue-type-sms_failed              { border-left-color: var(--error, #b91c1c); }
.issue-card.issue-type-opt_out_detected        { border-left-color: #b54708; }
.issue-card.issue-type-bounce_back             { border-left-color: #5b21b6; }
.issue-card.issue-type-concurrent_edit_conflict { border-left-color: #1e40af; }
.issue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}
.issue-type-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--grey-100, #f4f5f7);
  color: var(--grey-700, #2c2c2c);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.issue-time { font-size: 0.78rem; color: var(--grey-500); }
.issue-body p { font-size: 0.9rem; color: var(--grey-700); margin-bottom: 4px; }
.issue-meta   { font-size: 0.78rem; color: var(--grey-500); }
.issue-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.resolve-form {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 200px;
}
.resolve-form input[type="text"] {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  font-size: 0.85rem;
}
