/* Ununio Reception — same tokens as ununiobeachpark.co.tz */
:root {
  --orange: #F47B20; --orange-600: #DE6810; --orange-300: #FFA85C; --orange-100: #FFE3C9; --orange-50: #FFF4EA;
  --blue: #1B75BB; --blue-400: #3E9BDD; --blue-100: #E3F1FB;
  --navy-950: #060B12; --navy-900: #0B111C; --navy-850: #0F1723; --navy-800: #141F2E; --navy-700: #1D2B3D; --navy-600: #2A3B50;
  --sand-50: #FDF9F3; --sand-100: #F8F0E4; --sand-200: #EFE2CF; --sand-300: #E2D0B6;
  --ink: #131E2C; --ink-2: #4A5565; --ink-3: #7C8594;
  --green: #22B14C; --red: #D64545; --red-50: #FDECEC;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Kaushan Script", "Brush Script MT", cursive;
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(19,30,44,.06), 0 4px 14px rgba(19,30,44,.06);
  --shadow: 0 18px 50px -18px rgba(6,11,18,.35);
  --ease: cubic-bezier(.22,1,.36,1);
  --side: 248px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font-sans); color: var(--ink); background: var(--sand-50); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; flex: none; }
.muted { color: var(--ink-2); }
.fine { color: var(--ink-3); font-size: 12.5px; }
.script { font-family: var(--font-script); color: var(--orange); font-size: 26px; margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 650; letter-spacing: -.01em; margin: 0; line-height: 1.15; }

/* ---------- buttons & fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--r-pill);
  padding: 10px 18px; font-weight: 700; cursor: pointer; background: #fff; border-color: var(--sand-300); transition: transform .15s var(--ease), background .15s; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 8px 22px -10px rgba(244,123,32,.8); }
.btn.primary:hover { background: var(--orange-600); }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.wide { width: 100%; padding: 13px; }
.btn svg { width: 18px; height: 18px; }
.icon-btn { border: 0; background: transparent; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; color: inherit; }
.icon-btn:hover { background: rgba(0,0,0,.05); }
.link-btn { border: 0; background: none; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; color: inherit; padding: 6px 0; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
input, select, textarea { width: 100%; border: 1px solid var(--sand-300); background: #fff; border-radius: 12px; padding: 11px 13px; font-size: 15px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-100); }
textarea { resize: vertical; min-height: 90px; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--orange); padding: 0; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.form-error { color: var(--red); min-height: 1.2em; margin: 0; font-size: 14px; }
.grid2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- login */
.login { min-height: 100%; display: grid; grid-template-columns: 1.15fr 1fr; background: var(--navy-900); }
.login-photo { background: linear-gradient(180deg, rgba(11,17,28,.15), rgba(11,17,28,.65)), url(/img/beach.webp) center/cover; }
.login-card { align-self: center; justify-self: center; width: min(420px, 92vw); background: var(--sand-50); border-radius: var(--r-lg); padding: 36px 32px; display: grid; gap: 14px; box-shadow: var(--shadow); margin: 24px 0; }
.login-card h1 { font-size: 40px; margin-top: -6px; }
.login-card .muted { margin: 0 0 6px; }
.login-logo { width: 84px; height: 84px; }
.login-card .fine { text-align: center; letter-spacing: .2em; text-transform: uppercase; color: var(--orange-600); font-weight: 700; font-size: 11px; margin: 6px 0 0; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; background: linear-gradient(180deg, rgba(11,17,28,.35), rgba(11,17,28,.85)), url(/img/beach.webp) center/cover; } .login-photo { display: none; } }

