:root {
  --bg: #0c0c0f;
  --surface: #15151a;
  --surface-2: #1c1c23;
  --surface-3: #24242d;
  --border: #2a2a34;
  --border-strong: #3a3a46;
  --text: #ececf1;
  --muted: #8d8d9b;
  --faint: #5d5d6a;

  --accent: #9b8cff;
  --accent-soft: rgba(155, 140, 255, 0.14);
  --drop: #9b8cff;
  --drop-soft: rgba(155, 140, 255, 0.14);
  --restock: #ff9f43;
  --restock-soft: rgba(255, 159, 67, 0.14);
  --post: #3ccfb4;
  --post-soft: rgba(60, 207, 180, 0.13);
  --idea: #e6b450;
  --idea-soft: rgba(230, 180, 80, 0.13);
  --confirmed: #4cc76a;
  --confirmed-soft: rgba(76, 199, 106, 0.13);
  --posted: #5aa8ff;
  --posted-soft: rgba(90, 168, 255, 0.13);
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, 0.12);

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  --nav-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }

/* ───────────── Shell & navigation ───────────── */
.shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px;
  padding-top: calc(14px + env(safe-area-inset-top));
  background: rgba(12, 12, 15, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; letter-spacing: 0.14em; font-size: 15px; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  color: var(--muted); font-weight: 500; font-size: 14px;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-3); }
.nav svg { width: 18px; height: 18px; }
.topbar .spacer { flex: 1; }

.main { max-width: 820px; margin: 0 auto; padding: 28px 20px 60px; }

@media (max-width: 720px) {
  .topbar { padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); }
  .topbar .nav { display: none; }
  .main { padding: 20px 16px calc(var(--nav-h) + 40px + env(safe-area-inset-bottom)); }
  .bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: flex; justify-content: space-around;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(18, 18, 22, 0.92);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
  }
  .bottomnav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--faint); font-size: 11px; font-weight: 500;
  }
  .bottomnav a.active { color: var(--text); }
  .bottomnav a.active svg { color: var(--accent); }
  .bottomnav svg { width: 22px; height: 22px; }
}
@media (min-width: 721px) { .bottomnav { display: none; } }

/* ───────────── Page header ───────────── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.page-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.head-actions { display: flex; gap: 8px; }

/* ───────────── Buttons & inputs ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 15px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface-2);
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #12101f; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn.small { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.icon { width: 34px; padding: 0; }
.btn.block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  border: 0; background: transparent; color: var(--faint); cursor: pointer; flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn.danger:hover { color: var(--danger); background: var(--danger-soft); }
.icon-btn svg { width: 16px; height: 16px; }

.input, .textarea, .select {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  outline: none; transition: border-color 0.15s, background 0.15s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); background: var(--surface-2); }
.textarea { resize: none; min-height: 84px; overflow: hidden; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
input[type="date"].input { min-height: 42px; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.7); cursor: pointer; }
.select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }

/* Inline "looks like text until you click" fields */
.ghost-input {
  width: 100%; border: 1px solid transparent; background: transparent;
  border-radius: 8px; padding: 4px 8px; margin-left: -8px; outline: none;
}
.ghost-input:hover { background: var(--surface-2); }
.ghost-input:focus { background: var(--surface-2); border-color: var(--border-strong); }
.title-input { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }

.label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }

/* ───────────── Chips / tags ───────────── */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.03em; white-space: nowrap;
  background: var(--surface-3); color: var(--muted); border: 1px solid transparent;
}
.chip.drop { background: var(--drop-soft); color: var(--drop); }
.chip.restock { background: var(--restock-soft); color: var(--restock); }
.chip.post { background: var(--post-soft); color: var(--post); }
.chip.idea { background: var(--idea-soft); color: var(--idea); }
.chip.confirmed { background: var(--confirmed-soft); color: var(--confirmed); }
.chip.posted { background: var(--posted-soft); color: var(--posted); }
.chip.soon { background: var(--danger-soft); color: var(--danger); }
.chip svg { width: 12px; height: 12px; }

/* Toggleable chip groups (format / platform / state pickers) */
.pick-group { display: flex; flex-wrap: wrap; gap: 6px; }
.pick {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 500; transition: all 0.12s;
}
.pick:hover { border-color: var(--border-strong); color: var(--text); }
.pick.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.pick.on.idea { border-color: var(--idea); background: var(--idea-soft); }
.pick.on.confirmed { border-color: var(--confirmed); background: var(--confirmed-soft); }
.pick.on.posted { border-color: var(--posted); background: var(--posted-soft); }
.pick svg { width: 15px; height: 15px; }

