/* Kaveen Meet – booking calendar and CRM. Same design language as the Kaveen Consultants websites (kaveen.css):
   logo teal #02BDB4 and deep teal #015F5A on white cotton paper, Hanken Grotesk, pill buttons with a teal sweep. */

:root {
  --teal: #02BDB4; --teal-2: #029A93; --teal-3: #017E78;
  --deep: #015F5A; --deep-2: #014C48; --deep-3: #013A37;
  --ink: #101716; --ink-2: #39443F; --mute: #66726D;
  --paper: #FFFFFF; --paper-2: #F1F3F0; --mint: #E2F4F1; --line: #DDE2DC; --white: #FFFFFF;
  --good: #1F8A4C; --bad: #B4402F; --warn: #B7791F;
  --r: 18px; --ease: cubic-bezier(.2,.75,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font: 400 16px/1.6 "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: #fff;
  -webkit-font-smoothing: antialiased; min-height: 100vh; }
body.paper::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.014 .022' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .2 0 0 0 0 .19 0 0 0 -1.6 1.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"); }
a { color: var(--deep); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; font-weight: 750; text-wrap: balance; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--mute); }
.small { font-size: 14px; }
.hidden { display: none !important; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--deep); }
.eyebrow::before { content: ""; flex: none; width: 22px; height: 6px; border-radius: 1px; background: linear-gradient(90deg, var(--teal) 0 45%, transparent 45% 55%, var(--deep) 55%); }

/* ---------- Logo */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 40px; height: 30px; flex: none; overflow: visible; }
.brand rect { transform-box: fill-box; animation: bar-in .8s var(--ease) both; }
.brand rect:nth-child(2) { animation-delay: .08s; } .brand rect:nth-child(3) { animation-delay: .16s; }
@keyframes bar-in { from { transform: translateX(-40%); opacity: 0; } }
.brand b { display: block; font-size: 18px; font-weight: 750; letter-spacing: -.01em; line-height: 1.1; }
.brand small { display: block; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); line-height: 1.3; }

