/* Hatchcall: the call screen, and the gold mic in the middle of the tab bar (17 Nov 2026) */
.hc-screen {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; flex-direction: column; gap: 12px;
  padding: calc(16px + var(--sat, 0px)) 16px calc(16px + var(--sab, 0px));
  background: var(--bg); color: var(--text);
  opacity: 0; transform: translateY(16px); transition: opacity .2s, transform .2s;
}
.hc-screen.show { opacity: 1; transform: none; }
.hc-top { text-align: center; }
.hc-title { font-size: 20px; font-weight: 800; }
.hc-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.hc-lines { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; }
.hc-line { max-width: 86%; padding: 9px 12px; border-radius: 16px; line-height: 1.35; font-size: 15px; }
.hc-line .hc-who { display: block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: .7; margin-bottom: 2px; }
.hc-line.bot { align-self: flex-start; background: var(--surface-2, #f3e3c0); }
.hc-line.you { align-self: flex-end; background: var(--accent-soft, #fbe7b0); }
.hc-line.partial .hc-text { opacity: .75; }   /* : your words typing out as you speak */
.hc-mid { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hc-ring {
  /*  (Horace: "the phone circle thing in the middle of the screen is real annoying"): a small button that says
     what a tap does now, in place of the big pulsing circle */
  min-width: 132px; height: 42px; padding: 0 20px; border-radius: 21px; border: 0;
  background: #F0B429; color: #1B1A2E; font: inherit; font-size: 15px; font-weight: 800;
}
.hc-ring[hidden] { display: none; }
.hc-design-tiles { display: flex; gap: 8px; overflow-x: auto; margin-top: 8px; padding-bottom: 2px; }
.hc-design-tile {
  flex: none; width: 116px; display: flex; flex-direction: column; gap: 4px; align-items: stretch;
  padding: 6px; border: 1px solid var(--line, rgba(127, 127, 127, .3)); border-radius: 12px;
  background: var(--surface, transparent); color: inherit; font: inherit; font-size: 12px; text-align: center;
}
.hc-design-tile img { width: 100%; height: auto; border-radius: 8px; display: block; }
.hc-line.hc-design { max-width: 100%; }
.hc-word { font-size: 18px; font-weight: 800; }
/* : the ready-to-build bar and Stop and build */
.hc-bar { width: 100%; max-width: 420px; margin-top: 4px; }
.hc-bar[hidden], .hc-build[hidden] { display: none; }
.hc-bar-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.hc-bar-track { height: 8px; border-radius: 4px; background: var(--line, rgba(127, 127, 127, .25)); overflow: hidden; margin: 4px 0; }
.hc-bar-fill { height: 100%; width: 0; background: #F0B429; border-radius: 4px; transition: width .4s; }
.hc-bar.full .hc-bar-fill { background: var(--ok, #2e9d5b); }
.hc-bar-line { font-size: 13px; color: var(--muted); text-align: center; }
.hc-build { background: var(--ok, #2e9d5b); color: #fff; }
.hc-heard { min-height: 20px; color: var(--muted); font-size: 14px; text-align: center; }
.hc-row { display: flex; gap: 8px; align-items: center; }
.hc-row .hc-type { flex: 1 1 auto; }

/* the gold mic: the middle tab of the bar, as in the original app */
.tabbar .tab[data-part="talk"] { color: var(--text); }
.tabbar .tab[data-part="talk"] .tab-ico {
  width: 58px; height: 58px; margin-top: -22px; border-radius: 50%;
  background: #F0B429; color: #1B1A2E; box-shadow: 0 6px 16px rgba(201, 138, 14, .45);
}
.tabbar .tab[data-part="talk"] .tab-ico svg { width: 28px; height: 28px; }
.tabbar .tab[data-part="talk"][aria-selected="true"] .tab-ico { background: #F0B429; color: #1B1A2E; }
.tabbar .tab[data-part="talk"][aria-selected="true"]::before { display: none; }

/* run 21 (18 Nov 2026): talking over Hatch */
.hc-talkover { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 10px; font-size: .9rem; opacity: .85; }
.hc-to-check { width: 20px; height: 20px; }
/* run 20: Hatch's natural voice */
.hc-voice { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.hc-voice[hidden] { display: none; }
.hc-voice .hc-talkover { margin: 0; }
.hc-voice-pick { width: auto; min-width: 0; max-width: 60vw; padding: 6px 10px; font-size: .9rem; }
/* : the voice picker with its label (the Ready card) */
.hc-voice-row { display: inline-flex; align-items: center; gap: 8px; }
/*  (Hatch 1.7.18 round 1, item 3): Hatch's voice in Settings: the picker, Hear it and the switches, left-aligned */
.hc-set-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 0; }
.hc-set-row.hc-talkover { justify-content: flex-start; margin: 8px 0 0; }
.hc-set-row .hc-voice-pick { max-width: 100%; }
.hc-set-row input[type="checkbox"] { width: 20px; height: 20px; }
.hc-hear { flex: none; }
.hc-voice-where { font-size: 13px; }

/* : a spoken turn that has not reached Hatch yet */
.hc-line.unsent { opacity: 0.7; }
.hc-unsent { color: var(--danger, #c0392b); font-weight: 600; }

/*  (Floodgates 1.0.0, Horace: "half the page is taken up with options ... only ... in chat settings ... a cog button"):
   the call is the conversation. Title, End and the cog on one line; a thin bar; the chat; the status and its button; the
   box at the bottom. Talking over Hatch, the voice and End call live behind the cog. */
.hc-screen { gap: 8px; }
.hc-top { display: flex; align-items: center; gap: 8px; text-align: left; }
.hc-top .hc-title { flex: 1 1 auto; font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-cog, .hc-end-top { flex: none; height: 34px; border-radius: 17px; border: 1px solid var(--line, rgba(127, 127, 127, .3));
  background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 700; }
.hc-cog { width: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.hc-cog svg { width: 18px; height: 18px; }
.hc-cog[aria-expanded="true"] { background: var(--surface-2, rgba(127, 127, 127, .15)); }
.hc-end-top { padding: 0 12px; color: var(--danger, #c0392b); }
.hc-settings { flex: none; padding: 10px 12px; border-radius: 14px; background: var(--surface-2, rgba(127, 127, 127, .12)); }
.hc-settings[hidden] { display: none; }
.hc-settings .hc-sub { margin: 0 0 6px; font-size: 13px; }
.hc-settings .hc-talkover, .hc-settings .hc-voice { justify-content: flex-start; margin: 4px 0; font-size: 13px; }
.hc-settings .hc-end { margin-top: 8px; height: 38px; font-size: 14px; }
.hc-screen > .hc-bar { flex: none; max-width: none; margin: 0; }
.hc-screen > .hc-bar .hc-bar-head { font-size: 11px; font-weight: 700; opacity: .8; }
.hc-screen > .hc-bar .hc-bar-track { height: 4px; margin: 2px 0 0; }
.hc-screen > .hc-bar .hc-bar-line { display: none; }
.hc-screen > .hc-heard { flex: none; min-height: 0; font-size: 13px; }
.hc-screen > .hc-build { flex: none; }
.hc-controls { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hc-controls .hc-word { font-size: 14px; font-weight: 700; color: var(--muted); }
.hc-controls .hc-ring { min-width: 0; height: 36px; padding: 0 16px; font-size: 14px; }
.hc-line { position: relative; }
.hc-copy { display: block; margin: 4px 0 0 auto; padding: 0 8px; height: 22px; border: 0; border-radius: 11px; background: transparent;
  color: inherit; opacity: .55; font: inherit; font-size: 11px; font-weight: 700; }
.hc-copy:active { opacity: 1; }
.hc-line.queued { opacity: .65; }
/*  round 1 (item 7): the live call's centre state while it gets ready (the egg, a big word, a line under it) */
.hc-screen[data-voice="live"] .hc-live-centre { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; text-align: center; }
.hc-screen[data-voice="live"] .hc-live-centre[hidden] { display: none; }
.hc-live-egg { width: 88px; height: 88px; border-radius: 22px; animation: hc-live-breathe 2.4s ease-in-out infinite; }
.hc-live-word { font-family: var(--font-display, inherit); font-size: 30px; font-weight: 800; }
.hc-live-sub { font-size: 15px; color: var(--muted); min-height: 1.2em; }
@keyframes hc-live-breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hc-live-egg { animation: none; } }
/*  (Horace: "I dont like it just says thinking down in tiny text in the bottom"): once the talk starts, what Hatch is
   doing sits in a big pill at the bottom, centred, with moving dots while it thinks */
.hc-screen[data-voice="live"] .hc-controls { justify-content: center; padding: 8px 0 4px; }
.hc-screen[data-voice="live"] .hc-controls .hc-word { min-width: 62%; padding: 14px 28px; border-radius: 999px; text-align: center;
  font-family: var(--font-display, inherit); font-size: 24px; font-weight: 800; color: var(--text, inherit);
  background: var(--surface-2, rgba(127, 127, 127, .16)); }
.hc-screen[data-voice="live"] .hc-controls .hc-word:empty { display: none; }
.hc-screen[data-voice="live"][data-phase="thinking"] .hc-controls .hc-word { background: var(--accent, #f0b429); color: var(--on-accent, #1b1a2b);
  animation: hc-live-breathe 1.6s ease-in-out infinite; }
.hc-screen[data-voice="live"][data-phase="thinking"] .hc-controls .hc-word::after { content: ''; display: inline-block; width: 1.2em;
  text-align: left; animation: hc-dots 1.2s steps(4, end) infinite; }
.hc-screen[data-voice="live"][data-phase="listening"] .hc-controls .hc-word { box-shadow: 0 0 0 2px var(--accent, #f0b429) inset; }
@keyframes hc-dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75%, 100% { content: '...'; } }
@media (prefers-reduced-motion: reduce) { .hc-screen[data-voice="live"] .hc-controls .hc-word { animation: none; } }
/*  (Horace: "the line drops everytime I change page"): Back or Hide tucks the call away and it keeps going; a green
   call bar across the top of every page brings it back (tap) or ends it (End), like a phone's own in-call bar */
.hc-hide-top { flex: none; height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--line, rgba(127, 127, 127, .3));
  background: transparent; color: inherit; font-weight: 700; }
.hc-callbar { position: fixed; left: 0; right: 0; top: 0; z-index: 40; display: flex; align-items: center; gap: 8px;
  padding: calc(var(--sat, 0px) + 6px) 10px 6px 14px; background: #1f9d55; color: #fff; }
.hc-callbar[hidden] { display: none; }
.hc-callbar-back { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0;
  border: 0; background: transparent; color: inherit; font-size: 16px; font-weight: 800; text-align: left; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.hc-callbar-word { font-weight: 600; opacity: .9; }
.hc-callbar-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: hc-live-breathe 1.6s ease-in-out infinite; }
.hc-callbar-end { flex: none; height: 34px; padding: 0 16px; border-radius: 17px; border: 0; background: #fff; color: #c0392b; font-weight: 800; }
body.hc-on-call #app { top: calc(var(--sat, 0px) + 52px); }

/*  (1.7.21 round 1): New below (item 1), the three lights (item 8), Mute (item 4), the bar on the live call (item 3),
   the Recorded mark (item 16) */
.hc-newbelow { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 3; padding: 8px 16px;
  border-radius: 999px; border: 0; font-weight: 700; background: var(--accent, #f0b429); color: var(--on-accent, #1b1a2b);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.hc-newbelow[hidden] { display: none; }
.hc-strip { flex: 1; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.hc-light { text-align: center; padding: 12px 4px; border-radius: 12px; font-size: 14px; font-weight: 700;
  background: var(--line, rgba(127, 127, 127, .18)); color: var(--muted); transition: background .2s, color .2s; }
.hc-light.on { background: #2e9d5b; color: #fff; }
.hc-mute { flex: none; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line, rgba(127, 127, 127, .4));
  background: transparent; color: inherit; font-weight: 700; }
.hc-mute[aria-pressed="true"] { background: #c0392b; border-color: #c0392b; color: #fff; }
.hc-screen.muted .hc-light:first-child { text-decoration: line-through; }
.hc-screen[data-voice="live"] .hc-controls { justify-content: stretch; gap: 8px; }
.hc-screen[data-voice="live"] > .hc-bar { padding: 0 2px; }
.hc-recmark { font-size: 11px; font-weight: 700; color: #c0392b; margin-left: auto; margin-right: 8px; }
.hc-recmark::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c0392b;
  margin-right: 4px; vertical-align: 1px; }
.hc-recmark[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .hc-light { transition: none; } }
