
.pm-body { flex: 1; min-width: 0; }
.pm-layout { display: flex; gap: var(--gap); align-items: flex-start; }
.pm-main { flex: 1; min-width: 0; }
.pf-aside { flex: 0 0 240px; position: sticky; top: 0; max-height: calc(100vh - 140px); overflow: auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--sp-2) 0; }
.pf-head { display: flex; align-items: center; padding: 0 var(--sp-3) var(--sp-1); }
.pf-title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0; font-weight: 600; }
.pf-list, .pf-group { list-style: none; margin: 0; padding: 0; }
.pf-item { outline: none; }
.pf-row { display: flex; align-items: center; gap: 6px; padding-block: 4px; padding-inline: 6px 10px; cursor: pointer; font-size: 13px; border-radius: 4px; margin: 0 4px; }
.pf-row:hover { background: var(--hover-bg); }
.pf-item.active > .pf-row { background: var(--sel-bg); color: var(--link); font-weight: 600; }
.pf-item:focus-visible > .pf-row { outline: 2px solid var(--focus); outline-offset: -2px; }
.pf-twisty { width: 12px; flex: 0 0 12px; text-align: center; color: var(--muted); font-size: 11px; }
.pf-ico { width: 16px; height: 16px; flex: 0 0 16px; color: var(--muted); }
.pf-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-count { color: var(--muted); font-size: 12px; font-weight: 400; }
.pf-loading { padding: 0 var(--sp-3); }
.pf-drop > .pf-row, tr.pf-drop td { background: var(--accent-2); box-shadow: inset 0 0 0 2px var(--accent); }
.pf-ghost { position: fixed; z-index: 1000; pointer-events: none; background: var(--surface); color: var(--text); border: 1px solid var(--accent);
  border-radius: var(--r-pill); padding: 2px 10px; font-size: 12px; box-shadow: var(--shadow-2, 0 2px 8px rgba(0,0,0,.2)); }
body.pf-dragging, body.pf-dragging * { cursor: grabbing !important; user-select: none; }
.pm-listhead { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; min-height: 28px; margin-bottom: var(--sp-2); }
.pf-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.pf-crumbs a.pf-crumb { color: var(--link); }
.pf-crumbs span.pf-crumb { font-weight: 600; }
.pf-sep { color: var(--muted); }
.pm-matches { margin: 0; }
.pm-selbar { display: flex; align-items: center; gap: var(--sp-2); margin-inline-start: auto; padding: 2px 8px; border: 1px solid var(--accent); border-radius: var(--r-pill); background: var(--accent-2); }
.pm-selcount { font-size: 12.5px; font-weight: 600; }
.projects-table th.pm-check, .projects-table td.pm-check { width: 28px; text-align: center; }
.projects-table tr.pm-checked td { background: var(--sel-bg); }
.projects-table tr.pm-folder-row td { background: var(--surface-2); }
.pf-open { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 2px 0; font: inherit; color: var(--link); cursor: pointer; }
.pf-open:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.pf-choose { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: 4px; }
.pf-choice { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.pf-choice:hover { background: var(--hover-bg); }
@media (max-width: 900px) {
  .pm-layout { flex-direction: column; align-items: stretch; }
  .pf-aside { position: static; flex: none; max-height: 40vh; }
}
.projects-table td.row-actions { width: 40px; text-align: end; }
.archive-pill { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 10px; background: var(--surface-3); color: var(--text-2); font-weight: 600; white-space: nowrap; }
.archive-pill .archive-saved { font-weight: 400; }
.pm-demo-pick { border: 1px solid var(--accent); border-inline-start-width: 4px; background: var(--surface); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--gap); }
.pm-demo-pick.compact { padding: var(--sp-3) var(--sp-4); }
.pm-demo-head { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-3); }
.pm-demo-head h3 { margin: 0; }
.pm-demo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-3); }
.pm-demo { display: flex; flex-direction: column; gap: 4px; text-align: start; font: inherit; color: var(--text); cursor: pointer;
  background: var(--accent-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--sp-3); }
