/* Back office: pink, soft, and easy on the eyes. */

:root {
  --bg: #fff3f7;
  --bg-2: #ffe7f0;
  --card: #ffffff;
  --blush: #ffd6e6;
  --blush-2: #ffeaf2;
  --pink: #e0457f;
  --pink-ink: #c22f68;      /* buttons and links: passes contrast on white */
  --pink-deep: #8d1f4f;
  --berry: #3b1530;         /* main text */
  --muted: #8a5f78;
  --line: #f6cfdf;
  --line-2: #f9e1ea;
  --ok: #2f8a63;
  --ok-bg: #e4f6ec;
  --warn: #a5590c;
  --warn-bg: #fff1dc;
  --bad: #b3263e;
  --bad-bg: #ffe3e7;
  --lilac: #7c4ab8;
  --lilac-bg: #f1e8fc;
  --display: "Petrona", Georgia, serif;
  --sans: "Figtree", -apple-system, system-ui, sans-serif;
  --r: 16px;
  --shadow: 0 1px 2px rgba(141, 31, 79, 0.06), 0 6px 24px rgba(141, 31, 79, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--berry); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--pink-ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; }
h2 { font-size: 23px; line-height: 1.2; }
h3 { font-size: 17px; font-family: var(--sans); font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(224, 69, 127, 0.45); outline-offset: 2px; }

