/* Daylight theme preview for the KallAnsa dashboard. Loaded after the app stylesheet; changes appearance only. */
body[data-theme="kallansa"] {
  --bg: #fbf5ec;
  --card: #fffdf9;
  --surface: #fffdf9;
  --surface-subtle: #f7efe3;
  --ink: #1e1830;
  --ink-soft: #3d3550;
  --muted: #6f6680;
  --line: #ece3d6;
  --brand: #6c2bd9;
  --brand-hover: #5a1fc0;
  --soft: #efe5ff;
  --brand-ring: rgba(108, 43, 217, .22);
  --rail: #1e1830;
  --rail-ink: #fbf5ec;
  --rail-muted: #cbc2d9;
  --rail-active: #ffd76a;
  --rail-active-ink: #1e1830;
  --ok: #17784a;
  --ok-soft: #c9f2dc;
  --warn: #8a5300;
  --warn-soft: #ffe9b0;
  --err: #c2341b;
  --err-soft: #ffe0d6;
  --shadow-sm: none;
  --dl-coral: #ff7a59;
  --dl-sun: #ffd76a;
  --dl-mint: #c9f2dc;
  font-family: "Avenir Next", "Nunito", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
body[data-theme="kallansa"] h1,
body[data-theme="kallansa"] h2,
body[data-theme="kallansa"] h3 { color: var(--ink); letter-spacing: -.02em; }
body[data-theme="kallansa"] h2 { font-weight: 900; font-size: 1.9rem; }
body[data-theme="kallansa"] h3 { font-weight: 800; }
body[data-theme="kallansa"] .muted { color: var(--muted); }

/* Sidebar */
@media (min-width: 761px) {
  body[data-theme="kallansa"] .side { background: var(--rail) !important; border-right: 0 !important; }
  body[data-theme="kallansa"] .side nav a { color: var(--rail-muted) !important; border-radius: 14px !important; font-weight: 700 !important; border: 2px solid transparent; }
  body[data-theme="kallansa"] .side nav a:hover { background: rgba(255, 255, 255, .08) !important; color: #fff !important; }
  body[data-theme="kallansa"] .side nav a.active { background: var(--dl-sun) !important; color: var(--ink) !important; border-color: var(--ink); box-shadow: 3px 3px 0 #000; }
  body[data-theme="kallansa"] .side nav a .pill { background: var(--dl-coral) !important; color: #fff !important; }
  body[data-theme="kallansa"] .side nav a.active .pill { background: var(--ink) !important; }
  body[data-theme="kallansa"] .main { max-width: 1280px !important; }
}
body[data-theme="kallansa"] .bizlink { background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 255, 255, .12); border-radius: 16px; }
body[data-theme="kallansa"] .side-status { border-radius: 14px; background: rgba(201, 242, 220, .12); border: 2px solid rgba(201, 242, 220, .35); }

/* Top bar and live call banner */
body[data-theme="kallansa"] .topbar { background: rgba(251, 245, 236, .92); border-bottom: 2px solid var(--line); }
body[data-theme="kallansa"] .topbar .nm { color: var(--ink); font-weight: 900; text-decoration: none; }
body[data-theme="kallansa"] .livebar { background: var(--ink); color: #fff; border-bottom: 3px solid var(--dl-coral); }
body[data-theme="kallansa"] .livedot { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); animation: dl-pulse 1.6s ease-in-out infinite; }
@keyframes dl-pulse { 50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }
body[data-theme="kallansa"] .livelink { background: var(--dl-sun) !important; color: var(--ink) !important; border: 2px solid #000; border-radius: 12px !important; font-weight: 800; box-shadow: 3px 3px 0 #000; }

/* Buttons */
body[data-theme="kallansa"] :where(button, .btnlink):not(:where(.brief-row, .li-row, .link, .backbtn, .fold-toggle, .bk-toggle, .studio-tab, .filter-pill, .tabbar button, .choice-row button, .setup-nav button, .coverage-results button, .mob-drawer-close, .mob-menu-trigger, .daypick button, #ka-look-toggle)) { border-radius: 14px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-weight: 800; transition: transform .15s ease, box-shadow .15s ease; }
body[data-theme="kallansa"] :where(button, .btnlink):not(:where(.brief-row, .li-row, .link, .backbtn, .fold-toggle, .bk-toggle, .studio-tab, .filter-pill, .tabbar button, .choice-row button, .setup-nav button, .coverage-results button, .mob-drawer-close, .mob-menu-trigger, .daypick button, #ka-look-toggle)):hover { transform: translateY(-1px); box-shadow: 3px 3px 0 var(--ink); }
body[data-theme="kallansa"] button.primary,
body[data-theme="kallansa"] .btnlink.primary,
body[data-theme="kallansa"] .signout { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 0 #3f1696; }
body[data-theme="kallansa"] button.primary:hover,
body[data-theme="kallansa"] .btnlink.primary:hover,
body[data-theme="kallansa"] .signout:hover { background: var(--brand-hover); box-shadow: 0 5px 0 #3f1696; }
body[data-theme="kallansa"] button.link,
body[data-theme="kallansa"] .backbtn,
body[data-theme="kallansa"] .fold-toggle,
body[data-theme="kallansa"] .bk-toggle { border: 0; background: transparent; box-shadow: none !important; color: var(--brand); font-weight: 800; }
body[data-theme="kallansa"] .fold-toggle { border: 2px solid var(--line); border-radius: 999px; color: var(--muted); }
body[data-theme="kallansa"] button.danger { border-color: var(--err); color: var(--err); }
body[data-theme="kallansa"] input,
body[data-theme="kallansa"] select,
body[data-theme="kallansa"] textarea { border: 2px solid var(--line); border-radius: 14px; background: #fff; }
body[data-theme="kallansa"] input:focus,
body[data-theme="kallansa"] select:focus,
body[data-theme="kallansa"] textarea:focus { border-color: var(--ink); outline: 3px solid var(--brand-ring); }

/* Cards */
body[data-theme="kallansa"] .card,
body[data-theme="kallansa"] .inbox,
body[data-theme="kallansa"] .brief-header-card,
body[data-theme="kallansa"] .brief-section-card,
body[data-theme="kallansa"] .call-feed-pane { background: var(--card); border: 2px solid var(--line); border-radius: 24px; box-shadow: none; }
body[data-theme="kallansa"] .brief-header-card { border-color: var(--ink); box-shadow: 6px 6px 0 var(--brand); }
body[data-theme="kallansa"] .brief-sec-title,
body[data-theme="kallansa"] .next-step-lbl { color: var(--dl-coral); font-weight: 900; letter-spacing: .08em; }
body[data-theme="kallansa"] .insights-link:hover,
body[data-theme="kallansa"] a.stat-mini:hover { border-color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }

/* Pills, chips and tabs */
body[data-theme="kallansa"] .chip-pill { border-radius: 999px; border: 2px solid transparent; font-weight: 800; }
body[data-theme="kallansa"] .chip-pill.ok { background: var(--dl-mint); color: #0f5132; border-color: #8fdcb2; }
body[data-theme="kallansa"] .chip-pill.warn { background: var(--warn-soft); color: var(--warn); border-color: #f5cf6b; }
body[data-theme="kallansa"] .chip-pill.brand { background: var(--soft); color: var(--brand); }
body[data-theme="kallansa"] .pill { background: var(--dl-coral); color: #fff; font-weight: 800; }
body[data-theme="kallansa"] .tag { border-radius: 999px; background: var(--dl-sun); color: var(--ink); font-weight: 800; }
body[data-theme="kallansa"] .studio-tabs { background: transparent; border: 0; padding: 0; gap: 8px; box-shadow: none; }
body[data-theme="kallansa"] .studio-tab { border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; box-shadow: none; }
body[data-theme="kallansa"] .studio-tab.on { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--brand); }
body[data-theme="kallansa"] .studio-tab .tab-count { background: var(--dl-sun); color: var(--ink); border: 0; }
body[data-theme="kallansa"] .filter-pill { border: 2px solid var(--line); border-radius: 999px; background: #fff; font-weight: 800; color: var(--ink-soft); }
body[data-theme="kallansa"] .filter-pill.on { background: var(--brand); border-color: var(--brand); color: #fff; }
body[data-theme="kallansa"] .jumpbar button { border: 2px solid var(--line); background: #fff; }

/* Home */
body[data-theme="kallansa"] .pagehead h2 { font-size: 2.2rem; }
body[data-theme="kallansa"] .brief-row:hover { background: #fff6e6; }
body[data-theme="kallansa"] .brief-time { color: var(--dl-coral); font-weight: 900; }
body[data-theme="kallansa"] .stat-mini { border: 2px solid var(--line); border-radius: 20px; background: #fff; }
body[data-theme="kallansa"] .stat-mini b { font-size: 1.9rem; font-weight: 900; }
body[data-theme="kallansa"] .statstrip > :nth-child(1) { background: #f3ebff; }
body[data-theme="kallansa"] .statstrip > :nth-child(2) { background: #fff6dc; }
body[data-theme="kallansa"] .statstrip > :nth-child(3) { background: #ffeee8; }
body[data-theme="kallansa"] .statstrip > :nth-child(4) { background: #e9f8ef; }
body[data-theme="kallansa"] .progress { background: #fff; border: 2px solid var(--ink); height: 10px; }
body[data-theme="kallansa"] .progress > div { background: repeating-linear-gradient(45deg, var(--brand) 0 8px, #8a52eb 8px 16px); }

/* Inbox */
body[data-theme="kallansa"] .call-feed-item { border-radius: 18px; margin: 6px 8px; border: 2px solid transparent; }
body[data-theme="kallansa"] .call-feed-item:hover { background: #fff6e6; }
body[data-theme="kallansa"] .call-feed-item.sel { background: #f6efff; border-color: var(--ink); box-shadow: 4px 4px 0 var(--brand); }
body[data-theme="kallansa"] .call-who { font-weight: 900; }
body[data-theme="kallansa"] .next-step { border-radius: 20px; border-width: 2px; }
body[data-theme="kallansa"] .next-step.done { background: var(--dl-mint); border-color: #8fdcb2; }
body[data-theme="kallansa"] .next-step.todo { background: var(--warn-soft); border-color: #f5cf6b; }
body[data-theme="kallansa"] .linked-outcome-item { border-radius: 18px; border-width: 2px; }
body[data-theme="kallansa"] .linked-outcome-item.ok { background: #effbf4; border-color: #8fdcb2; }
body[data-theme="kallansa"] .linked-outcome-item.warn { background: #fff8e4; border-color: #f5cf6b; }
body[data-theme="kallansa"] .convo-bubble { border-radius: 20px; }
body[data-theme="kallansa"] .convo-msg.us .convo-bubble { background: #f1e8ff; color: #2a1a4a; border-bottom-right-radius: 6px; }
body[data-theme="kallansa"] .convo-msg.them .convo-bubble { background: #fff; border: 2px solid var(--line); border-bottom-left-radius: 6px; }
body[data-theme="kallansa"] .convo-msg.us .convo-who { color: var(--brand); font-weight: 800; }

/* Bookings */
body[data-theme="kallansa"] .bk { border: 2px solid var(--line); border-radius: 22px; background: #fff; padding: 16px 18px; }
body[data-theme="kallansa"] .bk:hover { border-color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
body[data-theme="kallansa"] .bk.open { border-color: var(--ink); box-shadow: 5px 5px 0 var(--brand); }
body[data-theme="kallansa"] .bk-when { font-weight: 900; }
body[data-theme="kallansa"] .bk-price { background: var(--dl-sun); color: var(--ink); padding: 2px 10px; border-radius: 10px; font-weight: 900; }

/* Tables (quotes) */
body[data-theme="kallansa"] main table { border-collapse: separate; border-spacing: 0; }
body[data-theme="kallansa"] main th { color: var(--muted); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
body[data-theme="kallansa"] .badge { border-radius: 999px; font-weight: 800; }

/* Phone tab bar */
@media (max-width: 760px) {
  body[data-theme="kallansa"] .tabbar { background: #fffdf9; border-top: 2px solid var(--ink); box-shadow: none; }
  body[data-theme="kallansa"] .tabbar a.active { color: var(--brand); }
  body[data-theme="kallansa"] .tabbar a.active .ic { background: var(--dl-sun); border-radius: 10px; padding: 2px; box-sizing: content-box; }
  body[data-theme="kallansa"] .tabbadge { background: var(--dl-coral); }
  body[data-theme="kallansa"] .topbar { background: var(--bg); }
  body[data-theme="kallansa"] .call-feed-item { margin: 6px 4px; }
}
