/* One immutable desktop frame. Only the active marker and content route change. */
:root{--sidebar:232px;--topbar:64px;--tabs:54px;--ink:#25272b;--muted:#858990;--line:#e7e9ec;--blue:#007aff;--surface:#f5f6f8;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);font-synthesis:none;font-size:14px}
*{box-sizing:border-box}body{margin:0;background:white;overflow:hidden}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:1px solid var(--line);background:white;border-radius:9px;padding:10px 15px}button:hover{background:#f0f2f5}button:active{transform:translateY(1px)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #80baff;outline-offset:2px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.skip-link{position:fixed;left:250px;top:-100px;z-index:20;background:white;padding:12px}.skip-link:focus{top:5px}
#sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:linear-gradient(115deg,#f8f9fa,#f1f2f4);border-right:1px solid #e2e4e8;display:flex;flex-direction:column;z-index:5}.brand{height:64px;min-height:64px;display:flex;align-items:center;gap:10px;padding:0 22px}.brand img{width:29px;height:29px}.brand strong{font-size:19px;letter-spacing:-.6px;font-weight:650}.space-card{margin:16px 14px 20px;width:204px;height:63px;display:flex;align-items:center;gap:10px;padding:10px 11px;background:#fff;border-color:#e4e6e9;box-shadow:0 2px 4px #1b233005;text-align:left}.space-emblem{display:grid;place-items:center;width:34px;height:36px;background:#eceef1;border-radius:9px;font-weight:600}.space-card b{font-size:13px;font-weight:600}.space-card small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.chevron{margin-left:auto;color:#8d9299}#primary-nav{padding:0 12px;flex:1;min-height:0;overflow:auto;scrollbar-width:none}.nav-label{font-size:10px;color:#90949c;padding:0 13px;margin:9px 0 8px;letter-spacing:1.2px}.nav-link{height:40px;display:flex;align-items:center;gap:12px;border-radius:8px;padding:0 13px;margin:2px 0;color:#545861;position:relative;font-size:13px}.nav-link:hover{background:#eaecf0}.nav-link svg{width:18px;height:18px;flex:none;stroke-width:1.6}.nav-link .nav-mark{position:absolute;left:0;width:3px;height:17px;border-radius:3px;background:transparent}.nav-link.active{background:#e3e7ec;color:#171a1f;font-weight:600}.nav-link.active .nav-mark{background:var(--blue)}.sidebar-bottom{padding:12px;border-top:1px solid #e3e5e8;margin:14px 0 0}.sidebar-bottom .nav-link{height:36px}.local-status{height:27px;display:flex;align-items:center;gap:7px;padding:8px 14px 0;font-size:10px;color:#9498a0}.local-status i{height:5px;width:5px;border-radius:50%;background:#8caa96}
#topbar{position:fixed;top:0;left:var(--sidebar);right:0;height:var(--topbar);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 26px;background:#fff;z-index:4;gap:15px}#breadcrumb{display:flex;gap:12px;font-size:12px;white-space:nowrap;color:#8c9098}#breadcrumb strong{color:#4c5159;font-weight:500}.slash{color:#c2c5ca}.top-actions{display:flex;align-items:center;gap:22px}.search-button{display:flex;align-items:center;gap:9px;background:#f7f8fa;border:0;color:#90959d;padding:8px 10px;width:240px;font-size:11px;text-align:left}.search-button svg{width:16px;height:16px}.search-button kbd{margin-left:auto;font-size:9px;border:1px solid #e4e6e9;border-radius:4px;padding:2px 5px;color:#9a9ea5;font-family:inherit}.company-name{font-size:11px;color:#80858d;white-space:nowrap}.account{padding:0;display:flex;align-items:center;gap:9px;border:0;font-size:12px;white-space:nowrap}.account>span:last-child{color:#8b9098}.avatar{width:29px;height:29px;display:grid;place-items:center;background:#e9edf2;border:1px solid #e0e5ec;border-radius:50%;font-size:12px;color:#626c7a}
#workspace{position:fixed;top:64px;left:232px;right:0;bottom:0;outline:none}#secondary-nav{height:54px;display:flex;align-items:stretch;gap:25px;padding:0 27px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none;background:#fff}#secondary-nav a{font-size:12px;white-space:nowrap;display:flex;align-items:center;position:relative;color:#898e96}#secondary-nav a.active{font-weight:600;color:#292e36}#secondary-nav a.active:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:#2c3037;border-radius:2px}#content-host{height:calc(100% - 54px);position:relative;background:#fff;overflow:hidden}#image-area{position:absolute;inset:0;padding:12px 16px;display:flex;justify-content:center;align-items:flex-start;overflow:auto}#stage{position:relative;flex:none;background:white;overflow:hidden}#design-image{width:100%;height:100%;display:block}#hotspots{position:absolute;inset:0}.hotspot{position:absolute;background:transparent;border:0;box-shadow:none;border-radius:5px;padding:0;transition:background 140ms,box-shadow 140ms}.hotspot:hover{background:#007aff0d;box-shadow:inset 0 0 0 1px #007aff3b}.hotspot.changed{box-shadow:inset 0 0 0 1px #007aff85}.changed-badge{position:absolute;right:0;bottom:0;font-size:10px;padding:3px 6px;white-space:nowrap;border-radius:5px;background:#eaf4ff;color:#096cc6;max-width:100%;overflow:hidden;text-overflow:ellipsis}#content-host.is-preview{background:#f5f6f8}#preview-toolbar{height:44px;border-bottom:1px solid #e5e7eb;background:#fafbfc;display:flex;align-items:center;justify-content:space-between;padding:0 25px;font-size:11px;color:#828894}.preview-size{display:flex;gap:16px}.is-preview #image-area{top:44px;padding:18px 24px}.is-preview #stage{border:1px solid #e1e4e9;border-radius:10px;box-shadow:0 8px 28px #303b4b0c}.is-preview.is-portrait #stage{border-radius:22px;box-shadow:0 14px 34px #303b4b12}
/* Action overlays are contained inside content; fixed shell pixels never dim. */
.page-tools{width:30px;height:30px;line-height:18px;padding:0;border:0;border-radius:50%;background:#f6f7f9;color:#818892;font-weight:600;letter-spacing:2px}
#action-veil{position:absolute;inset:0;background:#222b381e;z-index:8}#action-dialog{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(600px,calc(100% - 60px));max-height:calc(100% - 50px);padding:26px;border:1px solid #e1e4e9;border-radius:18px;background:#fff;box-shadow:0 22px 80px #202c4626;color:var(--ink);overflow:auto;z-index:9;margin:0}#action-dialog[data-presentation=drawer]{inset:0 0 0 auto;transform:none;height:100%;max-height:100%;width:500px;border-radius:0;border-top:0;border-right:0;border-bottom:0}.dialog-heading{display:flex;gap:16px;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.dialog-heading h2{font-size:21px;letter-spacing:-.5px;margin:6px 0 0;font-weight:600}#action-eyebrow{color:#90959d;font-size:11px}#action-close,#catalog-close{width:30px;height:30px;font-size:23px;line-height:20px;padding:0;border:0;background:#f3f4f6;border-radius:50%;color:#8d939c}#action-content>p{font-size:13px;color:#7e858f;line-height:1.8;margin:0 0 22px}.action-form{display:grid;gap:16px}.field{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#68717e}.field input,.field select,.field textarea{width:100%;border:1px solid #dfe3e8;background:#fafbfc;border-radius:8px;padding:11px 12px;min-height:42px;color:#313844}.field textarea{height:94px;resize:vertical}.field.check{flex-direction:row-reverse;align-items:center;justify-content:flex-end}.field.check input{width:18px;min-height:18px}.primary{background:#24282e;color:white;border-color:#24282e}.primary:hover{background:#414750}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.dialog-footer button{font-size:12px}.result-card{padding:18px 20px;background:#f6f7f9;border-radius:12px;margin-bottom:15px}.result-card h3{font-size:13px;margin:0 0 13px}.result-card dl{display:grid;grid-template-columns:100px 1fr;gap:13px;font-size:12px;margin:0}.result-card dt{color:#8c929b}.result-card dd{margin:0;overflow-wrap:anywhere;line-height:1.7}.option-list{display:grid;gap:8px;margin-top:15px}.option-list button{text-align:left;font-size:12px}.chat-line{background:#f5f6f8;padding:15px;border-radius:12px;margin:12px 0;font-size:13px;white-space:pre-wrap;line-height:1.7}.chat-line.mine{background:#eaf3fe;margin-left:28px}#toast{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);z-index:10;background:#292e35;color:white;box-shadow:0 8px 30px #202c4620;border-radius:10px;padding:13px 20px;font-size:12px;max-width:85%}
#catalog-dialog{width:960px;max-width:90vw;max-height:85vh;border:1px solid #dfe3e9;border-radius:18px;padding:26px;box-shadow:0 22px 80px #202c4626;color:var(--ink)}#catalog-dialog::backdrop{background:#25314930;backdrop-filter:blur(3px)}.catalog-heading{display:flex;justify-content:space-between;align-items:center}.catalog-heading h2{font-size:20px;margin:0 0 20px}#catalog-search{width:100%;padding:13px;border:1px solid #dfe3e8;border-radius:9px;margin-bottom:20px}#catalog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.catalog-card{text-align:left;font-size:12px;display:flex;align-items:center;gap:12px;border-radius:9px;padding:12px}.catalog-card small{color:#9299a4}.catalog-card.active{background:#edf4ff;border-color:#b4d3ff}@media(max-height:900px){.space-card{margin:9px 14px 10px}#primary-nav .nav-link{height:34px}.sidebar-bottom{margin-top:5px;padding-top:6px}.nav-label{margin-top:5px;margin-bottom:5px}}@media(max-width:1200px){.company-name{display:none}.search-button{width:205px}.top-actions{gap:15px}}

/* Phone workstation shell. It intentionally replaces the desktop rail instead of shrinking it. */
#mobile-topbar,#mobile-bottom-nav{display:none}
#mobile-surface{position:absolute;inset:0;background:#f6f7f9;overflow:auto}
@media(max-width:767px){
  :root{--mobile-topbar:56px;--mobile-bottom:68px;font-size:14px}
  html,body{width:100%;height:100%;overscroll-behavior:none}body{background:#f6f7f9;overflow:hidden;-webkit-text-size-adjust:100%}
  .skip-link{left:12px;top:-100px}.skip-link:focus{top:calc(8px + env(safe-area-inset-top))}
  #sidebar,#topbar,#secondary-nav{display:none}
  #mobile-topbar{position:fixed;z-index:12;inset:0 0 auto;height:calc(var(--mobile-topbar) + env(safe-area-inset-top));padding:env(safe-area-inset-top) 12px 0;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;background:rgb(255 255 255 / .94);border-bottom:1px solid #e8eaed;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
  #mobile-topbar button{width:44px;height:44px;padding:0;border:0;border-radius:12px;background:transparent;color:#4b515b;display:grid;place-items:center}#mobile-topbar button:active{background:#f0f2f5}#mobile-topbar button svg{width:20px;height:20px;stroke-width:1.8}
  #mobile-brand{min-width:0;justify-self:center;display:flex;align-items:center;gap:9px;color:#23272e}.mobile-brand-emblem{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#eef1f5;color:#4c5a6e;font-size:12px;font-weight:700}.mobile-brand-emblem+span{display:grid;gap:1px}.mobile-brand-emblem+span strong{font-size:14px;font-weight:650;letter-spacing:-.2px}.mobile-brand-emblem+span small{font-size:10px;color:#8b929c}
  #workspace{top:calc(var(--mobile-topbar) + env(safe-area-inset-top));left:0;right:0;bottom:calc(var(--mobile-bottom) + env(safe-area-inset-bottom))}
  #content-host{height:100%;background:#f6f7f9}.is-preview #image-area{top:0;padding:10px 0 18px}.is-preview #stage,.is-preview.is-portrait #stage{border:0;border-radius:0;box-shadow:none}
  #preview-toolbar{display:none!important}#image-area{inset:0;padding:12px 0 18px;display:flex;align-items:flex-start;justify-content:center;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}#stage{margin:0 auto}.hotspot{touch-action:manipulation}.hotspot.mobile-expanded-hit:focus-visible{outline:3px solid #007aff;outline-offset:-3px;border-radius:12px}
  #mobile-bottom-nav{position:fixed;z-index:12;inset:auto 0 0;height:calc(var(--mobile-bottom) + env(safe-area-inset-bottom));padding:8px 10px calc(8px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;background:rgb(255 255 255 / .96);border-top:1px solid #e7e9ec;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
  #mobile-bottom-nav a{min-width:0;display:grid;place-items:center;align-content:center;gap:3px;color:#8a909a;font-size:10px;font-weight:500;border-radius:12px;line-height:1.1;touch-action:manipulation}#mobile-bottom-nav a.active{color:#166cc4;background:#eff6ff;font-weight:650}#mobile-bottom-nav a:active{background:#f1f4f7}#mobile-bottom-nav svg{width:20px;height:20px;stroke-width:1.7}
  #mobile-surface{padding:22px 16px 28px;overflow:auto;background:linear-gradient(180deg,#fbfcfd 0,#f4f6f8 100%);-webkit-overflow-scrolling:touch}.mobile-surface-heading{margin:0 0 20px}.mobile-eyebrow{margin:0 0 7px;color:#8d949e;font-size:11px;font-weight:600;letter-spacing:.4px}.mobile-surface-heading h1{margin:0;font-size:27px;letter-spacing:-1px;line-height:1.15}.mobile-surface-detail{display:block;margin-top:9px;color:#777f8a;font-size:13px;line-height:1.55}.mobile-summary-card,.mobile-account-card{display:flex;flex-direction:column;gap:6px;padding:17px 18px;margin-bottom:12px;border:1px solid #e4e8ed;border-radius:16px;background:#fff;box-shadow:0 4px 18px #25314908}.mobile-summary-card strong{font-size:15px}.mobile-summary-card span,.mobile-inline-note{color:#77808b;font-size:12px;line-height:1.6}.mobile-list-card{width:100%;min-height:82px;display:flex;align-items:center;gap:12px;padding:15px 16px;margin:0 0 10px;border:1px solid #e1e5e9;border-radius:16px;background:#fff;text-align:left;box-shadow:0 4px 18px #25314908}.mobile-list-card.emphasis{border-color:#d7e6f8;background:linear-gradient(135deg,#fff,#f4f9ff)}.mobile-list-card:active{background:#f4f7fa;transform:none}.mobile-card-copy{min-width:0;display:grid;gap:5px;flex:1}.mobile-card-copy strong{font-size:14px;font-weight:650;color:#252a31}.mobile-card-copy small{color:#7c8490;font-size:12px;line-height:1.45}.mobile-card-action{flex:none;color:#1871c9;font-size:12px;font-weight:600}.mobile-inline-note{margin:14px 2px}.mobile-account-card{flex-direction:row;align-items:center;gap:12px}.mobile-account-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#e8edf3;color:#586577;font-size:16px;font-weight:650}.mobile-account-copy{display:grid;gap:5px}.mobile-account-copy strong{font-size:14px}.mobile-account-copy small{color:#7d8590;font-size:12px}
  #action-veil{position:fixed;inset:0;z-index:20}#action-dialog{position:fixed;z-index:21;width:calc(100% - 24px);max-height:calc(100% - 24px);padding:20px;border-radius:18px}#action-dialog[data-presentation=drawer]{inset:auto 0 0;width:100%;height:auto;max-height:calc(100% - 12px);border-radius:22px 22px 0 0;border:0;padding:20px}body:has(#action-dialog[open]) #mobile-topbar,body:has(#action-dialog[open]) #mobile-bottom-nav{pointer-events:none;opacity:.55}#action-close,#catalog-close{width:44px;height:44px;font-size:26px}.dialog-heading{gap:12px;margin-bottom:18px}.dialog-heading h2{font-size:19px}.field input,.field select,.field textarea{min-height:44px;font-size:16px}.dialog-footer{gap:8px}.dialog-footer button{min-height:44px;font-size:13px}.option-list button{min-height:44px}.result-card{padding:15px}.result-card dl{grid-template-columns:86px 1fr;gap:10px}#toast{position:fixed;z-index:32;bottom:calc(var(--mobile-bottom) + env(safe-area-inset-bottom) + 14px);font-size:12px}
  #catalog-dialog{position:fixed;inset:auto 0 0;width:100%;max-width:100%;height:min(78dvh,720px);max-height:calc(100dvh - 8px);margin:0;padding:20px 16px calc(18px + env(safe-area-inset-bottom));border:0;border-radius:22px 22px 0 0;box-shadow:0 -18px 60px #25314924}#catalog-dialog::backdrop{background:#202a3938;backdrop-filter:blur(2px)}.catalog-heading h2{font-size:18px;margin:0}.catalog-heading{margin-bottom:14px}#catalog-search{min-height:44px;margin-bottom:12px;font-size:16px}#catalog-grid{grid-template-columns:1fr;gap:6px;max-height:calc(78dvh - 150px);overflow:auto;padding-bottom:6px}.catalog-card{min-height:48px;padding:11px 12px;font-size:13px}.catalog-card small{min-width:23px}
}
