.nova-surfaces {max-width: 1080px; margin-inline: auto; padding-block: 0 36px; color: inherit; font: inherit;}
.nova-surfaces * {box-sizing: border-box;}
.nova-surfaces .ns-intro {margin: 0 0 22px; color: inherit;}
.nova-surfaces .ns-layout {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;}
.nova-surfaces .ns-controls {display: grid; align-content: start; gap: 9px; min-width: 0; padding-bottom: 16px;}
.nova-surfaces [data-slot="0"] {padding-right: clamp(6px, 1.5vw, 22px);}
.nova-surfaces [data-slot="1"] {padding-left: clamp(6px, 1.5vw, 22px);}
.nova-surfaces [data-slot="2"] {grid-column: 1 / -1; padding: 16px 0 0; grid-template-columns: repeat(3, minmax(0,1fr));}
.nova-surfaces .ns-caption {font-size: 1.05em; font-weight: 650; grid-column: 1 / -1; margin: 0 0 2px;}
.nova-surfaces .ns-field {display: flex; flex-direction: column; gap: 3px; min-width: 0;}
.nova-surfaces .ns-field > span {font-size: .84em; line-height: 1.35;}
.nova-surfaces .ns-field select, .nova-surfaces .ns-field input {
    width: 100%; min-width: 0; max-width: 100%; margin: 0; min-height: 39px; padding: 5px 9px;
    border: 1px solid #969591; border-radius: 5px; color: inherit; background-color: var(--black_bg_black, Canvas); font: inherit;
    font-size: .91em; text-overflow: ellipsis;
}
.nova-surfaces .ns-field select:disabled {opacity: .62;}
.nova-surfaces :focus-visible {outline: 2px solid currentColor; outline-offset: 2px;}
.nova-surfaces [hidden] {display: none !important;}
.nova-surfaces .ns-swatch {
    position: relative; isolation: isolate; display: grid; place-content: center; text-align: center;
    min-width: 0; aspect-ratio: 1.6; overflow: hidden; background: #eeede9; color: #504e47;
}
.nova-surfaces [data-preview="1"] {border-left: 1px solid rgba(80,75,65,.22);}
.nova-surfaces .ns-swatch[data-preview="2"] {grid-column: 1 / -1; aspect-ratio: 2 / 1; border-top: 1px solid rgba(80,75,65,.22);}
.nova-surfaces .ns-swatch img {position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; display: block; z-index: -1; max-width: none;}
.nova-surfaces .ns-swatch span {padding: 10px; max-width: 28em; font-size: .94em;}
.nova-surfaces .ns-swatch a, .nova-surfaces .ns-swatch .ns-name {position: absolute; bottom: 8px; left: 8px; max-width: calc(100% - 16px);
    padding: 3px 7px; line-height: 1.35; font-size: .8em; border-radius: 3px; background: rgba(255,255,255,.94); color: #282722; text-align: left;
    overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;}
