.app-shell .discovery-module { min-width: 0; }
.app-shell button.discovery-module-button { width: 100%; text-align: left; cursor: pointer; color: var(--color-marinade-text-muted); background: transparent; border: 1px dashed var(--color-marinade-control-border); box-shadow: none; }
.app-shell button.discovery-module-button:hover { border-style: solid; border-color: var(--color-marinade-accent-border); background: var(--color-marinade-card); }
.app-shell button.discovery-module-button .control-module-icon { background: var(--color-marinade-fill); color: var(--color-marinade-text-muted); }
.app-shell .discovery-module-button:focus-visible, .discovery-close:focus-visible, .discovery-dismiss:focus-visible { outline: 3px solid #005f73; outline-offset: 4px; }
.discovery-module-label { padding: 5px 12px; border-radius: 999px; background: var(--color-marinade-accent-soft); color: var(--color-marinade-accent); font-size: 13px; font-weight: 700; white-space: nowrap; }
.discovery-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; overflow: auto; border: 0; border-radius: 24px; background: #fffdf8; color: #00181e; box-shadow: 0 24px 80px #00181e38; }
.discovery-dialog::backdrop { background: #00181e99; }
.discovery-dialog-panel { padding: 28px; }
.discovery-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.discovery-close { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; background: var(--module-soft); color: var(--module-ink); border-radius: 50%; cursor: pointer; font: 26px/1 sans-serif; }
.app-shell .discovery-dialog .discovery-close:focus-visible { outline-color: var(--module-ink); }
.app-shell .discovery-dialog-heading .ds-eyebrow { color: var(--module-ink); }
.app-shell .discovery-dialog h2 { font-size: clamp(23px, 3vw, 30px); line-height: 1.22; margin: 0 0 14px; }
.app-shell .discovery-dialog .discovery-title-keyword { font-family: var(--font-display); font-weight: 400; color: var(--module-ink); }
.discovery-dialog p { line-height: 1.6; }
.discovery-benefits { display: grid; gap: 12px; list-style: none; padding: 20px 0; margin: 0; }
.discovery-benefits li { display: flex; align-items: start; gap: 12px; }
.discovery-benefits li span { color: var(--module-ink); font-weight: 800; }
.discovery-offer { border: 0; border-radius: 16px; padding: 18px; background: var(--module-soft); margin-bottom: 18px; }
.discovery-offer strong { font-size: 18px; }
.discovery-offer p { margin-top: 8px; font-size: 14px; }
.discovery-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.discovery-actions form { margin: 0; }
.discovery-history { color: var(--module-ink); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.discovery-note { margin: 14px 0; font-size: 13px; color: #52635e; }
.discovery-hardware { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 28px 0; padding: 24px; border: 1px solid #cbdcd4; border-radius: 20px; background: #edf3ee; }
.discovery-hardware[hidden] { display: none; }
.discovery-hardware-copy { min-width: 0; }
.app-shell .discovery-hardware-copy h2 { font-size: 20px; line-height: 1.35; margin: 6px 0; }
.discovery-hardware-copy > p:last-child { font-size: 14px; line-height: 1.6; color: #52635e; }
.discovery-hardware-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.discovery-dismiss { min-height: 44px; padding: 8px 12px; font-size: 13px; color: #52635e; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.subscription-preview [id^="offer-"] { scroll-margin-top: 150px; }
.subscription-preview [id^="offer-"]:target { outline: 2px solid #005f73; outline-offset: 8px; border-radius: 12px; }
@media (max-width: 640px) {
  .discovery-dialog-panel { padding: 20px; }
  .discovery-hardware { flex-direction: column; align-items: stretch; padding: 20px; gap: 16px; }
  .discovery-hardware-actions { align-items: stretch; }
  .discovery-actions { flex-direction: column; }
  .discovery-actions .ds-button { width: 100%; }
}
@media print { .discovery-hardware, .discovery-dialog { display: none !important; } }
