.pref-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;background:linear-gradient(120deg,#142844,#102037);color:#eef5ff;border:1px solid #2c4565;border-radius:16px;padding:26px}.pref-hero h2{font-size:28px;margin:8px 0}.pref-hero select{min-width:200px;display:block;margin-top:8px}.pref-tabs,.pref-toolbar,.pref-pager,.pref-dialog-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.pref-tabs{border-bottom:1px solid #2c4565;padding-bottom:12px}.pref-tabs button[aria-pressed=true]{background:#162b49;color:white}.pref-tabs span{margin-left:10px;opacity:.65}.pref-toolbar{margin:20px 0}.pref-toolbar input[type=search]{flex:1;min-width:170px}.pref-toolbar label{display:flex;align-items:center;gap:5px}.pref-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:18px}.pref-card{border:2px solid #2c4565;border-radius:12px;overflow:hidden;background:#101d30;color:#eef5ff}.pref-card.chosen{border-color:#426ee8;box-shadow:0 0 0 2px #426ee814}.pref-preview-button{padding:0;display:block;width:100%;border:0;border-radius:0;overflow:hidden;cursor:zoom-in}.pref-preview-button img{width:100%;height:228px;object-fit:contain;background:#16212f}.pref-demo{height:228px;position:relative;overflow:hidden;background:linear-gradient(140deg,#334a5e,#a0b1a4);isolation:isolate}.pref-demo-scene{position:absolute;inset:20% 15% 0;background:linear-gradient(135deg,#d2c4a340,#587681);border-radius:80px 80px 0 0}.pref-demo-scene span{position:absolute;top:45%;width:100%;text-align:center;color:#ffffffa0;font-size:12px}.pref-demo-text{position:absolute;left:50%;width:94%;text-align:center;font-weight:900;text-shadow:1px 1px 2px black,-1px -1px 2px black;transform:translate(-50%,-50%);line-height:1.4}.pref-demo-label{position:absolute;bottom:8px;left:8px;font-size:10px;color:white;background:#0008;border-radius:4px;padding:3px 6px}.pref-demo-banner{position:absolute;top:8%;left:5%;right:5%;background:#2151a8;color:white;font-weight:bold;font-size:12px;padding:8px}.pref-card-body{padding:14px}.pref-card-title{font-weight:700;font-size:15px}.pref-card-body p{font-size:12px;line-height:1.7;color:#99adc5;max-height:60px;overflow:auto}.pref-card-body small{display:block;color:#99adc5;margin:8px 0}.pref-tags{display:flex;flex-wrap:wrap;gap:5px}.pref-tags span{font-size:10px;padding:3px 6px;border-radius:4px;background:#182a40;color:#b0c0d4}.pref-weight{display:flex;align-items:center;gap:8px;font-size:12px;margin-top:12px}.pref-weight input{width:64px}.pref-pager{justify-content:center;margin-top:20px}.pref-group{border:1px solid #2c4565;border-radius:10px;margin:12px 0;padding:16px}.pref-group>summary{font-size:16px;font-weight:700;cursor:pointer}.pref-group>summary span{font-size:12px;float:right;color:#99adc5;font-weight:400}.pref-fields-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:22px;margin-top:20px}.pref-field{display:flex;flex-direction:column;gap:8px;min-width:0}.pref-field>label{font-weight:600;font-size:13px}.pref-field small{color:#99adc5;line-height:1.5;word-break:break-word}.pref-field textarea{resize:vertical}.pref-field pre{white-space:pre-wrap;font-size:11px}.pref-field input:disabled,.pref-field select:disabled,.pref-field textarea:disabled{background:#182a40;color:#667085}.pref-weight-list label{display:flex;justify-content:space-between;align-items:center;margin:6px 0}.pref-weight-list input{width:72px}.pref-savebar{position:sticky;bottom:0;display:flex;gap:18px;align-items:center;background:#101d30f5;color:#eef5ff;border:1px solid #2c4565;box-shadow:0 -5px 25px #0f172a0a;border-radius:12px;padding:18px;z-index:10}.pref-savebar label{flex:1;font-size:12px}.pref-savebar input{display:block;width:100%;margin-top:5px}.pref-savebar [role=status]{font-size:12px;max-width:300px;color:#b0c0d4}.pref-dialog{background:#101d30;color:#eef5ff;width:min(520px,90vw);border:0;border-radius:16px;padding:24px}.pref-dialog::backdrop{background:#102138a0}.pref-dialog-head{justify-content:space-between;margin-bottom:16px}.pref-dialog .pref-demo{height:480px;max-width:300px;margin:auto}.pref-dialog video,.pref-dialog img{max-height:60vh;max-width:100%;display:block;margin:auto}.pref-dialog p{font-size:13px;line-height:1.8;color:#99adc5}.pref-demo.playing .pref-demo-text{animation:pref-enter 3s ease-in-out infinite}@keyframes pref-enter{0%,8%{opacity:0;transform:translate(-50%,10px) scale(.85)}25%,85%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-60%) scale(1)}}@media(prefers-reduced-motion:reduce){.pref-demo.playing .pref-demo-text{animation:none}}@media(max-width:700px){.pref-hero{display:block}.pref-hero select{width:100%}.pref-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pref-demo{height:190px}.pref-card-body{padding:10px}.pref-weight{flex-wrap:wrap}.pref-savebar{flex-wrap:wrap}.pref-savebar label{flex-basis:100%}.pref-fields-grid{grid-template-columns:1fr}}
@media(max-width:850px){.preferences-page .side{padding:12px;min-width:0;overflow:hidden}.preferences-page .side .brand{margin-bottom:8px}.preferences-page .side .nav{display:flex;overflow-x:auto;gap:6px;padding-bottom:4px}.preferences-page .side .nav-label{display:none}.preferences-page .side .nav a{flex:0 0 auto;white-space:nowrap;font-size:12px;padding:6px 10px}.preferences-page .side .brand-mark{width:30px;height:30px}.preferences-page .side .eyebrow{display:none}.preferences-page .pref-hero{padding:20px}.preferences-page .pref-hero p{font-size:13px}.preferences-page .pref-savebar{gap:8px;padding:12px}.preferences-page .pref-tabs{gap:7px}.preferences-page .pref-tabs button{font-size:12px;padding:10px}.preferences-page .pref-tabs span{margin-left:5px}}
/* Real rendered samples replace schematic animations. */
.pref-target{display:flex;flex-direction:column;gap:10px;min-width:210px}.pref-target small{color:#a8bed4}.pref-explainer{border-left:3px solid #32b6ee;background:#14243b;padding:16px;margin:16px 0;line-height:1.7}.pref-explainer strong{font-size:17px}.pref-explainer p{margin:6px 0}.pref-explainer small{color:#a8bed4}.pref-cards{grid-template-columns:repeat(auto-fill,minmax(255px,1fr))}.pref-preview-button{position:relative;cursor:pointer;background:#081422}.pref-preview-button img{height:340px;object-fit:contain}.pref-play{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:8px 14px;border-radius:22px;background:#07101de8;color:#fff;border:1px solid #9ec8ee;font-size:13px}.pref-no-preview{height:340px;display:flex;flex-direction:column;justify-content:center;gap:14px;background:#192b40;padding:24px;color:#c1d0df}.pref-no-preview span{font-size:13px}.pref-card-body p{max-height:none}.pref-warning{color:#efce87!important}.pref-dialog{width:min(740px,94vw);max-height:94vh;overflow:auto}.pref-dialog video{width:auto;height:65vh;max-height:65vh;background:#000}.pref-customer-dialog{width:min(760px,94vw)}#pref-customer-search{width:100%;padding:14px}.pref-customer-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;border-bottom:1px solid #2c4565}.pref-customer-row small{display:block;color:#a8bed4;margin-top:5px}.pref-customer-row button,.pref-customer-row a{white-space:nowrap}.pref-customer-row a{font-size:12px}.pref-customer-dialog #pref-customer-results{max-height:52vh;overflow:auto}@media(max-width:600px){.pref-cards{grid-template-columns:1fr}.pref-preview-button img{height:370px}.pref-target{margin-top:18px}.pref-dialog video{height:58vh;max-height:58vh}}
.pref-family{min-width:0}.pref-family h3{margin:0 0 10px;font-size:18px}.pref-family>details{padding:12px 0}.pref-family summary{cursor:pointer;color:#b3cbe5;padding:10px 0}.pref-variants{display:grid;gap:12px}.pref-aliases{font-size:11px;color:#8ca8c5;line-height:1.6}.pref-favorite{color:#5fd4ff;font-size:13px;margin:8px 0}.pref-legacy{grid-column:1/-1;border:1px solid #2c4565;border-radius:10px;padding:12px}.pref-legacy .pref-variants{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}.pref-preview-switch{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:12px}
