*{box-sizing:border-box}body{margin:0;font:16px/1.5 Arial,sans-serif;background:#f2f5f8;color:#17313e}header{max-width:1200px;margin:auto;padding:28px 30px;border-bottom:1px solid #d7e0e7;display:flex;justify-content:space-between;align-items:center;gap:20px}header>span{font-size:13px;color:#485861}.brand{font-size:25px;font-weight:bold;text-decoration:none;color:#17313e;letter-spacing:1px}.brand span{color:#87447e}.brand small{font-size:10px;letter-spacing:2px;display:block}main{max-width:1200px;margin:auto;display:grid;grid-template-columns:1fr 1.15fr;gap:60px;padding:50px 30px}aside{padding-top:32px}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:bold;color:#87447e}h1{font-size:44px;line-height:1.15;letter-spacing:-1px}h1 em{font-style:normal;color:#87447e}h2{font-size:23px;margin:0 0 24px}.spec{margin:20px 0;color:#536e7c}.spec b{font-size:28px;display:inline-block;width:100px;color:#17313e}.card{background:white;padding:32px;border:1px solid #dae3e9;border-radius:18px;box-shadow:0 12px 40px #17313e08}label{display:block;font-size:14px;font-weight:bold;margin-bottom:18px}input,textarea{font:inherit;font-size:16px;margin-top:8px;width:100%;display:block;padding:12px;border:1px solid #cedbe3;border-radius:8px;background:#fbfcfd;color:#17313e}input:focus,textarea:focus{outline:2px solid #87447e;outline-offset:2px}fieldset{padding:0;margin:0;border:0;min-width:0}.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}button,.button{font:inherit;font-size:15px;font-weight:bold;border:0;border-radius:8px;padding:12px 18px;cursor:pointer;text-decoration:none;display:inline-block}button:disabled{opacity:.6;cursor:wait}.primary,.button{background:#87447e;color:white}.primary{margin-top:24px;width:100%;padding:15px}.secondary{background:white;border:1px solid #afc9d3;color:#146179}#drop{display:flex;flex-direction:column;align-items:center;gap:10px;border:1.5px dashed #86b6c4;background:#fcf6fb;border-radius:12px;padding:22px;color:#87447e;text-align:center}#drop>span:not(.upload-icon){font-size:14px;color:#485861}.upload-icon{font-size:38px;line-height:1}#files{margin-top:18px}.file{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 0;border-bottom:1px solid #e4ebef;overflow-wrap:anywhere}.file>span{flex:1;min-width:0;font-size:14px}.file small{display:block;font-size:12px;color:#485861}.remove{background:none;color:#485861;font-size:23px;padding:5px}.hint{font-size:13px;line-height:1.6;color:#485861;margin-top:24px}.center{text-align:center}.error{color:#9c3028;background:#fff0ef;padding:15px;border-radius:8px;font-size:14px}.progress-text{display:flex;justify-content:space-between;gap:15px;font-size:13px;margin-top:22px}progress{width:100%;height:8px;accent-color:#87447e}.text-button{background:none;color:#87447e;width:100%;font-size:13px}.trap{position:absolute;left:-9999px;width:1px}#success{text-align:center;padding:30px 0}.check{color:#87447e;font-size:52px}code{overflow-wrap:anywhere;font-size:13px}footer{max-width:1140px;margin:auto;border-top:1px solid #d7e0e7;padding:24px 0;display:flex;justify-content:space-between;gap:20px;font-size:13px;color:#485861}footer a{color:inherit}.download-main{display:block;max-width:850px}[hidden]{display:none!important}@media(max-width:800px){header{padding:20px}header>span{font-size:12px}main{display:block;padding:25px 20px}aside{padding:0 0 25px}h1{font-size:34px}.card{padding:24px}.grid{grid-template-columns:1fr;gap:0}.spec{display:inline-block;margin:8px 18px 8px 0;font-size:12px}.spec b{font-size:24px;width:auto;margin-right:8px}footer{margin:20px;padding:20px 0}.file .button{padding:10px 14px;font-size:14px}}

select{font:inherit;font-size:16px;margin-top:8px;width:100%;padding:12px;border:1px solid #cedbe3;border-radius:8px;background:#fbfcfd;color:#17313e}select:focus{outline:2px solid #87447e}.brand-logo{display:flex;align-items:center;gap:16px;letter-spacing:0;font-size:20px}.brand-logo img{width:82px;height:76px;object-fit:contain}.brand-logo>span{color:#17313e}.brand-logo small{font-size:10px;font-weight:normal;margin-top:4px}.production{padding-top:8px;border-top:1px solid #e7d8e6;margin-top:8px}@media(max-width:600px){.brand-logo{font-size:16px;gap:10px}.brand-logo img{width:64px;height:60px}.brand-logo small{font-size:8px}header>span{max-width:90px;text-align:right}}

.remember-row{margin:12px 0}.remember{display:flex;align-items:center;gap:10px;font-size:14px}.remember input{width:18px;height:18px;margin:0}.remember-row .text-button{width:auto;padding:8px 0;text-align:left}

.shade-choice{display:flex;align-items:center;gap:10px}.shade-choice select{flex:1;min-width:0}.shade-palette{display:flex;flex:0 0 90px;height:42px;margin-top:8px;border:1px solid #c8beb2;border-radius:8px;overflow:hidden}.shade-palette span{flex:1}.shade-palette.is-empty{opacity:.55}.shade-caption{font-size:12px;margin:8px 0 0;color:#594a56}.shade-note{font-size:11px;line-height:1.4;margin:5px 0 14px;color:#485861}

.shade-palette{flex:0 0 76px;width:76px;height:46px;border:2px solid #9c8b77;box-shadow:0 2px 5px #00000012}.shade-palette span{display:block;width:100%;height:100%}

#color-field>label{margin-bottom:8px}.shade-dropdown{position:relative}.shade-trigger{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:9px 12px;background:#fbfcfd;border:1px solid #cedbe3;text-align:left;font-weight:normal;color:#17313e;font-size:16px}.shade-trigger:focus-visible,.shade-option:focus-visible{outline:2px solid #87447e;outline-offset:2px}#shade-selected{flex:1}.menu-swatch{display:inline-block;flex:0 0 52px;width:52px;height:28px;border:1px solid #998a75;border-radius:4px}.shade-arrow{color:#485861}.shade-options{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:30;max-height:290px;overflow-y:auto;background:white;border:1px solid #b7aeb5;border-radius:8px;padding:5px;box-shadow:0 8px 25px #17313e25}.shade-option{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:8px 10px;background:white;color:#17313e;text-align:left;font-size:15px;font-weight:normal;border-radius:4px}.shade-option:hover,.shade-option:focus,.shade-option[aria-selected="true"]{background:#f3e8f1}.shade-trigger:disabled{cursor:default;opacity:.65}

.material-field>label{margin-bottom:8px}.material-choice{display:flex;gap:8px;align-items:center}.material-choice select{margin-top:0;min-width:0;flex:1}.zirconia-info{background:#f3e8f1;color:#87447e;font-size:12px;padding:9px;flex:0 0 66px;line-height:1.3}.image-dialog{padding:14px;border:0;border-radius:12px;width:min(960px,94vw);max-height:92vh;background:#fff;box-shadow:0 20px 80px #0005}.image-dialog::backdrop{background:#000b}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.dialog-heading h2{margin:0;font-size:19px}.dialog-heading button{background:#f3e8f1;color:#87447e;padding:8px 12px}.image-dialog img{display:block;width:100%;height:auto;max-height:calc(92vh - 85px);object-fit:contain;background:#000;border-radius:6px}

.history-link{color:#87447e;font-size:14px;font-weight:bold;text-decoration:none}.history-card{margin-bottom:22px}.history-card h2{margin-bottom:8px}.history-meta{font-size:13px;color:#485861}.download-state{display:inline-block;padding:5px 9px;border-radius:6px;font-size:12px;font-weight:bold;margin-top:5px}.state-done{background:#e4f3e9;color:#286642}.state-pending{background:#fff2d9;color:#895b11}.state-old{background:#edf0f3;color:#637481}.history-card .file{align-items:center}.history-card .file>span small{margin-top:4px}.history-login{max-width:550px;margin:auto}.history-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.history-login input{margin-bottom:16px}

.app-actions{display:flex;gap:16px;align-items:center}.app-actions button{font-size:12px;padding:8px 12px}.order-section{padding-top:18px;border-top:1px solid #e5d9e3}.order-section h3{font-size:18px;margin:0 0 15px}.teeth-row{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:3px;margin:8px 0}.tooth{padding:9px 0;font-size:12px;font-weight:bold;background:#f3f5f7;color:#53616c;border:1px solid #ccd5dc;border-radius:5px}.tooth[aria-pressed=true]{background:#87447e;color:white;border-color:#87447e}.teeth-orientation{display:flex;justify-content:space-between;font-size:10px;color:#485861}.teeth-field{margin:8px 0 20px}.urgent-label{padding-top:28px}.order-dialog{padding:24px;border:0;border-radius:14px;width:min(680px,94vw);max-height:90vh;overflow:auto}.order-dialog::backdrop{background:#0009}.dialog-actions{display:flex;gap:12px;align-items:center}.dialog-actions .primary{margin:0;width:auto}.review-pair{display:flex;justify-content:space-between;gap:20px;padding:8px 0;border-bottom:1px solid #eee;font-size:14px}.review-pair span:last-child{text-align:right;white-space:pre-wrap}.review-files{font-size:13px;overflow-wrap:anywhere}.integration-banner{padding:15px;background:#f6eaf4;border:1px solid #e0c9da;border-radius:10px}.shipping-summary{white-space:pre-wrap}#stl-canvas{width:100%;height:440px;background:#edf0f5;overflow:hidden;border-radius:10px}#stl-canvas canvas{display:block;width:100%;height:100%}#order-pdf{margin:15px}dialog{border:0}dialog::backdrop{background:#0009}@media(max-width:600px){.app-actions{gap:8px;flex-direction:column}.teeth-row{gap:2px}.tooth{font-size:10px}.urgent-label{padding-top:0}.dialog-actions{flex-direction:column}.dialog-actions button{width:100%!important}#stl-canvas{height:330px}}

/* Brand lettering and readable light surfaces. */
:root{color-scheme:light}
body{color:#152532}
h1,h2,h3,label,legend,.card p,.card strong,.review-pair{color:#152532}
input,select,textarea{color:#152532;background:#fff;border-color:#aab5be}
input::placeholder,textarea::placeholder{color:#566570;opacity:1}
input[readonly]{background:#eef2f5;color:#152532}
.primary,.button{background:#87447e;color:#fff}
.hint,.shade-note,.shade-caption,.history-meta,.file small,.teeth-orientation{color:#485861}
.shade-note{font-size:12px}
.shade-trigger:disabled{opacity:1;color:#152532}
.brand-logo>span{font-size:0;padding-top:29px;min-width:190px;background:url('brand-name-nec.svg') left top/190px 27px no-repeat}
.brand-logo small{font:11px Arial,sans-serif;color:#485861;letter-spacing:1px;margin-top:2px}
@media(max-width:600px){.brand-logo>span{min-width:155px;padding-top:26px;background-size:155px 24px}.brand-logo small{font-size:10px;letter-spacing:.5px}}

@media(max-width:600px){header{flex-wrap:wrap}.app-actions{width:100%;flex-direction:row;flex-wrap:wrap}.brand-logo{max-width:100%}}

/* Intro panel: keep all text readable on its dark surface. */
main>aside{background:#152532;color:#fff;border-radius:14px;padding:28px;align-self:start}
main>aside h1,main>aside p,main>aside .spec,main>aside .spec b{color:#fff}
main>aside .eyebrow,main>aside h1 em{color:#e4b9dc}
main>aside .hint{color:#e2e9ed}
