/* Shared touch sizing. Keep native page zoom and normal document scrolling. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}body{min-width:0}img,video,canvas{max-width:100%}input,select,textarea{min-width:0}button{touch-action:manipulation}main,section,article,.suite-panel,.suite-form-grid>*{min-width:0}.preview-note{flex-wrap:wrap}.preview-note>span:not(.preview-dot){overflow-wrap:anywhere}
.gen-workspace{max-width:1040px;margin:0 auto;padding-bottom:16px}.gen-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:25px 0 24px}.gen-eyebrow{display:block;color:#667c9b;font-size:12px;font-weight:600;letter-spacing:.4px;margin-bottom:10px}.gen-hero h2{font-size:27px;letter-spacing:-.6px;line-height:1.4;margin:0 0 10px;color:#172f51}.gen-hero-description{color:#6a7d96;font-size:14px;line-height:1.8;max-width:650px}.gen-draft-tools{flex:none;margin-top:0;gap:3px}.gen-draft-tools button{background:transparent;border-color:transparent;color:#607899;padding:9px}.gen-draft-tools button:first-child{background:#fff;border-color:#dae4f1;color:#245ac1}
.gen-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:0;border:1px solid #dfe6f0;border-radius:16px;background:#fff;overflow:hidden}.gen-step{display:grid;grid-template-columns:32px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:2px 10px;text-align:left;padding:18px 16px;border-right:1px solid #edf1f7;color:#8a99ad;white-space:normal!important}.gen-step:last-child{border-right:0}.gen-step-number{grid-row:1/3;display:grid;place-items:center;width:32px;height:32px;background:#f0f3f8;border-radius:50%;font-size:14px;font-weight:650}.gen-step-label{font-size:14px;font-weight:600}.gen-step-state{font-size:11px}.gen-step.selected{background:#eef4ff;color:#245fda}.gen-step.selected .gen-step-number{background:#2563eb;color:white;box-shadow:0 3px 9px #2563eb26}.gen-step.completed{color:#456b9a}.gen-step.completed .gen-step-number{background:#eaf5f0;color:#2b8162}.gen-progress-summary{align-items:center;padding:14px 2px 22px;gap:9px}.gen-progress-summary>span{background:transparent;padding:0;font-size:12px;color:#7789a0}.gen-progress-summary>span+span:before{content:'·';padding-right:9px;color:#b2bed0}.gen-progress-summary>small{margin-left:auto;font-size:11px;color:#8b9bb0}
.gen-workspace>.suite-panel,.gen-workspace .gen-room-editor{border-radius:18px;padding:24px;border-color:#e1e8f2;box-shadow:0 3px 12px #20385703}.gen-workspace .suite-panel h3{font-size:17px;color:#233c5b;margin-bottom:8px}.gen-workspace .suite-panel p{font-size:13px;color:#6d809b}.gen-workspace .suite-panel>p{margin-bottom:18px}.gen-workspace label{font-size:13px;color:#5d718d}.gen-workspace .suite-panel input,.gen-workspace .suite-panel select{background:#fff;border-color:#dce4ef;min-height:46px}.gen-workspace .suite-panel input:focus,.gen-workspace .suite-panel select:focus{outline:3px solid #2563eb12;border-color:#85a8f4}.gen-workspace .primary{font-weight:600;border-radius:11px;min-height:46px}.gen-workspace .secondary{border-radius:10px;color:#587191}.gen-workspace .space-card{background:#fafcff;padding:18px;border-radius:13px}.gen-workspace .space-card h3{font-size:16px}.gen-workspace .space-card .secondary{min-height:40px;padding:8px 14px;font-size:12px}
.gen-upload-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;position:relative;border:1px dashed #a9bedf;background:#f7faff;border-radius:14px;padding:24px 14px;margin:16px 0;cursor:pointer;text-align:center;color:#627a9c}.gen-upload-zone:focus-within,.gen-upload-zone.dragging{outline:3px solid #2563eb18;border-color:#2563eb;background:#edf4ff}.gen-upload-zone input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;margin:0;min-height:100%}.gen-upload-icon{display:grid;place-items:center;width:40px;height:40px;background:#e7effe;border-radius:12px;color:#2563eb;font-size:25px;margin-bottom:3px}.gen-upload-zone strong{font-size:15px;color:#315a98}.gen-upload-zone>span:not(.gen-upload-icon){font-size:13px}.gen-upload-zone small{font-size:11px;color:#8a9bb3}.gen-file-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gen-file-card{display:flex;align-items:center;gap:12px;border:1px solid #e4ebf5;border-radius:12px;padding:12px;min-width:0}.gen-file-preview{width:80px;height:86px;flex:none;background:#f0f4fa;border-radius:8px;overflow:hidden;padding:0}.gen-file-preview img{width:100%;height:100%;object-fit:cover}.gen-pdf-icon{font-weight:700;color:#8294af}.gen-file-info{min-width:0;flex:1}.gen-file-info>strong{font-size:13px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.gen-workspace .gen-file-info select{font-size:12px;min-height:34px;margin:6px 0;padding:6px;width:100%;max-width:180px}.gen-file-ops{display:flex;gap:8px;flex-wrap:wrap}.gen-file-ops .secondary{padding:2px;background:none;border:0;min-height:30px;font-size:12px}.gen-options{border-top:1px solid #e9eef6;margin:18px 0 12px;padding-top:16px}.gen-options summary{font-size:13px;font-weight:600;color:#59718f;cursor:pointer;min-height:32px;line-height:32px}.gen-options[open]>summary{margin-bottom:14px}.gen-options>.suite-check{display:flex}.gen-options>.suite-panel{border:0;padding:8px 0;margin:0;box-shadow:none}.gen-rules{background:#fff;border:1px solid #e0e7f1;padding:12px 20px;border-radius:13px;margin:0 0 18px}.gen-drawing-fold{background:#fff;border:1px solid #e0e7f1;border-radius:15px;margin-bottom:22px}.gen-drawing-fold>summary{padding:18px 22px;font-size:14px;color:#49678d;cursor:pointer}.gen-drawing-fold>.suite-panel{border:0;margin:0;border-top:1px solid #eef2f8;border-radius:0 0 15px 15px;padding:22px}
.gen-room-tabs{display:flex;overflow-x:auto;gap:8px;scrollbar-width:thin;margin:0 0 15px;padding-bottom:5px}.gen-room-tab{border:1px solid #dfe6f1;background:#fff;color:#647a97;white-space:nowrap;min-height:44px;padding:10px 18px;border-radius:10px;font-size:14px;flex:none}.gen-room-tab.selected{background:#eaf1ff;color:#2563eb;border-color:#abc4fa;font-weight:600}.gen-quantity-list{margin-top:13px}.gen-quantity-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0;border-bottom:1px solid #edf1f6}.gen-quantity-label{min-width:0}.gen-quantity-label strong{font-size:15px;font-weight:600;display:block;color:#334d70}.gen-quantity-label small{font-size:12px;color:#8b9ab0;display:block;margin-top:5px}.gen-stepper{display:flex;align-items:center;flex:none;border:1px solid #dbe4f2;border-radius:10px;overflow:hidden;background:#f8faff}.gen-stepper button{width:42px;min-height:44px;color:#456da5;font-size:20px;padding:0}.gen-workspace .gen-stepper input{width:66px;min-height:44px;margin:0;border:0;border-left:1px solid #e4eaf4;border-right:1px solid #e4eaf4;border-radius:0;padding:7px 2px;text-align:center;background:#fff;font-size:17px;font-weight:600;appearance:textfield;-moz-appearance:textfield}.gen-stepper input::-webkit-inner-spin-button{-webkit-appearance:none}.gen-next-room{display:block;padding:12px 0;min-height:44px;color:#2563eb;margin-left:auto;font-size:13px}.gen-series-card{border-left:3px solid #b7ccf1!important}.gen-result-summary{background:linear-gradient(120deg,#edf3ff,#f7faff);padding:24px;border-radius:18px}.gen-result-summary strong{color:#254c8e;font-size:24px}.gen-equipment-card{background:#fff;box-shadow:0 2px 9px #1c345503}.gen-step-actions{margin-top:24px;gap:10px;padding:14px 18px;border-radius:14px;box-shadow:0 4px 22px #243a5b0c;bottom:78px;align-items:center}.gen-step-actions .primary{min-width:210px}.gen-foot-hint{font-size:12px;color:#8c9bb0;margin-right:auto}
@media(max-width:900px){.gen-hero{gap:12px}.gen-hero h2{font-size:23px}.gen-step{padding:16px 10px;gap:3px 8px}.gen-step-label{font-size:13px}.gen-file-gallery{grid-template-columns:1fr}}
@media(max-width:760px){:root{font-size:15px}.header-inner{padding:8px 14px;min-height:54px;gap:8px}.header h1{font-size:17px}.header .brand{font-size:15px}.account #welcome{display:none}main{padding-left:14px;padding-right:14px;padding-bottom:calc(108px + env(safe-area-inset-bottom))}.preview-note{font-size:11px;line-height:1.6;gap:5px;min-height:38px}.preview-note .text-button{font-size:12px;min-height:38px}.project-grid,.workbench-grid{grid-template-columns:1fr}.project-name{font-size:16px;line-height:1.5}.card-body{padding:16px;min-height:185px}.card-meta{font-size:12px;line-height:1.8}.badge,.team-label,.tag,.follow-date,.progress-count{font-size:11px}.team-row{gap:16px;margin:12px 0 9px;min-height:58px}.avatar{width:40px;height:40px}.stat{font-size:12px}.toolbar .search{height:42px}.toolbar .search input{font-size:14px}.toolbar select{height:42px;font-size:12px}.add-project{min-height:46px;font-size:14px}.ai-copy strong{font-size:16px}.ai-copy small{font-size:12px;line-height:1.6}.bottom-nav{padding:7px 8px calc(7px + env(safe-area-inset-bottom))}.nav-item{font-size:11px;min-height:48px;gap:5px}.nav-item svg{width:21px;height:21px}.phase{min-height:80px;padding:15px 12px}.phase strong{font-size:15px}.phase small{font-size:12px}.workbench-title h2{font-size:17px}.workbench-note{font-size:12px;line-height:1.8}.shortcuts button{min-height:44px;font-size:13px}.suite-panel p,.suite-panel label,.form-help{font-size:13px;line-height:1.8}.suite-panel h3{font-size:16px}.suite-actions button,.case-watch-actions button{min-height:44px;font-size:13px}.suite-chip{min-height:40px;font-size:13px}.suite-panel input,.suite-panel select,.suite-panel textarea,.sheet input:not([type=file]),.sheet select,.sheet textarea{font-size:16px;min-height:46px}.sheet{width:100%;max-width:100%;margin:auto 0 0;border-radius:20px 20px 0 0;max-height:calc(100dvh - 16px)}.sheet form{max-height:calc(100dvh - 16px)}.sheet-head{padding:13px 18px}.sheet-body{padding:18px}.sheet-foot{padding:13px 18px max(16px,env(safe-area-inset-bottom))}.sheet-foot button{min-height:46px;font-size:14px}.suite-form-grid{grid-template-columns:1fr}.case-watch-grid{grid-template-columns:1fr}.case-watch-title{font-size:19px}.case-watch-description{font-size:14px;line-height:1.8}.case-card-copy p,.case-watch-stats{font-size:12px}.suite-menu-item small{font-size:13px;line-height:1.7}.cases-grid{grid-template-columns:1fr}.catalog-cart-fab{bottom:calc(82px + env(safe-area-inset-bottom))}}
@media(max-width:600px){.gen-hero{display:block;padding:18px 1px 18px}.gen-hero h2{font-size:23px;line-height:1.45;letter-spacing:-.5px;max-width:330px}.gen-hero-description{font-size:13px;line-height:1.9}.gen-eyebrow{font-size:11px;margin-bottom:8px}.gen-draft-tools{justify-content:flex-end;margin:8px 0 0}.gen-draft-tools button{min-height:40px;font-size:12px}.gen-steps{border-radius:13px}.gen-step{display:flex;flex-direction:column;gap:6px;padding:13px 2px;text-align:center;align-items:center}.gen-step-number{width:28px;height:28px;font-size:13px}.gen-step-label{font-size:12px}.gen-step-state{font-size:10px}.gen-progress-summary{gap:7px;padding:12px 0 17px}.gen-progress-summary>span{font-size:11px}.gen-progress-summary>span+span:before{padding-right:7px}.gen-progress-summary>small{display:none}.gen-workspace>.suite-panel,.gen-workspace .gen-room-editor{padding:18px 16px;border-radius:15px}.gen-workspace .suite-panel h3{font-size:17px}.gen-workspace .suite-panel label{font-size:13px}.gen-workspace .suite-panel input,.gen-workspace .suite-panel select{font-size:16px}.gen-workspace .suite-panel>p{margin-bottom:12px}.gen-upload-zone{padding:20px 10px}.gen-upload-zone>span:not(.gen-upload-icon){font-size:12px}.gen-drawing-fold>summary{padding:16px;font-size:14px;min-height:52px}.gen-drawing-fold>.suite-panel{padding:16px}.gen-quantity-row{gap:8px;padding:16px 0}.gen-quantity-label strong{font-size:14px}.gen-quantity-label small{font-size:11px}.gen-stepper button{width:39px}.gen-workspace .gen-stepper input{width:52px;font-size:17px}.gen-options summary{font-size:14px;min-height:40px;line-height:40px}.gen-file-card{padding:10px;gap:10px}.gen-file-preview{width:65px;height:78px}.gen-workspace .gen-file-info select{font-size:14px;min-height:38px}.gen-file-ops .secondary{font-size:12px;min-height:34px}.gen-room-tab{padding:9px 16px;font-size:14px}.gen-workspace .gen-step-actions{position:sticky;bottom:calc(72px + env(safe-area-inset-bottom));margin:20px -3px 4px;padding:12px;gap:8px;background:#fffffff7;backdrop-filter:blur(16px)}.gen-step-actions .primary{flex:1;min-width:0;padding:12px 10px;font-size:14px}.gen-step-actions .secondary{padding:10px;font-size:13px;min-height:46px}.gen-foot-hint{display:none}.gen-result-summary{padding:18px;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}.gen-result-summary>div:last-child{grid-column:1/-1;border-top:1px solid #dae5fa;padding-top:14px;display:flex;align-items:center;justify-content:space-between}.gen-result-summary strong{font-size:21px}.gen-result-summary>div:last-child strong{font-size:26px}.gen-result-summary small{font-size:12px}}
@media(prefers-reduced-motion:no-preference){.gen-workspace>.suite-panel,.gen-room-editor{animation:gen-appear .2s ease-out}@keyframes gen-appear{from{opacity:.65;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}}

body:has(.gen-workspace) .suite-page-tools{display:none}
.primary,.secondary,.suite-menu-item,.project-card,.phase,.catalog-card{transition:background .16s,border-color .16s,box-shadow .16s}.primary:hover{background:#1e55cf}.primary:active,.secondary:active{transform:translateY(1px)}button[aria-busy=true]{cursor:progress;opacity:.65}.suite-panel,.workbench-card,.project-card{box-shadow:0 2px 8px #19385c04}.suite-panel h3,.sheet-head h2{letter-spacing:-.2px}.suite-panel>p,.form-help{color:#718198}.suite-menu-item:hover{border-color:#b9ccec;background:#fbfdff}.nav-item.active{font-weight:650}.nav-item.active svg{stroke-width:1.7}.case-thumbnail{box-shadow:0 2px 9px #18345808}.case-watch-description{background:#f0f4fa;border:1px solid #e5ebf3}.case-watch-actions button{border-radius:22px}.sheet-head{background:#fff}.sheet-body label{line-height:1.7}.sheet-body input:focus,.sheet-body textarea:focus,.sheet-body select:focus{outline:3px solid #2563eb18;border-color:#8baef2}.project-card:focus-visible,.suite-menu-item:focus-visible,.nav-item:focus-visible{outline:3px solid #8baef2;outline-offset:3px}
@media(min-width:1100px){body:has(.bottom-nav) .bottom-nav{top:90px;bottom:24px;left:22px;right:auto;width:104px;flex-direction:column;justify-content:flex-start;gap:10px;padding:14px 9px;border:1px solid #e0e7f1;border-radius:19px;background:#fff;box-shadow:0 6px 28px #1d345608}body:has(.bottom-nav) main{max-width:1400px;margin-left:158px;margin-right:38px;padding-bottom:48px;padding-left:12px;padding-right:12px}.bottom-nav .nav-item{flex:0;min-height:78px;border-radius:12px;font-size:12px;gap:8px;width:100%}.bottom-nav .nav-item.active{background:#edf3ff;color:#2563eb}.bottom-nav .nav-item svg{width:23px;height:23px}.gen-workspace{max-width:1100px}.gen-step-actions{bottom:20px}.header-inner{max-width:none;margin:0;padding-left:28px;padding-right:42px}.header-inner h1{font-size:18px}.catalog-cart-fab{bottom:30px}.gen-result-summary{box-shadow:0 3px 15px #264f8a05}}
@media(max-width:760px){.suite-heading-row{align-items:center;flex-wrap:wrap}.suite-heading-row h2{font-size:19px}.record-item-footer button,.case-card-actions .text-button{min-height:40px}.suite-dialog-fields select[multiple]{min-height:180px}.case-watch-related .case-thumbnail{width:128px}.gen-workspace .gen-result-inputs{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gen-result-inputs>strong{grid-column:1/-1}.gen-equipment-card .record-item-footer button{min-height:40px;font-size:12px}.gen-equipment-card{box-shadow:none}.equipment-spec{font-size:12px}.equipment-spec small{font-size:11px}.equipment-content input{font-size:16px}.gen-stepper button:focus-visible{outline-offset:-4px}}
@media(max-width:600px){.gen-hero{padding-top:12px;padding-bottom:14px}.gen-hero h2{font-size:21px}.gen-step-state{display:none}.gen-step{padding-top:12px;padding-bottom:12px}.gen-hero-description{line-height:1.7}.gen-options .suite-form-grid{margin-top:12px}}
