#ecdemos-ui { font: 400 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #25232b; }
#ecdemos-ui *, #ecdemos-ui *::before, #ecdemos-ui *::after { box-sizing: border-box; }
#ecdemos-ui [hidden] { display: none !important; }
#ecdemos-ui button, #ecdemos-ui select, #ecdemos-ui input { font: inherit; letter-spacing: normal; text-transform: none; }
#ecdemos-ui button { cursor: pointer; }
#ecdemos-ui svg { flex: none; display: block; }
#ecdemos-ui .eds-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#ecdemos-ui :focus-visible { outline: 3px solid #a89af9; outline-offset: 3px; }
#ecdemos-switcher { position: fixed; inset-inline-start: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2147483000; display: flex; align-items: center; gap: 5px; width: max-content; max-width: calc(100vw - 24px); min-height: 64px; padding: 7px; color: #f8f7ff; background: #23212ced; border: 1px solid #ffffff25; border-radius: 18px; box-shadow: 0 8px 30px #0d0a2340, 0 1px 3px #0003; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
[dir="rtl"] #ecdemos-switcher { transform: translateX(50%); }
#ecdemos-switcher .eds-selector { display: flex; align-items: center; gap: 13px; min-width: 196px; min-height: 48px; padding: 4px 13px; border: 0; border-radius: 11px; background: #ffffff0c; color: inherit; text-align: start; box-shadow: none; }
#ecdemos-switcher .eds-selector:hover { background: #ffffff18; }
#ecdemos-switcher .eds-grid-icon { color: #c3b8ff; }
#ecdemos-switcher .eds-selector-copy { display: grid; gap: 1px; flex: 1; }
#ecdemos-switcher .eds-selector-copy small { color: #bbb5cc; font-size: 10px; font-weight: 500; line-height: 1.35; letter-spacing: .06em; text-transform: uppercase; }
#ecdemos-switcher .eds-selector-copy strong { font-size: 14px; line-height: 1.5; font-weight: 650; white-space: nowrap; }
#ecdemos-switcher .eds-count { display: grid; place-items: center; min-width: 24px; height: 24px; border: 1px solid #ffffff23; border-radius: 7px; color: #d7d0e5; font-size: 11px; }
#ecdemos-switcher .eds-presets { padding-inline: 9px 5px; border-inline-start: 1px solid #ffffff20; margin-inline-start: 2px; }
#ecdemos-switcher select { width: auto; max-width: 160px; height: 40px; margin: 0; padding: 0 25px 0 9px; border: 1px solid transparent; border-radius: 8px; background-color: transparent; color: #f8f7ff; color-scheme: dark; appearance: auto; font-size: 12px; cursor: pointer; box-shadow: none; }
#ecdemos-switcher select:hover { background-color: #ffffff0c; }
#ecdemos-switcher select option { background: #25232d; color: #fff; }
#ecdemos-switcher .eds-icon-button { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #c5bfd3; box-shadow: none; }
#ecdemos-switcher .eds-icon-button:hover { background: #ffffff12; color: #fff; }
#ecdemos-switcher .eds-icon-button[aria-pressed="true"] { background: #ffffff19; color: #fff; }
#ecdemos-switcher .eds-devices { display: flex; gap: 2px; padding-inline-start: 7px; border-inline-start: 1px solid #ffffff20; }
#ecdemos-browser { width: min(970px, calc(100vw - 48px)); max-width: none; max-height: min(86vh, 900px); max-height: min(86dvh, 900px); margin: auto; padding: 0; color: #25232b; background: #f8f7fa; border: 1px solid #e4e0eb; border-radius: 22px; box-shadow: 0 24px 100px #0c072c50; overflow: hidden; }
#ecdemos-browser[open] { display: flex; flex-direction: column; }
#ecdemos-browser::backdrop { background: #171224a8; backdrop-filter: blur(6px); }
#ecdemos-browser .eds-browser-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 26px 28px 20px; flex: none; }
#ecdemos-browser .eds-eyebrow { margin: 0 0 7px; color: #73618f; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
#ecdemos-browser h2 { margin: 0; font-family: inherit; color: #25232b; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; font-weight: 720; letter-spacing: -.04em; text-transform: none; }
#ecdemos-browser .eds-browser-intro { margin: 9px 0 0; color: #736d7d; font-size: 13px; line-height: 1.5; }
#ecdemos-browser .eds-close { display: grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0; background: #eeebf2; color: #625b6c; border: 0; border-radius: 50%; box-shadow: none; }
#ecdemos-browser .eds-close:hover { background: #e1dce9; }
#ecdemos-browser .eds-search-wrap { display: flex; align-items: center; gap: 12px; margin: 0 28px 21px; padding: 0 14px; min-height: 47px; border: 1px solid #ded9e7; border-radius: 11px; background: #fff; color: #8a8197; flex: none; }
#ecdemos-browser .eds-search-wrap:focus-within { border-color: #8b73cd; box-shadow: 0 0 0 3px #8061c210; }
#ecdemos-browser input { width: 100%; min-width: 0; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; color: #25232b; outline: 0; box-shadow: none; font-size: 14px; }
#ecdemos-browser input::placeholder { color: #8a8197; }
#ecdemos-browser input:focus-visible { outline: 0; }
#ecdemos-browser .eds-search-hint { padding: 1px 5px; border: 1px solid #e3dfea; border-radius: 4px; font-size: 10px; }
#ecdemos-browser .eds-browser-results { padding: 0 28px 26px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; min-height: 90px; }
#ecdemos-browser .eds-category + .eds-category { margin-top: 26px; }
#ecdemos-browser h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #6f687b; font-family: inherit; font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
#ecdemos-browser h3 span { display: grid; place-items: center; min-width: 20px; height: 19px; border-radius: 5px; background: #e9e5f0; font-size: 10px; }
#ecdemos-browser .eds-template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 1000px) { #ecdemos-browser [data-eds-category="community"] .eds-template-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
#ecdemos-browser .eds-template-card { display: block; min-width: 0; border: 1px solid #e4e0e9; border-radius: 12px; color: #25232b; background: #fff; text-decoration: none; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
#ecdemos-browser .eds-template-card:hover { border-color: #a795cd; box-shadow: 0 5px 18px #4a2f7520; transform: translateY(-2px); }
#ecdemos-browser .eds-template-card.is-current { border-color: #8970c3; box-shadow: 0 0 0 1px #8970c3; }
#ecdemos-browser .eds-card-image { position: relative; aspect-ratio: 1.9; background: #ebe7f0; overflow: hidden; border-bottom: 1px solid #ede9f2; }
#ecdemos-browser .eds-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; }
#ecdemos-browser .eds-current-badge { position: absolute; top: 9px; inset-inline-end: 9px; border-radius: 6px; background: #33234fe8; color: #fff; padding: 4px 8px; font-size: 10px; font-weight: 600; }
#ecdemos-browser .eds-card-copy { position: relative; padding-block: 12px 13px; padding-inline: 13px 34px; }
#ecdemos-browser .eds-card-copy strong { display: block; margin-bottom: 3px; font-size: 15px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
#ecdemos-browser .eds-card-copy span { display: block; color: #797180; font-size: 11px; line-height: 1.5; }
#ecdemos-browser .eds-card-copy svg { position: absolute; top: 16px; inset-inline-end: 13px; color: #8c7da2; }
#ecdemos-browser .eds-empty { text-align: center; padding: 35px 10px; color: #736d7d; font-size: 14px; }
#ecdemos-browser .eds-browser-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: none; margin: 0; padding: 15px 28px; border-top: 1px solid #e4e0eb; background: #f1eef6; color: #84798e; font-size: 11px; }
#ecdemos-browser .eds-browser-footer a { color: #614b86; text-decoration: none; font-size: 12px; font-weight: 650; white-space: nowrap; }
#ecdemos-viewport { position: fixed; inset: 0; z-index: 2147482999; display: flex; justify-content: center; padding: 20px 12px 100px; background: #d7d4de; }
#ecdemos-viewport iframe { display: block; height: 100%; max-width: 100%; border: 1px solid #b5afc0; border-radius: 13px; background: #fff; box-shadow: 0 10px 40px #28223330; }
html.eds-viewport-active { overflow: hidden; }
html.eds-in-frame #ecdemos-ui { display: none !important; }
@media (max-width: 720px) {
    #ecdemos-switcher .eds-devices { display: none; }
    #ecdemos-browser { width: calc(100vw - 24px); max-height: calc(100dvh - 32px); border-radius: 16px; }
    #ecdemos-browser .eds-browser-header { padding: 22px 20px 18px; }
    #ecdemos-browser .eds-search-wrap { margin: 0 20px 18px; }
    #ecdemos-browser .eds-browser-results { padding: 0 20px 22px; }
    #ecdemos-browser .eds-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    #ecdemos-browser .eds-browser-footer { padding: 14px 20px; }
    #ecdemos-browser .eds-browser-footer > span { max-width: 25ch; }
}
@media (max-width: 440px) {
    #ecdemos-switcher { min-height: 58px; bottom: max(10px, env(safe-area-inset-bottom)); gap: 2px; padding: 5px; border-radius: 14px; max-width: calc(100vw - 16px); }
    #ecdemos-switcher .eds-selector { min-width: 145px; gap: 8px; padding-inline: 9px; }
    #ecdemos-switcher .eds-count { display: none; }
    #ecdemos-switcher .eds-grid-icon { width: 16px; height: 16px; }
    #ecdemos-switcher .eds-selector-copy strong { font-size: 13px; }
    #ecdemos-switcher .eds-presets { padding-inline: 3px 0; margin: 0; }
    #ecdemos-switcher select { max-width: 116px; padding-inline-start: 5px; font-size: 11px; }
    #ecdemos-switcher .eds-icon-button { width: 34px; }
    #ecdemos-browser .eds-browser-header { padding: 20px 16px 16px; gap: 10px; }
    #ecdemos-browser .eds-browser-intro { font-size: 12px; max-width: 31ch; }
    #ecdemos-browser .eds-search-wrap { margin-inline: 16px; }
    #ecdemos-browser .eds-browser-results { padding-inline: 16px; }
    #ecdemos-browser .eds-template-grid { grid-template-columns: 1fr; gap: 12px; }
    #ecdemos-browser .eds-template-card { display: grid; grid-template-columns: 112px 1fr; }
    #ecdemos-browser .eds-card-image { aspect-ratio: auto; min-height: 94px; border: 0; border-inline-end: 1px solid #ede9f2; }
    #ecdemos-browser .eds-card-image img { position: absolute; inset: 0; }
    #ecdemos-browser .eds-current-badge { top: auto; bottom: 6px; inset-inline: 6px; padding: 3px 4px; font-size: 9px; text-align: center; }
    #ecdemos-browser .eds-card-copy { align-self: center; padding-block: 15px; }
    #ecdemos-browser .eds-card-copy svg { top: 18px; }
    #ecdemos-browser .eds-browser-footer { padding-inline: 16px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { #ecdemos-browser .eds-template-card { transition: none; } }
@media print { #ecdemos-ui { display: none !important; } }
