:root { --fg: #111; --bg: #fafafa; --accent: #0040a0; --bad: #b00020;
        --panel: #fff; }
* { box-sizing: border-box; }
body { font: 15px/1.4 system-ui, sans-serif; color: var(--fg);
       background: var(--bg); margin: 0; padding: 1rem; max-width: 52rem; }
header { border-bottom: 1px solid #ccc; padding-bottom: .5rem; margin-bottom: 1rem; }
h1 { font-size: 1.4rem; margin: 0 0 .5rem; }
.view { display: none; }
.view.active { display: block; }
.row { display: flex; gap: .5rem; margin: .5rem 0; }
textarea { flex: 1; font-family: inherit; }
ul { list-style: none; padding: 0; }
ul li { padding: .4rem; border-bottom: 1px solid #eee; cursor: pointer; }
ul li.ok  { color: #060; }
ul li.down { color: var(--bad); }
pre { background: #111; color: #eee; padding: .75rem; overflow: auto; }
.seam { font-size: .85em; color: #666; font-style: italic; }
/* Chat thread — floating identity overlay (notes #108/#109): the
   messages run the full height of the screen; her portrait + name float
   centered over the top, Muse-style. Portrait size is his setting
   (small/medium/large, note #109); she shrinks gently only when he
   scrolls away from the live end up into history. */
#view-messages { position: relative; }
#chat-head { position: absolute; top: .35rem; left: 50%;
             transform: translateX(-50%); z-index: 5;
             display: flex; flex-direction: column; align-items: center;
             gap: .1rem; pointer-events: none; text-align: center; }
#chat-avatar { border-radius: 50%; object-fit: cover;
               box-shadow: 0 2px 10px rgba(0,0,0,.18);
               transition: width .18s ease, height .18s ease; }
#chat-head[data-size="small"] #chat-avatar { width: 44px; height: 44px; }
#chat-head[data-size="medium"] #chat-avatar { width: 64px; height: 64px; }
#chat-head[data-size="large"] #chat-avatar { width: 92px; height: 92px; }
#chat-name { font-weight: 600; font-size: 1rem;
             background: rgba(255,255,255,.88); backdrop-filter: blur(6px);
             border-radius: 1rem; padding: .1rem .7rem;
             box-shadow: 0 1px 6px rgba(0,0,0,.10); }
#chat-status { font-size: .75rem; color: #2a7d2a;
               background: rgba(255,255,255,.75); backdrop-filter: blur(6px);
               border-radius: 1rem; padding: 0 .6rem; }
#chat-head.mini #chat-avatar { width: 34px; height: 34px; }
#chat-head.mini #chat-status { display: none; }
#chat-head.mini #chat-name { font-size: .85rem; }
#portrait-size-row { display: flex; gap: .5rem; }
#portrait-size-row button.current { background: var(--accent); color: #fff; }
#chat-log { display: flex; flex-direction: column; gap: .45rem;
            padding: 8.5rem .2rem .8rem; min-height: 40vh; }
.bubble { max-width: 78%; padding: .55rem .8rem; border-radius: 1.1rem;
          white-space: pre-wrap; word-wrap: break-word; }
.bubble.user { align-self: flex-end; background: var(--accent); color: #fff;
               border-bottom-right-radius: .3rem; }
.bubble.assistant { align-self: flex-start; background: #e9e9ee; color: #111;
                    border-bottom-left-radius: .3rem; }
.bubble.typing { align-self: flex-start; background: #e9e9ee; color: #777;
                 font-style: italic; }
#chat-compose textarea { border-radius: 1rem; padding: .6rem .8rem; }
#chat-compose button { border-radius: 1rem; padding: .4rem 1.1rem; }
/* App-shell layout (Nov 17 2026, Master's edits): the page itself never
   scrolls or zooms — only the chat log scrolls, pinned to the newest
   bubble like iMessage / the Muse app. One up-down action, nothing else. */
html, body { height: 100%; }
body { display: flex; flex-direction: column; height: 100dvh;
       overscroll-behavior: none; touch-action: manipulation; }
header { flex: 0 0 auto; }
main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
       overflow: hidden; }
