*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{color:#111827;overscroll-behavior:none;-webkit-user-select:none;user-select:none;background:#f3f4f6;font:14px/1.4 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.app{flex-direction:column;height:100%;display:flex}.toolbar{padding:8px calc(8px + env(safe-area-inset-right)) 8px calc(8px + env(safe-area-inset-left));padding-top:calc(8px + env(safe-area-inset-top));background:#fff;border-bottom:1px solid #e5e7eb;flex-wrap:wrap;align-items:center;gap:8px;display:flex}.toolbar button{color:#111827;min-width:56px;min-height:44px;font:inherit;touch-action:manipulation;background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:0 12px}.toolbar button.active{color:#fff;background:#1f5fbf;border-color:#1f5fbf}.toolbar button:disabled{opacity:.4}.sep{background:#e5e7eb;width:1px;height:28px}.stats{color:#6b7280;font-variant-numeric:tabular-nums;margin-left:auto}.stage{flex:1;min-height:0}.viewer-root{background:#e5e7eb;width:100%;height:100%;position:relative}.osd{position:absolute;inset:0}.osd canvas{outline:none}.overlay{touch-action:none;position:absolute;inset:0}.centered{text-align:center;color:#374151;flex-direction:column;justify-content:center;align-items:center;gap:12px;height:100%;padding:24px;display:flex}.login{justify-content:center;align-items:center;height:100%;padding:16px;display:flex}.login-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;flex-direction:column;gap:14px;width:100%;max-width:360px;padding:24px;display:flex}.login-card h1{margin:0 0 8px;font-size:20px}.login-card label{color:#374151;flex-direction:column;gap:6px;font-size:13px;display:flex}.login-card input{min-height:44px;font:inherit;border:1px solid #d1d5db;border-radius:8px;padding:0 12px;font-size:16px}.login-card button{color:#fff;min-height:44px;font:inherit;background:#1f5fbf;border:0;border-radius:8px}.error{color:#b91c1c;margin:0}.banner{color:#991b1b;cursor:pointer;background:#fef2f2;border-bottom:1px solid #fecaca;padding:8px 12px}.muted{color:#6b7280}.toolbar button.ghost{color:#6b7280;border-color:#0000;min-width:0}.dot{vertical-align:middle;background:#9ca3af;border-radius:50%;width:10px;height:10px;margin-right:8px;display:inline-block}.dot.live{background:#16a34a}.dot.connecting{background:#f59e0b}.stage.scroll{padding:12px;overflow:auto}.upload{background:#fff;border:1px solid #e5e7eb;border-radius:12px;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px;padding:12px;display:flex}.upload input[type=text],.upload input:not([type]){min-height:44px;font:inherit;border:1px solid #d1d5db;border-radius:8px;flex:160px;padding:0 10px;font-size:16px}.upload input.short{flex:0 120px}.upload .file{background:#f9fafb;border:1px dashed #9ca3af;border-radius:8px;flex:200px;align-items:center;min-height:44px;padding:0 12px;display:inline-flex;position:relative;overflow:hidden}.upload .file input{opacity:0;cursor:pointer;position:absolute;inset:0}.upload button{color:#fff;min-height:44px;font:inherit;background:#1f5fbf;border:0;border-radius:8px;padding:0 16px}.upload button:disabled{opacity:.5}.sheet-list{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.sheet-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;flex-direction:column;display:flex;overflow:hidden}.sheet-thumb{aspect-ratio:4/3;cursor:pointer;background:#f3f4f6;border:0;width:100%;padding:0;display:block}.sheet-thumb:disabled{cursor:default}.sheet-thumb img{object-fit:contain;width:100%;height:100%;display:block}.thumb-placeholder{color:#6b7280;justify-content:center;align-items:center;height:100%;display:flex}.sheet-card.processing .sheet-thumb{background:repeating-linear-gradient(45deg,#f3f4f6,#f3f4f6 10px,#e5e7eb 10px 20px)}.sheet-card.failed .thumb-placeholder{color:#b91c1c}.sheet-meta{flex-direction:column;gap:2px;padding:10px 12px;font-size:13px;display:flex}.stage{position:relative}.stage.with-panel{display:flex}.stage.with-panel .viewer-root{flex:1;min-width:0}.panel{background:#fff;border-left:1px solid #e5e7eb;flex-direction:column;flex:0 0 340px;gap:10px;width:340px;padding:12px;display:flex;overflow:auto}.panel-head{align-items:center;gap:8px;display:flex}.panel-head select{min-height:40px;font:inherit;border:1px solid #d1d5db;border-radius:8px;flex:1;padding:0 8px}.pin-badge{color:#fff;border-radius:16px;justify-content:center;align-items:center;min-width:32px;height:32px;padding:0 8px;font-weight:700;display:inline-flex}.panel label{color:#6b7280;flex-direction:column;gap:4px;font-size:12px;display:flex}.panel input,.panel textarea,.panel select{font:inherit;color:#111827;border:1px solid #d1d5db;border-radius:8px;padding:8px 10px;font-size:15px}.panel textarea{resize:vertical}.comments h4{color:#374151;margin:4px 0;font-size:13px}.comments ul{flex-direction:column;gap:8px;max-height:260px;margin:0;padding:0;list-style:none;display:flex;overflow:auto}.comments li{background:#f9fafb;border-radius:8px;padding:8px 10px;font-size:13px}.comments .who{margin-right:6px;font-weight:600}.comments .when{color:#9ca3af;font-size:11px}.comments li p{white-space:pre-wrap;margin:4px 0 0}.comment-form{gap:6px;margin-top:8px;display:flex}.comment-form input{flex:1;min-height:40px}.comment-form button{color:#fff;min-height:40px;font:inherit;background:#1f5fbf;border:0;border-radius:8px;padding:0 12px}.panel-foot{border-top:1px solid #f3f4f6;margin-top:auto;padding-top:8px}.panel button.danger{color:#b91c1c;min-height:40px;font:inherit;background:#fff;border:1px solid #fecaca;border-radius:8px;padding:0 12px}@media (width<=760px){.stage.with-panel{display:block}.panel{width:auto;max-height:55%;padding-bottom:calc(12px + env(safe-area-inset-bottom));border-top:1px solid #e5e7eb;border-left:0;border-radius:16px 16px 0 0;flex:none;position:absolute;bottom:0;left:0;right:0;box-shadow:0 -8px 24px #0000001f}}.photos h4{color:#374151;margin:4px 0;font-size:13px}.photo-grid{grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:6px;display:grid}.photo{aspect-ratio:1;cursor:pointer;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:8px;padding:0;position:relative;overflow:hidden}.photo img{object-fit:cover;width:100%;height:100%;display:block}.photo.add{color:#6b7280;border-style:dashed;justify-content:center;align-items:center;font-size:24px;display:flex}.photo.add input{opacity:0;cursor:pointer;position:absolute;inset:0}.photo.add.busy{opacity:.5}.lightbox{z-index:50;cursor:zoom-out;background:#000000d9;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.lightbox img{object-fit:contain;max-width:96vw;max-height:96vh}.tools{white-space:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none;background:#fff;border-bottom:1px solid #e5e7eb;align-items:center;gap:6px;padding:6px 8px;display:flex;overflow-x:auto}.tools::-webkit-scrollbar{display:none}.tools button{color:#111827;min-width:52px;min-height:40px;font:inherit;touch-action:manipulation;background:#fff;border:1px solid #d1d5db;border-radius:8px;flex:none;padding:0 10px;font-size:13px}.tools button.active{color:#fff;background:#1f5fbf;border-color:#1f5fbf}.tools button:disabled{opacity:.4}.markup-bar{z-index:5;background:#fff;border:1px solid #e5e7eb;border-radius:10px;align-items:center;gap:8px;padding:6px 8px;display:flex;position:absolute;top:12px;left:12px;box-shadow:0 4px 16px #0000001f}.markup-bar button{min-height:36px;font:inherit;background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:0 10px;font-size:13px}.markup-bar button.danger{color:#b91c1c;border-color:#fecaca}.badge{border-radius:10px;padding:2px 8px;font-size:12px;font-weight:600}.badge.private{color:#92400e;background:#fef3c7}.badge.published{color:#166534;background:#dcfce7}.app,.stage{position:relative}.text-entry{z-index:6;min-width:160px;font:inherit;background:#fff;border:2px solid #d7263d;border-radius:6px;padding:6px 8px;font-size:16px;position:absolute;transform:translateY(-50%)}@media (width<=760px){.toolbar .stats-text{display:none}}.role-tag{text-transform:capitalize;margin-left:auto;padding-left:8px;font-size:12px}.toolbar select.revision{min-height:36px;font:inherit;background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:0 8px;font-size:13px}.compare{color:#374151;align-items:center;gap:6px;font-size:13px;display:inline-flex}.compare input[type=range]{width:110px}.review-bar{color:#92400e;background:#fffbeb;border-bottom:1px solid #fde68a;align-items:center;gap:10px;padding:8px 12px;font-size:13px;display:flex}.review-bar button{color:#92400e;min-height:34px;font:inherit;background:#fff;border:1px solid #f59e0b;border-radius:8px;padding:0 12px}.markup-bar.carried{top:56px}.lang{vertical-align:middle;border:1px solid #d1d5db;border-radius:8px;margin:0 6px;display:inline-flex;overflow:hidden}.lang button{color:#6b7280;min-width:36px;min-height:30px;font:inherit;background:#fff;border:0;padding:0 8px;font-size:12px;font-weight:600}.lang button.active{color:#fff;background:#1f5fbf}.login-card h1 .lang{float:right}.bell-wrap{vertical-align:middle;margin-right:6px;display:inline-block;position:relative}.bell{cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:8px;min-width:40px;min-height:36px;font-size:16px;position:relative}.bell-badge{color:#fff;background:#d7263d;border-radius:9px;justify-content:center;align-items:center;min-width:18px;height:18px;padding:0 5px;font-size:11px;font-weight:700;display:inline-flex;position:absolute;top:-6px;right:-6px}.bell-menu{z-index:40;text-align:left;background:#fff;border:1px solid #e5e7eb;border-radius:12px;width:min(380px,92vw);max-height:70vh;font-weight:400;position:absolute;top:42px;right:0;overflow:auto;box-shadow:0 10px 30px #00000029}.bell-menu header{border-bottom:1px solid #f3f4f6;align-items:center;gap:8px;padding:10px 12px;display:flex}.bell-menu header strong{flex:1}.bell-menu p{margin:0;padding:12px}.bell-menu ul{margin:0;padding:0;list-style:none}.bell-menu li button{text-align:left;width:100%;font:inherit;color:#111827;cursor:pointer;background:0 0;border:0;border-bottom:1px solid #f3f4f6;flex-direction:column;gap:2px;padding:10px 12px;display:flex}.bell-menu li.unread button{background:#eff6ff}.n-text{font-size:13px;line-height:1.35}.n-when{color:#9ca3af;font-size:11px}.stage{flex-direction:column;display:flex}.stage>.viewer-root{flex:1;min-height:0}.stage.with-panel{flex-flow:wrap}.stage.with-panel>.review-bar{flex-basis:100%}.review-bar{z-index:4;position:relative}.markup-bar,.stage.with-panel>.markup-bar{top:12px}.compare-slider{z-index:5;left:50%;bottom:calc(14px + env(safe-area-inset-bottom));background:#fff;border:1px solid #e5e7eb;border-radius:999px;align-items:center;gap:8px;padding:6px 12px;font-size:12px;display:flex;position:absolute;transform:translate(-50%);box-shadow:0 4px 16px #0000001f}.compare-slider input[type=range]{width:160px}.compare .compare-short{display:none}.compare.on{color:#1f5fbf;font-weight:600}@media (width<=760px){.toolbar{padding-top:calc(6px + env(safe-area-inset-top));flex-wrap:nowrap;gap:6px;padding-bottom:6px;overflow:hidden}.toolbar>.muted{display:none}.toolbar strong{white-space:nowrap}.toolbar select.revision{max-width:44vw;min-height:34px;font-size:12px}.toolbar .compare .compare-text{display:none}.toolbar .compare .compare-short{white-space:nowrap;font-size:12px;display:inline}.toolbar .compare input[type=checkbox]{width:18px;height:18px}.toolbar .stats{margin-left:auto}.toolbar .lang{display:none}.tools{padding:4px 6px}.tools button{min-width:44px;min-height:36px;padding:0 8px;font-size:12px}.tools .role-tag{display:none}.sheet-list{grid-template-columns:repeat(2,1fr);gap:8px}.sheet-thumb{aspect-ratio:1}.sheet-meta{padding:8px;font-size:12px}.panel{max-height:50%;padding-top:18px}.panel:before{content:"";background:#d1d5db;border-radius:2px;width:36px;height:4px;margin-left:-18px;position:absolute;top:6px;left:50%}.compare-slider{bottom:calc(52% + 8px)}.stage:not(.with-panel) .compare-slider{bottom:calc(14px + env(safe-area-inset-bottom))}.sheets .toolbar{flex-wrap:wrap;overflow:visible}.toolbar .ghost{white-space:nowrap;min-width:0;padding:0 6px}.toolbar .stats{white-space:nowrap;flex:none;align-items:center;gap:6px;display:inline-flex}.toolbar .stats .dot{margin-right:0}.bell{min-width:36px;min-height:32px;font-size:15px}.bell-wrap{margin-right:0}.toolbar .back .back-text{display:none}.toolbar .back{font-size:20px;line-height:1}}.toolbar{z-index:30;position:relative}.bell-menu{z-index:60}@media (width<=760px){.bell-menu{top:calc(60px + env(safe-area-inset-top));width:auto;max-height:60vh;position:fixed;left:8px;right:8px}}.sheet-meta .danger-text{color:#b91c1c;align-self:flex-start;min-height:28px;margin-top:4px;padding:0;font-size:12px}.confirm-row{color:#991b1b;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px;font-size:12px;display:flex}.confirm-row .danger{color:#fff;min-height:30px;font:inherit;background:#b91c1c;border:0;border-radius:6px;padding:0 10px;font-size:12px}.confirm-row .ghost{min-height:30px;font-size:12px}.carried-strip{color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;flex-direction:column;gap:6px;padding:8px 10px;font-size:12px;display:flex}.carried-actions{flex-wrap:wrap;gap:6px;display:flex}.carried-actions button{color:#92400e;min-height:32px;font:inherit;background:#fff;border:1px solid #f59e0b;border-radius:8px;padding:0 10px;font-size:12px}.carried-actions button.danger{color:#b91c1c;border-color:#fecaca}.review-bar{z-index:4;flex:none;position:relative}.palette{flex:none;align-items:center;gap:4px;padding:0 4px;display:inline-flex}.tools .palette button.swatch,.markup-bar .palette button.swatch{border:2px solid #fff;border-radius:50%;width:22px;min-width:0;height:22px;min-height:0;padding:0;box-shadow:0 0 0 1px #d1d5db}.palette button.swatch.active{transform:scale(1.15);box-shadow:0 0 0 2px #111827}@media (width<=760px){.markup-bar{flex-wrap:wrap;row-gap:6px;right:12px}.markup-bar button{white-space:nowrap}}.projects,.members{max-width:960px;margin:0 auto}.new-project{color:#fff;min-height:44px;font:inherit;background:#1f5fbf;border:0;border-radius:8px;margin-bottom:12px;padding:0 16px}.project-list,.member-list{gap:12px;margin:0;padding:0;list-style:none;display:grid}.project-list{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}.project-card{text-align:left;width:100%;font:inherit;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:12px;flex-direction:column;align-items:flex-start;gap:4px;padding:14px 16px;font-size:13px;display:flex}.project-card strong{font-size:16px}.project-card:hover{border-color:#1f5fbf}.upload select,.member-row select{min-height:44px;font:inherit;background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:0 8px;font-size:15px}.upload .check{align-items:center;gap:6px;font-size:14px;display:inline-flex}.upload button.ghost{color:#6b7280;background:0 0;border:1px solid #0000}.members .hint{margin:0 0 12px;font-size:13px}.member-row{background:#fff;border:1px solid #e5e7eb;border-radius:12px;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 14px;display:flex}.member-name{flex-direction:column;flex:200px;min-width:0;display:flex}.member-name .muted{text-overflow:ellipsis;font-size:12px;overflow:hidden}.member-row select{min-height:36px;font-size:13px}.member-row .badge{color:#3730a3;background:#eef2ff;border-radius:999px;padding:2px 10px;font-size:12px}.member-row .badge.private{color:#92400e;background:#fef3c7}.upload .form-title{flex:none;font-weight:600}.upload .hint-inline{flex:100%;font-size:12px}.upload .exists{color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;flex:100%;padding:6px 10px;font-size:13px}.upload button.link{color:#1f5fbf;min-height:0;font:inherit;background:0 0;border:0;padding:0;font-size:13px;text-decoration:underline}.card-actions{gap:8px;display:flex}.card-actions button.ghost{min-height:32px;font:inherit;color:#1f5fbf;background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:0 10px;font-size:12px}.card-actions button.danger-text{color:#b91c1c;border-color:#fecaca}.revision-form{border-top:1px dashed #e5e7eb;flex-direction:column;gap:6px;margin-top:6px;padding-top:8px;font-size:13px;display:flex}.revision-form .file{background:#f9fafb;border:1px dashed #9ca3af;border-radius:8px;align-items:center;min-height:40px;padding:0 10px;display:inline-flex;position:relative;overflow:hidden}.revision-form .file input{opacity:0;cursor:pointer;position:absolute;inset:0}.revision-form input:not([type=file]){min-height:40px;font:inherit;border:1px solid #d1d5db;border-radius:8px;padding:0 10px;font-size:15px}.revision-form .row{gap:8px;display:flex}.revision-form button{color:#fff;min-height:40px;font:inherit;background:#1f5fbf;border:0;border-radius:8px;padding:0 12px;font-size:13px}.revision-form button:disabled{opacity:.5}.revision-form button.ghost{color:#6b7280;background:0 0;border:1px solid #d1d5db}
