:root {
  --ink: #1e1b4b;
  --muted: #64748b;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --good: #047857;
  --bad: #b91c1c;
  --side: 232px;
  --glass: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.38));
  --panel: rgba(255,255,255,.52);
  --shadow: 0 22px 60px rgba(99, 102, 241, .14);
  --stroke: rgba(255,255,255,.72);
  --spot-x: 50%;
  --spot-y: 28%;
  --app-height: 100vh;
}

/* Meeting context: materials stay alongside notes without changing the live layout. */
.summary-document-context { margin-bottom: 14px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.summary-document-context summary { cursor: pointer; color: #6d28d9; }
.summary-document-context li { margin: 6px 0; overflow-wrap: anywhere; }
.live-context-tabs {
  display: inline-flex;
  min-width: 0;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(199, 210, 254, .66);
  border-radius: 11px;
  background: rgba(255,255,255,.46);
}
.live-context-tab {
  min-height: 28px;
  padding: 4px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font: 650 12px/1.2 var(--font-sans, Inter, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif);
  cursor: pointer;
}
.live-context-tab.active { color: #312e81; background: rgba(255,255,255,.92); box-shadow: 0 4px 10px rgba(99,102,241,.1); }
.live-context-tab:disabled { cursor: not-allowed; color: #94a3b8; opacity: .72; }
.live-context-tab:focus-visible,
.document-open:focus-visible,
.document-row-action:focus-visible,
.difficulty-source:focus-visible,
.difficulty-resolve:focus-visible,
.difficulty-field :is(input, textarea):focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}
.live-context-pane,
.document-pane,
.documents-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.live-context-pane[hidden],
.document-pane[hidden],
.documents-pane[hidden] { display: none !important; }
.live-context-pane .live-notes-tools { padding: 0 12px 4px; justify-content: space-between; }
#liveDocumentsPane { padding: 0 12px 12px; }
.documents-pane { padding: 8px 18px 16px; }
.document-pane-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  flex: none;
}
.document-pane-tools .document-reorganize-btn { color: #5b21b6; background: rgba(237,233,254,.88); }
.document-pane-tools .document-reorganize-btn:hover:not(:disabled) { background: #ddd6fe; }
.document-pane-hint {
  margin: 8px 1px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}
.document-list {
  display: grid;
  gap: 7px;
  min-height: 0;
  overflow: auto;
  align-content: start;
}
.document-list > .muted { margin: 8px 1px; }
.document-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 7px;
  padding: 6px;
  border: 1px solid rgba(199,210,254,.66);
  border-radius: 12px;
  background: rgba(255,255,255,.56);
}
.document-row.is-selected { border-color: rgba(99,102,241,.62); background: rgba(238,242,255,.78); }
.document-row.is-failed { border-color: rgba(251,113,133,.38); background: rgba(255,241,242,.64); }
.document-open {
  min-width: 0;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding: 3px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.document-open:hover:not(:disabled) { background: rgba(255,255,255,.72); }
.document-open:disabled { cursor: default; }
.document-file-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #4f46e5;
  background: rgba(224,231,255,.9);
  font-size: 12px;
  font-weight: 800;
}
.document-row.is-failed .document-file-icon { color: #be123c; background: #ffe4e6; }
.document-row-copy { min-width: 0; display: grid; gap: 1px; }
.document-row-copy strong,
.document-row-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-row-copy strong { color: #1e293b; font-size: 13px; }
.document-row-copy small { color: #64748b; font-size: 11px; }
.document-status {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.document-status.ready { color: #047857; background: #d1fae5; }
.document-status.processing { color: #1d4ed8; background: #dbeafe; }
.document-status.failed { color: #be123c; background: #ffe4e6; }
.document-row-actions { display: inline-flex; align-items: center; gap: 3px; }
.document-row-action {
  min-height: 26px;
  padding: 3px 7px;
  border: 0;
  border-radius: 8px;
  color: #4f46e5;
  background: rgba(238,242,255,.86);
  font: 700 11px/1.2 var(--font-sans, Inter, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif);
  cursor: pointer;
}
.document-row-action:hover { background: #e0e7ff; }
.document-row-action.danger { color: #be123c; background: rgba(255,228,230,.88); }
.document-row-action.danger:hover { background: #fecdd3; }
.document-row-action:disabled { cursor: wait; opacity: .58; }
.document-row-error {
  grid-column: 1 / -1;
  margin: 0 3px 2px;
  color: #be123c;
  font-size: 11px;
  line-height: 1.5;
}
.document-preview {
  margin-top: 9px;
  min-height: 0;
  overflow: auto;
}
.document-preview-card {
  padding: 11px 12px;
  border: 1px solid rgba(196,181,253,.7);
  border-radius: 14px;
  background: rgba(250,248,255,.76);
}
.document-preview-card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.document-preview-card > header strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #312e81; font-size: 13px; }
.document-preview-card > header span { flex: none; color: #7c3aed; font-size: 11px; }
.document-warnings { margin-top: 9px; padding: 8px 9px; border-radius: 10px; color: #92400e; background: #fffbeb; font-size: 12px; line-height: 1.55; }
.document-warnings strong { display: block; color: #a16207; }
.document-warnings ul { margin: 4px 0 0; padding-left: 17px; }
.document-warnings p { margin: 5px 0 0; }
.document-preview-limit { margin: 9px 0 -2px; color: #7c3aed; font-size: 11px; line-height: 1.45; }
.document-sections { display: grid; gap: 10px; margin-top: 11px; }
.document-sections section { padding-top: 9px; border-top: 1px solid rgba(221,214,254,.72); }
.document-sections h4 { margin: 0 0 4px; color: #4338ca; font-size: 12px; }
.document-sections p,
.document-plain-text { margin: 0; color: #475569; font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.document-preview-error { margin: 0; color: #be123c; font-size: 13px; line-height: 1.65; }

/* Difficulty cards use the existing list modal, project tag palette, and edit controls. */
.difficulty-tabs { margin-bottom: 10px; }
.difficulty-list { flex: 1; min-height: 0; overflow: auto; display: grid; gap: 12px; align-content: start; padding: 2px 2px 10px; }
.difficulty-group {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(255,255,255,.45);
}
.difficulty-group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.difficulty-group-head .difficulty-meeting-head { min-width: 0; flex: 1; margin: 0; }
.difficulty-group-head .difficulty-meeting-head strong { white-space: normal; overflow-wrap: anywhere; }
.difficulty-group-head .difficulty-project-chip { flex: none; }
.difficulty-group-head em { color: #94a3b8; font-size: 12px; font-style: normal; }
.difficulty-project-chip { cursor: default; }
.difficulty-item {
  padding: 0;
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 13px;
  background: rgba(255,255,255,.78);
}
.difficulty-item.is-resolved { opacity: .78; }
.difficulty-summary { display: flex; align-items: center; gap: 12px; padding: 13px 14px; list-style: none; cursor: pointer; border-radius: 13px; }
.difficulty-summary::-webkit-details-marker { display: none; }
.difficulty-summary:hover { background: rgba(245,243,255,.62); }
.difficulty-summary:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 2px; }
.difficulty-summary-title { min-width: 0; flex: 1; color: var(--ink); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.difficulty-state-icon { display: grid; place-items: center; flex: none; width: 23px; height: 23px; border-radius: 50%; border: 1.5px solid #c4b5fd; color: #7c3aed; font-size: 13px; font-weight: 700; }
.difficulty-summary-status { color: #94a3b8; font-size: 11px; white-space: nowrap; }
.difficulty-chevron { width: 16px; height: 16px; flex: none; color: #94a3b8; transition: transform .15s ease; }
.difficulty-item[open] > .difficulty-summary .difficulty-chevron { transform: rotate(90deg); }
.difficulty-item[open] > .difficulty-summary { border-bottom: 1px solid rgba(226,232,240,.8); border-radius: 13px 13px 0 0; }
.difficulty-detail { padding: 5px 15px 15px; }
.difficulty-document {
  min-height: 180px;
  margin: 10px 0 16px;
  padding: 20px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255,255,255,.74);
  color: #334155;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  overflow-wrap: anywhere;
  cursor: text;
}
.difficulty-document[contenteditable="true"]:hover { border-color: #e9e4fc; }
.difficulty-document[contenteditable="true"]:focus { outline: 2px solid #ddd6fe; outline-offset: 2px; }
.difficulty-document[contenteditable="false"] { cursor: default; }
.difficulty-document :is(h2,h3,h4) { color: #26334b; line-height: 1.6; margin: 22px 0 10px; font-weight: 700; }
.difficulty-document h2 { font-size: 19px; }
.difficulty-document :is(h3,h4) { font-size: 16px; }
.difficulty-document > :first-child { margin-top: 0; }
.difficulty-document p { margin: 0 0 12px; }
.difficulty-document :is(ul,ol) { margin: 0 0 14px; padding-left: 24px; }
.difficulty-document-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.difficulty-document-save { font-size: 12px; color: #94a3b8; }
.difficulty-document-footer .difficulty-source { max-width: 100%; white-space: normal; text-align: left; overflow-wrap: anywhere; }
@media (max-width: 720px) { .difficulty-document { padding: 14px 12px; font-size: 14px; } }
.difficulty-item.is-resolved .difficulty-state-icon { color: #047857; border-color: #6ee7b7; background: #ecfdf5; }
.difficulty-item.is-resolved .difficulty-summary-title { color: #64748b; }
.difficulty-evidence { margin-top: 14px; border-left: 3px solid #ddd6fe; padding: 4px 10px; color: #64748b; font-size: 12px; line-height: 1.6; }
.difficulty-evidence > strong { color: #64748b; font-size: 11px; }
.difficulty-evidence p { margin: 5px 0 7px; white-space: pre-wrap; overflow-wrap: anywhere; }
.difficulty-evidence .difficulty-source { max-width: 100%; white-space: normal; text-align: left; overflow-wrap: anywhere; }
.difficulty-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.difficulty-source {
  max-width: 48%;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 4px 6px;
  color: #2563eb;
  background: rgba(219,234,254,.68);
  font: 650 11px/1.35 var(--font-sans, Inter, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif);
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.difficulty-source.is-muted { color: #94a3b8; background: transparent; cursor: default; }
.difficulty-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; margin-top: 10px; }
.difficulty-field { display: grid; gap: 4px; min-width: 0; color: #64748b; font-size: 11px; font-weight: 650; }
.difficulty-field-title,
.difficulty-field-suggestion { grid-column: 1 / -1; }
.difficulty-field input,
.difficulty-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(199,210,254,.8);
  border-radius: 9px;
  padding: 7px 8px;
  color: #334155;
  background: rgba(255,255,255,.74);
  font: 400 13px/1.5 var(--font-sans, Inter, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif);
}
.difficulty-field textarea { min-height: 52px; resize: vertical; }
.difficulty-field input[readonly],
.difficulty-field textarea[readonly] { cursor: default; color: #64748b; background: rgba(248,250,252,.7); }
.difficulty-item-foot { margin-top: 10px; justify-content: flex-end; }
.difficulty-resolve {
  min-height: 30px;
  padding: 5px 9px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(90deg, #6d28d9, #8b5cf6);
  box-shadow: 0 5px 12px rgba(109,40,217,.18);
  font: 700 12px/1.2 var(--font-sans, Inter, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif);
  cursor: pointer;
}
.difficulty-item.is-resolved .difficulty-resolve { color: #047857; background: #d1fae5; box-shadow: none; }
.difficulty-readonly { color: #94a3b8; font-size: 11px; }

@media (max-width: 720px) {
  .live-context-tab { min-height: 32px; padding-inline: 10px; }
  .document-pane-tools { width: 100%; }
  .document-pane-tools .document-reorganize-btn { margin-left: 0; }
  .documents-pane { padding: 6px 14px 14px; }
  .document-open { grid-template-columns: 24px minmax(0, 1fr); }
  .document-open .document-status { grid-column: 2; justify-self: start; }
  .document-row-actions { align-self: start; }
  .difficulty-fields { grid-template-columns: 1fr; }
  .difficulty-field-title,
  .difficulty-field-suggestion { grid-column: auto; }
  .difficulty-source { max-width: 55%; }
  .difficulty-group-head { flex-wrap: wrap; }
  .difficulty-group-head .difficulty-meeting-head { flex-basis: 100%; }
  .difficulty-summary { padding: 12px 10px; gap: 8px; }
  .difficulty-summary-title { font-size: 14px; }
  .difficulty-summary-status { display: none; }
  .difficulty-detail { padding-inline: 10px; }
}
@supports (height: 100svh) {
  :root { --app-height: 100svh; }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: rgba(59, 130, 246, .12); }
[hidden] { display: none !important; }
body {
  font-family: "Inter", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(720px 460px at 8% 18%, rgba(125, 211, 252, .55), transparent 62%),
    radial-gradient(780px 520px at 92% 16%, rgba(255, 255, 255, .72), transparent 58%),
    radial-gradient(640px 380px at 72% 92%, rgba(186, 230, 253, .38), transparent 58%),
    linear-gradient(115deg, #b3e0ff 0%, #d8efff 42%, #f3f9ff 72%, #ffffff 100%);
}
.scene-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(220px 220px at 18% 72%, rgba(255,255,255,.35), transparent 70%),
    radial-gradient(260px 260px at 82% 28%, rgba(255,255,255,.28), transparent 70%);
}
.scene-spot {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(460px 460px at var(--spot-x) var(--spot-y), rgba(255,255,255,.5), transparent 64%);
  mix-blend-mode: soft-light;
}

.sparkles {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 8% 18%, #fff, transparent),
    radial-gradient(1px 1px at 16% 62%, rgba(255,255,255,.85), transparent),
    radial-gradient(1.6px 1.6px at 28% 12%, #fff, transparent),
    radial-gradient(1px 1px at 36% 78%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.3px 1.3px at 47% 24%, #fff, transparent),
    radial-gradient(1px 1px at 58% 66%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 69% 14%, #fff, transparent),
    radial-gradient(1px 1px at 77% 54%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.4px 1.4px at 86% 32%, #fff, transparent),
    radial-gradient(1px 1px at 93% 76%, rgba(255,255,255,.75), transparent);
}

.shell {
  position: relative; z-index: 1;
  display: flex; height: var(--app-height, 100vh); overflow: hidden;
  padding: 16px; gap: 16px;
}
.sidebar {
  width: var(--side); flex: none;
  background: rgba(255,255,255,.36);
  border: 1px solid var(--stroke);
  border-radius: 28px;
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: width .22s ease;
}
.side-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 22px 14px 8px 18px;
}
.side-fold {
  width: 28px; height: 28px; flex: none; padding: 0;
  border: 0; border-radius: 50%;
  background: transparent;
  color: #64748b; cursor: pointer;
  display: grid; place-items: center;
}
.side-fold svg {
  width: 16px; height: 16px;
  transition: transform .2s ease;
}
.shell.side-collapsed .side-fold svg { transform: rotate(180deg); }
@media (hover: hover) {
  .side-fold:hover { background: rgba(255,255,255,.72); color: #1e293b; }
}
.brand {
  display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; text-align: left; color: inherit;
  min-width: 0;
}
.shell.side-collapsed { --side: 76px; }
.shell.side-collapsed .side-top {
  flex-direction: column; padding: 16px 8px 8px; justify-content: center;
}
.shell.side-collapsed .brand { justify-content: center; }
.shell.side-collapsed .brand-text,
.shell.side-collapsed .nav-btn span,
.shell.side-collapsed .user-meta,
.shell.side-collapsed .user-bar .ghost-btn { display: none; }
.shell.side-collapsed .side-nav { padding: 12px 10px; }
.shell.side-collapsed .nav-btn { justify-content: center; padding: 12px 8px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none;
  display: block; padding: 0;
  background: #8ec8ff;
  box-shadow: 0 6px 16px rgba(110, 188, 255, .28);
}
.brand-mark svg,
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; }
.brand-text small { color: var(--muted); font-size: 11px; }
.side-nav { display: grid; gap: 8px; padding: 18px 14px; flex: 1; align-content: start; }
.nav-btn {
  display: flex; align-items: center; gap: 12px;
  border: 0; background: transparent; border-radius: 999px; padding: 12px 16px;
  color: #4338ca; cursor: pointer; text-align: left; font: inherit; font-size: 15px;
}
.nav-btn svg { width: 20px; height: 20px; flex: none; }
@media (hover: hover) {
  .nav-btn {
    transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
  }
  .nav-btn:hover {
    background: rgba(255,255,255,.36);
    transform: translateX(3px) scale(1.03);
  }
}
.nav-btn.active {
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 24px rgba(99, 102, 241, .12);
  font-weight: 600;
}
.nav-btn.recording { background: linear-gradient(90deg, #3b82f6, #6366f1); color: #fff; }
@media (min-width: 721px) {
  .nav-extra { display: none !important; }
}

.settings-card input, .settings-card select, .modal-card input, .modal-card select,
.page-toolbar input {
  width: 100%; border: 1px solid rgba(255,255,255,.7); border-radius: 14px; padding: 10px 12px; font: inherit;
  background: rgba(255,255,255,.62);
}
.records-list {
  flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column;
  gap: 18px; align-content: start; padding: 4px 2px 8px;
}
.record-group { display: grid; gap: 8px; }
.record-day {
  margin: 0; padding: 0 4px;
  font-size: 12px; font-weight: 650; color: #64748b; letter-spacing: .04em;
}
.todo-list { flex: 1; min-height: 0; overflow: auto; display: grid; gap: 12px; align-content: start; padding: 4px 2px 8px; }
.todo-group {
  display: grid; gap: 6px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.48);
  border: 1px solid var(--stroke);
}
.todo-group-head {
  display: flex; align-items: center; gap: 10px;
  width: 100%; border: 0; background: transparent;
  padding: 4px 6px 8px; text-align: left; cursor: pointer; font: inherit; color: inherit;
}
.todo-group-head span:last-child { min-width: 0; display: grid; gap: 2px; }
.todo-group-head strong {
  display: block; font-size: 14px; color: #1e1b4b;
  white-space: normal; overflow: visible; word-break: break-word;
}
.todo-group-head em { font-style: normal; font-size: 12px; color: #94a3b8; }
.todo-group-ico {
  width: 28px; height: 28px; border-radius: 9px; flex: none;
  display: grid; place-items: center; color: #2563eb;
  background: linear-gradient(180deg, #fff, #e8f2ff);
}
.todo-group-ico svg { width: 15px; height: 15px; }
.todo-tabs {
  display: flex; gap: 6px; margin: 0 0 14px; padding: 4px;
  width: fit-content; max-width: 100%; flex: none;
  border-radius: 14px;
  background: rgba(255,255,255,.5);
  border: 1px solid var(--stroke);
}
.todo-tab {
  border: 0; background: transparent; border-radius: 11px;
  padding: 8px 16px; cursor: pointer; font: inherit; font-size: 14px; color: #64748b;
}
.todo-tab.active {
  background: rgba(255,255,255,.92); color: #1e3a8a; font-weight: 650;
  box-shadow: 0 6px 16px rgba(99,102,241,.1);
}
.todo-item {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px;
  position: relative;
  padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.78); border: 1px solid rgba(226,232,240,.9);
  box-shadow: none;
}
.todo-check {
  width: 22px; height: 22px; margin-top: 1px; padding: 0; border-radius: 50%;
  border: 1.6px solid rgba(99,102,241,.45);
  background: rgba(255,255,255,.7);
  display: grid; place-items: center; color: transparent; flex: none;
  cursor: pointer;
}
.todo-check:hover { border-color: #2563eb; background: #dbeafe; }
.todo-check svg { width: 12px; height: 12px; }
.todo-item.is-done { opacity: .72; }
.todo-item.is-done h3 { text-decoration: line-through; color: #64748b; font-weight: 550; }
.todo-item.is-done .todo-check {
  border-color: #22c55e; background: #22c55e; color: #fff;
}
.todo-meeting { color: inherit; }
.meeting-item {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: start; gap: 8px 12px;
  position: relative; min-height: 0; padding: 12px 14px;
  border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,.62); border: 1px solid var(--stroke);
  backdrop-filter: blur(16px); box-shadow: 0 8px 20px rgba(99,102,241,.05);
}
.meeting-main { min-width: 0; grid-column: 2; }
.meeting-main h3 { margin: 0; }
.meeting-main p { margin: 4px 0 0; }
.meeting-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  min-width: 0;
}
.meeting-head h3 { min-width: 0; overflow-wrap: anywhere; }
.meeting-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-height: 28px;
  max-width: 138px;
  padding: 3px 9px;
  border: 1px solid rgba(147, 197, 253, .92);
  border-radius: 999px;
  background: rgba(232, 242, 255, .9);
  box-shadow: 0 2px 7px rgba(37, 99, 235, .08);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.meeting-category.is-unassigned {
  border-color: rgba(203, 213, 225, .95);
  background: rgba(241, 245, 249, .88);
  box-shadow: none;
  color: #64748b;
}
.meeting-category-editable { padding: 0; }
.meeting-category .meeting-category-select {
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 26px;
  padding: 3px 24px 3px 9px;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
}
.meeting-category .meeting-category-select:hover { background: rgba(191, 219, 254, .45); }
.meeting-category .meeting-category-select:focus-visible {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .24);
}
.meeting-category.is-saving,
.meeting-category .meeting-category-select:disabled { cursor: wait; opacity: .64; }
.records-project-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.records-project-toolbar .page-modal-search { margin: 0; min-width: 0; flex: 1; }
.project-tag-browser-btn { flex: none; min-height: 40px; white-space: nowrap; }
.meeting-project-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 180px;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}
.project-tag-chip,
.project-tag-edit,
.project-tag-clear,
.project-tag-candidate,
.project-tag-browser-select,
.project-tag-manage-btn {
  border: 0;
  font: inherit;
  cursor: pointer;
}
.project-tag-chip {
  max-width: 100%;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(167, 139, 250, .5);
  border-radius: 999px;
  color: #6d28d9;
  background: rgba(245, 243, 255, .92);
  box-shadow: 0 2px 7px rgba(109, 40, 217, .08);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.project-tag-chip span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-tag-chip:hover { background: rgba(237, 233, 254, .98); }
.project-tag-chip:focus-visible,
.project-tag-edit:focus-visible,
.project-tag-clear:focus-visible,
.project-tag-candidate:focus-visible,
.project-tag-browser-select:focus-visible,
.project-tag-manage-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .22);
}
.project-tag-edit {
  min-height: 26px;
  padding: 3px 7px;
  border-radius: 9px;
  color: #6d28d9;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.project-tag-edit:hover { background: rgba(237, 233, 254, .8); }
.project-tag-readonly { color: #94a3b8; font-size: 12px; white-space: nowrap; }
.project-tag-inline-editor {
  position: relative;
  z-index: 40;
  flex: none;
  min-width: 0;
  max-width: 100%;
}
.meeting-item.is-project-editing { z-index: 20; }
.project-tag-inline-row { display: flex; align-items: center; width: 100%; }
.meeting-project-tags .project-tag-inline-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 26px;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(167, 139, 250, .5);
  border-radius: 999px;
  color: #6d28d9;
  background: rgba(245, 243, 255, .92);
  box-shadow: 0 2px 7px rgba(109, 40, 217, .08);
  font: 700 12px/1.2 var(--font-sans, Inter, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif);
  outline: none;
}
.meeting-project-tags .project-tag-inline-input:focus { border-color: #8b5cf6; }
.meeting-project-tags .project-tag-inline-input::placeholder { color: #6d28d9; opacity: .7; }
.project-tag-inline-candidates {
  position: absolute;
  top: calc(100% + 4px);
  left: -7px;
  z-index: 50;
  display: grid;
  width: max(160px, calc(100% + 14px));
  max-width: min(240px, calc(100vw - 32px));
  grid-auto-rows: 26px;
  gap: 4px;
  max-height: min(220px, 32dvh);
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #ddd6fe;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(76, 29, 149, .16);
}
.project-tag-inline-candidates.opens-above { top: auto; bottom: calc(100% + 4px); }
.page-modal .project-tag-inline-candidates { scrollbar-width: thin; scrollbar-color: #c4b5fd #f5f3ff; }
.page-modal .project-tag-inline-candidates::-webkit-scrollbar { width: 4px; height: 4px; }
.page-modal .project-tag-inline-candidates::-webkit-scrollbar-thumb { background: #c4b5fd; border-radius: 4px; }
.project-tag-inline-option {
  display: block;
  width: 100%;
  min-width: 0;
  height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(167, 139, 250, .5);
  border-radius: 999px;
  color: #6d28d9;
  background: #f5f3ff;
  font: 700 12px/1.2 var(--font-sans, Inter, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  text-align: left;
}
.project-tag-inline-option:hover { border-color: #a78bfa; background: #f5f3ff; }
.project-tag-inline-option:focus-visible { outline: 0; border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(124, 58, 237, .14); }
.project-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(196, 181, 253, .62);
  border-radius: 12px;
  color: #5b21b6;
  background: rgba(245, 243, 255, .72);
  font-size: 13px;
}
.project-filter-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-filter-bar em { margin-left: 6px; color: #8b5cf6; font-size: 12px; font-style: normal; }
.project-filter-clear { min-height: 32px; padding: 5px 9px; flex: none; color: #6d28d9; }
.project-tag-modal {
  width: min(620px, calc(100% - 32px));
  min-height: 0;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.project-tag-modal > .muted { margin-top: -5px; line-height: 1.6; }
.project-tag-scope {
  display: inline-flex;
  gap: 3px;
  margin: 2px 0 12px;
  padding: 3px;
  border: 1px solid rgba(196, 181, 253, .56);
  border-radius: 12px;
  background: rgba(245, 243, 255, .58);
}
.project-tag-scope button {
  min-height: 34px;
  padding: 6px 11px;
  border: 0;
  border-radius: 9px;
  color: #64748b;
  background: transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.project-tag-scope button.active { color: #5b21b6; background: #fff; box-shadow: 0 3px 10px rgba(109, 40, 217, .12); }
.project-tag-browser-list,
.project-tag-candidate-list {
  display: grid;
  gap: 8px;
  max-height: min(40vh, 340px);
  overflow: auto;
  padding: 3px 1px;
}
.project-tag-browser-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(221, 214, 254, .78);
  border-radius: 13px;
  background: rgba(255, 255, 255, .62);
}
.project-tag-browser-select,
.project-tag-candidate {
  min-width: 0;
  padding: 8px 9px;
  border-radius: 10px;
  color: #312e81;
  text-align: left;
  background: transparent;
}
.project-tag-browser-select:hover,
.project-tag-candidate:hover { background: rgba(245, 243, 255, .9); }
.project-tag-browser-select strong,
.project-tag-candidate strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.project-tag-browser-select span,
.project-tag-browser-select em,
.project-tag-candidate span,
.project-tag-candidate em {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-tag-browser-row small { color: #7c3aed; font-size: 12px; white-space: nowrap; }
.project-tag-manage-btn { min-height: 30px; padding: 5px 8px; border-radius: 8px; color: #6d28d9; background: rgba(237, 233, 254, .88); font-size: 12px; font-weight: 700; }
.project-tag-selected-list {
  display: flex;
  min-height: 38px;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  margin: 2px 0 12px;
  padding: 8px;
  border: 1px dashed rgba(196, 181, 253, .8);
  border-radius: 12px;
  background: rgba(250, 250, 255, .62);
}
.project-tag-selected { min-height: 28px; padding: 4px 8px; border-radius: 999px; color: #5b21b6; background: #ede9fe; font-size: 12px; font-weight: 700; }
.project-tag-clear { min-height: 28px; padding: 4px 8px; border-radius: 8px; color: #6d28d9; background: transparent; font-size: 12px; font-weight: 700; }
.project-tag-clear:hover { background: rgba(237, 233, 254, .78); }
.project-tag-candidate { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; border: 1px solid rgba(221, 214, 254, .78); }
.project-tag-candidate span { grid-column: 1; }
.project-tag-candidate em { grid-column: 2; grid-row: 1 / span 2; margin: 0; color: #7c3aed; white-space: nowrap; }
.project-tag-empty { margin: 8px 4px; line-height: 1.6; }
.project-tag-create-toggle { margin-top: 12px; color: #6d28d9; }
.project-tag-create-form {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(221, 214, 254, .88);
  border-radius: 14px;
  background: rgba(250, 250, 255, .72);
}
.project-tag-create-note { margin: 0 0 9px; color: #64748b; font-size: 12px; line-height: 1.55; }
.project-tag-create-actions { margin-top: 10px; }
.project-tag-merge-panel { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(221, 214, 254, .9); }
.project-tag-merge-panel h3 { margin: 0 0 6px; font-size: 14px; color: #4c1d95; }
.project-tag-merge-panel p { margin: 0 0 10px; line-height: 1.55; }
.project-tag-merge-btn { margin-top: 10px; color: #b91c1c; }
.meeting-play {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: #e8f2ff; color: #2563eb;
  grid-row: 1 / span 2; align-self: center;
}
.meeting-play svg { width: 12px; height: 12px; margin-left: 1px; }
.meeting-item h3 {
  display: block; overflow: visible; white-space: normal;
  word-break: break-word; line-height: 1.45;
}
.meeting-foot {
  grid-column: 2;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  min-width: 0;
}
.meeting-dur { color: #64748b; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.meeting-participants {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  flex: 1 1 180px;
  min-width: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.meeting-participants-label { color: #94a3b8; white-space: nowrap; }
.meeting-participants-names { color: #475569; }
.meeting-actions {
  display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none;
}
.meeting-action {
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 10px;
  display: grid; place-items: center; flex: none;
  background: #e8f2ff; color: #2563eb; cursor: pointer;
}
.meeting-action svg { width: 16px; height: 16px; }
.meeting-action:hover { background: #dbeafe; }
.meeting-action.meeting-move {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 68px;
  height: 32px;
  gap: 4px;
  padding: 0 10px;
  overflow: visible;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.meeting-action.meeting-move svg { width: 14px; height: 14px; flex: none; }
.meeting-action.meeting-move span { display: inline; color: inherit; line-height: 1; }
.meeting-item, .todo-item, .stats-kpi, .stats-month-card, .stats-tile, .panel, .modal-card, .auth-card, .gen-card {
  --mx: 50%;
  --my: 0%;
}
.meeting-item::before, .todo-item::before, .stats-kpi::before, .stats-month-card::before,
.stats-tile::before,
.panel::before, .modal-card::before, .auth-card::before, .gen-card::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(255,255,255,.58), transparent 48%);
  opacity: 0; transition: opacity .22s ease;
}
.meeting-item > *, .todo-item > *, .stats-kpi > *, .stats-month-card > *, .stats-tile > *,
.panel > *, .modal-card > *, .auth-card > *, .gen-card > * { position: relative; z-index: 1; }
@media (hover: hover) {
  .meeting-item:hover, .todo-item:hover { background: rgba(255,255,255,.76); }
  .meeting-item:hover::before, .todo-item:hover::before, .stats-kpi:hover::before,
  .stats-month-card:hover::before, .stats-tile:hover::before, .panel:hover::before, .modal-card:hover::before,
  .auth-card:hover::before, .gen-card:hover::before { opacity: 1; }
}
.meeting-item.active { background: rgba(219, 234, 254, .8); }
.meeting-item h3, .todo-item h3 { margin: 0; font-size: 15px; font-weight: 600; }
.todo-item h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meeting-item p, .todo-item p { margin: 0; font-size: 12px; color: var(--muted); }
.todo-item p { margin: 6px 0 0; }
.status { font-size: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.7); white-space: nowrap; }
.status.done { background: #dcfce7; color: var(--good); }
.status.failed { background: #fee2e2; color: var(--bad); }
.status.recording, .status.finalizing { background: #ede9fe; color: #5b21b6; }
.status.saved { background: #ffedd5; color: #c2410c; }
.status.share-tag { background: #f3e8ff; color: #7e22ce; }
.status.queued, .status.transcoding, .status.transcribing, .status.summarizing { background: #dbeafe; color: #1d4ed8; }
.organize-btn {
  border: 0; border-radius: 999px; padding: 4px 8px; cursor: pointer; font: inherit;
  font-size: 11px; font-weight: 700; color: #1d4ed8; background: #dbeafe;
}
.todo-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: #4338ca; font-size: 12px; }

.user-bar {
  border-top: 1px solid rgba(255,255,255,.4); padding: 14px 16px;
  display: flex; align-items: center; gap: 10px; font-size: 13px;
}
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 700;
  background: linear-gradient(135deg, #38bdf8, #3b82f6);
}
.user-meta { flex: 1; min-width: 0; line-height: 1.25; }
.user-meta strong { display: block; font-size: 13px; }
.user-meta small { color: var(--muted); font-size: 11px; }
.badge { padding: 2px 7px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-size: 11px; }

.main { flex: 1; min-width: 0; position: relative; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.app-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 26px 0;
  pointer-events: none;
}
.app-top-left, .app-top-right {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  pointer-events: auto;
}
.app-top-right { flex: none; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 6px 5px 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.56);
  border: 1px solid rgba(255,255,255,.84);
  box-shadow: 0 10px 24px rgba(59,130,246,.08);
  backdrop-filter: blur(16px) saturate(160%);
}
.user-chip .user-avatar { width: 30px; height: 30px; font-size: 13px; }
.user-chip .user-meta { flex: none; }
.user-chip .ghost-btn {
  border: 0; background: rgba(255,255,255,.72);
  border-radius: 999px; padding: 5px 10px;
  font-size: 12px; cursor: pointer; color: #475569;
}
.shell.is-detail .app-top { display: none; }
.view { flex: 1; min-height: 0; height: auto; position: relative; }
.page-view, .settings-view, .stats-view { overflow: auto; padding: 84px 32px 32px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.page-back { flex: none; align-self: center; }
.page-head h1 { margin: 0 0 4px; font-size: 28px; }
.page-switch {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--stroke);
}
.page-switch button {
  border: 0; background: transparent; border-radius: 11px;
  padding: 7px 12px; cursor: pointer; font: inherit; font-size: 13px; color: #64748b;
}
.page-switch button.active {
  background: rgba(255,255,255,.94); color: #1e3a8a; font-weight: 650;
  box-shadow: 0 6px 16px rgba(99,102,241,.1);
}
@media (min-width: 721px) {
  .page-switch { display: inline-flex; }
}
.page-toolbar { margin-bottom: 16px; max-width: 420px; }

.stats-view {
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 12px;
}
.stats-view .page-head { margin-bottom: 10px; flex: none; }
.stats-view .page-head h1 { font-size: 28px; letter-spacing: -.03em; }
.stats-hello { margin: 4px 0 0; color: #64748b; font-size: 14px; }
.stats-head { align-items: flex-start; }
.stats-head-right { display: flex; align-items: center; gap: 10px; }
.stats-range-wrap { position: relative; }
.stats-range {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(226,232,240,.95);
  background: rgba(255,255,255,.86);
  border-radius: 999px;
  padding: 9px 14px;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37,99,235,.06);
}
.stats-range svg { width: 16px; height: 16px; color: #3b82f6; }
.stats-range i { font-style: normal; color: #94a3b8; font-size: 11px; }
.stats-range-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 8;
  min-width: 260px;
  display: grid; gap: 4px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 18px 40px rgba(37,99,235,.12);
}
.stats-range-menu button {
  border: 0; background: transparent; text-align: left;
  padding: 8px 10px; border-radius: 10px; font: inherit; cursor: pointer; color: #334155;
}
.stats-range-menu button.on,
.stats-range-menu button:hover { background: #eff6ff; color: #1d4ed8; }
.stats-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 0;
}
.stats-board {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .86fr);
  grid-template-rows: auto auto auto;
  gap: 14px;
  flex: none;
}
.stats-hero-card,
.stats-side-card,
.stats-chart-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 18px 40px rgba(59,130,246,.08);
}
.stats-hero-card {
  grid-row: 1 / span 2;
  min-height: 292px;
  padding: 22px 24px 20px;
  background:
    radial-gradient(360px 220px at 88% 18%, rgba(147,197,253,.55), transparent 62%),
    linear-gradient(180deg, rgba(239,246,255,.96), rgba(255,255,255,.78));
}
.stats-hero-card header span,
.stats-side-card span,
.stats-chart-card header span {
  color: #64748b;
  font-size: 14px;
  font-weight: 650;
}
.stats-clock {
  position: absolute; right: 8px; top: 28px;
  width: 168px; height: 168px;
  opacity: .95;
  pointer-events: none;
}
.stats-hero-num {
  display: flex; align-items: baseline; gap: 8px;
  margin: 28px 0 8px;
  color: #1d4ed8;
  letter-spacing: -.06em;
}
.stats-hero-num b {
  font-size: clamp(56px, 6vw, 78px);
  line-height: .9;
  font-weight: 800;
}
.stats-hero-num i {
  font-style: normal;
  font-size: 28px;
  font-weight: 750;
  color: #2563eb;
}
.stats-cmp { margin: 0; font-size: 14px; font-weight: 650; }
.stats-cmp.up { color: #16a34a; }
.stats-cmp.down { color: #ef4444; }
.stats-cmp.flat { color: #94a3b8; }
.stats-tip {
  position: absolute; left: 22px; right: 22px; bottom: 18px;
  display: inline-flex; align-items: flex-start; gap: 8px;
  margin: 0;
  width: fit-content;
  max-width: calc(100% - 44px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 10px 24px rgba(59,130,246,.08);
}
.stats-tip span { color: #3b82f6; flex: none; }
.stats-side-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 22px 20px;
}
.stats-side-card strong {
  display: block;
  margin: 10px 0 8px;
  color: #2563eb;
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: -.04em;
  line-height: 1;
}
.stats-3d {
  width: 64px; height: 64px; flex: none;
  border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #fff, #e8f2ff);
  box-shadow: 0 14px 24px rgba(59,130,246,.16), inset 0 1px 0 #fff;
  color: #2563eb;
}
.stats-3d.is-yen { color: #7c3aed; background: linear-gradient(180deg, #fff, #f3e8ff); }
.stats-3d svg { width: 28px; height: 28px; }
.stats-3d b { font-size: 28px; line-height: 1; }
.stats-chart-card {
  grid-column: 1 / -1;
  padding: 18px 20px 14px;
}
.stats-chart-card header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 10px;
}
.stats-grains {
  display: flex; padding: 3px;
  border-radius: 999px;
  background: #f1f5f9;
}
.stats-grains button {
  border: 0; background: transparent;
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit; font-size: 13px; color: #64748b; cursor: pointer;
}
.stats-grains button.on {
  background: #fff; color: #1d4ed8; font-weight: 700;
  box-shadow: 0 6px 16px rgba(15,23,42,.08);
}
.stats-chart-body { display: grid; grid-template-columns: 132px 1fr; gap: 8px; align-items: stretch; }
.stats-chart-focus { padding: 18px 0 0; }
.stats-chart-focus strong {
  display: block; color: #1d4ed8;
  font-size: 28px; letter-spacing: -.04em;
}
.stats-chart-focus em { color: #94a3b8; font-style: normal; font-size: 13px; }
.stats-chart { position: relative; min-height: 168px; }
.stats-chart svg { width: 100%; height: 168px; display: block; }
.stats-chart .area { fill: url(#statsArea); }
.stats-chart .line { fill: none; stroke: #3b82f6; stroke-width: 3; stroke-linecap: round; }
.stats-chart circle { fill: #fff; stroke: #2563eb; stroke-width: 3; }
.stats-chart-hits {
  position: absolute; left: 0; right: 0; top: 0; height: 168px;
  display: flex;
}
.stats-chart-hits button {
  flex: 1; border: 0; background: transparent; padding: 0; cursor: pointer;
}
.stats-chart-axis {
  display: flex; justify-content: space-between;
  color: #94a3b8; font-size: 12px; padding: 0 8px;
}
.stats-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1.2fr) 92px;
  gap: 10px;
  flex: none;
}
.stats-bento {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(126px, auto) minmax(110px, auto) auto;
  gap: 12px;
  flex: none;
}
.stats-tile {
  --mx: 50%;
  --my: 0%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  border: 1px solid rgba(226,232,240,.92);
  background: rgba(255,255,255,.78);
  border-radius: 22px;
  padding: 16px 18px 14px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  box-shadow: 0 12px 28px rgba(37,99,235,.06);
  backdrop-filter: blur(16px);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.stats-tile::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255,255,255,.7), transparent 48%);
  opacity: 0; transition: opacity .22s ease;
}
.stats-tile > * { position: relative; z-index: 1; }
.stats-tile small {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
}
.stats-tile em {
  margin-top: auto;
  font-style: normal;
  color: #94a3b8;
  font-size: 12px;
}
.stats-tile strong {
  display: block;
  margin: 8px 0 6px;
  color: #0f172a;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stats-tile.is-hero {
  grid-row: 1 / span 2;
  min-height: 248px;
  background:
    radial-gradient(420px 220px at 88% 0%, rgba(147,197,253,.38), transparent 60%),
    rgba(255,255,255,.82);
}
.stats-tile.is-hero header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}
.stats-tile.is-hero h3 { margin: 4px 0 0; font-size: 16px; color: #0f172a; }
.stats-hero-num {
  margin: 10px 0 8px !important;
  font-size: clamp(48px, 5.6vw, 76px) !important;
  letter-spacing: -.05em;
}
.stats-hero-sub {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 13px;
}
.stats-hero-spark {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  width: 100%;
  height: 78px;
  margin-top: auto;
}
.stats-hero-spark i {
  flex: 1;
  border-radius: 9px 9px 5px 5px;
  background: linear-gradient(180deg, #bfdbfe, #3b82f6);
  opacity: .42;
}
.stats-hero-spark i.on { opacity: 1; }
.stats-tile.is-mix {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px;
  cursor: default;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.stats-tile.is-mix::before { display: none; }
.stats-tile.is-mix .stats-flag {
  min-height: 72px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  justify-items: start;
  gap: 8px;
  padding: 12px 14px;
}
.stats-tile.active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6, 0 16px 32px rgba(37,99,235,.1);
}
.stats-kpi {
  display: block; width: 100%; position: relative; overflow: hidden;
  border: 1px solid rgba(226,232,240,.95);
  background: rgba(255,255,255,.88); border-radius: 16px; padding: 14px 16px 12px;
  text-align: left; cursor: pointer; color: inherit; font: inherit;
  box-shadow: 0 10px 24px rgba(37,99,235,.06);
  transition: transform .22s ease, box-shadow .22s ease;
}
.stats-kpi header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.stats-kpi h3 { margin: 0; font-size: 15px; color: #0f172a; }
.stats-kpi-icon {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; color: #2563eb; background: #eff6ff;
}
.stats-kpi.is-prev .stats-kpi-icon { color: #7c3aed; background: #f5f3ff; }
.stats-kpi.is-all .stats-kpi-icon { color: #0284c7; background: #e0f2fe; }
.stats-kpi-icon svg { width: 17px; height: 17px; }
.stats-kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats-kpi-grid small { display: block; color: #94a3b8; font-size: 12px; margin-bottom: 4px; }
.stats-kpi-grid strong { display: block; color: #0f172a; font-size: clamp(16px, 1.6vw, 22px); line-height: 1.1; letter-spacing: -.03em; white-space: nowrap; }
.stats-kpi.active { border-color: #3b82f6; box-shadow: 0 0 0 1px #3b82f6, 0 10px 24px rgba(37,99,235,.08); }
.stats-flags { display: grid; gap: 8px; }
.stats-flag {
  display: grid; justify-items: center; gap: 2px;
  background: rgba(255,255,255,.88); border: 1px solid rgba(226,232,240,.95);
  border-radius: 14px; padding: 8px 6px 7px;
  box-shadow: 0 8px 18px rgba(37,99,235,.05);
}
.stats-flag svg { width: 16px; height: 16px; }
.stats-flag span { font-size: 11px; color: #64748b; }
.stats-flag b { font-size: 18px; line-height: 1; }
.stats-flag.is-live { color: #16a34a; }
.stats-flag.is-live svg { color: #22c55e; }
.stats-flag.is-import { color: #2563eb; }
.stats-month-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  flex: none;
}
.stats-month-card {
  position: relative; overflow: hidden;
  border: 1px solid rgba(226,232,240,.95);
  background: rgba(255,255,255,.88);
  border-radius: 14px; padding: 10px 10px 8px;
  text-align: left; cursor: pointer; color: inherit; font: inherit;
  box-shadow: 0 8px 18px rgba(37,99,235,.05);
  transition: transform .22s ease, box-shadow .22s ease;
}
.stats-month-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.stats-month-card strong { font-size: 14px; color: #0f172a; }
.stats-month-card.active { border-color: #3b82f6; box-shadow: 0 0 0 1px #3b82f6, 0 8px 18px rgba(37,99,235,.08); }
.stats-month-card.is-empty { opacity: .72; }
.stats-spark { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.stats-spark i { width: 3px; border-radius: 2px; background: #93c5fd; }
.stats-month-card.active .stats-spark i:last-child,
.stats-month-card:not(.is-empty) .stats-spark i:last-child { background: #2563eb; }
.stats-month-card dl { margin: 0; display: grid; gap: 4px; }
.stats-month-card dl div {
  display: grid; grid-template-columns: 14px 1fr auto; gap: 6px; align-items: center;
  color: #94a3b8; font-size: 11px;
}
.stats-month-card dl svg { width: 12px; height: 12px; }
.stats-month-card dl b { color: #0f172a; font-size: 12px; font-weight: 650; }
.stats-table-wrap {
  flex: 1; min-height: 220px;
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(37,99,235,.06);
  overflow: hidden;
}
.stats-table-wrap header {
  display: flex; align-items: baseline; gap: 8px;
  padding: 10px 14px 8px; flex: none;
}
.stats-table-wrap h3 { margin: 0; font-size: 15px; }
.stats-table-wrap header small { color: #94a3b8; font-size: 12px; }
.stats-table-scroll { flex: 1; min-height: 0; overflow: auto; }
.stats-table { width: 100%; border-collapse: collapse; }
.stats-table th, .stats-table td {
  padding: 9px 12px; text-align: left; font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
}
.stats-table th { color: #94a3b8; font-weight: 650; font-size: 12px; position: sticky; top: 0; background: #fff; z-index: 1; }
.stats-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.stats-table th.sortable:hover { color: #2563eb; }
.stats-table .sort { font-style: normal; color: #cbd5e1; margin-left: 2px; }
.stats-table .sort.on { color: #2563eb; }
.stats-table tbody tr { cursor: pointer; }
.stats-table tbody tr:hover { background: #f8fbff; }
.stats-table .num { width: 52px; color: #94a3b8; }
.stats-table .name { font-weight: 650; color: #0f172a; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-table .when, .stats-table .dur, .stats-table .pay { white-space: nowrap; font-variant-numeric: tabular-nums; }
.stats-table .empty { text-align: center; color: #94a3b8; padding: 28px 12px; cursor: default; }
.stats-src {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 650;
}
.stats-src.live { background: #dcfce7; color: #15803d; }
.stats-src.upload { background: #dbeafe; color: #1d4ed8; }
.stats-note { margin: 0; padding: 8px 14px 10px; color: #94a3b8; font-size: 12px; flex: none; }

.mic-banner {
  margin: 12px 16px 0; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,247,237,.86); border: 1px solid #fdba74; color: #9a3412; font-size: 13px; line-height: 1.55;
  position: relative; z-index: 4;
}
.mic-banner a { color: #9a3412; font-weight: 700; }
.home-view {
  --orb-top: 50%;
  --orb-shift: 108px;
  --live-stack: 260px;
  --live-bottom: 28px;
  --live-ease: 480ms cubic-bezier(.22, .8, .24, 1);
  position: relative; overflow: hidden;
}
.home-view.is-live,
.home-view.is-paused { --orb-top: 26%; }
.landing-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 4;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 26px 0;
}
.landing-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.landing-brand strong { font-size: 16px; font-weight: 650; color: #1e293b; }
.landing-links { display: flex; align-items: center; gap: 8px; }
@media (min-width: 721px) {
  .sidebar { display: none !important; }
  .shell { gap: 0; }
}
.rec-leave {
  width: 36px; height: 36px; padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.22); color: #fff;
  display: grid; place-items: center;
}
.rec-leave svg { width: 18px; height: 18px; display: block; }
.import-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.82);
  background: rgba(255,255,255,.48);
  border-radius: 999px; padding: 8px 16px 8px 12px;
  color: #4338ca; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600;
  backdrop-filter: blur(16px); box-shadow: 0 10px 24px rgba(99,102,241,.1);
}
.import-chip svg { width: 16px; height: 16px; }
.import-chip:hover { background: rgba(255,255,255,.7); }

.ripple {
  --ripple: 176px;
  position: absolute; left: 50%; top: 50%; z-index: 1; pointer-events: none;
  width: var(--ripple); height: var(--ripple);
  border-radius: 50%;
  border-style: solid;
  border-width: 2.4px;
  border-color: rgba(56, 189, 248, .38);
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: rippleOut 14s linear infinite both;
}
.ripple.r1 { animation-delay: -1.4s; }
.ripple.r2 { animation-delay: -4.9s; }
.ripple.r3 { animation-delay: -8.4s; }
.ripple.r4 { animation-delay: -11.9s; }
.home-view.is-paused .ripple { animation-play-state: paused; }
.home-view.is-live .ripple,
.home-view.is-paused .ripple { display: none; }
.ripple-layer {
  position: absolute;
  left: 50%;
  top: var(--orb-top, 50%);
  z-index: 1;
  width: 0;
  height: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: top var(--live-ease, 480ms ease), transform var(--live-ease, 480ms ease);
}
.voice-ripple {
  --ripple: 176px;
  --travel: 6.2;
  position: absolute; left: 50%; top: 50%; pointer-events: none;
  width: var(--ripple); height: var(--ripple);
  border-radius: 50%;
  border: 2.4px solid rgba(56, 189, 248, .42);
  transform: translate(-50%, -50%);
  animation: voiceRippleOut 3.2s linear forwards;
}
@keyframes voiceRippleOut {
  0% {
    width: var(--ripple); height: var(--ripple);
    border-width: 2.4px;
    opacity: .48;
  }
  100% {
    width: calc(var(--ripple) * var(--travel));
    height: calc(var(--ripple) * var(--travel));
    border-width: .5px;
    opacity: 0;
  }
}
@keyframes rippleOut {
  0% {
    width: var(--ripple); height: var(--ripple);
    border-width: 2.4px;
    border-color: rgba(56, 189, 248, .38);
    opacity: 0;
  }
  5% { opacity: .42; }
  28% {
    border-width: 1.5px;
    border-color: rgba(56, 189, 248, .24);
    opacity: .32;
  }
  58% {
    border-width: .9px;
    border-color: rgba(56, 189, 248, .12);
    opacity: .18;
  }
  100% {
    width: calc(var(--ripple) * 7.2); height: calc(var(--ripple) * 7.2);
    border-width: .5px;
    border-color: rgba(56, 189, 248, .04);
    opacity: 0;
  }
}

.home-stage {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
}
.halo {
  position: absolute; left: 50%; top: var(--orb-top, 50%); border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 0 60px rgba(255,255,255,.4), inset 0 0 28px rgba(186, 230, 253, .16);
  transform: translate(-50%, -50%);
  transition: top var(--live-ease, 480ms ease);
}
.home-view:not(.is-live):not(.is-paused) .halo { opacity: 0; }
.halo-a { width: 214px; height: 214px; }
.halo-b { width: 286px; height: 286px; }
.halo-c { width: 368px; height: 368px; }
.home-view.is-live .halo,
.home-view.is-paused .halo {
  animation: none;
  opacity: var(--halo-opacity, .08);
  transform: translate(-50%, -50%) scale(var(--halo-scale, 1));
  transition: top var(--live-ease, 480ms ease), opacity .08s linear, transform .08s linear;
}

.orb {
  --hold: 0;
  pointer-events: auto; position: absolute; left: 50%; top: var(--orb-top, 50%); z-index: 2;
  transition: top var(--live-ease, 480ms ease), width var(--live-ease, 480ms ease), height var(--live-ease, 480ms ease);
  width: 168px; height: 168px; border: 1px solid rgba(255,255,255,.95);
  border-radius: 50%; cursor: pointer; color: #3b82f6;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.32));
  box-shadow:
    0 18px 50px rgba(147, 197, 253, .38),
    0 0 0 12px rgba(255,255,255,.2),
    inset 0 1px 0 #fff;
  backdrop-filter: blur(20px);
  display: grid; place-items: center;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
.orb .mic-icon { width: 52px; height: 52px; }
.orb .hold-ring {
  position: absolute; left: 50%; top: 50%; z-index: 0;
  width: calc(100% + 18px); height: calc(100% + 18px);
  transform: translate(-50%, -50%) rotate(-90deg);
  pointer-events: none; overflow: visible; opacity: 0;
  transition: opacity .12s ease;
}
.orb.is-holding .hold-ring,
.orb.hold-ready .hold-ring { opacity: 1; }
.orb .hold-ring-track {
  fill: none; stroke: rgba(59, 130, 246, .16); stroke-width: 3.2;
}
.orb .hold-ring-arc {
  fill: none; stroke: #3b82f6; stroke-width: 3.2; stroke-linecap: round;
  stroke-dasharray: 289.027;
  stroke-dashoffset: calc(289.027 * (1 - var(--hold, 0)));
}
.orb.hold-ready .hold-ring-arc { stroke: #2563eb; }
.orb.recording { cursor: pointer; }
@media (hover: hover) {
  .orb:hover { transform: translate(-50%, calc(-50% - 2px)); }
}
.rec-dot {
  position: absolute; top: 38px; width: 10px; height: 10px; border-radius: 50%;
  background: #ef4444; box-shadow: 0 0 10px #f87171;
}
.orb-hint {
  position: absolute; left: 50%; top: calc(50% + 108px); z-index: 3;
  transform: translateX(-50%); margin: 0; white-space: nowrap;
  text-align: center;
  font-size: 14px; letter-spacing: .18em;
  color: #64748b;
}
.home-capture-note {
  position: absolute; left: 50%; bottom: 168px; z-index: 3;
  transform: translateX(-50%); margin: 0;
  width: min(34em, calc(100% - 48px));
  text-align: center;
  font-size: 12px; line-height: 1.55;
  color: #64748b;
}
.orb-actions {
  pointer-events: none; position: absolute; left: 50%; top: calc(var(--orb-top, 50%) + var(--orb-shift, 108px)); z-index: 8;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0;
  transition: top var(--live-ease, 480ms ease), opacity var(--live-ease, 480ms ease);
}
.orb-actions strong {
  font-size: 40px; letter-spacing: .06em; color: #fff;
  text-shadow: 0 8px 24px rgba(59, 130, 246, .25);
  font-weight: 650; min-width: 0;
}
.orb-actions em {
  font-style: normal; color: rgba(255,255,255,.92); font-size: 14px;
}
.home-view.is-live .orb-actions,
.home-view.is-paused .orb-actions { opacity: 1; pointer-events: auto; }
.home-view:not(.is-live):not(.is-paused) #homeTimer,
.home-view:not(.is-live):not(.is-paused) #homeStatus { display: none; }
.home-import-mobile { display: none; }
.home-dock {
  position: absolute; left: 50%; top: auto; bottom: 72px; z-index: 4;
  transform: translateX(-50%);
  display: flex; align-items: stretch; gap: 12px;
  pointer-events: auto;
}
.dock-card {
  width: 104px; min-height: 78px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.86);
  background: rgba(255,255,255,.5);
  border-radius: 18px;
  padding: 12px 8px 10px;
  color: #334155;
  cursor: pointer; font: inherit;
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 22px rgba(59,130,246,.08);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.dock-ico {
  width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center;
  color: #2563eb;
  background: linear-gradient(180deg, #fff, #e8f2ff);
  box-shadow: 0 6px 12px rgba(59,130,246,.1);
}
.dock-ico svg { width: 16px; height: 16px; }
.dock-card strong { font-size: 12px; font-weight: 650; letter-spacing: .02em; }
@media (max-height: 760px) {
  .home-dock { top: auto; bottom: 28px; }
  .home-capture-note { bottom: 118px; }
}
@media (hover: hover) {
  .dock-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,.78);
    box-shadow: 0 16px 32px rgba(59,130,246,.14);
  }
}
.home-view.is-live .orb-hint, .home-view.is-paused .orb-hint,
.home-view.is-live .home-capture-note, .home-view.is-paused .home-capture-note,
.home-view.is-live .home-dock, .home-view.is-paused .home-dock,
.home-view.is-live .import-chip:not(#newRecBtn),
.home-view.is-paused .import-chip:not(#newRecBtn) { display: none; }
.home-view.is-live .landing-brand, .home-view.is-paused .landing-brand { color: #fff; }
.home-view.is-live .landing-brand strong, .home-view.is-paused .landing-brand strong { color: #fff; }
.shell.rec-focus .app-top .landing-brand,
.shell.rec-focus .app-top .landing-brand strong { color: #fff; }
.shell.rec-focus .user-chip {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.28);
}
.shell.rec-focus .user-chip .user-meta strong { color: #fff; }
.shell.rec-focus .user-chip .user-meta small { color: rgba(255,255,255,.72); }
.shell.rec-focus .user-chip .ghost-btn { background: rgba(255,255,255,.22); color: #fff; }
.live-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 76px 20px 10px; padding: 10px 14px; border-radius: 16px;
  background: #1d4ed8; color: #fff; font-size: 13px; font-weight: 650;
}
.live-bar strong { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.live-bar button {
  border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; font: inherit;
  font-size: 12px; font-weight: 700; background: #fff; color: #1d4ed8;
}
.shell.rec-focus .live-bar { display: none !important; }
.live-speech-at {
  display: none;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .02em;
  color: rgba(255,255,255,.82);
  white-space: nowrap;
}
.home-view.is-live .live-speech-at,
.home-view.is-paused .live-speech-at { display: inline; }
.live-speech-at:empty { display: none; }
.live-caption {
  position: absolute; left: 50%; top: calc(50% + 248px); z-index: 5;
  transform: translateX(-50%);
  max-width: min(760px, 82%); margin: 0; text-align: center;
  color: #1e293b; font-size: 15px; line-height: 1.55; font-weight: 500;
  padding: 8px 16px; border-radius: 14px;
  background: rgba(255,255,255,.55); backdrop-filter: blur(12px);
}
.live-caption:empty { display: none; padding: 0; background: none; }
.home-view:not(.is-live):not(.is-paused) .live-caption { display: none; }
.home-view.is-live .live-caption,
.home-view.is-paused .live-caption { display: none !important; }
.live-workspace {
  display: grid;
  position: absolute;
  z-index: 6;
  left: 50%;
  top: calc(var(--orb-top, 50%) + var(--live-stack, 260px));
  bottom: var(--live-bottom, 28px);
  width: min(1040px, calc(100% - 96px));
  height: auto;
  max-height: none;
  min-height: 0;
  transform: translateX(-50%) translateY(16px);
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: top var(--live-ease, 480ms ease), bottom var(--live-ease, 480ms ease), opacity var(--live-ease, 480ms ease), transform var(--live-ease, 480ms ease);
}
.home-view.is-live .live-workspace,
.home-view.is-paused .live-workspace {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.live-workspace[hidden] {
  display: grid !important;
  opacity: 0;
  pointer-events: none;
}
.home-view.is-live .live-workspace[hidden],
.home-view.is-paused .live-workspace[hidden] {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.live-pane {
  min-width: 0;
  min-height: 0;
  height: auto;
  max-height: none;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .42);
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(59, 130, 246, .08);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  overflow: hidden;
}
.live-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 6px;
}
.live-pane-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .65);
}
.live-notes-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.live-notes-hint {
  font-size: 12px;
  color: #475569;
}
.notes-new-btn {
  border: 0;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  color: #1e3a8a;
  background: rgba(255,255,255,.72);
  cursor: pointer;
}
.notes-item-list {
  list-style: none;
  margin: 0;
  padding: 0 12px 4px;
  overflow: auto;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 2 1 0;
}
.notes-item-list:empty { display: none; }
.notes-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.notes-item-open {
  flex: 1;
  min-width: 0;
  text-align: left;
  border: 0;
  background: rgba(255,255,255,.46);
  border-radius: 10px;
  padding: 5px 10px;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.notes-item.is-editing .notes-item-open {
  background: rgba(255,255,255,.82);
  box-shadow: 0 0 0 1px rgba(59,130,246,.35);
}
.notes-item-del {
  flex: none;
  border: 0;
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  color: #9f1239;
  background: rgba(255,255,255,.4);
  cursor: pointer;
}
.live-transcript {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 16px 14px;
  color: #1e293b;
  font-size: 15px;
  line-height: 1.75;
}
.live-transcript p { margin: 0 0 12px; }
.live-transcript .live-empty { color: #475569; }
.live-notes {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  border: 0;
  resize: none;
  padding: 4px 16px 14px;
  font: inherit;
  font-size: 15px;
  line-height: 1.7;
  color: #1e293b;
  background: transparent;
  outline: none;
}
.live-notes::placeholder { color: #475569; }
.meeting-context-document {
  flex: none; display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 190px;
  margin: 0; padding: 8px 16px 14px; border: 0; border-radius: 10px; resize: vertical;
  background: transparent; color: #1e293b; font: inherit; font-size: 15px; line-height: 1.8;
}
.meeting-context-document:focus { outline: 2px solid rgba(99,102,241,.3); outline-offset: -2px; }
.meeting-context-document[readonly] { color: #64748b; }
#liveNotesPane { overflow-y: auto; }
#liveNotesPane .live-notes { flex: 1 0 96px; min-height: 96px; }
#keyNotesPane { overflow-y: auto; }
#keyNotesPane .meeting-context-document { padding-inline: 4px; }
#keyNotesPane .notes-doc-list { flex: none; min-height: 100px; overflow: visible; }
.notes-section-label { flex: none; margin: 6px 0; color: #64748b; font-size: 12px; font-weight: 650; }
.key-notes-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 18px 16px;
}
.key-notes-pane[hidden] { display: none !important; }
.key-notes-pane .notes-item-list {
  flex: 2 1 0;
  min-height: 0;
  max-height: none;
  padding: 0 0 8px;
}
.notes-doc-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 10px 12px 24px 32px;
  overflow: auto;
  list-style: decimal;
  list-style-position: outside;
  outline: none;
  cursor: text;
  color: #334155;
  font-size: 15px;
  line-height: 1.85;
}
.notes-doc-list[contenteditable="false"] { cursor: default; }
.notes-doc-list > li {
  margin: 8px 0 12px;
  padding: 0;
  font-size: 15px;
  line-height: 1.85;
  color: #334155;
}
.notes-doc-list > li::marker {
  font-weight: 650;
  color: #1e3a8a;
}
.key-notes-pane > .notes-save-hint {
  margin: 8px 4px 0;
  flex: none;
}
.notes-save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  flex: none;
}
.notes-save-hint {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}
.notes-save-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rec-sides {
  pointer-events: none;
  position: absolute; left: 50%; top: var(--orb-top, 50%); z-index: 4;
  width: min(420px, 92vw);
  --pop: 128px;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: space-between; align-items: center;
  transition: top var(--live-ease, 480ms ease);
}
.rec-btn {
  pointer-events: none; border: 0; background: none; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; color: #1e293b; font: inherit;
  transform: translateX(var(--pop)) scale(.28);
  opacity: 0;
  transition: transform .38s cubic-bezier(.2, .8, .2, 1), opacity .24s ease;
}
.rec-btn.stop { transform: translateX(calc(var(--pop) * -1)) scale(.28); }
.home-view.is-live .rec-btn,
.home-view.is-paused .rec-btn { color: #fff; }
.home-view.is-paused .rec-btn {
  pointer-events: auto;
  transform: none;
  opacity: 1;
}
.home-view.mic-resume.is-live .rec-btn,
.home-view.mic-resume.is-paused .rec-btn {
  pointer-events: auto;
  transform: none;
  opacity: 1;
}
.rec-btn em { font-style: normal; font-size: 13px; font-weight: 650; letter-spacing: .04em; }
.glass-ctrl {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.75);
  background: var(--glass); color: #4338ca; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(59, 130, 246, .16);
}
.rec-btn.stop .glass-ctrl { color: #be123c; }
.glass-ctrl svg { width: 18px; height: 18px; }

.shell.rec-focus { padding: 0; gap: 0; }
.shell.rec-focus .sidebar { display: none; }
.shell.rec-focus .main { border-radius: 0; }
.shell.rec-focus .home-view {
  background:
    radial-gradient(900px 420px at 12% 50%, rgba(125,211,252,.38), transparent 55%),
    radial-gradient(900px 420px at 88% 50%, rgba(255,255,255,.42), transparent 55%);
}

.detail-view { overflow: hidden; display: flex; flex-direction: column; position: relative; }
.detail-view.is-loading .player-bar,
.detail-view.is-loading .mobile-pane-tabs,
.detail-view.is-loading .detail-split,
.detail-view.is-loading .ai-disclaimer { display: none !important; }
.detail-loading[hidden] { display: none !important; }
.detail-loading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 8px 16px 16px;
}
.detail-loading-card {
  width: min(420px, calc(100% - 24px));
  text-align: center;
  background: rgba(255,255,255,.46);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 28px;
  padding: 36px 28px 32px;
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow: var(--shadow);
  animation: fadeUp .28s ease;
}
.detail-loading-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  animation: detailMarkPulse 1.5s ease-in-out infinite;
}
.detail-loading-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #1e1b4b;
}
.detail-loading-card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}
.detail-loading-bar {
  width: min(240px, 72%);
  height: 6px;
  margin: 20px auto 0;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(191, 219, 254, .55);
}
.detail-loading-bar span {
  display: block;
  width: 46%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #2563eb, #7dd3fc);
  animation: shimmerSweep 1.35s ease-in-out infinite;
}
.detail-split.detail-enter { animation: fadeUp .36s ease; }
@keyframes detailMarkPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 8px 16px rgba(59,130,246,.18)); }
  50% { transform: scale(1.07); filter: drop-shadow(0 14px 24px rgba(59,130,246,.34)); }
}
.minutes-top {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 16px 20px 8px;
}
.minutes-brand { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; }
.minutes-brand h1 { margin: 0; font-size: 18px; }
.minutes-meta { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.minutes-meta #detailMeta,
.minutes-meta > .dot { display: none; }
.minutes-meta #detailTitle { outline: none; font-weight: 600; color: var(--ink); }
.minutes-meta #detailTitle:focus { box-shadow: 0 0 0 3px #ddd6fe; border-radius: 6px; }
.minutes-top-actions { align-items: center; }
a.icon-btn { text-decoration: none; color: #2563eb; }
.tf-doc-link .icon-btn-text { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; }
.detail-split {
  display: grid; grid-template-columns: minmax(320px, 1.05fr) 1fr;
  flex: 1; min-height: 0; gap: 14px; padding: 8px 16px 8px;
}
.panel {
  position: relative;
  background: var(--panel); border: 1px solid var(--stroke); border-radius: 24px;
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  backdrop-filter: blur(20px) saturate(160%); box-shadow: var(--shadow);
}
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 18px; }
.panel-head h2, .tab-btn {
  margin: 0; font-size: 16px; display: inline-flex; align-items: center; gap: 8px;
}
.panel-head svg { width: 18px; height: 18px; color: #3b82f6; }
.panel-actions { flex-wrap: wrap; display: flex; gap: 8px; }
.panel-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.tool-chip {
  height: 32px; display: inline-flex; align-items: center;
  padding: 0 10px; border-radius: 999px;
  background: rgba(238, 242, 255, .92); color: #2563eb;
  font-size: 12px; font-weight: 650;
}
.icon-btn {
  height: 32px; min-width: 32px; padding: 0 8px; border: 0; border-radius: 10px;
  background: rgba(238, 242, 255, .92); color: #2563eb;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; font: inherit;
}
.icon-btn:hover { background: #dbeafe; }
.icon-btn:disabled { opacity: .55; cursor: wait; }
.icon-btn.copied { background: #dcfce7; color: #047857; }
.icon-btn.is-primary {
  background: linear-gradient(90deg, #2563eb, #38bdf8); color: #fff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, .22);
}
.icon-btn.is-busy svg { animation: icon-spin .8s linear infinite; }
.icon-btn-text { font-size: 12px; font-weight: 650; white-space: nowrap; }
.panel-head .icon-btn svg,
.minutes-top-actions .icon-btn svg { width: 16px; height: 16px; color: inherit; }
.icon-btn.danger { color: #b91c1c; background: rgba(254, 226, 226, .92); }
.icon-btn.danger:hover { background: #fecaca; }
@keyframes icon-spin { to { transform: rotate(360deg); } }
.muted { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
#player { display: none !important; }
.player-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 0 16px 8px; padding: 7px 10px 7px 7px;
  border-radius: 18px;
  background: rgba(255,255,255,.64);
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 24px rgba(99, 102, 241, .08);
  backdrop-filter: blur(16px);
}
.player-play {
  width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%;
  background: linear-gradient(180deg, #60a5fa, #2563eb); color: #fff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, .28);
  display: grid; place-items: center; cursor: pointer;
}
.player-play svg { width: 16px; height: 16px; }
.player-play .icon-pause { display: none; }
.player-play.is-playing .icon-play { display: none; }
.player-play.is-playing .icon-pause { display: block; }
.player-skip, .player-rate {
  border: 0; background: rgba(238, 242, 255, .92); color: #1d4ed8;
  font: inherit; font-size: 12px; font-weight: 700;
  border-radius: 9px; padding: 5px 7px; cursor: pointer; flex: none;
}
.player-rate { min-width: 46px; }
.player-skip:hover, .player-rate:hover { background: #dbeafe; }
.player-time {
  font-variant-numeric: tabular-nums; font-size: 12px; color: #64748b;
  min-width: 40px; flex: none;
}
.player-dur { text-align: right; }
.player-seek {
  flex: 1; position: relative; height: 18px;
  display: flex; align-items: center; cursor: pointer;
}
.player-seek-rail, .player-seek-buf, .player-seek-fill {
  position: absolute; left: 0; height: 4px; border-radius: 999px; pointer-events: none;
}
.player-seek-rail { right: 0; background: rgba(148, 163, 184, .28); }
.player-seek-buf { width: 0; background: rgba(59, 130, 246, .2); }
.player-seek-fill { width: 0; background: linear-gradient(90deg, #60a5fa, #2563eb); }
.player-seek-knob {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid #2563eb; left: 0;
  transform: translateX(-50%); box-shadow: 0 2px 6px rgba(37,99,235,.25);
  pointer-events: none; opacity: 0; transition: opacity .15s;
}
.player-seek:hover .player-seek-knob,
.player-bar.is-seeking .player-seek-knob { opacity: 1; }
.transcript, .summary, .timeline { flex: 1; overflow: auto; padding: 8px 22px 20px; }
.utt { padding: 10px 8px; border-radius: 10px; cursor: pointer; }
.utt:hover, .utt.active, .talk.active { background: rgba(238, 242, 255, .8); }
.utt.interim { opacity: .7; font-style: italic; background: rgba(237, 233, 254, .7); }
.utt time { color: var(--muted); font-size: 12px; margin-right: 8px; }
.utt b { margin-right: 8px; }

.tab-row { display: flex; gap: 4px; }
.tab-btn {
  border: 0; background: none; padding: 6px 10px; border-radius: 10px; cursor: pointer; font: inherit; color: #6b7280;
}
.tab-btn.active { background: rgba(238,242,255,.9); color: #1e1b4b; font-weight: 700; }
.template-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6b7280; }
.template-label select { border: 1px solid rgba(199,210,254,.8); border-radius: 8px; padding: 4px 8px; font: inherit; }
.search-mini {
  width: 200px; border: 1px solid rgba(199,210,254,.8); border-radius: 999px;
  padding: 7px 12px 7px 14px; font: inherit; background: rgba(255,255,255,.72);
}

.minutes-doc { line-height: 1.8; color: #334155; font-size: 14px; }
.minutes-doc .doc-sec,
.minutes-doc .chapter {
  animation: fadeUp .52s ease both;
}
.minutes-doc .chapter:nth-of-type(2) { animation-delay: .05s; }
.minutes-doc .chapter:nth-of-type(3) { animation-delay: .1s; }
.minutes-doc .chapter:nth-of-type(4) { animation-delay: .15s; }
.minutes-doc .chapter:nth-of-type(5) { animation-delay: .2s; }
.minutes-doc .doc-sec { margin: 0 0 28px; }
.minutes-doc .doc-k {
  display: flex; align-items: center; gap: 8px;
  color: #64748b; font-size: 13px; font-weight: 650; margin: 0 0 10px;
  letter-spacing: .02em;
}
.minutes-doc .doc-k .star { color: #3b82f6; font-size: 14px; }
.minutes-doc .doc-title {
  font-size: 22px; font-weight: 700; line-height: 1.35; margin: 0 0 8px; color: #0f172a;
}
.minutes-doc .doc-lead { margin: 0; font-size: 15px; line-height: 1.85; color: #334155; }
.minutes-doc .requirements-minutes { color: #334155; line-height: 1.85; }
.minutes-doc .requirements-minutes > h1 {
  margin: 0 0 22px; color: #0f172a; font-size: 22px; line-height: 1.35; font-weight: 700;
}
.minutes-doc .requirements-chapter {
  margin: 28px 0 0; padding-top: 22px; border-top: 1px solid rgba(226,232,255,.9);
  animation: fadeUp .52s ease both;
}
.minutes-doc .requirements-chapter:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.minutes-doc .requirements-chapter:nth-of-type(2) { animation-delay: .05s; }
.minutes-doc .requirements-chapter:nth-of-type(3) { animation-delay: .1s; }
.minutes-doc .requirements-chapter:nth-of-type(4) { animation-delay: .15s; }
.minutes-doc .requirements-chapter:nth-of-type(5) { animation-delay: .2s; }
.minutes-doc .requirements-chapter > h2 {
  margin: 0 0 14px; color: #0f172a; font-size: 20px; line-height: 1.4; font-weight: 700;
}
.minutes-doc .requirements-group { margin: 18px 0 0; }
.minutes-doc .requirements-group:first-of-type { margin-top: 0; }
.minutes-doc .requirements-group > h3 {
  margin: 0 0 10px; color: #1e293b; font-size: 16px; line-height: 1.45; font-weight: 700;
}
.minutes-doc .requirements-question {
  margin: 10px 0 0; padding: 12px 14px; border-radius: 12px;
  background: rgba(248,250,252,.85); border: 1px solid rgba(226,232,240,.86);
}
.minutes-doc .requirements-question > h4 {
  margin: 0 0 6px; color: #334155; font-size: 14px; line-height: 1.65; font-weight: 700;
}
.minutes-doc .requirements-answer,
.minutes-doc .requirements-body,
.minutes-doc .requirements-context-field {
  margin: 0; color: #475569; font-size: 14px; line-height: 1.85; white-space: normal;
}
.minutes-doc .requirements-context-field { margin: 7px 0 0; padding-left: 14px; }
.minutes-doc .requirements-context-field strong { color: #334155; font-weight: 700; }
.minutes-doc .internal-outline-structure { margin-top: 16px; }
.minutes-doc .internal-outline-structure > h3 {
  margin: 0 0 12px; color: #1e293b; font-size: 16px; line-height: 1.5; font-weight: 700;
  overflow-wrap: anywhere;
}
.minutes-doc .internal-outline-section {
  margin: 12px 0 0; padding: 14px; border: 1px solid rgba(226,232,240,.86); border-radius: 12px;
  background: rgba(248,250,252,.72); overflow-wrap: anywhere;
}
.minutes-doc .internal-outline-section > h4 {
  margin: 0 0 10px; color: #334155; font-size: 14px; line-height: 1.65; font-weight: 700;
}
.minutes-doc .internal-outline-item { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgba(226,232,240,.9); }
.minutes-doc .internal-outline-item:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.minutes-doc .internal-outline-item > h5 { margin: 0 0 8px; color: #475569; font-size: 14px; line-height: 1.6; }
.minutes-doc .internal-outline-field {
  display: grid; grid-template-columns: minmax(70px, auto) minmax(0, 1fr); gap: 6px 10px; min-width: 0; margin: 6px 0 0;
  color: #475569; font-size: 14px; line-height: 1.75; overflow-wrap: anywhere;
}
.minutes-doc .internal-outline-field strong { color: #334155; font-weight: 700; }
.minutes-doc .chapter { margin: 32px 0 0; padding-top: 22px; border-top: 1px solid rgba(226,232,255,.9); }
.minutes-doc .chapter:first-of-type { margin-top: 8px; }
.minutes-doc .chapter h3,
.minutes-doc .jump-main h3 {
  margin: 0 0 12px; font-size: 20px; font-weight: 700; line-height: 1.4; color: #0f172a;
}
.minutes-doc .chapter > p { margin: 0 0 14px; font-size: 14px; line-height: 1.85; color: #475569; }
.minutes-doc .subsec { margin: 8px 0 0; }
.minutes-doc .subsec h4,
.minutes-doc .jump-main h4 {
  margin: 0 0 8px; font-size: 16px; font-weight: 700; line-height: 1.45; color: #1e293b;
}
.minutes-doc .subsec p,
.minutes-doc .jump-main p { margin: 0 0 8px; font-size: 14px; line-height: 1.8; color: #475569; }
.minutes-doc .at { font-style: normal; color: #2563eb; font-weight: 650; }
.jump-card {
  position: relative;
  display: block;
  padding: 10px 12px; margin: 0 -12px 8px;
  border: 1px solid transparent; border-radius: 12px;
  box-sizing: border-box;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.jump-card .jump-main { min-width: 0; }
.jump-card .jump-main h3,
.jump-card .jump-main h4 { margin-top: 0; }
.jump-toolbar {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  display: flex; flex-wrap: nowrap; align-items: center; gap: 6px;
  opacity: 0; pointer-events: none;
  transition: opacity .16s ease;
}
.jump-card:hover .jump-toolbar,
.jump-card:focus-within .jump-toolbar {
  opacity: 1; pointer-events: auto;
}
.jump-line { cursor: pointer; }
.jump-line .jump-text { text-decoration: none; }
.jump-card:hover,
.jump-card:focus-within,
.jump-line:hover,
.jump-line:focus-within {
  border-color: #7db7ff;
  background: rgba(239, 246, 255, .88);
  box-shadow: 0 0 0 1px rgba(125, 183, 255, .28);
}
.jump-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; width: 100%;
}
.jump-text { flex: 1; min-width: 0; }
.jump-times {
  display: flex; flex-wrap: nowrap; gap: 6px; flex: none; align-items: center;
}
.jump-row .time-chip {
  opacity: 0; pointer-events: none;
  transition: opacity .16s ease;
}
.jump-line:hover .jump-row .time-chip,
.jump-line:focus-within .jump-row .time-chip {
  opacity: 1; pointer-events: auto;
}
.minutes-doc .doc-todo.jump-line {
  margin-left: -10px;
  margin-right: -10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  border-bottom-color: transparent;
}
.time-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 24px; padding: 0 8px 0 6px; border-radius: 999px;
  border: 0; background: #e8f2ff;
  color: #1d4ed8; font: inherit; font-size: 12px; font-weight: 650;
  line-height: 1; white-space: nowrap; cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: background-color .16s ease, color .16s ease;
}
.time-chip svg { width: 10px; height: 10px; flex: none; }
.time-chip:hover { background: #d7e9ff; }
.jump-copy {
  width: 24px; height: 24px; border: 0; border-radius: 8px;
  background: #e8f2ff; color: #2563eb;
  display: grid; place-items: center; cursor: pointer; flex: none;
  opacity: 0; pointer-events: none;
  transition: opacity .16s ease, background-color .16s ease, color .16s ease;
}
.jump-card:hover .jump-copy,
.jump-card:focus-within .jump-copy {
  opacity: 1; pointer-events: auto;
}
.jump-copy svg { width: 13px; height: 13px; }
.jump-copy.copied { background: #dcfce7; color: #047857; }
@media (hover: none) {
  .jump-copy,
  .jump-toolbar,
  .jump-row .time-chip { opacity: 1; pointer-events: auto; }
  .jump-card { padding-right: 96px; }
}
.talk.active, .utt.active { background: rgba(219, 234, 254, .85); }
.minutes-doc ul { margin: 4px 0 0; padding-left: 20px; }
.minutes-doc li { margin: 8px 0; font-size: 14px; line-height: 1.75; color: #334155; }
.minutes-doc .wait { color: var(--muted); padding: 24px 0; }
.doc-todo {
  display: grid; grid-template-columns: 20px 1fr auto auto; gap: 10px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(226,232,255,.7);
}
.doc-todo:last-child { border-bottom: 0; }
.doc-check {
  width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #93c5fd;
  background: #fff;
}
.doc-todo .who { display: inline-flex; align-items: center; gap: 6px; color: #475569; font-size: 12px; }
.doc-todo .due { color: #64748b; font-size: 12px; }

.talk { display: flex; gap: 10px; padding: 12px 6px; border-radius: 12px; cursor: pointer; }
.talk:hover { background: rgba(248,250,252,.7); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; flex: none;
}
.talk-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.talk-meta b { font-size: 13px; }
.talk-meta time { color: var(--muted); font-size: 12px; }
.talk p { margin: 0; line-height: 1.65; }
.talk b[contenteditable] {
  outline: none; cursor: text; border-radius: 6px;
  padding: 0 4px; margin: 0 -4px;
}
.talk b[contenteditable]:hover,
.talk b[contenteditable]:focus {
  background: rgba(37, 99, 235, .08);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, .28);
}
.tl-list { max-width: 720px; padding: 6px 0 12px; }
.tl-seg {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px;
  padding: 10px 12px; margin: 0 -12px 12px; width: auto;
  border: 1px solid transparent; border-radius: 10px; background: none;
  text-align: left; font: inherit; cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.tl-seg:hover, .tl-seg.active {
  border-color: #93c5fd; background: rgba(239, 246, 255, .72);
}
.tl-seg:last-child { margin-bottom: 0; }
.tl-time {
  border: 0; background: none; padding: 0; margin: 2px 0 0;
  color: #2563eb; font: inherit; font-size: 14px; font-weight: 650;
  text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 3px; cursor: pointer;
  text-align: left; line-height: 1.6;
  transition: text-decoration-color .16s ease, color .16s ease;
}
.tl-seg:hover .tl-time, .tl-seg.active .tl-time {
  color: #1d4ed8; text-decoration-color: #2563eb;
}
.tl-main h3 {
  margin: 0 0 8px; font-size: 17px; font-weight: 700; color: #0f172a; line-height: 1.45;
}
.tl-seg:hover .tl-main h3, .tl-seg.active .tl-main h3 { color: #1e3a8a; }
.tl-main p { margin: 0; color: #334155; font-size: 14px; line-height: 1.85; }
.menu { position: relative; }
.menu-list {
  position: absolute; right: 0; top: 36px; background: rgba(255,255,255,.92); border: 1px solid rgba(199,210,254,.8);
  border-radius: 10px; box-shadow: var(--shadow); min-width: 140px; z-index: 5; padding: 6px;
}
.menu-list a { display: block; padding: 8px 10px; color: inherit; text-decoration: none; border-radius: 8px; }
.menu-list a:hover { background: #eef2ff; }

.xiaoji { padding: 8px 14px 14px; }
.xiaoji-log { max-height: 150px; overflow: auto; }
.xiaoji-log:empty { display: none; }
.xiaoji-msg { background: rgba(255,255,255,.8); border: 1px solid rgba(199,210,254,.7); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; font-size: 13px; white-space: pre-wrap; }
.xiaoji-msg.me { background: #eef2ff; border-color: #c7d2fe; }
.xiaoji-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.xiaoji-chips button {
  border: 1px solid #c7d2fe; background: rgba(255,255,255,.75); color: #4338ca; border-radius: 999px;
  padding: 6px 10px; font: inherit; font-size: 12px; cursor: pointer;
}
.xiaoji-form {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.7); border: 1px solid var(--stroke);
  border-radius: 999px; padding: 6px 8px 6px 14px;
}
.xiaoji-star { color: #3b82f6; }
.xiaoji-form input {
  flex: 1; border: 0; background: transparent; padding: 8px 4px; font: inherit; outline: none;
}
.xiaoji-send {
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff; cursor: pointer; font-size: 16px;
}
.ai-disclaimer { text-align: center; color: #94a3b8; font-size: 12px; margin: 0 0 10px; }

.ghost-btn, .link, .nav-btn, .orb, .import-chip, .dock-card, .btn-primary, .auth-btn, .mobile-pane-tab, .icon-btn, .player-play, .player-skip, .player-rate {
  touch-action: manipulation;
}
.ghost-btn, .link {
  border: 1px solid rgba(255,255,255,.75); background: rgba(255,255,255,.58); border-radius: 999px;
  padding: 7px 14px; cursor: pointer; color: #4338ca; font: inherit; text-decoration: none;
  backdrop-filter: blur(10px);
}
.ghost-btn.danger { color: var(--bad); }
.ghost-btn:disabled { opacity: .55; cursor: wait; }
.btn-primary, .auth-btn {
  position: relative; overflow: hidden;
  border: 0; border-radius: 999px; padding: 11px 18px; color: #fff; cursor: pointer; font: inherit; font-weight: 650;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .25);
}
.btn-primary::after, .auth-btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 18%, rgba(255,255,255,.42) 48%, transparent 78%);
  transform: translateX(-130%);
  mix-blend-mode: overlay;
  animation: shimmerSweep 2.8s ease-in-out infinite;
}
.btn-primary:disabled, .auth-btn:disabled { opacity: .55; cursor: not-allowed; }

.upload-btn {
  min-width: 108px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: min-width .2s ease, width .2s ease, height .2s ease, padding .2s ease, border-radius .2s ease;
}
.upload-btn-meter {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
}
.upload-ring {
  width: 40px;
  height: 40px;
  transform: rotate(-90deg);
}
.upload-ring-track, .upload-ring-value {
  fill: none;
  stroke-width: 3.2;
}
.upload-ring-track { stroke: rgba(255,255,255,.32); }
.upload-ring-value {
  stroke: #fff;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset .16s linear;
}
.upload-btn-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1;
}
.upload-btn.is-uploading {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  opacity: 1;
  cursor: wait;
}
.upload-btn.is-uploading::after,
.upload-btn.is-saving::after { display: none; }
.upload-btn.is-uploading:disabled { opacity: 1; }
.upload-btn.is-saving .upload-ring { animation: uploadSpin 1s linear infinite; }
.upload-btn.is-saving .upload-ring-value { stroke-dashoffset: 72; transition: none; }
@keyframes uploadSpin {
  to { transform: rotate(270deg); }
}

.settings-card, .modal-card {
  position: relative;
  background: rgba(255,255,255,.58); border: 1px solid var(--stroke);
  border-radius: 24px; padding: 28px; backdrop-filter: blur(20px); box-shadow: var(--shadow);
}
.settings-card { max-width: 640px; }
.settings-card h1 { margin: 0 0 8px; }
.settings-account, .stats-account {
  display: none;
  align-items: center; gap: 12px;
  margin: 0 0 18px; padding: 14px 16px;
  border-radius: 16px; background: rgba(255,255,255,.55);
  border: 1px solid var(--stroke);
}
.stats-account { margin: 0; }
.settings-account .user-meta, .stats-account .user-meta { display: block; }
.settings-account .ghost-btn, .stats-account .ghost-btn { margin-left: auto; }
.mobile-pane-tabs { display: none; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; margin: 18px 0 22px; }
.kv dt { color: var(--muted); }
.settings-card label { display: block; margin: 12px 0; font-size: 13px; color: #4b5563; }
.hint { color: var(--muted); font-size: 12px; }

.modal {
  position: fixed; inset: 0; background: transparent;
  display: grid; place-items: center; z-index: 30;
}
.modal-card { width: min(520px, calc(100% - 32px)); }
.modal-card h2 { margin: 0 0 14px; }
.silence-reminder-modal { z-index: 46; }
.silence-reminder-card {
  width: min(430px, calc(100% - 32px));
  text-align: center;
}
.silence-reminder-icon {
  width: 54px; height: 54px; margin: 0 auto 14px;
  display: grid; place-items: center;
  color: #2563eb;
  border-radius: 18px;
  background: linear-gradient(180deg, #dbeafe, #bfdbfe);
}
.silence-reminder-icon svg { width: 28px; height: 28px; }
.silence-reminder-card h2 { margin-bottom: 8px; color: #1e1b4b; }
.silence-reminder-card p { margin: 0; color: #64748b; line-height: 1.7; }
.silence-reminder-card .modal-actions { justify-content: center; }
.silence-end-btn { color: #b91c1c; }

.import-tencent-hint {
  margin: 0 0 12px;
  color: #475569;
  font-size: 13px;
  line-height: 1.7;
}
.dropzone {
  display: block; padding: 32px 16px; text-align: center; cursor: pointer;
  border: 1.5px dashed #c7d2fe; border-radius: 16px; background: rgba(238,242,255,.45); margin-bottom: 12px;
}
.dropzone em { display: block; margin-top: 8px; color: #6366f1; font-style: normal; font-size: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.modal-card label { display: block; font-size: 13px; color: #4b5563; margin: 8px 0; }
.page-modal { z-index: 28; background: transparent; }
.page-modal-card {
  position: relative;
  width: min(1100px, calc(100% - 48px));
  height: min(72vh, 720px);
  max-height: min(72vh, 720px);
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 20px 20px 14px;
}
.page-modal-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.page-modal-pane[hidden] { display: none !important; }
.page-modal,
.page-modal * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.page-modal::-webkit-scrollbar,
.page-modal *::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.page-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 12px; flex-wrap: wrap; flex: none;
}
.page-modal-heading {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; flex: 1;
}
.page-modal-head h2 {
  margin: 0; font-size: 20px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.page-modal-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-modal .page-switch { display: inline-flex !important; }
.page-modal-search {
  width: 100%; margin: 0 0 12px; flex: none;
  border: 1px solid rgba(199,210,254,.85); border-radius: 12px;
  padding: 10px 12px; font: inherit; background: rgba(255,255,255,.8);
}
#pageModalCard[data-page="records"],
#pageModalCard[data-page="team"] { padding-bottom: 72px; }
#viewRecords .records-list { padding-bottom: 20px; }
.team-list-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.team-list-toolbar .page-modal-search {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.team-sort-switch {
  display: inline-flex;
  flex: none;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(199,210,254,.85);
  border-radius: 12px;
  background: rgba(255,255,255,.66);
}
.team-sort-switch button {
  border: 0;
  border-radius: 9px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  color: #64748b;
  background: transparent;
  cursor: pointer;
}
.team-sort-switch button.active {
  color: #3730a3;
  background: #fff;
  box-shadow: 0 3px 10px rgba(99,102,241,.12);
}
#teamMeetingList { gap: 8px; padding-bottom: 20px; }
#teamMeetingList > .meeting-item { flex: none; }
.team-minutes-btn {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 4;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .26);
  cursor: pointer;
}
.team-minutes-btn[hidden] { display: none !important; }
.team-minutes-btn:hover { filter: brightness(1.06); }
.team-project-list {
  flex: 1; min-height: 0; overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  gap: 14px;
  align-content: start;
  justify-content: start;
  padding: 4px 2px 12px;
}
.team-project-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  min-height: 148px; width: 100%; text-align: left;
  border: 1px solid rgba(199,210,254,.9);
  background: rgba(255,255,255,.9);
  border-radius: 20px;
  padding: 18px 18px 16px;
  font: inherit; color: inherit; cursor: pointer;
  box-shadow: 0 10px 24px rgba(37,99,235,.08);
}
.team-project-card:hover {
  background: #fff;
  border-color: rgba(147,197,253,.98);
  box-shadow: 0 14px 28px rgba(37,99,235,.14);
  transform: translateY(-1px);
}
.team-project-ico {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 14px;
  color: #2563eb;
  background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
}
.team-project-ico svg { width: 22px; height: 22px; }
.team-project-card.is-other .team-project-ico {
  color: #64748b;
  background: linear-gradient(180deg, #eef2ff 0%, #e2e8f0 100%);
}
.team-project-meta { min-width: 0; width: 100%; }
.team-project-card strong {
  display: -webkit-box;
  font-size: 16px; font-weight: 750; color: #1e1b4b; line-height: 1.35;
  overflow: hidden;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.team-project-count {
  margin-top: auto;
  font-size: 12px; font-weight: 700; color: #2563eb;
  background: rgba(219,234,254,.9);
  border-radius: 999px;
  padding: 4px 10px;
}
.team-project-card em {
  display: block; margin-top: 6px;
  font-style: normal; font-size: 12px; color: #64748b;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.move-group-card { width: min(440px, calc(100% - 32px)); }
.move-group-card .muted { margin: 0 0 12px; }
.move-group-list {
  display: flex; flex-direction: column; gap: 8px;
  max-height: min(52vh, 420px); overflow: auto;
  margin: 0 0 8px;
}
.move-group-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left;
  border: 1px solid rgba(199,210,254,.9);
  background: rgba(255,255,255,.92);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit; color: inherit; cursor: pointer;
}
.move-group-item strong {
  display: block; font-size: 14px; font-weight: 750; color: #1e1b4b;
}
.move-group-item em {
  display: block; margin-top: 4px;
  font-style: normal; font-size: 12px; color: #64748b;
}
.move-group-item.is-current {
  border-color: #93c5fd;
  background: #eff6ff;
  cursor: default;
}
.move-group-item:not(.is-current):hover {
  background: #fff;
  border-color: #60a5fa;
}
.team-back-btn {
  display: inline-flex; align-items: center; gap: 4px;
  flex: none; width: auto;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px 7px 8px;
  font: inherit; font-size: 13px; font-weight: 700;
  color: #2563eb;
  background: #eef4ff;
  cursor: pointer;
}
.team-back-btn svg { width: 16px; height: 16px; }
.team-back-btn:hover { background: #dbeafe; }
.team-back-btn[hidden] { display: none !important; }
.team-pane-title {
  display: none;
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 750;
  color: #1e1b4b;
}
.share-card { width: min(640px, calc(100% - 32px)); }
.share-card .muted { margin: 0 0 12px; }
.share-kind-list { display: grid; gap: 10px; margin: 4px 0 8px; }
.share-kind-card {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  text-align: left;
  border: 1px solid rgba(199,210,254,.85);
  background: rgba(255,255,255,.62);
  border-radius: 16px; padding: 14px 16px;
  font: inherit; color: inherit;
}
.share-kind-copy { min-width: 0; display: grid; gap: 4px; }
.share-kind-card strong { font-size: 15px; color: #1e1b4b; }
.share-kind-card span {
  font-size: 13px; line-height: 1.5; color: #64748b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.share-kind-actions { display: flex; gap: 8px; flex: none; }
.share-kind-actions .ghost-btn,
.share-kind-actions .btn-primary {
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 13px;
}
@media (max-width: 720px) {
  .share-kind-card {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
  }
  .share-kind-card span { white-space: normal; }
  .share-kind-actions { justify-content: flex-end; }
}
.share-search {
  width: 100%; border: 1px solid rgba(199,210,254,.85); border-radius: 12px;
  padding: 10px 12px; font: inherit; background: rgba(255,255,255,.8);
}
.share-current, .share-picked { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.share-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px; border-radius: 999px; font-size: 12px;
  background: rgba(238,242,255,.95); color: #1d4ed8;
}
.share-chip button {
  border: 0; background: none; color: inherit; cursor: pointer; font: inherit; padding: 0; line-height: 1;
}
.share-list {
  max-height: min(42vh, 320px); overflow: auto; margin: 8px 0 0;
  border: 1px solid rgba(199,210,254,.7); border-radius: 14px;
  background: rgba(255,255,255,.55);
}
.share-item, .people-suggest button {
  width: 100%; border: 0; background: transparent; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; font: inherit; cursor: pointer; color: inherit;
}
.share-item:hover, .share-item.on, .people-suggest button:hover, .people-suggest button.on {
  background: #eef2ff;
}
.share-item em, .people-suggest em { color: #94a3b8; font-style: normal; font-size: 12px; }
.share-exports { display: flex; gap: 12px; margin-top: 12px; }
.share-exports a { color: #2563eb; font-size: 13px; text-decoration: none; }
.people-suggest {
  position: fixed; z-index: 40; min-width: 180px;
  background: rgba(255,255,255,.96); border: 1px solid rgba(199,210,254,.85);
  border-radius: 12px; box-shadow: var(--shadow); padding: 4px;
  max-height: 240px; overflow: auto;
}
.app-toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 10px);
  z-index: 50;
  min-width: 220px;
  max-width: min(520px, calc(100% - 32px));
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(236, 253, 245, .96);
  color: #047857;
  border: 1px solid rgba(167, 243, 208, .95);
  box-shadow: 0 16px 36px rgba(4, 120, 87, .16);
  backdrop-filter: blur(16px) saturate(160%);
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.app-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.speaker-card { width: min(560px, calc(100% - 32px)); }
.speaker-card .muted { margin: 0 0 16px; font-size: 13px; }
.speaker-fields { display: grid; gap: 10px; max-height: min(52vh, 420px); overflow: auto; }
.speaker-row {
  display: grid; grid-template-columns: minmax(120px, 0.9fr) 1.2fr; gap: 12px; align-items: center;
  margin: 0; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.55);
}
.speaker-row span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.speaker-row b { font-size: 14px; color: #1e1b4b; }
.speaker-row small { color: #64748b; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.speaker-row input {
  width: 100%; border: 1px solid rgba(199, 210, 254, .9); border-radius: 12px; padding: 10px 12px; font: inherit;
  background: rgba(255,255,255,.86);
}

.auth-overlay {
  position: fixed; inset: 0; z-index: 40; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(800px 480px at 16% 18%, rgba(125,211,252,.5), transparent 60%),
    radial-gradient(760px 460px at 88% 22%, rgba(255,255,255,.7), transparent 58%),
    linear-gradient(115deg, #b3e0ff, #ffffff);
}
.scene-waves {
  position: absolute; inset: 18% 0 22%; width: 100%; height: 60%; z-index: 0; pointer-events: none;
  animation: waveFloat 16s ease-in-out infinite alternate;
}
.scene-waves path {
  fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.4;
  stroke-dasharray: 12 18;
  animation: waveDrift 18s linear infinite;
}
.scene-waves path:nth-child(2) { animation-duration: 24s; animation-direction: reverse; opacity: .8; }
.scene-waves path:nth-child(3) { animation-duration: 20s; opacity: .7; }
.home-waves {
  inset: 22% 0 18%;
  opacity: .9;
}
.scene-beams {
  position: absolute; inset: 8% 0 12%; width: 100%; height: 80%; z-index: 0; pointer-events: none;
}
.scene-beams path {
  fill: none; stroke: url(#beamGrad); stroke-width: 1.6;
  stroke-dasharray: 90 380;
  animation: beamRun 7.2s linear infinite;
}
.scene-beams .b2 { animation-duration: 9s; animation-delay: -2.4s; opacity: .75; }
.scene-beams .b3 { animation-duration: 8s; animation-delay: -4.8s; opacity: .6; }
#authBox { position: relative; z-index: 2; perspective: 1100px; }
.auth-card {
  width: min(400px, calc(100% - 32px));
  position: relative;
  background: rgba(255,255,255,.42);
  border-radius: 28px; padding: 36px 32px 28px;
  box-shadow: 0 30px 80px rgba(99,102,241,.16), 0 0 0 1px rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(22px) saturate(180%);
  transform-style: preserve-3d;
  transition: transform .18s ease;
}
.auth-logo {
  width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 12px 28px rgba(59,130,246,.35);
  position: relative;
}
.auth-logo::after {
  content: ""; position: absolute; inset: -7px;
  border: 2px solid rgba(147,197,253,.7); border-radius: 50%;
  border-left-color: transparent; transform: rotate(-24deg);
}
.auth-logo svg { width: 34px; height: 34px; }
.auth-card h1 {
  margin: 0 0 6px; text-align: center; font-size: 26px;
  display: flex; justify-content: center; align-items: center; gap: 10px;
}
.auth-card h1 .star { color: #60a5fa; font-size: 14px; }
.auth-sub { text-align: center; color: var(--muted); margin-bottom: 22px; font-size: 13px; }
.auth-field {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.8);
  border-radius: 14px; padding: 0 14px; margin-top: 12px;
}
.auth-field svg { width: 18px; height: 18px; color: #93c5fd; flex: none; }
.auth-field input {
  width: 100%; border: 0; background: transparent; padding: 12px 0; font: inherit; outline: none;
}
.auth-btn { width: 100%; margin-top: 18px; padding: 12px; }
.auth-footer { text-align: center; margin-top: 16px; color: var(--muted); font-size: 13px; }
.link { cursor: pointer; text-decoration: underline; border: 0; background: none; padding: 0; }
.error, .ok { padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 10px; }
.error { background: #fef2f2; color: var(--bad); }
.ok { background: #f0fdf4; color: var(--good); }

html.is-generating, body.is-generating { overflow: hidden; overscroll-behavior: none; }
body.is-generating #app {
  visibility: hidden;
  pointer-events: none;
}
.gen-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%; height: 100dvh;
  z-index: 36; overflow: hidden;
  display: flex; flex-direction: column;
  background:
    radial-gradient(800px 480px at 16% 18%, rgba(125,211,252,.48), transparent 60%),
    radial-gradient(760px 460px at 88% 22%, rgba(255,255,255,.7), transparent 58%),
    linear-gradient(115deg, #b3e0ff, #ffffff);
  overscroll-behavior: none;
  touch-action: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.gen-card {
  width: min(420px, calc(100% - 48px));
  margin: auto;
  background: rgba(255,255,255,.46);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 28px;
  padding: 42px 36px 36px;
  text-align: center;
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow: var(--shadow);
  position: relative; z-index: 2;
}
.gen-ring { position: relative; width: 168px; height: 168px; margin: 0 auto 22px; }
.gen-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gen-ring .track { fill: none; stroke: rgba(199,210,254,.55); stroke-width: 6; }
.gen-ring .arc {
  fill: none; stroke: url(#genGrad); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset .45s ease;
  filter: drop-shadow(0 0 6px rgba(96,165,250,.7));
}
.gen-ring strong {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 36px; color: #3b82f6; font-weight: 750;
}
.gen-card h2 { margin: 0 0 8px; font-size: 26px; color: #1e1b4b; }
.gen-card p { margin: 0; color: #64748b; font-size: 14px; }
.gen-card { pointer-events: auto; }
.gen-cancel {
  margin-top: 22px;
  color: #64748b;
  background: rgba(255,255,255,.62);
  pointer-events: auto;
  touch-action: manipulation;
  position: relative;
  z-index: 3;
}
@media (hover: hover) {
  .gen-cancel:hover { color: #334155; background: rgba(255,255,255,.86); }
}
.gen-cancel:disabled { opacity: .55; cursor: wait; }
.gen-overlay.is-countdown #genPct {
  font-size: 48px;
  font-variant-numeric: tabular-nums;
}
.gen-overlay.is-countdown .gen-card p { line-height: 1.55; }
.text-gen span {
  display: inline-block;
  opacity: 0;
  filter: blur(7px);
  transform: translateY(8px);
  animation: textGen .42s ease forwards;
}
@media (hover: hover) {
  .stats-kpi:hover, .stats-month-card:hover, .stats-tile:hover:not(.is-mix) {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(37,99,235,.12);
  }
}

@keyframes shinyText {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
@keyframes shimmerSweep {
  0% { transform: translateX(-130%); }
  55%, 100% { transform: translateX(130%); }
}
@keyframes waveDrift {
  to { stroke-dashoffset: -240; }
}
@keyframes waveFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}
@keyframes beamRun {
  to { stroke-dashoffset: -470; }
}
@keyframes textGen {
  to { opacity: 1; filter: none; transform: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .detail-split { grid-template-columns: minmax(280px, 1fr) 1fr; }
  .search-mini { width: 150px; }
}

@media (max-width: 900px) and (min-width: 721px) {
  .shell { padding: 10px; gap: 10px; }
  .detail-split { display: block; overflow: auto; }
  .form-row { display: block; }
  .sidebar { width: 76px; }
  .side-fold { display: none; }
  .sidebar .brand-text, .sidebar .nav-btn span, .sidebar .user-meta, .sidebar .user-bar .ghost-btn { display: none; }
  .side-nav { padding: 12px 10px; }
  .nav-btn { justify-content: center; padding: 12px 8px; }
  .page-view, .settings-view, .stats-view { padding: 80px 14px 18px; }
  .stats-month-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-overview { grid-template-columns: 1fr 1fr 1fr 80px; }
  .stats-board { grid-template-columns: 1fr; }
  .stats-hero-card { grid-row: auto; min-height: 240px; }
  .stats-chart-body { grid-template-columns: 1fr; }
  .stats-bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .stats-tile.is-hero { grid-column: 1 / -1; grid-row: auto; min-height: 220px; }
  .stats-tile.is-mix { grid-column: 1 / -1; }
  .minutes-top { grid-template-columns: 1fr; }
  .search-mini { width: 120px; }
  .halo-c { display: none; }
  .orb { width: 136px; height: 136px; }
  .orb-actions strong { font-size: 32px; }
  .live-caption { top: calc(50% + 220px); font-size: 14px; max-width: 90%; }
  .live-workspace {
    width: min(920px, calc(100% - 48px));
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .shell {
    flex-direction: column;
    height: var(--app-height, 100dvh);
    max-height: var(--app-height, 100dvh);
    padding: 0;
    gap: 0;
  }
  .sidebar {
    order: 2;
    z-index: 8;
    width: 100%;
    flex-direction: row;
    align-items: stretch;
    border-radius: 18px 18px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    background: rgba(255,255,255,.78);
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
  }
  .side-top, .user-bar, .side-fold { display: none; }
  .side-nav {
    display: flex;
    flex: 1;
    padding: 0;
    gap: 4px;
    align-content: stretch;
  }
  .nav-btn {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    padding: 8px 4px 6px;
    border-radius: 14px;
    font-size: 11px;
    line-height: 1.15;
    color: #64748b;
    min-height: 52px;
  }
  .nav-btn span { display: block; }
  .nav-btn svg { width: 22px; height: 22px; }
  .nav-btn.active {
    color: #2563eb;
    background: rgba(255,255,255,.92);
  }
  .nav-btn.recording { color: #fff; }
  .nav-btn:hover { transform: none; }
  .main {
    order: 1;
    flex: 1;
    min-height: 0;
    border-radius: 0;
  }
  .page-view, .settings-view { padding: 68px 14px 12px; }
  .stats-view { overflow: auto; padding: 64px 12px 10px; }
  .app-top { padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 0; }
  .user-chip { gap: 6px; padding: 4px 5px 4px 4px; }
  .user-chip .user-meta { display: none; }
  .live-bar { margin: 68px 12px 8px; }
  .stats-overview { grid-template-columns: 1fr 1fr; }
  .stats-head { flex-direction: column; align-items: stretch; }
  .stats-head-right { width: 100%; }
  .stats-range { width: 100%; justify-content: space-between; }
  .stats-board { grid-template-columns: 1fr; gap: 10px; }
  .stats-hero-card { grid-row: auto; min-height: 0; padding: 18px 16px 16px; }
  .stats-clock { width: 120px; height: 120px; right: 0; top: 16px; }
  .stats-hero-num { margin: 18px 0 6px; }
  .stats-hero-num b { font-size: 48px; }
  .stats-tip { position: static; margin-top: 16px; max-width: none; border-radius: 16px; }
  .stats-chart-body { grid-template-columns: 1fr; }
  .stats-chart-focus { padding-top: 0; }
  .stats-bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 10px; }
  .stats-tile { border-radius: 18px; padding: 14px 14px 12px; }
  .stats-tile.is-hero { grid-column: 1 / -1; grid-row: auto; min-height: 200px; }
  .stats-hero-spark { height: 56px; }
  .stats-tile.is-mix { grid-column: 1 / -1; padding: 0; }
  .stats-kpi-grid strong { font-size: 18px; }
  .stats-flags { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .stats-flag { grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; gap: 8px; padding: 10px 12px; }
  .stats-month-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-table-wrap { flex: none; }
  .stats-table-scroll { overflow: auto; }
  .page-head {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 12px;
  }
  .page-head-main { width: 100%; }
  .page-head h1 { font-size: 22px; }
  .page-toolbar { max-width: none; }
  .form-row { display: block; }

  .landing-top {
    padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 0;
  }
  .landing-brand strong { font-size: 15px; }
  .import-chip { padding: 8px 12px 8px 10px; font-size: 12px; }
  .home-import-mobile { display: none; }
  .page-switch { display: none !important; }
  .sidebar { display: none !important; }
  .page-modal {
    padding: 0;
    background: transparent;
  }
  .page-modal-card.modal-card {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  #pageModalCard[data-page="records"],
  #pageModalCard[data-page="team"] {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
  .team-minutes-btn {
    right: 14px;
    bottom: max(10px, calc(8px + env(safe-area-inset-bottom, 0px)));
  }
  .team-pane-title { display: block; }
  .team-list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .team-sort-switch { align-self: flex-start; }
  .team-project-list {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
  }
  .team-project-card { min-height: 132px; padding: 14px; border-radius: 18px; }
  .team-project-card strong { font-size: 15px; }
  .team-back-btn { padding: 8px 14px 8px 10px; }
  .home-dock {
    display: flex;
    top: auto;
    bottom: max(28px, calc(16px + env(safe-area-inset-bottom, 0px)));
    gap: 8px;
    max-width: calc(100% - 16px);
  }
  .dock-card {
    width: auto;
    flex: 1 1 0;
    max-width: 96px;
    min-width: 68px;
    min-height: 70px;
    padding: 10px 4px 8px;
    border-radius: 16px;
  }
  .mic-banner { margin: 10px 12px 0; font-size: 12px; }
  .halo-c { display: none; }
  .home-stage {
    inset:
      calc(52px + env(safe-area-inset-top, 0px))
      max(10px, env(safe-area-inset-right, 0px))
      calc(10px + env(safe-area-inset-bottom, 0px))
      max(10px, env(safe-area-inset-left, 0px));
  }
  .ripple { --ripple: 140px; }
  .voice-ripple { --ripple: 140px; }
  .orb { width: 132px; height: 132px; }
  .orb .mic-icon { width: 44px; height: 44px; }
  .orb-hint {
    top: calc(50% + 86px);
    font-size: 13px;
    letter-spacing: .12em;
    white-space: normal;
    width: min(92vw, 360px);
  }
  .home-view { --orb-shift: 86px; --live-stack: 190px; --live-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
  .rec-sides { width: min(340px, 100%); --pop: 96px; }
  .glass-ctrl { width: 46px; height: 46px; }
  .orb-actions strong { font-size: 30px; }
  .live-caption {
    top: auto;
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
    font-size: 13px;
    line-height: 1.5;
    max-width: min(92vw, 520px);
    max-height: 28vh;
    overflow: auto;
    padding: 8px 12px;
  }
  .live-speech-at { font-size: 12px; white-space: normal; }
  .shell.rec-focus .live-caption { bottom: max(28px, env(safe-area-inset-bottom, 0px)); }
  .home-view { --orb-shift: 64px; --live-stack: 188px; }
  .home-view.is-live,
  .home-view.is-paused { --orb-top: 20%; }
  .home-view.is-live .orb,
  .home-view.is-paused .orb { width: 84px; height: 84px; }
  .home-view.is-live .orb .mic-icon,
  .home-view.is-paused .orb .mic-icon { width: 30px; height: 30px; }
  .home-view.is-live .orb-actions strong,
  .home-view.is-paused .orb-actions strong { font-size: 22px; }
  .home-view.is-live .rec-sides,
  .home-view.is-paused .rec-sides { width: min(280px, 92%); --pop: 78px; }
  .live-workspace {
    left: 50%;
    right: auto;
    width: calc(100% - 24px);
    height: auto;
    max-height: none;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }
  .live-pane {
    height: auto;
    max-height: none;
    border-radius: 16px;
  }
  .live-pane-head { padding: 10px 12px 4px; }
  .live-pane-head h2 { font-size: 13px; }
  .live-transcript, .live-notes { padding: 2px 12px 10px; font-size: 14px; }
  .notes-item-list { max-height: none; padding: 0 10px 2px; }
  .notes-item-open { font-size: 12px; padding: 4px 8px; }


  .detail-view { min-height: 0; }
  .detail-loading { margin: 0 10px 10px; }
  .detail-loading-card { padding: 28px 20px 24px; border-radius: 22px; }
  .detail-loading-card h2 { font-size: 18px; }
  .detail-loading-mark { width: 52px; height: 52px; }
  .minutes-top {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 6px;
  }
  .minutes-brand { justify-content: flex-start; flex: 1; min-width: 0; }
  .minutes-brand > div { min-width: 0; overflow: hidden; }
  .minutes-brand h1 { display: none; }
  .minutes-brand .brand-mark { display: none; }
  .minutes-meta { font-size: 13px; }
  .minutes-meta #detailTitle {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .minutes-top-actions {
    width: auto;
    overflow: visible;
    flex-wrap: nowrap;
    padding-bottom: 0;
  }
  .minutes-top-actions .ghost-btn,
  .minutes-top-actions .icon-btn,
  .minutes-top-actions .tf-doc-link { flex: none; }
  .speaker-row { grid-template-columns: 1fr; gap: 8px; }
  .player-bar { margin: 0 12px 8px; padding: 6px 8px 6px 6px; gap: 6px; }
  .player-play { width: 32px; height: 32px; }
  .player-skip { display: none; }
  .mobile-pane-tabs {
    display: flex;
    gap: 6px;
    margin: 0 12px 8px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255,255,255,.5);
    border: 1px solid var(--stroke);
  }
  .mobile-pane-tab {
    flex: 1;
    border: 0;
    background: transparent;
    border-radius: 11px;
    padding: 9px 8px;
    font: inherit;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
  }
  .mobile-pane-tab.active {
    background: rgba(255,255,255,.92);
    color: #1e3a8a;
    font-weight: 650;
    box-shadow: 0 6px 16px rgba(99,102,241,.1);
  }
  .detail-split {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 8px;
    padding: 0 10px 8px;
    flex: 1;
    min-height: 0;
  }
  .minutes-panel, .talk-panel { flex: 1; min-height: 0; border-radius: 18px; }
  .detail-view[data-pane="minutes"] .talk-panel { flex: none; }
  .detail-view[data-pane="minutes"] .talk-panel .panel-head,
  .detail-view[data-pane="minutes"] .talk-panel .transcript { display: none; }
  .detail-view[data-pane="talk"] .minutes-panel { display: none; }
  .panel-head {
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 8px;
  }
  .panel-head h2, .tab-btn { font-size: 14px; }
  .panel-tools { margin-left: auto; }
  .tool-chip { height: 30px; padding: 0 8px; font-size: 11px; }
  .icon-btn { height: 30px; min-width: 30px; }
  .search-mini { width: 100%; min-width: 0; }
  .transcript, .summary, .timeline, .key-notes-pane { padding: 6px 14px 16px; }
  .minutes-doc .doc-title { font-size: 19px; }
  .minutes-doc .chapter { margin-top: 24px; padding-top: 18px; }
  .minutes-doc .chapter h3 { font-size: 18px; }
  .minutes-doc .subsec h4 { font-size: 15px; }
  .minutes-doc .requirements-minutes > h1 { margin-bottom: 18px; font-size: 20px; }
  .minutes-doc .requirements-chapter { margin-top: 24px; padding-top: 18px; }
  .minutes-doc .requirements-chapter > h2 { margin-bottom: 12px; font-size: 18px; }
  .minutes-doc .requirements-question { padding: 10px 12px; }
  .minutes-doc .requirements-question > h4 { font-size: 13px; }
  .minutes-doc .internal-outline-section { padding: 12px; }
  .minutes-doc .internal-outline-field { grid-template-columns: 1fr; gap: 2px; margin-top: 8px; }
  .xiaoji { padding: 8px 10px 10px; }
  .xiaoji-log { max-height: 96px; }
  .xiaoji-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .xiaoji-chips button { flex: none; }
  .detail-view[data-pane="minutes"] .xiaoji-chips,
  .detail-view[data-pane="minutes"] .xiaoji-log { display: none; }
  .doc-todo { grid-template-columns: 20px 1fr; }
  .doc-todo .who, .doc-todo .due { grid-column: 2; justify-self: start; }
  .ai-disclaimer { margin-bottom: 8px; }

  .meeting-item, .todo-item { padding: 14px 14px; border-radius: 16px; }
  .meeting-action.meeting-move { min-width: 58px; padding: 0 8px; font-size: 11px; }
  .todo-tabs { width: 100%; }
  .todo-tab { flex: 1; }
  .todo-meta { align-items: flex-start; }

  .settings-card { padding: 20px 16px; border-radius: 20px; }
  .settings-account, .stats-account { display: none; }
  .page-head .stats-account { width: 100%; }
  .kv { grid-template-columns: 1fr; gap: 4px; }
  .kv dd { margin: 0 0 10px; }

  .auth-overlay, .gen-overlay {
    padding: env(safe-area-inset-top, 0px) 12px env(safe-area-inset-bottom, 0px);
  }
  .gen-overlay .sparkles,
  .gen-overlay .scene-beams,
  .gen-overlay .scene-spot { display: none; }
  .gen-card {
    backdrop-filter: none;
    background: #fff;
  }
  .text-gen span {
    animation: none !important;
    opacity: 1;
    filter: none;
    transform: none;
  }
  .auth-card { width: min(400px, calc(100% - 24px)); padding: 28px 20px 22px; border-radius: 24px; }
  .auth-card h1 { font-size: 22px; }
  .auth-field input, .modal-card input, .modal-card select,
  .settings-card input, .settings-card select, .page-toolbar input,
  .xiaoji-form input, .search-mini { font-size: 16px; }
  .gen-card { width: min(420px, calc(100% - 28px)); padding: 32px 20px 28px; }
  .gen-ring { width: 140px; height: 140px; }
  .gen-ring strong { font-size: 30px; }
  .gen-overlay.is-countdown #genPct { font-size: 40px; }
  .gen-card h2 { font-size: 22px; }
  .modal { padding: env(safe-area-inset-top, 0px) 12px env(safe-area-inset-bottom, 0px); align-items: end; }
  .modal.page-modal {
    padding: 0;
    align-items: stretch;
  }
  .modal-card {
    width: 100%;
    max-height: min(88dvh, 720px);
    overflow: auto;
    border-radius: 22px 22px 16px 16px;
    padding: 22px 18px 18px;
  }
  .page-modal-card.modal-card {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    overflow: hidden;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .page-modal-head h2 { display: none; }
  .dropzone { padding: 24px 12px; }
}

@media (max-height: 540px) {
  .app-top {
    padding:
      calc(8px + env(safe-area-inset-top, 0px))
      max(12px, env(safe-area-inset-right, 0px))
      0
      max(12px, env(safe-area-inset-left, 0px));
  }
  .home-stage {
    inset:
      calc(46px + env(safe-area-inset-top, 0px))
      max(10px, env(safe-area-inset-right, 0px))
      calc(8px + env(safe-area-inset-bottom, 0px))
      max(10px, env(safe-area-inset-left, 0px));
  }
  .orb { width: 96px; height: 96px; }
  .orb .mic-icon { width: 34px; height: 34px; }
  .ripple { --ripple: 96px; }
  .voice-ripple { --ripple: 96px; }
  .home-view { --orb-shift: 64px; --live-stack: 172px; --live-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
  .orb-actions strong { font-size: 24px; }
  .live-caption { font-size: 12px; max-height: 22vh; }
  .live-workspace { width: calc(100% - 20px); }
  .live-pane { height: auto; max-height: none; }
  .rec-sides { width: min(320px, 100%); --pop: 82px; }
}

@media (max-width: 350px) {
  .app-top .landing-brand strong { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-waves, .scene-waves path, .scene-beams path,
  .orb-hint, .btn-primary::after, .auth-btn::after,
  .text-gen span, .minutes-doc .doc-sec, .minutes-doc .chapter, .minutes-doc .requirements-chapter,
  .upload-btn.is-saving .upload-ring {
    animation: none !important;
  }
  .orb, .orb-actions, .rec-sides, .halo, .ripple-layer, .live-workspace {
    transition: none !important;
  }
  .orb-hint {
    color: rgba(100, 116, 139, .92);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
  .auth-card { transform: none !important; }
}
.voiceprint-entry {
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  color: #1d4ed8;
  background: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .12);
  cursor: pointer;
  white-space: nowrap;
}
.voiceprint-entry:hover { color: #1e3a8a; }
.voiceprint-view { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.voiceprint-head { max-width: 1280px; }
.voiceprint-head h1 { margin: 12px 0 8px; font-size: 28px; letter-spacing: -.03em; }
.voiceprint-head p { margin: 0; color: #475569; line-height: 1.65; font-size: 15px; }
.voiceprint-back { margin-bottom: 4px; }
.voiceprint-summary {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  color: #1e3a8a;
  max-width: 1280px;
  line-height: 1.55;
}
.voiceprint-summary.is-error { color: var(--bad); }
.voiceprint-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1280px;
  align-items: stretch;
}
.voiceprint-slots {
  display: contents;
}
.voiceprint-card {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(59,130,246,.08);
  min-width: 0;
}
.voiceprint-card.is-recording { box-shadow: 0 12px 30px rgba(37,99,235,.18); }
.voiceprint-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.voiceprint-card h2 { margin: 0; font-size: 18px; }
.voiceprint-flag {
  flex: none;
  font-size: 12px;
  color: #64748b;
  background: rgba(241,245,249,.95);
  border-radius: 999px;
  padding: 4px 8px;
}
.voiceprint-flag.is-saved { color: #047857; background: rgba(209,250,229,.95); }
.voiceprint-meta { margin: 10px 0; color: #64748b; font-size: 13px; line-height: 1.55; min-height: 2.9em; }
.voiceprint-clock { margin: 0 0 8px; font-variant-numeric: tabular-nums; font-weight: 800; color: #1e3a8a; font-size: 42px; line-height: 1; letter-spacing: -.03em; }
.voiceprint-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(191,219,254,.75);
  overflow: hidden;
  margin: 0 0 8px;
}
.voiceprint-meter span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #93c5fd, #2563eb);
}
.voiceprint-meter span.is-ready { background: linear-gradient(90deg, #34d399, #059669); }
.voiceprint-meter span.is-long { background: linear-gradient(90deg, #fbbf24, #d97706); }
.voiceprint-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.voiceprint-actions button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  background: rgba(255,255,255,.95);
  color: #1e3a8a;
  box-shadow: 0 4px 12px rgba(59,130,246,.08);
}
.voiceprint-actions button.primary {
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  color: #fff;
}
.voiceprint-actions button:disabled { opacity: .55; cursor: wait; }
.voiceprint-msg { margin: 8px 0 0; min-height: 1.2em; color: var(--bad); font-size: 13px; line-height: 1.45; }
.voiceprint-msg.is-ok { color: var(--good); }
@media (max-width: 900px) {
  .voiceprint-board { grid-template-columns: 1fr; }
  .voiceprint-people { order: -1; }
  .voiceprint-add-user-form input { width: 112px; }
  .voiceprint-head h1 { font-size: 24px; }
  .voiceprint-actions button,
  .voiceprint-back,
  .voiceprint-row-record,
  .voiceprint-row-delete { min-height: 44px; }
  .page-modal-tools { gap: 6px; }
  .voiceprint-entry { font-size: 12px; padding: 8px 10px; }
}

.voiceprint-script {
  margin: 12px 0 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(239, 246, 255, .96);
  color: #0f172a;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 550;
}
.voiceprint-card.is-recording .voiceprint-script {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(37, 99, 235, .35);
}
.voiceprint-hint {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}
.voiceprint-people {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(59,130,246,.12);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.voiceprint-people-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: .08em;
  color: #64748b;
}
.voiceprint-current-name {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 750;
  color: #1e3a8a;
  word-break: break-word;
}
.voiceprint-current-kind {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  color: #1d4ed8;
}
.voiceprint-people-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.voiceprint-person {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 14px;
  padding: 8px 10px;
  font: inherit;
  background: rgba(255,255,255,.75);
  color: #334155;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.voiceprint-person span { min-width: 0; word-break: break-word; }
.voiceprint-person small { flex: none; font-size: 12px; opacity: .8; }
.voiceprint-person.is-current {
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  color: #fff;
  font-weight: 750;
  box-shadow: 0 8px 18px rgba(37,99,235,.28);
}
.voiceprint-add {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.voiceprint-add input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  color: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(147,197,253,.95);
}
.voiceprint-add button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  color: #fff;
  white-space: nowrap;
}
.voiceprint-people-note {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}
.voiceprint-people-msg {
  margin: 0;
  min-height: 1.2em;
  color: var(--bad);
  font-size: 13px;
  line-height: 1.45;
}
.voiceprint-add-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.voiceprint-add-user[hidden] { display: none !important; }
.voiceprint-add-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.voiceprint-add-user-btn,
.voiceprint-add-user-form button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  box-shadow: 0 8px 18px rgba(37,99,235,.22);
  white-space: nowrap;
}
.voiceprint-add-user-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.voiceprint-add-user-form[hidden] { display: none !important; }
.voiceprint-add-user-form input {
  width: 148px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  color: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(147,197,253,.95);
}
.voiceprint-add-user-msg {
  margin: 0;
  max-width: 220px;
  text-align: right;
  color: var(--bad);
  font-size: 12px;
  line-height: 1.4;
}
.voiceprint-add-user-msg[hidden] { display: none !important; }



.voiceprint-modal { z-index: 40; background: transparent; }
.voiceprint-modal .voiceprint-modal-card.page-modal-card.modal-card {
  background: #f7fbff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.voiceprint-modal-body {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: auto;
}
.voiceprint-modal .voiceprint-head,
.voiceprint-modal .voiceprint-summary,
.voiceprint-modal .voiceprint-board { max-width: none; }
.voiceprint-modal .voiceprint-head p + p { margin-top: 4px; }
.voiceprint-modal .voiceprint-summary { margin: 12px 0; }
.voiceprint-modal .page-modal-head h2,
.voiceprint-record-modal .page-modal-head h2 { display: block; }

.voiceprint-list-note {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}
.voiceprint-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  max-width: 100%;
}
.voiceprint-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, .28);
  color: #0f172a;
  font-size: 16px;
  line-height: 1.5;
  min-width: 0;
  max-width: 100%;
}
.voiceprint-row-name {
  flex: 1 1 auto;
  min-width: 4.5em;
  font-weight: 650;
  word-break: break-word;
}
.voiceprint-row-side {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.voiceprint-row-status {
  flex: none;
  color: #64748b;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.voiceprint-row-status.is-saved { color: #047857; }
.voiceprint-row-actions {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.voiceprint-chip { flex: none; }
.voiceprint-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.voiceprint-row-record {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  margin: 0;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  background: #eff6ff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #1d4ed8;
  cursor: pointer;
}
.voiceprint-row-record:hover { background: #dbeafe; border-color: #60a5fa; color: #1e3a8a; }
.voiceprint-row-record.is-saved {
  border-color: #6ee7b7;
  background: #ecfdf5;
  color: #047857;
}
.voiceprint-row-record.is-saved:hover { background: #d1fae5; border-color: #34d399; color: #065f46; }
.voiceprint-row-delete {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  margin: 0;
  border: 1px solid #ef4444;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: #dc2626;
  cursor: pointer;
}
.voiceprint-row-delete:hover { background: #fef2f2; border-color: #b91c1c; color: #991b1b; }
.voiceprint-row-remove { flex: none; }
.voiceprint-row-confirm {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(254, 242, 242, .92);
  color: #991b1b;
  font-size: 13px;
  line-height: 1.45;
}
.voiceprint-row-confirm-cancel {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  margin: 0;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: #475569;
  cursor: pointer;
}
.voiceprint-row-confirm-cancel:hover { background: #f8fafc; }
@media (max-width: 720px) {
  .voiceprint-row-name,
  .voiceprint-row-side { flex-basis: 100%; }
  .voiceprint-row-side,
  .voiceprint-row-actions,
  .voiceprint-row-confirm { justify-content: flex-start; }
}
.voiceprint-record-modal { z-index: 52; }
.voiceprint-record-note {
  margin: 0 0 12px;
  color: #1e3a8a;
  font-size: 15px;
  line-height: 1.65;
}
.voiceprint-record-msg {
  margin: 0 0 12px;
  color: var(--bad);
  font-size: 13px;
  line-height: 1.45;
}
.voiceprint-record-msg[hidden] { display: none !important; }
.voiceprint-record-modal .voiceprint-slots {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.voiceprint-script-label {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .12);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  vertical-align: 1px;
}

.voiceprint-modal .voiceprint-modal-body {
  display: flex;
  flex-direction: column;
}
.voiceprint-modal .voiceprint-slots,
.voiceprint-line-slots {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 10px;
  margin-top: 8px;
}
.voiceprint-row-name .voiceprint-row-status {
  margin-left: 10px;
  font-size: 15px;
}
.voiceprint-line-card {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-align: left;
  border: 1px solid #bfdbfe;
  background: #f8fbff;
  overflow: auto;
}
.voiceprint-line-card.is-idle {
  border-color: #93c5fd;
  background: #f8fbff;
}
.voiceprint-line-card.is-recording {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, .18);
}
.voiceprint-line-card.is-saved {
  border-color: #6ee7b7;
  background: #ecfdf5;
  box-shadow: 0 8px 22px rgba(16, 185, 129, .12);
}
.voiceprint-line-card.is-saved h2 { color: #047857; }
.voiceprint-line-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.voiceprint-line-card h2 {
  margin: 0;
  display: flex;
  align-items: center;
  font-size: 17px;
}
.voiceprint-line-check {
  margin-right: 6px;
  color: #047857;
  font-weight: 800;
}
.voiceprint-line-tools {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.voiceprint-line-card .voiceprint-script {
  flex: 0 1 auto;
  margin: 10px 0 8px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 550;
}
.voiceprint-line-note {
  margin: auto 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}
.voiceprint-line-card .voiceprint-clock {
  margin: 0;
  font-size: 36px;
}
.voiceprint-line-card .voiceprint-row-record {
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.voiceprint-line-card .voiceprint-row-delete {
  border: 1px solid #ef4444;
  background: #fff;
  color: #dc2626;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.voiceprint-line-card .voiceprint-msg { min-height: 0; }
.voiceprint-line-card { cursor: default; }
.voiceprint-line-foot {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.voiceprint-line-foot .voiceprint-line-note {
  margin: 0;
  flex: 1 1 auto;
}
.voiceprint-start {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .28);
}
.voiceprint-start:hover { background: #1d4ed8; }
.voiceprint-start:disabled { opacity: .55; cursor: wait; }
.voiceprint-script-panel {
  flex: none;
  margin-top: 12px;
}
.voiceprint-script-readbox {
  margin: 10px 0 0;
  padding: 14px 16px 12px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #ffffff;
}
.voiceprint-script-read {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 600;
}
.voiceprint-script-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.voiceprint-script-actions[hidden] { display: none !important; }
.voiceprint-script-next {
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.voiceprint-script-next:hover { background: #eff6ff; border-color: #60a5fa; }
.voiceprint-script-next:disabled { opacity: .45; cursor: default; }
.voiceprint-script-hint {
  margin: 8px 2px 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .voiceprint-script-next { min-height: 44px; }
}

.live-stuck-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 12px; }
.live-stuck-btn {
  border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; font: inherit; font-weight: 700;
  background: #e8eefc; color: #1d4ed8;
}
.live-stuck-btn.primary { background: #1d6fe8; color: #fff; }
/* 手机窄屏：只改 720 以下，桌面布局不动。 */
.live-focus { display: none; }

@media (max-width: 720px) {
  .shell, .main, .home-view, .detail-view, .page-modal, .modal {
    max-width: 100%;
    min-width: 0;
  }

  .home-dock {
    z-index: 8;
    width: min(360px, calc(100% - 28px));
    max-width: calc(100% - 28px);
    bottom: max(20px, calc(12px + env(safe-area-inset-bottom, 0px)));
    gap: 10px;
  }
  .dock-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    min-height: 76px;
    padding: 10px 6px 8px;
  }
  .dock-card strong {
    font-size: 13px;
    letter-spacing: 0;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
  }
  .orb-hint {
    z-index: 5;
    top: calc(50% + 96px);
    width: min(18em, calc(100% - 40px));
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: 0;
    white-space: normal;
  }

  .home-view.is-live .landing-brand,
  .home-view.is-paused .landing-brand,
  .home-view.is-live .landing-brand strong,
  .home-view.is-paused .landing-brand strong,
  .shell.rec-focus .app-top .landing-brand,
  .shell.rec-focus .app-top .landing-brand strong { color: #1e293b; }
  .shell.rec-focus .user-chip .ghost-btn {
    color: #334155;
    background: rgba(255,255,255,.86);
  }
  .home-view.is-live .orb-actions strong,
  .home-view.is-paused .orb-actions strong {
    color: #0f172a;
    text-shadow: none;
    font-size: 28px;
  }
  .home-view.is-live .orb-actions em,
  .home-view.is-paused .orb-actions em { color: #334155; }
  .home-view.is-live .live-speech-at,
  .home-view.is-paused .live-speech-at {
    display: block;
    color: #475569;
    white-space: normal;
    text-align: center;
    max-width: 16em;
  }
  .home-view.is-live .live-speech-at:empty,
  .home-view.is-paused .live-speech-at:empty { display: none; }
  .home-view.is-live .rec-btn,
  .home-view.is-paused .rec-btn { color: #1e293b; }
  .home-view.is-live .glass-ctrl,
  .home-view.is-paused .glass-ctrl {
    width: 56px;
    height: 56px;
  }
  .home-view.is-live .rec-btn em,
  .home-view.is-paused .rec-btn em { font-size: 14px; color: #1e293b; }
  .home-view.is-live,
  .home-view.is-paused { --orb-top: 17%; }
  .home-view.is-live .rec-sides,
  .home-view.is-paused .rec-sides {
    width: min(336px, calc(100% - 20px));
  }
  .home-view.is-live .live-workspace,
  .home-view.is-paused .live-workspace {
    top: calc(var(--orb-top, 17%) + 188px);
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    width: calc(100% - 20px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    overflow: hidden;
  }
  .home-view.is-live .live-focus,
  .home-view.is-paused .live-focus {
    display: flex;
    grid-column: 1 / -1;
    gap: 6px;
    padding: 3px;
    border-radius: 14px;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(255,255,255,.8);
  }
  .live-focus-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 36px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
  }
  .live-focus-btn.is-on {
    background: #fff;
    color: #1e3a8a;
    box-shadow: 0 4px 12px rgba(37,99,235,.12);
  }
  .home-view[data-live-focus="talk"] .live-workspace,
  .home-view[data-live-focus="notes"] .live-workspace {
    grid-template-rows: auto minmax(0, 1fr);
  }
  .home-view[data-live-focus="talk"] #liveWorkspace .live-pane:nth-of-type(2),
  .home-view[data-live-focus="notes"] #liveWorkspace .live-pane:nth-of-type(1) { display: none; }
  .live-pane { min-height: 0; overflow: hidden; }
  .live-pane-head h2 { font-size: 15px; }
  .live-transcript,
  .live-notes {
    font-size: 15px;
    line-height: 1.7;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .notes-item-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 46%;
    overflow: auto;
  }
  .live-notes { flex: 1 1 96px; min-height: 88px; }

  #pageModalCard.modal-card {
    background: #f7fbff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  #pageModalCard .page-modal-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  #pageModalCard .page-modal-heading { flex: none; width: 100%; }
  #pageModalCard .page-modal-head h2 {
    display: block;
    font-size: 18px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  #pageModalCard .page-modal-tools {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }
  #pageModalCard .voiceprint-entry { order: 1; min-height: 40px; }
  #pageModalCard .page-back { order: 2; margin-left: auto; min-height: 40px; }
  #pageModalCard .page-switch {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    display: flex !important;
  }
  #pageModalCard .page-switch button {
    flex: 1 1 0;
    min-height: 40px;
    text-align: center;
    white-space: nowrap;
  }
  .meeting-foot { align-items: center; row-gap: 8px; }
  .meeting-dur {
    white-space: normal;
    flex-wrap: wrap;
    row-gap: 6px;
    min-width: 0;
  }
  .organize-btn {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 13px;
  }
  .meeting-action { width: 40px; height: 40px; }
  .meeting-action.meeting-move { min-width: 72px; height: 40px; font-size: 13px; }
  .meeting-item h3 { font-size: 16px; line-height: 1.4; }
  .meeting-head { gap: 7px; }
  .meeting-category { min-height: 34px; max-width: min(46vw, 142px); font-size: 12px; }
  .meeting-category .meeting-category-select { min-height: 32px; padding-right: 22px; font-size: 12px; }
  #viewRecords .records-list,
  #viewTodos .todo-list,
  #teamMeetingList { padding-bottom: 24px; }
  .todo-item {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
  }
  .todo-item h3 { font-size: 15px; -webkit-line-clamp: 3; }
  .todo-meta { max-width: 76px; text-align: right; }
  .todo-tab { min-height: 40px; }

  .minutes-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "back actions" "title title";
    align-items: center;
    column-gap: 8px;
    row-gap: 6px;
    min-width: 0;
    max-width: 100%;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 8px;
  }
  .minutes-top > #backBtn {
    grid-area: back;
    min-height: 40px;
    padding: 8px 12px;
  }
  .minutes-top > .minutes-brand {
    grid-area: title;
    width: 100%;
    min-width: 0;
  }
  .minutes-top > .minutes-top-actions {
    grid-area: actions;
    justify-self: end;
    justify-content: flex-end;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .minutes-top-actions .tf-doc-link .icon-btn-text { display: none !important; }
  .minutes-top-actions .icon-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex: none;
  }
  .minutes-meta { margin: 0; min-width: 0; }
  .minutes-meta #detailTitle {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal;
    text-overflow: unset;
    font-size: 16px;
    line-height: 1.35;
    word-break: break-word;
  }
  .mobile-pane-tabs { min-width: 0; }
  .mobile-pane-tab { min-height: 40px; white-space: nowrap; }
  .minutes-tabs {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
  }
  .minutes-tabs .tab-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .minutes-tabs .tab-btn {
    flex: none;
    white-space: nowrap;
    min-height: 36px;
  }
  .minutes-panel .panel-tools {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .minutes-panel .panel-tools .icon-btn,
  .minutes-panel .panel-tools .tool-chip { flex: none; min-height: 36px; }
  .player-bar { min-width: 0; max-width: calc(100% - 24px); }
  .player-seek { min-width: 0; }
  .summary, .transcript, .timeline, .key-notes-pane {
    padding: 8px 16px 28px;
    -webkit-overflow-scrolling: touch;
  }
  .minutes-doc,
  .minutes-doc .doc-lead,
  .minutes-doc .chapter > p,
  .minutes-doc .subsec p,
  .minutes-doc li,
  .talk p,
  .tl-main p,
  .notes-doc-list,
  .notes-doc-list > li { font-size: 16px; line-height: 1.75; }
  .minutes-doc .doc-title { font-size: 20px; }
  .minutes-doc .chapter h3,
  .tl-main h3 { font-size: 18px; }
  .jump-card { padding: 10px 12px 12px; }
  .jump-toolbar {
    position: static;
    opacity: 1;
    pointer-events: auto;
    margin: 0 0 8px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .jump-row { flex-wrap: wrap; }
  .doc-todo {
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
  }
  .doc-todo .who,
  .doc-todo .due,
  .doc-todo .time-chip { grid-column: 2; justify-self: start; }
  .detail-view[data-pane="minutes"] .talk-panel {
    flex: none;
    min-height: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .xiaoji { flex: none; padding: 0 2px 4px; min-width: 0; }
  .xiaoji-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 0 8px;
    max-width: 100%;
  }
  .xiaoji-chips button { flex: none; min-height: 36px; white-space: nowrap; }
  .xiaoji-form {
    min-height: 48px;
    min-width: 0;
    max-width: 100%;
    background: #fff;
  }
  .xiaoji-form input { min-width: 0; font-size: 16px; }
  .xiaoji-send { width: 40px; height: 40px; flex: none; }
  .ai-disclaimer {
    flex: none;
    margin: 2px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  #importModal .modal-card,
  #shareModal .modal-card,
  #moveGroupModal .modal-card,
  #silenceReminderModal .modal-card {
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    max-height: min(92dvh, 760px);
    background: #f7fbff;
    overflow: auto;
  }
  .import-tencent-hint,
  .dropzone strong,
  .dropzone em { white-space: normal; word-break: break-word; }
  .dropzone { padding: 20px 12px; }
  .modal-card label,
  .modal-card input,
  .modal-card select { max-width: 100%; }
  .modal-actions {
    position: sticky;
    bottom: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    background: linear-gradient(180deg, rgba(247,251,255,0), #f7fbff 28%);
  }
  .modal-actions .ghost-btn,
  .modal-actions .btn-primary { min-height: 44px; }
  .share-kind-actions { flex-wrap: wrap; }
  .share-kind-actions .ghost-btn,
  .share-kind-actions .btn-primary { min-height: 40px; }

  .voiceprint-modal-body {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .voiceprint-list-note { font-size: 14px; line-height: 1.65; }
  .voiceprint-script-read { font-size: 16px; line-height: 1.7; }
  .voiceprint-script-next { min-height: 40px; }
  .voiceprint-line-card { overflow: visible; }
  .voiceprint-line-foot { flex-wrap: wrap; }
  .voiceprint-start {
    min-height: 44px;
    min-width: 104px;
    padding: 10px 16px;
  }
  .voiceprint-modal .page-modal-head { align-items: center; }
  .voiceprint-modal .page-back { min-height: 40px; }
}

@media (max-width: 720px) and (max-height: 640px) {
  .home-view:not(.is-live):not(.is-paused) { --orb-top: 40%; }
  .home-view:not(.is-live):not(.is-paused) .orb { width: 112px; height: 112px; }
  .orb-hint {
    top: auto;
    bottom: 108px;
    width: calc(100% - 36px);
  }
  .home-dock { bottom: max(8px, env(safe-area-inset-bottom, 0px)); }
  .dock-card { min-height: 64px; }
}

@media (max-width: 720px) {
  .records-project-toolbar { align-items: stretch; gap: 8px; }
  .project-tag-browser-btn { min-height: 42px; padding-inline: 10px; }
  .meeting-project-tags {
    order: 2;
    flex-basis: 100%;
    width: 100%;
  }
  .meeting-actions { order: 3; }
  .project-tag-chip,
  .project-tag-edit { min-height: 32px; font-size: 12px; }
  .project-tag-chip { max-width: min(100%, 280px); }
  .project-filter-bar { align-items: flex-start; flex-wrap: wrap; }
  .project-filter-bar span { flex: 1 1 180px; white-space: normal; overflow: visible; }
  .project-tag-modal { width: calc(100% - 16px); max-width: calc(100% - 16px); background: #f7fbff; }
  .project-tag-browser-list,
  .project-tag-candidate-list { max-height: min(38dvh, 300px); }
  .project-tag-browser-row { grid-template-columns: minmax(0, 1fr) auto; }
  .project-tag-browser-row .project-tag-manage-btn { grid-column: 2; }
  .project-tag-browser-row small { grid-column: 2; grid-row: 1; }
  .project-tag-browser-row .project-tag-manage-btn + small { grid-row: 1; }
  .project-tag-scope { width: 100%; }
  .project-tag-scope button { flex: 1; min-height: 38px; }
  .project-tag-create-form .form-row { display: block; }
  .project-tag-create-form .form-row label { margin-bottom: 10px; }
}

/* Current-meeting action panes share the detail panel's scroll area. */
.minutes-tabs .tab-row {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.minutes-tabs .tab-btn { flex: none; white-space: nowrap; }
.meeting-action-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 18px 16px;
  overflow: hidden;
}
.meeting-action-pane[hidden] { display: none !important; }
.meeting-action-pane .todo-list,
.meeting-action-pane .difficulty-list {
  flex: 1;
  min-height: 0;
}
.detail-todo-list .todo-group { padding: 0; border: 0; background: transparent; }
.detail-todo-list .todo-group-head { display: none; }
.detail-difficulty-list { padding: 2px 2px 10px; }

@media (max-width: 720px) {
  .meeting-action-pane { padding: 6px 14px 20px; }
}