/* ───────────── Board cards ───────────── */
.filters { display: flex; gap: 6px; margin-bottom: 14px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.card {
  position: relative; display: flex; gap: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  cursor: pointer;
}
.card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.card::before {
  content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--drop);
}
.card.post::before { background: var(--post); }
.card.restock::before { background: var(--restock); }
.card .handle {
  display: grid; place-items: center; width: 34px; flex-shrink: 0;
  color: var(--faint); cursor: grab; touch-action: none;
}
.card .handle:hover { color: var(--text); }
.card .handle svg { width: 18px; height: 18px; }
.card-body { flex: 1; min-width: 0; padding: 14px 16px 14px 0; }
.card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.card-title { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.card-title.untitled { color: var(--faint); }
.card-desc {
  color: var(--muted); font-size: 14px; margin: 2px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; align-items: center; gap: 14px; margin-top: 10px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.card-meta .meta { display: inline-flex; align-items: center; gap: 5px; }
.card-meta svg { width: 14px; height: 14px; }
.date-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.date-pill strong { color: var(--text); font-weight: 600; }
.countdown { font-size: 12px; color: var(--faint); }
.countdown.near { color: var(--idea); }
.countdown.past { color: var(--danger); }
.progress { display: inline-flex; align-items: center; gap: 7px; }
.progress-bar { width: 64px; height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress-bar > div { height: 100%; background: var(--confirmed); border-radius: 99px; }
.sortable-ghost { opacity: 0.35; }
.sortable-chosen { border-color: var(--accent) !important; }
.sortable-drag { box-shadow: var(--shadow); }

.empty {
  text-align: center; padding: 56px 20px; color: var(--muted);
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
}
.empty h3 { margin: 0 0 4px; color: var(--text); font-size: 17px; }
.empty p { margin: 0 0 16px; font-size: 14px; }

/* ───────────── Detail page ───────────── */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 18px; cursor: pointer; background: none; border: 0; padding: 0; }
.back:hover { color: var(--text); }
.back svg { width: 16px; height: 16px; }
.detail-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.detail-head .spacer { flex: 1; }
.detail-date { display: flex; align-items: center; gap: 10px; margin: 6px 0 22px; flex-wrap: wrap; }
.detail-date .input { width: auto; }

.section {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; margin-bottom: 16px;
}
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.section-head h2 .count { color: var(--faint); font-weight: 500; }
.section-head h2 { white-space: nowrap; }
.section-head h2 svg { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }
.section-head .actions { display: flex; gap: 6px; }

/* Checklist */
.checklist { display: flex; flex-direction: column; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-radius: 8px; }
.check-row .ghost-input { margin-left: 0; }
.check-row.done .ghost-input { color: var(--faint); text-decoration: line-through; }
.check-row .icon-btn { opacity: 0; }
.check-row:hover .icon-btn, .check-row:focus-within .icon-btn { opacity: 1; }
@media (hover: none) { .check-row .icon-btn { opacity: 1; } }
.checkbox {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 6px; cursor: pointer;
  border: 1.5px solid var(--border-strong); background: transparent;
  display: grid; place-items: center; color: #0c0c0f; padding: 0;
}
.checkbox.on { background: var(--confirmed); border-color: var(--confirmed); }
.checkbox svg { width: 13px; height: 13px; }
.add-row { display: flex; gap: 8px; margin-top: 8px; }
.add-row .input { padding: 8px 12px; }

/* Products */
.products { display: flex; flex-direction: column; gap: 14px; }
.product { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--bg); }
.product-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.product-head .ghost-input { font-weight: 600; margin-left: 0; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo { display: flex; flex-direction: column; gap: 6px; }
.photo-img {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  background: var(--surface-2); cursor: zoom-in;
}
.photo-img img { width: 100%; height: 100%; object-fit: cover; }
.photo-img .icon-btn { position: absolute; top: 6px; right: 6px; background: rgba(0, 0, 0, 0.6); color: #fff; opacity: 0; }
.photo:hover .photo-img .icon-btn { opacity: 1; }
@media (hover: none) { .photo-img .icon-btn { opacity: 1; } }
.photo .ghost-input { font-size: 13px; color: var(--muted); margin-left: 0; padding: 4px 6px; }
.photo-add {
  aspect-ratio: 1; border-radius: 10px; border: 1.5px dashed var(--border-strong);
  display: grid; place-items: center; color: var(--muted); cursor: pointer; font-size: 13px; text-align: center;
  background: transparent;
}
.photo-add:hover { border-color: var(--accent); color: var(--text); }
.photo-add svg { display: block; width: 22px; height: 22px; margin: 0 auto 4px; }
.uploading { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 12px; }

/* Post cards */
.posts { display: flex; flex-direction: column; gap: 12px; }
.post-card { border: 1px solid var(--border); border-radius: 12px; background: var(--bg); overflow: hidden; }
.post-summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; }
.post-summary .fmt-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--text); flex-shrink: 0; }
.post-summary .fmt-icon svg { width: 17px; height: 17px; }
.post-summary .info { flex: 1; min-width: 0; }
.post-summary .info .t { font-weight: 600; font-size: 14.5px; text-transform: capitalize; }
.post-summary .info .s { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-summary .chev { color: var(--faint); transition: transform 0.15s; }
.post-summary .chev.open { transform: rotate(180deg); }
.post-summary .chev svg { width: 16px; height: 16px; }
.post-edit { padding: 4px 14px 14px; border-top: 1px solid var(--border); }
.post-edit .field:first-child { margin-top: 12px; }
.platform-icons { display: inline-flex; gap: 4px; }
.platform-icons svg { width: 14px; height: 14px; color: var(--muted); }

.danger-zone { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; margin-top: 24px; }

/* ───────────── Archive ───────────── */
.month-group { margin-bottom: 26px; }
.month-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin: 0 0 10px 4px; }
.card.archived { opacity: 0.85; }
.card.archived .card-body, .card.no-handle .card-body { padding-left: 16px; }