/* Scroll fix (Nov 17 2026): exactly ONE scroller per view. The outer
   container used to be scrollable too, and iOS would hand the first
   touch-drag to that outer layer — the chat felt locked to the outside
   until a few taps woke the inner list. Now main never scrolls: the
   chat log scrolls inside Messages, and every other view scrolls
   itself. */
.view.active:not(#view-messages) { flex: 1 1 auto; min-height: 0;
       overflow-y: auto; -webkit-overflow-scrolling: touch;
       touch-action: pan-y; overscroll-behavior: contain; }
#view-messages.active { display: flex; flex-direction: column;
                        flex: 1 1 auto; min-height: 0; }
#chat-head { flex: 0 0 auto; }
#chat-log { flex: 1 1 auto; min-height: 0; overflow-y: auto;
            -webkit-overflow-scrolling: touch; touch-action: pan-y;
            overscroll-behavior: contain; }
#chat-compose { flex: 0 0 auto; }
#chat-compose textarea { font-size: 16px; } /* under 16px, iOS zooms on focus */
/* Attachments (Nov 17 2026) */
#attach-btn { border-radius: 50%; width: 2.6rem; height: 2.6rem; flex: 0 0 auto;
              font-size: 1.15rem; align-self: flex-end; }
/* Icon centering (Nov 17 2026): the generic compose-button padding
   (.4rem 1.1rem) was shoving the glyphs off-center inside the round
   buttons, and emoji sit on the text baseline (look low) without
   flex centering + line-height 1. */
#attach-btn, #mic-btn { padding: 0; display: inline-flex;
                        align-items: center; justify-content: center;
                        line-height: 1; }
#attach-chip { flex: 0 0 auto; display: flex; align-items: center; gap: .5rem;
               background: #eef3fb; border: 1px solid #c9d8f2; color: #123;
               border-radius: .8rem; padding: .35rem .6rem; margin-top: .4rem;
               font-size: .9rem; }
#attach-chip[hidden] { display: none; }
#attach-clear { margin-left: auto; }
.bubble img, .bubble video { max-width: 100%; border-radius: .8rem; display: block; }
/* Reserve space so a late image load cannot reflow the thread
   and strand the reader mid-history (scroll fix, Nov 17 2026). */
.bubble img { min-height: 9rem; background: #dfe5ec; }
.bubble .filechip { font-weight: 600; }
.bubble .voicechip { display: inline-flex; align-items: center; gap: .5rem;
                     font-weight: 600; }
.bubble .voicechip button { border-radius: 50%; width: 2rem; height: 2rem;
                            border: 1px solid #c9d8f2; background: #eef3fb;
                            font-size: .8rem; line-height: 1; padding: 0; }
#mic-btn { border-radius: 50%; width: 2.6rem; height: 2.6rem; flex: 0 0 auto;
           font-size: 1.15rem; align-self: flex-end; }
/* The file input keeps a real frame at the bottom of the screen (invisible):
   iOS anchors its Photo Library / Files sheet to the input's frame, and a
   display:none input leaves the sheet floating mid-screen. */
#attach-input { position: fixed; left: .4rem; bottom: .4rem; width: 2.6rem;
                height: 2.6rem; opacity: 0; pointer-events: none; z-index: 1; }
