/* Clients section. Uses the dashboard's existing tokens (--panel, --accent, --cyan...). */

.cl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 6px 0 16px; }
.cl-head h1 { font-size: 22px; margin: 0 0 4px; }
.cl-notice { background: rgba(52,237,243,0.08); border: 1px solid rgba(52,237,243,0.35); color: var(--text); border-radius: 8px; padding: 9px 12px; margin: 0 0 14px; font-size: 13px; }
.cl-count { color: var(--muted); font-weight: 400; font-size: 0.8em; margin-left: 6px; }
.cl-dim { color: var(--muted); }
.cl-danger { color: var(--bad) !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cl-input {
  background: var(--track); border: 1px solid var(--panel-border); border-radius: 8px;
  padding: 8px 10px; color: var(--text); font-size: 13px; font-family: inherit; min-height: 36px; width: 100%;
}
textarea.cl-input { line-height: 1.5; resize: vertical; }
.cl-input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.cl-mini { width: auto; min-height: 30px; padding: 4px 8px; font-size: 12px; }

.cl-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.cl-sticky { position: sticky; bottom: 10px; z-index: 5; background: var(--bg); padding: 8px 0; margin-bottom: 16px; }

/* Follow-up cards */
.cl-fu-list { display: grid; gap: 10px; }
.cl-fu {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px;
  background: var(--track); border: 1px solid var(--panel-border); border-left: 3px solid var(--panel-border);
  border-radius: 10px; padding: 12px 14px;
}
.cl-fu.overdue { border-left-color: var(--accent); }
.cl-fu h3 { margin: 4px 0 2px; font-size: 15px; }
.cl-fu p { margin: 0; color: var(--text); font-size: 13px; opacity: 0.9; }
.cl-fu-due { font-size: 12px; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.cl-fu-due.late { color: var(--accent-bright); }
.cl-fu .cl-actions { grid-column: 1 / -1; margin-top: 8px; }
.cl-fu.compact { padding: 9px 12px; }
.cl-fu.compact h3 { font-size: 14px; margin: 2px 0 0; }

.cl-tag { font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }
.cl-tag-rebook { color: var(--accent-bright); }
.cl-tag-review { color: var(--good); }
.cl-tag-preshow { color: var(--cyan); }
.cl-tag-partner { color: #c9a8ff; }

/* Rows */
.cl-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.cl-toolbar .cl-input { max-width: 320px; }
.cl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cl-chip {
  background: transparent; color: var(--muted); border: 1px solid var(--panel-border); border-radius: 999px;
  padding: 6px 12px; font-size: 12.5px; cursor: pointer; font-family: inherit;
}
.cl-chip:hover { color: var(--text); border-color: var(--accent-dim); }
.cl-chip.on { color: #1a0f02; background: var(--accent); border-color: var(--accent); }
.cl-chip:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.cl-questions { margin-bottom: 14px; }

.cl-list { display: grid; gap: 0; }
.cl-row h3 { margin: 0; font-size: 15px; }
.cl-row p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.cl-row-top { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cl-row-title { background: none; border: 0; color: inherit; text-align: left; padding: 0; cursor: pointer; font-family: inherit; flex: 1 1 240px; min-width: 0; }
.cl-row-title:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 4px; }
.cl-row-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.cl-row.open { border-color: var(--accent-dim); }
.cl-inbox .cl-row { border-top: 1px solid var(--panel-border); padding: 12px 0; display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.cl-inbox .cl-row:first-of-type { border-top: 0; }
.cl-quote { border-left: 2px solid var(--accent-dim); padding-left: 10px; margin: 8px 0 0 !important; white-space: pre-wrap; color: var(--text) !important; }

.cl-badge { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--panel-border); color: var(--muted); white-space: nowrap; }
.cl-badge.good { color: var(--good); border-color: rgba(53,242,166,0.35); }
.cl-badge.warn { color: var(--accent-bright); border-color: rgba(255,158,44,0.45); }
.cl-badge.info { color: var(--cyan); border-color: rgba(52,237,243,0.35); }

.cl-detail { border-top: 1px solid var(--panel-border); margin-top: 12px; padding-top: 12px; }
.cl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cl-grid label { display: grid; gap: 5px; font-size: 12px; color: var(--muted); align-content: start; }
.cl-grid .cl-span1 { grid-column: span 1; }
.cl-grid .cl-span2 { grid-column: span 2; }
.cl-grid .cl-span3 { grid-column: 1 / -1; }
.cl-check { display: flex !important; gap: 8px; align-items: center; color: var(--text) !important; font-size: 13px !important; }
.cl-log { margin-top: 12px; font-size: 12.5px; display: grid; gap: 3px; }
.cl-log h4 { margin: 0 0 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.cl-trash { padding: 8px 0; border-top: 1px solid var(--panel-border); }
.cl-trash .cl-actions { margin-top: 0; }
.cl-code { background: var(--track); padding: 6px 10px; border-radius: 6px; font-size: 12.5px; word-break: break-all; }

/* Insights */
.cl-answer { font-size: 15px; line-height: 1.5; margin: 0 0 14px; }
.cl-bars { display: grid; gap: 8px; margin: 10px 0 12px; }
.cl-bar { display: grid; grid-template-columns: minmax(110px, 180px) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.cl-bar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-bar .track { height: 10px; background: var(--track); border-radius: 999px; overflow: hidden; border: 1px solid var(--panel-border); }
.cl-bar .fill { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); border-radius: 999px; }
.cl-bar .val { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0 10px; }
.cl-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--panel-border); }
.cl-table td { padding: 8px; border-bottom: 1px solid rgba(34,48,73,0.6); vertical-align: top; }
.cl-insight, .cl-table-wrap { overflow-x: auto; }

/* Dialog */
.cl-dialog {
  background: var(--panel); color: var(--text); border: 1px solid var(--panel-border); border-radius: 14px;
  padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 40px);
}
.cl-dialog::backdrop { background: rgba(3,6,12,0.7); }
.cl-compose { display: grid; gap: 12px; padding: 20px; }
.cl-compose h2 { margin: 0; font-size: 17px; }
.cl-compose label { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }

@media (max-width: 760px) {
  .cl-grid { grid-template-columns: 1fr; }
  .cl-grid .cl-span2 { grid-column: auto; }
  .cl-fu { grid-template-columns: 1fr; }
  .cl-bar { grid-template-columns: 100px 1fr; }
  .cl-bar .val { grid-column: 2; }
}

/* Dashboard popups (calendar, CRM record, CRM contact, travel): centered and
   draggable on desktop. Phones keep the bottom-sheet style. */
@media (min-width: 761px) {
  body .calendar-event-modal-backdrop { align-items: center; padding: 24px; }
  body .calendar-event-modal {
    border-radius: 14px;
    max-height: 84vh;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    padding-top: 30px;
  }
  body .calendar-event-modal::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 44px;
    height: 26px;
    cursor: grab;
    background: radial-gradient(circle, rgba(126,144,174,0.55) 1.2px, transparent 1.6px) center 11px / 9px 9px repeat-x;
    background-size: 9px 9px;
    -webkit-mask: linear-gradient(90deg, transparent calc(50% - 22px), #000 calc(50% - 22px), #000 calc(50% + 22px), transparent calc(50% + 22px));
            mask: linear-gradient(90deg, transparent calc(50% - 22px), #000 calc(50% - 22px), #000 calc(50% + 22px), transparent calc(50% + 22px));
  }
  body .calendar-event-modal.cl-dragging { user-select: none; box-shadow: 0 26px 70px rgba(0, 0, 0, 0.65); }
  body .calendar-event-modal.cl-dragging::before { cursor: grabbing; }
}

/* collapse controls on an open booking */
.cl-chev { display: inline-block; width: 1.1em; color: var(--muted, #8697ae); font-size: 0.8em; }
.cl-row-title:hover .cl-chev { color: #ff9e2c; }
.cl-collapse { display: flex; justify-content: flex-end; margin-top: 12px; }

/* Today: needs attention */
.cl-attn { display: grid; gap: 10px; }
.cl-attn-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--panel-border, #1c2430); border-radius: 8px; background: rgba(4,5,6,0.55); }
.cl-attn-main h3 { margin: 0 0 8px; font-size: 15px; }
.cl-attn-main h3 .cl-dim { font-weight: 400; font-size: 13px; }
.cl-badge.bad { color: #ff7a6b; border-color: rgba(255,122,107,0.45); }

/* Email campaigns */
.cmp-list { border: 1px solid var(--panel-border, #1c2430); border-radius: 8px; max-height: 360px; overflow-y: auto; }
.cmp-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px; }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row.off { opacity: 0.5; }
.cmp-row input { accent-color: #ff9e2c; }
.cmp-who { flex: 1; min-width: 0; }
.cmp-preview { border: 1px dashed rgba(255,255,255,0.15); border-radius: 8px; padding: 12px 14px; margin: 12px 0; }
.cmp-preview .cmp-subj { font-weight: 700; margin: 4px 0 8px; }
.cmp-preview pre { white-space: pre-wrap; font: inherit; font-size: 14px; margin: 0; color: var(--text, #d9dce1); }
.cmp-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14px; cursor: pointer; }
.cmp-check input { width: auto !important; margin: 0; accent-color: #ff9e2c; }
.cmp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 2px; font-size: 13px; }
.cmp-chip { background: transparent; color: inherit; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 4px 11px; font-size: 13px; cursor: pointer; }
.cmp-chip span { opacity: 0.6; margin-left: 3px; }
.cmp-chip.on { border-color: #ff9e2c; background: rgba(255,158,44,0.15); color: #ffb85c; }
.cmp-law { margin: 10px 0 0; font-size: 13px; color: var(--text-dim, #9aa3ad); border-left: 3px solid rgba(52,237,243,0.5); padding: 6px 10px; }
.cmp-law.warn { border-left-color: #ff6b5a; color: #ffb3a8; background: rgba(255,107,90,0.08); }

/* Show sheet */
.cl-sheet { max-width: 560px; }
.cl-sheet h2 { margin: 2px 0 4px; font-size: 22px; }
.cl-sheet-kicker { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-bright); font-weight: 700; }
.cl-sheet-when { margin: 0 0 12px; color: var(--cyan); font-weight: 600; }
.cl-sheet-warn { margin: 0 0 12px; padding: 8px 10px; border-radius: 8px; background: rgba(255,158,44,0.1); border: 1px solid rgba(255,158,44,0.35); font-size: 13px; }
.cl-sheet-list { margin: 0 0 16px; }
.cl-sheet-row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--panel-border); }
.cl-sheet-row dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; padding-top: 2px; }
.cl-sheet-row dd { margin: 0; line-height: 1.5; }
.cl-sheet-row a { color: var(--cyan); }
@media (max-width: 600px) {
  #cl-sheet .cl-sheet { width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; overflow-y: auto; }
  .cl-sheet-row { grid-template-columns: 1fr; gap: 2px; }
  .cl-sheet-row dd { font-size: 16px; }
}
@media print {
  body > *:not(#cl-sheet) { display: none !important; }
  #cl-sheet { position: static !important; background: none !important; display: block !important; }
  #cl-sheet .cl-sheet { box-shadow: none; border: 0; color: #000; background: #fff; max-width: none; }
  #cl-sheet .config-actions, #cl-sheet .calendar-event-modal-close { display: none !important; }
  .cl-sheet-row dt, .cl-sheet-when, .cl-sheet-kicker { color: #444 !important; }
}

/* Testimonials */
.cl-tm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.cl-tm { border: 1px solid var(--panel-border); border-radius: 10px; padding: 14px; background: var(--track); display: flex; flex-direction: column; gap: 8px; }
.cl-tm blockquote { margin: 0; font-size: 15px; line-height: 1.55; font-style: italic; }
.cl-tm-stars { color: #ffc670; letter-spacing: 2px; }
.cl-tm-stars span { color: var(--panel-border); }

.cl-brief-email { border-radius: 10px; overflow: hidden; max-height: 640px; overflow-y: auto; }
.cl-brief-email h1, .cl-brief-email h2 { text-shadow: none; }

.cl-activity { margin-top: 12px; max-height: 420px; overflow-y: auto; }
.cl-act-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--panel-border); font-size: 13px; }
.cl-act-who { font-weight: 700; color: var(--cyan); }
@media (max-width: 600px) { .cl-act-row { grid-template-columns: 60px 1fr; } .cl-act-row .cl-dim { grid-column: 2; } }

.cl-cover { grid-column: span 2; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; align-self: end; }
.cl-insight h4 { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }

/* System health, notifications (today-extras.js) */
.tx-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); flex: none; margin-top: 6px; }
.tx-check { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--panel-border); }
.tx-check > div { flex: 1; }
.tx-check .muted { font-size: 13px; margin-top: 2px; }
.tx-check.warn .tx-dot { background: var(--accent-bright); box-shadow: 0 0 8px var(--accent-bright); }
.tx-check.bad .tx-dot { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.tx-allgood { margin: 0; display: flex; gap: 10px; align-items: center; }
.tx-allgood .tx-dot { margin-top: 0; }
.tx-health-bad { border-color: rgba(255,59,48,0.55) !important; box-shadow: 0 0 0 1px rgba(255,59,48,0.25), 0 0 24px rgba(255,59,48,0.12); }
.tx-health-warn { border-color: rgba(255,158,44,0.5) !important; }
.tx-steps { margin: 0; padding-left: 20px; line-height: 1.7; }
.tx-prefs { display: flex; flex-direction: column; gap: 6px; }
.tx-pref { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.tx-pref input { width: auto; accent-color: var(--accent); }
.cl-check-inline { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--muted, #8697ae); font-weight: 400; }
.cl-check-inline input { width: 16px; height: 16px; accent-color: #ff9e2c; }
/* Performer row: name, fee and email line up, payment line underneath */
.cl-cover-grid { margin: 4px 0; padding: 12px 0; border-top: 1px solid rgba(134,151,174,0.15); border-bottom: 1px solid rgba(134,151,174,0.15); }
.cl-cover-grid .cl-input { height: 42px; box-sizing: border-box; }
.cl-cover-grid .cl-cover { grid-column: 1 / -1; align-self: auto; }
@media (max-width: 760px) { .cl-cover-grid { grid-template-columns: 1fr; } }
/* Tap-to-call and contact strip */
.cl-call { white-space: nowrap; color: var(--cyan, #34edf3); text-decoration: none; font-weight: 600; }
.cl-call:hover { text-decoration: underline; }
.cl-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 0 14px; padding: 10px 14px; border: 1px solid rgba(52,237,243,0.18); border-radius: 10px; background: rgba(52,237,243,0.04); font-size: 14px; }
.cl-contact a { color: var(--cyan, #34edf3); text-decoration: none; font-weight: 600; }

/* Website inquiry replies */
.cl-inq-warn { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: rgba(240, 180, 60, .12); color: #f0c26a; font-size: 13.5px; }
.cl-inq-warn .btn { margin-left: 6px; }
.cl-inq-mail { margin-top: 10px; padding: 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.cl-inq-mail pre { white-space: pre-wrap; font: inherit; font-size: 14px; line-height: 1.5; margin: 8px 0 0; }
.cl-inq-done { opacity: .75; }
.cl-inq-recent { margin-top: 12px; }
.cl-inq-recent summary { cursor: pointer; color: var(--muted, #9aa4b2); font-size: 13.5px; }
.cl-inq-gmail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 8px; }
.cl-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.cl-fu.cl-inq { display: block; }
.cl-inq .cl-row-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.cl-inq .cl-actions { margin-top: 10px; }
.cl-inq p.cl-inq-warn { color: #f0c26a; }
#inquiry-settings .cl-check-inline { font-size: 14px; color: var(--text); }
#inquiry-settings label.cl-check-inline { flex-direction: row !important; align-items: center; display: flex; }
#inquiry-settings label.cl-check-inline input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
#showday-settings label.cl-check-inline { flex-direction: row !important; align-items: center; display: flex; font-size: 14px; color: var(--text); }
#showday-settings label.cl-check-inline input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }

/* Booking details: every field the same height, labels and hints consistent */
.cl-detail .cl-grid input.cl-input:not(.cl-mini):not([type=checkbox]), .cl-detail .cl-grid select.cl-input:not(.cl-mini) { height: 40px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
.cl-grid label.cl-check-inline { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.cl-hint { font-size: 12px; color: var(--muted); opacity: .85; }
.cl-field { display: grid; gap: 6px; align-content: start; }
.cl-field-label { font-size: 12px; color: var(--muted); }
.cl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-grid label.cl-chip { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; height: 40px; box-sizing: border-box; padding: 0 14px; border: 1px solid rgba(134,151,174,0.3); border-radius: 999px; font-size: 14px; color: var(--text, #e8eef6); cursor: pointer; user-select: none; }
.cl-grid label.cl-chip input { width: 16px; height: 16px; margin: 0; accent-color: #ff9e2c; }
.cl-grid label.cl-chip:has(input:checked) { border-color: #ff9e2c; background: rgba(255,158,44,0.1); }
.cl-grid label.cl-chip:focus-within { outline: 2px solid var(--cyan); outline-offset: 1px; }

/* Multi-pick dropdown (looks like the other selects) */
.cl-multi { position: relative; }
.cl-multi > summary { list-style: none; display: flex; align-items: center; height: 40px; box-sizing: border-box; padding: 0 34px 0 12px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.cl-multi > summary::-webkit-details-marker { display: none; }
.cl-multi > summary::after { content: ''; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); }
.cl-multi[open] > summary::after { transform: translateY(-20%) rotate(-135deg); }
.cl-multi-menu { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: #121a26; border: 1px solid rgba(134,151,174,0.35); border-radius: 10px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.cl-grid label.cl-multi-opt { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px; font-size: 14px; color: var(--text, #e8eef6); cursor: pointer; }
.cl-grid label.cl-multi-opt:hover { background: rgba(255,255,255,.05); }
.cl-grid label.cl-multi-opt input { width: 16px; height: 16px; margin: 0; accent-color: #ff9e2c; }
.cl-multi-foot { font-size: 11px; padding: 6px 10px 2px; }

/* Booking detail: summary tiles, main actions, then tidy collapsible sections */
.cl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 0 0 12px; }
.cl-stat { border: 1px solid rgba(134,151,174,0.18); border-radius: 10px; padding: 9px 12px; background: rgba(255,255,255,0.02); display: grid; gap: 3px; }
.cl-stat span { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.cl-stat b { font-size: 15px; font-weight: 700; color: var(--text, #e8eef6); }
.cl-stat b small { font-size: 12px; font-weight: 500; color: var(--muted); }
.cl-stat.ok { border-color: rgba(74,222,128,0.35); } .cl-stat.ok b { color: #4ade80; }
.cl-stat.warn { border-color: rgba(255,158,44,0.45); } .cl-stat.warn b { color: #ff9e2c; }
.cl-actions-main { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(134,151,174,0.15); }
.cl-sec { border: 1px solid rgba(134,151,174,0.16); border-radius: 12px; margin: 0 0 10px; background: rgba(255,255,255,0.015); }
.cl-sec > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 14px; padding: 12px 16px; user-select: none; }
.cl-sec > summary::-webkit-details-marker { display: none; }
.cl-sec > summary::before { content: '▸'; color: #ff9e2c; font-size: 12px; width: 10px; transition: transform .15s; }
.cl-sec[open] > summary::before { transform: rotate(90deg); }
.cl-sec > summary:hover { background: rgba(255,255,255,0.03); border-radius: 12px; }
.cl-sec-title { font-weight: 700; font-size: 14px; letter-spacing: .3px; color: var(--text, #e8eef6); white-space: nowrap; }
.cl-sec-hint { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cl-sec-body { padding: 4px 16px 16px; }
.cl-sec-body > .cl-log:first-child { margin-top: 0; }
.cl-sec-body .cl-cover-grid { border: 0; padding: 4px 0 0; margin: 0; }
.cl-actions-foot { margin-top: 14px; }
.cl-detail .btn.ghost, .cl-form .btn.ghost { background: transparent; border: 1px solid transparent; color: var(--muted); box-shadow: none; }
.cl-detail .btn.ghost:hover, .cl-form .btn.ghost:hover { color: var(--text, #e8eef6); border-color: rgba(134,151,174,0.3); }
@media (max-width: 760px) { .cl-sec-hint { display: none; } }

/* Settings, Performers */
.cl-form-sub { margin: 18px 0 10px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #ff9e2c; font-weight: 700; }
.cl-form-sub:first-of-type { margin-top: 4px; }
.cl-perf { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: start; }
.cl-perf-pic { position: relative; width: 132px; height: 132px; border-radius: 12px; overflow: hidden; background: rgba(255,158,44,0.08); border: 1px solid rgba(255,158,44,0.25); display: grid; place-items: center; }
.cl-perf-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-perf-pic span { font-size: 46px; font-weight: 700; color: #ff9e2c; }
.cl-perf-main h3 { margin: 0; }
.cl-perf-main .cl-row-top p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.cl-perf-contact { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; }
.cl-perf-contact a { color: var(--cyan, #34edf3); text-decoration: none; font-weight: 600; }
.cl-perf-pitch { margin: 8px 0 0; color: var(--text, #e8eef6); font-size: 14px; line-height: 1.5; }
.cl-perf-ready { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.cl-perf-ready .ok { color: #4ade80; }
.cl-perf .cl-actions { margin-top: 10px; }
@media (max-width: 640px) { .cl-perf { grid-template-columns: 1fr; } .cl-perf-pic { width: 88px; height: 88px; } }

.cl-photo-row { display: flex; gap: 14px; align-items: center; }
.cl-photo-prev { width: 76px; height: 76px; border-radius: 50%; flex: 0 0 76px; }
.cl-photo-prev span { font-size: 28px; }

.cl-op-list { display: grid; gap: 6px; }
.cl-op { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid rgba(134,151,174,0.18); border-radius: 8px; }
.cl-op-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cl-doc-pick { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 4px; }

/* Headshot cropper */
.cl-crop-back { position: fixed; inset: 0; z-index: 9999; background: rgba(3,6,12,0.78); display: grid; place-items: center; padding: 16px; }
.cl-crop { background: #0b1019; border: 1px solid rgba(134,151,174,0.25); border-radius: 16px; padding: 20px 22px; max-width: 360px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.cl-crop h3 { margin: 0 0 4px; }
.cl-crop p { margin: 0 0 14px; font-size: 13px; }
.cl-crop-stage { position: relative; margin: 0 auto; overflow: hidden; border-radius: 12px; background: #000; touch-action: none; cursor: grab; user-select: none; }
.cl-crop-stage:active { cursor: grabbing; }
.cl-crop-stage img { position: absolute; max-width: none; pointer-events: none; }
.cl-crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 400px rgba(0,0,0,0.6); border: 2px solid rgba(255,158,44,0.9); pointer-events: none; }
.cl-crop-zoom { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; color: var(--muted); font-size: 18px; }
.cl-crop-zoom input { flex: 1; accent-color: #ff9e2c; }

.cl-region-warn { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; padding: 12px 14px; border: 1px solid rgba(255,122,107,0.5); border-radius: 10px; background: rgba(255,122,107,0.08); color: var(--text, #e8eef6); font-size: 14px; }
.cl-region-warn > div { flex: 1; min-width: 240px; }
.cl-region-warn select { width: auto; min-width: 220px; }

/* Bookings pipeline tabs */
.cl-stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto auto auto; gap: 6px; margin: 0 0 14px; }
.cl-stage { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 12px; border: 1px solid rgba(134,151,174,0.22); border-radius: 10px; background: rgba(255,255,255,0.02); color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; position: relative; }
.cl-stage .n { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; border: 1px solid rgba(134,151,174,0.35); }
.cl-stage .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-stage .c { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: rgba(134,151,174,0.15); color: var(--text, #e8eef6); }
.cl-stage:hover { color: var(--text, #e8eef6); border-color: rgba(255,158,44,0.45); }
.cl-stage.on { color: var(--text, #e8eef6); border-color: #ff9e2c; background: rgba(255,158,44,0.1); box-shadow: 0 0 16px rgba(255,158,44,0.15); }
.cl-stage.on .n { background: #ff9e2c; border-color: #ff9e2c; color: #1a0f02; }
.cl-stage.on .c { background: #ff9e2c; color: #1a0f02; }
.cl-stage.end .t { flex: none; }
.cl-stage:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.cl-stage-hint { margin: 0; color: var(--muted); font-size: 13.5px; }
.cl-stage-of { margin: 10px 0 4px; font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: #ff9e2c; font-weight: 700; }
@media (max-width: 1100px) { .cl-stages { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cl-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cl-detail .btn.ghost.cl-lose:hover { color: #ff7a6b; border-color: rgba(255,122,107,0.5); }

/* ---- Newsletter ---- */
.nl-sched { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-top: 8px; }
.nl-sched label { display: flex; flex-direction: column; gap: 4px; }
.nl-sched .cmp-check { flex-direction: row; align-items: center; padding-bottom: 8px; }
.nl-aud { margin-top: 10px; }
.nl-issue { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border, rgba(255,255,255,0.08)); }
.nl-issue.sent { opacity: 0.8; }
.nl-issue-main { min-width: 240px; flex: 1; }
.nl-issue-main .cl-badge { margin-left: 6px; }
.nl-issue .cl-actions { margin: 0; }
.nl-h3 { margin: 22px 0 4px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.7; }
.nl-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.nl-form { display: flex; flex-direction: column; gap: 12px; }
.nl-form > label { display: flex; flex-direction: column; gap: 4px; }
.nl-hl { display: flex; flex-direction: column; gap: 6px; }
.nl-hl-row { display: grid; grid-template-columns: 90px 1fr 1.4fr; gap: 6px; }
.nl-preview { position: sticky; top: 12px; }
.nl-preview-cap { margin-bottom: 6px; }
.nl-preview iframe { width: 100%; height: 860px; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; background: #eceef2; }
@media (max-width: 1000px) { .nl-split { grid-template-columns: 1fr; } .nl-preview { position: static; } .nl-preview iframe { height: 640px; } }
@media (max-width: 560px) { .nl-hl-row { grid-template-columns: 70px 1fr; } .nl-hl-row input:last-child { grid-column: 1 / -1; } }
.nl-lists { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; }
.nl-list { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px dashed rgba(255,255,255,0.22); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.nl-list strong { display: block; font-size: 14px; }
.nl-list small { display: block; font-size: 12px; opacity: 0.7; }
.nl-list .nl-tick { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid currentColor; font-size: 13px; flex: 0 0 auto; }
.nl-list.on { border-style: solid; border-color: #ff9e2c; background: rgba(255,158,44,0.1); }
.nl-list.on .nl-tick { background: #ff9e2c; border-color: #ff9e2c; color: #111; }
.nl-list.fixed { cursor: default; opacity: 0.9; }
.nl-list.cold { opacity: 0.4; cursor: not-allowed; }
.nl-list:hover:not(:disabled) { border-color: #ff9e2c; }
.nl-ai { margin: 4px 0 18px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,158,44,0.45); background: rgba(255,158,44,0.07); }
.nl-ai label { display: block; margin-bottom: 8px; }
.nl-ai-row { display: flex; gap: 10px; align-items: stretch; }
.nl-ai-row textarea { flex: 1; resize: vertical; }
.nl-ai-row .btn { white-space: nowrap; }
@media (max-width: 560px) { .nl-ai-row { flex-direction: column; } }
.nl-or { font-weight: 400; font-size: 12.5px; margin-left: 10px; opacity: 0.85; display: inline-flex; gap: 5px; align-items: center; }
.nl-design { padding: 12px; border: 1px solid rgba(255,158,44,0.35); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
.nl-design canvas { width: 100%; height: auto; border-radius: 8px; display: block; background: #07080b; }
.nl-stats { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 6px; font-size: 14px; }
.nl-stats strong { color: #ff9e2c; }
.nl-who { margin-top: 8px; border-top: 1px solid rgba(255,255,255,0.08); max-height: 320px; overflow: auto; }
.nl-who-row { display: grid; grid-template-columns: minmax(160px, 1.2fr) 150px 1.6fr; gap: 10px; padding: 6px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.nl-who-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .nl-who-row { grid-template-columns: 1fr; gap: 2px; } }
.cl-group-title { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; font-size: 15px; }
.cl-group-title .btn { margin-left: auto; }
.nl-tiers { border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 10px 12px 12px; margin: 0 0 12px; }
.nl-tiers legend { padding: 0 4px; font-size: 14px; line-height: 1.4; }
.nl-tier-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; }
.nl-tier { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.nl-tier input { width: 16px; height: 16px; accent-color: #ff9e2c; }
