/* 远谋 Demo · Tender 组件类（纯 CSS，Web 与移动端共用；工具类由 Tailwind 浏览器版提供） */
:root {
  --brand-50: #f2f8ff;
  --brand-100: #e6f2ff;
  --brand-600: #1e90ff;
  --brand-700: #1273e6;
  --brand-800: #0e5bc0;
  --accent-100: #e7f4ec;
  --accent-600: #2e8b57;
  --accent-700: #237046;
  --ink-900: #1f2329;
  --ink-700: #42474d;
  --ink-500: #8a9099;
  --line-strong: #cdd3da;
  --line: #e5e8ec;
  --surface-2: #eff2f5;
  --surface: #f7f9fb;
  --canvas: #ffffff;
  --warning: #e6a23c;
  --warning-100: #fdf3e3;
  --danger: #e5484d;
  --danger-100: #fdecec;
  --violet: #7b61ff;
  --teal: #13a8a8;
  --grad-primary: linear-gradient(135deg, #3ea0ff 0%, #1273e6 100%);
  --grad-primary-hover: linear-gradient(135deg, #1e90ff 0%, #0e5bc0 100%);
  --shadow-card: 0 1px 4px rgba(31, 35, 41, 0.04);
  --shadow-pop: 0 4px 16px rgba(31, 35, 41, 0.08);
  --shadow-layer: 0 12px 32px rgba(31, 35, 41, 0.12);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  color: var(--ink-900);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.num { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; border-radius: 6px; }

a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-800); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--canvas); color: var(--ink-700);
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background 150ms var(--ease), border-color 150ms var(--ease), transform 100ms var(--ease), color 150ms;
}
.btn:hover { background: var(--surface); border-color: var(--line-strong); }
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad-primary); color: #fff; border-color: transparent; }
.btn-primary:hover { background: var(--grad-primary-hover); border-color: transparent; color: #fff; }
.btn-soft { background: var(--brand-50); color: var(--brand-700); border-color: transparent; }
.btn-soft:hover { background: var(--brand-100); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-danger { color: var(--danger); border-color: #f5c2c3; }
.btn-danger:hover { background: var(--danger-100); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; border-radius: 6px; }
.btn-icon { width: 32px; height: 32px; padding: 0; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--canvas); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-card);
}
.card-pad { padding: 16px 20px; }
.card-title { font-size: 15px; font-weight: 600; color: var(--ink-900); display: flex; align-items: center; gap: 8px; }
.card-sub { font-size: 12px; color: var(--ink-500); }
.panel { background: var(--surface); border-radius: 12px; }
.section-title { font-size: 17px; font-weight: 600; }
.page-title { font-size: 22px; font-weight: 600; line-height: 1.3; }
.muted { color: var(--ink-500); }
.label { font-size: 12px; color: var(--ink-500); }

/* ---------- 标签与徽标 ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 6px;
  background: var(--surface-2); color: var(--ink-700); font-size: 12px; white-space: nowrap;
}
.chip-blue { background: var(--brand-100); color: var(--brand-800); }
.chip-green { background: var(--accent-100); color: var(--accent-700); }
.chip-amber { background: var(--warning-100); color: #9a6514; }
.chip-red { background: var(--danger-100); color: #b4262b; }
.chip-violet { background: #efebff; color: #5a43d6; }
.chip-pill { border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; flex: none; }

.sec-badge {
  display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px;
  border-radius: 6px; font-size: 11px; font-weight: 500; white-space: nowrap;
}
.sec-public { background: var(--surface-2); color: var(--ink-700); }
.sec-partner { background: var(--accent-100); color: var(--accent-700); }
.sec-internal { background: var(--brand-100); color: var(--brand-800); }
.sec-confidential { background: var(--danger-100); color: #b4262b; }

.kbd {
  display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px;
  border: 1px solid var(--line); background: var(--surface); font-size: 11px; color: var(--ink-500);
}

/* ---------- 表单 ---------- */
.input, .select, .textarea {
  width: 100%; height: 36px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--canvas); color: var(--ink-900); font: inherit;
  transition: border-color 150ms, box-shadow 150ms;
}
.textarea { height: auto; min-height: 88px; padding: 8px 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; color: var(--ink-700); }
.search-pill {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-500); cursor: pointer;
  transition: border-color 150ms, background 150ms;
}
.search-pill:hover { border-color: var(--line-strong); background: var(--canvas); }

