/* All rules belong to the manual Decor shortlist; shared surfaces stay intact. */
.ds-panel{margin:12px 0 20px;border:1px solid #426576;border-radius:12px;background:#102632;color:#e4eff4;scroll-margin-top:85px}
.ds-panel>summary{display:list-item;min-height:48px;box-sizing:border-box;padding:14px 18px;color:#c6eddf;font-weight:650;cursor:pointer}
.ds-panel[open]>summary{border-bottom:1px solid #33515f}
.ds-panel .ds-body{padding:18px}
.ds-panel h2{font-size:20px;margin:0 0 10px;line-height:1.4}
.ds-panel h3{font-size:17px;line-height:1.4;margin:0;overflow-wrap:anywhere}
.ds-panel h4{font-size:15px;margin:0 0 10px}
.ds-panel p{font-size:14px;line-height:1.6;margin:8px 0}
.ds-panel .ds-status,.ds-panel .ds-muted,.ds-panel .ds-help{color:#b3cad5}
.ds-panel .ds-status[data-state="corrupt"],.ds-panel .ds-status[data-state="conflict"],.ds-panel .ds-status[data-state="write-error"],.ds-panel .ds-error{color:#ffccba}
.ds-panel .ds-note{max-width:90ch}
.ds-panel .ds-help{display:flex;gap:12px 20px;align-items:baseline;flex-wrap:wrap;font-size:13px;line-height:1.6;margin:12px 0 18px}
.ds-panel a,.ds-detail-actions a{color:#b2e3d4;text-underline-offset:3px}
.ds-panel .ds-help a{flex-shrink:0}
.ds-panel .ds-help span{max-width:75ch}
.ds-panel .ds-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.ds-panel .ds-card{min-width:0;border:1px solid #3d606e;border-radius:10px;background:#142e3b;padding:16px;scroll-margin-top:85px}
.ds-panel .ds-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:16px}
.ds-panel .ds-card-head button{flex-shrink:0}
.ds-panel .ds-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0}
.ds-panel .ds-controls>label{display:flex;justify-content:flex-end;flex-direction:column;gap:7px;min-width:0;color:#bdd1db;font-size:13px}
.ds-panel .ds-controls>label>span{line-height:1.4}
.ds-panel .ds-controls input[type="number"],.ds-panel .ds-controls select:not(.decor-native-select){box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid #567582;border-radius:8px;background:#0c202d;padding:10px;color:#e7f2f6;font:inherit;font-size:16px}
.ds-panel input[aria-invalid="true"]{outline:2px solid #e6a18a;outline-offset:1px}
.ds-panel .ds-extra-levels{padding:0;margin:8px 0 12px;border:1px solid #365461;border-radius:8px;background:#102734}
.ds-panel .ds-extra-levels>summary{padding:12px;min-height:44px;box-sizing:border-box;font-size:13px;cursor:pointer}
.ds-panel .ds-extra-levels>.ds-controls{padding:0 12px 12px;margin:0}
.ds-panel .ds-output{border-top:1px solid #3e5a65;padding-top:14px;margin-top:14px}
.ds-panel .ds-effects{list-style:none;padding:0;margin:0 0 14px;display:grid;gap:8px}
.ds-panel .ds-effects li{display:flex;justify-content:space-between;gap:12px;font-size:14px;line-height:1.5}
.ds-panel .ds-effects li>span:first-child{min-width:0;overflow-wrap:anywhere}
.ds-panel .ds-effect-values{display:flex;flex-direction:column;gap:2px;text-align:right;flex-shrink:0;max-width:55%;overflow-wrap:anywhere}
.ds-panel .ds-effect-values strong{color:#a9dfcc;font-size:13px}
.ds-panel .ds-cost{display:flex;justify-content:space-between;gap:12px;padding:12px;border:1px solid #547c79;border-radius:8px;background:#193b3d;font-size:14px;line-height:1.5}
.ds-panel .ds-cost strong{max-width:65%;text-align:right;overflow-wrap:anywhere;color:#d7f9e9}
.ds-panel .ds-state{color:#c7eadb;font-weight:650}
.ds-panel .ds-card-foot{margin-top:14px;padding-top:12px;border-top:1px solid #365461;font-size:13px}
.ds-panel .ds-card-foot a{display:inline-flex;align-items:center;min-height:44px}
.ds-panel .ds-empty{grid-column:1/-1;margin:0;padding:16px;border:1px dashed #537583;border-radius:8px;color:#c3d5dd}
.ds-panel button,.ds-add{box-sizing:border-box;min-height:44px;padding:10px 12px;border:1px solid #588078;border-radius:8px;background:#1c403f;color:#d6f3e8;font:inherit;font-size:13px;line-height:1.4;cursor:pointer}
.ds-panel button:disabled,.ds-add:disabled{opacity:.55;cursor:not-allowed}
.ds-panel button:focus-visible,.ds-add:focus-visible,.ds-panel a:focus-visible,.ds-panel summary:focus-visible{outline:2px solid #a9e6d1;outline-offset:3px}
body[data-page="decorations"] #results .scan-decor{position:relative}
body[data-page="decorations"] #results .scan-decor>.ds-add{margin:0 12px 12px auto;display:block}
.ds-detail-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 0;border-top:1px solid #365461;margin-top:12px;font-size:13px;line-height:1.5}
.ds-detail-actions>a{display:inline-flex;align-items:center;min-height:44px}
.ds-detail-message{flex-basis:100%;color:#bbd6da}
.ds-load-error{padding:14px;border:1px solid #b4826d;border-radius:8px;color:#ffd7c7}
@media(min-width:1100px){body[data-page="decorations"] #results .scan-decor{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}body[data-page="decorations"] #results .scan-decor>.ds-add{margin:8px 12px}}
@media(max-width:760px){.ds-panel .ds-list{grid-template-columns:minmax(0,1fr)}.ds-panel .ds-body{padding:12px}.ds-panel .ds-card{padding:12px}.ds-panel .ds-controls{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.ds-panel .ds-card>.ds-controls>label:nth-child(3){grid-column:1/-1}.ds-panel .ds-extra-levels .ds-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.ds-panel .ds-card-head{flex-wrap:wrap}.ds-panel .ds-card-head h3{flex:1 1 160px}.ds-panel .ds-effect-values{max-width:48%}.ds-panel .ds-cost{flex-direction:column;gap:5px}.ds-panel .ds-cost strong{max-width:100%;text-align:left}}
@media(forced-colors:active){.ds-panel,.ds-panel .ds-card,.ds-panel .ds-cost,.ds-panel button,.ds-add{border-color:ButtonText;background:Canvas;color:CanvasText}}

.ds-panel .ds-rules{margin:0 0 14px;border:1px solid #365461;border-radius:8px;background:#102734}
.ds-panel .ds-rules>summary{padding:12px;min-height:44px;box-sizing:border-box;font-size:13px;cursor:pointer}
.ds-panel .ds-rules>p{padding:0 12px 12px;margin:0;color:#b3cad5}
@media(max-width:340px){.ds-panel .ds-controls{grid-template-columns:minmax(0,1fr)}}
