/* Lidya discovery: shares the profile light/dark palette; capture behavior stays in the existing scripts. */
html body #explore {--ec-accent:var(--ui-gold);--ec-muted:var(--ui-muted);--ec-line:var(--ui-line);--ec-panel:var(--ui-panel);background:var(--lydia-panel) !important;padding-inline:16px !important;}
html body #explore>.eyebrow {font-size:10px !important;letter-spacing:.2em;color:var(--lydia-gold);margin:4px 0 6px !important;}
html body #explore>.title {font-size:32px !important;line-height:1.1 !important;letter-spacing:-1.2px;margin:0 !important;}
html body #explore>.ec-explore-intro {font-size:12px;line-height:1.5;color:var(--ec-muted);margin:9px 0 20px;}
html body #explore .eris-stories {padding:0 0 17px !important;margin:0 0 14px !important;border-bottom:1px solid var(--ec-line);}
html body #explore .eris-stories-row {gap:13px !important;padding:4px 0 !important;min-height:85px;}
html body #explore .eris-story-name {font-size:10px !important;margin-top:7px;color:var(--lydia-text);}
html body #explore .eris-story-plus {background:var(--lydia-panel) !important;color:var(--lydia-text) !important;border:3px solid var(--lydia-line) !important;}
html body #explore .ec-explore-subnav {gap:0;padding:4px !important;background:var(--lydia-panel);border:1px solid var(--ec-line);border-radius:15px;margin:0 0 18px !important;}
html body #explore .ec-explore-subnav button {min-height:41px !important;border:0 !important;border-radius:11px !important;background:transparent !important;padding:8px !important;font-size:13px !important;color:var(--lydia-muted) !important;}
html body #explore .ec-explore-subnav button[aria-selected=true] {background:var(--lydia-panel) !important;color:var(--lydia-text) !important;box-shadow:0 2px 8px var(--theme-shadow, #342b2120);}
html body #explore .ec-social-head {margin:0 0 12px !important;}
html body #explore .ec-social-head h2 {font-size:16px !important;letter-spacing:-.3px;}
html body #explore .ec-social-create-wrap {gap:8px;padding:0 !important;}
html body #explore .ec-social-create {min-height:61px !important;padding:10px 12px !important;background:linear-gradient(115deg,var(--lydia-panel),var(--lydia-panel)) !important;border:1px solid var(--lydia-line) !important;border-radius:17px !important;}
html body #explore .ec-social-create b {font-size:13px !important;font-weight:500 !important;color:var(--lydia-text);}
html body #explore .ec-social-create .ec-social-avatar {width:34px !important;height:34px !important;background:var(--lydia-panel) !important;color:var(--lydia-gold);font-size:21px !important;flex-shrink:0;}
html body #explore .ec-social-photo-action {width:48px !important;height:61px !important;flex-basis:48px !important;background:var(--lydia-panel) !important;border-radius:16px !important;display:grid;place-items:center;}
html body #explore .ec-social-modes {gap:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:14px 0 0 !important;padding:0 !important;}
html body #explore .ec-social-modes button {text-align:center;padding:12px 2px !important;font-size:11px !important;border-bottom-width:2px !important;min-height:42px;}
html body #explore .ec-social-post {margin:14px 0 !important;padding:14px !important;border:1px solid var(--ec-line) !important;border-radius:20px !important;background:var(--lydia-panel) !important;box-shadow:0 7px 26px var(--theme-shadow, #342b2120);}
html body #explore .ec-social-author b {font-size:13px !important;}
html body #explore .ec-social-date {font-size:10px !important;color:var(--lydia-muted) !important;margin-top:4px;}
html body #explore .ec-social-photo, html body #explore .ec-social-video {max-height:65vh !important;border-radius:14px !important;background:var(--lydia-panel) !important;}
html body #explore .ec-social-caption {font-size:13px !important;line-height:1.6;margin:12px 0 !important;}
html body #explore .ec-post-engagement {border-top:1px solid var(--ec-line);margin-top:12px;padding-top:13px;}
html body #explore .ec-social-directory .tabs {display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:6px !important;margin:0 0 14px !important;}
html body #explore .ec-social-directory .tab {font-size:11px !important;min-width:0;padding:10px 4px !important;min-height:42px;border:1px solid var(--ec-line) !important;background:var(--lydia-panel) !important;border-radius:12px !important;color:var(--lydia-muted) !important;}
html body #explore .ec-social-directory .tab.active {background:var(--lydia-panel) !important;border-color:var(--lydia-line) !important;color:var(--lydia-text) !important;}
html body #explore .ec-discovery-empty {border:1px dashed var(--lydia-line) !important;border-radius:22px !important;background:linear-gradient(135deg,var(--lydia-panel),var(--lydia-panel)) !important;padding:28px 20px !important;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;min-height:180px;}
html body #explore .ec-empty-art {width:52px;height:52px;border-radius:17px;display:grid;place-items:center;background:var(--lydia-panel);color:var(--lydia-gold);}
html body #explore .ec-discovery-empty b {font-size:15px;color:var(--lydia-text);}
html body #explore .ec-discovery-empty p {font-size:12px;line-height:1.6;color:var(--lydia-muted);margin:0;max-width:270px;}
html body #explore .room.card, html body #explore .ec-person-card {border:1px solid var(--ec-line) !important;background:var(--lydia-panel) !important;border-radius:17px !important;padding:14px !important;display:flex !important;align-items:center !important;gap:12px !important;color:var(--lydia-text);text-align:left;min-width:0;}
html body #explore .roomText {min-width:0;}
html body #explore .roomText b {font-size:14px;}
html body #explore .roomText small, html body #explore .ec-person-card small {display:block;font-size:10px;color:var(--lydia-muted);margin-top:4px;}
html body #explore .ec-room-art, html body #explore .ec-person-avatar {width:45px;height:45px;flex-shrink:0;border-radius:14px;background:var(--lydia-panel);color:var(--lydia-gold);display:grid;place-items:center;font-weight:700;}
html body #explore .ec-person-avatar {border-radius:50%;}
html body #explore .ec-room-live {font-size:8px;letter-spacing:.1em;color:var(--lydia-text);background:var(--lydia-panel);padding:5px 7px;border-radius:7px;margin-left:auto;}
html body #explore [data-discovery-controls] {background:var(--lydia-panel) !important;border:1px solid var(--ec-line) !important;border-radius:16px !important;font-size:12px;display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px !important;}
html body #explore [data-discovery-controls] select {border:1px solid var(--lydia-line);background:var(--lydia-panel);color:var(--lydia-text);padding:8px;border-radius:8px;}
html body .ec-compose {padding:16px !important;box-sizing:border-box !important;backdrop-filter:blur(8px);overflow-y:auto !important;overscroll-behavior:contain;}
html body .ec-compose>section {width:min(500px,100%) !important;max-height:calc(100dvh - 32px) !important;display:flex !important;flex-direction:column;overflow:hidden !important;box-sizing:border-box !important;padding:0 !important;border:1px solid var(--lydia-line) !important;border-radius:25px !important;background:var(--lydia-panel) !important;box-shadow:0 28px 90px var(--theme-shadow, #342b2120);}
html body .ec-compose-head {display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:22px 20px 17px;border-bottom:1px solid var(--lydia-line);flex-shrink:0;}
html body .ec-compose-kicker {font-size:9px;letter-spacing:.15em;color:var(--lydia-gold);}
html body .ec-compose-head h2 {font-size:23px;line-height:1.2;letter-spacing:-.6px;margin:9px 0 7px;color:var(--lydia-text);}
html body .ec-compose-head p {font-size:12px;line-height:1.5;color:var(--lydia-muted);margin:0;}
html body .ec-compose button {font:inherit !important;cursor:pointer;}
html body .ec-compose button:disabled {opacity:.45;cursor:default;}
html body .ec-compose [data-close] {width:34px;height:34px;padding:6px !important;border:1px solid var(--lydia-line) !important;border-radius:50% !important;display:grid;place-items:center;flex-shrink:0;background:var(--lydia-panel) !important;}
html body .ec-compose-body {overflow-y:auto;overscroll-behavior:contain;padding:18px 20px;min-height:0;}
html body .ec-compose .ec-audience-label {display:block !important;font-size:11px !important;color:var(--lydia-muted) !important;margin:0 0 15px !important;}
html body .ec-compose [data-audience] {display:block !important;width:100% !important;margin-top:7px !important;border:1px solid var(--lydia-line) !important;border-radius:12px !important;background:var(--lydia-panel) !important;color:var(--lydia-text) !important;font:inherit !important;padding:11px !important;box-sizing:border-box;}
html body .ec-compose .ec-caption-wrap {position:relative;margin:0 0 14px;}
html body .ec-compose [data-caption] {margin:0 !important;width:100% !important;box-sizing:border-box !important;padding:14px 14px 30px !important;border:1px solid var(--lydia-line) !important;border-radius:14px !important;background:var(--lydia-panel) !important;font:13px/1.6 system-ui,sans-serif !important;color:var(--lydia-text) !important;resize:none !important;}
html body .ec-compose textarea[data-caption] {min-height:125px !important;}
html body .ec-compose input[data-caption] {padding-bottom:25px !important;}
html body .ec-compose [data-count] {position:absolute;right:12px;bottom:9px;font-size:9px !important;color:var(--lydia-muted);}
html body .ec-compose .ec-media-tools {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:14px;}
html body .ec-compose .ec-media-tools button {display:flex;align-items:center;gap:10px;text-align:left;min-height:66px;padding:12px !important;border:1px solid var(--lydia-line) !important;border-radius:14px !important;background:var(--lydia-panel) !important;font-size:13px !important;color:var(--lydia-text);}
html body .ec-compose .ec-media-tools svg {color:var(--lydia-gold);}
html body .ec-compose .ec-media-tools small {display:block;margin-top:4px;font-size:9px !important;color:var(--lydia-muted);}
html body .ec-compose [data-preview], html body .ec-compose [data-video-preview] {display:block;width:100%;max-height:260px !important;object-fit:contain;background:var(--lydia-panel);border:1px solid var(--lydia-line);border-radius:14px !important;margin:10px 0 15px !important;}
html body .ec-compose [data-status] {display:block;color:var(--lydia-muted) !important;font-size:11px !important;line-height:1.5;overflow-wrap:anywhere;margin:8px 0 0 !important;}
html body .ec-compose-footer {display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 20px max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--lydia-line);background:var(--lydia-panel);flex-shrink:0;}
html body .ec-compose-footer>span {margin-right:auto;font-size:10px;color:var(--lydia-muted);}
html body .ec-compose-footer button {min-height:43px;display:flex;align-items:center;justify-content:center;gap:9px;padding:10px 17px !important;border-radius:13px !important;font-size:13px !important;}
html body .ec-compose .ec-primary, html body .ec-compose .story-primary {background:linear-gradient(115deg,var(--lydia-panel),var(--lydia-panel)) !important;color:var(--lydia-text);font-weight:700 !important;}
html body .ec-story-intro {display:flex;flex-direction:column;align-items:center;gap:9px;padding:22px 10px;margin-bottom:16px;border:1px dashed var(--lydia-line);border-radius:16px;background:var(--lydia-panel);text-align:center;}
html body .ec-story-intro svg {width:30px;height:30px;color:var(--lydia-gold);}
html body .ec-story-intro strong {font-size:13px;}
html body .ec-story-intro span {font-size:11px;line-height:1.5;color:var(--lydia-muted);}
@media(max-width:360px){html body .ec-compose {padding:8px !important;}
html body .ec-compose>section {max-height:calc(100dvh - 16px) !important;}
html body .ec-compose-head {padding:18px 16px 14px;}
html body .ec-compose-head h2 {font-size:21px;}
html body .ec-compose-body {padding:16px;}
html body .ec-compose .ec-media-tools button {gap:7px;padding:9px !important;}
html body .ec-compose-footer {padding-inline:16px;}}
html body #explore .ec-social-directory .tabs .tab {display:flex;align-items:center;justify-content:center;gap:5px;font-size:10px !important;line-height:1.35;}
html body #explore .ec-social-directory .tabs .tab svg {width:15px;height:15px;}
html body #explore .eris-story-face>svg {width:25px;height:25px;color:var(--lydia-gold);}
html body #explore { background: transparent !important; color: var(--lydia-text); }
html body #explore > .title,
html body #explore .ec-social-head h2,
html body .ec-compose-head h2 { font-family: Georgia, serif; letter-spacing: -.3px; color: var(--lydia-text); }
html body #explore .ec-social { color: var(--lydia-text); }
html body #explore .ec-social-post,
html body #explore .room.card,
html body #explore .ec-person-card,
html body #explore .ec-discovery-empty,
html body #explore [data-discovery-controls],
html body .ec-compose > section {
 border-radius: 5px 16px !important;
 border: 1px solid var(--lydia-line) !important;
 background: linear-gradient(140deg,var(--theme-plate-highlight,#fff5dc),var(--theme-plate,#f4e5c4),var(--theme-plate-shadow,#e7d3a6)) !important;
 box-shadow: inset 0 0 0 3px var(--theme-plate,#f4e5c4), inset 0 0 0 4px var(--theme-carved-line,#b99b62), 0 6px 18px var(--theme-shadow,#342b2114);
 color: var(--lydia-text);
}
html body #explore .ec-social-post { padding: 20px !important; }
html body #explore .ec-explore-subnav,
html body #explore .ec-social-create,
html body #explore .ec-social-photo-action,
html body #explore .ec-social-directory .tab,
html body .ec-compose .ec-media-tools button { border-radius: 4px 12px !important; color: var(--lydia-text); border-color: var(--lydia-line) !important; }
html body #explore .ec-explore-subnav button[aria-selected=true],
html body #explore .ec-social-directory .tab.active { background: var(--theme-sent,#ead7ae) !important; color: var(--lydia-text) !important; box-shadow: inset 0 -2px var(--lydia-gold); }
html body #explore .ec-social-modes { border-color: var(--lydia-line); }
html body #explore .ec-social-modes button { color: var(--lydia-muted); }
html body #explore .ec-social-modes button[aria-selected=true] { color: var(--lydia-text); border-bottom-color: var(--lydia-gold); }
html body #explore .eris-story-face,
html body #explore .eris-story-add .eris-story-face { background: linear-gradient(var(--lydia-panel),var(--lydia-panel)) padding-box, linear-gradient(135deg,var(--lydia-gold),var(--lydia-bronze)) border-box; }
html body #explore .eris-story.seen .eris-story-face { background: linear-gradient(var(--lydia-panel),var(--lydia-panel)) padding-box, linear-gradient(var(--lydia-line),var(--lydia-line)) border-box; }
html body #explore .ec-room-art,
html body #explore .ec-empty-art,
html body #explore .ec-social-avatar {
 border-radius: 50%; border: 1px solid var(--lydia-line); color: var(--lydia-text);
 background: linear-gradient(140deg,var(--theme-sent,#edcf91),var(--theme-plate-shadow,#ddba72));
 box-shadow: inset 0 0 0 3px var(--theme-plate,#f4e5c4), inset 0 0 0 4px var(--lydia-line);
}
html body #explore .ec-person-avatar { background: var(--lydia-panel-raised); color: var(--lydia-text); border: 1px solid var(--lydia-line); }
html body #explore .ec-social-photo-action,
html body #explore .ec-post-engagement button,
html body #explore .ec-comment-controls button,
html body #explore .ec-social-menu summary { color: var(--lydia-text); }
html body #explore .ec-post-engagement button[aria-pressed=true],
html body #explore .ec-comment-controls button[aria-pressed=true] { color: var(--lydia-gold); }
html body #explore .ec-social-empty,
html body #explore .ec-comment-empty,
html body #explore [data-reply-label] { color: var(--lydia-muted); }
html body #explore .ec-social-menu[open] button,
html body #explore .ec-comment-composer input,
html body #explore [data-discovery-controls] select {
 color: var(--lydia-text); background: var(--lydia-panel); border: 1px solid var(--lydia-line);
}
html body #explore .ec-comment-composer input::placeholder,
html body .ec-compose [data-caption]::placeholder { color: var(--lydia-muted); opacity: 1; }
html body #explore .ec-comment-composer button,
html body #explore .eris-story-plus,
html body .ec-compose .ec-primary,
html body .ec-compose .story-primary {
 background: linear-gradient(135deg,var(--ui-primary),var(--ui-danger-bg)) !important; color: var(--ui-primary-ink) !important; border-color: var(--lydia-line) !important;
}
html[data-eris-theme="dark"] body #explore .ec-comment-composer button,
html[data-eris-theme="dark"] body #explore .eris-story-plus,
html[data-eris-theme="dark"] body .ec-compose .ec-primary,
html[data-eris-theme="dark"] body .ec-compose .story-primary { background: linear-gradient(135deg,var(--ui-primary),var(--ui-primary)) !important; color: var(--ui-primary-ink) !important; }
html body #explore :is(button,input,select,summary):focus-visible,
html body .ec-compose :is(button,input,textarea,select):focus-visible { outline: 2px solid var(--lydia-focus); outline-offset: 3px; }
/* Report dialogs belong to discovery; media viewers retain a dark canvas. */
html body .eris-story-modal,
html body .ec-social-modal { background: var(--theme-overlay,#342b2199); }
html body .eris-story-modal section,
html body .ec-social-modal section { color: var(--lydia-text); background: var(--lydia-panel); border-color: var(--lydia-line); border-radius: 5px 16px; }
html body .eris-story-modal :is(input,textarea,button),
html body .ec-social-modal :is(input,textarea,button) { color: var(--lydia-text) !important; background: var(--lydia-panel-raised) !important; border-color: var(--lydia-line) !important; }
html body .eris-story-modal .story-primary,
html body .ec-social-modal .ec-primary { color: var(--ui-primary-ink) !important; background: linear-gradient(135deg,var(--ui-primary),var(--ui-danger-bg)) !important; }
html[data-eris-theme="dark"] body .eris-story-modal .story-primary,
html[data-eris-theme="dark"] body .ec-social-modal .ec-primary { background: linear-gradient(135deg,var(--ui-primary),var(--ui-primary)) !important; }
html body .eris-camera [data-status], html body .eris-camera [data-lens], html body .ec-camera-modes button { color: var(--ui-gold); }
html body .ec-camera-modes button[aria-pressed=true] { color: var(--ui-ink); background: var(--ui-raised) !important; }
html body .eris-camera .ec-camera-shutter { border-color: var(--ui-line); }
html body .ec-camera-shutter i { background: var(--ui-panel); }