/* ---------- 页签 ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab {
  position: relative; padding: 10px 12px; font-size: 14px; color: var(--ink-700); cursor: pointer;
  background: none; border: none; white-space: nowrap;
}
.tab:hover { color: var(--brand-700); }
.tab[aria-selected="true"] { color: var(--brand-700); font-weight: 600; }
.tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand-600);
}
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); gap: 2px; }
.seg button { border: none; background: none; padding: 4px 12px; border-radius: 8px; font-size: 13px; color: var(--ink-700); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--canvas); color: var(--brand-700); font-weight: 600; box-shadow: var(--shadow-card); }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th {
  text-align: left; font-weight: 500; color: var(--ink-500); padding: 8px 12px; background: var(--surface);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; white-space: nowrap;
}
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:hover td { background: var(--brand-50); }
.table tr.row-flash td { animation: rowFlash 900ms var(--ease); }
@keyframes rowFlash { from { background: var(--brand-100); } to { background: transparent; } }

/* ---------- 头像 ---------- */
.avatar {
  border-radius: 999px; object-fit: cover; background: var(--surface-2); flex: none;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 600;
}
.avatar-stack { display: inline-flex; }
.avatar-stack > * { margin-left: -6px; border: 2px solid var(--canvas); }
.avatar-stack > *:first-child { margin-left: 0; }

/* ---------- 布局 ---------- */
.app { display: grid; grid-template-rows: 56px 1fr; height: 100vh; }
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 0 20px; background: var(--canvas);
  border-bottom: 1px solid var(--line); position: relative; z-index: 50;
}
.body { display: grid; grid-template-columns: 216px 1fr auto; min-height: 0; }
.sidebar { background: var(--surface); padding: 12px 10px; overflow-y: auto; border-right: 1px solid var(--line); }
.nav-group { font-size: 11px; color: var(--ink-500); padding: 12px 10px 4px; letter-spacing: 0.04em; }
.nav-item {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px;
  color: var(--ink-700); font-size: 14px; cursor: pointer; transition: background 150ms, color 150ms;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink-900); }
