@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}}
