/* Creator add-on screens. They follow Front Desk's own look (the white glass console by default, Eric 24 Nov):
   same fonts and colours as every other screen; only layout lives here.
   Flat colours only: no gradients, no glow. Everything is scoped to .cr so other screens are untouched. */
.cr .cr-gap { margin: -8px 0 12px; }

.cr-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1.5px solid var(--line); }
.cr-tabs a { padding: 9px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.cr-tabs a:hover { color: var(--ink); }
.cr-tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }

/* sign-ups each day: one plain bar per day */
.cr-days { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 6px; border-bottom: 1.5px solid var(--line); }
.cr-days i { flex: 1; min-width: 0; background: var(--accent); border-radius: 3px 3px 0 0; }
.cr-days i.zero { background: var(--line); }

.cr-later { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
.cr-later div { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.cr-needs { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }

/* media library */
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.cr-tile { position: relative; display: grid; padding: 0; border: 0; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; text-align: left; }
.cr-tile:hover, .cr-tile:focus-visible { outline: 2px solid var(--ink); }
.cr-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--soft); display: block; }
.cr-tile-foot { display: grid; gap: 2px; padding: 9px 11px 11px; font-size: 13px; min-width: 0; }
.cr-tile-foot strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-tile-foot span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-pick { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #f5b301; display: grid; place-items: center; font-size: 14px; }
.cr-big { width: 100%; max-height: 360px; object-fit: contain; background: var(--soft); border-radius: 12px; }
.cr-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; max-height: 220px; overflow-y: auto; padding: 2px; }
.cr-thumb { position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--soft); cursor: pointer; }
.cr-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.cr-thumb.on { border-color: var(--ink); }
.cr-thumb.on::after { content: "✓"; position: absolute; left: 5px; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.cr-thumb .cr-pick { width: 18px; height: 18px; font-size: 10px; top: 4px; right: 4px; }

/* post ideas board */
.cr-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.cr-col { background: var(--soft); border-radius: var(--radius); padding: 12px; display: grid; gap: 10px; }
.cr-col h3 { font-size: 17px; }
.cr-card { display: grid; gap: 4px; text-align: left; padding: 12px; border: 0; border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); cursor: pointer; }
.cr-card:hover, .cr-card:focus-visible { outline: 2px solid var(--ink); }
.cr-mini { display: flex; gap: 4px; margin-top: 4px; }
.cr-mini img { width: 38px; height: 38px; object-fit: cover; border-radius: 6px; background: var(--soft); }

