.trace-canvas-layout,.trace-canvas-layout *{box-sizing:border-box}.trace-canvas-layout{color:#0f1620;line-height:1.4;font-variant-numeric:tabular-nums}.trace-canvas-layout :is(button,input):focus-visible{outline:2px solid #1461ee;outline-offset:2px}.trace-canvas-layout input{caret-color:#1461ee}.trace-canvas-layout input::selection{color:#0f1620;background:#e7effd}.trace-view-controls{position:relative;flex:none;color:#0f1620}.trace-view-controls button{display:flex;align-items:center;gap:8px;min-height:38px;padding:7px 9px;border:0;border-radius:7px;background:transparent;color:inherit;font-family:inherit;font-size:12px;font-weight:600;line-height:1.4;text-align:left;cursor:pointer;touch-action:manipulation}.trace-view-controls svg{width:18px;height:18px;flex:none}.trace-view-controls .trace-view-toggle{min-height:36px;padding:0 11px;gap:6px;border:1px solid #ececf4;border-radius:9px;background:#fff;color:#6f7688;font-size:12px;font-weight:700}.trace-view-toggle svg{width:17px;height:17px}.trace-view-controls .trace-view-toggle[aria-expanded=true]{border-color:#1461ee;color:#1461ee;background:#e7effd}.trace-view-panel{position:absolute;z-index:60;top:calc(100% + 10px);right:0;display:flex;flex-direction:column;gap:4px;width:224px;max-width:calc(100vw - 24px);max-height:min(430px,calc(100dvh - 210px));overflow-y:auto;overscroll-behavior:contain;padding:8px;border:1px solid #ececf4;border-radius:12px;background:#fff;scrollbar-width:thin;scrollbar-color:#d5dce8 transparent;-webkit-user-select:none;user-select:none}.trace-view-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-left:8px;font-size:12px}.trace-view-heading button{justify-content:center;min-width:34px;min-height:32px;padding:4px;color:#6f7688}.trace-view-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px}.trace-view-opacity{display:flex;flex-direction:column;gap:6px;margin-top:3px;padding:9px 8px 4px;border-top:1px solid #ececf4;font-size:11px}.trace-view-opacity>span{display:flex;justify-content:space-between;gap:8px}.trace-view-opacity output{color:#6f7688}.trace-view-opacity input{width:100%;height:26px;margin:0;accent-color:#1461ee;cursor:pointer}.trace-view-options{display:flex;flex-direction:column}.trace-view-option{display:flex;align-items:center;gap:9px;min-height:34px;padding:5px 8px;border-radius:7px;font-size:11.5px;font-weight:600;cursor:pointer;touch-action:manipulation}.trace-view-option input{width:15px;height:15px;flex:none;margin:0;accent-color:#1461ee;cursor:pointer}.trace-view-zoom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px;padding-top:6px;border-top:1px solid #ececf4;color:#6f7688;font-size:11px}.trace-view-zoom>span{display:flex;flex-direction:column;align-items:center;gap:1px}.trace-view-zoom output{color:#0f1620;font-size:10px;font-weight:700}.trace-view-zoom button{justify-content:center;min-width:40px;background:#f7f7fc}.trace-view-controls button:disabled{opacity:.4;cursor:default}.trace-view-controls button:active:not(:disabled){color:#1461ee;background:#e7effd}.trace-view-panel p{margin:5px 8px 3px;color:#6f7688;font-size:10.5px;line-height:1.5}@media (hover: hover) and (pointer: fine){.trace-view-controls button:hover:not(:disabled),.trace-view-option:hover{background:#f7f7fc}}.trace-page-picker,.trace-page-picker *{box-sizing:border-box}.trace-page-navigation{flex:none;min-width:0;padding:7px 12px;border-top:1px solid #ececf4;background:#fff}.trace-page-strip{display:flex;gap:6px;width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;padding:3px 2px 6px;overscroll-behavior-x:contain;scroll-padding-inline:2px;scrollbar-width:thin;scrollbar-color:#d5dce8 transparent;touch-action:pan-x;-webkit-overflow-scrolling:touch}.trace-page-number{flex:0 0 auto;min-width:44px;height:42px;padding:0 10px;border:1px solid #ececf4;border-radius:10px;font:inherit;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;cursor:pointer;touch-action:manipulation}.trace-page-number[aria-pressed=true]{font-weight:800}.trace-page-picker button:focus-visible{outline:2px solid #1461ee;outline-offset:2px}.trace-page-empty{margin:22px 12px;color:#6f7688;font-size:12px;font-weight:600;line-height:1.5;text-align:center}.trace-welcome,.trace-welcome *{box-sizing:border-box}.trace-welcome{display:flex;flex-direction:column;height:100%;min-height:0;background:#f3f3fa;color:#0f1620;font-family:inherit;font-variant-numeric:tabular-nums;line-height:1.4}.trace-welcome button{font-family:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.trace-welcome button:focus-visible{outline:2px solid #1461ee;outline-offset:3px}.trace-welcome-header{display:flex;align-items:center;flex:none;gap:12px;padding:calc(10px + env(safe-area-inset-top,0px)) 16px 10px;background:#fff;border-bottom:1px solid #ececf4}.trace-welcome-back{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border:0;border-radius:12px;background:#f3f3fa;color:#0f1620}.trace-welcome-header h1{margin:0;font-size:15px;font-weight:800;line-height:1.4}.trace-welcome-header p{margin:2px 0 0;color:#6f7688;font-size:11.5px;font-weight:600}.trace-welcome-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.trace-welcome-content{display:flex;flex-direction:column;gap:12px;width:100%;max-width:520px;margin:0 auto;padding:16px 16px calc(24px + env(safe-area-inset-bottom,0px))}.trace-welcome-upload-card{overflow:hidden;border-radius:20px;background:#fff}.trace-welcome-art{position:relative;aspect-ratio:1.35;overflow:hidden;background:#f3f7fd}.trace-welcome-art img{display:block;width:100%;height:100%;object-fit:cover}.trace-welcome-art:after{content:"";position:absolute;inset:auto 0 0;height:50px;background:linear-gradient(transparent,#fff);pointer-events:none}.trace-welcome-upload-content{position:relative;padding:0 16px 17px;margin-top:-29px;text-align:center}.trace-welcome-upload{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:50px;padding:13px 14px;border:0;border-radius:14px;background:#1461ee;color:#fff;font-size:15px;font-weight:800;line-height:1.4;transition:background-color .15s ease,transform .15s ease}.trace-welcome-upload svg{flex:none}.trace-welcome-upload:hover{background:#1055d5}.trace-welcome-upload:active{transform:scale(.985)}.trace-welcome-formats{margin:12px 0 0;color:#6f7688;font-size:11.5px;font-weight:700}.trace-welcome-file-note{margin:3px 0 0;color:#6f7688;font-size:11px;font-weight:500}.trace-welcome-error{margin:12px 0 0;color:#c92a22;font-size:12px;font-weight:600}.trace-welcome-guide{padding:16px;border-radius:20px;background:#fff}.trace-welcome-guide h2{margin:0;font-size:14px;font-weight:800;line-height:1.4}.trace-welcome-guide ol{display:flex;flex-direction:column;gap:15px;margin:18px 0;padding:0;list-style:none}.trace-welcome-guide li{display:flex;align-items:flex-start;gap:12px}.trace-welcome-step{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:9px;background:#e7effd;color:#1461ee;font-size:10.5px;font-weight:800}.trace-welcome-guide h3{margin:0;font-size:12.5px;font-weight:700;line-height:1.4}.trace-welcome-guide li p{margin:3px 0 0;color:#6f7688;font-size:11px;font-weight:500;line-height:1.5}.trace-welcome-result{display:flex;align-items:center;gap:9px;padding:11px 12px;border-radius:12px;background:#f0f5fe;color:#1461ee}.trace-welcome-result svg{flex:none}.trace-welcome-result p{margin:0;color:#42618d;font-size:11px;font-weight:600;line-height:1.5}@media (min-width: 701px){.trace-welcome-header{min-height:64px;padding:calc(12px + env(safe-area-inset-top,0px)) 20px 12px}.trace-welcome-content{padding-top:24px}}@media (prefers-reduced-motion: reduce){.trace-welcome-upload{transition:none}}
