:root {
  --bg-deep: #090d18;
  --bg-blue: #11182f;
  --surface: rgba(28, 26, 66, 0.42);
  --surface-strong: rgba(18, 22, 56, 0.58);
  --surface-soft: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f7fb;
  --text-soft: rgba(246, 247, 251, 0.78);
  --text-muted: rgba(246, 247, 251, 0.56);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --gradient-main: linear-gradient(135deg, #8b63ff 0%, #4ca7ff 36%, #4ce4d2 72%, #ff89c8 100%);
  --gradient-accent: linear-gradient(135deg, #8d6bff 0%, #53b4ff 52%, #7be3ff 100%);
  --warning: #ffd56a;
  --danger: #ff6d91;
  --green: #6be5ac;
  --blur: blur(18px);
  --menubar-h: 42px;
  --dock-h: 88px;
  font-synthesis-weight: none;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 84%, rgba(87, 167, 255, 0.18), transparent 28%),
    radial-gradient(circle at 76% 12%, rgba(130, 104, 255, 0.22), transparent 28%),
    linear-gradient(180deg, #0b0a18 0%, #11184a 52%, #0a1031 100%);
  overflow: hidden;
}
button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; background: none; color: inherit; }
img { display: block; }
[hidden] { display: none !important; }

.wallpaper-layer,
.boot-screen,
.overlay-shell,
.desktop-app,
.window-host,
.notification-center {
  position: fixed;
  inset: 0;
}
.wallpaper-layer {
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.98;
}
body[data-wallpaper="violet-sky"] .wallpaper-layer { background-image: url('/assets/wallpapers/rora-veil.svg'); }
body[data-wallpaper="midnight-bloom"] .wallpaper-layer { background-image: url('/assets/wallpapers/rora-nocturne.svg'); }
body[data-wallpaper="cyan-orbit"] .wallpaper-layer { background-image: url('/assets/wallpapers/rora-orbit.svg'); }
body[data-wallpaper="sunset-pop"] .wallpaper-layer {
  background-image: linear-gradient(135deg, #ffb6d0 0%, #8d74ff 28%, #4da6ff 58%, #10194f 100%);
}

.boot-screen { display: grid; place-items: center; z-index: 50; }
.aurora {
  position: absolute;
  filter: blur(44px);
  border-radius: 50%;
  opacity: 0.5;
  animation: float 8s ease-in-out infinite alternate;
}
.aurora-a {
  width: 34vw; height: 34vw; left: -6vw; top: 20vh;
  background: radial-gradient(circle, rgba(128, 112, 255, 0.5) 0%, rgba(128,112,255,0) 72%);
}
.aurora-b {
  width: 28vw; height: 28vw; right: -3vw; top: 10vh;
  background: radial-gradient(circle, rgba(129, 215, 255, 0.46) 0%, rgba(129,215,255,0) 70%);
  animation-delay: 1.2s;
}
.boot-card {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100vw - 40px));
  padding: 38px;
  border-radius: 32px;
  text-align: center;
  background: rgba(22, 23, 58, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: var(--blur);
}
.wordmark { width: 172px; margin: 0 auto 18px; }
.kicker { margin: 0; font-size: 1.7rem; font-weight: 800; letter-spacing: 0.01em; }
.boot-subtitle,
.boot-device { margin: 10px 0 0; color: var(--text-soft); }
.boot-owner-line {
  margin: 20px auto 18px;
  display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap;
}
.boot-progress {
  margin-top: 22px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.boot-progress span {
  display: block; height: 100%; width: 0;
  border-radius: inherit;
  background: var(--gradient-main);
  transition: width .18s ease;
}
.boot-footer {
  margin-top: 14px;
  display: flex; justify-content: space-between; gap: 10px;
  color: var(--text-muted); font-size: .95rem;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.glass {
  background: var(--surface);
  backdrop-filter: var(--blur);
}
.glass.strong { background: var(--surface-strong); }

.overlay-shell { padding: 14px; z-index: 20; }
.lock-shell {
  position: relative; z-index: 1;
  min-height: 100%; display: grid; place-items: center;
}
.lock-panel {
  width: min(560px, calc(100vw - 40px));
  padding: 28px 30px;
  display: grid;
  gap: 16px;
  text-align: center;
}
.lock-brand-row { display: flex; align-items: center; justify-content: center; gap: 16px; }
.lock-brand-row h1 { margin: 0; font-size: 1.8rem; }
.lock-brand-row p { margin: 4px 0 0; color: #9fe5ff; text-transform: uppercase; letter-spacing: .16em; font-size: .86rem; }
.brand-mark { width: 56px; height: 56px; }
.owner-avatar {
  width: 54px; height: 54px; border-radius: 18px;
  display: grid; place-items: center;
  font-weight: 800;
  color: #fff;
  background: var(--gradient-accent);
  box-shadow: 0 12px 26px rgba(79, 124, 255, 0.25);
}
.owner-avatar.xl {
  width: 88px; height: 88px; border-radius: 999px; font-size: 2rem; margin: 0 auto;
  background: linear-gradient(135deg, rgba(123,103,255,.8), rgba(109,200,255,.65));
}
.lock-clock { font-size: clamp(3rem, 7vw, 4.2rem); line-height: 1; font-weight: 300; letter-spacing: -.03em; }
.lock-date { margin-top: 8px; color: var(--text-soft); font-size: 1.08rem; }
.status-pill {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  min-height: 36px; padding: 7px 15px; border-radius: 999px;
  border: 1px solid rgba(130, 198, 255, 0.28);
  background: rgba(60, 78, 170, 0.24);
  color: #dcefff;
  font-size: .9rem; font-weight: 700; letter-spacing: .03em;
}
.status-pill.subtle { color: var(--text-soft); border-color: rgba(255,255,255,.12); }
.status-pill.warning { color: var(--warning); border-color: rgba(255,213,106,.28); }
.lock-badges,
.preview-quick-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.lock-helper,
.lock-lead,
.lock-text { margin: 0; }
.lock-helper { color: var(--text-soft); font-size: 1.05rem; }
.lock-lead { font-size: 1.56rem; font-weight: 800; }
.lock-text { color: var(--text-muted); line-height: 1.6; }
.pin-form { display: grid; gap: 12px; text-align: left; }
.pin-form h2 { margin: 0 0 4px; font-size: 1.24rem; text-align: center; }
.pin-form label { font-weight: 700; }
.pin-form input,
.inline-input,
textarea,
select {
  width: 100%; min-height: 54px;
  padding: 14px 16px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(4, 6, 14, 0.45);
  color: var(--text);
  outline: none;
}
.pin-form input:focus,
.inline-input:focus,
textarea:focus,
select:focus { border-color: rgba(135, 193, 255, 0.38); box-shadow: 0 0 0 4px rgba(109, 200, 255, 0.12); }
textarea { resize: vertical; min-height: 120px; }
.primary-action,
.secondary-action,
.ghost-action,
.action-button,
.station-button,
button[type="submit"] {
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 800;
}
.primary-action,
.action-button.primary,
button[type="submit"] {
  background: var(--gradient-main);
  color: #09111f;
}
.secondary-action,
.ghost-action,
.action-button,
.station-button,
.chip-button {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text);
}
.pin-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  color: #ffd8e0;
  background: rgba(255, 109, 145, 0.14);
  border: 1px solid rgba(255, 109, 145, 0.34);
}
.security-box {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-soft);
  line-height: 1.6;
}
.security-box p { margin: 0; }
.security-box p + p { margin-top: 8px; }

.desktop-app {
  padding: 10px 12px 14px;
  z-index: 1;
}
.menubar {
  position: relative;
  z-index: 3;
  min-height: var(--menubar-h);
  padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-radius: 14px;
}
.menubar-left,
.menubar-right { display: flex; align-items: center; gap: 10px; }
.topbar-wordmark { width: 74px; }
.menu-orb,
.menu-icon {
  min-width: 30px; height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .9rem;
}
.menu-orb { background: rgba(121, 147, 255, 0.16); }
.menu-icon.decorative { cursor: default; }
.menu-link {
  padding: 0 2px;
  color: var(--text-soft);
  font-size: .92rem;
  font-weight: 600;
}
.menu-link.strong { color: var(--text); font-weight: 800; }
.menu-chip {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(117, 109, 255, 0.28);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .84rem; font-weight: 700;
}
.menu-chip.subtle { background: rgba(255,255,255,.08); color: var(--text-soft); }
.menu-time { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: .92rem; font-weight: 700; }

.desktop-stage {
  position: absolute;
  inset: calc(var(--menubar-h) + 18px) 14px calc(var(--dock-h) + 32px) 14px;
  z-index: 1;
}
.desktop-caption {
  position: absolute;
  left: 0;
  bottom: 12px;
  max-width: 360px;
}
.desktop-caption-card {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(122,102,255,.34), rgba(77,168,255,.22), rgba(255,137,200,.18));
}
.caption-title {
  margin: 0;
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--text-soft);
}
.caption-copy { margin: 0; color: var(--text); line-height: 1.5; }
.desktop-icons-rail {
  position: absolute;
  top: 6px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-height: 100%;
  padding-right: 8px;
}
.desktop-shortcut {
  width: 92px;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.shortcut-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,.14));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: #fff;
  backdrop-filter: blur(10px);
}
.shortcut-label {
  font-size: .84rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
  line-height: 1.2;
}

.dock-wrap {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.dock {
  min-height: var(--dock-h);
  max-width: min(1280px, calc(100vw - 80px));
  padding: 10px 14px;
  border-radius: 26px;
  display: flex; align-items: end; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.dock-button {
  width: 76px; min-height: 70px;
  padding: 8px 6px;
  border-radius: 20px;
  display: grid;
  justify-items: center;
  gap: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
}
.dock-badge {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(226,235,255,.78));
  color: #0d1230;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}
.dock-button .dock-label {
  font-size: .73rem;
  font-weight: 700;
  color: var(--text-soft);
}

.dock-button { position: relative; }
.dock-task-indicator {
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateX(-50%) scale(0);
  background: #80d8ff;
  box-shadow: 0 0 10px rgba(128, 216, 255, .7);
  transition: transform .16s ease, background .16s ease;
}
.dock-button.is-running .dock-task-indicator { transform: translateX(-50%) scale(1); }
.dock-button.is-minimized .dock-task-indicator { background: #ffcf72; }
.dock-button.is-active .dock-badge { transform: translateY(-4px); }
.dock-badge { transition: transform .16s ease; }

.notification-center {
  top: 58px; right: 14px; left: auto; bottom: auto;
  width: min(360px, calc(100vw - 28px));
  z-index: 5;
  padding: 18px;
}
.notification-list { display: grid; gap: 12px; margin-top: 14px; }
.notification-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.08);
}
.notification-item strong { display: block; }
.notification-item small { display: block; margin-top: 6px; color: var(--text-muted); }
.section-header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.section-header.compact h2 { margin: 0; font-size: 1.04rem; }
.close-button,
.window-action {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.08);
}

.window-host {
  top: 58px;
  left: 16px;
  right: 16px;
  bottom: calc(var(--dock-h) + 28px);
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}
.app-window {
  position: absolute;
  max-width: calc(100% - 8px);
  max-height: calc(100% - 8px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  transition: box-shadow .16s ease, border-color .16s ease, transform .16s ease;
}
.app-window.is-active {
  border-color: rgba(136, 199, 255, .4);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .48), 0 0 0 1px rgba(122, 172, 255, .22);
}
.app-window.is-cinema {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  border-radius: 22px;
}
.window-header {
  min-height: 66px;
  padding: 14px 16px 14px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.window-header.is-dragging { cursor: grabbing; }
.window-header h3 { margin: 0; font-size: 1.15rem; }
.window-header p { margin: 4px 0 0; color: var(--text-muted); }
.window-actions { display: flex; gap: 9px; }
.window-action {
  width: 46px;
  height: 46px;
  font-size: 1.2rem;
  font-weight: 700;
}
.window-action.minimize { background: rgba(255, 206, 93, .2); }
.window-action.close { background: rgba(255, 105, 137, .2); }
.window-action.cinema { background: rgba(104, 217, 255, .16); }
.window-body {
  padding: 22px;
  overflow: auto;
  display: grid;
  gap: 16px;
}
.window-grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.window-grid.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile-card,
.list-card,
.station-card,
.photo-tile,
.note-card,
.empty-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.08);
}
.tile-card h4,
.list-card h4,
.station-card h4,
.note-card h4,
.photo-tile h4 { margin: 0 0 8px; }
.tile-card p,
.list-card p,
.station-card p,
.note-card p,
.photo-tile p,
.empty-card p { margin: 0; color: var(--text-soft); line-height: 1.55; }
.station-card.active { border-color: rgba(135,193,255,.45); box-shadow: 0 0 0 3px rgba(135,193,255,.08); }
.station-actions,
.inline-actions,
.reset-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.station-player { width: 100%; }
.quick-list { display: grid; gap: 12px; }
.quick-list .row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.quick-list strong { display: block; }
.quick-list small,
.helper-copy,
.card-copy,
.muted { color: var(--text-muted); }
.form-grid { display: grid; gap: 12px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.toggle-line {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.06);
}
.toggle-line input { width: 22px; height: 22px; accent-color: #7b67ff; }
.wallpaper-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wallpaper-option {
  overflow: hidden; text-align: left;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
}
.wallpaper-option.active { border-color: rgba(135,193,255,.45); box-shadow: 0 0 0 3px rgba(135,193,255,.08); }
.wallpaper-swatch { height: 110px; background: var(--gradient-main); background-position: center; background-size: cover; }
.wallpaper-meta { padding: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.link-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.info-grid { display: grid; gap: 14px; }
.info-row { display: flex; justify-content: space-between; gap: 10px; }

.performance-mode .glass,
.performance-mode .boot-card,
.performance-mode .lock-panel,
.performance-mode .dock,
.performance-mode .app-window { backdrop-filter: blur(8px); }
.performance-mode .aurora { opacity: 0.2; }
.performance-mode * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(0, 16px, 0) scale(1.04); }
}


