/* Huddle: the team chat */
.nav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px; border-radius: 999px; background: var(--err, #C2392D); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
@media (max-width: 720px) {
  .nav a { position: relative; }
  .nav .nav-count { position: absolute; top: 2px; right: 6px; margin: 0; }
}

.page:has(> .hd) { max-width: 1600px; padding-bottom: 0; }
.page:has(> .hd) ~ .foot { display: none; }
.hd { --as-glow: color-mix(in srgb, var(--accent) 55%, #22d3ee); --as-warm: color-mix(in srgb, var(--accent) 50%, #f472b6);
  display: grid; grid-template-columns: 270px minmax(0, 1fr); height: calc(100vh - 84px); min-height: 480px; margin-top: -10px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; box-shadow: var(--shadow); }
.hd.has-panel { grid-template-columns: 270px minmax(0, 1fr) 380px; }

/* Sidebar */
.hd-side { border-right: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 4%, var(--bg)); overflow-y: auto; padding: 14px 10px 18px; display: flex; flex-direction: column; gap: 6px; }
.hd-side-top { padding: 0 4px 6px; }
.hd-side-top h1 { font-size: 19px; margin: 2px 0 10px; }
.hd-search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; }
.hd-search svg { width: 15px; height: 15px; color: var(--faint); flex: none; }
.hd-search input { border: 0; outline: 0; background: none; padding: 8px 0; width: 100%; font: inherit; font-size: 14px; color: var(--ink); box-shadow: none; }
.hd-search:focus-within { border-color: var(--accent-line); }
.hd-sec { display: flex; flex-direction: column; gap: 1px; margin-top: 8px; }
.hd-sec-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.hd-add { border: 0; background: none; color: var(--muted); cursor: pointer; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; }
.hd-add:hover { background: var(--card); color: var(--accent); }
.hd-add svg { width: 15px; height: 15px; }
.hd-link { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 9px; text-decoration: none; color: var(--muted); font-size: 14.5px; border: 0; background: none; cursor: pointer; font-family: inherit; text-align: left; width: 100%; }
.hd-link:hover { background: var(--card); color: var(--ink); }
.hd-link.on { background: var(--accent); color: var(--accent-ink, #fff); }
.hd-link.on .hd-ri { color: inherit; }
.hd-link.unread { color: var(--ink); font-weight: 700; }
.hd-link.on.unread { color: var(--accent-ink, #fff); }
.hd-ln { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-ri { display: grid; place-items: center; width: 22px; height: 22px; color: var(--faint); flex: none; }
.hd-ri svg { width: 16px; height: 16px; }
.hd-ri.big svg { width: 20px; height: 20px; }
.hd-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; background: var(--err, #C2392D); color: #fff; }
.hd-badge { margin-left: auto; flex: none; }
.hd-badge.soft { background: color-mix(in srgb, var(--ink) 14%, transparent); color: var(--ink); }
.hd-browse { font-size: 13.5px; }
.hd-none { padding: 2px 8px 4px; margin: 0; }
.hd-alerts { margin-top: auto; display: flex; align-items: center; gap: 8px; justify-content: center; border: 1px dashed var(--accent-line); background: var(--card); color: var(--accent); border-radius: 10px; padding: 8px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.hd-alerts svg { width: 15px; height: 15px; }

/* Avatars */
.hd-av { position: relative; flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13.5px; letter-spacing: .02em; }
.hd-av.sm { width: 24px; height: 24px; border-radius: 7px; font-size: 10.5px; }
.hd-av.xs { width: 20px; height: 20px; border-radius: 6px; font-size: 9px; }
.hd-av.group { background: var(--muted); }
.hd-av.group svg { width: 14px; height: 14px; }
.hd-dot { position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--faint); }
.hd-av.sm .hd-dot { width: 9px; height: 9px; }
.hd-dot.on { background: #2BAE8C; border-color: var(--card); }
.hd-link.on .hd-dot { border-color: var(--accent); }
.hd-moon { width: 36px; height: 36px; margin: 0; }
.hd-mention .hd-moon, .hd-side .hd-moon { width: 24px; height: 24px; }

/* A conversation */
.hd-room { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.hd-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); min-height: 58px; }
.hd-title { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; flex-wrap: wrap; }
.hd-title h2 { margin: 0; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-topic { border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--muted); cursor: pointer; padding: 2px 6px; border-radius: 6px; max-width: 520px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.hd-topic:not(:disabled):hover { background: var(--bg); color: var(--ink); }
.hd-topic:disabled { cursor: default; }
.hd-head-btns { display: flex; gap: 4px; }
.hd-hbtn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid transparent; background: none; color: var(--muted); padding: 6px 8px; border-radius: 9px; cursor: pointer; font: inherit; font-size: 13px; }
.hd-hbtn:hover { border-color: var(--line); color: var(--ink); background: var(--bg); }
.hd-hbtn svg { width: 17px; height: 17px; }
.hd-backbtn { display: none; color: var(--ink); }
.hd-backbtn svg { width: 22px; height: 22px; }
.hd-scroll { flex: 1; overflow-y: auto; padding: 8px 0 12px; overscroll-behavior: contain; }
.hd-older { text-align: center; padding: 6px; }
.hd-loading { display: grid; place-items: center; flex: 1; }
.hd-welcome { margin: auto; text-align: center; max-width: 420px; padding: 30px; }
.hd-welcome .as-orb { width: 64px; height: 64px; margin: 0 auto 14px; --moon-t: 16s; }
.hd-welcome .as-orb .as-moon b { animation: moon-half var(--moon-t) linear infinite; }
.hd-welcome .as-orb .as-moon u { animation: moon-edge var(--moon-t) linear infinite; }
.hd-first { margin: 18px 20px 10px; padding: 14px 16px; border-radius: 12px; background: var(--bg); color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.hd-day, .hd-new, .hd-rcount { display: flex; align-items: center; gap: 10px; margin: 14px 20px 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.hd-day::before, .hd-day::after, .hd-new::before, .hd-new::after, .hd-rcount::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.hd-day span { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; background: var(--card); }
.hd-new { color: var(--err, #C2392D); }
.hd-new::before, .hd-new::after { background: color-mix(in srgb, var(--err, #C2392D) 45%, transparent); }
.hd-rcount::before { display: none; }

.hd-msg { position: relative; display: flex; gap: 12px; padding: 6px 20px; }
.hd-msg.grouped { padding-top: 1px; padding-bottom: 1px; }
.hd-msg:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.hd-msg.pinned { background: color-mix(in srgb, #E08A2E 8%, transparent); }
.hd-msg.flash { animation: hd-flash 1.6s ease; }
@keyframes hd-flash { 0%, 40% { background: color-mix(in srgb, var(--accent) 18%, transparent); } }
.hd-gutter { width: 36px; flex: none; display: flex; justify-content: center; }
.hd-t { visibility: hidden; font-size: 11px; color: var(--faint); padding-top: 4px; white-space: nowrap; }
.hd-msg:hover .hd-t { visibility: visible; }
.hd-main { flex: 1; min-width: 0; }
.hd-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hd-meta b { font-size: 15px; }
.hd-msg.ai .hd-meta b { color: var(--accent); }
.hd-time { font-size: 12px; color: var(--faint); }
.hd-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: #B5651D; font-weight: 600; }
.hd-tag svg { width: 12px; height: 12px; }
.hd-text { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.hd-text.big { font-size: 34px; line-height: 1.2; }
.hd-text code, .hd-rich code { font-size: 13px; background: var(--bg); border: 1px solid var(--line); padding: 0 4px; border-radius: 5px; }
.hd-text pre { margin: 6px 0; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; font-size: 13px; overflow-x: auto; white-space: pre-wrap; }
.hd-text a, .hd-rich a { color: var(--accent); }
.hd-rich { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.hd-rich > :first-child { margin-top: 0; } .hd-rich > :last-child { margin-bottom: 0; }
.hd-rich p { margin: 0 0 8px; } .hd-rich ul, .hd-rich ol { margin: 4px 0 8px; padding-left: 22px; }
.hd-rich table { border-collapse: collapse; font-size: 13.5px; margin: 6px 0; } .hd-rich td, .hd-rich th { border: 1px solid var(--line); padding: 4px 8px; text-align: left; }
.hd-at { color: var(--accent); background: var(--accent-soft); border-radius: 5px; padding: 0 3px; font-weight: 600; }
.hd-at.me { background: color-mix(in srgb, #E08A2E 22%, transparent); color: #9A5A12; }
.hd-edited { font-size: 12px; color: var(--faint); margin-left: 4px; }
.hd-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.hd-file { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 6px 10px; font-size: 13.5px; max-width: 320px; }
.hd-file svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.hd-file a, .hd-file span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); text-decoration: none; }
.hd-file a:hover { text-decoration: underline; }
.hd-file img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; flex: none; }
.hd-file button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0; display: grid; }
.hd-file button svg { width: 14px; height: 14px; color: inherit; }
.hd-reacts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.hd-reacts:empty { display: none; }
.hd-react { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 2px 9px; cursor: pointer; font: inherit; font-size: 14px; }
.hd-react b { font-size: 12px; color: var(--muted); }
.hd-react.mine { border-color: var(--accent); background: var(--accent-soft); }
.hd-react.mine b { color: var(--accent); }
.hd-react.add { padding: 2px 7px; color: var(--muted); opacity: 0; }
.hd-react.add svg { width: 15px; height: 15px; }
.hd-msg:hover .hd-react.add { opacity: 1; }
.hd-replies { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; border: 1px solid transparent; background: none; border-radius: 9px; padding: 3px 8px 3px 4px; cursor: pointer; font: inherit; font-size: 13px; }
.hd-replies b { color: var(--accent); }
.hd-replies:hover { border-color: var(--line); background: var(--card); }
.hd-tools { position: absolute; top: -14px; right: 18px; display: none; align-items: center; gap: 1px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 2px; box-shadow: var(--shadow); z-index: 3; }
.hd-msg:hover .hd-tools, .hd-tools:focus-within { display: flex; }
.hd-tools > button { border: 0; background: none; cursor: pointer; width: 30px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-size: 15px; color: var(--muted); }
.hd-tools > button:hover { background: var(--bg); color: var(--ink); }
.hd-tools svg { width: 16px; height: 16px; }
.hd-menu { position: absolute; right: 0; top: 34px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 4px; min-width: 210px; display: flex; flex-direction: column; z-index: 5; }
.hd-menu[hidden] { display: none; }
.hd-menu button { display: flex; align-items: center; gap: 9px; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink); text-align: left; }
.hd-menu button:hover { background: var(--bg); }
.hd-menu button svg { width: 15px; height: 15px; color: var(--muted); }
.hd-menu .danger, .danger-text { color: var(--err, #C2392D) !important; }
.hd-editbox { display: flex; flex-direction: column; gap: 6px; margin: 4px 0; }
.hd-editbox textarea { width: 100%; min-height: 0; resize: none; font: inherit; font-size: 15px; border: 1px solid var(--accent-line); border-radius: 10px; padding: 8px 10px; background: var(--card); color: var(--ink); }
.hd-jump { position: absolute; left: 50%; transform: translateX(-50%); bottom: 132px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 7px 14px; background: var(--accent); color: var(--accent-ink, #fff); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); z-index: 4; }
.hd-jump svg { width: 14px; height: 14px; }
.hd-jump[hidden] { display: none; }
.hd-typing { min-height: 22px; padding: 0 22px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.hd-dots { display: inline-flex; gap: 3px; }
.hd-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: hd-bounce 1.2s infinite ease-in-out; }
.hd-dots i:nth-child(2) { animation-delay: .15s; } .hd-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes hd-bounce { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* Writing */
.hd-compose { position: relative; margin: 0 16px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); transition: border-color .15s, box-shadow .15s; }
.hd-compose:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.hd-compose textarea { display: block; width: 100%; border: 0; outline: 0; resize: none; background: none; font: inherit; font-size: 15px; line-height: 1.45; padding: 11px 14px 4px; color: var(--ink); min-height: 0; max-height: 220px; box-shadow: none; }
.hd-attached { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px; }
.hd-attached:not(:empty) { padding-top: 10px; }
.hd-cbar { display: flex; align-items: center; gap: 2px; padding: 4px 6px 6px; }
.hd-cbtn { border: 0; background: none; cursor: pointer; width: 32px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); font: inherit; font-weight: 700; font-size: 16px; }
.hd-cbtn:hover { background: var(--bg); color: var(--ink); }
.hd-cbtn svg { width: 18px; height: 18px; }
.hd-hint { font-size: 11.5px; margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-send { margin-left: auto; border: 0; cursor: pointer; width: 36px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink, #fff); }
.hd-send:disabled { opacity: .5; }
.hd-send svg { width: 17px; height: 17px; }
.hd-attach-menu { position: absolute; left: 6px; bottom: 44px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 4px; display: flex; flex-direction: column; z-index: 6; }
.hd-attach-menu[hidden] { display: none; }
.hd-attach-menu button { display: flex; align-items: center; gap: 9px; border: 0; background: none; padding: 9px 12px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink); white-space: nowrap; }
.hd-attach-menu button:hover { background: var(--bg); }
.hd-attach-menu svg { width: 16px; height: 16px; color: var(--accent); }
.hd-mention { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 4px; z-index: 6; display: flex; flex-direction: column; }
.hd-mention[hidden] { display: none; }
.hd-mention button { display: flex; align-items: center; gap: 9px; border: 0; background: none; padding: 7px 9px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink); text-align: left; }
.hd-mention button .faint { margin-left: auto; font-size: 12px; }
.hd-mention button.on, .hd-mention button:hover { background: var(--accent-soft); }
.hd-join { margin: 0 16px 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--bg); }
.hd-picker { position: fixed; z-index: 80; display: grid; grid-template-columns: repeat(8, 34px); gap: 2px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 34px rgba(0, 0, 0, .18); }
.hd-picker button { border: 0; background: none; cursor: pointer; font-size: 20px; height: 34px; border-radius: 8px; }
.hd-picker button:hover { background: var(--accent-soft); }

/* The side panel: Replies, pins, results */
.hd-panel { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--card); }
.hd-panel[hidden] { display: none; }
.hd-phead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); min-height: 58px; }
.hd-phead h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.hd-phead h3 svg { width: 16px; height: 16px; }
.hd-pscroll { flex: 1; overflow-y: auto; padding: 6px 0; }
.hd-panel .hd-msg { padding-left: 14px; padding-right: 14px; }
.hd-panel .hd-tools { right: 10px; }
.hd-panel .hd-compose, .hd-panel .hd-join { margin: 0 12px 12px; }
.hd-hit { display: block; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); cursor: pointer; padding: 6px 0; }
.hd-hit:hover { background: var(--bg); }
.hd-hit-room { font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 14px 0; }

/* Pickers in dialogs */
.hd-pick { display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.hd-pick-row { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 9px; cursor: pointer; font-size: 14.5px; }
.hd-pick-row:hover { background: var(--bg); }
.hd-pick-row svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.hd-pick-row > input { width: auto; margin: 0; }
.hd-toggle { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin: 4px 0 12px; cursor: pointer; }
.hd-toggle > input { width: auto; margin-top: 3px; }
.hd-toggle svg { width: 16px; height: 16px; margin-top: 2px; color: var(--muted); flex: none; }

/* Phones: one thing at a time (the list, a conversation, or Replies) */
@media (max-width: 860px) {
  .hd, .hd.has-panel { grid-template-columns: 1fr; height: calc(100vh - 150px - env(safe-area-inset-bottom)); margin: -10px -16px 0; border-radius: 0; border-left: 0; border-right: 0; }
  .hd.has-room .hd-side, .hd.no-room .hd-room { display: none; }
  .hd-side { border-right: 0; }
  .hd-backbtn { display: grid; }
  .hd.has-panel .hd-room { display: none; }
  .hd.has-panel .hd-side { display: none; }
  .hd-panel { border-left: 0; }
  .hd-msg { padding: 6px 12px; } .hd-day, .hd-new { margin-left: 12px; margin-right: 12px; }
  .hd-compose, .hd-join { margin: 0 10px 10px; }
  .hd-hint { display: none; }
  .hd-topic { max-width: 100%; flex-basis: 100%; padding-left: 0; }
  .hd-head-btns .hd-hbtn span { display: none; }
  .hd-tools { right: 8px; }
  .hd-jump { bottom: 120px; }
}
@media (max-width: 720px) {
  .hd, .hd.has-panel { height: calc(100vh - 128px - env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .hd-dots i, .hd-msg.flash, .hd-welcome .as-moon b, .hd-welcome .as-moon u { animation: none !important; } }

/* Video calls */
.hd-callbtn.live { color: #fff; background: #2BAE8C; border-color: #2BAE8C; }
.hd-callbtn.live:hover { color: #fff; background: #239877; }
.hd-callnote .hd-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; padding: 4px 0; }
.hd-callic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, #2BAE8C 16%, transparent); color: #1f8a6d; }
.hd-callic svg { width: 18px; height: 18px; }
.hd-joincall { margin-left: 4px; }
.hd-asked { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.hd-asked svg { width: 14px; height: 14px; }
.hd-callbox { --as-glow: color-mix(in srgb, var(--accent) 55%, #22d3ee); position: fixed; inset: 64px 24px 24px; z-index: 60; display: flex; flex-direction: column; background: #12142a; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); }
.hd-callbar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; color: #eef0ff; background: #1a1d38; flex-wrap: wrap; }
.hd-callname { display: inline-flex; align-items: center; gap: 7px; margin-right: 6px; font-size: 14px; }
.hd-callname svg { width: 17px; height: 17px; }
.hd-cb { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: inherit; border-radius: 10px; padding: 5px 11px; cursor: pointer; font: inherit; font-size: 13px; }
.hd-cb:hover { background: rgba(255, 255, 255, .14); }
.hd-cb svg { width: 16px; height: 16px; }
.hd-cb .as-orb { width: 20px; height: 20px; margin: 0; }
.hd-cb.on { border-color: color-mix(in srgb, var(--accent) 70%, #fff); background: color-mix(in srgb, var(--accent) 45%, transparent); }
.hd-cb.on .as-moon b { animation: moon-half 6s linear infinite; } .hd-cb.on .as-moon u { animation: moon-edge 6s linear infinite; }
.hd-cb.icon { padding: 5px 7px; }
.hd-cb.leave { background: #C2392D; border-color: #C2392D; font-weight: 600; }
.hd-cb.leave:hover { background: #a92f24; }
.hd-cbgrow { flex: 1; }
.hd-callframe { flex: 1; min-height: 0; background: #0b0d1f; }
.hd-callcap { padding: 7px 14px; font-size: 13px; line-height: 1.5; color: #c9cdf0; background: #1a1d38; min-height: 32px; }
.hd-callcap .hd-dots { margin-right: 6px; vertical-align: middle; }
.hd-callcap b { color: #fff; }
.hd-callbox.min { inset: auto 20px 20px auto; width: 380px; height: 300px; }
.hd-callbox.min .hd-cb .lbl, .hd-callbox.min .hd-callname b { display: none; }
.hd-callbox.min .hd-callcap { font-size: 12px; }
@media (max-width: 720px) {
  .hd-callbox { inset: 0 0 calc(64px + env(safe-area-inset-bottom)) 0; border-radius: 0; }
  .hd-cb .lbl { display: none; }
  .hd-callbox.min { inset: auto 10px calc(74px + env(safe-area-inset-bottom)) auto; width: 220px; height: 200px; border-radius: 14px; }
}
/* The call on Home: in its place above the conversation (the assistant box stays below), with what the assistant
   shows beside the video. */
.hd-callbox.docked { inset: auto; border-radius: 14px; z-index: 30; box-shadow: 0 6px 24px rgba(10, 12, 40, .25); }
.hd-callbody { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.hd-callbody .hd-callframe { min-height: 0; }
.hd-callshow { display: flex; flex-direction: column; min-height: 0; background: #161935; color: #e7e9ff; border-left: 1px solid rgba(255, 255, 255, .08); }
.hd-showhead { display: flex; align-items: center; gap: 8px; padding: 10px 12px 6px; font-size: 13px; flex-wrap: wrap; }
.hd-showhead .faint { color: #a3a8d6; font-size: 11.5px; width: 100%; }
.hd-showhead .as-moon, .hd-showhead svg { width: 20px; height: 20px; }
.hd-showbody { flex: 1; overflow: auto; padding: 4px 14px 14px; font-size: 14.5px; line-height: 1.55; }
.hd-showempty { color: #a3a8d6; font-size: 13px; }
.hd-showq { color: #c9cdf0; font-size: 13px; margin-bottom: 8px; }
.hd-showa table { border-collapse: collapse; width: 100%; margin: 6px 0; font-size: 13.5px; }
.hd-showa th, .hd-showa td { border-bottom: 1px solid rgba(255, 255, 255, .12); padding: 5px 6px; text-align: left; }
.hd-showa a { color: #b9c2ff; }
.hd-callbox.showing .hd-callshow { box-shadow: inset 3px 0 0 var(--as-glow); }
.hd-cb.hd-cb-ai { background: color-mix(in srgb, var(--accent) 35%, transparent); font-weight: 600; }
.hd-cb.hd-cb-ai.on { background: color-mix(in srgb, #22c55e 30%, transparent); }
.hd-callbox.min .hd-callshow { display: none; }
.hd-callbox.min .hd-callbody { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .hd-callbody { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(90px, 34%); }
  .hd-callshow { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
}
.hd-showa.rich table, .hd-showa.rich th, .hd-showa.rich td { background: transparent; color: inherit; border-color: rgba(255, 255, 255, .14); }
.hd-showa.rich th { color: #fff; background: rgba(255, 255, 255, .07); font-weight: 600; }
/* Something a teammate sent: a card to open it. */
.hd-share { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 12px; max-width: 440px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-decoration: none; color: var(--ink); }
.hd-share:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.hd-share-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.hd-share-ic svg { width: 18px; height: 18px; }
.hd-share b { display: block; font-size: 14px; }
.hd-share small { color: var(--muted); font-size: 12px; }
.hd-share > span:nth-child(2) { flex: 1; min-width: 0; }
.hd-share-go { font-size: 12.5px; font-weight: 600; color: var(--accent); }
/* An email sent to the conversation's own address. */
.hd-mailed { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 2px 0 4px; font-size: 12.5px; color: var(--muted); }
.hd-mailed svg { width: 15px; height: 15px; flex: none; color: var(--accent); }
.hd-mailed b { flex-basis: 100%; font-size: 14.5px; color: var(--ink); }
.hd-mailnote { margin-top: 4px; }
.hd-mailrow { display: flex; align-items: center; gap: 10px; }
.hd-mailaddr { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg, transparent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.phone .hd-mailrow { flex-direction: column; align-items: stretch; }
/* Files dragged over the message box. */
.hd-compose.drop { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* What the assistant prepared, under its answer: the person who asked confirms it */
.hd-acts { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-width: 560px; }
.hd-act { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.hd-act.pending { border-color: var(--accent); }
.hd-act-what { display: flex; align-items: flex-start; gap: 8px; min-width: 0; flex: 1 1 240px; }
.hd-act-what svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.hd-act.done .hd-act-what svg { color: var(--good, #1a7f37); }
.hd-act-what span { overflow-wrap: anywhere; }
.hd-act-btns { display: flex; gap: 6px; flex: none; }

/* Feedback (from the feedback tool): what page it's about, and its screenshots and recordings shown large */
.hd-fb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0 4px; font-size: 13px; color: var(--accent); }
.hd-fb > svg { width: 16px; height: 16px; flex: none; }
.hd-fb b { color: var(--accent); }
.hd-fb a { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: var(--muted); text-decoration: none; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; }
.hd-fb a:hover { color: var(--accent); border-color: var(--accent-line); }
.hd-fb a svg { width: 13px; height: 13px; flex: none; }
.hd-fb a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-media { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.hd-media img, .hd-media video { display: block; max-width: min(100%, 480px); max-height: 320px; border-radius: 10px; border: 1px solid var(--line); background: #0c0f16; }
.hd-media a { display: block; max-width: 100%; }
.hd-media img { object-fit: contain; cursor: zoom-in; }
