/* TechVision365 AI Receptionist — standalone console (ai.techvision365.ca). Colours follow techvision365.com:
 * night #0b1222, surfaces #111b33 / #17223f, violet #6d5ef1, orchid #a855f7, gold #e4be6c. Manrope only.
 * Loaded after ai.css, which reads the --tv-* tokens set here. AFL-3.0, TechVision365 2026. */
:root {
  --tv-s1: #111b33; --tv-s2: #17223f; --tv-line: #22304f; --tv-ink: #e8eefc; --tv-mute: #93a0c2;
  --tv-btn: #6d5ef1; --tv-night2: #1a1746; --tv-ok: #34d399; --tv-warn: #e4be6c; --tv-r: 14px;
  --tv-heading-font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --c-night: #0b1222; --c-violet: #6d5ef1; --c-orchid: #a855f7; --c-lilac: #c4b5fd; --c-gold: #e4be6c;
  --c-tint: rgba(109,94,241,.18); --c-glow: rgba(109,94,241,.28); --c-bad: #f87171;
  --c-bar: linear-gradient(90deg, rgba(47, 30, 90, .55), rgba(11, 18, 34, .6) 50%, rgba(26, 42, 94, .55));
  --c-hub: linear-gradient(160deg, #2f1e5a, #1a2a5e);
  --c-grad: linear-gradient(135deg, #a855f7, #6d5ef1);
  color-scheme: dark;
}
/* Themes. "orbit" is the default above (techvision365.com colours). Each theme only changes the tokens. */
html[data-theme="daylight"] {
  --tv-s1: #ffffff; --tv-s2: #f1f3f9; --tv-line: #dfe3ee; --tv-ink: #141a2e; --tv-mute: #5d6785; --tv-btn: #5b4de0; --tv-ok: #0f8a5f; --tv-warn: #a8691a;
  --c-night: #f6f7fb; --c-violet: #5b4de0; --c-orchid: #8b3fe0; --c-lilac: #5b4de0; --c-tint: rgba(91, 77, 224, .1); --c-glow: rgba(91, 77, 224, .16); --c-bad: #c0392b;
  --c-bar: #ffffff; --c-grad: linear-gradient(135deg, #8b3fe0, #5b4de0); color-scheme: light;
}
html[data-theme="slate"] {
  --tv-s1: #1b2430; --tv-s2: #232e3c; --tv-line: #334154; --tv-ink: #e6ebf2; --tv-mute: #9aa7b8; --tv-btn: #3b82f6;
  --c-night: #121922; --c-violet: #3b82f6; --c-orchid: #60a5fa; --c-lilac: #93c5fd; --c-tint: rgba(59, 130, 246, .18); --c-glow: rgba(59, 130, 246, .22);
  --c-bar: #161f2a; --c-hub: linear-gradient(160deg, #1e3a5f, #1b2430); --c-grad: linear-gradient(135deg, #60a5fa, #3b82f6);
}
html[data-theme="lagoon"] {
  --tv-s1: #0d2b33; --tv-s2: #123842; --tv-line: #1f4b57; --tv-ink: #e6f4f1; --tv-mute: #8fb3b5; --tv-btn: #0f9d8a;
  --c-night: #071f25; --c-violet: #0f9d8a; --c-orchid: #2dd4bf; --c-lilac: #7ee0d0; --c-tint: rgba(45, 212, 191, .16); --c-glow: rgba(45, 212, 191, .2);
  --c-bar: #0a2830; --c-hub: linear-gradient(160deg, #0f5f6b, #073a45); --c-grad: linear-gradient(135deg, #14b8a6, #0f8a7a);
}
html[data-theme="sand"] {
  --tv-s1: #ffffff; --tv-s2: #f3efe7; --tv-line: #e6e0d6; --tv-ink: #1a1816; --tv-mute: #655f58; --tv-btn: #0f5f6b; --tv-ok: #2f7d5a; --tv-warn: #a8691a;
  --c-night: #f6f3ed; --c-violet: #0f5f6b; --c-orchid: #0f5f6b; --c-lilac: #0f5f6b; --c-tint: rgba(15, 95, 107, .1); --c-glow: rgba(15, 95, 107, .14); --c-bad: #b3443a;
  --c-bar: #ffffff; --c-hub: linear-gradient(160deg, #002a34, #073a45); --c-grad: linear-gradient(135deg, #0f5f6b, #0b4a54); color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--c-night); color: var(--tv-ink); font: 14px/1.45 "Manrope", "Segoe UI", system-ui, sans-serif; }
a { color: var(--c-lilac); }
:focus-visible { outline: 2px solid var(--c-orchid); outline-offset: 2px; }

.tvc-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px; border-bottom: 1px solid var(--tv-line); background: var(--c-bar); }
.tvc-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 17px; color: var(--tv-ink); text-decoration: none; }
.tvc-brand b { background: linear-gradient(95deg, var(--c-orchid), var(--c-violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tvc-brand small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tv-mute); }
.tvc-mark { width: 34px; height: 34px; border-radius: 10px; background: conic-gradient(from 210deg, #38bdf8, var(--c-violet), var(--c-orchid), var(--c-gold), #38bdf8); display: grid; place-items: center; }
.tvc-mark:after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c-night); }
.tvc-who { display: flex; align-items: center; gap: 14px; color: var(--tv-mute); font-size: 13px; }
.tvc-who form { margin: 0; }
.tvc-out { min-height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--tv-line); background: transparent; color: var(--tv-ink); font: inherit; font-weight: 700; cursor: pointer; }
.tvc-out:hover { background: var(--tv-s2); }
.tvc-theme { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.tvc-theme select { min-height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--tv-line); background: var(--tv-s1); color: var(--tv-ink); font: inherit; font-weight: 700; }
.tvc-main { max-width: 1320px; margin: 0 auto; padding: 26px 28px 48px; }
.tvc-main > h1 { margin: 0 0 4px; font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; }

/* console tints: violet where the CRM theme uses its own accent */
.tvx-ai { --a-bad: var(--c-bad); }
.tvx-ai .tvx-a-ico { background: var(--c-tint); color: var(--c-lilac); }
.tvx-ai .tvx-a-list li.is-on a { background: var(--c-tint); }
.tvx-ai .tvx-a-note { background: var(--c-tint); }
.tvx-ai .tvx-a-note.is-warn { background: rgba(228, 190, 108, .14); }
.tvx-ai .tvx-a-pill.is-ok { background: rgba(52, 211, 153, .14); }
.tvx-ai .tvx-a-pill.is-warn, .tvx-ai .tvx-a-tag.is-warn { background: rgba(228, 190, 108, .15); }
.tvx-ai .tvx-a-pill.is-bad { background: rgba(248, 113, 113, .14); }
.tvx-ai .tvx-a-msg.is-ok { background: rgba(52, 211, 153, .13); }
.tvx-ai .tvx-a-msg.is-bad { background: rgba(248, 113, 113, .13); }
.tvx-ai .tvx-a-hub { background: var(--c-hub); border-color: rgba(196, 181, 253, .22); }
.tvx-ai .tvx-a-face { color: var(--c-lilac); }
.tvx-ai .tvx-a-btn.is-pri, .tvx-ai .tvx-a-chip input:checked + span, .tvx-ai .tvx-a-chip.is-on span, .tvx-ai .tvx-a-seg input:checked + span { background: var(--c-grad); border-color: transparent; }
.tvx-ai .tvx-a-switch input:checked + i { background: var(--c-violet); }
.tvx-ai .tvx-a-tabs a.is-on { border-color: var(--c-orchid); }
.tvx-ai .tvx-a-say.is-ai b { color: var(--c-lilac); }
.tvx-ai .tvx-a-copy input[readonly] { background: var(--c-night); }
.tvx-ai ::placeholder { color: var(--tv-mute); opacity: .7; }

/* icons: the CRM supplies an icon font; here the same class names draw from inline shapes */
.tvx-ai i[class^="icon-"] { display: inline-block; width: 1.05em; height: 1.05em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.tvx-ai .icon-phone { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.500 1.500a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.tvx-ai .icon-comments { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.600 7.100L4 20l1-4.600A8 8 0 1 1 21 12z'/%3E%3C/svg%3E"); }
.tvx-ai .icon-link { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.700 0l3-3a4 4 0 0 0-5.700-5.700l-1 1M14 10a4 4 0 0 0-5.700 0l-3 3a4 4 0 0 0 5.700 5.700l1-1'/%3E%3C/svg%3E"); }
.tvx-ai .icon-database { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='6' rx='7' ry='3'/%3E%3Cpath d='M5 6v6c0 1.700 3.100 3 7 3s7-1.300 7-3V6M5 12v6c0 1.700 3.100 3 7 3s7-1.300 7-3v-6'/%3E%3C/svg%3E"); }
.tvx-ai .icon-microphone { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11v2M8 8v8M12 4v16M16 8v8M20 11v2'/%3E%3C/svg%3E"); }
.tvx-ai .icon-envelope { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.tvx-ai .icon-shield { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.500-3.200 8-8 9-4.800-1-8-4.500-8-9V6z'/%3E%3C/svg%3E"); }
.tvx-ai .icon-globe { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3.500 3 14.500 0 18M12 3c-3 3.500-3 14.500 0 18'/%3E%3C/svg%3E"); }
.tvx-ai .icon-pencil { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l4-1L20 7l-3-3L5 16z'/%3E%3C/svg%3E"); }
.tvx-ai .icon-file-text-o { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v13H7zM14 3v5h5M10 13h6M10 17h6'/%3E%3C/svg%3E"); }

/* sign-in */
.tvc-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(900px 500px at 50% -10%, var(--c-glow), transparent 70%), var(--c-night); }
.tvc-card { width: min(400px, 100%); background: var(--tv-s1); border: 1px solid var(--tv-line); border-radius: 18px; padding: 30px 28px; }
.tvc-card .tvc-brand { margin: 0 0 22px; }
.tvc-card h1 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.tvc-card p { margin: 0 0 18px; color: var(--tv-mute); }
.tvc-card label { display: block; margin: 14px 0 6px; font-size: 12.5px; font-weight: 700; color: var(--tv-ink); }
.tvc-card input { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid var(--tv-line); border-radius: 10px; background: var(--c-night); color: var(--tv-ink); font: inherit; }
.tvc-card button { width: 100%; min-height: 46px; margin-top: 22px; border: 0; border-radius: 10px; background: var(--c-grad); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.tvc-card button:hover { filter: brightness(1.08); }
.tvc-card .tvc-err { margin: 0 0 4px; padding: 10px 13px; border-radius: 10px; background: rgba(248, 113, 113, .13); color: var(--c-bad); font-weight: 600; }
.tvc-card .tvc-foot { margin: 18px 0 0; font-size: 12px; text-align: center; }
@media (max-width: 767px) { .tvc-bar { padding: 12px 16px; } .tvc-main { padding: 18px 16px 40px; } .tvc-who > span, .tvc-theme span { display: none; } }

@media (max-width: 767px) { .tvc-who { gap: 8px; } .tvc-who button, .tvc-who a { white-space: nowrap; } }

/* view-only links */
.tvc-viewonly { font-style: normal; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; color: #f0b54a; background: rgba(240, 181, 74, .14); white-space: nowrap; }
.tvc-share { margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--tv-line); border-radius: 14px; background: var(--tv-s1); color: var(--tv-ink); }
.tvc-share strong { display: block; margin-bottom: 8px; }
.tvc-share input { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--tv-line); border-radius: 9px; background: var(--tv-s2); color: var(--tv-ink); font: 13px ui-monospace, Consolas, monospace; box-sizing: border-box; }
.tvc-share p { margin: 8px 0 0; color: var(--tv-mute); font-size: 12.5px; }
.tvc-sharebar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--tv-line); color: var(--tv-mute); font-size: 12.5px; }
.tvc-sharebar span { margin-right: auto; }
@media (max-width: 767px) { .tvc-sharebar button { flex: 1 1 100%; } }