/* ───────────── Calendar ───────────── */
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-nav .month { font-weight: 600; min-width: 140px; text-align: center; }
.cal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow div { padding: 10px 8px; font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); }
.cal-cell { min-height: 108px; padding: 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); min-width: 0; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.out { background: rgba(0, 0, 0, 0.25); }
.cal-cell.out .num { color: var(--faint); }
.cal-cell .num { font-size: 12.5px; font-weight: 600; color: var(--muted); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 99px; margin-bottom: 4px; }
.cal-cell.today .num { background: var(--accent); color: #12101f; }
.cal-ev {
  display: block; font-size: 11.5px; font-weight: 600; padding: 3px 6px; border-radius: 6px; margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
  background: var(--drop-soft); color: var(--drop);
}
.cal-ev.post { background: var(--post-soft); color: var(--post); }
.cal-ev.restock { background: var(--restock-soft); color: var(--restock); }
.cal-ev.sub { background: var(--surface-3); color: var(--muted); font-weight: 500; }
.cal-ev.expense { background: transparent; color: var(--faint); font-weight: 500; border: 1px dashed var(--border-strong); }
.cal-ev.done { opacity: 0.5; text-decoration: line-through; }
.cal-ev.work { background: var(--confirmed-soft); color: var(--confirmed); }
.post-card.posted .post-summary .t { text-decoration: line-through; color: var(--muted); }
/* Employee on a view-only page: they can look but not change anything */
.view-only input, .view-only textarea, .view-only select, .view-only .checkbox, .view-only .color-btn, .view-only .pick { pointer-events: none; }
.view-only .filters .pick, .view-only .dev-tabs .pick { pointer-events: auto; }
.view-only .edit-only, .view-only .handle, .view-only .box-grip, .view-only .add-row, .view-only .danger-zone,
.view-only .btn.danger, .view-only .icon-btn.danger, .view-only .photo-add, .view-only .dev-empty, .view-only .acct-empty { display: none !important; }
.view-only input::placeholder, .view-only textarea::placeholder { color: transparent; }
.staff-notes { margin-top: 8px; font-size: 13.5px; color: var(--text); white-space: pre-wrap; line-height: 1.45; }
.staff-task .info { cursor: pointer; }
.post-summary .checkbox { margin-right: 2px; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Agenda list (calendar on phones) */
.agenda { display: flex; flex-direction: column; gap: 14px; }
.agenda-day { display: flex; gap: 14px; }
.agenda-date { width: 46px; flex-shrink: 0; text-align: center; padding-top: 4px; }
.agenda-date .d { font-size: 20px; font-weight: 700; line-height: 1.1; }
.agenda-date .w { font-size: 11px; color: var(--faint); text-transform: uppercase; font-weight: 600; letter-spacing: 0.06em; }
.agenda-date.today .d { color: var(--accent); }
.agenda-events { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.agenda-events .cal-ev { font-size: 13.5px; padding: 9px 12px; border-radius: 10px; }
@media (max-width: 720px) { .cal-desktop { display: none; } }
@media (min-width: 721px) { .cal-mobile { display: none; } }

/* ───────────── Expenses ───────────── */
.total-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px; border-radius: var(--radius); margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(155, 140, 255, 0.16), rgba(60, 207, 180, 0.08));
  border: 1px solid var(--border-strong);
}
.total-card .k { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.total-card .v { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.total-card .v small { font-size: 15px; color: var(--muted); font-weight: 500; }
.total-card .side { text-align: right; color: var(--muted); font-size: 13.5px; }
.total-card .side strong { color: var(--text); }

.expense {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: start; gap: 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 12px 12px 0;
}
.expense .handle { display: grid; place-items: center; height: 36px; color: var(--faint); cursor: grab; touch-action: none; }
.expense .handle svg { width: 18px; height: 18px; }
.expense-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.expense-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.expense .name { font-weight: 600; font-size: 15.5px; flex: 1; min-width: 140px; margin-left: 0; }
.money { display: flex; align-items: center; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 0 8px; }
.money:focus-within { border-color: var(--accent); }
.money span { color: var(--muted); }
.money input { width: 76px; border: 0; background: transparent; outline: none; padding: 6px 0; font-weight: 600; text-align: right; }
.money small { color: var(--faint); font-size: 12px; margin-left: 2px; }
.renew { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.renew input { width: auto; padding: 5px 8px; font-size: 13px; min-height: 0 !important; border-radius: 8px; }
.expense .note { font-size: 13px; color: var(--muted); margin-left: 0; min-height: 0; resize: none; }

/* ───────────── Settings ───────────── */
.template { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--bg); margin-bottom: 10px; }
.template-head { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.template-head .ghost-input { font-weight: 600; margin-left: 0; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; flex-wrap: wrap; }
.settings-row .t { font-weight: 600; }
.settings-row .s { color: var(--muted); font-size: 13.5px; }
.storage-bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.storage-bar > div { height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }

/* ───────────── Login ───────────── */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 30px 26px; box-shadow: var(--shadow); }
.login-card .brand { font-size: 22px; margin-bottom: 4px; }
.login-card p { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.error { color: var(--danger); font-size: 13.5px; margin: -4px 0 12px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* ───────────── Overlays ───────────── */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px; animation: fade 0.15s ease;
}
.modal { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.modal h3 { margin: 0 0 6px; font-size: 18px; }
.modal p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); cursor: pointer;
}
.choice:hover { border-color: var(--accent); }
.choice .t { font-weight: 600; }
.choice .s { color: var(--muted); font-size: 13px; }
.choice .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.choice .ic svg { width: 20px; height: 20px; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 12px; object-fit: contain; }
.lightbox .cap { text-align: center; color: var(--muted); margin-top: 12px; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 60;
  bottom: calc(24px + env(safe-area-inset-bottom));
  background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 10px 16px; font-size: 14px; box-shadow: var(--shadow); animation: rise 0.2s ease;
  display: flex; align-items: center; gap: 12px;
}
.toast.err { border-color: var(--danger); }
.toast button { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; padding: 0; }
@media (max-width: 720px) { .toast { bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom)); } }

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

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ───────────── Section switch (Xyled / Social) ───────────── */
.switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.switch a { padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.switch a.on { background: var(--text); color: var(--bg); }
@media (max-width: 720px) { .topbar { justify-content: space-between; } }

/* ───────────── Social: account chips & filters ───────────── */
.acct-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.acct-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px;
  border-radius: 999px; border: 1.5px solid var(--border); background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.12s;
}
.acct-chip.off { opacity: 0.55; }
.acct-chip.off .dot { opacity: 0.5; }
.acct-chip.static { cursor: default; }
.acct-chip.small { height: 22px; padding: 0 8px 0 6px; font-size: 11.5px; gap: 4px; border-width: 1px; }
.acct-chip .dot { width: 9px; height: 9px; border-radius: 99px; flex-shrink: 0; }
.acct-chip.small .dot { width: 7px; height: 7px; }
.acct-chip svg { width: 14px; height: 14px; }
.acct-chip.small svg { width: 11px; height: 11px; }

/* Post rows */
.srow {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
}
.srow:hover { border-color: var(--border-strong); }
.srow .fmt-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); flex-shrink: 0; }
.srow .fmt-icon svg { width: 17px; height: 17px; }
.srow .info { flex: 1; min-width: 0; }
.srow .t { font-weight: 600; font-size: 14.5px; }
.srow .s { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.srow-accts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

/* Account cards */
.acct-card {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 0; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.acct-card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.acct-card::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--acct); }
.acct-card .handle { display: grid; place-items: center; width: 34px; align-self: stretch; color: var(--faint); cursor: grab; touch-action: none; margin-right: -8px; }
.acct-card .handle svg { width: 18px; height: 18px; }
.acct-card .info { flex: 1; min-width: 0; }
.acct-card .t { font-weight: 600; font-size: 16px; }
.acct-card .s { color: var(--muted); font-size: 13px; }
.acct-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.acct-icon svg { width: 21px; height: 21px; }
.acct-icon.big { width: 56px; height: 56px; border-radius: 16px; }
.acct-icon.big svg { width: 28px; height: 28px; }
.acct-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.acct-hero .info { flex: 1; min-width: 0; }
.acct-hero h1 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.acct-hero .s { color: var(--muted); font-size: 14px; }

/* Color swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 34px; height: 34px; border-radius: 99px; border: 2px solid transparent; cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 2px var(--surface);
}
.swatch.on { border-color: var(--text); }
.swatch.custom {
  position: relative; overflow: hidden; display: grid; place-items: center;
  background: conic-gradient(#ff5c5c, #ffd23f, #4cd471, #4ea8ff, #9b8cff, #ff6fb5, #ff5c5c);
}
.swatch.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.ev-dots { display: inline-flex; gap: 2px; margin-right: 5px; vertical-align: 1px; }
.ev-dots i { width: 7px; height: 7px; border-radius: 99px; display: inline-block; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4); }
.head-actions { flex-wrap: wrap; }
.empty h3 { display: flex; align-items: center; justify-content: center; gap: 8px; }
.empty h3 svg { width: 18px; height: 18px; }

/* ───────────── Menus: scrolling nav, counts, To Do button ───────────── */
.topbar .nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topbar .nav::-webkit-scrollbar { display: none; }
.nav a { flex-shrink: 0; }
.badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px;
  border-radius: 99px; background: var(--accent); color: #12101f; font-size: 11px; font-weight: 700; line-height: 1;
}
.todo-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; flex-shrink: 0;
  border: 1px solid var(--border-strong); background: var(--surface-2); font-size: 13px; font-weight: 700;
}
.todo-btn:hover, .todo-btn.on { border-color: var(--accent); }
.todo-btn svg { width: 16px; height: 16px; color: var(--accent); }
@media (max-width: 720px) { .todo-btn-label { display: none; } }
/* Top menu on computers: full labels on wide screens, icons (plus the current tab's name) on medium
   screens, and the scrolling bottom bar on small laptops/tablets — so nothing gets cut off. */
