/* ============================================================
 * 数链 · 家装设计 — v2 工作台样式
 * 墨玉深绿 + 象牙白 + 香槟金 · 直角细线版式
 * ============================================================ */
:root {
  --bg: #f5f3ed;
  --surface: #fdfcf9;
  --ink: #1a1c19;
  --ink2: #484d45;
  --muted: #8c9187;
  --line: #e2ddcf;
  --pri: #0f3d33;
  --pri-deep: #082b23;
  --soft: #e2eae5;
  --gold: #b89b6b;
  --danger: #a03d35;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
}

/* 收录作品：紧凑图片墙，下载操作悬浮于图片上 */
.collected-grid { grid-template-columns:repeat(auto-fill,minmax(190px,260px)); gap:9px; }
.collected-card { position:relative; overflow:hidden; }
.collected-card > button[data-preview] { height:auto; aspect-ratio:4/3; }
.collected-card > button[data-preview] { position:relative; z-index:1; }
.collected-card > .collected-download { position:absolute; top:8px; right:8px; z-index:10; display:inline-flex; width:auto; min-width:0; height:28px; aspect-ratio:auto; align-items:center; justify-content:center; overflow:visible; padding:0 9px; border:1px solid rgba(255,255,255,.7); background:rgba(9,45,36,.9); color:#fff; font-size:10px; line-height:1; opacity:0; transform:translateY(-3px); transition:.18s ease; backdrop-filter:blur(5px); pointer-events:auto; cursor:pointer; }
.collected-card:hover .collected-download,.collected-download:focus-visible { opacity:1; transform:none; }
.rw-cabinet-section{border-color:#c9c1a9;background:linear-gradient(180deg,#fbfaf5,#f5f1e6)}
.rw-cabinet-section>header>div:last-child{display:flex;gap:8px;align-items:center}
.rw-cabinet-guide{padding:28px;border:1px dashed #c9c1a9;color:var(--muted);text-align:center;background:#fff}
.rw-cabinet-guide b,.rw-cabinet-guide span{display:block}.rw-cabinet-guide span{margin-top:6px}.rw-cabinet-guide.warning{border-color:#c89d58;background:#fff8e9;color:#76501b}
.rw-cabinet-status{display:flex;justify-content:space-between;gap:18px;padding:14px 16px;margin-bottom:14px;background:#efe9da;border-left:3px solid #a78547}
.rw-cabinet-status b,.rw-cabinet-status span{display:block}.rw-cabinet-status span{color:var(--muted);font-size:12px;text-align:right}
.rw-cabinet-status.confirmed{background:#e8f0e9;border-left-color:#254f42}
.rw-cabinet-list{display:grid;gap:14px}
.rw-cabinet-card{padding:16px;border:1px solid var(--line);background:#fff}
.rw-cabinet-card.focused{border-color:#a78547;box-shadow:0 0 0 3px rgba(167,133,71,.16)}
.rw-cabinet-card-head{display:flex;justify-content:space-between;gap:12px;align-items:start;margin-bottom:12px}
.rw-cabinet-card-head b,.rw-cabinet-card-head span{display:block}.rw-cabinet-card-head span{margin-top:3px;color:var(--muted);font-size:11px}
.rw-cabinet-card-head b i{display:inline-grid;place-items:center;width:22px;height:22px;margin-right:7px;border-radius:50%;background:#254f42;color:#fff;font-size:11px;font-style:normal}
.rw-cabinet-card-head button{border:0;background:transparent;color:#8f493f;cursor:pointer}
.rw-cabinet-preview{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.rw-cabinet-style-trigger,.rw-cabinet-material-trigger{min-width:0;padding:0;border:1px solid var(--line);background:#f8f7f2;color:var(--ink);text-align:left;cursor:pointer;transition:border-color .18s,box-shadow .18s}
.rw-cabinet-style-trigger:hover,.rw-cabinet-style-trigger.selected,.rw-cabinet-material-trigger:hover,.rw-cabinet-material-trigger.selected{border-color:#a78547;box-shadow:0 0 0 2px rgba(167,133,71,.1)}
.rw-cabinet-style-trigger>img,.rw-cabinet-style-trigger>div,.rw-cabinet-material-trigger>img,.rw-cabinet-material-trigger>div{display:grid;place-items:center;width:100%;height:180px;border:0;background:#f1efe9}
.rw-cabinet-style-trigger>img{object-fit:contain;background:#f7f5ef}.rw-cabinet-material-trigger>img{object-fit:cover}
.rw-cabinet-style-trigger>div,.rw-cabinet-material-trigger>div{align-content:center;gap:5px;color:var(--muted);text-align:center}.rw-cabinet-style-trigger>div i,.rw-cabinet-material-trigger>div i{font-size:24px;font-style:normal;color:#a78547}.rw-cabinet-style-trigger>div b,.rw-cabinet-material-trigger>div b{font-size:14px;color:var(--ink)}.rw-cabinet-style-trigger>div span,.rw-cabinet-material-trigger>div span{font-size:10px}
.rw-cabinet-style-trigger>span,.rw-cabinet-material-trigger>span{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-top:1px solid var(--line)}.rw-cabinet-style-trigger>span b,.rw-cabinet-material-trigger>span b{font-size:11px}.rw-cabinet-style-trigger>span em,.rw-cabinet-material-trigger>span em{overflow:hidden;color:var(--muted);font-size:10px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
.rw-cabinet-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.rw-cabinet-fields.style-only{grid-template-columns:1fr}
.rw-cabinet-fields label{display:grid;gap:5px;color:var(--muted);font-size:11px}
.rw-cabinet-fields select{min-width:0;padding:10px;border:1px solid var(--line);background:#fff;color:var(--ink)}
.rw-cabinet-reason{margin:10px 0 0;color:#7f6639;font-size:11px}
.rw-cabinet-confirm{display:flex;justify-content:flex-end;margin-top:14px}
.rw-cabinet-material-dialog{width:min(1120px,calc(100vw - 32px))}.rw-cabinet-material-panel{display:flex;flex-direction:column;overflow:hidden}.rw-cabinet-material-panel>header{flex:none}.rw-cabinet-material-layout{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:430px;max-height:calc(100vh - 210px);border:1px solid var(--line);overflow:hidden}.rw-cabinet-material-layout>aside{padding:16px;border-right:1px solid var(--line);background:#f5f2e9;overflow:auto}.rw-cabinet-material-layout>aside>b{display:block;margin-bottom:10px;font-size:12px}.rw-cabinet-material-layout>aside>div{display:grid;gap:7px}.rw-cabinet-material-layout>aside button{display:grid;gap:3px;padding:11px;border:1px solid transparent;background:transparent;text-align:left;cursor:pointer}.rw-cabinet-material-layout>aside button b{font-size:12px}.rw-cabinet-material-layout>aside button span{color:var(--muted);font-size:9px}.rw-cabinet-material-layout>aside button:hover,.rw-cabinet-material-layout>aside button.active{border-color:#a78547;background:#fff}.rw-cabinet-material-layout>section{min-width:0;padding:16px;overflow:auto}.rw-cabinet-material-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:12px}.rw-cabinet-material-heading b,.rw-cabinet-material-heading span{display:block}.rw-cabinet-material-heading span{margin-top:3px;color:var(--muted);font-size:10px}.rw-cabinet-material-heading em{color:var(--muted);font-size:10px;font-style:normal}.rw-cabinet-board-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.rw-cabinet-board-grid>.ps-empty{grid-column:1/-1}.rw-cabinet-board-option{min-width:0;padding:0;border:1px solid var(--line);background:#fff;text-align:left;cursor:pointer}.rw-cabinet-board-option:hover,.rw-cabinet-board-option.selected{border-color:#a78547;box-shadow:0 0 0 2px rgba(167,133,71,.12)}.rw-cabinet-board-option>div{position:relative;aspect-ratio:1.2/1;overflow:hidden;background:#eee}.rw-cabinet-board-option img{width:100%;height:100%;object-fit:cover}.rw-cabinet-board-option i{position:absolute;right:8px;top:8px;padding:4px 7px;background:rgba(37,79,66,.92);color:#fff;font-size:9px;font-style:normal}.rw-cabinet-board-option>strong,.rw-cabinet-board-option>span{display:block;overflow:hidden;padding:0 10px;text-overflow:ellipsis;white-space:nowrap}.rw-cabinet-board-option>strong{padding-top:9px;font-size:11px}.rw-cabinet-board-option>span{padding-top:3px;padding-bottom:10px;color:var(--muted);font-size:9px}.rw-cabinet-material-panel>footer{flex:none}.rw-cabinet-material-panel>footer>span{color:#6f5a31;font-size:11px}.rw-cabinet-material-panel>footer>div{display:flex;gap:8px}
.rw-cabinet-finish-tabs{display:flex;flex:none;gap:8px;padding:0 0 12px}.rw-cabinet-finish-tabs button{padding:10px 18px;border:1px solid var(--line);background:#fff;color:var(--muted);font-size:11px;font-weight:650}.rw-cabinet-finish-tabs button.active{border-color:var(--pri);background:var(--pri);color:#fff}.rw-cabinet-paint-mode{min-height:430px;max-height:calc(100vh - 210px);padding:16px;border:1px solid var(--line);overflow:auto}.rw-cabinet-paint-toolbar{display:grid;grid-template-columns:minmax(230px,1fr) 180px 180px;gap:10px;margin-bottom:14px}.rw-cabinet-paint-toolbar label{display:grid;gap:5px;color:var(--muted);font-size:9px}.rw-cabinet-paint-toolbar input,.rw-cabinet-paint-toolbar select{height:40px;padding:0 11px;border:1px solid var(--line);background:#fff;color:var(--ink);font:inherit;font-size:11px;outline:none}.rw-cabinet-paint-toolbar input:focus,.rw-cabinet-paint-toolbar select:focus{border-color:#a78547}.rw-cabinet-paint-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:12px}.rw-cabinet-paint-heading b,.rw-cabinet-paint-heading span{display:block}.rw-cabinet-paint-heading span{max-width:720px;margin-top:4px;color:var(--muted);font-size:9px}.rw-cabinet-paint-heading em{color:var(--muted);font-size:10px;font-style:normal}.rw-cabinet-paint-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.rw-cabinet-paint-grid>.ps-empty{grid-column:1/-1}.rw-cabinet-paint-option{min-width:0;padding:0;border:1px solid var(--line);background:#fff;text-align:left}.rw-cabinet-paint-option:hover,.rw-cabinet-paint-option.selected{border-color:#a78547;box-shadow:0 0 0 2px rgba(167,133,71,.14)}.rw-cabinet-paint-swatch{position:relative;height:116px;border-bottom:1px solid rgba(0,0,0,.08)}.rw-cabinet-paint-swatch i{position:absolute;right:8px;top:8px;padding:4px 7px;background:rgba(37,79,66,.92);color:#fff;font-size:9px;font-style:normal}.rw-cabinet-paint-option strong,.rw-cabinet-paint-option span,.rw-cabinet-paint-option small{display:block;overflow:hidden;padding:0 9px;text-overflow:ellipsis;white-space:nowrap}.rw-cabinet-paint-option strong{padding-top:8px;font-size:11px}.rw-cabinet-paint-option span{padding-top:3px;color:var(--pri);font-size:10px;font-weight:650}.rw-cabinet-paint-option small{padding-top:3px;padding-bottom:9px;color:var(--muted);font-size:8px}.rw-cabinet-paint-notice{margin-top:13px;padding:10px 12px;border-left:3px solid #b58a32;background:#faf5e8;color:#75613c;font-size:9px;line-height:1.65}.rw-cabinet-paint-preview{display:grid!important;height:100%!important;background:var(--paint-color,#eee)!important;place-items:center}.rw-cabinet-paint-preview i{display:grid!important;place-items:center;width:40px;height:40px;border:1px solid rgba(0,0,0,.12);border-radius:50%;background:rgba(255,255,255,.7);color:var(--pri);font-size:9px!important;font-style:normal}
.rw-cabinet-paint-option.recommended{border-color:#c7a45e;background:#fffdf7}.rw-cabinet-paint-option .rw-cabinet-paint-reason{padding-bottom:0;color:#936e28;font-weight:650}
@media(max-width:760px){.rw-cabinet-finish-tabs{display:grid;grid-template-columns:1fr 1fr}.rw-cabinet-paint-toolbar{grid-template-columns:1fr}.rw-cabinet-paint-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.rw-cabinet-style-dialog{width:min(1180px,calc(100vw - 32px))}.rw-cabinet-style-panel{display:flex;flex-direction:column;overflow:hidden}.rw-cabinet-style-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:12px}.rw-cabinet-style-heading b,.rw-cabinet-style-heading span{display:block}.rw-cabinet-style-heading span{margin-top:3px;color:var(--muted);font-size:10px}.rw-cabinet-style-heading em{color:var(--muted);font-size:10px;font-style:normal}.rw-cabinet-style-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-height:360px;max-height:calc(100vh - 250px);padding:2px;overflow:auto}.rw-cabinet-style-grid>.ps-empty{grid-column:1/-1}.rw-cabinet-style-option{min-width:0;padding:0;border:1px solid var(--line);background:#fff;text-align:left;cursor:pointer}.rw-cabinet-style-option:hover,.rw-cabinet-style-option.selected{border-color:#a78547;box-shadow:0 0 0 2px rgba(167,133,71,.12)}.rw-cabinet-style-option>div{position:relative;aspect-ratio:4/3;overflow:hidden;background:#f4f2ec}.rw-cabinet-style-option img{width:100%;height:100%;object-fit:contain}.rw-cabinet-style-option i{position:absolute;right:8px;top:8px;padding:4px 7px;background:rgba(37,79,66,.92);color:#fff;font-size:9px;font-style:normal}.rw-cabinet-style-option>strong,.rw-cabinet-style-option>span{display:block;overflow:hidden;padding:0 10px;text-overflow:ellipsis;white-space:nowrap}.rw-cabinet-style-option>strong{padding-top:9px;font-size:11px}.rw-cabinet-style-option>span{padding-top:3px;padding-bottom:10px;color:var(--muted);font-size:9px}.rw-cabinet-style-panel>footer{flex:none}.rw-cabinet-style-panel>footer>span{overflow:hidden;color:#6f5a31;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.rw-cabinet-style-panel>footer>div{display:flex;gap:8px}
.rw-asset-stage{position:relative;line-height:0}.rw-asset-stage>img{width:100%;height:100%;object-fit:cover}
.rw-cabinet-marker{position:absolute;z-index:4;display:grid;place-items:center;width:28px;height:28px;padding:0;border:2px solid #fff;border-radius:50%;background:#b17b2d;color:#fff;font-weight:700;line-height:1;box-shadow:0 2px 9px rgba(0,0,0,.35);transform:translate(-50%,-50%);cursor:pointer}
.rw-cabinet-marker:hover{background:#254f42;transform:translate(-50%,-50%) scale(1.12)}
@media(max-width:760px){.rw-cabinet-status{display:block}.rw-cabinet-status span{text-align:left;margin-top:5px}.rw-cabinet-fields{grid-template-columns:1fr}.rw-cabinet-preview{grid-template-columns:1fr}.rw-cabinet-style-trigger>img,.rw-cabinet-style-trigger>div,.rw-cabinet-material-trigger>img,.rw-cabinet-material-trigger>div{height:170px}.rw-cabinet-material-layout{grid-template-columns:1fr;max-height:calc(100vh - 190px)}.rw-cabinet-material-layout>aside{border-right:0;border-bottom:1px solid var(--line)}.rw-cabinet-material-layout>aside>div{display:flex;overflow-x:auto}.rw-cabinet-material-layout>aside button{min-width:150px}.rw-cabinet-board-grid,.rw-cabinet-style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rw-cabinet-material-panel>footer,.rw-cabinet-style-panel>footer{align-items:stretch;flex-direction:column}.rw-cabinet-material-panel>footer>div,.rw-cabinet-style-panel>footer>div{display:grid;grid-template-columns:1fr 1fr}}
.rw-result-image > button[data-result-preview] { display:block; width:100%; height:100%; overflow:hidden; cursor:zoom-in; }
.rw-result-image > button[data-result-preview] img { width:100%; height:100%; object-fit:cover; transition:transform .2s ease; }
.rw-result-image > button[data-result-preview]:hover img { transform:scale(1.018); }
.rw-image-preview { width:100vw; max-width:none; height:100vh; max-height:none; margin:0; padding:34px 72px; border:0; background:rgba(9,16,14,.96); }
.rw-image-preview::backdrop { background:rgba(9,16,14,.96); }
.rw-image-preview img { display:block; width:100%; height:100%; object-fit:contain; }
.rw-image-preview > button { position:fixed; top:22px; right:26px; z-index:2; width:46px; height:46px; border:1px solid rgba(255,255,255,.4); background:rgba(0,0,0,.2); color:#fff; font-size:28px; }
.rw-result-image { position:relative; }.rw-input-trigger { position:absolute; top:10px; right:10px; z-index:4; width:auto; height:30px; padding:0 11px; border:1px solid rgba(255,255,255,.7); background:rgba(9,45,36,.9); color:#fff; font-size:11px; cursor:pointer; backdrop-filter:blur(5px); }
.rw-input-dialog { width:min(1080px,calc(100vw - 34px)); max-height:calc(100vh - 34px); margin:auto; padding:0; border:0; background:transparent; }.rw-input-dialog::backdrop { background:rgba(13,29,24,.72); }.rw-input-panel { max-height:calc(100vh - 34px); overflow:auto; background:#fdfcf8; }.rw-input-panel > header { position:sticky; top:0; z-index:5; display:flex; align-items:flex-start; justify-content:space-between; gap:24px; padding:24px 28px; border-bottom:1px solid var(--line); background:rgba(253,252,248,.97); }.rw-input-panel > header small { color:var(--gold); font-size:9px; letter-spacing:.22em; }.rw-input-panel > header h2 { margin-top:5px; font-family:var(--serif); font-size:25px; }.rw-input-panel > header p { margin-top:5px; color:var(--muted); font-size:11px; }.rw-input-panel > header button { flex:0 0 auto; width:42px; height:42px; border:1px solid var(--line); font-size:22px; }.rw-input-panel #rwInputContent { display:grid; gap:18px; padding:24px 28px 32px; }.rw-input-summary { display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--line); }.rw-input-summary div { display:grid; gap:6px; padding:13px 15px; border-right:1px solid var(--line); }.rw-input-summary div:last-child { border-right:0; }.rw-input-summary span { color:var(--muted); font-size:10px; }.rw-input-summary b { color:var(--pri); font-size:13px; }.rw-input-section { border:1px solid var(--line); background:#fff; }.rw-input-section > header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 15px; border-bottom:1px solid var(--line); background:var(--bg); }.rw-input-section > header h3 { font-family:var(--serif); font-size:16px; }.rw-input-section > header span { color:var(--muted); font-size:10px; }.rw-input-section > header button { padding:6px 10px; border:1px solid var(--line); color:var(--pri); font-size:10px; }.rw-input-section pre { max-height:360px; overflow:auto; padding:16px; color:#26332e; font:12px/1.75 ui-monospace,SFMono-Regular,Consolas,monospace; white-space:pre-wrap; overflow-wrap:anywhere; }.rw-input-images { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:10px; padding:14px; }.rw-input-images article { overflow:hidden; border:1px solid var(--line); }.rw-input-images article > button { display:block; width:100%; aspect-ratio:4/3; overflow:hidden; background:var(--bg); cursor:zoom-in; }.rw-input-images img { width:100%; height:100%; object-fit:cover; }.rw-input-images article > div { display:flex; align-items:center; gap:9px; padding:8px 10px; }.rw-input-images article b { color:var(--gold); font-size:10px; }.rw-input-images article span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; }.rw-input-loading,.rw-input-error { min-height:240px; display:grid; color:var(--muted); place-items:center; }.rw-input-error { color:#9b3f32; }
@media(max-width:720px){.rw-input-summary{grid-template-columns:1fr 1fr}.rw-input-summary div:nth-child(2){border-right:0}.rw-input-panel>header{padding:18px}.rw-input-panel #rwInputContent{padding:18px}.rw-input-images{grid-template-columns:1fr 1fr}}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

/* Dialog foundation: ordinary dialogs are always centered in the viewport. */
dialog[open]:not(.collected-preview):not(.rw-image-preview):not(.np-floor-plan-preview) {
  position: fixed;
  inset: 0;
  transform: none;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  box-sizing: border-box;
}
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink);
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------------- 背景装饰 ---------------- */
.bg-decor { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-grain {
  position: absolute; inset: 0;
  background:
    radial-gradient(560px 380px at 92% 8%, rgba(15,61,51,.05), transparent 65%),
    radial-gradient(500px 360px at 4% 96%, rgba(184,155,107,.06), transparent 65%),
    radial-gradient(circle, #ddd8ca 1px, transparent 1px) 0 0 / 30px 30px;
}
.bg-arch { position: absolute; border-radius: 999px 999px 0 0; will-change: transform; }
.bg-arch-1 {
  width: 340px; height: 440px; top: -150px; right: -110px;
  background: linear-gradient(165deg, #e9e6da 0%, #dbe2d3 55%, #ccd7c3 100%);
  opacity: .75; animation: archFloat1 14s ease-in-out infinite alternate;
}
.bg-arch-1::after {
  content: ""; position: absolute; left: 52px; top: 68px;
  width: 140px; height: 220px; border-radius: 999px 999px 0 0;
  background: linear-gradient(165deg, rgba(253,252,249,.9), rgba(253,252,249,.2));
}
.bg-arch-2 {
  width: 220px; height: 300px; bottom: -130px; left: -80px;
  background: linear-gradient(165deg, #eee9dc 0%, #e0dbc8 60%, #d2ccb6 100%);
  opacity: .6; animation: archFloat2 18s ease-in-out infinite alternate;
}
@keyframes archFloat1 {
  from { transform: translate3d(0,0,0) rotate(0deg); }
  to   { transform: translate3d(-14px,18px,0) rotate(-2.5deg); }
}
@keyframes archFloat2 {
  from { transform: translate3d(0,0,0) rotate(0deg); }
  to   { transform: translate3d(16px,-14px,0) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-arch-1, .bg-arch-2 { animation: none; }
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center;
  height: 62px; padding: 0 max(22px, env(safe-area-inset-left));
  background: rgba(245,243,237,.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 32px; height: 32px; background: var(--pri);
  display: grid; place-items: center; color: var(--bg);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand-mark svg { width: 18px; height: 18px; }
.brand-name { font-family: var(--serif); font-size: 15.5px; font-weight: 700; letter-spacing: .1em; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-name { font-size: 13px; color: var(--ink2); letter-spacing: .04em; }
.avatar {
  width: 34px; height: 34px;
  background: linear-gradient(150deg, #a08b63, #6f5c3a);
  display: grid; place-items: center; color: rgba(255,255,255,.94);
  font-size: 13px; font-weight: 600;
}
.logout-btn {
  min-height: 36px; padding: 0 13px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 12px; color: var(--ink2); letter-spacing: .08em;
  transition: background .15s;
}
@media (hover:hover) { .logout-btn:hover { background: var(--soft); } }

/* ---------------- 主体 ---------------- */
.page {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 30px 28px calc(44px + env(safe-area-inset-bottom));
}
.toolbar { display: flex; align-items: stretch; gap: 10px; }
.search-box {
  flex: 1; display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted);
  transition: border-color .15s, box-shadow .15s;
}
.search-box:focus-within { border-color: var(--pri); box-shadow: 0 0 0 3px var(--soft); }
.search-box svg { width: 17px; height: 17px; flex: none; }
.search-box input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  font: inherit; font-size: 14.5px; color: var(--ink);
}
.search-box input::placeholder { color: var(--muted); }

.archive-toggle {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 18px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13.5px; color: var(--ink2); letter-spacing: .06em;
  transition: background .15s, color .15s, border-color .15s;
}
.archive-toggle svg { width: 16px; height: 16px; }
.archive-toggle.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.new-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 22px;
  background: var(--pri); color: var(--bg);
  font-size: 13.5px; font-weight: 600; letter-spacing: .12em;
  transition: background .15s;
}
.new-btn:active { background: var(--pri-deep); }
@media (hover:hover) { .new-btn:hover { background: var(--pri-deep); } }
.new-btn svg { width: 15px; height: 15px; }

/* ---------------- 项目列表 ---------------- */
.list { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.row {
  display: flex; align-items: center; gap: 14px;
  min-height: 74px; padding: 13px 16px;
  background: var(--surface); border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
@media (hover:hover) {
  .row:hover { border-color: #cfc9b8; box-shadow: 0 10px 26px -14px rgba(26,28,25,.25); }
}
.row-thumb {
  flex: none; width: 46px; height: 46px;
  display: grid; place-items: center;
  color: rgba(255,255,255,.94); font-size: 16px; font-weight: 600;
  font-family: var(--serif);
}
.t-1 { background: linear-gradient(150deg, #3e5c50, #1e3a31); }
.t-2 { background: linear-gradient(150deg, #a08b63, #6f5c3a); }
.t-3 { background: linear-gradient(150deg, #5f7263, #37493d); }
.t-4 { background: linear-gradient(150deg, #8d7a5c, #5d4c33); }
.t-5 { background: linear-gradient(150deg, #6b6f66, #43473f); }

.row-main { flex: 1; min-width: 0; }
.row-title {
  font-size: 15px; font-weight: 650; letter-spacing: .03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row-meta {
  margin-top: 4px; font-size: 12px; color: var(--muted); letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row-step {
  flex: none; font-size: 11px; font-weight: 600; letter-spacing: .1em;
  color: var(--pri-deep); padding: 5px 2px;
  border-bottom: 1px solid var(--gold);
  white-space: nowrap;
}
.row-step.archived { color: var(--muted); border-bottom-color: var(--line); }
.row-time { flex: none; font-size: 11.5px; color: var(--muted); width: 78px; text-align: right; }
.pin-flag { flex: none; width: 14px; height: 14px; color: var(--gold); align-self: flex-start; margin-top: 5px; }
.pin-flag svg { width: 100%; height: 100%; }

/* 行尾 ⋯ 菜单 */
.row-actions { position: relative; flex: none; }
.row-menu-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center; color: var(--muted);
  transition: background .15s, color .15s;
}
.row-menu-btn svg { width: 19px; height: 19px; }
@media (hover:hover) { .row-menu-btn:hover { background: var(--soft); color: var(--ink); } }
.row-menu-btn.open { background: var(--soft); color: var(--ink); }
.menu-pop {
  position: absolute; right: 0; top: 48px; z-index: 50;
  min-width: 152px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 18px 44px -16px rgba(26,28,25,.3);
  display: none;
}
.menu-pop.show { display: block; }
.menu-pop button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 42px; padding: 0 12px;
  font-size: 13px; color: var(--ink2); text-align: left; letter-spacing: .05em;
}
.menu-pop button svg { width: 15px; height: 15px; flex: none; }
.menu-pop button:disabled { opacity: .5; cursor: default; }
@media (hover:hover) { .menu-pop button:hover { background: var(--bg); } }
.menu-pop button.danger { color: var(--danger); }
@media (hover:hover) { .menu-pop button.danger:hover { background: #f7ecea; } }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 5px 8px; }

/* 删除确认条 */
.confirm-strip {
  position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px); z-index: 60;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 20px;
  background: var(--ink); color: var(--bg); font-size: 13px;
  box-shadow: 0 20px 44px -14px rgba(26,28,25,.5);
  opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
  white-space: nowrap;
}
.confirm-strip.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.confirm-strip button { min-height: 38px; padding: 0 16px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; }
.confirm-strip .yes { background: var(--danger); color: #fff; }
.confirm-strip .no { background: rgba(253,252,249,.14); color: var(--bg); }

.empty {
  margin-top: 64px; text-align: center; color: var(--muted);
  font-size: 13.5px; line-height: 2; letter-spacing: .04em;
  display: none;
}
.empty.show { display: block; }
.load-state {
  margin-top: 64px; text-align: center; color: var(--muted);
  font-size: 13.5px; letter-spacing: .08em;
}

/* ---------------- 新建项目弹窗 ---------------- */
.np-dialog {
  border: 1px solid var(--line); padding: 0; margin: auto;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px); overflow-y: auto;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 70px -24px rgba(26,28,25,.4);
}
.np-dialog::backdrop { background: rgba(26,28,25,.32); backdrop-filter: blur(3px); }
.np-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0;
}
.np-eyebrow { font-size: 10.5px; letter-spacing: .3em; color: var(--gold); font-weight: 600; }
.np-close {
  width: 40px; height: 40px; display: grid; place-items: center;
  color: var(--muted); transition: background .15s, color .15s;
}
@media (hover:hover) { .np-close:hover { background: var(--soft); color: var(--ink); } }
.np-title {
  padding: 8px 24px 0;
  font-family: var(--serif);
  font-size: 22px; font-weight: 700; letter-spacing: .08em;
}
.np-body { padding: 20px 24px 24px; }
.np-field { margin-top: 20px; }
.np-field:first-child { margin-top: 0; }
.np-field label {
  display: block; font-size: 12px; font-weight: 600; color: var(--ink2);
  letter-spacing: .12em; margin-bottom: 9px;
}
.np-field label em { font-style: normal; color: var(--muted); font-weight: 400; letter-spacing: .04em; }
.np-field input[type="text"], .np-field input[type="number"] {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--line); background: var(--bg);
  font: inherit; font-size: 14.5px; color: var(--ink); outline: 0;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.np-field input:focus { border-color: var(--pri); background: #fff; box-shadow: 0 0 0 3px var(--soft); }
.np-field input::placeholder { color: var(--muted); }
.np-row2 { display: flex; gap: 12px; margin-top: 20px; }
.np-row2 .np-field { flex: 1; margin-top: 0; min-width: 0; }
.np-floor-plan-label { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.np-floor-plan-label label { margin-bottom:9px; }
.np-floor-plan-label > span { margin-bottom:9px; color:var(--gold); font:600 10px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.1em; }
.np-floor-plan-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.np-floor-plan-add,
.np-floor-plan-item { position:relative; min-width:0; aspect-ratio:4/3; border:1px solid var(--line); background:var(--bg); }
.np-floor-plan-add { display:grid; place-content:center; justify-items:center; gap:4px; border-style:dashed; color:var(--pri); transition:border-color .16s,background .16s,transform .16s; }
.np-floor-plan-add[hidden] { display:none; }
.np-floor-plan-add svg { width:26px; height:26px; margin-bottom:2px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; }
.np-floor-plan-add strong { font-size:11px; letter-spacing:.08em; }
.np-floor-plan-add small { color:var(--muted); font-size:9px; }
@media (hover:hover) { .np-floor-plan-add:hover { border-color:var(--pri); background:var(--soft); transform:translateY(-1px); } }
.np-floor-plan-item { overflow:hidden; background:#e9e7df; }
.np-floor-plan-thumb { display:block; width:100%; height:100%; overflow:hidden; cursor:zoom-in; }
.np-floor-plan-thumb img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .18s,filter .18s; }
.np-floor-plan-thumb span { position:absolute; left:0; bottom:0; padding:5px 8px; background:rgba(15,61,51,.88); color:#fff; font:600 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.12em; }
.np-floor-plan-item[data-upload-status="uploading"] .np-floor-plan-thumb span { background:rgba(184,155,107,.92); }
.np-floor-plan-item[data-upload-status="uploading"] .np-floor-plan-thumb img { opacity:.72; }
.np-floor-plan-item[data-upload-status="error"] .np-floor-plan-thumb span { background:rgba(160,61,53,.92); }
.np-floor-plan-item::after { content:""; position:absolute; inset:5px; border:1px solid rgba(255,255,255,.58); pointer-events:none; }
@media (hover:hover) { .np-floor-plan-thumb:hover img { transform:scale(1.025); filter:contrast(1.03); } }
.np-floor-plan-delete { position:absolute; top:6px; right:6px; z-index:2; display:grid; width:30px; height:30px; place-items:center; border:1px solid rgba(255,255,255,.72); background:rgba(26,28,25,.72); color:#fff; backdrop-filter:blur(5px); transition:background .15s,transform .15s; }
.np-floor-plan-delete svg { width:15px; height:15px; }
@media (hover:hover) { .np-floor-plan-delete:hover { background:var(--danger); transform:translateY(-1px); } }
.np-floor-plan-hint { margin-top:8px; color:var(--muted); font-size:10.5px; line-height:1.6; }
.np-floor-plan-preview { width:100vw; max-width:none; height:100dvh; max-height:none; margin:0; padding:40px 64px 28px; border:0; background:rgba(9,16,14,.96); color:#fff; }
.np-floor-plan-preview::backdrop { background:rgba(9,16,14,.96); }
.np-floor-plan-preview figure { display:grid; width:100%; height:100%; grid-template-rows:minmax(0,1fr) auto; gap:14px; }
.np-floor-plan-preview img { display:block; width:100%; height:100%; min-height:0; object-fit:contain; }
.np-floor-plan-preview figcaption { overflow:hidden; color:rgba(255,255,255,.72); font-size:12px; text-align:center; text-overflow:ellipsis; white-space:nowrap; }
.np-floor-plan-preview-close { position:fixed; top:18px; right:22px; z-index:2; width:44px; height:44px; border:1px solid rgba(255,255,255,.42); background:rgba(0,0,0,.2); color:#fff; font-size:27px; line-height:1; }
.np-foot { display: flex; gap: 10px; margin-top: 28px; }
.np-cancel {
  flex: 1; height: 50px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13.5px; color: var(--ink2); letter-spacing: .1em;
  transition: background .15s;
}
@media (hover:hover) { .np-cancel:hover { background: var(--bg); } }
.np-create {
  flex: 2; height: 50px;
  background: var(--pri); color: var(--bg);
  font-size: 13.5px; font-weight: 600; letter-spacing: .18em; text-indent: .18em;
  transition: background .15s;
}
.np-create:disabled { opacity: .6; cursor: default; }
.np-create:active { background: var(--pri-deep); }
@media (hover:hover) { .np-create:hover { background: var(--pri-deep); } }
.np-error { margin-top: 12px; font-size: 12.5px; color: var(--danger); min-height: 18px; letter-spacing: .03em; }

/* ---------------- 选项芯片 ---------------- */
.np-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.np-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 18px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13.5px; color: var(--ink2); letter-spacing: .04em;
  transition: border-color .15s, background .15s, color .15s;
}
.np-chip.on { border-color: var(--pri); background: var(--pri); color: var(--bg); }
@media (hover:hover) {
  .np-chip:hover { border-color: var(--pri); color: var(--pri); }
  .np-chip.on:hover { background: var(--pri-deep); color: var(--bg); }
}

/* ---------------- 登录页 ---------------- */
.login-shell { display: flex; min-height: 100vh; position: relative; z-index: 1; }
.login-brand-side {
  flex: 1.15; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 36px 52px 44px;
}
.login-brand-row { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.login-brand-row .brand-mark { width: 34px; height: 34px; }
.login-brand-row .brand-name { font-size: 16px; }
.login-brand-copy { margin: auto 0; position: relative; z-index: 2; max-width: 520px; }
.login-eyebrow { font-size: 11px; letter-spacing: .34em; color: var(--gold); font-weight: 600; }
.login-brand-title {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(40px, 4.8vw, 60px);
  line-height: 1.35; font-weight: 700; letter-spacing: .06em;
}
.login-brand-title em { font-style: normal; color: var(--pri); }
.login-brand-sub {
  margin-top: 20px; font-size: 14px; line-height: 2; color: var(--ink2);
  max-width: 400px; letter-spacing: .03em;
}
.login-points { display: flex; gap: 0; margin-top: 40px; }
.login-points div {
  flex: 1; max-width: 150px;
  font-size: 12px; color: var(--ink2); line-height: 1.7; letter-spacing: .04em;
  padding-top: 14px; border-top: 1px solid var(--gold);
}
.login-points div + div { margin-left: 28px; }
.login-points b {
  display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 3px;
  font-family: var(--serif); letter-spacing: .08em;
}
.login-arch {
  position: absolute; right: -130px; bottom: -190px; z-index: 1;
  width: 470px; height: 610px;
  border-radius: 235px 235px 0 0;
  background: linear-gradient(165deg, #eceadf 0%, #dde3d6 55%, #cfd9c8 100%);
  animation: archFloat1 16s ease-in-out infinite alternate;
}
.login-arch::after {
  content: ""; position: absolute; left: 70px; top: 90px;
  width: 190px; height: 290px;
  border-radius: 95px 95px 0 0;
  background: linear-gradient(165deg, rgba(253,252,249,.9), rgba(253,252,249,.25));
}
.login-side {
  flex: 1; display: grid; place-items: center;
  padding: 40px 30px;
  background: var(--surface);
  border-left: 1px solid var(--line);
}
.login-card { width: 100%; max-width: 380px; }
.login-hello { font-size: 11px; color: var(--gold); letter-spacing: .3em; font-weight: 600; }
.login-title {
  margin-top: 12px; font-size: 28px; font-weight: 700; letter-spacing: .08em;
  font-family: var(--serif);
}
.login-field { margin-top: 24px; }
.login-field label {
  display: block; font-size: 12px; color: var(--ink2);
  margin-bottom: 9px; font-weight: 600; letter-spacing: .14em;
}
.login-field input {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid var(--line); background: var(--bg);
  font: inherit; font-size: 15px; color: var(--ink); outline: 0;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.login-field input:focus { border-color: var(--pri); background: #fff; box-shadow: 0 0 0 3px var(--soft); }
.login-field input::placeholder { color: var(--muted); }
.login-btn {
  margin-top: 30px; width: 100%; height: 54px;
  background: var(--pri); color: var(--bg);
  font-size: 14px; font-weight: 600; letter-spacing: .3em; text-indent: .3em;
  transition: background .18s;
}
.login-btn:disabled { opacity: .6; cursor: default; }
.login-btn:active { background: var(--pri-deep); }
@media (hover:hover) { .login-btn:hover { background: var(--pri-deep); } }
.login-error { margin-top: 14px; font-size: 12.5px; color: var(--danger); min-height: 18px; text-align: center; letter-spacing: .03em; }
.login-note {
  margin-top: 18px; font-size: 12px; color: var(--muted);
  line-height: 1.9; text-align: center; letter-spacing: .04em;
}

@media (max-width: 860px) {
  .login-shell { flex-direction: column; }
  .login-brand-side { padding: 26px 26px 46px; flex: none; }
  .login-brand-copy { margin: 42px 0 0; }
  .login-points div + div { margin-left: 18px; }
  .login-arch { width: 320px; height: 400px; right: -120px; bottom: -160px; opacity: .8; }
  .login-side { border-left: 0; border-top: 1px solid var(--line); padding: 36px 22px 52px; }
}
@media (max-width: 640px) {
  .page { padding: 20px 16px calc(44px + env(safe-area-inset-bottom)); }
  .toolbar { flex-wrap: wrap; }
  .search-box { order: 3; flex-basis: 100%; }
  .archive-toggle { margin-left: auto; }
  .row-time { display: none; }
  .user-name { display: none; }
  .np-floor-plan-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .np-floor-plan-preview { padding:56px 16px 24px; }
}


/* ---------------- v2 产品定位 ---------------- */
.pp-workspace { margin-top: 26px; }
.ps-stage-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:24px; border:1px solid var(--line); }
.ps-stage-nav button { display:flex; align-items:center; gap:13px; min-height:68px; padding:0 22px; text-align:left; color:var(--muted); border-right:1px solid var(--line); }
.ps-stage-nav button:last-child { border-right:0; }
.ps-stage-nav button.active { background:var(--pri); color:#fff; }
.ps-stage-nav b { font-size:11px; letter-spacing:.16em; color:var(--gold); }
.ps-stage-nav span { font-family:var(--serif); font-size:16px; letter-spacing:.08em; }
.ps-profile { margin:18px 0 24px; padding:18px 20px; border:1px solid var(--line); background:var(--bg); }
.ps-profile header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.ps-profile h3 { font-family:var(--serif); font-size:18px; letter-spacing:.08em; }
.ps-profile small { color:var(--muted); }
.ps-profile-tags { display:flex; flex-wrap:wrap; gap:7px; margin-top:13px; }
.ps-profile-tags span { padding:6px 9px; background:var(--soft); color:var(--pri); font-size:11px; }
.ps-space-nav { position:sticky; top:0; z-index:35; display:flex; align-items:center; gap:14px; margin:0 0 16px; padding:10px 12px; border:1px solid var(--line); background:rgba(255,255,255,.96); box-shadow:0 10px 28px rgba(30,38,32,.09); backdrop-filter:blur(10px); }
.ps-space-nav > span { flex:none; padding-right:12px; border-right:1px solid var(--line); color:var(--gold); font-size:10px; letter-spacing:.16em; }
.ps-space-nav > div { display:flex; min-width:0; gap:7px; overflow-x:auto; scrollbar-width:none; }
.ps-space-nav > div::-webkit-scrollbar { display:none; }
.ps-space-anchor { flex:none; padding:8px 12px; border:1px solid transparent; color:var(--muted); font-size:11px; white-space:nowrap; }
.ps-space-anchor:hover { color:var(--pri); border-color:var(--line); }
.ps-space-anchor.active { border-color:var(--pri); background:var(--pri); color:#fff; }
.ps-slots { display:grid; gap:24px; }
.ps-space { scroll-margin-top:62px; border:1px solid var(--line); background:#fff; }
.ps-space > header { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:21px 24px; background:var(--bg); border-bottom:1px solid var(--line); }
.ps-space > header h3 { font-family:var(--serif); font-size:22px; letter-spacing:.1em; }
.ps-space > header p { margin-top:5px; color:var(--muted); font-size:11px; }
.ps-space-progress { color:var(--pri); font-size:12px; white-space:nowrap; }
.ps-category-list { padding:0 24px; }
.ps-category { padding:22px 0 26px; border-bottom:1px solid var(--line); }
.ps-category:last-child { border-bottom:0; }
.ps-category > header { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.ps-category h4 { font-family:var(--serif); font-size:18px; letter-spacing:.07em; }
.ps-category header p { margin-top:5px; color:var(--muted); font-size:11px; }
.ps-category-actions { display:flex; align-items:center; gap:12px; }
.ps-category-state { color:var(--muted); font-size:11px; }
.ps-more { border:1px solid var(--pri); color:var(--pri); padding:8px 12px; font-size:11px; }
.ps-final-slot { margin-top:16px; padding:14px; border:1px solid var(--line); background:var(--bg); }
.ps-final-label { display:flex; justify-content:space-between; gap:12px; margin-bottom:11px; color:var(--pri); font-size:11px; letter-spacing:.08em; }
.ps-final-label span { color:var(--muted); letter-spacing:0; }
.ps-final-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:12px; }
.ps-final-grid.single { grid-template-columns:minmax(0,820px); }
.ps-final-product { display:grid; grid-template-columns:minmax(180px,32%) minmax(0,1fr); overflow:hidden; border:1px solid var(--pri); background:#fff; box-shadow:inset 0 0 0 1px var(--pri); }
.ps-final-product > img { width:100%; height:100%; min-height:180px; padding:10px; object-fit:contain; background:#f4f1e9; border-right:1px solid var(--line); }
.ps-final-body { min-width:0; padding:15px; }
.ps-allocation { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-top:11px; }
.ps-allocation strong { margin-right:3px; color:var(--pri); font-size:18px; }
.ps-allocation button { padding:5px 8px; border:1px solid var(--line); color:var(--pri); font-size:10px; }
.ps-recommend-head { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:17px; }
.ps-recommend-head span { color:var(--pri); font-size:12px; letter-spacing:.08em; }
.ps-recommend-head small { color:var(--muted); font-size:10px; }
.ps-recommend-strip { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:9px; margin-top:9px; }
.ps-rec-thumb { min-width:0; padding:7px; border:1px solid var(--line); background:#fff; text-align:left; }
.ps-rec-thumb:hover,.ps-rec-thumb.selected { border-color:var(--pri); background:var(--soft); }
.ps-rec-thumb img { width:100%; height:76px; padding:4px; object-fit:contain; background:var(--bg); }
.ps-rec-thumb > span { display:flex; justify-content:space-between; gap:5px; margin-top:6px; font-size:9px; }
.ps-rec-thumb b { color:var(--gold); }
.ps-rec-thumb em { color:var(--pri); font-style:normal; }
.ps-rec-thumb small { display:block; overflow:hidden; margin-top:4px; color:var(--ink2); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.ps-candidates { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px; margin-top:16px; }
.ps-card { overflow:hidden; border:1px solid var(--line); background:var(--surface); text-align:left; }
.ps-card.selected { border-color:var(--pri); box-shadow:inset 0 0 0 1px var(--pri); }
.ps-card img { width:100%; height:145px; object-fit:cover; background:var(--bg); }
.ps-card-body { padding:13px; }
.ps-card-title { display:flex; justify-content:space-between; gap:10px; font-weight:600; }
.ps-score { color:var(--pri); white-space:nowrap; }
.ps-price { margin-top:6px; color:var(--gold); font-size:13px; }
.ps-reasons { margin-top:8px; min-height:34px; color:var(--muted); font-size:10.5px; line-height:1.6; }
.ps-materials { display:flex; flex-wrap:wrap; gap:6px; margin-top:11px; }
.ps-material { display:inline-flex; align-items:center; gap:6px; padding:6px 8px; border:1px solid var(--line); font-size:10px; }
.ps-material.on { border-color:var(--pri); background:var(--soft); color:var(--pri); }
.ps-swatch { width:13px; height:13px; border:1px solid rgba(0,0,0,.12); }
.ps-empty { margin-top:15px; padding:16px; color:var(--danger); background:#fff8f5; font-size:12px; }
.ps-footer { position:sticky; bottom:16px; z-index:4; display:flex; align-items:center; gap:14px; margin-top:28px; padding:14px; border:1px solid var(--line); background:rgba(255,255,255,.96); box-shadow:0 12px 40px rgba(30,38,32,.12); }
.ps-footer > span { color:var(--muted); font-size:11px; white-space:nowrap; }
.ps-footer > button { flex:0 0 auto; white-space:nowrap; }
.ps-summary-toggle { display:flex; align-items:center; gap:12px; margin-left:auto; padding:9px 12px; border:1px solid var(--line); background:var(--bg); color:var(--ink2); text-align:left; }
.ps-summary-toggle:hover,.ps-summary-toggle.active { border-color:var(--pri); background:var(--soft); }
.ps-summary-toggle span { display:flex; align-items:baseline; gap:6px; color:var(--muted); font-size:10px; white-space:nowrap; }
.ps-summary-toggle b { color:var(--pri); font-size:13px; }
.ps-summary-toggle .over b { color:var(--danger); }
.ps-summary-toggle i { width:1px; height:22px; background:var(--line); }
.ps-summary-toggle em { color:var(--gold); font-size:9px; font-style:normal; white-space:nowrap; }
.ps-summary-drawer { position:absolute; right:-1px; bottom:calc(100% + 8px); width:min(680px,calc(100% + 2px)); max-height:min(58vh,520px); overflow-y:auto; border:1px solid var(--line); background:#fff; box-shadow:0 -18px 46px rgba(30,38,32,.16); }
.ps-summary-drawer > header { position:sticky; top:0; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 16px; border-bottom:1px solid var(--line); background:rgba(255,255,255,.97); }
.ps-summary-drawer > header b { font-family:var(--serif); font-size:16px; letter-spacing:.08em; }
.ps-summary-drawer > header small { display:block; margin-top:3px; color:var(--muted); font-size:9.5px; }
.ps-summary-drawer > header button { width:32px; height:32px; border:1px solid var(--line); font-size:18px; }
.ps-summary-spaces { padding:0 16px 14px; }
.ps-summary-spaces > section { padding:13px 0 10px; border-bottom:1px solid var(--line); }
.ps-summary-spaces > section:last-child { border-bottom:0; }
.ps-summary-spaces > section > header { display:flex; justify-content:space-between; gap:12px; margin-bottom:5px; }
.ps-summary-spaces > section > header b { color:var(--pri); font-size:12px; }
.ps-summary-spaces > section > header span { color:var(--gold); font-size:12px; }
.ps-summary-row { display:grid; grid-template-columns:minmax(0,1fr) 34px 72px 82px; align-items:center; gap:8px; min-height:30px; color:var(--ink2); font-size:10.5px; }
.ps-summary-row > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ps-summary-row small { margin-right:7px; color:var(--muted); font-size:9px; }
.ps-summary-row i,.ps-summary-row em { color:var(--muted); font-style:normal; text-align:right; }
.ps-summary-row > b { color:var(--ink); text-align:right; }
.ps-summary-empty { padding:30px; color:var(--muted); text-align:center; font-size:11px; }
@media(max-width:900px){.ps-recommend-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.ps-final-product{grid-template-columns:140px minmax(0,1fr)}}
@media(max-width:760px){.ps-candidates{grid-template-columns:1fr}.ps-space>header,.ps-category>header{align-items:start;flex-direction:column}.ps-category-actions{width:100%;justify-content:space-between}.ps-final-product{grid-template-columns:1fr}.ps-final-product>img{height:160px;min-height:0}.ps-recommend-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.ps-footer{flex-wrap:wrap}.ps-summary-toggle{order:3;width:100%;margin-left:0;justify-content:space-between}.ps-footer>span{margin-left:auto}.ps-summary-drawer{width:calc(100% + 2px)}.ps-summary-row{grid-template-columns:minmax(0,1fr) 28px 64px}.ps-summary-row>em{display:none}}
@media(max-width:760px){.ps-space-nav{top:0;margin-left:-8px;margin-right:-8px}.ps-space-nav>span{display:none}.ps-space{scroll-margin-top:58px}}
.ps-picker-dialog { width:min(1180px,calc(100vw - 64px)); max-width:none; padding:0; border:0; background:transparent; overflow:visible; }
.ps-picker-dialog[open] { position:fixed; inset:50% auto auto 50%; transform:translate(-50%,-50%); margin:0; }
.ps-picker-dialog::backdrop { background:rgba(20,32,27,.72); backdrop-filter:blur(3px); }
.ps-picker-panel { height:min(84vh,820px); overflow-y:auto; overscroll-behavior:contain; background:var(--surface); border:1px solid var(--line); padding:26px; }
.ps-picker-panel > header { display:flex; justify-content:space-between; align-items:start; gap:20px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.ps-picker-panel > header span { color:var(--gold); font-size:10px; letter-spacing:.2em; }
.ps-picker-panel > header h2 { margin-top:5px; font-family:var(--serif); font-size:25px; letter-spacing:.08em; }
.ps-picker-panel > header p { margin-top:5px; color:var(--muted); font-size:11px; }
.ps-picker-close { width:44px; height:44px; border:1px solid var(--line); font-size:22px; }
.ps-picker-tools { position:sticky; top:0; z-index:2; padding:16px 0; background:var(--surface); }
.ps-picker-tools input { width:100%; min-height:44px; padding:0 14px; border:1px solid var(--line); background:#fff; }
.ps-picker-filters { display:flex; flex-wrap:wrap; gap:7px; margin-top:11px; }
.ps-picker-filter { padding:7px 10px; border:1px solid var(--line); color:var(--ink2); font-size:10.5px; }
.ps-picker-filter.on { border-color:var(--pri); background:var(--pri); color:#fff; }
.ps-picker-results { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:12px; }
.ps-picker-card { border:1px solid var(--line); background:#fff; overflow:hidden; }
.ps-picker-card.selected { border-color:var(--pri); box-shadow:inset 0 0 0 1px var(--pri); }
.ps-picker-card > img { width:100%; height:150px; padding:7px; object-fit:contain; background:var(--bg); }
.ps-picker-card-body { padding:13px; }
.ps-picker-card-title { display:flex; justify-content:space-between; gap:10px; font-weight:600; }
.ps-picker-card-tags { display:flex; flex-wrap:wrap; gap:5px; min-height:25px; margin-top:9px; }
.ps-picker-card-tags span { padding:3px 6px; background:var(--soft); color:var(--pri); font-size:9px; }
.ps-picker-select { width:100%; margin-top:12px; padding:9px; border-color:var(--pri); background:var(--pri); color:#fff; }
.ps-picker-empty { grid-column:1/-1; padding:60px 20px; text-align:center; color:var(--muted); border:1px dashed var(--line); }
.ps-picker-load-state { grid-column:1/-1; padding:18px; text-align:center; color:var(--muted); font-size:11px; }
@media(max-width:760px){.ps-picker-dialog{width:calc(100vw - 24px)}.ps-picker-panel{height:90vh;padding:18px}}
.rr-status { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:24px; padding:18px 20px; border:1px solid var(--line); background:var(--bg); }
.rr-status h3 { font-family:var(--serif); font-size:18px; letter-spacing:.08em; }
.rr-status p { margin-top:5px; color:var(--muted); font-size:11px; }
.rr-groups { display:grid; gap:24px; margin-top:20px; }
.rr-group { padding:20px; border:1px solid var(--line); background:#fff; }
.rr-group h3 { font-family:var(--serif); font-size:18px; letter-spacing:.08em; }
.rr-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:12px; margin-top:14px; }
.rr-card { border:1px solid var(--line); background:var(--surface); overflow:hidden; }
.rr-card-refs { position:relative; height:170px; background:var(--bg); overflow:hidden; }
.rr-product-ref { width:100%; height:100%; object-fit:contain; }
.rr-material-ref { position:absolute; right:8px; bottom:8px; width:72px; padding:4px; background:#fff; border:1px solid var(--green); box-shadow:0 3px 12px #10251e24; }
.rr-material-ref img { display:block; width:100%; height:54px; object-fit:cover; }
.rr-material-ref small { display:block; padding-top:3px; color:var(--green); font-size:9px; text-align:center; }
.rr-material-name { color:var(--green) !important; }
.tk-color-tendencies { display:flex; flex-wrap:wrap; gap:10px; }
.tk-color-tendency { min-width:138px; display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--line); background:var(--surface); }
.tk-color-tendency > i { flex:none; width:34px; height:34px; border:1px solid #00000012; border-radius:50%; }
.tk-color-tendency > span { min-width:0; display:grid; gap:2px; }
.tk-color-tendency b { font-size:13px; font-weight:500; }
.tk-color-tendency small { color:var(--muted); font-size:10px; letter-spacing:.08em; }
.tk-color-tendency em { margin-left:auto; color:var(--gold); font-size:11px; font-style:normal; }
.tk-color-palette { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:12px; }
.tk-color-card { display:grid; grid-template-columns:78px 1fr; min-height:96px; border:1px solid var(--line); background:var(--surface); overflow:hidden; }
.tk-color-card > i { width:100%; height:100%; min-height:96px; border-right:1px solid #0000000d; }
.tk-color-card > div { display:flex; min-width:0; flex-direction:column; justify-content:center; gap:4px; padding:12px; }
.tk-color-card small { color:var(--gold); font-size:10px; letter-spacing:.1em; }
.tk-color-card b { overflow:hidden; text-overflow:ellipsis; font-size:13px; font-weight:500; white-space:nowrap; }
.tk-color-card code { color:var(--muted); font:10px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace; }
.rr-card-body { padding:12px; }
.rr-card-body strong { display:block; }
.rr-card-body span { display:block; margin-top:5px; color:var(--muted); font-size:10.5px; }
.rr-material { display:flex; align-items:center; gap:8px; margin-top:9px; padding-top:9px; border-top:1px solid var(--line); }
.rr-material img { width:36px; height:36px; object-fit:cover; }
.rr-note { margin-top:18px; padding:14px 16px; border-left:3px solid var(--gold); background:var(--soft); color:var(--ink2); font-size:11.5px; line-height:1.8; }
.rr-pack { margin-top:24px; border:1px solid var(--line); background:var(--bg); }
.rr-pack > summary { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 18px; cursor:pointer; list-style:none; }
.rr-pack > summary::-webkit-details-marker { display:none; }
.rr-pack > summary div { display:flex; align-items:baseline; gap:12px; min-width:0; }
.rr-pack > summary strong { font-family:var(--serif); font-size:15px; letter-spacing:.06em; white-space:nowrap; }
.rr-pack > summary span { color:var(--muted); font-size:10.5px; white-space:nowrap; }
.rr-pack > summary em { color:var(--pri); font-size:10.5px; font-style:normal; white-space:nowrap; }
.rr-pack > summary em::after { content:" ↓"; }
.rr-pack[open] > summary { border-bottom:1px solid var(--line); }
.rr-pack[open] > summary em::after { content:" ↑"; }
.rr-pack-body { padding:0 18px 18px; }
.rr-pack-actions { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0 0; }
.rr-pack-actions p { color:var(--muted); font-size:10.5px; }
.rw-shell { margin-top:18px; }
.rw-space-nav { position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:4px; padding:9px 12px; border:1px solid var(--line); background:#fdfcf8; box-shadow:0 9px 28px rgba(30,38,32,.1); overflow-x:auto; }
.rw-space-nav > span { padding:0 14px 0 3px; margin-right:7px; border-right:1px solid var(--line); color:var(--gold); font-size:9px; letter-spacing:.16em; white-space:nowrap; }
.rw-space-nav button { flex:0 0 auto; min-height:34px; padding:7px 14px; border:1px solid transparent; color:var(--muted); font-size:12px; white-space:nowrap; transition:.18s ease; }
.rw-space-nav button:hover { color:var(--pri); background:var(--soft); }.rw-space-nav button.active { border-color:var(--pri); background:var(--pri); color:#fff; }
.rw-steps { display:grid; grid-template-columns:repeat(4,1fr); margin:12px 0 18px; border:1px solid var(--line); background:#fbfaf6; }
.rw-steps span { position:relative; padding:12px 10px; border-right:1px solid var(--line); color:#9b9e96; font-size:10.5px; letter-spacing:.03em; text-align:center; }
.rw-steps span:last-child { border-right:0; }.rw-steps span.active { color:var(--pri); background:#edf2ee; font-weight:700; }.rw-steps span.active::after { content:""; position:absolute; right:22%; bottom:-1px; left:22%; height:2px; background:var(--pri); }
.rw-section { margin-top:14px; padding:26px; border:1px solid var(--line); background:#fff; box-shadow:0 12px 34px rgba(35,46,39,.035); }
.rw-section > header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:16px; }
.rw-section > header > div:last-child { display:flex; gap:8px; }.rw-section > header .tk-btn { min-width:108px; min-height:42px; padding:9px 16px; background:#fff; }
.rw-section small { color:var(--gold); font-size:9px; letter-spacing:.24em; }.rw-section h3 { margin-top:5px; font-family:var(--serif); font-size:21px; letter-spacing:.04em; }.rw-section header p { margin-top:7px; color:var(--muted); font-size:10.5px; }
.rw-upload { position:relative; cursor:pointer; white-space:nowrap; }
.rw-assets { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:13px; outline:none; }.rw-assets.empty { display:block; }.rw-assets.dragging { outline:2px solid var(--pri); outline-offset:4px; background:#edf2ee; }
.rw-asset { position:relative; border:1px solid var(--line); background:#f3f1e9; overflow:hidden; }.rw-asset.primary { border-color:var(--pri); }
.rw-asset img { display:block; width:100%; height:260px; object-fit:contain; background:#f3f1e9; }.rw-asset button { position:absolute; top:12px; right:12px; padding:8px 12px; border:1px solid rgba(255,255,255,.72); background:rgba(15,61,51,.9); color:#fff; font-size:10px; backdrop-filter:blur(5px); }.rw-assets.single { grid-template-columns:1fr; }.rw-assets.single .rw-asset img { height:min(62vh,560px); min-height:360px; }.rw-assets.single .rw-asset button { display:none; }.rw-empty-upload { display:flex; min-height:230px; border:1px dashed #cbb487; background:linear-gradient(135deg,#fbfaf6 0%,#f4f1e8 100%); color:var(--ink); cursor:pointer; flex-direction:column; align-items:center; justify-content:center; text-align:center; transition:.2s ease; }
.rw-empty-upload:hover { border-color:var(--pri); background:#f0f4f0; transform:translateY(-1px); }.rw-empty-upload i { display:grid; place-items:center; width:48px; height:48px; margin-bottom:14px; border:1px solid #c7b17e; border-radius:50%; color:var(--gold); font-size:24px; font-style:normal; }.rw-empty-upload strong { font-family:var(--serif); font-size:20px; letter-spacing:.06em; }.rw-empty-upload span { margin-top:7px; color:var(--muted); font-size:10.5px; }.rw-empty-upload em { margin-top:17px; padding:9px 20px; background:var(--pri); color:#fff; font-size:11px; font-style:normal; }
.rw-gene-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-bottom:14px; }.rw-gene-grid > div { padding:12px; background:var(--bg); border:1px solid var(--line); }
.rw-gene-grid span { display:block; color:var(--muted); font-size:9px; }.rw-gene-grid b { display:block; margin-top:5px; color:var(--pri); font-size:12px; }
.rw-field { display:block; }.rw-field > span { display:block; margin-bottom:6px; color:var(--ink2); font-size:10px; }.rw-field textarea { width:100%; padding:12px; border:1px solid var(--line); resize:vertical; }
.rw-generate-bar { display:flex; align-items:center; gap:14px; margin-top:12px; padding-top:12px; border-top:1px solid var(--line); }.rw-generate-bar label { display:flex; align-items:center; gap:8px; font-size:10px; }.rw-generate-bar select { padding:8px 26px 8px 10px; border:1px solid var(--line); }.rw-generate-bar > span { margin-left:auto; color:var(--muted); font-size:10px; }
.rw-results { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:12px; }.rw-result { border:1px solid var(--line); background:var(--surface); }
.rw-result-image { display:grid; place-items:center; aspect-ratio:4/3; background:var(--bg); overflow:hidden; }.rw-result-image img { width:100%; height:100%; object-fit:cover; }.rw-result-state { color:var(--muted); font-size:11px; }
.rw-result-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:11px 12px; }.rw-result-meta span { color:var(--muted); font-size:9px; }.rw-result-actions { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid var(--line); }.rw-result-actions button { padding:10px; border-right:1px solid var(--line); }.rw-result-actions button:last-child { border-right:0; color:var(--pri); font-weight:700; }
.rw-dialog { width:min(980px,calc(100vw - 32px)); max-height:calc(100vh - 32px); margin:auto; padding:0; border:0; background:transparent; }.rw-dialog::backdrop { background:rgba(16,34,29,.68); }
.rw-dialog-panel { max-height:calc(100vh - 32px); overflow:auto; padding:22px; background:#fff; }.rw-dialog-panel > header,.rw-dialog-panel > footer { display:flex; align-items:center; justify-content:space-between; gap:16px; }.rw-dialog-panel > header { margin-bottom:14px; }.rw-dialog-panel header span { color:var(--gold); font-size:9px; letter-spacing:.2em; }.rw-dialog-panel header h2 { font-family:var(--serif); }.rw-dialog-panel header p { color:var(--muted); font-size:10px; }.rw-dialog-panel header button { width:38px; height:38px; border:1px solid var(--line); font-size:20px; }
.rw-marker-stage { position:relative; display:grid; place-items:center; min-height:360px; background:#202820; cursor:crosshair; }.rw-marker-stage > img { display:block; max-width:100%; max-height:58vh; }.rw-marker-stage > div { position:absolute; inset:0; pointer-events:none; }.rw-marker { position:absolute; width:28px; height:28px; transform:translate(-50%,-50%); border-radius:50%; background:var(--gold); color:#fff; font-weight:700; pointer-events:auto; }
.rw-marker-list { display:grid; gap:7px; margin:12px 0; }.rw-marker-list label { display:grid; grid-template-columns:28px 1fr 32px; align-items:center; gap:7px; }.rw-marker-list b { display:grid; place-items:center; width:26px; height:26px; border-radius:50%; background:var(--gold); color:#fff; }.rw-marker-list input { padding:9px 10px; border:1px solid var(--line); }.rw-dialog-panel footer { margin-top:14px; justify-content:flex-end; }
@media(max-width:760px){.rw-section{padding:18px}.rw-section>header{flex-direction:column}.rw-section>header>div:last-child{width:100%}.rw-section>header .tk-btn{flex:1;min-width:0}.rw-gene-grid{grid-template-columns:1fr 1fr}.rw-generate-bar{align-items:stretch;flex-direction:column}.rw-generate-bar>span{margin-left:0}.rw-steps{grid-template-columns:1fr 1fr}.rw-results{grid-template-columns:1fr}.rw-marker-stage{min-height:240px}.rw-empty-upload{min-height:190px}.rw-assets.single .rw-asset img{height:48vh;min-height:260px}}
.proj-heading-row { display:flex; align-items:flex-start; justify-content:space-between; gap:30px; }
.proj-heading-row > div { min-width:0; }
.collected-entry { position:relative; flex:0 0 178px; display:flex; min-height:76px; padding:15px 42px 14px 17px; border:1px solid var(--line); background:rgba(255,255,255,.72); flex-direction:column; align-items:flex-start; justify-content:center; text-align:left; transition:.18s ease; }
.collected-entry:hover { border-color:var(--pri); background:#fff; transform:translateY(-1px); box-shadow:0 10px 28px rgba(30,38,32,.08); }.collected-entry span { color:var(--gold); font-size:8px; letter-spacing:.18em; }.collected-entry strong { margin-top:5px; color:var(--pri); font-family:var(--serif); font-size:16px; letter-spacing:.06em; }.collected-entry em { position:absolute; top:50%; right:14px; display:grid; width:25px; height:25px; transform:translateY(-50%); border-radius:50%; background:var(--pri); color:#fff; place-items:center; font-size:10px; font-style:normal; }
.collected-dialog { width:min(1180px,calc(100vw - 32px)); max-height:calc(100vh - 32px); margin:auto; padding:0; border:0; background:transparent; }.collected-dialog::backdrop { background:rgba(16,34,29,.7); }.collected-panel { max-height:calc(100vh - 32px); overflow:auto; padding:26px; background:#fdfcf8; }.collected-panel > header { position:sticky; top:-26px; z-index:3; display:flex; align-items:center; justify-content:space-between; gap:20px; margin:-26px -26px 20px; padding:22px 26px; border-bottom:1px solid var(--line); background:rgba(253,252,248,.98); }.collected-panel > header > div:last-child { display:flex; align-items:center; gap:9px; }.collected-panel header span { color:var(--gold); font-size:9px; letter-spacing:.22em; }.collected-panel header h2 { margin-top:3px; font-family:var(--serif); font-size:25px; }.collected-panel header p { margin-top:5px; color:var(--muted); font-size:10.5px; }.collected-close { width:42px; height:42px; border:1px solid var(--line); background:#fff; font-size:22px; }
.collected-groups { display:grid; gap:22px; }.collected-space { padding-bottom:20px; border-bottom:1px solid var(--line); }.collected-space:last-child { border-bottom:0; }.collected-space > header { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:11px; }.collected-space > header h3 { font-family:var(--serif); font-size:19px; }.collected-space > header span { color:var(--muted); font-size:10px; }.collected-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px; }.collected-card { border:1px solid var(--line); background:#fff; }.collected-card > button { display:block; width:100%; height:165px; overflow:hidden; background:var(--bg); cursor:zoom-in; }.collected-card img { width:100%; height:100%; object-fit:cover; transition:.2s ease; }.collected-card > button:hover img { transform:scale(1.025); }.collected-card-body { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 12px; }.collected-card-body strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.collected-card-body button { flex:0 0 auto; padding:7px 10px; border:1px solid var(--line); color:var(--pri); font-size:10px; }.collected-empty { display:grid; min-height:260px; color:var(--muted); place-items:center; text-align:center; }
.collected-preview { width:100vw; max-width:none; height:100vh; max-height:none; margin:0; padding:0; border:0; background:rgba(9,16,14,.96); }.collected-preview::backdrop { background:rgba(9,16,14,.96); }.collected-preview-stage { position:relative; display:grid; width:100%; height:100%; padding:38px 88px 86px; place-items:center; }.collected-preview-stage img { display:block; max-width:100%; max-height:calc(100vh - 150px); object-fit:contain; box-shadow:0 18px 60px rgba(0,0,0,.35); }.collected-preview-close { position:fixed; top:24px; right:28px; z-index:2; width:46px; height:46px; border:1px solid rgba(255,255,255,.35); color:#fff; font-size:28px; }.collected-preview-arrow { position:fixed; top:50%; z-index:2; width:52px; height:72px; transform:translateY(-50%); border:1px solid rgba(255,255,255,.25); background:rgba(255,255,255,.08); color:#fff; font-size:40px; }.collected-preview-arrow:hover { background:rgba(255,255,255,.18); }.collected-preview-arrow:disabled { visibility:hidden; }.collected-preview-arrow.prev { left:24px; }.collected-preview-arrow.next { right:24px; }.collected-preview-stage footer { position:fixed; right:88px; bottom:25px; left:88px; display:flex; align-items:flex-end; justify-content:space-between; gap:20px; color:#fff; }.collected-preview-stage footer div { display:grid; gap:4px; }.collected-preview-stage footer strong { font-family:var(--serif); font-size:20px; }.collected-preview-stage footer span { color:rgba(255,255,255,.65); font-size:12px; }.collected-preview-stage footer em { color:rgba(255,255,255,.75); font-style:normal; font-variant-numeric:tabular-nums; }
@media(max-width:760px){.proj-heading-row{display:block}.collected-entry{width:100%;min-height:58px;margin-top:18px}.collected-panel{padding:18px}.collected-panel>header{top:-18px;margin:-18px -18px 16px;padding:16px 18px;align-items:flex-start}.collected-panel>header>div:last-child{align-items:stretch;flex-direction:column-reverse}.collected-grid{grid-template-columns:1fr 1fr}.collected-preview-stage{padding:62px 16px 92px}.collected-preview-arrow{width:42px;height:60px;background:rgba(0,0,0,.32)}.collected-preview-arrow.prev{left:8px}.collected-preview-arrow.next{right:8px}.collected-preview-stage footer{right:18px;bottom:22px;left:18px}.collected-preview-close{top:12px;right:12px}}
.pp-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.pp-tab { min-width: 108px; padding: 12px 20px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 13px; letter-spacing: .16em; }
.pp-tab.active { color: var(--pri); border-bottom-color: var(--pri); font-weight: 600; }
.pp-unit-hint { margin-top: 18px; color: var(--muted); font-size: 12.5px; letter-spacing: .04em; }
.pp-budget { margin-top: 14px; display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.pp-budget > label { display: grid; gap: 8px; color: var(--ink2); font-size: 11.5px; letter-spacing: .12em; }
.pp-money { height: 46px; min-width: 230px; padding: 0 14px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--gold); font-size: 16px; }
.pp-money input { width: 180px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
.pp-total { min-height: 22px; margin-top: 14px; color: var(--muted); font-size: 12.5px; }
.pp-total b { color: var(--ink); }
.pp-total em { color: var(--danger); font-style: normal; font-weight: 600; }
.pp-spaces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.pp-placeholder { grid-column: 1 / -1; padding: 34px 20px; border: 1px dashed var(--line); color: var(--muted); text-align: center; font-size: 12.5px; letter-spacing: .06em; }
.pp-space { min-width: 0; padding: 18px; border: 1px solid var(--line); background: var(--bg); }
.pp-space > header { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pp-space > header strong { font-family: var(--serif); font-size: 17px; letter-spacing: .08em; }
.pp-space > header span { flex: 1; color: var(--muted); font-size: 11.5px; text-align: right; }
.pp-space > header button, .pp-remove-item { color: var(--muted); font-size: 11px; }
.pp-item { display: grid; grid-template-columns: minmax(68px, 1fr) auto auto 20px; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid rgba(221,216,202,.65); font-size: 12px; }
.pp-item > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); }
.pp-item label { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.pp-item input { width: 54px; height: 32px; padding: 0 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.pp-item .pp-amount { width: 72px; }
.pp-empty-row { padding: 12px 0; color: var(--muted); font-size: 11.5px; }
.pp-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.pp-chip, .pp-custom-category button { min-height: 30px; padding: 0 10px; border: 1px dashed var(--line); color: var(--muted); font-size: 11px; }
.pp-custom-category { display: flex; gap: 6px; flex-wrap: wrap; }
.pp-custom-category input { height: 30px; width: 150px; padding: 0 8px; border: 1px solid var(--pri); background: var(--surface); font: inherit; font-size: 11px; outline: 0; }
.pp-footer { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.pp-footer select { min-height: 42px; padding: 0 12px; border: 1px dashed var(--line); background: var(--surface); color: var(--ink2); font: inherit; font-size: 12px; }
.pp-footer > span { flex: 1; color: var(--muted); font-size: 11.5px; text-align: right; }
@media (hover:hover) { .pp-chip:hover, .pp-space > header button:hover, .pp-remove-item:hover { color: var(--pri); border-color: var(--pri); } }
@media (max-width: 860px) { .pp-spaces { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .pp-item { grid-template-columns: 1fr auto 20px; }
  .pp-item label:first-of-type { display: none; }
  .pp-footer > span { flex-basis: 100%; order: 3; text-align: left; }
}


/* ---------------- 基础组件：输入弹窗 ---------------- */
.ui-dialog {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 40px);
  margin: auto; padding: 0; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
  box-shadow: 0 32px 80px -26px rgba(26,28,25,.5);
}
.ui-dialog::backdrop { background: rgba(26,28,25,.46); backdrop-filter: blur(4px); }
.ui-dialog-card { padding: 24px; }
.ui-dialog-card > header { display: flex; align-items: center; justify-content: space-between; }
.ui-dialog-eyebrow { color: var(--gold); font-size: 10.5px; font-weight: 600; letter-spacing: .28em; }
.ui-dialog-close { width: 38px; height: 38px; display: grid; place-items: center; color: var(--muted); font-size: 22px; }
.ui-dialog-title { margin-top: 8px; font-family: var(--serif); font-size: 23px; letter-spacing: .06em; }
.ui-dialog-description { margin-top: 10px; color: var(--ink2); font-size: 12.5px; line-height: 1.8; }
.ui-dialog-field { display: grid; gap: 9px; margin-top: 22px; color: var(--ink2); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; }
.ui-dialog-field input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 14.5px; outline: 0; }
.ui-dialog-field input:focus { border-color: var(--pri); background: #fff; box-shadow: 0 0 0 3px var(--soft); }
.ui-dialog-error { min-height: 18px; margin-top: 8px; color: var(--danger); font-size: 11.5px; }
.ui-dialog-card > footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.ui-dialog-card > footer button { min-height: 46px; padding: 0 22px; font-size: 12.5px; letter-spacing: .12em; }
.ui-dialog-cancel { border: 1px solid var(--line); color: var(--ink2); }
.ui-dialog-confirm { background: var(--pri); color: var(--bg); font-weight: 600; }
.ui-dialog-confirm.danger { background: var(--danger); color: #fff; }
@media (hover:hover) {
  .ui-dialog-close:hover, .ui-dialog-cancel:hover { background: var(--soft); color: var(--ink); }
  .ui-dialog-confirm:hover { background: var(--pri-deep); }
}
@media (max-width: 520px) {
  .ui-dialog { width: calc(100vw - 24px); }
  .ui-dialog-card { padding: 20px; }
  .ui-dialog-card > footer button { flex: 1; }
}


/* ---------------- v2 生活方式 ---------------- */
.panel-card-wide { padding-left: 34px; padding-right: 34px; }
#lifestyleWorkspace { margin-top: 26px; }
#lifestyleWorkspace.saving { opacity: .68; pointer-events: none; }
.ls-loading, .ls-empty { padding: 34px 20px; color: var(--muted); text-align: center; font-size: 12.5px; line-height: 1.8; }
.ls-steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--bg); }
.ls-steps button { min-height: 72px; padding: 13px 18px; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; align-items: center; border-right: 1px solid var(--line); text-align: left; }
.ls-steps button:last-child { border-right: 0; }
.ls-steps button b { grid-row: 1 / 3; color: var(--gold); font-size: 11px; letter-spacing: .16em; }
.ls-steps button span { font-family: var(--serif); font-size: 16px; font-weight: 700; letter-spacing: .08em; }
.ls-steps button small { color: var(--muted); font-size: 10.5px; letter-spacing: .04em; }
.ls-steps button.active { background: var(--pri); color: var(--bg); }
.ls-steps button.active b, .ls-steps button.active small { color: rgba(253,252,249,.72); }
.ls-steps button:disabled { opacity: .45; cursor: default; }
.ls-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); min-height: 480px; margin-top: 18px; border: 1px solid var(--line); }
.ls-body-wide { grid-template-columns: minmax(0, 1fr); }
.ls-rail { padding: 12px; border-right: 1px solid var(--line); background: #f0ede3; }
.ls-rail-item { width: 100%; min-height: 44px; padding: 9px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink2); font-size: 12px; text-align: left; }
.ls-rail-item.active, .ls-rail-item:hover { background: var(--surface); color: var(--pri); }
.ls-rail-item.done span::before { content: "✓ "; color: var(--pri); }
.ls-rail-item small { color: var(--danger); font-size: 10.5px; white-space: nowrap; }
.ls-main { max-height: 650px; overflow-y: auto; padding: 8px 32px 32px; scroll-behavior: smooth; }
.ls-section { padding-top: 26px; scroll-margin-top: 8px; }
.ls-section > h3 { padding-bottom: 10px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 18px; letter-spacing: .08em; }
.ls-question { padding: 20px 0; border-bottom: 1px solid rgba(221,216,202,.7); scroll-margin-block: 80px; }
.ls-question.is-inserting { animation: ls-question-in .28s ease-out; }
@keyframes ls-question-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ls-question.is-next-required { animation: ls-next-required 1.25s ease; }
@keyframes ls-next-required { 0%, 100% { background: transparent; } 35% { background: rgba(181,151,91,.16); box-shadow: 0 0 0 10px rgba(181,151,91,.16); } }
.ls-question h4 { font-size: 14px; line-height: 1.6; letter-spacing: .03em; }
.ls-question h4 em { margin-left: 5px; color: var(--danger); font-style: normal; }
.ls-question > p { margin-top: 4px; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.ls-options { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ls-question-note { margin-top: 11px; }
.ls-note-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 10px; border: 1px dashed rgba(14,70,58,.28); color: var(--pri); background: rgba(14,70,58,.025); font-size: 11.5px; transition: .18s ease; }
.ls-note-toggle:hover,.ls-question-note.is-open .ls-note-toggle { border-color: rgba(14,70,58,.6); background: rgba(14,70,58,.06); }
.ls-note-toggle small { padding: 2px 5px; color: #fff; background: var(--pri); font-size: 9px; letter-spacing: .08em; }
.ls-note-preview { max-width: 760px; margin-top: 7px; padding-left: 10px; border-left: 2px solid rgba(176,132,55,.55); color: var(--ink2); font-size: 11.5px; line-height: 1.65; white-space: pre-wrap; }
.ls-note-editor { max-width: 760px; margin-top: 8px; padding: 10px; border: 1px solid rgba(176,132,55,.34); background: #fffdf8; }
.ls-note-editor[hidden] { display: none; }
.ls-note-editor textarea { display: block; width: 100%; min-height: 72px; padding: 9px 11px; resize: vertical; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 12px; line-height: 1.65; }
.ls-note-editor textarea:focus { outline: 1px solid var(--gold); border-color: var(--gold); }
.ls-note-editor > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.ls-note-editor > div small { color: var(--muted); font-size: 10.5px; }
.ls-note-editor > div button { flex: 0 0 auto; min-width: 72px; padding: 7px 13px; color: #fff; background: var(--pri); font-size: 11px; }
.ls-option { min-height: 38px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--ink2); font-size: 12px; cursor: pointer; }
.ls-option.selected { border-color: var(--pri); background: var(--pri); color: var(--bg); }
.ls-option.is-editing { outline: 3px solid rgba(181,151,91,.18); }
.ls-option input[type="radio"], .ls-option input[type="checkbox"] { accent-color: var(--pri); }
.ls-option i { color: var(--gold); font-style: normal; }
.ls-option-label { min-width: 0; }
.ls-option.with-other { align-items: flex-start; padding-top: 9px; padding-bottom: 9px; }
.ls-option.with-other .ls-option-label { max-width: min(620px, 66vw); white-space: normal; overflow-wrap: anywhere; }
.ls-other-list { margin: 4px 0 0 20px; padding: 0; }
.ls-other-list li + li { margin-top: 3px; }
.ls-option-rank { width: 20px; height: 20px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--gold); color: #fff; font-size: 11px; }
.ls-option .ls-other-edit { color: inherit; opacity: .72; }
.ls-other-popover { position: fixed; z-index: 120; width: min(520px, calc(100vw - 24px)); padding: 10px; display: flex; align-items: flex-end; gap: 9px; border: 1px solid rgba(181,151,91,.58); background: #fffffc; box-shadow: 0 10px 30px rgba(30,43,35,.18); cursor: default; }
.ls-other-popover::after { content: ""; position: absolute; right: 18px; bottom: -6px; width: 10px; height: 10px; border-right: 1px solid rgba(181,151,91,.58); border-bottom: 1px solid rgba(181,151,91,.58); background: #fffffc; transform: rotate(45deg); }
.ls-other-popover.is-below::after { top: -6px; bottom: auto; transform: rotate(225deg); }
.ls-other-input-wrap { position: relative; min-width: 0; flex: 1; }
.ls-other-input { width: 100%; min-height: 92px; padding: 9px 34px 9px 10px; resize: vertical; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; line-height: 1.6; outline: 0; }
.ls-other-input-wrap small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.ls-other-input:focus { border-color: var(--pri); box-shadow: 0 0 0 3px var(--soft); }
.ls-other-clear { position: absolute; top: 3px; right: 3px; width: 30px; height: 30px; color: var(--muted); font-size: 18px; line-height: 1; }
.ls-other-clear:hover, .ls-other-clear:focus-visible { color: var(--danger); background: rgba(171,76,73,.08); }
.ls-other-confirm { height: 36px; padding: 0 14px; flex: 0 0 auto; background: var(--pri); color: var(--bg); font-size: 12px; }
.ls-other-confirm:hover, .ls-other-confirm:focus-visible { background: var(--ink); box-shadow: 0 0 0 3px var(--soft); }
.ls-other-confirm:disabled { background: #c9c9c2; color: #f7f7f3; cursor: not-allowed; }
.ls-blank { height: 44px; min-width: 240px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; outline: 0; }
.ls-blank { width: min(100%, 560px); }
.ls-textarea { width: min(100%, 720px); min-height: 126px; height: auto; padding: 12px 14px; resize: vertical; line-height: 1.75; vertical-align: top; }
.ls-blank:focus { border-color: var(--pri); box-shadow: 0 0 0 3px var(--soft); }
.ls-summary { display: grid; gap: 18px; margin-top: 18px; }
.ls-summary > section { padding: 24px; border: 1px solid var(--line); background: var(--bg); }
.ls-summary > section > header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ls-summary > section > header h3 { font-family: var(--serif); font-size: 18px; letter-spacing: .08em; }
.ls-summary > section > header button { color: var(--pri); font-size: 11.5px; }
.ls-summary-group { padding-top: 18px; }
.ls-summary-group h4 { color: var(--gold); font-size: 11px; letter-spacing: .18em; }
.ls-summary-group > div { display: grid; grid-template-columns: minmax(180px, .8fr) 1.2fr; gap: 20px; padding: 10px 0; border-bottom: 1px solid rgba(221,216,202,.65); font-size: 12.5px; }
.ls-summary-group > div span { color: var(--ink2); }
.ls-summary-group > div strong { font-weight: 500; }
.ls-summary-note { display: block; margin-top: 5px; color: var(--gold); font-size: 11px; font-weight: 400; line-height: 1.55; white-space: pre-wrap; }
.ls-floating-submit { position: sticky; bottom: 14px; z-index: 8; display: flex; align-items: center; justify-content: flex-end; gap: 16px; width: max-content; max-width: 100%; margin: 20px 0 0 auto; padding: 12px 14px 12px 18px; border: 1px solid var(--line); background: rgba(255,255,252,.96); box-shadow: 0 8px 28px rgba(30,43,35,.14); backdrop-filter: blur(8px); }
.ls-floating-submit span { color: var(--muted); font-size: 11.5px; }
.ls-progress-indicator { min-width: 104px; min-height: 44px; padding: 7px 11px; display: inline-flex; align-items: baseline; justify-content: center; gap: 4px; border: 1px solid rgba(181,151,91,.5); background: var(--soft); color: var(--pri); cursor: pointer; }
.ls-progress-indicator:hover, .ls-progress-indicator:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(181,151,91,.13); }
.ls-progress-indicator span { margin-right: 2px; color: inherit; font-size: 8.5px; letter-spacing: .04em; }
.ls-progress-indicator strong { font-size: 19px; line-height: 1; font-variant-numeric: tabular-nums; }
.ls-progress-indicator small { color: inherit; font-size: 9px; font-weight: 500; font-variant-numeric: tabular-nums; opacity: .72; }
.ls-progress-indicator.is-complete { border-color: var(--pri); background: var(--pri); color: var(--bg); }
.ls-floating-actions { display: flex; align-items: center; gap: 8px; }
.ls-floating-actions .btn-pri { min-width: 112px; min-height: 44px; }
.ls-floating-actions .btn-pri .ls-next-progress { margin-left: 3px; color: inherit; font-size: .9em; letter-spacing: 0; }
.ls-floating-actions .btn-pri .ls-next-progress strong { font-size: 1em; font-weight: 700; }
.ls-floating-actions .btn-pri .ls-next-progress small { font-size: .72em; font-weight: 500; }
.ls-step-back { min-width: 96px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); background: var(--bg); color: var(--ink2); }
.ls-step-back:hover, .ls-step-back:focus-visible { border-color: var(--pri); color: var(--pri); box-shadow: 0 0 0 3px var(--soft); }
.ls-floating-submit[data-current-step="summary"] > .ls-progress-indicator,
.ls-floating-submit[data-current-step="summary"] > .ls-submit-hint { display: none; }
.ls-floating-submit .is-disabled { border-color: #c9c9c2; background: #c9c9c2; color: #f7f7f3; cursor: not-allowed; }
@media (max-width: 760px) {
  .panel-card-wide { padding-left: 18px; padding-right: 18px; }
  .ls-steps { grid-template-columns: 1fr; }
  .ls-steps button { border-right: 0; border-bottom: 1px solid var(--line); }
  .ls-body { grid-template-columns: 1fr; }
  .ls-rail { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .ls-rail-item { min-width: 140px; }
  .ls-main { padding: 4px 18px 24px; }
  .ls-summary-group > div { grid-template-columns: 1fr; gap: 5px; }
  .ls-floating-submit { align-items: stretch; flex-direction: column; width: 100%; }
  .ls-progress-indicator { width: 100%; }
  .ls-floating-actions { width: 100%; }
  .ls-floating-actions > * { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .ls-question.is-inserting { animation: none; } }

/* PPT 演讲者模式、更多菜单与录音历史 */
.pv-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.pv-actions .tk-btn,.pv-actions .btn-pri{min-height:44px;padding:0 22px}.pv-present-btn{min-width:108px}.pv-more{position:relative}.pv-more-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:50;width:184px;padding:7px;border:1px solid var(--line);background:#fff;box-shadow:0 18px 44px rgba(19,39,32,.16)}.pv-more-menu button{display:block;width:100%;padding:12px;text-align:left;border:0;background:#fff;color:var(--ink);cursor:pointer}.pv-more-menu button:hover{background:var(--soft);color:var(--pri)}.pv-more-menu button+button{border-top:1px solid var(--line)}.pv-more-menu button:disabled{opacity:.45;cursor:not-allowed}
#pvPresenterPortal{position:fixed;inset:0;z-index:5000}.pv-presenter{display:flex;height:100vh;overflow:hidden;background:#151815;color:#f6f5ef;flex-direction:column}.pv-presenter-head{display:flex;min-height:78px;padding:14px 24px;border-bottom:1px solid rgba(255,255,255,.12);align-items:center;justify-content:space-between;gap:24px}.pv-presenter-head small{color:#baa16e;font-size:10px;letter-spacing:.2em}.pv-presenter-head h2{margin-top:5px;font-family:var(--serif);font-size:22px}.pv-presenter-head-actions{display:flex;align-items:center;gap:9px}.pv-presenter-head-actions>span{min-width:84px;font:600 22px/1 ui-monospace,monospace;color:#e8d4aa}.pv-presenter button{border:1px solid rgba(255,255,255,.2);background:#222822;color:#f8f7f2;padding:9px 13px;cursor:pointer}.pv-presenter button:hover{border-color:#c5ab74}.pv-presenter button:disabled{opacity:.35;cursor:not-allowed}.pv-presenter-grid{display:grid;min-height:0;flex:1;grid-template-columns:minmax(0,1.75fr) minmax(330px,.72fr);gap:18px;padding:18px}.pv-presenter-current{display:flex;min-width:0;min-height:0;flex-direction:column}.pv-presenter-label{display:flex;margin-bottom:8px;align-items:center;justify-content:space-between;gap:16px}.pv-presenter-label span,.pv-presenter-side section>span{color:#bda87b;font-size:11px;letter-spacing:.08em}.pv-presenter-label b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pv-presenter-current iframe{width:100%;min-height:0;flex:1;border:1px solid rgba(255,255,255,.13);background:#050505}.pv-presenter-nav{display:flex;padding-top:9px;justify-content:space-between}.pv-presenter-side{display:grid;min-height:0;grid-template-rows:minmax(125px,.68fr) minmax(110px,.8fr) auto minmax(130px,1fr);gap:10px;overflow:hidden}.pv-presenter-side>section{min-height:0;padding:13px;border:1px solid rgba(255,255,255,.11);background:#1d211d;overflow:auto}.pv-presenter-next{display:flex;flex-direction:column;gap:7px}.pv-presenter-next iframe{width:100%;min-height:0;flex:1;border:0;background:#050505;pointer-events:none}.pv-presenter-next small{color:#abb1aa}.pv-presenter-notes div{margin-top:10px;color:#f0eee6;font-size:15px;line-height:1.8;white-space:pre-wrap}.pv-recorder header,.pv-recording-history>header,.pv-recording-history article>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px}.pv-recorder header div{display:flex;align-items:center;gap:12px}.pv-recorder header small{font:600 15px/1 ui-monospace,monospace;color:#e8d4aa}.pv-recorder header em{color:#b4bbb4;font-size:11px;font-style:normal}.pv-recorder-actions{display:flex;gap:8px;margin-top:11px}.pv-recorder-actions .is-primary{background:#0c5542}.pv-recorder-actions .is-danger{border-color:#954c49;color:#ffd8d5}.pv-recorder>p{margin-top:9px;color:#929b94;font-size:10px}.pv-recording-history>header{margin-bottom:10px}.pv-recording-history>header small{color:#929b94}.pv-recording-history article{padding:10px 0;border-top:1px solid rgba(255,255,255,.1)}.pv-recording-history article b{display:block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.pv-recording-history article small{color:#89928b;font-size:10px}.pv-recording-history audio{width:100%;height:31px;margin:8px 0}.pv-recording-actions{display:flex;gap:5px;flex-wrap:wrap}.pv-recording-actions button{padding:6px 8px;font-size:10px}.pv-transcript{margin-top:8px;padding:8px;background:#292e29;color:#d9ded9;font-size:11px;line-height:1.6;white-space:pre-wrap}.pv-transcript.is-error{color:#f0aaaa}.pv-recording-empty{padding:20px 0;color:#848d86;text-align:center}
.pv-presenter-error{margin:8px 0;padding:9px 10px;border:1px solid rgba(229,153,89,.45);background:rgba(116,64,28,.3);color:#ffd8b1;font-size:11px;line-height:1.55}
@media(max-width:1000px){.pv-presenter-grid{grid-template-columns:1fr}.pv-presenter-side{grid-template-columns:1fr 1fr;grid-template-rows:180px 180px auto}.pv-presenter-current{min-height:44vh}.pv-recording-history{grid-column:1/-1}.pv-presenter-head{align-items:flex-start}.pv-presenter-head-actions>span{display:none}}

/* 演讲者视图以讲稿为主体：预览、下一页和录音均为辅助信息。 */
.pv-presenter-grid{grid-template-columns:minmax(0,1.36fr) minmax(430px,.82fr);gap:14px;padding:14px}
.pv-presenter-notes-main{display:flex;min-width:0;min-height:0;border:1px solid rgba(255,255,255,.12);background:linear-gradient(145deg,#1d221e,#171b18);flex-direction:column;overflow:hidden}
.pv-presenter-notes-main>header{padding:24px 30px 18px;border-bottom:1px solid rgba(255,255,255,.1)}
.pv-presenter-notes-main>header span{color:#c5aa73;font-size:12px;letter-spacing:.1em}
.pv-presenter-notes-main>header h2{margin-top:9px;color:#fff;font-family:var(--serif);font-size:clamp(26px,2vw,38px);line-height:1.25}
.pv-presenter-notes-copy{min-height:0;flex:1;overflow:auto;padding:24px 32px 34px;color:#f5f3eb;font-family:var(--serif);font-size:clamp(20px,1.48vw,28px);line-height:1.9;letter-spacing:.02em;white-space:pre-wrap;scrollbar-color:#788077 transparent}
.pv-presenter-notes-main>footer{display:flex;padding:13px 18px 13px 30px;border-top:1px solid rgba(255,255,255,.1);align-items:center;justify-content:space-between;gap:20px;background:rgba(8,12,9,.24)}
.pv-presenter-notes-main>footer>span{color:#8f9990;font-size:11px}.pv-presenter-notes-main>footer>div{display:flex;gap:8px;flex-shrink:0}
.pv-presenter-assist{display:grid;min-width:0;min-height:0;grid-template-rows:minmax(250px,1fr) auto minmax(150px,.62fr);gap:10px;overflow:hidden}
.pv-presenter-assist>section,.pv-presenter-utility>section{min-height:0;padding:11px;border:1px solid rgba(255,255,255,.11);background:#1d211d;overflow:auto}
.pv-presenter-current{display:flex;min-height:0;flex-direction:column}.pv-presenter-current iframe{width:100%;min-height:0;flex:1;border:0;background:#050505}.pv-presenter-label{margin-bottom:7px}
.pv-presenter-utility{display:grid;min-height:146px;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:10px}
.pv-presenter-next{min-width:0}.pv-presenter-next iframe{min-height:82px;aspect-ratio:3/2}.pv-presenter-next small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pv-presenter-utility .pv-recorder{overflow:hidden}.pv-presenter-utility .pv-recorder-actions{margin-top:9px}.pv-presenter-utility .pv-recorder>p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pv-presenter-assist>.pv-recording-history{overflow:auto}.pv-presenter-assist .pv-recording-history article{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(150px,1.2fr);gap:7px 10px;align-items:center}.pv-presenter-assist .pv-recording-history audio{margin:0}.pv-presenter-assist .pv-recording-actions,.pv-presenter-assist .pv-transcript{grid-column:1/-1}
@media(max-width:1150px){.pv-presenter{overflow:auto}.pv-presenter-grid{display:flex;min-height:1100px;flex-direction:column}.pv-presenter-notes-main{min-height:560px}.pv-presenter-assist{min-height:520px;grid-template-columns:1fr 1fr;grid-template-rows:300px 210px}.pv-presenter-current{grid-column:1}.pv-presenter-utility{grid-column:2;grid-row:1;grid-template-columns:1fr;overflow:auto}.pv-presenter-assist>.pv-recording-history{grid-column:1/-1}.pv-presenter-head{align-items:flex-start}.pv-presenter-head-actions>span{display:none}}

/* 演讲者模式最终布局：左侧讲稿，右侧仅保留整册录音/解析与逐页关联批注。 */
.pv-presenter-grid{display:grid;min-height:0;grid-template-columns:minmax(0,1fr) minmax(390px,.72fr);gap:14px;padding:14px;flex-direction:initial}
.pv-presenter-notes-main{min-height:0}
.pv-presenter-sidepanel{display:grid;min-width:0;min-height:0;grid-template-rows:minmax(320px,1.08fr) minmax(250px,.92fr);gap:10px;overflow:hidden}
.pv-presenter-sidepanel>section{min-height:0;border:1px solid rgba(255,255,255,.11);background:#1d211d;overflow:hidden}
.pv-presenter-audio{display:flex;min-height:0;padding:0!important;flex-direction:column}
.pv-presenter-audio>.pv-recorder{padding:15px;border-bottom:1px solid rgba(255,255,255,.11);flex:0 0 auto}
.pv-presenter-audio>.pv-recording-history{display:flex;min-height:0;padding:14px;flex:1;flex-direction:column;overflow:hidden}
.pv-presenter-audio>.pv-recording-history>div{min-height:0;overflow:auto;padding-right:3px}
.pv-presenter-audio .pv-recording-history article{display:block;padding:12px 0}
.pv-presenter-audio .pv-recording-history article b{max-width:260px}.pv-presenter-audio .pv-recording-history audio{margin:9px 0}
.pv-annotations{display:flex;padding:14px;flex-direction:column}
.pv-annotations>header,.pv-annotations>header>div,.pv-annotation-list article>header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pv-annotations>header>div{align-items:flex-start;flex-direction:column;gap:3px}.pv-annotations>header span{color:#f6f5ef;font-weight:700}.pv-annotations>header small{color:#a5ada6;font-size:10px}.pv-annotations>header>b{color:#c7ae7b;font-size:11px}
.pv-annotation-compose{display:grid;margin-top:12px;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}
.pv-annotation-compose textarea{width:100%;min-height:78px;max-height:150px;padding:10px 11px;resize:vertical;border:1px solid rgba(255,255,255,.18);outline:0;background:#141815;color:#f4f2eb;font:13px/1.65 var(--sans)}
.pv-annotation-compose textarea:focus{border-color:#c5ab74}.pv-annotation-compose button{min-width:88px;background:#0c5542}
.pv-annotation-list{min-height:0;margin-top:12px;overflow:auto;padding-right:3px}
.pv-annotation-list article{padding:11px 0;border-top:1px solid rgba(255,255,255,.1)}
.pv-annotation-list article>header span{padding:3px 7px;background:#30362f;color:#d9c18e;font-size:10px}.pv-annotation-list article>header small{overflow:hidden;color:#89928b;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.pv-annotation-list article>p{margin-top:7px;color:#e6e8e3;font-size:12px;line-height:1.65;white-space:pre-wrap;word-break:break-word}
@media(max-width:980px){.pv-presenter{overflow:auto}.pv-presenter-grid{display:flex;min-height:1200px;flex-direction:column}.pv-presenter-notes-main{min-height:540px}.pv-presenter-sidepanel{min-height:600px;grid-template-columns:1fr 1fr;grid-template-rows:1fr}.pv-presenter-head{align-items:flex-start}.pv-presenter-head-actions>span{display:none}}
@media(max-width:720px){.pv-presenter-sidepanel{grid-template-columns:1fr;grid-template-rows:minmax(420px,1fr) minmax(360px,1fr)}.pv-annotation-compose{grid-template-columns:1fr}.pv-presenter-head{padding:12px}.pv-presenter-head-actions{flex-wrap:wrap}}

/* 最终覆盖：收录作品紧凑图片墙 */
.collected-grid { grid-template-columns:repeat(auto-fill,minmax(190px,260px)); gap:9px; }
.collected-card { position:relative; overflow:hidden; }
.collected-card > button[data-preview] { height:auto; aspect-ratio:4/3; }
.collected-card > .collected-download { position:absolute; top:8px; right:8px; z-index:10; display:inline-flex; width:auto; min-width:0; height:28px; aspect-ratio:auto; align-items:center; justify-content:center; overflow:visible; padding:0 9px; border:1px solid rgba(255,255,255,.7); background:rgba(9,45,36,.9); color:#fff; font-size:10px; line-height:1; opacity:0; transform:translateY(-3px); transition:.18s ease; backdrop-filter:blur(5px); pointer-events:auto; cursor:pointer; }
.collected-card:hover .collected-download,.collected-download:focus-visible { opacity:1; transform:none; }

/* 访谈题目/选项出题依据弹层 */
.ls-info{display:inline-flex;align-items:center;justify-content:center;margin-left:6px;width:16px;height:16px;border-radius:50%;font-size:11px;font-style:normal;color:#8a97ad;cursor:pointer;user-select:none}
.ls-info:hover{color:#1f5c46;background:rgba(31,92,70,.08)}
h4 .ls-info{vertical-align:1px}
.ls-info-panel{position:absolute;z-index:1200;background:#fff;border:1px solid #dde4ec;border-radius:12px;box-shadow:0 12px 32px rgba(20,40,60,.14);padding:14px 16px;font-size:12.5px;line-height:1.7;color:#3a4a60}
.ls-info-panel-head{display:flex;align-items:flex-start;gap:10px;margin-bottom:6px}
.ls-info-panel-head b{flex:1;font-size:13px;color:#22324a}
.ls-info-close{border:none;background:none;font-size:16px;color:#9aa7ba;cursor:pointer;line-height:1}
.ls-info-block{margin-top:8px}
.ls-info-block>span{display:block;font-size:11px;color:#8a97ad;margin-bottom:2px}
.ls-info-block p{margin:0}
.ls-info-block ul{margin:0;padding-left:16px}
.ls-info-block li{margin:3px 0}
.ls-info-detail{display:inline-block;margin:0 6px;padding:0 6px;border-radius:5px;background:#eef3f0;color:#1f5c46;font-size:11px}

/* 访谈左侧分类导航与补漏模式 */
.ls-with-nav{display:flex;gap:0;align-items:stretch}
.ls-sidenav{flex:0 0 216px;border-right:1px solid var(--line);padding:14px 12px;max-height:650px;overflow-y:auto;background:#fbfbf9}
.ls-with-nav .ls-main{flex:1;min-width:0}
.ls-sidenav-block{margin-bottom:16px}
.ls-sidenav-title{display:block;font-size:11px;color:#93a1b8;margin-bottom:6px;letter-spacing:.05em}
.ls-sidenav-item{position:relative;display:block;width:100%;text-align:left;border:1px solid transparent;background:none;border-radius:10px;padding:8px 10px 10px;cursor:pointer;margin-bottom:2px;overflow:hidden}
.ls-sidenav-item b{display:block;font-size:13px;color:#33415c;font-weight:600}
.ls-sidenav-item small{display:block;font-size:11px;color:#93a1b8;margin-top:2px}
.ls-sidenav-item i{position:absolute;left:10px;bottom:4px;height:3px;max-width:calc(100% - 20px);background:#cfd9e6;border-radius:2px;transition:width .4s}
.ls-sidenav-item:hover{background:#f1f3ef}
.ls-sidenav-item.active{border-color:#1f5c46;background:#eef4f1}
.ls-sidenav-item.active b{color:#1f5c46}
.ls-sidenav-item.is-complete i{background:#1f8a4c}
.ls-sidenav-item.is-complete b::after{content:" ✓";color:#1f8a4c}
.ls-sidenav-filter{width:100%;border:1px solid var(--line);background:#fff;border-radius:8px;padding:7px 10px;font-size:12px;color:#5b6c8c;cursor:pointer}
.ls-sidenav-filter.active{border-color:#1f5c46;color:#1f5c46;background:#eef4f1}
.ls-sidenav-pending{display:block;width:100%;text-align:left;border:none;background:none;padding:5px 8px;font-size:12px;color:#b45309;cursor:pointer;border-radius:6px}
.ls-sidenav-pending::before{content:"● ";font-size:8px;vertical-align:2px}
.ls-sidenav-pending:hover{background:#fff7ed}
.ls-sidenav-done{display:block;font-size:12px;color:#1f8a4c}
.ls-hide-answered .ls-question.is-answered{display:none}
@media (max-width:1080px){.ls-sidenav{display:none}}

/* 细节追问解锁预告 */
.ls-sidenav-hint{display:block;font-size:11.5px;color:#93a1b8;line-height:1.6}
.ls-sidenav-unlock{display:flex;align-items:center;gap:6px;font-size:12.5px;color:#1f5c46;padding:4px 6px;border-radius:6px;background:#eef4f1;margin-bottom:4px}
.ls-sidenav-unlock small{margin-left:auto;color:#7fa392;font-size:11px}
.ls-sidenav-unlock>b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.ls-sidenav-block>.ls-sidenav-hint+.ls-sidenav-unlock{margin-top:6px}

/* 需求洞察五步 SOP：项目公共空间与角色偏好 */
.ls-steps{grid-template-columns:repeat(5,minmax(0,1fr))}
.ls-context-editor{padding:22px;max-width:1080px;margin:auto}.ls-context-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.ls-context-head h3{margin:0 0 6px}.ls-context-head p,.ls-context-note{margin:0;color:#738095;font-size:13px;line-height:1.6}
.ls-space-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,.7fr) auto;gap:10px;padding:12px;border:1px solid #e5e9e7;border-radius:10px;margin-bottom:10px;background:#fff}.ls-space-row input,.ls-space-row select,.ls-role-card input,.ls-role-card select{box-sizing:border-box;width:100%;border:1px solid #d9dfdc;border-radius:8px;padding:10px 11px;background:#fff}.ls-space-row.is-inactive{opacity:.45;text-decoration:line-through}
.ls-role-card{padding:18px;border:1px solid #e1e7e3;border-radius:14px;background:#fff;margin-bottom:14px}.ls-role-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.ls-role-grid label{font-size:12px;color:#637268}.ls-role-grid label.wide{grid-column:span 2}.ls-role-grid input,.ls-role-grid select{display:block;margin-top:6px}.ls-role-grid small{display:block;margin-top:5px;color:#92a098}.ls-role-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.ls-role-actions button,.ls-space-row button{border:0;border-radius:8px;padding:9px 13px;cursor:pointer}.ls-role-actions [data-save-role]{background:#1f5c46;color:#fff}
.ls-color-field>span{display:block;font-size:12px;color:#637268}.ls-color-picker{display:flex;flex-wrap:wrap;align-items:center;gap:7px;min-height:47px;margin-top:6px;padding:6px;border:1px solid #d9dfdc;border-radius:8px;background:#fff}.ls-color-swatches{display:flex;flex-wrap:wrap;gap:6px;min-width:0}.ls-color-empty{padding:0 5px;color:#92a098}.ls-color-swatch{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:4px 7px 4px 4px;border:1px solid #dce2df;border-radius:999px;background:#fff;color:#526159;cursor:pointer}.ls-color-swatch i{width:23px;height:23px;border:1px solid rgba(0,0,0,.12);border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 2px rgba(255,255,255,.28)}.ls-color-swatch span{font:11px/1.1 ui-monospace,SFMono-Regular,Consolas,monospace}.ls-color-swatch b{font-size:15px;font-weight:400;color:#87928c}.ls-color-swatch:hover{border-color:#b8c7bf}.ls-color-swatch:hover b{color:#b43b35}.ls-color-add{position:relative;display:inline-flex!important;align-items:center;min-height:32px;margin:0!important;padding:0 10px;border:1px dashed #aabbb2;border-radius:999px;color:#1f5c46!important;cursor:pointer;overflow:hidden}.ls-color-add input[type=color]{position:absolute!important;inset:0;width:100%!important;height:100%;margin:0!important;padding:0!important;border:0!important;opacity:0;cursor:pointer}.ls-color-add span{pointer-events:none;font-size:12px;font-weight:600}.ls-color-add:hover{background:#edf5f1;border-color:#1f5c46}
.ls-context-report{margin-bottom:16px}.ls-space-chips{display:flex;flex-wrap:wrap;gap:8px}.ls-space-chips>span{display:flex;align-items:center;gap:7px;border:1px solid #dce6e1;border-radius:999px;padding:7px 11px;color:#264b3d}.ls-space-chips small{color:#8a9991}.ls-role-summary{display:flex;gap:18px;padding:10px 0;border-bottom:1px solid #edf0ee}.ls-role-summary strong{min-width:120px}.ls-role-summary span{color:#66756c}
@media(max-width:900px){.ls-steps{grid-template-columns:repeat(5,150px);overflow-x:auto}.ls-role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.ls-role-grid{grid-template-columns:1fr}.ls-role-grid label.wide{grid-column:auto}.ls-space-row{grid-template-columns:1fr}.ls-context-head{flex-direction:column}}

/* 题组分节标题计数 */
.ls-section > h3 > em{margin-left:8px;font-style:normal;font-size:11.5px;color:#93a1b8;font-weight:500}

/* 主题内题组分节 */
.ls-theme-label{margin:18px 0 -2px;font-size:11.5px;letter-spacing:.08em;color:#1f5c46;text-transform:uppercase}
.ls-section:first-child .ls-theme-label{margin-top:6px}

/* Native hidden must win over the cabinet grid layouts when switching finish modes. */
.rw-cabinet-material-layout[hidden],.rw-cabinet-paint-mode[hidden]{display:none!important}

/* 角色需求补充 v2：先识别人，再做少量高价值快问，特殊要求按需展开。 */
.ls-role-editor{max-width:1120px;padding:26px 24px 110px}
.ls-context-kicker{display:block;margin-bottom:7px;color:#a98343;font-size:10px;font-weight:700;letter-spacing:.22em}
.ls-role-how{display:flex;align-items:center;gap:12px;margin:0 0 20px;padding:12px 16px;border:1px solid #dde6e1;border-radius:12px;background:#f7faf8;color:#53655c;font-size:12px}
.ls-role-how span{display:flex;align-items:center;gap:8px}.ls-role-how span b{display:grid;width:24px;height:24px;border-radius:50%;background:#1f5c46;color:#fff;font-size:11px;place-items:center}.ls-role-how i{color:#a6b2ac;font-style:normal}
.ls-role-card{overflow:hidden;margin-bottom:22px;padding:0;border:1px solid #d8e2dd;border-radius:18px;background:#fff;box-shadow:0 12px 34px rgba(26,61,47,.06)}
.ls-role-card-head{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:14px;padding:18px 20px;border-bottom:1px solid #e5ebe8;background:linear-gradient(135deg,#f5f9f7,#fff)}
.ls-role-avatar{display:grid;width:48px;height:48px;border-radius:15px;background:#1f5c46;color:#fff;font-size:19px;font-weight:700;place-items:center;box-shadow:0 6px 16px rgba(31,92,70,.2)}
.ls-role-card-head small{display:block;color:#9a7b45;font-size:10px;font-weight:700;letter-spacing:.08em}.ls-role-card-head h3{margin:2px 0 3px;color:#183e31;font-size:18px}.ls-role-card-head p{margin:0;color:#7a8981;font-size:12px}.ls-role-card-head em{padding:7px 10px;border:1px solid #cfddd6;border-radius:999px;background:#fff;color:#2d6650;font-size:11px;font-style:normal;font-weight:650}
.ls-role-auto-badge{display:inline-flex;margin-left:9px;padding:3px 7px;border-radius:999px;background:#dff1e8;color:#1f684d;font-size:10px;letter-spacing:0}.ls-role-sync-room{display:inline-block;margin-left:8px;padding-left:8px;border-left:1px solid #ccd9d2;color:#39725b;font-weight:650}.ls-role-sync-room.is-pending{color:#9a6a2d}
.ls-role-block{padding:20px}.ls-role-block+.ls-role-block{border-top:1px solid #edf1ef}.ls-role-block-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:15px}.ls-role-block-title>b,.ls-role-more summary>b{display:flex;align-items:center;gap:9px;color:#263c33;font-size:14px}.ls-role-block-title b i,.ls-role-more summary b i{display:grid;width:24px;height:24px;border-radius:8px;background:#eaf2ee;color:#1f5c46;font-size:11px;font-style:normal;place-items:center}.ls-role-block-title>span,.ls-role-more summary>span{color:#87948e;font-size:11.5px}
.ls-role-grid-identity{grid-template-columns:repeat(4,minmax(0,1fr))}.ls-role-grid-identity .ls-role-scope{grid-column:span 2}.ls-role-grid input,.ls-role-grid select,.ls-role-manual-grid textarea{border-color:#d7e0db;background:#fcfdfc;transition:border-color .15s,box-shadow .15s}.ls-role-grid input:focus,.ls-role-grid select:focus,.ls-role-manual-grid textarea:focus{border-color:#4c806b;outline:0;box-shadow:0 0 0 3px rgba(31,92,70,.09)}.ls-role-scope small{line-height:1.45}
.ls-role-guide{background:#fbfcfb}.ls-role-guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.ls-role-guide-question{min-width:0;margin:0;padding:14px;border:1px solid #e1e7e4;border-radius:13px;background:#fff}.ls-role-guide-question legend{display:flex;width:100%;align-items:baseline;justify-content:space-between;gap:12px;padding:0 2px 10px}.ls-role-guide-question legend b{color:#35473f;font-size:12.5px}.ls-role-guide-question legend small{color:#9b875f;font-size:10px;white-space:nowrap}.ls-role-choice-grid{display:flex;flex-wrap:wrap;gap:7px}.ls-role-choice{position:relative;display:inline-flex;align-items:center;min-height:34px;padding:0 11px;border:1px solid #dfe6e2;border-radius:999px;background:#fafcfb;color:#5e6f67;font-size:11.5px;cursor:pointer;transition:.15s}.ls-role-choice input{position:absolute;opacity:0;pointer-events:none}.ls-role-choice:hover{border-color:#8eaa9d;color:#1f5c46}.ls-role-choice.selected{border-color:#1f5c46;background:#1f5c46;color:#fff;box-shadow:0 4px 10px rgba(31,92,70,.14)}.ls-role-choice:has(input:disabled):not(.selected){opacity:.42;cursor:not-allowed}
.ls-role-more{border-top:1px solid #e9eeeb;background:#fff}.ls-role-more>summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 20px;cursor:pointer;list-style:none}.ls-role-more>summary::-webkit-details-marker{display:none}.ls-role-more>summary::after{content:"＋";margin-left:4px;color:#789086;font-size:17px}.ls-role-more[open]>summary::after{content:"－"}.ls-role-more[open]>summary{background:#fafcfb}.ls-role-manual-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:3px 20px 20px}.ls-role-manual-grid label{color:#637268;font-size:12px}.ls-role-manual-grid textarea{box-sizing:border-box;display:block;width:100%;margin-top:6px;padding:10px 11px;resize:vertical;font:inherit;line-height:1.5}.ls-role-visual-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:3px 20px 20px}.ls-role-visual-grid .wide{grid-column:1/-1}
.ls-role-actions{align-items:center;margin:0;padding:15px 20px;border-top:1px solid #e4ebe7;background:#f8faf9}.ls-role-actions>span{margin-right:auto;color:#648074;font-size:11.5px}.ls-role-actions button{border:1px solid #d6dfda;background:#fff;color:#53645c}.ls-role-actions [data-save-role]{min-width:112px;background:#1f5c46;color:#fff}.ls-role-actions [data-save-role]:disabled{opacity:.58;cursor:wait}.ls-role-actions [data-delete-role]{color:#9c514b}
.ls-role-summary{align-items:flex-start;padding:13px 0}.ls-role-summary strong{display:grid;gap:3px;min-width:150px;color:#234b3c}.ls-role-summary strong small{color:#a18350;font-size:9px;letter-spacing:.08em}.ls-role-summary>div{display:grid;gap:3px}.ls-role-summary>div b{color:#40564c;font-size:12px}.ls-role-summary>div span{color:#1f5c46;font-size:12.5px;font-weight:650}.ls-role-summary>div small{color:#7b8982;font-size:11px}
@media(max-width:900px){.ls-role-grid-identity{grid-template-columns:repeat(2,minmax(0,1fr))}.ls-role-guide-grid{grid-template-columns:1fr}.ls-role-card-head{grid-template-columns:44px minmax(0,1fr)}.ls-role-card-head em{grid-column:2;justify-self:start}.ls-role-how i{display:none}.ls-role-how{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.ls-role-editor{padding:18px 12px 100px}.ls-role-grid-identity,.ls-role-manual-grid,.ls-role-visual-grid{grid-template-columns:1fr}.ls-role-grid-identity .ls-role-scope,.ls-role-visual-grid .wide{grid-column:auto}.ls-role-block-title,.ls-role-more>summary{align-items:flex-start;flex-direction:column}.ls-role-card-head{padding:15px}.ls-role-block{padding:16px}.ls-role-actions{align-items:stretch;flex-direction:column}.ls-role-actions>span{margin:0}.ls-role-actions button{width:100%}}
