@charset "UTF-8";
:root{font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","Noto Sans",sans-serif;color:#24282e;background:#f7f8fa;font-synthesis:none;-webkit-font-smoothing:antialiased;font-size:14px;--accent:#2869e8;--accent-light:#edf3ff;--line:#e7e9ed;--muted:#81858e;--mono:ui-monospace,SFMono-Regular,Menlo,monospace;--green:#2b8779}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation}button{border:0;background:none;color:inherit}button:disabled{opacity:.28;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #95b9ff;outline-offset:3px}button svg{width:20px;height:20px;flex-shrink:0}button{display:inline-flex;align-items:center;justify-content:center;gap:7px}button[hidden],[hidden]{display:none!important}input,select{min-width:0}input:focus,select:focus{outline:2px solid #c5d8fe;outline-offset:2px}button:active:not(:disabled){filter:brightness(.93)}h1,h2,p{margin:0}h1{font-size:15px;font-weight:650;letter-spacing:-.02em}h2{font-size:12px;font-weight:600;color:#6b707a}.app{height:100dvh;display:flex;flex-direction:column;min-height:500px}.topbar{height:68px;flex-shrink:0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 27px;background:#fff}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:#20252d;font-size:18px;font-weight:650;letter-spacing:-.04em}.brand-divider{font-weight:300;color:#b6bbc4;padding:0 4px}.brand-mark{width:24px;height:30px;border:1.7px solid #404854;border-radius:3px;position:relative;display:flex;justify-content:space-evenly;align-items:center;padding:0 3px}.brand-mark:before,.brand-mark:after{content:"";position:absolute;left:3px;right:3px;border-top:1px solid #9aa1ab}.brand-mark:before{top:4px}.brand-mark:after{bottom:4px}.brand-mark i{width:3px;height:5px;background:var(--accent);border-radius:4px;transform:translateY(-3px)}.brand-mark i:nth-child(2){transform:translateY(3px)}.brand-mark i:nth-child(3){transform:translateY(-5px)}.top-actions{display:flex;gap:2px;align-items:center}.save-status{font-size:11px;color:#8b9098;margin-right:13px}.icon-button{width:40px;height:40px;border-radius:10px;flex-shrink:0}.icon-button:hover:not(:disabled){background:#f1f3f6}.action-divider{height:20px;width:1px;background:var(--line);margin:0 12px}.button{height:46px;padding:0 20px;border-radius:12px;background:#fff;box-shadow:0 1px 3px #25354a0d;font-weight:550;font-size:13px;border:1px solid #e0e4e9}.button-small{height:36px;padding:0 13px;border-radius:9px;font-size:12px}.button-primary{background:var(--accent);color:white;border-color:var(--accent);box-shadow:0 3px 8px #2869e818}.button-quiet{background:#f1f3f6;border-color:transparent;box-shadow:none}.text-button{color:var(--accent);font-size:12px;min-height:32px;padding:3px 0}.text-button svg{width:14px;height:14px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 304px;flex:1;min-height:0;gap:20px;padding:20px;max-width:1920px;width:100%;margin:auto}.workspace{background:#fff;min-width:0;border:1px solid var(--line);border-radius:16px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 2px 6px #1a254303}.photo-bar{height:58px;padding:0 14px;display:flex;align-items:center;gap:10px;flex-shrink:0;border-bottom:1px solid var(--line)}.photo-name{color:#79808b;font-size:12px;gap:7px;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;justify-content:flex-start;flex-shrink:1;min-width:40px;height:40px}.photo-name span{overflow:hidden;text-overflow:ellipsis}.photo-name svg{width:16px;height:16px;color:#8a939f}.plate-tabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;margin-left:auto;flex-shrink:1;min-width:0}.plate-tabs button{padding:8px 12px;border-radius:8px;color:#8a909b;font-size:12px;white-space:nowrap;min-height:36px}.plate-tabs button.active{background:#edf2fa;color:#345884;font-weight:600}.photo-bar>.icon-button{width:32px;height:36px}.viewer{flex:1;position:relative;overflow:hidden;min-height:160px;background:#f2f3f5;touch-action:none;outline:none}.viewer.has-image{background:#e9ebef;background-image:radial-gradient(#d5d9e0 .65px,transparent .65px);background-size:10px 10px}.viewer.dragover:after{content:"写真をここにドロップ";position:absolute;inset:12px;border:2px dashed var(--accent);border-radius:12px;background:#edf3fff2;display:grid;place-items:center;color:var(--accent);font-size:15px;z-index:12}#image-canvas,#overlay{position:absolute;inset:0;width:100%;height:100%;user-select:none;-webkit-user-select:none}#overlay{overflow:hidden}#overlay text{font-family:var(--mono);font-weight:600;pointer-events:none}#overlay .hit{cursor:grab}#overlay .hit:active{cursor:grabbing}.empty-state{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:radial-gradient(ellipse at 50% 45%,#ffffff 0,#f6f7f9 65%)}.empty-state p{font-size:11px;color:#a0a5ae;letter-spacing:.02em}.empty-state>.button{min-width:176px;height:44px;margin-top:14px}.empty-state>.text-button{margin-top:13px;color:#7e8795;font-size:12px}.empty-state>.text-button span{font-size:15px}.empty-plate{height:118px;width:82px;border:1px solid #dce1e8;border-radius:5px;background:linear-gradient(130deg,#fff,#f7fafc);box-shadow:0 9px 24px #596e8d10;transform:rotate(-6deg);position:relative}.empty-plate span{position:absolute;width:8px;height:14px;background:#a8bfe5;border-radius:50%;filter:blur(1px);top:35px;left:16px;opacity:.6}.empty-plate span:nth-child(2){left:35px;top:66px;height:10px;background:#b0c9be}.empty-plate span:nth-child(3){left:55px;top:27px;height:11px}.empty-plate i{position:absolute;left:8px;right:8px;top:13px;border-top:1px dashed #c4cbd6}.empty-plate i:last-child{top:auto;bottom:14px;border-top-style:solid}.view-badge{position:absolute;top:16px;left:16px;background:#ffffffdc;backdrop-filter:blur(16px);border:1px solid #ffffff85;border-radius:6px;color:#77808d;padding:5px 8px;font-size:10px;pointer-events:none;letter-spacing:.02em}.zoom-tools{position:absolute;bottom:14px;right:14px;display:flex;align-items:center;background:#ffffffed;backdrop-filter:blur(15px);border:1px solid #fff;box-shadow:0 2px 8px #2b3b5410;border-radius:10px;padding:2px}.zoom-tools .icon-button{width:32px;height:32px}.zoom-tools .icon-button svg{width:16px;height:16px}.zoom-label{font-family:var(--mono);font-size:10px;min-width:46px;height:32px;color:#626c7b}.magnifier{position:absolute;width:122px;height:122px;border:3px solid #fff;border-radius:50%;z-index:15;pointer-events:none;background:#fff;box-shadow:0 5px 25px #17253a40;overflow:visible}.magnifier canvas{height:100%;width:100%;border-radius:50%;background:#e5e8ed}.magnifier-cross{position:absolute;inset:0;border-radius:50%;overflow:hidden}.magnifier-cross:before,.magnifier-cross:after{content:"";position:absolute;left:50%;top:50%;background:#fff;box-shadow:0 0 2px #000}.magnifier-cross:before{width:24px;height:1px;transform:translate(-50%,-50%)}.magnifier-cross:after{height:24px;width:1px;transform:translate(-50%,-50%)}#magnifier-value{position:absolute;bottom:-27px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#242d3ced;color:white;font-family:var(--mono);border-radius:6px;padding:4px 8px;font-size:11px}.busy{position:absolute;inset:0;z-index:30;background:#f7f8fac9;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;gap:10px;color:#616d80;font-size:12px}.spinner{width:17px;height:17px;border:2px solid #b9c8e0;border-right-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.crop-controls{padding:14px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:84px;background:#fff;flex-shrink:0}.crop-controls>div:first-child{display:flex;flex-direction:column;gap:6px}.eyebrow{font-size:11px;font-weight:600;color:#34496a}.crop-hint{font-size:11px;color:#959ca6}.crop-actions{display:flex;align-items:center;gap:8px}.crop-actions .icon-button{margin-right:4px}.measure-controls{background:#fff;flex-shrink:0}.tool-hint{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 19px 0;min-height:36px;font-size:11px;color:#7c8490}.tool-hint .text-button{font-size:10px;color:#7c8490;min-height:25px}.tool-dock{display:flex;align-items:center;justify-content:center;gap:6px;padding:7px 12px 12px}.tool-dock>button{min-width:108px;min-height:50px;border:1px solid transparent;border-radius:11px;font-size:12px;color:#8b929d;gap:9px;transition:background .12s,color .12s}.tool-dock>button svg{width:19px;height:19px}.tool-dock>button.active{background:var(--accent-light);color:var(--accent);border-color:#e0eafe;font-weight:600}.tool-dock>button:disabled{opacity:.4}.results-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:23px 21px;min-width:0;overflow-y:auto;scrollbar-width:thin;box-shadow:0 2px 6px #1a254303;position:relative}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:27px}.count-badge{font-family:var(--mono);font-size:10px;padding:4px 7px;border-radius:5px;background:#f1f3f6;color:#8992a0;white-space:nowrap}.panel-empty{display:flex;min-height:300px;flex-direction:column;align-items:center;justify-content:center;color:#a2a8b2;font-size:11px;gap:17px}.small-plate-icon{width:25px;height:35px;border:1px solid #ccd2dc;border-radius:3px;position:relative}.small-plate-icon:after{content:"";position:absolute;bottom:6px;left:4px;right:4px;border-top:1px solid #ccd2dc}.plate-meta{display:grid;gap:9px;margin-bottom:22px}.plate-meta label{font-size:10px;color:#9a9fa8}.plate-meta input{width:100%;border:1px solid var(--line);border-radius:8px;padding:10px 11px;color:#4c535e;background:#fcfcfd;font-size:12px;height:37px}.plate-meta input+label{margin-top:7px}.plate-meta input::placeholder{color:#b3b9c2;font-size:10px}.reference-status{display:flex;gap:8px;padding-bottom:21px;border-bottom:1px solid var(--line);margin-bottom:19px}.ref-chip{font-size:10px;color:#9aa1ac;display:flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:#fbfcfd}.ref-chip svg{width:12px;height:12px}.ref-chip.done{background:#f3f8f6;color:var(--green);border-color:#e4efea}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;min-height:24px}.section-heading .text-button{font-size:10px;min-height:24px}.lane-list{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:21px;min-height:33px}.lane-chip{height:31px;padding:0 10px;border:1px solid var(--line);border-radius:7px;font-family:var(--mono);font-size:10px;gap:6px;color:#8c94a0}.lane-chip i{height:5px;width:5px;border-radius:50%;background:var(--lane-color)}.lane-chip.active{border-color:var(--lane-color);color:#36435b;background:#f8fafc}.empty-inline{font-size:11px;color:#a2a8b2;line-height:1.8;padding:8px 0}.spots-heading{border-top:1px solid var(--line);padding-top:17px}.table-caption{font:10px var(--mono);color:#a3a9b3}.spot-list{display:flex;flex-direction:column}.spot-row{display:grid;grid-template-columns:26px 1fr auto;gap:10px;align-items:center;min-height:48px;border-bottom:1px solid #f0f2f5;padding:6px 1px;width:100%;text-align:left;justify-content:stretch}.spot-row.active{background:#f1f6ff;box-shadow:8px 0 #f1f6ff,-8px 0 #f1f6ff;border-radius:5px}.spot-index{font-family:var(--mono);font-size:10px;color:var(--lane-color);background:color-mix(in srgb,var(--lane-color) 8%,white);width:26px;height:26px;display:grid;place-items:center;border-radius:7px}.spot-name{font-size:11px;color:#5c6572;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.spot-name small{font-size:9px;color:#abb0b9;display:block;margin-top:3px}.rf-value{font-family:var(--mono);font-size:18px;letter-spacing:-.04em;font-weight:500;color:#323d50}.rf-value.invalid{color:#d58b49}.spot-detail{background:#f5f8fd;border:1px solid #e6edf9;border-radius:10px;padding:12px;margin:0 0 17px}.detail-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px;color:#5f718e;margin-bottom:8px}.detail-heading .icon-button{width:28px;height:28px;color:#9f7880}.detail-heading .icon-button svg{width:15px;height:15px}.detail-fields{display:grid;grid-template-columns:1fr 68px;gap:8px}.detail-fields input,.detail-fields select{border:1px solid #dde5f1;border-radius:6px;background:#fff;padding:7px;font-size:11px;width:100%;color:#59677c;min-height:32px}.detail-nudge{display:flex;align-items:center;justify-content:space-between;margin-top:10px;font-size:10px;color:#8491a4}.nudge-buttons{display:flex;gap:3px}.nudge-buttons button{height:29px;width:32px;background:#fff;border:1px solid #e1e8f2;border-radius:6px}.nudge-buttons svg{width:13px;height:13px}.panel-footer{font-size:9px;color:#a1a8b3;display:flex;align-items:center;gap:6px;margin-top:27px}.privacy-dot{width:5px;height:5px;background:#8eb4a3;border-radius:50%;flex-shrink:0}.remove-plate{font-size:10px;color:#aa9397;margin-top:15px;justify-content:flex-start;min-height:36px}.mobile-nav{display:none}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);z-index:100;padding:12px 19px;max-width:calc(100vw - 32px);width:max-content;box-shadow:0 4px 20px #1b2c4320;background:#273344f2;color:white;border-radius:12px;font-size:12px;backdrop-filter:blur(20px);line-height:1.5;text-align:center;pointer-events:none}.sheet{width:380px;max-width:calc(100vw - 32px);border:1px solid #ffffff60;padding:24px;border-radius:20px;box-shadow:0 16px 80px #172a4533;color:#333d4c;max-height:90dvh;overflow-y:auto}.sheet::backdrop{background:#172a454d;backdrop-filter:blur(4px)}.sheet-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:10px}.sheet-heading h2{font-size:16px;color:#313b4c}.sheet-heading .icon-button{width:30px;height:30px;background:#f3f5f8;color:#8b94a2;border-radius:50%}.sheet-heading .icon-button svg{width:16px;height:16px}.export-options{display:flex;flex-direction:column;gap:7px}.export-options>button{width:100%;text-align:left;justify-content:flex-start;padding:14px;border:1px solid #e9edf3;border-radius:10px;gap:13px}.export-options>button:hover{background:#f6f8fc}.export-options>button>svg{color:#6c88ad;width:23px;height:23px}.export-options>button span{font-size:12px;font-weight:550}.export-options>button small{font-size:10px;display:block;margin-top:4px;color:#99a2b0;font-weight:400}.sheet-note{font-size:10px;color:#9ba4b1;margin-top:16px;line-height:1.9}.help-steps{padding-left:22px;font-size:12px;display:flex;flex-direction:column;gap:19px}.help-steps li{padding-left:6px;color:#9ca8ba}.help-steps strong{display:block;font-size:12px;font-weight:550;color:#46556e;margin-bottom:5px}.help-steps span,.help-detail{font-size:11px;color:#8c97a7;line-height:1.9}.help-detail{margin-top:23px;border-top:1px solid var(--line);padding-top:18px}.formula{font-size:10px;line-height:1.9;background:#f3f6fa;color:#6b7c95;padding:12px;border-radius:9px;margin-top:18px}.confirm-sheet p{font-size:12px;color:#8390a3;line-height:1.9}.confirm-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:23px}.confirm-actions .button{font-size:12px;height:38px;padding:0 14px}
@media(min-width:1500px){.layout{padding:28px;gap:24px;grid-template-columns:minmax(0,1fr) 330px}.results-panel{padding:26px}}
@media(max-width:1050px) and (min-width:721px){.layout{gap:12px;padding:12px;grid-template-columns:minmax(0,1fr) 270px}.results-panel{padding:20px 17px}.tool-dock>button{min-width:83px}.photo-name{max-width:120px}.crop-hint{font-size:10px}.crop-controls{padding:12px}.crop-actions{gap:4px}.crop-actions .icon-button{margin:0}.crop-actions .button-small{padding:0 9px}}
@media(max-width:720px){.app{min-height:350px}.topbar{height:calc(58px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 13px 0 18px}.brand{font-size:17px;gap:9px}.brand-mark{width:21px;height:27px}.save-status{display:none}.top-actions{gap:0}.top-actions .icon-button{width:35px;height:40px}.action-divider{margin:0 7px;height:17px}.top-actions>.button-small{font-size:11px;padding:0 10px;height:33px;margin-right:4px}.top-actions>.button-small svg{width:16px;height:16px}.layout{display:flex;padding:0;gap:0;position:relative}.workspace{border:0;border-radius:0;width:100%;box-shadow:none}.photo-bar{height:52px;padding:0 12px;gap:7px}.photo-name{max-width:110px;font-size:10px}.photo-name svg{width:15px;height:15px}.plate-tabs button{font-size:10px;padding:8px 10px;min-height:33px}.photo-bar>.icon-button{width:29px}.viewer{min-height:110px}.view-badge{left:12px;top:12px;font-size:9px;padding:4px 7px}.zoom-tools{right:10px;bottom:10px}.zoom-tools .icon-button{width:32px;height:32px}.zoom-label{min-width:39px;font-size:9px}.empty-plate{height:106px;width:74px}.empty-state>.button{height:45px;margin-top:10px}.empty-state>.text-button{min-height:44px;margin-top:5px}.empty-state{gap:10px}.crop-controls{padding:12px;min-height:83px;align-items:flex-start;gap:5px}.crop-controls>div:first-child{padding-top:3px;gap:5px;min-width:83px}.crop-hint{font-size:9px;max-width:110px;line-height:1.6}.crop-actions{gap:4px}.crop-actions .icon-button{width:31px;height:36px;margin:0}.crop-actions .button{font-size:10px;height:36px;padding:0 10px}.eyebrow{font-size:10px}.tool-hint{padding:7px 14px 0;font-size:10px;min-height:31px}.tool-hint .text-button{font-size:9px;min-height:28px}.tool-dock{gap:5px;padding:4px 12px 8px;justify-content:space-between}.tool-dock>button{flex:1;min-width:0;min-height:54px;flex-direction:column;gap:5px;font-size:10px;border-radius:10px}.tool-dock>button svg{width:19px;height:19px}.mobile-nav{display:flex;justify-content:center;border-top:1px solid var(--line);background:#fff;padding:3px 15px calc(3px + env(safe-area-inset-bottom));gap:4px;flex-shrink:0}.mobile-nav>button{width:50%;font-size:10px;height:36px;color:#9aa2af;border-radius:8px;gap:6px}.mobile-nav>button.active{color:var(--accent);font-weight:600}.mobile-nav span{background:#eff2f6;padding:2px 5px;border-radius:4px;font:9px var(--mono);color:#8791a2}.results-panel{position:absolute;inset:52px 0 43px;border:0;border-radius:0;box-shadow:none;z-index:20;padding:22px 23px;background:#fff;display:none;padding-bottom:calc(24px + env(safe-area-inset-bottom))}.app.show-results .results-panel{display:block}.app.show-results .measure-controls,.app.show-results .crop-controls{visibility:hidden}.panel-title{margin-bottom:23px}.plate-meta{grid-template-columns:1fr 1fr;gap:8px 12px}.plate-meta label{grid-row:1}.plate-meta input{grid-row:2;font-size:13px;height:42px}.plate-meta input+label{margin:0}.plate-meta input::placeholder{font-size:10px}.reference-status{padding-bottom:17px;margin-bottom:15px}.ref-chip{padding:7px 9px;font-size:11px}.section-heading h2{font-size:12px}.section-heading .text-button{font-size:11px;min-height:36px}.lane-chip{height:37px;font-size:11px;padding:0 12px}.lane-list{margin-bottom:18px}.spot-row{min-height:57px;grid-template-columns:30px 1fr auto;gap:12px}.spot-index{width:30px;height:30px;font-size:11px}.spot-name{font-size:12px}.spot-name small{font-size:10px}.rf-value{font-size:22px}.spot-detail{padding:14px}.detail-fields{grid-template-columns:1fr 85px}.detail-fields input,.detail-fields select{font-size:16px;height:40px}.detail-heading{font-size:12px}.detail-heading .icon-button{width:36px;height:36px}.detail-nudge{font-size:11px}.nudge-buttons button{height:38px;width:42px}.nudge-buttons svg{width:16px;height:16px}.panel-footer{font-size:10px}.remove-plate{font-size:11px;min-height:42px}.toast{bottom:calc(57px + env(safe-area-inset-bottom));font-size:11px;border-radius:10px;padding:11px 16px}.sheet{position:fixed;top:auto;bottom:0;width:100%;max-width:100%;margin:0;border-radius:22px 22px 0 0;padding:24px 23px calc(24px + env(safe-area-inset-bottom));max-height:88dvh;border:0}.sheet-heading{margin-bottom:18px}.sheet-heading h2{font-size:17px}.export-options>button{padding:17px 15px}.export-options>button span{font-size:13px}.export-options>button small{font-size:11px}.sheet-note{font-size:11px}.help-steps{gap:20px}.help-steps strong{font-size:13px}.help-steps span,.help-detail{font-size:12px}.formula{font-size:11px}.confirm-sheet p{font-size:13px}.confirm-actions .button{height:44px;font-size:13px}.magnifier{height:116px;width:116px}.plate-meta input{font-size:16px}.tool-dock>button[data-mode="lane"]{color:var(--accent)}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.copy-direct{margin-right:5px;color:#4f6688;background:#f5f8fe;border-color:#e2e9f5}
.tool-dock>button[data-mode="lane"]:not(.active){color:#8b929d}
.image-actions{display:flex;align-items:center;gap:5px;padding:4px 13px;min-height:42px;border-bottom:1px solid var(--line);flex-shrink:0;background:#fff}
.mini-tool{height:34px;gap:6px;padding:0 10px;border-radius:7px;color:#7c8796;font-size:11px;white-space:nowrap}
.new-measurement{flex-shrink:0;min-height:36px;padding:0 11px;border:1px solid #dce4ef;border-radius:8px;background:#f8faff;color:#46658c;font-size:11px;white-space:nowrap}.new-measurement:hover{background:#edf3fc}.empty-state>#reuse-photo{margin:0;min-width:176px;height:42px}.empty-state>.restore-previous{margin-top:0;min-height:40px;color:var(--accent);font-size:12px}
.photo-bar .photo-name.photo-empty{max-width:150px}
.mini-tool svg{width:16px;height:16px}.mini-tool.active{color:var(--accent);background:var(--accent-light)}
.mini-tool:hover{background:#f2f5f9}.mini-tool:last-child{margin-left:auto}
.tool-dock>button{min-width:0;max-width:115px;flex:1}
.selection-bar{position:absolute;left:12px;bottom:12px;display:flex;align-items:center;gap:3px;max-width:calc(100% - 137px);padding:4px 5px 4px 12px;background:#fffffff5;backdrop-filter:blur(14px);border:1px solid #ffffffaa;border-radius:11px;box-shadow:0 2px 10px #1e34401c;z-index:6;touch-action:manipulation}
.selection-bar>span{font-size:11px;font-family:var(--mono);color:#52637b;margin-right:5px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.selection-bar .icon-button{width:36px;height:36px;border-radius:7px}.selection-bar .icon-button svg{width:17px;height:17px}.selection-bar .delete-action{color:#b76768}
.edit-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 16px;background:#fff;min-height:88px;flex-shrink:0}
.edit-caption{display:flex;flex-direction:column;gap:7px;font-size:11px;min-width:90px}.edit-caption strong{font-size:11px;font-weight:600;color:#4c6282}.edit-caption span{font-size:10px;color:#8a95a5}
.edit-buttons{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.edit-buttons .icon-button{height:36px;width:32px}.edit-buttons .button-small{font-size:11px;padding:0 12px}
.align-reference{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.align-reference label{font-size:10px;color:#8390a3}.align-reference select{border:1px solid var(--line);border-radius:7px;padding:8px;font-size:11px;background:white;max-width:130px}.align-reference .text-button{font-size:10px;color:#91a0b4}
.align-methods{gap:7px}.align-methods select{min-width:0;max-width:220px;min-height:36px;padding:7px 26px 7px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#5b6d86;font-size:11px}.align-note{width:100%;font-size:9px;color:#97a0ae;text-align:right}.magnifier canvas{display:block}
.viewer.is-cropping .zoom-tools{top:12px;bottom:auto;left:50%;right:auto;transform:translateX(-50%)}
.edit-controls.split-controls{flex-direction:column;align-items:stretch;gap:8px;padding:10px 12px;min-height:0}.split-controls .edit-caption{flex-direction:row;align-items:center;justify-content:space-between;width:100%;gap:10px}.split-auto{display:flex;align-items:center;gap:5px;font-size:10px;color:#7b8798;white-space:nowrap}.split-auto input{accent-color:var(--accent);width:15px;height:15px}.split-regions{display:flex;gap:5px;overflow-x:auto;scrollbar-width:thin;min-height:34px}.split-placeholder{align-self:center;font-size:10px;color:#9aa3b0}.split-region{flex-shrink:0;min-height:34px;padding:0 12px;border:1px solid #dce5f2;border-radius:7px;font-size:10px;white-space:nowrap}.split-region.kept{background:#f0f5ff;color:#3f6395}.split-region.excluded{background:repeating-linear-gradient(135deg,#eff1f4,#eff1f4 4px,#f9fafb 4px,#f9fafb 8px);border-color:#d8dde5;color:#8590a0}.split-adjust{display:grid;grid-template-columns:minmax(54px,1fr) minmax(64px,1fr) 40px 40px 34px;gap:5px;max-width:520px;width:100%}.split-adjust select,.split-actions select{min-width:0;min-height:38px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#516681;padding:6px;font-size:11px}.split-adjust .icon-button{height:40px;width:40px;border:1px solid var(--line);border-radius:8px;background:#fbfcfe}.split-adjust #split-delete{width:34px;color:#a87a81}.split-adjust svg{width:17px;height:17px}.split-actions{display:grid;grid-template-columns:minmax(100px,1fr) auto auto auto;gap:5px;max-width:520px;width:100%}.split-actions .button-small{padding:0 9px;min-height:38px;font-size:10px}.split-tip{font-size:10px;line-height:1.5;color:#919baa;margin:0;min-height:30px}.split-tip.split-error{color:#b1696e}
.magnifier{position:fixed;z-index:250}.magnifier #magnifier-value{bottom:6px;border-radius:5px;font-size:10px;padding:3px 7px;max-width:105px;overflow:hidden;text-overflow:ellipsis}
.lane-detail{margin:0 0 18px;padding:11px 12px;background:#f5f8fc;border:1px solid #e4eaf3;border-radius:9px}.lane-detail input{border:1px solid #dfe6f1;border-radius:6px;background:white;padding:8px;width:100%;font-size:12px;margin-top:8px}.lane-detail p{font-size:10px;color:#8b98ab;line-height:1.7;margin-top:8px}
.lane-detail .detail-heading{margin-bottom:0}.lane-detail .detail-nudge{margin-top:9px}
.field-label{font-size:11px;color:#8a96a7;display:block;margin-bottom:12px}.marker-options{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin-bottom:23px}.marker-options button{border:1px solid var(--line);border-radius:9px;min-height:67px;flex-direction:column;gap:5px;font-size:9px;color:#8c97a7}.marker-options button.active{border-color:#8fb2ef;background:#f1f6ff;color:var(--accent)}.marker-options svg{height:29px;width:29px}.range-field{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:18px 0;font-size:11px;color:#7c899d}.range-field input{width:45%;accent-color:var(--accent)}.check-field{display:flex;align-items:center;gap:9px;font-size:12px;color:#6f7d92;min-height:42px}.check-field input{accent-color:var(--accent);width:17px;height:17px}#text-input{width:100%;resize:vertical;border:1px solid #dce4ef;border-radius:10px;padding:13px;font:14px/1.7 -apple-system,sans-serif;color:#526079;min-height:110px}#mode-selection{color:#98a3b2;font-size:10px}
@media(max-width:1050px){.edit-controls{align-items:flex-start;flex-direction:column}.edit-buttons{width:100%}.align-reference{width:100%}.align-reference .text-button{margin-left:auto}}
@media(max-width:720px){
 .new-measurement{font-size:10px;padding:0 9px;min-height:36px}.photo-bar .photo-name{max-width:70px}
 .topbar{padding-left:13px;padding-right:10px}.brand{font-size:16px;gap:7px}.top-actions .action-divider{margin:0 5px}.top-actions #export{width:33px;min-width:33px;padding:0;border:0;box-shadow:none}.top-actions #export span{display:none}.top-actions .copy-direct{height:33px;font-size:10px;padding:0 8px;gap:5px;margin-right:2px}.top-actions .copy-direct svg{width:15px;height:15px}.top-actions #help{width:29px}
 .image-actions{padding:3px 8px;gap:1px;min-height:40px}.mini-tool{font-size:10px;padding:0 7px;gap:4px;height:33px}.mini-tool svg{width:14px;height:14px}.mini-tool:last-child{padding-left:6px;padding-right:6px}
 .selection-bar{max-width:calc(100% - 128px);left:9px;bottom:10px;padding:2px 3px 2px 9px}.selection-bar>span{font-size:10px;max-width:95px}.selection-bar .icon-button{height:38px;width:34px}.selection-bar .icon-button svg{width:16px;height:16px}
 .edit-controls{min-height:93px;padding:10px 12px;gap:9px}.edit-caption{flex-direction:row;justify-content:space-between;width:100%;align-items:center;font-size:10px}.edit-caption strong{font-size:10px}.edit-caption span{font-size:9px}.edit-buttons{gap:5px}.edit-buttons .button-small{height:36px;font-size:10px;padding:0 10px}.edit-buttons .icon-button{height:36px;width:30px}.align-reference select{padding:6px;font-size:10px;height:32px;max-width:145px}.align-reference .text-button{min-height:30px}.align-reference label{font-size:10px}
 .align-methods select{flex:1;max-width:none;font-size:11px;min-height:38px}.align-note{font-size:9px}.align-methods .button-small{min-width:49px;min-height:38px}
 .tool-dock{gap:3px;padding-left:8px;padding-right:8px}.tool-dock>button{max-width:none;min-width:0;font-size:9px;min-height:51px}.tool-hint{font-size:9px;min-height:28px;padding-left:12px;padding-right:12px}#mode-selection{font-size:9px}.mobile-nav>button{height:39px}
 .results-panel{inset:92px 0 46px}.lane-detail input{font-size:16px;min-height:40px}.lane-detail p{font-size:11px}.lane-detail .detail-heading{font-size:11px}.lane-detail .detail-heading .icon-button{width:36px;height:36px}.lane-detail .detail-nudge{font-size:11px}.marker-options{gap:5px}.marker-options button{min-height:75px;font-size:10px}.range-field{font-size:12px;min-height:30px}.check-field{font-size:12px;min-height:46px}#text-input{font-size:16px}
}
@media(max-width:370px){.top-actions #help{display:none}.top-actions .icon-button{width:31px}.brand-mark{width:19px}.brand{font-size:15px}.top-actions .copy-direct{font-size:9px;padding:0 6px}.image-actions{padding-left:5px;padding-right:5px}.mini-tool{padding:0 5px;font-size:9px}.photo-bar{gap:5px}.photo-bar .photo-name{max-width:40px}}

.image-actions{overflow-x:auto;scrollbar-width:none}.image-actions .mini-tool{flex-shrink:0}
.detect-controls{padding:12px 14px;background:white;display:flex;flex-direction:column;gap:12px;flex-shrink:0}.detect-controls>strong{font-size:12px;color:#425b7b}.detect-settings{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.detect-settings>label{display:flex;align-items:center;gap:6px;min-height:32px;font-size:12px;color:#5c6d84}.detect-settings input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}.detect-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.detect-actions span{font-size:11px;line-height:1.5;color:#8390a2;flex:1}.detect-actions .button{flex-shrink:0}.detect-actions #apply-detect{font-size:12px}
.detect-note{font-size:11px;line-height:1.5;color:#758298;min-height:34px}.detect-context{display:flex;align-items:center;gap:10px;font-size:11px;color:#576c88}.detect-context{min-height:32px}.detect-context .text-button{margin-left:auto;color:#b85656}.detect-settings #detect-add{margin-left:auto}.detect-settings #detect-add.active{background:#eaf1ff;padding:0 10px;border-radius:7px}.detect-controls.ai-busy #detect-caption:before{content:"";display:inline-block;width:10px;height:10px;border:2px solid #bccce6;border-right-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite;margin-right:8px;vertical-align:-2px}@media(max-width:720px){.detect-controls{padding:10px 12px;gap:8px}.detect-settings{gap:7px}.detect-settings>label{font-size:11px}.detect-actions span{font-size:10px}.image-actions .mini-tool{font-size:10px;padding-left:7px;padding-right:7px}}
@media(max-width:720px){.image-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;padding:3px 8px;overflow:visible}.image-actions .mini-tool{justify-content:center;font-size:11px;min-height:36px;margin-left:0;width:100%}.image-actions .mini-tool:last-child{margin-left:0}}
.detect-context{gap:8px}.detect-context>span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.detect-context .text-button{margin-left:0;flex-shrink:0;min-height:34px}.detect-context #detect-edit{color:#2869e8}.detect-context #detect-edit[aria-pressed=true]{background:#eaf1ff;border-radius:6px;padding:0 8px}.detect-missing{display:flex;gap:6px;flex-wrap:wrap}.detect-missing .text-button{padding:6px 8px;background:#fff3db;border-radius:6px;color:#865d21;font-size:11px}.selection-bar .text-button{color:#2869e8;font-size:11px;white-space:nowrap}
#annotation-style{width:100%;min-height:42px;padding:9px 12px;margin-bottom:22px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#526079;font-size:13px}