.voice-row { display: flex; align-items: center; gap: .6rem; padding: .45rem 0;
             border-bottom: 1px solid #eee; }
.voice-row .vname { flex: 1; font-weight: 600; }
.voice-row button { border-radius: 1rem; padding: .35rem .8rem; }
.voice-row.active .vname::after { content: " · hers"; color: #0a7d2c; font-weight: 400; }
.hint { color: #666; font-size: .9rem; margin: .2rem 0 .6rem; }
#avatar-holder { width: 100%; height: 62dvh; border-radius: 1rem;
                 background: linear-gradient(180deg, #eef3fb, #dbe6f5);
                 overflow: hidden; }
#avatar-holder canvas { display: block; width: 100%; height: 100%; }
#photo-stage { display: block; width: 100%; height: 62dvh;
  border-radius: 1rem; background: #10151d; }
#call-mode-row { display: flex; gap: 0.6rem; margin: 0.6rem 0 0.2rem; }
#call-mode-row button { flex: 1; }
#call-mode-row button.active { background: #2f6fd0; color: #fff;
  border-color: #2f6fd0; }
/* ---- Voice bars button (note #111): her voice, not a speaker ------- */
.speak-btn { display: flex; align-items: center; justify-content: center;
             width: 2.1rem; height: 2.1rem; margin: .5rem -.1rem -.15rem auto;
             padding: 0; border-radius: 50%; border: none; cursor: pointer;
             background: rgba(11, 95, 255, .10); color: #0b5fff;
             -webkit-tap-highlight-color: transparent; }
.speak-btn svg { width: 1.15rem; height: 1.15rem; display: block; }
.speak-btn svg rect { fill: currentColor; transform-box: fill-box;
                      transform-origin: center; }
.speak-btn:active { background: rgba(11, 95, 255, .22); }
.speak-btn.loading { animation: j2pulse 1s ease-in-out infinite; }
.speak-btn.playing { background: rgba(11, 95, 255, .20); }
.speak-btn.playing svg rect { animation: j2eq .9s ease-in-out infinite; }
.speak-btn.playing svg rect:nth-child(2) { animation-delay: .15s; }
.speak-btn.playing svg rect:nth-child(3) { animation-delay: .3s; }
.speak-btn.playing svg rect:nth-child(4) { animation-delay: .45s; }
.speak-btn.playing svg rect:nth-child(5) { animation-delay: .6s; }
@keyframes j2eq { 0%, 100% { transform: scaleY(.35); }
                  50% { transform: scaleY(1); } }
@keyframes j2pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
#kill-go { background: var(--bad); color: #fff; font-size: 1.4rem; padding: .75rem 1.4rem; }

/* ---- Bottom tab bar (front-end upgrade) ------------------------------ */
nav#tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
             display: flex; width: 100%; background: var(--panel);
             border-top: 1px solid #ccc; padding-bottom: env(safe-area-inset-bottom); }
nav#tabbar button { flex: 1; display: flex; flex-direction: column;
                    align-items: center; justify-content: center;
                    gap: 2px; padding: .45rem .2rem; border: none;
                    background: transparent; color: #666; cursor: pointer; }
nav#tabbar button.active { color: var(--accent); }
nav#tabbar svg { width: 22px; height: 22px; }
nav#tabbar .tab-label { font-size: 10px; line-height: 1; }
/* main leaves room for the bar so content clears it */
main { padding-bottom: calc(3.4rem + env(safe-area-inset-bottom)); }
/* Also lift the invisible attach-input above the tabbar so the OS picker
   sheet still anchors sensibly. */
#attach-input { bottom: calc(.4rem + env(safe-area-inset-bottom)); }

/* ---- Thread drawer (note #109: hamburger top-left, slide-over) ----- */
#drawer-btn { position: absolute; top: .5rem; left: .6rem; z-index: 6;
              width: 2.5rem; height: 2.5rem; border-radius: 50%;
              border: 1px solid #ddd; background: rgba(255,255,255,.92);
              backdrop-filter: blur(6px); font-size: 1.15rem; line-height: 1;
              box-shadow: 0 1px 6px rgba(0,0,0,.10); }
#thread-panel { position: absolute; top: 0; left: 0; bottom: 0; z-index: 8;
                width: min(78vw, 300px); background: var(--panel);
                border-right: 1px solid #ddd;
                box-shadow: 8px 0 24px rgba(0,0,0,.15);
                display: flex; flex-direction: column; }
#thread-panel[hidden] { display: none; }
#drawer-head { display: flex; align-items: flex-start;
               justify-content: space-between;
               padding: .8rem .8rem .5rem; font-weight: 700; }
#drawer-current { display: block; font-weight: 400; font-size: .8rem;
                  color: #666; }
#thread-new { border-radius: .6rem; padding: .35rem .7rem; }
#thread-list { flex: 1 1 auto; overflow-y: auto; list-style: none;
               margin: 0; padding: 0 .4rem .6rem;
               -webkit-overflow-scrolling: touch; touch-action: pan-y;
               overscroll-behavior: contain; }