/* scheduler calendar */
.cr-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cr-dow { padding: 6px 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cr-day { min-height: 96px; padding: 6px; display: grid; align-content: start; gap: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.cr-day.out { background: #faf9f6; } .cr-day.out .cr-num { color: #b7b3aa; }
.cr-num { font-size: 13px; font-weight: 700; }
.cr-day.today .cr-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink, #fff); }
.cr-post { display: block; width: 100%; text-align: left; border: 0; border-radius: 6px; padding: 3px 6px; font-size: 12px; font-weight: 600; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--soft); color: var(--ink); }
.cr-post.scheduled { background: var(--accent-soft, #e7f3fd); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cr-post.posted { background: #e3f4e8; color: var(--good); }
.cr-post.late { background: #fdf0d5; color: var(--warn); }
.cr-row { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: none; text-align: left; font: inherit; }

@media (max-width: 1000px) {
  .cr-board { grid-template-columns: 1fr 1fr; }
  .cr-later { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .cr-board, .cr-later { grid-template-columns: 1fr; }
  .cr-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .cr-day { min-height: 64px; padding: 3px; }
  .cr-post { font-size: 0; padding: 0; height: 8px; } /* on a phone each post is a small bar; the list below has the details */
  .cr-post b { display: none; }
}

/* Creator layout: a quiet menu grouped by job on the left, the page on the right. */
.cr-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.cr-side { position: sticky; top: 16px; display: grid; gap: 18px; padding-top: 6px; }
.cr-group { display: grid; gap: 2px; }
.cr-group-name { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0 10px 4px; }
.cr-side a { padding: 7px 10px; border-radius: 8px; color: var(--ink); font-size: 15px; }
.cr-side a:hover { background: var(--soft); }
/* the open screen: the same lit-edge look as the selected item in the main menu */
.cr-side a.on { font-weight: 700; color: var(--accent); background: var(--panel); outline: 1px solid var(--accent); outline-offset: -1px; box-shadow: var(--shadow); }
.cr-side a.soon { color: var(--muted); }
.cr-main { min-width: 0; }
.cr-setup { list-style: none; margin: 0; padding: 0; display: grid; }
.cr-setup li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.cr-setup li a { display: grid; gap: 2px; color: inherit; min-width: 0; }
.cr-setup li.done > span { color: var(--muted); }
.cr-setup li.waiting > span { color: var(--muted); font-style: italic; }
@media (max-width: 760px) {
  .cr-layout { grid-template-columns: 1fr; gap: 12px; }
  /* the glass window's close button sits top right: keep the menu row clear of it */
  .cr-side { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-right: 48px; scrollbar-width: none; }
  .cr-group { display: contents; }
  .cr-group-name { display: none; }
  .cr-side a { white-space: nowrap; border: 1px solid var(--line); }
}

/* Customer journey: steps in a row with the drop-off between them; a column on phones */
/* wraps onto a second row on narrower screens, so the whole funnel is always in view; each drop-off stays
   with the step it leads to */
.cr-link { display: flex; align-items: stretch; }
.cr-flow { display: flex; flex-wrap: wrap; align-items: stretch; row-gap: 16px; padding: 4px 2px 14px; }
.cr-step { flex: 0 0 196px; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; border: 0; border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.cr-step:hover, .cr-step:focus-visible { outline: 2px solid var(--ink); }
.cr-step.worst { outline: 2px solid var(--bad, #b42318); }
.cr-step.add { justify-content: center; align-items: center; background: transparent; box-shadow: none; border: 1.5px dashed var(--line); color: var(--muted); margin-left: 14px; }
.cr-step-kind { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cr-step-name { font-size: 15px; line-height: 1.25; }
.cr-step-num { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.cr-step-num .muted { font-family: inherit; font-size: 14px; }
.cr-step-note { font-size: 13px; line-height: 1.35; padding-top: 6px; border-top: 1px solid var(--line); }
.cr-gap-arrow { flex: 0 0 78px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; padding: 0 6px; text-align: center; font-size: 12px; color: var(--muted); }
.cr-gap-arrow strong { font-size: 15px; color: var(--ink); white-space: nowrap; }
.cr-gap-arrow.worst strong { color: var(--bad, #b42318); }
.cr-gap-arrow .chip { font-size: 11px; }

.cr-ab { display: grid; gap: 6px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.cr-ab:first-child { border-top: 0; }
.cr-ab-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cr-ab-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cr-ab-side { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--soft); min-width: 0; }
.cr-ab-side.wins { outline: 2px solid var(--ink); }
.cr-ab-side strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-ab-fields { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 12px; margin: 0; min-width: 0; display: grid; gap: 8px; }
.cr-ab-fields legend { font-weight: 700; padding: 0 4px; }
.cr-table-wrap { overflow-x: auto; }
.cr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cr-table th, .cr-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.cr-table .num { text-align: right; white-space: nowrap; }

@media (max-width: 760px) {
  .cr-flow { flex-direction: column; flex-wrap: nowrap; row-gap: 0; padding-bottom: 4px; }
  .cr-link { flex-direction: column; }
  .cr-step { flex: none; width: 100%; }
  .cr-step.add { margin: 10px 0 0; min-height: 56px; }
  .cr-gap-arrow { flex: none; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 8px; padding: 8px 14px; }
  .cr-ab-sides { grid-template-columns: 1fr; }
}

/* Messages by topic */
.cr-reply { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.cr-reply:first-child { border-top: 0; padding-top: 0; }
.cr-reply-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.cr-quote { margin: 0; padding: 8px 12px; border: 1px solid var(--line); background: var(--soft); border-radius: 8px; overflow-wrap: anywhere; }
.cr-try { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; }
.cr-try-out { display: grid; gap: 6px; margin-top: 10px; }
.cr-try-out p { margin: 0; }
.cr-topic { display: grid; gap: 4px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; color: var(--ink); font: inherit; min-width: 0; }
.cr-topic:first-child { border-top: 0; }
.cr-topic-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.cr-topic-num { font-size: 22px; font-weight: 800; }
.cr-examples { display: grid; gap: 4px; }
@media (max-width: 760px) {
  .cr-try { grid-template-columns: 1fr 1fr; }
  .cr-try > :first-child { grid-column: 1 / -1; }
}

/* Carousel maker */
.cr-decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.cr-deck { display: grid; gap: 6px; padding: 10px 10px 12px; border: 0; border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); text-align: left; cursor: pointer; color: var(--ink); font: inherit; min-width: 0; }
.cr-deck:hover, .cr-deck:focus-visible { outline: 2px solid var(--accent); }
.cr-deck-thumb { width: 100%; height: auto; border-radius: 8px; background: var(--soft); }
.cr-editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.cr-editor-stage { display: grid; gap: 12px; justify-items: center; min-width: 0; }
.cr-canvas { width: auto; max-width: 100%; height: min(62vh, 640px); border-radius: 12px; box-shadow: var(--shadow); background: var(--soft); }
.cr-canvas.r1-1 { height: min(52vh, 540px); }
.cr-strip { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 4px 2px 8px; }
.cr-strip-item, .cr-strip-add { flex: none; display: grid; gap: 2px; justify-items: center; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; color: var(--ink); font: inherit; }
.cr-strip-item.on { outline: 2px solid var(--accent); }
.cr-strip-thumb { height: 84px; width: auto; border-radius: 6px; }
.cr-strip-add { align-content: center; padding: 0 14px; min-height: 96px; color: var(--muted); border-style: dashed; }
.cr-editor-side { display: grid; gap: 16px; min-width: 0; }
.cr-editor-side input[type=color] { height: 42px; padding: 4px; }
@media (max-width: 1000px) {
  .cr-editor { grid-template-columns: 1fr; }
  .cr-canvas { height: auto; width: 100%; max-width: 420px; }
}

/* Look switch for the Creator screens. Light = Front Desk's own look (nothing changes). Flat colours only. */
.cr-look-seg { display: flex; gap: 4px; flex-wrap: wrap; padding: 0 6px; }
.cr-look-seg button { padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cr-look-seg button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--panel); }

.cr[data-look="dark"], .cr[data-look="dopamine"] { padding: 18px; border-radius: 24px; background: var(--cr-page); color: var(--ink); }
.cr[data-look="dark"] {
  --cr-page: #14171c; --ink: #eef1f4; --muted: #a3adb8; --line: #2e353e; --soft: #1f242b; --panel: #1b2027; --window: #1b2027;
  --glass: #232932; --rim: #3a434e; --accent: #7cc4ff; --accent-ink: #0d1116; --accent-soft: #1d2f40; --shadow: 0 1px 2px #0006;
  --good: #49d18f; --warn: #f0b847; --bad: #ff6b74;
}
.cr[data-look="dopamine"] {
  --cr-page: #fff4e8; --ink: #24113a; --muted: #6b4f86; --line: #f3c9e4; --soft: #fff0f8; --panel: #ffffff; --window: #ffffff;
  --glass: #ffffff; --rim: #ff5fa8; --accent: #e0207a; --accent-ink: #fff; --accent-soft: #ffe1ef; --shadow: 0 2px 0 #ffb3d6;
  --good: #11a36b; --warn: #e07a00; --bad: #d61f4f;
}
.cr[data-look="dark"] .card, .cr[data-look="dopamine"] .card { background: var(--window); border-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.cr[data-look="dopamine"] .card { border: 2px solid #ffd166; }
.cr[data-look="dopamine"] .cr-side a.on { background: #ffd166; color: var(--ink); outline: 2px solid var(--ink); }
.cr[data-look="dopamine"] .cr-step:nth-child(4n+1), .cr[data-look="dopamine"] .cr-link:nth-child(4n+1) .cr-step { background: #e8f7ff; }
.cr[data-look="dopamine"] .cr-link:nth-child(4n+2) .cr-step { background: #fff6d6; }
.cr[data-look="dopamine"] .cr-link:nth-child(4n+3) .cr-step { background: #f0e8ff; }
.cr[data-look="dopamine"] .cr-link:nth-child(4n) .cr-step { background: #e6fbef; }
.cr[data-look="dark"] .btn, .cr[data-look="dopamine"] .btn { background: var(--glass); color: var(--ink); border-color: var(--rim); box-shadow: none; }
.cr[data-look="dark"] .btn::before, .cr[data-look="dopamine"] .btn::before { display: none; }
.cr[data-look="dark"] .btn.primary, .cr[data-look="dopamine"] .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cr[data-look="dark"] .in, .cr[data-look="dark"] input, .cr[data-look="dark"] select, .cr[data-look="dark"] textarea { background: #10141a; color: var(--ink); border-color: var(--line); }
.cr[data-look="dark"] .banner { background: #2d2614; border-color: #5c4b1c; color: #f3dca0; }
/* status colours stay readable on dark: same meaning, darker fills */
.cr[data-look="dark"] .chip { background: var(--soft); color: var(--muted); }
.cr[data-look="dark"] .chip.booked { background: var(--accent-soft); color: var(--accent); }
.cr[data-look="dark"] .chip.confirmed, .cr[data-look="dark"] .chip.won, .cr[data-look="dark"] .chip.done { background: #173326; color: var(--good); }
.cr[data-look="dark"] .chip.pending, .cr[data-look="dark"] .chip.test { background: #3a2e12; color: var(--warn); }
.cr[data-look="dark"] .chip.bad, .cr[data-look="dark"] .chip.lost, .cr[data-look="dark"] .chip.failed { background: #3d1a1e; color: var(--bad); }
.cr[data-look="dark"] .cr-day.out { background: #171b21; } .cr[data-look="dark"] .cr-day.out .cr-num { color: #5d6672; }
.cr[data-look="dark"] .cr-post { background: var(--soft); color: var(--ink); }
.cr[data-look="dark"] .cr-post.posted { background: #173326; color: var(--good); }
.cr[data-look="dark"] .cr-post.late { background: #3a2e12; color: var(--warn); }
.cr[data-look="dark"] .cr-day, .cr[data-look="dark"] .cr-cal-head { border-color: var(--line); }
.cr[data-look="dopamine"] .cr-day.out { background: #fff7ef; }
.cr[data-look="dark"] .cr-side a:hover, .cr[data-look="dopamine"] .cr-side a:hover { background: var(--soft); }
@media (max-width: 760px) {
  .cr[data-look="dark"], .cr[data-look="dopamine"] { padding: 10px; border-radius: 16px; }
  .cr-look { display: flex; align-items: center; }
  .cr-look-seg { flex-wrap: nowrap; padding: 0; }
  .cr-look-seg button { white-space: nowrap; }
}

/* Social numbers */
.cr-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.cr-tile-num { display: grid; gap: 4px; padding: 14px 16px; }
.cr-tile-num strong { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.cr-views { align-items: stretch; height: 140px; }
.cr-vday { flex: 1; min-width: 0; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; position: relative; padding-bottom: 10px; }
.cr-vday i { display: block; flex: none; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; }
.cr-vday i.zero { background: var(--line); }
.cr-vday b { position: absolute; bottom: 0; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--ink); }
.cr-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }

/* Video editor */
.cr-hidden-video { display: none; }
.cr-vcanvas.r9-16 { height: min(64vh, 680px); }
.cr-transport { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; }
.cr-scrub { flex: 1; min-width: 0; }
.cr-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cr-lines { display: grid; gap: 10px; }
.cr-line { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.cr-line:first-child { border-top: 0; padding-top: 0; }
.cr-line-times { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cr-line-times label { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.cr-line-times input[type=number] { width: 72px; min-height: 36px; }
.cr-line-times select { width: auto; flex: 0 1 auto; min-height: 36px; }
.cr-line-times .btn { min-height: 34px; padding: 0 10px; }
@media (max-width: 1000px) {
  .cr-vcanvas.r9-16 { height: auto; width: 100%; max-width: 340px; }
}

/* Videos in the media library (details only; files stay on her computer) */
.cr-clip-blank { display: grid; place-content: center; gap: 4px; aspect-ratio: 1; background: var(--soft); color: var(--muted); text-align: center; }
.cr-clip-blank b { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cr-found { font-size: 12px; color: var(--ink); white-space: normal !important; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.cr-transcript { max-height: 220px; overflow: auto; }
/* search rows: the search box keeps a usable width and the rest wraps under it on phones */
.cr-main .row > .grow { flex: 1 1 220px; }