@media (min-width: 1101px) and (max-width: 1599px) {
  .topbar .nav a { padding: 7px 10px; }
  .topbar .nav a:not(.active) .lbl { display: none; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .topbar .nav { display: none; }
  .topbar .switch { margin-left: auto; }
  .main { padding-bottom: calc(var(--nav-h) + 40px); }
  .toast { bottom: calc(var(--nav-h) + 14px); }
  .bottomnav {
    display: flex !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    height: var(--nav-h); overflow-x: auto; scrollbar-width: none;
    background: rgba(18, 18, 22, 0.92); backdrop-filter: blur(14px); border-top: 1px solid var(--border);
  }
  .bottomnav::-webkit-scrollbar { display: none; }
  .bottomnav a {
    flex: 0 0 auto; min-width: 84px; padding: 0 6px; white-space: nowrap;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--faint); font-size: 11px; font-weight: 500;
  }
  .bottomnav a:first-child { margin-left: auto; }
  .bottomnav a:last-child { margin-right: auto; }
  .bottomnav a.active { color: var(--text); }
  .bottomnav a.active svg { color: var(--accent); }
  .bottomnav svg { width: 22px; height: 22px; }
}
.gear-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; flex-shrink: 0; margin-left: auto;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--muted);
}
.todo-btn + .gear-btn { margin-left: 0; }
.gear-btn:hover, .gear-btn.on { color: var(--text); border-color: var(--accent); }
.gear-btn svg { width: 17px; height: 17px; }
@media (max-width: 720px) {
  .topbar { gap: 10px; }
  .topbar .switch { margin-left: auto; }
  .bottomnav { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .bottomnav::-webkit-scrollbar { display: none; }
  .bottomnav a { flex: 1 0 auto; min-width: 74px; padding: 0 6px; white-space: nowrap; }
  .bottomnav .badge { min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
}

/* ───────────── Color picker ───────────── */
.color-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface-2); font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.color-btn:hover { border-color: var(--accent); }
.color-btn .dot { width: 24px; height: 24px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.color-btn .hex { color: var(--muted); font-family: ui-monospace, monospace; text-transform: uppercase; }
.color-modal { max-width: 360px; }
.cp-presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 12px 0 16px; justify-items: center; }
.cp-square { position: relative; height: 180px; border-radius: 12px; cursor: crosshair; touch-action: none; }
.cp-square::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}
.cp-hue {
  position: relative; height: 18px; margin-top: 14px; border-radius: 99px; cursor: pointer; touch-action: none;
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}
.cp-knob {
  position: absolute; width: 22px; height: 22px; border-radius: 99px; transform: translate(-50%, -50%); pointer-events: none;
  border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.5);
}
.cp-bottom { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.cp-preview { display: flex; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-strong); flex-shrink: 0; }
.cp-preview span { width: 34px; height: 38px; }
.cp-hex { font-family: ui-monospace, monospace; text-transform: uppercase; }

/* ───────────── To Do ───────────── */
.todo-add { margin: 0 0 16px; }
.todo-group-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px 4px; }
.task {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 8px 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.task::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--stripe, transparent); }
.task.pri-high { --stripe: var(--danger); }
.task.pri-medium { --stripe: var(--idea); }
.task.pri-low { --stripe: var(--posted); }
.task.due-post { --stripe: var(--post); }
.task .info { flex: 1; min-width: 0; cursor: pointer; }
.task .t { font-weight: 600; font-size: 15px; }
.task .t.untitled { color: var(--faint); }
.task.done .t { color: var(--muted); text-decoration: line-through; }
.task .s { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.task .s:empty { display: none; }
.task .meta { display: inline-flex; align-items: center; gap: 4px; }
.task .meta svg { width: 13px; height: 13px; }
.task .note, .srow .note { color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.task .handle { cursor: grab; touch-action: none; }
.chip.pri-low { background: var(--posted-soft); color: var(--posted); }
.chip.pri-medium { background: var(--idea-soft); color: var(--idea); }
.chip.pri-high { background: var(--danger-soft); color: var(--danger); }
.pick.on.pri-low { border-color: var(--posted); background: var(--posted-soft); }
.pick.on.pri-medium { border-color: var(--idea); background: var(--idea-soft); }
.pick.on.pri-high { border-color: var(--danger); background: var(--danger-soft); }
.cal-ev.task { background: var(--surface-3); color: var(--text); font-weight: 500; border-left: 3px solid var(--accent); }

/* ───────────── Employee logs ───────────── */
.week-title { margin: 4px 0 0; font-size: 26px; letter-spacing: -0.02em; }
.logs { display: flex; flex-direction: column; gap: 8px; }
.log-row {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center;
  padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg);
}
.log-date { width: auto; padding: 5px 8px; font-size: 13px; min-height: 0 !important; border-radius: 8px; }
/* Day picker on a log: the week's days as buttons */
.log-row { grid-template-columns: 1fr auto auto; }
.log-day { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.log-task { grid-column: 1; }
.day-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.day-chip {
  display: flex; flex-direction: column; align-items: center; min-width: 44px; padding: 4px 6px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--muted); font-size: 11px; line-height: 1.2;
}
.day-chip b { font-size: 15px; color: var(--text); }
.day-chip:hover { border-color: var(--accent); }
.day-chip.today { border-color: var(--idea); }
.day-chip.on { background: var(--accent); border-color: var(--accent); color: #12101f; }
.day-chip.on b { color: #12101f; }
.day-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface-2); font-size: 13px; font-weight: 600;
}
.day-pill:hover { border-color: var(--accent); }
.day-pill svg { width: 14px; height: 14px; color: var(--accent); }
.pick-hint { color: var(--idea); font-weight: 600; }
.log-task { margin-left: 0; min-width: 0; }
.log-time { display: flex; align-items: center; gap: 3px; color: var(--muted); font-size: 13px; }
.log-time input { width: 38px; padding: 5px 6px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); text-align: right; outline: none; }
.log-time input:focus { border-color: var(--accent); }
.log-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted); }
.log-total strong { font-size: 22px; color: var(--text); }
.pay-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.receipt-date {
  display: grid; place-items: center; min-width: 58px; height: 40px; padding: 0 8px; border-radius: 10px; flex-shrink: 0;
  background: var(--confirmed-soft); color: var(--confirmed); font-size: 13px;
}
.receipt-paid { color: var(--confirmed); }
.pay-row .money input { width: 100px; }
@media (max-width: 520px) {
  .log-task { grid-column: 1 / -1; }
}

