*{box-sizing:border-box}body{margin:0;background:#f8f6f0;color:#302d28;font:15px/1.5 'DM Sans',Arial,sans-serif;color-scheme:light}header{display:flex;justify-content:space-between;align-items:center;gap:20px;max-width:1260px;margin:auto;padding:20px 32px;border-bottom:1px solid #302d2824}header img{max-width:42vw;height:auto;display:block}.header-actions{display:flex;align-items:center;gap:24px}a{color:inherit;text-underline-offset:4px}.language-switch{display:flex;gap:10px;font-size:12px}.language-switch [aria-current]{font-weight:bold}main{max-width:1160px;margin:auto;padding:28px 32px}.intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:16px}h1{font-size:36px;font-weight:500;letter-spacing:-1px;margin:8px 0 0}h2{font-weight:500;margin:8px 0}p{margin:8px 0}.back{font-size:12px;text-decoration:none}.tools,.result-actions{display:flex;gap:10px}button,select,input{font:inherit}button{cursor:pointer;min-height:44px;border:1px solid #302d2844;border-radius:6px;background:transparent;color:inherit;padding:10px 16px}button:disabled{opacity:.5;cursor:default}.primary{background:#302d28;color:#f8f6f0}button:hover:not(:disabled){box-shadow:0 0 0 1px currentColor}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible,select:focus-visible{outline:3px solid #9f6b38;outline-offset:3px}[hidden]{display:none!important}.scanner{background:#e9e3d8;border-radius:8px;overflow:hidden}#empty{min-height:460px;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:28px}#empty svg{width:53px;height:92px;fill:#c9b998;margin-bottom:12px}#empty button{margin-top:20px}#photoWrap{position:relative;max-width:100%;width:fit-content;margin:auto}#photo{display:block;max-width:100%;height:auto;max-height:70vh;width:auto;touch-action:none}#target{position:absolute;left:50%;top:50%;width:28px;height:28px;border:3px solid white;border-radius:50%;box-shadow:0 0 0 1px #3338;transform:translate(-50%,-50%);pointer-events:none}#lens{position:absolute;top:16px;right:16px;width:86px;height:86px;border:3px solid white;border-radius:50%;pointer-events:none;box-shadow:0 3px 12px #0003}#matches{display:flex;gap:10px;align-items:flex-end;position:absolute;bottom:14px;left:12px;right:12px;justify-content:center;pointer-events:none}#matches button{pointer-events:auto;width:30%;max-width:170px;min-width:0;background:#faf8f1ef;color:#302d28;border:1px solid #fff9;padding:9px 5px;font-size:13px;box-shadow:0 2px 8px #0002;overflow-wrap:anywhere}#matches button[aria-pressed=true]{outline:2px solid #302d28;outline-offset:2px}#matches svg{width:32px;height:55px;display:block;margin:0 auto 5px}#matches span{display:block}.caption{display:flex;gap:20px;justify-content:space-between;align-items:center;font-size:12px;padding:10px 0}.caption label{white-space:nowrap}details{font-size:13px;margin:4px 0 18px}summary{cursor:pointer}.coordinates{display:flex;gap:20px}.coordinates label{flex:1}.coordinates input{width:100%}#field{position:relative;min-height:360px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:45px 20px 28px;border-radius:8px}#field>svg{width:100px;height:174px;filter:drop-shadow(0 1px 1px #0003)}#field h2{font-size:26px}#field p{font-size:13px}#enlarge{position:absolute;right:12px;top:12px;border-radius:30px;background:#f8f6f0e8;color:#302d28}#reset{font-size:12px;border:0;text-decoration:underline}.result-actions{margin:18px 0}.result-actions>*{flex:1}.values{padding:0 4px}footer{margin-top:28px;border-top:1px solid #302d2824;padding-top:14px;font-size:12px;color:#635e56}dialog{border:1px solid #302d2833;border-radius:12px;background:#f8f6f0;color:#302d28;padding:28px;width:460px;max-width:calc(100% - 24px);max-height:90vh}dialog::backdrop{background:#302d2866;backdrop-filter:blur(3px)}dialog form{display:grid;gap:16px}dialog h2{padding-right:28px}.close{position:absolute;top:10px;right:10px;border:0;font-size:24px;background:#f8f6f0d9;color:#302d28;z-index:2}dialog label{display:grid;gap:5px}dialog input,dialog select{width:100%;min-height:44px;border:1px solid #302d2844;border-radius:5px;background:white;color:#302d28;padding:9px}dialog a{font-size:13px;text-align:center}#saveError{color:#934222}#status:empty{display:none}#status{padding:10px 0}#largeDialog{width:90vw;height:88vh;padding:0}#largeField{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:50px 20px}#largeField svg{height:45vh;width:auto}#largeField h2{font-size:30px}@media(max-width:640px){header{padding:14px 16px}.header-actions{gap:12px;font-size:12px}main{padding:20px 12px}.intro{display:block}.tools{margin-top:20px}.tools>*{flex:1;padding:10px 8px}h1{font-size:30px}#empty{min-height:390px}#photo{max-height:68vh}#matches{gap:7px;bottom:10px;left:8px;right:8px}#matches button{font-size:12px;padding:7px 3px;width:32%}.caption{display:block}.caption label{display:block;padding:4px 0}#field{min-height:300px}.result-actions{flex-direction:column}.coordinates{gap:10px}}

/* Compact scanner heading: one title, no introductory subtitle. */
header{padding:12px 24px;gap:16px}header>a{flex:none}header img{width:180px}header h1{font-size:20px;line-height:1.2;letter-spacing:0;margin:0 auto 0 0}main{padding-top:16px}.intro{justify-content:flex-end;margin-bottom:12px}#empty{min-height:360px}@media(max-width:640px){header{padding:12px;gap:10px}header img{width:120px;max-width:30vw}header h1{font-size:18px}.header-actions{gap:8px}.intro{display:flex}.tools{margin-top:0;width:100%}main{padding-top:12px}}

/* Aligned with the Color Studio applications: title top-right, return links below. */
header.studio-header{max-width:1260px;min-height:77px;padding:13px 28px 11px;align-items:flex-start;gap:18px}
header.studio-header .studio-brand{display:block;flex:none;min-width:0}
header.studio-header .studio-brand img{width:clamp(155px,18vw,238px);max-width:42vw;height:auto}
header.studio-header .studio-heading{display:flex;flex-direction:column;align-items:flex-end;margin-left:auto;min-width:0;gap:9px;text-align:right}
header.studio-header h1{font:500 clamp(22px,2.6vw,34px)/1.12 'DM Sans',Arial,sans-serif;letter-spacing:-.04em;margin:0;white-space:nowrap}
header.studio-header .studio-links{display:flex;gap:17px;justify-content:flex-end;align-items:center;font-size:11px;line-height:1.2;padding-top:2px;color:#6f675e}
header.studio-header .studio-links a{color:inherit;text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:3px;white-space:nowrap}
@media(max-width:640px){
header.studio-header{padding:11px 13px 9px;min-height:56px;gap:8px}
header.studio-header .studio-brand img{width:clamp(128px,36vw,165px);max-width:42vw}
header.studio-header .studio-heading{gap:6px}
header.studio-header h1{font-size:clamp(20px,5.8vw,27px)}
header.studio-header .studio-links{font-size:10px;gap:10px;padding-top:0}
}