/* ---------- shell */
.app { min-height: 100%; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--navy-900); color: #F4F7FB; display: flex; flex-direction: column; padding: 22px 16px; z-index: 20; }
.side .brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding: 0 8px 22px; }
.side .brand b { display: block; font-family: var(--font-display); font-size: 21px; line-height: 1; }
.side .brand small { color: var(--orange-300); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: 10.5px; }
.side .brand img, .topbar .brand img { border-radius: 50%; background: #fff; }
.nav { display: grid; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: rgba(244,247,251,.72); text-decoration: none; font-weight: 600; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.on { background: rgba(244,123,32,.16); color: #fff; }
.nav a.on svg { color: var(--orange); }
.nav .count, .tabbar .count { margin-left: auto; background: var(--orange); color: #fff; border-radius: var(--r-pill); font-size: 12px; font-weight: 800; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding: 0 4px; }
.upendo-pill { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #fff; border-radius: 14px; padding: 10px 12px; text-align: left; cursor: pointer; display: grid; gap: 2px; }
.upendo-pill b { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.upendo-pill small { color: rgba(244,247,251,.6); font-size: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34,177,76,.18); flex: none; }
.dot.off { background: #9aa3ad; box-shadow: none; }
.me { border: 0; background: none; color: #fff; text-align: left; cursor: pointer; padding: 6px 8px; border-radius: 10px; display: flex; gap: 10px; align-items: center; }
.me:hover { background: rgba(255,255,255,.06); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: var(--navy-600); flex: none; }
.me small { display: block; color: rgba(244,247,251,.55); font-size: 12px; text-transform: capitalize; }
.side .link-btn { color: rgba(244,247,251,.6); font-size: 13.5px; padding-left: 8px; }
.main { overflow-x: hidden; margin-left: var(--side); padding: 28px clamp(16px, 3vw, 40px) 40px; min-height: 100vh; outline: none; }
.topbar, .tabbar { display: none; }

@media (max-width: 900px) {
  .side { display: none; }
  .main { margin: 0; padding: 16px 16px calc(84px + env(safe-area-inset-bottom)); min-height: auto; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 15; align-items: center; gap: 12px; background: var(--navy-900); color: #fff; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); }
  .topbar h1 { font-size: 20px; flex: 1; }
  .topbar .icon-btn { color: #fff; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset: auto 0 0 0; z-index: 15; background: rgba(11,17,28,.96); backdrop-filter: blur(14px); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid rgba(255,255,255,.08); }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 9px 4px 8px; color: rgba(244,247,251,.6); font-size: 11.5px; font-weight: 700; text-decoration: none; }
  .tabbar a.on { color: var(--orange-300); }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar .count { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 11px; }
}

/* ---------- page furniture */
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { font-size: clamp(28px, 3vw, 38px); }
.page-head .kicker { color: var(--orange-600); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 11.5px; margin: 0 0 6px; }
.card { background: #fff; border: 1px solid var(--sand-200); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.card.pad { padding: 20px; }
.card h3 { font-size: 19px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.empty { text-align: center; color: var(--ink-3); padding: 34px 16px; }
.empty b { display: block; font-family: var(--font-display); font-size: 19px; color: var(--ink); margin-bottom: 4px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: var(--r-pill); padding: 2px 9px; font-size: 12px; font-weight: 700; background: var(--sand-100); color: var(--ink-2); white-space: nowrap; }
.badge.hot { background: var(--orange); color: #fff; }
.badge.team { background: var(--blue-100); color: var(--blue); }
.badge.warn { background: var(--red-50); color: var(--red); }
.badge.ok { background: #E6F6EA; color: #17853A; }
.badge svg { width: 13px; height: 13px; }
.ch-website { color: var(--blue); } .ch-whatsapp { color: var(--green); } .ch-call { color: var(--orange-600); }

/* ---------- today */
.today { display: grid; gap: 20px; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); align-items: start; }
.today .col { display: grid; gap: 20px; min-width: 0; grid-template-columns: minmax(0,1fr); }
@media (max-width: 1100px) { .today { grid-template-columns: minmax(0,1fr); } }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } .page-head .acts { width: 100%; } }
.kpi { padding: 16px; }
.kpi small { color: var(--ink-3); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; display: flex; gap: 6px; align-items: center; }
.kpi small svg { width: 15px; height: 15px; }
.kpi b { display: block; font-family: var(--font-display); font-size: 34px; line-height: 1.1; margin-top: 4px; }
.hero-wait { background: var(--navy-900); color: #fff; border: 0; overflow: hidden; position: relative; }
.hero-wait::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(244,123,32,.45), transparent 70%); pointer-events: none; }
.hero-wait h3 { color: #fff; }
.hero-wait .muted { color: rgba(244,247,251,.65); }
.wait-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; margin-top: 14px; position: relative; z-index: 1; }
.wait { display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px 14px; color: #fff; text-decoration: none; }
.wait:hover { background: rgba(255,255,255,.1); }
.wait .who { flex: 1; min-width: 0; }
.wait .who b { display: block; }
.wait .who span { display: block; color: rgba(244,247,251,.65); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wait .mins { font-weight: 800; color: var(--orange-300); font-size: 13px; text-align: right; white-space: nowrap; }
.calm { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: rgba(34,177,76,.12); color: #CFF5DA; margin-top: 14px; position: relative; z-index: 1; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 150px; margin-top: 8px; }
.bar { display: grid; gap: 6px; justify-items: center; height: 100%; align-content: end; }
.bar .stack { width: 100%; max-width: 34px; display: flex; flex-direction: column-reverse; border-radius: 8px; overflow: hidden; background: var(--sand-100); min-height: 4px; }
.bar .stack i { display: block; }
.bar small { color: var(--ink-3); font-size: 11.5px; font-weight: 700; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.c-website { background: var(--blue-400); } .c-whatsapp { background: var(--green); } .c-call { background: var(--orange-300); }
.rows { display: grid; grid-template-columns: minmax(0,1fr); }
.row { display: flex; gap: 12px; align-items: center; padding: 12px 2px; border-top: 1px solid var(--sand-100); text-decoration: none; color: inherit; }
.row:first-child { border-top: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .grow b { display: block; }
.row .grow span { display: block; color: var(--ink-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- inbox */
.inbox { display: grid; grid-template-columns: 360px minmax(0,1fr); gap: 0; height: calc(100vh - 68px); background: #fff; border: 1px solid var(--sand-200); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.list-pane { min-width: 0; border-right: 1px solid var(--sand-200); display: flex; flex-direction: column; min-height: 0; background: #fff; }
.list-tools { padding: 14px; display: grid; gap: 10px; border-bottom: 1px solid var(--sand-100); }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 18px; height: 18px; }
.search input { padding-left: 38px; border-radius: var(--r-pill); background: var(--sand-50); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chip { border: 1px solid var(--sand-300); background: #fff; border-radius: var(--r-pill); padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; color: var(--ink-2); }
.chip.on { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip .n { color: var(--orange); margin-left: 4px; }
.chip.on .n { color: var(--orange-300); }
.convs { overflow-y: auto; flex: 1; }
.conv { display: flex; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--sand-100); cursor: pointer; text-decoration: none; color: inherit; position: relative; }
.conv:hover { background: var(--sand-50); }
.conv.on { background: var(--orange-50); }
.conv.on::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--orange); }
.conv .avatar { width: 42px; height: 42px; font-size: 14px; position: relative; }
.conv .avatar svg { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; padding: 2px; }
.conv .body { flex: 1; min-width: 0; }
.conv .line1 { display: flex; gap: 8px; align-items: baseline; }
.conv .line1 b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .line1 time { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.conv .preview { color: var(--ink-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 1px 0 5px; }
.conv .tags { display: flex; gap: 5px; flex-wrap: wrap; }
.thread-pane { min-width: 0; display: flex; flex-direction: column; min-height: 0; background: var(--sand-50); }
.thread-head { display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--sand-200); flex-wrap: wrap; }
.thread-head .who { flex: 1; min-width: 160px; }
.thread-head .who b { font-family: var(--font-display); font-size: 19px; display: block; line-height: 1.2; }
.thread-head .who span { color: var(--ink-2); font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.thread-head .acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.thread-head select { width: auto; padding: 6px 10px; border-radius: var(--r-pill); font-size: 13px; }
.banner { padding: 10px 16px; font-size: 13.5px; display: flex; gap: 10px; align-items: center; }
.banner.team { background: var(--blue-100); color: #0E4F82; }
.banner.hot { background: var(--orange-100); color: #8A3B00; }
.banner.warn { background: var(--red-50); color: #8E1F1F; }
.banner .btn { margin-left: auto; }
.messages { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 18px clamp(12px, 3vw, 28px); display: flex; flex-direction: column; gap: 4px; }
.day { align-self: center; background: var(--sand-200); color: var(--ink-2); font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: var(--r-pill); margin: 12px 0 8px; }
.msg { max-width: min(72%, 560px); display: grid; gap: 3px; margin-top: 6px; }
.msg .by { font-size: 12px; font-weight: 700; color: var(--ink-3); padding: 0 8px; display: flex; gap: 6px; align-items: center; }
.msg .by svg { width: 13px; height: 13px; }
.msg .bubble { padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; max-width: 100%; font-size: 14.5px; line-height: 1.5; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.msg .meta { font-size: 11.5px; color: var(--ink-3); padding: 0 8px; }
.msg .meta.bad { color: var(--red); }
.msg.guest { align-self: flex-start; }
.msg.guest .bubble { background: #fff; border: 1px solid var(--sand-200); border-bottom-left-radius: 6px; }
.msg.upendo, .msg.staff, .msg.jasmin { align-self: flex-end; justify-items: end; }
.msg.upendo .bubble { background: var(--orange-100); color: #4A2405; border-bottom-right-radius: 6px; }
.msg.staff .bubble { background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.msg.staff .bubble a { color: #fff; }
.msg.jasmin .bubble { background: var(--navy-800); color: #F4F7FB; border-bottom-right-radius: 6px; }
.msg.guest.call .bubble { background: var(--sand-100); border-style: dashed; }
.msg .file { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; font-weight: 700; font-size: 13px; }
.typing { align-self: flex-end; color: var(--ink-3); font-size: 12.5px; display: flex; gap: 6px; align-items: center; padding: 6px 8px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.composer { background: #fff; border-top: 1px solid var(--sand-200); padding: 12px; display: grid; gap: 8px; }
.composer .row-c { display: flex; gap: 8px; align-items: end; }
.composer textarea { min-height: 46px; max-height: 180px; resize: none; border-radius: 16px; }
.composer .send { width: 48px; height: 48px; border-radius: 50%; padding: 0; flex: none; }
.composer .attach { width: 44px; height: 44px; border-radius: 50%; padding: 0; flex: none; }
.composer .hint { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.attached { display: inline-flex; gap: 6px; align-items: center; background: var(--sand-100); border-radius: var(--r-pill); padding: 3px 4px 3px 10px; font-size: 12.5px; font-weight: 700; }
.attached button { border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.attached svg { width: 14px; height: 14px; }
.no-thread { flex: 1; display: grid; place-items: center; text-align: center; color: var(--ink-3); padding: 24px; }
.no-thread b { display: block; font-family: var(--font-display); font-size: 24px; color: var(--ink); }
.no-thread .script { font-size: 30px; }
.guest-side { display: none; }
@media (min-width: 1380px) {
  .inbox.with-side { grid-template-columns: 340px minmax(0,1fr) 300px; }
  .inbox.with-side .guest-side { display: block; border-left: 1px solid var(--sand-200); background: #fff; overflow-y: auto; padding: 18px; }
}
.guest-side h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 18px 0 8px; }
.guest-side h4:first-child { margin-top: 0; }
.mini { border: 1px solid var(--sand-200); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; font-size: 13.5px; display: grid; gap: 4px; cursor: pointer; background: var(--sand-50); }
.mini:hover { border-color: var(--orange-300); }
@media (max-width: 900px) {
  .inbox { grid-template-columns: minmax(0,1fr); height: calc(100vh - 140px - env(safe-area-inset-bottom)); border-radius: var(--r); }
  .inbox.open .list-pane { display: none; }
  .inbox:not(.open) .thread-pane { display: none; }
  .msg { max-width: 86%; }
  .main.inbox-page { padding: 0 0 calc(64px + env(safe-area-inset-bottom)); }
  .main.inbox-page .inbox { height: calc(100dvh - 58px - 64px - env(safe-area-inset-bottom) - env(safe-area-inset-top)); border: 0; border-radius: 0; }
}

/* ---------- bookings */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 10px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.bk { padding: 14px; display: grid; gap: 6px; cursor: pointer; margin-bottom: 10px; transition: transform .15s var(--ease), box-shadow .15s; }
.bk:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.bk .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.bk b { font-size: 15px; }
.bk p { margin: 0; color: var(--ink-2); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bk .foot { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.bk.due { border-color: var(--orange-300); box-shadow: 0 0 0 3px var(--orange-100); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 900px) { .board { grid-template-columns: 1fr; } }

/* ---------- tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--sand-200); }
.table td { padding: 12px; border-bottom: 1px solid var(--sand-100); vertical-align: top; }
.table tr.click { cursor: pointer; } .table tr.click:hover td { background: var(--sand-50); }
.scroll-x { overflow-x: auto; }

/* ---------- settings */
.settings { display: grid; gap: 20px; max-width: 980px; }
.settings .card { padding: 22px; }
.settings .card > p.muted { margin: 4px 0 16px; }
.switch-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 30px; background: var(--sand-300); transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--orange); }
.switch input:checked + span::after { transform: translateX(22px); }
.faq-list { display: grid; gap: 10px; }
.faq { display: grid; gap: 8px; grid-template-columns: 1fr 1.6fr auto; align-items: start; }
.faq textarea { min-height: 48px; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; border-bottom: 1px solid var(--sand-200); padding-bottom: 12px; } }
.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; align-items: center; }
details.advanced summary { cursor: pointer; font-weight: 700; color: var(--ink-2); }
details.advanced textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; min-height: 320px; margin-top: 10px; }

/* ---------- sheet & toast */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(6,11,18,.55); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.sheet-card { background: var(--sand-50); border-radius: var(--r-lg); width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 14px; animation: rise .25s var(--ease); }
.sheet-card .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sheet-card h3 { font-size: 24px; }
@media (max-width: 640px) { .sheet { place-items: end stretch; padding: 0; } .sheet-card { border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92vh; padding-bottom: calc(24px + env(safe-area-inset-bottom)); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: var(--r-pill); font-weight: 600; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast.bad { background: var(--red); }
@media (max-width: 900px) { .toast { bottom: calc(80px + env(safe-area-inset-bottom)); } }
.skeleton { color: var(--ink-3); padding: 40px; text-align: center; }

/* Updates (campaigns) */
.bubble-preview { white-space: pre-wrap; background: #E7F8DC; border-radius: 12px 12px 12px 4px; padding: 12px 14px; margin: 10px 0; font-size: 14.5px; line-height: 1.45; color: var(--ink); max-width: 560px; }
.campaign-list { display: grid; gap: 12px; margin-top: 14px; }
.campaign-list .card.muted { opacity: .55; }
.campaign-list .card-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
