/* Inter Variable — same font Linear uses */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

/* ─────────────────────────────────────────────────────────────────
   DESIGN TOKENS — extracted directly from linear.app CSS variables
   bg-primary #08090a · fg-primary #f7f8f8 · accent #7170ff
───────────────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:        #08090a;   /* --color-bg-primary */
  --surface:   #1c1c1f;   /* --color-bg-secondary */
  --surface2:  #232326;   /* --color-bg-tertiary */
  --surface3:  #28282c;   /* --color-bg-quaternary */

  /* Borders */
  --border:    #23252a;   /* --color-border-primary */
  --border2:   #34343a;   /* --color-border-secondary */
  --border3:   #3e3e44;   /* --color-border-tertiary */

  /* Text */
  --text:      #f7f8f8;   /* --color-fg-primary  (Mercury White) */
  --text2:     #d0d6e0;   /* --color-fg-secondary */
  --muted:     #8a8f98;   /* --color-fg-tertiary */
  --faint:     #62666d;   /* --color-fg-quaternary */

  /* Accent — Linear's brand indigo */
  --accent:       #7170ff;   /* --color-accent */
  --accent2:      #828fff;   /* --color-accent-hover */
  --accent-glow:  rgba(113,112,255,.14);

  /* Semantic */
  --success:  #27a644;   /* --color-green */
  --warning:  #f59e0b;
  --error:    #eb5757;   /* --color-red */

  /* Geometry */
  --radius:    8px;
  --radius-sm: 6px;
  --radius-lg: 12px;   /* --app-radius */

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.6);
  --shadow:    0 4px 16px rgba(0,0,0,.6);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.8);
}

/* ── Base ── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ─────────────────────────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────────────────────────── */
.page-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.page-full { min-height: 100vh; display: flex; flex-direction: column; }

/* ─────────────────────────────────────────────────────────────────
   TOPBAR
───────────────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 48px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.topbar-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.topbar-title::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  flex-shrink: 0;
}

.topbar-actions { display: flex; gap: 6px; align-items: center; }

.topbar-client {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 8px;
}

/* ─────────────────────────────────────────────────────────────────
   CONTENT
───────────────────────────────────────────────────────────────── */
.content { flex: 1; padding: 24px 24px; overflow-y: auto; }

.page-title  { font-size: 17px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.02em; }
.page-sub    { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

/* ─────────────────────────────────────────────────────────────────
   CARD
───────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.login-card { width: 100%; max-width: 360px; }

.login-card h1 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.025em;
}

.login-card p { color: var(--muted); margin-bottom: 28px; font-size: 13px; line-height: 1.6; }

/* ─────────────────────────────────────────────────────────────────
   FORM ELEMENTS
───────────────────────────────────────────────────────────────── */
label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0 12px;
  height: 38px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

input::placeholder { color: var(--faint); }

input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--surface2) inset !important;
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
}

select option { background: var(--surface2); }
.form-group { margin-bottom: 16px; }

