:root {
  --purple: #2d2621;
  --purple-mid: #ff0068;
  --purple-light: #fad1d4;
  --lime: #ff0068;
  --lime-dark: #cc0054;
  --white: #fff;
  --bg: #f9f7ef;
  --border: #e8d5c0;
  --text: #2d2621;
  --muted: #a58b74;

  --s-new: #a1a1a1;
  --s-approved: #327888;
  --s-in_progress: #ab7a10;
  --s-to_review: #5f3f8b;
  --s-corrections: #93105a;
  --s-done: #496225;
  --s-rejected: #9d0707;
  --s-postponed: #463531;

  --c-new: #a1a1a1;
  --c-approved: #327888;
  --c-in_progress: #ab7a10;
  --c-to_review: #5f3f8b;
  --c-corrections: #93105a;
  --c-done: #496225;
  --c-rejected: #9d0707;
  --c-postponed: #463531;

  --p-high-bg: #FFE4E6; --p-high-text: #BE123C;
  --p-medium-bg: #FEF3C7; --p-medium-text: #92400E;
  --p-low-bg: #DCFCE7; --p-low-text: #166534;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); }
a { text-decoration: none; color: inherit; }

/* ── LOGIN ─────────────────────────────────────── */
body.login-page {
  background: var(--purple);
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
}
.login-card {
  width: 320px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.login-logo { text-align: center; color: white; }
.login-logo-text { font-size: 28px; font-weight: 300; letter-spacing: -0.5px; }
.login-logo-text strong { font-weight: 700; }
.login-tagline { font-size: 12px; opacity: .6; margin-top: 2px; letter-spacing: 2px; text-transform: uppercase; }
.login-form { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.login-form input {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.12); color: white;
  font-size: 14px; outline: none;
}
.login-form input::placeholder { color: rgba(255,255,255,.5); }
.login-form input:focus { border-color: var(--lime); }
.btn-login {
  width: 100%; padding: 13px; border-radius: 10px; border: none;
  background: var(--lime); color: #fff; font-size: 15px;
  font-weight: 700; cursor: pointer; margin-top: 4px;
  transition: background .15s;
}
.btn-login:hover { background: var(--lime-dark); }
.btn-login-outline {
  display: block; width: 100%; padding: 13px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.25); background: transparent;
  color: rgba(255,255,255,.85); font-size: 15px; font-weight: 600;
  cursor: pointer; margin-top: 10px; text-align: center;
  text-decoration: none; box-sizing: border-box;
  transition: border-color .15s, color .15s;
}
.btn-login-outline:hover { border-color: rgba(255,255,255,.6); color: #fff; }
.login-error { color: #FCA5A5; font-size: 13px; text-align: center; }
.login-signup { color: rgba(255,255,255,.6); font-size: 13px; text-align: center; margin-top: 16px; }
.login-signup a { color: var(--lime); }
.login-back { text-align: center; margin-top: 12px; }
.login-back a { color: rgba(255,255,255,.35); font-size: 12px; text-decoration: none; }
.login-back a:hover { color: rgba(255,255,255,.65); }
.reset-desc { font-size: 13px; color: rgba(255,255,255,.75); text-align: left; margin: 0 0 18px; line-height: 1.6; }
.reset-success-icon { font-size: 40px; text-align: center; margin: 8px 0 16px; }

/* ── HEADER ─────────────────────────────────────── */
header {
  background: var(--purple); color: white;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 56px; position: sticky; top: 0; z-index: 100;
}
.header-left { display: flex; align-items: center; gap: 0; }
.header-divider { width: 1px; height: 22px; background: rgba(255,255,255,.25); margin: 0 18px; }
.logo { display: flex; align-items: center; }
.logo-img { height: 28px; width: auto; display: block; }
.login-logo-img { height: 52px; width: auto; display: block; margin: 0 auto; }
.header-right { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.header-user { opacity: .8; }
.btn-icon { background: none; border: none; color: white; cursor: pointer; opacity: .7; font-size: 18px; }

/* ── NOTIFICATIONS BELL ──────────────────────────── */
.notif-bell-wrap { position: relative; }
.notif-bell {
  position: relative; background: none; border: none; cursor: pointer;
  color: white; opacity: .8; padding: 4px; display: flex; align-items: center;
  transition: opacity .15s;
}
.notif-bell:hover { opacity: 1; }
.notif-badge {
  position: absolute; top: -2px; right: -4px;
  background: #ff0068; color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1; pointer-events: none;
}
.notif-dropdown {
  position: absolute; top: calc(100% + 10px); right: -8px;
  width: 340px; background: white; border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,.13);
  z-index: 1000; overflow: hidden;
}
.notif-dropdown-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px; border-bottom: 1px solid var(--border);
}
.notif-dropdown-title { font-size: 14px; font-weight: 700; color: var(--text); }
.notif-header-actions { display: flex; gap: 4px; }
.notif-action-btn {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 8px; font-size: 12px; cursor: pointer; color: var(--muted);
  transition: all .15s;
}
.notif-action-btn:hover { border-color: var(--purple-mid); color: var(--purple); }
.notif-action-del:hover { border-color: #ef4444; color: #ef4444; }
.notif-select-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.notif-check-all-label { display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-list::-webkit-scrollbar { width: 4px; }
.notif-list::-webkit-scrollbar-track { background: transparent; }
.notif-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .12s; position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--purple-light); }
.notif-item.unread { background: #fdf0f1; }
.notif-item.unread:hover { background: var(--purple-light); }
.notif-item-check { flex-shrink: 0; margin-top: 2px; display: none; accent-color: var(--purple); }
.notif-select-mode .notif-item-check { display: block; }
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--purple);
  flex-shrink: 0; margin-top: 5px; transition: opacity .15s;
}
.notif-item:not(.unread) .notif-dot { background: transparent; }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.4; margin-bottom: 2px; }
.notif-item.unread .notif-item-title { font-weight: 600; }
.notif-item-time { font-size: 11px; color: var(--muted); }
.notif-item-del {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 16px; padding: 0 2px; opacity: 0; transition: opacity .15s;
  flex-shrink: 0;
}
.notif-item:hover .notif-item-del { opacity: 1; }
.notif-item-del:hover { color: #ef4444; }
.notif-empty { padding: 28px 16px; text-align: center; font-size: 13px; color: var(--muted); }
.btn-icon:hover { opacity: 1; }
.header-nav-link { font-size: 13px; color: rgba(255,255,255,.7); padding: 5px 10px; border-radius: 7px; transition: all .15s; }
.header-nav-link:hover, .header-nav-link.active { color: white; background: rgba(255,255,255,.15); }
.view-toggle { display: flex; gap: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; overflow: hidden; }
.view-toggle a {
  padding: 5px 14px; font-size: 13px; color: rgba(255,255,255,.7);
  transition: background .15s;
}
.view-toggle a.active, .view-toggle a:hover { background: rgba(255,255,255,.15); color: white; }

/* ── MAIN LAYOUT ─────────────────────────────────── */
.page { padding: 28px 32px; max-width: 1300px; margin: 0 auto; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-title { font-size: 22px; font-weight: 700; color: var(--purple); }
.btn-new {
  display: flex; align-items: center; gap: 6px;
  background: var(--lime); color: #fff; border: none;
  padding: 8px 18px; border-radius: 20px; font-size: 13px;
  font-weight: 700; cursor: pointer; transition: background .15s;
}
.btn-new:hover { background: var(--lime-dark); }

/* ── TABLE ───────────────────────────────────────── */
.jobs-table { width: 100%; border-collapse: collapse; background: white; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.jobs-table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.sortable-th { cursor: pointer; user-select: none; }
.sortable-th:hover { color: var(--text); }
.sort-arrow { color: var(--purple-mid); font-style: normal; }
.jobs-table td { padding: 13px 16px; font-size: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.jobs-table tr:last-child td { border-bottom: none; }
.jobs-table tbody tr { transition: background .1s; cursor: default; }
.jobs-table tbody tr:hover { background: #FAFAF8; }
.job-title-cell { font-weight: 500; }
.drag-handle { cursor: grab; color: var(--muted); opacity: .4; padding-right: 8px; font-size: 16px; }
.drag-handle:active { cursor: grabbing; }
tr.sortable-ghost { opacity: .4; }

/* ── STATUS ──────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  white-space: nowrap; user-select: none;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-new .status-dot { background: var(--s-new); }
.status-new .status-label { color: var(--s-new); }
.status-approved .status-dot { background: var(--s-approved); }
.status-approved .status-label { color: var(--s-approved); }
.status-in_progress .status-dot { background: var(--s-in_progress); }
.status-in_progress .status-label { color: var(--s-in_progress); }
.status-to_review .status-dot { background: var(--s-to_review); }
.status-to_review .status-label { color: var(--s-to_review); }
.status-corrections .status-dot { background: var(--s-corrections); }
.status-corrections .status-label { color: var(--s-corrections); }
.status-done .status-dot { background: var(--s-done); }
.status-done .status-label { color: var(--s-done); }
.status-rejected .status-dot { background: var(--s-rejected); }
.status-rejected .status-label { color: var(--s-rejected); }
.status-postponed .status-dot { background: var(--s-postponed); }
.status-postponed .status-label { color: var(--s-postponed); }

/* ── PRIORITY TOGGLE ─────────────────────────────── */
.priority-toggle {
  display: inline-flex; align-items: center; gap: 0;
  border-radius: 20px; overflow: hidden; font-size: 12px; font-weight: 600;
  user-select: none;
}
.priority-toggle .p-arrow {
  padding: 4px 7px; cursor: pointer; background: rgba(0,0,0,.07);
  border: none; font-size: 11px; font-weight: 700; line-height: 1;
  transition: background .1s;
}
.priority-toggle .p-arrow:hover { background: rgba(0,0,0,.15); }
.priority-toggle .p-label { padding: 4px 8px; }
.priority-high { background: var(--p-high-bg); color: var(--p-high-text); }
.priority-high .p-arrow { background: rgba(190,18,60,.1); color: var(--p-high-text); }
.priority-medium { background: var(--p-medium-bg); color: var(--p-medium-text); }
.priority-medium .p-arrow { background: rgba(146,64,14,.1); color: var(--p-medium-text); }
.priority-low { background: var(--p-low-bg); color: var(--p-low-text); }
.priority-low .p-arrow { background: rgba(22,101,52,.1); color: var(--p-low-text); }

/* simple badge (board cards, no arrows) */
.priority-badge {
  display: inline-block; padding: 2px 9px; border-radius: 12px;
  font-size: 11px; font-weight: 700;
}
.priority-badge.priority-high { background: var(--p-high-bg); color: var(--p-high-text); }
.priority-badge.priority-medium { background: var(--p-medium-bg); color: var(--p-medium-text); }
.priority-badge.priority-low { background: var(--p-low-bg); color: var(--p-low-text); }

/* ── DEADLINE ─────────────────────────────────────── */
.deadline-cell { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.deadline-cell svg { flex-shrink: 0; }

/* ── OPEN LINK ───────────────────────────────────── */
.open-btn { color: var(--purple-mid); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.open-btn:hover { color: var(--purple); }

/* ── BOARD ───────────────────────────────────────── */
.board-view-toggle { display: flex; gap: 5px; background: #fff; border: 1.5px solid #e8d5c0; border-radius: 11px; padding: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.bvt-btn { background: transparent; border: none; border-radius: 8px; padding: 7px 18px; font-size: 13px; font-weight: 600; color: #a58b74; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.bvt-btn:hover { background: #fad1d4; color: #2d2621; }
.bvt-btn.bvt-active { background: #ff0068; color: #fff; box-shadow: 0 2px 8px rgba(255,0,104,.3); }
.board-wrap { overflow-x: auto; padding-bottom: 16px; }
.board {
  display: flex; gap: 12px; align-items: flex-start;
  min-width: max-content; padding: 4px 0;
}
.board-col { width: 228px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.board-col-header {
  padding: 10px 14px; font-size: 13px; font-weight: 700;
  color: white; display: flex; align-items: center; justify-content: space-between;
}
.board-col-header .col-count { font-size: 11px; opacity: .8; background: rgba(45, 45, 45, 0.2); border-radius: 10px; padding: 1px 7px; }
.col-new .board-col-header { background: var(--c-new); }
.col-approved .board-col-header { background: var(--c-approved); }
.col-in_progress .board-col-header { background: var(--c-in_progress); }
.col-to_review .board-col-header { background: var(--c-to_review); }
.col-corrections .board-col-header { background: var(--c-corrections); }
.col-done .board-col-header { background: var(--c-done); }
.col-rejected .board-col-header { background: var(--c-rejected); }
.col-postponed .board-col-header { background: var(--c-postponed); }
.col-queued .board-col-header { background: #e0dde8; color: #4a4560; }
.col-missed .board-col-header { background: #e0dde8; color: #4a4560; }
.col-queued .board-col-header .col-count,
.col-missed .board-col-header .col-count { background: rgba(0,0,0,.08); }

.board-col-body { background: rgba(0,0,0,.04); padding: 8px; min-height: 580px; }
.col-new .board-col-body { background: #f7f7f7; }
.col-approved .board-col-body { background: #f8feff; }
.col-in_progress .board-col-body { background: #fffaf5; }
.col-to_review .board-col-body { background: #f8f7ff; }
.col-corrections .board-col-body { background: #fff1f8; }
.col-done .board-col-body { background: #f5f7f0; }
.col-rejected .board-col-body { background: #FEF2F2; }
.col-postponed .board-col-body { background: #ebebeb; }

.board-card {
  background: white; border-radius: 12px; padding: 12px 14px;
  margin-bottom: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08);
  cursor: grab; transition: box-shadow .15s, transform .15s;
}
.board-card:active { cursor: grabbing; }
.board-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.board-card.sortable-ghost { opacity: .35; transform: scale(.97); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.card-client { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.card-title { font-size: 15px; font-weight: 700; line-height: 1.3; margin-bottom: 14px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.card-deadline { display: flex; align-items: center; gap: 4px; }
.card-open { color: var(--purple); font-size: 11px; font-weight: 500; cursor: pointer; }
.card-open:hover { color: var(--purple-mid); }
.card-avatar { display: flex; align-items: center; margin-left: 6px; min-width: 22px; }

/* ── PANEL ───────────────────────────────────────── */
.panel-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.35);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.panel-overlay.open { opacity: 1; pointer-events: all; }
.panel {
  position: fixed; top: 0; right: 0; width: max(50vw, min(1120px, calc(100vw - 32px))); max-width: calc(100vw - 32px); height: 100vh;
  background: var(--bg); z-index: 201; overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0,0,0,.15); transition: transform .25s cubic-bezier(.4,0,.2,1), width .2s;
  display: flex; flex-direction: column; transform: translateX(100%);
  border-radius: 22px 0 0 22px;
}
.panel.open { transform: translateX(0); }
.panel.panel-fullscreen { width: 100vw; max-width: 100vw; border-radius: 0; }
#client-panel,
#designer-panel {
  width: min(34vw, 520px);
  min-width: 380px;
  max-width: calc(100vw - 32px);
}
#client-panel .panel-header {
  padding: 14px 22px;
}
#client-panel .panel-title {
  font-size: 18px;
  text-align: left;
}
#client-panel .panel-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px;
}
#client-panel .panel-field {
  grid-column: auto;
}
#client-panel #cp-email {
  font-size: 14px;
}
.client-login-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.client-login-summary #cp-account-info p {
  margin: 0;
}
.client-login-box {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.client-panel-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0;
}
.client-status-plan-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
#client-panel input,
#client-panel select {
  height: 42px;
  min-height: 42px;
  padding: 10px 12px;
  box-sizing: border-box;
}
#client-panel input[type=password],
#client-panel input[type=email] {
  width: 100%;
}
.client-vip-box,
.client-password-box {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.client-invoices-box {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.client-invoices-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.client-invoices-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.client-invoice-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  background: #fff;
}
.client-invoice-amount-row {
  grid-template-columns: minmax(0, .7fr) minmax(0, 1fr);
  gap: 10px;
}
.client-invoice-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.client-billable-jobs {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px;
}
.client-invoice-mode-note {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  padding: 9px 10px;
}
.client-billable-jobs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
}
.client-billable-jobs-head span {
  font-weight: 700;
  color: var(--text);
}
.client-billable-jobs-list {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}
.billable-job-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  padding: 8px;
  cursor: pointer;
}
.billable-job-row input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.billable-job-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.billable-job-copy strong {
  color: var(--text);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.billable-job-copy small {
  color: var(--muted);
  font-size: 11px;
}
.billable-job-price {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.client-invoice-empty {
  color: var(--muted);
  font-size: 12px;
}
.client-invoice-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
}
.client-invoice-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.client-invoice-main strong { font-size: 13px; color: var(--text); }
.client-invoice-main span,
.client-invoice-main small { font-size: 11px; color: var(--muted); }
.client-invoice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.client-invoice-actions button {
  border: 1px solid var(--border);
  background: white;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 11px;
  cursor: pointer;
}
.client-invoice-actions button:hover {
  border-color: var(--purple);
  color: var(--purple);
}
.client-invoice-edit {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}
.invoice-edit-items {
  display: grid;
  gap: 8px;
}
.invoice-edit-item {
  position: relative;
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  padding: 8px;
}
.invoice-edit-item .panel-field:first-of-type {
  padding-right: 28px;
}
.invoice-edit-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  line-height: 18px;
  font-size: 15px;
}
.invoice-edit-remove:hover {
  border-color: var(--danger);
  color: var(--danger);
}
.invoice-edit-add {
  justify-self: start;
  padding: 7px 10px;
}
.client-invoice-edit textarea {
  min-height: 76px;
  resize: vertical;
}
.client-invoice-history {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}
.client-invoice-event {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.client-invoice-history-block {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.client-invoice-history-block > strong {
  color: var(--text);
  font-size: 12px;
}
.client-invoice-payment {
  position: relative;
  display: grid;
  gap: 2px;
  border-radius: 6px;
  background: #fff;
  padding: 7px 34px 7px 8px;
}
.client-invoice-payment span {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.client-invoice-payment small {
  color: var(--muted);
  font-size: 11px;
}
.client-invoice-payment button {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  line-height: 16px;
}
.client-invoice-payment button:hover {
  border-color: var(--danger);
  color: var(--danger);
}
.client-invoice-event:last-child,
.client-invoice-history-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.client-invoice-event div {
  display: grid;
  gap: 2px;
}
.client-invoice-event strong {
  color: var(--text);
  font-size: 12px;
}
.client-invoice-event span,
.client-invoice-event small {
  color: var(--muted);
  font-size: 11px;
}
.dash-invoice-list {
  display: grid;
  gap: 8px;
}
.dash-invoice-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
}
.dash-invoice-overdue {
  border-color: #fecaca;
  background: #fff7f7;
}
.dash-invoice-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.dash-invoice-main strong {
  align-items: center;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 6px;
}
.dash-invoice-main strong em {
  background: #fee2e2;
  border-radius: 999px;
  color: #991b1b;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  padding: 2px 6px;
  text-transform: uppercase;
}
.dash-invoice-main span,
.dash-invoice-main small {
  color: var(--muted);
  font-size: 11px;
}
.dash-invoice-pdf {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.dash-invoice-pdf:hover {
  border-color: var(--purple);
  color: var(--purple);
}
.dash-invoice-pay {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.dash-invoice-pay:hover {
  background: var(--purple-mid);
  border-color: var(--purple-mid);
  color: #fff;
}
.dash-invoice-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}
.client-vip-copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.client-vip-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.client-vip-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
#client-panel .vip-toggle-btn {
  justify-self: start;
  max-width: 100%;
  white-space: normal;
  text-align: left;
  line-height: 1.25;
  padding: 7px 10px;
}
.panel-header {
  background: var(--purple); color: white;
  padding: 14px 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-shrink: 0;
  border-radius: 0 0 16px 16px;
}
.job-detail-client { min-width: 150px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13px; }
.job-detail-client .plan-badge { margin-left: 0; }
.panel-title { flex: 1; text-align: center; font-size: 22px; font-weight: 800; line-height: 1.1; }
.job-detail-head-actions { min-width: 160px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.job-detail-created { text-align: right; font-size: 11px; line-height: 1.2; text-transform: uppercase; }
.job-detail-created span { display: block; font-weight: 800; letter-spacing: .04em; }
.job-detail-created strong { display: block; font-size: 11px; font-weight: 500; text-transform: none; }
.job-header-price {
  margin-top: 4px; font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .02em; white-space: nowrap;
}
.job-header-price a {
  color: currentColor;
  display: inline-block;
  margin-left: 6px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.invoice-paid { color: #22c55e; }
.invoice-not_invoiced, .invoice-invoiced { color: #f50569; }
.panel-expand {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08); color: white; cursor: pointer; font-size: 15px;
}
.panel-expand:hover { background: rgba(255,255,255,.18); }
.panel-close { background: none; border: none; color: white; font-size: 22px; cursor: pointer; opacity: .7; line-height: 1; }
.panel-close:hover { opacity: 1; }
.panel-body {
  padding: 22px 48px; flex: 1; display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px 28px; align-items: start;
}
.panel-field { grid-column: 1 / -1; }
.panel-hidden-section { display: none !important; }
.job-status-field { grid-column: 1 / 5; order: 1; }
.job-assigned-field { grid-column: 9 / 13; order: 1; }
.job-main-row {
  grid-column: 1 / -1; order: 2; display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 0.9fr);
  gap: 14px; align-items: end;
}
.job-main-row .panel-field { grid-column: auto; }
.job-title-field { min-width: 0; }
.job-meta-row {
  display: grid; grid-template-columns: minmax(130px, 1fr) minmax(150px, 1fr);
  gap: 14px; min-width: 0;
}
.job-meta-row .panel-field { min-width: 0; grid-column: auto; }
.job-description-field { grid-column: 1 / -1; order: 3; }
.job-billing-field { grid-column: 1 / -1; order: 4; }
.job-attachments-field { grid-column: 1 / 8; order: 5; }
.revision-panel-field { grid-column: 8 / 13; order: 5; }
.job-todo-field { grid-column: 1 / 8; order: 6; }
.job-activity-field { grid-column: 1 / 8; order: 7; }
.panel-section-output { grid-column: 8 / 13; order: 6; grid-row: span 2; align-self: stretch; }
.job-client-field, .job-created-field { display: none; }
.panel-field label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; }
.panel-field input[type=text],
.panel-field input[type=email],
.panel-field input[type=password],
.panel-field input[type=date],
.panel-field textarea,
.panel-field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid #a58b74;
  border-radius: 12px; font-size: 14px; outline: none;
  font-family: inherit; background: white; color: var(--text);
  transition: border-color .15s;
}
.panel-field input:focus,
.panel-field textarea:focus,
.panel-field select:focus { border-color: var(--purple-mid); }
.job-description-field textarea { resize: vertical; min-height: 240px; background: #fbf8f0; }
.rich-toolbar {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  margin: 0 0 6px;
}
.rich-toolbar button {
  width: 30px; height: 28px; border: 1px solid var(--border); border-radius: 6px;
  background: white; color: var(--text); font-size: 12px; font-weight: 700;
  cursor: pointer;
}
.rich-toolbar button:hover { border-color: var(--purple-mid); color: var(--purple-mid); }
.rich-editor,
.rich-readonly {
  width: 100%; min-height: 120px; padding: 12px 14px; border: 1.5px solid #a58b74;
  border-radius: 12px; font-size: 14px; line-height: 1.55; outline: none;
  font-family: inherit; background: white; color: var(--text); overflow-wrap: anywhere;
}
.rich-editor:focus { border-color: var(--purple-mid); }
.job-description-field .rich-editor,
.job-description-field .rich-readonly { min-height: 240px; background: #fbf8f0; }
.comment-rich-editor {
  min-height: 72px; background: white;
}
.comment-rich-editor:empty::before {
  content: attr(data-placeholder); color: var(--muted); pointer-events: none;
}
.panel-field textarea { resize: vertical; }
.panel-row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr); gap: 14px; }
.panel-footer { padding: 16px 48px 20px; border-top: 1px solid var(--border); display: flex; gap: 12px; flex-shrink: 0; background: var(--bg); }
.panel-footer .btn-save {
  background: #f50569; border-radius: 7px; font-size: 16px; font-weight: 800;
  text-transform: uppercase;
}
.panel-footer .btn-save:hover { background: #d9045d; }
.panel-footer .btn-delete {
  flex: 0 0 220px; border: 1.5px dashed #f50569; color: #f50569;
  background: transparent; border-radius: 7px; font-size: 16px; font-weight: 800;
  text-transform: uppercase;
}
.panel-footer .btn-delete:hover { background: #fff0f6; }
.btn-save {
  flex: 1; padding: 10px; border-radius: 8px; border: none;
  background: var(--purple); color: white; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: background .15s;
}
.btn-save:hover { background: var(--purple-mid); }
.btn-save.is-saved, .btn-save.is-saved:hover { background: #22c55e; }
.btn-save.btn-compact {
  flex: 0 0 auto; width: auto; padding: 8px 12px; font-size: 12px;
}
.btn-delete {
  padding: 10px 14px; border-radius: 8px; border: 1px solid #FCA5A5;
  background: white; color: #DC2626; font-size: 13px;
  font-weight: 600; cursor: pointer; transition: background .15s;
}
.btn-delete:hover { background: #FEF2F2; }

/* ── Client billing info card ────────────────────── */
.billing-info-row { display:flex; gap:8px; padding:6px 0; border-bottom:1px solid var(--border); font-size:13px; }
.billing-info-row:last-of-type { border-bottom:none; }
.billing-info-label { color:var(--muted); min-width:60px; flex-shrink:0; }
.billing-info-val { color:var(--text); font-weight:500; }
.client-billing-box { border-top:1px solid var(--border); padding-top:14px; margin-top:14px; }

/* ── Bulk action bar ─────────────────────────────── */
.bulk-action-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin-bottom: 10px;
  background: #FFF7F0; border: 1px solid #F5C6A0;
  border-radius: 8px; font-size: 13px;
}
.bulk-action-bar .bulk-count { font-weight: 600; color: var(--text); flex: 1; }
.col-check { width: 36px; padding-left: 8px !important; }

/* ── MODAL (new job) ─────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 300; display: none; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: white; border-radius: 16px; width: 460px; max-width: 95vw;
  box-shadow: 0 8px 32px rgba(0,0,0,.2); overflow: hidden;
}
.modal-header {
  background: var(--purple); color: white; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }
.btn-cancel {
  padding: 9px 18px; border-radius: 8px; border: 1px solid var(--border);
  background: white; color: var(--muted); font-size: 14px; cursor: pointer;
}
.btn-cancel:hover { background: var(--bg); }
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}
.search-bar input[type=search] {
  flex: 1;
  min-width: 180px;
  height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  outline: none;
}
.search-bar input[type=search]:focus { border-color: var(--purple); }
.search-bar .btn-cancel {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  height: 38px;
}
.search-bar-compact { margin: 8px 0 14px; }
.form-field label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; outline: none; font-family: inherit;
  transition: border-color .15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--purple-mid); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── ACCOUNT BANNER ──────────────────────────────── */
.account-banner {
  padding: 10px 20px; font-size: 13px; font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.account-banner-suspended { background: #FEF3C7; color: #92400E; }
.account-banner-non_active { background: #FFE4E6; color: #BE123C; }

/* ── CLIENT BADGE ────────────────────────────────── */
.client-status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600;
}
.client-status-badge.status-active { background: #DCFCE7; color: #166534; }
.client-status-badge.status-suspended { background: #FEF3C7; color: #92400E; }
.client-status-badge.status-non_active { background: #FFE4E6; color: #BE123C; }
.client-status-dot { width: 6px; height: 6px; border-radius: 50%; }
.status-active .client-status-dot { background: #16A34A; }
.status-suspended .client-status-dot { background: #D97706; }
.status-non_active .client-status-dot { background: #BE123C; }

/* ── CLIENT STATUS BUTTONS ───────────────────────── */
.client-status-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-client-status {
  padding: 6px 14px; border-radius: 8px; border: 1.5px solid var(--border);
  background: white; font-size: 12px; font-weight: 600; cursor: pointer;
  color: var(--muted); transition: all .15s;
}
.btn-client-status:hover { border-color: var(--purple-mid); color: var(--purple-mid); background: var(--purple-light); }
.btn-client-warn { border-color: var(--s-to_review); color: var(--s-to_review); }
.btn-client-warn:hover { background: #FEF3C7; border-color: var(--s-to_review); }
.btn-client-done { border-color: var(--s-done); color: var(--s-done); }
.btn-client-done:hover { background: #DCFCE7; border-color: var(--s-done); }
.btn-client-reopen { border-color: var(--purple-mid); color: var(--purple-mid); }
.btn-client-reopen:hover { background: var(--purple-light); }

/* ── ATTACHMENTS ─────────────────────────────────── */
/* ── AVATAR ──────────────────────────────────────── */
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--purple); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: default; user-select: none;
}
.avatar-sm { width: 22px; height: 22px; font-size: 9px; }
.avatar-lg { width: 52px; height: 52px; font-size: 20px; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.assigned-row { display: flex; align-items: center; gap: 8px; }
.assigned-row .assigned-name { font-size: 13px; font-weight: 500; color: var(--text); }
.assign-inline-form {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
}
.assign-inline-form input[type="search"] {
  flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 13px; font-family: inherit; outline: none;
}
.assign-inline-form input[type="search"]:focus { border-color: var(--purple-mid); }
.assign-save-btn {
  flex: 0 0 auto; padding: 8px 14px; font-size: 12px; border-radius: 8px;
}
.assign-cancel-btn {
  flex: 0 0 auto; padding: 8px 12px; font-size: 12px; border-radius: 8px;
}
.take-job-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 7px;
  border: 1.5px dashed var(--purple-mid); background: none;
  color: var(--purple-mid); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.take-job-btn:hover { background: var(--purple-light); border-style: solid; }

.role-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.role-admin { background: #fad1d4; color: var(--purple); }
.role-designer { background: #F0F0F0; color: var(--muted); }

.att-list { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; min-height: 0; }
.att-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--bg); border-radius: 7px; }
.att-icon { font-size: 14px; flex-shrink: 0; }
.att-name { flex: 1; font-size: 13px; color: var(--purple-mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-name:hover { color: var(--purple); text-decoration: underline; }
.att-delete { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; flex-shrink: 0; }
.att-delete:hover { color: var(--s-corrections); }
.att-edit-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 12px; padding: 0 3px; flex-shrink: 0; opacity: .5; }
.att-edit-btn:hover { opacity: 1; color: var(--purple-mid); }
.att-download { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 0 3px; flex-shrink: 0; opacity: .5; text-decoration: none; line-height: 1; }
.att-download:hover { opacity: 1; color: var(--purple-mid); }
.att-download-locked { color: var(--muted); font-size: 12px; opacity: .6; flex-shrink: 0; }
.att-empty { font-size: 12px; color: var(--muted); padding: 4px 0; }
.att-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-att {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  padding: 5px 12px; border-radius: 7px; border: 1px solid var(--border);
  background: white; color: var(--muted); font-size: 12px; font-weight: 600;
  transition: border-color .15s, color .15s;
}
.btn-att:hover { border-color: var(--purple-mid); color: var(--purple-mid); }
.att-link-form { display: none; flex-direction: column; gap: 7px; margin-top: 10px; padding: 12px; background: var(--bg); border-radius: 9px; }
.att-link-form input { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; outline: none; font-family: inherit; }
.att-link-form input:focus { border-color: var(--purple-mid); }
.new-job-attachment-list { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.new-job-attachment-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  border-radius: 7px; background: var(--bg); font-size: 12px; color: var(--muted);
}
.new-job-attachment-remove {
  margin-left: auto; border: none; background: none; color: var(--muted);
  cursor: pointer; font-size: 16px; line-height: 1;
}
.new-job-attachment-remove:hover { color: var(--s-corrections); }

/* ── OUTPUT SECTION ──────────────────────────────── */
.panel-section-output {
  background: #fff1f6;
  border-radius: 16px;
  padding: 22px 28px;
  margin: 0;
  border: 1.5px solid #f50569;
  min-height: 420px;
}
.panel-section-output > label { color: var(--purple); font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; margin-bottom: 14px; }
.output-label-note { font-size: 11px; font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.panel-section-output .att-item { background: white; border-radius: 6px; padding: 9px 12px; }
.output-review-box { margin-top: 10px; padding: 10px; border-radius: 8px; background: white; border: 1px solid #fad1d4; }
.output-review-note { font-size: 12px; color: var(--s-done); font-weight: 600; }
.output-review-warning { font-size: 12px; color: var(--s-corrections); font-weight: 600; line-height: 1.45; margin-bottom: 8px; }
.output-review-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-output-action {
  padding: 7px 12px; border-radius: 7px; border: 1px solid var(--purple-mid);
  background: white; color: var(--purple-mid); font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all .15s;
}
.btn-output-action:hover { background: var(--purple-light); }
.btn-output-approve { background: var(--s-done); border-color: var(--s-done); color: white; }
.btn-output-approve:hover { background: var(--s-done); opacity: .9; }
.btn-output-return, .btn-output-reject { border-color: var(--s-corrections); color: var(--s-corrections); }
.btn-output-return:hover, .btn-output-reject:hover { background: #FCE7F3; }
.output-admin-review { border-color: #F59E0B; background: #FFFBEB; }

/* ── ACTIVITY FEED ───────────────────────────────── */
.activity-section { border-top: 1px solid var(--border); padding: 12px 8px 0; margin-top: 0; }
.activity-section > label { display: block; margin-bottom: 12px; }
.activity-tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.activity-tab { background: none; border: 1.5px solid var(--border); border-radius: 6px; padding: 5px 14px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .15s; }
.activity-tab:hover { border-color: var(--purple-mid); color: var(--purple); }
.activity-tab.active { background: var(--purple); border-color: var(--purple); color: #fff; }
.activity-feed {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 260px; overflow-y: auto;
  margin-bottom: 14px; padding-right: 4px;
  scroll-behavior: smooth;
}
.activity-feed::-webkit-scrollbar { width: 4px; }
.activity-feed::-webkit-scrollbar-track { background: transparent; }
.activity-feed::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.activity-feed::-webkit-scrollbar-thumb:hover { background: var(--purple-mid); }
.activity-item { display: flex; }

/* comment */
.activity-comment { flex-direction: column; background: var(--bg); border-radius: 10px; padding: 10px 14px; }
.activity-comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.activity-author { font-size: 12px; font-weight: 700; color: var(--purple); }
.activity-time { font-size: 11px; color: var(--muted); }
.comment-delete {
  margin-left: auto; background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 17px; line-height: 1; padding: 0 2px; opacity: .5;
}
.comment-delete:hover { opacity: 1; color: var(--s-corrections); }
.activity-text { font-size: 13px; color: var(--text); line-height: 1.5; overflow-wrap: anywhere; }
.comment-attachments { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.comment-attachment {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  max-width: 100%; padding: 5px 9px; border-radius: 7px; background: white;
  color: var(--purple-mid); font-size: 12px; overflow: hidden; text-overflow: ellipsis;
}
.comment-attach-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comment-file-summary { font-size: 12px; color: var(--muted); }
.comment-link-form { width: 100%; }

.todo-list { display: flex; flex-direction: column; gap: 7px; }
.job-todo-field > label {
  color: var(--purple); font-size: 20px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0; margin-bottom: 10px;
}
.todo-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  background: white; border: 1px solid var(--border); border-radius: 8px;
}
.todo-item label:first-child { flex: 1; margin: 0; display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); }
.todo-client-text { flex: 1; min-width: 0; font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.todo-item input:checked + span { text-decoration: line-through; color: var(--muted); }
.todo-visible { margin: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); text-transform: none; letter-spacing: 0; }
.todo-delete { border: none; background: none; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; padding: 2px 4px; }
.todo-delete:hover { color: var(--s-corrections); }
.todo-add-row { display: flex; gap: 8px; margin-top: 10px; }
.todo-add-row input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; }
.panel-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); text-transform: none; letter-spacing: 0; }
.job-price-client { font-size: 13px; font-weight: 800; margin: 0; color: var(--purple); text-transform: uppercase; }
.billing-inline-row {
  display: grid; grid-template-columns: minmax(100px, .6fr) minmax(135px, .8fr) auto auto auto minmax(180px, 1fr);
  gap: 10px; align-items: end;
}
.billing-inline-row .panel-field { grid-column: auto; min-width: 0; }
.billing-inline-row .panel-check { align-self: center; margin: 0; white-space: nowrap; }
.billing-paid-date { align-self: center; font-size: 12px; color: var(--muted); white-space: nowrap; }
.job-invoice-link {
  align-self: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  text-decoration: none;
  white-space: nowrap;
}
.job-invoice-link:hover {
  border-color: var(--purple-mid);
  color: var(--purple-mid);
}
.price-input-wrap {
  display: flex; align-items: center; border: 1.5px solid #a58b74;
  border-radius: 12px; background: white; overflow: hidden;
}
.price-input-wrap input {
  border: none !important; border-radius: 0 !important; flex: 1; min-width: 0;
}
.price-input-wrap input:focus { outline: none; }
.price-input-wrap span { padding: 0 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.job-layout-options {
  display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 10px 12px;
  background: var(--bg); border-radius: 10px;
}
.job-layout-options label { font-size: 13px; color: var(--text); display: inline-flex; align-items: center; gap: 5px; }
.job-layout-fields { align-items: flex-start; }

/* log entry */
.activity-log { align-items: flex-start; gap: 8px; padding: 3px 0; }
.activity-log-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--border);
  flex-shrink: 0; margin-top: 5px; margin-left: 4px;
}
.activity-log-text { font-size: 12px; color: var(--muted); flex: 1; }
.activity-log-meta { font-size: 11px; color: var(--muted); opacity: .6; white-space: nowrap; padding-top: 1px; }
.activity-empty { font-size: 12px; color: var(--muted); text-align: center; padding: 16px 0; }

/* comment form */
.comment-form { display: flex; flex-direction: column; gap: 8px; }
.comment-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 9px; font-size: 13px; font-family: inherit;
  resize: none; outline: none; transition: border-color .15s;
  box-sizing: border-box;
}
.comment-form textarea:focus { border-color: var(--purple-mid); }

/* ── TOAST ───────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: #2d2621; color: white; padding: 10px 20px; border-radius: 10px;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 500;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── MISC ────────────────────────────────────────── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-chip {
  padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); background: white; cursor: pointer;
  color: var(--muted); transition: all .15s;
}
.filter-chip:hover, .filter-chip.active { background: var(--purple); color: white; border-color: var(--purple); }
.empty-col { color: var(--muted); font-size: 12px; text-align: center; padding: 12px 0; opacity: .6; }

/* ── SETTINGS ────────────────────────────────────── */
.header-user { text-decoration: none; color: inherit; }
.header-user:hover { opacity: 1; text-decoration: underline; }

.settings-wrap { display: flex; gap: 32px; padding: 32px; max-width: 1100px; margin: 0 auto; }

.settings-nav {
  width: 200px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.settings-nav-title { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.settings-nav-group-label { font-size: 10px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--muted); padding: 10px 10px 2px; }
.settings-nav-sub { padding-left: 20px !important; }
.settings-nav-item {
  background: none; border: none; text-align: left;
  padding: 9px 14px; border-radius: 8px; font-size: 14px;
  color: var(--text); cursor: pointer; transition: background .15s;
}
.settings-nav-item:hover { background: var(--purple-light); }
.settings-nav-item.active { background: var(--purple-light); color: var(--purple); font-weight: 600; }

.settings-body { flex: 1; min-width: 0; }
.settings-section { display: none; }
.settings-section.active { display: block; }
.settings-section-title { font-size: 20px; font-weight: 700; margin: 0 0 20px; }
.settings-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.settings-section-header .settings-section-title { margin: 0; }
.settings-search-row {
  align-items: center;
  display: flex;
  gap: 10px;
  margin: -8px 0 18px;
  max-width: 620px;
}
.settings-search-row input {
  min-height: 42px;
  min-width: 0;
  flex: 1;
  font-size: 14px;
  padding: 10px 14px;
}
.settings-search-row button {
  min-height: 42px;
  padding-left: 18px;
  padding-right: 18px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .settings-search-row {
    align-items: stretch;
    flex-direction: column;
  }
  .settings-search-row button {
    width: 100%;
  }
}

.settings-card {
  background: white; border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 24px; margin-bottom: 16px;
}
.settings-card-title { font-size: 14px; font-weight: 600; margin: 0 0 16px; color: var(--text); }

.settings-form { display: flex; flex-direction: column; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.form-field label { font-size: 12px; font-weight: 600; color: var(--muted); }
.form-field input, .form-field textarea, .form-field select {
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--purple); }
.form-field input.field-invalid,
.panel-field input.field-invalid {
  border-color: #ef4444;
  background: #fff7f7;
}
.form-field textarea { resize: vertical; }
.input-disabled { background: #f5f5f7; color: var(--muted); cursor: not-allowed; }
.form-row { display: flex; gap: 14px; }
.color-input { height: 40px; padding: 4px 6px; cursor: pointer; }
.plan-gradient-builder { display: grid; grid-template-columns: auto 54px 54px 76px 42px; align-items: end; gap: 10px; }
.plan-gradient-builder label { align-self: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.plan-gradient-builder input[type="number"] {
  height: 40px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; outline: none;
}
.plan-gradient-builder input[type="number"]:focus { border-color: var(--purple); }
.plan-gradient-builder .plan-gradient-apply {
  width: 40px; height: 40px; border: none; border-radius: 8px;
  background: var(--purple); color: #fff; font-size: 17px; font-weight: 800;
  cursor: pointer; line-height: 1; transition: background .15s;
}
.plan-gradient-builder .plan-gradient-apply:hover { background: var(--purple-mid); }
.plan-gradient-builder .plan-gradient-apply.is-applied { background: #22c55e; }
.plan-color-field input { width: 100%; }

.settings-actions { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.settings-feedback { font-size: 13px; font-weight: 500; }
.settings-modal-text { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text); }
.feedback-ok { color: #22c55e; }
.feedback-err { color: #ef4444; }
.btn-cancel { padding: 9px 16px; background: white; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); transition: all .15s; }
.btn-cancel:hover { border-color: var(--purple-mid); color: var(--purple); }

.billing-overview {
  max-width: 100%;
  overflow-x: auto;
}
.billing-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.billing-summary-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 13px 14px;
}
.billing-summary-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.billing-summary-card strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}
.billing-summary-card small {
  color: var(--muted);
  font-size: 12px;
}
.billing-summary-overdue strong { color: #991b1b; }
.billing-summary-paid strong { color: #166534; }
.billing-quick-filter a.active { border-color: var(--purple); color: var(--purple); background: var(--purple-light, #f3eeff); }
.billing-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.billing-filter-bar > input[type="search"] {
  flex: 1 1 220px;
}
.billing-filter-bar > input[type="date"],
.billing-filter-bar > select {
  flex: 0 1 160px;
}
.billing-filter-bar > button,
.billing-filter-bar > a {
  flex: 0 0 auto;
}
.billing-filter-bar input,
.billing-filter-bar select {
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  min-height: 36px;
  padding: 8px 10px;
}
.billing-filter-bar input:focus,
.billing-filter-bar select:focus {
  border-color: var(--purple);
  outline: none;
}
.billing-filter-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  min-height: 36px;
  white-space: nowrap;
}
.billing-filter-check input {
  min-height: 0;
  padding: 0;
}
.billing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  table-layout: fixed;
}
.billing-table th:nth-child(1),
.billing-table td:nth-child(1) { width: 18%; }
.billing-table th:nth-child(2),
.billing-table td:nth-child(2) { width: 16%; }
.billing-table th:nth-child(3),
.billing-table td:nth-child(3) { width: 12%; }
.billing-table th:nth-child(4),
.billing-table td:nth-child(4) { width: 13%; }
.billing-table th:nth-child(5),
.billing-table td:nth-child(5) { width: 13%; }
.billing-table th:nth-child(6),
.billing-table td:nth-child(6) { width: 12%; }
.billing-table th:nth-child(7),
.billing-table td:nth-child(7) { width: 16%; }
.billing-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  padding: 0 10px 8px;
  border-bottom: 1px solid var(--border);
}
.billing-table td {
  color: var(--text);
  font-size: 13px;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  word-break: break-word;
}
.billing-table tr.billing-row-overdue td {
  background: #fff7ed;
}
.billing-table tr.billing-row-overdue td:first-child {
  border-left: 3px solid #f97316;
}
.billing-table td small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.billing-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  background: #f3f4f6;
  color: var(--muted);
}
.billing-status-issued { background: #fef3c7; color: #92400e; }
.billing-status-partially_paid { background: #dbeafe; color: #1d4ed8; }
.billing-status-paid { background: #dcfce7; color: #166534; }
.billing-status-cancelled { background: #fee2e2; color: #991b1b; }
.billing-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  max-width: 100%;
}
.billing-row-actions button,
.billing-row-actions a {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  color: var(--text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 100%;
  padding: 5px 7px;
  text-decoration: none;
  white-space: normal;
}
.billing-row-actions button:hover,
.billing-row-actions a:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.invoice-detail-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px 40px;
}
.invoice-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.invoice-back-link {
  color: var(--muted);
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  text-decoration: none;
}
.invoice-detail-head h1 {
  color: var(--text);
  font-size: 28px;
  letter-spacing: 0;
  margin: 0 0 5px;
}
.invoice-detail-head p {
  color: var(--muted);
  margin: 0;
}
.invoice-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.invoice-detail-actions a,
.invoice-detail-actions button {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
  text-decoration: none;
}
.invoice-detail-actions a:hover,
.invoice-detail-actions button:hover {
  border-color: var(--purple);
  color: var(--purple);
}
.invoice-detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.invoice-summary-box,
.invoice-detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.invoice-summary-box {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 14px;
}
.invoice-summary-box span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.invoice-summary-box strong {
  color: var(--text);
  font-size: 18px;
}
.invoice-summary-box small {
  color: var(--muted);
  font-size: 12px;
}
.invoice-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}
.invoice-detail-card {
  padding: 16px;
}
.invoice-detail-card h2 {
  color: var(--text);
  font-size: 15px;
  margin: 0 0 14px;
}
.invoice-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.invoice-section-head h2 {
  margin: 0;
}
.invoice-small-action {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 9px;
}
.invoice-small-action:hover {
  border-color: var(--purple);
  color: var(--purple);
}
.invoice-meta-edit {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
}
.invoice-meta-edit h3 {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  margin: 2px 0 0;
}
.invoice-items-edit {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
}
.invoice-items-edit-list {
  display: grid;
  gap: 8px;
}
.invoice-items-edit-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 130px;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  padding: 8px 36px 8px 8px;
}
.invoice-item-edit-remove {
  position: absolute;
  right: 8px;
  top: 30px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}
.invoice-item-edit-remove:hover {
  border-color: var(--danger);
  color: var(--danger);
}
.invoice-meta-actions {
  justify-content: flex-start;
}
.invoice-detail-table {
  border-collapse: collapse;
  width: 100%;
}
.invoice-detail-table th {
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  padding: 0 8px 8px;
  text-align: left;
  text-transform: uppercase;
}
.invoice-detail-table td {
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  padding: 10px 8px;
  vertical-align: top;
}
.invoice-detail-table td small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.invoice-detail-note {
  border-top: 1px solid var(--border);
  margin-top: 14px;
  padding-top: 12px;
}
.invoice-detail-note span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.invoice-detail-note p {
  color: var(--text);
  font-size: 13px;
  margin: 0;
}
.invoice-detail-cancel p { color: #991b1b; }
.invoice-detail-internal {
  background: #fffbeb;
  border-color: #fde68a;
}
.invoice-detail-internal p {
  color: #78350f;
}
.invoice-detail-side {
  display: grid;
  align-content: start;
  gap: 16px;
}
.invoice-pay-card {
  display: grid;
  gap: 12px;
}
.invoice-pay-qr {
  display: flex;
  justify-content: center;
}
.invoice-pay-qr img {
  width: 164px;
  height: 164px;
  image-rendering: crisp-edges;
}
.invoice-pay-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  margin: -2px 0 2px;
  text-align: center;
}
.invoice-pay-info {
  display: grid;
  gap: 8px;
}
.invoice-pay-info div {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 3px;
  padding-top: 8px;
}
.invoice-pay-info span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.invoice-pay-info strong {
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.invoice-copy-payment {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--purple);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 10px;
  width: 100%;
}
.invoice-copy-payment:hover {
  border-color: var(--purple-mid);
  color: var(--purple-mid);
}
.invoice-party {
  display: grid;
  gap: 5px;
}
.invoice-party strong,
.invoice-party span,
.invoice-party p {
  color: var(--text);
  font-size: 13px;
  margin: 0;
}
.invoice-party span,
.invoice-party p {
  color: var(--muted);
}
.invoice-payment-list,
.invoice-event-list {
  display: grid;
  gap: 8px;
}
.invoice-payment-row,
.invoice-event-row {
  border: 1px solid var(--border);
  border-radius: 7px;
  display: grid;
  gap: 3px;
  padding: 8px;
}
.invoice-payment-row {
  position: relative;
  padding-right: 36px;
}
.invoice-payment-row strong,
.invoice-event-row strong {
  color: var(--text);
  font-size: 13px;
}
.invoice-payment-row span,
.invoice-payment-row small,
.invoice-event-row span,
.invoice-event-row small,
.invoice-detail-empty {
  color: var(--muted);
  font-size: 12px;
}
.invoice-payment-row button {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 21px;
  height: 21px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  line-height: 16px;
}
.invoice-payment-row button:hover {
  border-color: var(--danger);
  color: var(--danger);
}

@media (max-width: 900px) {
  .invoice-detail-head {
    display: grid;
  }
  .invoice-detail-actions {
    justify-content: flex-start;
  }
  .invoice-detail-summary,
  .invoice-detail-grid {
    grid-template-columns: 1fr;
  }
  .invoice-items-edit-row {
    grid-template-columns: 1fr;
  }
  .invoice-item-edit-remove {
    top: 8px;
  }
}

@media (max-width: 760px) {
  .billing-summary-grid {
    grid-template-columns: 1fr;
  }
  .billing-filter-bar {
    grid-template-columns: 1fr;
  }
}

/* Profile picture */
.profile-pic-row { display: flex; align-items: center; gap: 20px; }
.profile-pic-wrap { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--purple); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.profile-pic-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-pic-placeholder { color: #fff; font-size: 28px; font-weight: 700; line-height: 1; }
.profile-pic-actions { display: flex; flex-direction: column; gap: 6px; }
.btn-upload { display: inline-block; padding: 8px 16px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
.btn-upload:hover { border-color: var(--purple); color: var(--purple); }
.profile-pic-hint { font-size: 11px; color: var(--muted); }

/* Notification toggles */
.notif-master-row { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.notif-group { display: flex; flex-direction: column; gap: 10px; transition: opacity .2s; }
.toggle-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.toggle-wrap { position: relative; display: inline-block; width: 38px; height: 22px; flex-shrink: 0; }
.toggle-wrap input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: #ccc; border-radius: 22px; transition: background .2s; }
.toggle-slider::before { content:''; position:absolute; width:16px; height:16px; left:3px; top:3px; background:#fff; border-radius:50%; transition: transform .2s; }
.toggle-wrap input:checked + .toggle-slider { background: var(--purple); }
.toggle-wrap input:checked + .toggle-slider::before { transform: translateX(16px); }

/* Subscription cards */
.sub-card { }
.sub-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sub-client-name { font-size: 15px; font-weight: 600; }
.sub-status-badge { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.sub-status-trial    { background: #FEF3C7; color: #92400E; }
.sub-status-active   { background: #D1FAE5; color: #065F46; }
.sub-status-suspended{ background: #FEE2E2; color: #991B1B; }
.sub-status-inactive { background: #F3F4F6; color: #6B7280; }
.sub-status-none     { background: #F3F4F6; color: #6B7280; }

/* Plan cards */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 18px; }
.plan-card-settings { margin-bottom: 0; min-height: 520px; padding: 24px; }
.plan-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.plan-title-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.plan-title-row .settings-card-title { margin: 0; }
.plan-dot-big { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.plan-priority-toggle { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.plan-settings-form { gap: 18px; }
.plan-fields-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.plan-field { min-width: 0; }
.plan-field .color-input { width: 100%; }
.plan-field input[type="text"] { width: 100%; }

/* Role cards */
.role-card-settings { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.role-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.role-dot-big { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.role-card-name { font-size: 15px; font-weight: 600; flex: 1; }
.role-card-actions { display: flex; gap: 6px; }
.btn-icon-sm { background: none; border: 1px solid var(--border); border-radius: 6px; width: 28px; height: 28px; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.btn-icon-sm:hover { border-color: var(--purple); color: var(--purple); }
.btn-icon-del:hover { border-color: #ef4444; color: #ef4444; }
.role-card-perms { display: flex; flex-wrap: wrap; gap: 16px; }
.perm-group { }
.perm-group-name { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 6px; }
.perm-item { font-size: 12px; padding: 2px 0; display: flex; align-items: center; gap: 5px; }
.perm-item::before { content:''; display:inline-block; width:7px; height:7px; border-radius:50%; flex-shrink:0; }
.perm-on::before { background: #22c55e; }
.perm-off { color: var(--muted); }
.perm-off::before { background: #d1d5db; }

/* Role edit form */
.role-edit-panel { margin-top: 20px; }
.perm-edit-group { margin-bottom: 14px; }
.perm-edit-group-name { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 8px; }
.perm-edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.perm-check-label { display: flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; }
.perm-check-label input { accent-color: var(--purple); width: 15px; height: 15px; }

.empty-state { color: var(--muted); font-size: 14px; padding: 24px 0; text-align: center; }

/* ── CLIENT SUBSCRIPTION ─────────────────────────── */
.client-sub-status-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.client-sub-badge { padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.client-sub-active    { background: #D1FAE5; color: #065F46; }
.client-sub-suspended { background: #FEE2E2; color: #991B1B; }
.client-sub-inactive  { background: #F3F4F6; color: #6B7280; }
.client-sub-trial     { background: #FEF3C7; color: #92400E; }
.client-sub-none      { background: #F3F4F6; color: #6B7280; }
.client-sub-info { font-size: 13px; color: var(--text); }
.client-sub-warn { color: #B91C1C; font-weight: 500; }
.client-sub-days { color: var(--muted); font-weight: 400; }
.client-sub-meta { display: flex; gap: 20px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.client-sub-desc { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.client-upgrade-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff4f5; border: 1px solid #fad1d4; border-radius: 10px;
  padding: 16px 18px; margin-bottom: 16px;
}
.client-upgrade-banner strong { display: block; font-size: 14px; margin-bottom: 3px; }
.client-upgrade-banner span { font-size: 13px; color: var(--muted); }
.client-upgrade-banner .btn-save { flex: 0 0 auto; padding: 9px 16px; }
.client-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 12px; }
.client-plan-card {
  background: white; border: 1px solid var(--border); border-radius: 10px;
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
}
.client-plan-top { display: flex; align-items: center; gap: 10px; min-height: 24px; }
.client-plan-top h3 { margin: 0; font-size: 15px; flex: 1; }
.client-plan-current { font-size: 10px; font-weight: 800; color: var(--s-done); background: #DCFCE7; border-radius: 999px; padding: 3px 8px; }
.client-plan-price { font-size: 22px; font-weight: 800; color: var(--text); }
.client-plan-price span { font-size: 12px; font-weight: 600; color: var(--muted); }
.client-plan-limits { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.client-plan-limits div::before { content: '✓'; color: var(--s-done); font-weight: 800; margin-right: 6px; }
.client-plan-select { margin-top: auto; }
.client-plan-select[disabled] { opacity: .55; cursor: not-allowed; }

.payment-methods { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.payment-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--border); background: white; cursor: not-allowed;
  color: var(--text); opacity: .55; transition: all .15s;
}
.payment-coming-soon { font-size: 12px; color: var(--muted); margin: 0; }

/* ── BROWSER PUSH BUTTON ─────────────────────────── */
.btn-push-enable {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 9px; font-size: 13px; font-weight: 600;
  background: var(--purple); color: #fff; border: none; cursor: pointer;
  transition: opacity .15s;
}
.btn-push-enable:hover:not(:disabled) { opacity: .85; }
.btn-push-enable:disabled { opacity: .6; cursor: default; }
.btn-push-active { background: #22c55e; }
.push-help {
  margin-top: 14px; padding: 12px 14px; border: 1px solid #FCA5A5;
  border-radius: 8px; background: #FEF2F2; color: #7F1D1D;
}
.push-help-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.push-help-text { font-size: 13px; line-height: 1.45; }

/* ── JOB REVISIONS ──────────────────────────────── */
.revision-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 18px; border: 1px solid var(--purple);
  border-radius: 8px; background: var(--purple); color: white;
}
.revision-panel-field > label { display: none; }
.revision-counter { font-size: 34px; color: white; font-weight: 300; line-height: 1; }
.revision-counter strong { font-size: 54px; font-weight: 800; color: white; }
.revision-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn-revision {
  border: 1px solid white; background: white; color: var(--purple);
  border-radius: 7px; padding: 7px 10px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: opacity .15s;
}
.btn-revision:hover { opacity: .85; }
.btn-revision-muted { background: white; color: var(--purple); }

/* ── Header avatar ── */
.header-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  object-fit: cover; display: inline-block; vertical-align: middle;
  border: 1.5px solid rgba(255,255,255,.35); flex-shrink: 0;
}
.header-avatar-initials {
  background: rgba(255,255,255,.2); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .03em;
  display: inline-flex; align-items: center; justify-content: center;
}
.header-user { display: flex; align-items: center; gap: 8px; }
.account-switcher-trigger { gap: 8px; }

/* ── VIP ── */
.vip-badge {
  display: inline-block; background: linear-gradient(135deg, #f59e0b, #f50569);
  color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em;
  padding: 2px 7px; border-radius: 20px; vertical-align: middle; margin-left: 6px;
}
.plan-badge {
  display: inline-block; color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 20px; vertical-align: middle; margin-left: 6px;
}
.plan-badge-prime { background: #111827; }
.plan-badge-starter { background: #6b7280; }
.plan-badge-pro { background: #2563eb; }
.plan-badge-brand-care { background: #f50569; }
.panel-client-row { display: flex; align-items: center; gap: 6px; }
.panel-client-row input { flex: 1; min-width: 0; }
.panel-client-row .plan-badge { flex-shrink: 0; margin-left: 0; }
.vip-toggle-btn {
  background: none; border: 1px solid var(--border); color: var(--muted);
  border-radius: 7px; padding: 5px 12px; font-size: 12px; cursor: pointer;
  transition: all .15s;
}
.vip-toggle-btn:hover { border-color: #f59e0b; color: #f59e0b; }
.vip-toggle-btn.vip-on {
  background: linear-gradient(135deg, #f59e0b22, #f5056922);
  border-color: #f59e0b; color: #f59e0b; font-weight: 600;
}
.sub-status-badge.sub-status-vip {
  background: linear-gradient(135deg, #f59e0b22, #f5056922);
  color: #f59e0b; border: 1px solid #f59e0b44;
}

/* ── Queue modal ── */
.queue-icon { font-size: 36px; text-align: center; margin-bottom: 12px; }
.queue-msg { font-size: 14px; line-height: 1.55; margin: 0 0 16px; }
.queue-deadline-box {
  background: var(--hover); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 18px; margin-bottom: 14px; text-align: center;
}
.queue-deadline-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.queue-deadline-value { font-size: 22px; font-weight: 700; color: var(--lime); }
.queue-sub { font-size: 13px; color: var(--muted); margin: 0; }

/* ── Account switcher ── */
.account-switcher { position: relative; }
.account-switcher-trigger { background: none; border: none; color: inherit; cursor: pointer; font-size: 14px; opacity: .8; display: flex; align-items: center; gap: 5px; padding: 0; }
.account-switcher-trigger:hover { opacity: 1; }
.switcher-arrow { font-size: 10px; opacity: .7; }
.account-switcher-dropdown {
  display: none;
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; min-width: 200px; padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); z-index: 900;
}
.account-switcher-dropdown.open { display: block; }
.switcher-label { font-size: 11px; color: var(--muted); padding: 4px 10px 8px; text-transform: uppercase; letter-spacing: .06em; }
.switcher-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; color: var(--text);
  padding: 9px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; gap: 10px;
}
.switcher-item:hover { background: var(--hover); }
.switcher-name { font-weight: 500; }
.switcher-role { font-size: 11px; color: var(--muted); }

/* Switch-back banner */
.switch-banner {
  background: #ff0068; color: #fff;
  text-align: center; font-size: 13px; padding: 7px 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.switch-banner-btn {
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4);
  color: #fff; border-radius: 6px; padding: 3px 12px; font-size: 12px; cursor: pointer;
}
.switch-banner-btn:hover { background: rgba(255,255,255,.35); }

/* Switch-back button in header */
.switch-back-btn {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: #fff; border-radius: 7px; padding: 5px 12px; font-size: 12px; cursor: pointer;
}
.switch-back-btn:hover { background: rgba(255,255,255,.25); }

@media (max-width: 680px) {
  .settings-wrap { flex-direction: column; padding: 16px; gap: 16px; }
  .settings-nav { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .form-row { flex-direction: column; }
  .plans-grid { grid-template-columns: 1fr; }
  .plan-card-settings { min-height: 0; padding: 20px; }
  .plan-fields-grid { grid-template-columns: 1fr; }
  .plan-gradient-builder { grid-template-columns: 1fr 1fr; }
  .plan-gradient-builder label { grid-column: 1 / -1; }
  .plan-gradient-builder .plan-gradient-apply { width: 100%; }
}

@media (max-width: 900px) {
  .panel {
    width: 100vw; max-width: 100vw; border-radius: 0;
  }
  #client-panel {
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
  }
  .panel-header {
    padding: 14px 18px; border-radius: 0 0 14px 14px; align-items: flex-start;
  }
  .job-detail-client, .job-detail-head-actions { min-width: 0; }
  .panel-title { font-size: 20px; text-align: left; }
  .job-detail-created { display: block; font-size: 10px; }
  .job-header-price { font-size: 10px; white-space: normal; }
  .panel-body {
    padding: 20px; grid-template-columns: 1fr; gap: 14px;
  }
  .panel-field, .job-side-card, .panel-section-output, .job-assigned-field {
    grid-column: 1;
  }
  .panel-row { grid-template-columns: 1fr; }
  .job-main-row {
    grid-column: 1; grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
  }
  .job-meta-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .job-description-field textarea { min-height: 220px; }
  .panel-footer { padding: 14px 20px 18px; flex-direction: column-reverse; }
  .panel-footer .btn-delete { flex: 0 0 auto; }
}

/* ── DASHBOARD ───────────────────────────────────── */
.dash-wrap { padding: 28px 32px; max-width: 1200px; margin: 0 auto; }

/* KPI */
.dash-kpi-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 20px; }
.dash-kpi-row-finance { grid-template-columns: repeat(6, 1fr); }
.dash-kpi {
  background: white; border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px;
}
.dash-kpi-value { font-size: 30px; font-weight: 700; color: var(--purple); line-height: 1; margin-bottom: 6px; }
.dash-plan-badge { margin-bottom: 6px; }
.dash-plan-badge .plan-badge { margin-left: 0; }
.dash-kpi-money { font-size: 22px; color: #166534; }
.dash-kpi-label { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.dash-kpi-sub { font-size: 11px; color: var(--muted); }
.dash-kpi-plus { border-color: #22c55e; background: #f0fdf4; }
.dash-kpi-plus .dash-kpi-value { color: #166534; }
.dash-kpi-minus { border-color: #f59e0b; background: #fffbeb; }
.dash-kpi-minus .dash-kpi-value { color: #92400e; }

/* Grid */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-card {
  background: white; border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 22px;
}

.dash-card-wide { grid-column: span 2; }
.dash-card-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 16px; text-transform: uppercase; letter-spacing: .4px; }

.dash-card-wide-job{background: linear-gradient(90deg, #f0e5d1 0%, #d4c0a6 100%); box-shadow: 0px 10px 20px rgba(56, 24, 3, 0.206)}

/* Roční přehled */
.dash-annual { margin-bottom: 24px; }
.dash-annual-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.dash-year-form { flex-shrink: 0; }
.dash-year-select { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; outline: none; }
.dash-year-select:focus { border-color: var(--purple-mid); }
.dash-bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 140px; }
.dash-bar-col { display: flex; flex-direction: column; align-items: center; flex: 1; height: 100%; }
.dash-bar-wrap { flex: 1; display: flex; align-items: flex-end; width: 100%; }
.dash-bar { width: 100%; min-height: 3px; background: linear-gradient(180deg, #ff0068, #fad1d4); border-radius: 5px 5px 0 0; transition: opacity .15s; }
.dash-bar:hover { opacity: .8; }
.dash-bar-projected { background: linear-gradient(180deg, #fad1d4, #f9f7ef); opacity: .7; }
.dash-bar-label { font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.dash-bar-val { font-size: 10px; color: var(--muted); margin-top: 1px; }
.dash-empty { font-size: 13px; color: var(--muted); padding: 8px 0; }

/* Status breakdown */
.dash-status-list { display: flex; flex-direction: column; gap: 10px; }
.dash-status-row { display: grid; grid-template-columns: 110px 1fr 32px; align-items: center; gap: 12px; }
.dash-status-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.dash-status-bar-wrap { background: var(--bg); border-radius: 4px; height: 8px; overflow: hidden; }
.dash-status-bar { height: 100%; border-radius: 4px; transition: width .4s ease; min-width: 4px; }
.dash-status-count { font-size: 12px; font-weight: 700; color: var(--text); text-align: right; }

/* Workload */
.dash-workload-list { display: flex; flex-direction: column; gap: 10px; }
.dash-workload-row { display: grid; grid-template-columns: 26px 1fr 80px 28px; align-items: center; gap: 10px; }
.dash-workload-name { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-workload-bar-wrap { background: var(--bg); border-radius: 4px; height: 6px; overflow: hidden; }
.dash-workload-bar { height: 100%; border-radius: 4px; background: var(--purple); max-width: 100%; }
.dash-workload-count { font-size: 12px; font-weight: 700; color: var(--purple); text-align: right; }

/* Deadlines */
.dash-deadline-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 8px; }
.dash-overdue-label { color: #f50569; }
.dash-deadline-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.dash-deadline-row:last-child { border-bottom: none; }
.dash-deadline-overdue .dash-deadline-date { color: #f50569; }
.dash-deadline-today .dash-deadline-date { color: #f59e0b; }
.dash-deadline-date { font-size: 12px; font-weight: 700; color: var(--muted); min-width: 36px; }
.dash-deadline-info { flex: 1; min-width: 0; }
.dash-deadline-title { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-deadline-client { font-size: 11px; color: var(--muted); }
.dash-open-btn { font-size: 11px; color: var(--purple-mid); font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.dash-open-btn:hover { color: var(--purple); }

/* Activity */
.dash-activity-list { display: flex; flex-direction: column; gap: 0; }
.dash-activity-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.dash-activity-row:last-child { border-bottom: none; }
.dash-activity-body { flex: 1; font-size: 13px; color: var(--text); line-height: 1.4; }
.dash-activity-user { font-weight: 600; }
.dash-activity-action { color: var(--muted); margin-left: 4px; }
.dash-activity-job { color: var(--muted); }
.dash-activity-time { font-size: 11px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }

@media (max-width: 900px) {
  .dash-kpi-row { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-card-wide { grid-column: span 1; }
  .dash-wrap { padding: 16px; }
}

/* Attachment thumbnails & bulk download */
.att-thumb-link { display: inline-block; flex-shrink: 0; }
.att-thumb { display: block; width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); cursor: pointer; }
.att-check { flex-shrink: 0; margin-right: 2px; cursor: pointer; accent-color: var(--purple); }
.att-dl-all { font-size: 11px; font-weight: 600; color: var(--purple-mid); text-decoration: none; white-space: nowrap; padding: 2px 6px; border-radius: 8px; background: var(--strip); }
.att-dl-all:hover { color: var(--purple); }

/* ── MY STUDIO ────────────────────────────────────── */
.mystudio-wrap { max-width: 860px; margin: 0 auto; padding: 32px 24px; display: flex; flex-direction: column; gap: 20px; }
.mystudio-page-title { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: -8px; }
.mystudio-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 8px; }
.mystudio-user { display: flex; align-items: center; gap: 14px; }
.mystudio-name { font-size: 15px; font-weight: 600; color: var(--text); }
.mystudio-role { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mystudio-date-block { text-align: right; font-size: 13px; color: var(--muted); }
.mystudio-date { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.mystudio-holiday { font-size: 12px; font-weight: 600; color: #92400e; }
.mystudio-nameday { font-size: 12px; color: var(--muted); }
.mystudio-card { background: var(--strip); border-radius: 16px; padding: 20px 24px; box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.mystudio-card--noshadow { box-shadow: none; }
.mystudio-card-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; }
.mystudio-label-link { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s; }
.mystudio-label-link:hover { border-bottom-color: var(--muted); }
.mystudio-focus-card { background: #f5f0eb; }
.mystudio-focus-input { width: 100%; border: none; background: transparent; font-size: 16px; font-weight: 500; color: var(--text); resize: none; outline: none; font-family: inherit; line-height: 1.5; }
.mystudio-focus-input::placeholder { color: var(--muted); }
.mystudio-focus-saved { font-size: 11px; color: var(--muted); margin-top: 6px; min-height: 14px; }
.mystudio-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mystudio-quote-card { background: #2A1A0F; color: #f5efe9; display: flex; flex-direction: column; gap: 12px; }
.mystudio-quote-card .mystudio-card-label { color: #a58b74; }
.mystudio-quote-text { font-size: 15px; font-style: italic; line-height: 1.6; margin: 0; color: #f5efe9; }
.mystudio-quote-author { font-size: 12px; color: #a58b74; align-self: flex-end; }
.mystudio-links-card { display: flex; flex-direction: column; gap: 12px; }
.mystudio-add-btn { background: none; border: none; font-size: 18px; color: var(--muted); cursor: pointer; line-height: 1; padding: 0 2px; }
.mystudio-add-btn:hover { color: var(--text); }
.mystudio-links-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mystudio-link-item { display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; }
.mystudio-link-item:hover .mystudio-link-edit { opacity: 1; }
.mystudio-link-anchor { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--text); }
.mystudio-link-favicon { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; background: var(--bg); border: 1px solid var(--border); padding: 2px; }
.mystudio-link-label { font-size: 10px; color: var(--muted); text-align: center; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mystudio-link-edit { position: absolute; top: -4px; right: -4px; background: var(--strip); border: 1px solid var(--border); border-radius: 50%; width: 18px; height: 18px; font-size: 9px; cursor: pointer; opacity: 0; transition: opacity .15s; display: flex; align-items: center; justify-content: center; padding: 0; }
.mystudio-links-empty { font-size: 13px; color: var(--muted); grid-column: 1/-1; }
@media (max-width: 680px) { .mystudio-two-col { grid-template-columns: 1fr; } .mystudio-links-grid { grid-template-columns: repeat(5, 1fr); } }
.mystudio-ideas-list, .mystudio-jobs-list { display: flex; flex-direction: column; gap: 0; }
.mystudio-idea-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.mystudio-idea-row:last-child { border-bottom: none; }
.mystudio-idea-title { font-size: 13px; color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mystudio-idea-open { background: none; border: none; font-size: 11px; color: var(--muted); cursor: pointer; flex-shrink: 0; text-decoration: underline; padding: 0; }
.mystudio-idea-open:hover { color: var(--text); }
.mystudio-job-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.mystudio-job-row:last-child { border-bottom: none; }
.mystudio-job-row:hover { background: var(--strip); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 6px; }
.mystudio-job-row--link { text-decoration: none; color: inherit; cursor: pointer; }
.mystudio-job-title { font-size: 13px; color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mystudio-job-client { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.mystudio-empty { font-size: 13px; color: var(--muted); padding: 8px 0; }
/* To Do */
.mystudio-todo-card { background: #fdfaf7; }
.mystudio-todo-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 0; }
.mystudio-todo-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.mystudio-todo-item:last-child { border-bottom: none; }
.mystudio-todo-item.done .mystudio-todo-text { text-decoration: line-through; color: var(--muted); }
.mystudio-todo-check { background: none; border: none; font-size: 15px; cursor: pointer; color: var(--muted); padding: 0; width: 20px; flex-shrink: 0; }
.mystudio-todo-item.done .mystudio-todo-check { color: #166534; }
.mystudio-todo-text { flex: 1; font-size: 13px; color: var(--text); }
.mystudio-todo-del { background: none; border: none; font-size: 15px; color: var(--muted); cursor: pointer; padding: 0; opacity: 0; transition: opacity .15s; }
.mystudio-todo-item:hover .mystudio-todo-del { opacity: 1; }
.mystudio-todo-input-row { display: flex; gap: 8px; margin-top: 4px; }
.mystudio-todo-new { flex: 1; border: none; border-bottom: 1px solid var(--border); background: transparent; font-size: 13px; color: var(--text); padding: 6px 0; outline: none; font-family: inherit; }
.mystudio-todo-new::placeholder { color: var(--muted); }
.mystudio-stickies-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mystudio-sticky { border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 140px; transition: background .2s; }
.mystudio-sticky-toolbar { display: flex; align-items: center; justify-content: space-between; }
.mystudio-sticky-colors { display: flex; gap: 5px; }
.sn-color-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; transition: transform .1s; }
.sn-color-dot:hover { transform: scale(1.2); }
.sn-color-dot.active { border-color: #555; }
.mystudio-sticky-del { background: none; border: none; font-size: 16px; color: rgba(0,0,0,.3); cursor: pointer; line-height: 1; padding: 0; }
.mystudio-sticky-del:hover { color: rgba(0,0,0,.7); }
.mystudio-sticky-text { background: transparent; border: none; outline: none; resize: none; font-size: 13px; line-height: 1.5; color: #1c1917; flex: 1; font-family: inherit; width: 100%; }
.mystudio-sticky-text::placeholder { color: rgba(0,0,0,.35); }
.mystudio-note-input { width: 100%; background: transparent; border: none; outline: none; resize: none; font-size: 14px; line-height: 1.6; color: var(--text); font-family: inherit; }
.mystudio-note-input::placeholder { color: var(--muted); }
@media (max-width: 680px) { .mystudio-stickies-grid { grid-template-columns: repeat(2, 1fr); } }
/* Moodboard */
.mystudio-moodboard-card { background: #ede8e0; }
.mystudio-mb-edit-btn { background: none; border: 1px solid var(--border); border-radius: 8px; padding: 3px 10px; font-size: 11px; cursor: pointer; color: var(--muted); }
.mystudio-mb-edit-btn:hover { color: var(--text); }
.mystudio-mb-toggle-btn { background: none; border: none; padding: 3px 6px; font-size: 11px; cursor: pointer; color: var(--muted); }
.mystudio-mb-toggle-btn:hover { color: var(--text); }
.mystudio-mb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 140px);
  gap: 8px;
  margin-top: 4px;
  grid-template-areas:
    "s0  s0  s1  s2"
    "s3  s4  s1  s5"
    "s6  s7  s8  s8"
    "s9  s9  s10 s11";
}
/* Slot placement */
.mb-slot-0  { grid-area: s0; }
.mb-slot-1  { grid-area: s1; }
.mb-slot-2  { grid-area: s2; }
.mb-slot-3  { grid-area: s3; }
.mb-slot-4  { grid-area: s4; }
.mb-slot-5  { grid-area: s5; }
.mb-slot-6  { grid-area: s6; }
.mb-slot-7  { grid-area: s7; }
.mb-slot-8  { grid-area: s8; }
.mb-slot-9  { grid-area: s9; }
.mb-slot-10 { grid-area: s10; }
.mb-slot-11 { grid-area: s11; }
/* Slot base style */
.mystudio-mb-slot { position: relative; border-radius: 10px; overflow: hidden; background: rgba(0,0,0,.06); }
.mystudio-mb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mystudio-mb-del { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.55); color: #fff; border: none; border-radius: 50%; width: 24px; height: 24px; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.mystudio-mb-del:hover { background: rgba(153,27,27,.85); }
.mystudio-mb-add { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 28px; color: rgba(0,0,0,.25); cursor: pointer; transition: color .15s; }
.mystudio-mb-add:hover { color: rgba(0,0,0,.55); }
.mystudio-mb-empty { grid-column: 1/-1; font-size: 13px; color: var(--muted); padding: 16px 0; }
/* Action buttons */
.mystudio-action-btn { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 20px; border-radius: 16px; background: var(--strip); border: 1px solid var(--border); font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; cursor: pointer; transition: background .15s; }
.mystudio-action-btn:hover { background: var(--border); }
.mystudio-action-btn--disabled { opacity: .45; cursor: not-allowed; }
.mystudio-action-btn--disabled:hover { background: var(--strip); }
.mystudio-action-icon { font-size: 20px; }

/* Prime job price badges */
.prime-job-price { display: inline-block; padding: 2px 7px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.prime-price-paid { background: #dcfce7; color: #166534; }
.prime-price-invoiced { background: #dbeafe; color: #1e40af; }
.prime-price-pending { background: #fef3c7; color: #92400e; }