.nova-surfaces .ns-retry {justify-self: start; grid-column: 1 / -1; padding: 6px 12px; font: inherit; cursor: pointer;}
@media (max-width: 620px) {
    .nova-surfaces .ns-swatch {aspect-ratio: .86;}
    .nova-surfaces [data-slot="2"] {grid-template-columns: 1fr;}
    .nova-surfaces .ns-field select, .nova-surfaces .ns-field input {min-height: 44px; font-size: 16px;}
}
.nova-surfaces .ns-picker-trigger {width:100%; min-height:40px; padding:7px 10px; cursor:pointer; font:inherit; line-height:1.35; text-align:left; border:1px solid #969591; border-radius:5px; color:inherit; background:var(--black_bg_black, Canvas); overflow-wrap:anywhere;}
.nova-surfaces .ns-picker-trigger:disabled {opacity:.62; cursor:default;}
.nova-surfaces .ns-picker-dialog {position:fixed; inset:0; margin:auto; padding:18px; width:min(580px,calc(100vw - 24px)); max-width:none; height:fit-content; max-height:85vh; max-height:85dvh; border:1px solid #aaa; border-radius:10px; background:Canvas; color:CanvasText; box-shadow:0 12px 48px #0003;}
.nova-surfaces .ns-picker-dialog[open] {display:flex; flex-direction:column; gap:12px;}
.nova-surfaces .ns-picker-dialog::backdrop {background:#0007;}
.nova-surfaces .ns-picker-header,.nova-surfaces .ns-picker-footer {display:flex; align-items:center; justify-content:space-between; gap:10px;}
.nova-surfaces .ns-picker-header h2 {font:inherit; font-weight:650; font-size:1.2em; margin:0;}
.nova-surfaces .ns-picker-dialog button {color:inherit; font:inherit; cursor:pointer;}
.nova-surfaces .ns-picker-close,.nova-surfaces .ns-picker-footer button {background:none; padding:5px 9px; border:1px solid #aaa; border-radius:5px; min-height:36px;}
.nova-surfaces .ns-picker-footer button:disabled {opacity:.45; cursor:default;}
.nova-surfaces .ns-picker-list {display:grid; gap:5px; overflow-y:auto; overscroll-behavior:contain; min-height:0;}
.nova-surfaces .ns-picker-item {display:grid; grid-template-columns:76px minmax(0,1fr); align-items:center; gap:12px; padding:5px 8px; width:100%; text-align:left; color:inherit; background:transparent; border:1px solid #8885; border-radius:5px; line-height:1.3;}
.nova-surfaces .ns-picker-item:hover,.nova-surfaces .ns-picker-item[aria-pressed=true] {border-color:currentColor;}
.nova-surfaces .ns-picker-item[aria-pressed=true] {box-shadow:inset 3px 0 currentColor;}
.nova-surfaces .ns-picker-thumb {display:grid; place-items:center; width:76px; height:55px; padding:2px; background:#eeedea; color:#555; font-size:11px; text-align:center; line-height:1.2;}
.nova-surfaces .ns-picker-thumb img {display:block; width:100%; height:100%; object-fit:contain;}
.nova-surfaces .ns-picker-info {display:grid; gap:2px; min-width:0; overflow-wrap:anywhere;}
.nova-surfaces .ns-picker-info small,.nova-surfaces .ns-picker-footer span {font-size:.82em;}
@media(max-width:620px){.nova-surfaces .ns-picker-trigger,.nova-surfaces .ns-picker-close,.nova-surfaces .ns-picker-footer button {min-height:44px;} .nova-surfaces .ns-picker-dialog {padding:12px;}}

.nova-surfaces .ns-guide {max-width:76ch; margin-top:2rem;}
.nova-surfaces .ns-guide h2 {margin:1.4em 0 .4em; font-size:1.25em; line-height:1.35;}
.nova-surfaces .ns-guide p {margin:0 0 1em;}
.nova-surfaces [hidden] {display:none !important;}

.nova-surfaces .ns-collection-search {position:relative; min-width:0;}
.nova-surfaces .ns-suggestions {position:absolute; z-index:5; top:100%; inset-inline:0; max-height: min(320px,42vh); overflow:auto; overscroll-behavior:contain; background:Canvas; color:CanvasText; border:1px solid #aaa; border-radius:5px; box-shadow:0 4px 12px #0002;}
.nova-surfaces .ns-suggestion {display:flex; align-items:center; gap:9px; text-align:left; min-height:44px; padding:5px 9px; width:100%; border:0; border-bottom:1px solid #8883; color:inherit; background:Canvas; font:inherit; cursor:pointer; overflow-wrap:anywhere;}
.nova-surfaces .ns-suggestion img {width:52px; height:40px; object-fit:cover; flex:none; border-radius:3px;}
.nova-surfaces .ns-suggestion:hover,.nova-surfaces .ns-suggestion[aria-selected=true] {background:var(--light_bg_black,#eee);}
.nova-surfaces .ns-suggestion-note {padding:8px 9px; font-size:.85em; line-height:1.4;}
