.aeqdb-theme{--pick-ink:#835409;--pick-line:#b5822a;--pick-tint:#fff6e3}
html[data-theme="dark"] .aeqdb-theme{--pick-ink:#f3cb80;--pick-line:#b28b49;--pick-tint:#342b1e}
.editorial-badge{display:inline-flex;align-items:center;gap:6px;max-width:100%;width:fit-content;padding:6px 10px;border:1px solid var(--pick-line);border-radius:99px;background:var(--pick-tint);color:var(--pick-ink);font-size:12px;font-weight:700;line-height:1.4;letter-spacing:.02em}
html[data-theme] body.aeqdb-theme :is(#hall-editor-picks,#results,#auto-eq-results) .editorial-pick,html[data-theme] body.aeqdb-theme #eq-editorial-note.editorial-pick{border-color:var(--pick-line);background:linear-gradient(135deg,color-mix(in srgb,var(--pick-tint) 70%,var(--panel)) 0%,var(--panel) 55%);box-shadow:inset 0 3px 0 var(--pick-line)}
.aeqdb-theme .editorial-pick .editorial-reason{font-size:13px;color:var(--muted);line-height:1.65;margin:0 0 16px;padding:0;border:0;overflow-wrap:anywhere}
.aeqdb-theme .editorial-pick h3{color:var(--ink);margin-top:14px}
html[data-theme] body.aeqdb-theme :is(#hall-editor-picks,#results,#auto-eq-results) .editorial-pick:hover{border-color:var(--pick-ink);box-shadow:inset 0 3px 0 var(--pick-line),0 8px 24px #0000000d}
.editorial-section{margin:24px 0 30px;min-width:0}
.editorial-section[hidden]{display:none}
.editorial-section-heading{display:flex;justify-content:space-between;gap:12px;align-items:end;margin-bottom:16px}
.editorial-section-heading h2{font-size:24px;margin:4px 0;color:var(--ink)}
.editorial-section-heading p{color:var(--muted);font-size:13px;line-height:1.6;margin:4px 0}
.editorial-section .preset-grid{margin:0}
.editorial-section .preset{min-width:0}
html body.aeqdb-theme .editorial-section .preset{display:flex;flex-direction:column;position:relative;isolation:isolate;cursor:pointer;transition:transform .18s ease,border-color .18s ease}
html body.aeqdb-theme .editorial-section .preset>footer{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:16px 0 0;border-top:1px solid var(--line);background:transparent}
.editorial-section .preset .preset-open-link::after{content:'';position:absolute;inset:0;z-index:1;border-radius:inherit}
.editorial-section .preset :is(details,button,input,select,textarea,.hall-rating-picker,a:not(.preset-open-link)){position:relative;z-index:2}
.editorial-section .preset .preset-open-link:focus-visible::after{outline:2px solid var(--cyan);outline-offset:3px}
.editorial-section .preset details{margin:8px 0 18px;font-size:13px;cursor:auto}
.editorial-section .preset details :is(p,pre){white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
@media(hover:hover){.editorial-section .preset:hover{transform:translateY(-3px)}}
.editorial-section .preset>h3{overflow-wrap:anywhere}
.editorial-section .preset>p{font-size:13px;line-height:1.6}
.preset>.editorial-description{font-size:14px;line-height:1.7;color:var(--ink);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line}
.editorial-section .preset>footer{margin-top:auto}
.editorial-detail-note{padding:16px 20px;margin:16px 0;border:1px solid var(--line);border-radius:14px}
.editorial-detail-note:empty{display:none}
.editorial-detail-note .editorial-reason{margin:10px 0 0!important}
.preset-editorial-dialog{color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:24px;box-sizing:border-box;width:min(680px,calc(100vw - 32px));max-width:100%;max-height:calc(100dvh - 32px);overflow:auto}
.preset-editorial-dialog::backdrop{background:#0008;backdrop-filter:blur(4px)}
.editorial-dialog-head{display:flex;justify-content:space-between;align-items:start;gap:16px}
.editorial-dialog-head h2{font-size:24px;margin:4px 0 14px}
.editorial-dialog-head [data-close]{min-width:42px;min-height:42px;padding:4px 12px;font-size:24px}
.preset-editorial-dialog form{display:grid;gap:16px}
.preset-editorial-dialog label{display:grid;gap:7px;color:var(--ink);font-size:14px;min-width:0}
.preset-editorial-dialog :is(input:not([type=checkbox]),textarea){box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink);font:inherit;line-height:1.6}
.preset-editorial-dialog textarea{resize:vertical}
.preset-editorial-dialog :is(small,.editorial-source-meta,.editorial-scope-note){font-size:12px;line-height:1.7;color:var(--muted)}
.preset-editorial-dialog [data-status]{font-size:13px;color:var(--cyan);line-height:1.6;overflow-wrap:anywhere}
.editorial-original{padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--panel-2)}
.editorial-original summary{cursor:pointer;color:var(--cyan);margin-bottom:8px}
.editorial-original p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;color:var(--muted)}
.editorial-recommend-controls{display:grid;grid-template-columns:1fr 180px;gap:16px;align-items:center}
.preset-editorial-dialog .editorial-toggle{display:flex;align-items:center;gap:10px;font-weight:700}
.editorial-toggle input{width:20px;height:20px;accent-color:var(--cyan);flex:none}
.editorial-dialog-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;padding-top:8px}
.editorial-dialog-actions button{min-height:44px}
.admin-preset-panel .preset-row-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:150px}
.admin-preset-panel .editorial-table-mark{display:inline-block;margin:6px 0;font-size:12px;color:var(--pick-ink)}
.admin-preset-panel .editorial-table-title{color:var(--muted);font-size:12px}
@media(max-width:700px){.editorial-section-heading{display:block}.editorial-section-heading h2{font-size:21px}.preset-editorial-dialog{padding:18px}.editorial-recommend-controls{grid-template-columns:1fr}.editorial-dialog-actions button{flex:1}.editorial-section .preset-grid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.editorial-pick{transition:none!important;transform:none!important}}

/* Hall editorial selection is distinct from community rating. */
html[data-theme] body.aeqdb-theme #hall-editor-picks .preset.editorial-pick{
 border:2px solid var(--pick-line);border-top:5px solid var(--pick-line);
 background:linear-gradient(135deg,var(--pick-tint),color-mix(in srgb,var(--pick-tint) 45%,var(--panel)));
 box-shadow:0 4px 18px color-mix(in srgb,var(--pick-line) 16%,transparent);
}
html[data-theme] body.aeqdb-theme #hall-editor-picks .editorial-badge{
 background:var(--pick-ink);color:var(--pick-tint);border-color:var(--pick-ink);
 font-size:13px;padding:8px 14px;letter-spacing:.04em;
}
html[data-theme] body.aeqdb-theme #hall-editor-picks .preset.editorial-pick:hover{
 border-color:var(--pick-ink);box-shadow:0 7px 22px color-mix(in srgb,var(--pick-line) 25%,transparent);
}

