/* Local icon defaults; larger source widget rules below keep priority. */
:where(.discovery-page,.discovery-dialog) .ps-icon{width:20px;height:20px;flex-shrink:0;}
.discovery-page [data-icon]{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;}
.discovery-page [data-loading]{min-height:260px;}
.discovery-directory-status{display:flex;align-items:center;justify-content:center;gap:12px;padding:16px 0;color:var(--ps-text-secondary);font-size:13px;line-height:20px;}
.discovery-option-icon .ps-icon{width:24px;height:24px;}
.discovery-empty .ps-icon{width:48px;height:48px;margin:0 auto 12px;}
.discovery-page{min-height:100vh;background:var(--ps-bg-primary,#0a0a0a);color:#fff;padding-bottom:96px;}.discovery-page [hidden]{display:none!important;}.discovery-header{position:sticky;top:0;z-index:40;backdrop-filter:blur(4px);background:var(--ps-bg-surface,#111827);border-bottom:1px solid var(--ps-border,#27272a);}.discovery-header-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;}.discovery-heading{display:flex;align-items:center;gap:12px;min-width:0;}.discovery-heading h1{font-size:20px;font-weight:700;display:flex;align-items:center;gap:8px;}.discovery-heading p{font-size:12px;color:#9ca3af;}.discovery-header-actions{display:flex;align-items:center;gap:12px;flex:none;}.discovery-circle{display:flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background:#1f2937;color:#9ca3af;}.discovery-circle:hover{color:#fff;}.discovery-circle.is-active{background:#10b981;color:white;}.discovery-coins{display:flex;align-items:center;gap:4px;padding:6px 12px;border-radius:999px;background:#f59e0b33;border:1px solid #f59e0b4d;color:#fbbf24;font-weight:700;}.discovery-coins .ps-icon{width:16px;height:16px;}.discovery-location-status{font-size:12px;color:#34d399;font-weight:400;}.discovery-filter-panel{padding:12px 16px 16px;border-top:1px solid #1f2937;}.discovery-container{max-width:512px;margin:0 auto;}.discovery-filter-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;}.discovery-filter-grid label{display:block;font-size:12px;color:#6b7280;margin-bottom:4px;}.discovery-filter-grid select{width:100%;background:#1f2937;border:1px solid #374151;border-radius:8px;padding:8px 12px;color:#fff;font-size:14px;}.discovery-primary{background:linear-gradient(90deg,#10b981,#16a34a)!important;color:white!important;}.discovery-search{width:100%;margin-top:16px;font-weight:600;}.discovery-filter-count{display:flex;align-items:center;justify-content:space-between;margin-top:12px;font-size:14px;color:#9ca3af;}.discovery-clear{color:#34d399;}.discovery-body{padding:16px;}.discovery-location-banner{position:relative;padding:16px;margin-bottom:16px;border-radius:12px;background:linear-gradient(90deg,#10b98133,#14b8a633);border:1px solid #10b9814d;display:flex;align-items:flex-start;gap:12px;}.discovery-location-banner>span{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#10b9814d;color:#34d399;flex:none;}.discovery-location-banner h2{font-size:14px;font-weight:600;margin-bottom:4px;}.discovery-location-banner p{font-size:12px;color:#9ca3af;margin-bottom:12px;}.discovery-location-banner .ui-button{font-size:14px;padding:8px 16px;}.discovery-location-dismiss{position:absolute;top:8px;right:8px;color:#9ca3af;padding:4px;}.discovery-location-banner.is-denied{background:#f59e0b1a;border-color:#f59e0b4d;}.discovery-location-banner.is-denied h2{color:#fbbf24;}.discovery-location-error{color:#f87171!important;font-size:12px!important;margin-top:8px;}.discovery-top-dismiss{height:24px;margin-top:-8px;cursor:pointer;display:block;}.discovery-carousel-wrap{overflow:hidden;}.discovery-carousel{position:relative;height:calc(100vh - 200px);min-height:400px;max-height:600px;user-select:none;touch-action:pan-y;cursor:grab;}.discovery-carousel.is-dragging{cursor:grabbing;}.discovery-slide{position:absolute;inset:0;height:100%;transition:transform .3s ease-out,opacity .3s ease-out;}.is-dragging .discovery-slide{transition:none;}.discovery-card{position:relative;background:#111827;border-radius:16px;overflow:hidden;border:1px solid #1f2937;height:100%;display:flex;flex-direction:column;}.discovery-card.is-boosted{border-color:#f59e0b80;box-shadow:0 0 0 2px #f59e0b33;}.discovery-boosted-banner{background:linear-gradient(90deg,#f59e0b,#f97316);text-align:center;position:absolute;top:0;left:0;right:0;z-index:20;font-size:12px;font-weight:700;padding:4px 12px;text-transform:uppercase;letter-spacing:.025em;}.discovery-photo{position:relative;height:45%;min-height:180px;cursor:pointer;flex:none;}.is-boosted .discovery-photo{margin-top:24px;}.discovery-photo>img{width:100%;height:100%;object-fit:cover;}.discovery-image-fallback{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#064e3b80,#111827);}.discovery-initials{display:flex;align-items:center;justify-content:center;width:96px;height:96px;border-radius:50%;background:#10b98133;border:2px solid #10b9814d;color:#34d39999;font-size:36px;font-weight:700;}.discovery-photo-nav{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#0008;color:white;border-radius:50%;z-index:10;}.discovery-photo-nav.prev{left:8px;}.discovery-photo-nav.next{right:8px;}.discovery-photo-count{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);padding:4px 12px;border-radius:999px;background:#0009;font-size:12px;z-index:10;}.discovery-online{position:absolute;top:16px;left:16px;padding:4px 12px;border-radius:999px;background:#10b981e6;color:white;font-size:14px;z-index:10;}.discovery-card-info{padding:16px;flex:1;overflow:auto;}.discovery-card-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:12px;gap:8px;}.discovery-card-name{flex:1;min-width:0;cursor:pointer;}.discovery-card-name h2{font-size:20px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.discovery-card-name p{font-size:14px;color:#9ca3af;}.discovery-card-handicap{display:flex;align-items:center;gap:8px;}.discovery-handicap{text-align:right;}.discovery-handicap strong{display:block;font-size:24px;font-weight:700;color:#34d399;}.discovery-handicap small{font-size:12px;color:#6b7280;}.discovery-emoji-wrap{position:relative;}.discovery-emoji-toggle{padding:8px;border-radius:50%;background:#1f2937;font-size:18px;}.discovery-emoji-menu{position:absolute;right:0;top:100%;margin-top:8px;background:#1f2937;border:1px solid #374151;border-radius:12px;padding:8px;box-shadow:0 20px 25px #0006;z-index:30;min-width:200px;}.discovery-emoji-menu p{font-size:12px;color:#9ca3af;margin:0 8px 8px;}.discovery-emoji-buttons{display:flex;flex-wrap:wrap;gap:4px;}.discovery-emoji-buttons button{display:flex;flex-direction:column;align-items:center;padding:8px;border-radius:8px;font-size:24px;}.discovery-emoji-buttons button:hover{background:#374151;}.discovery-emoji-buttons small{font-size:12px;color:#6b7280;}.discovery-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px;}.discovery-stats>div{background:#1f293780;border-radius:8px;padding:8px;text-align:center;min-width:0;}.discovery-stats .ps-icon{width:16px;height:16px;color:#34d399;margin:0 auto 2px;}.discovery-stats strong{display:block;font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.discovery-stats small{font-size:12px;color:#6b7280;}.discovery-stats .accurate{color:#34d399;}.discovery-home-course{padding:12px;margin-bottom:12px;border-radius:12px;background:#10b9811a;border:1px solid #10b98133;}.discovery-home-course small{display:block;font-size:12px;color:#34d399;font-weight:500;}.discovery-home-course p{font-size:14px;}.discovery-card-bio{font-size:14px;color:#d1d5db;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}.discovery-swipe-hint{display:flex;align-items:center;justify-content:center;gap:12px;padding:8px;color:#9ca3af;font-size:14px;width:100%;}.discovery-options{display:grid;gap:16px;margin-top:16px;}.discovery-option{border-radius:16px;border:1px solid #374151;overflow:hidden;background:linear-gradient(135deg,#111827,#1f2937);padding:16px;display:flex;align-items:center;gap:12px;}.discovery-option-icon{width:48px;height:48px;flex:none;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#f59e0b1a;color:#f59e0bb3;}.discovery-option-copy{flex:1;min-width:0;}.discovery-option h3{font-size:16px;font-weight:600;}.discovery-option p{font-size:12px;color:#6b7280;}.discovery-option .ui-button{font-size:12px;font-weight:600;min-height:36px;padding:8px 12px;}.discovery-gold{background:linear-gradient(90deg,#f59e0b,#f97316)!important;color:#fff!important;}.discovery-purple{background:linear-gradient(90deg,#a855f7,#ec4899)!important;color:#fff!important;}.discovery-pink{background:linear-gradient(90deg,#ec4899,#f43f5e)!important;color:#fff!important;}.discovery-option[data-option=views] .discovery-option-icon{background:#a855f71a;color:#a855f7b3;}.discovery-option[data-option=likes] .discovery-option-icon{background:#ec48991a;color:#ec4899b3;font-size:20px;}.discovery-option.is-active[data-option=boost]{background:linear-gradient(135deg,#f59e0b33,#f9731633);border-color:#f59e0b80;}.discovery-option.is-active[data-option=views]{background:linear-gradient(135deg,#a855f733,#ec489933);border-color:#a855f780;}.discovery-option.is-active[data-option=likes]{background:linear-gradient(135deg,#ec489933,#f43f5e33);border-color:#ec489980;}.discovery-active-tag{font-size:12px;font-weight:700;color:#fbbf24;background:#f59e0b33;border:1px solid #f59e0b4d;padding:4px 8px;border-radius:999px;}.discovery-empty{text-align:center;padding:48px 0;color:#6b7280;}.discovery-empty p+p{font-size:14px;color:#4b5563;}.discovery-loading{display:flex;align-items:center;justify-content:center;min-height:100vh;}.discovery-spinner{width:32px;height:32px;border:2px solid #10b981;border-top-color:transparent;border-radius:50%;animation:discovery-spin 1s linear infinite;}.discovery-dialog{width:calc(100% - 32px);max-width:384px;max-height:80vh;overflow:auto;border-radius:8px;padding:24px;background:var(--ps-bg-surface,#111827);color:var(--ps-text-primary,#fff);border:1px solid var(--ps-border,#374151);}.discovery-dialog::backdrop{background:#000c;}.discovery-dialog header h2{text-align:center;font-size:18px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px;}.discovery-dialog header{margin-bottom:16px;}.discovery-dialog .discovery-modal-hero{border-radius:12px;padding:16px;text-align:center;margin-bottom:24px;background:linear-gradient(90deg,#f59e0b,#f97316);color:#fff;}.discovery-modal-hero>span{display:block;font-size:48px;margin-bottom:8px;}.discovery-modal-hero strong{display:block;font-size:18px;font-weight:700;}.discovery-modal-hero p{font-size:14px;color:#ffffffcc;}.discovery-cost{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:16px;color:#9ca3af;}.discovery-cost strong{font-size:30px;color:#fbbf24;}.discovery-balance{display:flex;align-items:center;justify-content:space-between;padding:12px;background:#1f293780;border-radius:8px;margin-bottom:16px;color:#9ca3af;}.discovery-balance strong{color:#34d399;}.discovery-needed{text-align:center;color:#f87171;font-size:14px;margin-bottom:16px;}.discovery-benefits{display:grid;gap:8px;margin-bottom:16px;color:#d1d5db;font-size:14px;}.discovery-dialog footer{display:flex;gap:12px;margin-top:16px;}.discovery-dialog footer>*{flex:1;}.discovery-audience-list{display:grid;gap:12px;max-height:50vh;overflow:auto;}.discovery-audience-row{display:flex;align-items:center;gap:12px;padding:12px;background:#1f293780;border-radius:12px;color:inherit;text-decoration:none;cursor:pointer;}.discovery-audience-avatar{width:48px;height:48px;flex:none;display:flex;align-items:center;justify-content:center;border:2px solid #a855f74d;background:#a855f733;color:#c084fc;border-radius:50%;overflow:hidden;}.discovery-audience-avatar img{width:100%;height:100%;object-fit:cover;}.discovery-audience-copy{flex:1;min-width:0;}.discovery-audience-copy strong{font-size:16px;font-weight:500;}.discovery-audience-copy p{font-size:14px;color:#9ca3af;}.discovery-audience-row>small{font-size:12px;color:#c084fc;}.discovery-audience-row .ui-button{font-size:12px;padding:8px;}.discovery-earn-methods{display:grid;gap:8px;}.discovery-earn-methods>*{display:flex;align-items:center;justify-content:space-between;padding:12px;border-radius:8px;background:#1f2937;font-size:14px;color:white;text-decoration:none;gap:12px;}.discovery-earn-methods strong{color:#fbbf24;font-weight:600;}.discovery-earn-methods>button{background:#1f293780;}.discovery-match{text-align:center;padding-top:24px;padding-bottom:24px;}.discovery-match h2{font-size:30px;font-weight:700;margin:24px 0 8px;}.discovery-match>p{color:#9ca3af;margin-bottom:24px;}.discovery-match-avatar{width:80px;height:80px;margin:0 auto 24px;border:4px solid #ec4899;border-radius:50%;overflow:hidden;background:#ec489933;color:#f472b6;display:flex;align-items:center;justify-content:center;font-size:24px;}.discovery-match-avatar img{width:100%;height:100%;object-fit:cover;}.discovery-match-symbol{width:96px;height:96px;margin:auto;border-radius:50%;background:linear-gradient(135deg,#ec4899,#f43f5e);display:flex;align-items:center;justify-content:center;font-size:48px;animation:discovery-pulse 2s infinite;}.discovery-full-photo{position:relative;height:320px;}.discovery-full-photo img{width:100%;height:100%;object-fit:cover;}.discovery-full-details{padding:16px;display:grid;gap:16px;}.discovery-full-details .discovery-stats{gap:12px;margin:0;}.discovery-full-details .discovery-stats>div{padding:12px;border-radius:12px;}.discovery-full-details .discovery-stats strong{font-size:14px;white-space:normal;}.discovery-full-details .discovery-stats .ps-icon{width:20px;height:20px;}.discovery-full-details .discovery-home-course{padding:16px;margin:0;}.discovery-full-details .discovery-home-course small{font-size:14px;}.discovery-full-details .discovery-home-course p{font-size:18px;}.discovery-full-section{padding:16px;border-radius:12px;background:#1f293780;}.discovery-full-section h2{font-size:14px;color:#9ca3af;font-weight:500;margin-bottom:8px;}.discovery-full-section.looking-for{background:#ec48991a;border:1px solid #ec489933;}.discovery-full-section.looking-for h2{color:#f472b6;}.discovery-tags{display:flex;flex-wrap:wrap;gap:8px;}.discovery-tags span{padding:8px 16px;border-radius:999px;background:#1f2937;color:#d1d5db;}.discovery-message-button{width:100%;padding:24px;font-size:18px;}.discovery-full-handicap{font-size:12px;background:#10b98133;color:#34d399;border:1px solid #10b9814d;border-radius:999px;padding:6px 12px;}.discovery-full-handicap strong{font-size:16px;}.discovery-full-handicap small{margin-left:4px;color:#34d39999;}@keyframes discovery-spin{to{transform:rotate(360deg)}}@keyframes discovery-pulse{50%{opacity:.65}}

.discovery-photo [data-photo-content]>img{width:100%;height:100%;object-fit:cover;}.discovery-audience-row[data-type=likes] .discovery-audience-avatar{border-color:#ec48994d;background:#ec489933;color:#f472b6;}

/* Source Tailwind text line boxes; photos keep their fixed dark contrast. */
.discovery-page{background:var(--ps-bg-base,#0a0a0a);color:var(--ps-text-primary,#fff);}
.discovery-heading h1,.discovery-card-name h2{line-height:28px;}
.discovery-heading p,.discovery-location-status,.discovery-filter-grid label,.discovery-location-banner p,.discovery-boosted-banner,.discovery-photo-count,.discovery-handicap small,.discovery-emoji-menu p,.discovery-emoji-buttons small,.discovery-stats strong,.discovery-stats small,.discovery-home-course small,.discovery-option p,.discovery-active-tag,.discovery-option .ui-button{line-height:16px;}
.discovery-filter-grid select,.discovery-filter-count,.discovery-location-banner h2,.discovery-location-banner .ui-button,.discovery-online,.discovery-card-name p,.discovery-home-course p,.discovery-card-bio,.discovery-swipe-hint,.discovery-audience-copy p,.discovery-benefits,.discovery-needed{line-height:20px;}
.discovery-handicap strong{line-height:32px;}
.discovery-option h3{line-height:24px;}
.discovery-initials{line-height:40px;}
.discovery-header .discovery-circle .ps-icon{width:20px;height:20px;}
.discovery-photo-nav .ps-icon{width:24px;height:24px;}
.discovery-photo-hint{position:absolute;inset:0;background:transparent;display:flex;align-items:center;justify-content:center;transition:background-color .15s;}
.discovery-photo-hint:hover{background:#0000001a;}
.discovery-photo-hint>span{opacity:0;transition:opacity .15s;background:#0009;padding:8px 16px;border-radius:999px;color:#fff;font-size:14px;line-height:20px;}
.discovery-photo-hint:hover>span{opacity:1;}
.theme-light .discovery-header{background:var(--ps-glass-bg);}
.theme-light .discovery-page :is(.discovery-circle,.discovery-filter-grid select,.discovery-card,.discovery-stats>div,.discovery-emoji-toggle,.discovery-emoji-menu,.discovery-full-section,.discovery-tags span){background-color:var(--ps-bg-elevated);border-color:var(--ps-border-light);}
.theme-light .discovery-page :is(.discovery-circle,.discovery-heading p,.discovery-filter-grid label,.discovery-filter-count,.discovery-location-banner p,.discovery-card-name p,.discovery-handicap small,.discovery-emoji-menu p,.discovery-emoji-buttons small,.discovery-stats small,.discovery-card-bio,.discovery-swipe-hint,.discovery-option p,.discovery-full-section h2,.discovery-tags span){color:var(--ps-text-secondary);}
.theme-light .discovery-page :is(.discovery-card-name h2,.discovery-stats strong,.discovery-home-course p,.discovery-option h3,.discovery-location-banner h2,.discovery-filter-grid select){color:var(--ps-text-primary);}
.theme-light .discovery-page :is(.discovery-clear,.discovery-location-status,.discovery-handicap strong,.discovery-stats .ps-icon,.discovery-stats .accurate,.discovery-home-course small){color:#047857;}
.theme-light .discovery-page .discovery-coins,.theme-light .discovery-page .discovery-active-tag{color:#92400e;}
.theme-light .discovery-page .discovery-circle.is-active{background:#10b981;color:#fff;}
.theme-light .discovery-page .discovery-option:not(.is-active){background:linear-gradient(135deg,var(--ps-bg-elevated),var(--ps-bg-surface));border-color:var(--ps-border-light);}
.theme-light .discovery-page .discovery-full-section.looking-for{background:#ec48991a;border-color:#ec489933;}
.theme-light .discovery-page .discovery-full-section.looking-for h2{color:#a21caf;}
.theme-light .discovery-dialog :is(.discovery-balance,.discovery-audience-row,.discovery-earn-methods>*){background:var(--ps-bg-elevated);}
.theme-light .discovery-dialog :is(.discovery-cost,.discovery-balance,.discovery-benefits,.discovery-audience-copy p){color:var(--ps-text-secondary);}
.theme-light .discovery-dialog :is(.discovery-cost strong,.discovery-earn-methods strong){color:#92400e;}
.theme-light .discovery-dialog .discovery-balance strong{color:#047857;}
.theme-light .discovery-dialog .discovery-earn-methods>*{color:var(--ps-text-primary);}

.discovery-header-row{gap:0;}.discovery-heading,.discovery-header-actions{gap:12px;}.discovery-circle{border:0;min-width:36px;min-height:36px;flex-shrink:0;}.discovery-location-dismiss{border:0;background:transparent;box-shadow:none;}.discovery-location-banner>span .ps-icon{width:20px;height:20px;}

/* Permission banner uses the same Navigation, MapPin and close glyphs as the source. */
.discovery-location-dismiss{border:0;background:transparent;display:flex;align-items:center;justify-content:center;}
.discovery-location-dismiss .ps-icon{width:16px;height:16px;}
.discovery-location-banner [data-action="enable-location"]{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:8px;background:#10b981!important;font-size:14px;line-height:20px;font-weight:500;padding:8px 16px;min-height:36px;}
.discovery-location-banner [data-action="enable-location"]:hover{background:#059669!important;}
.discovery-location-banner [data-action="enable-location"] .ps-icon{width:16px;height:16px;}
.theme-light .discovery-page .discovery-location-banner>span{color:#047857;}
.theme-light .discovery-page .discovery-location-banner [data-action="enable-location"]{color:var(--ps-text-primary)!important;}
.discovery-location-banner.is-denied>span{background:#f59e0b33;color:#fbbf24;}
.theme-light .discovery-page .discovery-location-banner.is-denied>span{color:#92400e;}