/* ───────────── Spending ───────────── */
.month-bars { display: flex; flex-direction: column; gap: 10px; }
.mbar { display: grid; grid-template-columns: 44px 1fr auto; column-gap: 12px; align-items: center; }
.mbar-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.mbar-track { height: 10px; }
.mbar-fill { display: block; height: 100%; min-width: 2px; background: var(--accent); border-radius: 0 4px 4px 0; }
.mbar-value { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.mbar-split { grid-column: 2 / -1; font-size: 12px; color: var(--faint); }
.seg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.seg button { border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; cursor: pointer; }
.seg button.on { background: var(--surface-3); color: var(--text); }

/* ───────────── Artists ───────────── */
.search {
  display: flex; align-items: center; gap: 8px; padding: 0 12px; margin-bottom: 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.search:focus-within { border-color: var(--accent); }
.search svg { width: 16px; height: 16px; color: var(--faint); }
.search input { flex: 1; border: 0; background: transparent; outline: none; padding: 10px 0; }
.artist-card {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.artist-card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.artist-card::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--acct, transparent); }
.artist-card.archived { opacity: 0.8; }
.avatar {
  width: 48px; height: 48px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  display: grid; place-items: center; background: var(--surface-3); color: var(--muted); font-weight: 700;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.artist-card .info { flex: 1; min-width: 0; }
.artist-card .t { font-weight: 600; font-size: 15.5px; }
.artist-card .s { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.artist-card .s span { display: inline-flex; align-items: center; gap: 4px; }
.artist-card .s svg { width: 13px; height: 13px; }
.contact-icons { display: flex; gap: 2px; flex-shrink: 0; }
.contact-icons a, .contact-icons span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); }
.contact-icons a:hover { background: var(--surface-3); color: var(--text); }
.contact-icons svg { width: 16px; height: 16px; }
.cat-row { display: flex; align-items: center; gap: 8px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.cat-row .ghost-input { margin-left: 0; font-weight: 600; }
.cat-row .handle { cursor: grab; touch-action: none; }
.contact-list, .price-list { display: flex; flex-direction: column; gap: 8px; }
.contact-row { display: grid; grid-template-columns: 130px 1fr auto auto; gap: 8px; align-items: center; }
.contact-row .select, .contact-row .input { padding: 8px 10px; }
.contact-row .select { padding-right: 30px; }
a.icon-btn { color: var(--accent); }
.contact-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.contact-link[href]:hover { border-color: var(--accent); }
.contact-link svg { width: 16px; height: 16px; color: var(--muted); }
.contact-link .k { color: var(--muted); font-size: 13px; width: 80px; flex-shrink: 0; }
.price-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.price-amounts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.price-amounts .money input { width: 64px; }
.price-row .ghost-input { margin-left: 0; }
.price-row .price { padding: 8px 10px; font-weight: 600; }
.price-row.read { grid-template-columns: 1fr auto; padding: 8px 0; border-bottom: 1px solid var(--border); }
.prewrap { white-space: pre-wrap; }

/* ───────────── Links ───────────── */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.link-card {
  display: flex; align-items: center; gap: 2px; padding: 6px; min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.link-card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.link-card .handle { cursor: grab; touch-action: none; }
.link-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px; }
.link-main .info { min-width: 0; display: flex; flex-direction: column; }
.link-main .t { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-main .s { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center; background: var(--surface-3); color: var(--muted); font-weight: 700;
}
.link-icon img { width: 20px; height: 20px; object-fit: contain; }
.photo-cap { font-size: 13px; color: var(--muted); }
.photos .photo-img { touch-action: manipulation; }

/* Artist grid: square tiles, 3 per row */
.artist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.artist-tile { min-width: 0; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.artist-tile .cover {
  position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center;
}
.artist-tile:hover .cover { border-color: var(--border-strong); }
.artist-tile .cover img { width: 100%; height: 100%; object-fit: cover; }
.artist-tile .initials { font-size: 22px; font-weight: 700; color: var(--muted); }
.artist-tile .cat-dots { position: absolute; left: 6px; bottom: 6px; display: flex; gap: 3px; }
.artist-tile .cat-dots i { width: 10px; height: 10px; border-radius: 99px; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55); }
.artist-tile .name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist-tile .sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -3px; }
.artist-tile.archived .cover { opacity: 0.7; }
.artist-tile .btn { align-self: flex-start; }
.job-row { cursor: pointer; padding-right: 10px; }
button.contact-link { width: 100%; text-align: left; cursor: pointer; color: inherit; font: inherit; }
button.contact-link:hover { border-color: var(--accent); }
.contact-icons button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); border: 0; background: none; cursor: pointer; }
.contact-icons button:hover { background: var(--surface-3); color: var(--text); }