.hall-main>#hall-editor-picks{margin-top:0;scroll-margin-top:100px}

/* Compact editor recommendations; full descriptions and controls live on the detail page. */
html body.aeqdb-theme #hall-editor-picks .preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
html body.aeqdb-theme #hall-editor-picks .preset{padding:18px;gap:8px;border-radius:16px}
html body.aeqdb-theme #hall-editor-picks .preset>img{display:none}
html body.aeqdb-theme #hall-editor-picks .preset>h3{font-size:17px;line-height:1.4;margin:4px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html body.aeqdb-theme #hall-editor-picks .preset>p{margin:0;font-size:12px;line-height:1.5}
html body.aeqdb-theme #hall-editor-picks .editorial-reason{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html body.aeqdb-theme #hall-editor-picks .hall-rating{margin:4px 0;flex-wrap:wrap;font-size:12px}
html body.aeqdb-theme #hall-editor-picks .preset>footer{padding-top:12px}
html body.aeqdb-theme #hall-editor-picks .preset-open-link{padding:10px 12px;font-size:12px;min-height:42px}
@media(max-width:1100px){html body.aeqdb-theme #hall-editor-picks .preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){html body.aeqdb-theme #hall-editor-picks .preset-grid{grid-template-columns:minmax(0,1fr)}}
