/* Measurements follow the 1586 × 992 reference frames. Smaller widths retain the same hierarchy. */
:root{--brand:#5235F5;--brand-50:#EEEAFF;--brand-100:#DED7FF;--brand-600:#4324DC;--text:#101935;--text-2:#50649A;--text-3:#788ABC;--line:#E3EAF7;--line-2:#EDF1F9;--bg:#F7FAFE;--stage:#F2F5FA}
body{font-family:"Microsoft YaHei","PingFang SC","Noto Sans SC",sans-serif;font-variant-numeric:tabular-nums}
button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #7456FF;outline-offset:3px}input,select,textarea{accent-color:#5235F5}button{transition:background .15s,border-color .15s,box-shadow .15s}button:active:not(:disabled){transform:translateY(1px)}
.ref-topnav .active{background:#EEEAFF;border-radius:7px}.ref-topnav button{height:42px;padding:0 18px;white-space:nowrap}.ref-topnav{gap:6px}.ref-topbar .ref-brand{color:#101935}.ref-brand>span{color:#5235F5}.ref-avatar{background:#EEEAFF;color:#5235F5;font-size:18px;font-weight:600}
.ref-btn,.btn{border-radius:6px;box-shadow:none}.ref-btn.primary,.btn.primary{background:#5235F5;border-color:#5235F5}.ref-btn.primary:hover,.btn.primary:hover{background:#4324DC;border-color:#4324DC}.ref-page-heading h1{font-size:34px;line-height:1.4;letter-spacing:0;font-weight:700}.ref-page-heading p{font-size:17px;color:#788ABC}.ref-page-heading{margin-bottom:18px}.ref-text-btn{cursor:pointer}
.auth-page{background:radial-gradient(ellipse at 14% 30%,#FBFCFF 0,#F7FAFE 55%,#F6F9FD 100%)}.auth-header{height:120px}.auth-layout{padding-top:50px;gap:148px;grid-template-columns:minmax(0,1fr) 580px}.auth-story{margin-top:40px}.auth-story h2{font-size:48px;line-height:1.4;margin-bottom:14px}.auth-intro{font-size:24px;line-height:1.65;margin-bottom:32px}.auth-study{margin:0 0 40px}.auth-study-grid{gap:16px}.auth-study-panel{aspect-ratio:1;border-radius:7px;background-image:url('assets/login-study-v2.png');background-size:300% 100%;box-shadow:none;border:1px solid #E8EAF2}.auth-study-panel:nth-child(2){background-position:50% 50%!important}.auth-study-panel:nth-child(3){background-position:100% 50%!important}.auth-study-panel>span{bottom:10px;left:10px;border-radius:4px;font-size:12px;padding:5px 8px;background:#FFFFFFDC}.auth-card{padding:52px;border-radius:12px;box-shadow:0 6px 24px #40558507}.auth-card h1{font-size:35px;line-height:1.4;margin-bottom:10px}.auth-card>p{font-size:18px}.auth-mode-tabs{margin:44px 0 30px}.auth-mode-tabs button{font-size:20px;padding:0 30px 16px}.auth-card .form-field{font-size:16px;margin-top:24px}.auth-card .form-field input{height:64px;min-height:64px;font-size:16px;margin-top:12px;background:#FCFDFF;border-radius:6px}.auth-card .btn.primary{background:#654DCA;border-color:#654DCA;height:65px;margin-top:34px;font-size:20px}.auth-session-note{font-size:14px;margin-top:24px}.auth-card .auth-switch{font-size:14px}.auth-features small{font-size:14px}.auth-features b{font-size:17px}
.home-filter-row{margin:26px 0 24px;gap:18px}.home-status-tabs{display:flex;gap:14px}.home-status-tabs>button{height:42px;border:1px solid var(--line);border-radius:6px;padding:0 21px;background:#fff;color:var(--text-2);font-size:15px}.home-status-tabs>button[aria-pressed=true]{color:var(--brand);border-color:#B5A5FF;background:#F9F7FF}.home-table-wrap{border-radius:6px}.project-list-head,.project-card{grid-template-columns:minmax(190px,1.5fr) 82px 180px 150px 132px 78px 102px;gap:16px}.project-card{min-height:100px;padding:18px 22px}.project-card h2{font-size:17px}.home-thumbnails img,.home-thumbnails>span{width:47px;height:58px}.home-pagination{margin-top:20px}.home-pagination>p{margin:0;min-width:150px}.home-pagination .ref-pages{margin-left:auto;margin-right:12px}.home-pagination select{height:40px;background:#fff;border:1px solid var(--line);border-radius:5px;padding:0 12px;color:var(--text-2)}.home-pagination .active{background:var(--brand);color:#fff}.workspace-home .project-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.workspace-home .project-metrics svg{float:right;color:var(--brand)}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.section-heading h2{margin:0}.home-recent-project{display:grid;grid-template-columns:58px minmax(0,1fr) 180px 110px;gap:20px;align-items:center;padding:16px 0;border-top:1px solid var(--line);text-decoration:none;color:var(--text-2);font-size:14px}.home-recent-project img{width:58px;height:58px;object-fit:cover;border-radius:5px}.home-recent-project b{font-weight:500;color:var(--text)}.home-recent-project>span:last-child{color:var(--brand)}
.reference-library .library-card{border-radius:5px;border-color:#E3EAF7}.reference-library .library-card.focused{border-color:#6B46FF;box-shadow:0 0 0 1px #6B46FF}.ref-card-body h2{font-size:14px;font-weight:500}.ref-card-body p{font-size:14px}.ref-card-body{padding:8px 10px}.ref-card-status{border-radius:15px}.ref-selectionbar{border-radius:6px;background:#EFEBFF}.ref-inspector{border-radius:6px;box-shadow:none}.ref-filters select,.ref-view-tools select{height:38px;border-radius:5px}.ref-pagination button[aria-current=page]{background:#EEEAFF;border:1px solid #D2C8FF;color:#5235F5}.ref-pagination button:disabled{opacity:.4}.ref-pagination button:hover:not(:disabled){background:#F0EDFF}.ref-import-row input:not([type=checkbox]){font-size:14px;height:38px}.ref-import-table th{font-size:14px}.ref-import-table td{padding-top:7px;padding-bottom:7px}.ref-import-metadata{padding:20px 14px}.ref-import-table-heading{padding:0 6px 18px}.ref-import-table-heading h2{font-size:21px}.ref-import-footer{min-height:74px}.ref-file-summary h3{font-size:15px}
.settings-page-tabs{display:flex;border-bottom:1px solid var(--line);margin:24px 0 20px}.settings-page-tabs>span{padding:14px 18px;border-bottom:2px solid var(--brand);color:var(--brand);font-size:15px}#projectPage>#membersProjectPanel{max-width:1100px}#projectPage .members-intro{margin-bottom:22px}#projectPage .member-row{min-height:76px;font-size:15px;padding:16px 12px;border-bottom:1px solid var(--line)}#projectPage .member-row>div{display:grid;grid-template-columns:36px 1fr;gap:3px 12px}#projectPage .member-row>div:before{content:attr(data-initial);grid-row:span 2;display:grid;place-items:center;width:36px;height:36px;background:#EEEAFF;border-radius:50%;color:var(--brand)}#projectPage .member-row b{grid-column:2}#projectPage .member-row small{grid-column:2;font-size:12px}#projectPage .member-row select{width:150px;height:38px;border:1px solid var(--line);background:white;color:var(--text-2);border-radius:5px}#projectPage .add-member-row{background:#F8FAFE;padding:18px;margin-top:22px;border:1px solid var(--line);border-radius:6px}#projectPage .settings-fields{margin-top:26px}.settings-fields input,.settings-fields textarea{font-size:14px}.rule-photo-preview{padding:10px 14px 14px}.rule-photo-preview .rule-photo-sample{display:block;height:210px;background:url('assets/login-study-v2.png') 50% 50%/300% 100%;margin:0 0 12px;border-radius:5px}.rule-photo-preview>div:not(.rule-photo-sample){margin:12px 0}.rule-photo-preview span{width:46%}.rules-columns{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
.app{grid-template-rows:78px 64px minmax(0,1fr) 166px 66px;background:var(--bg)}.workbench-platform-header{grid-row:1;box-shadow:none}.workbench-platform-header .ref-top-actions{margin-left:auto}.workbench-projectbar{grid-row:2;padding:0 24px;gap:12px;background:var(--bg);border-bottom:0}.workbench-projectbar #openProject{font-size:14px;font-weight:600;max-width:210px}.workbench-project-nav{display:flex;gap:7px;margin-right:auto}.workbench-project-nav button{font-size:13px;padding:10px 9px;background:none;border:0;border-bottom:2px solid transparent;color:var(--text-2)}.workbench-project-nav .active{color:var(--brand);border-color:var(--brand);font-weight:600}.workbench-projectbar .crumbs,.workbench-projectbar .modality-pill,.workbench-projectbar #projectRole,.workbench-projectbar #workbenchRule{display:none}.workbench-projectbar .save{font-size:12px;max-width:140px;margin-left:0}.workbench-projectbar .btn{font-size:13px;display:inline-flex;align-items:center;gap:5px}.workbench-projectbar #openData,.workbench-projectbar #projectSettings{font-size:12px;padding:5px}.app>.main{grid-row:3;grid-template-columns:168px minmax(0,1fr) 370px;gap:16px;padding:0 24px;min-height:0}.app>.main.inspector-collapsed{grid-template-columns:168px minmax(0,1fr) 0}.app .side{background:white;border:1px solid var(--line);border-radius:6px;padding:16px 12px;overflow-y:auto}.app .stage{border-radius:5px;background:#F0F3F8}.app .inspector{padding:0;background:transparent;border:0}.app .inspector-tabs,.app .collaboration-actions,.app .inspector-footer,.app .inspector [role=tabpanel]{background:white;border:1px solid var(--line);border-radius:6px}.app .inspector-tabs{margin-top:10px}.app .inspector [role=tabpanel]{margin-top:10px;padding:14px}.app .inspector-footer{margin-top:10px;padding:10px 14px}.app .summary{background:#F7F9FD}.app .obj{background:#fff;border-color:var(--line)}.app .obj.sel{background:#F3EFFF;border-color:#CDBFFF}.app .preset{padding:9px 8px;border-color:var(--line);border-radius:5px}.app .preset .nm small{font-size:10px}.app .preset.on{background:#EEEAFF;border-color:#B8A7FF}.app .sec-t{font-size:12px}.app .local-note{display:none}.app .tool-options{padding-top:12px}.reference-drawing-tools{margin-bottom:18px}.reference-drawing-tools h2{font-size:13px;margin:0 0 12px}.reference-tool{display:flex;gap:10px;align-items:center;width:100%;padding:10px 6px;background:none;border:0;border-radius:5px;color:var(--text-2);font-size:13px;text-align:left}.reference-tool[aria-pressed=true]{background:#EEEAFF;color:var(--brand)}.reference-tool:hover{background:#F5F2FF}.app>.image-queue{grid-row:4;margin:14px 410px 0 24px;border:1px solid var(--line);border-radius:6px;height:auto;min-height:0}.app .queue-toolbar{height:36px;padding:0 12px;font-size:12px;gap:9px}.app .queue-toolbar .btn{font-size:11px;padding:3px 5px}.app .queue-list{gap:12px;padding:0 12px 8px}.app .queue-image{display:grid;grid-template-columns:134px;grid-template-rows:72px 20px 18px;gap:0;border:1px solid transparent;padding:3px;background:none;border-radius:5px;width:142px;position:relative}.app .queue-image img{grid-column:1;grid-row:1;width:134px;height:72px;border-radius:4px}.app .queue-image>span{grid-row:2;font-size:11px;color:var(--text);max-width:134px}.app .queue-image>small{grid-row:3;font-size:10px}.app .queue-image.selected{border-color:#6D4BFF;background:#F7F4FF}.app>.image-queue.collapsed{height:40px;align-self:end}.app:has(>.image-queue.collapsed){grid-template-rows:78px 64px minmax(0,1fr) 54px 66px}.workbench-bottom-actions{grid-row:5;display:flex;align-items:center;justify-content:flex-end;gap:14px;padding:12px 24px;border-top:1px solid var(--line);background:#fff}.workbench-bottom-actions>span:first-child{margin-right:auto;font-size:12px}.workbench-bottom-actions .btn{min-height:42px;padding:9px 22px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px}.workbench-bottom-actions #queueIndex{font-size:12px;color:var(--text-3)}.app .hud .btn,.app .hud .zoom{font-size:12px;min-height:32px;background:#FFFFFFE8;color:var(--text-2);border:1px solid #E3EAF7;display:inline-flex;gap:5px;align-items:center}.app .hud .zoom{padding:6px 10px}.app .hud{display:flex;align-items:center}.app .toolchip{border:1px solid var(--line);box-shadow:none}.region-tool{font-size:12px}.app .region-tool-grid{grid-template-columns:1fr}.app .region-class{font-size:13px;padding:10px 7px}
@media(max-width:1500px){.auth-layout{grid-template-columns:minmax(0,1fr) 500px;gap:70px}.auth-card{padding:42px;width:500px}.auth-story h2{font-size:38px}.auth-intro{font-size:21px}.project-list-head,.project-card{grid-template-columns:minmax(170px,1.3fr) 75px 135px 130px 115px 74px 98px;gap:12px}.home-thumbnails img,.home-thumbnails>span{width:36px;height:48px}.app>.main{grid-template-columns:156px minmax(0,1fr) 310px;gap:12px;padding:0 18px}.app>.main.inspector-collapsed{grid-template-columns:156px minmax(0,1fr) 0}.app>.image-queue{margin-right:340px;margin-left:18px}.workbench-projectbar{padding:0 18px;gap:6px}.workbench-projectbar #openProject{max-width:160px;font-size:12px}.workbench-project-nav{gap:0}.workbench-project-nav button{font-size:12px;padding:10px 6px}.workbench-projectbar .save{max-width:110px}.workbench-projectbar #openData{display:none}.workbench-projectbar .btn{font-size:12px}.ref-topnav{gap:0;padding-left:12px;padding-right:12px}.ref-topnav button{padding-left:13px;padding-right:13px}}
@media(max-width:1200px){.auth-layout{gap:35px;grid-template-columns:minmax(0,1fr) 440px}.auth-card{width:440px;padding:32px}.auth-story h2{font-size:31px}.auth-intro{font-size:18px}.project-list-head,.project-card{grid-template-columns:minmax(160px,1fr) 75px 120px 110px 98px}.home-recent-project{grid-template-columns:48px minmax(0,1fr) 110px;gap:12px}.home-recent-project>span:nth-child(3){display:none}.app>.main{grid-template-columns:140px minmax(0,1fr) 280px;gap:10px;padding:0 12px}.app>.main.inspector-collapsed{grid-template-columns:140px minmax(0,1fr) 0}.app>.image-queue{margin-right:302px;margin-left:12px}.workbench-projectbar #projectSettings{display:none}.workbench-projectbar .save{max-width:90px}.home-status-tabs{gap:8px}.home-status-tabs>button{padding:0 12px}.rules-columns{grid-template-columns:1fr}}
@media(max-width:800px){.auth-layout{display:flex;padding-top:20px}.auth-header{height:80px}.auth-card{width:500px}.auth-card .form-field input{height:50px;min-height:50px}.auth-card .btn.primary{height:53px;min-height:53px}.home-filter-row{flex-wrap:wrap}.home-search{width:100%;max-width:none}.project-card{grid-template-columns:1fr 100px}.home-recent-project{grid-template-columns:40px minmax(0,1fr)}.home-recent-project>span{display:none}.ref-page-heading h1{font-size:27px}.ref-page-heading p{font-size:14px}.home-pagination{gap:5px;flex-wrap:wrap}.home-pagination>p{min-width:90px}.workspace-home .project-metrics{grid-template-columns:1fr}.app{min-width:900px}.auth-input-icon{bottom:13px}.auth-password-toggle{bottom:11px}}
.auth-layout{min-height:calc(100dvh - 120px)}.reference-brand-mark{display:block;width:43px;height:46px;object-fit:contain}.brand-mark>.reference-brand-mark{width:47px;height:50px}.ref-brand .reference-brand-mark{width:43px;height:46px}.overview-recent{margin-top:20px}.overview-thumbnails{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.overview-image{background:none;border:0;padding:0;text-align:left;min-width:0}.overview-image img{display:block;width:100%;height:120px;object-fit:cover;border-radius:5px}.overview-image b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500;color:var(--text);margin:9px 0 4px}.overview-image small{font-size:12px;color:var(--text-3)}
#createProjectDialog.reference-create-page{position:fixed;inset:78px 24px 24px 246px;margin:0;width:auto;max-width:none;height:calc(100dvh - 102px);max-height:none;background:var(--bg);padding:28px 24px;border:1px solid var(--line);border-radius:7px;box-shadow:0 12px 36px #263A5A15}#createProjectDialog.reference-create-page h2{font-size:30px;color:var(--text);margin:0 0 22px}.reference-create-page .create-steps{margin:0 0 24px;background:#fff;border-radius:6px}.reference-create-page .create-step-fields,.create-mode-choices,.create-confirm{background:#fff;border:1px solid var(--line);padding:28px;border-radius:6px;min-height:340px}.reference-create-page .form-field{font-size:15px;max-width:720px}.reference-create-page input:not([type=radio]),.reference-create-page textarea{font-size:15px;border-color:var(--line);min-height:44px}.reference-create-page textarea{min-height:100px}.reference-create-page .dialog-actions{position:absolute;bottom:20px;right:24px;left:24px;display:flex;border:1px solid var(--line);border-radius:6px;padding:16px 20px;background:#fff}.reference-create-page .dialog-actions>button:first-child{margin-right:auto}.reference-create-page .dialog-actions .btn,.reference-create-page .dialog-actions .ref-btn{min-width:120px;font-size:15px;min-height:44px}.reference-create-page .field-note{font-size:13px;margin:18px 0 100px}.reference-create-page .inline-result{padding-bottom:85px}.create-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:24px}.create-mode-grid>label{position:relative;display:flex;flex-direction:column;gap:16px;padding:24px;min-height:200px;border:1px solid var(--line);border-radius:6px;cursor:pointer;color:var(--text-2)}.create-mode-grid>label:has(input:checked){border-color:#7B5CFF;background:#F6F3FF;box-shadow:0 0 0 1px #7B5CFF}.create-mode-grid input{position:absolute;top:20px;right:20px;width:18px;height:18px}.create-mode-grid svg{color:var(--brand)}.create-mode-grid b{font-size:17px;color:var(--text)}.create-mode-grid small{font-size:14px;line-height:1.8}.create-confirm .ref-info-facts{max-width:800px;grid-template-columns:100px minmax(0,1fr);gap:20px;margin-top:30px}.create-mode-choices>h2,.create-confirm>h2{font-size:22px!important}
@media(max-width:1000px){#createProjectDialog.reference-create-page{left:24px}.create-mode-grid{gap:10px}.create-mode-grid>label{padding:18px}.overview-thumbnails{grid-template-columns:repeat(3,minmax(0,1fr))}}
.reference-paint-settings{background:#fff;border:1px solid var(--line);border-radius:6px;padding:14px;margin:10px 0 0}.reference-paint-settings #presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.app .reference-paint-settings .preset{padding:8px 6px;gap:6px;margin:0;min-width:0;display:flex}.reference-paint-settings .preset .nm small,.reference-paint-settings .preset .kbd{display:none}.reference-paint-settings .preset .sw{width:14px;height:14px;min-width:14px;border-radius:3px}.reference-paint-settings .preset .nm b{font-size:12px;white-space:nowrap}.reference-paint-options summary{font-size:12px;color:var(--text-2);margin:12px 0 0;cursor:pointer}.reference-paint-options .tool-options{margin-top:10px}.app .inspector .reference-paint-settings{flex:none}.app .inspector [role=tabpanel]{min-height:100px}.reference-tool-help{white-space:pre-line;font-size:11px;line-height:2;color:var(--text-3);padding-top:12px;margin-top:12px;border-top:1px solid var(--line)}.app .preset-panel>.sec:has(#presets){display:none}.app .obj{padding:10px;border-radius:4px}.app .obj .m{font-size:11px}.app .obj .t small{display:inline;margin-left:6px}.app .reference-paint-settings .sec-t span{font-size:10px}.project-list-head,.project-card{grid-template-columns:minmax(210px,260px) 100px minmax(150px,1fr) 170px 140px 75px 105px;gap:16px}.ref-back svg{width:22px;height:22px}
@media(max-width:1500px){.project-list-head,.project-card{grid-template-columns:minmax(180px,1fr) 90px 135px 130px 105px 70px 98px;gap:12px}}
@media(max-width:1200px){.project-list-head,.project-card{grid-template-columns:minmax(160px,1fr) 75px 120px 110px 98px}.reference-paint-settings #presets{gap:3px}.app .reference-paint-settings .preset{gap:4px;padding:7px 4px}.reference-paint-settings .preset .nm b{font-size:11px}}
@media(max-width:800px){.project-card{grid-template-columns:1fr 100px}}
.member-edit-drawer{position:fixed;inset:78px 24px 24px auto;margin:0;width:350px;height:calc(100dvh - 102px);max-height:none;border:1px solid var(--line);border-radius:6px;padding:24px;box-shadow:0 10px 30px #263A5A14}.member-edit-drawer::backdrop{background:#23385A12}.member-edit-drawer>h2{font-size:22px;margin:0 0 24px}.member-edit-drawer>p{font-size:14px;line-height:1.8}.member-edit-drawer .form-field{font-size:14px;margin:26px 0}.member-edit-drawer select{display:block;margin-top:10px;width:100%;height:42px;border:1px solid var(--line);border-radius:5px;background:#fff;padding:8px}.member-edit-drawer .dialog-actions{margin-top:30px}.member-edit-drawer .dialog-actions .btn{background:var(--brand);border-color:var(--brand);color:white;min-width:100px}.member-edit-drawer>button{margin-top:22px;color:#AC4D55}
#projectPage .add-member-row input{width:auto;flex:1;margin:0;min-width:160px}#projectPage .add-member-row select{width:170px;flex:none;margin:0;height:42px}#projectPage .add-member-row button{flex:none;min-width:110px}#projectPage .add-member-row{align-items:center}
@media(prefers-reduced-motion:reduce){button{transition:none}button:active:not(:disabled){transform:none}}
/* Desktop login: the story column and the card share one vertical center. */
@media(min-width:801px){.auth-story{align-self:center;margin-top:0}}
/* Short desktop screens (e.g. 1366x768): shrink the header and spacing so the login card fits without scrolling. */
@media(min-width:801px) and (max-height:860px){.auth-header{height:84px}.auth-layout{min-height:calc(100dvh - 84px);padding:16px 0 24px}.auth-story{margin-top:0}}
