/* ReVerse public theme. Native DOM, routes and controls remain intact.
   Classic changes are limited to the theme switch and its mobile Account-bar wrapping. */
.reverse-theme-switch {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  min-height: 30px; padding: 5px 12px; border: 1px solid #c8a9d7; border-radius: 999px;
  background: #faf7f0; color: #282334; font: 700 12px/1.3 "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  text-transform: none; white-space: nowrap; cursor: pointer;
}
.reverse-theme-switch:hover { background: #f3e4f1; border-color: #a95195; }
.reverse-theme-switch:focus-visible { outline: 3px solid #3188b2; outline-offset: 3px; }

html[data-reverse-theme="modern"] {
  --rv-paper: #faf7f0; --rv-ink: #282334; --rv-muted: #655e70; --rv-line: #ded8d3;
  --rv-pink: #f4b9d4; --rv-blue: #b6dcf2; --rv-lime: #d7ef93; --rv-white: #fffdf9;
  --rv-gradient: linear-gradient(100deg, #3188b2 0%, #8b5cbb 35%, #ca379d 65%, #d15356 100%);
  --rv-gradient-strong: linear-gradient(100deg, #24668d 0%, #704496 35%, #9d2473 65%, #a93a43 100%);
  --rv-radius: 22px; --rv-font: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  color-scheme: light; background: var(--rv-paper); color: var(--rv-ink);
}
html[data-reverse-theme="modern"] *,
html[data-reverse-theme="modern"] *::before,
html[data-reverse-theme="modern"] *::after { box-sizing: border-box; }
html[data-reverse-theme="modern"] body {
  min-width: 0; background: var(--rv-paper); color: var(--rv-ink);
  font: 15px/1.6 var(--rv-font); -webkit-font-smoothing: antialiased;
}
html[data-reverse-theme="modern"] :is(button, input, select, textarea) { font-family: var(--rv-font); }
html[data-reverse-theme="modern"] :is(h1, h2, h3, h4) {
  color: var(--rv-ink); font-family: var(--rv-font); font-weight: 900; line-height: 1.2; letter-spacing: -.035em;
}
html[data-reverse-theme="modern"] a { color: #745099; text-underline-offset: 4px; }
html[data-reverse-theme="modern"] a:hover { color: #754c92; }
html[data-reverse-theme="modern"] :is(.legacy-footer a, .registration-footer a, .marketing-content a, .marketing-sidebar > a, .help-document a, .house-rules a, .profile-biography-content a, .photo-detail-heading a, .profile-events-see-all, #login-form p a):not(:has(img, svg)):hover {
  color: transparent; background: var(--rv-gradient-strong); background-clip: text; -webkit-background-clip: text; text-decoration-color: #9d2473;
}
html[data-reverse-theme="modern"] :focus-visible { outline: 3px solid #3188b2; outline-offset: 4px; }
html[data-reverse-theme="modern"] ::selection { color: var(--rv-ink); background: var(--rv-pink); }
html[data-reverse-theme="modern"] :is(.tw\:text-xs, .tw\:text-\[11px\], .tw\:text-\[12px\]) { font-size: 13px; line-height: 1.55; }
html[data-reverse-theme="modern"] .tw\:text-sm { font-size: 14px; line-height: 1.55; }
html[data-reverse-theme="modern"] .tw\:text-md { font-size: 15px; line-height: 1.55; }
html[data-reverse-theme="modern"] :is(.tw\:bg-black, .tw\:bg-vside-gray, .tw\:bg-vside-gray-darker, .tw\:bg-vside-gray-light, .tw\:bg-gray-200, .tw\:bg-gray-300) { background-color: var(--rv-white); }
html[data-reverse-theme="modern"] :is(.tw\:text-white, .tw\:text-vside-blue) { color: var(--rv-ink); }
html[data-reverse-theme="modern"] :is(.tw\:text-vside-gray-text-lighter, .tw\:text-vside-gray-text-darker, .tw\:text-gray-800) { color: var(--rv-muted); }
html[data-reverse-theme="modern"] .tw\:container { width: min(1180px, calc(100% - 64px)); max-width: 1180px; }
html[data-reverse-theme="modern"] #main { min-width: 0; padding-bottom: 48px; }
html[data-reverse-theme="modern"] :is(.events-page, .photo-page, .friends-page, .help-page, .marketing-page, .account-settings) {
  width: min(1180px, calc(100% - 64px)); max-width: 1180px; margin: 32px auto; padding: 0;
  color: var(--rv-ink); background: transparent; font: 15px/1.6 var(--rv-font);
}

/* Two quiet header bands replace the fixed star-field navigation. */
html[data-reverse-theme="modern"] #navbar {
  height: auto; min-height: 0; position: relative; background: var(--rv-paper); background-image: none;
  border-bottom: 1px solid var(--rv-line); box-shadow: none; color: var(--rv-ink);
}
html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] { border-bottom: 1px solid var(--rv-line); background: #f0eae3; }
html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] > div {
  background: none; min-height: 48px; padding-block: 8px; gap: 16px; align-items: center; flex-wrap: wrap;
}
html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] ul { gap: 6px; flex-wrap: wrap; text-transform: none; }
html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] :is(ul, li) { border-width: 0 !important; }
html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] li { padding: 0 7px; }
html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] :is(a, button:not(.reverse-theme-switch)) { color: var(--rv-ink); font-size: 13px; font-weight: 700; }
html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] form { min-width: 0; margin-left: auto; padding: 0; }
html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] input[type="search"] {
  width: min(220px, 45vw); min-height: 32px; height: auto; padding: 5px 12px; font-size: 13px; border-radius: 999px;
}
html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] button[type="submit"] { min-width: 36px; min-height: 36px; display: grid; place-items: center; }
html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] button[type="submit"] img { margin: 0; }
html[data-reverse-theme="modern"] .nav-second { display: flex; align-items: center; flex-wrap: wrap; min-height: 140px; padding-block: 16px; gap: 12px 22px; }
html[data-reverse-theme="modern"] .nav-second > div[style] { display: none; }
html[data-reverse-theme="modern"] .nav-logo { margin: 0 14px 0 0; flex: 0 0 100px; }
html[data-reverse-theme="modern"] :is(.nav-logo img, .registration-logo img) { width: 100%; height: auto; max-width: 115px; max-height: 115px; border-radius: 0; object-fit: contain; }
html[data-reverse-theme="modern"] .nav-logo::before { opacity: .4; filter: blur(10px); inset: 12px; }
html[data-reverse-theme="modern"] :is(.nav-links, .nav-end) { position: static; inset: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin: 0; width: auto; }
html[data-reverse-theme="modern"] .nav-links { flex: 1; }
html[data-reverse-theme="modern"] .nav-end > li:last-child:has(>img) { display: none; }
html[data-reverse-theme="modern"] .nav-link { color: var(--rv-ink); text-transform: none; min-height: 42px; height: auto; padding: 10px 14px; font-size: 15px; font-weight: 800; border-radius: 999px; }
html[data-reverse-theme="modern"] .nav-link[aria-disabled="true"] { color: #77707e; opacity: .7; }
html[data-reverse-theme="modern"] .nav-link.prime,
html[data-reverse-theme="modern"] a.nav-link:hover,
html[data-reverse-theme="modern"] a.nav-link:focus-visible { color: white; background: var(--rv-gradient-strong); }
html[data-reverse-theme="modern"] .nav-submenu { z-index: 40; min-width: 170px; padding: 8px; border: 1px solid var(--rv-line); border-radius: 16px; background: var(--rv-white); box-shadow: 0 12px 24px #28233414; flex-direction: column; }
html[data-reverse-theme="modern"] .nav-submenu li > a { color: var(--rv-ink); min-height: 40px; border-radius: 9px; font-size: 14px; }
html[data-reverse-theme="modern"] .nav-submenu li > a:hover { background: #f5e6ef; color: var(--rv-ink); }
html[data-reverse-theme="modern"] .reverse-theme-switch { min-height: 32px; border-color: var(--rv-ink); background: var(--rv-ink); color: white; }
html[data-reverse-theme="modern"] .reverse-theme-switch:hover { background: var(--rv-gradient-strong); border-color: transparent; }

/* Shared panels, real form controls, status messages and action links. */
html[data-reverse-theme="modern"] :is(.legacy-panel, .profile-columns > div > section, .event-content-panel, .event-rsvp-panel) {
  margin: 0 0 24px; min-width: 0; border: 1px solid var(--rv-line); border-radius: var(--rv-radius);
  background: var(--rv-white); box-shadow: 0 5px 0 #28233405;
}
html[data-reverse-theme="modern"] :is(.legacy-panel, .profile-columns > div > section) > div:first-child {
  min-height: 60px; height: auto; padding: 18px 22px; background: #efe4f4; border-radius: 21px 21px 0 0; border-bottom: 1px solid var(--rv-line);
}
html[data-reverse-theme="modern"] :is(.legacy-panel, .profile-columns > div > section) > div:first-child :is(h1, h2) { margin: 0; color: var(--rv-ink); font-size: 20px; font-weight: 900; }
html[data-reverse-theme="modern"] .panel-content { padding: 18px; background: var(--rv-white); border-radius: 0 0 21px 21px; }
html[data-reverse-theme="modern"] .panel-content > :is(.tw\:bg-vside-gray-light, .tw\:bg-white, .tw\:bg-vside-gray) { background: transparent; }
html[data-reverse-theme="modern"] :is(.button, .carat, .event-white-link, .photo-visit) {
  min-height: 42px; height: auto; padding: 10px 18px; border: 1px solid transparent; border-radius: 999px;
  background: var(--rv-ink); color: white; font: 800 14px/1.4 var(--rv-font); text-transform: none;
  text-decoration: none; gap: 10px; box-shadow: none; cursor: pointer;
}
html[data-reverse-theme="modern"] .carat { width: fit-content; max-width: 100%; }
html[data-reverse-theme="modern"] .carat-arrow { background: transparent; width: 13px; height: 18px; }
html[data-reverse-theme="modern"] :is(.button, .carat, .event-white-link, .photo-visit):not(:disabled):hover { color: white; background: var(--rv-gradient-strong); }
html[data-reverse-theme="modern"] :is(.event-white-link, .photo-visit)::before { display: none; }
html[data-reverse-theme="modern"] :is(button, input, select, textarea):disabled { opacity: .55; cursor: not-allowed; }
html[data-reverse-theme="modern"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="button"]):not([type="submit"]), select, textarea) {
  max-width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #b9afc0; border-radius: 10px;
  background: #fffefa; color: var(--rv-ink); font-size: 15px; line-height: 1.4; box-shadow: none;
}
html[data-reverse-theme="modern"] textarea { min-height: 120px; resize: vertical; }
html[data-reverse-theme="modern"] input:is([type="checkbox"], [type="radio"]) { accent-color: #8158a4; width: 17px; height: 17px; vertical-align: -.15em; }
html[data-reverse-theme="modern"] :is(input, textarea)::placeholder { color: #7d7486; opacity: 1; }
html[data-reverse-theme="modern"] fieldset { min-width: 0; }
html[data-reverse-theme="modern"] .feedback { color: var(--rv-muted); background: #f1edf5; border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.5; }
html[data-reverse-theme="modern"] .feedback-error { color: #a11f43; background: #fde6ec; border: 1px solid #edbccb; }
html[data-reverse-theme="modern"] .local-feedback { color: var(--rv-ink); background: #fffdf9; border: 1px solid #b5a8be; border-radius: 12px; padding: 14px; font: 13px/1.5 var(--rv-font); box-shadow: 0 8px 24px #28233424; }
html[data-reverse-theme="modern"] :is(.friends-pagination, .home-online-pagination, .event-comment-pagination) { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; align-items: center; }
html[data-reverse-theme="modern"] :is(.friends-pagination, .home-online-pagination, .event-comment-pagination) :is(a, button) { min-width: 36px; min-height: 36px; padding: 6px 12px; border-radius: 999px; background: #eee5f2; color: var(--rv-ink); font-size: 14px; }

/* Profile: distinct identity column and a spacious activity column. */
html[data-reverse-theme="modern"] .profile-columns { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.35fr); align-items: start; gap: 28px; padding: 32px 0; overflow: visible; }
html[data-reverse-theme="modern"] .profile-columns > div { width: auto; min-width: 0; max-width: 100%; }
html[data-reverse-theme="modern"] .profile-right { display: flex; flex-direction: column; gap: 0; }
html[data-reverse-theme="modern"] .profile-columns > div:first-child > section:first-child > div:first-child { background: var(--rv-blue); }
html[data-reverse-theme="modern"] .profile-columns > div:first-child > section:first-child > div:first-child h1 { font-size: clamp(25px, 3vw, 38px); overflow-wrap: anywhere; }
html[data-reverse-theme="modern"] .profile-columns > div:first-child > section:first-child > div:nth-child(n+2) { padding: 18px; background: var(--rv-white); border-radius: 0 0 21px 21px; }
html[data-reverse-theme="modern"] .profile-columns > div:first-child > section:first-child > div:nth-child(2) { padding-bottom: 0; }
html[data-reverse-theme="modern"] .profile-columns input[aria-label="Status"] { min-width: 0; width: 0; background: #f3edf6; border: 0; font-size: 13px; }
html[data-reverse-theme="modern"] .profile-photo { border-radius: 15px; overflow: hidden; background-color: #e6dbea; background-position: center; }
html[data-reverse-theme="modern"] .profile-columns .rating { padding: 10px 12px; gap: 8px; font-size: 13px; background: #f2eaf6; border: 1px solid #e2d3e9; border-radius: 14px; flex-wrap: wrap; }
html[data-reverse-theme="modern"] .rating-label { align-self: center; min-height: 30px; padding: 6px 10px; background: #dfcce9; color: var(--rv-ink); font: 800 12px/1.4 var(--rv-font); border-radius: 8px; }
html[data-reverse-theme="modern"] .rating > span:last-child { color: var(--rv-muted); margin-left: 0; font-size: 12px; }
html[data-reverse-theme="modern"] .profile-columns .rating-compact { background: #f5f1e9; border-color: #e4ddce; padding: 7px 9px; }
html[data-reverse-theme="modern"] .profile-details { table-layout: fixed; border-collapse: collapse; border-radius: 12px; overflow: hidden; }
html[data-reverse-theme="modern"] .profile-details :is(th, td) { padding: 10px; font-size: 13px; text-align: left; overflow-wrap: anywhere; border: 0; }
html[data-reverse-theme="modern"] .profile-details tr { background: transparent; }
html[data-reverse-theme="modern"] .profile-details tr:nth-child(even) { background: #f2f0e9; }
html[data-reverse-theme="modern"] .profile-details tr:nth-child(2) td { font-size: 17px; }
html[data-reverse-theme="modern"] .profile-details th { font-weight: 700; color: var(--rv-muted); }
html[data-reverse-theme="modern"] .profile-right > section:first-child > div:first-child { background: var(--rv-pink); }
html[data-reverse-theme="modern"] .profile-right > section:first-child > div:nth-child(2) { padding: 20px; border-radius: 0 0 21px 21px; }
html[data-reverse-theme="modern"] .profile-biography-content { padding: 0; min-height: 110px; background: transparent; border: 0; color: var(--rv-ink); font: 15px/1.75 var(--rv-font); }
html[data-reverse-theme="modern"] .profile-biography-content :is(img, video) { max-width: 100%; height: auto; border-radius: 12px; }
html[data-reverse-theme="modern"] :is(.profile-biography-empty, .profile-interests-empty) { color: var(--rv-muted); }
html[data-reverse-theme="modern"] .profile-interest-tags { display: flex; flex-wrap: wrap; gap: 8px; }
html[data-reverse-theme="modern"] .profile-interest-tag { padding: 6px 12px; border-radius: 999px; background: #e9f1d6; color: #455b26; font-size: 13px; text-decoration: none; }
html[data-reverse-theme="modern"] :is(.profile-owner-nav, .profile-owner-settings-link, .profile-view-all) { font-size: 14px; }
html[data-reverse-theme="modern"] :is(.profile-apartment-empty, .profile-photos-empty, .profile-recent-albums) { padding: 12px; color: var(--rv-muted); font-size: 14px; }
html[data-reverse-theme="modern"] :is(.profile-photos-empty, .profile-apartment-empty) strong { display: block; margin-bottom: 8px; color: var(--rv-ink); }
html[data-reverse-theme="modern"] .profile-photo-album-layout { gap: 18px; }
html[data-reverse-theme="modern"] .profile-carousel-frame { border-radius: 12px; }
html[data-reverse-theme="modern"] .music-top { min-width: 0; }
html[data-reverse-theme="modern"] .music-top > img { max-width: 100%; width: 100px; height: auto; border-radius: 10px; margin-bottom: 12px; }
html[data-reverse-theme="modern"] .profile-events-panel > .profile-events-heading { display: flex; flex-wrap: wrap; gap: 12px; background: var(--rv-lime); }
html[data-reverse-theme="modern"] .profile-events-heading h2 { margin: 0; font-size: 20px; }
html[data-reverse-theme="modern"] .profile-event-tabs { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; margin: 0; }
html[data-reverse-theme="modern"] .profile-event-tabs button { padding: 8px 12px; min-height: 36px; background: #ffffffa6; border: 1px solid transparent; border-radius: 999px; color: var(--rv-ink); font: 700 12px/1.4 var(--rv-font); }
html[data-reverse-theme="modern"] .profile-event-tabs button.selected { color: white; background: var(--rv-gradient-strong); }
html[data-reverse-theme="modern"] .profile-events-body { padding: 20px !important; background: var(--rv-white); border-radius: 0 0 21px 21px; }
html[data-reverse-theme="modern"] .profile-events-empty { padding: 22px 12px; display: flex; align-items: center; gap: 14px; background: #f6f1e8; color: var(--rv-muted); border-radius: 14px; font-size: 14px; }
html[data-reverse-theme="modern"] .profile-events-see-all { display: inline-block; margin-top: 16px; color: #745099; font-size: 13px; }
html[data-reverse-theme="modern"] .profile-event-row { background: #f5f0f7; border: 1px solid var(--rv-line); border-radius: 14px; margin-bottom: 14px; overflow: hidden; color: var(--rv-ink); }
html[data-reverse-theme="modern"] .profile-event-head { background: #e7d9ef; height: auto; padding: 12px 16px; }
html[data-reverse-theme="modern"] .profile-event-head a { color: var(--rv-ink); font-size: 16px; }
html[data-reverse-theme="modern"] .profile-event-summary { grid-template-columns: 66px minmax(90px, 135px) minmax(0, 1fr); background: none; color: var(--rv-ink); padding: 12px; gap: 12px; }
html[data-reverse-theme="modern"] .profile-event-description { color: var(--rv-ink); font-size: 13px; }
html[data-reverse-theme="modern"] .profile-event-banner { width: 100%; border-radius: 8px; }

/* People and friend galleries. */
html[data-reverse-theme="modern"] #main > div.tw\:bg-black:has(.people-intro) { padding-block: 32px; background: #eee5f2; border-bottom: 1px solid var(--rv-line); }
html[data-reverse-theme="modern"] .people-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
html[data-reverse-theme="modern"] .people-intro > div:first-child { grid-column: 1 / -1; width: auto; max-width: 720px; }
html[data-reverse-theme="modern"] .people-intro > div:first-child p { color: var(--rv-ink); font-size: 21px; line-height: 1.5; margin: 0; }
html[data-reverse-theme="modern"] .people-intro > :is(div:nth-child(2), form) { min-width: 0; background: var(--rv-white); border: 1px solid var(--rv-line); border-radius: 20px; padding: 20px; }
html[data-reverse-theme="modern"] .people-intro img { width: 130px; height: 130px; border-radius: 12px; object-fit: cover; }
html[data-reverse-theme="modern"] .people-intro form > div:first-child { width: 140px; flex-shrink: 0; }
html[data-reverse-theme="modern"] .people-intro input { width: 100%; }
html[data-reverse-theme="modern"] .people-intro :is(p, span) { color: var(--rv-ink); }
html[data-reverse-theme="modern"] .people-intro .carat > span { color: white; }
html[data-reverse-theme="modern"] .people-intro form > div:last-child > div:last-child { width: auto; height: auto; margin-top: 16px; }
html[data-reverse-theme="modern"] .people-intro button[type="submit"] { width: auto; height: auto; min-height: 42px; padding: 10px 22px; border-radius: 999px; background: var(--rv-ink); color: white; font: 800 14px/1.4 var(--rv-font); }
html[data-reverse-theme="modern"] .people-intro button[type="submit"]:hover { background: var(--rv-gradient-strong); }
html[data-reverse-theme="modern"] .people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 20px; padding: 0; margin: 24px 0; }
html[data-reverse-theme="modern"] .people-tile { width: auto; padding: 12px; border-radius: 20px; border: 1px solid var(--rv-line); background: var(--rv-white); color: var(--rv-ink); box-shadow: 0 5px 0 #28233405; }
html[data-reverse-theme="modern"] .people-tile:hover { border-color: #be91b5; background: #fff5f9; }
html[data-reverse-theme="modern"] .people-tile > a { color: var(--rv-ink); }
html[data-reverse-theme="modern"] .people-tile :is(img, .portrait) { border-radius: 12px; max-width: 100%; }
html[data-reverse-theme="modern"] .people-tile strong { color: var(--rv-ink); background: #eee3f3; height: auto; min-height: 30px; font-size: 18px; padding: 7px 5px; overflow-wrap: anywhere; border-radius: 8px; }
html[data-reverse-theme="modern"] .people-tile span:not(.presence-dot) { height: auto; min-height: 24px; font-size: 13px; }
html[data-reverse-theme="modern"] .people-tile .people-rank { background: var(--rv-pink); color: var(--rv-ink); border-radius: 999px; font-weight: 900; }
html[data-reverse-theme="modern"] :is(.friends-grid, .profile-friends-grid, .home-avatar-grid) { display: flex; flex-wrap: wrap; gap: 16px; padding: 8px 0; }
html[data-reverse-theme="modern"] .character-card { width: 92px; }
html[data-reverse-theme="modern"] .character-card > a { color: var(--rv-ink); }
html[data-reverse-theme="modern"] .character-card img { width: 92px; height: 92px; border-radius: 13px; object-fit: cover; }
html[data-reverse-theme="modern"] .character-card :is(strong, span, .name) { color: var(--rv-ink); font-size: 12px; }
html[data-reverse-theme="modern"] .friends-list-panel > .panel-content > h2 { background: none; padding: 10px 0 18px; font-size: 18px; border-bottom: 1px solid var(--rv-line); }

/* Event navigation uses the original link text rather than the old image tabs. */
html[data-reverse-theme="modern"] .events-page > h1 { color: var(--rv-ink); background: none; font-size: clamp(28px, 4vw, 44px); height: auto; padding: 8px 0 24px; }
html[data-reverse-theme="modern"] .events-page > h1 > img { display: none; }
html[data-reverse-theme="modern"] .events-primary-tabs { min-height: 0; height: auto; padding: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #ebe3ef; border-radius: 999px; width: fit-content; max-width: 100%; }
html[data-reverse-theme="modern"] .events-primary-tabs > a { width: auto; height: auto; min-height: 42px; margin: 0; padding: 11px 22px; color: var(--rv-ink); font: 800 14px/1.4 var(--rv-font); text-indent: 0; background: none !important; border-radius: 999px; }
html[data-reverse-theme="modern"] .events-primary-tabs > a.active { background: var(--rv-gradient-strong) !important; color: white; }
html[data-reverse-theme="modern"] .events-filter-bar { min-height: 64px; height: auto; padding: 16px 0; gap: 14px; flex-wrap: wrap; background: none; font-size: 14px; }
html[data-reverse-theme="modern"] .events-filter-bar a { color: #745099; }
html[data-reverse-theme="modern"] .events-filter-bar .button { color: white; }
html[data-reverse-theme="modern"] .events-filter-bar > div { align-items: center; flex-wrap: wrap; gap: 6px; }
html[data-reverse-theme="modern"] .events-filter-bar > div > span[aria-hidden="true"] { display: none; }
html[data-reverse-theme="modern"] .events-filter-bar > div > button { min-height: 36px; padding: 7px 12px; border-radius: 999px; background: #eee5f3; color: var(--rv-ink); font: 700 13px/1.4 var(--rv-font); text-decoration: none; }
html[data-reverse-theme="modern"] .events-filter-bar > div > button.active { color: white; background: var(--rv-ink); font-style: normal; }
html[data-reverse-theme="modern"] .events-filter-bar > div > button:hover { color: white; background: var(--rv-gradient-strong); }
html[data-reverse-theme="modern"] .events-filter-bar a.event-create-control,
html[data-reverse-theme="modern"] .events-filter-bar a.event-create-control:visited { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 20px; border-radius: 999px; background: var(--rv-ink); color: white; font: 800 14px/1.4 var(--rv-font); }
html[data-reverse-theme="modern"] .events-filter-bar a.event-create-control:hover { background: var(--rv-gradient-strong); }
html[data-reverse-theme="modern"] .event-date-control { font-size: 13px; }
html[data-reverse-theme="modern"] .event-date-control button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--rv-line); border-radius: 10px; background: var(--rv-white); }
html[data-reverse-theme="modern"] :is(.events-resource, .event-message) { min-height: 130px; padding: 24px; background: var(--rv-white); border: 1px solid var(--rv-line); border-radius: 20px; }
html[data-reverse-theme="modern"] :is(.events-resource, .event-message) > .feedback { margin: 0; background: #f3eef6; padding: 22px; }
html[data-reverse-theme="modern"] .event-navigator { height: auto; min-height: 48px; padding: 14px 0; background: none; color: var(--rv-muted); }
html[data-reverse-theme="modern"] .event-count { font-size: 13px; }
html[data-reverse-theme="modern"] .event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); width: auto; gap: 22px; margin-top: 16px; }
html[data-reverse-theme="modern"] .event-poster { width: auto; min-width: 0; height: auto; }
html[data-reverse-theme="modern"] .event-panel { display: flex; flex-direction: column; width: 100%; height: auto; min-height: 0; background: var(--rv-white); border: 1px solid var(--rv-line); border-radius: 20px; color: var(--rv-ink); box-shadow: 0 5px 0 #28233405; }
html[data-reverse-theme="modern"] .event-head { height: auto; min-height: 75px; padding: 20px; background: #eee3f3; }
html[data-reverse-theme="modern"] .event-head h2 { font-size: 21px; line-height: 1.25; color: var(--rv-ink); margin: 0; }
html[data-reverse-theme="modern"] .event-banner { width: 100%; height: auto; aspect-ratio: 2 / 1; background: #e1eaf0; }
html[data-reverse-theme="modern"] .event-banner img { width: 100%; max-width: 100%; height: 100%; object-fit: cover; }
html[data-reverse-theme="modern"] .event-detail { height: auto; min-height: 150px; flex: 1; padding: 18px 20px; background: transparent; color: var(--rv-ink); font-size: 13px; }
html[data-reverse-theme="modern"] .event-detail :is(dl, dd, dt) { color: var(--rv-ink); }
html[data-reverse-theme="modern"] .event-detail dd { max-width: none; white-space: normal; }
html[data-reverse-theme="modern"] .event-attendees { color: var(--rv-muted); }
html[data-reverse-theme="modern"] .event-actions { background: #f3f0e9; height: auto; min-height: 60px; padding: 16px 20px; }
html[data-reverse-theme="modern"] .event-detail-columns { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 26px; width: 100%; }
html[data-reverse-theme="modern"] :is(.event-detail-main, .event-detail-sidebar) { min-width: 0; width: auto; }
html[data-reverse-theme="modern"] .legacy-event-detail { width: 100%; background: var(--rv-white); border: 1px solid var(--rv-line); border-radius: 22px; overflow: hidden; }
html[data-reverse-theme="modern"] :is(.legacy-event-detail-header, .legacy-event-detail-footer) { display: none; }
html[data-reverse-theme="modern"] .legacy-event-detail-body { width: 100%; min-height: 0; padding: 24px; background: none !important; display: flow-root; }
html[data-reverse-theme="modern"] .event-what-when-where { max-width: 100%; color: var(--rv-ink); font-size: 14px; }
html[data-reverse-theme="modern"] .event-what-when-where h2 { color: var(--rv-ink); font-size: 28px; }
html[data-reverse-theme="modern"] .event-detail-banner { float: none; width: 100%; max-width: 100%; height: auto; margin: 20px 0; border-radius: 14px; }
html[data-reverse-theme="modern"] .event-description { clear: both; color: var(--rv-ink); font-size: 15px; line-height: 1.7; padding: 0; }
html[data-reverse-theme="modern"] .event-content-panel > h3 { min-height: 60px; height: auto; margin: 0; padding: 18px 22px; background: var(--rv-blue); color: var(--rv-ink); font-size: 20px; border-radius: 21px 21px 0 0; }
html[data-reverse-theme="modern"] .event-content-panel > div { background: var(--rv-white); color: var(--rv-ink); padding: 20px; border-radius: 0 0 21px 21px; font-size: 14px; }
html[data-reverse-theme="modern"] :is(.event-comment-body, .comment-body) { background: #f5f0f7; color: var(--rv-ink); border-radius: 13px; padding: 14px; font-size: 14px; line-height: 1.6; }
html[data-reverse-theme="modern"] :is(.event-comment-meta, .comment-meta) { color: var(--rv-muted); font-size: 12px; }
html[data-reverse-theme="modern"] .event-create-form { background: transparent; color: var(--rv-ink); font: 15px/1.6 var(--rv-font); }
html[data-reverse-theme="modern"] .event-create-form fieldset { padding: 0; }
html[data-reverse-theme="modern"] .event-create-grid { gap: 24px; }
html[data-reverse-theme="modern"] .event-create-section { padding: 22px; border: 1px solid var(--rv-line); border-radius: 20px; background: var(--rv-white); }
html[data-reverse-theme="modern"] .event-create-section > h2 { margin: -22px -22px 20px; padding: 18px 22px; background: #e6d9ef; color: var(--rv-ink); font-size: 20px; border-radius: 19px 19px 0 0; }
html[data-reverse-theme="modern"] .event-create-actions { margin: 24px 0; padding: 18px; border-radius: 16px; background: #efe8f3; }
html[data-reverse-theme="modern"] .event-create-form label { font-size: 14px; }
html[data-reverse-theme="modern"] :is(.event-leaderboard-table, .top-events-table) { width: 100%; color: var(--rv-ink); background: var(--rv-white); font-size: 14px; }
html[data-reverse-theme="modern"] :is(.event-leaderboard-table, .top-events-table) :is(th, td) { padding: 15px; border-color: var(--rv-line); }

/* Photos, albums, detail views and owner controls. */
html[data-reverse-theme="modern"] :is(.photo-page-title, .photo-detail-title) { height: auto; min-height: 0; padding: 12px 0 24px; color: var(--rv-ink); background: none; font-size: clamp(26px, 3vw, 40px); font-weight: 900; line-height: 1.25; }
html[data-reverse-theme="modern"] .photo-detail-heading { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding: 16px 0; color: var(--rv-muted); background: none; font-size: 14px; }
html[data-reverse-theme="modern"] .photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; padding: 0; background: transparent; }
html[data-reverse-theme="modern"] .photo-grid > li { height: 210px; background: var(--rv-white); border: 1px solid var(--rv-line); border-radius: 18px; overflow: hidden; }
html[data-reverse-theme="modern"] .photo-grid > li > a { padding: 10px; }
html[data-reverse-theme="modern"] .photo-grid img { border-radius: 11px; }
html[data-reverse-theme="modern"] .photo-grid :is(.photo-caption, figcaption) { font-size: 13px; }
html[data-reverse-theme="modern"] .photo-image-area { background: #eee6f2; padding: 22px; border-radius: 22px; margin-bottom: 26px; }
html[data-reverse-theme="modern"] .photo-image-area > img { border-radius: 12px; }
html[data-reverse-theme="modern"] .photo-visit-share { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 20px; }
html[data-reverse-theme="modern"] .photo-people-comments { grid-template-columns: minmax(240px, .8fr) minmax(0, 1.3fr); gap: 26px; }
html[data-reverse-theme="modern"] .photo-people { background: var(--rv-white); border: 1px solid var(--rv-line); border-radius: 22px; overflow: hidden; }
html[data-reverse-theme="modern"] .photo-people h2 { margin: 0; padding: 20px; background: var(--rv-blue); color: var(--rv-ink); font-size: 20px; }
html[data-reverse-theme="modern"] .photo-people li { background: none; color: var(--rv-ink); font-size: 14px; padding: 12px 20px; border-bottom: 1px solid var(--rv-line); }
html[data-reverse-theme="modern"] :is(.photo-album-create, .photo-detail-edit, .photo-detail-moderation, .photo-owner-actions) { padding: 22px; margin: 20px 0; border: 1px solid var(--rv-line); border-radius: 18px; background: var(--rv-white); color: var(--rv-ink); font-size: 14px; }
html[data-reverse-theme="modern"] .photo-detail-owner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
html[data-reverse-theme="modern"] .photo-empty { padding: 32px; background: #eee8f4; border-radius: 18px; color: var(--rv-muted); font-size: 15px; }

/* Account and recovery screens remain honest, native forms. */
html[data-reverse-theme="modern"] .login-panel { width: min(580px, 100%); margin: 44px auto; }
html[data-reverse-theme="modern"] .login-panel > div:first-child { background: var(--rv-pink); }
html[data-reverse-theme="modern"] .login-panel .panel-content { padding: 24px; }
html[data-reverse-theme="modern"] .login-panel .panel-content > div > p { padding: 0; margin-bottom: 24px; font-size: 15px; }
html[data-reverse-theme="modern"] #login-form { padding: 20px; border-radius: 16px; background: #f1eaf5; }
html[data-reverse-theme="modern"] #login-form form { width: 100%; }
html[data-reverse-theme="modern"] #login-form label:not(#remember-me) { display: flex; flex-direction: column; gap: 7px; }
html[data-reverse-theme="modern"] #login-form label > span { font-size: 14px; }
html[data-reverse-theme="modern"] #login-form input:not([type="checkbox"]) { width: 100%; }
html[data-reverse-theme="modern"] #login-form .button { margin-top: 8px; min-width: 140px; }
html[data-reverse-theme="modern"] .account-settings { max-width: 920px; }
html[data-reverse-theme="modern"] .account-section { padding: 10px 4px; background: transparent; color: var(--rv-ink); }
html[data-reverse-theme="modern"] :is(.account-note, .recovery-kit-note) { color: var(--rv-muted); font-size: 13px; line-height: 1.6; }
html[data-reverse-theme="modern"] .account-linked-name { color: var(--rv-ink); font-weight: 700; }
html[data-reverse-theme="modern"] :is(.recovery-panel, .recovery-form) { width: min(580px, 100%); max-width: 100%; margin-inline: auto; }
html[data-reverse-theme="modern"] .recovery-form label { gap: 8px; margin-block: 16px; font-size: 14px; }
html[data-reverse-theme="modern"] .recovery-kit-modal { width: min(580px, calc(100% - 32px)); max-width: 580px; max-height: calc(100dvh - 48px); overflow-y: auto; border: 1px solid var(--rv-line); border-radius: 24px; padding: 0; background: var(--rv-white); color: var(--rv-ink); box-shadow: 0 24px 70px #28233450; font: 15px/1.6 var(--rv-font); }
html[data-reverse-theme="modern"] .recovery-kit-modal::backdrop { background: #282334aa; backdrop-filter: blur(5px); }
html[data-reverse-theme="modern"] .recovery-kit-header { padding: 24px; background: var(--rv-lime); color: var(--rv-ink); }
html[data-reverse-theme="modern"] .recovery-kit-header h2 { font-size: 25px; color: var(--rv-ink); }
html[data-reverse-theme="modern"] .recovery-kit-body { padding: 24px; background: var(--rv-white); }
html[data-reverse-theme="modern"] .recovery-kit-key { border-radius: 12px; background: #f0eaf5; color: var(--rv-ink); }
html[data-reverse-theme="modern"] .recovery-kit-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Downloads: three real platform cards; the Mac availability overlay is retained. */
html[data-reverse-theme="modern"] .download-page { background: var(--rv-paper); color: var(--rv-ink); padding: 32px 0 56px; font: 14px/1.6 var(--rv-font); }
html[data-reverse-theme="modern"] .download-page #vSide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: min(1180px, calc(100% - 64px)); min-height: 0; margin: 0 auto; }
html[data-reverse-theme="modern"] .download-page #feature_controls { display: none; }
html[data-reverse-theme="modern"] .download-page #backToFWE_container { grid-column: 1 / -1; position: static; width: auto; padding: 16px 22px; background: #eee5f3; border-radius: 16px; }
html[data-reverse-theme="modern"] .download-page #backToFWE_container h5 { margin: 0; font-size: 16px; color: var(--rv-ink); }
html[data-reverse-theme="modern"] .download-page :is(#main_controls, #utility_controls, #linux_controls) { float: none; clear: none; width: auto; height: auto; margin: 0; padding: 0; border: 1px solid var(--rv-line); border-radius: 22px; background: var(--rv-white); overflow: hidden; }
html[data-reverse-theme="modern"] .download-page :is(#download_windows, #download_apple, #download_linux) { background: var(--rv-white); padding: 0; height: 100%; }
html[data-reverse-theme="modern"] .download-page :is(#main_controls, #utility_controls, #linux_controls) h3 { min-height: 70px; height: auto; padding: 20px; background: var(--rv-blue); color: var(--rv-ink); font: 900 20px/1.3 var(--rv-font); }
html[data-reverse-theme="modern"] .download-page #utility_controls h3 { background: var(--rv-pink); }
html[data-reverse-theme="modern"] .download-page #linux_controls h3 { background: var(--rv-lime); }
html[data-reverse-theme="modern"] .download-page :is(#download_windows, #download_apple, #download_linux) h3 a { color: var(--rv-ink); }
html[data-reverse-theme="modern"] .download-page :is(#download_windows, #download_apple, #download_linux) > div { margin: 0; padding: 22px; min-height: 490px; }
html[data-reverse-theme="modern"] .download-page :is(#download_windows, #download_apple, #download_linux) > div > a:first-of-type img { float: none; display: block; width: 160px; height: auto; max-width: 100%; margin: 0 auto 24px; border-radius: 12px; }
html[data-reverse-theme="modern"] .download-page :is(#download_windows, #download_apple, #download_linux) h4 { color: var(--rv-ink); font-size: 16px; margin: 18px 0 10px; }
html[data-reverse-theme="modern"] .download-page :is(#download_windows, #download_apple, #download_linux) h5 { color: var(--rv-ink); font: 900 15px/1.4 var(--rv-font); margin: 22px 0 10px; }
html[data-reverse-theme="modern"] .download-page :is(#download_windows, #download_apple, #download_linux) :is(ul, li) { color: var(--rv-ink); font-size: 14px; line-height: 1.6; }
html[data-reverse-theme="modern"] .download-page :is(#download_windows, #download_apple, #download_linux) li { margin-bottom: 7px; }
html[data-reverse-theme="modern"] .download-page .asterix { color: var(--rv-muted); font-size: 12px; line-height: 1.6; margin-block: 18px; }
html[data-reverse-theme="modern"] .download-page :is(#main_controls, #utility_controls, #linux_controls) .system-requirements { margin: 0 0 20px; padding-left: 20px; font-size: 14px; line-height: 1.6; }
html[data-reverse-theme="modern"] .download-page .about_href { display: inline-flex; align-items: center; justify-content: center; background: var(--rv-ink) !important; color: white; width: auto; height: auto; min-height: 42px; text-indent: 0; padding: 10px 16px; border-radius: 999px; font: 800 13px/1.4 var(--rv-font); }
html[data-reverse-theme="modern"] .download-page .about_href:hover { background: var(--rv-gradient-strong) !important; }
html[data-reverse-theme="modern"] .download-coming-soon-overlay { background: #eee5f3eb; color: var(--rv-ink); font: 900 27px/1.3 var(--rv-font); letter-spacing: -.03em; }
html[data-reverse-theme="modern"] .download-page #while_wait { grid-column: 1 / -1; float: none; width: auto; min-height: 150px; height: auto; margin: 0; padding: 26px 28px 26px 120px; border: 1px solid var(--rv-line); border-radius: 22px; background: #e8f0dc !important; position: relative; }
html[data-reverse-theme="modern"] .download-page #while_wait #clock { position: absolute; float: none; margin: 0; left: 22px; top: 24px; }
html[data-reverse-theme="modern"] .download-page #while_wait #learn_basics { display: grid; gap: 14px; position: static; float: none; width: auto; height: auto; margin: 0; padding: 0; color: var(--rv-ink); }
html[data-reverse-theme="modern"] .download-page #learn_basics h2 { position: static; float: none; display: block; width: auto; height: auto; min-height: 0; margin: 0; padding: 0; background: none; line-height: 1; }
html[data-reverse-theme="modern"] .download-page #learn_basics h2::before { content: "While you wait!"; color: var(--rv-ink); font: 900 24px/1.2 var(--rv-font); letter-spacing: -.035em; }
html[data-reverse-theme="modern"] .download-page #learn_basics h2 > img { display: none; }
html[data-reverse-theme="modern"] .download-page #learn_basics p { display: block; position: static; float: none; width: auto; height: auto; margin: 0; color: var(--rv-ink); font-size: 15px; line-height: 1.6; }
html[data-reverse-theme="modern"] .download-page #learn_basics p span { color: var(--rv-ink); font-size: inherit; line-height: inherit; }
html[data-reverse-theme="modern"] .download-page #learn_basics a.about_href { float: none; position: static; width: fit-content; max-width: 100%; margin: 0; color: white; }

/* Registration retains the interactive scene and character preview. */
html[data-reverse-theme="modern"] .registration-page { padding: 48px 24px 32px; background: var(--rv-paper); color: var(--rv-ink); }
html[data-reverse-theme="modern"] .registration-shell { width: min(1080px, 100%); }
html[data-reverse-theme="modern"] .registration-top { color: var(--rv-muted); gap: 10px; margin-bottom: 22px; font-family: var(--rv-font); flex-wrap: wrap; }
html[data-reverse-theme="modern"] .registration-top a { padding: 8px 14px; border: 1px solid var(--rv-line); border-radius: 999px; background: var(--rv-white); color: var(--rv-ink); font-size: 13px; }
html[data-reverse-theme="modern"] #registration-panel { width: 100%; min-height: 660px; height: auto; border: 1px solid var(--rv-line); border-radius: 26px; background-color: #252035; box-shadow: 0 15px 40px #28233414; }
html[data-reverse-theme="modern"] :is(#registration-panel, .scene-layer) { background-repeat: no-repeat; background-size: cover; background-position: center; }
html[data-reverse-theme="modern"] .scene-layer { border-radius: 25px; }
html[data-reverse-theme="modern"] .registration-logo { left: 24px; top: 24px; }
html[data-reverse-theme="modern"] .registration-right { width: 320px; flex: 0 0 320px; min-height: 610px; padding: 24px; margin: 20px; border: 1px solid #ffffff7a; border-radius: 22px; background: #fffdf9f5; backdrop-filter: blur(10px); }
html[data-reverse-theme="modern"] .registration-right > div:first-child { padding: 0 0 20px; }
html[data-reverse-theme="modern"] .registration-tagline { width: auto; height: auto; margin: 0; color: var(--rv-ink); text-shadow: none; font: 900 26px/1.18 var(--rv-font); letter-spacing: -.05em; }
html[data-reverse-theme="modern"] .registration-controls { min-width: 0; width: 100%; min-height: 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--rv-line); background: transparent; color: var(--rv-ink); }
html[data-reverse-theme="modern"] .registration-controls :is(.tw\:text-white, .registration-discord-copy) { color: var(--rv-ink); }
html[data-reverse-theme="modern"] .registration-controls .registration-input { background: white; color: var(--rv-ink); font-size: 14px; min-height: 36px; }
html[data-reverse-theme="modern"] .registration-discord { border-color: var(--rv-line); }
html[data-reverse-theme="modern"] .registration-discord-copy { font: 13px/1.6 var(--rv-font); }
html[data-reverse-theme="modern"] .registration-page .preview-note { max-width: 900px; padding: 20px; margin-inline: auto; color: var(--rv-muted); font: 13px/1.6 var(--rv-font); }
html[data-reverse-theme="modern"] .scene-caption { color: white; padding: 12px 16px; background: #211b30d9; border: 1px solid #ffffff3a; border-radius: 14px; max-width: calc(100% - 40px); }
html[data-reverse-theme="modern"] .scene-caption #venue { color: white; }
html[data-reverse-theme="modern"] .scene-caption #world { color: #b6dcf2; }
html[data-reverse-theme="modern"] .registration-controls .img-button:is([aria-label="Your place"], [aria-label="Your style"], [aria-label="Your friends"], [aria-label="Get started"], [aria-label="Back"], [aria-label="Continue"], [aria-label="Create account and continue"]) {
  width: auto !important; height: auto !important; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 15px; border: 1px solid transparent; border-radius: 999px; background: var(--rv-ink) !important; color: white; font: 800 13px/1.4 var(--rv-font); text-indent: 0;
}
html[data-reverse-theme="modern"] .registration-controls .img-button:is([aria-label="Your place"], [aria-label="Your style"], [aria-label="Your friends"], [aria-label="Get started"], [aria-label="Back"], [aria-label="Continue"], [aria-label="Create account and continue"])::after { content: attr(aria-label); }
html[data-reverse-theme="modern"] .registration-controls .img-button:is([aria-label="Your place"], [aria-label="Your style"], [aria-label="Your friends"]) { width: 100% !important; margin-top: 10px; padding: 14px 20px; background: #e7d9ef !important; color: var(--rv-ink); border-radius: 14px; font-size: 17px; }
html[data-reverse-theme="modern"] .registration-controls .img-button[aria-label="Your style"] { background: var(--rv-blue) !important; }
html[data-reverse-theme="modern"] .registration-controls .img-button[aria-label="Your friends"] { background: var(--rv-lime) !important; }
html[data-reverse-theme="modern"] .registration-controls .img-button:is([aria-label="Get started"], [aria-label="Back"], [aria-label="Continue"], [aria-label="Create account and continue"]):hover { background: var(--rv-gradient-strong) !important; }
html[data-reverse-theme="modern"] .registration-controls .img-button[aria-label="Get started"] { width: 100% !important; }
html[data-reverse-theme="modern"] #step-0 { width: 100%; }

/* Informational pages and native signed-in home dashboard. */
html[data-reverse-theme="modern"] .marketing-shell { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 26px; background: transparent; }
html[data-reverse-theme="modern"] :is(.marketing-content, .help-document, .house-rules) { padding: 32px; border-radius: 22px; border: 1px solid var(--rv-line); background: var(--rv-white); color: var(--rv-ink); font: 15px/1.8 var(--rv-font); }
html[data-reverse-theme="modern"] .marketing-content h2 { color: var(--rv-ink); font-size: 38px; font-weight: 900; }
html[data-reverse-theme="modern"] .marketing-content h3 { color: var(--rv-ink); font-size: 25px; margin-block: 28px 14px; }
html[data-reverse-theme="modern"] :is(.marketing-sidebar, .about-sidebar) { padding: 26px; background: #efe4f3; color: var(--rv-ink); min-height: 0; border-radius: 22px; }
html[data-reverse-theme="modern"] .marketing-about { grid-template-columns: minmax(0, 1fr) 260px; gap: 26px; }
html[data-reverse-theme="modern"] .marketing-about .marketing-content { background: var(--rv-white); }
html[data-reverse-theme="modern"] :is(.help-page-heading, .house-rule-group) { color: var(--rv-ink); background: transparent; padding: 18px 0; }
html[data-reverse-theme="modern"] :is(.help-page-heading h2, .house-rule-group h2) { font-size: 25px; }
html[data-reverse-theme="modern"] .help-page .panel-content { padding: 24px; }
html[data-reverse-theme="modern"] :is(.legal-contents, .help-document) a { color: #745099; }
html[data-reverse-theme="modern"] .home-wrap { background: var(--rv-paper); min-height: 0; }
html[data-reverse-theme="modern"] .home-dashboard { width: min(1180px, calc(100% - 64px)); margin: 32px auto; gap: 24px; }
html[data-reverse-theme="modern"] :is(.home-side-panel, .home-online-panel, .home-promo) { border: 1px solid var(--rv-line); border-radius: 20px; background: var(--rv-white); overflow: hidden; }
html[data-reverse-theme="modern"] :is(.home-side-panel h2, .home-online-panel h2) { background: #e5d6ee; padding: 18px; color: var(--rv-ink); font-size: 20px; }
html[data-reverse-theme="modern"] .home-photo-copy { color: var(--rv-ink); }
html[data-reverse-theme="modern"] .home-masthead-tagline { position: static; color: var(--rv-ink); padding: 0 32px 24px; font-size: 28px; }

html[data-reverse-theme="modern"] :is(.legacy-footer, .registration-footer) { background: #eee8e0; color: var(--rv-muted); border-top: 1px solid var(--rv-line); box-shadow: none; padding: 28px 70px; font: 12px/1.6 var(--rv-font); }
html[data-reverse-theme="modern"] .download-footer { background-image: none !important; }
html[data-reverse-theme="modern"] :is(.legacy-footer, .registration-footer) ul { gap: 8px 12px; justify-content: center; flex-wrap: wrap; line-height: 1.6; }
html[data-reverse-theme="modern"] :is(.legacy-footer, .registration-footer) li { border: 0; padding: 0; }
html[data-reverse-theme="modern"] :is(.legacy-footer, .registration-footer) a { color: var(--rv-ink); }
html[data-reverse-theme="modern"] .registration-footer { border-radius: 16px; margin-top: 24px; }

/* Only the newly extended Account bar reflows in Classic at phone widths. */
@media (max-width: 600px) {
  html[data-reverse-theme="classic"] #navbar nav[aria-label="Account"]:has(.reverse-theme-switch) > div { width: calc(100% - 24px); max-width: 100%; min-width: 0; flex-wrap: wrap; gap: 10px; }
  html[data-reverse-theme="classic"] #navbar nav[aria-label="Account"]:has(.reverse-theme-switch) ul { max-width: 100%; flex-wrap: wrap; row-gap: 8px; }
  html[data-reverse-theme="classic"] #navbar nav[aria-label="Account"]:has(.reverse-theme-switch) form { flex: 1 1 100%; min-width: 0; max-width: 100%; padding-right: 0; }
  html[data-reverse-theme="classic"] #navbar nav[aria-label="Account"]:has(.reverse-theme-switch) form label { flex: 1; min-width: 0; }
  html[data-reverse-theme="classic"] #navbar nav[aria-label="Account"]:has(.reverse-theme-switch) input[type="search"] { width: 100%; min-width: 0; max-width: 100%; }
}

@media (max-width: 1100px) {
  html[data-reverse-theme="modern"] .nav-logo { flex-basis: 86px; margin-right: 0; }
  html[data-reverse-theme="modern"] .nav-second { gap: 12px; min-height: 120px; }
  html[data-reverse-theme="modern"] .nav-link { padding-inline: 11px; font-size: 14px; }
  html[data-reverse-theme="modern"] .nav-end { width: auto; padding-left: 0; flex-shrink: 0; }
  html[data-reverse-theme="modern"] .profile-columns { grid-template-columns: minmax(260px, .9fr) minmax(0, 1.2fr); gap: 22px; }
  html[data-reverse-theme="modern"] .profile-event-summary { grid-template-columns: 60px minmax(0, 1fr); }
  html[data-reverse-theme="modern"] .profile-event-banner { display: none; }
  html[data-reverse-theme="modern"] .download-page #vSide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-reverse-theme="modern"] .download-page #linux_controls { grid-column: 1 / -1; }
  html[data-reverse-theme="modern"] .download-page #download_linux > div { min-height: 0; }
}
@media (max-width: 800px) {
  html[data-reverse-theme="modern"] :is(.tw\:container, .events-page, .photo-page, .friends-page, .help-page, .marketing-page, .account-settings, .home-dashboard) { width: calc(100% - 36px); }
  html[data-reverse-theme="modern"] .nav-second { gap: 12px; padding-block: 18px; }
  html[data-reverse-theme="modern"] .nav-links { flex: 1 1 0; }
  html[data-reverse-theme="modern"] .nav-end { width: 100%; padding-left: 98px; margin-top: -10px; }
  html[data-reverse-theme="modern"] .profile-columns { grid-template-columns: minmax(0, 1fr); width: calc(100% - 36px); max-width: 650px; overflow: visible; }
  html[data-reverse-theme="modern"] .profile-columns > div:first-child > section:first-child { max-width: 100%; }
  html[data-reverse-theme="modern"] .profile-photo { max-height: 440px; }
  html[data-reverse-theme="modern"] :is(.event-detail-columns, .photo-people-comments, .marketing-shell, .marketing-about, .event-create-grid) { grid-template-columns: minmax(0, 1fr); }
  html[data-reverse-theme="modern"] .event-create-grid > * { grid-column: auto; }
  html[data-reverse-theme="modern"] .people-intro { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  html[data-reverse-theme="modern"] .people-intro > div:first-child { grid-column: auto; }
  html[data-reverse-theme="modern"] .marketing-sidebar { min-height: 0; }
  html[data-reverse-theme="modern"] .registration-right { width: 290px; flex-basis: 290px; margin: 16px; padding: 20px; }
  html[data-reverse-theme="modern"] .download-page #vSide { width: calc(100% - 36px); gap: 18px; }
  html[data-reverse-theme="modern"] .home-dashboard { display: flex; flex-direction: column; }
}
@media (max-width: 600px) {
  html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] > div { gap: 10px; }
  html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] ul { gap: 4px; }
  html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] li { padding: 0 4px; }
  html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] form { width: 100%; }
  html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] form label { flex: 1; }
  html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] input[type="search"] { width: 100%; }
  html[data-reverse-theme="modern"] .nav-logo { flex-basis: 70px; }
  html[data-reverse-theme="modern"] .nav-links { column-gap: 0; row-gap: 3px; }
  html[data-reverse-theme="modern"] .nav-link { min-height: 36px; padding: 8px 10px; font-size: 13px; }
  html[data-reverse-theme="modern"] .nav-end { padding-left: 82px; margin-top: -6px; }
  html[data-reverse-theme="modern"] :is(.legacy-panel, .profile-columns > div > section) > div:first-child { padding: 16px 18px; }
  html[data-reverse-theme="modern"] .panel-content { padding: 16px; }
  html[data-reverse-theme="modern"] .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html[data-reverse-theme="modern"] .people-tile { padding: 8px; border-radius: 16px; }
  html[data-reverse-theme="modern"] .people-tile strong { font-size: 16px; }
  html[data-reverse-theme="modern"] .people-intro > :is(div:nth-child(2), form) { padding: 16px; gap: 14px; }
  html[data-reverse-theme="modern"] .people-intro img { width: 100px; height: 100px; }
  html[data-reverse-theme="modern"] .people-intro form > div:first-child { width: 110px; }
  html[data-reverse-theme="modern"] .people-intro > div:first-child p { font-size: 18px; }
  html[data-reverse-theme="modern"] .events-primary-tabs { border-radius: 18px; width: 100%; gap: 4px; }
  html[data-reverse-theme="modern"] .events-primary-tabs > a { flex: 1; text-align: center; padding: 10px; font-size: 12px; }
  html[data-reverse-theme="modern"] .event-grid { grid-template-columns: minmax(0, 1fr); }
  html[data-reverse-theme="modern"] .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html[data-reverse-theme="modern"] .photo-grid > li { height: 180px; }
  html[data-reverse-theme="modern"] .photo-image-area { padding: 12px; }
  html[data-reverse-theme="modern"] :is(.marketing-content, .help-document, .house-rules) { padding: 22px; }
  html[data-reverse-theme="modern"] .marketing-content h2 { font-size: 30px; }
  html[data-reverse-theme="modern"] .download-page #vSide { grid-template-columns: minmax(0, 1fr); }
  html[data-reverse-theme="modern"] .download-page :is(#download_windows, #download_apple, #download_linux) > div { min-height: 0; }
  html[data-reverse-theme="modern"] .download-page #download_apple > div { min-height: 260px; }
  html[data-reverse-theme="modern"] .download-page #while_wait { padding: 24px; }
  html[data-reverse-theme="modern"] .download-page #clock { display: none; }
  html[data-reverse-theme="modern"] .registration-page { padding: 20px 14px; }
  html[data-reverse-theme="modern"] .registration-top { justify-content: center; gap: 8px; }
  html[data-reverse-theme="modern"] #registration-panel { display: flex; flex-direction: column; min-height: 0; padding-top: 400px; overflow: visible; }
  html[data-reverse-theme="modern"] .scene-layer { height: 400px; border-radius: 25px 25px 0 0; }
  html[data-reverse-theme="modern"] .registration-logo { width: 80px; left: 16px; top: 16px; }
  html[data-reverse-theme="modern"] .registration-right { width: auto; min-height: 0; flex-basis: auto; margin: 0; padding: 26px 24px; border-radius: 0 0 25px 25px; background: var(--rv-white); }
  html[data-reverse-theme="modern"] .registration-controls { width: 100%; min-height: 0; justify-content: center; }
  html[data-reverse-theme="modern"] .registration-form { max-width: 270px; }
  html[data-reverse-theme="modern"] .registration-controls .registration-input { width: 100%; }
  html[data-reverse-theme="modern"] .registration-tagline { font-size: 30px; text-align: center; }
  html[data-reverse-theme="modern"] .scene-caption { left: 20px; top: 290px; }
  html[data-reverse-theme="modern"] :is(.legacy-footer, .registration-footer) { padding: 24px 18px 64px; }
  html[data-reverse-theme="modern"] .legacy-footer > img { left: calc(50% - 26px); bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-reverse-theme="modern"] *, html[data-reverse-theme="modern"] *::before, html[data-reverse-theme="modern"] *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) {
  .reverse-theme-switch { border: 1px solid ButtonText; background: ButtonFace; color: ButtonText; }
  html[data-reverse-theme="modern"] :is(.legacy-footer a, .registration-footer a, .marketing-content a, .marketing-sidebar > a, .help-document a, .house-rules a, .profile-biography-content a, .photo-detail-heading a, .profile-events-see-all, #login-form p a):not(:has(img, svg)):hover { color: LinkText; background: none; text-decoration-color: LinkText; }
  html[data-reverse-theme="modern"] :is(.button, .carat, .nav-link.prime, .profile-event-tabs button.selected, .events-primary-tabs > a.active) { color: ButtonText; background: ButtonFace !important; border: 1px solid ButtonText; }
  html[data-reverse-theme="modern"] :is(.legacy-panel, .people-tile, .event-panel) { border: 1px solid CanvasText; }
}

/* Light counterpart to the ReVerse admin dashboard. All native controls and
   Classic styling are preserved; this layer replaces Modern presentation. */
html[data-reverse-theme="modern"] {
  --rv-paper: #f4f6fa; --rv-white: #ffffff; --rv-raised: #f7f8fb;
  --rv-ink: #252b3b; --rv-muted: #687386; --rv-line: #dde3ec;
  --rv-line-soft: #eaf0f5; --rv-pink: #f3e8f2; --rv-blue: #edf4fb; --rv-lime: #edf3f3;
  --rv-radius: 14px; --rv-font: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --rv-gradient: linear-gradient(110deg,#4aaad2,#9876d8 38%,#d552b4 72%,#ec7578);
  --rv-gradient-strong: linear-gradient(110deg,#256887,#684694 38%,#a32f7b 72%,#a54450);
  --rv-shadow: 0 2px 6px #26344804, 0 8px 22px #26344803;
}
html[data-reverse-theme="modern"] body { font-size:14px; line-height:1.6; }
html[data-reverse-theme="modern"] :is(h1,h2,h3,h4) { font-weight:700; letter-spacing:-.025em; }
html[data-reverse-theme="modern"] :is(a,button) { -webkit-tap-highlight-color:#9876d824; }
html[data-reverse-theme="modern"] a { color:#405c80; }
html[data-reverse-theme="modern"] a:hover { color:#594a80; }
html[data-reverse-theme="modern"] :focus-visible { outline:2px solid #3b81ac; outline-offset:3px; }
html[data-reverse-theme="modern"] .tw\:container { width:min(1280px,calc(100% - 64px)); max-width:1280px; }
html[data-reverse-theme="modern"] :is(.events-page,.photo-page,.friends-page,.help-page,.marketing-page,.home-dashboard) { width:min(1280px,calc(100% - 64px)); max-width:1280px; }

/* Compact application chrome. */
html[data-reverse-theme="modern"] #navbar { background:#fff; border-bottom:1px solid var(--rv-line); box-shadow:0 3px 14px #26344804; }
html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] { background:var(--rv-raised); border-bottom:1px solid var(--rv-line-soft); }
html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] > div { min-height:44px; padding-block:6px; }
html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] :is(a,button:not(.reverse-theme-switch)) { font-size:12px; font-weight:600; }
html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] input[type="search"] { background:white; border:1px solid var(--rv-line); border-radius:7px; height:30px; min-height:30px; width:220px; font-size:12px; }
html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] li { padding-inline:8px; }
html[data-reverse-theme="modern"] .nav-second { min-height:96px; padding-block:14px; gap:10px 20px; }
html[data-reverse-theme="modern"] .nav-logo { flex-basis:64px; margin-right:20px; }
html[data-reverse-theme="modern"] .nav-logo::before { opacity:.22; inset:10px; filter:blur(13px); }
html[data-reverse-theme="modern"] .nav-logo img { max-width:64px; max-height:64px; border-radius:0; }
html[data-reverse-theme="modern"] :is(.nav-links,.nav-end) { gap:3px; align-items:center; }
html[data-reverse-theme="modern"] :is(.nav-links,.nav-end) > li { margin-inline:0; }
html[data-reverse-theme="modern"] .nav-link { border-radius:8px; min-height:40px; padding:10px 14px; font-size:14px; font-weight:600; text-transform:capitalize; }
html[data-reverse-theme="modern"] a.nav-link:hover { background:var(--rv-gradient-strong); color:white; }
html[data-reverse-theme="modern"] .nav-link[aria-disabled="true"] { color:#818c9e; opacity:.7; }
html[data-reverse-theme="modern"] .nav-submenu { border-radius:10px; padding:6px; box-shadow:0 14px 32px #26344814; }
html[data-reverse-theme="modern"] .nav-submenu li > a { border-radius:6px; font-weight:500; }
html[data-reverse-theme="modern"] .nav-submenu li > a:hover { background:var(--rv-gradient-strong); color:white; }
html[data-reverse-theme="modern"] .reverse-theme-switch { border:1px solid var(--rv-line); border-radius:7px; color:var(--rv-ink); background:white; min-height:30px; padding:5px 10px; font:600 12px/1.3 var(--rv-font); }
html[data-reverse-theme="modern"] .reverse-theme-switch:hover { background:var(--rv-gradient-strong); color:white; border-color:transparent; }

/* One shared card hierarchy across public pages. */
html[data-reverse-theme="modern"] :is(.legacy-panel,.profile-columns > div > section,.event-content-panel,.event-rsvp-panel,.event-panel,.event-create-section,.legacy-event-detail,.photo-people,.home-side-panel,.home-online-panel,.home-photo-panel,.home-promo) {
  border:1px solid var(--rv-line); border-radius:var(--rv-radius); background:var(--rv-white); box-shadow:var(--rv-shadow);
}
html[data-reverse-theme="modern"] :is(.legacy-panel,.profile-columns > div > section) { margin-bottom:20px; }
html[data-reverse-theme="modern"] :is(.legacy-panel,.profile-columns > div > section) > div:first-child {
  min-height:56px; padding:17px 22px; background:var(--rv-white); border-radius:13px 13px 0 0; border-bottom:1px solid var(--rv-line-soft);
}
html[data-reverse-theme="modern"] :is(.legacy-panel,.profile-columns > div > section) > div:first-child :is(h1,h2) { font-size:17px; font-weight:650; letter-spacing:-.02em; }
html[data-reverse-theme="modern"] .panel-content { padding:20px 22px; border-radius:0 0 13px 13px; }
html[data-reverse-theme="modern"] :is(.button,.carat,.event-white-link,.photo-visit) {
  min-height:40px; padding:10px 16px; border-radius:8px; background:var(--rv-gradient-strong); color:#fff; font:600 13px/1.4 var(--rv-font); box-shadow:0 2px 3px #4436650c;
}
html[data-reverse-theme="modern"] :is(.button,.carat,.event-white-link,.photo-visit):not(:disabled):hover { background:var(--rv-gradient-strong); box-shadow:0 3px 10px #68469430; }
html[data-reverse-theme="modern"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="button"]):not([type="submit"]),select,textarea) {
  border:1px solid #ced7e3; border-radius:8px; background:#fff; font-size:14px; min-height:40px;
}
html[data-reverse-theme="modern"] :is(input,textarea)::placeholder { color:#8590a0; }
html[data-reverse-theme="modern"] input:is([type="checkbox"],[type="radio"]) { accent-color:#684694; }
html[data-reverse-theme="modern"] .feedback { background:var(--rv-raised); color:var(--rv-muted); border:1px solid var(--rv-line-soft); border-radius:8px; font-size:13px; }
html[data-reverse-theme="modern"] .feedback-error { background:#fff1f3; color:#a42e49; border-color:#f0c9d1; }
html[data-reverse-theme="modern"] .local-feedback { border-color:var(--rv-line); border-radius:10px; background:#fff; box-shadow:0 8px 30px #26344820; }
html[data-reverse-theme="modern"] :is(.friends-pagination,.home-online-pagination,.event-comment-pagination) :is(a,button) { background:var(--rv-raised); border:1px solid var(--rv-line); border-radius:7px; font-size:13px; }

/* Profile identity, details, and activity share the dashboard's proportions. */
html[data-reverse-theme="modern"] .profile-columns { grid-template-columns:minmax(300px,360px) minmax(0,1fr); gap:24px; padding-block:32px; }
html[data-reverse-theme="modern"] .profile-columns > div:first-child > section:first-child { position:relative; }
html[data-reverse-theme="modern"] .profile-columns > div:first-child > section:first-child::before { content:""; position:absolute; top:-1px; left:14px; right:14px; height:3px; background:var(--rv-gradient); border-radius:0 0 3px 3px; }
html[data-reverse-theme="modern"] .profile-columns > div:first-child > section:first-child > div:first-child { background:white; padding:24px 22px 18px; gap:12px; }
html[data-reverse-theme="modern"] .profile-columns > div:first-child > section:first-child > div:first-child h1 { font-size:27px; line-height:1.25; font-weight:720; letter-spacing:-.035em; }
html[data-reverse-theme="modern"] .profile-columns > div:first-child > section:first-child > div:first-child p { font-size:11px; font-weight:600; }
html[data-reverse-theme="modern"] .profile-presence { width:8px; height:8px; margin-left:6px; }
html[data-reverse-theme="modern"] .profile-columns > div:first-child > section:first-child > div:nth-child(n+2) { padding:16px 20px; border-radius:0 0 13px 13px; }
html[data-reverse-theme="modern"] .profile-columns > div:first-child > section:first-child > div:nth-child(2) { padding-bottom:0; }
html[data-reverse-theme="modern"] .profile-columns input[aria-label="Status"] { background:var(--rv-raised); border:1px solid var(--rv-line-soft); min-height:36px; font-size:12px; }
html[data-reverse-theme="modern"] .profile-photo { border-radius:10px; background-color:var(--rv-raised); }
html[data-reverse-theme="modern"] .profile-columns .rating { border:1px solid var(--rv-line); border-radius:8px; background:var(--rv-raised); margin-block:16px; padding:10px; gap:8px; }
html[data-reverse-theme="modern"] .rating-label { background:#eaf0f7; color:#40546d; border-radius:5px; padding:6px 8px; font:600 11px/1.4 var(--rv-font); min-height:0; }
html[data-reverse-theme="modern"] .profile-columns .rating-compact { background:var(--rv-raised); border-color:var(--rv-line); }
html[data-reverse-theme="modern"] .profile-details { border-radius:8px; overflow:hidden; font-variant-numeric:tabular-nums; }
html[data-reverse-theme="modern"] .profile-details :is(th,td) { padding:10px 9px; border-bottom:1px solid var(--rv-line-soft); font-size:12px; }
html[data-reverse-theme="modern"] .profile-details th { color:var(--rv-muted); font-weight:500; }
html[data-reverse-theme="modern"] .profile-details tr:nth-child(even) { background:var(--rv-raised); }
html[data-reverse-theme="modern"] .profile-details tr:nth-child(2) td { font-size:15px; font-weight:650; }
html[data-reverse-theme="modern"] .profile-details tr:last-child :is(th,td) { border-bottom:0; }
html[data-reverse-theme="modern"] .profile-right > section:first-child > div:first-child { background:white; }
html[data-reverse-theme="modern"] .profile-right > section:first-child > div:nth-child(2) { padding:24px; border-radius:0 0 13px 13px; }
html[data-reverse-theme="modern"] .profile-biography-content { font-size:14px; line-height:1.8; min-height:110px; }
html[data-reverse-theme="modern"] .profile-biography-content > :first-child { margin-top:0; }
html[data-reverse-theme="modern"] .profile-biography-content > :last-child { margin-bottom:0; }
html[data-reverse-theme="modern"] .profile-interest-tag { background:var(--rv-raised); color:#4b5c73; border:1px solid var(--rv-line); border-radius:6px; font-size:12px; padding:5px 10px; }
html[data-reverse-theme="modern"] :is(.profile-photos-empty,.profile-apartment-empty,.profile-recent-albums) { padding:12px 0; font-size:13px; }
html[data-reverse-theme="modern"] .music-top > div > div:not(.rating) { background:var(--rv-white); }
html[data-reverse-theme="modern"] .music-top > div > div:not(.rating):nth-child(even) { background:var(--rv-raised); }
html[data-reverse-theme="modern"] .profile-apartment-empty { background:var(--rv-raised); border:1px solid var(--rv-line-soft); border-radius:8px; padding:16px; }
html[data-reverse-theme="modern"] .profile-events-panel > .profile-events-heading { background:white; padding:18px 22px; gap:12px; }
html[data-reverse-theme="modern"] .profile-events-heading h2 { font-size:17px; font-weight:650; }
html[data-reverse-theme="modern"] .profile-event-tabs { padding:4px; background:var(--rv-raised); border:1px solid var(--rv-line-soft); border-radius:8px; gap:4px; }
html[data-reverse-theme="modern"] .profile-event-tabs button { flex:1; min-height:34px; padding:8px 10px; background:transparent; border-radius:5px; font:600 12px/1.4 var(--rv-font); }
html[data-reverse-theme="modern"] .profile-event-tabs button.selected { background:var(--rv-gradient-strong); color:#fff; }
html[data-reverse-theme="modern"] .profile-events-body { border-radius:0 0 13px 13px; padding:22px !important; }
html[data-reverse-theme="modern"] .profile-events-empty { background:var(--rv-raised); border:1px dashed var(--rv-line); border-radius:8px; padding:26px 18px; font-size:13px; }
html[data-reverse-theme="modern"] .profile-event-row { background:white; border-radius:9px; }
html[data-reverse-theme="modern"] .profile-event-head { background:var(--rv-raised); border-bottom:1px solid var(--rv-line-soft); }
html[data-reverse-theme="modern"] .profile-event-head a { font-size:14px; font-weight:600; }
html[data-reverse-theme="modern"] :is(.profile-events-see-all,.profile-view-all,.profile-owner-nav,.profile-owner-settings-link) { font-size:12px; font-weight:600; }

/* People, friends, and media. */
html[data-reverse-theme="modern"] #main > div.tw\:bg-black:has(.people-intro) { background:var(--rv-paper); border:0; padding-block:32px 8px; }
html[data-reverse-theme="modern"] .people-intro > div:first-child p { font-size:22px; line-height:1.5; font-weight:600; letter-spacing:-.025em; }
html[data-reverse-theme="modern"] .people-intro > :is(div:nth-child(2),form) { border-radius:14px; box-shadow:var(--rv-shadow); padding:22px; }
html[data-reverse-theme="modern"] .people-intro button[type="submit"] { border-radius:8px; min-height:40px; background:var(--rv-gradient-strong); font-size:13px; font-weight:600; }
html[data-reverse-theme="modern"] .people-grid { gap:16px; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); }
html[data-reverse-theme="modern"] .people-tile { border-radius:12px; padding:12px; box-shadow:var(--rv-shadow); }
html[data-reverse-theme="modern"] .people-tile:hover { background:#fff; border-color:#ab94c6; box-shadow:0 5px 18px #68469412; }
html[data-reverse-theme="modern"] .people-tile :is(img,.portrait) { border-radius:8px; }
html[data-reverse-theme="modern"] .people-tile strong { font-size:16px; font-weight:650; padding:12px 4px 6px; background:transparent; border-radius:0; }
html[data-reverse-theme="modern"] .people-tile .people-rank { background:var(--rv-gradient-strong); color:white; border-radius:6px; font-size:11px; font-weight:650; }
html[data-reverse-theme="modern"] .character-card img { border-radius:9px; border:1px solid var(--rv-line-soft); }
html[data-reverse-theme="modern"] .photo-grid > li { border-radius:12px; box-shadow:var(--rv-shadow); }
html[data-reverse-theme="modern"] .photo-grid img { border-radius:7px; }
html[data-reverse-theme="modern"] .photo-image-area { background:white; border:1px solid var(--rv-line); border-radius:14px; box-shadow:var(--rv-shadow); }
html[data-reverse-theme="modern"] .photo-people h2 { background:white; border-bottom:1px solid var(--rv-line-soft); font-size:17px; font-weight:650; }
html[data-reverse-theme="modern"] :is(.photo-album-create,.photo-detail-edit,.photo-detail-moderation,.photo-owner-actions,.photo-empty) { border-radius:12px; background:white; border:1px solid var(--rv-line); }
html[data-reverse-theme="modern"] :is(.photo-page-title,.photo-detail-title,.events-page > h1) { font-size:32px; font-weight:700; letter-spacing:-.035em; padding-bottom:22px; }

/* Events and forms use the same compact dashboard controls. */
html[data-reverse-theme="modern"] .events-primary-tabs { border:1px solid var(--rv-line); border-radius:10px; padding:5px; background:white; }
html[data-reverse-theme="modern"] .events-primary-tabs > a { min-height:38px; border-radius:6px; padding:10px 20px; font-size:13px; font-weight:600; }
html[data-reverse-theme="modern"] .events-filter-bar > div > button { border-radius:7px; background:white; border:1px solid var(--rv-line); font-weight:500; font-size:12px; }
html[data-reverse-theme="modern"] .events-filter-bar > div > button.active { background:var(--rv-gradient-strong); color:white; border-color:transparent; }
html[data-reverse-theme="modern"] .events-filter-bar a.event-create-control,
html[data-reverse-theme="modern"] .events-filter-bar a.event-create-control:visited { border-radius:8px; background:var(--rv-gradient-strong); font-size:13px; font-weight:600; }
html[data-reverse-theme="modern"] :is(.events-resource,.event-message) { border-radius:14px; box-shadow:var(--rv-shadow); }
html[data-reverse-theme="modern"] :is(.events-resource,.event-message) > .feedback { background:var(--rv-raised); }
html[data-reverse-theme="modern"] .event-head { background:white; border-bottom:1px solid var(--rv-line-soft); min-height:68px; }
html[data-reverse-theme="modern"] .event-head h2 { font-size:18px; font-weight:650; }
html[data-reverse-theme="modern"] .event-actions { background:var(--rv-raised); border-top:1px solid var(--rv-line-soft); border-radius:0 0 13px 13px; }
html[data-reverse-theme="modern"] .event-content-panel > h3 { background:white; border-bottom:1px solid var(--rv-line-soft); border-radius:13px 13px 0 0; min-height:56px; padding:18px 22px; font-size:17px; font-weight:650; }
html[data-reverse-theme="modern"] .event-content-panel > div { border-radius:0 0 13px 13px; padding:22px; }
html[data-reverse-theme="modern"] :is(.event-comment-body,.comment-body) { background:var(--rv-raised); border:1px solid var(--rv-line-soft); border-radius:8px; font-size:13px; }
html[data-reverse-theme="modern"] .event-create-section > h2 { background:white; border-bottom:1px solid var(--rv-line-soft); border-radius:13px 13px 0 0; font-size:17px; font-weight:650; }
html[data-reverse-theme="modern"] .event-create-actions { background:var(--rv-raised); border:1px solid var(--rv-line); border-radius:10px; }

/* Downloads and editorial pages. */
html[data-reverse-theme="modern"] .download-page #backToFWE_container { background:white; border:1px solid var(--rv-line); border-radius:10px; }
html[data-reverse-theme="modern"] .download-page :is(#main_controls,#utility_controls,#linux_controls) { border-radius:14px; box-shadow:var(--rv-shadow); }
html[data-reverse-theme="modern"] .download-page :is(#main_controls,#utility_controls,#linux_controls) h3 { background:white; border-bottom:1px solid var(--rv-line-soft); font-size:18px; font-weight:650; min-height:64px; }
html[data-reverse-theme="modern"] .download-page .about_href { background:var(--rv-gradient-strong) !important; border-radius:8px; font-size:13px; font-weight:600; }
/* Native platform links are absolutely positioned; keep notes and links in flow. */
html[data-reverse-theme="modern"] .download-page :is(#download_windows,#download_apple,#download_linux) > div > .asterix { position:static; margin:18px 0 14px; padding-top:0; }
html[data-reverse-theme="modern"] .download-page :is(#download_windows,#download_apple,#download_linux) > div > a.about_href { position:static; inset:auto; float:none; box-sizing:border-box; max-width:100%; margin:4px 0 0; }
html[data-reverse-theme="modern"] .download-coming-soon-overlay { background:#f4f6faf0; font-size:24px; font-weight:650; }
html[data-reverse-theme="modern"] .download-page #while_wait { background:white !important; border-radius:14px; }
html[data-reverse-theme="modern"] .download-page #learn_basics h2::before { font-size:23px; font-weight:650; }
html[data-reverse-theme="modern"] :is(.marketing-content,.help-document,.house-rules) { border-radius:14px; box-shadow:var(--rv-shadow); font-size:14px; }
html[data-reverse-theme="modern"] .marketing-content h2 { font-size:32px; font-weight:700; }
html[data-reverse-theme="modern"] .marketing-content h3 { font-size:23px; font-weight:650; }
html[data-reverse-theme="modern"] :is(.marketing-sidebar,.about-sidebar) { border:1px solid var(--rv-line); border-radius:14px; background:white; }
html[data-reverse-theme="modern"] :is(.home-side-panel h2,.home-online-panel h2,.home-photo-panel > h1) { background:white; color:var(--rv-ink); border-bottom:1px solid var(--rv-line-soft); height:auto; min-height:56px; padding:18px; font-size:17px; font-weight:650; }
html[data-reverse-theme="modern"] .home-photo-panel { overflow:hidden; }
html[data-reverse-theme="modern"] :is(.legacy-footer,.registration-footer) { background:#eef1f6; color:var(--rv-muted); font-size:12px; padding-top:24px; }

/* Sign-in, account management and registration. */
html[data-reverse-theme="modern"] .login-panel { position:relative; }
html[data-reverse-theme="modern"] .login-panel::before { content:""; position:absolute; top:-1px; left:14px; right:14px; height:3px; background:var(--rv-gradient); }
html[data-reverse-theme="modern"] .login-panel > div:first-child { background:white; }
html[data-reverse-theme="modern"] #login-form { background:var(--rv-raised); border:1px solid var(--rv-line-soft); border-radius:10px; }
html[data-reverse-theme="modern"] .recovery-kit-modal { border-radius:14px; background:white; }
html[data-reverse-theme="modern"] .recovery-kit-header { background:var(--rv-raised); border-bottom:1px solid var(--rv-line); }
html[data-reverse-theme="modern"] .recovery-kit-key { border-radius:8px; background:var(--rv-raised); }
html[data-reverse-theme="modern"] .registration-top a { border-radius:7px; font-weight:600; }
html[data-reverse-theme="modern"] #registration-panel { border-radius:16px; box-shadow:0 8px 30px #26344812; }
html[data-reverse-theme="modern"] .scene-layer { border-radius:15px; }
html[data-reverse-theme="modern"] .registration-right { background:#fffffffa; border:1px solid #ffffffbb; border-radius:12px; }
/* Leave visible space between the character and the registration form. */
html[data-reverse-theme="modern"] #registration-panel #paperdoll { right:360px; }
html[data-reverse-theme="modern"] .registration-tagline { font-size:25px; font-weight:700; letter-spacing:-.035em; }
html[data-reverse-theme="modern"] .registration-controls .img-button:is([aria-label="Your place"],[aria-label="Your style"],[aria-label="Your friends"],[aria-label="Get started"],[aria-label="Back"],[aria-label="Continue"],[aria-label="Create account and continue"]) { border-radius:8px; font-weight:600; }
html[data-reverse-theme="modern"] .registration-controls .img-button:is([aria-label="Your place"],[aria-label="Your style"],[aria-label="Your friends"]) { background:var(--rv-raised) !important; color:var(--rv-ink); border:1px solid var(--rv-line); font-size:15px; }
html[data-reverse-theme="modern"] .registration-controls .img-button:is([aria-label="Your place"],[aria-label="Your style"],[aria-label="Your friends"]):hover { background:var(--rv-gradient-strong) !important; color:white; border-color:transparent; }
html[data-reverse-theme="modern"] .registration-controls .img-button:is([aria-label="Get started"],[aria-label="Back"],[aria-label="Continue"],[aria-label="Create account and continue"]) { background:var(--rv-gradient-strong) !important; }
html[data-reverse-theme="modern"] .scene-caption { border-radius:8px; }

@media(max-width:1100px) {
  html[data-reverse-theme="modern"] .nav-second { gap:10px; min-height:88px; }
  html[data-reverse-theme="modern"] .nav-logo { flex-basis:60px; margin-right:8px; }
  html[data-reverse-theme="modern"] .nav-link { padding-inline:10px; font-size:13px; }
  html[data-reverse-theme="modern"] .profile-columns { grid-template-columns:minmax(280px,.85fr) minmax(0,1.3fr); gap:20px; }
  html[data-reverse-theme="modern"] .profile-columns > div:first-child > section:first-child > div:first-child h1 { font-size:24px; }
}
@media(max-width:800px) {
  html[data-reverse-theme="modern"] #registration-panel #paperdoll { right:326px; width:min(237px,calc(100% - 342px)); max-width:none; height:auto; }
  html[data-reverse-theme="modern"] :is(.tw\:container,.events-page,.photo-page,.friends-page,.help-page,.marketing-page,.home-dashboard) { width:calc(100% - 36px); }
  html[data-reverse-theme="modern"] .profile-columns { grid-template-columns:minmax(0,1fr); max-width:650px; padding-top:24px; gap:0; }
  html[data-reverse-theme="modern"] .nav-end { padding-left:78px; margin-top:-6px; }
  html[data-reverse-theme="modern"] .nav-second { padding-block:14px; }
  html[data-reverse-theme="modern"] .profile-photo { max-height:420px; }
}
@media(max-width:600px) {
  html[data-reverse-theme="modern"] #registration-panel #paperdoll { right:24px; width:auto; max-width:65%; height:355px; }
  html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] input[type="search"] { width:100%; }
  html[data-reverse-theme="modern"] #navbar nav[aria-label="Account"] li { padding-inline:4px; }
  html[data-reverse-theme="modern"] .nav-logo { flex-basis:54px; margin-right:4px; }
  html[data-reverse-theme="modern"] .nav-link { min-height:36px; padding:8px 10px; font-size:12px; }
  html[data-reverse-theme="modern"] .nav-end { padding-left:68px; }
  html[data-reverse-theme="modern"] :is(.legacy-panel,.profile-columns > div > section) > div:first-child { padding-inline:18px; }
  html[data-reverse-theme="modern"] .panel-content { padding:18px; }
  html[data-reverse-theme="modern"] .profile-event-tabs button { flex:auto; font-size:11px; }
  html[data-reverse-theme="modern"] .people-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  html[data-reverse-theme="modern"] .people-tile { padding:9px; }
  html[data-reverse-theme="modern"] .people-intro > :is(div:nth-child(2),form) { padding:16px; }
  html[data-reverse-theme="modern"] .people-intro > div:first-child p { font-size:19px; }
  html[data-reverse-theme="modern"] .events-primary-tabs { border-radius:9px; }
  html[data-reverse-theme="modern"] .events-primary-tabs > a { padding-inline:10px; font-size:12px; }
  html[data-reverse-theme="modern"] .scene-layer { border-radius:15px 15px 0 0; }
  html[data-reverse-theme="modern"] .registration-right { border-radius:0 0 15px 15px; }
}
@media(forced-colors:active) {
  html[data-reverse-theme="modern"] :is(.button,.carat,.event-white-link,.photo-visit,.nav-link.prime,.profile-event-tabs button.selected,.events-primary-tabs > a.active,.events-filter-bar > div > button.active,.reverse-theme-switch,.download-page .about_href,.registration-controls .img-button) { background:ButtonFace !important; color:ButtonText !important; border:1px solid ButtonText; }
  /* Match the specificity of the native image-button and download hover rules. */
  html[data-reverse-theme="modern"] .registration-controls .img-button[aria-label],
  html[data-reverse-theme="modern"] .registration-controls .img-button[aria-label]:is(:hover,:focus-visible),
  html[data-reverse-theme="modern"] .download-page .about_href,
  html[data-reverse-theme="modern"] .download-page .about_href:is(:hover,:focus-visible) { background:ButtonFace !important; background-image:none !important; color:ButtonText !important; border:1px solid ButtonText !important; }
  html[data-reverse-theme="modern"] :is(.legacy-panel,.profile-columns > div > section,.people-tile,.event-panel) { border-color:CanvasText; }
}