/* ─────────────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all .12s;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.005em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.btn-primary:hover:not(:disabled) { background: var(--accent2); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) {
  color: var(--text2);
  border-color: var(--border2);
  background: var(--surface2);
}

.btn-success {
  background: var(--success);
  color: #fff;
  height: 36px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
}
.btn-success:hover:not(:disabled) { background: #229a3d; }

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

/* ─────────────────────────────────────────────────────────────────
   ALERTS
───────────────────────────────────────────────────────────────── */
.alert-error {
  background: rgba(235,87,87,.08);
  border: 1px solid rgba(235,87,87,.2);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ─────────────────────────────────────────────────────────────────
   DROP ZONE
───────────────────────────────────────────────────────────────── */
.drop-zone {
  border: 1px dashed var(--border2);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  background: var(--surface);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.drop-zone-icon { font-size: 22px; margin-bottom: 2px; }
.drop-zone h3   { font-size: 13px; font-weight: 500; color: var(--text2); }
.drop-zone p    { font-size: 12px; color: var(--faint); }

#file-input { display: none; }

/* ─────────────────────────────────────────────────────────────────
   QUEUE LIST
───────────────────────────────────────────────────────────────── */
.queue {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}

.queue::-webkit-scrollbar { width: 4px; }
.queue::-webkit-scrollbar-track { background: transparent; }
.queue::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

.queue-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  color: var(--faint);
  font-size: 13px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ─────────────────────────────────────────────────────────────────
   QUEUE ITEM CARD
───────────────────────────────────────────────────────────────── */
.queue-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
}

/* Header: thumb + name + × */
.qi-head {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.qi-thumb {
  width: 68px;
  height: 50px;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  background: var(--surface2);
  border: 1px solid var(--border);
  cursor: zoom-in;
  display: block;
  transition: opacity .12s;
}
.qi-thumb:hover { opacity: .75; }

.qi-name-input {
  width: 100%;
  height: 34px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.qi-name-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.qi-remove {
  background: none;
  border: none;
  color: var(--faint);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  transition: all .1s;
  flex-shrink: 0;
}
.qi-remove:hover { color: var(--error); background: rgba(235,87,87,.1); }

/* Body section */
.qi-body {
  border-top: 1px solid var(--border);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qi-field { display: flex; flex-direction: column; gap: 4px; }

.qi-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.qi-label-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: .75;
}

.qi-input {
  width: 100%;
  height: 34px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0 10px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.qi-input::placeholder { color: var(--faint); }
.qi-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.qi-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qi-row3 { display: flex; gap: 8px; align-items: flex-end; }

/* ─────────────────────────────────────────────────────────────────
   BACKGROUND COLOR FIELD
───────────────────────────────────────────────────────────────── */
.qi-bg-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 108px;
  flex-shrink: 0;
}

.qi-bg-swatch {
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}

.qi-bg-input {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  text-transform: uppercase;
  width: 60px;
  padding: 0;
  outline: none;
  letter-spacing: .04em;
}

/* ─────────────────────────────────────────────────────────────────
   CUSTOM DATETIME PICKER
───────────────────────────────────────────────────────────────── */

/* Trigger */
.dtp-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .12s, background .12s;
  user-select: none;
  flex: 1;
}
.dtp-trigger:hover { border-color: var(--border2); background: var(--surface3); }
.dtp-trigger.has-value { border-color: var(--accent); background: var(--accent-glow); }

.dtp-icon    { font-size: 13px; flex-shrink: 0; line-height: 1; }
.dtp-text    { flex: 1; font-size: 13px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtp-trigger.has-value .dtp-text { color: var(--text); }
.dtp-chevron { font-size: 10px; color: var(--faint); flex-shrink: 0; }

/* Floating panel */
.dtp-panel {
  width: 272px;
  background: var(--surface);
  border: 1px solid var(--border3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: dtpIn .1s ease;
}

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

/* Month header */
.dtp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 6px;
}

.dtp-month-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.dtp-nav {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  line-height: 1;
  transition: all .1s;
  font-family: inherit;
}
.dtp-nav:hover { color: var(--text); border-color: var(--border2); background: var(--surface3); }

/* Day-name row */
.dtp-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 4px 12px 2px;
}

.dtp-day-name {
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 0;
}

/* Day grid */
.dtp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 10px 6px;
  gap: 1px;
}

.dtp-cell {
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  color: var(--text2);
  padding: 6px 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .08s, color .08s;
}

.dtp-cell.dtp-empty { cursor: default; }

.dtp-cell:not(.dtp-empty):not(.dtp-past):hover {
  background: var(--surface3);
  color: var(--text);
}

.dtp-cell.dtp-today {
  color: var(--accent2);
  font-weight: 600;
}

.dtp-cell.dtp-selected {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.dtp-cell.dtp-past { color: var(--faint); opacity: .4; cursor: default; }

.dtp-divider { height: 1px; background: var(--border); margin: 2px 0; }

/* Time picker */
.dtp-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
}

.dtp-time-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.dtp-time-controls { display: flex; align-items: center; gap: 4px; }

.dtp-spinner { display: flex; flex-direction: column; align-items: center; gap: 2px; }

.dtp-spin-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  width: 22px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  font-size: 9px;
  font-family: inherit;
  transition: all .08s;
  line-height: 1;
}
.dtp-spin-btn:hover { color: var(--text); border-color: var(--border2); background: var(--surface3); }

.dtp-time-val {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  min-width: 38px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Fira Code', monospace;
  letter-spacing: -0.02em;
}

.dtp-colon {
  font-size: 20px;
  font-weight: 600;
  color: var(--border3);
  margin: 0 1px 16px;
}

/* Footer */
.dtp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 12px;
  border-top: 1px solid var(--border);
}

.dtp-clear {
  background: none;
  border: none;
  color: var(--faint);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  transition: all .1s;
}
.dtp-clear:hover { color: var(--error); background: rgba(235,87,87,.08); }

