/* =========================================
   PIPELINE CRM — style.css
   Estilo Notion/Apple: blanco, negro, grises
   ========================================= */

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

:root {
  --font: 'SF Pro Text', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --sidebar-w: 216px;
  --topbar-h: 52px;

  /* Palette — solo B&W grises excepto tarjetas */
  --bg: #F7F7F7;
  --surface: #FFFFFF;
  --border: #E8E8E8;
  --border-strong: #D1D1D1;

  --text: #0A0A0A;
  --text-2: #444;
  --text-3: #888;
  --text-4: #ADADAD;

  --sidebar-bg: #FAFAFA;
  --sidebar-border: #EBEBEB;
  --nav-hover: rgba(0,0,0,0.04);
  --nav-active-bg: rgba(0,0,0,0.06);
  --nav-active-text: #0A0A0A;

  --accent: #0A0A0A;
  --accent-hover: #2a2a2a;
  --red: #E5484D;

  /* Card colors (solo tarjetas) */
  --c-gray:   #F3F4F6;
  --c-blue:   #EFF6FF;
  --c-green:  #ECFDF5;
  --c-yellow: #FFFBEB;
  --c-orange: #FFF7ED;
  --c-red:    #FEF2F2;

  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-modal: 0 24px 80px rgba(0,0,0,0.14), 0 4px 20px rgba(0,0,0,0.08);
}

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D8D8D8; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #BBBBB; }

/* ============================
   LAYOUT SHELL
   ============================ */

body {
  display: flex;
  height: 100vh;
}

/* ============================
   SIDEBAR
   ============================ */

.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.sidebar-logo-mark {
  font-size: 13px;
  color: var(--text);
  line-height: 1;
}

.sidebar-logo-text {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 8px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 6px 8px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s, color 0.1s;
  position: relative;
}

.nav-item svg { flex-shrink: 0; opacity: 0.6; }
.nav-item span:first-of-type { flex: 1; }

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

.nav-item:hover svg { opacity: 0.8; }

.nav-item.active {
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
  font-weight: 600;
}

.nav-item.active svg { opacity: 1; }

.nav-sub {
  padding-left: 16px;
}

.nav-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #E5484D;
  color: #fff;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-badge:empty { display: none; }

.sidebar-bottom {
  border-top: 1px solid var(--sidebar-border);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.sidebar-action {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  text-align: left;
  width: 100%;
}

.sidebar-action:hover {
  background: var(--nav-hover);
  color: var(--text-2);
}

.sidebar-action-danger:hover {
  color: var(--red);
  background: #FFF0F0;
}

/* ============================
   MAIN WRAP
   ============================ */

.main-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

/* ============================
   TOPBAR
   ============================ */

.topbar {
  height: var(--topbar-h);
  background: rgba(247,247,247,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  flex-shrink: 0;
  z-index: 10;
}

.topbar-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.page-title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.page-meta {
  font-size: 0.75rem;
  color: var(--text-4);
  white-space: nowrap;
}

.topbar-center {
  flex: 1;
  max-width: 360px;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 9px;
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 32px;
  padding: 0 28px 0 31px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

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

.search-input:focus {
  border-color: #BBB;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.clear-search {
  position: absolute;
  right: 7px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-4);
  font-size: 0.72rem;
  padding: 2px 4px;
  border-radius: 3px;
  display: none;
  line-height: 1;
}

.clear-search:hover { color: var(--text); background: var(--border); }
.clear-search.visible { display: block; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* ============================
   VIEWS
   ============================ */

.view { display: none; flex: 1; overflow: hidden; flex-direction: column; }
.view.active { display: flex; }

/* ============================
   PIPELINE VIEW
   ============================ */

.pipeline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 8px;
  flex-shrink: 0;
}

.overdue-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-3);
  cursor: pointer;
  user-select: none;
}

.overdue-label input { accent-color: var(--accent); cursor: pointer; }

.pipeline-total {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 500;
}

.board-scroll {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 20px 24px;
  display: flex;
  gap: 0;
}

.board {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  height: 100%;
}

/* Column */
.column {
  width: 264px;
  min-width: 264px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: calc(100vh - var(--topbar-h) - 80px);
  box-shadow: var(--shadow-sm);
}

.column-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 10px 7px;
  flex-shrink: 0;
}

.column-name {
  flex: 1;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.column-name:hover, .column-name:focus { background: var(--nav-hover); }

.column-count {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-4);
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 99px;
  flex-shrink: 0;
}

.column-value {
  font-size: 0.68rem;
  color: var(--text-4);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-col-delete {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-4);
  font-size: 0.78rem;
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.1s, background 0.1s, color 0.1s;
}

.column:hover .btn-col-delete { opacity: 1; }
.btn-col-delete:hover { background: #FEECEC; color: var(--red); }

.cards-list {
  flex: 1;
  overflow-y: auto;
  padding: 3px 7px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 40px;
}

.cards-list.drag-over {
  background: rgba(0,0,0,0.02);
  border-radius: 6px;
}

.btn-add-card {
  margin: 0 7px 7px;
  width: calc(100% - 14px);
  height: 28px;
  background: none;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.75rem;
  color: var(--text-4);
  cursor: pointer;
  transition: all 0.12s;
  flex-shrink: 0;
}

.btn-add-card:hover {
  border-color: #999;
  color: var(--text-3);
  background: var(--bg);
}

/* Card */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  cursor: pointer;
  transition: box-shadow 0.12s, border-color 0.12s;
  user-select: none;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card.dragging { opacity: 0.45; transform: rotate(1deg) scale(1.02); }

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 2px;
}