.nav-item[aria-current="page"] { background: var(--brand-100); color: var(--brand-700); font-weight: 600; }
.nav-item .nav-badge { margin-left: auto; }
.main { overflow-y: auto; min-width: 0; position: relative; }
.page { padding: 24px 28px 48px; max-width: 1600px; margin: 0 auto; }
@media (min-width: 1440px) { .page { padding: 28px 40px 56px; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.crumbs { font-size: 12px; color: var(--ink-500); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.crumbs a { color: var(--ink-500); }
.crumbs a:hover { color: var(--brand-700); }
@media (max-width: 1100px) { .body { grid-template-columns: 64px 1fr auto; } .sidebar .nav-text, .sidebar .nav-group, .sidebar .nav-badge { display: none; } }

/* ---------- AI 侧栏 ---------- */
.aside {
  width: 0; overflow: hidden; border-left: 1px solid var(--line); background: var(--canvas);
  transition: width 250ms var(--ease); display: flex; flex-direction: column;
}
.aside.open { width: 400px; }

/* ---------- 浮层 ---------- */
.overlay { position: fixed; inset: 0; background: rgba(31, 35, 41, 0.28); z-index: 1100; animation: fadeIn 200ms var(--ease); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 92vw); background: var(--canvas);
  box-shadow: var(--shadow-layer); z-index: 1101; display: flex; flex-direction: column;
  animation: slideIn 250ms var(--ease);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal {
  position: fixed; left: 50%; top: 12vh; transform: translateX(-50%); width: min(560px, 92vw); max-height: 76vh;
  background: var(--canvas); border-radius: 16px; box-shadow: var(--shadow-layer); z-index: 1101;
  display: flex; flex-direction: column; animation: popIn 220ms var(--ease); overflow: hidden;
}
.popover { position: absolute; background: var(--canvas); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); z-index: 1000; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.menu-item:hover, .menu-item[aria-selected="true"] { background: var(--brand-50); color: var(--brand-800); }

.toasts { position: fixed; top: 68px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 1200; }
.toast {
  display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 380px; padding: 10px 14px; border-radius: 12px;
  background: var(--canvas); box-shadow: var(--shadow-layer); border: 1px solid var(--line); font-size: 13px;
  animation: toastIn 260ms var(--ease);
}
.toast.leaving { animation: toastOut 200ms var(--ease) forwards; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes popIn { from { transform: translate(-50%, 8px) scale(0.98); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateX(16px); opacity: 0; } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(30, 144, 255, 0.35); } 100% { box-shadow: 0 0 0 12px rgba(30, 144, 255, 0); } }
@keyframes shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
@keyframes sweep { from { background-position: -100% 0; } to { background-position: 200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes flowDash { to { stroke-dashoffset: -24; } }

.rise { animation: rise 320ms var(--ease) both; }
.skeleton {
  border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 0, #f6f8fa 40%, var(--surface-2) 80%);
  background-size: 800px 100%; animation: shimmer 1.2s linear infinite;
}
.spinner { width: 14px; height: 14px; border-radius: 999px; border: 2px solid var(--brand-100); border-top-color: var(--brand-600); animation: spin 700ms linear infinite; display: inline-block; }
.cursor::after { content: "▍"; color: var(--brand-600); animation: blink 1s steps(1) infinite; margin-left: 1px; }
.highlight-sweep {
  background: linear-gradient(90deg, transparent 0%, rgba(230, 162, 60, 0.35) 50%, transparent 100%) no-repeat, rgba(230, 162, 60, 0.18);
  background-size: 50% 100%, 100% 100%; animation: sweep 1.2s var(--ease) 1; border-radius: 4px;
}
.pulse { animation: pulseRing 1.6s var(--ease) infinite; }

/* ---------- 流水线步骤 ---------- */
.steps { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-500); }
.step .step-dot { width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); font-size: 11px; transition: background 200ms; }
.step.active { color: var(--brand-700); font-weight: 600; }
.step.active .step-dot { background: var(--brand-100); }
.step.done { color: var(--accent-700); }
.step.done .step-dot { background: var(--accent-100); }
.step-line { width: 24px; height: 2px; background: var(--line); border-radius: 2px; }

/* ---------- 看板 ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kanban-col { background: var(--surface); border-radius: 12px; padding: 10px; min-height: 420px; display: flex; flex-direction: column; gap: 8px; }
.kanban-card { background: var(--canvas); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: grab; transition: box-shadow 150ms, transform 150ms; }
.kanban-card:hover { box-shadow: var(--shadow-pop); }
.sortable-ghost { opacity: 0.35; }
.sortable-chosen { box-shadow: var(--shadow-layer); transform: rotate(1deg); }

/* ---------- 聚光灯（演示模式） ---------- */
.spot-mask { position: fixed; inset: 0; z-index: 1300; pointer-events: none; }
.spot-hole {
  position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(31, 35, 41, 0.45);
  transition: all 350ms var(--ease); pointer-events: none; z-index: 1300;
}
.spot-bubble {
  position: fixed; z-index: 1301; width: 340px; background: var(--canvas); border-radius: 16px; box-shadow: var(--shadow-layer);
  padding: 16px 18px; transition: all 350ms var(--ease);
}

/* ---------- 生成式界面 ---------- */
.genui { display: flex; flex-direction: column; gap: 10px; }
.genui-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--canvas); animation: rise 280ms var(--ease) both; }
.genui-text p { margin: 0 0 6px; }
.genui-text ul, .genui-text ol { margin: 4px 0 6px; padding-left: 20px; }
.genui-locked { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface); color: var(--ink-500); font-size: 13px; }
.cite {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; margin: 0 2px;
  border-radius: 5px; background: var(--brand-100); color: var(--brand-800); font-size: 11px; font-weight: 600; cursor: pointer; vertical-align: 1px;
}
.prose-sm { font-size: 14px; line-height: 1.7; }
.prose-sm h1, .prose-sm h2, .prose-sm h3 { font-size: 15px; margin: 12px 0 6px; }
.prose-sm p { margin: 0 0 8px; }
.prose-sm ul { padding-left: 20px; margin: 0 0 8px; }