#thread-list li { padding: .6rem .5rem; cursor: pointer;
                  border-radius: .5rem; border-bottom: 1px solid #eee; }
#thread-list li:last-child { border-bottom: none; }
#thread-list li.current { font-weight: 600; color: var(--accent); }
#thread-list li.archived { color: #999; }

/* ---- Files view ----------------------------------------------------- */
#files-grid { display: grid; gap: .4rem;
              grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
              margin: .4rem 0 .8rem; }
#files-grid .file-card { position: relative; aspect-ratio: 1 / 1;
                         border-radius: .5rem; overflow: hidden;
                         background: #eee; cursor: pointer; }
#files-grid .file-card img,
#files-grid .file-card video { width: 100%; height: 100%;
                               object-fit: cover; display: block; }
#files-grid .file-card .file-chip,
#files-list .file-row .file-chip { font-size: .7rem; background: rgba(0,0,0,.55);
                                   color: #fff; border-radius: .4rem;
                                   padding: 1px .35rem; }
#files-grid .file-card .file-chip { position: absolute; left: 3px; bottom: 3px;
                                    max-width: calc(100% - 6px);
                                    overflow: hidden; text-overflow: ellipsis;
                                    white-space: nowrap; }
#files-list .file-row { display: flex; align-items: center; gap: .5rem;
                        padding: .5rem .3rem; border-bottom: 1px solid #eee;
                        cursor: pointer; }
#files-list .file-row .fname { flex: 1; overflow: hidden;
                               text-overflow: ellipsis; white-space: nowrap; }
#files-list .file-row .fdate { font-size: .8rem; color: #666; }
.files-empty { color: #666; font-style: italic; padding: 1rem .2rem; }

/* ---- Call bar (note #110) -------------------------------------------- */
#call-bar { text-align: center; padding: .5rem 0 .2rem; }
#call-status { font-weight: 600; margin-bottom: .45rem; }
#call-btns { justify-content: center; }
#call-main, #call-talk, #call-end { font-size: 1.02rem;
  padding: .55rem 1.05rem; border-radius: 2rem; }
#call-talk.recording { background: #c0392b; color: #fff; }

/* ---- Thread rows: pin + rename (note #109) ---------------------------- */
#thread-list li { display: flex; align-items: center; gap: .35rem; }
#thread-list li .t-title { flex: 1 1 auto; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
#thread-list li.header { font-weight: 700; font-size: .78rem; color: #666;
  cursor: default; border-bottom: none; padding-bottom: .05rem; }
.t-act { border: none; background: transparent; font-size: .95rem;
  padding: .2rem .35rem; cursor: pointer; flex: 0 0 auto; }
.t-act.off { opacity: .3; }

/* ---- Lightbox: in-app file viewer (never navigates away) ------------- */
#lightbox { position: fixed; inset: 0; z-index: 60;
  background: rgba(8, 10, 14, .94); display: flex;
  align-items: center; justify-content: center; }
#lightbox[hidden] { display: none; }
#lightbox-body { max-width: 100%; max-height: 100%; display: flex;
  align-items: center; justify-content: center;
  padding: 3.2rem .6rem 2.6rem; }
#lightbox-body img, #lightbox-body video { max-width: 100%;
  max-height: calc(100dvh - 6rem); object-fit: contain; border-radius: .4rem; }
#lightbox-close { position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + .7rem); right: .8rem;
  width: 2.9rem; height: 2.9rem; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.25rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  z-index: 2; -webkit-tap-highlight-color: transparent; }
#lightbox-caption { position: absolute; left: 0; right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + .8rem); text-align: center;
  color: rgba(255, 255, 255, .85); font-size: .85rem; padding: 0 1rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-file { color: #fff; text-align: center; }
.lb-download { margin-top: 1rem; padding: .7rem 1.3rem; border: none;
  border-radius: .8rem; background: #0b5fff; color: #fff; font-size: 1rem;
  cursor: pointer; }
body.lb-open { overflow: hidden; }

/* Dictation feedback (note #112): live voice bars while he talks,
   a shimmer while her ears turn it into text. */
#wave-strip { display: flex; align-items: center; gap: .6rem;
  padding: .45rem .8rem; margin: 0 .6rem; }