.card-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  word-break: break-word;
}

.card-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
  flex-shrink: 0;
}

.card-company {
  font-size: 0.74rem;
  color: var(--text-3);
  margin-bottom: 4px;
}

.card-next-step {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 3px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: 5px;
}

.card-date { font-size: 0.69rem; color: var(--text-4); }
.card-date.overdue { color: var(--red); font-weight: 600; }
.card-date.overdue::before { content: '⚠ '; font-size: 0.65rem; }

.card-tags { display: flex; flex-wrap: wrap; gap: 3px; justify-content: flex-end; }

.tag {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-3);
  background: rgba(0,0,0,0.055);
  padding: 1px 5px;
  border-radius: 99px;
}

.card-placeholder {
  text-align: center;
  padding: 14px 8px;
  font-size: 0.72rem;
  color: var(--text-4);
  pointer-events: none;
}

.add-stage-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 0;
  padding-left: 6px;
}

.btn-add-stage {
  height: 34px;
  padding: 0 14px;
  background: none;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-4);
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
}

.btn-add-stage:hover {
  border-color: #999;
  color: var(--text-3);
  background: var(--surface);
}

/* ============================
   LIST VIEWS (Tabla)
   ============================ */

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.table-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 24px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1px;
}

.data-table thead tr {
  border-bottom: 1px solid var(--border);
}

.data-table th {
  padding: 10px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-4);
  text-align: left;
  letter-spacing: 0.03em;
  white-space: nowrap;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table td {
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tbody tr { background: var(--surface); transition: background 0.1s; }
.data-table tbody tr:hover { background: var(--bg); }

.td-name {
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.td-name:hover { text-decoration: underline; }

.td-link {
  color: var(--text-3);
  text-decoration: none;
  font-size: 0.78rem;
}

.td-link:hover { color: var(--text); text-decoration: underline; }

.td-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-3);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 99px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 10px;
  color: var(--text-4);
  text-align: center;
}

.empty-icon { font-size: 2rem; }
.empty-state p { font-size: 0.82rem; line-height: 1.6; }

/* Row action btn */
.row-action {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-4);
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  transition: background 0.1s, color 0.1s;
  white-space: nowrap;
}

.row-action:hover { background: var(--nav-hover); color: var(--text); }
.row-action.danger:hover { background: #FEECEC; color: var(--red); }

/* ============================
   FILTER TABS (Actividades)
   ============================ */

.filter-tabs {
  display: flex;
  gap: 2px;
  background: var(--border);
  padding: 2px;
  border-radius: var(--radius-sm);
}

.filter-tab {
  padding: 4px 12px;
  background: none;
  border: none;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
}

.filter-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* Activity done row */
.activity-done td { opacity: 0.45; }

.done-check {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
  flex-shrink: 0;
  font-size: 0.7rem;
}

.done-check:hover { border-color: #666; background: var(--bg); }
.done-check.checked { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Activity type pill */
.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-3);
  white-space: nowrap;
}

/* ============================
   PRODUCTS GRID
   ============================ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  align-items: start;
  align-content: start;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: box-shadow 0.12s, border-color 0.12s;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.product-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.product-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.product-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.product-category {
  font-size: 0.73rem;
  color: var(--text-3);
  margin-bottom: 6px;
}

.product-code {
  font-size: 0.7rem;
  color: var(--text-4);
  font-family: monospace;
}

.product-desc {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 6px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.btn-primary {
  height: 30px;
  padding: 0 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-save {
  height: 32px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
}

.btn-save:hover { background: var(--accent-hover); }

.btn-cancel {
  height: 32px;
  padding: 0 14px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.12s;
}

.btn-cancel:hover { border-color: #999; color: var(--text); }

.btn-delete-card {
  height: 32px;
  padding: 0 12px;
  background: none;
  border: 1px solid #FEC9C9;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--red);
  cursor: pointer;
  transition: all 0.12s;
}

.btn-delete-card:hover { background: #FFF2F2; border-color: #FDABAB; }

.btn-danger {
  height: 32px;
  padding: 0 14px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
}

.btn-danger:hover { background: #C93338; }

/* ============================
   MODALS
   ============================ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.3);
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.16s ease;
}

.modal-sm { max-width: 340px; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

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

.modal-header h2 {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-4);
  font-size: 0.9rem;
  padding: 3px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: all 0.1s;
}

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

.modal-body {
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-footer-right { display: flex; gap: 7px; margin-left: auto; }

/* Form */
.form-row { display: flex; flex-direction: column; gap: 5px; }
.form-row label { font-size: 0.74rem; font-weight: 600; color: var(--text-3); }
.required { color: var(--red); }
.hint { font-weight: 400; color: var(--text-4); }

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 7px 9px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
  -webkit-appearance: none;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: #BBB;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23888' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  padding-right: 26px;
  background-color: var(--bg);
  cursor: pointer;
}

.form-row textarea { resize: vertical; min-height: 64px; }

.form-row-split { flex-direction: row; gap: 10px; }
.form-row-split > div { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.form-row-split label { font-size: 0.74rem; font-weight: 600; color: var(--text-3); }

/* Color picker */
.color-picker { display: flex; gap: 7px; flex-wrap: wrap; }
.color-swatch {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.1s;
  outline: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active { border-color: #666; transform: scale(1.15); }

/* Activity type picker */
.type-picker { display: flex; flex-wrap: wrap; gap: 6px; }

.type-btn {
  padding: 5px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.12s;
}

.type-btn:hover { border-color: #999; color: var(--text); }
.type-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Confirm text */
#confirmText {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.5;
}
