@font-face{font-family:Mulish;src:url(/fonts/mulish-latin.woff2) format("woff2");font-weight:200 1000;font-display:swap}
/* Sample dashboard. Visual source: tounkara-app @ 543dbdc
   (crm/console.css, crm/ui/ui.module.css, owner/owner.css, owner/lab.css).
   Scoped under .crm-console. No fixed bar. */
.crm-console {
  --canvas: #09090a;
  --surface: #161617;
  --panel: #141415;
  --raised: #1c1c1e;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --ink: #f2f1ef;
  --ink-secondary: #a6a4a0;
  --muted: #a6a4a0;
  --label: #c9c7c2;
  --on-mark: #08090a;
  --neon: #ff7a3d;
  --neon-d: rgba(255, 90, 31, 0.16);
  --amber: #ffa04a;
  --amber-d: rgba(255, 160, 74, 0.16);
  --ice: #d7d4cf;
  --red: #ff6b6b;
  --green: #3ecf8e;
  --glow: rgba(255, 90, 31, 0.4);
  --orange: #ff5a1f;
  --dim: #b3b1ad;
  --dim2: #85837f;
  --line: var(--border);
  --line2: var(--border-strong);
  --ink2: var(--ink-secondary);
  --fg: var(--ink);
  --display: Mulish, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
  box-sizing: border-box;
  min-height: 100%;
  padding: 12px;
  color: var(--ink);
  background: var(--canvas);
  font-family: Mulish, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
.crm-console *, .crm-console *::before, .crm-console *::after { box-sizing: border-box; }
.crm-console a { color: inherit; text-decoration: none; }
.crm-console button, .crm-console input, .crm-console textarea, .crm-console select { font: inherit; color: inherit; }
.crm-console :focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; border-radius: 6px; }
.crm-frame {
  width: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #141415, #0e0e0f);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px 22px 22px;
  box-shadow: 0 -10px 60px -20px rgba(255, 90, 31, 0.35), 0 40px 90px rgba(0, 0, 0, 0.7);
}
.crm-console.lab { --dim: #b3b1ad; --dim2: #85837f; }

/* desks */
.crm-desks, .od-desks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 12px; }
.crm-desk, .od-desk {
  display: flex; align-items: center; justify-content: center;
  text-align: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px; min-height: 44px; color: var(--ink); cursor: pointer;
}
.crm-desk b, .od-desk b { font-size: 16px; font-weight: 600; }
.lab .od-desk b { font-size: 19px; }
.crm-desk[aria-current="page"], .od-desk[aria-selected="true"] {
  border-color: rgba(255, 90, 31, 0.55);
  background: linear-gradient(180deg, rgba(255, 90, 31, 0.14), rgba(255, 90, 31, 0.03));
}
.crm-desk:hover, .od-desk:hover { border-color: var(--border-strong); }