/* ---------- 聊天 ---------- */
.msg-user { align-self: flex-end; max-width: 80%; background: var(--brand-600); color: #fff; padding: 8px 12px; border-radius: 14px 14px 4px 14px; }
.msg-ai { align-self: stretch; }

/* ---------- 语音光球 ---------- */
.orb {
  width: 180px; height: 180px; border-radius: 999px; position: relative;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #cfe6ff 30%, #7dbbff 62%, #1e90ff 100%);
  box-shadow: 0 20px 60px rgba(30, 144, 255, 0.35), inset 0 -10px 30px rgba(14, 91, 192, 0.35);
  transition: transform 120ms linear;
}
.orb::before, .orb::after {
  content: ""; position: absolute; inset: -14px; border-radius: 999px; border: 2px solid rgba(30, 144, 255, 0.18);
  animation: orbRipple 2.4s var(--ease) infinite;
}
.orb::after { animation-delay: 1.2s; }
.orb.idle::before, .orb.idle::after { animation-play-state: paused; opacity: 0; }
@keyframes orbRipple { from { transform: scale(0.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

/* ---------- 终端 ---------- */
.term { background: #1f2329; color: #d6dde6; border-radius: 12px; font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; padding: 16px; overflow-y: auto; }
.term .t-prompt { color: #7dbbff; }
.term .t-ok { color: #7fd1a3; }
.term .t-dim { color: #8a9099; }
.term .t-warn { color: #f2c46d; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ---------- 无框页面（角色选择） ---------- */
.bare .topbar, .bare .sidebar, .bare .aside { display: none; }
.bare .app { grid-template-rows: 1fr; }
.bare .body { grid-template-columns: 1fr; }
.brand-bg {
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(30, 144, 255, 0.12) 0%, transparent 70%),
    radial-gradient(50% 45% at 90% 20%, rgba(46, 139, 87, 0.10) 0%, transparent 70%),
    radial-gradient(70% 60% at 50% 100%, rgba(30, 144, 255, 0.08) 0%, transparent 70%),
    var(--canvas);
}
.role-card { transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms; }
.role-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); border-color: var(--brand-100); }

/* ---------- 撞单雷达 ---------- */
.radar { position: relative; width: 220px; height: 220px; border-radius: 999px; background: radial-gradient(circle, #f2f8ff 0%, #ffffff 70%); border: 1px solid var(--brand-100); overflow: hidden; }
.radar::before, .radar::after { content: ""; position: absolute; border-radius: 999px; border: 1px dashed #bfdfff; }
.radar::before { inset: 36px; }
.radar::after { inset: 74px; }
.radar-sweep { position: absolute; inset: 0; border-radius: 999px; background: conic-gradient(from 0deg, rgba(30, 144, 255, 0.35), rgba(30, 144, 255, 0) 70deg, transparent 360deg); animation: spin 1.6s linear infinite; }
.radar-blip { position: absolute; width: 10px; height: 10px; border-radius: 999px; transform: translate(-50%, -50%) scale(0); transition: transform 300ms var(--ease); }
.radar-blip.on { transform: translate(-50%, -50%) scale(1); }
.radar-blip.hit { background: var(--danger); box-shadow: 0 0 0 6px rgba(229, 72, 77, 0.2); }
.radar-blip.miss { background: var(--line-strong); }

/* ---------- 翻转卡片（竞品对标） ---------- */
.flip { perspective: 1200px; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform 600ms var(--ease); transform-style: preserve-3d; }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: auto; }
.flip-back { transform: rotateY(180deg); }

/* ---------- 移动端（/demo/m/） ---------- */
.m-stage { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 48px; padding: 24px; }
.phone {
  width: 390px; height: 844px; border-radius: 52px; background: #fff; position: relative; overflow: hidden; flex: none;
  box-shadow: 0 0 0 10px #1f2329, 0 0 0 12px #42474d, 0 30px 80px rgba(31, 35, 41, 0.25);
}
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 120px; height: 32px; border-radius: 20px; background: #1f2329; z-index: 20; }
.m-app { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: 48px; }
.m-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 62%; background: var(--canvas); border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 30px rgba(31, 35, 41, 0.12); transform: translateY(105%); transition: transform 320ms var(--ease); z-index: 10; display: flex; flex-direction: column;
}
.m-sheet.open { transform: none; }
.m-grip { width: 40px; height: 5px; border-radius: 999px; background: var(--line-strong); margin: 8px auto 4px; }
.m-chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; }
.m-chips::-webkit-scrollbar { display: none; }
.m-mode { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.m-mode button { border: none; background: none; height: 34px; border-radius: 10px; font-size: 13px; color: var(--ink-700); cursor: pointer; }
.m-mode button[aria-pressed="true"] { background: var(--canvas); color: var(--brand-700); font-weight: 600; box-shadow: var(--shadow-card); }
.mic { width: 68px; height: 68px; border-radius: 999px; border: none; color: #fff; background: var(--grad-primary); box-shadow: 0 10px 24px rgba(30, 144, 255, 0.35); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 120ms; }
.mic:active, .mic.on { transform: scale(0.94); }
.mic.rec { background: var(--danger); box-shadow: 0 10px 24px rgba(229, 72, 77, 0.35); }
.wave { display: flex; align-items: center; gap: 3px; height: 40px; }
.wave span { width: 4px; border-radius: 4px; background: var(--danger); animation: waveBar 900ms ease-in-out infinite; }
@keyframes waveBar { 0%, 100% { height: 6px; } 50% { height: 36px; } }
@media (max-width: 600px) {
  .m-stage { padding: 0; display: block; }
  .m-side { display: none; }
  .phone { width: 100vw; height: 100dvh; border-radius: 0; box-shadow: none; }
  .phone-notch { display: none; }
  .m-app { padding-top: env(safe-area-inset-top, 12px); }
}
