/* SUNDO v14: shared, dependency-free public design system. */
:root{--s-ink:#102f3b;--s-forest:#075e61;--s-green:#087d78;--s-lime:#ccf4e7;--s-paper:#f5f8fb;--s-muted:#4d6370;--s-line:#dce7eb;--s-serif:system-ui,-apple-system,'Segoe UI',sans-serif;--navy:#102f3b;--ink:#102f3b;--teal:#087d78;--border:#dce7eb;--background:#f5f8fb;color-scheme:light}
html{scroll-behavior:smooth}body{font-family:system-ui,-apple-system,'Segoe UI',sans-serif}main,section,article,nav{min-width:0}h1,h2,h3,p,a{overflow-wrap:anywhere}button,select,input,summary{font:inherit}input:not([type=range]):not([type=checkbox]),select{font-size:16px}button,summary{min-height:44px}a,button{touch-action:manipulation}:focus-visible{outline:3px solid #b55b13;outline-offset:4px}[hidden]{display:none!important}img,canvas,video{max-width:100%}.skip{position:absolute;left:12px;top:-100px;z-index:1000;padding:12px;background:#fff;color:#075e61}.skip:focus{top:12px}
.sundo-page{background:#f5f8fb}.sundo-page h1,.sundo-page h2{font-family:var(--s-serif);font-weight:750;letter-spacing:-.045em}.sundo-header{background:#fff}.sundo-header-row{min-height:76px}.sundo-hero{background:linear-gradient(125deg,#ecf6f7,#f5f8fb 60%,#e9efff)}.sundo-brand-mark{font-family:system-ui;font-style:normal;font-size:25px;padding:0;background:#087d78;border-radius:12px}.sundo-button,.sun-btn{border-radius:12px}.sun-card,.sundo-card,.sundo-guide-card{border-radius:20px;box-shadow:0 5px 20px #102f3b07}.sundo-tool-icon{background:#e4f5f3;color:#087d78;border:1px solid #cae9e3;border-radius:16px;box-shadow:0 0 18px #087d7810}.sun-chip{background:#e6f5f2;color:#075e61}.sun-subhero{padding-top:44px}.sun-category-list{gap:8px}.sun-category-list a{border-radius:999px}.sun-card:hover,.sundo-guide-card:hover{border-color:#80bfb7}.sundo-footer{background:#102f3b}
.medcam-page{--bg:#f5f8fb;--panel:#fff;--panel2:#edf5f6;--line:#dce7eb;--text:#102f3b;--muted:#4d6370;--accent:#087d78;--good:#15704f;--warn:#855000;--focus:#b55b13;background:#f5f8fb;color:#102f3b}.medcam-page header{background:#fff;position:relative;backdrop-filter:none}.medcam-page .brand,.medcam-page a{color:#075e61}.medcam-page .top{min-height:76px;flex-wrap:wrap;padding-block:10px}.medcam-page .toplinks{flex-wrap:wrap;gap:14px}.medcam-page .hero{padding:36px 0 26px}.medcam-page .card{background:#fff;box-shadow:0 5px 20px #102f3b07;border-radius:20px}.medcam-page .pill{background:#e6f5f2;color:#075e61;border-color:#b5dcd6}.medcam-page .btn,.medcam-page .chip{background:#edf5f6;color:#102f3b;border-color:#cbdde2;min-height:44px}.medcam-page .btn.primary{background:#087d78;color:#fff}.medcam-page .btn.good{background:#15704f;color:#fff}.medcam-page .btn:hover,.medcam-page .chip:hover{filter:brightness(.96)}.medcam-page .status{background:#edf5fa;color:#214c65;border-color:#c4dce8}.medcam-page .status.good{background:#edf8f0;color:#1a6041;border-color:#badbc7}.medcam-page .status.warn{background:#fff5df;color:#79510b;border-color:#e6ce9b}.medcam-page .kpi,.medcam-page .search,.medcam-page .cat,.medcam-page .field select,.medcam-page .topiccols article,.medcam-page details{background:#f8fbfc;color:#102f3b}.medcam-page .field,.medcam-page .section-title,.medcam-page .cat small{color:#4d6370}.medcam-page .cat[aria-pressed=true],.medcam-page .chip[aria-pressed=true]{background:#def3ee;color:#075e61;border-color:#087d78}.medcam-page .notice{background:#eaf4f7;color:#35586a}.medcam-page .capture{border-radius:12px}.medcam-page .sm{font-size:13px}.medcam-page .micro{font-size:12px}.medcam-page .frame.ready{border-color:#6ff1ba}.medcam-page .search,.medcam-page .field select{border-color:#bed2dc}.medcam-page .settings{border-color:#dce7eb}
.medcam-page.camera-active{overflow:hidden}.camera-active section[aria-labelledby=capture-title]{position:fixed;inset:0;z-index:100;border-radius:0;border:0;background:#07131b;overflow:auto;color:#eef8ff}.camera-active section[aria-labelledby=capture-title] .card-in{min-height:100dvh;padding:16px max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom));display:flex;flex-direction:column}.camera-active #stage{flex:1;min-height:40vh;height:calc(100dvh - 270px);max-height:none;aspect-ratio:auto}.camera-active section[aria-labelledby=capture-title] .notice,.camera-active section[aria-labelledby=capture-title] .head,.camera-active section[aria-labelledby=capture-title] .kpis{display:none}.camera-active #status{margin-top:8px}.camera-active .switchline{color:#eef8ff}.camera-active #autoHint{color:#c6dbe4}
body.catalog-page{background:#f5f8fb;color:#102f3b}.catalog-page .hero{background:transparent}.catalog-page h1{letter-spacing:-.04em}.catalog-page .tool{box-shadow:0 5px 20px #102f3b07}.catalog-page .nav{min-height:76px;flex-wrap:wrap;padding-block:12px}
@media(max-width:600px){.sundo-shell{width:calc(100% - 32px)}.sundo-header-row{min-height:68px}.medcam-page .toplinks{font-size:12px;gap:12px}.medcam-page .hero{padding:24px 0}.medcam-page .grid{gap:12px}.medcam-page .card-in{padding:14px}.medcam-page .catgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.medcam-page .cat{min-width:0}.medcam-page .top{align-items:flex-start}.sun-search-row{flex-wrap:wrap}.sun-search-row input{min-width:0;flex:1 1 180px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

:root{--app-teal:#087c80;--app-ink:#153340;--app-muted:#536b76;--app-line:#dbe7ed}
.launcher{padding:34px 0 22px;background:radial-gradient(ellipse at 5% 10%,#e1f6f3 0,transparent 48%),radial-gradient(ellipse at 95% 25%,#e9eaff 0,transparent 45%),#f6f9fc;border-bottom:1px solid var(--app-line);color:var(--app-ink)}.launcher-heading{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:22px}.launcher-eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;color:#087c80;margin:0 0 10px}.launcher h1{font:780 clamp(28px,3.6vw,46px)/1.12 system-ui!important;letter-spacing:-.045em;margin:0 0 12px}.launcher h1 span{color:#087c80}.launcher-heading p:not(.launcher-eyebrow){font-size:15px;line-height:1.6;color:var(--app-muted);margin:0;max-width:570px}.launcher-note{border:1px solid #d3e7e8;border-radius:20px;background:#ffffffb8;padding:19px 24px;min-width:240px}.launcher-note>span{display:block;font-size:27px;color:#078a82}.launcher-note b{display:block;margin:7px 0}.app-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.launch-app{--glow:#0e9c99;--tile:#dcf5f0;--edge:#8edbd0;display:flex;align-items:center;flex-direction:column;justify-content:flex-start;text-align:center;min-width:0;gap:8px;padding:20px 8px 15px;border:1px solid #e0e9ed;border-radius:22px;background:#ffffffdc;color:var(--app-ink)!important;text-decoration:none!important;transition:transform .18s,border-color .18s,box-shadow .18s}.launch-app.tone-1{--glow:#4278d4;--tile:#e4edff;--edge:#a5c0f3}.launch-app.tone-2{--glow:#7e5bc3;--tile:#eee7ff;--edge:#cdb3fb}.launch-app.tone-3{--glow:#287f9c;--tile:#e0f1fc;--edge:#9ecfe3}.launch-app.tone-4{--glow:#ae6542;--tile:#fff0e5;--edge:#e8bc9d}.launch-app.tone-5{--glow:#b65686;--tile:#fce6f2;--edge:#e8aecb}.app-icon{display:grid;place-items:center;width:66px;height:66px;border-radius:20px;background:linear-gradient(145deg,#fff,var(--tile));color:var(--glow);border:1px solid var(--edge);box-shadow:0 5px 18px color-mix(in srgb,var(--glow) 23%,transparent),inset 0 1px 0 white;flex-shrink:0}.app-icon svg{width:36px;height:36px}.launch-app strong{font-size:14px;font-weight:750;line-height:1.3;margin-top:3px}.app-sub{font-size:11px;color:var(--app-muted);line-height:1.3}.launch-app:hover{transform:translateY(-4px);border-color:var(--edge);box-shadow:0 10px 24px #173b4811}.launch-app:focus-visible{outline:3px solid #a75d1d;outline-offset:4px}.launcher-bottom{display:flex;justify-content:center;flex-wrap:wrap;gap:12px 25px;margin:20px 0 9px;font-size:12px;color:#32616a}.launcher-limit{font-size:11px!important;color:var(--app-muted);text-align:center;margin:0!important}.task-intro{max-width:1200px;margin:auto;padding:30px 24px 22px}.task-heading{display:flex;gap:18px;align-items:center}.task-heading h1{font:750 clamp(26px,4vw,38px)/1.15 system-ui;letter-spacing:-.035em;margin:5px 0 9px;color:var(--app-ink)}.task-heading p{font-size:14px;color:var(--app-muted);margin:0;max-width:730px}.task-breadcrumb{font-size:12px;color:#526a75;margin:0 0 18px}.task-breadcrumb a{color:#087c80}.task-steps{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0;padding:0;list-style:none;counter-reset:step}.task-steps li{counter-increment:step;padding:7px 12px;border:1px solid #d5e7e9;border-radius:999px;font-size:12px;background:#eff8f8;color:#214852}.task-steps li:before{content:counter(step);display:inline-grid;place-items:center;margin-right:7px;width:20px;height:20px;border-radius:50%;background:#087c80;color:#fff;font-size:11px}.task-intro+.workspace{padding-top:12px}.task-page .workspace .section-heading{margin-bottom:15px}.task-page .workspace .section-heading h2{font-size:24px}.task-page .camera-card,.task-page .quality-card,.task-page .image-card{border-radius:20px}.task-page #features{display:none}.task-page .primary-action{box-shadow:0 0 0 3px #b4e6db,0 6px 20px #078a7622}.task-next{padding:13px 16px;border:1px solid #b7dbd8;background:#ebf8f4;border-radius:12px;color:#155b51;font-size:14px;margin:0 0 18px}.task-page .camera-buttons{gap:10px}.task-page #viewbox{min-height:330px}.task-page .privacy-boundary-note{font-size:12px}.task-page .workflow-overlay-control,.task-page .workflow-guide-note{font-size:12px}.task-page .workflow-library{margin-top:30px}.task-page .feature-catalog{display:none}.task-page input,.task-page select{font-size:16px}.task-page .camera-buttons button,.task-page .filebutton{min-height:46px}
body.task-camera-active{overflow:hidden}.task-camera-active .camera-card{position:fixed;inset:0;z-index:200;background:#07141e;color:#edf7ff;border-radius:0;display:flex;flex-direction:column;padding:12px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom));overflow:auto}.task-camera-active #viewbox{flex:1;min-height:35vh;height:calc(100dvh - 235px);max-height:none;border-radius:12px}.task-camera-active .camera-card>.hint,.task-camera-active #poseVisual,.task-camera-active #poseSettings,.task-camera-active .camera-card>.toolbar{display:none}.task-camera-active .camera-buttons{position:relative;justify-content:center;margin:8px 0}.task-camera-active #liveFrameGuidance{margin:8px 0;background:#193746;color:#eefaff;border:1px solid #3b5e6d;font-size:14px}.task-camera-active .camera-utility{max-height:95px;overflow:auto}.task-camera-active .textbutton{color:#e3f7ff}.task-camera-active .filebutton{background:#fff;color:#143847}.task-camera-active #poseCompass{max-width:85%}.task-camera-active .viewbox video{object-fit:contain}.live-hint{position:absolute;bottom:16px;left:12px;right:12px;border:1px solid #4e7487;background:#071925e8;color:#f0f9ff;padding:10px 12px;border-radius:10px;font-size:13px;font-weight:650;text-align:center;pointer-events:none}.live-hint[data-ready=true]{border-color:#55dbac;color:#9cf2cf}.medcam-page .captureBadge{max-width:85%}.medcam-page .toolbar .btn{min-height:46px}
@media(max-width:1100px){.app-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.launcher-note{display:none}.sundo-desktop-nav{gap:17px}}
@media(max-width:600px){.launcher{padding-top:23px}.launcher-heading{margin-bottom:17px}.launcher h1 br{display:none}.launcher h1 span{display:block}.launcher-heading p:not(.launcher-eyebrow){font-size:13px}.app-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.launch-app{padding:14px 4px 12px;border-radius:17px;gap:5px}.app-icon{width:55px;height:55px;border-radius:17px}.app-icon svg{width:31px;height:31px}.launch-app strong{font-size:12px}.app-sub{font-size:10px}.launcher-bottom{font-size:10px;gap:6px 12px}.launcher-limit{font-size:10px!important}.task-intro{padding:24px 16px 14px}.task-heading{gap:12px;align-items:flex-start}.task-heading .app-icon{width:50px;height:50px}.task-heading h1{font-size:27px}.task-heading p{font-size:13px}.task-page #viewbox{min-height:270px}.task-steps{gap:5px}.task-steps li{font-size:11px;padding:5px 8px}.task-steps li:before{width:17px;height:17px;margin-right:4px}.task-camera-active #viewbox{min-height:35vh}}
@media(max-width:359px){.app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.launcher h1{font-size:27px!important}}
@media(prefers-reduced-motion:reduce){.launch-app{transition:none}.launch-app:hover{transform:none}}
.task-actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 4px}.task-actions button{min-height:48px;cursor:pointer}.task-heading .app-icon{color:#087c80;background:#e2f4f1;border:1px solid #a8d9d2;box-shadow:0 6px 18px #087c8020}.task-page .privacy-boundary-note{padding:9px 12px;margin:0 0 14px}.task-page #browserCompatibility{margin-top:22px}.task-page .task-actions .sundo-button-outline{background:white;color:#075e61!important}
.directory-guide{max-width:980px}.directory-guide dt{font-weight:750;margin-top:17px}.directory-guide dd{margin:4px 0;color:#4d6370}.directory-guide h2{font-size:28px}.directory-guide p{font-size:15px}
.task-options,.task-switcher{border:1px solid #ccdfe3;border-radius:14px;background:#fff;margin:16px 0;padding:0 16px}.task-options>summary,.task-switcher>summary{cursor:pointer;font-weight:700;min-height:48px;padding:14px 0;color:#154953}.task-options>summary:focus-visible,.task-switcher a:focus-visible{outline:3px solid #087c80;outline-offset:3px}.task-switcher nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:8px 0}.task-switcher a{padding:12px;background:#eff7f7;border-radius:8px;color:#075e61;overflow-wrap:anywhere}.task-switcher a[aria-current=page]{background:#075e61;color:white;font-weight:700}.task-switcher p{font-size:12px;color:#526a75}.task-page .share-controls{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.task-page .share-controls label{flex:1 1 240px;min-width:0}.task-page .share-controls select{width:100%;max-width:100%}.task-page .share-controls button{min-height:48px}.task-page .share-status{flex-basis:100%}.task-page .task-options .adjustments{margin:0 0 16px}.task-page .task-options .result-footer{margin:0 0 16px}.task-page .share-panel{margin:16px 0}.task-page .share-panel h3{font-size:22px}
@media(max-width:600px){.task-switcher nav{grid-template-columns:repeat(2,minmax(0,1fr))}.task-page .share-controls button{flex:1 1 130px}.task-options,.task-switcher{padding:0 12px}}

/* SUNDO v17 — complete image preview without forced crop or hidden fixed-height frame. */
.task-page #resultSection:not([hidden]){scroll-margin-top:86px}
.task-page #resultSection .review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px}
.task-page #resultSection .image-card{min-width:0;overflow:visible}
.task-page #resultSection .image-display{display:flex!important;align-items:flex-start!important;justify-content:center!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;overflow:visible!important}
.task-page #resultSection .image-display img,.task-page #resultSection .image-display canvas{position:relative!important;inset:auto!important;display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;max-width:100%!important;object-fit:contain!important}
.task-page #resultSection #originalDimensions,.task-page #resultSection #processedDimensions{font-variant-numeric:tabular-nums}
@media(max-width:820px){.task-page #resultSection .review-grid{grid-template-columns:minmax(0,1fr);gap:18px}.task-page #resultSection .image-card{width:100%}}

/* SUNDO v22: accessible icon glow with no infinite animation or layout shift */
.launcher .launch-app{background:linear-gradient(155deg,#fff 52%,var(--tile));border-color:color-mix(in srgb,var(--glow) 23%,#dce7ec);box-shadow:0 5px 16px rgba(16,48,59,.045),0 0 17px color-mix(in srgb,var(--glow) 13%,transparent);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.launcher .launch-app .app-icon{box-shadow:0 5px 22px color-mix(in srgb,var(--glow) 27%,transparent),inset 0 1px 0 #fff;transition:transform .18s ease,box-shadow .18s ease}
.launcher .launch-app:is(:hover,:focus-visible){transform:translateY(-3px);border-color:var(--glow);box-shadow:0 12px 28px color-mix(in srgb,var(--glow) 21%,transparent),0 0 0 1px color-mix(in srgb,var(--glow) 20%,transparent)}
.launcher .launch-app:is(:hover,:focus-visible) .app-icon{transform:scale(1.055);box-shadow:0 7px 28px color-mix(in srgb,var(--glow) 40%,transparent),0 0 0 3px color-mix(in srgb,var(--glow) 10%,transparent)}
.launcher .launch-app[hidden]{display:none!important}
.launcher .sundo-finder{display:flex;flex-wrap:wrap;align-items:center;gap:9px 14px;padding:14px 15px;margin:6px 0 18px;border:1px solid #c8e2e1;background:linear-gradient(120deg,#f5fbfa,#eef7fc);border-radius:16px}
.launcher .sundo-finder label{font:700 14px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;color:#134e59;flex:0 0 auto}
.launcher .sundo-finder input{flex:1 1 220px;box-sizing:border-box;min-width:0;width:100%;min-height:45px;padding:10px 13px;border:1px solid #9cbfc3;border-radius:10px;background:#fff;color:#123743;font:15px system-ui,-apple-system,"Segoe UI",sans-serif}
.launcher .sundo-finder input:focus-visible{outline:3px solid #438b99;outline-offset:2px}
.launcher .sundo-finder-count{font:600 12px system-ui,-apple-system,"Segoe UI",sans-serif;color:#315c64;flex:0 1 100%;margin:0}
.launcher .sundo-finder-noresult{margin:4px 0 0;font:600 14px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;color:#85492e}
.launcher .sundo-finder-noresult[hidden]{display:none!important}
@media(max-width:480px){.launcher .sundo-finder{padding:11px 12px;gap:7px}.launcher .sundo-finder label{width:100%}.launcher .sundo-finder-count{font-size:11px}}
@media(hover:none){.launcher .launch-app:active{border-color:var(--glow);box-shadow:0 6px 22px color-mix(in srgb,var(--glow) 25%,transparent)}}
@media(prefers-reduced-motion:reduce){.launcher .launch-app,.launcher .launch-app .app-icon{transition:none!important;animation:none!important}.launcher .launch-app:is(:hover,:focus-visible),.launcher .launch-app:is(:hover,:focus-visible) .app-icon{transform:none!important}}

/* SUNDO v23 readability: mobile-first tool cards without miniature labels */
@media (max-width:600px){.launcher .launch-app strong{font-size:14px;line-height:1.4}.launcher .launch-app .app-sub{font-size:12px;line-height:1.42}.launcher .launcher-limit{font-size:12px!important;line-height:1.5}.launcher .launcher-bottom{font-size:12px;line-height:1.45}.launcher .launch-app{gap:7px}.launcher .app-grid{row-gap:12px}}
@media (max-width:440px){.launcher .app-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.launcher .launch-app{padding:16px 10px 14px;min-height:150px;border-radius:18px}.launcher .launch-app .app-icon{width:62px;height:62px;border-radius:18px}.launcher .launch-app .app-icon svg{width:34px;height:34px}}

/* SUNDO v26: CLS-safe original guide illustrations */
.guide-page .sundo-editorial-illustration{margin:20px 0 25px;border:1px solid #c5dfe5;background:#123348;border-radius:15px;overflow:hidden;box-shadow:0 6px 22px rgba(12,43,63,.08)}.guide-page .sundo-editorial-illustration img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}.guide-page .sundo-editorial-illustration figcaption{padding:10px 16px;background:#f4fafd;color:#365b65;font:13px/1.6 system-ui,-apple-system,'Segoe UI',sans-serif}@media(max-width:440px){.guide-page .sundo-editorial-illustration{border-radius:11px}.guide-page .sundo-editorial-illustration figcaption{padding:9px 12px;font-size:12px}}
