/* The command center: the conversation is the page; everything it can see and run is in the panel beside it */
.page:has(> .cc) { max-width: 1600px; padding-bottom: 12px; }
.page:has(> .cc) ~ .foot { display: none; }
.cc { --as-glow: color-mix(in srgb, var(--accent) 55%, #22d3ee); --as-warm: color-mix(in srgb, var(--accent) 50%, #f472b6);
  --cc-need: #D85A30; --cc-notice: #BA7517; --cc-ok: #1D9E75;
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto minmax(0, 1fr); gap: 14px;
  height: calc(100vh - 80px); min-height: 600px; margin-top: -10px; }
.cc-tour[hidden] { display: none; }

/* The conversation */
.cc-chat { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; min-height: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.cc-chat-h { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.cc-chat-h > div { flex: 1; min-width: 0; }
.cc-chat-h b { font-size: 16px; }
.cc-chat-h p { margin: 1px 0 0; font-size: 13.5px; color: var(--muted); }
.cc-chat-h p b { font-size: inherit; color: var(--ink); }
.cc-chat-h .btn svg { width: 13px; height: 13px; }
.cc-moon { width: 38px; height: 38px; margin: 0; flex: none; }
.cc-link { font-size: 13px; color: var(--accent); white-space: nowrap; }
.cc-thread { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; padding: 22px clamp(16px, 3vw, 44px); }
.cc-thread .as-text { font-size: 15.5px; }
.cc-thread .err { color: var(--err, #C2392D); }
.cc-compose { margin: 0 clamp(12px, 2.5vw, 36px) 6px; }
.cc-foot { text-align: center; font-size: 12px; color: var(--faint); padding: 2px 16px 12px; }
.cc-hello { margin: auto; text-align: center; max-width: 640px; padding: 10px 0; }
.cc-hello-moon { width: 68px; height: 68px; margin: 0 auto 14px; }
.cc-hello-moon .as-moon b { animation: moon-half 16s linear infinite; } .cc-hello-moon .as-moon u { animation: moon-edge 16s linear infinite; }
.cc-hello h2 { font-size: 26px; margin: 0 0 8px; }
.cc-hello p { margin: 0 auto 18px; max-width: 540px; line-height: 1.55; }
.cc-ideas { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cc-idea { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 8px 15px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.cc-idea:hover { border-color: var(--accent-line); background: var(--accent-soft); }
/* (Its steps, as it works: the same as the Assistant page.) */
.cc-trail { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.cc-trail li { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.cc-trail li.new { animation: cc-pop .35s ease both; }
.cc-trail li span { width: 16px; height: 16px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.cc-trail li.ok span { background: color-mix(in srgb, var(--cc-ok) 18%, transparent); }
.cc-trail li.ok span::after { content: ''; width: 7px; height: 4px; border: solid var(--cc-ok); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.cc-trail li.run { color: var(--ink); font-weight: 600; }
.cc-trail li.run span { border: 2px solid var(--accent); border-right-color: transparent; animation: as-spin .8s linear infinite; }
.cc-waiting { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: color-mix(in srgb, var(--cc-need) 10%, transparent); font-size: 14px; }
.cc-waiting svg { width: 16px; height: 16px; color: var(--cc-need); flex: none; }

/* The panel */
.cc-side { grid-column: 2; grid-row: 2; position: relative; display: flex; flex-direction: column; min-height: 0; }
.cc-pane { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 2px 4px; }
.cc-pane[hidden] { display: none; }
.cc-sec { background: var(--card); border: 1px solid var(--line); border-radius: 16px; transition: border-color .3s, box-shadow .3s; flex: none; }
.cc-sec-h { width: 100%; display: flex; align-items: center; gap: 8px; padding: 11px 13px; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; text-align: left; border-radius: 16px; }
.cc-sec-h > svg:first-child { width: 17px; height: 17px; color: var(--accent); flex: none; }
.cc-sec[data-sec="needs"] .cc-sec-h > svg:first-child { color: var(--cc-need); }
.cc-sec[data-sec="noticed"] .cc-sec-h > svg:first-child { color: var(--cc-notice); }
.cc-sec-h b { font-size: 14.5px; }
.cc-sec-h > svg:last-child { width: 16px; height: 16px; color: var(--muted); margin-left: auto; flex: none; transition: transform .2s; }
.cc-sec.open .cc-sec-h > svg:last-child { transform: rotate(180deg); }
.cc-count { font-size: 11.5px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 999px; padding: 1px 8px; }
.cc-count:empty { display: none; }
.cc-sec[data-sec="needs"] .cc-count { background: var(--cc-need); }
.cc-sec[data-sec="noticed"] .cc-count { background: var(--cc-notice); }
.cc-using { font-size: 11.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: auto; }
.cc-using:empty { display: none; }
.cc-using:not(:empty) + svg { margin-left: 4px; }
.cc-sec-b { display: none; padding: 0 12px 12px; }
.cc-sec.open .cc-sec-b { display: block; }
.cc-sec.using { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 10px 30px color-mix(in srgb, var(--accent) 16%, transparent); }
.cc-sec.landed { animation: cc-land 1.8s ease; }
@keyframes cc-land { 0%, 35% { border-color: var(--cc-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cc-ok) 22%, transparent); } }
.cc-empty, .cc-clear { color: var(--muted); font-size: 13.5px; padding: 4px 2px; display: flex; align-items: center; gap: 7px; }
.cc-empty.small { font-size: 12.5px; }
.cc-empty svg, .cc-clear svg { width: 15px; height: 15px; flex: none; }
.cc-clear svg { color: var(--cc-ok); }

/* Inside the panel */
.cc-sec-b > .cc-card + .cc-card { margin-top: 8px; }
.cc-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); transition: opacity .4s, transform .4s; }
.cc-card-t { display: flex; align-items: baseline; gap: 8px; }
.cc-card-t b { flex: 1; min-width: 0; font-size: 14px; }
.cc-card-t .faint { font-size: 12px; white-space: nowrap; }
.cc-card-title { display: block; font-size: 14px; margin-top: 2px; }
.cc-card p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.cc-card-b { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cc-card.done { opacity: .35; transform: scale(.98); pointer-events: none; }
.cc-card.need.rule { border-color: color-mix(in srgb, var(--cc-ok) 45%, var(--line)); }
.cc-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--cc-notice); }
.cc-card.problem .cc-tag { color: var(--err, #C2392D); }
.cc-card.idea .cc-tag { color: var(--accent); }
.cc-evidence { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cc-evidence span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.cc-evidence svg { width: 12px; height: 12px; }
.cc-item { display: flex; align-items: flex-start; gap: 9px; padding: 6px 6px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 13.5px; }
.cc-item:hover { background: var(--bg); }
.cc-item > svg { width: 16px; height: 16px; color: var(--muted); flex: none; margin-top: 2px; }
.cc-item > span { min-width: 0; flex: 1; }
.cc-item b { font-weight: 600; }
.cc-item .faint { font-size: 12px; }
.cc-item .cc-t { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-saved { display: inline-flex; align-items: center; gap: 5px; color: var(--cc-ok); font-size: 12px; font-weight: 600; margin-top: 2px; }
.cc-saved svg { width: 13px; height: 13px; }
.cc-auto { display: flex; align-items: flex-start; gap: 9px; padding: 7px 6px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 13.5px; }
.cc-auto:hover { background: var(--bg); }
.cc-auto > span:last-child { min-width: 0; flex: 1; }
.cc-auto b { font-weight: 600; }
.cc-auto .cc-t { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cc-ok); flex: none; margin-top: 6px; }
.cc-auto.off .cc-dot { background: var(--faint); }
.cc-auto.bad .cc-dot { background: var(--err, #C2392D); }
.cc-auto.running .cc-dot { background: var(--accent); animation: cc-pulse 1.1s ease-in-out infinite; }
.cc-steps-mini { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.cc-steps-mini i { font-style: normal; font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); transition: all .3s; }
.cc-steps-mini i.ok { color: var(--cc-ok); border-color: color-mix(in srgb, var(--cc-ok) 50%, transparent); background: color-mix(in srgb, var(--cc-ok) 10%, transparent); }
@keyframes cc-pulse { 50% { transform: scale(1.5); opacity: .5; } }
.cc-mem { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.cc-mem > div { background: var(--bg); border-radius: 12px; padding: 7px 10px; display: flex; flex-direction: column; }
.cc-mem b { font-size: 20px; line-height: 1.2; }
.cc-mem span { font-size: 12px; color: var(--muted); }
.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; text-decoration: none; color: var(--ink); }
.cc-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--cc-ok); }
.cc-chip.off i { background: var(--faint); }
.cc-chip.off { color: var(--muted); }
.cc-chip.add { color: var(--accent); border-style: dashed; background: none; }
.pop { animation: cc-pop .5s cubic-bezier(.2, .8, .3, 1.2) both; }
@keyframes cc-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }

/* The demo's captions */
.cc-tour { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 18px; border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 88%, #0b0d1f); color: #fff; box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 30%, transparent); }
.cc-tour.in p { animation: cc-pop .4s ease both; }
.cc-tour-n { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .8; white-space: nowrap; }
.cc-tour p { margin: 0; flex: 1; font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.cc-tour-dots { display: flex; gap: 5px; }
.cc-tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.cc-tour-dots i.past { background: rgba(255, 255, 255, .7); }
.cc-tour-dots i.now { background: #fff; width: 18px; border-radius: 4px; }
.cc-tour-b { display: flex; gap: 6px; }
.cc-tour .btn { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); }
.cc-tour .btn:hover { background: rgba(255, 255, 255, .2); }
.cc-tour .btn svg { width: 12px; height: 12px; }

/* Narrower screens: the conversation first, then the panel */
@media (max-width: 1100px) { .cc { grid-template-columns: minmax(0, 1fr) 330px; } }
@media (max-width: 860px) {
  .cc-tour { flex-wrap: wrap; }
  .cc-tour p { flex-basis: 100%; order: 2; font-size: 15px; }
  .cc-tour-b { order: 3; }
}
@media (prefers-reduced-motion: reduce) { .cc-auto.running .cc-dot, .cc-trail li.run span, .cc-hello-moon .as-moon b, .cc-hello-moon .as-moon u { animation: none; } .pop, .cc-sec.landed { animation: none !important; } }
.cc-note .as-text svg { width: 15px; height: 15px; vertical-align: -2px; color: var(--cc-ok); margin-right: 2px; }

/* The conversation's tools: share, a meeting, a video call */
.cc-tools { display: flex; align-items: center; gap: 4px; flex: none; }
.cc-tools .btn { padding: 6px 10px; }
.cc-tools .btn svg { width: 14px; height: 14px; }
.cc-share { position: relative; }
.cc-share-menu { right: 0; left: auto; top: calc(100% + 6px); min-width: 210px; }
.cc-share-menu button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 9px 12px; border-radius: 8px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; text-align: left; }
.cc-share-menu button:hover { background: var(--bg); }
.cc-share-menu svg { width: 16px; height: 16px; color: var(--muted); }
.cc-pick { display: flex; flex-direction: column; gap: 4px; max-height: 340px; overflow-y: auto; }
.cc-pick-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14.5px; color: var(--ink); cursor: pointer; text-align: left; }
.cc-pick-row:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.cc-pick-row svg { width: 16px; height: 16px; color: var(--accent); }
@media (max-width: 1240px) { .cc-tools .cc-link { display: none; } }
@media (max-width: 1100px) { .cc-tools .btn span, .cc-tools .btn { font-size: 0; gap: 0; } .cc-tools .btn svg { width: 16px; height: 16px; } }

/* The conversation's header: past conversations, and the tools */
.cc-chat-h { gap: 10px; }
.cc-convos { position: relative; flex: 1; min-width: 0; }
.cc-convo-btn { display: flex; align-items: center; gap: 10px; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; padding: 4px 8px 4px 2px; border-radius: 12px; max-width: 100%; text-align: left; }
.cc-convo-btn:hover { background: var(--bg); }
.cc-convo-btn > span { display: flex; flex-direction: column; min-width: 0; }
.cc-convo-btn b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-convo-btn small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-convo-btn small b { font-size: inherit; color: var(--ink); }
.cc-convo-btn > svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.cc-convo-menu { left: 0; right: auto; width: min(420px, 90vw); max-height: 70vh; overflow: hidden; display: flex; flex-direction: column; }
.cc-convo-menu[hidden] { display: none; }
.cc-menu-new { display: flex; align-items: center; gap: 8px; border: 0; background: var(--accent-soft); color: var(--accent); font: inherit; font-weight: 600; font-size: 14px; padding: 9px 12px; border-radius: 9px; cursor: pointer; margin-bottom: 4px; }
.cc-menu-new svg, .cc-menu-foot svg { width: 16px; height: 16px; }
.cc-menu-list { overflow-y: auto; display: flex; flex-direction: column; }
.cc-menu-row { display: flex; align-items: center; border-radius: 9px; }
.cc-menu-row:hover, .cc-menu-row.on { background: var(--bg); }
.cc-menu-row a { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 7px 10px; text-decoration: none; color: var(--ink); font-size: 14px; }
.cc-menu-row a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-menu-row small { color: var(--muted); font-size: 12px; }
.cc-menu-del { border: 0; background: none; color: var(--faint); cursor: pointer; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; opacity: 0; }
.cc-menu-row:hover .cc-menu-del { opacity: 1; }
.cc-menu-del:hover { color: var(--err); background: var(--err-soft); }
.cc-menu-del svg { width: 15px; height: 15px; }
.cc-menu-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); margin-top: 4px; padding: 9px 12px 4px; font-size: 13.5px; color: var(--accent); text-decoration: none; }
.cc-menu-note { padding: 10px 12px; color: var(--muted); font-size: 13.5px; }
.cc-tools .btn span { margin-left: 4px; }
.cc-demo-tag { font-size: 11px; font-weight: 700; color: var(--cc-notice); border: 1px solid color-mix(in srgb, var(--cc-notice) 45%, transparent); border-radius: 999px; padding: 0 7px; margin-left: 4px; }

/* The main area: the conversation, or a Huddle conversation */
.cc-main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.cc-main > .cc-thread { flex: 1 1 auto; }
.cc-thread[hidden], .cc-room[hidden] { display: none; }
.cc-room { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.hd.hd-embed { display: flex; flex-direction: column; height: auto; min-height: 0; flex: 1; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: none; grid-template-columns: none; }
.hd.hd-embed .hd-room { flex: 1; min-height: 0; }
.hd.hd-embed .hd-backbtn { display: grid; }
.cc-meet-tag { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.cc-meet-tag svg { width: 12px; height: 12px; }

/* The box: always the same, always here */
.cc-compose { position: relative; flex-wrap: wrap; }
.cc-target { display: flex; gap: 4px; flex-basis: 100%; padding: 2px 4px 4px; }
.cc-target[hidden] { display: none; }
.cc-target button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; cursor: pointer; }
.cc-target button svg { width: 13px; height: 13px; }
.cc-target button.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.cc-to-moon { width: 14px; height: 14px; margin: 0; }
.cc-compose.to-room { border-color: color-mix(in srgb, var(--cc-ok) 50%, var(--line)); }
.cc-compose.to-room .as-send.ready { background: var(--cc-ok); }

/* The side: tabs, Today, and what it's doing now */
.cc-tabs { display: flex; gap: 4px; padding: 3px; margin-bottom: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; flex: none; }
.cc-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; border-radius: 11px; padding: 8px 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.cc-tabs button svg { width: 16px; height: 16px; }
.cc-tabs button.on { background: var(--accent-soft); color: var(--accent); }
.cc-tabs button.pulse { animation: cc-tabpulse 1.2s ease-in-out 3; }
@keyframes cc-tabpulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); } }
.cc-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--err, #C2392D); animation: cc-pulse 1.2s ease-in-out infinite; }
.cc-sec-h { cursor: default; }
.cc-sec[data-sec="upcoming"] .cc-sec-h > svg:first-child { color: var(--accent); }
.cc-sec[data-sec="upcoming"] .cc-count { background: var(--accent); }
.cc-up { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 13.5px; }
a.cc-up:hover { background: var(--bg); }
.cc-up + .cc-up { border-top: 1px solid var(--line); border-radius: 0; }
.cc-up-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--bg); color: var(--muted); }
.cc-up-ic svg { width: 16px; height: 16px; }
.cc-up-ic.message { background: color-mix(in srgb, var(--cc-ok) 14%, transparent); color: var(--cc-ok); }
.cc-up-ic.scheduled { background: var(--accent-soft); color: var(--accent); }
.cc-up-ic.meeting { background: color-mix(in srgb, #7A5AF8 14%, transparent); color: #6440E0; }
.cc-up-ic.update { background: color-mix(in srgb, var(--cc-notice) 14%, transparent); color: var(--cc-notice); }
.cc-up-ic.email { background: color-mix(in srgb, #0B84D9 14%, transparent); color: #0B6FB8; }
button.cc-up { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
button.cc-up:hover, a.cc-up:hover { background: var(--bg); }
.cc-up-txt { min-width: 0; }
.cc-up-txt b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-up-txt .cc-t { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-up-when { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cc-up-when.soon { color: var(--accent); font-weight: 600; }
.cc-context { display: flex; flex-direction: column; gap: 8px; }
.cc-ctx { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--accent); background: var(--accent-soft); font-size: 13.5px; transition: opacity .4s; }
.cc-ctx.out { opacity: 0; }
.cc-ctx > svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.cc-ctx > span { display: flex; flex-direction: column; min-width: 0; }
.cc-ctx small { font-size: 11.5px; color: var(--muted); }
.cc-ctx a { color: var(--accent); }

/* Huddle and meetings in the side */
.cc-pane .hd-embed-side { border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow-y: auto; flex: 1; }
.cc-hdpanel { position: absolute; inset: 52px 0 0 0; z-index: 5; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.cc-hdpanel[hidden] { display: none; }
.mt-embed { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.mt-embed-top { display: flex; gap: 12px; align-items: flex-start; }
.mt-embed-top .mt-orb { width: 46px; height: 46px; margin: 0; flex: none; }
.mt-embed-top b { font-size: 15px; }
.mt-embed-top p { margin: 3px 0 0; }
.mt-embed .mt-go { justify-content: center; }
.mt-embed-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-embed-btns .btn svg, .mt-embed-end .btn svg { width: 14px; height: 14px; }
.mt-embed-h { margin: 4px 0 0; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.mt-embed .mt-heard { max-height: 260px; min-height: 80px; overflow-y: auto; background: var(--bg); border-radius: 12px; padding: 8px 10px; }
.mt-embed-end { display: flex; gap: 6px; justify-content: space-between; flex-wrap: wrap; }
.pulse { animation: cc-tabpulse 1.2s ease-in-out 3; }

/* The demo: choosing a story, and the captions */
.cc-stories { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 4px; }
.cc-story { display: flex; flex-direction: column; gap: 2px; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px 14px; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.cc-story:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.cc-story b { font-size: 15px; }
.cc-story span { font-size: 13.5px; color: var(--muted); }
.cc-tour .cc-tour-next { background: #fff; color: color-mix(in srgb, var(--accent) 90%, #000); border-color: #fff; font-weight: 700; }
.cc-tour .cc-tour-next:hover { background: rgba(255, 255, 255, .9); }
.cc-tour .cc-tour-next:disabled { opacity: .55; cursor: default; }

/* Phones: the conversation or Today, one at a time */
.cc-mtabs { display: none; }
@media (max-width: 860px) {
  .cc { display: flex; flex-direction: column; height: calc(100vh - 140px - env(safe-area-inset-bottom)); }
  .cc-mtabs { display: flex; gap: 4px; padding: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; flex: none; }
  .cc-mtabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; border-radius: 11px; padding: 8px; font: inherit; font-weight: 600; color: var(--muted); }
  .cc-mtabs button svg { width: 16px; height: 16px; }
  .cc-mt-moon { width: 18px; height: 18px; margin: 0; }
  .cc[data-m="chat"] .cc-mtabs [data-m="chat"], .cc[data-m="side"] .cc-mtabs [data-m="side"] { background: var(--accent-soft); color: var(--accent); }
  .cc[data-m="chat"] .cc-side { display: none; }
  .cc[data-m="side"] .cc-chat { display: none; }
  .cc-chat { flex: 1; height: auto; min-height: 0; }
  .cc-side { flex: 1; min-height: 0; }
  .cc-tools .btn span, .cc-convo-btn small { display: none; }
  .cc-hdpanel { inset: 52px 0 0 0; }
}
.cc.demoing .as-tools { display: none; }
/* A video call on Home: its place at the top of the main area (the call itself is laid over it). */
.cc-main.in-call .cc-callslot { flex: 0 0 auto; height: clamp(240px, 46vh, 520px); margin: 6px 10px 8px; border-radius: 14px; background: #12142a; }
.cc-main.in-call > .cc-thread, .cc-main.in-call > .cc-room { flex: 1 1 auto; min-height: 120px; }
.cc-target button[data-to="call"].on { background: color-mix(in srgb, #22c55e 16%, var(--card)); border-color: color-mix(in srgb, #22c55e 50%, var(--line)); color: #166534; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cc-target button[data-to="call"].on { color: #bbf7d0; } }
