/* Mobile app shell: the same focused experience on phone and desktop. */
:root{--bg:#101716;--panel:#192320;--panel2:#23302b;--line:#2a3832;--text:#f1f6f3;--muted:#94a69c;--mint:#a8edcc;--radius:22px;font-family:-apple-system,BlinkMacSystemFont,'Noto Sans KR',sans-serif}
body{background:#080d0b;font-size:14px;overscroll-behavior-y:none}.mobile-app{width:100%;max-width:480px;min-height:100dvh;margin:auto;background:var(--bg);box-shadow:0 0 100px #0005}.mobile-app .workspace{margin:0}.mobile-app .topbar{position:sticky;top:0;z-index:30;height:calc(64px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 20px 0;background:#101716ef;backdrop-filter:blur(24px);border:0;gap:8px}.app-title{display:flex;align-items:center;gap:9px;font-size:21px;letter-spacing:-.8px;font-weight:700;min-width:0}.brand-dot{color:var(--mint)}.app-demo{font-size:8px;font-weight:600;letter-spacing:1px;color:var(--muted);border:1px solid #3b4c42;padding:2px 4px;border-radius:4px}.app-title>.icon-btn{margin-left:-8px}.mobile-app .top-actions{gap:6px}.mobile-app .top-actions>.icon-btn{display:flex}.mobile-app .icon-btn{min-width:44px;height:44px;color:#c1d0c7;border-radius:50%}.mobile-app .device-chip{font-size:11px;padding:7px 10px;min-height:36px;background:#1e3027;border:0}.mobile-app .page{padding:16px 20px calc(100px + env(safe-area-inset-bottom));max-width:none}.mobile-app .page-camera{padding-top:3px}.mobile-app .bottom-nav{display:flex;position:fixed;bottom:0;left:50%;right:auto;transform:translateX(-50%);width:100%;max-width:480px;z-index:40;background:#16201cf5;backdrop-filter:blur(24px);border-top:1px solid #314039;padding:8px 12px max(12px,env(safe-area-inset-bottom));justify-content:space-around}.mobile-app .bottom-nav button{flex:1;min-width:0;min-height:54px;background:none;color:#83978b;font-size:10px;font-weight:500;display:flex;flex-direction:column;align-items:center;gap:3px;padding:0}.tab-icon{display:grid;place-items:center;width:54px;height:31px;border-radius:16px}.mobile-app .bottom-nav button svg{width:22px;height:22px;stroke-width:1.8}.mobile-app .bottom-nav button.active{color:var(--mint)}.bottom-nav button.active .tab-icon{background:#2b4437}.mobile-app button:active{transform:scale(.97)}.mobile-app button:disabled{transform:none}.mobile-app .camera-tabs{width:100%;margin:0 0 25px;background:#1b2621;border:0;border-radius:13px;padding:4px;gap:4px}.mobile-app .camera-tabs button{flex:1;min-height:38px;padding:8px;font-size:13px;border-radius:10px}.mobile-app .camera-tabs button.active{background:#34483c;color:#e5f7ec;box-shadow:0 2px 5px #0002}.capture-intro{margin:0 0 18px}.capture-intro h1{font-size:24px;font-weight:650;letter-spacing:-1px}.capture-intro p{font-size:13px;margin-top:4px;color:var(--muted)}.mobile-app .parts{display:flex;gap:7px;margin:0 0 15px}.mobile-app .part{flex:1;border:1px solid #304036;background:transparent;color:#a5b4ab;padding:10px 4px;min-height:42px;border-radius:22px;font-size:12px}.mobile-app .part.active{background:var(--mint);color:#123b26;border-color:var(--mint);font-weight:700}.mobile-app .preview-card{border-radius:24px;background:#090f0d;overflow:hidden;border:1px solid #35473c}.camera-tools{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;background:#17241c}.camera-tools button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:64px;background:transparent;color:#c8d9ce;font-size:10px}.camera-tools svg{width:17px;height:17px}.mobile-app .viewfinder{aspect-ratio:1.33}.mobile-app .viewfinder>img{opacity:1}.mobile-app .focus-box{width:100px;height:100px}.lens-tag{position:absolute;top:14px;left:14px;display:flex;gap:6px;align-items:center;font-size:9px;padding:5px 9px;border-radius:15px;background:#0f1c14a8;color:#dcf4e5;backdrop-filter:blur(10px)}.mobile-app .preview-label{left:14px;bottom:15px;font-size:10px}.mobile-app .glass-pill{border:0;border-radius:8px;background:#10291ece}.mobile-app .preview-zoom{right:14px;bottom:14px;background:#09160eb8;width:31px;height:31px}.sample-picker{margin-top:18px}.sample-picker .section-heading{margin-bottom:9px}.sample-picker h3{font-size:12px;font-weight:500;color:#aabbb0}.sample-picker .section-heading>span{font-size:10px;font-variant-numeric:tabular-nums;color:var(--mint)}.mobile-app .samples{gap:7px;padding:2px 0 5px;scrollbar-width:none}.samples::-webkit-scrollbar{display:none}.mobile-app .sample{flex:0 0 53px;min-width:53px;border-radius:12px;padding:3px;text-align:center}.mobile-app .sample img{aspect-ratio:1;object-fit:cover;border-radius:8px}.mobile-app .sample span{font-size:8px;margin:5px 0 1px;white-space:nowrap}.mobile-app .sample.active{border-color:var(--mint);background:#263d2f}.shutter-dock{display:grid;grid-template-columns:1fr 1.3fr 1fr;align-items:center;gap:20px;padding:20px 16px 0}.shutter-center{display:flex;flex-direction:column;align-items:center;gap:7px}.mobile-app .shutter{display:grid;place-items:center;width:78px;height:78px;min-height:78px;margin:0;background:transparent;border:2px solid var(--mint);padding:5px;border-radius:50%;color:#163828;transition:transform .15s}.shutter>span{width:100%;height:100%;display:grid;place-items:center;background:var(--mint);border-radius:50%}.mobile-app .shutter svg{width:29px;height:29px;stroke-width:1.6}.shutter-center>span{font-size:11px;color:#d9e8de;font-weight:500}.last-capture,.capture-help{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;background:none;color:#92a69a;font-size:9px;padding:8px 0;min-height:64px}.last-capture img{width:40px;height:40px;object-fit:cover;border-radius:12px;border:2px solid #526558}.capture-help svg{width:29px;height:29px;margin:5px}.capture-note{text-align:center;font-size:9px;color:#657c6d;margin-top:15px}.mobile-app .page-head{display:flex;align-items:center;gap:10px;margin:2px 0 23px}.mobile-app .page-head .eyebrow{display:none}.mobile-app .page-head h1{font-size:24px;letter-spacing:-1px}.mobile-app .page-head p{font-size:12px;color:var(--muted);margin-top:5px;max-width:none}.mobile-app .head-actions{flex-shrink:0}.mobile-app .head-actions .btn{font-size:11px;min-height:42px;padding:10px 12px;border-radius:14px}.mobile-app .btn{min-height:44px;border-radius:14px;font-size:12px;padding:11px 14px}.mobile-app .btn.secondary{background:#24332a;border-color:#35473b}.mobile-app .card{background:var(--panel);border:1px solid #293a30;box-shadow:none}.mobile-app .card-inner{padding:20px}.mobile-app .section-heading h3{font-size:14px}.mobile-app .section-heading p{font-size:11px}.mobile-app .gallery-toolbar{gap:12px;flex-direction:column;margin-bottom:17px}.mobile-app .filter-chips{width:100%;gap:6px}.mobile-app .filter-chip{flex:1;padding:10px 7px;min-height:42px;font-size:11px;border-radius:22px;background:transparent}.mobile-app .filter-chip.active{background:#304a3a;color:#c9f7db;border-color:#466c53}.mobile-app .gallery-toolbar .select{align-self:flex-end;min-height:40px;border:0;background:transparent;padding:6px;font-size:11px}.mobile-app .gallery-date{font-size:13px;margin:18px 0 12px}.mobile-app .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mobile-app .photo-card{border-radius:18px}.mobile-app .photo-cover{aspect-ratio:1.1}.mobile-app .photo-meta{padding:12px}.mobile-app .photo-meta h3{font-size:13px}.mobile-app .photo-meta p{font-size:10px}.mobile-app .photo-cover .photo-status{font-size:8px;right:8px;bottom:8px;padding:4px 6px}.mobile-app .cloud-summary{grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px}.mobile-app .cloud-profile{grid-column:1/-1;padding:22px}.mobile-app .metric{min-height:128px;padding:18px;flex-direction:row;align-items:center}.mobile-app .metric strong{font-size:29px}.mobile-app .metric .metric-icon{margin:0}.mobile-app .metric p{font-size:11px}.page-cloud .page-head{flex-wrap:wrap}.page-cloud .head-actions{width:100%;margin-top:7px}.page-cloud .head-actions>.btn{width:100%}.mobile-app .table .date-col{display:none}.mobile-app .table th{font-size:10px;padding:12px}.mobile-app .table td{padding:13px 10px;font-size:12px}.mobile-app .table-photo{gap:8px}.mobile-app .table-photo img{width:40px;height:40px;border-radius:10px}.mobile-app .table .pill{font-size:9px;padding:5px 6px}.mobile-app .table .btn{padding:8px;font-size:10px}.mobile-app .table .btn svg{display:none}.mobile-app .analysis-head{display:block;margin:0 0 18px}.mobile-app .analysis-head h1{display:none}.mobile-app .analysis-head p{font-size:12px;margin:0 0 14px}.mobile-app .analysis-head .head-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}.analysis-head .head-actions>button:first-child{display:none}.mobile-app .detail-tabs{gap:0;display:flex;background:#1b2921;border:0;border-radius:13px;padding:4px;margin-bottom:18px}.mobile-app .detail-tabs button{flex:1;min-height:42px;padding:8px 3px;border:0;border-radius:10px;font-size:12px}.mobile-app .detail-tabs button.active{background:#344d3d;color:#c6f5d9}.mobile-app .analysis-layout{display:flex;flex-direction:column;gap:16px}.mobile-app .analysis-picture{border-radius:22px}.mobile-app .preview-top{height:52px;padding:0 14px;font-size:9px}.mobile-app .preview-top .segmented{border:0;background:#0f1c14}.mobile-app .preview-top .segmented button{min-height:36px!important;padding:7px 10px!important;font-size:11px!important}.mobile-app .analysis-picture .canvas-wrap{aspect-ratio:1.33}.mobile-app .analysis-footer{padding:12px 14px;font-size:9px}.mobile-app .analysis-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mobile-app .result-main{grid-column:1/-1;padding:24px;background:linear-gradient(125deg,#2b4836,#1e3026);border-color:#4a7157}.mobile-app .result-main h3{font-size:14px}.mobile-app .result-number{font-size:58px;margin:8px 0;letter-spacing:-3px;font-weight:500}.mobile-app .result-main p{font-size:11px}.mobile-app .score-row{padding:16px;flex-wrap:wrap;gap:12px}.mobile-app .score-row h3{font-size:12px}.mobile-app .score-row p{font-size:9px}.mobile-app .score-row strong{font-size:25px}.mobile-app .analysis-metrics>.btn{grid-column:1/-1}.mobile-app .analysis-detail{grid-template-columns:1fr;gap:14px;margin-top:16px}.mobile-app .channel-grid{grid-template-columns:1fr 1fr;gap:12px}.mobile-app .channel-panel img,.mobile-app .channel-panel canvas{aspect-ratio:1.2}.mobile-app .channel-body{padding:12px}.mobile-app .channel-title{font-size:11px;gap:5px;flex-wrap:wrap}.mobile-app .channel-title span{font-size:9px}.mobile-app .channel-panel .histogram{height:60px}.mobile-app .operation-controls{padding:15px;gap:12px;flex-wrap:wrap}.mobile-app .operation-controls label{flex:1;flex-direction:column;align-items:stretch;gap:7px}.mobile-app .operation-controls .select{min-height:44px;font-size:11px;width:100%;padding:8px}.mobile-app .operation-controls>p{width:100%;font-size:10px;margin:0}.mobile-app .page-note{font-size:10px;align-items:flex-start;line-height:1.8;color:var(--muted)}.mobile-app .status-grid,.mobile-app .settings-grid{display:grid;grid-template-columns:1fr;gap:16px}.mobile-app .device-hero{padding:25px 20px;gap:20px}.mobile-app .device-art{width:75px;height:110px;flex-shrink:0}.mobile-app .device-hero h2{font-size:20px}.mobile-app .stats{margin:0 18px 20px}.mobile-app .stat{padding:14px 7px}.mobile-app .stat strong{font-size:20px}.mobile-app .setting-row{min-height:65px;padding:17px 0}.mobile-app .setting-row strong{font-size:13px}.mobile-app .setting-row p{font-size:11px}.mobile-app .switch{width:44px;height:28px;padding:4px}.mobile-app .switch i{width:20px;height:20px}.mobile-app .switch.on i{transform:translateX(16px)}.profile-link{display:flex;width:100%;gap:14px;align-items:center;text-align:left;padding:20px;margin-bottom:16px}.profile-link .avatar{width:48px;height:48px;background:#a8edcc;color:#153e27;font-size:16px}.profile-link strong{display:block;font-size:16px}.profile-link small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.profile-link>svg{margin-left:auto;width:18px}.menu-list{padding:4px 18px;margin-bottom:23px}.menu-list button{width:100%;min-height:60px;display:flex;gap:12px;align-items:center;background:none;border-bottom:1px solid var(--line);text-align:left}.menu-list button:last-child{border-bottom:0}.menu-list button>svg{color:var(--mint);width:19px}.menu-list button>span{flex:1}.menu-list small{font-size:11px;color:var(--muted)}.menu-list button>svg:last-child{width:15px;color:var(--muted)}.modal-backdrop{align-items:flex-end;padding:0;background:#020906a8;backdrop-filter:blur(7px)}.modal{width:100%;max-width:480px;max-height:90dvh;overflow:auto;border-radius:28px 28px 0 0;padding:36px 24px max(28px,env(safe-area-inset-bottom));border:1px solid #3a4c40;border-bottom:0;background:#1a2820;position:relative}.modal:before{content:'';position:absolute;top:11px;left:calc(50% - 17px);width:34px;height:4px;background:#627c69;border-radius:5px}.modal .close-modal{top:18px;right:14px;min-width:44px;height:44px}.modal h2{font-size:23px}.modal p{font-size:13px}.modal .btn{min-height:48px;font-size:13px;border-radius:14px}.modal .icon-btn{height:44px;width:44px}.modal .field{font-size:13px}.modal input{min-height:48px;font-size:16px}.modal .accordion{padding:20px 0}.modal .accordion summary{font-size:14px}.modal .accordion p{font-size:12px}#toast{left:50%;bottom:calc(88px + env(safe-area-inset-bottom));width:max-content;max-width:min(400px,90vw);font-size:12px;background:#d1f3df;color:#173b27;border-radius:16px}
@media(min-width:600px){.mobile-app{border-left:1px solid #2b3a31;border-right:1px solid #2b3a31}.modal-backdrop{align-items:center}.modal{border-radius:28px;border-bottom:1px solid #3a4c40}}@media(max-width:360px){.mobile-app .page{padding-left:15px;padding-right:15px}.mobile-app .topbar{padding-left:15px;padding-right:12px}.app-title{font-size:20px}.mobile-app .device-chip{font-size:10px;padding:6px 8px}.capture-intro h1{font-size:22px}.mobile-app .sample{min-width:49px;flex-basis:49px}.shutter-dock{padding-top:14px}.mobile-app .shutter{width:70px;height:70px;min-height:70px}}
/* Keep the shutter above the tab bar at common phone heights. */
.mobile-app .camera-tabs{margin-bottom:16px}.capture-intro{margin-bottom:12px}.capture-intro h1{font-size:21px}.capture-intro p{display:none}.mobile-app .parts{margin-bottom:12px}.mobile-app .viewfinder{aspect-ratio:auto;height:clamp(150px,calc(100svh - 620px),270px)}.shutter-dock{padding-top:12px}.capture-note{margin-top:10px}.sample-picker{margin-top:14px}
@media(max-height:740px){.capture-intro{display:none}.mobile-app .camera-tabs{margin-bottom:12px}.mobile-app .viewfinder{height:clamp(120px,calc(100svh - 485px),240px)}.mobile-app .sample{min-width:47px;flex-basis:47px}.sample-picker{margin-top:10px}.sample-picker .section-heading{margin-bottom:5px}.mobile-app .sample span{display:none}.capture-note{display:none}.shutter-dock{padding-top:10px}.mobile-app .shutter{width:66px;height:66px;min-height:66px}.shutter-center{gap:4px}}
.mobile-app .analysis-picture .preview-top>.segmented{flex-shrink:0;min-width:148px}.mobile-app .analysis-picture .preview-top>.segmented button{white-space:nowrap}
@media(max-height:740px){.mobile-app .viewfinder{height:clamp(120px,calc(100svh - 505px),220px)}}
/* App gestures: scroll in either direction, without browser pinch/double-tap zoom. */
html,body{touch-action:pan-x pan-y;overscroll-behavior:none}
body{-webkit-text-size-adjust:100%;text-size-adjust:100%;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,[contenteditable="true"]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
img,canvas{-webkit-user-drag:none;-webkit-touch-callout:none}
/* 16px input text prevents Safari's automatic focus zoom. */
.modal input,.modal textarea,.mobile-app select{font-size:16px}
/* Specification completion: device settings, option sheets and file metadata. */
.setting-button{width:100%;background:none;text-align:left;color:var(--text);cursor:pointer}.setting-button>span{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.setting-button svg{width:16px;height:16px}.registered-device{display:flex;gap:3px;align-items:center;border-bottom:1px solid var(--line);padding:12px 0}.registered-device>button:first-child{display:flex;flex:1;min-width:0;gap:10px;align-items:center;text-align:left;background:none;padding:4px 0}.registered-device strong{display:block;font-size:13px}.registered-device small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.device-mini{width:35px;height:40px;display:grid;place-items:center;color:var(--mint);flex-shrink:0}.device-state{margin-left:auto;font-size:10px;white-space:nowrap;color:var(--mint)}.registered-device .icon-btn{min-width:36px;width:36px;flex-shrink:0}.registered-device+.btn{margin-top:16px}.option-list{margin-top:20px}.option-list button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:55px;border-bottom:1px solid var(--line);padding:14px 16px;background:none;color:var(--text);font-size:15px;text-align:left}.option-list button[aria-pressed=true]{background:#2a4635;color:var(--mint);border-radius:12px;border-color:transparent}.option-list svg{width:20px}.storage-label{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);gap:10px}.cloud-records{padding:19px;margin-bottom:16px}.cloud-record{display:flex;align-items:center;gap:10px;width:100%;padding:15px 0;border-top:1px solid var(--line);background:none;text-align:left}.cloud-record>img{width:46px;height:52px;object-fit:cover;border-radius:11px;flex-shrink:0}.cloud-record>span:nth-child(2){flex:1;min-width:0}.cloud-record strong{display:block;font-size:12px}.cloud-record small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.cloud-record>.pill{font-size:9px;flex-shrink:0}.cloud-record>svg{width:14px;flex-shrink:0;color:var(--muted)}.detail-records{margin:0 0 20px}.detail-records>span{display:block;font-size:11px;color:var(--muted);margin-bottom:10px}.transfer-card{padding:20px;margin-bottom:18px}.transfer-card p{font-size:12px;color:var(--muted);margin:8px 0 15px}.viewfinder .focus-box[data-part="정수리"]{top:42%;left:50%}.viewfinder .focus-box[data-part="전두부"]{top:34%;left:50%}.viewfinder .focus-box[data-part="후두부"]{top:60%;left:50%}.viewfinder .focus-box[data-part="측두부"]{top:50%;left:67%}.modal .report-list{max-height:50dvh;overflow-y:auto}.modal .option-list+ p{margin-top:14px}
@media(max-width:360px){.cloud-records{padding:14px}.cloud-record{gap:7px}.cloud-record>img{width:36px;height:44px}.cloud-record small{font-size:9px}.setting-button>span{font-size:11px}.registered-device strong{font-size:12px}.registered-device .icon-btn{min-width:30px;width:30px}}