/* ---------- Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 999px; border: 0;
  background: var(--deep); color: #fff; font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .3s, box-shadow .3s, opacity .2s; box-shadow: 0 10px 22px -14px rgba(1,95,90,.7); white-space: nowrap; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--teal); transform: translateY(101%); transition: transform .45s var(--ease); border-radius: inherit; }
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--ink); }
.btn i { font-style: normal; transition: transform .3s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn.sm { padding: 8px 15px; font-size: 14px; }
.btn.xs { padding: 5px 11px; font-size: 13px; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost::before { background: var(--mint); }
.btn.ghost:hover { color: var(--deep-2); }
.btn.light { background: var(--mint); color: var(--deep-2); box-shadow: none; }
.btn.danger { background: #fff; color: var(--bad); box-shadow: inset 0 0 0 1.5px #EBC9C2; }
.btn.danger::before { background: #FBE9E5; }
.btn.good { background: var(--good); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:disabled::before { display: none; }
.linkbtn { background: none; border: 0; color: var(--deep); font-weight: 650; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.iconbtn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink-2); }
.iconbtn:hover { border-color: var(--teal); color: var(--deep); }

/* ---------- Form fields */
.field { display: grid; gap: 6px; }
.field > span, .field > label { font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.field small { color: var(--mute); font-size: 12.5px; line-height: 1.45; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=url], input[type=number], input[type=search],
input[type=datetime-local], input[type=date], input[type=time], select, textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(2,189,180,.14); }
textarea { resize: vertical; min-height: 90px; }
input[type=checkbox], input[type=radio] { accent-color: var(--deep); width: 17px; height: 17px; }
.check { display: inline-flex; gap: 9px; align-items: center; font-size: 14.5px; cursor: pointer; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.hp { position: absolute; left: -9999px; }
.err { color: var(--bad); font-size: 14px; font-weight: 600; }
.ok { color: var(--good); font-size: 14px; font-weight: 600; }

/* ---------- Cards and badges */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card.mint { background: var(--mint); border-color: transparent; }
.card.dark { background: var(--deep-3); color: #E6F4F2; border-color: transparent; }
.card h2 { font-size: 19px; margin-bottom: 12px; }
.card h3 { font-size: 16px; margin-bottom: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.badge.new { background: #E8EEF9; color: #2F5597; }
.badge.good { background: #E3F4E9; color: var(--good); }
.badge.bad { background: #FBE9E5; color: var(--bad); }
.badge.teal { background: var(--mint); color: var(--deep); }
.badge.warn { background: #FDF1DC; color: var(--warn); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #C5CCC7; display: inline-block; flex: none; }
.dot.on { background: #22B36B; box-shadow: 0 0 0 4px rgba(34,179,107,.18); }

/* =====================================================================  BOOKING PAGE  */
.bk-top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bk-top .wrap, .bk .wrap, .bk-hero .wrap, .bk-foot .wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.bk-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.bk-top .back { font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink-2); }
.bk-top .back:hover { color: var(--deep); }
.bk-hero { padding: 48px 0 26px; }
.bk-hero h1 { font-size: clamp(30px, 4.6vw, 50px); margin: 14px 0 12px; max-width: 18em; }
.bk-hero p { font-size: 18.5px; color: var(--ink-2); max-width: 44em; }
.bk { padding-bottom: 70px; }
.embed .bk { padding-bottom: 8px; }
.embed body, body.embed { background: transparent; }
body.embed .bk-top, body.embed .bk-hero, body.embed .bk-foot { display: none; }
body.embed .bk .wrap { width: 100%; }

.cal-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.cal-pick button { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 22px; cursor: pointer; display: grid; gap: 10px;
  transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; }
.cal-pick button:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(1,58,55,.45); }
.cal-pick b { font-size: 18.5px; letter-spacing: -.01em; }
.cal-pick p { color: var(--ink-2); font-size: 15px; }
.cal-pick .meta { font-size: 13px; font-weight: 700; color: var(--deep); letter-spacing: .04em; }

.booker { display: grid; grid-template-columns: 290px 1fr 270px; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 70px -50px rgba(1,58,55,.5); min-height: 470px; }
.booker > section { padding: 26px; }
.bk-info { background: var(--deep-3); color: #DDEFEC; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.bk-info .eyebrow { color: var(--teal); }
.bk-info h2 { color: #fff; font-size: 23px; }
.bk-info p { font-size: 14.5px; color: #BFDDD9; }
.bk-info ul { list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.bk-info li { display: flex; gap: 10px; align-items: flex-start; }
.bk-info li svg { flex: none; margin-top: 3px; color: var(--teal); }
.bk-info .change { color: #fff; font-size: 14px; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.bk-info label { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.bk-info select { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); font-size: 14px; padding: 9px 11px; margin-top: 6px; }
.bk-info select option { color: var(--ink); }
.bk-info .mt { margin-top: auto; }

.month { border-right: 1px solid var(--line); }
.month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.month-head h3 { font-size: 19px; }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.month-grid .dow { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--mute); padding-bottom: 4px; text-transform: uppercase; }
.month-grid button { aspect-ratio: 1; max-height: 54px; border-radius: 50%; border: 0; background: transparent; font-weight: 600; font-size: 15px; color: #B5BDB8; cursor: default; position: relative; }
.month-grid button.has { background: var(--mint); color: var(--deep-2); cursor: pointer; font-weight: 750; }
.month-grid button.has:hover { background: #CDEDE8; }
.month-grid button.full { color: var(--mute); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.month-grid button.sel { background: var(--deep); color: #fff; }
.month-grid button.today::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--mute); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; background: var(--mint); }
.legend i.f { background: transparent; border: 1.5px solid #C9D0CB; }

.times h3 { font-size: 16px; margin-bottom: 4px; }
.times .sub { font-size: 13px; color: var(--mute); margin-bottom: 14px; }
.time-list { display: grid; gap: 8px; max-height: 410px; overflow: auto; padding: 2px 4px 2px 0; }
.time-list button { padding: 11px 12px; border-radius: 12px; border: 1.5px solid var(--teal); background: #fff; color: var(--deep-2); font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.time-list button:hover { background: var(--mint); }
.time-list button.busy { border-color: var(--line); color: #A8B1AC; background: var(--paper-2); cursor: not-allowed; font-weight: 500; }
.time-list button.busy span { font-size: 12px; margin-left: 6px; }
.time-list button.sel { background: var(--deep); border-color: var(--deep); color: #fff; }
.times .empty { color: var(--mute); font-size: 14.5px; padding: 20px 0; }

.bk-form { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; }
.bk-form .summary { padding: 26px; background: var(--mint); }
.bk-form .summary .when { font-size: 22px; font-weight: 750; letter-spacing: -.01em; margin: 10px 0 4px; }
.bk-form form { padding: 26px; display: grid; gap: 14px; }
.bk-done { padding: 46px 30px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.bk-done .tick { width: 68px; height: 68px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: var(--deep); animation: pop .6s var(--ease) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.bk-done h2 { font-size: 30px; }
.bk-done .when { font-size: 19px; font-weight: 700; }
.bk-foot { padding: 26px 0 40px; color: var(--mute); font-size: 13.5px; }
.bk-foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--mint); border-top-color: var(--deep); border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .booker { grid-template-columns: 1fr 1fr; }
  .bk-info { grid-column: 1 / -1; }
  .bk-info::after { display: none; }
}
@media (max-width: 640px) {
  .booker, .bk-form { grid-template-columns: 1fr; }
  .month { border-right: 0; border-bottom: 1px solid var(--line); }
  .booker > section { padding: 20px 16px; }
  .time-list { grid-template-columns: 1fr 1fr; max-height: none; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .bk-hero { padding-top: 30px; }
  .bk-top .back { font-size: 13.5px; max-width: 8em; text-align: right; line-height: 1.3; }
}

/* =====================================================================  CRM  */
.crm { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--deep-3); color: #CFE6E3; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.side .brand { color: #fff; padding: 4px 8px 18px; }
.side .brand small { color: #8FC2BC; }
.side nav { display: grid; gap: 2px; }
.side h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6FA9A2; margin: 16px 10px 6px; font-weight: 700; }
.side a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 11px; color: #D7ECE9; text-decoration: none; font-weight: 550; font-size: 14.5px; transition: background .2s; }
.side a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.side a:hover { background: rgba(255,255,255,.06); }
.side a.on { background: rgba(2,189,180,.18); color: #fff; box-shadow: inset 3px 0 0 var(--teal); }
.side a .count { margin-left: auto; background: var(--teal); color: var(--deep-3); font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.side .me { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; }
.side .me b { color: #fff; display: block; }
.side .me button { background: none; border: 0; color: #8FC2BC; cursor: pointer; padding: 0; font-size: 13px; text-decoration: underline; margin-top: 6px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 18px 30px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 15; }
.topbar h1 { font-size: 23px; }
.topbar .sp { flex: 1; }
.topbar .burger { display: none; }
.viewbar { background: var(--teal); color: var(--deep-3); padding: 9px 30px; font-weight: 700; font-size: 14.5px; display: flex; gap: 14px; align-items: center; }
.viewbar button { background: var(--deep-3); color: #fff; border: 0; border-radius: 999px; padding: 5px 14px; cursor: pointer; font-weight: 650; }
.content { padding: 26px 30px 60px; display: grid; gap: 22px; align-content: start; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.cols.even { grid-template-columns: 1fr 1fr; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.stat b { display: block; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; }
.stat span { font-size: 13.5px; color: var(--mute); font-weight: 600; }
.stat.teal { background: var(--deep); border-color: transparent; color: #fff; }
.stat.teal span { color: #BFE3DF; }

table.list { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.list th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 700; padding: 8px 10px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
table.list td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr.click { cursor: pointer; }
table.list tr.click:hover td { background: #F7FAF8; }
table.list td b { font-weight: 650; }
.tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 6px 12px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters input[type=search] { max-width: 300px; }
.filters select { width: auto; }
.tabs { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-weight: 650; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.tabs button.on { background: #fff; color: var(--deep); box-shadow: 0 2px 6px -2px rgba(0,0,0,.15); }
.empty-state { text-align: center; color: var(--mute); padding: 34px 10px; }

/* meetings list */
.meet-list { display: grid; gap: 10px; }
.meet { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.meet .when { font-weight: 750; line-height: 1.25; }
.meet .when small { display: block; font-weight: 600; color: var(--mute); font-size: 12.5px; }
.meet.now { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(2,189,180,.15); }
.meet h3 { font-size: 16px; }
.meet p { font-size: 13.5px; color: var(--mute); }
.daylabel { font-size: 12.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--deep); margin: 8px 0 -2px; }

/* week calendar */
.wk-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.wk-head h2 { font-size: 19px; min-width: 220px; }
.wk { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: auto; max-height: calc(100vh - 230px); }
.wk table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; }
.wk th { position: sticky; top: 0; background: #fff; z-index: 2; padding: 10px 6px; font-size: 13px; border-bottom: 1.5px solid var(--line); text-align: center; }
.wk th small { display: block; color: var(--mute); font-weight: 600; font-size: 12px; }
.wk th.today { color: var(--deep); }
.wk td { padding: 3px; border-bottom: 1px solid #EEF1EE; height: 40px; min-width: 104px; }
.wk td.time { position: sticky; left: 0; background: #fff; z-index: 1; font-size: 12.5px; color: var(--mute); font-weight: 650; white-space: nowrap; padding: 0 10px; width: 1%; text-align: right; }
.slot { width: 100%; height: 100%; min-height: 34px; border-radius: 9px; border: 1.5px dashed #D6DCD7; background: #fff; font-size: 12.5px; font-weight: 650; cursor: pointer; text-align: left; padding: 4px 8px; line-height: 1.25; overflow: hidden; color: var(--mute); }
.slot:hover { border-color: var(--teal); }
.slot.fake { border: 0; color: var(--deep-2); background: repeating-linear-gradient(135deg, #DDF2EF 0 7px, #EEF8F6 7px 14px); }
.slot.released { border-style: solid; border-color: #BFE6E1; color: var(--teal-3); }
.slot.booking { border: 0; background: var(--deep); color: #fff; }
.slot.booking small { display: block; font-weight: 500; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot.booking.mine { background: var(--teal); color: var(--deep-3); }
.slot.booking.done { background: #8FA9A5; }
.slot.past { opacity: .45; }
.slot.out { opacity: .55; }
.wk-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--mute); }
.wk-legend span { display: inline-flex; gap: 7px; align-items: center; }
.wk-legend i { width: 18px; height: 12px; border-radius: 4px; display: inline-block; }

/* client */
.client-head { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.client-head h2 { font-size: 28px; }
.client-head .company { font-size: 16px; color: var(--ink-2); margin-top: 4px; }
.leadset { display: inline-flex; border-radius: 999px; border: 1.5px solid var(--line); overflow: hidden; background: #fff; }
.leadset button { border: 0; background: none; padding: 8px 15px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--mute); }
.leadset button + button { border-left: 1.5px solid var(--line); }
.leadset button.on.good { background: #E3F4E9; color: var(--good); }
.leadset button.on.bad { background: #FBE9E5; color: var(--bad); }
.leadset button.on.new { background: #E8EEF9; color: #2F5597; }
dl.facts { display: grid; grid-template-columns: 130px 1fr; gap: 9px 14px; font-size: 14.5px; }
dl.facts dt { color: var(--mute); font-weight: 600; }
dl.facts dd { word-break: break-word; }
.copy { background: none; border: 0; color: var(--teal-3); cursor: pointer; font-size: 12.5px; font-weight: 700; margin-left: 6px; }
.notes { display: grid; gap: 10px; }
.note { background: var(--paper-2); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; white-space: pre-wrap; position: relative; }
.note .by { font-size: 12.5px; color: var(--mute); font-weight: 600; margin-bottom: 4px; white-space: normal; }
.note .x { position: absolute; top: 8px; right: 10px; }
.timeline { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.timeline li { display: grid; grid-template-columns: 128px 1fr; gap: 10px; }
.timeline time { color: var(--mute); font-size: 12.5px; font-weight: 600; }

/* script panel */
.script { font-size: 15.5px; line-height: 1.65; }
.script h2 { font-size: 18px; margin: 18px 0 6px; color: var(--deep); }
.script h3 { font-size: 16px; margin: 14px 0 4px; }
.script h2:first-child, .script h3:first-child { margin-top: 0; }
.script ul, .script ol { padding-left: 22px; margin: 6px 0; }
.script p { margin: 6px 0; }
.script mark { background: #FFF1A8; padding: 0 3px; border-radius: 3px; }
.script blockquote { border-left: 3px solid var(--teal); padding-left: 12px; color: var(--ink-2); }
.drawer { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; }

/* rich editor */
.rte { border: 1.5px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.rte:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(2,189,180,.14); }
.rte-bar { display: flex; flex-wrap: wrap; gap: 3px; padding: 7px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.rte-bar button, .rte-bar select { border: 0; background: #fff; border-radius: 8px; min-width: 32px; height: 32px; padding: 0 9px; cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.rte-bar select { width: auto; font-weight: 600; }
.rte-bar button:hover { color: var(--deep); background: var(--mint); }
.rte-body { min-height: 220px; max-height: 520px; overflow: auto; padding: 14px 16px; outline: none; }
.rte-body:empty::before { content: attr(data-ph); color: #A8B1AC; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(1,30,28,.45); backdrop-filter: blur(3px); z-index: 60; display: grid; place-items: center; padding: 20px; animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 22px; width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; box-shadow: 0 40px 90px -30px rgba(0,0,0,.45); animation: rise .35s var(--ease) both; }
.modal.wide { width: min(1080px, 100%); }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.modal header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.modal header h2 { font-size: 21px; }
.modal .body { padding: 18px 24px 24px; display: grid; gap: 14px; }
.modal footer { padding: 0 24px 22px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.compose { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; }
.compose > .stack { align-content: start; }
.compose iframe { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); }
.tagfield.custom input, .tagfield.custom textarea { background: #FFFBE8; border-color: #F0DA8A; }
.tagfield.empty input, .tagfield.empty textarea { border-color: #E9A99C; }

/* popover */
.pop { position: fixed; z-index: 70; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.35); padding: 14px; width: 290px; display: grid; gap: 8px; animation: rise .25s var(--ease) both; }
.pop h4 { font-size: 15px; }
.pop p { font-size: 13.5px; color: var(--mute); }
.pop .btn { width: 100%; }

/* toast */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; gap: 8px; }
.toast { background: var(--deep-3); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14.5px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); animation: rise .3s var(--ease) both; max-width: 380px; }
.toast.bad { background: var(--bad); }

/* live */
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.live-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 10px; }
.live-card.on { border-color: #9ADBC0; }
.live-card .who { display: flex; gap: 10px; align-items: center; }
.live-card .who b { font-size: 16.5px; }
.live-card .where { font-size: 14px; background: var(--paper-2); border-radius: 10px; padding: 8px 11px; }
.live-card .meta { font-size: 13px; color: var(--mute); }

/* hours editor */
.hours { display: grid; gap: 8px; }
.hours .day { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; }
.hours .day > b { padding-top: 8px; font-size: 14px; }
.hours .wins { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hours .win { display: inline-flex; gap: 4px; align-items: center; background: var(--paper-2); border-radius: 12px; padding: 4px; }
.hours .win input { width: 112px; padding: 6px 8px; }

/* video cards */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.video { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 10px; align-content: start; }
.video .thumb { aspect-ratio: 16 / 8; border-radius: 12px; background: linear-gradient(135deg, var(--deep), var(--deep-3)); display: grid; place-items: center; color: #fff; position: relative; overflow: hidden; }
.video .thumb span { position: absolute; right: 10px; bottom: 8px; background: rgba(0,0,0,.45); border-radius: 6px; padding: 1px 7px; font-size: 12.5px; font-weight: 700; }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .art { background: var(--deep-3); color: #DDEFEC; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login .art .brand { color: #fff; } .login .art .brand small { color: #8FC2BC; }
.login .art h1 { color: #fff; font-size: clamp(34px, 4vw, 54px); max-width: 11em; }
.login .art p { color: #A9D2CD; max-width: 30em; margin-top: 14px; font-size: 17px; }
.login .bars { position: absolute; right: -60px; top: 40%; width: 380px; opacity: .16; }
.login form { align-self: center; justify-self: center; width: min(400px, 100% - 40px); display: grid; gap: 16px; padding: 40px 0; }
.login form h2 { font-size: 28px; }

@media (max-width: 1100px) {
  .cols { grid-template-columns: 1fr; }
  .drawer { position: static; max-height: none; }
  .compose { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .crm { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; z-index: 50; width: 260px; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .topbar { padding: 14px 16px; }
  .topbar .burger { display: inline-grid; }
  .content { padding: 18px 16px 50px; }
  .viewbar { padding: 9px 16px; }
  .cols.even { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login .art { padding: 28px; min-height: 220px; }
  .meet { grid-template-columns: 1fr; }
  dl.facts { grid-template-columns: 1fr; gap: 2px; }
  dl.facts dd { margin-bottom: 8px; }
  .hours .day { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