/* Partners */
.card.partner.confirmed::before { background: var(--confirmed); }
.card.partner.idea::before { background: var(--idea); }
.card.partner .card-meta strong { color: var(--text); }
.card.partner.archived .card-body { padding-left: 16px; }
.pay-line {
  display: grid; grid-template-columns: auto auto auto 1fr auto; gap: 8px; align-items: center;
  padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg);
}
.pay-line .pay-note { margin-left: 0; min-width: 0; }
.pay-line { grid-template-columns: auto auto auto auto 1fr auto; }
.pay-line.unpaid { border-style: dashed; }
.paid-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.money-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.money-summary div { display: flex; flex-direction: column; }
.money-summary span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.money-summary strong { font-size: 20px; }
.money-summary em { font-style: normal; font-size: 12.5px; }
.owed-out { color: var(--danger); }
.owed-in { color: var(--idea); }
.tile-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.tile-chips .chip { height: 20px; font-size: 10.5px; padding: 0 7px; }
.ship-group { margin-bottom: 14px; }
.ship-group:last-child { margin-bottom: 0; }
.ship-group-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ship-group-head .count { color: var(--faint); }
.task.ship { cursor: pointer; }
.task.ship.confirmed { --stripe: var(--confirmed); }
.task.ship.idea { --stripe: var(--idea); }
.task .chev { color: var(--faint); display: grid; }
.task .chev svg { width: 16px; height: 16px; }
/* Social account groups */
.acct-group { margin-bottom: 18px; }
.acct-group-head { display: flex; align-items: center; gap: 6px; margin: 0 0 8px 2px; }
.acct-group-head .ghost-input { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); max-width: 260px; margin-left: -6px; }
.acct-group-head .unsorted { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); }
.acct-group-head .count { color: var(--faint); font-size: 13px; }
.acct-group-head .icon-btn { margin-left: auto; }
.acct-list { min-height: 12px; }
.acct-drop-hint { margin: -4px 0 0 4px; }
.acct-card .d, .acct-desc { color: var(--faint); font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acct-desc { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
/* Notes tab */
/* Xyled home: columns on a computer */
.main:has(.home-grid), .main:has(.home-top), .main:has(.home-boxes), .main:has(.home-cal) { max-width: 1320px; }
.home-grid { display: grid; gap: 16px; align-items: start; }
.home-col { min-width: 0; display: flex; flex-direction: column; }
.home-col > .section:last-child { margin-bottom: 0; }
@media (min-width: 860px) { .home-grid { grid-template-columns: 1fr 1fr; } .home-col:first-child { grid-row: span 2; } }
@media (min-width: 1180px) { .home-grid { grid-template-columns: 1.15fr 1fr 1fr; } .home-col:first-child { grid-row: auto; } }
.home-card .section-head h2 { white-space: normal; min-width: 0; }
.section-head > .btn, .section-head .actions { flex-shrink: 0; }
/* Board card photo preview */
.card-thumb { width: 76px; height: 76px; flex-shrink: 0; align-self: center; margin-right: 12px; border-radius: 10px; overflow: hidden; background: var(--surface-3); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 520px) { .card-thumb { width: 60px; height: 60px; } }
/* Xyled home */
.home-card .section-head .btn svg { width: 14px; height: 14px; }
.home-next { margin-top: 14px; opacity: 0.45; filter: grayscale(0.6); }
.home-next .card { pointer-events: auto; }
.home-posts { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.home-post {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg); font-size: 13px; color: var(--muted);
}
.home-post .meta { display: inline-flex; align-items: center; gap: 5px; }
.home-post svg { width: 14px; height: 14px; }
.home-post .chip { margin-left: auto; }
.home-due {
  display: flex; align-items: center; gap: 8px; width: 100%; margin-bottom: 10px; padding: 10px 12px; cursor: pointer;
  border: 1px solid var(--post); border-radius: 10px; background: var(--post-soft); color: var(--text); font-weight: 600; font-size: 14px;
}
.home-due svg { width: 16px; height: 16px; color: var(--post); }
.home-logs { border-color: var(--accent); background: linear-gradient(135deg, rgba(155, 140, 255, 0.12), var(--surface)); }
.home-ship-title { color: var(--muted); font-weight: 500; }
/* Owner previewing the employee view */
.staff-banner {
  position: sticky; top: 63px; z-index: 19; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 16px; background: var(--idea-soft); border-bottom: 1px solid var(--idea); color: var(--idea); font-size: 13.5px; font-weight: 600;
}
.staff-banner span { display: inline-flex; align-items: center; gap: 6px; }
.staff-banner svg { width: 16px; height: 16px; }
/* Outreach */
.outreach-row { cursor: pointer; }
.outreach-row.pending { --stripe: var(--idea); }
.outreach-row.yes { --stripe: var(--confirmed); }
.outreach-row.contacted { --stripe: var(--posted); }
.outreach-row.no { --stripe: var(--danger); opacity: 0.75; }
.owner-reply { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--text); background: var(--surface-2); border-radius: 8px; padding: 6px 10px; }
.owner-reply svg { width: 13px; height: 13px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.owner-reply.big { font-size: 14.5px; padding: 10px 12px; margin-top: 10px; }
.decision-box.pending { border-color: var(--idea); }
.decision-box.yes, .decision-box.contacted { border-color: var(--confirmed); }
.decision-box.no { border-color: var(--danger); }
.decision-text { margin: 0; font-weight: 600; }
.pick.on.no { border-color: var(--danger); background: var(--danger-soft); }
.contacted-toggle { margin-top: 14px; gap: 8px; cursor: pointer; font-weight: 600; }
/* Ideas */
.idea-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 8px; }
.idea-line { display: flex; align-items: center; gap: 4px; }
.idea-line .handle { cursor: grab; touch-action: none; }
.idea-title { font-weight: 600; margin-left: 0; min-width: 0; }
.idea-line .icon-btn.has { color: var(--accent); }
.idea-preview { margin: 0 8px 4px 38px; font-size: 13px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.dev-ideas .add-row { margin-bottom: 10px; }
/* Development: Products | Posts, split down the middle (one at a time on phones) */
.dev-tabs { margin-bottom: 16px; }
.dev-split { display: grid; gap: 16px; align-items: start; }
.dev-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dev-col > .section { margin-bottom: 0; }
.dev-col-title { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dev-col-title svg { width: 16px; height: 16px; }
@media (min-width: 1000px) {
  .dev-tabs { display: none; }
  .dev-split { grid-template-columns: 1fr 1fr; gap: 0; }
  .dev-col.products { padding-right: 22px; }
  .dev-col.posts { padding-left: 22px; border-left: 1px solid var(--border); min-height: 100%; }
  .main:has(.dev-split) { max-width: 1560px; }
}
@media (max-width: 999px) {
  .dev-split.show-products .dev-col.posts, .dev-split.show-posts .dev-col.products { display: none; }
  .dev-col-title { display: none; }
}
.post-plats { display: flex; align-items: center; gap: 5px; color: var(--muted); }
.post-plats svg { width: 14px; height: 14px; }
.spam-tag { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: var(--danger-soft, rgba(255, 92, 92, .15)); color: var(--danger, #ff5c5c); }
.pick.on.spam-pick { border-color: var(--danger, #ff5c5c); background: var(--danger-soft, rgba(255, 92, 92, .15)); }
.pick.on.post-idea { border-color: var(--idea); background: var(--idea-soft); }
.pick.on.post-making { border-color: var(--posted); background: var(--posted-soft); }
.pick.on.post-ready { border-color: var(--confirmed); background: var(--confirmed-soft); }
.drop-label { display: inline-flex; align-items: center; font-weight: 700; font-size: 14px; }
.dev-working > .drop-group + .drop-group { margin-top: 18px; }
.dev-ideas .idea-card { background: var(--bg); }
.idea-details { margin: 4px 0 2px; font-size: 14px; color: var(--muted); min-height: 0; }
.idea-links { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.idea-links .link-icon { width: 26px; height: 26px; border-radius: 7px; font-size: 12px; }
.idea-links .link-icon img { width: 16px; height: 16px; }
.idea-links a:hover .link-icon { box-shadow: 0 0 0 1px var(--accent); }
.idea-links-more { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 4px; background: none; border: 0; cursor: pointer; }
.idea-links-edit { display: flex; flex-direction: column; gap: 6px; margin: 4px 4px 6px; }
.idea-link-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.idea-link-row .link-icon { width: 26px; height: 26px; border-radius: 7px; font-size: 12px; }
.idea-link-row .link-icon img { width: 16px; height: 16px; }
.idea-link-row a { flex: 1; min-width: 0; font-size: 13.5px; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idea-links-edit .add-row { margin: 0; }
@media (max-width: 520px) { .idea-links a:nth-child(n+3) { display: none; } }
.page-head p svg { width: 13px; height: 13px; vertical-align: -2px; }
.paid-so-far { margin: 14px 0 0 4px; }
.cat-label { display: flex; align-items: center; gap: 7px; }
.cat-label i { width: 9px; height: 9px; border-radius: 99px; display: inline-block; }
.home-outreach .info { cursor: pointer; }
.home-outreach .chev { cursor: pointer; transition: transform 0.15s; }
.home-outreach .chev.open { transform: rotate(180deg); }
.home-outreach-body { margin-top: 10px; cursor: default; font-size: 14px; }
.home-outreach-body p { margin: 0 0 6px; }
.home-reply { margin-top: 8px; padding: 8px 10px; font-size: 13.5px; min-height: 0; }
.job-pay { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.job-pay .money input { width: 100%; }
.link-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px 4px; }
.home-toggle { height: 28px; font-size: 12px; padding: 0 10px; }
.home-toggle svg { width: 13px; height: 13px; }
/* Home: calendar next to To Do, then the boxes */
.home-filter { align-self: center; }
.home-top { display: grid; gap: 16px; align-items: start; margin-bottom: 16px; }
.home-top > .section { margin-bottom: 0; }
@media (min-width: 1000px) { .home-top { grid-template-columns: 2fr 1fr; } }
.home-cal .cal-cell { min-height: 82px; }
.home-cal .cal { border-radius: 10px; }
.home-cal .cal-nav .month { min-width: 120px; }
.home-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.home-link {
  display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; min-width: 0;
  border: 1px solid var(--border); background: var(--bg); font-size: 13px; font-weight: 600;
}
.home-link:hover { border-color: var(--accent); }
.home-link span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-link .link-icon { width: 28px; height: 28px; border-radius: 8px; }
.home-link .link-icon img { width: 16px; height: 16px; }
/* Home has no tab menu of its own */
@media (max-width: 1100px) { .no-nav .main { padding-bottom: 60px; } }
.switch { flex-wrap: nowrap; }
@media (max-width: 720px) {
  .topbar:has(.switch) .brand { display: none; }   /* the switch already says where you are */
  .topbar .eye-btn { display: none; }               /* "Employee view" is in Settings on phones */
  .topbar .switch { margin-left: 0; }
  .topbar:has(.switch) .todo-btn { margin-left: auto; }
  .home-cal .section-head { flex-wrap: wrap; }
  .home-cal .cal-nav { flex-wrap: wrap; }
}
@media (max-width: 999px) { .home-top > .home-col { order: -1; } }  /* To Do above the calendar on phones */
@media (max-width: 720px) { .switch a { padding: 5px 10px; } }
.add-home { flex-shrink: 0; height: 40px; }
.task .off-home { color: var(--faint); }
@media (max-width: 520px) { .add-home { padding: 0 9px; font-size: 0; gap: 0; } .add-home svg { width: 16px; height: 16px; } }
/* Subscriptions: monthly purple, yearly teal */
.expense { position: relative; }
.expense::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--bill); }
.expense.monthly { --bill: var(--accent); }
.expense.yearly { --bill: var(--post); background: linear-gradient(90deg, rgba(60, 207, 180, 0.07), var(--surface) 40%); }
.expense .money small { color: var(--bill); font-weight: 700; }
.expense .seg button.on { background: var(--bill); color: #12101f; }
.billing-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-left: auto; margin-right: 10px; }
.billing-key i { width: 9px; height: 9px; border-radius: 99px; display: inline-block; }
.billing-key i.monthly { background: var(--accent); }
.billing-key i.yearly { background: var(--post); margin-left: 6px; }
/* Home boxes flow into columns on a computer */
.home-boxes { columns: 3 320px; column-gap: 16px; }
.home-box { break-inside: avoid; }
.home-box > .section { margin-bottom: 16px; }
.home-box > .acct-block { margin-bottom: 16px; }
/* Arranging Home: groups with a divider line, boxes with a drag handle */
.home-group-line { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.home-group-line::after { content: ''; flex: 1; height: 1px; background: var(--border-strong); }
.home-group-line .ghost-input { flex: 0 1 260px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text); }
.home-group-line.none { color: var(--faint); }
.home-section + .home-section { margin-top: 6px; }
.home-boxes.arranging { min-height: 70px; border: 1px dashed var(--border); border-radius: var(--radius); padding: 10px 10px 0; margin-bottom: 14px; }
.box-grip { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 6px; padding: 6px; border-radius: 9px; background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 600; cursor: grab; touch-action: none; user-select: none; }
.box-grip svg { width: 14px; height: 14px; }
.arrange-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--accent); font-size: 13px; color: var(--muted); }
.arrange-bar span { flex: 1; min-width: 200px; }
.btn.icon.on { color: var(--accent); border-color: var(--accent); }
.home-head-actions { align-items: center; }
.switch a .badge { margin-left: 5px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; vertical-align: 1px; }
.home-filter .pick svg { width: 13px; height: 13px; }
.home-filter .pick:not(.on) { opacity: 0.7; }
.home-money strong { font-size: 24px; letter-spacing: -0.01em; }
.home-money span { color: var(--muted); font-size: 13px; }
.home-charges { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.home-charge { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 9px; background: var(--bg); border-left: 3px solid var(--accent); font-size: 13.5px; }
.home-charge.yearly { border-left-color: var(--post); }
.home-ideas { margin: 0; padding-left: 18px; color: var(--text); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.home-notes { white-space: pre-wrap; font-size: 14px; color: var(--muted); }
.home-settings { max-width: 460px; max-height: 86vh; overflow-y: auto; }
.hs-group { margin-top: 12px; }
.hs-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.hs-row .t { display: block; font-weight: 600; font-size: 14px; }
.hs-row .s { display: block; font-size: 12.5px; color: var(--muted); }
/* Development */
.dev-grid { display: grid; gap: 16px; align-items: start; }
.dev-grid > .section, .dev-side > .section { margin-bottom: 0; }
.dev-side { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1000px) { .dev-grid { grid-template-columns: 1.6fr 1fr; } .main:has(.dev-grid) { max-width: 1200px; } }
.dev-boards { display: flex; flex-direction: column; gap: 10px; }
.dev-board { border: 1px solid var(--border); border-left: 3px solid var(--board); border-radius: 12px; background: var(--bg); padding: 8px 10px; }
.dev-board-head { display: flex; align-items: center; gap: 6px; }
.dev-board-head .ghost-input { font-weight: 700; margin-left: 0; min-width: 0; }
.dev-board-head .countdown { white-space: nowrap; flex-shrink: 0; }
.dev-board-head .handle { cursor: grab; touch-action: none; }
.dev-board-head .chev { display: grid; transition: transform 0.15s; }
.dev-board-head .chev.open { transform: rotate(180deg); }
.dev-board.open .photos { margin-top: 8px; }
.dev-board-foot { margin-top: 10px; }
.dev-strip { display: flex; gap: 6px; margin-top: 6px; overflow: hidden; cursor: pointer; }
.dev-thumb { width: 56px; height: 56px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); font-size: 13px; font-weight: 700; }
.dev-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dev-empty { margin-top: 6px; width: 100%; padding: 10px; border: 1.5px dashed var(--border-strong); border-radius: 10px; background: none; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; }
.dev-empty:hover { border-color: var(--accent); color: var(--text); }
.dev-empty svg { width: 15px; height: 15px; }
.free-idea .idea-line .chip { flex-shrink: 0; }
.dev-products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 520px) { .dev-products { grid-template-columns: repeat(3, 1fr); } }
.dev-product .initials svg { width: 30px; height: 30px; color: var(--faint); }
.dev-product .chip { height: 20px; font-size: 10.5px; padding: 0 7px; }
.pick.on.sample-none { border-color: var(--idea); background: var(--idea-soft); }
.pick.on.sample-ordered { border-color: var(--posted); background: var(--posted-soft); }
.pick.on.sample-made { border-color: var(--confirmed); background: var(--confirmed-soft); }
.home-dev-products { display: flex; flex-direction: column; gap: 6px; }
.home-dev-product { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 9px; background: var(--bg); border: 1px solid var(--border); cursor: pointer; font-size: 13.5px; font-weight: 600; }
.home-dev-product:hover { border-color: var(--accent); }
.home-dev-product .drop-tag { display: inline-flex; margin-left: 8px; }
.drop-groups { display: flex; flex-direction: column; }
.drop-groups:not(:empty) + .drop-group { margin-top: 18px; }
.drop-groups > .drop-group + .drop-group { margin-top: 18px; }
.drop-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.drop-head .drop-name { flex: 1; min-width: 120px; font-weight: 700; font-size: 15px; }
.drop-head .drop-count { margin-right: 4px; }
.drop-head .has-notes { color: var(--accent); }
.drop-none { font-weight: 700; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.drop-notes { margin-bottom: 10px; }
.drop-notes-preview { margin-bottom: 10px; padding: 8px 10px; border-radius: 9px; background: var(--bg); border: 1px solid var(--border); font-size: 13px; color: var(--muted); white-space: pre-wrap; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dev-products:empty { min-height: 64px; border: 1px dashed var(--border); border-radius: 12px; }
.dev-products:empty::before { content: 'Drag products here, or tap + to add one'; grid-column: 1 / -1; align-self: center; text-align: center; font-size: 12.5px; color: var(--faint); }
.drop-tag { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.drop-tag i, .drop-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.drop-dot { margin-right: 6px; }
.drop-head .color-btn .hex { display: none; }
@media (max-width: 600px) {
  .dev-working .section-head { flex-wrap: wrap; }
  .drop-head .drop-count, .drop-head .lbl { display: none; }
  .drop-head .drop-name { min-width: 0; }
}
.free-idea-body { padding: 6px 4px 4px; }
.day-select { width: auto; padding: 5px 30px 5px 8px; font-size: 13px; border-radius: 8px; }
.notes-page { min-height: 60vh; font-size: 15.5px; line-height: 1.6; padding: 16px; }
@media (max-width: 520px) { .pay-line { grid-template-columns: 1fr auto; } .money-summary { grid-template-columns: 1fr; } }
.small-total { font-size: 16px !important; margin-left: 4px; }
@media (max-width: 520px) {
  .pay-line { grid-template-columns: 1fr auto; }
  .pay-line .pay-note { grid-column: 1 / -1; }
  .price-row { grid-template-columns: 1fr auto; }
  .price-amounts { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 520px) {
  .contact-row { grid-template-columns: 1fr auto auto; }
  .contact-row .select { grid-column: 1 / -1; }
  .price-row { grid-template-columns: 1fr 100px auto; }
}

/* Social → Posts: a block per account with what's next to post */
.acct-blocks { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
.acct-block { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--acct); border-radius: var(--radius); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.acct-block-head { display: flex; align-items: center; gap: 6px; }
.acct-block-head .handle { cursor: grab; touch-action: none; margin-left: -6px; }
.acct-block-name { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer; }
.acct-block-name .info { min-width: 0; }
.acct-block-name .t { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-block-name .s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-block-head .count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.acct-block.due { border-color: var(--acct); background: color-mix(in srgb, var(--acct) 12%, var(--surface)); box-shadow: 0 0 0 1px var(--acct), 0 6px 24px -10px var(--acct); }
.acct-block.due .queue-row:first-of-type { border-color: color-mix(in srgb, var(--acct) 55%, var(--border)); }
.due-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--acct); color: #0c0c0f; white-space: nowrap; }
.hs-acct { align-items: center; }
.hs-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.queue-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); min-width: 0; }
.queue-row .handle { cursor: grab; touch-action: none; margin: 0 -4px; }
.queue-row .info { flex: 1; min-width: 0; cursor: pointer; }
.queue-row .t { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-row .t .fmt { display: inline-flex; color: var(--muted); }
.queue-row .t .fmt svg { width: 14px; height: 14px; }
.queue-row .s { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.queue-row .faint { color: var(--faint); }
.queue-row .also { display: inline-flex; align-items: center; gap: 3px; }
.queue-row .also i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.queue-row .chip { flex-shrink: 0; }
.acct-next { display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 13px; color: var(--faint); cursor: pointer; min-width: 0; }
.acct-next .lbl { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0; }
.acct-next .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-next:hover { color: var(--muted); }
.acct-more { align-self: flex-start; background: none; border: 0; color: var(--muted); font-size: 12px; padding: 0 10px; cursor: pointer; }
.acct-empty { border: 1px dashed var(--border); border-radius: 10px; background: none; color: var(--faint); padding: 12px; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.acct-empty svg { width: 14px; height: 14px; }
.archive-post { display: flex; align-items: center; gap: 8px; }
.archive-post .srow { flex: 1; min-width: 0; }
.posted-pick .tick-ring { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: inline-block; }
.pick.on.posted-pick { border-color: var(--confirmed); background: var(--confirmed-soft); }
@media (max-width: 520px) {
  .social-head .head-actions .lbl { display: none; }
  .archive-post { flex-direction: column; align-items: stretch; }
}
@media (min-width: 1000px) { .main:has(.acct-blocks) { max-width: 1240px; } }

/* Settings → Employees */
.emp-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px 12px; }
.emp-home-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.emp-home-row .handle { cursor: grab; touch-action: none; }
.emp-home-row .t { font-weight: 600; font-size: 14px; }

/* Outreach quick reasons */
.reason-chip { background: var(--accent-soft, rgba(155, 140, 255, .15)); color: var(--accent); }
.reason-row { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.reason-line { display: flex; align-items: center; gap: 6px; }
.reason-line .ghost-input { flex: 1; font-weight: 600; }
.reason-line .handle { cursor: grab; touch-action: none; }
.reason-detail { gap: 8px; font-size: 13px; color: var(--muted); }

/* Quick links on To Do tasks */
.task-links { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.task-links .link-icon { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }
.task-links .link-icon img { width: 16px; height: 16px; }
.task-links a:hover .link-icon { box-shadow: 0 0 0 1px var(--accent); }