.dtp-confirm {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all .12s;
}
.dtp-confirm:hover:not(:disabled) { background: var(--accent2); }
.dtp-confirm:disabled { opacity: .3; cursor: default; }

/* ─────────────────────────────────────────────────────────────────
   UPLOAD FOOTER
───────────────────────────────────────────────────────────────── */
.upload-footer {
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  flex-shrink: 0;
}

.queue-count { font-size: 12px; color: var(--faint); }

#importBtn { height: 34px; padding: 0 20px; font-size: 13px; font-weight: 600; }

/* ─────────────────────────────────────────────────────────────────
   SAME-LINK SUGGESTION
───────────────────────────────────────────────────────────────── */
.same-link-suggestion {
  margin-top: 4px;
  font-size: 11px;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 8px;
}

.same-link-suggestion button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 2px 9px;
  font-size: 11px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
}
.same-link-suggestion button:hover { background: var(--accent2); }

/* ─────────────────────────────────────────────────────────────────
   RECENT LINK CHIPS
───────────────────────────────────────────────────────────────── */
.link-chip {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  transition: all .1s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
  font-family: inherit;
}
.link-chip:hover { border-color: var(--accent); color: var(--text2); }

/* ─────────────────────────────────────────────────────────────────
   CLIENT PICKER
───────────────────────────────────────────────────────────────── */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.client-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px;
  text-align: left;
  cursor: pointer;
  transition: all .12s;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.client-card:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-1px);
}

.client-card-name { font-size: 13px; font-weight: 500; color: var(--text); }

.client-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent2);
  background: rgba(113,112,255,.12);
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .05em;
}

.topbar-client .client-card-tag { margin-left: 2px; }

/* ─────────────────────────────────────────────────────────────────
   PROGRESS CARDS
───────────────────────────────────────────────────────────────── */
.progress-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
  transition: border-color .2s;
}

.progress-card.card-done        { border-color: rgba(39,166,68,.35); }
.progress-card.card-error       { border-color: rgba(235,87,87,.35); }
.progress-card.card-needs-links { border-color: rgba(245,158,11,.35); }

.progress-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.progress-card-name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }

.progress-card-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
}

.progress-card-badge.queued      { background: var(--surface2); color: var(--muted); }
.progress-card-badge.active      { background: rgba(113,112,255,.12); color: var(--accent2); }
.progress-card-badge.done        { background: rgba(39,166,68,.12); color: var(--success); }
.progress-card-badge.error       { background: rgba(235,87,87,.12); color: var(--error); }
.progress-card-badge.needs-links { background: rgba(245,158,11,.12); color: var(--warning); }

.progress-bar-wrap { margin-bottom: 8px; }

.progress-bar-track { height: 2px; background: var(--surface2); border-radius: 2px; overflow: hidden; }

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .3s ease;
}

.progress-card-msg { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.progress-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.error-debug {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  color: #fca5a5;
  background: rgba(235,87,87,.07);
  border: 1px solid rgba(235,87,87,.15);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 10px;
  white-space: pre-wrap;
  word-break: break-all;
  cursor: pointer;
  user-select: all;
  width: 100%;
}
.error-debug:hover { background: rgba(235,87,87,.12); }
.error-debug.copied::after { content: ' ✓ Copied'; color: #86efac; }

/* ─────────────────────────────────────────────────────────────────
   LINKS FORM  (progress page)
───────────────────────────────────────────────────────────────── */
.links-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.links-form-title { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.links-section { margin-bottom: 16px; }
.links-section-label {
  font-size: 10px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 500;
  margin-bottom: 8px;
}
.links-row { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.links-cell { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px; }
.links-thumb { width: 100%; max-width: 200px; border-radius: 5px; border: 1px solid var(--border); }
.links-input { font-size: 13px; padding: 0 10px; height: 34px; }

/* ─────────────────────────────────────────────────────────────────
   HISTORY TABLE
───────────────────────────────────────────────────────────────── */
.history-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 4px; }

.history-table th {
  text-align: left;
  color: var(--faint);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 0 16px 12px 0;
  border-bottom: 1px solid var(--border);
}

.history-table td {
  padding: 11px 16px 11px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.history-table tbody tr:hover td { background: rgba(255,255,255,.015); }
.history-table tr:last-child td { border-bottom: none; }

/* ─────────────────────────────────────────────────────────────────
   UTILITIES
───────────────────────────────────────────────────────────────── */
.text-muted { color: var(--muted); }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