.desktop-shortcut:nth-child(1) .shortcut-icon, .dock-button:nth-child(1) .dock-badge { background: linear-gradient(135deg, #7e6bff, #63d5ff); }
.desktop-shortcut:nth-child(2) .shortcut-icon, .dock-button:nth-child(2) .dock-badge { background: linear-gradient(135deg, #5da8ff, #79e8ff); }
.desktop-shortcut:nth-child(3) .shortcut-icon, .dock-button:nth-child(3) .dock-badge { background: linear-gradient(135deg, #7b68ff, #5fb8ff, #6fe8d0); }
.desktop-shortcut:nth-child(4) .shortcut-icon, .dock-button:nth-child(4) .dock-badge { background: linear-gradient(135deg, #ff7faf, #ffb36b); }
.desktop-shortcut:nth-child(5) .shortcut-icon, .dock-button:nth-child(5) .dock-badge { background: linear-gradient(135deg, #7e89ff, #9cc0ff); }
.desktop-shortcut:nth-child(6) .shortcut-icon, .dock-button:nth-child(6) .dock-badge { background: linear-gradient(135deg, #b08bff, #ff91c8); }
.dock-button:nth-child(7) .dock-badge { background: linear-gradient(135deg, #58c8ff, #6ef0d0); }
.dock-button:nth-child(8) .dock-badge { background: linear-gradient(135deg, #a375ff, #6cc8ff); }
.dock-button:nth-child(9) .dock-badge { background: linear-gradient(135deg, #7a7fff, #8db0ff); }
.dock-button:nth-child(10) .dock-badge { background: linear-gradient(135deg, #ff7eb3, #ffb86c); }


.app-icon-svg {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.app-icon-svg svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shortcut-icon .app-icon-svg svg {
  width: 30px;
  height: 30px;
  color: #fff;
}
.dock-badge .app-icon-svg svg {
  width: 26px;
  height: 26px;
  color: #09122d;
}

@media (max-width: 1080px) {
  .desktop-icons-rail { gap: 14px; }
  .desktop-shortcut { width: 82px; }
  .shortcut-icon { width: 56px; height: 56px; }
  .dock { max-width: calc(100vw - 28px); }
  .window-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  body { overflow: auto; }
  .desktop-app, .overlay-shell { overflow: auto; }
  .menubar { flex-wrap: wrap; padding: 10px 12px; }
  .menubar-right { width: 100%; justify-content: space-between; }
  .menubar-left { flex-wrap: wrap; }
  .desktop-stage { inset: 98px 12px calc(var(--dock-h) + 170px) 12px; }
  .desktop-icons-rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    padding-right: 0;
  }
  .desktop-caption { position: static; margin-bottom: 18px; max-width: none; }
  .dock-wrap { position: static; padding: 18px 0 0; }
  .window-host { position: fixed; top: 112px; left: 12px; right: 12px; bottom: calc(var(--dock-h) + 22px); margin-top: 0; }
  .window-grid.two,
  .window-grid.three,
  .wallpaper-grid,
  .form-grid.two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* RORA Wallpaper App — v2.3 */
.wallpaper-editor {
  display: grid;
  gap: 16px;
}
.wallpaper-live-preview {
  position: relative;
  height: 192px;
  overflow: hidden;
  border-radius: 22px;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 16px 38px rgba(0,0,0,.22);
}
.wallpaper-live-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5,7,15,.48), rgba(5,7,15,0) 52%);
}
.wallpaper-preview-label {
  position: absolute;
  z-index: 1;
  left: 16px;
  bottom: 14px;
  display: grid;
  gap: 4px;
}
.wallpaper-preview-label strong { font-size: 1.04rem; }
.wallpaper-preview-label span { color: rgba(246,247,251,.7); font-size: .84rem; }
.wallpaper-option .wallpaper-swatch {
  height: 96px;
  background-position: center;
  background-size: cover;
}
.wallpaper-option .wallpaper-meta {
  align-items: flex-start;
}
.wallpaper-option .wallpaper-meta div {
  display: grid;
  min-width: 0;
  gap: 5px;
}
.wallpaper-option .wallpaper-meta small {
  color: var(--text-muted);
  line-height: 1.35;
  font-size: .78rem;
}
.custom-wallpaper-panel,
.wallpaper-options {
  display: grid;
  gap: 12px;
}
.custom-wallpaper-panel h4 { margin: 0; }
.custom-wallpaper-panel p { margin: 0; color: var(--text-muted); line-height: 1.52; }
.wallpaper-status {
  min-height: 20px;
  margin: 0;
  color: var(--text-muted);
}
.wallpaper-status.checking { color: #83dcff; }
.wallpaper-status.error { color: #ff9ab2; }
.setting-select-row {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
}
.setting-select-row label { color: var(--text-soft); font-weight: 700; }
.setting-select-row select { min-height: 48px; }
body[data-appearance="light"] {
  --surface: rgba(255,255,255,.46);
  --surface-strong: rgba(255,255,255,.68);
  --line: rgba(255,255,255,.32);
  --text: #14203c;
  --text-soft: rgba(20,32,60,.76);
  --text-muted: rgba(20,32,60,.58);
}
body[data-appearance="light"] .menubar,
body[data-appearance="light"] .dock,
body[data-appearance="light"] .app-window {
  color: #14203c;
}
body[data-appearance="light"] .shortcut-label,
body[data-appearance="light"] .desktop-caption-card {
  color: #fff;
}
body[data-wallpaper="rora-neon-aurora"] .wallpaper-layer { background-image: url('/assets/wallpapers/rora-neon-aurora.svg'); }
body[data-wallpaper="rora-future-sunset"] .wallpaper-layer { background-image: url('/assets/wallpapers/rora-future-sunset.svg'); }
body[data-wallpaper="rora-deep-stars"] .wallpaper-layer { background-image: url('/assets/wallpapers/rora-deep-stars.svg'); }
body[data-wallpaper="rora-black-glass"] .wallpaper-layer { background-image: url('/assets/wallpapers/rora-black-glass.svg'); }

/* RORA Radio App — v2.4 */
.radio-app {
  display: grid;
  gap: 16px;
  min-height: 100%;
}
.radio-now-playing {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(140px, .7fr) auto minmax(170px, .82fr) auto;
  align-items: center;
  gap: 16px;
  background: linear-gradient(120deg, rgba(116,92,255,.22), rgba(68,177,255,.14), rgba(255,128,190,.08));
}
.now-playing-kicker {
  color: #94dbff;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 800;
}
.now-playing-copy h4 {
  margin: 7px 0 3px;
  font-size: 1.3rem;
}
.now-playing-copy p {
  margin: 0;
  color: var(--text-muted);
}
.radio-visualizer {
  min-height: 52px;
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 4px;
}
.radio-visualizer span {
  width: 5px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #6de8ff, #9078ff);
  opacity: .55;
  transform-origin: bottom;
}
.radio-visualizer.is-playing span {
  opacity: 1;
  animation: radioBeat .78s ease-in-out infinite alternate;
}
.radio-visualizer.is-playing span:nth-child(3n) { animation-delay: .12s; }
.radio-visualizer.is-playing span:nth-child(3n + 1) { animation-delay: .24s; }
.radio-transport {
  display: flex;
  gap: 8px;
}
.transport-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 800;
}
.transport-button:first-child {
  background: var(--gradient-main);
  color: #09122d;
}
.transport-button .app-icon-svg svg {
  width: 25px;
  height: 25px;
}
.volume-control {
  display: grid;
  grid-template-columns: auto minmax(84px, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: var(--text-soft);
  font-size: .84rem;
  font-weight: 700;
}
.volume-control input {
  accent-color: #72c8ff;
}
.radio-layout {
  display: grid;
  grid-template-columns: minmax(350px, 1.2fr) minmax(290px, .78fr);
  gap: 14px;
  min-height: 0;
}
.radio-library, .radio-sidebar {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}
.radio-station-list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding-right: 2px;
}
.station-card {
  padding: 13px 14px;
}
.station-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 9px;
}
.station-card-head h4 { margin-bottom: 4px; font-size: .95rem; }
.station-card-head p { font-size: .78rem; }
.station-tag {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
}
.station-tag.ready {
  color: #72e8ae;
  background: rgba(76,223,153,.13);
}
.station-tag.placeholder {
  color: #ffd887;
  background: rgba(255,202,94,.12);
}
.station-actions { margin-top: 9px; gap: 7px; }
.station-button {
  min-height: 38px;
  padding: 7px 11px;
  font-size: .82rem;
  border-radius: 12px;
}
.station-button.primary { background: rgba(111,154,255,.2); color: #daf0ff; }
.station-button.active { background: rgba(105,219,255,.2); border-color: rgba(105,219,255,.32); }
.station-button.danger { color: #ffb4c6; }
.station-button:disabled { opacity: .4; cursor: not-allowed; }
.radio-add-panel {
  display: grid;
  gap: 10px;
}
.radio-add-panel h4, .parcel-radio-note h4 { margin: 0; }
.radio-add-panel p, .parcel-radio-note p { margin: 0; font-size: .84rem; }
.radio-add-panel .inline-input { min-height: 46px; padding: 10px 12px; }
.radio-status {
  margin: 0;
  min-height: 20px;
  color: #8ddaff;
  font-size: .82rem;
}
.radio-status.error { color: #ff99b4; }
.parcel-radio-note code {
  color: #9adaff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.radio-shortcut .shortcut-icon {
  background: linear-gradient(135deg, #7b68ff, #5fb8ff, #6fe8d0);
}
@keyframes radioBeat {
  from { height: 9px; transform: scaleY(.72); }
  to { height: 46px; transform: scaleY(1); }
}
.performance-mode .radio-visualizer.is-playing span { animation: none; height: 16px; }
@media (max-width: 980px) {
  .radio-now-playing { grid-template-columns: 1fr 1fr; }
  .radio-layout { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .radio-visualizer.is-playing span { animation: none; height: 16px; }
}

.video-sync-traffic-note { margin: 0; color: var(--text-muted); line-height: 1.5; }

/* RORA Watch Party v3.1 — theater-first room interface, with no player overlay */
.video-party-app, .watch-party-app { display: grid; gap: 14px; min-height: 100%; }
.watch-party-header {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 4px 2px 6px;
}
.watch-party-brand h4 { margin: 6px 0 4px; font-size: 1.38rem; letter-spacing: -.02em; }
.watch-party-brand p { margin: 0; color: var(--text-muted); }
.watch-party-status { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.status-pill.live { color: #c6ffe3; background: rgba(48, 221, 147, .12); border-color: rgba(48, 221, 147, .24); }
.watch-party-layout {
  display: grid; grid-template-columns: minmax(480px, 1.62fr) minmax(285px, .72fr); gap: 14px; min-height: 0;
}
.watch-party-theater, .watch-party-sidebar { display: grid; align-content: start; gap: 12px; min-height: 0; }
.video-stage-frame {
  padding: 7px; border-radius: 24px;
  background: linear-gradient(130deg, rgba(132, 104, 255, .28), rgba(64, 208, 255, .12), rgba(255,255,255,.04));
  border: 1px solid rgba(144, 186, 255, .18);
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
}
.video-stage {
  aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #02040d;
  border: 1px solid rgba(255,255,255,.06); display: grid; place-items: center;
}
.video-placeholder, .video-loading { display: grid; gap: 11px; justify-items: center; color: var(--text-muted); text-align: center; padding: 28px; }
.video-placeholder span { font-size: 3rem; color: rgba(168,205,255,.72); }
.video-placeholder p { margin: 0; }
.video-party-player { width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.watch-control-deck { padding: 12px 15px; }
.video-now-playing { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.video-now-playing h4 { margin: 5px 0 3px; font-size: 1.08rem; }
.watch-playback-status { margin: 0; color: var(--text-muted); font-size: .83rem; }
.video-transport { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.watch-sync-details {
  border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035);
  padding: 9px 12px; color: var(--text-muted); font-size: .82rem;
}
.watch-sync-details summary { cursor: pointer; color: rgba(220,233,255,.84); font-weight: 650; }
.watch-sync-details p { margin: 9px 0 2px; }
.video-room-card, .video-load-panel, .playlist-panel, .suggestions-panel, .viewer-note-card { display: grid; gap: 10px; }
.video-room-card h4, .video-load-panel h4, .playlist-panel h4, .suggestions-panel h4, .viewer-note-card h4 { margin: 0; }
.room-dot { width: 9px; height: 9px; border-radius: 50%; background: #4fe3a0; box-shadow: 0 0 10px rgba(79,227,160,.65); }
.room-name {
  margin: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #a3d9ff; font-size: .82rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.video-input-status { margin: 0; min-height: 18px; color: #8ddaff; font-size: .83rem; }
.video-input-status.error { color: #ff99b4; }
.video-list { display: grid; gap: 8px; max-height: 260px; overflow: auto; }
.video-list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px;
  border-radius: 13px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
}
.video-list-item.active { border-color: rgba(95,207,255,.38); background: rgba(74,145,255,.13); }
.video-list-item strong { display: block; font-size: .88rem; }
.video-list-item small { color: var(--text-muted); }
.video-list-item .inline-actions.compact { gap: 5px; margin-top: 0; }
.video-list-item .chip-button { min-height: 34px; padding: 6px 9px; border-radius: 10px; font-size: .78rem; }
.video-list-item .chip-button.danger { color: #ffb4c6; }
.app-window.is-cinema[data-app-window="video"] .window-body { padding: 10px; }
.app-window.is-cinema[data-app-window="video"] .watch-party-header,
.app-window.is-cinema[data-app-window="video"] .watch-party-sidebar,
.app-window.is-cinema[data-app-window="video"] .watch-sync-details { display: none; }
.app-window.is-cinema[data-app-window="video"] .watch-party-layout { grid-template-columns: 1fr; }
.app-window.is-cinema[data-app-window="video"] .video-stage { min-height: calc(100vh - 180px); aspect-ratio: auto; }
@media (max-width: 980px) {
  .watch-party-layout { grid-template-columns: 1fr; }
  .watch-party-header, .video-now-playing { align-items: flex-start; flex-direction: column; }
  .watch-party-status { justify-content: flex-start; }
}

/* Friends App — owner-bound local demo */
.friends-app { display: grid; gap: 14px; }
.friend-owner-profile { display: grid; gap: 14px; }
.friend-profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.friend-avatar {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  letter-spacing: .03em;
  background: linear-gradient(135deg, #7e6bff, #63d5ff);
  border: 1px solid rgba(255,255,255,.18);
  background-size: cover;
  background-position: center;
}
.friend-owner-profile .friend-avatar { width: 62px; height: 62px; border-radius: 20px; font-size: 1.18rem; }
.owner-avatar.has-photo { background-size: cover; background-position: center; color: transparent; }
.friend-profile-copy h4 { margin: 3px 0 4px; font-size: 1.2rem; }
.friend-profile-copy p { margin: 0; color: var(--text-muted); }
.friends-kicker { color: #9fc9ff; font-size: .72rem; letter-spacing: .16em; font-weight: 750; }
.friend-activity {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #cbffe5;
  background: rgba(68, 224, 153, .15);
  border: 1px solid rgba(68, 224, 153, .25);
  font-size: .82rem;
  font-weight: 700;
}
.friend-activity.away { color: #fff0b0; background: rgba(255, 201, 88, .15); border-color: rgba(255,201,88,.25); }
.friend-activity.busy { color: #ffbecd; background: rgba(255,109,145,.14); border-color: rgba(255,109,145,.28); }
.friend-activity.offline { color: var(--text-muted); background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }
.friend-profile-editor { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); display: grid; gap: 10px; }
.friends-layout { display: grid; grid-template-columns: minmax(400px, 1.28fr) minmax(275px, .8fr); gap: 14px; min-height: 0; }
.friends-main, .friends-side { display: grid; align-content: start; gap: 12px; min-height: 0; }
.friend-add-panel, .friend-list-panel, .friend-request-panel, .blocked-panel { display: grid; gap: 12px; }
.friend-list { display: grid; gap: 9px; }
.friend-row {
  min-height: 62px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.07);
}
.friend-row.request { background: rgba(111,121,255,.09); }
.friend-row.blocked { opacity: .78; }
.friend-row-copy { min-width: 0; flex: 1; }
.friend-row-copy strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-row-copy small { display: block; margin-top: 3px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-row-actions { display: flex; gap: 6px; align-items: center; }
.friend-row-actions.stacked { flex-direction: column; align-items: stretch; }
.friend-row-actions .chip-button { min-height: 34px; padding: 6px 9px; border-radius: 11px; font-size: .78rem; }
.friend-row-actions .chip-button.active { color: #ffe187; border-color: rgba(255,225,135,.3); }
.friend-row-actions .chip-button.danger { color: #ffb4c6; }
.friend-status { margin: 0; min-height: 18px; color: #8ddaff; font-size: .84rem; }
.friend-status.error { color: #ff99b4; }
.friends-demo-note p { margin-top: 8px; }
.friend-shortcut .shortcut-icon { background: linear-gradient(135deg, #8d72ff, #56c8ff); }
@media (max-width: 860px) {
  .friends-layout { grid-template-columns: 1fr; }
  .friend-profile-head { grid-template-columns: auto 1fr; }
  .friend-activity { grid-column: 2; }
}

/* RORA Watch Party shared-room indicators */
.video-sync-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.video-sync-row .video-sync-traffic-note {
  flex: 1 1 380px;
}


/* YouTube Watch Party restoration v3.2.2: branded app, clean theater UI */
.desktop-shortcut[data-shortcut="video"] .shortcut-icon,
.dock-button[data-dock="video"] .dock-badge {
  background: linear-gradient(135deg, #ff3d48, #d9001b);
  box-shadow: 0 11px 24px rgba(218, 0, 30, .32);
}
.desktop-shortcut[data-shortcut="video"] .app-icon-svg svg,
.dock-button[data-dock="video"] .app-icon-svg svg {
  fill: rgba(255,255,255,.98);
  stroke: none;
}
.desktop-shortcut[data-shortcut="video"] .youtube-play-cutout,
.dock-button[data-dock="video"] .youtube-play-cutout {
  fill: #e11028;
}
.youtube-kicker { color: #ff6572; }
.youtube-placeholder span {
  min-width: 66px;
  min-height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #ff3d48, #d9001b);
  box-shadow: 0 14px 34px rgba(218, 0, 30, .32);
}
.youtube-room-dot {
  background: #ff2035;
  box-shadow: 0 0 12px rgba(255, 30, 54, .8);
}
.youtube-primary {
  background: linear-gradient(135deg, #ff3d48, #d9001b);
  border-color: rgba(255, 74, 89, .42);
}


/* v3.2.3 Seamless inworld mode:
   a changed MOAP URL is a shared view update, never a visual reboot. */
html.inworld-direct-render .boot-screen {
  display: none !important;
}
html.inworld-direct-render .app-window,
html.inworld-direct-render .desktop-app,
html.inworld-direct-render .overlay-shell {
  animation-duration: 0s !important;
  transition-duration: 0s !important;
}


/* v3.2.4 Classic YouTube Room: former player-left / remote-right experience */
.classic-youtube-room { height: 100%; min-height: 100%; }
.classic-watch-layout {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(450px, 1fr) 310px;
  gap: 14px;
}
.classic-video-panel, .classic-remote-panel {
  border-radius: 24px;
  background: rgba(8, 12, 25, .42);
  border: 1px solid rgba(255,255,255,.11);
  overflow: hidden;
}
.classic-video-panel { padding: 12px; min-height: 0; display: flex; flex-direction: column; gap: 11px; }
.classic-cinema-toolbar { height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.classic-back-button {
  height: 39px; padding: 0 13px; color: var(--text-main); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; background: rgba(255,255,255,.075); font-weight: 650;
}
.classic-live-badge {
  height: 36px; display: inline-flex; gap: 7px; align-items: center; padding: 0 12px;
  border-radius: 999px; color: rgba(239,245,255,.86); background: rgba(255,255,255,.065);
  font-size: .76rem; font-weight: 650;
}
.classic-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #44ee96; box-shadow: 0 0 11px #44ee96; }
.classic-video-frame { flex: 1; min-height: 330px; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: auto; }
.classic-under-video { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 4px 6px 0; }
.classic-under-video h4 { margin: 4px 0 3px; font-size: 1rem; }
.classic-label { color: var(--text-muted); font-size: .64rem; font-weight: 760; letter-spacing: .13em; }
.classic-playback-status { margin: 0; color: var(--text-muted); font-size: .76rem; }
.classic-current-time { text-align: right; flex: none; }
.classic-current-time strong { display: block; margin-top: 5px; font-variant-numeric: tabular-nums; }
.classic-remote-panel { padding: 15px; display: flex; min-height: 0; flex-direction: column; gap: 11px; }
.classic-remote-title { display: flex; align-items: center; gap: 11px; }
.classic-remote-title h2 { margin: 2px 0 4px; font-size: 1.27rem; letter-spacing: -.04em; }
.classic-remote-title p { margin: 0; color: var(--text-muted); font-size: .76rem; }
.classic-room-kicker { display: block; color: #ff6675; }
.classic-youtube-logo {
  width: 45px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, #ff3d48, #c90221);
  box-shadow: 0 12px 27px rgba(211,0,28,.28); font-size: .95rem;
}
.classic-room-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.classic-host { margin: -3px 0 2px; color: var(--text-muted); font-size: .76rem; }
.classic-input-label { display: grid; gap: 7px; color: var(--text-muted); font-size: .67rem; font-weight: 730; letter-spacing: .11em; text-transform: uppercase; }
.classic-input {
  width: 100%; min-height: 43px; padding: 0 11px; border-radius: 12px; color: var(--text-main);
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.075); outline: none; user-select: text;
}
.classic-title-input { min-height: 38px; }
.classic-watch-button {
  min-height: 43px; border: 1px solid rgba(255,255,255,.11); border-radius: 13px; color: #fff;
  background: rgba(255,255,255,.09); font-weight: 690;
}
.classic-watch-button.red { background: linear-gradient(135deg, #ff3d55, #bd062c); border-color: rgba(255,82,99,.35); }
.classic-watch-button.sync { background: linear-gradient(135deg, #6d69ff, #47dbc8); border-color: rgba(91,196,215,.28); }
.classic-watch-button.full { width: 100%; }
.classic-transport-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.classic-suggestion-panel { display: grid; gap: 9px; }
.classic-queue-panel { border-radius: 14px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.035); overflow: hidden; }
.classic-queue-panel summary { cursor: pointer; display: flex; justify-content: space-between; padding: 11px 12px; color: rgba(233,242,255,.83); font-size: .78rem; font-weight: 680; }
.classic-queue-panel .video-list { padding: 0 9px 9px; max-height: 128px; }
.classic-viewer-notice, .classic-privacy-note {
  margin: 0; padding: 10px; border-radius: 12px; color: var(--text-muted);
  background: rgba(255,255,255,.05); font-size: .72rem; line-height: 1.42;
}
.classic-privacy-note { margin-top: auto; }
.app-window.is-cinema[data-app-window="video"] .classic-remote-panel,
.app-window.is-cinema[data-app-window="video"] .classic-cinema-toolbar,
.app-window.is-cinema[data-app-window="video"] .classic-under-video { display: none; }
.app-window.is-cinema[data-app-window="video"] .classic-watch-layout { display: block; }
.app-window.is-cinema[data-app-window="video"] .classic-video-panel { height: 100%; padding: 0; border: none; border-radius: 0; }
.app-window.is-cinema[data-app-window="video"] .classic-video-frame { height: 100%; min-height: 100%; border-radius: 0; }
@media (max-width: 900px) {
  .classic-watch-layout { grid-template-columns: 1fr; overflow: auto; }
  .classic-video-frame { min-height: 300px; }
}


/* v3.4.0 Atomic Inworld YouTube Room — isolated from desktop rerenders */
html.atomic-youtube-mode,
html.atomic-youtube-mode body {
  overflow: hidden;
  background: #080b1d;
}
html.atomic-youtube-mode .boot-screen { display: none !important; }
.atomic-party {
  height: 100vh;
  padding: clamp(12px, 2.2vw, 26px);
  color: var(--text-main);
  background:
    radial-gradient(circle at 22% 9%, rgba(78, 70, 193, .35), transparent 36%),
    radial-gradient(circle at 82% 17%, rgba(232, 109, 157, .25), transparent 34%),
    linear-gradient(140deg, #141536 0%, #081124 52%, #110d27 100%);
}
.atomic-room {
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.atomic-room-header {
  height: 74px;
  padding: 13px 19px;
  border-radius: 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.atomic-room-header h1 { margin: 0 0 6px; font-size: 1.12rem; }
.atomic-room-header p { margin: 0; color: var(--text-muted); font-size: .76rem; }
.atomic-owner-pill { flex: none; }
.atomic-grid {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(480px, 1fr) 345px;
  gap: 14px;
}
.atomic-player-card {
  min-height: 0;
  padding: 14px;
  border-radius: 23px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.atomic-player-toolbar {
  height: 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
}
.atomic-stage {
  min-height: 0;
  flex: 1;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}
#atomicYoutubePlayer,
#atomicYoutubePlayer iframe {
  display: block;
  width: 100%;
  height: 100%;
}
#atomicYoutubePlayer iframe {
  pointer-events: none;
}
.atomic-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  color: rgba(232,238,250,.72);
}
.atomic-placeholder span {
  display: grid;
  place-items: center;
  width: 65px;
  height: 49px;
  border-radius: 15px;
  background: linear-gradient(135deg, #ff334e, #be0026);
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 16px 34px rgba(215, 0, 32, .31);
}
.atomic-placeholder p { margin: 0; }
.atomic-now {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.atomic-now h2 { margin: 5px 0; font-size: .98rem; }
.atomic-now p { margin: 0; color: var(--text-muted); font-size: .77rem; }
.atomic-position { text-align: right; }
.atomic-position strong {
  display: block;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}
.atomic-remote {
  min-height: 0;
  padding: 17px;
  border-radius: 23px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.atomic-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.atomic-title h2 {
  margin: 3px 0 4px;
  font-size: 1.34rem;
  letter-spacing: -.04em;
}
.atomic-title p {
  margin: 0;
  color: var(--text-muted);
  font-size: .72rem;
  line-height: 1.4;
}
.atomic-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.atomic-party.cinema .atomic-room-header,
.atomic-party.cinema .atomic-remote,
.atomic-party.cinema .atomic-player-toolbar,
.atomic-party.cinema .atomic-now {
  display: none;
}
.atomic-party.cinema .atomic-grid { display: block; }
.atomic-party.cinema .atomic-player-card {
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  background: #000;
}
.atomic-party.cinema .atomic-stage {
  height: 100%;
  border-radius: 0;
}
@media (max-width: 920px) {
  .atomic-grid { grid-template-columns: 1fr; overflow: auto; }
  .atomic-stage { min-height: 360px; }
}


/* v3.4.1 Stretch pass — presentation only; Atomic Player/LSL behavior unchanged */
html.atomic-youtube-mode .atomic-party {
  padding: 5px 7px 7px;
}
html.atomic-youtube-mode .atomic-room {
  max-width: none;
  width: 100%;
  gap: 7px;
}
html.atomic-youtube-mode .atomic-room-header {
  height: 55px;
  min-height: 55px;
  padding: 7px 15px;
  border-radius: 15px;
}
html.atomic-youtube-mode .atomic-room-header h1 {
  margin-bottom: 2px;
  font-size: 1rem;
}
html.atomic-youtube-mode .atomic-room-header p {
  font-size: .68rem;
}
html.atomic-youtube-mode .atomic-grid {
  grid-template-columns: minmax(0, 1fr) clamp(252px, 20.3vw, 296px);
  gap: 8px;
}
html.atomic-youtube-mode .atomic-player-card {
  padding: 8px;
  border-radius: 17px;
  gap: 7px;
}
html.atomic-youtube-mode .atomic-player-toolbar {
  height: 38px;
  min-height: 38px;
}
html.atomic-youtube-mode .atomic-player-toolbar .classic-back-button {
  height: 34px;
  padding: 0 10px;
}
html.atomic-youtube-mode .atomic-player-toolbar .classic-live-badge {
  height: 32px;
  padding: 0 10px;
}
html.atomic-youtube-mode .atomic-stage {
  border-radius: 12px;
}
html.atomic-youtube-mode .atomic-now {
  min-height: 49px;
  padding: 0 3px;
}
html.atomic-youtube-mode .atomic-now h2 {
  margin: 3px 0;
  font-size: .9rem;
}
html.atomic-youtube-mode .atomic-now p {
  font-size: .69rem;
}
html.atomic-youtube-mode .atomic-remote {
  padding: 10px;
  border-radius: 17px;
  gap: 8px;
}
html.atomic-youtube-mode .atomic-title {
  gap: 8px;
}
html.atomic-youtube-mode .atomic-title h2 {
  font-size: 1.08rem;
  margin: 2px 0;
}
html.atomic-youtube-mode .atomic-title p {
  font-size: .62rem;
}
html.atomic-youtube-mode .classic-youtube-logo {
  width: 36px;
  height: 29px;
  border-radius: 9px;
}
html.atomic-youtube-mode .atomic-badges {
  gap: 5px;
}
html.atomic-youtube-mode .atomic-badges .status-pill,
html.atomic-youtube-mode .atomic-owner-pill {
  padding: 7px 10px;
  font-size: .68rem;
}
html.atomic-youtube-mode .classic-host {
  font-size: .66rem;
  margin: -1px 0 0;
}
html.atomic-youtube-mode .classic-input-label {
  gap: 4px;
  font-size: .6rem;
}
html.atomic-youtube-mode .classic-input {
  min-height: 37px;
  padding: 0 9px;
  font-size: .73rem;
}
html.atomic-youtube-mode .classic-title-input {
  min-height: 35px;
}
html.atomic-youtube-mode .classic-watch-button {
  min-height: 39px;
  font-size: .75rem;
}
html.atomic-youtube-mode .classic-transport-grid {
  gap: 5px;
}
html.atomic-youtube-mode .video-input-status {
  font-size: .63rem;
  line-height: 1.35;
  margin: 1px 0;
}
html.atomic-youtube-mode .classic-privacy-note {
  padding: 7px;
  font-size: .61rem;
  line-height: 1.32;
}
html.atomic-youtube-mode .atomic-placeholder {
  gap: 14px;
}
html.atomic-youtube-mode .atomic-placeholder span {
  width: 59px;
  height: 43px;
}
@media (max-width: 920px) {
  html.atomic-youtube-mode .atomic-party {
    padding: 5px;
  }
  html.atomic-youtube-mode .atomic-grid {
    grid-template-columns: 1fr;
  }
}


/* v3.4.2 Shared controls fix: owner can use native controls; LSL keeps guests view-only */
html.atomic-youtube-mode #atomicYoutubePlayer iframe {
  pointer-events: auto;
}
.atomic-seek-controls {
  min-height: 37px;
  display: grid;
  grid-template-columns: 53px minmax(0, 1fr) 48px 53px;
  align-items: center;
  gap: 7px;
  padding: 0 3px;
}
.atomic-seek-controls.disabled {
  opacity: .45;
}
.atomic-skip-button {
  height: 33px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.075);
  color: var(--text-main);
  font-size: .7rem;
  font-weight: 700;
}
.atomic-seek-slider {
  width: 100%;
  accent-color: #ef2744;
  cursor: pointer;
}
.atomic-seek-slider:disabled {
  cursor: not-allowed;
}
.atomic-duration {
  color: var(--text-muted);
  font-size: .7rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
html.atomic-youtube-mode .atomic-now {
  min-height: 45px;
}
.atomic-party.cinema .atomic-seek-controls {
  position: fixed;
  left: 3vw;
  right: 3vw;
  bottom: 14px;
  z-index: 4;
  padding: 7px;
  border-radius: 13px;
  background: rgba(10, 12, 28, .74);
  backdrop-filter: blur(10px);
}


/* v3.6.0 — direct owner UI; keep only the native YouTube timeline visible */
.atomic-seek-controls { display: none !important; }
.atomic-native-seek-note {
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: rgba(199, 216, 235, .76);
  background: rgba(255,255,255,.035);
  font-size: .67rem;
}


/* v3.6.1 — Owner escape hatch remains visible in Cinema Mode. */
.atomic-cinema-exit {
  display: none;
}
.atomic-party.cinema .atomic-cinema-exit {
  position: fixed;
  z-index: 50;
  top: 15px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(120, 233, 218, .32);
  border-radius: 12px;
  background: rgba(10, 14, 33, .82);
  color: rgba(236, 249, 250, .96);
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
  cursor: pointer;
}
.atomic-party.cinema .atomic-cinema-exit:hover {
  background: rgba(31, 56, 75, .9);
}


/* v3.6.2 — native YouTube fullscreen is intentionally disabled */
.atomic-native-seek-note {
  letter-spacing: .01em;
}


/* v3.7.0 — remove right icon rail, add cute widgets, more realistic app icons */
.desktop-stage {
  display: block;
}
.desktop-widget-board {
  position: absolute;
  top: 4px;
  left: 0;
  width: min(420px, 32vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.desktop-widget {
  padding: 16px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(23,32,63,.74), rgba(16,21,48,.58));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 44px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
.widget-kicker {
  margin: 0 0 8px;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(209,225,252,.58);
}
.widget-copy {
  margin: 0;
  font-size: .82rem;
  line-height: 1.5;
  color: rgba(225,236,255,.82);
}
.widget-hello h2,
.widget-media h3 {
  margin: 0 0 6px;
  font-size: 1.32rem;
  font-weight: 700;
}
.widget-clock-time {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.widget-clock-date {
  margin-top: 4px;
  color: rgba(225,236,255,.84);
}
.widget-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(111,152,255,.28), rgba(126,236,216,.22));
  border: 1px solid rgba(131,207,255,.22);
  color: rgba(240,247,255,.96);
  font-weight: 700;
}
.desktop-icons-rail {
  position: absolute;
  top: 196px;
  left: 14px;
  right: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(84px, 92px));
  gap: 14px 12px;
  align-content: start;
  justify-items: start;
  padding-right: 0;
  max-height: calc(100% - 240px);
}
.desktop-shortcut {
  width: 92px;
  gap: 7px;
}
.shortcut-icon,
.dock-badge {
  position: relative;
  overflow: hidden;
}
.shortcut-icon::before,
.dock-badge::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,.06) 42%, rgba(0,0,0,.06));
  pointer-events: none;
}
.shortcut-icon svg,
.dock-badge svg {
  position: relative;
  z-index: 1;
}
.dock-button {
  width: 78px;
}
.dock-badge {
  width: 54px; height: 54px; border-radius: 18px;
  box-shadow: 0 12px 22px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.42);
}
.shortcut-icon {
  width: 60px; height: 60px; border-radius: 18px;
  box-shadow: 0 14px 24px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.42);
}
.dock-button[data-app="home"] .dock-badge { background: linear-gradient(180deg, #b8d0ff, #7bb6ff); color:#16315f; }
.dock-button[data-app="radio"] .dock-badge,
.desktop-shortcut[data-app="radio"] .shortcut-icon { background: linear-gradient(180deg, #b9f0ff, #69d7ff); color:#0f365f; }
.dock-button[data-app="video"] .dock-badge,
.desktop-shortcut[data-app="video"] .shortcut-icon { background: linear-gradient(180deg, #ff6779, #dc2337); color:#fff; }
.dock-button[data-app="friends"] .dock-badge,
.desktop-shortcut[data-app="friends"] .shortcut-icon { background: linear-gradient(180deg, #ffffff, #dbdde2); color:#8b8f97; }
.dock-button[data-app="messenger"] .dock-badge { background: linear-gradient(180deg, #67ea80, #34c759); color:#ffffff; }
.dock-button[data-app="wallpaper"] .dock-badge { background: linear-gradient(180deg, #ffd4a0, #ff9f6e); color:#ffffff; }
.dock-button[data-app="links"] .dock-badge,
.desktop-shortcut[data-app="links"] .shortcut-icon { background: linear-gradient(180deg, #aee2ff, #4d8dff); color:#ffffff; }
.dock-button[data-app="photos"] .dock-badge,
.desktop-shortcut[data-app="photos"] .shortcut-icon { background: linear-gradient(180deg, #ffffff, #f1f3f7); color:#243041; }
.dock-button[data-app="settings"] .dock-badge,
.desktop-shortcut[data-app="settings"] .shortcut-icon { background: linear-gradient(180deg, #eff2f6, #bcc7d6); color:#728093; }
.dock-button[data-app="lock"] .dock-badge { background: linear-gradient(180deg, #ffd2b8, #ff9f79); color:#1b1b1d; }
.desktop-shortcut[data-app="trash"] .shortcut-icon { background: linear-gradient(180deg, #ffc2db, #f293c2); color:#5f1a44; }

@media (max-width: 1100px) {
  .desktop-widget-board {
    width: min(360px, 38vw);
  }
}


/* v3.7.1 — more realistic / brand-like app glyphs */
.app-icon-svg {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
}
.app-icon-svg svg {
  width: 28px;
  height: 28px;
  display: block;
}
.dock-badge .app-icon-svg,
.shortcut-icon .app-icon-svg {
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.16));
}


/* v3.7.2 — iOS-like icon polish */
.dock-badge,
.shortcut-icon {
  background-image: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.02) 45%, rgba(0,0,0,.06));
}
.dock-badge::after,
.shortcut-icon::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: 5px; height: 34%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0));
  pointer-events: none;
  opacity: .8;
}
.app-icon-svg {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
}
.app-icon-svg svg {
  width: 28px;
  height: 28px;
  display: block;
}
.dock-badge .app-icon-svg,
.shortcut-icon .app-icon-svg {
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.16));
}

/* v3.7.4 — Mac-inspired lockscreen */
.overlay-shell.mac-lockscreen {
  padding: 0;
  overflow: hidden;
  background: radial-gradient(circle at 20% 22%, rgba(255,218,89,.92) 0%, rgba(255,192,71,.55) 16%, rgba(255,142,50,0) 34%),
              radial-gradient(circle at 84% 18%, rgba(45,93,188,.85) 0%, rgba(45,93,188,0) 22%),
              linear-gradient(135deg, #f8b027 0%, #f07e1d 28%, #ef5e1e 58%, #d74817 78%, #214f95 100%);
}
.mac-lockscreen #lockWallpaperLayer {
  opacity: .16;
  filter: saturate(.6) blur(1px);
}
.lockscreen-overlay-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(255,255,255,.35), rgba(255,255,255,0) 24%),
    radial-gradient(circle at 68% 72%, rgba(255,125,60,.2), rgba(255,125,60,0) 34%),
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0) 30%);
  pointer-events: none;
}
.lock-topbar {
  position: absolute;
  top: 16px; left: 24px; right: 24px;
  z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  color: rgba(255,255,255,.92);
  font-size: .82rem; font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,.28);
}
.lock-topbar-right { display:flex; align-items:center; gap:8px; }
#lockMiniClock { font-variant-numeric: tabular-nums; }
.mac-lockscreen .lock-shell {
  min-height: 100%;
  place-items: center;
  padding: 84px 24px 34px;
}
.mac-lock-panel {
  width: min(540px, calc(100vw - 44px));
  padding: 18px 28px 22px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  gap: 12px;
}
.mac-lock-panel .lock-brand-row {
  justify-content: center;
  gap: 10px;
  opacity: .96;
}
.mac-lock-panel .brand-mark { width: 30px; height: 30px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.22)); }
.mac-lock-panel .lock-brand-row h1 { font-size: 1rem; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.2); }
.mac-lock-panel .lock-brand-row p { letter-spacing: .11em; font-size: .68rem; color: rgba(255,255,255,.88); }
.mac-avatar-wrap { margin-top: 10px; }
.mac-lockscreen .owner-avatar.xl {
  width: 92px; height: 92px; border-radius: 999px;
  border: 4px solid rgba(255,255,255,.78);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(228,231,238,.92));
  color: #43281c; box-shadow: 0 18px 40px rgba(0,0,0,.2);
}
.mac-lockscreen .owner-avatar.xl.has-photo { background-size: cover; background-position: center; color: transparent; }
.mac-lock-time-block { margin-top: 10px; }
.mac-lockscreen .lock-clock { font-size: clamp(2.7rem, 6.7vw, 4rem); font-weight: 600; color: white; text-shadow: 0 3px 18px rgba(0,0,0,.2); }
.mac-lockscreen .lock-date,
.mac-lockscreen .lock-helper,
.mac-lockscreen .lock-text { color: rgba(255,255,255,.92); text-shadow: 0 1px 6px rgba(0,0,0,.16); }
.mac-lockscreen .lock-lead { margin: 4px 0 0; color: #fff; font-size: 1.48rem; font-weight: 700; text-shadow: 0 2px 14px rgba(0,0,0,.2); }
.mac-lock-badges { margin-top: 4px; justify-content: center; }
.mac-lockscreen .status-pill { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.24); color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.mac-lockscreen .status-pill.subtle { background: rgba(0,0,0,.18); }
.mac-lockscreen .pin-form,
.mac-lockscreen .preview-quick-actions,
.mac-lockscreen #guestModeButton,
.mac-lockscreen .security-box,
.mac-lockscreen .lock-power-row { width: min(360px, 100%); margin-inline: auto; }
.mac-pin-form { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 24px; padding: 16px; backdrop-filter: blur(18px); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.mac-pin-form h2 { margin: 0 0 4px; color: #fff; font-size: 1.08rem; }
.mac-lockscreen .pin-form label { color: rgba(255,255,255,.88); }
.mac-lockscreen .pin-form input { border-radius: 999px; background: rgba(255,255,255,.92); color: #2a2730; border: 1px solid rgba(0,0,0,.06); text-align: center; font-size: 1rem; padding: 14px 18px; }
.mac-password-row { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.mac-password-row input { flex: 1; margin: 0; padding: 8px 4px; background: transparent !important; border: 0 !important; box-shadow: none !important; text-align: left !important; }
.mac-password-icon { color: #8a8a8a; font-size: 1rem; }
.mac-lockscreen .primary-action,
.mac-lockscreen .ghost-action,
.mac-lockscreen .secondary-action { border-radius: 999px; }
.mac-lockscreen .primary-action { background: rgba(255,255,255,.92); color: #81260f; border: 1px solid rgba(255,255,255,.5); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.mac-lockscreen .ghost-action,
.mac-lockscreen .secondary-action { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.mac-preview-actions { margin-top: 4px; }
.lock-power-row { display: flex; justify-content: center; gap: 16px; margin-top: 8px; }
.lock-power-button { width: 92px; display: grid; place-items: center; gap: 6px; padding: 10px 8px; border: 0; border-radius: 18px; background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(10px); box-shadow: 0 12px 24px rgba(0,0,0,.12); }
.lock-power-button span { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 1rem; }
.lock-power-button small { font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.mac-security-box { background: rgba(0,0,0,.16); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.92); }
.mac-lockscreen .pin-error { background: rgba(136,0,0,.22); color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; padding: 10px 12px; }
@media (max-width: 640px) {
  .lock-topbar { left: 16px; right: 16px; font-size: .74rem; }
  .mac-lock-panel { width: min(100%, calc(100vw - 28px)); padding-inline: 16px; }
  .lock-power-row { gap: 10px; }
  .lock-power-button { width: 84px; }
}

/* v3.7.5 — Blossom-inspired boot screen */
.blossom-boot-screen {
  background: linear-gradient(180deg, #a66a46 0%, #8f5a3c 100%);
  overflow: hidden;
}
.blossom-boot-screen .aurora,
.blossom-boot-screen .wordmark { display: none !important; }
.boot-desk-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 10%, rgba(255,255,255,.12), rgba(255,255,255,0) 16%),
    radial-gradient(circle at 75% 85%, rgba(0,0,0,.14), rgba(0,0,0,0) 30%);
  pointer-events: none;
}
.blossom-boot-card {
  width: min(700px, calc(100vw - 44px));
  padding: 22px 18px 14px;
  background: linear-gradient(180deg, #1e2229 0%, #9fa8b7 100%);
  border-radius: 28px 28px 18px 18px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 30px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.15);
}
.boot-screen-shell {
  position: relative;
  min-height: 360px;
  padding: 26px 30px 28px;
  border-radius: 20px 20px 14px 14px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.06), rgba(255,255,255,0) 22%),
    linear-gradient(180deg, #07090d 0%, #0c1017 42%, #050607 100%);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  overflow: hidden;
}
.boot-screen-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 18%, rgba(255,255,255,.02) 62%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.boot-camera-dot {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  box-shadow: 0 0 0 2px rgba(0,0,0,.28) inset;
}
.boot-logo-wrap {
  width: 102px;
  height: 102px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.boot-blossom-logo {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 20px rgba(239,77,154,.16));
}
.blossom-boot-screen .boot-progress.maclike {
  width: min(170px, 72%);
  height: 6px;
  margin-top: 4px;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.65);
}
.blossom-boot-screen .boot-progress.maclike span {
  background: linear-gradient(90deg, #ffffff 0%, #f2f2f2 100%);
  box-shadow: 0 0 10px rgba(255,255,255,.18);
}
.boot-meta-stack {
  margin-top: 18px;
  display: grid;
  gap: 8px;
  justify-items: center;
}
.blossom-boot-screen .kicker {
  margin: 0;
  color: rgba(255,255,255,.97);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.blossom-boot-screen .boot-subtitle,
.blossom-boot-screen .boot-device,
.blossom-boot-screen .boot-footer,
.blossom-boot-screen #bootOwnerText {
  color: rgba(255,255,255,.72);
}
.blossom-boot-screen .boot-owner-line {
  margin: 6px auto 0;
}
.blossom-boot-screen .status-pill.subtle {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.9);
}
.blossom-boot-screen .boot-footer {
  width: min(420px, 100%);
  margin-top: 6px;
  font-size: .9rem;
}
@media (max-width: 640px) {
  .blossom-boot-card { width: min(100%, calc(100vw - 24px)); padding: 14px 10px 10px; border-radius: 22px 22px 14px 14px; }
  .boot-screen-shell { min-height: 300px; padding: 24px 18px 24px; }
  .boot-logo-wrap { width: 84px; height: 84px; }
}


/* v3.7.6 — Clean Private Lock: hidden state nodes stay in the DOM, not on screen. */
.overlay-shell.mac-lockscreen {
  background: transparent !important;
}
.mac-lockscreen #lockWallpaperLayer {
  opacity: 1 !important;
  filter: none !important;
}
.mac-lockscreen .lockscreen-overlay-glow {
  background:
    linear-gradient(180deg, rgba(4, 8, 22, .15), rgba(4, 8, 22, .23) 48%, rgba(4, 8, 22, .34)),
    radial-gradient(circle at center, rgba(255,255,255,.06), rgba(255,255,255,0) 34%);
}

/* These elements still exist for state/control logic; the lock view is visually clean. */
.mac-lockscreen .lock-brand-row,
.mac-lockscreen .mac-lock-badges,
.mac-lockscreen .lock-helper,
.mac-lockscreen .mac-security-box,
.mac-lockscreen .mac-unlock-form h2,
.mac-lockscreen .mac-unlock-form > label {
  display: none !important;
}

.mac-lock-panel {
  padding-top: 0;
  gap: 16px;
}
.mac-lockscreen .lock-lead {
  margin-top: 4px;
}
.mac-lockscreen .lock-text {
  max-width: 420px;
  margin-inline: auto;
}
.mac-lockscreen .mac-pin-form {
  width: min(330px, 100%);
  padding: 0;
  margin-top: 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.mac-lockscreen .mac-password-row {
  min-height: 54px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.88);
  box-shadow: 0 16px 34px rgba(0,0,0,.14);
}
.mac-lockscreen .mac-unlock-button {
  margin-top: 12px;
  min-height: 52px;
}
.mac-lockscreen .lock-power-row {
  margin-top: 18px;
}

/* v3.7.7 — auto-PIN unlock, no visible Enter Password/Unlock button */
.mac-lockscreen .mac-unlock-form {
  width: min(330px, 100%);
}
.mac-lockscreen .mac-password-row-solo {
  justify-content: center;
}
.mac-lockscreen .mac-password-row-solo input {
  text-align: center !important;
  letter-spacing: .18em;
  font-weight: 700;
}
.mac-lockscreen .mac-password-row-solo .mac-password-icon {
  opacity: .6;
}
.mac-lockscreen .mac-unlock-button {
  display: none !important;
}


/* v3.7.8 — usable power actions + clean auto-PIN lock */
.power-screen {
  padding: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.08), rgba(255,255,255,0) 24%),
    linear-gradient(180deg, #050608 0%, #0b1019 52%, #030406 100%);
}
.power-screen[hidden] { display: none !important; }
.power-screen-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(76,120,255,.14), rgba(76,120,255,0) 36%);
  pointer-events: none;
}
.power-panel {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 44px));
  padding: 28px 26px 24px;
  border-radius: 30px;
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.power-glyph {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 36px rgba(0,0,0,.34);
}
.power-panel h2 {
  margin: 4px 0 0;
  font-size: clamp(1.55rem, 4vw, 2rem);
}
.power-panel p {
  margin: 0;
  color: rgba(246,247,251,.82);
  line-height: 1.55;
}
.power-wake-button {
  min-width: 180px;
  margin-top: 6px;
  border-radius: 999px;
}
.power-hint {
  font-size: .92rem;
  color: rgba(246,247,251,.65);
}
.power-screen[data-mode="shutdown"] .power-glyph {
  background: rgba(255,255,255,.04);
}


/* NoBootMenu Patch — nur sichtbaren Bootscreen deaktivieren. */
#bootScreen {
  display: none !important;
}


/* v3.8.2 — realistic colorful desktop icon refresh inspired by user reference */
.desktop-shortcut {
  width: 102px;
  gap: 9px;
}
.shortcut-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    0 18px 34px rgba(0,0,0,.24),
    inset 0 1.5px 0 rgba(255,255,255,.42),
    inset 0 -3px 6px rgba(0,0,0,.12);
  backdrop-filter: blur(6px);
}
.dock-button {
  width: 84px;
  gap: 7px;
}
.dock-badge {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    0 16px 30px rgba(0,0,0,.24),
    inset 0 1.5px 0 rgba(255,255,255,.42),
    inset 0 -3px 6px rgba(0,0,0,.12);
}
.shortcut-icon::before,
.dock-badge::before {
  inset: 2px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.04) 40%, rgba(0,0,0,.04));
}
.shortcut-icon::after,
.dock-badge::after {
  content: "";
  position: absolute;
  inset: 4px 6px auto 6px;
  height: 36%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0));
  opacity: .9;
  pointer-events: none;
}
.shortcut-label,
.dock-button .dock-label {
  color: rgba(255,255,255,.96);
  text-shadow: 0 2px 12px rgba(0,0,0,.38);
}
.shortcut-label {
  font-size: .86rem;
}
.dock-button .dock-label {
  font-size: .74rem;
}
.app-icon-svg {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.app-icon-svg svg {
  width: 37px;
  height: 37px;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.18));
}
.dock-badge .app-icon-svg svg {
  width: 34px;
  height: 34px;
}
.desktop-shortcut[data-app="home"] .shortcut-icon,
.dock-button[data-app="home"] .dock-badge {
  background: linear-gradient(180deg, #49a3ff 0%, #165edc 100%);
  color: #ffffff;
}
.desktop-shortcut[data-app="radio"] .shortcut-icon,
.dock-button[data-app="radio"] .dock-badge {
  background: linear-gradient(180deg, #ffb546 0%, #ff6b1c 100%);
  color: #fff4cb;
}
.desktop-shortcut[data-app="video"] .shortcut-icon,
.dock-button[data-app="video"] .dock-badge {
  background: linear-gradient(180deg, #ff4b3e 0%, #f11e16 100%);
  color: #ffffff;
  box-shadow:
    0 18px 34px rgba(129, 10, 10, .30),
    inset 0 1.5px 0 rgba(255,255,255,.35),
    inset 0 -3px 6px rgba(0,0,0,.14);
}
.desktop-shortcut[data-app="friends"] .shortcut-icon,
.dock-button[data-app="friends"] .dock-badge {
  background: linear-gradient(180deg, #2bc8d2 0%, #037a90 100%);
  color: #ffffff;
}
.desktop-shortcut[data-app="messenger"] .shortcut-icon,
.dock-button[data-app="messenger"] .dock-badge {
  background: linear-gradient(180deg, #83d744 0%, #4a991f 100%);
  color: #ffffff;
}
.desktop-shortcut[data-app="wallpaper"] .shortcut-icon,
.dock-button[data-app="wallpaper"] .dock-badge {
  background: linear-gradient(180deg, #b772ff 0%, #6c3ee4 100%);
  color: #ffffff;
}
.desktop-shortcut[data-app="links"] .shortcut-icon,
.dock-button[data-app="links"] .dock-badge {
  background: linear-gradient(180deg, #5ed8d2 0%, #2498a1 100%);
  color: #ffffff;
}
.desktop-shortcut[data-app="photos"] .shortcut-icon,
.dock-button[data-app="photos"] .dock-badge {
  background: linear-gradient(180deg, #49a3ff 0%, #165edc 100%);
  color: #ffffff;
}
.desktop-shortcut[data-app="settings"] .shortcut-icon,
.dock-button[data-app="settings"] .dock-badge {
  background: linear-gradient(180deg, #8e9aac 0%, #566274 100%);
  color: #ffffff;
}
.desktop-shortcut[data-app="lock"] .shortcut-icon,
.dock-button[data-app="lock"] .dock-badge {
  background: linear-gradient(180deg, #4a5463 0%, #1e2734 100%);
  color: #ffffff;
}
.desktop-shortcut[data-app="trash"] .shortcut-icon {
  background: linear-gradient(180deg, #ff97bf 0%, #d95f99 100%);
  color: #ffffff;
}
@media (max-width: 1100px) {
  .desktop-shortcut {
    width: 92px;
  }
  .shortcut-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }
  .dock-badge {
    width: 56px;
    height: 56px;
  }
}


/* v3.8.3 — modern radio redesign + recovery + cleaner station cards */
.radio-app.modern {
  gap: 18px;
}
.radio-topline {
  align-items: center;
}
.radio-hero {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(160px, .75fr) auto minmax(220px, .9fr);
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 0% 0%, rgba(109, 207, 255, .14), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(255, 110, 196, .14), transparent 28%),
    linear-gradient(135deg, rgba(17,23,51,.82), rgba(34,38,68,.72));
  box-shadow: 0 24px 60px rgba(6,10,26,.22), inset 0 1px 0 rgba(255,255,255,.06);
}
.radio-hero.is-live {
  border-color: rgba(96, 232, 201, .26);
}
.radio-hero-kicker {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #8edfff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.radio-hero-copy h3 {
  margin: 10px 0 6px;
  font-size: 1.45rem;
}
.radio-hero-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}
.radio-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.status-pill.accent {
  background: rgba(96, 232, 201, .14);
  color: #96fff0;
  border: 1px solid rgba(96, 232, 201, .22);
}
.radio-mini-note {
  color: var(--text-muted);
  font-size: .84rem;
}
.radio-visualizer.modern {
  min-height: 72px;
  gap: 5px;
}
.radio-visualizer.modern span {
  width: 6px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #66f0ff, #7f74ff 55%, #ff7bc0 100%);
  opacity: .42;
}
.radio-transport.modern {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.radio-transport.modern .transport-button,
.radio-transport.modern .station-button.ghost {
  min-width: 52px;
  min-height: 52px;
  border-radius: 16px;
}
.radio-transport.modern .station-button.ghost {
  padding-inline: 18px;
}
.volume-control.modern {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.radio-layout.modern {
  gap: 18px;
}
.radio-station-list.modern {
  display: grid;
  gap: 12px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}
.station-card.modern {
  padding: 15px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018));
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.station-card.modern.active {
  border-color: rgba(91, 209, 255, .24);
  box-shadow: 0 0 0 1px rgba(91,209,255,.08), inset 0 1px 0 rgba(255,255,255,.06);
}
.station-card.modern.is-unconfigured {
  opacity: .88;
}
.station-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.station-dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  flex: 0 0 auto;
}
.station-dot.ready { background: #67efbe; box-shadow: 0 0 16px rgba(103,239,190,.45); }
.station-dot.dim { background: rgba(255,255,255,.25); }
.station-meta {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 700;
}
.station-card.modern .station-actions {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.station-card.modern .station-button.primary {
  background: linear-gradient(135deg, rgba(86,122,255,.26), rgba(92,230,220,.25));
  color: #ebf7ff;
}
.station-card.modern .station-button {
  background: rgba(255,255,255,.05);
}
.radio-add-panel.modern,
.radio-side-note {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.018));
}
.radio-add-panel.modern h4,
.radio-side-note h4 { margin: 0; }
.radio-note-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-size: .86rem;
}
.radio-empty {
  padding: 24px;
  display: grid;
  gap: 8px;
}
.radio-empty h4,
.radio-empty p { margin: 0; }
@media (max-width: 980px) {
  .radio-hero {
    grid-template-columns: 1fr;
  }
}


/* v3.8.4 — owner-bound Messenger local demo */
.dock-badge { position: relative; }
.dock-unread-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; display: inline-grid; place-items: center; font-size: .68rem; font-weight: 800;
  color: #fff; background: #ff3157; border: 2px solid rgba(17,20,43,.96); box-shadow: 0 5px 12px rgba(255,49,87,.34);
}
.dock-unread-badge[hidden] { display: none; }
.messenger-app {
  height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(280px, .78fr) minmax(470px, 1.42fr); gap: 14px;
}
.messenger-sidebar, .messenger-conversation {
  min-height: 0; border-radius: 22px; border: 1px solid rgba(255,255,255,.08); background: rgba(15,20,45,.58);
}
.messenger-sidebar { padding: 13px; display: flex; flex-direction: column; gap: 12px; }
.messenger-owner-card {
  display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 17px;
  background: linear-gradient(135deg, rgba(109,118,255,.15), rgba(71,209,221,.09)); border: 1px solid rgba(137,179,255,.12);
}
.messenger-owner-card h4 { margin: 2px 0 3px; font-size: 1rem; }
.messenger-owner-card p { margin: 0; color: var(--text-muted); font-size: .78rem; }
.messenger-kicker { color: #9ad4ff; font-size: .64rem; font-weight: 800; letter-spacing: .16em; }
.messenger-avatar {
  width: 42px; height: 42px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 14px;
  background: linear-gradient(135deg, #49cbe5, #6778ff); color: #fff; font-weight: 850; font-size: .8rem;
  border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.17);
}
.messenger-side-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.messenger-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 999px; color: var(--text-soft);
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); font-size: .76rem;
}
.messenger-toggle input { accent-color: #65e3da; }
.messenger-new-chat { display: grid; gap: 8px; padding: 11px; border-radius: 16px; background: rgba(255,255,255,.035); }
.messenger-new-chat h4 { margin: 0 0 2px; font-size: .92rem; }
.messenger-new-chat .inline-input { min-height: 38px; padding: 8px 10px; font-size: .84rem; }
.messenger-new-chat .action-button { min-height: 38px; }
.messenger-status { margin: 0; min-height: 16px; color: #80dfff; font-size: .76rem; line-height: 1.35; }
.messenger-status.error { color: #ff96b3; }
.messenger-chat-list { min-height: 0; flex: 1; display: grid; align-content: start; gap: 7px; overflow: auto; padding-right: 3px; }
.messenger-chat-item {
  width: 100%; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px;
  padding: 9px; text-align: left; border-radius: 15px; border: 1px solid transparent; background: rgba(255,255,255,.028); color: var(--text);
}
.messenger-chat-item.active { background: rgba(92,124,255,.15); border-color: rgba(110,177,255,.22); }
.messenger-chat-item.blocked { opacity: .7; }
.messenger-chat-copy { display: block; min-width: 0; }
.messenger-chat-copy strong, .messenger-chat-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.messenger-chat-copy strong { font-size: .88rem; }
.messenger-chat-copy small { margin-top: 3px; color: var(--text-muted); font-size: .76rem; }
.messenger-chat-meta { display: grid; justify-items: end; gap: 6px; color: var(--text-muted); font-size: .68rem; }
.message-unread-badge {
  min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px;
  background: #5e8cff; color: #fff; font-size: .68rem; font-weight: 800;
}
.messenger-empty { margin: 7px; color: var(--text-muted); font-size: .84rem; line-height: 1.5; }
.blocked-message-list { padding: 9px; border-radius: 14px; background: rgba(255,255,255,.034); color: var(--text-muted); font-size: .78rem; }
.blocked-message-list summary { cursor: pointer; font-weight: 700; }
.blocked-message-row { margin-top: 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.blocked-message-row .chip-button { min-height: 29px; padding: 5px 9px; }
.messenger-conversation { padding: 15px; display: grid; grid-template-rows: auto minmax(170px, 1fr) auto auto; gap: 12px; }
.messenger-thread-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid rgba(255,255,255,.07); }
.messenger-thread-contact { display: flex; align-items: center; gap: 10px; }
.messenger-thread-contact h3 { margin: 0 0 3px; font-size: 1.06rem; }
.messenger-thread-contact p { margin: 0; color: var(--text-muted); font-size: .78rem; }
.messenger-thread-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.messenger-thread-actions .chip-button { min-height: 33px; padding: 6px 10px; }
.messenger-thread-actions .danger { color: #ffb1c4; }
.messenger-thread { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 9px; padding: 4px 3px 4px 0; }
.message-bubble { max-width: min(78%, 410px); padding: 10px 12px 8px; border-radius: 17px; display: grid; gap: 5px; }
.message-bubble p { margin: 0; line-height: 1.43; font-size: .9rem; overflow-wrap: anywhere; }
.message-bubble small { font-size: .68rem; opacity: .72; }
.message-bubble.incoming { align-self: flex-start; color: var(--text); background: rgba(255,255,255,.065); border-bottom-left-radius: 5px; }
.message-bubble.outgoing { align-self: flex-end; color: #fff; background: linear-gradient(135deg, #6778ff, #42ced7); border-bottom-right-radius: 5px; }
.messenger-thread-empty, .messenger-no-selection {
  height: 100%; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; color: var(--text-muted);
}
.messenger-thread-empty span { font-size: .84rem; }
.messenger-composer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: end; }
.messenger-composer textarea {
  width: 100%; min-height: 48px; max-height: 96px; resize: vertical; padding: 13px 14px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.055); color: var(--text); font: inherit;
}
.messenger-composer textarea:focus { outline: 1px solid rgba(90,207,255,.45); }
.messenger-composer .action-button { min-height: 48px; padding-inline: 22px; }
.messenger-block-notice { margin: 0; color: #ff9ab7; font-size: .82rem; }
.messenger-tech-note {
  border-radius: 14px; padding: 10px 12px; background: rgba(75,90,143,.12); border: 1px solid rgba(135,167,255,.13);
  color: var(--text-soft); font-size: .73rem; line-height: 1.45;
}
.messenger-tech-note strong { display: block; margin-bottom: 4px; color: #a9d6ff; }
.messenger-tech-note p { margin: 0; }
@media (max-width: 860px) {
  .messenger-app { grid-template-columns: 1fr; }
  .messenger-sidebar { max-height: 44vh; }
}


/* v3.8.5 — private owner-bound photo album */
.photo-album-app {
  display: grid;
  gap: 16px;
}
.photo-album-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 2px;
}
.photo-album-header h3 {
  margin: 6px 0 5px;
  font-size: 1.35rem;
}
.photo-album-header p:not(.photo-kicker) {
  margin: 0;
  max-width: 560px;
  color: var(--text-soft);
  line-height: 1.45;
}
.photo-kicker {
  margin: 0;
  color: #80ddff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
}
.photo-count {
  min-width: 72px;
  min-height: 66px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 22px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 1.45rem;
  font-weight: 750;
}
.photo-count small {
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
}
.photo-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.photo-tab {
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--text-soft);
  font-weight: 650;
}
.photo-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(93,121,255,.3), rgba(81,220,205,.22));
  border-color: rgba(110,200,255,.2);
}
.photo-layout {
  display: grid;
  grid-template-columns: minmax(290px, 1fr) minmax(290px, 340px);
  gap: 16px;
  min-height: 370px;
}
.photo-gallery-panel,
.photo-preview-panel,
.photo-add-panel {
  border-radius: 22px;
  padding: 16px;
}
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 12px;
  margin-top: 14px;
  max-height: 402px;
  overflow: auto;
  padding-right: 3px;
}
.photo-card {
  min-width: 0;
  padding: 0;
  border-radius: 17px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.035);
  text-align: left;
  color: inherit;
}
.photo-card.selected {
  border-color: rgba(93,205,255,.4);
  box-shadow: 0 0 0 2px rgba(93,205,255,.14);
}
.photo-card-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.22;
  overflow: hidden;
  background: rgba(4,8,20,.6);
}
.photo-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-card-broken {
  padding: 10px;
  color: var(--text-muted);
  font-size: .74rem;
  text-align: center;
}
.photo-card-text {
  display: grid;
  gap: 3px;
  padding: 9px 10px 10px;
}
.photo-card-text strong {
  font-size: .84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photo-card-text small {
  color: var(--text-muted);
  font-size: .72rem;
}
.photo-empty,
.photo-preview-empty {
  min-height: 176px;
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--text-muted);
  text-align: center;
}
.photo-empty strong,
.photo-preview-empty strong {
  color: var(--text);
  font-size: 1rem;
}
.photo-detail-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}
.photo-main-preview {
  height: 162px;
  border-radius: 17px;
  overflow: hidden;
  background: rgba(4,8,20,.56);
  display: grid;
  place-items: center;
}
.photo-main-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-selected-error {
  color: var(--text-muted);
  font-size: .85rem;
}
.photo-selected-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.photo-selected-meta h4,
.photo-selected-meta p {
  margin: 0;
}
.photo-selected-meta p {
  color: var(--text-muted);
  font-size: .82rem;
}
.photo-category-select {
  max-width: 135px;
  padding: 8px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.08);
}
.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.photo-actions .action-button {
  padding-inline: 11px;
}
.photo-actions .danger {
  color: #ffc0d6;
}
.photo-status {
  min-height: 19px;
  margin: 11px 0 0;
  color: var(--text-muted);
  font-size: .8rem;
  line-height: 1.4;
}
.photo-status.checking { color: #8edfff; }
.photo-status.success { color: #7df1c8; }
.photo-status.error { color: #ffabc8; }
.photo-add-panel {
  display: grid;
  gap: 9px;
}
.photo-add-panel h4,
.photo-add-panel p {
  margin: 0;
}
.photo-add-panel p {
  color: var(--text-soft);
  font-size: .82rem;
  line-height: 1.45;
}
.photo-url-preview {
  margin-top: 5px;
  height: 112px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(4,8,20,.56);
}
.photo-url-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 920px) {
  .photo-layout {
    grid-template-columns: 1fr;
  }
}


/* v3.8.6 — owner-bound settings center */
.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}
.settings-center {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  gap: 16px;
  min-height: 536px;
}
.settings-sidebar {
  padding: 16px 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(21,27,55,.84), rgba(12,16,37,.72));
  border: 1px solid rgba(255,255,255,.07);
}
.settings-sidebar header {
  padding: 4px 8px 14px;
}
.settings-kicker {
  color: #8bdfff;
  font-weight: 800;
  font-size: .68rem;
  letter-spacing: .15em;
}
.settings-sidebar h3 {
  margin: 7px 0 4px;
  font-size: 1.23rem;
}
.settings-sidebar header p {
  margin: 0;
  color: var(--text-muted);
  font-size: .84rem;
}
.settings-nav {
  display: grid;
  gap: 5px;
}
.settings-nav button {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  align-items: center;
  text-align: left;
  min-height: 43px;
  padding: 7px 10px;
  color: var(--text-soft);
  border-radius: 13px;
  background: transparent;
  border: 1px solid transparent;
  font-weight: 650;
}
.settings-nav button span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255,255,255,.05);
}
.settings-nav button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(84,121,255,.22), rgba(76,223,211,.15));
  border-color: rgba(116,205,255,.18);
}
.settings-content {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}
.settings-card {
  min-height: 350px;
  padding: 22px;
  border-radius: 23px;
  border: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.022));
  display: grid;
  align-content: start;
  gap: 15px;
}
.settings-wide-card { min-height: 442px; }
.settings-card h3,
.settings-card h4 {
  margin: 0;
}
.settings-hint,
.settings-warning {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
  font-size: .88rem;
}
.settings-warning {
  color: #f5c67f;
}
.settings-owner-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 17px;
  background: rgba(255,255,255,.035);
}
.settings-owner-profile .friend-avatar {
  width: 54px;
  height: 54px;
}
.settings-owner-profile strong,
.settings-owner-profile small {
  display: block;
}
.settings-owner-profile small {
  color: var(--text-muted);
  margin-top: 4px;
}
.settings-field {
  display: grid;
  gap: 7px;
  color: var(--text-soft);
  font-size: .87rem;
}
.settings-select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.05);
}
.settings-toggle-list {
  display: grid;
  gap: 8px;
}
.settings-divider {
  height: 1px;
  background: rgba(255,255,255,.07);
}
.settings-pin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 9px;
}
.settings-wallpaper-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(106px, 1fr));
  gap: 9px;
}
.settings-wallpaper-choice {
  min-width: 0;
  padding: 7px;
  display: grid;
  gap: 7px;
  text-align: left;
  color: var(--text-soft);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
}
.settings-wallpaper-choice.active {
  border-color: rgba(102,214,255,.36);
  box-shadow: 0 0 0 1px rgba(102,214,255,.1);
}
.settings-wallpaper-choice span {
  height: 72px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
}
.settings-wallpaper-choice small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.settings-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.settings-volume {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}
.settings-volume output {
  min-width: 46px;
  text-align: right;
}
.settings-language-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 220px));
  gap: 12px;
}
.settings-language-card {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 18px;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.settings-language-card.selected {
  border-color: rgba(104,212,255,.33);
  background: rgba(104,212,255,.08);
}
.settings-language-card input {
  position: absolute;
  top: 14px;
  right: 14px;
}
.settings-language-card small {
  color: var(--text-muted);
}
.settings-whitelist-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.settings-host-list {
  display: grid;
  gap: 7px;
  margin: 10px 0;
}
.settings-host-row {
  min-height: 42px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(255,255,255,.035);
}
.settings-host-row small {
  max-width: 205px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
}
.settings-empty-text {
  margin: 10px 0;
  color: var(--text-muted);
}
.settings-backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.settings-reset-grid {
  display: grid;
  gap: 11px;
}
.settings-reset-action {
  padding: 17px 18px;
  display: grid;
  gap: 5px;
  text-align: left;
  border-radius: 16px;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}
.settings-reset-action small {
  color: var(--text-muted);
}
.settings-reset-action.danger {
  border-color: rgba(255,111,150,.22);
}
.settings-reset-action.danger strong {
  color: #ff9fc0;
}
.settings-info-grid {
  display: grid;
  gap: 8px;
}
.settings-info-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 11px;
  background: rgba(255,255,255,.035);
}
.settings-info-row span {
  color: var(--text-soft);
}
.settings-info-notes {
  margin-top: 6px;
  display: grid;
  gap: 8px;
}
.settings-info-notes p {
  margin: 0;
  padding: 11px 13px;
  border-radius: 12px;
  line-height: 1.45;
  background: rgba(255,255,255,.025);
  color: var(--text-soft);
}
.settings-feedback {
  min-height: 20px;
  margin: 0;
  padding: 0 5px;
  color: var(--text-muted);
}
.settings-feedback.success { color: #73efc4; }
.settings-feedback.error { color: #ffabc8; }
@media (max-width: 900px) {
  .settings-center { grid-template-columns: 1fr; }
  .settings-sidebar { display: grid; gap: 10px; }
  .settings-nav { grid-template-columns: repeat(3, 1fr); }
  .settings-pin-grid,
  .settings-whitelist-columns,
  .settings-two-column { grid-template-columns: 1fr; }
}


/* v3.8.7 — owner-bound notification center */
.notification-trigger {
  position: relative;
  gap: 3px;
}
.notification-bell {
  font-size: .9rem;
}
.notification-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ff4570;
  color: #fff;
  border: 2px solid rgba(12,16,34,.82);
  font-size: .66rem;
  font-weight: 800;
}
.notification-badge[hidden] {
  display: none !important;
}
.notification-center {
  top: 54px;
  right: 14px;
  width: min(422px, calc(100vw - 28px));
  max-height: min(650px, calc(100vh - 72px));
  z-index: 50;
  padding: 18px;
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, rgba(20,24,47,.94), rgba(10,13,29,.95));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 28px 72px rgba(0,0,0,.37);
}
.notification-center[hidden] { display: none !important; }
.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}
.notification-header h2 {
  margin: 5px 0 3px;
  font-size: 1.22rem;
}
.notification-kicker {
  margin: 0;
  color: #85ddff;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .16em;
}
.notification-summary {
  margin: 0;
  color: var(--text-muted);
  font-size: .82rem;
}
.notification-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.notification-toolbar .chip-button {
  min-width: auto;
  padding: 7px 11px;
}
.notification-list {
  display: grid;
  gap: 9px;
  margin: 0;
  overflow: auto;
  padding-right: 3px;
  max-height: 502px;
}
.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 39px 1fr 28px;
  gap: 10px;
  align-items: start;
  padding: 12px 10px 12px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06);
}
.notification-item.unread {
  background: linear-gradient(135deg, rgba(84,125,255,.13), rgba(74,215,208,.07));
  border-color: rgba(106,201,255,.16);
}
.notification-item.unread::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 20px;
  width: 5px;
  height: 20px;
  border-radius: 999px;
  background: #6bdcff;
}
.notification-type-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #dff8ff;
  background: rgba(106,205,255,.13);
  font-weight: 800;
}
.notification-item[data-notification-type="message"] .notification-type-icon { background: rgba(88,224,142,.16); color: #9bffcb; }
.notification-item[data-notification-type="radio"] .notification-type-icon { background: rgba(255,178,73,.16); color: #ffd391; }
.notification-item[data-notification-type="video"] .notification-type-icon { background: rgba(255,72,90,.16); color: #ff9cad; }
.notification-item[data-notification-type="url"] .notification-type-icon,
.notification-item[data-notification-type="stream"] .notification-type-icon { background: rgba(255,101,136,.16); color: #ffb3c7; }
.notification-item[data-notification-type="backup"] .notification-type-icon,
.notification-item[data-notification-type="restore"] .notification-type-icon { background: rgba(121,231,201,.14); color: #9bffe5; }
.notification-copy {
  min-width: 0;
}
.notification-title-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.notification-title-row time {
  letter-spacing: 0;
  font-weight: 600;
}
.notification-copy strong {
  display: block;
  margin: 4px 0;
  font-size: .91rem;
}
.notification-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: .81rem;
  line-height: 1.43;
}
.notification-dismiss {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
}
.notification-dismiss:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.notification-empty {
  min-height: 202px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  color: var(--text-muted);
}
.notification-empty span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #83efd0;
  background: rgba(111,239,205,.1);
  font-size: 1.2rem;
}
.notification-empty strong {
  color: var(--text);
}
.notification-empty p {
  margin: 0;
}


/* v5.0 — cohesive cleanup requested from inworld QA */
.menubar { background: rgba(1, 2, 7, .94) !important; border-color: rgba(255,255,255,.08) !important; box-shadow: 0 12px 30px rgba(0,0,0,.30); }
.menubar .menu-link:not(.strong), .menubar #desktopModeTag, .menubar #ownerTopChip,
.menubar .decorative, .menubar #muteButton, .menubar #notificationButton, .menubar #lockButton { display: none !important; }
.menubar-left { gap: 12px; }
.menubar-right { margin-left: auto; }
.mac-lockscreen .mac-pin-form { background: rgba(4,7,17,.78) !important; border-color: rgba(255,255,255,.13) !important; }
.mac-lockscreen .pin-form input { background: rgba(6,9,20,.88) !important; color: #f2f4ff !important; border: 1px solid rgba(255,255,255,.18) !important; }
.mac-lockscreen .pin-form input::placeholder { color: rgba(238,241,255,.42); }
.site-favicon { position: relative; display: grid !important; place-items: center; font-weight: 750; color: #fff; font-size: 1.15rem; }
.site-favicon > span { position: absolute; inset: 0; display: grid; place-items: center; }
.site-favicon > img { position: relative; z-index: 1; width: 66%; height: 66%; object-fit: contain; border-radius: 8px; }
.dock-button[data-app="doreen"] .dock-badge { background: linear-gradient(180deg,#111319,#010207); }
.dock-button[data-app="primfeed"] .dock-badge { background: linear-gradient(180deg,#735bff,#3b28bc); }
.dock-button[data-app="secondpix"] .dock-badge { background: linear-gradient(180deg,#ef6190,#9f2458); }
.settings-backup-text { width: 100%; resize: vertical; min-height: 154px; border-radius: 16px; padding: 13px; background: rgba(4,7,17,.7); border: 1px solid rgba(255,255,255,.15); color: #eff4ff; font: .74rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }


/* ==========================================================================
   RORA v5.3.0 FINAL RELEASE — approved UI pass transferred from v5.2.7
   ========================================================================== */
:root { --menubar-h: 58px; --dock-h: 126px; }

.menubar {
  min-height: 58px !important;
  padding: 0 22px !important;
  border-radius: 0 0 17px 17px !important;
  background: rgba(1,2,8,.97) !important;
  border-color: rgba(255,255,255,.06) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.34) !important;
}
#desktopHomeButton { display:none !important; }
.topbar-floral-wordmark {
  display:block !important;
  width: min(205px, 22vw) !important;
  height: 26px !important;
  object-fit: contain !important;
  object-position: left center !important;
  margin: 0 !important;
}
.menubar-left { gap: 22px !important; }
.menubar .menu-link.strong { color:#edf0ff !important; letter-spacing:.01em; }
.menubar-right .menu-time { color:#c7cde4; font-weight:600; }

.desktop-widget-board {
  position:absolute !important;
  top: 32px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(1320px, calc(100% - 72px)) !important;
  display:grid !important;
  grid-template-columns: 1.12fr .92fr 1.1fr 1.14fr 1.06fr !important;
  gap: 14px !important;
}
.desktop-widget {
  min-height: 120px !important;
  padding: 18px 20px !important;
  border-radius: 25px !important;
  background: rgba(11,15,36,.71) !important;
  border: 1px solid rgba(126,145,226,.17) !important;
  box-shadow: 0 18px 54px rgba(0,0,0,.20) !important;
}
.widget-weather { display:flex; flex-direction:column; justify-content:center; }
.weather-main { display:flex; align-items:center; gap:12px; margin: 3px 0 7px; }
.weather-main strong { color:#f4f6ff; font-size:2rem; letter-spacing:-.045em; line-height:1; }
.weather-icon {
  display:grid; place-items:center; width:42px; height:42px; border-radius:14px;
  background: linear-gradient(145deg, rgba(82,187,255,.26), rgba(132,91,250,.26));
  color:#e4f4ff; font-size:1.42rem;
}

.dock-wrap { left:50% !important; right:auto !important; width:max-content !important; max-width:calc(100vw - 48px) !important; transform:translateX(-50%) !important; bottom:20px !important; }
.dock {
  width:max-content !important; max-width:calc(100vw - 48px) !important;
  min-height:112px !important; padding:12px 14px !important; gap:8px !important;
  align-items:flex-start !important; border-radius:30px !important;
  background:rgba(18,22,48,.89) !important; border:1px solid rgba(114,132,214,.16) !important;
  box-shadow:0 28px 80px rgba(0,0,0,.42) !important;
}
.dock-button {
  width:82px !important; height:112px !important; min-height:112px !important;
  padding:10px 5px 8px !important; display:grid !important;
  grid-template-rows:58px 36px !important; row-gap:7px !important; align-content:start !important;
  align-items:start !important; justify-items:center !important; flex:0 0 82px !important;
  border-radius:20px !important;
}
.dock-button:hover { background:rgba(255,255,255,.055) !important; }
.dock-button.is-active { background:rgba(255,255,255,.058) !important; }
.dock-button .dock-badge, .dock-button.is-active .dock-badge {
  grid-row:1 !important; width:58px !important; height:58px !important; margin:0 auto !important;
  transform:none !important; border-radius:18px !important; position:relative !important;
  border:1px solid rgba(255,255,255,.13) !important;
  box-shadow: inset 0 2px 2px rgba(255,255,255,.28), inset 0 -10px 16px rgba(0,0,0,.16), 0 4px 0 rgba(0,0,0,.18), 0 14px 28px rgba(0,0,0,.33) !important;
}
.dock-badge::before {
  content:""; position:absolute; left:7px; right:7px; top:5px; height:42%;
  border-radius:14px; background:linear-gradient(180deg,rgba(255,255,255,.34),rgba(255,255,255,.08)); pointer-events:none;
}
.dock-button > .dock-label {
  grid-row:2 !important; display:flex !important; width:100% !important; min-height:36px !important;
  margin:0 !important; align-items:flex-start !important; justify-content:center !important; text-align:center !important;
  line-height:1.15 !important;
}
.dock-badge .app-icon-svg { width:100% !important; height:100% !important; display:grid !important; place-items:center !important; position:relative; z-index:1; }
.dock-badge .app-icon-svg svg { width:38px !important; height:38px !important; filter:drop-shadow(0 1px 1px rgba(0,0,0,.10)); }

.dock-button[data-app="home"] .dock-badge { background:linear-gradient(180deg,#6ec0ff 0%,#3d8fff 42%,#1c67dd 100%) !important; }
.dock-button[data-app="radio"] .dock-badge { background:linear-gradient(180deg,#ffc86b 0%,#ff9d31 44%,#ed7416 100%) !important; }
.dock-button[data-app="video"] .dock-badge { background:linear-gradient(180deg,#ff7678 0%,#ff454e 42%,#da1c23 100%) !important; }
.dock-button[data-app="friends"] .dock-badge { background:linear-gradient(180deg,#60dae0 0%,#21b4c1 42%,#0a7f8f 100%) !important; }
.dock-button[data-app="messenger"] .dock-badge { background:linear-gradient(180deg,#a9e164 0%,#72c733 42%,#42981d 100%) !important; }
.dock-button[data-app="wallpaper"] .dock-badge { background:linear-gradient(180deg,#ca92ff 0%,#9a58f3 42%,#6c33d2 100%) !important; }
.dock-button[data-app="photos"] .dock-badge { background:linear-gradient(180deg,#6ec0ff 0%,#3d8fff 42%,#1c67dd 100%) !important; }
.dock-button[data-app="settings"] .dock-badge { background:linear-gradient(180deg,#dbe1ea 0%,#98a4b5 42%,#647183 100%) !important; }
.dock-button[data-app="lock"] .dock-badge { background:linear-gradient(180deg,#444c5f 0%,#252b39 42%,#151923 100%) !important; }

.dock-button[data-app="doreen"] .dock-badge,
.dock-button[data-app="primfeed"] .dock-badge,
.dock-button[data-app="secondpix"] .dock-badge {
  background:linear-gradient(180deg,#394256 0%,#232939 46%,#141924 100%) !important;
  overflow:hidden !important;
}
.site-favicon > span { display:none !important; }
.site-favicon > img {
  width:50px !important; height:50px !important; margin:4px !important;
  border-radius:12px !important; object-fit:contain !important; object-position:center !important; filter:none !important;
}
.dock-button[data-app="doreen"] .dock-badge::before,
.dock-button[data-app="primfeed"] .dock-badge::before,
.dock-button[data-app="secondpix"] .dock-badge::before { display:none !important; }

/* Fully dark lock and PIN screen */
.overlay-shell.mac-lockscreen { background:#050712 !important; }
.mac-lockscreen #lockWallpaperLayer { opacity:.34 !important; filter:saturate(.78) brightness(.42) !important; }
.mac-lockscreen .lockscreen-overlay-glow {
  background: radial-gradient(circle at 50% 36%, rgba(77,98,193,.14), rgba(0,0,0,0) 30%), linear-gradient(180deg, rgba(1,2,8,.36), rgba(1,2,8,.78)) !important;
}
.mac-lockscreen .mac-pin-form, .mac-lockscreen .mac-password-row {
  background:rgba(8,11,25,.80) !important; border:1px solid rgba(123,140,224,.22) !important;
}
.mac-lockscreen .pin-form input {
  background:#090d1c !important; color:#eff2ff !important; border:1px solid rgba(117,136,225,.3) !important;
}
.mac-lockscreen .primary-action, .mac-lockscreen .ghost-action, .mac-lockscreen .secondary-action, .mac-lockscreen .lock-power-button {
  background:#0b1021 !important; color:#e8ecff !important; border:1px solid rgba(107,124,207,.22) !important;
}

@media (max-width: 1180px) {
  .desktop-widget-board { grid-template-columns: repeat(3, minmax(190px,1fr)) !important; }
  .dock-button { width:72px !important; flex-basis:72px !important; }
}


/* RORA v5.4.8 — MOAP interaction access settings */
.settings-access-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.settings-access-choice {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 14px;
  row-gap: 4px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(117,136,225,.18);
  border-radius: 18px;
  background: rgba(13,18,41,.48);
  transition: border-color .18s ease, background .18s ease;
  cursor: pointer;
}
.settings-access-choice input {
  grid-row: 1 / span 2;
  accent-color: #65d7de;
}
.settings-access-choice strong {
  color: #f1f3ff;
  font-size: 1rem;
}
.settings-access-choice small {
  color: rgba(213,219,246,.72);
}
.settings-access-choice.selected,
.settings-access-choice:has(input:checked) {
  border-color: rgba(72,193,211,.54);
  background: rgba(40,97,128,.20);
}



/* RORA v5.4.15 — compact Messenger-style Radio workspace */
.radio-app.radio-clean {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}
.radio-clean-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 0 2px;
}
.radio-clean-header h3 {
  margin: 4px 0 2px;
  font-size: 1.35rem;
}
.radio-clean-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: .86rem;
}
.radio-clean-kicker {
  color: #83daf4;
  letter-spacing: .14em;
  font-size: .67rem;
  font-weight: 800;
}
.radio-clean-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(290px, .94fr) minmax(330px, 1.06fr);
  gap: 14px;
}
.radio-clean-library,
.radio-clean-player,
.radio-clean-add {
  border-radius: 20px;
  border: 1px solid rgba(118,226,255,.10);
  background: rgba(13,18,40,.56);
}
.radio-clean-library {
  min-height: 0;
  padding: 15px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}
.radio-clean-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.radio-clean-section-head h4 {
  margin: 0 0 3px;
  font-size: 1rem;
}
.radio-clean-section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: .76rem;
}
.radio-total {
  min-width: 31px;
  height: 31px;
  padding: 0 9px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  color: #d7e8ff;
  font-size: .82rem;
  font-weight: 700;
  background: rgba(255,255,255,.055);
}
.radio-station-list.radio-clean-list {
  min-height: 0;
  max-height: none;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding-right: 4px;
}
.station-card.radio-clean-station {
  padding: 11px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.055);
  background: rgba(255,255,255,.025);
  box-shadow: none;
}
.station-card.radio-clean-station.active {
  border-color: rgba(84,206,230,.32);
  background: linear-gradient(105deg, rgba(54,107,171,.19), rgba(35,154,161,.08));
}
.radio-station-main {
  display: grid;
  grid-template-columns: 10px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
}
.radio-station-copy {
  min-width: 0;
}
.radio-station-copy h4 {
  margin: 0 0 2px;
  font-size: .88rem;
}
.radio-station-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: .72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.radio-clean-station .station-dot {
  margin: 0;
}
.radio-clean-station .station-meta {
  padding: 5px 7px;
  font-size: .66rem;
}
.station-actions.radio-clean-actions {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}
.radio-clean-actions .station-button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: .7rem;
  border-radius: 9px;
}
.radio-clean-actions .station-button.primary {
  min-width: 54px;
}
.radio-clean-right {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(216px, auto) auto;
  gap: 12px;
}
.radio-hero.radio-clean-player {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-areas:
    "now visualizer"
    "transport transport"
    "volume volume";
  gap: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(91,209,255,.09), transparent 34%),
    linear-gradient(135deg, rgba(17,23,51,.8), rgba(25,29,57,.62));
}
.radio-hero.radio-clean-player.is-live {
  border-color: rgba(96,232,201,.28);
}
.radio-clean-now {
  grid-area: now;
  min-width: 0;
}
.radio-clean-now h3 {
  margin: 8px 0 5px;
  font-size: 1.32rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.radio-clean-now p {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: .82rem;
  line-height: 1.4;
}
.radio-visualizer.radio-clean-visualizer {
  grid-area: visualizer;
  min-height: 44px;
  align-self: center;
  gap: 4px;
  opacity: .62;
}
.radio-visualizer.radio-clean-visualizer span {
  width: 4px;
  height: 10px;
}
.radio-clean-transport {
  grid-area: transport;
  display: flex;
  gap: 8px;
  align-items: center;
}
.radio-clean-transport .transport-button {
  width: 43px;
  height: 43px;
  min-width: 43px;
  min-height: 43px;
  border-radius: 13px;
}
.radio-clean-transport .station-button.ghost {
  min-height: 43px;
  margin-left: 4px;
  padding: 8px 13px;
  border-radius: 13px;
}
.volume-control.radio-clean-volume {
  grid-area: volume;
  padding-top: 2px;
  grid-template-columns: auto minmax(110px, 1fr) auto;
}
.radio-add-panel.radio-clean-add {
  padding: 15px;
  display: grid;
  gap: 10px;
  background: rgba(13,18,40,.56);
}
.radio-clean-fields {
  display: grid;
  grid-template-columns: minmax(120px, .82fr) minmax(170px, 1.18fr);
  gap: 8px;
}
.radio-clean-fields .inline-input {
  min-height: 40px;
  padding: 8px 11px;
}
.radio-clean-form-actions {
  justify-content: flex-end;
}
.radio-clean-form-actions .action-button {
  min-height: 37px;
  padding: 7px 13px;
}
.radio-clean-add .radio-status {
  min-height: 16px;
  font-size: .73rem;
}
.radio-clean-empty {
  padding: 20px 12px;
  border-radius: 14px;
  text-align: center;
  color: var(--text-muted);
}
.radio-clean-empty h4,
.radio-clean-empty p {
  margin: 0;
}
.radio-clean-empty p {
  margin-top: 6px;
  font-size: .82rem;
}
@media (max-width: 900px) {
  .radio-clean-grid {
    grid-template-columns: 1fr;
  }
  .radio-clean-fields {
    grid-template-columns: 1fr;
  }
}



/* RORA v5.4.16 — Radio card containment + neutral transport controls */
.radio-clean-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 4px 4px 0;
}
.radio-hero.radio-clean-player {
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 286px;
  height: auto;
  align-content: start;
  overflow: hidden;
  padding-bottom: 18px;
}
.volume-control.radio-clean-volume {
  min-height: 30px;
  margin: 0;
  align-self: end;
}
.radio-add-panel.radio-clean-add {
  flex: 0 0 auto;
  box-sizing: border-box;
  margin: 0;
}
.radio-clean-fields {
  grid-template-columns: 1fr;
}
.radio-clean-fields .inline-input {
  width: 100%;
  box-sizing: border-box;
}
.radio-clean-form-actions {
  margin-top: 2px;
}
.radio-clean-transport .transport-button:first-child,
.radio-clean-transport #radioPlayButton {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-main);
  box-shadow: none;
}
.radio-clean-transport #radioPlayButton {
  font-size: 1.02rem;
  line-height: 1;
}
.radio-clean-transport #radioPlayButton:hover,
.radio-clean-transport #radioPauseButton:hover,
.radio-clean-transport #radioStopButton:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.14);
}



/* RORA v5.4.17 — global dark glass scrollbars */
:root {
  --rora-scroll-track: rgba(7, 11, 28, .42);
  --rora-scroll-thumb: rgba(86, 110, 159, .72);
  --rora-scroll-thumb-hover: rgba(89, 203, 220, .78);
  --rora-scroll-edge: rgba(111, 214, 236, .15);
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--rora-scroll-thumb) var(--rora-scroll-track);
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--rora-scroll-track);
  box-shadow: inset 0 0 0 1px rgba(112, 132, 208, .08);
}
*::-webkit-scrollbar-thumb {
  min-height: 36px;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(113, 212, 229, .82), rgba(98, 104, 194, .82))
    padding-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
*::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(114, 234, 239, .94), rgba(112, 119, 221, .92))
    padding-box;
}
*::-webkit-scrollbar-thumb:active {
  background:
    linear-gradient(180deg, rgba(85, 205, 220, .98), rgba(91, 98, 194, .98))
    padding-box;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}
*::-webkit-scrollbar-button,
*::-webkit-scrollbar-button:single-button,
*::-webkit-scrollbar-button:vertical,
*::-webkit-scrollbar-button:horizontal {
  width: 0;
  height: 0;
  display: none;
  background: transparent;
}



/* RORA v5.4.19 — dock label/indicator targeting fix */
.dock-button > .dock-label {
  grid-row: 2 !important;
  display: flex !important;
  width: 100% !important;
  min-height: 36px !important;
  margin: 0 !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.15 !important;
  font-size: .82rem !important;
  font-weight: 500 !important;
  color: rgba(240,243,255,.93) !important;
}
.dock-button > .dock-task-indicator {
  position: absolute !important;
  grid-row: auto !important;
  display: block !important;
  width: 7px !important;
  height: 7px !important;
  min-height: 0 !important;
  left: 50% !important;
  bottom: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: rgba(107,211,235,.92) !important;
  box-shadow: 0 0 9px rgba(91,207,233,.46) !important;
  transform: translateX(-50%) scale(0) !important;
  opacity: .92 !important;
  pointer-events: none !important;
}
.dock-button.is-running > .dock-task-indicator {
  transform: translateX(-50%) scale(1) !important;
}
.dock-button.is-minimized > .dock-task-indicator {
  background: rgba(241,190,96,.90) !important;
  box-shadow: 0 0 9px rgba(241,190,96,.40) !important;
}



/* RORA v5.4.20 — unified modern glass window controls */
:root {
  --rora-control-bg: rgba(255,255,255,.052);
  --rora-control-bg-hover: rgba(105,188,220,.125);
  --rora-control-border: rgba(143,177,231,.15);
  --rora-control-border-hover: rgba(115,215,236,.34);
  --rora-control-text: rgba(228,235,255,.86);
  --rora-close-hover-bg: rgba(255,94,139,.15);
  --rora-close-hover-border: rgba(255,116,153,.35);
  --rora-close-hover-text: #ffb6ca;
}
.window-controls,
.window-actions,
.app-window-controls,
.app-window-actions,
.panel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.window-controls button,
.window-actions button,
.app-window-controls button,
.app-window-actions button,
.panel-controls button,
.window-control,
.window-action,
.app-window-control,
.titlebar-button,
.window-button,
button[data-window-minimize],
button[data-window-close],
button[data-action="minimize"],
button[data-action="close"] {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border-radius: 13px !important;
  border: 1px solid var(--rora-control-border) !important;
  background: var(--rora-control-bg) !important;
  color: var(--rora-control-text) !important;
  display: inline-grid !important;
  place-items: center !important;
  line-height: 1 !important;
  font-size: 0 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.065),
    0 7px 18px rgba(0,0,0,.11) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform .16s ease,
    background .16s ease,
    border-color .16s ease,
    color .16s ease,
    box-shadow .16s ease !important;
}
.window-controls button:hover,
.window-actions button:hover,
.app-window-controls button:hover,
.app-window-actions button:hover,
.panel-controls button:hover,
.window-control:hover,
.window-action:hover,
.app-window-control:hover,
.titlebar-button:hover,
.window-button:hover,
button[data-window-minimize]:hover,
button[data-window-close]:hover,
button[data-action="minimize"]:hover,
button[data-action="close"]:hover {
  transform: translateY(-1px);
  background: var(--rora-control-bg-hover) !important;
  border-color: var(--rora-control-border-hover) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    0 9px 22px rgba(0,0,0,.17),
    0 0 0 1px rgba(84,201,225,.05) !important;
}
.window-controls button:active,
.window-actions button:active,
.app-window-controls button:active,
.app-window-actions button:active,
.panel-controls button:active,
.window-control:active,
.window-action:active,
.app-window-control:active,
.titlebar-button:active,
.window-button:active,
button[data-window-minimize]:active,
button[data-window-close]:active,
button[data-action="minimize"]:active,
button[data-action="close"]:active {
  transform: translateY(0);
}
.window-controls button::before,
.window-actions button::before,
.app-window-controls button::before,
.app-window-actions button::before,
.panel-controls button::before,
.window-control::before,
.window-action::before,
.app-window-control::before,
.titlebar-button::before,
.window-button::before,
button[data-window-minimize]::before,
button[data-window-close]::before,
button[data-action="minimize"]::before,
button[data-action="close"]::before {
  content: "";
  display: block;
  position: relative;
  font-size: initial;
  color: currentColor;
}
/* Minimize icon: restrained horizontal hairline */
.window-minimize::before,
.minimize-button::before,
.window-control.minimize::before,
.window-action.minimize::before,
button[data-window-minimize]::before,
button[data-action="minimize"]::before {
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
/* Close icon: clean CSS x rather than mismatched text glyph */
.window-close::before,
.close-button::before,
.window-control.close::before,
.window-action.close::before,
button[data-window-close]::before,
button[data-action="close"]::before {
  width: 16px;
  height: 16px;
  background:
    linear-gradient(45deg, transparent 44%, currentColor 45%, currentColor 55%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, currentColor 45%, currentColor 55%, transparent 56%);
}
.window-close:hover,
.close-button:hover,
.window-control.close:hover,
.window-action.close:hover,
button[data-window-close]:hover,
button[data-action="close"]:hover {
  color: var(--rora-close-hover-text) !important;
  background: var(--rora-close-hover-bg) !important;
  border-color: var(--rora-close-hover-border) !important;
}



/* RORA v5.4.21 — hard-centered app window icon glyphs */
.window-actions .window-action {
  position: relative !important;
  overflow: hidden !important;
  text-indent: -9999px !important;
  font-size: 0 !important;
}
.window-actions .window-action::before {
  content: "" !important;
  position: absolute !important;
  display: block !important;
  left: 50% !important;
  top: 50% !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  transform-origin: 50% 50% !important;
}
.window-actions .window-action.minimize::before {
  width: 14px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: currentColor !important;
}
.window-actions .window-action.close::before {
  width: 16px !important;
  height: 16px !important;
  background: none !important;
}
.window-actions .window-action.close::after {
  content: "" !important;
  position: absolute !important;
  display: block !important;
  left: 50% !important;
  top: 50% !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  background:
    linear-gradient(45deg, transparent 43%, currentColor 44%, currentColor 56%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, currentColor 44%, currentColor 56%, transparent 57%) !important;
}



/* RORA v5.4.22 — clean filled dock glyphs without dark inner outline */
.dock-badge .app-icon-svg svg {
  stroke: none !important;
  filter: none !important;
}
.dock-badge .app-icon-svg svg path,
.dock-badge .app-icon-svg svg rect,
.dock-badge .app-icon-svg svg circle,
.dock-badge .app-icon-svg svg polygon,
.dock-badge .app-icon-svg svg polyline,
.dock-badge .app-icon-svg svg line {
  stroke: none !important;
  filter: none !important;
}
/* Keep imported brand logos untouched; they are images rather than dock glyph SVGs. */
.dock-button[data-app="doreen"] .site-favicon img,
.dock-button[data-app="primfeed"] .site-favicon img,
.dock-button[data-app="secondpix"] .site-favicon img {
  filter: none !important;
}



/* RORA v5.4.23 — compact wallpaper workspace */
.wallpaper-studio {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(335px, 1.1fr);
  gap: 14px;
}
.wallpaper-library,
.wallpaper-selected,
.wallpaper-custom-compact,
.wallpaper-options-compact {
  border-radius: 20px;
  border: 1px solid rgba(118,226,255,.10);
  background: rgba(13,18,40,.56);
}
.wallpaper-library {
  min-height: 0;
  padding: 16px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}
.wallpaper-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.wallpaper-section-head h3,
.wallpaper-section-head h4 {
  margin: 4px 0 3px;
}
.wallpaper-section-head h3 {
  font-size: 1.2rem;
}
.wallpaper-section-head h4 {
  font-size: 1rem;
}
.wallpaper-section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: .77rem;
  line-height: 1.35;
}
.wallpaper-kicker {
  color: #83daf4;
  letter-spacing: .14em;
  font-size: .66rem;
  font-weight: 800;
}
.wallpaper-count {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  color: rgba(236,241,255,.90);
  font-weight: 700;
}
.wallpaper-library-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 9px;
  overflow-y: auto;
  padding-right: 3px;
}
.wallpaper-library-item {
  width: 100%;
  min-height: 82px;
  padding: 8px;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  text-align: left;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.065);
  background: rgba(255,255,255,.026);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.wallpaper-library-item:hover {
  transform: translateY(-1px);
  border-color: rgba(113,214,236,.24);
  background: rgba(99,159,211,.08);
}
.wallpaper-library-item.active {
  border-color: rgba(100,216,237,.42);
  background: linear-gradient(105deg, rgba(68,116,202,.21), rgba(55,178,188,.09));
}
.wallpaper-library-swatch {
  width: 94px;
  height: 64px;
  display: block;
  border-radius: 11px;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.wallpaper-library-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.wallpaper-library-copy strong {
  color: var(--text);
  font-size: .9rem;
}
.wallpaper-library-copy small {
  color: var(--text-muted);
  font-size: .71rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.wallpaper-library-state {
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255,255,255,.05);
  font-size: .68rem;
  font-weight: 700;
}
.wallpaper-library-item.active .wallpaper-library-state {
  color: #8bf3e4;
  background: rgba(71,202,187,.13);
}
.wallpaper-studio-side {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow-y: auto;
  padding-right: 3px;
}
.wallpaper-selected {
  padding: 16px;
  display: grid;
  gap: 12px;
  flex: 0 0 auto;
}
.wallpaper-active-pill {
  padding: 7px 11px;
  border-radius: 999px;
  color: #88f0e3;
  background: rgba(60,203,186,.12);
  border: 1px solid rgba(72,213,194,.23);
  font-size: .72rem;
  font-weight: 700;
}
.wallpaper-selected-preview {
  height: 142px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.13);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
}
.wallpaper-selected-description {
  margin: 0;
  color: var(--text-soft);
  font-size: .78rem;
  line-height: 1.42;
}
.custom-wallpaper-panel.wallpaper-custom-compact,
.wallpaper-options.wallpaper-options-compact {
  padding: 14px;
  gap: 10px;
  flex: 0 0 auto;
}
.wallpaper-custom-compact .inline-input {
  min-height: 42px;
}
.wallpaper-custom-actions {
  justify-content: flex-end;
}
.wallpaper-custom-actions .action-button,
.wallpaper-reset-actions .action-button {
  min-height: 38px;
  padding: 8px 13px;
}
.wallpaper-options-compact .toggle-line {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255,255,255,.032);
}
.wallpaper-options-compact .setting-select-row {
  padding: 10px 12px;
  border-radius: 13px;
}
.wallpaper-options-compact .setting-select-row select {
  min-height: 41px;
}
.wallpaper-reset-actions {
  justify-content: flex-end;
}
@media (max-width: 820px) {
  .wallpaper-studio {
    grid-template-columns: 1fr;
  }
  .wallpaper-library {
    min-height: 310px;
  }
}



/* RORA v5.4.24 — simple thumbnail wallpaper gallery */
.wallpaper-simple-app {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 4px 12px 2px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.wallpaper-current-card {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(118,226,255,.15);
  background: rgba(13,18,40,.48);
}
.wallpaper-current-mini {
  width: 82px;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(120,222,241,.28);
  background: rgba(0,0,0,.25);
}
.wallpaper-current-mini img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wallpaper-current-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.wallpaper-current-copy span {
  color: #83daf4;
  letter-spacing: .11em;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
}
.wallpaper-current-copy strong {
  color: var(--text);
  font-size: .94rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.wallpaper-current-copy small {
  color: var(--text-muted);
  font-size: .72rem;
}
.wallpaper-current-badge {
  padding: 7px 11px;
  border-radius: 999px;
  color: #8bf3e4;
  background: rgba(59,201,184,.12);
  border: 1px solid rgba(75,214,195,.23);
  font-size: .69rem;
  font-weight: 700;
}
.wallpaper-gallery-section {
  flex: 0 0 auto;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(118,226,255,.10);
  background: rgba(13,18,40,.46);
}
.wallpaper-simple-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.wallpaper-simple-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}
.wallpaper-simple-heading span {
  color: var(--text-muted);
  font-size: .72rem;
}
.wallpaper-thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.wallpaper-thumb {
  position: relative;
  min-width: 0;
  padding: 5px 5px 8px;
  border-radius: 13px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.025);
  display: grid;
  gap: 6px;
  text-align: left;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.wallpaper-thumb:hover {
  transform: translateY(-1px);
  border-color: rgba(106,215,235,.27);
  background: rgba(70,141,191,.09);
}
.wallpaper-thumb.active {
  border-color: rgba(104,218,236,.52);
  background: rgba(64,150,192,.12);
  box-shadow: inset 0 0 0 1px rgba(107,215,235,.13);
}
.wallpaper-thumb img {
  width: 100%;
  height: 68px;
  display: block;
  object-fit: cover;
  border-radius: 9px;
  background: rgba(4,7,18,.38);
}
.wallpaper-thumb-label {
  display: block;
  min-width: 0;
  padding: 0 3px;
  color: rgba(234,239,255,.9);
  font-size: .68rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wallpaper-thumb-active {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 4px 6px;
  border-radius: 999px;
  color: #081426;
  background: #76e5dc;
  font-size: .58rem;
  font-weight: 800;
}
.wallpaper-simple-drawer {
  flex: 0 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(118,226,255,.10);
  background: rgba(13,18,40,.43);
  overflow: hidden;
}
.wallpaper-simple-drawer summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 15px 44px 15px 15px;
  color: rgba(237,241,255,.92);
  font-size: .88rem;
  font-weight: 700;
}
.wallpaper-simple-drawer summary::-webkit-details-marker {
  display: none;
}
.wallpaper-simple-drawer summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}
.wallpaper-simple-drawer[open] summary::after {
  content: "−";
}
.wallpaper-drawer-content {
  padding: 0 15px 15px;
  display: grid;
  gap: 10px;
}
.wallpaper-drawer-content > p {
  margin: 0;
  color: var(--text-muted);
  font-size: .76rem;
}
.wallpaper-drawer-content .inline-input {
  min-height: 40px;
}
.wallpaper-custom-actions,
.wallpaper-reset-actions {
  justify-content: flex-end;
}
.wallpaper-simple-options .toggle-line {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}
@media (max-width: 670px) {
  .wallpaper-thumbnail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wallpaper-current-card {
    grid-template-columns: 70px minmax(0,1fr);
  }
  .wallpaper-current-mini {
    width: 70px;
  }
  .wallpaper-current-badge {
    grid-column: 2;
  }
}



/* RORA v5.4.26 — Photos library inspired by a clean desktop gallery browser */
.photos-library-app {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 18px;
  background: rgba(9, 12, 26, .24);
}
.photos-sidebar {
  min-height: 0;
  padding: 19px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  border-right: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.035);
}
.photos-sidebar-brand {
  padding: 0 8px;
}
.photos-sidebar-kicker {
  color: #76d8ee;
  letter-spacing: .16em;
  font-size: .61rem;
  font-weight: 800;
}
.photos-sidebar-brand h3 {
  margin: 5px 0 3px;
  color: var(--text);
  font-size: 1.12rem;
}
.photos-sidebar-brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: .72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photos-sidebar-nav {
  display: grid;
  gap: 4px;
}
.photos-nav-item {
  width: 100%;
  display: grid;
  grid-template-columns: 21px minmax(0,1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 6px 9px;
  border-radius: 10px;
  color: var(--text-soft);
  background: transparent;
  text-align: left;
  font-size: .78rem;
}
.photos-nav-item:hover {
  background: rgba(255,255,255,.05);
}
.photos-nav-item.active {
  color: #eff5ff;
  background: rgba(83,139,217,.2);
  border: 1px solid rgba(102,196,232,.18);
}
.photos-nav-icon {
  color: #73cde9;
  display: grid;
  place-items: center;
  font-size: .78rem;
}
.photos-nav-item small {
  color: var(--text-muted);
  font-size: .68rem;
}
.photos-import-drawer {
  margin-top: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.065);
  background: rgba(255,255,255,.024);
  overflow: hidden;
}
.photos-import-drawer summary {
  list-style: none;
  cursor: pointer;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  color: var(--text-soft);
  font-size: .77rem;
  font-weight: 650;
}
.photos-import-drawer summary::-webkit-details-marker {
  display: none;
}
.photos-import-drawer summary span {
  color: #7cd7ec;
}
.photos-import-form {
  padding: 0 9px 10px;
  display: grid;
  gap: 7px;
}
.photos-import-form .inline-input {
  min-height: 35px;
  padding: 7px 9px;
  border-radius: 9px;
  font-size: .7rem;
}
.photos-import-actions {
  display: flex;
  gap: 6px;
}
.photos-import-actions .action-button {
  flex: 1;
  min-height: 33px;
  padding: 6px 8px;
  font-size: .69rem;
  border-radius: 9px;
}
.photos-url-preview {
  height: 76px;
  border-radius: 9px;
}
.photos-browser {
  min-height: 0;
  padding: 17px 19px 14px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 13px;
  overflow: hidden;
}
.photos-browser-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,.065);
  padding-bottom: 13px;
}
.photos-browser-header h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 1.25rem;
}
.photos-browser-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: .73rem;
}
.photos-search {
  width: min(230px, 38%);
  height: 37px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border-radius: 11px;
  border: 1px solid rgba(110,196,232,.15);
  background: rgba(5,8,20,.37);
  color: var(--text-muted);
}
.photos-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 0;
  outline: none;
  color: var(--text);
  background: transparent;
  font-size: .76rem;
}
.photos-search input::placeholder {
  color: var(--text-muted);
}
.photos-grid-area {
  min-height: 0;
  overflow-y: auto;
  padding-right: 3px;
}
.photos-thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
  align-content: start;
}
.photos-thumb {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  color: inherit;
}
.photos-thumb:hover {
  background: rgba(255,255,255,.04);
}
.photos-thumb.selected {
  border-color: rgba(100,201,233,.34);
  background: rgba(66,128,199,.12);
}
.photos-thumb-image {
  display: grid;
  place-items: center;
  height: 88px;
  border-radius: 7px;
  overflow: hidden;
  background: rgba(3, 6, 17, .48);
}
.photos-thumb-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.photos-thumb-broken {
  color: var(--text-muted);
  font-size: .66rem;
}
.photos-thumb-caption {
  padding: 0 3px 3px;
  color: var(--text-soft);
  font-size: .69rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photos-library-empty {
  min-height: 250px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  color: var(--text-muted);
}
.photos-library-empty strong {
  color: var(--text);
  font-size: .96rem;
}
.photos-library-empty span {
  font-size: .77rem;
}
.photos-selection-bar {
  min-height: 86px;
  display: grid;
  grid-template-columns: 84px minmax(130px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-top: 1px solid rgba(255,255,255,.075);
  background: rgba(255,255,255,.018);
}
.photos-selected-thumbnail.photo-main-preview {
  width: 84px;
  height: 62px;
  border-radius: 8px;
}
.photos-selected-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}
.photos-selected-copy strong {
  font-size: .8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photos-selected-copy .photo-category-select {
  max-width: 160px;
  min-height: 32px;
  padding: 5px 8px;
  font-size: .7rem;
}
.photos-selected-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.photos-selected-actions .action-button {
  min-height: 35px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: .7rem;
}
.photos-status {
  min-height: 16px;
  margin: 0;
  padding-left: 2px;
  font-size: .72rem;
}
@media (max-width: 760px) {
  .photos-library-app {
    grid-template-columns: 1fr;
  }
  .photos-sidebar {
    display: block;
    padding: 12px;
  }
  .photos-sidebar-brand {
    display: none;
  }
  .photos-sidebar-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-bottom: 10px;
  }
  .photos-nav-item {
    flex: 0 0 auto;
    width: auto;
  }
  .photos-import-drawer {
    margin-top: 8px;
  }
  .photos-browser {
    padding: 12px;
  }
}



/* RORA v5.4.27 — in-app glass dropdowns replacing native bright MOAP menus */
.rora-native-select {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: -1px !important;
  padding: 0 !important;
  pointer-events: none !important;
  clip-path: inset(50%) !important;
}
.rora-glass-select {
  position: relative;
  width: 100%;
  min-width: 0;
  z-index: 1;
}
.rora-glass-select.is-open {
  z-index: 90;
}
.rora-select-trigger {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  border-radius: 16px;
  border: 1px solid rgba(121,203,232,.18);
  background: linear-gradient(180deg, rgba(25,31,62,.84), rgba(10,14,32,.86));
  color: rgba(236,241,255,.93);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.rora-select-trigger:hover,
.rora-glass-select.is-open .rora-select-trigger {
  border-color: rgba(110,218,238,.38);
  background: linear-gradient(180deg, rgba(34,42,80,.93), rgba(12,17,38,.94));
}
.rora-select-trigger:focus-visible {
  outline: none;
  border-color: rgba(102,216,237,.56);
  box-shadow: 0 0 0 3px rgba(80,199,222,.13), inset 0 1px 0 rgba(255,255,255,.065);
}
.rora-select-value {
  min-width: 0;
  flex: 1;
  font-size: .94rem;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rora-select-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(216,226,255,.66);
  border-bottom: 2px solid rgba(216,226,255,.66);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .16s ease;
}
.rora-glass-select.is-open .rora-select-chevron {
  transform: rotate(225deg) translateY(-1px);
}
.rora-select-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  max-height: 226px;
  overflow-y: auto;
  display: grid;
  gap: 5px;
  padding: 7px;
  border-radius: 15px;
  border: 1px solid rgba(107,213,235,.20);
  background:
    radial-gradient(circle at 100% 0%, rgba(88,184,225,.13), transparent 37%),
    rgba(9,13,29,.985);
  box-shadow: 0 22px 44px rgba(0,0,0,.43), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.rora-select-menu[hidden] {
  display: none;
}
.rora-glass-select.drop-up .rora-select-menu {
  top: auto;
  bottom: calc(100% + 7px);
}
.rora-select-option {
  width: 100%;
  min-height: 43px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(211,220,248,.84);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: .9rem;
}
.rora-select-option:hover,
.rora-select-option:focus-visible {
  color: #f2f5ff;
  border-color: rgba(113,214,235,.15);
  background: rgba(98,180,215,.10);
  outline: none;
}
.rora-select-option.selected {
  color: #effaff;
  border-color: rgba(106,218,238,.25);
  background: linear-gradient(95deg, rgba(66,133,221,.26), rgba(49,179,185,.16));
}
.rora-select-check {
  margin-left: auto;
  color: #79eadf;
  font-weight: 800;
}
.rora-glass-select.is-disabled {
  opacity: .52;
}
.rora-glass-select.compact .rora-select-trigger {
  min-height: 35px;
  border-radius: 9px;
  padding: 0 9px;
}
.rora-glass-select.compact .rora-select-value {
  font-size: .7rem;
}
.rora-glass-select.compact .rora-select-option {
  min-height: 34px;
  font-size: .72rem;
}
.setting-select-row .rora-glass-select,
.settings-field .rora-glass-select {
  margin-top: 3px;
}



/* RORA v5.4.28 — accessible Photos import panel; no clipped sidebar form */
.photos-sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 8px;
}
.photos-sidebar-foot p {
  margin: 0;
  padding: 0 5px;
  color: var(--text-muted);
  font-size: .64rem;
  line-height: 1.42;
}
.photos-import-launch {
  min-height: 41px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border-radius: 11px;
  border: 1px solid rgba(112,206,234,.14);
  background: rgba(255,255,255,.035);
  color: var(--text-soft);
  text-align: left;
}
.photos-import-launch span {
  color: #77ddf0;
  font-size: .96rem;
}
.photos-import-launch strong {
  font-size: .76rem;
}
.photos-import-launch:hover,
.photos-import-launch.active {
  color: #edf5ff;
  border-color: rgba(103,215,235,.31);
  background: rgba(72,139,205,.16);
}
.photos-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.photos-import-top {
  min-height: 37px;
  white-space: nowrap;
  border-radius: 11px;
  padding: 7px 12px;
  font-size: .73rem;
}
.photos-import-panel {
  display: none;
  flex: 0 0 auto;
  padding: 13px;
  border-radius: 15px;
  border: 1px solid rgba(106,216,237,.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(94,195,221,.10), transparent 35%),
    rgba(16,21,43,.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}
.photos-import-panel.is-open {
  display: grid;
  gap: 12px;
}
.photos-import-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.photos-import-panel-head h4 {
  margin: 0 0 3px;
  font-size: .95rem;
  color: var(--text);
}
.photos-import-panel-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: .7rem;
}
.photos-import-close {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(122,170,219,.14);
  background: rgba(255,255,255,.04);
  color: var(--text-soft);
  font-size: 1rem;
}
.photos-import-close:hover {
  border-color: rgba(255,121,157,.30);
  background: rgba(255,92,132,.12);
  color: #ffc0d1;
}
.photos-import-panel-form {
  display: grid;
  grid-template-columns: minmax(125px, .75fr) minmax(250px, 1.55fr) minmax(130px, .8fr);
  gap: 9px;
  align-items: end;
}
.photos-import-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.photos-import-field > span {
  color: var(--text-muted);
  font-size: .67rem;
  font-weight: 650;
}
.photos-import-field .inline-input {
  min-height: 40px;
  padding: 8px 11px;
  border-radius: 11px;
}
.photos-import-category .rora-glass-select .rora-select-trigger {
  min-height: 40px;
  border-radius: 11px;
}
.photos-panel-preview {
  width: min(188px, 100%);
  height: 102px;
  border-radius: 11px;
}
.photos-import-panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.photos-import-panel-actions .action-button {
  min-height: 37px;
  border-radius: 10px;
  padding: 7px 13px;
  font-size: .73rem;
}
.photos-library-empty .action-button {
  margin-top: 12px;
}
.photos-browser:has(.photos-import-panel.is-open) {
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}
@media (max-width: 860px) {
  .photos-import-panel-form {
    grid-template-columns: 1fr;
  }
  .photos-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}



/* RORA v5.4.29 — fixed lower-left Photos importer */
.photos-library-app.photos-library-sidebar-import {
  grid-template-columns: 224px minmax(0, 1fr);
}
.photos-library-sidebar-import .photos-sidebar {
  position: relative;
  overflow: hidden;
  padding-bottom: 124px;
}
.photos-sidebar-import-dock {
  position: absolute;
  z-index: 12;
  left: 12px;
  right: 12px;
  bottom: 14px;
  display: grid;
  gap: 8px;
}
.photos-sidebar-import-panel {
  display: none;
  max-height: min(366px, calc(100vh - 235px));
  overflow-y: auto;
  padding: 11px;
  gap: 9px;
  border-radius: 14px;
  border: 1px solid rgba(104,214,236,.27);
  background:
    radial-gradient(circle at 100% 0%, rgba(93,196,223,.11), transparent 36%),
    rgba(12,16,34,.98);
  box-shadow: 0 -18px 34px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.055);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.photos-sidebar-import-panel.is-open {
  display: grid;
}
.photos-sidebar-import-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.photos-sidebar-import-head strong {
  color: var(--text);
  font-size: .79rem;
}
.photos-sidebar-import-close {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 9px;
  border: 1px solid rgba(121,169,220,.15);
  color: var(--text-soft);
  background: rgba(255,255,255,.045);
}
.photos-sidebar-import-close:hover {
  color: #ffc0d1;
  border-color: rgba(255,121,157,.30);
  background: rgba(255,92,132,.12);
}
.photos-sidebar-field {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.photos-sidebar-field > span {
  color: var(--text-muted);
  font-size: .62rem;
  font-weight: 680;
}
.photos-sidebar-field .inline-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 35px;
  padding: 7px 9px;
  border-radius: 9px;
  font-size: .7rem;
}
.photos-sidebar-field .rora-glass-select .rora-select-trigger {
  min-height: 35px;
  border-radius: 9px;
  padding: 0 9px;
}
.photos-sidebar-field .rora-select-value {
  font-size: .7rem;
}
.photos-sidebar-preview {
  width: 100%;
  height: 76px;
  border-radius: 9px;
}
.photos-sidebar-import-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.photos-sidebar-import-actions .action-button {
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 9px;
  font-size: .68rem;
}
.photos-sidebar-import-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: .6rem;
  line-height: 1.35;
}
.photos-library-sidebar-import .photos-import-launch {
  min-height: 43px;
  background: rgba(255,255,255,.04);
}
.photos-sidebar-note {
  margin: 0;
  padding: 0 5px;
  color: var(--text-muted);
  font-size: .62rem;
  line-height: 1.38;
}
.photos-library-sidebar-import .photos-browser {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}
.photos-library-sidebar-import .photos-browser-header {
  align-items: end;
}
.photos-library-sidebar-import .photos-search {
  width: min(230px, 44%);
}
@media (max-width: 760px) {
  .photos-library-app.photos-library-sidebar-import {
    grid-template-columns: 1fr;
  }
  .photos-library-sidebar-import .photos-sidebar {
    overflow: visible;
    padding-bottom: 12px;
  }
  .photos-sidebar-import-dock {
    position: static;
    margin-top: 10px;
  }
  .photos-sidebar-import-panel {
    max-height: none;
  }
}



/* RORA v5.4.30 — Photos import expands below launcher with sidebar scrolling */
.photos-library-sidebar-import .photos-sidebar {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 14px;
}
.photos-library-sidebar-import .photos-sidebar-nav {
  flex: 0 0 auto;
}
.photos-sidebar-import-dock {
  position: static;
  z-index: auto;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: auto;
  padding-top: 12px;
  display: grid;
  gap: 8px;
}
.photos-sidebar-import-panel {
  order: 2;
  max-height: none;
  overflow: visible;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}
.photos-library-sidebar-import .photos-import-launch {
  order: 1;
  flex: 0 0 auto;
}
.photos-sidebar-note {
  order: 3;
}
.photos-sidebar-import-panel.is-open {
  animation: photosImportDown .16s ease-out both;
}
@keyframes photosImportDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.photos-library-sidebar-import .photos-sidebar::-webkit-scrollbar {
  width: 8px;
}
.photos-library-sidebar-import .photos-sidebar::-webkit-scrollbar-thumb {
  min-height: 32px;
}
@media (max-width: 760px) {
  .photos-sidebar-import-dock {
    margin-top: 10px;
    padding-top: 0;
  }
}



/* RORA v5.4.32 — compact selected-photo controls + large preview */
.photos-library-app {
  position: relative;
}
.photos-selection-bar.photos-selection-compact {
  min-height: 62px;
  grid-template-columns: 62px minmax(118px, 1fr) auto;
  gap: 9px;
  padding: 7px 9px;
}
.photos-selection-compact .photos-selected-thumbnail.photo-main-preview {
  width: 62px;
  height: 47px;
  padding: 0;
  cursor: zoom-in;
  border-radius: 8px;
  border: 1px solid rgba(103,203,230,.16);
  background: rgba(3,6,17,.48);
}
.photos-selection-compact .photos-selected-copy {
  gap: 4px;
}
.photos-selection-compact .photos-selected-copy strong {
  font-size: .75rem;
}
.photos-selection-compact .photo-category-select {
  max-width: 125px;
}
.photos-selection-compact .rora-glass-select.compact {
  max-width: 125px;
}
.photos-selection-compact .rora-glass-select.compact .rora-select-trigger {
  min-height: 30px;
  padding: 0 8px;
  border-radius: 8px;
}
.photos-selection-compact .photos-selected-actions {
  gap: 5px;
  flex-wrap: nowrap;
}
.photos-selection-compact .photos-selected-actions .action-button {
  min-height: 31px;
  padding: 5px 9px;
  border-radius: 9px;
  font-size: .66rem;
}
.photos-lightbox {
  position: absolute;
  z-index: 150;
  inset: 0;
  padding: 19px;
  display: grid;
  place-items: center;
  background: rgba(5,8,18,.79);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.photos-lightbox-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100% - 22px);
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  gap: 12px;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(111,215,237,.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(93,196,223,.10), transparent 32%),
    rgba(10,14,30,.97);
  box-shadow: 0 26px 70px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
}
.photos-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.photos-lightbox-header div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.photos-lightbox-header strong {
  min-width: 0;
  color: var(--text);
  font-size: .92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photos-lightbox-header span {
  color: #83daf4;
  font-size: .68rem;
}
.photos-lightbox-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  padding: 0;
  border-radius: 11px;
  border: 1px solid rgba(121,169,220,.15);
  background: rgba(255,255,255,.045);
  color: var(--text-soft);
  font-size: 1.08rem;
}
.photos-lightbox-close:hover {
  color: #ffc0d1;
  border-color: rgba(255,121,157,.30);
  background: rgba(255,92,132,.12);
}
.photos-lightbox-stage {
  min-height: 210px;
  max-height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(2,4,12,.58);
}
.photos-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.photos-lightbox-stage .photo-selected-error {
  position: static;
}
.photos-lightbox-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}
.photos-lightbox-actions .action-button {
  min-height: 36px;
  border-radius: 10px;
  padding: 7px 13px;
  font-size: .72rem;
}
@media (max-width: 720px) {
  .photos-selection-bar.photos-selection-compact {
    grid-template-columns: 54px minmax(92px, 1fr);
  }
  .photos-selection-compact .photos-selected-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}



/* RORA v5.4.33 — larger, user-resizable Photos window */
.app-window[data-app-window="photos"] .window-body {
  min-height: 0;
}
.app-window.is-resizable-window {
  min-width: min(660px, calc(100% - 8px));
  min-height: min(500px, calc(100% - 8px));
}
.app-window.is-resizable-window.is-resizing {
  transition: none !important;
  user-select: none;
}
.window-resize-handle {
  position: absolute;
  z-index: 35;
  right: 5px;
  bottom: 5px;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: nwse-resize;
  touch-action: none;
  opacity: .42;
  transition: opacity .16s ease, background .16s ease;
}
.window-resize-handle::before {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(135deg, transparent 0 36%, rgba(121,216,236,.72) 37% 45%, transparent 46% 59%, rgba(121,216,236,.72) 60% 68%, transparent 69%);
}
.app-window.is-active .window-resize-handle,
.window-resize-handle:hover {
  opacity: .95;
}
.window-resize-handle:hover {
  background: rgba(94,197,223,.08);
}
.app-window.is-resizing .window-resize-handle {
  opacity: 1;
  background: rgba(94,197,223,.13);
}



/* RORA v5.4.34 — resizable Radio, Wallpaper, Photos and Settings windows */
.app-window[data-app-window="photos"] .window-body,
.app-window[data-app-window="radio"] .window-body,
.app-window[data-app-window="wallpaper"] .window-body,
.app-window[data-app-window="settings"] .window-body {
  min-height: 0;
}
.app-window.is-resizable-window[data-resizable-window="photos"] {
  min-width: min(660px, calc(100% - 8px));
  min-height: min(500px, calc(100% - 8px));
}
.app-window.is-resizable-window[data-resizable-window="radio"] {
  min-width: min(660px, calc(100% - 8px));
  min-height: min(480px, calc(100% - 8px));
}
.app-window.is-resizable-window[data-resizable-window="wallpaper"] {
  min-width: min(620px, calc(100% - 8px));
  min-height: min(470px, calc(100% - 8px));
}
.app-window.is-resizable-window[data-resizable-window="settings"] {
  min-width: min(720px, calc(100% - 8px));
  min-height: min(520px, calc(100% - 8px));
}



/* RORA v5.4.35 — resized window content fills the resized shell */
.app-window.is-resizable-window > .window-body {
  flex: 1 1 0px;
  height: 0;
  min-height: 0;
  overflow: hidden;
  align-content: stretch;
}

/* Photos: library, sidebar, grid and lightbox expand with the window. */
.app-window[data-resizable-window="photos"] > .window-body {
  display: block;
}
.app-window[data-resizable-window="photos"] .photos-library-app {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.app-window[data-resizable-window="photos"] .photos-sidebar,
.app-window[data-resizable-window="photos"] .photos-browser,
.app-window[data-resizable-window="photos"] .photos-grid-area {
  min-height: 0;
}
.app-window[data-resizable-window="photos"] .photos-lightbox-dialog {
  width: min(1120px, calc(100% - 36px));
  height: min(780px, calc(100% - 36px));
}
.app-window[data-resizable-window="photos"] .photos-lightbox-stage {
  min-height: 0;
  height: 100%;
}

/* The other newly-resizable apps should grow with their shells as well. */
.app-window[data-resizable-window="radio"] .radio-app.radio-clean,
.app-window[data-resizable-window="wallpaper"] .wallpaper-simple-app {
  height: 100%;
  min-height: 0;
}
.app-window[data-resizable-window="settings"] .settings-center {
  height: 100%;
  min-height: 0;
}
.app-window[data-resizable-window="settings"] .settings-sidebar,
.app-window[data-resizable-window="settings"] .settings-content {
  min-height: 0;
  overflow-y: auto;
}



/* RORA v5.4.36 — all internal app windows resizable with capped scale */
.app-window.is-resizable-window[data-resizable-window="video"] {
  min-width: min(720px, calc(100% - 8px));
  min-height: min(500px, calc(100% - 8px));
}
.app-window.is-resizable-window[data-resizable-window="friends"] {
  min-width: min(620px, calc(100% - 8px));
  min-height: min(460px, calc(100% - 8px));
}
.app-window.is-resizable-window[data-resizable-window="messenger"] {
  min-width: min(680px, calc(100% - 8px));
  min-height: min(480px, calc(100% - 8px));
}
.app-window.is-resizable-window[data-resizable-window="links"] {
  min-width: min(540px, calc(100% - 8px));
  min-height: min(420px, calc(100% - 8px));
}
.app-window.is-resizable-window[data-resizable-window="info"] {
  min-width: min(500px, calc(100% - 8px));
  min-height: min(400px, calc(100% - 8px));
}
.app-window.is-resizable-window[data-resizable-window="trash"] {
  min-width: min(480px, calc(100% - 8px));
  min-height: min(380px, calc(100% - 8px));
}
/* Fill support for newly resizable window contents. */
.app-window[data-resizable-window="video"] .classic-youtube-room,
.app-window[data-resizable-window="video"] .classic-watch-layout {
  height: 100%;
  min-height: 0;
}
.app-window[data-resizable-window="friends"] .social-online-only,
.app-window[data-resizable-window="messenger"] .social-online-only {
  min-height: min(360px, 100%);
}
.app-window[data-resizable-window="links"] .quick-list,
.app-window[data-resizable-window="trash"] .quick-list,
.app-window[data-resizable-window="info"] .info-grid {
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
}
.window-resize-handle::after {
  content: "Limited";
  position: absolute;
  right: 22px;
  bottom: 0;
  padding: 4px 7px;
  border-radius: 999px;
  color: rgba(197,214,240,.72);
  background: rgba(9,13,29,.85);
  border: 1px solid rgba(112,206,234,.11);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.window-resize-handle:hover::after {
  opacity: 1;
}



/* RORA v5.4.37 — remove redundant Wallpaper desktop widget */
@media (min-width: 901px) {
  .desktop-widget-board {
    width: min(1060px, calc(100% - 72px)) !important;
    grid-template-columns: 1.12fr .92fr 1.1fr 1.14fr !important;
  }
}



/* RORA v5.4.38 — YouTube opens maximized while retaining Watch Party controls */
.app-window.is-app-maximized {
  left: 4px !important;
  top: 4px !important;
  width: calc(100% - 8px) !important;
  height: calc(100% - 8px) !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 22px;
}
.app-window.is-app-maximized .window-resize-handle {
  display: none !important;
}
.window-actions .window-action.maximize::before {
  width: 15px !important;
  height: 12px !important;
  border: 2px solid currentColor !important;
  border-radius: 3px !important;
  background: transparent !important;
}
.window-actions .window-action.maximize.is-restore::before {
  width: 12px !important;
  height: 10px !important;
  left: calc(50% + 2px) !important;
  top: calc(50% + 2px) !important;
}
.window-actions .window-action.maximize.is-restore::after {
  content: "" !important;
  position: absolute !important;
  width: 12px !important;
  height: 10px !important;
  left: calc(50% - 3px) !important;
  top: calc(50% - 3px) !important;
  transform: translate(-50%, -50%) !important;
  border: 2px solid currentColor !important;
  border-radius: 3px !important;
  background: rgba(19,25,52,.88) !important;
}
.app-window.is-app-maximized[data-app-window="video"] .classic-youtube-room,
.app-window.is-app-maximized[data-app-window="video"] .classic-watch-layout {
  height: 100%;
  min-height: 0;
}



/* RORA v5.4.39 — merged Time & Weather desktop widget */
@media (min-width: 901px) {
  .desktop-widget-board {
    width: min(1080px, calc(100% - 72px)) !important;
    grid-template-columns: 1fr 1.55fr 1.1fr !important;
    gap: 14px !important;
  }
}
.widget-skyline {
  position: relative;
  overflow: hidden;
  display: grid !important;
  grid-template-rows: auto auto auto;
  gap: 9px;
  min-height: 120px !important;
  background:
    radial-gradient(circle at 92% -14%, rgba(72,208,236,.22), transparent 41%),
    radial-gradient(circle at 8% 122%, rgba(118,84,236,.24), transparent 42%),
    linear-gradient(116deg, rgba(14,20,49,.84), rgba(14,31,58,.78)) !important;
  border-color: rgba(101,199,232,.20) !important;
}
.widget-skyline::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(97,212,233,.48), rgba(152,105,244,.34), transparent);
}
.skyline-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.skyline-widget-head .widget-kicker {
  margin: 0;
}
.skyline-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62efca;
  box-shadow: 0 0 10px rgba(98,239,202,.82);
}
.skyline-widget-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
}
.skyline-clock-block {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.widget-skyline .widget-clock-time {
  color: #f5f7ff;
  font-size: 2.1rem;
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 780;
}
.widget-skyline .widget-clock-date {
  margin-top: 0;
  color: rgba(210,220,249,.75);
  font-size: .74rem;
  font-weight: 550;
}
.skyline-weather-chip {
  flex: 0 0 auto;
  min-height: 54px;
  padding: 6px 12px 6px 7px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 18px;
  border: 1px solid rgba(105,212,236,.21);
  background: linear-gradient(135deg, rgba(52,113,193,.22), rgba(48,192,196,.11));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.widget-skyline .weather-icon {
  width: 41px;
  height: 41px;
  border-radius: 13px;
  font-size: 1.25rem;
  background: linear-gradient(145deg, rgba(83,191,255,.27), rgba(138,91,251,.24));
}
.skyline-weather-chip strong {
  color: #f4f7ff;
  font-size: 1.42rem;
  line-height: 1;
  letter-spacing: -.04em;
}
.skyline-weather-meta {
  position: relative;
  margin: 0 !important;
  padding-left: 14px;
  color: rgba(207,221,249,.75) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .72rem !important;
}
.skyline-weather-meta::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: rgba(94,202,234,.72);
}
@media (max-width: 900px) {
  .desktop-widget-board {
    grid-template-columns: 1fr !important;
  }
  .widget-skyline {
    min-width: 0;
  }
}



/* RORA v5.4.40 — YouTube standalone portal, matching private-app focus view */
.desktop-app.is-youtube-portal {
  padding: 0 !important;
  background:
    radial-gradient(circle at 76% 88%, rgba(190,70,164,.12), transparent 34%),
    radial-gradient(circle at 22% 12%, rgba(71,103,217,.17), transparent 38%),
    #080b18 !important;
}
.desktop-app.is-youtube-portal .menubar,
.desktop-app.is-youtube-portal .desktop-stage,
.desktop-app.is-youtube-portal .dock-wrap,
.desktop-app.is-youtube-portal .notification-center {
  display: none !important;
}
.desktop-app.is-youtube-portal #desktopWallpaperLayer {
  opacity: .16 !important;
  filter: brightness(.34) saturate(.7) !important;
}
.desktop-app.is-youtube-portal .window-host {
  inset: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}
.desktop-app.is-youtube-portal .app-window.is-app-maximized[data-app-window="video"] {
  left: 50% !important;
  top: 10px !important;
  width: min(1460px, calc(100% - 28px)) !important;
  height: calc(100% - 20px) !important;
  transform: translateX(-50%) !important;
  border-radius: 24px !important;
  border-color: rgba(105,212,236,.17) !important;
  background: rgba(12,16,34,.95) !important;
  box-shadow: 0 30px 110px rgba(0,0,0,.56), inset 0 1px 0 rgba(255,255,255,.05) !important;
}
.desktop-app.is-youtube-portal .app-window[data-app-window="video"] .window-header {
  min-height: 66px !important;
  padding: 12px 18px !important;
  background: rgba(3,5,12,.88) !important;
  border-bottom: 1px solid rgba(255,255,255,.065) !important;
}
.desktop-app.is-youtube-portal .app-window[data-app-window="video"] .window-header h3 {
  font-size: 1.04rem !important;
}
.desktop-app.is-youtube-portal .app-window[data-app-window="video"] .window-header p {
  font-size: .78rem !important;
}
.desktop-app.is-youtube-portal .app-window[data-app-window="video"] .window-action.minimize {
  display: none !important;
}
.desktop-app.is-youtube-portal .app-window[data-app-window="video"] .window-action.maximize {
  color: rgba(224,234,255,.9) !important;
  background: rgba(87,178,201,.10) !important;
  border-color: rgba(94,203,226,.20) !important;
}
.desktop-app.is-youtube-portal .app-window[data-app-window="video"] .window-body {
  padding: 14px !important;
}
.desktop-app.is-youtube-portal .app-window[data-app-window="video"] .classic-youtube-room,
.desktop-app.is-youtube-portal .app-window[data-app-window="video"] .classic-watch-layout {
  height: 100% !important;
  min-height: 0 !important;
}
body.youtube-portal-active {
  overflow: hidden;
}
@media (max-width: 900px) {
  .desktop-app.is-youtube-portal .app-window.is-app-maximized[data-app-window="video"] {
    top: 4px !important;
    width: calc(100% - 8px) !important;
    height: calc(100% - 8px) !important;
    border-radius: 18px !important;
  }
}



/* RORA v5.4.41 — Photos Wallpapers are a live source inside Wallpaper */
.wallpaper-linked-library .wallpaper-gallery-section {
  display: grid;
  gap: 15px;
}
.wallpaper-gallery-group {
  display: grid;
  gap: 9px;
}
.wallpaper-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  color: rgba(201,216,246,.82);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.wallpaper-group-title small {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: rgba(212,226,250,.72);
  background: rgba(255,255,255,.05);
  font-size: .66rem;
}
.wallpaper-photo-library {
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.065);
}
.wallpaper-photo-thumb img {
  object-fit: cover;
}
.wallpaper-photo-empty {
  min-height: 70px;
  display: grid;
  place-content: center;
  gap: 4px;
  padding: 10px;
  border-radius: 13px;
  border: 1px dashed rgba(112,206,234,.16);
  color: var(--text-muted);
  text-align: center;
}
.wallpaper-photo-empty strong {
  color: rgba(232,239,255,.88);
  font-size: .8rem;
}
.wallpaper-photo-empty span {
  font-size: .7rem;
}
.wallpaper-photo-status {
  min-height: 0;
  margin: 0;
  font-size: .7rem;
}
.wallpaper-photo-status:empty {
  display: none;
}



/* RORA v5.4.43 — Access controls merged into Security */
.settings-security-merged {
  min-height: 0;
}
.settings-security-access {
  display: grid;
  gap: 14px;
  margin-top: 2px;
}
.settings-security-access .settings-access-grid {
  margin-top: 0;
}
.settings-security-access .settings-access-choice {
  padding: 14px 17px;
}



/* RORA v5.4.44 — Screen Access framed glass card inside Security */
.settings-security-access-card {
  position: relative;
  margin-top: 20px;
  padding: 19px 18px 18px;
  border: 1px solid rgba(104, 210, 236, .18);
  border-radius: 21px;
  background:
    radial-gradient(circle at 100% 0%, rgba(91, 199, 224, .075), transparent 34%),
    linear-gradient(135deg, rgba(39, 49, 86, .28), rgba(10, 14, 34, .22));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    0 12px 30px rgba(0, 0, 0, .08);
}
.settings-security-access-card > .settings-divider {
  display: none;
}
.settings-security-access-card h4 {
  margin: 0 0 13px;
  color: var(--text);
  font-size: 1rem;
}
.settings-security-access-card .settings-hint {
  margin: 0 0 16px;
  line-height: 1.48;
}
.settings-security-access-card .settings-access-grid {
  gap: 11px;
}
.settings-security-access-card .settings-access-choice {
  border-color: rgba(123, 159, 218, .16);
  background: rgba(10, 14, 35, .25);
}
.settings-security-access-card .settings-access-choice.selected {
  border-color: rgba(81, 211, 232, .52);
  background:
    linear-gradient(100deg, rgba(44, 112, 160, .23), rgba(45, 75, 116, .18)),
    rgba(12, 18, 40, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}
.settings-security-access-card .settings-warning {
  margin: 15px 0 0;
}



/* RORA v5.4.49 — local file imports and integrated Browser app */
.rora-hidden-file {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.photos-file-field {
  position: relative;
  gap: 7px !important;
}
.rora-file-picker {
  width: 100%;
  min-height: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 11px;
  border: 1px solid rgba(97,210,235,.25);
  background: linear-gradient(135deg, rgba(78,120,247,.26), rgba(50,202,203,.15));
  color: rgba(232,241,255,.96);
  font-size: .75rem;
  font-weight: 700;
}
.rora-file-picker:hover {
  border-color: rgba(97,210,235,.43);
  background: linear-gradient(135deg, rgba(78,120,247,.34), rgba(50,202,203,.23));
}
.rora-file-name {
  min-width: 0;
  display: block;
  overflow: hidden;
  color: rgba(193,207,235,.68);
  font-size: .63rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.settings-file-picker-field {
  position: relative;
  gap: 11px;
}
.settings-file-picker-field small {
  color: rgba(201,214,239,.70);
  font-size: .73rem;
}
.settings-import-file {
  align-self: flex-start;
}
.dock-button[data-app="links"] .dock-badge {
  background: linear-gradient(180deg,#55e7e9 0%,#20b9cb 43%,#1277a7 100%) !important;
}
.rora-browser-app {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 4px;
}
.browser-toolbar {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid rgba(105,211,236,.13);
  background: rgba(11,15,34,.54);
}
.browser-dots {
  display: flex;
  gap: 6px;
  padding: 0 4px;
}
.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.browser-dots span:nth-child(1) { background:#ff667e; }
.browser-dots span:nth-child(2) { background:#ffca63; }
.browser-dots span:nth-child(3) { background:#4ce2bc; }
.browser-address {
  min-width: 0;
  display: grid;
  grid-template-columns: 27px minmax(0,1fr) auto;
  align-items: center;
  min-height: 40px;
  padding: 3px 4px 3px 7px;
  border-radius: 12px;
  border: 1px solid rgba(119,166,221,.13);
  background: rgba(3,7,18,.55);
}
.browser-address:focus-within {
  border-color: rgba(94,207,235,.33);
}
.browser-security {
  display: grid;
  place-items: center;
  color: #71e5d8;
  font-size: .92rem;
}
.browser-address input {
  min-width: 0;
  height: 35px;
  border: 0;
  outline: 0;
  color: rgba(226,237,255,.92);
  background: transparent;
  font-size: .76rem;
}
.browser-address .action-button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
}
.browser-open-external {
  min-height: 40px;
  padding: 0 14px;
}
.browser-favorites {
  display: flex;
  gap: 7px;
  align-items: center;
  overflow-x: auto;
  padding: 1px 2px 3px;
}
.browser-home-chip,
.browser-site-chip {
  min-height: 38px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid rgba(116,168,216,.12);
  color: rgba(215,227,249,.86);
  background: rgba(255,255,255,.042);
  font-size: .7rem;
  font-weight: 650;
}
.browser-home-chip:hover,
.browser-site-chip:hover {
  border-color: rgba(95,206,233,.27);
  background: rgba(74,178,204,.12);
}
.browser-site-chip img {
  width: 21px;
  height: 21px;
  border-radius: 6px;
  object-fit: contain;
}
.browser-stage {
  min-height: 0;
  overflow: hidden;
  border-radius: 19px;
  border: 1px solid rgba(104,197,227,.12);
  background:
    radial-gradient(circle at 50% 0%, rgba(54,120,182,.12), transparent 38%),
    rgba(5,8,19,.60);
}
.browser-frame-head {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(221,232,253,.88);
}
.browser-frame-head small {
  margin-left: auto;
  color: rgba(187,203,232,.62);
}
.browser-page-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #54e0c2;
  box-shadow: 0 0 8px rgba(84,224,194,.7);
}
.browser-frame {
  width: 100%;
  height: calc(100% - 36px);
  border: 0;
  background: #fff;
}
.browser-start {
  height: 100%;
  display: grid;
  place-content: center;
  gap: 13px;
  padding: 23px;
  text-align: center;
}
.browser-start-logo {
  width: 68px;
  height: 68px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(180deg,#55e7e9,#147cae);
  box-shadow: 0 18px 40px rgba(14,135,180,.24), inset 0 1px 0 rgba(255,255,255,.26);
}
.browser-start-logo .app-icon-svg,
.browser-start-logo svg {
  width: 48px;
  height: 48px;
}
.browser-start h3 {
  margin: 0;
  color: #f3f6ff;
  font-size: 1.25rem;
}
.browser-start p {
  max-width: 490px;
  margin: 0 auto 6px;
  color: rgba(191,207,236,.74);
  font-size: .79rem;
  line-height: 1.5;
}
.browser-start-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.browser-start-tile {
  width: 128px;
  min-height: 94px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border-radius: 15px;
  border: 1px solid rgba(112,199,228,.12);
  background: rgba(255,255,255,.044);
  color: rgba(232,240,255,.94);
}
.browser-start-tile:hover {
  border-color: rgba(95,206,233,.29);
  background: rgba(69,173,203,.12);
}
.browser-start-tile img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
}
.browser-start-tile strong {
  font-size: .73rem;
}
.browser-start-tile small {
  color: rgba(186,203,230,.66);
  font-size: .61rem;
}
.browser-status {
  margin: 0;
  padding: 2px 6px;
  color: rgba(193,210,237,.64);
  font-size: .67rem;
}
.browser-status.error {
  color: #ff9ab6;
}
@media (max-width: 800px) {
  .browser-toolbar {
    grid-template-columns: 1fr;
  }
  .browser-dots {
    display: none;
  }
}



/* RORA v5.4.51 — Browser blocked-preview fallback */
.browser-blocked-preview {
  height: 100%;
  min-height: 320px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(79,191,218,.14), transparent 34%),
    radial-gradient(circle at 78% 86%, rgba(184,80,170,.10), transparent 34%),
    rgba(4,7,18,.72);
}
.browser-blocked-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 1px solid rgba(108,213,236,.20);
  background: linear-gradient(145deg, rgba(61,119,201,.28), rgba(43,201,205,.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 18px 48px rgba(0,0,0,.24);
}
.browser-blocked-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
}
.browser-blocked-icon svg,
.browser-blocked-icon .app-icon-svg {
  width: 50px;
  height: 50px;
}
.browser-blocked-kicker {
  margin: 4px 0 0;
  color: #7fe9ff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.browser-blocked-preview h3 {
  margin: 0;
  color: #f4f7ff;
  font-size: 1.26rem;
}
.browser-blocked-preview p:not(.browser-blocked-kicker) {
  max-width: 480px;
  margin: 0;
  color: rgba(198,212,240,.74);
  font-size: .82rem;
  line-height: 1.55;
}
.browser-blocked-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
}
.browser-blocked-preview small {
  max-width: min(620px, 90%);
  overflow: hidden;
  color: rgba(182,199,229,.52);
  font-size: .64rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.browser-status.success {
  color: #82eedb;
}



/* RORA v5.4.52 — Native Second Life browser handoff */
.browser-blocked-actions .action-button.primary {
  min-width: 158px;
}
.browser-blocked-actions .action-button {
  min-height: 42px;
}
.browser-status.success {
  color: #82eedb;
}



/* RORA v5.4.53 — robust PNG import and local profile mirror */
.settings-file-picker-field small {
  max-width: 100%;
  line-height: 1.35;
}



/* RORA v5.4.54 — Second Life Native Media Browser wording */
.browser-blocked-actions #browserOpenOnScreen,
.browser-blocked-actions #browserLaunchFullPage {
  min-width: 218px;
}


/* v5.4.59 — synced radio widget controls */
.widget-radio-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.widget-radio-button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(255,255,255,.09);
  color: #f3f6ff;
  font-weight: 800;
  cursor: pointer;
}
.widget-radio-button.text {
  width: auto;
  min-width: 58px;
  padding: 0 12px;
  font-size: .72rem;
}
.widget-radio-button:disabled {
  opacity: .42;
  cursor: default;
}


/* v5.4.61 — radio widget visualizer */
.widget-radio-shell {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.widget-radio-visualizer {
  min-height: 32px;
  gap: 3px;
  justify-content: flex-end;
  flex: 0 0 auto;
  opacity: .72;
}
.widget-radio-visualizer span {
  width: 4px;
  height: 10px;
}
.widget-radio-controls {
  margin-top: 0;
  flex-wrap: wrap;
}


/* v5.4.63 — desktop widgets keep independent height */
.desktop-widget-board {
  align-items: start;
}
.desktop-widget {
  align-self: start;
}


/* v5.4.65 — equal-height widgets, wave excluded from height */
.desktop-widget-board {
  align-items: stretch;
}
.desktop-widget {
  align-self: stretch;
}
.widget-media {
  position: relative;
}
.widget-radio-shell {
  position: relative;
  min-height: 36px;
  margin-top: 12px;
  padding-left: 74px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.widget-radio-visualizer {
  position: absolute;
  left: 0;
  bottom: 0;
  min-height: 30px;
  gap: 3px;
  justify-content: flex-start;
  flex: 0 0 auto;
  opacity: .72;
}
.widget-radio-visualizer span {
  width: 4px;
  height: 10px;
}
.widget-radio-controls {
  margin-top: 0;
  flex-wrap: nowrap;
  margin-left: auto;
}


/* v5.4.90 — blurred public shell for Friends/Messages soft-sync */
.social-privacy-blur {
  display: grid;
  gap: 14px;
  min-height: min(420px, 100%);
}
.social-privacy-blur h3 {
  margin-bottom: 0;
}
.social-privacy-blur p {
  max-width: 620px;
}
.social-blur-preview {
  display: grid;
  grid-template-columns: minmax(130px, 32%) 1fr;
  gap: 12px;
  min-height: 190px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.055);
  overflow: hidden;
  filter: blur(3px) saturate(.72);
  pointer-events: none;
  user-select: none;
}
.social-blur-sidebar,
.social-blur-main {
  display: grid;
  gap: 9px;
  align-content: start;
}
.social-blur-sidebar span,
.social-blur-main span {
  min-height: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.2), rgba(120,170,255,.16), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.08);
}
.social-blur-main span {
  min-height: 38px;
  border-radius: 18px;
}
.social-blur-main span:nth-child(2) { width: 74%; }
.social-blur-main span:nth-child(3) { width: 88%; justify-self: end; }
.social-blur-main span:nth-child(4) { width: 62%; }


/* v5.4.91 — hard privacy shell for synced Friends/Messages scenes */
.social-private-shell {
  display: grid;
  gap: 14px;
  min-height: min(470px, 100%);
}
.social-private-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.social-private-header h3 {
  margin: 3px 0 4px;
}
.social-private-header p {
  margin: 0;
  color: var(--text-soft);
}
.social-blur-window {
  position: relative;
  min-height: 300px;
  border-radius: 24px;
  border: 1px solid rgba(120,170,255,.16);
  background: linear-gradient(180deg, rgba(9,15,34,.92), rgba(10,16,38,.74));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.social-blur-tabs {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.social-blur-tabs span {
  width: 78px;
  height: 22px;
  border-radius: 999px;
  background: rgba(115,160,255,.16);
}
.social-blur-window .social-blur-preview {
  margin: 14px;
  min-height: 220px;
  filter: blur(7px) saturate(.55) brightness(.75);
}
.social-privacy-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 7px;
  padding: 24px;
  background: radial-gradient(circle at center, rgba(11,17,40,.56), rgba(11,17,40,.22));
  pointer-events: none;
}
.social-privacy-overlay strong {
  color: rgba(245,248,255,.95);
  font-size: 1.1rem;
}
.social-privacy-overlay small {
  color: rgba(220,232,255,.72);
}


/* v5.4.92 — owner-private button inside blurred social shell */
.social-privacy-overlay .social-open-private {
  margin-top: 14px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: .72rem;
  pointer-events: auto;
}


/* RORA v5.4.98 — YouTube clean header + synced fullscreen mode */
.classic-cinema-toolbar {
  justify-content: flex-end;
}
.classic-cinema-toolbar .classic-back-button {
  display: none !important;
}
