:root {
  --bg: #FFFFFF;
  --surface: #F5F7FA;
  --surface-strong: rgba(23, 23, 23, .08);
  --line: #CCCCCC;
  --line-dark: rgba(23, 23, 23, .28);
  --text: #171717;
  --muted: #575757;
  --blue: #002991;
  --blue-dark: #002991;
  --danger: #C83C37;
  --shadow: 0 20px 55px rgba(23, 23, 23, .13);
  --radius: 3px;
  --button-radius: 999px;
  --container: 1440px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
.home-icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
body.modal-open { overflow: hidden; }
a { color: var(--blue); text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; box-shadow: none !important; }
img { display: block; max-width: 100%; }
.site-container { width: min(calc(100% - 64px), var(--container)); margin-inline: auto; }
.site-header, .app-header { height: 84px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header { position: sticky; top: 0; backdrop-filter: blur(14px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 56px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 750; font-size: 24px; letter-spacing: -.02em; white-space: nowrap; }
.brand img { flex: 0 0 auto; }
.home-brand img { width: 46px; height: 46px; }
.main-nav { display: flex; align-self: stretch; gap: 36px; }
.main-nav a { min-width: 72px; display: grid; place-items: center; color: var(--muted); font-size: 15px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); border-color: var(--blue); }
.header-inner > .button:last-child { margin-left: auto; }
.home-account { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.home-guest-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.home-guest-actions .button { min-height: 42px; padding-inline: 17px; }
.home-account strong { color: var(--text); font-weight: 650; }
.home-account .home-project-button { min-height: 42px; margin-right: 6px; }
.home-logout { margin-left: 4px; }
.header-help-button { min-height: 40px; padding: 0 13px; border: 1px solid var(--line-dark); border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--text); background: #FFFFFF; font-size: 13px; font-weight: 650; transition: .18s ease; }
.header-help-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-help-button:hover, .header-help-button:focus-visible, .header-help-button.is-active { border-color: var(--blue); color: var(--blue); background: var(--surface); outline: none; }
.user-profile-trigger { min-height: 42px; padding: 3px 5px 3px 3px; border: 1px solid transparent; border-radius: 3px; display: inline-flex; align-items: center; gap: 9px; color: var(--text); background: transparent; cursor: pointer; transition: .18s ease; }
.user-profile-trigger:hover, .user-profile-trigger:focus-visible { border-color: rgba(0,41,145,.3); background: var(--surface); color: var(--blue); outline: none; }
.user-profile-trigger strong { font-size: 14px; font-weight: 650; white-space: nowrap; }
.profile-trigger-avatar { overflow: hidden; flex: 0 0 36px; }
.profile-trigger-avatar img { width: 100%; height: 100%; object-fit: cover; }

.button { min-height: 44px; padding: 0 20px; border: 3px solid var(--blue); border-radius: var(--button-radius); background: var(--blue); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 15px; font-weight: 650; cursor: pointer; transition: .2s ease; }
.button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-primary, .button-outline { background: var(--blue); color: #FFFFFF; border-color: var(--blue); box-shadow: none; }
.button:hover, .button:focus-visible, .button-primary:hover, .button-outline:hover { background: #FFFFFF; color: var(--blue); border-color: var(--blue); outline: none; transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.button-danger { color: var(--danger); border-color: var(--danger); background: #FFFFFF; box-shadow: none; }
.button-danger:hover, .button-danger:focus-visible { color: var(--danger); border-color: var(--danger); background: var(--surface); outline: none; }
.button-large { min-height: 54px; padding-inline: 30px; font-size: 17px; }
.button-block { width: 100%; }

.hero { height: 500px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #F5F7FA; }
.hero-tech-grid { position: absolute; inset: 42% -8% -42% 37%; opacity: .54; background-image: linear-gradient(rgba(0,41,145,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(0,41,145,.08) 1px,transparent 1px); background-size: 38px 38px; transform: perspective(640px) rotateX(61deg) rotateZ(-7deg); transform-origin: center; mask-image: radial-gradient(ellipse at center,#000 10%,transparent 72%); }
.hero-layout { height: 100%; position: relative; display: grid; grid-template-columns: minmax(360px,.82fr) minmax(560px,1.18fr); align-items: center; gap: 28px; }
.hero-content { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: flex-start; }
.hero h1 { margin: 0 0 24px; max-width: 690px; font-size: clamp(48px, 5vw, 76px); line-height: 1.12; letter-spacing: .01em; font-weight: 760; }
.hero p { margin: 0 0 38px; color: var(--muted); font-size: 20px; line-height: 1.8; }
.hero-model-showcase { position: relative; align-self: stretch; min-width: 0; }
.steel-model { position: absolute; inset: 0 -14px 0 -8px; display: flex; align-items: flex-end; justify-content: flex-end; opacity: 0; animation: steel-model-cycle 12s linear infinite; pointer-events: none; }
.steel-model:nth-child(2) { animation-delay: 2s; }
.steel-model:nth-child(3) { animation-delay: 4s; }
.steel-model:nth-child(4) { animation-delay: 6s; }
.steel-model:nth-child(5) { animation-delay: 8s; }
.steel-model:nth-child(6) { animation-delay: 10s; }
.steel-model img { display: block; width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; object-position: right bottom; filter: drop-shadow(0 18px 18px rgba(24,55,96,.08)); }
.hero-model-showcase:hover .steel-model { animation-play-state: paused; }
.steel-lines { fill: none; stroke: #173A70; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.steel-lines .steel-secondary { stroke: #4775A8; stroke-width: 1.45; opacity: .8; }
.steel-lines .steel-bracing { stroke: #35689F; stroke-width: 1.75; opacity: .88; }
.steel-lines .steel-detail { stroke: #002991; stroke-width: 2.5; }
@keyframes steel-model-cycle { 0% { opacity: 0; } 2.5%,14.2% { opacity: 1; } 16.7%,100% { opacity: 0; } }
.features-section, .contact-section { scroll-margin-top: 84px; }
.features-section { padding: 104px 0 112px; background: #FFFFFF; }
.features-section h2, .contact-section h2 { margin: 0; text-align: center; color: var(--text); font-size: 32px; letter-spacing: -.035em; }
.feature-rail { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin-top: 0; }
.feature-item { min-height: 250px; padding: 46px 28px 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--line); text-align: center; }
.feature-item:last-child { border-right: 0; }
.home-flat-icon { width: 86px; height: 86px; margin-bottom: 25px; display: grid; place-items: center; color: var(--blue); }
.home-flat-icon svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 8px rgba(0,41,145,.11)); }
.feature-item h3 { max-width: 220px; margin: 0; color: var(--text); font-size: 17px; font-weight: 650; line-height: 1.75; letter-spacing: -.01em; }
.contact-section { height: 500px; padding: 46px 0; box-sizing: border-box; background: var(--surface); }
.contact-grid { width: min(100%,820px); min-height: 330px; margin: 28px auto 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.contact-details { display: grid; gap: 18px; padding: 20px 56px 20px 0; border-right: 1px solid var(--line); }
.contact-row { min-height: 112px; display: flex; align-items: center; gap: 30px; }
.contact-row .contact-flat-icon { width: 76px; height: 76px; flex: 0 0 76px; margin: 0; }
.contact-row h3, .contact-wechat h3 { margin: 0 0 9px; color: var(--muted); font-size: 13px; font-weight: 650; }
.contact-row p, .contact-wechat p { margin: 0; }
.contact-row .contact-value { color: var(--text); font-size: 26px; font-weight: 700; letter-spacing: .015em; }
.contact-wechat { min-height: 288px; padding-left: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 17px; text-align: center; }
.contact-wechat h3 { color: var(--text); font-size: 18px; }
.contact-wechat p { color: var(--muted); font-size: 13px; }
.contact-qr { display: block; width: 200px; height: 200px; object-fit: contain; }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { min-height: 132px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--text); }
.footer-partnership { display: flex; align-items: center; gap: 8px; color: var(--text); }
.footer-partnership > img { width: 44px; height: 44px; }
.footer-partnership strong { font-size: 17px; white-space: nowrap; }
.footer-times { margin-inline: 6px; color: var(--muted); font-size: 25px; font-weight: 300; }
.footer-partnership a { display: inline-flex; align-items: center; }
.footer-partnership a img { width: 150px; height: 48px; object-fit: contain; }
.footer-contact { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-size: 16px; font-weight: 650; white-space: nowrap; }
.footer-contact svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-contact small { color: var(--muted); font-size: 14px; font-weight: 500; }
.footer-meta { display: flex; gap: 34px; }

.modal, .drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; }
.modal.open, .drawer.open { visibility: visible; pointer-events: auto; }
.modal-backdrop, .drawer-backdrop { position: absolute; inset: 0; background: rgba(23,23,23,.24); opacity: 0; transition: opacity .2s; }
.modal.open .modal-backdrop, .drawer.open .drawer-backdrop { opacity: 1; }
.modal-panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-47%); width: min(440px, calc(100% - 32px)); background: #FFFFFF; padding: 38px; border: 1px solid var(--line); border-radius: 3px; box-shadow: var(--shadow); opacity: 0; transition: .22s ease; }
.modal.open .modal-panel { opacity: 1; transform: translate(-50%,-50%); }
.modal-panel h2 { font-size: 28px; margin: 0 0 8px; }
.modal-panel > p { color: var(--muted); margin: 0 0 28px; }
.icon-button { width: 40px; height: 40px; padding: 0; border: 3px solid var(--blue); background: var(--blue); display: grid; place-items: center; border-radius: var(--button-radius); cursor: pointer; font-size: 24px; color: #FFFFFF; transition: .18s ease; }
.icon-button:hover, .icon-button:focus-visible { background: #FFFFFF; color: var(--blue); outline: none; }
.modal-close { position: absolute; right: 18px; top: 16px; }
.form-stack, .upload-form { display: grid; gap: 20px; }
.form-stack label, .upload-form label { display: grid; gap: 9px; font-size: 14px; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid var(--line-dark); border-radius: 3px; background: #FFFFFF; padding: 0 13px; color: var(--text); outline: none; transition: .2s; }
input, select { height: 46px; }
textarea { min-height: 104px; padding-block: 11px; resize: vertical; font: inherit; line-height: 1.65; }
input::placeholder, textarea::placeholder { color: rgba(23,23,23,.46); }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,41,145,.14); }
.password-field { position: relative; }
.password-field input { padding-right: 64px; }
.password-field button { position: absolute; right: 8px; top: 5px; height: 36px; border: 0; background: transparent; color: var(--blue); font-size: 13px; cursor: pointer; }
.captcha-field { display: grid; grid-template-columns: minmax(0,1fr) 150px; gap: 10px; }
.captcha-field > button { height: 46px; padding: 0 12px; border: 1px solid var(--line-dark); border-radius: 3px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--text); background: var(--surface); cursor: pointer; transition: .18s ease; }
.captcha-field > button:hover, .captcha-field > button:focus-visible { border: 3px solid var(--blue); color: var(--blue); background: #FFFFFF; outline: none; }
.captcha-field > button:disabled { opacity: .6; cursor: wait; }
.captcha-field strong { font-size: 15px; letter-spacing: .03em; white-space: nowrap; }
.captcha-field svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.register-contact { margin: 4px 0 26px; padding: 22px; display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 17px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); }
.register-contact > svg { width: 44px; height: 44px; fill: var(--blue); }
.register-contact div { display: grid; gap: 4px; }
.register-contact span { color: var(--muted); font-size: 12px; }
.register-contact small { color: var(--blue); font-size: 15px; font-weight: 700; }
.register-contact strong { color: var(--text); font-size: 23px; letter-spacing: .02em; }
.form-message { min-height: 0; color: var(--danger); font-size: 13px; line-height: 1.6; }
.form-message:empty { display: none; }
.alert { padding: 12px 14px; border-radius: 3px; margin-bottom: 20px; font-size: 14px; line-height: 1.6; }
.alert-error { background: var(--surface); color: var(--danger); border: 1px solid var(--line-dark); }

.app-page { min-height: 100vh; display: flex; flex-direction: column; background: #FFFFFF; }
.app-header { height: 76px; }
.app-page .workspace { flex: 1 0 auto; }
.app-footer { flex: 0 0 auto; }
.user-menu { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.user-menu a { margin-left: 12px; color: var(--blue); }
.user-menu .header-help-button { margin-left: 0; color: var(--text); }
.user-menu .header-help-button:hover, .user-menu .header-help-button:focus-visible, .user-menu .header-help-button.is-active { color: var(--blue); }
.avatar { width: 36px; height: 36px; border-radius: 3px; display: grid; place-items: center; color: var(--blue); background: var(--surface); font-weight: 700; }
.role-label { padding: 4px 8px; border: 1px solid rgba(0,41,145,.28); border-radius: 3px; color: var(--blue); background: var(--surface); font-size: 11px; }
.workspace { padding-top: 54px; padding-bottom: 84px; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.workspace-actions { display: flex; align-items: center; gap: 12px; }
.workspace-heading h1 { margin: 0 0 8px; font-size: 38px; letter-spacing: -.04em; }
.workspace-heading p { margin: 0; color: var(--muted); font-size: 16px; }
.account-usage { margin-top: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 18px; color: var(--muted); font-size: 12px; }
.account-usage strong { color: var(--text); font-size: 12px; }
.account-usage > span { position: relative; }
.account-usage > span::before { content: ""; position: absolute; left: -10px; top: 50%; width: 2px; height: 2px; border-radius: 50%; background: var(--line-dark); }
.account-usage.is-warning, .account-usage.is-warning strong { color: var(--danger); }
.account-expiry { display: inline-flex; align-items: center; gap: 6px; }
.account-expiry-info { position: relative; width: 20px; height: 20px; padding: 0; border: 0; background: transparent; color: var(--danger); display: inline-grid; place-items: center; cursor: help; }
.account-expiry-info svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-expiry-tooltip { position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 10px); width: 310px; padding: 11px 13px; border: 1px solid rgba(200,60,55,.24); border-radius: 3px; background: #FFFFFF; color: var(--text); box-shadow: 0 10px 28px rgba(23,23,23,.14); font-size: 12px; font-weight: 500; line-height: 1.65; text-align: left; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%,5px); transition: .16s ease; }
.account-expiry-tooltip::after { content: ""; position: absolute; left: 50%; top: 100%; width: 8px; height: 8px; border-right: 1px solid rgba(200,60,55,.24); border-bottom: 1px solid rgba(200,60,55,.24); background: #FFFFFF; transform: translate(-50%,-4px) rotate(45deg); }
.account-expiry-info:hover .account-expiry-tooltip, .account-expiry-info:focus-visible .account-expiry-tooltip { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.account-expiry-info:focus-visible { outline: 2px solid rgba(200,60,55,.28); outline-offset: 2px; }
.classification-bar { display: flex; align-items: flex-end; gap: 24px; margin-top: 46px; border-bottom: 1px solid var(--line); }
.category-tabs { min-width: 0; flex: 1 1 auto; display: flex; gap: 40px; overflow-x: auto; }
.category-tabs button { flex: 0 0 auto; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 0 1px 16px; color: var(--muted); cursor: pointer; font-size: 15px; }
.category-tabs button[aria-selected="true"] { color: var(--blue); border-color: var(--blue); font-weight: 650; }
.classification-switch { flex: 0 0 auto; display: inline-flex; margin-bottom: 9px; padding: 2px; border: 1px solid var(--line); border-radius: var(--button-radius); background: var(--surface); }
.classification-switch button { min-height: 34px; padding: 0 14px; border: 0; border-radius: var(--button-radius); background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; transition: .18s ease; }
.classification-switch button[aria-pressed="true"] { background: var(--blue); color: #FFFFFF; box-shadow: none; }
.classification-switch button:hover:not([aria-pressed="true"]), .classification-switch button:focus-visible:not([aria-pressed="true"]) { color: var(--blue); background: #FFFFFF; outline: none; }
.classification-switch button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 32px; }
.project-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: #FFFFFF; transition: .2s ease; }
.project-card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 16px 38px rgba(23,23,23,.1); }
.project-card.menu-open { z-index: 12; }
.project-card[hidden] { display: none; }
.project-image { display: block; position: relative; height: 180px; overflow: hidden; background: #FFFFFF; border-radius: 3px 3px 0 0; }
.project-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s ease; }
.project-card:hover .project-image img { transform: scale(1.025); }
.project-thumbnail-renderer { position: fixed; z-index: -1; left: -2400px; top: 0; width: 1200px; height: 800px; border: 0; opacity: .01; pointer-events: none; }
.demo-label { position: absolute; z-index: 2; right: 12px; top: 12px; padding: 5px 8px; background: rgba(255,255,255,.94); border: 1px solid rgba(0,41,145,.32); border-radius: 3px; color: var(--blue); font-size: 11px; font-style: normal; }
.model-cache-label { position: absolute; z-index: 2; left: 10px; bottom: 10px; min-height: 27px; padding: 0 9px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(87,87,87,.22); border-radius: 3px; background: rgba(255,255,255,.94); color: var(--muted); font-size: 10px; font-weight: 650; backdrop-filter: blur(6px); }
.model-cache-label i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #9CA3AF; }
.model-cache-label.is-ready { border-color: rgba(0,41,145,.24); color: var(--blue); }
.model-cache-label.is-ready i { background: var(--blue); }
.project-info { height: 72px; padding: 8px 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; background: #FFFFFF; }
.project-info h2 { margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 17px; line-height: 1.25; letter-spacing: -.015em; }
.project-info dl { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 8px; margin: 0; }
.project-info dl div { min-width: 0; display: flex; align-items: center; gap: 6px; }
.project-info dt { flex: 0 0 auto; display: flex; align-items: center; color: var(--muted); }
.project-info dt svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.project-info dd { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 12px; line-height: 1.25; }
.project-card-actions { height: 60px; padding: 0 12px; display: flex; align-items: center; justify-content: flex-end; gap: 4px; border-top: 1px solid var(--line); background: #FFFFFF; border-radius: 0 0 3px 3px; }
.project-action { width: 42px; height: 42px; flex: 0 0 42px; padding: 0; border: 0; border-radius: 3px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; color: #333333; cursor: pointer; transition: .18s ease; }
.project-action:hover, .project-action:focus-visible { color: var(--blue); background: var(--surface); outline: none; }
.project-action svg { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.project-visibility { margin-right: auto; }
.project-visibility.is-private { color: var(--danger); }
.project-visibility.is-public { color: var(--blue); }
.project-visibility .visibility-icon-public { display: none; }
.project-visibility.is-public .visibility-icon-private { display: none; }
.project-visibility.is-public .visibility-icon-public { display: block; }
.project-visibility.is-private:hover, .project-visibility.is-private:focus-visible { color: var(--danger); }
.project-visibility.is-public:hover, .project-visibility.is-public:focus-visible { color: var(--blue); }
.project-visibility:disabled { opacity: .45; cursor: wait; }
.project-more { position: relative; min-width: 42px; display: flex; }
.project-more > .project-action { width: 42px; }
.project-more-menu { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: 154px; padding: 6px; border: 1px solid var(--line); border-radius: 3px; background: #FFFFFF; box-shadow: 0 14px 32px rgba(23,23,23,.16); }
.project-more-menu[hidden] { display: none; }
.project-more-menu::before { content: ""; position: absolute; right: 24px; top: -5px; width: 9px; height: 9px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); background: #FFFFFF; transform: rotate(45deg); }
.project-more-menu button { position: relative; z-index: 1; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 3px; display: flex; align-items: center; gap: 10px; color: var(--text); background: #FFFFFF; cursor: pointer; font-size: 13px; font-weight: 650; text-align: left; }
.project-more-menu button:hover, .project-more-menu button:focus-visible { color: var(--blue); background: var(--surface); outline: none; }
.project-more-menu [data-delete-project], .project-more-menu [data-delete-project]:hover, .project-more-menu [data-delete-project]:focus-visible { color: var(--danger); }
.project-more-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.workspace-status { position: fixed; z-index: 90; top: 94px; left: 50%; min-height: 42px; max-width: min(520px, calc(100% - 32px)); padding: 10px 16px; border: 1px solid var(--line); border-radius: 3px; color: var(--text); background: #FFFFFF; box-shadow: 0 12px 30px rgba(23,23,23,.14); opacity: 0; visibility: hidden; transform: translate(-50%,-10px); transition: .2s ease; pointer-events: none; font-size: 13px; }
.workspace-status.show { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.project-dialog-panel { width: min(830px, calc(100% - 32px)); height: min(780px, calc(100vh - 32px)); max-height: none; padding: 0; display: grid; grid-template-rows: auto minmax(0,1fr); overflow: hidden; }
.project-dialog-head { position: relative; z-index: 2; min-height: 84px; padding: 18px 22px 16px 26px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; background: #FFFFFF; }
.project-dialog-head h2 { margin: 0 0 5px; font-size: 28px; }
.project-dialog-head p { margin: 0; color: var(--muted); font-size: 16px; }
.project-dialog-head .icon-button { flex: 0 0 auto; width: 36px; height: 36px; font-size: 21px; }
.project-dialog-form { min-height: 0; padding: 16px 22px 20px; gap: 13px; overflow-y: hidden; }
.replace-model-block { display: grid; gap: 10px; }
.replace-model-block .drop-zone { width: 100%; }
.project-dialog-panel .drop-zone { min-height: 126px; padding: 13px 18px; gap: 4px !important; }
.project-dialog-panel .drop-zone svg { width: 27px; height: 27px; }
.project-dialog-panel .drop-zone strong { font-size: 15px; }
.project-dialog-panel .drop-zone span, .project-dialog-panel .drop-zone em { font-size: 12px; }
.replace-model-progress { height: 4px; overflow: hidden; border-radius: 3px; background: var(--surface-strong); }
.replace-model-progress span { display: block; width: 0; height: 100%; background: var(--blue); transition: width .18s ease; }
.project-edit-columns { display: grid; grid-template-columns: minmax(0,400px) minmax(0,350px); justify-content: center; gap: 13px; align-items: stretch; }
.project-edit-section { min-width: 0; margin: 0; padding: 15px; border: 1px solid var(--line); border-radius: 3px; display: grid; align-content: start; gap: 11px; background: var(--surface); }
.project-edit-section legend { padding: 0 7px; color: var(--text); font-size: 16px; font-weight: 750; }
.project-edit-section .form-row { gap: 9px; }
.project-edit-section label { gap: 6px; font-size: 14px; }
.project-edit-section input, .project-edit-section select { height: 40px; }
.project-edit-section textarea { min-height: 72px; padding-block: 8px; }
.project-display-field { display: grid; gap: 6px; }
.project-display-label { color: var(--text); font-size: 14px; font-weight: 650; }
.project-mode-switch { width: fit-content; margin: 0; background: #FFFFFF; }
.project-edit-section .project-mode-switch { margin: 0; order: initial; }
.project-mode-switch button { min-width: 70px; min-height: 31px; }
.model-notice-field { position: relative; }
.model-notice-field small { justify-self: end; margin-top: -4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.project-contact-fields { display: grid; gap: 9px; }
.project-contact-row { min-width: 0; display: grid; grid-template-columns: 52px minmax(0,1fr); align-items: center; gap: 8px; }
.project-contact-phone-row { grid-template-columns: 52px minmax(0,1fr) auto; }
.project-contact-row > label:not(.inline-check) { display: block; font-size: 13px; white-space: nowrap; }
.project-contact-row > input { min-width: 0; }
.project-contact-row > input:disabled { color: #8D96A1; border-color: var(--line); background: #ECECF1; cursor: not-allowed; opacity: 1; }
.inline-check { width: fit-content; display: inline-flex !important; grid-template-columns: none !important; align-items: center; gap: 8px !important; color: var(--muted); font-size: 12px !important; cursor: pointer; }
.inline-check input { width: 17px; height: 17px; padding: 0; accent-color: var(--blue); }
.project-edit-page, .help-page, .users-page { background: #FFFFFF; }
.project-edit-workspace, .help-workspace, .user-management-workspace { background: #FFFFFF; }
.users-page .user-management-panel, .users-page .user-panel-heading, .help-page .help-item { background: #FFFFFF; }
.project-edit-workspace { flex: 1 0 auto; padding-top: 40px; padding-bottom: 78px; }
.project-edit-heading { width: min(100%, 1020px); margin: 0 auto 42px; }
.project-edit-back { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-size: 17px; font-weight: 700; }
.project-edit-back:hover { color: var(--text); }
.project-edit-back svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.project-edit-form { width: min(100%, 1020px); margin-inline: auto; padding: 0; border: 0; display: grid; gap: 0; background: #FFFFFF; }
.project-file-summary { min-height: 220px; display: grid; grid-template-columns: 300px minmax(0,1fr); align-items: center; gap: 38px; }
.project-summary-thumbnail { width: 300px; height: 200px; overflow: hidden; background: #FFFFFF; }
.project-summary-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.project-file-details { min-width: 0; display: grid; justify-items: start; align-content: center; gap: 17px; }
.project-file-title-row { max-width: 100%; display: flex; align-items: baseline; gap: 14px; }
.project-file-name { min-width: 0; max-width: 100%; overflow: hidden; color: var(--text); font-size: 23px; font-weight: 750; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.project-file-size { flex: 0 0 auto; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.project-file-times { display: flex; flex-wrap: wrap; gap: 9px 28px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.project-file-times b { color: var(--text); font-weight: 600; }
.project-upload-model-button { min-width: 136px; }
.project-replace-panel { width: min(540px,calc(100% - 32px)); }
.project-replace-panel > h2 { margin: 0 0 7px; font-size: 26px; }
.project-replace-panel > p { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.project-replace-actions { margin-top: 20px; display: flex; justify-content: flex-end; }
.project-replace-actions .button { min-width: 112px; }
.project-replace-drop { min-height: 184px; padding: 20px; gap: 5px; }
.project-replace-drop svg { width: 29px; height: 29px; }
.project-replace-drop strong { font-size: 15px; }
.project-replace-drop span, .project-replace-drop em { font-size: 12px; }
.project-edit-form .project-edit-columns { margin-top: 58px; grid-template-columns: minmax(0,420px) minmax(0,1fr); justify-content: stretch; gap: 80px; align-items: start; }
.project-edit-form .project-edit-section { padding: 0; border: 0; gap: 15px; background: #FFFFFF; }
.project-edit-form .project-edit-section h2 { margin: 0 0 15px; color: var(--text); font-size: 22px; letter-spacing: -.02em; }
.project-edit-form .project-edit-section > label, .project-edit-form .project-edit-section .form-row > label, .project-field-label { color: var(--text); font-size: 14px; font-weight: 650; }
.project-edit-form .project-edit-section > label, .project-edit-form .project-edit-section .form-row > label { display: grid; gap: 6px; }
.project-edit-form .project-mode-switch { width: fit-content; display: inline-flex; }
.project-edit-form .project-mode-switch button { min-width: 0; padding-inline: 14px; }
.custom-info-settings { padding: 0; border: 0; display: grid; gap: 10px; background: #FFFFFF; }
.custom-info-settings.is-active > strong { color: var(--blue); }
.custom-info-settings > strong, .project-contact-settings > strong { font-size: 13px; }
.custom-info-settings > small { color: var(--muted); font-size: 11px; line-height: 1.55; }
.custom-info-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px 10px; }
.custom-info-options label { min-width: 0; display: flex; flex-direction: row; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer; }
.custom-info-options input { width: 16px !important; height: 16px !important; flex: 0 0 16px; padding: 0; accent-color: var(--blue); }
.field-counter { justify-self: end; margin-top: -7px; color: var(--muted); font-size: 11px; font-weight: 400; }
.project-contact-settings { max-width: 410px; display: grid; gap: 10px; }
.contact-inline-field { display: grid !important; grid-template-columns: 48px minmax(0,250px); justify-content: start; align-items: center; gap: 8px !important; }
.contact-inline-field > span:first-child { font-size: 13px; font-weight: 600; }
.contact-inline-field:first-of-type { grid-template-columns: 48px minmax(0,210px) auto; }
.contact-wechat-check { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.contact-wechat-check input { width: 16px !important; height: 16px !important; padding: 0; accent-color: var(--blue); }
.contact-inline-field > input:disabled { color: #8D96A1; border-color: var(--line); background: #ECECF1; cursor: not-allowed; opacity: 1; }
.project-edit-message { min-height: 20px; margin: -4px 0; color: var(--danger); text-align: right; }
.project-edit-message.is-success { color: var(--blue); }
.project-edit-actions { margin-top: 44px; display: flex; justify-content: flex-end; gap: 12px; }
.delete-project-panel { width: min(500px, calc(100% - 32px)); }
.delete-project-panel > p { line-height: 1.8; }
.delete-project-panel > p strong { color: var(--text); }
.delete-project-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; }
.qr-dialog-panel { width: min(430px, calc(100% - 32px)); text-align: center; }
.qr-dialog-panel > p { margin-bottom: 18px; }
.qr-dialog-panel canvas { display: block; width: min(100%, 330px); height: auto; margin: 0 auto 10px; border: 1px solid var(--line); border-radius: 3px; background: #FFFFFF; }
.qr-project-name { display: block; margin-top: 3px; font-size: 16px; }
.qr-project-link { display: block; margin: 7px 0 20px; overflow-wrap: anywhere; color: var(--blue); font-size: 11px; line-height: 1.5; }
.empty-state { grid-column: 1 / -1; min-height: 320px; display: grid; place-content: center; text-align: center; border: 1px dashed var(--line-dark); background: var(--surface); }
.empty-state h2 { margin: 0 0 8px; }
.empty-state p { margin: 0; color: var(--muted); }

.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(520px, 100%); box-sizing: border-box; padding: 30px 34px; overflow-y: auto; overflow-x: hidden; background: #FFFFFF; border-left: 1px solid var(--line); box-shadow: -16px 0 40px rgba(23,23,23,.11); transform: translateX(100%); transition: transform .25s ease; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.drawer-head h2 { margin: 0 0 6px; font-size: 26px; }
.drawer-head p { color: var(--muted); margin: 0; font-size: 13px; }
.drop-zone { min-height: 184px; padding: 24px; border: 1px dashed var(--line-dark); border-radius: 3px; display: flex !important; flex-direction: column; justify-content: center; align-items: center; gap: 7px !important; color: var(--muted); text-align: center; cursor: pointer; background: var(--surface); }
.drop-zone.dragging { border: 3px dashed var(--blue); background: #FFFFFF; }
.drop-zone.is-disabled { cursor: not-allowed; border-style: solid; opacity: .78; }
.drop-zone.is-disabled svg, .drop-zone.is-disabled em, .drop-zone em.is-warning { color: var(--danger); stroke: var(--danger); }
.drop-zone input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.drop-zone svg { width: 32px; height: 32px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.drop-zone strong { color: var(--text); font-size: 15px; }
.drop-zone span { font-size: 12px; font-weight: 400; }
.drop-zone em { color: var(--blue); font-size: 12px; font-style: normal; font-weight: 500; margin-top: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-help { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.drawer-actions { margin-top: 6px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; }
.profile-drawer-panel { width: min(480px,100%); }
.profile-form { gap: 14px; }
.profile-setting-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.profile-setting-heading > div { display: grid; gap: 4px; }
.profile-setting-heading strong { color: var(--text); font-size: 15px; }
.profile-setting-heading > div span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.company-setting-heading { margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.profile-switch { flex: 0 0 auto; display: inline-flex !important; align-items: center; gap: 8px !important; color: var(--muted); font-size: 11px !important; font-weight: 500 !important; cursor: pointer; }
.profile-switch input { position: absolute; opacity: 0; pointer-events: none; }
.profile-switch i { position: relative; width: 38px; height: 22px; border: 1px solid var(--line-dark); border-radius: 3px; background: var(--surface-strong); transition: .18s ease; }
.profile-switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 2px; background: #FFFFFF; box-shadow: none; transition: .18s ease; }
.profile-switch input:checked + i { border-color: var(--blue); background: var(--blue); }
.profile-switch input:checked + i::after { transform: translateX(16px); }
.profile-switch input:focus-visible + i { outline: 2px solid rgba(0,41,145,.24); outline-offset: 2px; }
.profile-avatar-upload { position: relative; min-height: 112px; padding: 17px; border: 1px dashed var(--line-dark); border-radius: 3px; display: grid !important; grid-template-columns: 76px minmax(0,1fr); align-items: center; gap: 16px !important; background: var(--surface); cursor: pointer; transition: .18s ease; }
.profile-avatar-upload:hover { border-color: var(--blue); background: #FFFFFF; }
.profile-avatar-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.profile-avatar-preview { width: 76px; height: 76px; border: 1px solid var(--line); border-radius: 3px; display: grid; place-items: center; overflow: hidden; color: var(--blue); background: #FFFFFF; font-size: 26px; }
.profile-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-copy { min-width: 0; display: grid; gap: 5px; }
.profile-avatar-copy strong { color: var(--text); font-size: 14px; }
.profile-avatar-copy small { color: var(--muted); font-size: 11px; font-weight: 400; }
.profile-avatar-copy em { overflow: hidden; color: var(--blue); font-size: 11px; font-style: normal; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.profile-remove-avatar { justify-self: start; padding: 3px 0; border: 0; background: transparent; color: var(--danger); font-size: 12px; cursor: pointer; }
.profile-remove-avatar:hover, .profile-remove-avatar:focus-visible { text-decoration: underline; outline: none; }
.profile-company-field input { width: 100%; min-height: 46px; }
.upload-progress { display: none; }
.upload-progress.active { display: block; }
.upload-progress > div { height: 5px; background: var(--surface-strong); border-radius: 3px; overflow: hidden; }
.upload-progress span { display: block; width: 0; height: 100%; background: var(--blue); transition: width .15s; }
.upload-progress p { margin: 8px 0 0; color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; }
.user-drawer-panel { width: min(620px, 100%); }
.category-drawer-panel { width: min(440px, 100%); }
.category-list { display: flex; flex-wrap: wrap; gap: 9px; }
.category-chip { min-height: 36px; padding: 2px 3px 2px 0; display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); }
.category-chip span { padding: 7px 6px 7px 12px; color: var(--text); font-size: 13px; }
.category-chip button { width: 32px; height: 32px; align-self: center; display: grid; place-items: center; border: 3px solid var(--blue); border-radius: var(--button-radius); background: var(--blue); color: #FFFFFF; cursor: pointer; font-size: 16px; line-height: 1; }
.category-chip button:hover, .category-chip button:focus-visible { color: var(--blue); background: #FFFFFF; outline: none; }
.category-chip button + button { border-left-width: 3px; }
.category-chip button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.category-manage-message { min-height: 20px; margin-top: 12px; }
.user-list { display: grid; border-top: 1px solid var(--line); }
.user-row { min-height: 86px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.user-row[hidden] { display: none !important; }
.user-row .avatar { width: 34px; height: 34px; font-size: 13px; }
.user-row strong, .user-row small { display: block; }
.user-row strong { font-size: 14px; }
.user-row small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.user-row .user-expiry.is-warning { color: var(--danger); font-weight: 650; }
.user-row-actions { display: flex; align-items: center; gap: 3px; }
.user-row-actions button { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 3px; display: grid; place-items: center; color: #333333; background: #FFFFFF; cursor: pointer; transition: .18s ease; }
.user-row-actions button:hover, .user-row-actions button:focus-visible { color: var(--blue); background: var(--surface); outline: none; }
.user-row-actions svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  .feature-motion .feature-moving-part { animation: none !important; }
}
.user-admin-note { color: var(--muted); font-size: 11px; }
.user-action-panel { width: min(460px, calc(100% - 32px)); }
.user-create-section { margin-top: 30px; padding-top: 26px; border-top: 8px solid var(--surface); }
.user-create-section h3 { margin: 0 0 20px; font-size: 18px; }
.user-management-workspace { flex: 1 0 auto; padding-top: 54px; padding-bottom: 84px; }
.user-management-heading { align-items: center; }
.user-maintenance-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.user-management-heading .section-kicker { margin: 0 0 8px; color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .14em; }
.user-management-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(340px,.75fr); gap: 28px; margin-top: 42px; align-items: start; }
.user-management-panel { border: 1px solid var(--line); border-radius: 3px; background: #FFFFFF; }
.user-panel-heading { min-height: 92px; padding: 24px 28px; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: var(--surface); }
.user-list-heading { gap: 20px; justify-content: space-between; }
.user-list-heading .user-type-filter { margin: 0 0 0 auto; }
.user-list-heading .user-type-filter button { min-height: 32px; padding-inline: 11px; }
.user-panel-heading h2 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.025em; }
.user-panel-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.user-management-panel > .user-list { padding: 0 28px 18px; border-top: 0; }
.user-management-panel .user-row { min-height: 96px; }
.user-filter-empty { margin: 0; min-height: 190px; display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; }
.user-filter-empty[hidden] { display: none; }
.user-create-card { position: sticky; top: 28px; }
.user-create-card .form-stack { padding: 26px 28px 30px; }
.header-space-link { min-height: 38px; padding: 0 14px; border: 1px solid rgba(0,41,145,.32); border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); font-weight: 650; }

.help-workspace { min-height: calc(100vh - 76px - 106px); padding-top: 64px; padding-bottom: 90px; }
.help-heading { max-width: 760px; margin-bottom: 36px; }
.help-heading h1 { margin: 6px 0 10px; color: var(--text); font-size: clamp(34px,4vw,52px); letter-spacing: -.035em; }
.help-heading p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.help-list { max-width: 900px; border-top: 1px solid var(--line); }
.help-item { border-bottom: 1px solid var(--line); background: #FFFFFF; }
.help-item summary { min-height: 78px; padding: 0 18px 0 4px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--text); cursor: pointer; list-style: none; font-size: 17px; font-weight: 700; }
.help-item summary::-webkit-details-marker { display: none; }
.help-item summary::after { content: ""; width: 10px; height: 10px; flex: 0 0 10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg) translateY(-3px); transition: transform .18s ease; }
.help-item[open] summary { color: var(--blue); }
.help-item[open] summary::after { transform: rotate(225deg) translate(-2px,-2px); }
.help-answer { max-width: 760px; padding: 0 48px 27px 4px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.help-answer p { margin: 0; }

.setup-page { min-height: 100vh; background: var(--surface); display: grid; place-items: center; padding: 32px; }
.setup-shell { width: min(470px, 100%); }
.setup-shell > .brand { margin-bottom: 22px; }
.setup-panel { background: #FFFFFF; border: 1px solid var(--line); border-radius: 3px; padding: 38px; box-shadow: 0 18px 55px rgba(23,23,23,.1); }
.setup-panel h1 { margin: 0 0 10px; font-size: 28px; }
.setup-panel > p { color: var(--muted); line-height: 1.7; margin: 0 0 26px; }
.success-mark { width: 48px; height: 48px; border-radius: 3px; display: grid; place-items: center; background: var(--surface); color: var(--blue); margin-bottom: 20px; font-size: 24px; }

.viewer-page { overflow: hidden; background: var(--surface); }
.viewer-header { height: 82px; display: flex; align-items: stretch; border-bottom: 1px solid var(--line); background: #FFFFFF; position: relative; z-index: 20; }
.viewer-project-identity { min-width: 0; flex: 1 1 auto; padding: 0 24px; display: flex; align-items: center; gap: 12px; }
.viewer-owner-avatar { width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--line); border-radius: 3px; object-fit: cover; background: var(--surface); }
.viewer-project-copy { min-width: 0; display: flex; align-items: center; }
.viewer-project-primary { min-width: 0; display: flex; align-items: center; gap: 12px; }
.viewer-project-detail { min-width: 0; display: grid; align-content: center; gap: 5px; }
.viewer-owner-company { max-width: 260px; overflow: hidden; color: var(--text); font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.viewer-project-name { min-width: 0; overflow: hidden; color: var(--text); font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.viewer-owner-company + .viewer-project-detail { padding-left: 12px; border-left: 1px solid var(--line); }
.viewer-header-contact { min-height: 20px; display: flex; align-items: center; gap: 7px; overflow: visible; color: var(--muted); font-size: 12px; white-space: nowrap; }
.viewer-contact-label { color: var(--text); font-weight: 600; }
.viewer-contact-phone, .viewer-contact-wechat-same, .viewer-contact-wechat-id { display: inline-flex; align-items: center; white-space: nowrap; }
.viewer-contact-wechat-same { color: var(--blue); }
.viewer-contact-wechat-id { color: var(--muted); }
.viewer-contact-wechat-id b { color: var(--text); font-weight: 600; }
.viewer-header-actions { flex: 0 0 auto; margin-left: auto; margin-right: 22px; display: flex; align-items: center; gap: 10px; }
.viewer-space-button { align-self: center; flex: 0 0 auto; min-height: 42px; margin: 0; padding-inline: 17px; }
.viewer-brand { padding: 0 24px; border-right: 1px solid var(--line); font-size: 16px; white-space: nowrap; }
.viewer-breadcrumb { display: flex; align-items: center; gap: 12px; padding: 0 28px; min-width: 320px; font-size: 14px; color: var(--muted); }
.viewer-breadcrumb a:hover { color: var(--blue); }
.viewer-breadcrumb strong { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.viewer-shell { height: calc(100vh - 82px); }
.viewer-canvas-wrap { width: 100%; height: 100%; position: relative; overflow: hidden; background: var(--surface); }
.viewer-canvas-wrap canvas { display: block; width: 100%; height: 100%; outline: none; }
.viewer-model-placeholder { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; padding: 3.5%; object-fit: contain; background: var(--surface); opacity: .24; filter: grayscale(.1) saturate(.7) contrast(.94); pointer-events: none; transition: opacity .28s ease, visibility .28s ease; }
.viewer-model-placeholder.hidden { opacity: 0; visibility: hidden; }
.viewer-connection-switch { position: absolute; z-index: 9; left: 22px; top: 22px; width: 82px; margin: 0; padding: 7px; display: grid; grid-template-columns: 1fr; gap: 2px; background: rgba(255,255,255,.97); box-shadow: 0 9px 25px rgba(23,23,23,.12); backdrop-filter: blur(8px); }
.viewer-connection-switch button { width: 66px; min-width: 0; min-height: 36px; padding-inline: 8px; font-size: 12px; font-weight: 650; }
.viewer-toolbar { position: absolute; left: 22px; top: 164px; z-index: 8; width: 82px; padding: 7px; border: 1px solid var(--line); border-radius: 3px; background: rgba(255,255,255,.97); box-shadow: 0 9px 25px rgba(23,23,23,.12); }
.viewer-toolbar button { width: 66px; min-height: 70px; padding: 8px 3px; border: 2px solid transparent; border-radius: 3px; background: #FFFFFF; color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; transition: .18s ease; }
.viewer-toolbar button:hover, .viewer-toolbar button:focus-visible, .viewer-toolbar button.active { border-color: var(--blue); color: var(--blue); outline: none; }
.viewer-toolbar svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.viewer-toolbar span { font-size: 11px; font-weight: 650; white-space: nowrap; }
.zoom-speed-popover { position: absolute; z-index: 9; left: 120px; top: 164px; width: 286px; padding: 20px 22px 17px; border: 1px solid var(--line); border-radius: 3px; background: #FFFFFF; box-shadow: 0 12px 32px rgba(23,23,23,.14); }
.zoom-speed-popover::before { content: ""; position: absolute; left: -8px; top: 26px; width: 14px; height: 14px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #FFFFFF; transform: rotate(45deg); }
.zoom-speed-popover > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 13px; }
.zoom-speed-popover strong { color: var(--blue); font-size: 22px; }
.zoom-speed-popover input { width: 100%; margin: 18px 0 8px; accent-color: var(--blue); cursor: pointer; }
.zoom-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.viewer-compass { position: absolute; z-index: 8; top: 22px; right: 22px; width: 72px; height: 72px; padding: 0; color: var(--muted); text-align: center; pointer-events: none; }
.viewer-compass > svg { display: block; width: 72px; height: 72px; overflow: visible; }
.compass-face { fill: rgba(245,247,250,.86); stroke: rgba(23,23,23,.24); stroke-width: 1.2; }
.compass-ticks { fill: none; stroke: rgba(23,23,23,.48); stroke-width: 1.4; stroke-linecap: round; }
.compass-needle { transform-box: view-box; transform-origin: 44px 44px; transition: transform .06s linear; }
.compass-needle text { fill: var(--danger); font-family: Arial,sans-serif; font-size: 14px; font-weight: 800; text-anchor: middle; }
.compass-north { fill: var(--danger); stroke: #FFFFFF; stroke-width: .8; }
.compass-south { fill: #8D96A1; stroke: #FFFFFF; stroke-width: .8; }
.compass-needle circle { fill: #FFFFFF; stroke: #171717; stroke-width: 1.2; }
.viewer-notice { position: absolute; z-index: 11; top: 22px; left: 50%; width: min(800px,calc(100% - 240px)); max-width: 800px; min-height: 43px; transform: translateX(-50%); border: 1px solid rgba(0,41,145,.22); border-radius: 3px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: stretch; color: var(--text); background: rgba(255,255,255,.96); box-shadow: 0 9px 25px rgba(23,23,23,.1); backdrop-filter: blur(9px); overflow: hidden; }
.viewer-notice[hidden] { display: none !important; }
.viewer-notice-copy { min-width: 0; display: flex; align-items: center; overflow: hidden; }
.viewer-notice-copy span { min-width: max-content; padding-left: 100%; display: block; color: var(--text); font-size: 13px; line-height: 1.6; white-space: nowrap; animation: viewer-notice-scroll 16s linear infinite; }
.viewer-notice:hover .viewer-notice-copy span { animation-play-state: paused; }
.viewer-notice-actions { display: flex; align-items: stretch; border-left: 1px solid var(--line); background: #FFFFFF; }
.viewer-notice-actions button { width: 40px; min-height: 41px; padding: 0; border: 0; border-left: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); background: transparent; cursor: pointer; font-size: 21px; transition: .18s ease; }
.viewer-notice-actions button:first-child { border-left: 0; }
.viewer-notice-actions button:hover, .viewer-notice-actions button:focus-visible { color: var(--blue); background: var(--surface); outline: none; }
.viewer-notice-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .18s ease; }
.viewer-notice.is-expanded { align-items: start; }
.viewer-notice.is-expanded .viewer-notice-copy { overflow: visible; }
.viewer-notice.is-expanded .viewer-notice-copy span { min-width: 0; padding: 12px 16px; white-space: normal; animation: none; }
.viewer-notice.is-expanded [data-toggle-viewer-notice] svg { transform: rotate(180deg); }
@keyframes viewer-notice-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.viewer-watermark { position: absolute; z-index: 4; right: 22px; bottom: 20px; color: rgba(255,255,255,.76); text-align: right; font-size: 13px; font-weight: 750; line-height: 1.45; letter-spacing: .025em; text-shadow: 0 1px 1px rgba(0,0,0,.42), 0 0 2px rgba(0,0,0,.26); pointer-events: none; user-select: none; }
.viewer-help { position: absolute; z-index: 5; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 18px; padding: 9px 14px; border: 1px solid var(--line); background: rgba(255,255,255,.9); border-radius: 3px; color: var(--muted); font-size: 10px; backdrop-filter: blur(8px); white-space: nowrap; transition: opacity .18s; }
.viewer-canvas-wrap.has-info .viewer-help { opacity: 0; }
.viewer-loading { position: absolute; z-index: 9; top: 50%; left: 50%; transform: translate(-50%,-50%); min-width: 320px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 3px; padding: 22px; box-shadow: var(--shadow); display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 3px 13px; align-items: center; transition: .2s; }
.viewer-loading.hidden { opacity: 0; visibility: hidden; }
.viewer-loading .spinner { width: 30px; height: 30px; grid-row: 1 / 3; border: 3px solid var(--surface-strong); border-top-color: var(--blue); border-radius: 3px; animation: spin .8s linear infinite; }
.viewer-loading strong { min-width: 0; font-size: 14px; }
.viewer-loading small { grid-column: 2 / -1; color: var(--muted); font-size: 11px; }
.viewer-loading-timer { color: var(--blue); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.viewer-loading > div { grid-column: 1 / -1; height: 4px; background: var(--surface-strong); border-radius: 3px; margin-top: 12px; overflow: hidden; }
.viewer-loading i { display: block; width: 20%; height: 100%; background: var(--blue); transition: width .2s; }
.viewer-background-status { position: absolute; z-index: 8; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 3px; background: rgba(255,255,255,.94); color: var(--muted); font-size: 11px; backdrop-filter: blur(8px); }
.viewer-background-status[hidden] { display: none; }
.viewer-background-status i { width: 12px; height: 12px; border: 2px solid var(--surface-strong); border-top-color: var(--blue); border-radius: 3px; animation: spin .8s linear infinite; }
.viewer-canvas-wrap[data-interactions-ready="false"] .viewer-toolbar button[data-mode="measure"],
.viewer-canvas-wrap[data-interactions-ready="false"] .viewer-connection-switch button { opacity: .42; cursor: wait; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.viewer-toast { position: absolute; z-index: 12; top: 18px; left: 50%; transform: translate(-50%,-15px); background: #FFFFFF; border: 1px solid var(--line); border-radius: 3px; padding: 10px 14px; font-size: 12px; color: var(--muted); box-shadow: 0 8px 25px rgba(23,23,23,.12); opacity: 0; pointer-events: none; transition: .2s; }
.viewer-toast.show { opacity: 1; transform: translate(-50%,0); }
.viewer-info-dock { position: absolute; z-index: 10; left: 22px; right: 22px; bottom: 22px; display: flex; align-items: stretch; justify-content: center; gap: 14px; pointer-events: none; }
.viewer-info-panel { min-width: 0; border: 1px solid var(--line); border-radius: 3px; background: rgba(255,255,255,.98); box-shadow: 0 14px 38px rgba(23,23,23,.14); pointer-events: auto; overflow: hidden; }
.viewer-info-panel[hidden], .zoom-speed-popover[hidden] { display: none !important; }
.selection-info { flex: 1 1 820px; max-width: 980px; }
.measurement-info { flex: 0 1 350px; min-width: 300px; }
.viewer-info-head { min-height: 54px; padding: 0 12px 0 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.viewer-info-head h2 { margin: 0; font-size: 17px; line-height: 1.3; }
.viewer-info-title { min-width: 0; display: flex; align-items: center; gap: 10px; }
.viewer-info-title h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-info-title span { flex: 0 0 auto; padding: 4px 7px; border: 1px solid rgba(0,41,145,.2); border-radius: 3px; color: var(--blue); background: rgba(0,41,145,.06); font-size: 10px; font-weight: 650; }
.viewer-info-head .icon-button { flex: 0 0 auto; }
.viewer-property-rail { margin: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); }
.selection-info[data-selection-kind="part"] .bolt-field, .selection-info[data-selection-kind="bolt"] .part-field { display: none; }
.selection-info[data-selection-kind="part"][data-connection-mode="custom"] .viewer-property-rail { grid-template-columns: repeat(var(--visible-info-count,3),minmax(0,1fr)); }
.selection-info[data-selection-kind="part"][data-connection-mode="weld"] .viewer-property-rail { grid-template-columns: repeat(4,minmax(0,1fr)); }
.selection-info[data-selection-kind="part"][data-connection-mode="weld"] [data-connection-field="bolt"] { display: none; }
.selection-info[data-selection-kind="bolt"] .viewer-property-rail { grid-template-columns: repeat(3,minmax(0,1fr)); }
.selection-info[data-selection-kind="bolt"] [data-selection-mode-label] { display: none; }
.viewer-property-rail [hidden] { display: none !important; }
.viewer-property-rail div { min-width: 0; padding: 17px 20px 19px; border-right: 1px solid var(--line); }
.viewer-property-rail div:last-child { border-right: 0; }
.viewer-property-rail dt { margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.viewer-property-rail dd { margin: 0; color: var(--text); font-size: 14px; line-height: 1.45; word-break: break-word; }
.measurement-result { min-height: 85px; padding: 17px 22px 13px; display: flex; flex-direction: column; justify-content: center; }
.measurement-result strong { color: var(--blue); font-size: 27px; line-height: 1.2; }
.measurement-result span { margin-top: 7px; color: var(--muted); font-size: 11px; }
.measurement-snap-legend { padding: 10px 22px 15px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 15px; color: var(--muted); font-size: 10px; }
.measurement-snap-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.snap-symbol { position: relative; width: 13px; height: 13px; display: inline-block; flex: 0 0 13px; color: #F28A19; }
.snap-symbol-endpoint { border: 2px solid currentColor; }
.snap-symbol-midpoint { width: 0; height: 0; flex-basis: 14px; border-right: 7px solid transparent; border-bottom: 12px solid currentColor; border-left: 7px solid transparent; }
.snap-symbol-midpoint::after { content: ""; position: absolute; left: -4px; top: 4px; border-right: 4px solid transparent; border-bottom: 7px solid #FFFFFF; border-left: 4px solid transparent; }
.snap-symbol-line { width: 14px; height: 14px; flex-basis: 14px; overflow: visible; }
.snap-symbol-line path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.snap-symbol-surface { border: 2px solid currentColor; border-radius: 50%; }

@media (max-width: 1050px) {
  .site-container { width: min(calc(100% - 40px), var(--container)); }
  .hero { height: 500px; }
  .hero-layout { grid-template-columns: minmax(320px,.86fr) minmax(440px,1.14fr); gap: 8px; }
  .steel-model { inset-inline: -40px -30px; }
  .feature-rail { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .feature-item:nth-child(2n) { border-right: 0; }
  .feature-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .contact-details { padding: 20px 38px 20px 0; }
  .contact-wechat { padding-left: 38px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .user-management-layout { grid-template-columns: 1fr; }
  .user-create-card { position: static; }
  .viewer-brand { padding-inline: 16px; font-size: 14px; }
  .viewer-breadcrumb { min-width: 240px; }
  .viewer-property-rail div { padding-inline: 14px; }
}

@media (max-width: 760px) {
  .site-container { width: min(calc(100% - 28px), var(--container)); }
  .site-header { height: 70px; }
  .header-inner { gap: 16px; }
  .brand { font-size: 20px; }
  .brand img { width: 36px; height: 36px; }
  .home-brand { gap: 6px; font-size: 15px; }
  .home-brand img { width: 34px; height: 34px; }
  .home-brand span { width: 128px; white-space: normal; line-height: 1.25; }
  .home-account { gap: 7px; font-size: 12px; }
  .header-help-button { min-width: 40px; min-height: 38px; padding: 0 9px; }
  .header-help-button span { display: none; }
  .home-guest-actions { gap: 6px; }
  .home-guest-actions .button { min-height: 38px; padding-inline: 8px; font-size: 13px; }
  .home-account .avatar, .home-logout { display: none; }
  .home-account .home-project-button { min-height: 40px; margin: 0; padding-inline: 10px; font-size: 12px; }
  .main-nav { display: none; }
  .button { padding-inline: 17px; }
  .hero { height: 500px; }
  .hero-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); gap: 0; padding-top: 32px; }
  .hero-content { align-self: start; }
  .hero h1 { margin-bottom: 14px; font-size: 40px; line-height: 1.08; }
  .hero p { margin-bottom: 18px; font-size: 16px; line-height: 1.55; }
  .hero-tech-grid { inset: 44% -45% -48% -15%; }
  .hero-model-showcase { min-height: 0; align-self: stretch; }
  .steel-model { inset: 0 -24px 0; }
  .desktop-only { display: none; }
  .features-section { padding: 72px 0 80px; }
  .features-section h2, .contact-section h2 { font-size: 27px; }
  .feature-rail { grid-template-columns: 1fr; margin-top: 0; }
  .feature-item { min-height: 182px; padding: 32px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-item:last-child { border-bottom: 0; }
  .home-flat-icon { width: 68px; height: 68px; margin-bottom: 20px; }
  .feature-item h3 { font-size: 16px; }
  .contact-section { height: auto; min-height: 500px; padding: 76px 0 82px; }
  .contact-grid { min-height: 0; margin-top: 44px; grid-template-columns: 1fr; gap: 34px; }
  .contact-details { padding: 0 0 30px; gap: 6px; border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-row { min-height: 94px; gap: 22px; }
  .contact-row .contact-flat-icon { width: 64px; height: 64px; flex-basis: 64px; margin: 0; }
  .contact-row .contact-value { font-size: 20px; }
  .contact-wechat { min-height: 260px; padding: 0; justify-content: center; gap: 16px; }
  .contact-qr { width: 200px; height: 200px; }
  .footer-inner { padding: 28px 0; display: grid; gap: 22px; }
  .footer-partnership { gap: 6px; flex-wrap: wrap; }
  .footer-partnership > img { width: 38px; height: 38px; }
  .footer-partnership strong { font-size: 15px; }
  .footer-times { margin-inline: 2px; }
  .footer-partnership a img { width: 128px; height: 42px; }
  .footer-contact { font-size: 15px; }
  .footer-meta { gap: 18px; font-size: 13px; }
  .modal-panel { padding: 30px 24px; }
  .project-dialog-panel { width: calc(100% - 20px); height: calc(100vh - 20px); max-height: none; padding: 0; }
  .project-dialog-head { min-height: 76px; padding: 15px 16px 13px 19px; }
  .project-dialog-head h2 { font-size: 28px; }
  .project-dialog-form { padding: 13px 14px 16px; overflow-y: auto; overscroll-behavior: contain; }
  .project-edit-columns { grid-template-columns: 1fr; }
  .project-edit-section { padding: 14px; }
  .project-edit-workspace { padding-top: 28px; padding-bottom: 54px; }
  .project-edit-heading { margin-bottom: 30px; }
  .project-edit-back { font-size: 16px; }
  .project-edit-form { padding: 0; }
  .project-file-summary { min-height: 0; grid-template-columns: 1fr; gap: 22px; }
  .project-summary-thumbnail { width: 100%; height: 190px; }
  .project-file-details { gap: 14px; }
  .project-file-name { font-size: 20px; }
  .project-file-times { display: grid; gap: 3px; }
  .project-edit-form .project-edit-columns { margin-top: 48px; grid-template-columns: 1fr; gap: 52px; }
  .project-edit-form .project-edit-section { padding: 0; }
  .project-replace-drop { min-height: 124px; padding-inline: 12px; }
  .custom-info-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-inline-field { grid-template-columns: 46px minmax(0,250px); }
  .contact-inline-field:first-of-type { grid-template-columns: 46px minmax(0,210px); }
  .contact-wechat-check { grid-column: 2; }
  .help-workspace { min-height: calc(100vh - 70px); padding-top: 42px; padding-bottom: 70px; }
  .help-heading { margin-bottom: 25px; }
  .help-heading h1 { font-size: 34px; }
  .help-heading p { font-size: 14px; }
  .help-item summary { min-height: 68px; padding-left: 2px; font-size: 15px; }
  .help-answer { padding: 0 34px 23px 2px; font-size: 13px; }
  .captcha-field { grid-template-columns: minmax(0,1fr) 132px; }
  .workspace { padding-top: 34px; }
  .user-management-workspace { padding-top: 34px; }
  .workspace-heading { align-items: flex-start; flex-wrap: wrap; gap: 20px; }
  .workspace-heading > div:first-child { flex: 1 1 100%; }
  .workspace-heading h1 { font-size: 31px; }
  .workspace-heading p { font-size: 14px; }
  .workspace-heading .button { width: 48px; padding: 0; font-size: 0; }
  .workspace-heading .button svg { width: 21px; height: 21px; }
  .workspace-actions { width: 100%; justify-content: flex-end; gap: 8px; }
  .account-expiry-tooltip { width: 260px; }
  .user-management-layout { margin-top: 28px; gap: 18px; }
  .user-panel-heading { min-height: 80px; padding: 20px; }
  .user-list-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .user-list-heading .user-type-filter { width: 100%; margin: 0; overflow-x: auto; }
  .user-list-heading .user-type-filter button { flex: 1 0 auto; }
  .user-management-panel > .user-list { padding-inline: 20px; }
  .user-create-card .form-stack { padding: 22px 20px 26px; }
  .users-page .user-menu > span:not(.avatar), .users-page .user-menu .avatar { display: none; }
  .users-page .user-menu a { margin-left: 4px; }
  .help-page .user-profile-trigger, .help-page .role-label, .help-page .user-menu > .avatar, .help-page .user-menu > a:last-child { display: none; }
  .help-page .user-menu { gap: 6px; }
  .help-page .user-menu a { margin-left: 0; }
  .users-page .user-row { grid-template-columns: 38px minmax(0,1fr); padding: 12px 0; }
  .users-page .user-row-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .users-page .user-admin-note { grid-column: 2; }
  .role-label { display: none; }
  .classification-bar { align-items: stretch; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
  .category-tabs { flex-basis: 100%; gap: 28px; order: 2; }
  .classification-switch { margin: 0 0 0 auto; order: 1; }
  .project-grid { grid-template-columns: 1fr; gap: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .drawer-panel { padding: 24px 20px; }
  .viewer-header { height: 72px; }
  .viewer-project-identity { padding: 0 10px; gap: 8px; }
  .viewer-owner-avatar { width: 34px; height: 34px; flex-basis: 34px; }
  .viewer-project-copy { gap: 4px; }
  .viewer-project-primary { gap: 8px; }
  .viewer-project-detail { gap: 3px; }
  .viewer-owner-company { max-width: 86px; font-size: 12px; }
  .viewer-project-name { font-size: 13px; }
  .viewer-owner-company + .viewer-project-detail { padding-left: 8px; }
  .viewer-header-contact { gap: 5px; font-size: 10px; }
  .viewer-contact-label { display: none; }
  .viewer-header-contact svg { width: 14px; height: 14px; }
  .viewer-header-actions { margin-right: 8px; gap: 6px; }
  .viewer-space-button { min-height: 38px; padding-inline: 10px; font-size: 12px; }
  .viewer-brand { padding: 0 12px; }
  .viewer-brand img { width: 32px; height: 32px; }
  .viewer-brand span { display: inline; max-width: 86px; overflow: hidden; text-overflow: ellipsis; }
  .viewer-breadcrumb { min-width: 0; flex: 1; padding: 0 12px; }
  .viewer-breadcrumb a, .viewer-breadcrumb span { display: none; }
  .viewer-breadcrumb strong { max-width: 100%; }
  .viewer-shell { height: calc(100vh - 72px); }
  .viewer-help { display: none; }
  .viewer-connection-switch { left: 10px; top: 10px; width: 62px; padding: 5px; }
  .viewer-connection-switch button { width: 50px; min-width: 0; min-height: 32px; padding-inline: 5px; font-size: 11px; }
  .viewer-toolbar { left: 10px; top: 126px; width: 62px; padding: 5px; }
  .viewer-toolbar button { width: 50px; min-height: 58px; gap: 4px; }
  .viewer-toolbar button svg { width: 24px; height: 24px; }
  .viewer-toolbar button span { font-size: 9px; }
  .viewer-background-status { right: 10px; bottom: 10px; max-width: calc(100% - 92px); }
  .viewer-compass { top: 10px; right: 10px; width: 58px; height: 58px; }
  .viewer-compass > svg { width: 58px; height: 58px; }
  .zoom-speed-popover { left: 82px; top: 126px; width: min(250px,calc(100vw - 94px)); }
  .viewer-notice { top: 10px; left: 50%; width: min(800px,calc(100% - 164px)); transform: translateX(-50%); }
  .viewer-notice-copy span { font-size: 11px; }
  .viewer-notice-actions button { width: 34px; }
  .viewer-watermark { right: 10px; bottom: 10px; font-size: 11px; }
  .viewer-info-dock { left: 10px; right: 10px; bottom: 10px; flex-direction: column; gap: 8px; }
  .selection-info, .measurement-info { flex: 0 1 auto; width: 100%; max-width: none; min-width: 0; }
  .viewer-info-head { min-height: 44px; padding-left: 15px; }
  .viewer-info-head h2 { font-size: 14px; }
  .viewer-property-rail { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 154px; overflow-y: auto; }
  .selection-info[data-selection-kind="part"][data-connection-mode="weld"] .viewer-property-rail, .selection-info[data-selection-kind="part"][data-connection-mode="custom"] .viewer-property-rail, .selection-info[data-selection-kind="bolt"] .viewer-property-rail { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .viewer-property-rail div { padding: 10px 14px 12px; border-bottom: 1px solid var(--line); }
  .viewer-property-rail div:nth-child(2n) { border-right: 0; }
  .viewer-property-rail dt { margin-bottom: 4px; }
  .viewer-property-rail dd { font-size: 12px; }
  .measurement-result { min-height: 62px; padding: 12px 15px; }
  .measurement-result strong { font-size: 20px; }
  .measurement-snap-legend { padding: 8px 15px 12px; gap: 8px 12px; }
}

@media (max-width: 420px) {
  .viewer-space-button { width: 42px; padding: 0; }
  .viewer-space-button span { display: none; }
  .profile-setting-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .steel-model { opacity: 0; animation: none !important; }
  .steel-model:first-child { opacity: 1; }
}
