/* AI 圆桌第三版（设计见 docs/圆桌网页设计.md）：一套自己的视觉，不借贴图工坊。
   颜色全走站里的 tokens.css（深浅色跟着变）；全页只有这几样东西：
     .rt-card 卡片（圆角 12）、.rt-btn 按钮（高 36 / 小号 30）、.rt-icon 图标格（圆角方块浅底）、
     .rt-tag 小标签（胶囊）、.rt-seg 分段、.rt-bar 进度条。别的都是它们拼出来的。 */
html, body { height: 100%; }
.rt-page { display: flex; flex-direction: column; margin: 0; background: var(--page); color: var(--text); font-family: var(--font); font-size: 14px; }
.rt-page [hidden] { display: none !important; }
.rt-page button { font: inherit; color: inherit; }
.rt-muted { color: var(--text-muted); }
.rt-small { margin: 0; font-size: 12px; line-height: 1.6; }
.rt-center { text-align: center; }
.rt-link { color: var(--accent); font-size: 13px; font-weight: 600; white-space: nowrap; }
.rt-label { font-size: 13px; color: var(--text-secondary); }
.rt-row { display: flex; align-items: center; gap: 8px; }
.rt-wrap { flex-wrap: wrap; }

/* ---------------------------------------------------------------- 基础件 */
.rt-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-card); }

.rt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.rt-btn:hover:not(:disabled) { background: var(--surface-hover); }
.rt-btn:disabled { opacity: .5; cursor: not-allowed; }
.rt-btn:focus-visible, .rt-choice:focus-visible, .rt-vchip:focus-visible, .rt-mopt:focus-visible, .rt-modelbtn:focus-visible { outline: none; box-shadow: var(--focus-ring, 0 0 0 3px var(--accent-soft)); }
.rt-btn small { font-size: 11px; font-weight: 500; opacity: .85; }
.rt-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rt-btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.rt-btn-sm { height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.rt-btn-ghost { border-color: transparent; background: transparent; color: var(--text-secondary); }
.rt-btn-big { width: 100%; height: 48px; border-radius: 12px; font-size: 16px; }
.rt-btn.on { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }
.rt-iconbtn { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text-secondary); font-size: 16px; cursor: pointer; }
.rt-iconbtn:hover:not(:disabled) { background: var(--surface-hover); color: var(--text); }
.rt-iconbtn:disabled { opacity: .45; cursor: not-allowed; }

.rt-icon { position: relative; display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-sunken); box-sizing: border-box; }
.rt-icon img { width: 20px; height: 20px; object-fit: contain; image-rendering: pixelated; }
.rt-icon[data-role] { box-shadow: inset 0 -3px 0 var(--role); }
.rt-icon-sm { width: 24px; height: 24px; border-radius: 7px; }
.rt-icon-sm img { width: 15px; height: 15px; }
.rt-icon-lg { width: 44px; height: 44px; border-radius: 11px; }
.rt-icon-lg img { width: 30px; height: 30px; }

.rt-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-sunken); color: var(--text-secondary); font-size: 12px; font-style: normal; font-weight: 600; white-space: nowrap; }
.rt-tag-green { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }
.rt-tag-btn { cursor: pointer; }
.rt-tag-btn:hover { border-color: var(--accent-border); color: var(--accent); }

.rt-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-sunken); }
.rt-seg button { padding: 4px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--text-secondary); font-size: 13px; cursor: pointer; }
.rt-seg button.on { background: var(--surface); color: var(--accent); font-weight: 700; box-shadow: var(--shadow-card); }

.rt-bar { display: block; height: 6px; border-radius: 999px; background: var(--surface-sunken); overflow: hidden; }
.rt-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .4s ease; }

.rt-dot { display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: var(--danger); vertical-align: 2px; }
.rt-live { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--accent); animation: rt-pulse 1.4s infinite; }
@keyframes rt-pulse { 50% { opacity: .3; } }

