/* Feedback stays inside the opaque dialog header, above even a long saved-search form. */
html body dialog.discovery-dialog>.discovery-head.sm-dialog-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:10px;padding:12px 18px;box-sizing:border-box}
html body dialog.discovery-dialog>.discovery-head>h2{grid-column:1/3;grid-row:1;margin:0;font:650 clamp(18px,4vw,24px)/1.35 Inter,system-ui;letter-spacing:normal;text-transform:none;overflow-wrap:anywhere}
html body dialog.discovery-dialog>.discovery-head:has(>[data-sm-back]:not([hidden]))>h2{grid-column:2}
html body dialog.discovery-dialog>.discovery-head>[data-sm-back]{grid-column:1;grid-row:1;margin:0!important}
html body dialog.discovery-dialog>.discovery-head>[data-close]{grid-column:3;grid-row:1;margin:0!important}
html body dialog.discovery-dialog>.discovery-head>.discovery-action-feedback{grid-column:1/-1;grid-row:2;order:3;box-sizing:border-box;min-width:0;min-height:44px;margin:0;padding:10px 12px;border:1px solid #568a68;border-radius:10px;background:#20382b;color:#c9f1d3;font:500 14px/1.5 Inter,system-ui;white-space:normal;overflow-wrap:anywhere}
html body dialog.discovery-dialog>.discovery-head>.discovery-action-feedback:empty{display:none}
html body dialog.discovery-dialog>.discovery-head>.discovery-action-feedback[data-state=error]{background:#422924;color:#ffd8c9;border-color:#c48668}
html body dialog.discovery-dialog>.discovery-head>.discovery-action-feedback[data-state=busy]{background:#34302a;color:#ffe2c5;border-color:#8c755c}
html body .discovery-save-status:not(:empty),html body [data-watch-status]:not(:empty){display:block;margin:12px 0;padding:12px 14px;border:1px solid #568a68;border-radius:10px;background:#20382b;color:#c9f1d3;line-height:1.6;overflow-wrap:anywhere}
html body :is(.discovery-save-status,[data-watch-status])[data-state=error]{border-color:#c48668;background:#422924;color:#ffd8c9}
html body .discovery-saved-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
html body .discovery-saved-actions>button{box-sizing:border-box;min-height:44px;line-height:1.4;margin:0;white-space:normal;padding:10px 14px}
html body .discovery-dialog [aria-busy=true] button{cursor:wait;opacity:.65}
@media(max-width:600px){html body dialog.discovery-dialog>.discovery-head.sm-dialog-controls{padding:10px 14px}html body .discovery-saved-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}html body .discovery-saved-actions>button{width:100%;min-width:0;font-size:14px;overflow-wrap:anywhere}}

/* Keep every tab and title readable at 320px and with long translations. */
html body .discovery-tabs>button{min-width:0;max-width:100%;overflow-wrap:anywhere;hyphens:auto;line-height:1.4}
@media(max-width:380px){html body dialog.discovery-dialog>.discovery-head.sm-dialog-controls{padding-inline:10px;gap:8px}html body dialog.discovery-dialog>.discovery-head>h2{font-size:16px}html body .discovery-tabs:has([data-view=notifications])>button{font-size:12px;padding:10px 5px}}

@media(max-width:380px){html body .discovery-dialog .auction-vehicle-categories{grid-template-columns:repeat(2,minmax(0,1fr))}}