#wave-strip[hidden] { display: none; }
#wave-bars { display: flex; align-items: center; gap: 2px;
  height: 26px; flex: 0 0 auto; }
#wave-bars i { display: block; width: 3px; min-height: 12%;
  border-radius: 2px; background: #0b5fff; transition: height .07s linear; }
#wave-strip.transcribing #wave-bars i { animation: j2shimmer 1s
  ease-in-out infinite; }
#wave-strip.transcribing #wave-bars i:nth-child(3n) { animation-delay: .15s; }
#wave-strip.transcribing #wave-bars i:nth-child(4n) { animation-delay: .3s; }
#wave-strip.transcribing #wave-bars i:nth-child(5n) { animation-delay: .45s; }
@keyframes j2shimmer { 0%,100% { height: 18%; } 50% { height: 78%; } }
#wave-label { font-size: .85rem; opacity: .85; }
#mic-btn.recording { background: #d92c2c; color: #fff;
  animation: j2pulse 1.2s ease-in-out infinite; }
/* The compose box grows as he types (JS sets the height). */
#compose-body { overflow-y: auto; resize: none; line-height: 1.35; }
/* Failure toast: a silent failure is a bug, not an answer. */
#toast { position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(5.2rem + env(safe-area-inset-bottom)); z-index: 90;
  max-width: min(92vw, 30rem); background: rgba(20,20,24,.94);
  color: #fff; padding: .65rem 1rem; border-radius: .9rem;
  font-size: .9rem; text-align: center; }
#toast[hidden] { display: none; }

/* ---- Full-bleed Messages (Nov 17 2026, Master's Muse-style layout):
   the message list runs the whole screen, top edge to bottom edge.
   Scrolling messages pass UNDER the Dynamic Island / status area and
   fade through a frosted blur strip, so the clock, battery and signal
   stay readable over them. The compose row and the tab bar FLOAT over
   the list as translucent cards; nothing stacks, nothing reserves a
   white band. Requires the black-translucent status-bar meta (the
   opaque default style is what painted the white bar). */
body { padding: 0; }
.view:not(#view-messages) { padding: 1rem; }
main { padding-bottom: 0; }
.view.active:not(#view-messages) {
  padding-bottom: calc(4.8rem + env(safe-area-inset-bottom)); }
#view-messages::before { content: ""; position: absolute; top: 0;
  left: 0; right: 0; z-index: 4; pointer-events: none;
  height: calc(env(safe-area-inset-top) + 3.6rem);
  background: linear-gradient(rgba(250,250,250,.66),
                              rgba(250,250,250,0));
  -webkit-backdrop-filter: blur(9px) saturate(1.5);
  backdrop-filter: blur(9px) saturate(1.5);
  -webkit-mask-image: linear-gradient(black 52%, transparent);
  mask-image: linear-gradient(black 52%, transparent); }
#chat-head { top: calc(env(safe-area-inset-top) + .25rem); }
#drawer-btn { top: calc(env(safe-area-inset-top) + .4rem); }
#drawer-head { padding-top: calc(env(safe-area-inset-top) + .7rem); }
#chat-log { padding-top: calc(env(safe-area-inset-top) + 8.5rem);
            padding-bottom: 9.4rem; }
#compose-dock { position: absolute; left: .6rem; right: .6rem;
  bottom: 4.45rem; z-index: 6; display: flex; flex-direction: column;
  gap: .4rem; }
#compose-dock #attach-chip { margin-top: 0;
  background: rgba(238,243,251,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0,0,0,.10); }
#compose-dock #wave-strip { margin: 0; border-radius: .9rem;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0,0,0,.10); }
#chat-compose { margin: 0; align-items: flex-end;
  background: rgba(255,255,255,.93);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(0,0,0,.07); border-radius: 1.6rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.15); padding: .35rem .45rem; }
#chat-compose textarea { border: none; background: transparent;
  outline: none; border-radius: 1.1rem; }
