:root {
  --cream:         #fdfdfd;
  --ink:           #030203;
  --blue:          #69a3ff;
  --blue-light:    #e8f0ff;
  --salmon:        #ee897c;
  --salmon-light:  #fce9e7;
  --hotpink:       #fa5791;
  --purple:        #7a2e82;
  --purple-light:  #f0ddf2;
  --red:           #C8392B;
  --red-light:     #fce4e1;
  --yellow:        #b86e00;
  --yellow-light:  #fef3d8;
  --muted:         #7a7a8a;
  --border:        #e2dff0;
  --green:         #1a6645;
  --green-light:   #d4f0e4;
  --peach:         #fed5b7;
  --peach-light:   #fff4eb;
  --col-research:  #69a3ff;
  --col-leads:     #7a2e82;
  --col-wip:       #ee897c;
  --col-applied:   #fa5791;
  --col-interview: #1a6645;
  --col-outcomes:  #b86e00;
  --col-archive1:  #7a7a8a;
  --col-archive2:  #7a7a8a;
  --mauve:         #a0527a;
  --mauve-light:   #f5e0ec;
  --card-w:        300px;
  --radius:        12px;
  --shadow:        0 2px 10px rgba(3,2,3,0.07);
  --shadow-hover:  0 6px 24px rgba(3,2,3,0.13);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: #f5f3fb;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}


/* btn-auth, auth-modal: injected by sh-auth-ui.js */

.sync-status { font-size: 11px; color: var(--muted); font-style: italic; opacity: 0; transition: opacity 0.4s; }
.sync-status.visible { opacity: 1; }

/* ── VIEW TOGGLE + TOOLBAR ────────────────────────────────────────── */
.toolbar {
  background: var(--cream);
  border-bottom: 1.5px solid var(--border);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 8px; border: 1.5px solid var(--border);
  background: white; color: var(--muted); cursor: pointer; transition: all 0.15s;
}
.view-btn.active { background: var(--purple); color: white; border-color: var(--purple); }
.toolbar-sep { width: 1px; height: 20px; background: var(--border); }
.btn-add-card {
  font-family: 'DM Sans', sans-serif; font-size: 12.5px; font-weight: 600;
  padding: 6px 14px; border-radius: 8px; border: none;
  background: var(--purple); color: white; cursor: pointer; transition: opacity 0.15s;
  display: flex; align-items: center; gap: 6px;
}
.btn-add-card:hover { opacity: 0.88; }
.btn-add-company { background: var(--blue); }
.btn-add-job { background: var(--purple); }
.search-wrap {
  display: flex; align-items: center; gap: 6px;
  background: white; border: 1.5px solid var(--border);
  border-radius: 8px; padding: 5px 10px; margin-left: auto;
}
.search-wrap input {
  border: none; outline: none; font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: var(--ink); width: 180px; background: transparent;
}
.search-wrap input::placeholder { color: var(--muted); font-style: italic; }

/* ── KANBAN BOARD ─────────────────────────────────────────────────── */
.board-wrap {
  overflow-x: auto;
  padding: 24px;
  min-height: calc(100vh - 120px);
}
.board {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: max-content;
}

/* ── COLUMN ───────────────────────────────────────────────────────── */
.column {
  width: var(--card-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.col-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1.5px solid transparent;
  border-bottom: none;
}
.col-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.col-count {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,0.45);
  padding: 2px 7px; border-radius: 20px;
}
.col-body {
  flex: 1;
  min-height: 120px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.15s;
}
.col-body.drag-over { background: #f0ebff; border-color: var(--purple); }

/* Column accent colours */
.col-research  .col-header { background: var(--blue-light);    border-color: var(--blue);    color: #1a3a7a; }
.col-leads     .col-header { background: var(--purple-light);  border-color: var(--purple);  color: var(--purple); }
.col-wip       .col-header { background: var(--salmon-light);  border-color: var(--salmon);  color: #7a3020; }
.col-applied   .col-header { background: #ffe0ed;              border-color: var(--hotpink); color: #8a1045; }
.col-interview .col-header { background: var(--green-light);   border-color: var(--green);   color: var(--green); }
.col-outcomes  .col-header { background: var(--yellow-light);  border-color: var(--yellow);  color: var(--yellow); }
.col-archive-co .col-header { background: var(--mauve-light);  border-color: var(--mauve);   color: var(--mauve); }
.col-archive-ap .col-header { background: #f0f0f4;              border-color: #c0bdd0;        color: var(--muted); }

/* Col body border matches header accent */
.col-research   .col-body { border-color: var(--blue); }
.col-leads      .col-body { border-color: var(--purple); }
.col-wip        .col-body { border-color: var(--salmon); }
.col-applied    .col-body { border-color: var(--hotpink); }
.col-interview  .col-body { border-color: var(--green); }
.col-outcomes   .col-body { border-color: var(--yellow); }
.col-archive-co .col-body { border-color: var(--mauve); }
.col-archive-ap .col-body { border-color: #c0bdd0; }

/* ── ADD CARD INLINE ──────────────────────────────────────────────── */
.add-card-inline {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: #f8f6ff;
  border: 1.5px dashed var(--border);
  border-radius: 8px;
}
.add-card-inline.open { display: flex; }
.add-card-inline input, .add-card-inline textarea {
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  border: 1.5px solid var(--border); border-radius: 6px;
  padding: 6px 10px; outline: none; resize: none;
  color: var(--ink); background: white;
}
.add-card-inline input:focus,
.add-card-inline textarea:focus { border-color: var(--purple); }
.add-card-inline-btns { display: flex; gap: 6px; }
.btn-inline-save {
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 6px; border: none;
  background: var(--purple); color: white; cursor: pointer;
}
.btn-inline-cancel {
  font-family: 'DM Sans', sans-serif; font-size: 12px;
  padding: 5px 10px; border-radius: 6px; border: 1.5px solid var(--border);
  background: white; color: var(--muted); cursor: pointer;
}
.col-add-btn {
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500;
  color: var(--muted); background: none; border: none; cursor: pointer;
  padding: 6px 4px; text-align: left; display: flex; align-items: center; gap: 5px;
  transition: color 0.15s;
}
.col-add-btn:hover { color: var(--purple); }

/* ── CARD ─────────────────────────────────────────────────────────── */
.card {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px 11px 13px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, transform 0.15s, opacity 0.15s;
  user-select: none;
  position: relative;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.card.dragging { opacity: 0.4; transform: rotate(1.5deg); }
.card.drag-placeholder {
  background: #f0ebff; border: 1.5px dashed var(--purple);
  box-shadow: none; opacity: 0.6;
}
.card-title {
  font-weight: 600; font-size: 13.5px; line-height: 1.4;
  color: var(--ink); margin-bottom: 6px;
}
.card-company {
  font-size: 11.5px; color: var(--muted); margin-bottom: 7px;
  font-style: italic;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 600;
  padding: 5px 12px; border-radius: 20px;
  white-space: nowrap; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  box-sizing: border-box; vertical-align: middle;
}
/* Constrain emoji so ZWJ sequences and color emoji can't inflate pill height */
.tag .tag-emoji, .tag-option .tag-emoji {
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px;
  font-size: 13px; line-height: 1;
  overflow: hidden; flex-shrink: 0;
}
.tag .tag-text, .tag-option .tag-text {
  font-size: 11px; line-height: 1;
}
.tag-bjb-green     { background: var(--green-light);   color: var(--green); }
.tag-bjb-ok        { background: var(--blue-light);    color: #1a3a7a; }
.tag-bjb-warn      { background: var(--yellow-light);  color: var(--yellow); }
.tag-bjb-red       { background: var(--red-light);     color: var(--red); }
.tag-bjb-bingo     { background: var(--red-light);     color: var(--red); }
.tag-bjb-no        { background: var(--red);            color: white; }
.tag-location      { background: var(--blue-light);    color: #1a3a7a; }
.tag-jobtype       { background: var(--purple-light);  color: var(--purple); }
.tag-discipline    { background: var(--salmon-light);  color: #7a3020; }
.tag-level         { background: #ffe0ed;              color: #8a1045; }
.tag-interview     { background: var(--yellow-light);  color: var(--yellow); }
.tag-outcome       { background: var(--mauve-light);   color: var(--mauve); }
.tag-outcome-hired      { background: var(--green-light);  color: var(--green); }
.tag-outcome-offered    { background: var(--blue-light);   color: #1a3a7a; }
.tag-outcome-declined   { background: var(--yellow-light); color: var(--yellow); }
.tag-outcome-nothired   { background: var(--salmon-light); color: #7a3020; }
.tag-outcome-notconsidered { background: #f0f0f4;          color: var(--muted); }
.tag-outcome-noanswer   { background: #f0f0f4;             color: var(--muted); }
.tag-outcome-ghosted    { background: #efe8f5;             color: #6a2a7a; }
.tag-salary        { background: var(--green-light);   color: var(--green); }
.tag-custom        { background: var(--peach-light);   color: #7a4a10; }

/* Research column tag colours */
.tag-research-blue   { background: var(--blue-light);   color: #1a3a7a; }
.tag-research-purple { background: var(--purple-light); color: var(--purple); }
.tag-research-green  { background: var(--green-light);  color: var(--green); }
.tag-research-yellow { background: var(--yellow-light); color: var(--yellow); }
.tag-research-red    { background: var(--red-light);    color: var(--red); }
.tag-research-teal   { background: #e0f5f5;             color: #1a6a6a; }
.tag-research-peach  { background: var(--peach-light);  color: #7a4a10; }

/* Research tag group button colours */
.tg-companyType       .tag-group-btn { background: var(--blue-light);   color: #1a3a7a;       border-color: var(--blue); }
.tg-companyOutlook    .tag-group-btn { background: var(--purple-light); color: var(--purple); border-color: var(--purple); }
.tg-culture           .tag-group-btn { background: var(--green-light);  color: var(--green);  border-color: var(--green); }
.tg-workingConditions .tag-group-btn { background: #ffe0ed;             color: #8a1045;       border-color: var(--hotpink); }
.tg-benefits          .tag-group-btn { background: #e0f5f5;             color: #1a6a6a;       border-color: #5ababa; }
.tg-compensation      .tag-group-btn { background: var(--green-light);  color: var(--green);  border-color: var(--green); }
.tg-perks             .tag-group-btn { background: var(--peach-light);  color: #7a4a10;       border-color: var(--peach); }

.tg-companyType.open       .tag-group-body { border: 1.5px solid var(--blue);    border-top: none; }
.tg-companyOutlook.open    .tag-group-body { border: 1.5px solid var(--purple);  border-top: none; }
.tg-culture.open           .tag-group-body { border: 1.5px solid var(--green);   border-top: none; }
.tg-workingConditions.open .tag-group-body { border: 1.5px solid var(--hotpink); border-top: none; }
.tg-benefits.open          .tag-group-body { border: 1.5px solid #5ababa;        border-top: none; }
.tg-compensation.open      .tag-group-body { border: 1.5px solid var(--green);   border-top: none; }
.tg-perks.open             .tag-group-body { border: 1.5px solid var(--peach);   border-top: none; }
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--muted); margin-top: 6px;
}
.card-meta-left { display: flex; align-items: center; gap: 6px; }
.card-due { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.card-due.due-soon { color: var(--yellow); font-weight: 600; }
.card-due.overdue  { color: var(--red);    font-weight: 600; }
.list-move-btn {
  opacity: 0; background: none; border: 1px solid var(--border);
  border-radius: 6px; cursor: pointer; font-size: 14px;
  padding: 2px 6px; color: var(--muted); transition: all 0.12s;
  white-space: nowrap;
}
.list-move-btn:hover { background: var(--purple-light); color: var(--purple); border-color: var(--purple); }
.list-table tr:hover .list-move-btn { opacity: 1; }
.cell-move { width: 40px; text-align: center; position: relative; padding: 0 8px !important; }
.card-move-btn {
  position: absolute; top: 8px; right: 8px;
  font-size: 13px; background: none; border: none;
  cursor: pointer; color: var(--muted); opacity: 0;
  transition: opacity 0.15s; padding: 2px 4px; border-radius: 4px;
}
.card:hover .list-move-btn {
  opacity: 0; background: none; border: 1px solid var(--border);
  border-radius: 6px; cursor: pointer; font-size: 14px;
  padding: 2px 6px; color: var(--muted); transition: all 0.12s;
  white-space: nowrap;
}
.list-move-btn:hover { background: var(--purple-light); color: var(--purple); border-color: var(--purple); }
.list-table tr:hover .list-move-btn { opacity: 1; }
.cell-move { width: 40px; text-align: center; position: relative; padding: 0 8px !important; }
.card-move-btn { opacity: 1; }
.card-move-btn:hover { background: var(--border); color: var(--purple); }
.modal-links-preview { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.modal-link-row { display: flex; align-items: center; gap: 6px; }
.modal-link-item {
  display: flex; align-items: center; gap: 8px; flex: 1;
  padding: 7px 12px; border-radius: 8px;
  background: var(--purple-light); border: 1.5px solid var(--border);
  text-decoration: none; color: var(--purple);
  font-size: 13px; font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.modal-link-item:hover { background: var(--purple); color: white; border-color: var(--purple); }
.modal-link-icon { font-size: 13px; flex-shrink: 0; }
.modal-link-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-link-arrow { font-size: 12px; opacity: 0.6; flex-shrink: 0; }
.card-checklist-preview {
  font-size: 11px; color: var(--muted);
  display: flex; align-items: center; gap: 4px; margin-top: 3px;
}

/* ── LIST VIEW ────────────────────────────────────────────────────── */
.list-view { display: none; padding: 24px; max-width: 1200px; margin: 0 auto; }
.list-view.active { display: block; }
.board-wrap.list-mode { display: none; }

.list-section { margin-bottom: 28px; }
.list-section-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: var(--radius) var(--radius) 0 0;
  font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; user-select: none;
  border: 1.5px solid transparent; border-bottom: none;
}
.list-section-header .toggle-icon { font-size: 11px; transition: transform 0.2s; margin-left: auto; }
.list-section-header.collapsed .toggle-icon { transform: rotate(-90deg); }
.list-table-wrap {
  overflow-x: auto;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
}
.list-table {
  width: 100%; border-collapse: collapse;
  background: white; border: none;
}
.list-table th {
  font-size: 11px; font-weight: 600; color: var(--muted);
  padding: 8px 14px; text-align: left; background: #f8f6ff;
  border-bottom: 1.5px solid var(--border); white-space: nowrap; overflow: hidden;
}
.list-table td {
  font-size: 13px; padding: 10px 14px;
  border-bottom: 1px solid var(--border); vertical-align: middle;
}
.list-table td.cell-title  { min-width: 140px; }
.list-table td.cell-tags   { width: 1px; white-space: nowrap; padding-right: 20px; }
.list-table td:nth-child(3){ width: 1px; white-space: nowrap; padding-right: 20px; }
.list-table td:nth-child(4){ min-width: 140px; max-width: 200px; }

.list-table tr:last-child td { border-bottom: none; }
.list-table tr { cursor: pointer; transition: background 0.1s; }
.list-table tr:hover td { background: #f8f6ff; }
.list-empty { padding: 16px; text-align: center; color: var(--muted); font-style: italic; font-size: 13px; background: white; }

/* ── MODAL ────────────────────────────────────────────────────────── */
.modal-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(3,2,3,0.35); z-index: 500;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--cream); border-radius: 18px;
  box-shadow: 0 20px 60px rgba(3,2,3,0.18);
  width: 100%; max-width: 620px;
  max-height: 90vh; overflow-y: auto;
  animation: modal-in 0.2s ease;
  position: relative;
}
@keyframes modal-in {
  from { transform: translateY(16px) scale(0.98); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.modal-header {
  padding: 20px 24px 12px;
  border-bottom: 1.5px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.modal-header-top { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.modal-tag-strip {
  display: flex; flex-wrap: wrap; gap: 4px;
  min-height: 0;
}
.modal-tag-strip:empty { display: none; }
.modal-col-badge {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
}
.modal-title-input {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
  border: none; border-bottom: 2px solid var(--border);
  outline: none; background: transparent;
  width: 100%; min-height: 2em; resize: none; line-height: 1.5;
  padding: 4px 0 6px; display: block; transition: border-color 0.15s;
  overflow: hidden;
}
.modal-title-input:focus { border-bottom-color: var(--purple); }
.modal-title-input::placeholder { color: var(--muted); font-style: italic; font-weight: 400; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 20px; cursor: pointer;
  color: var(--muted); line-height: 1; padding: 4px 6px; border-radius: 6px;
}
.modal-close:hover { background: var(--border); color: var(--ink); }
.modal-body { padding: 16px 24px; display: flex; flex-direction: column; gap: 18px; }
.modal-section-label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px;
}
.modal-field { display: flex; flex-direction: column; gap: 6px; }
.modal-input, .modal-textarea, .modal-select {
  font-family: 'DM Sans', sans-serif; font-size: 13.5px; color: var(--ink);
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 8px 12px; outline: none; background: white;
  transition: border-color 0.15s;
}
.modal-input:focus, .modal-textarea:focus, .modal-select:focus { border-color: var(--purple); }
.modal-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.modal-input::placeholder, .modal-textarea::placeholder { color: var(--muted); font-style: italic; }

/* Tag picker — compact pill buttons with dropdown */
.tag-groups-wrap {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px;
  align-items: flex-start;
}

/* Each tag group shrinks to its content */
.tag-group { flex: 0 0 auto; }
.tag-group.open { flex: 0 0 100%; }

/* The pill button */
.tag-group-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px; font-weight: 600;
  cursor: pointer; padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: white; color: var(--muted);
  user-select: none; white-space: nowrap;
  display: inline-block;
  transition: all 0.12s;
  text-align: left;
  line-height: 1.4;
}
.tag-group-btn:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-light); }
.tag-group.open .tag-group-btn {
  display: block; width: 100%; box-sizing: border-box;
  border-radius: 8px 8px 0 0; border-bottom: none;
  text-align: left;
}
.tag-group-btn.has-selection { border-color: currentColor; }

/* Per-group colours */
.tg-bjb        .tag-group-btn { background: var(--red-light);    color: var(--red);    border-color: var(--red); }
.tg-location   .tag-group-btn { background: var(--blue-light);   color: #1a3a7a;       border-color: var(--blue); }
.tg-jobType    .tag-group-btn { background: var(--purple-light); color: var(--purple); border-color: var(--purple); }
.tg-discipline .tag-group-btn { background: var(--salmon-light); color: #7a3020;       border-color: var(--salmon); }
.tg-roleLevel  .tag-group-btn { background: #ffe0ed;             color: #8a1045;       border-color: var(--hotpink); }
.tg-salary     .tag-group-btn { background: var(--green-light);  color: var(--green);  border-color: var(--green); }
.tg-interview  .tag-group-btn { background: var(--yellow-light); color: var(--yellow); border-color: var(--yellow); }
.tg-outcome    .tag-group-btn { background: var(--mauve-light);  color: var(--mauve);  border-color: var(--mauve); }
.tg-custom     .tag-group-btn { background: var(--peach-light);  color: #7a4a10;       border-color: var(--peach); }

/* Tag group body — hidden until open */
.tag-group-body { display: none; padding: 8px; background: white; border-radius: 0 0 8px 8px; }
.tag-group.open .tag-group-body { display: block; }

.tg-bjb.open        .tag-group-body { border: 1.5px solid var(--red);      border-top: none; }
.tg-location.open   .tag-group-body { border: 1.5px solid var(--blue);     border-top: none; }
.tg-jobType.open    .tag-group-body { border: 1.5px solid var(--purple);   border-top: none; }
.tg-discipline.open .tag-group-body { border: 1.5px solid var(--salmon);   border-top: none; }
.tg-roleLevel.open  .tag-group-body { border: 1.5px solid var(--hotpink);  border-top: none; }
.tg-salary.open     .tag-group-body { border: 1.5px solid var(--green);    border-top: none; }
.tg-interview.open  .tag-group-body { border: 1.5px solid var(--yellow);   border-top: none; }
.tg-outcome.open    .tag-group-body { border: 1.5px solid var(--mauve);    border-top: none; }
.tg-custom.open     .tag-group-body { border: 1.5px solid var(--peach);    border-top: none; }

.tag-group-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.tag-picker { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-option {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 600;
  padding: 5px 12px; border-radius: 20px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer; border: 1.5px solid transparent;
  transition: all 0.12s; opacity: 0.55;
  box-sizing: border-box; vertical-align: middle;
}
.tag-option.selected { opacity: 1; border-color: currentColor; }
.tag-option:hover { opacity: 0.85; }
.custom-tag-wrap { display: flex; gap: 6px; margin-top: 6px; }
.custom-tag-input {
  font-family: 'DM Sans', sans-serif; font-size: 12px;
  border: 1.5px solid var(--border); border-radius: 6px;
  padding: 4px 10px; outline: none; flex: 1; color: var(--ink);
}
.custom-tag-input:focus { border-color: var(--purple); }
.btn-add-tag {
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 6px; border: 1.5px solid var(--purple);
  background: white; color: var(--purple); cursor: pointer;
}
.btn-add-tag:hover { background: var(--purple-light); }

/* Checklist */
.checklist-items { display: flex; flex-direction: column; gap: 5px; }
.checklist-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px; border-radius: 6px; background: white;
  border: 1.5px solid var(--border);
}
.checklist-item input[type="checkbox"] {
  width: 15px; height: 15px; accent-color: var(--purple); cursor: pointer; flex-shrink: 0;
}
.checklist-item-text {
  flex: 1; font-size: 13px; border: none; outline: none;
  background: transparent; color: var(--ink);
}
.checklist-item-text.done { text-decoration: line-through; color: var(--muted); }
.checklist-item-del {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 14px; padding: 0 2px;
}
.checklist-item-del:hover { color: var(--red); }
.link-items { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.link-item { display: flex; align-items: center; gap: 6px; }
.link-input {
  font-family: 'DM Sans', sans-serif; font-size: 12px;
  border: 1.5px solid var(--border); border-radius: 6px;
  padding: 4px 8px; outline: none; color: var(--ink);
  transition: border-color 0.12s;
}
.link-input:focus { border-color: var(--purple); }
.link-label { width: 110px; flex-shrink: 0; }
.link-url   { flex: 1; }
.link-open {
  font-size: 14px; color: var(--purple); text-decoration: none;
  flex-shrink: 0; line-height: 1; padding: 2px;
  transition: opacity 0.12s;
}
.link-open:hover { opacity: 0.7; }

.btn-add-checklist {
  font-size: 12px; font-weight: 500; color: var(--purple);
  background: none; border: none; cursor: pointer; padding: 4px 0;
  text-align: left; display: flex; align-items: center; gap: 4px;
}
.btn-add-checklist:hover { text-decoration: underline; }

/* Move column dropdown in modal */
.modal-move-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; background: #f8f6ff;
  border: 1.5px solid var(--border); border-radius: 8px;
}
.modal-move-row label { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.modal-move-select {
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  border: 1.5px solid var(--border); border-radius: 6px;
  padding: 5px 10px; outline: none; background: white;
  color: var(--ink); flex: 1; min-width: 0; cursor: pointer;
}
.modal-move-select:focus { border-color: var(--purple); }
.btn-move-card {
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 6px; border: none;
  background: var(--purple); color: white; cursor: pointer;
}
.btn-move-card:hover { opacity: 0.88; }

/* BJB link */
.bjb-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--purple);
  text-decoration: none; padding: 6px 12px;
  border: 1.5px solid var(--purple); border-radius: 8px;
  background: var(--purple-light); transition: all 0.15s;
}
.bjb-link:hover { background: var(--purple); color: white; }

/* Modal footer */
.modal-footer {
  padding: 14px 24px 20px;
  border-top: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.btn-save-card {
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  padding: 8px 20px; border-radius: 8px; border: none;
  background: var(--purple); color: white; cursor: pointer;
}
.btn-save-card:hover { opacity: 0.88; }
.btn-delete-card {
  font-family: 'DM Sans', sans-serif; font-size: 12px;
  padding: 7px 14px; border-radius: 8px;
  border: 1.5px solid var(--border); background: white;
  color: var(--red); cursor: pointer;
}
.btn-delete-card:hover { border-color: var(--red); background: var(--red-light); }

/* ── EMPTY STATE ──────────────────────────────────────────────────── */
.col-empty {
  text-align: center; color: var(--muted); font-size: 12px;
  font-style: italic; padding: 16px 8px;
}

/* ── MOVE DROPDOWN POPUP ──────────────────────────────────────────── */
.move-popup {
  display: none; position: fixed;
  background: white; border: 1.5px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow-hover);
  z-index: 1000; min-width: 200px; padding: 6px 0;
}
.move-popup.open { display: block; }
.move-popup-item {
  font-size: 12.5px; padding: 7px 14px; cursor: pointer;
  color: var(--ink); transition: background 0.1s; white-space: nowrap;
}
.move-popup-item:hover { background: var(--purple-light); color: var(--purple); }
.move-popup-item.current { color: var(--muted); font-style: italic; cursor: default; }
.move-popup-item.current:hover { background: none; color: var(--muted); }
.card-relative { position: relative; }

/* ── SCROLLBAR ────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #c0bdd0; }

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .board-wrap { padding: 14px; }
  .list-view { padding: 14px; }
  :root { --card-w: 260px; }
}

  /* ── LIST SORT ────────────────────────────────────────────────── */
  .list-table th {
    cursor: pointer; user-select: none; position: relative; white-space: nowrap;
  }
  .list-table th:hover { background: #ede8f8; }
  .sort-icon { margin-left: 5px; opacity: 0.4; font-size: 10px; }
  .sort-icon.asc  { opacity: 1; }
  .sort-icon.desc { opacity: 1; }

  /* ── DENSITY ──────────────────────────────────────────────────── */
  .density-btn { font-size: 13px; padding: 5px 8px; }

  /* Compact: title + tags only */
  .density-compact .card-company,
  .density-compact .card-meta,
  .density-compact .card-notes-preview { display: none !important; }
  .density-compact .card { padding: 8px 10px; }
  .density-compact .card-title { font-size: 12.5px; margin-bottom: 4px; }
  .density-compact .card-tags { margin-bottom: 0; }

  /* Comfortable: notes preview + larger everything */
  .density-comfortable .card { padding: 14px 15px; }
  .density-comfortable .card-title { font-size: 15px; margin-bottom: 5px; }
  .density-comfortable .card-company { font-size: 13px; margin-bottom: 8px; }
  .density-comfortable .card-tags { gap: 5px; margin-bottom: 8px; }
  .density-comfortable .card-tags .tag { padding: 6px 13px; gap: 5px; }
  .density-comfortable .card-tags .tag .tag-text { font-size: 12px; }
  .density-comfortable .card-tags .tag .tag-emoji { font-size: 14px; width: 14px; height: 14px; }
  .density-comfortable .card-meta { font-size: 12.5px; margin-top: 6px; }
  .density-comfortable .card-notes-preview { display: -webkit-box !important; }

  /* Notes preview — hidden by default, shown in comfortable */
  .card-notes-preview {
    display: none;
    font-size: 12px; color: var(--muted); line-height: 1.5;
    margin: 5px 0 2px; padding: 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