/* ---------------------------------------------------------------- 顶栏 */
.rt-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; flex: none; height: 56px; padding: 0 16px; box-sizing: border-box; }
.rt-back { flex: none; color: var(--text-secondary); font-size: 13px; font-weight: 600; text-decoration: none; }
.rt-back:hover { color: var(--accent); }
.rt-head { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding-left: 14px; border-left: 1px solid var(--border); }
.rt-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.rt-head small { flex: none; color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.rt-head .rt-tag { flex: none; }
.rt-top-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.rt-count { min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; line-height: 18px; text-align: center; }
.rt-count:empty { display: none; }

.rt-main { flex: 1; min-height: 0; overflow: auto; }

/* ---------------------------------------------------------------- 开新桌：一步一步往下推 */
.rt-wizard-inner { max-width: 780px; margin: 0 auto; padding: 32px 16px 40vh; }
.rt-hero { margin: 0 0 24px 44px; }
.rt-hero h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: .01em; }
.rt-hero p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

.rt-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rt-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; scroll-margin-top: 72px; }
.rt-step.is-new { animation: rt-rise .28s ease; }
@keyframes rt-rise { from { opacity: 0; transform: translateY(8px); } }
.rt-step-rail { position: relative; display: flex; justify-content: center; }
.rt-step-rail i { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 12px; border: 2px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: var(--text-muted); font-size: 13px; font-style: normal; font-weight: 800; box-sizing: border-box; }
.rt-step:not(:last-child) .rt-step-rail::after { content: ''; position: absolute; top: 40px; bottom: -24px; left: 50%; width: 2px; margin-left: -1px; background: var(--border); }
.rt-step.is-done .rt-step-rail i { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.rt-step.is-done:not(:last-child) .rt-step-rail::after { background: var(--accent-border); }
.rt-step.is-open .rt-step-rail i { border-color: var(--accent); color: var(--accent); }
.rt-step-card { min-width: 0; overflow: hidden; }
.rt-step.is-open .rt-step-card { border-color: var(--accent-border); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-card); }
.rt-step-head { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 18px; box-sizing: border-box; }
.rt-step-head > b { flex: none; font-size: 15px; }
.rt-step.is-done .rt-step-head { cursor: pointer; }
.rt-step.is-done .rt-step-head:hover { background: var(--surface-hover); }
.rt-step.is-done .rt-step-head > b { color: var(--text-secondary); font-weight: 600; font-size: 14px; }
.rt-step-sum { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 700; }
.rt-step-body { display: grid; gap: 12px; padding: 2px 18px 18px; }
.rt-step-go { display: flex; justify-content: flex-end; }