[hidden] { display: none !important; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-msg { color: var(--muted); }

/* ---------------------------------------------------------------- login */

.login { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(900px 600px at 20% 0%, #ffd0e2, transparent 60%), radial-gradient(700px 500px at 100% 100%, #ffe1ec, transparent 60%), var(--bg); }
.login-card { width: min(100%, 400px); background: var(--card); border-radius: 24px; padding: 36px 32px; box-shadow: var(--shadow); text-align: center; }
.login-card .logo { font: italic 600 42px/1 var(--display); color: var(--pink-deep); margin-bottom: 6px; }
.login-card p { color: var(--muted); margin-bottom: 24px; }
.login-card form { display: grid; gap: 12px; text-align: left; }

/* --------------------------------------------------------------- layout */

.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 26px 16px; display: flex; flex-direction: column; gap: 4px; background: linear-gradient(180deg, #fff, #fff6fa); border-right: 1px solid var(--line-2); }
.side .logo { font: italic 600 32px/1 var(--display); color: var(--pink-deep); padding: 0 12px 4px; }
.side .logo-sub { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding: 0 12px 22px; }
.side a.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--berry); text-decoration: none; font-weight: 500; }
.side a.nav-item:hover { background: var(--blush-2); }
.side a.nav-item.on { background: var(--blush); color: var(--pink-deep); font-weight: 700; }
.nav-ico { width: 22px; text-align: center; font-size: 17px; }
.nav-count { margin-left: auto; background: var(--pink); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.side .side-foot { margin-top: auto; display: grid; gap: 6px; }

.main { padding: 32px clamp(16px, 4vw, 48px) 110px; max-width: 1180px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head .sub { color: var(--muted); margin-top: 6px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack { display: grid; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line-2); gap: 4px; }
  .side .logo, .side .logo-sub, .side .side-foot { display: none; }
  .side a.nav-item { flex: none; padding: 8px 12px; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- cards */

.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h2 { flex: 1; }
.empty { color: var(--muted); padding: 18px; text-align: center; border: 2px dashed var(--line); border-radius: 14px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; text-decoration: none; color: inherit; display: block; }
.stat:hover { box-shadow: 0 0 0 2px var(--blush), var(--shadow); }
.stat b { display: block; font: 600 36px/1 var(--display); color: var(--pink-deep); margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; margin-bottom: 22px; background: var(--warn-bg); color: var(--warn); }
.banner b { color: #7a3f05; }
.banner.pink { background: var(--blush-2); color: var(--pink-deep); }

/* -------------------------------------------------------------- buttons */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; text-decoration: none; transition: background 0.15s, box-shadow 0.15s, transform 0.1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-pink { background: var(--pink-ink); color: #fff; box-shadow: 0 4px 14px rgba(194, 47, 104, 0.25); }
.btn-pink:hover { background: #ad2259; }
.btn-soft { background: var(--blush-2); color: var(--pink-deep); }
.btn-soft:hover { background: var(--blush); }
.btn-line { background: #fff; color: var(--berry); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--pink); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--blush-2); color: var(--pink-deep); }
.btn-danger { background: transparent; color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: 0.55; cursor: default; }

/* ---------------------------------------------------------------- forms */

.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--muted); }
.field .hint { font-size: 13px; color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=number], input[type=url], input[type=datetime-local], input[type=date], input[type=time], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(224, 69, 127, 0.14); }
textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.search { max-width: 340px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 14px; font-weight: 500; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--pink); }
.chip.on { background: var(--berry); color: #fff; box-shadow: none; }

/* --------------------------------------------------------------- badges */

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--blush-2); color: var(--pink-deep); white-space: nowrap; }
.badge.k-dancer { background: var(--lilac-bg); color: var(--lilac); }
.badge.k-venue { background: #e6f1ff; color: #2c5e9e; }
.badge.k-producer { background: #fff0e0; color: #9a5512; }
.badge.k-other { background: #f1edf0; color: #6e5a66; }
.badge.s-booked { background: var(--ok-bg); color: var(--ok); }
.badge.s-talking { background: #fff0e0; color: #9a5512; }
.badge.s-cold { background: #f1edf0; color: #6e5a66; }
.badge.st-sent, .badge.st-done { background: var(--ok-bg); color: var(--ok); }
.badge.st-preview, .badge.st-paused { background: var(--warn-bg); color: var(--warn); }
.badge.st-failed, .badge.st-stopped { background: var(--bad-bg); color: var(--bad); }
.badge.st-active { background: var(--blush); color: var(--pink-deep); }

/* ---------------------------------------------------------------- lists */

.list { display: grid; }
.list-row { display: grid; grid-template-columns: auto 1.6fr 1fr 1fr auto; align-items: center; gap: 14px; padding: 14px 8px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover { background: var(--blush-2); border-radius: 12px; }
.list-row .who b { display: block; }
.list-row .who small, .muted { color: var(--muted); font-size: 14px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--pink-deep); background: linear-gradient(135deg, #ffd6e6, #ffeaf2); flex: none; }
.list-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--pink-ink); }
@media (max-width: 760px) {
  .list-row { grid-template-columns: auto 1fr auto; }
  .list-row .hide-sm { display: none; }
}

/* ---------------------------------------------------------------- tasks */

.task { display: grid; gap: 10px; padding: 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.task + .task { margin-top: 12px; }
.task-top { display: flex; gap: 12px; align-items: center; }
.task-top .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--blush-2); font-size: 18px; flex: none; }
.task-top .t { flex: 1; min-width: 0; }
.task-top .t b { display: block; }
.text-bubble { background: var(--blush-2); border: 1.5px solid var(--blush); border-radius: 18px 18px 18px 6px; padding: 12px 16px; font-size: 16px; white-space: pre-wrap; }
.task.done { opacity: 0.6; }
.task.overdue .task-top small { color: var(--bad); font-weight: 600; }

/* ------------------------------------------------------------ timelines */

.steps-mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.steps-mini span { font-size: 13px; padding: 3px 10px; background: var(--blush-2); border-radius: 999px; color: var(--pink-deep); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 30px; }
.timeline li::before { content: ""; position: absolute; left: 8px; top: 22px; bottom: 0; width: 2px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--blush); display: grid; place-items: center; font-size: 10px; }
.timeline .when { font-size: 13px; color: var(--muted); }
.timeline .detail { margin-top: 6px; font-size: 14px; color: var(--muted); white-space: pre-wrap; background: var(--blush-2); border-radius: 10px; padding: 8px 12px; }

.enroll { padding: 14px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.enroll + .enroll { margin-top: 10px; }
.progress { height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; margin: 10px 0 8px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), #ff8db8); border-radius: 999px; }

/* ---------------------------------------------------------- plan editor */

.step { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.step + .step { margin-top: 14px; }
.step-day { text-align: center; }
.step-day .day-badge { display: grid; place-items: center; aspect-ratio: 1; border-radius: 16px; background: var(--blush-2); color: var(--pink-deep); margin-bottom: 8px; }
.step-day .day-badge b { font: 600 32px/1 var(--display); }
.step-day .day-badge small { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.step-day input { text-align: center; }
.step-body { display: grid; gap: 10px; }
.merge { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.merge button { border: 0; background: var(--lilac-bg); color: var(--lilac); border-radius: 8px; padding: 3px 8px; cursor: pointer; font-size: 12.5px; font-weight: 600; }
.merge button:hover { background: #e5d6f8; }
@media (max-width: 600px) { .step { grid-template-columns: 1fr; } .step-day { display: flex; gap: 10px; align-items: center; } .step-day .day-badge { width: 64px; margin: 0; } }

/* ------------------------------------------------------------ mail list */

.mail { border-bottom: 1px solid var(--line-2); }
.mail summary { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 6px; cursor: pointer; list-style: none; }
.mail summary::-webkit-details-marker { display: none; }
.mail summary:hover { background: var(--blush-2); border-radius: 12px; }
.mail pre { white-space: pre-wrap; font: 15px/1.6 var(--sans); background: var(--blush-2); border-radius: 12px; padding: 14px 16px; margin: 0 6px 16px; }

/* --------------------------------------------------------- import table */

.table-wrap { overflow-x: auto; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
th { background: var(--blush-2); font-weight: 600; }
th select { min-height: 34px; padding: 4px 8px; font-size: 13px; min-width: 130px; }

.drop { display: grid; place-items: center; gap: 8px; text-align: center; padding: 40px 20px; border: 2px dashed var(--blush); border-radius: 18px; background: #fff; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--pink); background: var(--blush-2); }
.drop b { font: 600 21px/1.2 var(--display); }

/* --------------------------------------------------------- modal, toast */

.modal { border: 0; border-radius: 22px; padding: 0; width: min(94vw, 620px); box-shadow: 0 30px 80px rgba(59, 21, 48, 0.25); color: var(--berry); }
.modal::backdrop { background: rgba(59, 21, 48, 0.35); backdrop-filter: blur(3px); }
.modal-inner { padding: 26px; display: grid; gap: 16px; max-height: 86vh; overflow: auto; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 80px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--berry); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; box-shadow: 0 10px 30px rgba(59, 21, 48, 0.3); transition: opacity 0.2s, transform 0.2s; z-index: 10000; max-width: 92vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--bad); }

/* ---------------------------------------------------------- contacts table */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.contacts-table table { font-size: 15px; }
.contacts-table th { position: sticky; top: 0; font-size: 13px; color: var(--pink-deep); }
.contacts-table tbody tr { cursor: pointer; }
.contacts-table tbody tr:hover, .contacts-table tbody tr:focus-visible { background: var(--blush-2); outline: none; }
.contacts-table td.pick, .contacts-table th.pick { width: 44px; }
.contacts-table input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--pink-ink); }
.contacts-table td.addr { white-space: normal; min-width: 220px; color: var(--muted); }
.contacts-table tbody tr:last-child td { border-bottom: 0; }

/* -------------------------------------------------------------- bookings */

.badge.ev-confirmed { background: var(--pink-ink); color: #fff; }
.badge.ev-hold { background: #fff0e0; color: #9a5512; }
.badge.ev-done { background: var(--ok-bg); color: var(--ok); }
.badge.ev-cancelled { background: #f1edf0; color: #6e5a66; text-decoration: line-through; }
.badge.ev-inquiry { background: var(--lilac-bg); color: var(--lilac); }

.booking-row, .agenda-item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 10px; border: 0; background: none; border-radius: 12px; cursor: pointer; text-decoration: none; color: inherit; font: inherit; }
.booking-row:hover, .agenda-item:hover { background: var(--blush-2); }
.cal-date { display: grid; place-items: center; width: 52px; height: 56px; border-radius: 14px; background: var(--blush-2); color: var(--pink-deep); line-height: 1; flex: none; }
.cal-date small { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.cal-date b { font: 600 24px/1 var(--display); }

/* -------------------------------------------------------------- calendar */

.cal-card { padding: 18px; }
.cal-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cal-bar h2 { min-width: 9em; text-align: center; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.sw.ev-confirmed { background: var(--pink-ink); }
.sw.ev-hold { background: #ffd9ae; }
.sw.ev-inquiry { background: #d9c3f5; }

.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); }
.cal-dow { padding: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--blush-2); text-align: center; }
.cal-cell { min-height: 112px; padding: 6px; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; min-width: 0; background: #fff; }
.cal-cell:nth-child(7n + 1) { border-left: 0; }
.cal-cell.out { background: #fffafc; }
.cal-cell.out .cal-num { color: #cfb3c2; }
.cal-num { align-self: flex-start; width: 30px; height: 30px; border-radius: 50%; border: 0; background: none; font-weight: 600; cursor: pointer; color: var(--berry); }
.cal-num:hover { background: var(--blush); }
.cal-cell.today .cal-num { background: var(--pink-ink); color: #fff; }
.cal-ev { display: block; width: 100%; text-align: left; border: 0; border-radius: 7px; padding: 3px 7px; font: 600 12.5px/1.3 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; text-decoration: none; }
.cal-ev i { font-style: normal; font-weight: 500; opacity: 0.85; }
.cal-ev.ev-confirmed { background: var(--pink-ink); color: #fff; }
.cal-ev.ev-hold { background: #fff0e0; color: #8a4a0c; box-shadow: inset 0 0 0 1px #ffd9ae; }
.cal-ev.ev-done { background: var(--ok-bg); color: var(--ok); }
.cal-ev.ev-cancelled { background: #f1edf0; color: #8a7a84; text-decoration: line-through; }
.cal-ev.ev-inquiry { background: var(--lilac-bg); color: var(--lilac); }
.cal-dots { margin-top: auto; display: flex; gap: 8px; font-size: 12px; color: var(--muted); }

.agenda-day { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.agenda-day:last-child { border-bottom: 0; }
.agenda-items { display: grid; gap: 2px; }
.agenda-item { grid-template-columns: auto 1fr; padding: 8px 10px; }

@media (max-width: 760px) {
  .cal-cell { min-height: 64px; padding: 3px; }
  .cal-ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; }
  .cal-ev i { display: none; }
  .cal-dots { font-size: 10px; gap: 4px; }
  .cal-num { width: 26px; height: 26px; font-size: 13px; }
  .cal-bar h2 { min-width: 0; font-size: 19px; }
}

/* ---------------------------------------------------- campaign step bits */

.step { grid-template-columns: 116px 1fr; }
.step + .step { margin-top: 0; }
.step-link { width: 2px; height: 22px; margin-left: 76px; background: linear-gradient(var(--blush), var(--line-2)); }
.step-num { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.step-day .day-badge { padding: 6px 0; line-height: 1.05; }
.move { display: flex; justify-content: center; gap: 2px; margin-top: 6px; }
.move .btn { min-height: 30px; padding: 0 10px; }
.timing { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 10px 12px; background: var(--blush-2); border-radius: 12px; }
.inline-field { gap: 8px; font-size: 15px; color: var(--berry); }
.inline-field input { width: auto; min-height: 38px; padding: 6px 10px; }
.inline-field input.num { width: 76px; text-align: center; }
.seg { display: inline-flex; background: #fff; border-radius: 999px; padding: 3px; box-shadow: inset 0 0 0 1.5px var(--line); }
.seg button { border: 0; background: none; border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--berry); color: #fff; }
.hint-box { font-size: 14px; color: var(--lilac); background: var(--lilac-bg); border-radius: 10px; padding: 8px 12px; }
.hint-box code { font-size: 13px; }
textarea.code { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: #fffafc; }
@media (max-width: 600px) {
  .step-day { flex-wrap: wrap; }
  .step-link { margin-left: 34px; }
}

/* ------------------------------------------------------- email preview */

.modal.wide { width: min(96vw, 760px); }
.email-frame { width: 100%; height: min(62vh, 640px); border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); }

/* ------------------------------------------------------- email templates */

.tabs { display: flex; gap: 6px; margin: -6px 0 20px; border-bottom: 1.5px solid var(--line-2); }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.tabs a:hover { color: var(--pink-deep); }
.tabs a.on { color: var(--pink-deep); border-bottom-color: var(--pink); }
.tpl-subject { margin-top: 8px; color: var(--muted); }
.tpl-subject b { color: var(--berry); }
.tpl-body { margin-top: 12px; white-space: pre-wrap; color: var(--berry); background: var(--blush-2); border-radius: 12px; padding: 14px 16px; font-family: Georgia, serif; line-height: 1.6; max-height: 16em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.email-paper { white-space: pre-wrap; font: 16px/1.6 Georgia, serif; background: #fff; border-radius: 12px; padding: 18px 20px; box-shadow: inset 0 0 0 1.5px var(--line-2); max-height: 50vh; overflow: auto; }
.tpl-pick { display: block; width: 100%; text-align: left; background: #fff; border: 0; cursor: pointer; font: inherit; color: inherit; }
.tpl-pick:hover { box-shadow: inset 0 0 0 2px var(--pink); }
.tpl-select { max-width: 320px; background: var(--lilac-bg); border-color: #e2d3f6; color: var(--lilac); font-weight: 600; }
.pick-list { max-height: 240px; overflow: auto; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line-2); margin-top: 6px; }
.pick-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.pick-row:last-child { border-bottom: 0; }
.pick-row:hover { background: var(--blush-2); }
.pick-row.off { opacity: 0.5; cursor: default; }
.pick-row input { width: 18px; height: 18px; accent-color: var(--pink-ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--pink-ink); flex: none; }

/* ---------------------------------------------------------------- media */

.media-grid { display: grid; gap: 16px; }
.media-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.media-grid.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
@media (max-width: 700px) { .media-grid.two, .media-grid.three { grid-template-columns: 1fr; } }
.media-card { display: grid; gap: 10px; padding: 12px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line-2); background: #fff; }
.media-thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #1a1014; display: grid; place-items: center; }
.media-thumb.tall { aspect-ratio: 4 / 5; }
.media-card.g .media-thumb { aspect-ratio: 1; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb .star { position: absolute; left: 8px; top: 8px; background: var(--pink-ink); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.media-meta { display: grid; gap: 2px; }
.focus-pick { position: relative; cursor: crosshair; border-radius: 12px; overflow: hidden; background: #1a1014; width: fit-content; margin: 0 auto; }
.focus-pick img { display: block; max-width: 100%; max-height: 50vh; width: auto; height: auto; }
.focus-dot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--pink-ink), 0 2px 10px rgba(0,0,0,.5); pointer-events: none; }

.contacts-table td.stage-name { font-family: var(--display); font-style: italic; font-size: 16px; color: var(--pink-deep); }

/* ------------------------------------------------- To box (Gmail-style) */

.to-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 48px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: text; }
.to-box:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(224, 69, 127, 0.14); }
.to-label { font-weight: 700; color: var(--muted); margin-right: 4px; }
.to-chips { display: contents; }
.to-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--blush); color: var(--pink-deep); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 14px; font-weight: 600; }
.to-chip button { border: 0; background: none; color: inherit; font-size: 16px; line-height: 1; cursor: pointer; padding: 0 4px; border-radius: 50%; }
.to-chip button:hover { background: rgba(255, 255, 255, 0.6); }
.to-input { flex: 1; min-width: 140px; border: 0 !important; box-shadow: none !important; padding: 6px 4px !important; min-height: 32px !important; }
.to-suggest { margin-top: 6px; border-radius: 12px; box-shadow: var(--shadow), inset 0 0 0 1.5px var(--line-2); background: #fff; max-height: 260px; overflow: auto; }
.to-opt { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 14px; cursor: pointer; font: inherit; color: inherit; border-bottom: 1px solid var(--line-2); }
.to-opt:hover, .to-opt:focus-visible { background: var(--blush-2); }
.to-opt.off { opacity: 0.5; cursor: default; }
.to-groups { margin-top: 8px; font-size: 14px; }
.to-groups select { max-width: 240px; min-height: 36px; padding: 4px 10px; }
.to-note { font-size: 13px; margin-top: 6px; }

/* ------------------------------------------------------------- texting */

.tpl-body.is-text { font-family: var(--sans); background: var(--blush-2); border-radius: 18px 18px 18px 6px; max-height: none; -webkit-mask-image: none; mask-image: none; }
.text-row { display: grid; gap: 8px; padding: 12px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line-2); margin-bottom: 10px; }
.text-row.done { opacity: 0.6; }
.text-log { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.text-log:hover { background: var(--blush-2); border-radius: 12px; }
.text-bubble.small { display: block; margin-top: 6px; font-size: 15px; padding: 8px 12px; }

/* -------------------------------------------------------- packing lists */

.pack-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.pack-row:hover { background: var(--blush-2); border-radius: 12px; }
.pack-row .progress { display: block; max-width: 280px; }
.missing-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 16px 20px; margin-bottom: 20px; border-radius: 16px; background: linear-gradient(135deg, #ffe0ec, #fff1f6); border: 2px solid var(--blush); }
.missing-callout b { font: 600 20px/1.2 var(--display); color: var(--pink-deep); }
.missing-callout span { color: var(--muted); flex: 1; min-width: 200px; }
.pack-list { list-style: none; margin: 0; padding: 0; }
.pack-list li { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--line-2); }
.pack-list label { flex: 1; display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 16px; padding: 4px 0; }
.pack-list input { width: 22px; height: 22px; accent-color: var(--pink-ink); flex: none; }
.pack-list li.done span { text-decoration: line-through; color: var(--muted); }
.pack-photo { display: block; width: 100%; border-radius: 12px; margin-bottom: 12px; }

/* Google events on the calendar */
.cal-ev.ev-google { background: #eef1f6; color: #4a5872; cursor: default; }
.badge.ev-google { background: #eef1f6; color: #4a5872; }
.sw.ev-google { background: #cdd6e6; }

/* ------------------------------------------------------- email signature */

.sig-grid { grid-template-columns: 1.1fr 1fr; }
.sig-switch { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--blush-2); cursor: pointer; }
.sig-switch input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--pink-ink); flex: none; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; flex: none; }
.swatch.on { box-shadow: 0 0 0 2.5px var(--berry); }
input[type=color] { width: 44px; height: 34px; padding: 2px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; }
.sig-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.sig-ph { aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid transparent; padding: 0; background: #1a1014; cursor: pointer; }
.sig-ph img { width: 100%; height: 100%; object-fit: cover; }
.sig-ph.on { border-color: var(--pink-ink); }
.sig-ph.busy { opacity: 0.5; }
.sig-ph.none { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 11px; font-weight: 600; color: var(--muted); }
.sig-preview-card { position: sticky; top: 20px; }
.sig-mail { background: #fff; border-radius: 12px; padding: 22px; box-shadow: inset 0 0 0 1.5px var(--line-2); overflow-x: auto; }
@media (max-width: 900px) { .sig-grid { grid-template-columns: 1fr; } .sig-preview-card { position: static; } }
.sig-side { display: grid; gap: 20px; align-content: start; position: sticky; top: 20px; }
.sig-side .sig-preview-card { position: static; }
.sig-steps ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--berry); }
.sig-steps li { padding-left: 4px; }
@media (max-width: 900px) { .sig-side { position: static; } }