nav#tabbar { left: .6rem; right: .6rem; bottom: .55rem; width: auto;
  border: 1px solid rgba(0,0,0,.06); border-radius: 1.5rem;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 8px 28px rgba(0,0,0,.15);
  padding-bottom: 0; overflow: hidden; }
#attach-input { bottom: 4.9rem; left: .7rem; }
#toast { bottom: calc(8.9rem + env(safe-area-inset-bottom)); }
#job-pill { position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(9.6rem + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: .6rem;
  background: rgba(30,34,44,.92); color: #f2f5f9;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 2rem; padding: .45rem .5rem .45rem .9rem;
  font-size: .85rem; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  max-width: calc(100vw - 2rem); white-space: nowrap; }
#job-pill[hidden] { display: none; }
#job-pill button { border: none; border-radius: 2rem; cursor: pointer;
  background: #e4572e; color: #fff; font-size: .8rem; font-weight: 600;
  padding: .35rem .8rem; }
#job-pill button:disabled { background: #8a8f98; }

/* Packet 17 (5B): tapbacks, share chips, filmstrips, her files */
.bubble { position: relative; }
.tapback { position: absolute; right: 6px; bottom: -10px;
  background: var(--card, #fff); border: 1px solid rgba(0,0,0,.15);
  border-radius: 999px; padding: 0 6px; font-size: 14px;
  line-height: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.reaction-bar { position: fixed; z-index: 60; display: flex; gap: 2px;
  background: var(--card, #fff); border: 1px solid rgba(0,0,0,.15);
  border-radius: 999px; padding: 4px 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.reaction-bar button { background: none; border: none; font-size: 20px;
  padding: 2px 4px; border-radius: 999px; }
.reaction-bar button.on { background: rgba(0,0,0,.1); }
.share-chip { margin: 4px 0 0 6px; padding: 3px 10px; font-size: 13px;
  border-radius: 999px; border: 1px solid rgba(0,0,0,.2);
  background: var(--card, #fff); }
.filmstrip { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.filmstrip img { width: 72px; height: 54px; object-fit: cover;
  border-radius: 6px; }
.herfile-chiprow { display: flex; align-items: center; gap: 6px;
  margin-top: 6px; font-size: 14px; }
#attach-sticker { border-radius: 999px; padding: 2px 10px;
  border: 1px solid rgba(0,0,0,.25); background: transparent; }
#attach-sticker.on { background: #ffd54d; }

/* Packet 19 (Step 8): browser mirror */
#mirror-bar { padding: 6px 2px; }
#mirror-title { font-weight: 600; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
#mirror-url { color: var(--hatch-widget-muted, #888);
  font-size: 12px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
#mirror-stage { background: #111; border-radius: 10px;
  min-height: 220px; display: flex; align-items: center;
  justify-content: center; overflow: hidden; }
#mirror-frame { max-width: 100%; display: none; }
#mirror-empty { color: #bbb; padding: 24px; text-align: center; }
#mirror-controls { display: flex; gap: 8px; margin-top: 10px; }
#mirror-dialog { margin-top: 10px; padding: 10px;
  border: 1px solid var(--hatch-widget-border, #ccc);
  border-radius: 10px; }
#mirror-dialog-msg { margin-bottom: 8px; }
#end-browser-pill { position: fixed; right: 12px; bottom: 76px;
  z-index: 60; padding: 8px 14px; border-radius: 999px;
  background: #b3261e; color: #fff; border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.35); }

/* Packet 20 (Step 9): take control */
#control-bar { margin-top: 10px; padding: 10px;
  border: 1px solid var(--hatch-widget-border, #ccc);
  border-radius: 10px; }
#control-status { margin-bottom: 8px; }
#control-buttons { display: flex; gap: 8px; }
#control-type-row { display: flex; gap: 8px; margin-top: 8px; }
#control-type-text { flex: 1; min-width: 0; }
#mirror-cookies { margin-top: 8px; font-size: 12px;
  color: var(--hatch-widget-muted, #888); }
#mirror-clear-cookies { margin-top: 6px; }