/* 大选项卡（加载器、推荐版本、讨论方式） */
.rt-choices { display: grid; gap: 10px; }
.rt-choices-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rt-choice { position: relative; display: grid; justify-items: start; align-content: start; gap: 4px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.rt-choice:hover { border-color: var(--accent-border); }
.rt-choice.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.rt-choice .rt-icon { margin-bottom: 6px; }
.rt-choice b { font-size: 15px; }
.rt-choice small { color: var(--text-secondary); font-size: 12.5px; line-height: 1.5; }
.rt-choice em { margin-top: 4px; color: var(--text-muted); font-size: 12px; font-style: normal; }
.rt-choice.on::after { content: '✓'; position: absolute; top: 10px; right: 12px; color: var(--accent); font-weight: 800; }
.rt-choice-sm { padding: 12px 14px; }
.rt-rec { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; }
.rt-rec .rt-icon { margin: 0; }
.rt-rec-text { display: grid; gap: 2px; }
.rt-rec-text b { font-size: 17px; }
.rt-rec .rt-tag { margin: 0 22px 0 0; }

.rt-more { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 14px; border: 1px dashed var(--border-strong); border-radius: 10px; background: transparent; color: var(--text-secondary); font-size: 13px; font-weight: 600; cursor: pointer; }
.rt-more:hover { border-color: var(--accent-border); color: var(--accent); }
.rt-more i { font-style: normal; transition: transform .2s; }
.rt-more[aria-expanded="true"] i { transform: rotate(180deg); }
.rt-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 8px; }
.rt-vchip { position: relative; display: grid; gap: 1px; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); text-align: left; cursor: pointer; }
.rt-vchip:hover:not(:disabled) { border-color: var(--accent-border); }
.rt-vchip b { font-size: 14px; }
.rt-vchip small { overflow: hidden; color: var(--text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.rt-vchip.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.rt-vchip.on small { color: var(--accent); font-weight: 700; }
.rt-vchip.is-experimental b { color: var(--warn); }
.rt-vchip:disabled { opacity: .45; cursor: not-allowed; }
.rt-family > span { display: block; margin: 2px 0 6px; color: var(--text-muted); font-size: 12px; font-weight: 700; }
.rt-custom { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 1px dashed var(--border-strong); border-radius: 10px; }
.rt-custom > span { color: var(--text-secondary); font-size: 13px; font-weight: 600; }
.rt-custom input { min-width: 0; height: 30px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-sunken); color: var(--text); font: inherit; font-size: 13px; }
.rt-custom input:focus { outline: none; border-color: var(--accent); }
.rt-custom.on { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.rt-custom.is-bad input { border-color: var(--danger); }

/* 想法 */
#topic { width: 100%; min-height: 84px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-sunken); color: var(--text); font: inherit; font-size: 15px; line-height: 1.6; resize: none; box-sizing: border-box; }
#topic:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rt-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--warn-border); border-radius: 10px; background: var(--warn-soft); font-size: 13px; }
.rt-attach { display: grid; gap: 6px; }
.rt-attach-files { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rt-attach .rt-btn-ghost { border: 1px dashed var(--border-strong); }

/* 资料小条 */
.rt-file { display: inline-flex; align-items: center; gap: 6px; max-width: 280px; height: 30px; padding: 0 4px 0 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-sunken); font-size: 12px; box-sizing: border-box; }
.rt-file b { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.rt-file small { flex: none; color: var(--text-muted); }
.rt-file button { display: grid; place-items: center; flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-muted); font-size: 15px; cursor: pointer; }
.rt-file button:hover { background: var(--surface-hover); color: var(--danger); }
.rt-file.is-busy { padding-right: 12px; color: var(--accent); }
.rt-file-ico { flex: none; color: var(--accent); font-style: normal; font-weight: 800; }

/* 谁来讨论 */
.rt-roles { display: grid; gap: 8px; }
.rt-role { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 40px; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.rt-role-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--role); }
.rt-role-text { min-width: 0; }
.rt-role-text b { display: block; font-size: 14px; }
.rt-role-text small { display: -webkit-box; overflow: hidden; color: var(--text-muted); font-size: 12px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rt-role:not(.on) .rt-role-text, .rt-role:not(.on) .rt-role-dot { opacity: .45; }
.rt-role-fixed { justify-self: center; }
.rt-modelbtn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 5px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer; }
.rt-modelbtn:hover:not(:disabled) { border-color: var(--accent-border); }
.rt-modelbtn:disabled { opacity: .4; cursor: not-allowed; }
.rt-modelbtn > i { color: var(--text-muted); font-size: 11px; font-style: normal; }
.rt-switch { position: relative; justify-self: center; width: 36px; height: 20px; cursor: pointer; }
.rt-switch input { position: absolute; opacity: 0; pointer-events: none; }
.rt-switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--border-strong); transition: background .15s; }
.rt-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.rt-switch input:checked + i { background: var(--accent); }
.rt-switch input:checked + i::after { transform: translateX(16px); }
.rt-switch input:focus-visible + i { box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------------------------------------------------------------- 模型选单（照对话页「选择模型」） */
.rt-menu { position: fixed; z-index: 50; display: flex; flex-direction: column; width: min(360px, calc(100vw - 16px)); max-height: min(480px, 72vh); border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-pop); overflow: hidden; }
.rt-menu header { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px 6px; }
.rt-menu header b { font-size: 14px; }
.rt-menu header small { color: var(--text-muted); font-size: 12px; }
.rt-menu-list { overflow: auto; padding: 2px 6px 8px; }
.rt-mopt { display: grid; grid-template-columns: 28px minmax(0, 1fr) 18px; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.rt-mopt:hover { background: var(--surface-hover); }
.rt-mopt.on { background: var(--accent-soft); }
.rt-mopt .rt-icon { width: 28px; height: 28px; border-radius: 8px; }
.rt-mopt .rt-icon img { width: 18px; height: 18px; }
.rt-mopt.is-member { padding-left: 26px; grid-template-columns: 28px minmax(0, 1fr) 18px; }
.rt-mopt-text { display: grid; gap: 2px; min-width: 0; }
.rt-mopt-text b { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 14px; }
.rt-mopt-text small { display: -webkit-box; overflow: hidden; color: var(--text-muted); font-size: 12px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rt-code { padding: 0 5px; border-radius: 4px; background: #2f9e44; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; line-height: 17px; }
.rt-rate { padding: 0 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-sunken); color: var(--text-secondary); font-size: 11px; font-style: normal; font-weight: 600; line-height: 17px; }
.rt-rate.is-off { border-color: color-mix(in srgb, #2f9e44 45%, transparent); color: #2f9e44; }
.rt-rate.is-peak { border-color: color-mix(in srgb, #d64545 45%, transparent); color: #d64545; }
.rt-fold { padding: 0 7px; border: 1px dashed var(--accent-border); border-radius: 999px; color: var(--accent); font-size: 11px; font-style: normal; font-weight: 600; line-height: 17px; cursor: pointer; }
.rt-fold:hover { background: var(--accent-soft); }
.rt-check { color: var(--accent); font-style: normal; font-weight: 800; text-align: center; }

/* ---------------------------------------------------------------- 我的圆桌 */
.rt-list-inner { max-width: 980px; margin: 0 auto; padding: 28px 16px 60px; }
.rt-list-inner h2 { margin: 0 0 16px; font-size: 20px; }
.rt-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.rt-tcard { display: flex; flex-direction: column; overflow: hidden; }
.rt-tcard-main { display: grid; align-content: start; gap: 5px; flex: 1; padding: 14px 16px 6px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.rt-tcard-main:hover b { color: var(--accent); }
.rt-tcard-main b { font-size: 15px; }
.rt-tcard-main span { display: -webkit-box; overflow: hidden; color: var(--text-secondary); font-size: 13px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rt-tcard-main small { color: var(--text-muted); font-size: 12px; }
.rt-tcard-del { align-self: flex-end; margin: 0 8px 8px; }
.rt-tcard-del:hover { color: var(--danger) !important; }
.rt-none { grid-column: 1 / -1; padding: 40px 0; text-align: center; }

/* ---------------------------------------------------------------- 会场 */
.rt-room { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: minmax(0, 1fr); gap: 14px; height: 100%; padding: 14px; box-sizing: border-box; }
.rt-tabs { display: none; }
.rt-talk { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; min-width: 0; min-height: 0; }

.rt-order { display: grid; gap: 8px; padding: 10px 12px; }
.rt-order-seats { display: flex; gap: 4px; overflow-x: auto; }
.rt-oseat { position: relative; display: grid; justify-items: center; gap: 2px; flex: none; width: 76px; padding: 6px 2px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.rt-oseat:hover { background: var(--surface-hover); }
.rt-oseat .rt-icon { width: 36px; height: 36px; border-radius: 10px; }
.rt-oseat .rt-icon img { width: 22px; height: 22px; }
.rt-oseat b { font-size: 12px; }
.rt-oseat small { max-width: 72px; overflow: hidden; color: var(--text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.rt-oseat.is-speaking .rt-icon { box-shadow: inset 0 -3px 0 var(--role), 0 0 0 2px var(--role); animation: rt-pulse 1.2s infinite; }
.rt-oseat.is-done { opacity: .65; }
.rt-badge { position: absolute; top: 2px; right: 12px; display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-secondary); font-size: 10px; font-style: normal; font-weight: 800; box-sizing: border-box; }
.rt-badge.is-ok { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.rt-badge.is-talk { border-color: var(--role); background: var(--role); color: #fff; }
.rt-order-line { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 12.5px; }
.rt-order-line .rt-bar { flex: none; width: 120px; }

.rt-feed { display: flex; flex-direction: column; gap: 12px; min-height: 0; padding: 16px; overflow: auto; }
.rt-msg { max-width: 780px; padding: 12px 14px; border: 1px solid var(--border); border-left: 3px solid var(--role); border-radius: 12px; background: var(--surface); }
.rt-msg header { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rt-msg header b { font-size: 13.5px; }
.rt-msg header small { overflow: hidden; color: var(--text-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.rt-msg .rt-text { margin: 6px 0 0 32px; font-size: 14.5px; line-height: 1.75; overflow-wrap: anywhere; }
.rt-msg .rt-text p { margin: 0 0 .5em; }
.rt-msg .rt-text p:last-child { margin-bottom: 0; }
.rt-msg footer { margin: 6px 0 0 24px; }
.rt-msg.is-host { border-color: var(--accent-border); border-left-color: var(--role); background: var(--accent-soft); }
.rt-msg.is-me { align-self: flex-end; max-width: 80%; padding: 10px 14px; border: 0; border-radius: 14px 14px 4px 14px; background: var(--accent); color: var(--on-accent); }
.rt-msg.is-me .rt-text { margin: 0; white-space: pre-wrap; }
.rt-msg.is-file { border: 1px dashed var(--border-strong); background: var(--surface-sunken); color: var(--text-secondary); }
.rt-msg.is-file .rt-text { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.rt-at { color: var(--accent); font-weight: 600; }
.rt-msg code { padding: 0 4px; border-radius: 4px; background: var(--surface-sunken); font-family: var(--font-mono); font-size: .92em; }
.rt-caret { display: inline-block; width: 7px; height: 1em; margin-left: 2px; background: var(--accent); vertical-align: -2px; animation: rt-blink 1s steps(1) infinite; }
@keyframes rt-blink { 50% { opacity: 0; } }
.rt-divider { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 12px; }
.rt-divider::before, .rt-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.rt-divider.is-live { color: var(--accent); }
.rt-notice { margin: 0; color: var(--text-muted); font-size: 12.5px; text-align: center; }

.rt-compose { display: grid; gap: 8px; padding: 10px 12px; transition: background .15s; }
.rt-compose.is-drop { outline: 2px dashed var(--accent); outline-offset: -4px; background: var(--accent-soft); }
.rt-files, .rt-ats { display: flex; flex-wrap: wrap; gap: 6px; }
.rt-ats:empty { display: none; }
.rt-atchip { height: 24px; color: var(--role); font-size: 12px; }
.rt-compose-row { display: flex; align-items: flex-end; gap: 8px; }
#draft { flex: 1; min-width: 0; min-height: 36px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-sunken); color: var(--text); font: inherit; font-size: 14px; line-height: 1.5; resize: none; box-sizing: border-box; }
#draft:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rt-attach-btn { font-size: 20px; font-weight: 300; }
.rt-compose-foot { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 12px; }
.rt-compose-foot .rt-seg button { padding: 2px 10px; font-size: 12px; }
.rt-cost { margin-left: auto; text-align: right; }

/* 策划书 */
.rt-book { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.rt-book-scroll { flex: 1; min-height: 0; padding: 18px; overflow: auto; }
.rt-book-head small { color: var(--text-muted); font-size: 12px; font-weight: 700; }
.rt-book-head h3 { margin: 4px 0 8px; font-size: 19px; }
.rt-book-head p { margin: 8px 0 0; color: var(--text-secondary); font-size: 13.5px; line-height: 1.65; }
.rt-ready { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; font-size: 12.5px; }
.rt-ready .rt-bar { flex: 1; }
.rt-sec { margin-top: 16px; border-radius: 10px; }
.rt-sec h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--text-secondary); font-size: 13px; }
.rt-sec ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rt-sec li { display: grid; gap: 3px; padding: 8px 10px; border-radius: 8px; background: var(--surface-sunken); font-size: 13px; line-height: 1.55; }
.rt-sec li b { font-size: 13.5px; }
.rt-sec li .rt-tag { justify-self: start; height: 20px; font-size: 11px; }
.rt-sec li span { color: var(--text-secondary); }
.rt-sec table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rt-sec td { padding: 6px 8px; border-bottom: 1px solid var(--border); }
.rt-sec td:last-child { font-weight: 700; text-align: right; }
.rt-sec ol { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.8; }
.rt-open li { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.rt-sec.is-flash { animation: rt-flash 2.4s ease; }
@keyframes rt-flash { 0%, 40% { box-shadow: 0 0 0 6px var(--accent-soft); background: var(--accent-soft); } }
.rt-upd { padding: 0 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 10.5px; font-style: normal; line-height: 17px; }
.rt-build { display: grid; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); }
.rt-build-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.rt-book-empty { padding: 36px 22px; text-align: center; }
.rt-book-empty h3 { margin: 14px 0 6px; font-size: 17px; }
.rt-book-empty p { margin: 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.7; }

/* ---------------------------------------------------------------- 登录、提示 */
.rt-login { width: min(360px, calc(100vw - 32px)); margin: 16vh auto 0; padding: 28px 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-card); text-align: center; box-sizing: border-box; }
.rt-login h2 { margin: 0 0 6px; font-size: 19px; }
.rt-login p { margin: 0 0 18px; color: var(--text-muted); }
.rt-toast { position: fixed; bottom: 24px; left: 50%; z-index: 60; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--surface); font-size: 13.5px; box-shadow: var(--shadow-pop); transform: translateX(-50%); }

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 900px) {
  .rt-room { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 10px; padding: 10px; }
  .rt-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .rt-tabs button { height: 36px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; }
  .rt-tabs button[aria-selected="true"] { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent); }
  .rt-room[data-pane="talk"] .rt-book, .rt-room[data-pane="book"] .rt-talk { display: none; }
  .rt-head small { display: none; }
}
@media (max-width: 640px) {
  .rt-top { gap: 8px; padding: 0 10px; }
  .rt-back { font-size: 0; }
  .rt-back::before { content: '←'; font-size: 18px; }
  .rt-head { padding-left: 8px; }
  .rt-head > .rt-icon { display: none; }
  #listBtn { padding: 0 8px; }
  #newBtn { width: 36px; padding: 0; font-size: 0; }
  #newBtn::before { content: '＋'; font-size: 16px; }
  .rt-themebtn-hide, #themeBtn { display: none; }
  .rt-wizard-inner { padding-top: 20px; }
  .rt-hero { margin-left: 0; }
  .rt-hero h1 { font-size: 20px; }
  .rt-step { grid-template-columns: 24px minmax(0, 1fr); gap: 8px; }
  .rt-step-rail i { width: 24px; height: 24px; font-size: 12px; }
  .rt-step-head { padding: 0 14px; }
  .rt-step-body { padding: 2px 14px 14px; }
  .rt-choices-3 { grid-template-columns: minmax(0, 1fr); }
  .rt-choices-3 .rt-choice { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; }
  .rt-choices-3 .rt-choice .rt-icon { grid-row: span 3; margin: 0; }
  .rt-rec .rt-tag { display: none; }
  .rt-custom { grid-template-columns: minmax(0, 1fr) auto; }
  .rt-custom > span { grid-column: 1 / -1; }
  .rt-role { grid-template-columns: 10px minmax(0, 1fr) 40px; row-gap: 8px; }
  .rt-modelbtn { grid-column: 2; grid-row: 2; justify-self: start; }
  .rt-role .rt-switch, .rt-role-fixed { grid-column: 3; grid-row: 1; }
  .rt-msg .rt-text { margin-left: 0; }
  .rt-msg footer { margin-left: 0; }
  .rt-order-line .rt-bar { width: 60px; }
  .rt-compose-foot .rt-cost { display: none; }
}
