/* FloorTalk PREVIEW — Voice Assistant. Tokens per /workspace/company/PREMIUM_DARK_UI.md (near-black, one teal accent). */
.asst-home { display: flex; gap: 10px; align-items: stretch; margin: 4px 0 14px; }
.asst-home-mic { flex: 1; display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 16px; text-align: left;
  background: var(--surface, #18181b); border: 1px solid var(--accent, #2dd4bf); border-radius: 16px; color: var(--text, #fafafa); }
.asst-home-mic:active { transform: scale(.99); }
.asst-home-mic:focus-visible, .asst-home-notes:focus-visible, .asst-mic:focus-visible { outline: 2px solid var(--accent, #2dd4bf); outline-offset: 2px; }
/* Energy-core orb (assistant-orb.js draws the canvas; the canvas is larger than its slot so the bloom can spill). */
.asst-home-ico { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; position: relative; display: grid; place-items: center; }
.asst-home-ico .asst-orb-cv { position: absolute; left: -12px; top: -12px; width: 80px; height: 80px; pointer-events: none; }
.asst-orb-fallback { display: none; }
.no-orb .asst-orb-cv { display: none; }
.no-orb .asst-orb-fallback { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: var(--accent, #2dd4bf); color: var(--text-on-accent, #042f2e); }
.asst-home-ico .asst-orb-fallback svg { width: 24px; height: 24px; }
.asst-home-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.asst-home-text strong { font-size: 16px; }
.asst-home-text span { font-size: 13px; color: var(--muted, #a1a1aa); }
.asst-home-notes { flex: 0 0 auto; max-width: 34%; padding: 8px 12px; border-radius: 16px; font-size: 13px; line-height: 1.25;
  background: var(--surface, #18181b); border: 1px solid var(--border, #27272a); color: var(--text-subtle, #d4d4d8); }
@media (max-width: 380px) { .asst-home { flex-direction: column; } .asst-home-notes { max-width: none; min-height: 44px; } }

body.asst-open { overflow: hidden; }
.asst-sheet { position: fixed; inset: 0; z-index: 1250; background: rgb(0 0 0 / 62%); display: flex; align-items: flex-end; justify-content: center; }
.asst-sheet.hidden { display: none; }
.asst-card { width: 100%; max-width: 640px; height: min(92vh, 860px); display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg, #0a0a0b); border: 1px solid var(--border, #27272a); border-radius: 16px 16px 0 0; box-shadow: 0 16px 40px rgb(0 0 0 / 35%); }
@media (min-width: 700px) { .asst-sheet { align-items: center; padding: 24px; } .asst-card { border-radius: 16px; height: min(86vh, 860px); } }
.asst-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px 16px; border-bottom: 1px solid var(--border, #27272a); background: var(--surface, #18181b); }
.asst-head-text { flex: 1; min-width: 0; }
.asst-head h3 { margin: 0; font-size: 18px; }
.asst-sub { margin: 2px 0 0; font-size: 12px; color: var(--muted, #a1a1aa); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: none; }
.asst-head-btns { display: flex; gap: 4px; }
.asst-icon-btn { min-width: 44px; min-height: 44px; border-radius: 12px; color: var(--text-subtle, #d4d4d8); font-size: 18px; }
.asst-icon-btn:hover { background: var(--surface-raised, #1f1f23); }
.asst-view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.asst-view.hidden { display: none; }
.asst-log { flex: 1; overflow-y: auto; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.asst-msg { display: flex; flex-direction: column; max-width: 88%; }
.asst-msg.me { align-self: flex-end; align-items: flex-end; }
.asst-msg.bot { align-self: flex-start; }
.asst-msg.wide { max-width: 100%; width: 100%; }
.asst-bubble { padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.asst-msg.me .asst-bubble { background: var(--surface-raised, #1f1f23); border: 1px solid var(--border-strong, #3f3f46); border-bottom-right-radius: 6px; }
.asst-msg.bot .asst-bubble { background: var(--surface, #18181b); border: 1px solid var(--border, #27272a); border-bottom-left-radius: 6px; }
.asst-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.asst-choice { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong, #3f3f46);
  background: var(--surface-inset, #111113); color: var(--text, #fafafa); font-weight: 600; }
.asst-choice.primary { border-color: var(--accent, #2dd4bf); color: var(--accent, #2dd4bf); }
.asst-choice.secondary { border-color: var(--status-amber, #f59e0b); color: #fcd34d; }
.asst-choice.picked { background: var(--accent, #2dd4bf); color: var(--text-on-accent, #042f2e); border-color: var(--accent, #2dd4bf); }
.asst-choice:disabled:not(.picked) { opacity: .45; }
.asst-items { display: grid; gap: 6px; width: 100%; min-width: 260px; }
.asst-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 12px; text-align: left;
  background: var(--surface, #18181b); border: 1px solid var(--border, #27272a); border-radius: 12px; color: var(--text, #fafafa); }
.asst-row.overdue { border-color: rgb(239 68 68 / 55%); }
.asst-row-ico { flex: 0 0 24px; text-align: center; }
.asst-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.asst-row-main strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asst-row-main span { font-size: 12px; color: var(--muted, #a1a1aa); }
.asst-row-go { color: var(--muted, #a1a1aa); font-size: 20px; }

.asst-draft, .asst-edit { background: var(--surface, #18181b); border: 1px solid var(--accent, #2dd4bf); border-radius: 16px; padding: 12px 14px 14px; width: 100%; box-sizing: border-box; }
.asst-draft.done { border-color: var(--border, #27272a); opacity: .8; }
.asst-edit { border-color: var(--border-strong, #3f3f46); }
.asst-draft-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 4px; }
.asst-kind { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent, #2dd4bf); }
.asst-draft-tip { font-size: 12px; color: var(--muted, #a1a1aa); }
.asst-field { display: block; margin-top: 10px; }
.asst-field > span { display: block; font-size: 12px; color: var(--muted, #a1a1aa); margin-bottom: 4px; }
.asst-field input, .asst-field select, .asst-field textarea, .asst-type input {
  width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; font-size: 16px; color: var(--text, #fafafa);
  background: var(--surface-inset, #111113); border: 1px solid var(--border, #27272a); border-radius: 12px; }
.asst-field textarea { min-height: 64px; resize: vertical; line-height: 1.4; }
.asst-field input:focus, .asst-field select:focus, .asst-field textarea:focus, .asst-type input:focus { outline: 2px solid var(--accent, #2dd4bf); outline-offset: 0; border-color: transparent; }
.asst-field input[type=datetime-local], .asst-field input[type=date], .asst-field input[type=time] { color-scheme: dark; }
.asst-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
@media (max-width: 360px) { .asst-grid2 { grid-template-columns: 1fr; } }
.asst-hint { margin: 10px 0 0; font-size: 12px; color: var(--muted, #a1a1aa); }
.asst-err { margin: 8px 0 0; font-size: 13px; color: #fca5a5; min-height: 0; }
.asst-err:empty { display: none; }
.asst-draft-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.asst-btn { min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 600; border: 1px solid var(--border-strong, #3f3f46);
  background: var(--surface-raised, #1f1f23); color: var(--text, #fafafa); }
.asst-btn.primary { background: var(--accent, #2dd4bf); border-color: var(--accent, #2dd4bf); color: var(--text-on-accent, #042f2e); }
.asst-btn.ghost { background: transparent; }
.asst-btn:disabled { opacity: .55; }
.asst-saved { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface, #18181b);
  border: 1px solid rgb(34 197 94 / 50%); }
.asst-saved-ico { flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--status-green, #22c55e); color: #052e16; font-weight: 800; }
.asst-saved-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.asst-saved-main span { font-size: 13px; color: var(--muted, #a1a1aa); }
.asst-saved-btns { display: flex; gap: 6px; }

.asst-dock { border-top: 1px solid var(--border, #27272a); background: var(--surface, #18181b); padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)); }
.asst-suggest, .asst-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.asst-suggest::-webkit-scrollbar, .asst-chips::-webkit-scrollbar { display: none; }
.asst-chips.tight { margin-top: 8px; flex-wrap: wrap; }
.asst-chip { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: 13px; white-space: nowrap;
  background: var(--surface-inset, #111113); border: 1px solid var(--border, #27272a); color: var(--text-subtle, #d4d4d8); }
.asst-chip.on { border-color: var(--accent, #2dd4bf); color: var(--accent, #2dd4bf); }
.asst-mic-row { display: flex; justify-content: center; padding: 20px 0 8px; }
.asst-mic { position: relative; width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center;
  background: transparent; border: 0; padding: 0; color: var(--text-on-accent, #042f2e); box-shadow: none;
  -webkit-tap-highlight-color: transparent; transition: transform .18s ease; touch-action: manipulation; }
.asst-mic .asst-orb-cv { position: absolute; left: -20px; top: -20px; width: 156px; height: 156px; pointer-events: none; }
.asst-mic .asst-orb-fallback svg { width: 32px; height: 32px; }
.asst-mic:active { transform: scale(.96); }
.asst-mic:focus-visible { outline: 2px solid var(--accent, #2dd4bf); outline-offset: 6px; }
.asst-mic.no-orb.on .asst-orb-fallback { background: var(--status-red, #ef4444); color: #fff; }
.asst-ring { display: none; }
@media (prefers-reduced-motion: reduce) { .asst-mic, .asst-home-mic { transition: none; } .asst-mic:active, .asst-home-mic:active { transform: none; } }
/* state caption under the orb */
.asst-status { text-align: center; font-size: 13px; color: var(--muted, #a1a1aa); min-height: 20px; margin: 2px 0 8px; letter-spacing: .01em; transition: color .4s ease; }
.asst-status.live { color: var(--text, #fafafa); }
.asst-status.busy { color: #a5f3fc; }
.asst-status.speak { color: var(--accent, #2dd4bf); }
.asst-status.warn, .asst-status.warn-text { color: #fcd34d; }
.asst-type { display: flex; gap: 8px; }
.asst-type input { flex: 1; }
.asst-send { min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--surface-raised, #1f1f23); border: 1px solid var(--border-strong, #3f3f46); font-weight: 600; }

.asst-list-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px 6px; }
.asst-link { min-height: 40px; padding: 0 8px; color: var(--accent, #2dd4bf); font-weight: 600; }
.asst-link.danger { color: #fca5a5; }
.asst-seg { display: inline-flex; background: var(--surface-inset, #111113); border: 1px solid var(--border, #27272a); border-radius: 999px; padding: 3px; }
.asst-seg-btn { min-height: 34px; padding: 0 14px; border-radius: 999px; color: var(--muted, #a1a1aa); font-weight: 600; font-size: 13px; }
.asst-seg-btn.on { background: var(--surface-raised, #1f1f23); color: var(--text, #fafafa); }
#asst-list-kinds { padding: 2px 14px 8px; }
.asst-list { flex: 1; overflow-y: auto; padding: 4px 14px calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; align-content: start; }
.asst-li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--surface, #18181b); border: 1px solid var(--border, #27272a); }
.asst-li.overdue { border-color: rgb(239 68 68 / 55%); }
.asst-li.focus { border-color: var(--accent, #2dd4bf); }
.asst-li.done .asst-li-main strong { text-decoration: line-through; color: var(--muted, #a1a1aa); }
.asst-li > form { flex: 1; }
.asst-check { flex: 0 0 28px; width: 28px; height: 28px; margin-top: 2px; border-radius: 8px; border: 2px solid var(--border-strong, #3f3f46);
  color: var(--text-on-accent, #042f2e); font-weight: 800; display: grid; place-items: center; }
.asst-li.done .asst-check { background: var(--accent, #2dd4bf); border-color: var(--accent, #2dd4bf); }
.asst-li-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.asst-li-main strong { font-size: 15px; word-break: break-word; }
.asst-li-main span { font-size: 12px; color: var(--muted, #a1a1aa); }
.asst-li-main p { margin: 4px 0 0; font-size: 13px; color: var(--text-subtle, #d4d4d8); white-space: pre-wrap; word-break: break-word; }
.asst-li-btns { display: flex; flex-direction: column; align-items: flex-end; }
.asst-empty { color: var(--muted, #a1a1aa); text-align: center; padding: 32px 12px; }

.asst-banners { position: fixed; left: 0; right: 0; top: calc(8px + env(safe-area-inset-top, 0px)); z-index: 1300; display: grid; gap: 8px; padding: 0 10px; pointer-events: none; justify-items: center; }
.asst-banner { pointer-events: auto; width: 100%; max-width: 560px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 12px 12px 14px;
  background: var(--surface-raised, #1f1f23); border: 1px solid var(--accent, #2dd4bf); border-radius: 16px; box-shadow: 0 16px 40px rgb(0 0 0 / 35%); }
.asst-banner-ico { font-size: 22px; }
.asst-banner-main { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.asst-banner-main span { font-size: 12px; color: var(--muted, #a1a1aa); }
.asst-banner-btns { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.asst-x { min-width: 40px; min-height: 40px; color: var(--muted, #a1a1aa); }

/* compact dock while a draft is under review (phone room for the form) */
.asst-sheet.drafting .asst-suggest { display: none; }
.asst-sheet.drafting .asst-mic-row { padding: 12px 0 4px; }
.asst-sheet.drafting .asst-mic { width: 60px; height: 60px; }
.asst-sheet.drafting .asst-mic .asst-orb-cv { left: -12px; top: -12px; width: 84px; height: 84px; }
.asst-sheet.drafting .asst-mic .asst-orb-fallback svg { width: 24px; height: 24px; }
.asst-sheet.drafting .asst-status { margin: 0 0 6px; min-height: 16px; font-size: 12px; }
/* saved card: buttons drop under the text on narrow phones */
.asst-saved { flex-wrap: wrap; }
.asst-saved-main { flex: 1 1 170px; }
@media (max-width: 480px) { .asst-saved-btns { flex: 1 0 100%; justify-content: flex-end; } }
