:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --paper: #fff;
  --text: #1b3047;
  --muted: #52657a;
  --line: #e1e7ef;
  --soft: #edf3fc;
  --blue: #176ce2;
  --cyan: #77d3e8;
  --green: #16815f;
  --amber: #9b640d;
  --red: #b42335;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.drawer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid #5b9deb; outline-offset: 3px; }
[hidden] { display: none !important; }
svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: absolute; z-index: 40; top: 12px; left: 12px; padding: 10px 16px; background: var(--paper); color: var(--blue); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.app-shell { min-height: 100vh; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 36px; min-height: 86px; max-width: 1664px; margin: auto; padding: 18px 40px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 42px; color: #9fe5f1; background: #081a2c; border-radius: 10px; }
.brand-mark svg { width: 27px; height: 27px; }
.brand strong { display: block; font-size: 23px; font-weight: 600; letter-spacing: 4px; line-height: 1.2; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font: 10px/1.2 Consolas, monospace; letter-spacing: 2.5px; }
.breadcrumbs { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.breadcrumbs strong { color: var(--text); font-weight: 500; }
.breadcrumbs a:hover, .back-link:hover { color: var(--blue); }
.topbar-right { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 14px; }
.sync-state { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.sync-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: none; }
.sync-state.ok i { background: var(--green); }
.sync-state.error i { background: var(--red); }
.back-link { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.back-link svg { width: 17px; height: 17px; }
.scenario-main { max-width: 1664px; margin: auto; padding: 32px 40px 24px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 18px; border: 1px solid transparent; border-radius: 7px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.primary-button { color: #fff; background: linear-gradient(110deg, #2678e9, #2064d3); }
.primary-button:hover { background: linear-gradient(110deg, #206fe0, #1b59bf); }
.primary-button:disabled { opacity: .5; }
.secondary-button { color: var(--text); border-color: var(--line); background: var(--paper); }
.secondary-button:hover { border-color: #93b5e4; background: var(--soft); }
.filter-bar { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; }
.search-field { display: flex; min-width: 0; flex: 1; height: 48px; align-items: center; gap: 11px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.search-field > svg { color: #7186a0; }
.search-field:focus-within { border-color: #679beb; box-shadow: 0 0 0 3px #2f77e01a; }
.search-field input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 16px; }
.search-field input::placeholder { color: #6e7f93; }
.filter-field { display: flex; align-items: center; gap: 10px; flex: none; color: var(--muted); font-size: 14px; }
.filter-field select { height: 48px; width: 178px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; color: var(--text); background: var(--paper); font-size: 15px; }
.refresh-button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; flex: none; color: var(--blue); border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.refresh-button:hover { background: var(--soft); border-color: #93b5e4; }
.refresh-button.is-loading svg { animation: spin .8s linear infinite; }
.scenario-request-status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 13px 16px; margin-bottom: 24px; color: var(--blue); background: var(--soft); border: 1px solid #cedef4; border-radius: 8px; }
.scenario-request-status small { margin-left: auto; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.scenario-request-status.success { color: var(--green); background: #f0f8f4; border-color: #cee5d9; }
.scenario-request-status.error { color: var(--red); background: #fff4f5; border-color: #f0d5da; }
.request-status-spinner, .spinner { width: 18px; height: 18px; border: 2px solid #cedef4; border-top-color: var(--blue); border-radius: 50%; flex: none; animation: spin .8s linear infinite; }
.scenario-request-status.success .request-status-spinner, .scenario-request-status.error .request-status-spinner { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.content-layout { display: grid; grid-template-columns: 266px minmax(0, 1fr); align-items: start; gap: 28px; }
.folder-panel { position: sticky; top: 24px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; }
.folder-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 18px 10px; }
.folder-panel-head > div { display: flex; align-items: center; gap: 10px; }
.folder-heading-icon { color: var(--blue); }
.folder-panel-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.folder-panel-toggle { display: none; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; background: var(--soft); border-radius: 6px; color: var(--blue); }
.folder-panel-toggle svg { transform: rotate(90deg); }
.folder-summary { display: flex; gap: 12px; justify-content: space-between; padding: 0 18px 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.folder-summary strong { font-weight: 500; }
.folder-tree { max-height: min(65vh, 680px); overflow-y: auto; padding: 0 8px 8px; scrollbar-width: thin; scrollbar-color: #c4d1e1 transparent; }
.folder-tree-loading { padding: 18px 10px; color: var(--muted); font-size: 15px; }
.folder-row { display: flex; align-items: stretch; min-height: 44px; padding-left: calc(var(--depth, 0) * 13px); border-radius: 7px; margin-bottom: 3px; }
.folder-row:hover { background: #f5f8fc; }
.folder-row.active { background: var(--soft); box-shadow: inset 3px 0 var(--blue); }
.folder-toggle { display: grid; place-items: center; width: 22px; padding: 0; flex: 0 0 22px; border: 0; color: #66809a; background: transparent; }
.folder-toggle svg { width: 13px; height: 13px; transition: transform .15s; }
.folder-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.folder-toggle:disabled { visibility: hidden; }
.folder-select { display: flex; min-width: 0; flex: 1; align-items: center; gap: 8px; padding: 6px 9px 6px 0; border: 0; color: #334b63; background: transparent; text-align: left; font-size: 16px; }
.folder-row.active .folder-select { color: var(--blue); font-weight: 600; }
.folder-icon { flex: none; color: #6d87a3; }
.folder-icon svg { width: 17px; height: 17px; }
.folder-row.active .folder-icon { color: var(--blue); }
.folder-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-node-count { margin-left: auto; font: 14px/1.6 Consolas, monospace; color: var(--muted); }
.folder-panel-foot { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.folder-panel-foot svg { width: 15px; height: 15px; color: #7186a0; }
.list-column { min-width: 0; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.list-toolbar > div { display: flex; align-items: baseline; gap: 13px; flex-wrap: wrap; }
.list-toolbar h1 { margin: 0; font-size: 22px; font-weight: 600; }
.result-count { color: var(--muted); font-size: 14px; }
.view-switch { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.view-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 5px 13px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 15px; }
.view-button svg { width: 17px; height: 17px; }
.view-button:hover { color: var(--blue); }
.view-button.active { color: var(--blue); background: var(--soft); font-weight: 600; }
.scenario-grid { min-height: 260px; }
.folder-group { margin-bottom: 24px; }
.folder-group-head { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; padding-bottom: 11px; border-bottom: 1px solid var(--line); color: var(--muted); }
.folder-group-head > svg { width: 17px; height: 17px; color: var(--blue); }
.folder-group-head h3 { margin: 0; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.folder-group-head span { margin-left: auto; font-size: 14px; white-space: nowrap; }
.folder-group-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.scenario-card { display: flex; min-width: 0; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); transition: border-color .16s, box-shadow .16s; }
.scenario-card:hover, .scenario-card:focus-within { border-color: #93b5e4; box-shadow: 0 6px 20px #163c7010; }
.scenario-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.scenario-card-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--blue); background: var(--soft); }
.scenario-card-icon svg { width: 17px; height: 17px; }
.scenario-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 5px; color: var(--green); background: #edf7f2; font-size: 14px; }
.scenario-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.scenario-status.mismatch { color: var(--amber); background: #fff7e8; }
.scenario-status.invalid { color: var(--red); background: #fff0f2; }
.scenario-status.syncing { color: var(--blue); background: var(--soft); }
.scenario-card h3 { display: -webkit-box; margin: 0 0 5px; font-size: 18px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.scenario-file { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 14px; }
.scenario-path { display: none; }
.scenario-card p { display: none; }
.scenario-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.meta-item { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; color: var(--muted); font-size: 14px; }
.meta-item b { color: var(--text); font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.scenario-actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.card-action { display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 38px; flex: 1; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; color: #334b63; background: var(--paper); font-size: 14px; font-weight: 500; white-space: nowrap; }
.card-action:hover { border-color: #93b5e4; background: var(--soft); }
.card-action.primary { border-color: #216bd3; color: #fff; background: linear-gradient(110deg, #2678e9, #2064d3); }
.card-action.primary:hover { background: #2064d3; }
.card-action:disabled { opacity: .45; cursor: not-allowed; }
.scenario-card .scenario-actions { margin-top: auto; padding-top: 4px; }
.scenario-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); }
.scenario-table th { padding: 11px 12px; text-align: left; color: var(--muted); background: #f1f5fa; font-size: 14px; font-weight: 500; }
.scenario-table td { padding: 12px; border-top: 1px solid var(--line); color: var(--text); font-size: 15px; overflow-wrap: anywhere; }
.scenario-row:hover, .scenario-row:focus-within { background: #f5f8fc; }
.scenario-table .col-date { width: 100px; }
.scenario-table .col-levels { width: 110px; }
.scenario-table .col-size { width: 82px; }
.scenario-table .col-status { width: 142px; }
.scenario-table .col-actions { width: 212px; }
.scenario-table.has-share .col-actions { width: 290px; } /* 有“共享”按钮时 */
.scenario-table .scenario-actions { margin: 0; gap: 8px; }
.row-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-name > svg { width: 20px; height: 20px; color: #7294bf; }
.row-name-text { min-width: 0; }
.row-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 600; }
.row-name .scenario-file { display: block; margin-top: 3px; }
.loading-state, .empty-state, .error-state { display: flex; min-height: 320px; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-align: center; }
.loading-state strong, .empty-state strong, .error-state strong { font-size: 18px; font-weight: 600; }
.loading-state small, .empty-state small, .error-state small { font-size: 15px; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 54px; height: 54px; color: var(--blue); background: var(--soft); border-radius: 14px; }
.empty-icon svg { width: 27px; height: 27px; }
.error-state .empty-icon { color: var(--red); background: #fff0f2; }
.retry-button { margin-top: 8px; padding: 9px 16px; border: 1px solid #cedef4; border-radius: 7px; color: var(--blue); background: var(--soft); }
.retry-button:hover { background: #e2ecfa; }
.list-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-button { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--paper); font-size: 14px; }
.page-button:hover { color: var(--blue); border-color: #93b5e4; }
.page-button.active { color: #fff; border-color: var(--blue); background: var(--blue); }
.page-button:disabled { opacity: .4; }
.workspace-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.workspace-footer span:last-child { font: 10px/2 Consolas, monospace; letter-spacing: 1px; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 30; display: flex; justify-content: flex-end; background: #081a2c66; backdrop-filter: blur(3px); }
.scenario-drawer { display: flex; flex-direction: column; width: min(560px, 100%); height: 100dvh; background: var(--paper); box-shadow: -16px 0 50px #081a2c20; }
.drawer-header { position: relative; padding: 38px 32px 24px; border-bottom: 1px solid var(--line); }
.drawer-kicker { color: var(--blue); font: 11px/1.6 Consolas, monospace; letter-spacing: 1.8px; padding-right: 40px; }
.drawer-close { position: absolute; top: 25px; right: 24px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--paper); }
.drawer-close:hover { color: var(--blue); background: var(--soft); }
.scenario-drawer h2 { margin: 14px 0 0; font-size: 28px; line-height: 1.5; overflow-wrap: anywhere; }
.drawer-body { min-height: 0; flex: 1; overflow-y: auto; padding: 26px 32px; }
.drawer-description { margin: 0 0 26px; color: var(--muted); font-size: 16px; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; }
.drawer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.drawer-field { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #f9fbfd; }
.drawer-field span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.drawer-field b { display: block; color: var(--text); font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 20px 32px; border-top: 1px solid var(--line); background: var(--paper); }
.drawer-actions .primary-button { flex: 1; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; max-width: calc(100% - 32px); padding: 12px 20px; border: 1px solid #d4e1f3; border-radius: 9px; color: var(--text); background: var(--paper); box-shadow: 0 8px 30px #081a2c20; font-size: 15px; text-align: center; pointer-events: none; opacity: 0; transform: translate(-50%, 8px); transition: opacity .18s, transform .18s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1360px) { .folder-group-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1050px) { .topbar-inner { gap: 24px; } .breadcrumbs { display: none; } .content-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 22px; } .filter-field select { width: 154px; } .filter-field > span { display: none; } .folder-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .scenario-main { padding: 24px; } .topbar-inner { padding-inline: 24px; } .content-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; } }
@media (max-width: 900px) { .topbar-inner { min-height: 76px; padding: 16px 20px; } .topbar-right { gap: 16px; } .sync-state { display: none; } .scenario-main { padding: 20px; } .content-layout { grid-template-columns: 1fr; } .folder-panel { position: static; } .folder-panel-toggle { display: flex; } .folder-panel.is-collapsed .folder-tree, .folder-panel.is-collapsed .folder-panel-foot { display: none; } .folder-panel.is-collapsed .folder-panel-toggle svg { transform: rotate(0); } .folder-tree { max-height: 240px; } .folder-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filter-bar { flex-wrap: wrap; gap: 10px; } .search-field { flex: 1 0 100%; } .filter-field { flex: 1; min-width: 0; } .filter-field select { width: 100%; min-width: 0; } .workspace-footer { margin-top: 28px; } }
@media (max-width: 540px) { .scenario-main { padding: 16px; } .brand strong { font-size: 21px; } .brand-mark { width: 34px; height: 38px; } .back-link { font-size: 14px; } .folder-group-grid { grid-template-columns: 1fr; } .list-toolbar { gap: 8px; } .list-toolbar > div { gap: 8px; } .drawer-header { padding: 32px 22px 20px; } .drawer-body { padding: 22px; } .drawer-actions { padding: 18px 22px; } .drawer-grid { grid-template-columns: 1fr; } .scenario-drawer h2 { font-size: 24px; } .workspace-footer span:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 1200px) { .scenario-table .col-levels, .scenario-table .col-size { display: none; } }
@media (max-width: 900px) { .scenario-table .col-date { display: none; } }
@media (max-width: 640px) { .scenario-table thead { display: none; } .scenario-table tbody { display: block; } .scenario-table .scenario-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 14px; gap: 12px; } .scenario-table td { padding: 0; border: 0; width: auto; } .scenario-table .col-name { min-width: 0; } .scenario-table .col-status { width: auto; align-self: center; } .scenario-table .col-actions { grid-column: 1 / -1; width: auto; } .scenario-row + .scenario-row { border-top: 1px solid var(--line); } .row-name { gap: 8px; } .row-name > svg { display: none; } .scenario-table .scenario-actions { justify-content: flex-end; } .scenario-table .card-action { flex: none; padding-inline: 14px; } .row-name strong { font-size: 16px; } }

/* 顶栏左上角品牌：悬停、按下、键盘聚焦都有反馈（与工作台一致） */
.topbar a.brand { margin: -6px -10px; padding: 6px 10px; border-radius: 12px; color: inherit; text-decoration: none; cursor: pointer; transition: background-color .18s ease; }
.topbar a.brand .brand-mark { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.topbar a.brand strong { transition: color .18s ease; }
.topbar a.brand:hover { background: #edf3fc; }
.topbar a.brand:hover .brand-mark { transform: translateY(-1px); background: #0c2742; box-shadow: 0 6px 14px rgba(8,26,44,.22), 0 0 0 3px rgba(23,108,226,.22); }
.topbar a.brand:hover strong { color: #176ce2; }
.topbar a.brand:active { background: #e2ecfa; }
.topbar a.brand:active .brand-mark { transform: scale(.96); box-shadow: 0 0 0 3px rgba(23,108,226,.28); }
.topbar a.brand:focus-visible { outline: 2px solid #176ce2; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .topbar a.brand, .topbar a.brand .brand-mark, .topbar a.brand strong { transition: none; } }

/* 列表行内的删除按钮（想定、回放、评估共用） */
.card-action.danger { flex: none; min-width: 38px; color: #b8364d; border-color: #e6c3ca; background: #fff; }
.card-action.danger svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-action.danger:hover:not(:disabled) { color: #fff; border-color: #c63d55; background: #c63d55; }
.card-action.danger.is-busy { opacity: .6; cursor: progress; }
.scenario-table .col-actions { width: 258px; }
.scenario-table.has-share .col-actions { width: 336px; }

/* 个人推演会话：想定是否有人在推演、继续自己的推演。 */
.scenario-status-stack { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.session-pill { display: inline-flex; align-items: center; padding: 1px 8px; border: 0; border-radius: 10px; font: inherit; font-size: 12px; font-weight: 600; white-space: nowrap; }
.session-pill.mine { color: #16815f; background: #e6f5ee; }
.session-pill.others { color: #52657a; background: #eef1f4; }
button.session-pill.others { color: #9b640d; background: #fbf0dc; cursor: pointer; }
button.session-pill.others:hover { text-decoration: underline; }
.card-action.is-disabled { opacity: .45; pointer-events: none; }
.continue-session { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 16px; background: #176ce2; color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.continue-session[hidden] { display: none; }
.continue-session svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.continue-session:hover { background: #135fca; }
/* 操作列多了“多人对抗”。 */
.scenario-table .col-actions { width: 350px; }
.scenario-table.has-share .col-actions { width: 430px; }
.scenario-table .col-actions { width: 440px; }
.engine-capacity { padding: 3px 10px; border-radius: 14px; background: #e6f5ee; color: #16815f; font-size: 13px; font-weight: 600; white-space: nowrap; }
.engine-capacity.full { background: #fbe7ea; color: #b42335; }
.engine-capacity[hidden] { display: none; }
