@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&family=Space+Grotesk:wght@500&display=swap');

:root { --accent: #aabbb4; --text: #edf0ee; --muted: #858986; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { min-height: 100vh; color: var(--text); font-family: "Manrope", sans-serif; background: #17191a; }
body[data-background="graphite"] { background: #17191a; }
body[data-background="charcoal"] { background: #1d1f20; }
body[data-background="ash"] { background: #242625; }
body[data-background="midnight"] { background: #111418; }
body[data-background="image"] { background-repeat: no-repeat; }
body[data-background="forest"], body[data-background="coast"], body[data-background="city"], body[data-background="space"] { background-repeat: no-repeat; background-size: cover; background-position: center; background-attachment: fixed; }
body.theme-pride { background: linear-gradient(135deg, rgba(228,3,3,.16), rgba(255,140,0,.12) 20%, rgba(255,237,0,.1) 40%, rgba(0,128,38,.12) 60%, rgba(36,64,142,.14) 80%, rgba(115,41,130,.16)), #17191a; }
body.theme-neon { background: radial-gradient(circle at 80% 20%, rgba(230,37,160,.18), transparent 28%), linear-gradient(135deg, #11101e, #20142b); --accent: #65efff; }
body.theme-pride .brand-mark, body.theme-neon .brand-mark { width: 18px; height: 18px; display: inline-block; margin-right: 8px; vertical-align: -3px; border-radius: 50%; }
body.theme-pride .brand-mark { background: linear-gradient(to bottom, #e40303 0 16%, #ff8c00 16% 33%, #ffed00 33% 50%, #008026 50% 66%, #24408e 66% 83%, #732982 83%); }
body.theme-neon .brand-mark { background: #e625a0; box-shadow: 0 0 12px #65efff; }

.settings-menu { position: fixed; z-index: 30; top: 58px; right: 34px; width: min(720px, calc(100vw - 68px)); aspect-ratio: 16 / 9; max-height: calc(100vh - 88px); overflow-y: auto; display: none; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(20,22,22,.98); padding: 18px 20px; box-shadow: 0 24px 80px rgba(0,0,0,.38); }
.settings-menu.open { display: block; }
.settings-columns { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; }
.settings-theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.theme-choice { min-width: 0; height: 58px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; background: rgba(255,255,255,.025); color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font: 500 9px "Manrope", sans-serif; cursor: pointer; }
.theme-choice:hover, .theme-choice.active { color: var(--text); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.theme-logo { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); }
.graphite-logo { background: radial-gradient(circle at 35% 30%, #5c6260, #17191a 68%); }
.midnight-logo { background: linear-gradient(145deg, #202936, #090b0e); }
.forest-logo { background: linear-gradient(145deg, #5d8469, #172b20); }
.pride-logo { background: linear-gradient(to bottom, #e40303 0 16%, #ff8c00 16% 33%, #ffed00 33% 50%, #008026 50% 66%, #24408e 66% 83%, #732982 83%); }
.neon-logo { background: linear-gradient(145deg, #24143d, #e625a0); color: #65efff; }
.image-logo { background: linear-gradient(135deg, #e7e9e4 0 48%, #343735 48%); color: #343735; }
.settings-header { height: 32px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.07); }
.settings-header strong { font-size: 13px; }
.settings-close { border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.settings-section { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.settings-section > p { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.settings-backgrounds { display: flex; gap: 8px; }
.settings-swatch { width: 22px; height: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; cursor: pointer; }
.settings-swatch:nth-child(1) { background: #17191a; }.settings-swatch:nth-child(2) { background: #1d1f20; }.settings-swatch:nth-child(3) { background: #242625; }.settings-swatch:nth-child(4) { background: #111418; }
.forest-swatch { background-image: url('https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=300&q=70'); background-size: cover; }.coast-swatch { background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=300&q=70'); background-size: cover; }.city-swatch { background-image: url('https://images.unsplash.com/photo-1519501025264-65ba15a82390?auto=format&fit=crop&w=300&q=70'); background-size: cover; }.space-swatch { background-image: url('https://images.unsplash.com/photo-1444703686981-a3abbc4d4fe3?auto=format&fit=crop&w=300&q=70'); background-size: cover; }.image-swatch { background: linear-gradient(135deg, #e6e8e4 35%, #303231 36%); }.settings-swatch.active { outline: 1px solid var(--accent); outline-offset: 3px; }
.settings-row { min-height: 34px; display: flex; align-items: center; justify-content: space-between; color: var(--text); font-size: 12px; }
.settings-row input { accent-color: var(--accent); }
.settings-row select { border: 1px solid rgba(255,255,255,.09); border-radius: 5px; background: #17191a; color: var(--text); padding: 5px; }
.settings-action { width: 100%; height: 34px; border: 1px solid rgba(255,255,255,.09); border-radius: 5px; background: transparent; color: var(--muted); text-align: left; padding: 0 10px; cursor: pointer; }
.settings-action:hover { color: var(--text); border-color: rgba(255,255,255,.16); }
.settings-status { min-height: 18px; padding-top: 8px; color: var(--muted); font-size: 11px; }
body[data-background="image"] .widget { border-top-color: rgba(255,255,255,.12); }
body[data-background="image"] .search-form { background: rgba(10,11,12,.72); backdrop-filter: blur(12px); }

.suggestion-form { position: relative; }
.search-suggestions { position: absolute; z-index: 20; left: -1px; right: -1px; top: calc(100% + 8px); display: none; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 7px; background: rgba(20,22,22,.98); }
.search-suggestions.open { display: block; }
.search-suggestions button { width: 100%; height: 42px; display: block; margin: 0; padding: 0 14px; border: 0; border-radius: 0; background: transparent; color: var(--text); text-align: left; font: 400 13px "Manrope", sans-serif; cursor: pointer; }
.search-suggestions button:hover, .search-suggestions button.active { background: rgba(255,255,255,.05); }

.home-header { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 36px; }
.brand { color: var(--text); text-decoration: none; font: 500 20px "Space Grotesk", sans-serif; }
.brand span { color: var(--text); }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.icon-button:hover { color: var(--text); }
.home-shell { min-height: calc(100vh - 68px); display: grid; grid-template-rows: minmax(360px, 1fr) auto; padding-bottom: 24px; }
.search-layout { width: min(680px, calc(100% - 40px)); margin: auto; display: flex; align-items: center; justify-content: center; }
.search-stage { width: 100%; display: flex; flex-direction: column; align-items: center; transform: translateY(-10px); }
.search-stage h1 { font: 500 clamp(28px, 4vw, 42px) "Space Grotesk", sans-serif; letter-spacing: 0; text-align: center; margin-bottom: 24px; }
.search-form { width: 100%; height: 54px; display: grid; grid-template-columns: 42px 1fr 82px; align-items: center; border: 1px solid rgba(255,255,255,.09); border-radius: 7px; background: rgba(10,11,12,.5); }
.search-form:focus-within { border-color: rgba(170,187,180,.38); }
.search-icon { justify-self: end; color: var(--muted); font-size: 13px; }
.search-form input { height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); padding: 0 14px; font-size: 15px; }
.search-form button { height: 38px; margin-right: 7px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.search-form button:hover { color: var(--text); }
.widget-grid { width: min(680px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.widget { min-height: 82px; padding: 12px 14px; border: 0; border-top: 1px solid rgba(255,255,255,.07); background: transparent; display: flex; flex-direction: column; }
.home-search-form { grid-template-columns: 42px minmax(0, 1fr) 82px 76px; }
.search-utility-link { justify-self: stretch; margin-right: 7px; padding: 10px 6px; border-left: 1px solid rgba(255,255,255,.08); color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; text-decoration: none; }
.search-utility-link:hover, .search-utility-link:focus-visible { color: var(--text); }
.network-sites-heading { color: var(--text); font: 500 18px "Space Grotesk", sans-serif; }
.network-sites-page { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 60px; }
.network-sites-intro { margin-bottom: 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.network-sites-list { display: grid; gap: 8px; list-style: none; }
.network-site-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 7px; background: rgba(10,11,12,.18); }
.network-site-details { display: grid; min-width: 0; gap: 4px; }
.network-site-details a { overflow: hidden; color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.network-site-details a:hover { color: var(--accent); }
.network-site-details span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.network-site-result { color: var(--muted); font-size: 11px; }
.network-site-result.is-accessible { color: #6fcf97; }
.network-site-result.is-blocked { color: #d96b70; }
.network-site-check { min-width: 92px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.1); border-radius: 5px; background: transparent; color: var(--text); font: 500 10px "Manrope", sans-serif; cursor: pointer; }
.network-site-check:hover:not(:disabled) { border-color: rgba(255,255,255,.25); }
.network-site-check:disabled { cursor: wait; opacity: .55; }
.network-sites-pagination { justify-content: center; }
.network-sites-empty { color: var(--muted); font-size: 13px; }
.widget-grid { grid-template-columns: repeat(3, 1fr); }
.widget { min-height: 110px; border: 1px solid rgba(255,255,255,.07); border-radius: 8px; background: rgba(10,11,12,.12); }
.weather-widget { min-width: 0; }
.weather-form { display: flex; gap: 5px; margin-top: 9px; }
.weather-form input { width: 0; min-width: 0; flex: 1; border: 1px solid rgba(255,255,255,.09); border-radius: 5px; background: rgba(10,11,12,.35); color: var(--text); padding: 6px 8px; font: 400 10px "Manrope", sans-serif; }
.weather-form button { border: 1px solid rgba(255,255,255,.09); border-radius: 5px; background: transparent; color: var(--muted); padding: 0 7px; font: 500 9px "Manrope", sans-serif; cursor: pointer; }
.weather-form button:hover:not(:disabled) { color: var(--text); border-color: rgba(255,255,255,.2); }
.weather-form button:disabled { cursor: wait; opacity: .6; }
.weather-location-button { display: flex; align-items: center; gap: 5px; margin-top: 7px; padding: 0; border: 0; background: transparent; color: var(--muted); font: 500 10px "Manrope", sans-serif; cursor: pointer; }
.weather-location-button:hover { color: var(--text); }
.accessible-websites { min-width: 0; }
.accessible-websites > p { margin-bottom: 5px; }
.accessible-websites > strong { margin-bottom: 3px; font-size: 15px; }
.accessible-websites > span { margin-bottom: 8px; line-height: 1.4; }
.accessible-websites ul { display: grid; gap: 7px; padding: 0; list-style: none; }
.accessible-websites li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: baseline; font-size: 10px; }
.accessible-websites li a { overflow: hidden; color: var(--text); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.accessible-websites li a:hover { color: var(--accent); }
.accessible-websites .network-site-host { grid-column: 1; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.accessible-websites .network-site-status { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
.network-site-status.is-accessible { color: #6fcf97; }
.network-site-status.is-blocked { color: #d96b70; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.knowledge-card { background: rgba(255,255,255,.025); }
.knowledge-card strong { font-size: 15px; margin: 5px 0 2px; }
.knowledge-card a { margin-top: 7px; color: var(--accent); text-decoration: none; font-size: 10px; }
.compact-layout .widget-grid { gap: 6px; }
.compact-layout .widget { min-height: 88px; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
.widget p { color: var(--muted); font-size: 11px; margin-bottom: auto; }
.widget strong { font: 500 20px "Space Grotesk", sans-serif; }
.widget span { color: var(--muted); font-size: 10px; }
.quick-widget a { color: var(--text); text-decoration: none; font-size: 11px; margin-top: 5px; }
.quick-widget a i { margin-left: 3px; font-size: 9px; }
.background-picker { position: fixed; top: 58px; right: 34px; display: none; gap: 8px; }
.background-picker.open { display: flex; }
.background-picker button { width: 20px; height: 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; cursor: pointer; }
.background-picker button:nth-child(1) { background: #17191a; }.background-picker button:nth-child(2) { background: #1d1f20; }.background-picker button:nth-child(3) { background: #242625; }.background-picker button:nth-child(4) { background: #111418; }.background-picker button:nth-child(5) { background: linear-gradient(135deg, #e6e8e4 0 38%, #747b77 38% 62%, #303231 62%); }.background-picker button.active { outline: 1px solid var(--accent); outline-offset: 3px; }
.results-page { background: #17191a; }
.results-header { height: 76px; display: flex; align-items: center; gap: 28px; padding: 0 3%; }
.search-form.compact { max-width: 620px; height: 46px; }
.results { width: min(760px, calc(100% - 40px)); margin-left: 3%; padding: 24px 0 60px; }
.result-count { color: var(--muted); font-size: 12px; margin-bottom: 28px; }
.result-card { margin-bottom: 28px; }
.network-status { min-height: 22px; display: flex; align-items: center; gap: 7px; margin-bottom: 7px; font-size: 12px; }
.network-lock { display: inline-grid; width: 16px; height: 16px; place-items: center; font-size: 13px; }
.network-status.is-accessible { color: #6fcf97; }
.network-status.is-blocked { color: #d96b70; }
.network-status.is-checking { color: var(--muted); }
.network-info-button { width: 22px; height: 22px; display: inline-grid; place-items: center; margin-left: 2px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 12px; cursor: pointer; }
.network-info-button:hover, .network-info-button:focus-visible { color: var(--text); outline: 1px solid rgba(255,255,255,.18); outline-offset: 2px; }
.network-status { position: relative; }
.network-info-popup { position: absolute; z-index: 40; left: 0; top: calc(100% + 8px); width: min(340px, calc(100vw - 40px)); display: none; border: 1px solid rgba(255,255,255,.09); border-radius: 7px; background: rgba(20,22,22,.98); color: var(--text); padding: 12px 14px; box-shadow: 0 14px 36px rgba(0,0,0,.28); font-size: 12px; line-height: 1.55; }
.network-info-popup.open { display: block; }
.network-info-popup strong { display: block; margin-bottom: 6px; }
.network-info-popup p { margin-top: 6px; }

.result-title { color: var(--text); font: 500 18px "Space Grotesk", sans-serif; text-decoration: none; }
.result-title:hover { color: var(--accent); }
.result-url { color: var(--muted); font-size: 11px; margin: 6px 0; overflow-wrap: anywhere; }
.result-snippet { color: #aaaDA9; font-size: 13px; line-height: 1.65; }
.results-layout { width: min(1200px, 94%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 320px); gap: 48px; align-items: start; }
.results-layout .results { width: auto; min-width: 0; margin: 0; padding: 24px 0 60px; }
.results-tabs { display: flex; gap: 20px; margin: -12px 0 28px; border-bottom: 1px solid rgba(255,255,255,.09); }
.results-tab { padding: 10px 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: 500 13px "Manrope", sans-serif; cursor: pointer; }
.results-tab:hover, .results-tab.active { color: var(--text); }
.results-tab.active { border-bottom-color: var(--accent); }
.image-results-message { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.image-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.image-result-card { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 7px; background: rgba(10,11,12,.2); }
.image-result-card a { display: flex; height: 100%; flex-direction: column; color: var(--text); text-decoration: none; }
.image-result-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: rgba(255,255,255,.035); }
.image-result-card span { overflow: hidden; padding: 9px 10px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.image-result-card:hover { border-color: rgba(255,255,255,.2); }
.knowledge-panel { position: sticky; top: 24px; margin-top: 101px; padding: 18px; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; background: rgba(10,11,12,.2); }
.knowledge-panel-label { margin-bottom: 14px; color: var(--muted); font-size: 10px; letter-spacing: .5px; text-transform: uppercase; }
.knowledge-panel h2 { overflow-wrap: anywhere; font: 500 20px "Space Grotesk", sans-serif; }
.knowledge-panel-site { margin-top: 6px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.knowledge-panel-description { margin-top: 14px; color: #aaaDA9; font-size: 12px; line-height: 1.65; }
.knowledge-panel > a { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--accent); font-size: 11px; text-decoration: none; }
.knowledge-panel > a:hover { color: var(--text); }
.empty-state { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 70px 20px; }.empty-state h2 { font-size: 22px; margin: 18px 0 8px; }.empty-state p { color: var(--muted); }
.empty-illustration { width: 118px; height: 118px; position: relative; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; color: var(--muted); }
.empty-illustration > i { font-size: 30px; }
.empty-orbit { position: absolute; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.orbit-one { width: 150px; height: 52px; transform: rotate(28deg); }.orbit-two { width: 52px; height: 150px; transform: rotate(28deg); }
.pagination { display: flex; align-items: center; gap: 20px; margin-top: 44px; }.pagination a { color: var(--muted); text-decoration: none; }.pagination a:hover { color: var(--text); }.pagination span { color: var(--muted); }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.error-shell { width: min(520px, 100%); text-align: center; }
.error-illustration { height: 150px; position: relative; display: grid; place-items: center; color: var(--muted); }
.error-illustration::before, .error-illustration::after { content: ""; position: absolute; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; }
.error-illustration::after { width: 120px; height: 120px; }.error-code { position: relative; z-index: 2; font: 500 56px "Space Grotesk", sans-serif; }.error-shell h1 { margin: 12px 0 8px; font-size: 24px; }.error-shell p { color: var(--muted); margin-bottom: 22px; }.error-shell a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.18); padding-bottom: 4px; }
@media (max-width: 760px) {
    .home-header { height: 62px; padding: 0 20px; }.home-shell { min-height: calc(100vh - 62px); grid-template-rows: minmax(340px, 1fr) auto; }
    .search-layout, .widget-grid { width: calc(100% - 40px); }.search-stage { transform: none; }.search-stage h1 { font-size: 30px; }
    .search-form { grid-template-columns: 38px 1fr 70px; }.home-search-form { grid-template-columns: 34px minmax(0, 1fr) 58px 54px; }.search-utility-link { margin-right: 4px; padding-right: 3px; padding-left: 3px; font-size: 10px; }.widget-grid { grid-template-columns: 1fr 1fr; }.widget { min-height: 76px; }
    .background-picker { right: 20px; }.results-header { height: auto; padding: 14px 20px; flex-wrap: wrap; }.search-form.compact { max-width: none; }
    .results { width: calc(100% - 40px); margin-left: 20px; }
}
@media (max-width: 900px) {
    .results-layout { width: calc(100% - 40px); grid-template-columns: minmax(0, 1fr); gap: 0; }
    .results-layout .results { width: 100%; margin: 0; }
    .knowledge-panel { position: static; margin: 0 0 32px; }
}
@media (max-width: 440px) {
    .widget-grid { grid-template-columns: 1fr 1fr; }.search-form button { font-size: 12px; }.search-stage h1 { font-size: 27px; }.network-site-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }.network-site-result { grid-column: 1; }.network-site-check { grid-column: 2; grid-row: 1 / span 2; }
}
@keyframes home-fade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-stage {
    animation: home-fade 600ms ease both;
    transition: transform 180ms ease, opacity 180ms ease;
}

.search-stage:hover {
    transform: translateY(-16px);
}

.search-form {
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.search-form:focus-within {
    border-color: rgba(170, 187, 180, .55);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .22);
}

.widget {
    opacity: 0;
    animation: home-fade 500ms ease both;
    transition: border-color 180ms ease, transform 180ms ease;
}

.widget:nth-child(1) { animation-delay: 180ms; }
.widget:nth-child(2) { animation-delay: 260ms; }
.widget:nth-child(3) { animation-delay: 340ms; }
.widget:nth-child(4) { animation-delay: 420ms; }

.widget:hover {
    transform: translateY(-3px);
    border-top-color: var(--accent);
}

.settings-menu.open {
    animation: home-fade 180ms ease both;
}

.icon-button {
    transition: color 180ms ease, transform 180ms ease;
}

.icon-button:hover {
    transform: rotate(12deg);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
}
.settings-label-copy { display: flex; flex-direction: column; gap: 2px; }
.settings-label-copy small { color: var(--muted); font-size: 9px; }
.toggle-row { cursor: pointer; }
.settings-row input[type="checkbox"] { accent-color: var(--accent); }
.data-used-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 7px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 999px;
    color: var(--text);
}
body.data-saver .search-stage { transform: none; }
body.data-saver [style*="background-image"] { background-image: none !important; }

.switch {
    position: relative;
    width: 38px;
    height: 22px;
}

.switch input {
    position: absolute;
    width: 38px;
    height: 22px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #4a4d4b;
    cursor: pointer;
    transition: 180ms ease;
}

.switch-track::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: white;
    transition: 180ms ease;
}

.switch input:checked + .switch-track {
    background: var(--accent);
}

.switch input:checked + .switch-track::after {
    transform: translateX(16px);
}

.switch input:focus-visible + .switch-track {
    outline: 2px solid white;
    outline-offset: 2px;
}

@media (max-width: 760px) {
    .settings-menu { top: 58px; right: 12px; width: calc(100vw - 24px); aspect-ratio: auto; max-height: calc(100vh - 70px); }
    .settings-columns { grid-template-columns: 1fr; gap: 0; }
    .settings-theme-grid { grid-template-columns: repeat(4, 1fr); }
    .widget-grid { grid-template-columns: repeat(2, 1fr); }
}