/* 声匠 · meeting minutes page */
.mt a.brand { color: inherit; text-decoration: none; }
.mt a.tab { text-decoration: none; }
.mt-wrap { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: calc(100vh - 58px); }
.mt-wrap > * { min-width: 0; }
.mt-side { border-right: 1px solid var(--line); padding: 14px 12px; position: sticky; top: 58px; height: calc(100vh - 58px); overflow: auto; background: var(--bg); }
.mt main.mt-main { max-width: 1240px; width: 100%; margin: 0 auto; padding: 8px 24px 40px; }
.primary.sm { width: auto; margin: 0; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.side-actions .primary { width: 100%; }
.search { width: 100%; margin: 12px 0 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 7px 10px; }
.search.sm { width: 160px; margin: 0; padding: 5px 9px; font-size: 13px; }
.tiny { font-size: 12px; }
.mlist { list-style: none; margin: 0; padding: 0; }
.mlist li { padding: 9px 10px; border-radius: 10px; cursor: pointer; margin-bottom: 2px; border: 1px solid transparent; }
.mlist li:hover { background: var(--panel); border-color: var(--line); }
.mlist li.sel { background: var(--soft); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.mlist li b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlist li small { color: var(--muted); font-size: 12px; display: flex; gap: 8px; align-items: center; }
.pill { font-size: 11px; padding: 0 7px; border-radius: 999px; background: var(--soft); color: var(--brand); }
.pill.err { background: color-mix(in srgb, #dc2626 14%, var(--panel)); color: #dc2626; }
.pill.run { background: color-mix(in srgb, var(--warn) 14%, var(--panel)); color: var(--warn); }
.empty-list { padding: 8px 4px; line-height: 1.6; }
.keep-note { margin: 14px 4px 0; padding-top: 10px; border-top: 1px dashed var(--line); line-height: 1.6; }
.keep-note:empty { display: none; }

/* start view */
.start-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.start-card { display: flex; flex-direction: column; gap: 12px; }
.drop.big { min-height: 230px; gap: 8px; }
.drop-ico { font-size: 34px; color: var(--brand); line-height: 1; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rec-btn { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1.5px solid #dc2626; color: #dc2626; background: var(--panel);
  border-radius: 12px; padding: 12px; font-size: 16px; font-weight: 600; cursor: pointer; }
.rec-btn:hover { background: color-mix(in srgb, #dc2626 8%, var(--panel)); }
.rec-btn .dot, .live-dot { width: 12px; height: 12px; border-radius: 50%; background: #dc2626; display: inline-block; }
.tab-audio { align-self: center; }
.field { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 10px; margin: 8px 0; font-size: 14px; }
.field.stack { grid-template-columns: 1fr; gap: 6px; }
.field select, .field textarea, .d-actions select, .mt-main select { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 6px 8px; }
.field textarea { resize: vertical; width: 100%; }
.steps { list-style: none; counter-reset: s; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; font-size: 13px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.steps span { color: var(--muted); }

/* live */
.live-card { margin-top: 18px; }
.live-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.live-dot { animation: blink 1.2s infinite; }
.live-card.paused .live-dot { animation: none; background: var(--muted); }
@keyframes blink { 50% { opacity: .25; } }
.live-time { font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 600; }
.stop { background: linear-gradient(135deg, #dc2626, #ef4444); }
.title-input { width: 100%; border: 1px solid transparent; background: transparent; border-radius: 10px; padding: 6px 8px; font-size: 16px; margin-top: 10px; }
.title-input:hover, .title-input:focus { border-color: var(--line); background: var(--panel); outline: none; }
.title-input.big { font-size: 22px; font-weight: 700; margin: 0; padding: 4px 8px; }
.live-text { margin-top: 10px; max-height: 58vh; overflow: auto; line-height: 1.9; font-size: 16px; padding: 4px 8px; }
.live-text.small { font-size: 14px; max-height: 260px; }
.live-text p { margin: 0 0 6px; }
.live-text .ts { color: var(--muted); font-size: 12px; margin-right: 8px; font-variant-numeric: tabular-nums; }
.live-text .partial { color: var(--muted); }

/* processing */
.proc-card { margin-top: 22px; }
.proc-card h2 { font-size: 18px; color: var(--ink); margin: 0 0 14px; }
.stages { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 14px; flex-wrap: wrap; }
.stages li { padding: 4px 12px; border-radius: 999px; background: var(--line); color: var(--muted); font-size: 13px; }
.stages li.on { background: var(--brand); color: var(--brand-ink); }
.stages li.past { background: var(--soft); color: var(--brand); }
.progress.big { height: 10px; }
.progress div { transition: width .6s ease; }

/* detail */
.d-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 16px 0 10px; }
.d-head .title-input.big { flex: 1 1 320px; min-width: 0; }
.d-meta { width: 100%; padding-left: 8px; display: flex; gap: 14px; flex-wrap: wrap; }
.d-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ghost.sm { padding: 3px 8px; font-size: 13px; }
.ghost.danger { color: #dc2626; }
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: 110%; z-index: 20; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; min-width: 150px; padding: 4px; }
.menu-pop button { display: block; width: 100%; text-align: left; background: none; border: 0; font: inherit;  padding: 7px 12px; border-radius: 8px; cursor: pointer; color: var(--ink); text-decoration: none; font-size: 14px; }
.menu-pop button:hover { background: var(--soft); }
.mt .player { position: sticky; top: 64px; bottom: auto; z-index: 8; display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.mt .player .round { width: 40px; height: 40px; font-size: 15px; }
.ptime { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); min-width: 108px; }
.ptrack { position: relative; flex: 1; height: 26px; cursor: pointer; border-radius: 6px; background: var(--line); overflow: hidden; }
.pfill { position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--brand) 35%, transparent); }
.pmarks i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brand); opacity: .55; }
.pmarks i.hit { background: #f59e0b; opacity: .9; width: 3px; }
.d-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; margin-top: 14px; align-items: start; }
.notes { position: sticky; top: 132px; max-height: calc(100vh - 150px); display: flex; flex-direction: column; }
.ntabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: -4px -4px 10px; padding: 0 4px; overflow-x: auto; }
.ntabs button { border: 0; background: none; padding: 8px 12px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; font-size: 14px; white-space: nowrap; }
.ntabs button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.npane { overflow: auto; min-height: 0; padding-right: 4px; }
.npane h3 { font-size: 13px; color: var(--muted); margin: 16px 0 6px; font-weight: 600; letter-spacing: .5px; }
.npane h3:first-child { margin-top: 2px; }
.summary-text { line-height: 1.8; margin: 0; }
.kw { display: flex; flex-wrap: wrap; gap: 6px; }
.kw button { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 2px 10px; font-size: 13px; cursor: pointer; }
.kw button:hover { border-color: var(--brand); color: var(--brand); }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-top: 1px dashed var(--line); line-height: 1.6; font-size: 14.5px; }
.items li:first-child { border-top: 0; }
.items .tlink { margin-left: auto; flex: none; font-size: 12px; color: var(--brand); cursor: pointer; border: 0; background: none; font-variant-numeric: tabular-nums; padding: 2px 4px; }
.items .tlink:hover { text-decoration: underline; }
.items .bul { color: var(--brand); flex: none; }
.todo input { accent-color: var(--brand); margin-top: 5px; width: 16px; height: 16px; flex: none; }
.todo li.done .ttxt { text-decoration: line-through; color: var(--muted); }
.todo .who { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.tag { font-size: 12px; padding: 0 8px; border-radius: 999px; background: var(--soft); color: var(--brand); }
.tag.due { background: color-mix(in srgb, #f59e0b 16%, var(--panel)); color: #b45309; }
.chap { border-left: 3px solid var(--line); padding: 4px 0 8px 12px; margin: 0 0 6px; cursor: pointer; }
.chap:hover, .chap.cur { border-left-color: var(--brand); }
.chap b { display: block; font-size: 14.5px; }
.chap .tt { font-size: 12px; color: var(--brand); font-variant-numeric: tabular-nums; }
.chap p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.mindmap svg { width: 100%; height: auto; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chips button { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 3px 10px; font-size: 13px; cursor: pointer; }
.qa { display: flex; flex-direction: column; gap: 10px; }
.qa .q { align-self: flex-end; background: var(--soft); color: var(--ink); padding: 6px 12px; border-radius: 12px 12px 2px 12px; max-width: 90%; }
.qa .a { line-height: 1.75; white-space: pre-wrap; }
.qa .a .tlink { color: var(--brand); cursor: pointer; font-variant-numeric: tabular-nums; }
.ask-form { display: flex; gap: 8px; margin-top: 12px; position: sticky; bottom: 0; background: var(--panel); padding-top: 6px; }
.ask-form input { flex: 1; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.trans { min-height: 60vh; position: relative; }
.t-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.t-head h2 { margin: 0 auto 0 0; }
.switch.sm { font-size: 12px; }
.speakers { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.spk { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px 2px 4px; font-size: 13px;
  background: var(--panel); cursor: pointer; }
.spk i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; }
.spk:hover { border-color: var(--brand); }
.t-body { margin-top: 6px; }
.para { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 4px; border-top: 1px solid var(--line); }
.para:first-child { border-top: 0; }
.para .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; }
.para .ph { font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: baseline; }
.para .ph b { color: var(--ink); font-size: 13.5px; cursor: pointer; }
.para .ph .tlink { cursor: pointer; font-variant-numeric: tabular-nums; }
.para .ph .tlink:hover { color: var(--brand); }
.para .tx { line-height: 1.85; font-size: 15.5px; margin-top: 2px; }
.s { cursor: pointer; border-radius: 4px; transition: background .15s; }
.s:hover { background: color-mix(in srgb, var(--brand) 9%, transparent); }
.s.cur { background: var(--hl); }
.s mark { background: #fde68a; color: inherit; border-radius: 3px; }
.s mark.now { background: #f59e0b; color: #fff; }
.editing .s { cursor: text; outline: 1px dashed transparent; }
.editing .s:hover { outline-color: var(--line); background: none; }
.editing .s:focus { outline: 1px solid var(--brand); background: var(--panel); }
.tr { display: block; color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 4px; }
.follow { position: sticky; bottom: 12px; margin: 8px auto 0; display: block; box-shadow: var(--shadow); }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: grid; place-items: center; z-index: 60; padding: 16px; }
.modal-box { background: var(--panel); border-radius: 14px; padding: 18px; width: min(420px, 100%); box-shadow: var(--shadow); }
.modal-box p { margin: 0 0 12px; line-height: 1.6; }
.modal-box input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--bg); margin-bottom: 12px; }
.modal-btns { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 1100px) {
  .d-grid { grid-template-columns: minmax(0, 1fr); }
  .notes { position: static; max-height: none; }
}
@media (max-width: 900px) {
  .mt-wrap { grid-template-columns: minmax(0, 1fr); }
  .mt-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); max-height: 260px; }
  .start-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mt main.mt-main { padding: 4px 16px 32px; }
  .mt .player { top: auto; bottom: 8px; position: sticky; flex-wrap: wrap; }
  .ptrack { order: 4; flex-basis: 100%; }
  .search.sm { width: 120px; }
  .d-actions { width: 100%; }
  .d-actions select { max-width: 46%; }
  .mt-side { max-height: 200px; }
}

/* pre-paint state set by the inline head script: avoids layout shifts while JS applies language / opens a meeting */
.pre-en .topbar, .pre-en .mt-wrap { visibility: hidden; }
.pre-m #vStart { display: none; }
.pre-share #side { display: none; }
.pre-share .mt-wrap { grid-template-columns: minmax(0, 1fr); }
.d-meta .warn { color: #b45309; font-weight: 500; }
:root[data-theme="dark"] .d-meta .warn { color: #fbbf24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .d-meta .warn { color: #fbbf24; } }