.pm-demo:hover:not(:disabled), .pm-demo:focus-visible { border-color: var(--accent); }
.pm-demo:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.pm-demo:disabled { cursor: default; background: var(--surface-2); color: var(--muted); }
.pm-demo[aria-busy=true] { border-color: var(--accent); }
.pm-demo-title { display: flex; align-items: baseline; gap: var(--sp-2); flex-wrap: wrap; }
.pm-demo-lang { font-size: var(--fs-xs); font-weight: 600; padding: 0 6px; border-radius: var(--r-pill); border: 1px solid var(--accent); color: var(--accent); }
.pm-demo-what { font-size: 13px; color: var(--text-2); }
.pm-demo-pick.compact .pm-demo-what { font-size: 12px; }
.pm-demo-why { font-size: 12px; color: var(--muted); }
.pm-demo-actions { display: flex; gap: var(--sp-2); justify-content: flex-end; margin-top: var(--sp-3); }
.pm-demo-pick.compact .pm-demo-actions { margin-top: var(--sp-2); }
.btn.pm-dot { position: relative; }
.btn.pm-dot::after, .dd-item.dd-dot::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.btn.pm-dot::after { position: absolute; top: -3px; inset-inline-end: -3px; box-shadow: 0 0 0 2px var(--bg); }
.dd-item.dd-dot::after { margin-inline-start: 8px; vertical-align: middle; }
.form-err { color: var(--danger); font-size: 13px; min-height: 1em; }
.kv-table { border-collapse: collapse; width: 100%; }
.kv-table th { text-align: start; color: var(--muted); font-weight: 600; padding-block: 4px; padding-inline: 0 12px; width: 150px; vertical-align: top; }
.kv-table td { padding: 4px 0; }

