
:root{color-scheme:light;--navy:#081b33;--navy-2:#123455;--gold:#d6a84b;--gold-soft:#f5e8c8;--green:#1f6b54;--green-soft:#e4f2ed;--ink:#10243a;--muted:#5d6d7d;--line:#dce3e7;--paper:#fff;--wash:#f4f7f8;--danger:#a53b3b;--warning:#8a5a0a;--shadow:0 18px 55px rgba(8,27,51,.09);--radius:18px;font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:linear-gradient(180deg,#f9fbfb 0,#f2f6f5 100%);color:var(--ink);font-size:16px;line-height:1.5;min-height:100vh}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}a{color:var(--green)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(214,168,75,.52);outline-offset:2px}
.shell{max-width:1180px;margin:0 auto;padding:0 18px}.topbar{background:var(--navy);color:#fff;position:sticky;top:0;z-index:30;border-bottom:1px solid rgba(255,255,255,.12)}.topbar-inner{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;font-weight:800;letter-spacing:.04em}.brand-logo{width:50px;height:50px;object-fit:contain;border-radius:8px}.product-guide{display:flex;gap:20px;align-items:center;margin-top:24px;padding:18px 22px}.product-guide img{width:140px;max-width:30%;height:112px;object-fit:contain;background:white;border-radius:10px}.product-guide p{margin:4px 0 10px;color:var(--muted)}.product-guide small{font-size:.8rem;color:var(--muted)}.brand-line{width:4px;height:38px;border-radius:999px;background:var(--gold)}.brand-name{display:flex;flex-direction:column}.brand-name small{font-size:.75rem;font-weight:600;letter-spacing:.13em;color:#c6d2dd}.top-actions{display:flex;align-items:center;gap:8px}.nav-link{color:#dce7ef;text-decoration:none;padding:9px 11px;border-radius:10px;font-size:.9rem}.nav-link:hover{background:rgba(255,255,255,.08)}.admin-link{border:1px solid rgba(214,168,75,.55);color:#f3d998}.session-pill{display:none;color:#dce7ef;font-size:.83rem;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
main{padding:30px 0 56px}.intro{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(270px,.75fr);gap:22px;align-items:stretch}.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.lookup-card{padding:clamp(22px,4vw,38px);position:relative;overflow:hidden}.lookup-card:before{content:"";position:absolute;width:160px;height:160px;border:22px solid var(--gold-soft);border-radius:42px;transform:rotate(24deg);right:-86px;top:-92px;opacity:.62}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--green);font-weight:800;font-size:.77rem;letter-spacing:.11em;text-transform:uppercase}.eyebrow:before{content:"";width:22px;height:2px;background:var(--gold)}h1{font-size:clamp(1.85rem,4.5vw,3.25rem);line-height:1.16;letter-spacing:-.035em;margin:12px 0 10px;max-width:760px}h2{font-size:clamp(1.35rem,2.5vw,2rem);line-height:1.2;letter-spacing:-.02em;margin:0 0 8px}h3{font-size:1.08rem;margin:0 0 7px}.lede{font-size:1.04rem;color:var(--muted);max-width:700px;margin:0 0 24px}.lookup-grid{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;position:relative}.field{display:flex;flex-direction:column;gap:7px}.field label{font-size:.9rem;font-weight:700;color:#263c50}.field small,.help{font-size:.82rem;color:var(--muted)}input,select,textarea{width:100%;border:1px solid #c8d2d8;background:#fff;color:var(--ink);border-radius:11px;padding:12px 13px;min-height:48px}textarea{min-height:112px;resize:vertical}input::placeholder,textarea::placeholder{color:#85929c}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(31,107,84,.12);outline:none}.btn{border:0;border-radius:11px;padding:12px 18px;min-height:48px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--green);color:#fff}.btn-primary:hover{background:#175541}.btn-gold{background:var(--gold);color:#172336}.btn-secondary{background:#edf2f4;color:var(--navy);border:1px solid #d2dde2}.btn-quiet{background:transparent;color:var(--green);border:1px solid #a9c7bb}.btn-danger{background:#fff1f1;color:var(--danger);border:1px solid #efc4c4}.policy-card{background:var(--navy);color:#fff;padding:26px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:var(--shadow);border-radius:var(--radius);position:relative;overflow:hidden}.policy-card:after{content:"12";position:absolute;right:-8px;bottom:-42px;font-size:9rem;line-height:1;color:rgba(214,168,75,.11);font-weight:900}.policy-number{font-size:3.4rem;color:var(--gold);font-weight:900;line-height:1}.policy-card p{color:#d1dde6;margin:8px 0}.policy-card strong{color:#fff}.policy-foot{position:relative;z-index:1;border-top:1px solid rgba(255,255,255,.16);padding-top:15px;margin-top:24px;font-size:.88rem}
.result{margin-top:18px;padding:18px;border-radius:14px;border:1px solid #c9d7d1;background:#f5fbf8;display:none}.result.show{display:block}.result.error{border-color:#e7c4c4;background:#fff7f7}.result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:.78rem;font-weight:800;background:var(--green-soft);color:var(--green)}.badge.pending{background:#fff3d7;color:var(--warning)}.badge.rejected{background:#ffeded;color:var(--danger)}.badge.completed{background:#e5f4ec;color:#146044}.meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:13px}.meta div{background:#fff;border:1px solid #e0e8e4;border-radius:10px;padding:10px}.meta small{display:block;color:var(--muted)}.meta strong{display:block;margin-top:2px}
.section{margin-top:24px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:13px}.section-head p{margin:0;color:var(--muted);max-width:620px}.workflow{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.step{padding:20px}.step-num{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--gold-soft);color:#66480c;font-weight:900;margin-bottom:14px}.step p{color:var(--muted);margin:0}.panel{padding:clamp(20px,3vw,30px)}.panel-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.panel-grid .wide{grid-column:1/-1}.form-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}.notice{border-left:4px solid var(--gold);background:#fff9e9;padding:12px 14px;border-radius:8px;color:#5e4a1e;font-size:.9rem}.privacy{display:flex;gap:10px;align-items:flex-start;color:var(--muted);font-size:.88rem}.privacy strong{color:var(--ink)}.hidden{display:none!important}.signed-gate{padding:18px;background:#eef4f7;border:1px solid #d7e2e7;border-radius:12px}.signed-gate p{margin:0 0 12px}.subtle{color:var(--muted)}.empty{padding:28px;border:1px dashed #bdcbd2;border-radius:14px;text-align:center;color:var(--muted);background:#fafcfc}.record-list{display:grid;gap:12px}.record{border:1px solid var(--line);border-radius:14px;padding:16px;background:#fff}.record-top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.record p{margin:7px 0 0}.timeline{margin:14px 0 0;padding:0;list-style:none;border-left:2px solid #d9e4df}.timeline li{margin-left:16px;padding:0 0 14px 7px;position:relative}.timeline li:before{content:"";width:9px;height:9px;border-radius:50%;background:var(--green);position:absolute;left:-29px;top:7px}.timeline time{display:block;font-size:.78rem;color:var(--muted)}
.footer{background:#061527;color:#cdd8e1;padding:30px 0}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:22px}.footer h3{color:#fff}.footer p{margin:5px 0}.footer a{color:#f0d791}.footer small{color:#9eb0bf}.toast{position:fixed;right:18px;bottom:18px;max-width:360px;background:var(--navy);color:#fff;border:1px solid rgba(255,255,255,.16);border-radius:12px;padding:13px 16px;box-shadow:0 16px 44px rgba(0,0,0,.22);z-index:80;display:none}.toast.show{display:block}
.admin-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px}.admin-side{position:sticky;top:92px;align-self:start;padding:14px}.admin-side a{display:block;padding:10px 11px;border-radius:9px;color:var(--ink);text-decoration:none}.admin-side a:hover{background:var(--wash)}.admin-main{display:grid;gap:18px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.stat{padding:16px}.stat strong{display:block;font-size:1.6rem;color:var(--navy)}.stat span{color:var(--muted);font-size:.86rem}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}table{border-collapse:collapse;width:100%;min-width:760px;background:#fff}th,td{text-align:left;padding:11px 12px;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:.76rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);background:#f7f9fa}td{font-size:.9rem}.row-actions{display:flex;gap:7px;flex-wrap:wrap}.small-btn{border:1px solid #c8d4d9;background:#fff;border-radius:8px;padding:6px 9px;cursor:pointer;font-size:.8rem;color:var(--navy)}.small-btn:hover{border-color:var(--green);color:var(--green)}dialog{border:0;border-radius:18px;padding:0;max-width:620px;width:calc(100% - 28px);box-shadow:0 28px 80px rgba(0,0,0,.26)}dialog::backdrop{background:rgba(6,21,39,.62)}.dialog-body{padding:24px;max-height:min(86vh,760px);overflow:auto}.dialog-head{display:flex;justify-content:space-between;gap:16px}.icon-btn{border:0;background:#eef2f4;border-radius:9px;width:36px;height:36px;cursor:pointer}.file-note{font-size:.8rem;color:var(--muted);margin-top:5px}.danger-text{color:var(--danger)}.code-box{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#07182c;color:#f2d791;padding:12px;border-radius:10px;overflow-wrap:anywhere}
@media (min-width:760px){.session-pill{display:block}}
@media (max-width:900px){.intro{grid-template-columns:1fr}.workflow{grid-template-columns:1fr}.admin-layout{grid-template-columns:1fr}.admin-side{position:static;display:flex;overflow:auto}.admin-side a{white-space:nowrap}.stats{grid-template-columns:1fr 1fr}.footer-grid{grid-template-columns:1fr 1fr}.footer-grid>div:first-child{grid-column:1/-1}}
@media (max-width:680px){.shell{padding:0 14px}.topbar-inner{min-height:62px}.brand-name span{font-size:.9rem}.brand-name small{display:none}.nav-link{display:none}.admin-link{display:inline-flex;font-size:.8rem;padding:7px 9px}.lookup-grid,.panel-grid{grid-template-columns:1fr}.panel-grid .wide{grid-column:auto}.lookup-grid .btn{width:100%}.meta{grid-template-columns:1fr}.result-head,.record-top,.section-head{flex-direction:column;align-items:flex-start}.stats{grid-template-columns:1fr 1fr}.footer-grid{grid-template-columns:1fr}.footer-grid>div:first-child{grid-column:auto}.policy-number{font-size:2.8rem}h1{font-size:2rem}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation-duration:.01ms!important;transition-duration:.01ms!important}}

.serial-shell{max-width:1080px;margin:auto;padding:30px 18px 60px}.serial-intro{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px}.serial-lookup{padding:32px}.serial-lookup h1{font-size:2.5rem;line-height:1.16}.serial-form{display:flex;gap:12px;align-items:end}.serial-form .field{flex:1}.serial-product{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;display:grid;place-items:center}.serial-product img{width:100%;max-height:190px;object-fit:contain}.serial-product p{font-size:14px;color:var(--muted);text-align:center}.serial-result{margin-top:20px;padding:22px;background:#eef5f1;border-radius:12px;border:1px solid #c6dcd0}.serial-result h2{margin:0 0 8px;font-size:1.7rem}.serial-result.expired{background:#fff4e8;border-color:#e5ccaa}.serial-result.unknown{background:#f4f6f8;border-color:#d8dee4}.serial-meta{margin:8px 0;color:var(--muted)}.inventory-stats{display:flex;gap:14px;flex-wrap:wrap;margin:18px 0}.inventory-stat{padding:15px 22px;min-width:170px}.inventory-stat strong{display:block;font-size:26px}.inventory-stat span{color:var(--muted);font-size:14px}.inventory-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.inventory-tools input{max-width:340px}.import-area{min-height:110px;font-family:ui-monospace,monospace}.inventory-note{font-size:14px;color:var(--muted)}.test-label{display:inline-block;background:#fff2c7;color:#77540a;padding:3px 8px;border-radius:5px;font-size:12px}.status-active{color:#156546;font-weight:700}.status-expired{color:#985412;font-weight:700}.admin-footer{font-size:14px;margin-top:18px}.date-preview{padding:12px;background:#f1f5f8;border-radius:8px;margin-top:12px}.serial-footer{margin-top:24px;display:flex;gap:16px;flex-wrap:wrap;justify-content:space-between;color:var(--muted);font-size:14px}.inventory-table th{font-size:14px;text-transform:none;letter-spacing:0}.inventory-table td{font-size:14px}.inventory-table{min-width:740px}.inventory-actions{margin-top:20px}.serial-title-note{max-width:700px;color:var(--muted)}
@media(max-width:740px){.serial-intro{grid-template-columns:1fr}.serial-product{display:none}.serial-form{display:block}.serial-form button{margin-top:12px;width:100%}.serial-lookup{padding:24px}.serial-lookup h1{font-size:2rem}.serial-shell{padding:24px 14px}.inventory-stat{min-width:145px;flex:1}.serial-footer{display:block}.serial-footer a{display:inline-block;margin:7px 10px 7px 0}}
.machine-share{margin-top:18px;padding-top:18px;border-top:1px solid #d7dfe5}.machine-share label{display:block;font-weight:700;font-size:.85rem;margin-bottom:8px}.share-controls{display:flex;gap:10px}.share-controls input{min-width:0;font-size:.8rem}.share-controls button{flex-shrink:0;font-size:.85rem}.machine-share small{display:block;color:var(--muted);margin-top:8px;font-size:.78rem}@media(max-width:480px){.share-controls{flex-direction:column}.share-controls button{width:100%}}
/* Customer-only palette: retain administration styles and existing access controls. */
body[data-page="customer"]{background:#f5f3ef;color:#13283d}
.customer-shell{max-width:1060px;padding-top:34px}.customer-shell .serial-intro{display:block}
.customer-shell .serial-lookup{position:relative;isolation:isolate;overflow:hidden;padding:clamp(24px,5vw,50px);border-color:#e1dfd9;background:#fffefa;box-shadow:0 16px 48px #152a3d0b}
.machine-watermark{position:absolute;z-index:-1;pointer-events:none;object-fit:contain;width:470px;height:390px;right:-42px;top:12px;opacity:.10;mix-blend-mode:multiply}
.lookup-content{position:relative}.customer-shell .eyebrow{color:#74603b}.customer-shell h1{font-size:clamp(2rem,4.5vw,3.1rem);max-width:670px;line-height:1.13;letter-spacing:-.04em;margin:15px 0 16px}.customer-shell .lede{max-width:560px;font-size:1rem;line-height:1.65;margin-bottom:26px}
.customer-shell .serial-form{max-width:710px;gap:12px}.customer-shell input{background:#ffffffed;border-color:#bfc8ce}.customer-shell input:focus{border-color:#1e405d;box-shadow:0 0 0 3px #1e405d16}.customer-shell .btn-primary{background:#122d46;color:#fff}.customer-shell .btn-primary:hover{background:#224862}.customer-shell .btn-primary:disabled{opacity:.6}.lookup-hint{font-size:.8rem;color:#66717a;margin:12px 0 0}
.customer-shell .serial-result{background:#f2f5f7;border:1px solid #cbd5df;padding:22px;margin-top:23px}.customer-shell .serial-result h2{font-size:1.4rem}.customer-shell .serial-result.expired{background:#fff5e7;border-color:#e7d1aa}.customer-shell .serial-result.unknown{background:#f4f3ef;border-color:#d9d7d1}.warranty-dates{display:grid;grid-template-columns:1fr 1.25fr;gap:12px;margin:20px 0 0}.warranty-dates div{border-top:1px solid #d7dfe5;padding-top:12px}.warranty-dates dt{font-size:.78rem;color:#566572}.warranty-dates dd{margin:4px 0 0;font-size:1.15rem;font-weight:700}.warranty-dates .expiry dd{font-size:1.75rem;color:#132e47;line-height:1.25}.expiry-note{color:#65717b;font-size:.75rem;margin:10px 0 0}.serial-meta{font-size:.9rem}
.customer-resources{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}.resource-card{padding:27px 28px;background:#fff;border:1px solid #e0dfda;border-radius:17px}.resource-kicker{display:block;color:#79623c;font-size:.69rem;letter-spacing:.12em;font-weight:800}.resource-card h2{font-size:1.35rem;margin:10px 0}.resource-card p{font-size:.92rem;color:#5d6a75;margin:0 0 20px;max-width:380px}.resource-link{color:#173b59;display:flex;align-items:center;justify-content:space-between;font-weight:700;text-decoration:none;padding:10px 0;gap:12px}.resource-link:hover{text-decoration:underline}.secondary-resource{border-top:1px solid #ebeae6;font-weight:600}.resource-format{display:block;font-size:.73rem;color:#737e86;margin-top:8px}.technical-call{font-size:.92rem;width:100%;padding-left:10px;padding-right:10px}.general-contact{display:block;color:#5d6a75;font-size:.8rem;margin-top:14px;text-align:center;text-underline-offset:3px}.capsule-banner{display:flex;align-items:center;justify-content:space-between;gap:26px;padding:26px 28px;margin-top:20px;background:#142b40;border-radius:17px;color:#fff}.capsule-banner .resource-kicker{color:#debd7d}.capsule-banner h2{font-size:1.22rem;max-width:400px;margin:8px 0 0;line-height:1.35}.btn-capsule{flex-shrink:0;background:#e9d4aa;color:#162a3c;font-size:.85rem;min-height:46px}.btn-capsule:hover{background:#f4dfb5}.customer-shell .serial-footer{font-size:.75rem;gap:12px;margin-top:22px}.customer-shell .serial-footer a{color:#5d6a75}
@media(max-width:740px){.customer-shell{padding:22px 14px 36px}.customer-shell .serial-lookup{padding:25px 21px}.machine-watermark{width:350px;height:310px;right:-90px;top:50px;opacity:.085}.customer-shell .serial-form{display:block}.customer-shell .serial-form button{margin-top:12px;width:100%}.customer-shell h1{font-size:2rem}.customer-resources{grid-template-columns:1fr;gap:14px;margin-top:16px}.resource-card{padding:23px}.capsule-banner{align-items:stretch;flex-direction:column;gap:19px;padding:24px;margin-top:16px}.capsule-banner h2{font-size:1.24rem}.customer-shell .serial-footer{display:flex;flex-wrap:wrap}.customer-shell .serial-result{padding:18px}.warranty-dates{gap:8px}.warranty-dates .expiry dd{font-size:1.5rem}.customer-shell .serial-footer a{margin:0}}
@media(max-width:350px){.customer-shell .serial-lookup{padding:22px 18px}.customer-shell h1{font-size:1.8rem}.customer-shell .serial-result{padding:15px}.warranty-dates{grid-template-columns:1fr}.resource-card{padding:21px}.technical-call{font-size:.85rem}}