/* top identity */
.od-fnav, .crm-id {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; flex-wrap: wrap;
}
.od-logo, .crm-mark {
  font-weight: 700; font-size: 13px; letter-spacing: 0.04em; display: inline-flex; align-items: center; color: var(--ink);
}
.od-logo b, .crm-mark b {
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-left: 2px; margin-top: -10px;
  box-shadow: 0 0 10px var(--orange);
}
.demo-chip {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--label); border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 9px; white-space: nowrap;
}
.od-me, .crm-id-right { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.lab-crm, .od-crm {
  background: linear-gradient(180deg, #ff7a3d, var(--orange)); color: #fff; border-radius: 8px;
  font-size: 12px; font-weight: 600; padding: 7px 13px; white-space: nowrap;
}
.od-av { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #ffd27a, #d98a2b); flex: none; }
.lab-center { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.od-tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.od-tabs a {
  background: none; border: 0; color: var(--dim); font-size: 12px; padding: 6px 8px; border-radius: 7px; cursor: pointer;
}
.od-tabs a[aria-selected="true"] {
  color: var(--fg); background: rgba(255, 90, 31, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.35);
}
.lab-date { margin: 0; font-size: 13.5px; font-weight: 500; }
.od-title, h1.od-title { font-family: inherit; color: inherit; letter-spacing: 0; line-height: 1.25; font-size: 20px; margin: 16px 0 12px; font-weight: 500; }

/* rail */
.crm-rail {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 0 0 10px; border-bottom: 1px solid var(--border); margin-bottom: 12px;
}
.crm-rail-item {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 7px; padding: 6px 8px;
  font-size: 12.5px; color: var(--muted); min-height: 32px; position: relative;
}
.crm-rail-item:hover { background: var(--raised); color: var(--ink); }
.crm-rail-item[aria-current="page"] {
  background: rgba(255, 90, 31, 0.12); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.35);
}
.crm-rail-gap { flex: 1; min-width: 8px; }
.crm-rail-icon { width: 32px; padding: 0; justify-content: center; }
.crm-rail-icon svg { width: 15px; height: 15px; display: block; }
.crm-rail-icon .rail-name {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.crm-badge {
  min-width: 16px; padding: 0 4px; border-radius: 999px; background: var(--amber); color: #1a1400;
  font-family: var(--mono); font-size: 9px; font-weight: 600; line-height: 16px; text-align: center;
}
.crm-main { min-width: 0; }
.crm-wrap { padding: 4px 0 8px; }

/* top bar */
.crm-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.crm-top h1 { font-weight: 600; font-size: 22px; margin: 0; letter-spacing: -0.01em; line-height: 1.15; }
.crm-sub { color: var(--ink2); font-size: 13.5px; margin: 3px 0 0; }
.crm-top-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.crm-search { position: relative; width: min(320px, 100%); }
.crm-search input, .field input, .field textarea, .field select {
  width: 100%; min-height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--ink); font-size: 13px; padding: 8px 12px;
}
.crm-search input { padding-left: 34px; }
.crm-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.crm-plus {
  width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--neon); color: var(--on-mark);
  font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.crm-plus:hover { box-shadow: 0 0 22px var(--glow); }
.crm-menu {
  position: absolute; z-index: 5; right: 0; margin-top: 6px; min-width: 180px; border-radius: 12px;
  border: 1px solid var(--line2); background: #141415; padding: 6px; list-style: none;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.crm-menu a, .crm-menu button {
  display: block; width: 100%; text-align: left; border: 0; background: none; border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 13px;
}
.crm-menu a:hover, .crm-menu button:hover { background: var(--raised); }
.plus-wrap { position: relative; }

/* hud + cards */
.crm-hud { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.tile, .card, .od-box, .od-kpi {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); position: relative; overflow: hidden;
}
.crm-console .tile {
  display: block; height: auto; color: var(--ink);
  justify-items: stretch; align-content: stretch; grid-template-rows: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--surface);
}
.tile { padding: 11px 14px 10px; }
.crm-console .tile .v b { color: var(--ink); font-size: 28px; font-weight: 600; }
.crm-console .row { display: flex; background: transparent; grid-template-columns: none; }
.crm-console .btn { background: var(--neon); color: #08090a !important; }
.crm-console .btn.ghost { background: var(--raised); color: var(--ink) !important; }
.tile .eye, .od-kpi small, .sec .eye {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label);
}
.tile .v { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.tile .v b, .od-kpi b { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.tile .v small { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.tile .line, .od-kpi em { display: block; font-style: normal; font-size: 12.5px; color: var(--ink2); margin-top: 6px; }
.tile .line a, .crm-link { color: var(--neon); }
.od-kpi em.up, .up { color: var(--green); }
.od-kpi em.down, .down { color: var(--red); }
.crm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.crm-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; margin-bottom: 12px; }
.card { padding: 14px 16px; display: flex; flex-direction: column; min-width: 0; }
.card h2, .od-boxh { font-size: 14.5px; font-weight: 600; margin: 0 0 8px; }
.card p, .od-s { color: var(--dim); font-size: 12.5px; margin: 0 0 8px; }
.field { display: grid; gap: 4px; margin-bottom: 8px; font-size: 12px; color: var(--dim); }
.btn {
  border: 0; border-radius: 10px; font-weight: 600; font-size: 13px; padding: 8px 12px; min-height: 36px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; background: var(--neon); color: var(--on-mark);
}
.btn.ghost { background: var(--raised); color: var(--ink); border: 1px solid var(--line2); }
.btn.sm { min-height: 32px; padding: 5px 10px; font-size: 12px; }
.btn:disabled { opacity: 0.55; cursor: default; }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px;
}
.row:first-child { border-top: 0; }
.row b { font-weight: 600; }
.row small, .meta { display: block; color: var(--ink2); font-size: 12.5px; font-weight: 400; }
.pill {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 999px; white-space: nowrap; background: var(--amber-d); color: var(--amber);
}
.pill.neon { background: var(--neon-d); color: var(--neon); }
.pill.muted { background: var(--surface); color: var(--label); border: 1px solid var(--line); }
.pill.red { background: rgba(255, 107, 107, 0.16); color: var(--red); }
.dot {
  width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center;
  font-weight: 700; font-size: 13px; background: var(--neon-d); color: var(--neon);
  border: 1px solid rgba(255, 122, 61, 0.35);
}
.headish { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.sec { display: flex; align-items: center; gap: 10px; margin: 16px 0 8px; }
.sec .rule { flex: 1; height: 1px; background: var(--line); }
.status {
  margin: 0 0 10px; font-size: 13px; color: var(--amber);
}
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kanban > section { width: 240px; flex: none; }
.pre {
  white-space: pre-wrap; font: inherit; font-size: 13px; color: var(--ink2); margin: 6px 0 0;
}
table.auto { width: 100%; border-collapse: collapse; font-size: 13px; }
table.auto th, table.auto td { text-align: left; padding: 8px 8px 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
table.auto th { color: var(--label); font-weight: 600; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }

/* lab tiles */
.od-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.od-kpi { padding: 12px 14px; min-width: 0; }
.od-kpi small { display: block; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dim); }
.od-kpi b { display: block; font-size: 24px; margin-top: 4px; }
.lab-fgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px; margin-top: 10px; }
.od-box { padding: 14px; min-width: 0; }
.lab-fns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lab-fn {
  aspect-ratio: 1; min-height: 128px; text-align: left; display: flex; flex-direction: column; justify-content: space-between;
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--fg); cursor: pointer;
}
.lab-fn b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.lab-fn small { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-fn svg { color: var(--dim); }
.lab-fn[aria-pressed="true"] {
  border-color: rgba(255, 122, 61, 0.75);
  background: linear-gradient(180deg, rgba(255, 90, 31, 0.26), rgba(255, 90, 31, 0.06));
  box-shadow: 0 14px 34px -16px rgba(255, 90, 31, 0.75);
}
.lab-fn[aria-pressed="true"] svg { color: var(--orange); }
.lab-fn[aria-pressed="true"] small { color: var(--amber); }
.lab-screen { display: flex; flex-direction: column; gap: 8px; }
.mean { font-size: 15px; line-height: 1.45; margin: 8px 0 0; }
.next { font-size: 13.5px; color: var(--amber); margin: 8px 0; }
.next a { color: inherit; text-decoration: underline; }
.note-card { padding: 10px 0; border-top: 1px solid var(--line); }
.note-card .who { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); margin: 0 0 4px; }
.arch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.arch-node { border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; min-width: 108px; background: rgba(255,255,255,.03); }
.arch-node b { display: block; font-size: 14px; }
.arch-node small { color: var(--dim); font-size: 12px; }
.arch-arrow { color: var(--orange); font-size: 18px; }
.day { display: grid; grid-template-columns: 64px 1fr; gap: 8px 10px; margin-top: 8px; }
.day time { font-family: var(--mono); font-size: 12px; color: var(--label); }
.day small { display: block; color: var(--dim); }
.call-clock { font-size: 56px; font-weight: 600; letter-spacing: -0.03em; margin: 8px 0; font-variant-numeric: tabular-nums; }
.eye { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label); margin: 0; }
.lab-counter { font-size: 40px; font-weight: 600; line-height: 1.1; margin: 4px 0 8px; }
.lab-counter small { font-size: 13px; color: var(--dim); font-weight: 400; margin-left: 8px; }
.lab-bar { display: grid; grid-template-columns: minmax(0, 110px) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 12.5px; margin-top: 8px; }
.lab-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-bar i { display: block; height: 14px; border-radius: 3px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); overflow: hidden; }
.lab-bar i b { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #ff9a5c, var(--orange)); }
.od-rows { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; }
.od-rows li { padding: 7px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.od-rows span { color: var(--dim); text-align: right; }
.lab-tag { font-style: normal; font-weight: 600; font-size: 11.5px; border-radius: 6px; padding: 2px 7px; margin-right: 6px; background: rgba(255, 255, 255, 0.08); }
.lab-tag.unpaid { background: rgba(255, 90, 31, 0.22); color: #ffc2ab; }
.lab-tag.paid, .lab-tag.live { background: rgba(64, 200, 120, 0.16); color: #9fe7bb; }
.lab-tag.building, .lab-tag.claimed { background: rgba(80, 150, 255, 0.16); color: #b7d2ff; }
.od-toolgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.od-tool { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px; }
.od-tool i {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 11px; color: #fff; flex: none;
}
.od-conn { font-size: 11.5px; border: 1px solid var(--line2); border-radius: 7px; padding: 4px 8px; white-space: nowrap; }
.od-conn.on { color: var(--green); border-color: rgba(62, 207, 142, 0.35); }
.checks { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.checks button[aria-pressed="true"] { background: var(--neon); color: var(--on-mark); border-color: var(--neon); }

body.embed, body.embed html { height: 100%; margin: 0; background: #09090a; }
body.embed #console, body.embed .crm-console { height: 100%; }
body.embed .crm-console { padding: 0; }
body.embed .crm-frame { height: 100%; border: 0; border-radius: 0; box-shadow: none; overflow: auto; }
body.page { margin: 0; background: #09090a; color: #f2f1ef; }
body.page .crm-console { min-height: calc(100dvh - 64px); }

@media (max-width: 900px) {
  .od-kpis, .lab-fgrid { grid-template-columns: 1fr 1fr; }
  .lab-fgrid { grid-template-columns: 1fr; }
  .lab-fns { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .crm-console { padding: 8px; height: auto; }
  .crm-frame { padding: 14px; }
  .lab-center { flex: 1 1 100%; }
  .od-me { flex-wrap: wrap; justify-content: flex-end; max-width: 100%; }
  .od-av { display: none; }
  .od-kpis, .od-toolgrid { grid-template-columns: 1fr 1fr; }
  .crm-top-right { width: 100%; margin-left: 0; }
  .crm-search { flex: 1; }
  .crm-rail-icon { width: auto; padding: 6px 8px; gap: 6px; }
  .crm-rail-icon .rail-name { position: static; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; }
  .crm-console input, .crm-console textarea, .crm-console select { font-size: 16px; }
}
@media (max-width: 520px) {
  .crm-desks, .od-desks, .od-kpis { grid-template-columns: 1fr; }
  .lab .od-desk b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .crm-console * { transition: none !important; }
}
.demo-page-cta { text-align: center; margin: 4px 16px 28px; font-size: 15px; }
.demo-page-cta a { color: #ffa04a; font-weight: 600; }