.home-head { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; }
.home-head .hp-purpose { margin: 0; }
.home-board { display: flex; flex-direction: column; gap: var(--gap); }
.home-lanes { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
@media (max-width: 1100px) { .home-lanes { grid-template-columns: minmax(0, 1fr); } }
:root[data-narrow] .home-lanes { grid-template-columns: minmax(0, 1fr); }
.home-lane { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; min-height: 48px; }
.hpn { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); display: flex; flex-direction: column; min-width: 0; }
.hpn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hpn.dragging { opacity: .45; }
body.hpn-dragging, body.hpn-dragging * { cursor: grabbing !important; user-select: none; }
.hpn-drop { height: 4px; border-radius: var(--r-pill); background: var(--sel-edge); margin: -10px 0 -2px; }
.hpn-head { display: flex; align-items: center; gap: var(--sp-1); min-height: 40px; padding-block: 4px; padding-inline: var(--pad) 6px; border-bottom: 1px solid var(--border); cursor: grab; user-select: none; }
.hpn-title { font-size: var(--fs-md); font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hpn-rename { height: 28px; max-width: 320px; }
.hpn-menu { font-size: var(--fs-lg); line-height: 1; }
.hpn-body { padding: var(--sp-3) var(--pad) var(--pad); overflow: auto; display: flex; flex-direction: column; gap: var(--sp-2); }
.hpn.short .hpn-body { max-height: 300px; }
.hpn.tall .hpn-body { max-height: 600px; }
.hpn-empty { margin: 0; font-size: var(--fs-sm); }
.hpn-more { align-self: flex-start; font-size: var(--fs-sm); margin-top: var(--sp-1); }
.hpn-line { margin: 0; }
.hpn-acts { display: flex; gap: var(--sp-2); }
.hpn-grow { flex: 1; min-width: 0; }
.hpn-group h4 { display: flex; align-items: center; gap: 6px; margin: var(--sp-1) 0 0; font-size: var(--fs-sm); color: var(--text-2); font-weight: 600; }
.hpn-group .hlist li { padding: 6px 0; }
.hpn-group > p { margin: 4px 0 0; }
.hpn-n { font-size: var(--fs-xs); font-weight: 600; background: var(--chip-bg); color: var(--chip-text); border-radius: var(--r-pill); padding: 0 7px; }
.hpn-late { color: var(--danger); }
.hpn-phase { display: flex; align-items: baseline; gap: var(--sp-1); }
.hpn-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: var(--sp-2); }
.hpn-tile { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--border); border-inline-start: 3px solid var(--tone, var(--border-strong)); border-radius: var(--r-ctl); color: var(--text); }
a.hpn-tile:hover { background: var(--hover-bg); text-decoration: none; }
.hpn-tile .v { font-size: var(--fs-xl); font-weight: 600; line-height: 26px; font-variant-numeric: tabular-nums; }
.hpn-tile .d { font-size: var(--fs-xs); color: var(--text-2); }
.hpn-tile.ok { --tone: var(--ok); } .hpn-tile.warn { --tone: var(--warn); } .hpn-tile.danger { --tone: var(--danger); } .hpn-tile.info { --tone: var(--info); }
.hpn-count { display: flex; align-items: baseline; gap: var(--sp-2); flex-wrap: wrap; }
.hpn-count .v { font-size: var(--fs-2xl); font-weight: 600; font-variant-numeric: tabular-nums; }
.hpn-qbar { display: flex; height: 12px; border-radius: var(--r-pill); overflow: hidden; background: var(--surface-3); gap: 2px; }
.hpn-qbar i { display: block; min-width: 4px; }
.hpn-qbar i.ok, .hpn-legend .dot.ok { background: var(--ok); } .hpn-qbar i.warn, .hpn-legend .dot.warn { background: var(--warn); }
.hpn-qbar i.danger, .hpn-legend .dot.danger { background: var(--danger); } .hpn-qbar i.none, .hpn-legend .dot.none { background: var(--border-strong); }
.hpn-legend { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); font-size: var(--fs-xs); color: var(--text-2); }
.hpn-legend > span { display: inline-flex; align-items: center; gap: 4px; }
.hpn-heat-wrap { display: flex; align-items: center; gap: var(--sp-2); }
.hpn-axis { writing-mode: vertical-rl; transform: rotate(180deg); font-size: var(--fs-xs); color: var(--text-2); }
.hpn-heat { border-collapse: separate; border-spacing: 3px; font-size: var(--fs-xs); }
.hpn-heat th { font-weight: 500; color: var(--text-2); text-align: end; padding-inline-end: 4px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hpn-heat tfoot th { text-align: center; padding: 2px 0 0; }
.hpn-heat td { width: 40px; height: 30px; text-align: center; border-radius: var(--r-sm); color: #16213a; font-weight: 600; font-size: var(--fs-sm); }
.hpn-heat td:not(.has) { opacity: .55; }
.hpn-days { font-size: var(--fs-xs); white-space: nowrap; padding: 1px 8px; border-radius: var(--r-pill); background: var(--chip-bg); color: var(--chip-text); }
.hpn-days.soon { background: var(--warn-bg); color: var(--warn); }
.hpn-days.past { color: var(--text-3); }
.hpn-comments li { align-items: flex-start; }
.hpn-comments li.mine { box-shadow: inset 3px 0 0 var(--sel-edge); padding-inline-start: 8px; }
.hpn-chart .chart-svg { max-height: 260px; }
.hpn.tall .hpn-chart .chart-svg { max-height: 520px; }
.hpn-brief, .hpn-brief-preview { font-size: var(--fs-sm); line-height: 1.5; }
.home-add { align-self: flex-start; background: none; border: 1px dashed var(--border-strong); border-radius: var(--r-ctl); color: var(--text-2); padding: 6px 12px; font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.home-add:hover { color: var(--text); background: var(--hover-bg); }
.home-notice { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); padding: var(--sp-3) var(--pad); border: 1px solid var(--border); border-inline-start: 3px solid var(--info); border-radius: var(--r-card); background: var(--surface); }
.home-notice p { margin: 0; flex: 1 1 360px; font-size: var(--fs-sm); }
.home-desc-edit { min-height: 220px; }
.pm-storage { margin: var(--sp-4) 0 0; font-size: var(--fs-xs); }
.pm-trash { margin-top: var(--sp-4); scroll-margin-top: var(--sp-4); }
.pm-trash-h { margin: 0 0 var(--sp-1); font-size: 1.17em; }
.pm-trash > p.small { margin: 0 0 var(--sp-3); }
.wbtn { background: none; border: 0; color: var(--text-2); font-size: var(--fs-sm); padding: 2px 6px; border-radius: var(--r-sm); line-height: 1.2; }
.wbtn:hover { background: var(--hover-bg); color: var(--text); }
.w-empty { padding: var(--sp-4) 4px; text-align: center; font-size: var(--fs-sm); color: var(--text-2); }
.w-actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; }
.w-table { font-size: var(--fs-sm); }
.w-table th { cursor: default; }
.chart-svg { width: 100%; height: auto; max-height: 100%; display: block; }
.chart-text { fill: var(--text-2); }
.chart-text.muted { fill: var(--muted); }
.chart-mark.link { cursor: pointer; }
.chart-mark:hover { opacity: .85; }
.feed { display: flex; flex-direction: column; }
.feed-item { padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.feed-item:last-child { border-bottom: 0; }
.feed-item .row { flex-wrap: wrap; gap: 6px; }
.feed-op { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.feed-item.op-delete .feed-op { color: var(--danger); }
.feed-item.op-create .feed-op, .feed-item.op-restore .feed-op { color: var(--ok); }
.feed-gone { text-decoration: line-through; color: var(--muted); }
.feed-detail { margin-top: 4px; padding: 6px 8px; background: var(--panel-2); border-radius: 4px; font-size: 12px; }
.feed-item.resolved .comment-text { color: var(--muted); }
.comment-text { white-space: pre-wrap; margin-bottom: 3px; }
.multi-pick { max-height: 180px; overflow: auto; border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; margin-top: 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px 10px; }
.multi-pick .checkbox { font-size: 12.5px; }
.field.inline { flex-direction: row; align-items: center; gap: 10px; }

.rt-view { font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.rt-view p { margin: 0 0 .6em; }
.rt-view ul, .rt-view ol { margin: 0 0 .6em; padding-inline-start: 1.4em; }
.rt-view h2, .rt-view h3, .rt-view h4 { margin: .4em 0 .3em; }
.rt-wrap { border: 1px solid var(--line); border-radius: 4px; background: var(--input-bg); }
.rt-bar { display: flex; flex-wrap: wrap; gap: 3px; padding: 4px; border-bottom: 1px solid var(--line); }
.rt-edit { min-height: 120px; padding: 8px 10px; outline: none; font-size: 13.5px; }
.rt-edit:focus { box-shadow: inset 0 0 0 2px var(--focus); }

.artifact-dash .page-head .muted { max-width: 640px; }
.tile-controls { margin-bottom: var(--sp-3); }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--gap); }
.tile-grid > .tile-empty { grid-column: 1 / -1; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--r-card); }
.tile-empty p { max-width: 560px; margin: 0 auto; }
.tile-pager { margin-top: 12px; }
.artifact-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); overflow: hidden; min-width: 0; }
.artifact-card:hover { border-color: var(--border-strong); text-decoration: none; box-shadow: var(--shadow); }
.thumb { height: 150px; background: #f7f9fc; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.thumb-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.thumb .chart-svg { max-height: 140px; }
.thumb-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #8a94a3; font-size: 12px; gap: 4px; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(0,0,0,.025) 8px 16px); }
.fw-ph strong { font-size: 22px; color: #4a5568; }
.thumb-doc { align-self: stretch; width: 100%; padding: 10px 14px; font-size: 9.5px; color: #4a5568; overflow: hidden; background: #fff; }
.thumb-doc-title { font-weight: 700; font-size: 11px; margin-bottom: 4px; color: #1c2430; }
.thumb-doc-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.45; }
.ic-body { padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ic-head { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.ic-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ic-foot { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ic-menu { font-size: 16px; padding: 0 6px; }
.thumb-offscreen { position: fixed; inset-inline-start: -12000px; top: 0; width: 960px; height: 600px; visibility: hidden; pointer-events: none; }

.pres-editor { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.pres-title { font-weight: 600; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pres-body { flex: 1; display: flex; min-height: 0; }
.pres-slides { width: 190px; flex: none; overflow-y: auto; background: var(--panel); border-inline-end: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.pres-slide-list { display: flex; flex-direction: column; gap: 10px; }
.pres-slide-item:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.slide.editable .sl-shape:focus-visible { outline: 2px solid var(--focus) !important; outline-offset: 1px; }
.pres-slide-item { position: relative; display: flex; gap: 6px; cursor: pointer; user-select: none; border-top: 3px solid transparent; }
.pres-slide-item.drop-before { border-top-color: var(--accent); }
.pres-slide-item .slide-scaled { border: 2px solid var(--line); border-radius: 3px; }
.pres-slide-item.active .slide-scaled { border-color: var(--accent); }
.psi-num { width: 14px; font-size: 11px; color: var(--muted); text-align: end; flex: none; }
.psi-link { position: absolute; inset-inline-end: 4px; top: 4px; display: flex; padding: 2px; background: var(--surface); color: var(--accent); border: 1px solid var(--border); border-radius: var(--r-sm); }
.pres-center { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.pres-stage-wrap { flex: 1; overflow: auto; padding: 20px; position: relative; display: flex; flex-direction: column; align-items: center; }
.pres-stage { box-shadow: 0 4px 18px rgba(20,33,61,.18); flex: none; }
.pres-zoom { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.pres-notes { flex: none; border-radius: 0; border-inline-start: 0; border-inline-end: 0; min-height: 64px; }
.pres-props { width: 240px; flex: none; overflow-y: auto; background: var(--panel); border-inline-start: 1px solid var(--line); padding: 4px 12px 12px; }
.pres-props h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 12px 0 6px; }
.pres-props .row .field { flex: 1; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.pp-comment { padding: 4px 0; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.slide-scaled { overflow: hidden; flex: none; position: relative; }
.slide { position: relative; width: 960px; height: 540px; overflow: hidden; background: #fff; color: #1c2430; font-family: Helvetica, Arial, var(--cjk), sans-serif; }
.sl-shape { position: absolute; box-sizing: border-box; }
.slide.editable .sl-shape { cursor: move; }
.slide.editable .sl-shape:hover { outline: 1px dashed #8fb5ea; }
.slide.editable.guides .sl-text:empty { outline: 1px dashed #c3ccd8; }
.sl-shape.selected { outline: 2px solid #1f6fd1 !important; }
.sl-text { width: 100%; height: 100%; overflow: hidden; line-height: 1.3; outline: none; }
.sl-text ul, .sl-text ol { margin: 0; padding-inline-start: 1.3em; }
.sl-text li::marker { color: var(--bullet, inherit); }
.sl-text p { margin: 0 0 .3em; }
.slide.editable .sl-text:empty::before { content: attr(data-ph); color: inherit; opacity: .7; font-style: italic; }
.sl-text[contenteditable=true] { cursor: text; background: rgba(31,111,209,.04); }
.sl-math { display: flex; align-items: center; height: 100%; font-family: "Times New Roman", serif; font-style: italic; }
.sl-num { position: absolute; font-size: 14px; }
.sl-t-entity .thumb, .sl-t-entity .thumb-doc { width: 100%; height: 100%; background: transparent; border: 0; }
.sl-missing { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border: 1px dashed #c3ccd8; color: #8a94a3; }
.sl-handle { position: absolute; width: 12px; height: 12px; background: #fff; border: 2px solid #1f6fd1; border-radius: 2px; z-index: 5; }
.sl-handle.se { inset-inline-end: -7px; bottom: -7px; cursor: nwse-resize; }
.sl-handle.rot { inset-inline-start: calc(50% - 6px); top: -26px; border-radius: 50%; cursor: grab; }
.pres-thumb { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: #e9edf3; }
.present-overlay { position: fixed; inset: 0; background: #000; z-index: 300; display: flex; align-items: center; justify-content: center; outline: none; }
.present-stage { display: flex; align-items: center; justify-content: center; }
.present-close { position: absolute; top: 10px; inset-inline-end: 14px; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 4px; font-size: 20px; width: 32px; height: 32px; opacity: .4; }
.present-close:hover { opacity: 1; }
.present-end { color: #ddd; font-size: 18px; }
@media (max-width: 900px) { .pres-props { display: none; } .pres-slides { width: 120px; } }
.pres-bar [aria-pressed=true] { background: var(--sel-bg); border-color: var(--sel-edge); }
.pres-shape-pop { position: fixed; z-index: 250; width: 284px; padding: var(--sp-2) var(--sp-3) var(--sp-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-pop); }
.pres-shape-head { font-size: var(--fs-xs); color: var(--text-3); margin: var(--sp-2) 0 var(--sp-1); }
.pres-shape-row { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.pres-shape-btn { width: 48px; height: 40px; padding: 8px 10px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-2); border: 1px solid transparent; border-radius: var(--r-ctl); cursor: pointer; }
.pres-shape-btn:hover { background: var(--hover-bg); border-color: var(--border); }
.pres-shape-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.pres-shape-btn svg { width: 24px; height: 20px; }
.pres-shape-sym { width: 26px; height: 20px; border: 2px solid; border-radius: 3px; display: flex; flex-direction: column; overflow: hidden; }
.pres-shape-sym i { height: 6px; }
.pp-radios { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); }
.pp-radio { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); }
.pp-swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--border-strong); }
.pp-bg { margin-top: var(--sp-2); }
.pp-used { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: var(--sp-1) 0; color: var(--text-2); }
.pp-theme .field > span { display: block; }

.fw-catalog { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; margin-bottom: 14px; }
.fw-catalog summary { cursor: pointer; font-weight: 600; }
.fw-vps { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 10px; }
.fw-vp-title { font-size: 12px; margin: 0 0 4px; }
.fw-prod { display: block; padding: 2px 0; font-size: 12.5px; color: var(--text); }
.fw-prod:hover { color: var(--accent); }
.fw-desc { max-width: 820px; font-size: 13px; }
.fw-body .thumb { height: 340px; max-width: 760px; border: 1px solid var(--line); border-radius: var(--radius); }
.fw-matrix { max-height: 70vh; border: 1px solid var(--line); border-radius: var(--radius); }
.fw-matrix th.fw-colh { writing-mode: vertical-rl; transform: rotate(180deg); max-height: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.fw-matrix tbody th { position: sticky; inset-inline-start: 0; background: var(--panel); text-align: start; font-weight: 500; z-index: 1; white-space: nowrap; }
.fw-cell { text-align: center; cursor: pointer; min-width: 28px; color: var(--ok); font-weight: 700; border-inline-start: 1px solid var(--line-2); }
.fw-cell:hover { background: var(--accent-2) !important; }
.fw-cell.na { background: repeating-linear-gradient(45deg, transparent 0 4px, var(--line-2) 4px 6px); cursor: not-allowed; }
.fw-flow.condensed td { padding: 2px 8px; font-size: 12px; }
.fw-tools { border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.uaf-grid-wrap { margin-top: 10px; max-height: 60vh; }
.uaf-grid { border-collapse: collapse; font-size: 11.5px; }
.uaf-grid th, .uaf-grid td { border: 1px solid var(--line); padding: 4px; vertical-align: top; }
.uaf-grid thead th { background: var(--panel-2); position: sticky; top: 0; z-index: 1; min-width: 90px; }
.uaf-grid tbody th { background: var(--panel-2); text-align: start; white-space: nowrap; }
.uaf-cell { min-width: 90px; }
.uaf-btn { display: block; width: 100%; text-align: start; border: 0; background: var(--accent-2); color: var(--accent); border-radius: 3px; padding: 1px 5px; margin: 1px 0; font-size: 11px; }
.uaf-btn:hover { background: var(--sel-bg); color: var(--text); }
.uaf-btn.na { background: var(--line-2); color: var(--muted); }
.uaf-count { float: inline-end; background: var(--ok-bg); color: var(--ok); border-radius: var(--r-pill); padding: 0 6px; font-size: var(--fs-xs); font-weight: 600; }
.fw-misconf { margin: 0 0 12px; }

.help-page { display: flex; height: 100%; min-height: 0; }
.help-side { width: 270px; flex: none; background: var(--panel); border-inline-end: 1px solid var(--line); overflow-y: auto; padding: 12px 0; }
.help-side input { margin: 0 12px 10px; width: calc(100% - 24px); }
.help-side h4, .help-side .help-grp { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 12px 16px 4px; }
.help-link { display: block; padding: 4px 16px; color: var(--text); font-size: 13.5px; }
.help-link:hover { background: var(--line-2); text-decoration: none; }
.help-link.active { background: var(--accent-2); color: var(--accent); font-weight: 600; }
.help-main { flex: 1; min-width: 0; overflow-y: auto; }
.help-article { max-width: 860px; margin: 0 auto; padding: 24px 32px 60px; line-height: 1.6; }
.help-article h1 { font-size: 24px; margin-bottom: 4px; }
.help-article h2 { font-size: 18px; margin-top: 1.4em; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.help-article h3 { font-size: 15px; margin-top: 1.2em; }
.help-article code, .help-article kbd { font-family: var(--mono); font-size: 12.5px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }
.help-article kbd { box-shadow: inset 0 -1px 0 var(--line); }
.help-article table { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 13px; }
.help-article th, .help-article td { border: 1px solid var(--line); padding: 5px 8px; text-align: start; vertical-align: top; }
.help-article th { background: var(--panel-2); }
.help-article ol li, .help-article ul li { margin: 3px 0; }
.help-lede { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.help-open { margin: 6px 0 14px; }
.help-hit { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.help-hit .snip { color: var(--muted); font-size: 13px; }
.help-hit mark, .help-article mark { background: var(--warn-bg); color: inherit; padding: 0 1px; }
.help-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 12px 0; }
.help-card { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); }
.help-card:hover { border-color: var(--accent); text-decoration: none; }
.help-card span { display: block; color: var(--muted); font-size: 12.5px; }
.help-note { background: var(--accent-2); border-inline-start: 3px solid var(--accent); padding: 8px 12px; border-radius: 4px; margin: 10px 0; }
.help-panel { position: fixed; top: var(--topbar-h, 44px); inset-inline-end: 0; bottom: 0; width: clamp(360px, 34vw, 560px); max-width: calc(100vw - 60px); background: var(--surface); border-inline-start: 1px solid var(--line); box-shadow: var(--shadow); z-index: 60; display: flex; flex-direction: column; }
.help-panel-head { display: flex; align-items: center; gap: 6px; padding-block: 8px; padding-inline: 14px 8px; border-bottom: 1px solid var(--line); }
.help-panel-title { font-size: 15px; font-weight: 650; margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.help-panel-title:focus { outline: none; }
.help-panel-title:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 2px; }
.help-panel-tools { display: flex; gap: 8px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line-2); }
.help-panel-tools .input { flex: 1; min-width: 0; }
.help-panel-body { flex: 1; min-height: 0; overflow-y: auto; }
.help-panel .help-article { padding: 12px 16px 40px; max-width: none; }
.help-panel .help-cards { grid-template-columns: 1fr; }
@media (max-width: 760px) { .help-panel { width: 100vw; max-width: 100vw; } }
@media (max-width: 760px) { .help-page { flex-direction: column; } .help-side { width: 100%; max-height: 40vh; border-inline-end: 0; border-bottom: 1px solid var(--line); } .help-article { padding: 16px; } }

[data-theme=dark] .card, [data-theme=dark] .sidebar, [data-theme=dark] .toolbar, [data-theme=dark] .diag-tools,
[data-theme=dark] .diag-side, [data-theme=dark] .diag-left, [data-theme=dark] .diag-tile, [data-theme=dark] .doc-card,
[data-theme=dark] .type-card, [data-theme=dark] .ent-panel, [data-theme=dark] .ai-panel, [data-theme=dark] .tc-suite,
[data-theme=dark] .side-rail, [data-theme=dark] .diag-selbar { background-color: var(--panel); color: var(--text); border-color: var(--line); }
[data-theme=dark] .grid-table, [data-theme=dark] table.grid-table { background: var(--panel); }
[data-theme=dark] .grid-table td { border-color: var(--line-2); }
[data-theme=dark] input, [data-theme=dark] select, [data-theme=dark] textarea { color-scheme: dark; }
[data-theme=dark] .thumb { background: #e9edf3; }
[data-theme=dark] .rt-view a, [data-theme=dark] .ent-link:hover { color: var(--accent); }
[data-theme=dark] .muted { color: var(--muted); }
[data-theme=dark] .label-chip { background: var(--chip-bg); border-color: var(--chip-line); color: var(--chip-text); }
[data-theme=dark] .error-box { color: var(--text); }
path.chart-mark { stroke: var(--panel); }

[data-theme=dark] .ai-panel, [data-theme=dark] .ai-msg.bot, [data-theme=dark] .ai-example, [data-theme=dark] .type-card,
[data-theme=dark] .diag-side, [data-theme=dark] .diag-left, [data-theme=dark] .pal-ghost, [data-theme=dark] .ep-head,
[data-theme=dark] .spider-pop, [data-theme=dark] .risk-list, [data-theme=dark] .color-pop, [data-theme=dark] .rt-editor,
[data-theme=dark] .rt-char, [data-theme=dark] .doc-card, [data-theme=dark] .doc-tabs, [data-theme=dark] .doc-paper,
[data-theme=dark] .imp-step, [data-theme=dark] .q-table-wrap, [data-theme=dark] .ep-rel,
[data-theme=dark] .doc-table th, [data-theme=dark] .zoom-box .zoom-pct:focus { background: var(--panel); color: var(--text); }
[data-theme=dark] .doc-edit[contenteditable="true"] { background: var(--input-bg); box-shadow: 0 0 0 2px var(--focus); }
[data-theme=dark] .doc-num, [data-theme=dark] .doc-desc, [data-theme=dark] .doc-intro { color: var(--text-2); }
[data-theme=dark] .doc-row.locked .doc-name, [data-theme=dark] .doc-row.locked .doc-num { color: var(--muted); }
[data-theme=dark] .doc-banner, [data-theme=dark] .imp-warn, [data-theme=dark] .ad-warn, [data-theme=dark] .doc-badge-warn,
[data-theme=dark] .tl-warn, [data-theme=dark] .q-cell.manual { background: var(--warn-bg) !important; border-color: var(--warn); color: var(--warn); }
[data-theme=dark] .doc-row.found > td, [data-theme=dark] .tc-changed td, [data-theme=dark] .vc-item.removed,
[data-theme=dark] .issue-list .issue { background: var(--warn-bg) !important; color: var(--text); }
[data-theme=dark] .doc-chg.added, [data-theme=dark] .doc-chg.relationship, [data-theme=dark] .doc-changes ins { background: var(--ok-bg); color: var(--ok); }
[data-theme=dark] .doc-chg.removed, [data-theme=dark] .doc-changes del { background: var(--danger-bg); color: var(--danger); }
[data-theme=dark] .doc-chg.modified { background: var(--warn-bg); color: var(--warn); }
[data-theme=dark] .rt-view mark, [data-theme=dark] .rt-area mark, [data-theme=dark] .tree-row.flash { background: var(--warn-bg) !important; color: var(--text); }
[data-theme=dark] .grid-table th, [data-theme=dark] .grid-table td { color: inherit; }
[data-theme=dark] .dt-desc { color: var(--text-2); }
.help-link.howto::before { content: 'How to · '; color: var(--muted); font-size: 11.5px; }
.help-link.howto.active::before { color: inherit; }
