@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #090806;
  --surface: #130f0c;
  --surface-2: #1d1510;
  --surface-3: #2a1b14;
  --line: rgba(201, 132, 119, .18);
  --muted: #a88f88;
  --text: #f2eee5;
  --accent: #e42227;
  --accent-2: #ca8679;
  --blue: #b66f65;
  --danger: #ff4b4f;
  --success: #d2a38f;
  --shadow: 0 28px 90px rgba(0, 0, 0, .52);
  font-family: "DM Sans", system-ui, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #faf3ec;
  --surface: #ffffff;
  --surface-2: #f5ece1;
  --surface-3: #ede0d0;
  --line: rgba(154, 82, 68, .16);
  --muted: #8a6b60;
  --text: #241611;
  --accent: #d21f24;
  --accent-2: #a6564a;
  --blue: #8a4a41;
  --danger: #c81f24;
  --success: #a6564a;
  --shadow: 0 28px 90px rgba(90, 62, 48, .16);
}

:root[data-theme="christmas"] {
  color-scheme: dark;
  --bg: #0b1710;
  --surface: #10231a;
  --surface-2: #163a26;
  --surface-3: #1f4d31;
  --line: rgba(201, 164, 92, .22);
  --muted: #9fb8a7;
  --text: #f3f6ef;
  --accent: #d1373d;
  --accent-2: #c9a45c;
  --blue: #3f7d5c;
  --danger: #ff5b57;
  --success: #c9a45c;
  --shadow: 0 28px 90px rgba(0, 0, 0, .5), 0 0 50px rgba(201, 164, 92, .07);
}

.theme-snow { display: none; position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
:root[data-theme="christmas"] .theme-snow { display: block; }
.theme-snow span {
  position: absolute;
  top: -24px;
  left: var(--x);
  width: 1em;
  height: 1em;
  color: rgba(246, 251, 248, var(--op));
  font-size: var(--size);
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 7px rgba(255,255,255,.28);
  animation: theme-snow-fall var(--dur) linear var(--delay) infinite;
}
.theme-snow span::before { content: "❄"; }
.theme-snow span:nth-child(4n)::before { content: "❅"; }
.theme-snow span:nth-child(7n)::before { content: "❆"; }
@keyframes theme-snow-fall { to { transform: translate(var(--drift), 112vh); } }
@media (prefers-reduced-motion: reduce) { .theme-snow { display: none !important; } }
#app, #toast-region { position: relative; z-index: 1; }

.theme-lights { display: none; position: relative; z-index: 8; height: 22px; overflow: hidden; background: linear-gradient(180deg, #050807, #07110b); border-bottom: 1px solid rgba(201,164,92,.16); box-shadow: 0 7px 22px rgba(0,0,0,.26); }
:root[data-theme="christmas"] .theme-lights { display: block; }
.theme-lights::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: rgba(223,207,170,.38); }
.theme-lights span { position: absolute; top: 4px; width: 9px; height: 11px; margin-left: -4.5px; border-radius: 45% 45% 55% 55%; background: currentColor; box-shadow: 0 0 7px 2px currentColor, 0 0 16px color-mix(in srgb, currentColor 55%, transparent); animation: theme-light-twinkle 2.6s ease-in-out infinite; }
.theme-lights span::after { content: ""; position: absolute; top: -4px; left: 3.5px; width: 2px; height: 4px; background: rgba(0,0,0,.5); }
@keyframes theme-light-twinkle { 0%, 100% { opacity: .5; filter: brightness(.8); } 50% { opacity: 1; filter: brightness(1.35); } }
@media (prefers-reduced-motion: reduce) { .theme-lights span { animation: none; opacity: .9; } }

:root[data-theme="christmas"] body {
  background:
    radial-gradient(circle at 82% -8%, rgba(209,55,61,.18), transparent 31rem),
    radial-gradient(circle at 0 42%, rgba(78,137,94,.13), transparent 30rem),
    var(--bg);
}
:root[data-theme="christmas"] body::before {
  background:
    linear-gradient(rgba(201,164,92,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,164,92,.025) 1px, transparent 1px),
    radial-gradient(circle at 76% -10%, rgba(209,55,61,.11), transparent 30%),
    radial-gradient(circle at -10% 40%, rgba(78,137,94,.09), transparent 28%);
  background-size: 42px 42px, 42px 42px, auto, auto;
}
:root[data-theme="christmas"] .brand-mark {
  border-color: rgba(201,164,92,.42);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 0 22px rgba(201,164,92,.12);
}
:root[data-theme="christmas"] .brand > span:last-child {
  text-shadow: 0 0 24px rgba(201,164,92,.10);
}
:root[data-theme="christmas"] .nav-account-trigger,
:root[data-theme="christmas"] .nav-account-panel {
  border-color: rgba(201,164,92,.25);
  background: rgba(9,24,15,.88);
}
:root[data-theme="christmas"] .hero-orbit {
  border-color: rgba(201,164,92,.22);
  box-shadow: 0 0 0 56px rgba(78,137,94,.018), 0 0 0 112px rgba(209,55,61,.012);
}
:root[data-theme="christmas"] .hero-orbit::after {
  background: radial-gradient(circle, rgba(209,55,61,.19), rgba(78,137,94,.06) 42%, transparent 68%);
}
:root[data-theme="christmas"] .feature-card,
:root[data-theme="christmas"] .card {
  border-color: rgba(201,164,92,.22);
  background:
    linear-gradient(145deg, rgba(18,45,29,.89), rgba(8,22,14,.92));
  box-shadow: 0 20px 55px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.018);
}
:root[data-theme="christmas"] .feature-icon {
  color: #efd890;
  background: linear-gradient(145deg, rgba(209,55,61,.15), rgba(201,164,92,.10));
  box-shadow: 0 0 0 1px rgba(201,164,92,.16);
}
:root[data-theme="christmas"] .countdown-card {
  border-color: rgba(201,164,92,.30);
  background:
    radial-gradient(circle at 92% 0, rgba(209,55,61,.15), transparent 23rem),
    linear-gradient(120deg, rgba(78,137,94,.14), rgba(11,29,18,.96) 48%, rgba(201,164,92,.08));
}
:root[data-theme="christmas"] .countdown-tile {
  border-color: rgba(201,164,92,.24);
  background: rgba(22,58,38,.82);
}
:root[data-theme="christmas"] .countdown-tile strong {
  color: #f0c9c7;
}
:root[data-theme="christmas"] .auth-art {
  background:
    radial-gradient(circle at 16% 20%, rgba(78,137,94,.15), transparent 32rem),
    radial-gradient(circle at 72% 70%, rgba(209,55,61,.16), transparent 28rem),
    linear-gradient(145deg, rgba(201,164,92,.06), transparent 44%);
}
:root[data-theme="christmas"] .sidebar {
  border-right-color: rgba(201,164,92,.20);
  background:
    radial-gradient(circle at 30% 0, rgba(209,55,61,.10), transparent 16rem),
    rgba(8,22,14,.94);
}
:root[data-theme="christmas"] .side-nav a.active {
  color: #f2d6d3;
  background: linear-gradient(90deg, rgba(209,55,61,.15), rgba(201,164,92,.07));
}
:root[data-theme="christmas"] .button {
  background: linear-gradient(135deg, #d1373d, #b92d33);
}
:root[data-theme="christmas"] .button.secondary,
:root[data-theme="christmas"] .button.ghost {
  color: var(--text);
  background: rgba(18,48,31,.75);
}
:root[data-theme="christmas"] .shell > .nav {
  border-bottom: 1px solid rgba(201,164,92,.12);
}
:root[data-theme="christmas"] .hero-copy .eyebrow,
:root[data-theme="christmas"] .section-head .eyebrow {
  color: #d9bc72;
}
:root[data-theme="christmas"] .feature-card,
:root[data-theme="christmas"] .countdown-card,
:root[data-theme="christmas"] .profile-spotlight,
:root[data-theme="christmas"] .wallpaper-studio-spotlight,
:root[data-theme="christmas"] .agenda-spotlight {
  position: relative;
  overflow: hidden;
}
:root[data-theme="christmas"] .feature-card::after,
:root[data-theme="christmas"] .countdown-card::after,
:root[data-theme="christmas"] .profile-spotlight::after,
:root[data-theme="christmas"] .wallpaper-studio-spotlight::after,
:root[data-theme="christmas"] .agenda-spotlight::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, #d1373d 0 24px, #f3eee4 24px 32px, #c9a45c 32px 56px, #78bf91 56px 80px);
  opacity: .62;
}

* { box-sizing: border-box; }
.sr-only, .password-manager-username { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text); }
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(circle at 76% -10%, rgba(228, 34, 39, .13), transparent 30%),
              radial-gradient(circle at -10% 40%, rgba(201, 132, 119, .08), transparent 28%);
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.shell { min-height: 100vh; }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: auto; padding: 0 26px; }
.public-site-nav {
  width: min(100% - 48px, 1360px);
  max-width: 1360px;
  min-height: 82px;
  height: auto;
  padding: 0;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font: 800 20px/1 Manrope, sans-serif; letter-spacing: -.04em; }
.brand-mark { width: 34px; height: 34px; display: block; border: 1px solid rgba(201,132,119,.25); border-radius: 9px; background: #100c09 url('/favicon-32.png?v=grbn-sharp-1') center/32px 32px no-repeat; box-shadow: inset 0 1px rgba(255,255,255,.06); image-rendering: pixelated; }
.brand-mark::after { display: none; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links > a, .nav-user { color: var(--muted); padding: 10px 13px; font-size: 14px; font-weight: 600; border-radius: 10px; }
.nav-links > a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-account { position: relative; }
.nav-account-trigger {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 9px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(20, 14, 11, .75);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.nav-account-trigger:hover,
.nav-account.is-open .nav-account-trigger {
  border-color: rgba(201, 132, 119, .38);
  background: rgba(29, 20, 15, .92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}
.nav-account-trigger:focus-visible {
  outline: 2px solid rgba(228, 34, 39, .72);
  outline-offset: 3px;
}
.nav-account-direct {
  text-decoration: none;
}
.nav-account-direct:hover {
  transform: translateY(-1px);
}
.avatar.nav-account-avatar {
  width: 34px;
  height: 34px;
  font-size: 12px;
}
.nav-account-trigger-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: left;
}
.nav-account-trigger-copy strong {
  max-width: 130px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-account-trigger-copy small {
  color: var(--quiet);
  font-size: 9px;
  font-weight: 700;
}
.nav-account-chevron {
  width: 7px;
  height: 7px;
  margin: 0 3px 3px 2px;
  border-right: 1.5px solid var(--accent-2);
  border-bottom: 1.5px solid var(--accent-2);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.nav-account.is-open .nav-account-chevron { margin-bottom: -2px; transform: rotate(225deg); }
.nav-account-panel {
  width: min(330px, calc(100vw - 28px));
  position: absolute;
  z-index: 100;
  top: calc(100% + 10px);
  right: 0;
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(201, 132, 119, .28);
  border-radius: 17px;
  background: rgba(17, 13, 10, .97);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .58);
  backdrop-filter: blur(22px);
  transform-origin: top right;
  animation: accountMenuIn .2s cubic-bezier(.2, .8, .2, 1);
}
.nav-account-panel[hidden] { display: none; }
@keyframes accountMenuIn {
  from { opacity: 0; transform: translateY(-7px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.nav-account-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.avatar.nav-account-menu-avatar {
  width: 48px;
  height: 48px;
  font-size: 15px;
}
.nav-account-profile-copy {
  min-width: 0;
  display: grid;
  flex: 1;
  gap: 2px;
}
.nav-account-profile strong,
.nav-account-profile span,
.nav-account-profile small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-account-profile strong { font: 800 14px Manrope, sans-serif; }
.nav-account-profile span { color: var(--muted); font-size: 11px; }
.nav-account-profile small {
  width: fit-content;
  margin-top: 3px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 8px;
  font-weight: 800;
}
.nav-account-profile .avatar { flex: 0 0 48px; }
.nav-account-actions {
  display: grid;
  gap: 4px;
  padding-top: 7px;
}
.nav-account-actions a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 11px;
  color: var(--text);
  text-decoration: none;
}
.nav-account-actions a:hover,
.nav-account-actions a:focus-visible {
  outline: 0;
  background: rgba(201, 132, 119, .07);
}
.nav-account-action-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--accent-2);
  background: rgba(201, 132, 119, .045);
}
.nav-account-action-icon svg { width: 17px; height: 17px; }
.nav-account-actions a > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.nav-account-actions strong { font-size: 12px; }
.nav-account-actions small {
  overflow: hidden;
  color: var(--quiet);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-account-action-arrow { color: var(--quiet); font-size: 12px; }
.role-preview-bar { position: sticky; top: 0; z-index: 90; min-height: 50px; padding: 8px clamp(16px, 4vw, 34px); display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(201,132,119,.22); background: rgba(14,10,8,.97); box-shadow: 0 10px 30px rgba(0,0,0,.24); backdrop-filter: blur(18px); }
.role-preview-bar > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.role-preview-bar strong { font-size: 12px; }
.role-preview-bar > div > span:not(.role-preview-crown):not(.role-preview-pulse) { color: var(--muted); font-size: 11px; }
.role-preview-crown { color: var(--accent-2); font-size: 11px; }
.role-preview-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(228,34,39,.1); }
.role-preview-actions select, .role-preview-actions .ui-select { width: 165px; }
.role-preview-actions .ui-select-trigger { min-height: 36px; padding-block: 6px; font-size: 12px; }
.role-preview-bar.active { border-color: rgba(228,34,39,.35); background: rgba(31,12,10,.97); }
.role-preview-visible .sidebar { top: 50px; height: calc(100vh - 50px); }
.role-preview-card { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-color: rgba(201,132,119,.22); background: linear-gradient(135deg, rgba(201,132,119,.08), rgba(255,255,255,.015)); }
.role-preview-card h2 { margin: 4px 0 7px; }
.role-preview-card p { max-width: 620px; font-size: 13px; line-height: 1.55; }
.role-preview-card .role-preview-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.owner-storage-card { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.owner-storage-card h2 { margin: 4px 0 7px; }
.owner-storage-card p { font-size: 13px; }
.owner-storage-card .storage-limit-fields { flex: 0 0 auto; }

.seasonal-theme-card { margin-bottom: 18px; }
.seasonal-theme-card h2 { margin: 4px 0 7px; }
.seasonal-theme-card p { font-size: 13px; margin-bottom: 16px; }
.seasonal-mode-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.seasonal-mode-option { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s, transform .15s; }
.seasonal-mode-option:hover { transform: translateY(-2px); border-color: var(--accent-2); }
.seasonal-mode-option.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.seasonal-mode-option strong { font-size: 13px; }
.seasonal-mode-option span { color: var(--muted); font-size: 11px; line-height: 1.5; }

.seasonal-countdown-preview-card { margin-bottom: 18px; }
.seasonal-countdown-preview-card h2 { margin: 4px 0 7px; }
.seasonal-countdown-preview-card > div > p { font-size: 13px; margin-bottom: 18px; }
.countdown-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.countdown-preview-item { display: flex; flex-direction: column; gap: 10px; }
.countdown-preview-item .countdown-card { padding: 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
.countdown-preview-item .countdown-heading { font-size: 17px; }
.countdown-preview-item .countdown-tiles { gap: 8px; }
.countdown-preview-item .countdown-tile { min-width: 0; flex: 1 1 0; padding: 10px 4px; }
.countdown-preview-item .countdown-tile strong { font-size: 18px; }
.countdown-preview-actions { display: flex; gap: 8px; }
.countdown-preview-actions .button { flex: 1 1 0; min-width: 0; }
@media (max-width: 900px) {
  .countdown-preview-grid { grid-template-columns: 1fr; }
}
.account-data-card > p { margin-bottom: 16px; font-size: 13px; }
.danger-zone { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,111,120,.2); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.danger-zone strong { color: #ff9299; }
.danger-zone p { margin-top: 5px; font-size: 12px; }
.delete-account-actions { display: flex; align-items: center; gap: 8px; }
.delete-account-actions input { width: 210px; }
.button { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 17px; min-height: 43px; border-radius: 11px; background: var(--accent); color: #fff8ee; font-weight: 700; transition: transform .15s, background .15s, border-color .15s; }
.button:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 85%, white); }
.button.secondary { background: transparent; border: 1px solid var(--line); color: var(--text); }
.button.secondary:hover { background: rgba(255,255,255,.05); }
.button.ghost { background: transparent; color: var(--muted); padding-inline: 10px; }
.button.danger { background: rgba(255,111,120,.12); color: #ff9299; border: 1px solid rgba(255,111,120,.22); }
.button.small { min-height: 34px; padding: 7px 11px; border-radius: 8px; font-size: 13px; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.hero { max-width: 1180px; min-height: 680px; margin: auto; padding: 110px 26px 80px; position: relative; overflow: hidden; }
.hero-orbit { position: absolute; right: -100px; top: 40px; width: 590px; height: 590px; border: 1px solid color-mix(in srgb, var(--accent-2) 28%, transparent); border-radius: 50%; }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; border: 1px solid color-mix(in srgb, var(--accent-2) 30%, transparent); border-radius: 50%; inset: 75px; }
.hero-orbit::after { inset: 160px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 20%, transparent), transparent 65%); }
:root[data-theme="christmas"] .button { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-2) 45%, transparent), 0 6px 18px color-mix(in srgb, var(--accent-2) 20%, transparent); }
.hero-copy { max-width: 710px; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 800 clamp(54px, 9vw, 108px)/.91 Manrope, sans-serif; letter-spacing: -.075em; margin: 27px 0 32px; }
h1 span { color: var(--muted); }
.hero-copy > p { max-width: 610px; color: var(--muted); font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.hero-note { display: flex; align-items: center; gap: 9px; color: #765e57; font-size: 13px; margin-top: 25px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 25%, transparent); }

.section { max-width: 1180px; margin: auto; padding: 110px 26px; }
.section-head { max-width: 650px; margin-bottom: 50px; }
.section h2 { font: 700 clamp(36px, 5vw, 58px)/1.05 Manrope, sans-serif; letter-spacing: -.055em; margin: 16px 0; }
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.feature-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 14px; }
.feature-card { padding: 30px; min-height: 270px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(29,21,16,.88), rgba(12,9,7,.88)); }
.feature-card:first-child { grid-row: span 2; min-height: 554px; }
.feature-icon { width: 41px; height: 41px; border-radius: 12px; display: grid; place-items: center; background: rgba(228,34,39,.1); color: var(--accent); font-weight: 800; margin-bottom: 80px; }
.feature-card:first-child .feature-icon { margin-bottom: 260px; }
.feature-card h3 { font: 700 21px Manrope; margin-bottom: 10px; }
.feature-card p { color: var(--muted); line-height: 1.6; margin: 0; }
.guides-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; transition: opacity .2s; }
.guides-grid.is-turning { opacity: 0; }
.guides-dots { display: flex; justify-content: center; gap: 7px; margin-top: 22px; }
.guides-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .2s, transform .2s; }
.guides-dot.is-active { background: var(--accent); transform: scale(1.25); }
.guide-card { display: block; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(29,21,16,.88), rgba(12,9,7,.88)); transition: transform .15s, border-color .15s; }
.guide-card:hover { transform: translateY(-3px); border-color: var(--accent-2); }
.guide-card-status { display: flex; align-items: center; gap: 8px; color: #765e57; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.guide-card-status .status-dot { background: #6d5650; box-shadow: none; }
.guide-card.is-online .status-dot { background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 25%, transparent); }
.guide-card h3 { font: 700 21px Manrope; margin-bottom: 6px; }
.guide-card p { color: var(--muted); margin: 0 0 22px; }
.guide-card-cta { color: var(--accent); font-weight: 700; font-size: 14px; display: inline-flex; gap: 6px; }
.guides-status { color: var(--muted); font-size: 15px; }
.guides-status a { color: var(--accent-2); }
.guides-footer { margin-top: 26px; }
.profile-spotlight-section { padding-top: 24px; padding-bottom: 112px; }
.profile-spotlight {
  min-height: 500px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
  align-items: center;
  gap: clamp(36px, 7vw, 100px);
  padding: clamp(42px, 6vw, 78px);
  border: 1px solid rgba(201,132,119,.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 15%, rgba(228,34,39,.13), transparent 30%),
    linear-gradient(125deg, rgba(24,16,12,.94), rgba(10,8,7,.9) 56%, rgba(25,14,12,.88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.profile-spotlight::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 480px;
  height: 480px;
  left: -230px;
  bottom: -300px;
  border: 1px solid rgba(201,132,119,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(201,132,119,.025), 0 0 0 144px rgba(201,132,119,.018);
}
.profile-spotlight-copy { position: relative; z-index: 2; max-width: 590px; }
.profile-spotlight-copy h2 { margin: 18px 0 20px; font-size: clamp(42px, 5.3vw, 76px); line-height: .96; letter-spacing: -.06em; }
.profile-spotlight-copy > p { max-width: 540px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.profile-spotlight-identity { width: fit-content; margin: 30px 0 24px; display: flex; align-items: center; gap: 13px; padding: 10px 14px 10px 10px; border: 1px solid rgba(201,132,119,.18); border-radius: 15px; background: rgba(8,7,6,.42); }
.profile-spotlight-identity img { width: 48px; height: 48px; border: 1px solid rgba(201,132,119,.22); border-radius: 12px; background: #0d0a08; image-rendering: pixelated; }
.profile-spotlight-identity span { display: grid; gap: 3px; }
.profile-spotlight-identity strong { font: 800 13px Manrope, sans-serif; }
.profile-spotlight-identity small { color: var(--quiet); font-size: 10px; }
.profile-spotlight-link { width: fit-content; }
.profile-spotlight-visual { min-height: 360px; position: relative; display: grid; place-items: center; }
.profile-spotlight-orbit {
  position: absolute;
  width: min(34vw, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(201,132,119,.19);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(201,132,119,.025), 0 0 0 120px rgba(201,132,119,.018);
}
.profile-preview-card {
  width: min(100%, 350px);
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  padding: 26px;
  border: 1px solid rgba(201,132,119,.28);
  border-radius: 23px;
  background: linear-gradient(145deg, rgba(26,17,13,.96), rgba(9,8,7,.96));
  box-shadow: 0 30px 80px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.04);
  transform: rotate(1.5deg);
}
.profile-preview-top { width: 100%; margin-bottom: 27px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--quiet); font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.profile-preview-top span { display: inline-flex; align-items: center; gap: 7px; }
.profile-preview-top i { width: 6px; height: 6px; border-radius: 50%; background: #74c48e; box-shadow: 0 0 0 4px rgba(116,196,142,.09); }
.profile-preview-top b { color: #7d5b53; font-size: inherit; }
.profile-preview-card > img { width: 88px; height: 88px; margin-bottom: 18px; border: 1px solid rgba(201,132,119,.28); border-radius: 22px; background: #0d0a08; image-rendering: pixelated; box-shadow: 0 14px 35px rgba(0,0,0,.35); }
.profile-preview-card > strong { font: 800 20px Manrope, sans-serif; letter-spacing: -.035em; }
.profile-preview-card > span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.profile-preview-tags { width: 100%; margin-top: 25px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.profile-preview-tags span { padding: 6px 8px; border: 1px solid rgba(201,132,119,.15); border-radius: 999px; color: #a9867c; background: rgba(201,132,119,.045); font-size: 8px; font-weight: 700; }

.wallpaper-studio-spotlight-section { padding-top: 12px; padding-bottom: 112px; }
.wallpaper-studio-spotlight {
  min-height: 490px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, .82fr);
  align-items: center;
  gap: clamp(38px, 7vw, 96px);
  padding: clamp(42px, 6vw, 76px);
  border: 1px solid rgba(228,34,39,.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 18%, rgba(228,34,39,.16), transparent 31%),
    radial-gradient(circle at 2% 100%, rgba(201,132,119,.09), transparent 28%),
    linear-gradient(126deg, rgba(24,15,12,.96), rgba(9,8,7,.94) 57%, rgba(25,12,11,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.wallpaper-studio-spotlight::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 440px;
  height: 440px;
  right: -260px;
  top: -280px;
  border: 1px solid rgba(228,34,39,.17);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(228,34,39,.025), 0 0 0 140px rgba(201,132,119,.016);
}
.wallpaper-studio-spotlight-copy { position: relative; z-index: 2; max-width: 590px; }
.wallpaper-studio-spotlight-copy h2 { margin: 18px 0 20px; font-size: clamp(42px, 5.2vw, 72px); line-height: .97; letter-spacing: -.06em; }
.wallpaper-studio-spotlight-copy > p { max-width: 560px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.wallpaper-studio-features { margin: 27px 0 25px; display: flex; flex-wrap: wrap; gap: 7px; }
.wallpaper-studio-features span { padding: 7px 10px; border: 1px solid rgba(201,132,119,.18); border-radius: 999px; color: #b78e83; background: rgba(201,132,119,.05); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.wallpaper-studio-spotlight-link { width: fit-content; }
.wallpaper-studio-preview {
  width: min(100%, 390px);
  position: relative;
  justify-self: center;
  padding: 17px;
  border: 1px solid rgba(201,132,119,.27);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(25,17,13,.98), rgba(8,7,6,.98));
  box-shadow: 0 34px 90px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.04);
  transform: rotate(-1.2deg);
}
.wallpaper-studio-preview-head { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #9b746a; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wallpaper-studio-preview-head span { display: inline-flex; align-items: center; gap: 7px; }
.wallpaper-studio-preview-head i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 16%, transparent); }
.wallpaper-studio-preview-head b { padding: 5px 7px; border: 1px solid rgba(228,34,39,.2); border-radius: 999px; color: #df7772; background: rgba(228,34,39,.07); font-size: 7px; }
.wallpaper-studio-preview-screen { height: 210px; position: relative; overflow: hidden; display: grid; place-items: center; border: 1px solid rgba(201,132,119,.18); border-radius: 17px; background: radial-gradient(circle at 65% 40%, rgba(228,34,39,.21), transparent 26%), linear-gradient(145deg, #160d0b, #070605 70%); }
.wallpaper-studio-preview-orbit { position: absolute; width: 190px; aspect-ratio: 1; border: 1px solid rgba(201,132,119,.18); border-radius: 50%; box-shadow: 0 0 0 35px rgba(201,132,119,.025), 0 0 0 70px rgba(228,34,39,.018); }
.wallpaper-studio-preview-mark { position: relative; z-index: 2; width: 66px; height: 66px; display: grid; place-items: center; border: 1px solid rgba(228,34,39,.35); border-radius: 18px; color: #fff3ee; background: linear-gradient(145deg, rgba(228,34,39,.38), rgba(70,22,19,.5)); box-shadow: 0 18px 40px rgba(0,0,0,.38); font: 800 28px Manrope, sans-serif; }
.wallpaper-studio-preview-job { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.wallpaper-studio-preview-job span { min-width: 0; display: grid; gap: 3px; }
.wallpaper-studio-preview-job strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.wallpaper-studio-preview-job small { color: var(--quiet); font-size: 8px; }
.wallpaper-studio-preview-job > b { color: #df7772; font: 800 11px Manrope, sans-serif; }
.wallpaper-studio-preview-progress { height: 5px; margin-top: 11px; overflow: hidden; border-radius: 999px; background: rgba(201,132,119,.1); }
.wallpaper-studio-preview-progress i { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 16px rgba(228,34,39,.28); }

.agenda-spotlight-section {
  padding-top: 0;
  padding-bottom: 120px;
}

.agenda-spotlight {
  min-height: 560px;
}

.agenda-spotlight-link {
  width: fit-content;
}

.agenda-landing-preview {
  width: min(100%, 430px);
  position: relative;
  justify-self: center;
  padding: 20px;
  border: 1px solid rgba(201,132,119,.27);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(25,17,13,.98), rgba(8,7,6,.98));
  box-shadow: 0 34px 90px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.04);
  transform: rotate(1deg);
}

.agenda-landing-preview-head {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #9b746a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.agenda-landing-preview-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.agenda-landing-preview-head i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #74c48e;
  box-shadow: 0 0 0 4px rgba(116,196,142,.09);
}

.agenda-landing-preview-head b {
  padding: 5px 7px;
  border: 1px solid rgba(228,34,39,.2);
  border-radius: 999px;
  color: #df7772;
  background: rgba(228,34,39,.07);
  font-size: 7px;
}

.agenda-landing-preview-date {
  display: grid;
  gap: 5px;
  padding: 25px 0 21px;
  border-bottom: 1px solid rgba(201,132,119,.14);
}

.agenda-landing-preview-date strong {
  font: 800 48px/1 Manrope, sans-serif;
  letter-spacing: -.06em;
}

.agenda-landing-preview-date span {
  color: var(--muted);
  font-size: 10px;
}

.agenda-landing-preview-list {
  display: grid;
  gap: 8px;
  padding-top: 17px;
}

.agenda-landing-preview-list > div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(201,132,119,.14);
  border-left: 3px solid var(--accent-2);
  border-radius: 12px;
  background: rgba(201,132,119,.035);
}

.agenda-landing-preview-list time {
  color: var(--accent-2);
  font-size: 9px;
  font-weight: 800;
}

.agenda-landing-preview-list span {
  display: grid;
  gap: 3px;
}

.agenda-landing-preview-list strong {
  font-size: 11px;
}

.agenda-landing-preview-list small {
  color: var(--muted);
  font-size: 8px;
}

:root[data-theme="christmas"] .agenda-landing-preview {
  border-color: rgba(201,164,92,.27);
  background: linear-gradient(145deg, rgba(18,45,29,.96), rgba(8,22,14,.98));
}

.agenda-spotlight-section + .landing-network-section {
  padding-top: 0;
}

.theme-swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.theme-swatch { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: left; transition: border-color .15s, transform .15s; }
.theme-swatch:hover { transform: translateY(-2px); border-color: var(--accent-2); }
.theme-swatch.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.theme-swatch-preview { width: 100%; height: 46px; border-radius: 9px; display: flex; align-items: center; justify-content: flex-end; padding: 8px; gap: 5px; border: 1px solid rgba(0,0,0,.08); }
.theme-swatch-dot { width: 9px; height: 9px; border-radius: 50%; }
.theme-swatch-copy { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; }
.theme-swatch-copy strong { font-size: 13px; }
.theme-swatch-check { display: none; color: var(--accent); font-weight: 800; }
.theme-swatch.is-active .theme-swatch-check { display: inline; }
.theme-swatch-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.theme-forced-banner { padding: 12px 14px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 11px; background: color-mix(in srgb, var(--accent-2) 12%, transparent); color: var(--text); font-size: 13px; line-height: 1.5; }
.cta { padding: 70px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(120deg, rgba(228,34,39,.12), rgba(19,15,12,.85) 42%, rgba(201,132,119,.08)); display: flex; align-items: center; justify-content: space-between; gap: 30px; }

.countdown-section { padding-top: 0; padding-bottom: 0; margin-bottom: 90px; }
.countdown-card { position: relative; overflow: hidden; padding: 44px 48px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 10%, transparent), var(--surface) 45%, color-mix(in srgb, var(--accent-2) 8%, transparent)); display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.countdown-card > :not(.countdown-fireworks) { position: relative; z-index: 1; }
.countdown-fireworks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.countdown-card.is-blinking::after { content: ""; position: absolute; inset: 0; background: var(--danger); opacity: 0; animation: countdown-blink-flash .8s steps(1) 10; pointer-events: none; }
@keyframes countdown-blink-flash { 0%, 49% { opacity: 0; } 50%, 99% { opacity: .55; } 100% { opacity: 0; } }
.countdown-card.is-exploding::before { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: radial-gradient(circle, #fff, var(--accent) 40%, transparent 70%); animation: countdown-explosion 1.5s ease-out forwards; pointer-events: none; }
@keyframes countdown-explosion { to { width: 1000px; height: 1000px; margin: -500px 0 0 -500px; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .countdown-card.is-blinking::after { animation: none; opacity: .4; }
  .countdown-card.is-exploding::before { animation: none; opacity: 0; }
}
.countdown-copy { max-width: 440px; }
.countdown-heading { font: 700 clamp(24px, 3vw, 32px)/1.2 Manrope; margin: 12px 0 8px; }
.countdown-sub { font-size: 14px; line-height: 1.6; }
.countdown-tiles { display: flex; gap: 12px; }
.countdown-tile { min-width: 72px; padding: 15px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); text-align: center; }
.countdown-tile strong { display: block; font: 800 28px/1 Manrope; color: var(--accent); font-variant-numeric: tabular-nums; }
.countdown-tile span { display: block; margin-top: 6px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.countdown-progress { width: 100%; flex-basis: 100%; position: relative; padding-top: 20px; }
.countdown-progress-current { position: absolute; top: 0; left: 0%; transform: translateX(-50%); font: 700 11px Manrope; color: var(--text); white-space: nowrap; transition: left 1s linear; }
.countdown-progress-track { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.countdown-progress-fill { height: 100%; width: 0%; border-radius: inherit; background: var(--accent); transition: width 1s linear; }
.countdown-progress-fill.is-complete { background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent)); background-size: 200% 100%; animation: countdown-progress-shimmer 2.2s linear infinite; }
@keyframes countdown-progress-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .countdown-progress-fill.is-complete { animation: none; } }
.countdown-progress-scale { display: flex; justify-content: space-between; gap: 18px; margin-top: 9px; color: var(--muted); }
.countdown-progress-scale > span { display: grid; gap: 2px; }
.countdown-progress-scale > span:last-child { justify-items: end; text-align: right; }
.countdown-progress-scale small { color: var(--quiet); font-size: 8px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.countdown-progress-scale strong { color: var(--muted); font: 700 10px Manrope, sans-serif; white-space: nowrap; }
.cta h2 { margin: 0; max-width: 580px; }
.footer { max-width: 1180px; margin: auto; padding: 35px 26px 48px; color: #6d5650; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 13px; }
.footer a:hover { color: var(--text); text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

.auth-layout { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { padding: clamp(40px, 7vw, 100px); display: flex; flex-direction: column; justify-content: flex-end; border-right: 1px solid var(--line); background: linear-gradient(145deg, rgba(201,132,119,.1), transparent 42%), radial-gradient(circle at 70% 70%, rgba(228,34,39,.15), transparent 30%); }
.auth-art h1 { font-size: clamp(52px, 7vw, 92px); max-width: 650px; }
.auth-art p { max-width: 500px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.auth-form-wrap { display: grid; place-items: center; padding: 50px 28px; }
.auth-form { width: min(470px, 100%); }
.auth-form h2 { font: 700 36px Manrope; letter-spacing: -.04em; margin-bottom: 10px; }
.auth-form > p { color: var(--muted); margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; color: var(--text); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.input-wrap { position: relative; }
input, select { width: 100%; border: 1px solid var(--line); border-radius: 11px; min-height: 47px; padding: 11px 13px; background: var(--surface); color: var(--text); outline: none; }
input:focus, select:focus { border-color: rgba(228,34,39,.7); box-shadow: 0 0 0 3px rgba(228,34,39,.1); }
select { appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23ca8679' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.input-wrap input { padding-right: 70px; }
.toggle-password { position: absolute; right: 7px; top: 6px; height: 35px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; }
.field-note { color: #765e57; font-size: 11px; line-height: 1.45; margin-top: 7px; }
.field-note a { color: var(--accent-2); font-weight: 700; }
.field-note a:hover { color: var(--text); text-decoration: underline; }
.strength { height: 3px; background: var(--surface-2); border-radius: 4px; margin-top: 9px; overflow: hidden; }
.strength span { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.date-picker { position: relative; }
.date-picker-trigger { width: 100%; min-height: 47px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s, background .15s; }
.date-picker-trigger:hover { border-color: var(--line); background: var(--surface-2); }
.date-picker-trigger:focus-visible, .date-picker.open .date-picker-trigger { outline: none; border-color: rgba(228,34,39,.7); box-shadow: 0 0 0 3px rgba(228,34,39,.1); }
.date-picker.has-value .date-picker-trigger { color: var(--text); }
.date-picker-trigger svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--accent-2); }
.date-picker-popover { position: absolute; z-index: 25; top: calc(100% + 9px); left: 0; width: min(342px, calc(100vw - 38px)); padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); box-shadow: 0 28px 70px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.018); backdrop-filter: blur(20px); }
.date-picker-popover[hidden] { display: none; }
.date-picker-header { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 7px; margin-bottom: 12px; }
.date-nav, .date-picker-heading, .date-jump-back, .date-month-option { border: 1px solid transparent; background: transparent; color: var(--text); cursor: pointer; border-radius: 8px; }
.date-nav { width: 36px; height: 34px; color: var(--accent-2); font-size: 17px; }
.date-nav:hover:not(:disabled), .date-picker-heading:hover, .date-jump-back:hover { background: var(--surface-2); border-color: var(--line); }
.date-nav:disabled { opacity: .25; cursor: not-allowed; }
.date-picker-heading { min-height: 34px; font-weight: 700; letter-spacing: -.01em; }
.date-picker-heading::after { content: "⌄"; color: var(--accent-2); font-size: 12px; margin-left: 7px; }
.date-weekdays, .date-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.date-weekdays { margin-bottom: 5px; }
.date-weekdays span { color: #765e57; font-size: 10px; font-weight: 700; text-align: center; text-transform: uppercase; padding: 4px 0; }
.date-day, .date-day-spacer { aspect-ratio: 1; min-width: 0; }
.date-day { border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; font-size: 12px; font-weight: 600; }
.date-day:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.date-day.selected { background: var(--accent); color: #fff8ee; box-shadow: 0 5px 14px rgba(228,34,39,.2); }
.date-day:disabled { color: #493832; opacity: .48; cursor: not-allowed; }
.date-jump-view label { font-size: 11px; color: var(--muted); margin: 3px 0 7px; }
.date-year-input { min-height: 42px; margin-bottom: 10px; font-weight: 700; letter-spacing: .08em; }
.date-year-input.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255,75,79,.09); }
.date-month-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.date-month-option { min-height: 38px; background: var(--surface); border-color: var(--line); color: var(--muted); font-size: 12px; font-weight: 600; }
.date-month-option:hover { color: var(--text); border-color: rgba(228,34,39,.45); background: rgba(228,34,39,.08); }
.date-jump-back { width: 100%; min-height: 36px; margin-top: 9px; color: var(--accent-2); font-size: 12px; font-weight: 700; }
.date-picker-footer { border-top: 1px solid var(--line); color: #765e57; font-size: 10px; line-height: 1.45; margin-top: 11px; padding: 10px 3px 0; }
.date-picker-footer span { color: var(--muted); }
.field label.profile-picker { display: flex; gap: 13px; align-items: center; min-height: 74px; padding: 13px; border: 1px dashed rgba(201,132,119,.28); border-radius: 12px; background: rgba(19,15,12,.4); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.profile-picker:hover, .profile-picker:focus-visible, .profile-picker.drag-over { outline: none; border-color: var(--accent); background: rgba(228,34,39,.045); box-shadow: 0 0 0 3px rgba(228,34,39,.07); }
.avatar { flex: 0 0 auto; width: 43px; height: 43px; border-radius: 50%; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); font-weight: 800; border: 1px solid var(--line); }
.profile-picker input { display: none; }
.profile-upload-copy { min-width: 0; display: grid; gap: 3px; flex: 1; }
.profile-upload-copy strong { font-size: 13px; color: var(--text); }
.profile-upload-copy > span { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-upload-action { flex: 0 0 auto; color: var(--accent-2); border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 7px 10px; font-size: 11px; font-weight: 700; }
.profile-picker.has-file .profile-upload-action { color: var(--text); border-color: rgba(228,34,39,.28); }
.settings-card { max-width: 720px; }
.settings-card + .settings-card { margin-top: 18px; }
.profile-settings-row { display: flex; align-items: center; gap: 17px; padding: 4px 0 24px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.profile-settings-row p { font-size: 13px; margin: 5px 0 0; }
.avatar.settings-avatar { width: 72px; height: 72px; font-size: 23px; }
.profile-settings-form { max-width: 560px; }
.account-details-form, .password-settings-form { max-width: 620px; }
.password-settings-form > .field:first-child { max-width: 300px; }
.two-factor-card .card-head { align-items: flex-start; }
.two-factor-card .card-head p { font-size: 13px; margin: 6px 0 0; }
.security-inline-form { max-width: 620px; }
.security-inline-form > .field:first-child { max-width: 320px; }
.two-factor-setup { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.two-factor-qr { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.two-factor-qr img { width: 190px; height: 190px; border-radius: 13px; background: #fff8ee; padding: 8px; image-rendering: crisp-edges; }
.two-factor-qr p { max-width: 330px; font-size: 13px; line-height: 1.55; margin: 7px 0 13px; }
.two-factor-secret { display: inline-block; max-width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--accent-2); background: var(--surface); font-size: 12px; letter-spacing: .08em; overflow-wrap: anywhere; }
.two-factor-manual-code { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.two-factor-recovery { margin-top: 22px; padding: 18px; border: 1px solid rgba(201,132,119,.26); border-radius: 12px; background: rgba(201,132,119,.055); }
.two-factor-recovery p { font-size: 12px; margin: 6px 0 12px; }
.two-factor-recovery pre { margin: 0; padding: 14px; border-radius: 9px; background: #0b0807; color: var(--text); font: 600 13px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; columns: 2; }
.settings-actions { display: flex; align-items: center; gap: 9px; margin-top: 4px; }
.recovery-setting-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.recovery-setting-link { min-width: 0; min-height: 94px; padding: 15px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(145deg, rgba(27,19,14,.7), rgba(10,8,7,.7)); transition: border-color .16s ease, transform .16s ease, background .16s ease; }
.recovery-setting-link:hover { border-color: rgba(201,132,119,.36); background: linear-gradient(145deg, rgba(34,22,16,.82), rgba(12,9,7,.78)); transform: translateY(-2px); }
.recovery-setting-link span { min-width: 0; display: grid; gap: 4px; }
.recovery-setting-link strong { font-size: 12px; }
.recovery-setting-link small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.recovery-setting-link b { flex: 0 0 auto; color: var(--accent-2); font-size: 9px; }
.form-error { display: none; color: #ff9ca2; background: rgba(255,111,120,.08); border: 1px solid rgba(255,111,120,.18); padding: 11px 13px; border-radius: 10px; font-size: 13px; margin-bottom: 15px; }
.form-error.visible { display: block; }
.form-success { margin-bottom: 16px; padding: 12px 14px; border: 1px solid rgba(88,206,131,.24); border-radius: 11px; color: #91dda9; background: rgba(88,206,131,.075); font-size: 13px; line-height: 1.55; }
.form-success[hidden] { display: none; }
.auth-assist { margin: -5px 0 17px; text-align: right; }
.auth-assist a { color: var(--accent-2); font-size: 12px; font-weight: 700; }
.auth-switch { text-align: center; color: var(--muted); font-size: 14px; margin-top: 20px; }
.auth-switch a { color: var(--accent-2); font-weight: 600; }

.app-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { border-right: 1px solid var(--line); padding: 27px 18px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: rgba(13,10,8,.9); backdrop-filter: blur(18px); }
.side-nav { display: grid; gap: 5px; margin-top: 46px; }
.side-nav a { display: flex; gap: 11px; align-items: center; padding: 11px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.side-nav a:hover, .side-nav a.active { color: var(--text); background: var(--surface-2); }
.side-icon { width: 19px; height: 19px; display: grid; place-items: center; flex: 0 0 19px; }
.side-icon svg { width: 17px; height: 17px; }
.sidebar-user { margin-top: auto; padding: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.sidebar-user .meta { min-width: 0; }
.sidebar-user strong, .sidebar-user span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: 13px; }
.sidebar-user span { color: var(--muted); font-size: 11px; margin-top: 3px; }
.app-main { min-width: 0; padding: 38px clamp(24px, 4vw, 58px) 70px; container-type: inline-size; }
.app-main > div { width: 100%; max-width: 1600px; margin-inline: auto; }
.servers-route { overflow: hidden; }
.servers-route .app-layout { height: 100dvh; min-height: 0; }
.servers-route .app-main { height: 100dvh; padding-block: 20px; overflow: hidden; }
.servers-route .app-main > div { height: 100%; }
.servers-page { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 15px; height: 100%; min-height: 0; }
.servers-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.servers-page-header h1 { margin: 5px 0 4px; font-size: clamp(30px, 3vw, 42px); letter-spacing: -.055em; }
.servers-page-header p { max-width: 680px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.servers-page-header .button { flex: 0 0 auto; }
.servers-panel-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #090806;
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
}
.servers-panel-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #090806; }
.servers-panel-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
  background: #090806;
  font-size: 13px;
}
.servers-panel-loading span { width: 25px; height: 25px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: panel-loading .75s linear infinite; }
@keyframes panel-loading { to { transform: rotate(1turn); } }
.app-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 36px; }
.app-header h1 { font-size: clamp(34px, 4vw, 52px); margin: 0 0 8px; letter-spacing: -.055em; }
.app-header p { color: var(--muted); }
.rank-pill { display: inline-flex; padding: 6px 9px; border-radius: 999px; color: var(--accent-2); background: rgba(201,132,119,.09); border: 1px solid rgba(201,132,119,.17); font-size: 11px; font-weight: 700; }
.panel-grid { display: grid; grid-template-columns: 1fr 360px; gap: 18px; }
.card { border: 1px solid var(--line); background: rgba(19,15,12,.75); border-radius: 16px; padding: 21px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.card h2 { font: 700 18px Manrope; margin: 0; }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 55px 20px; }
.user-list { display: grid; gap: 8px; }
.user-row { display: grid; grid-template-columns: minmax(150px, 1fr) 140px auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.user-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-identity strong, .user-identity span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-identity span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.user-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.access-options { display: grid; gap: 9px; margin: 15px 0; }
.check { display: flex; align-items: center; gap: 9px; color: var(--text); font-size: 13px; }
.check input { width: 16px; min-height: 16px; accent-color: var(--accent); }
.invite-output { margin-top: 14px; display: flex; gap: 7px; }
.invite-output input { min-width: 0; font-size: 12px; }
.invite-list { margin-top: 16px; display: grid; gap: 8px; }
.invite-item { border-top: 1px solid var(--line); padding-top: 10px; color: var(--muted); font-size: 11px; }
.storage-policy-card { margin-top: 18px; }
.storage-policy-card .card-head p { font-size: 12px; margin: 5px 0 0; }
.storage-policy-list { display: grid; }
.storage-policy-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); }
.storage-policy-row:first-child { border-top: 0; }
.storage-policy-row > div:first-child { display: grid; gap: 3px; }
.storage-policy-row strong { font-size: 13px; }
.storage-policy-row > div:first-child span, .storage-person { color: var(--muted); font-size: 11px; }
.storage-limit-fields { display: grid; grid-template-columns: 100px 92px auto; gap: 7px; align-items: center; }
.storage-limit-fields input, .storage-limit-fields select { min-height: 38px; padding-block: 7px; font-size: 12px; }
.storage-modal { max-width: 500px; }
.storage-modal-body { padding: 22px; }
.storage-modal-body > p { font-size: 12px; margin: 8px 0 16px; }
.storage-modal .storage-limit-fields { grid-template-columns: 1fr 110px; }
.site-permissions-card { margin-top: 18px; overflow: visible; }
.site-permissions-card .card-head { align-items: flex-start; }
.site-permissions-card .card-head h2 { margin: 7px 0 5px; }
.site-permissions-card .card-head p { margin: 0; font-size: 12px; }
.site-permission-header-actions { display: flex; align-items: center; gap: 9px; }
.site-permissions-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(430px, 1fr)); gap: 12px; }
.owner-operations-card, .audit-log-card { margin-top: 18px; }
.owner-operations-card .card-head, .audit-log-card .card-head { align-items: flex-start; }
.owner-operations-card .card-head h2, .audit-log-card .card-head h2 { margin: 7px 0 5px; }
.owner-operations-card .card-head p, .audit-log-card .card-head p { margin: 0; font-size: 12px; }
.operations-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.operations-overview {
  min-height: 78px;
  margin-bottom: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(201,132,119,.07), rgba(10,8,7,.72));
}
.operations-overview > div { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 3px 10px; }
.operations-overview strong { font-size: 13px; }
.operations-overview small { grid-column: 2; color: var(--muted); font-size: 9px; }
.operations-pulse { width: 9px; height: 9px; grid-row: 1 / span 2; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 5px rgba(201,132,119,.08); }
.operations-overview.is-operational .operations-pulse { background: var(--success); box-shadow: 0 0 0 5px rgba(88,206,131,.09); }
.operations-overview.is-outage .operations-pulse { background: var(--danger); box-shadow: 0 0 0 5px rgba(255,111,120,.09); }
.operations-backup-note { color: var(--muted); font-size: 10px; text-align: right; }
.operations-components { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.operations-component { min-width: 0; min-height: 84px; padding: 13px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(14,11,9,.58); }
.operations-component-dot { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--accent-2); }
.operations-component[data-status="operational"] .operations-component-dot { background: var(--success); }
.operations-component[data-status="outage"] .operations-component-dot { background: var(--danger); }
.operations-component strong { font-size: 11px; }
.operations-component p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.operations-component-state { grid-column: 2; margin-top: 8px; color: var(--accent-2); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.operations-component[data-status="operational"] .operations-component-state { color: var(--success); }
.operations-component[data-status="outage"] .operations-component-state { color: var(--danger); }
.audit-toolbar { margin-bottom: 14px; display: grid; grid-template-columns: minmax(180px, .45fr) minmax(240px, 1fr); gap: 10px; }
.audit-toolbar label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.audit-toolbar input, .audit-toolbar select { min-height: 41px; margin-top: 6px; font-size: 11px; letter-spacing: 0; text-transform: none; }
.audit-list { display: grid; }
.audit-row { min-width: 0; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; }
.audit-line { position: relative; display: flex; justify-content: center; }
.audit-line::after { content: ""; width: 1px; position: absolute; top: 22px; bottom: 0; background: var(--line); }
.audit-row:last-child .audit-line::after { display: none; }
.audit-event-dot { width: 8px; height: 8px; position: relative; z-index: 1; margin-top: 18px; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); box-sizing: content-box; }
.audit-entry { min-width: 0; margin-bottom: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(13,10,8,.5); }
.audit-entry-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.audit-entry-head > div { min-width: 0; display: grid; gap: 3px; }
.audit-event-name { font-size: 11px; }
.audit-actor { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.audit-entry time { flex: 0 0 auto; color: var(--quiet); font-size: 8px; white-space: nowrap; }
.audit-detail-chips { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 5px; }
.audit-detail-chips span { max-width: 100%; padding: 4px 6px; overflow: hidden; border: 1px solid rgba(201,132,119,.13); border-radius: 6px; color: #a8887f; background: rgba(201,132,119,.035); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.audit-detail-chips .audit-origin { color: #755d57; }
.audit-empty { padding-block: 32px; }
.audit-page { width: min(100%, 1280px); margin: 0 auto; }
.audit-page .app-header { align-items: flex-end; }
.audit-page .audit-log-card { min-height: min(720px, calc(100dvh - 190px)); margin-top: 0; }
.audit-page-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.audit-page .audit-toolbar { grid-template-columns: minmax(220px, .42fr) minmax(300px, 1fr); }
.audit-page .audit-list { max-height: calc(100dvh - 360px); overflow: auto; padding-right: 4px; scrollbar-color: #4a332c transparent; }

.status-page { width: min(100% - 48px, 1080px); min-height: calc(100dvh - 76px); margin: 0 auto; padding: clamp(80px, 10vw, 130px) 0 90px; }
.status-hero { max-width: 760px; }
.status-hero h1 { margin: 18px 0; font-size: clamp(48px, 7vw, 82px); line-height: .96; letter-spacing: -.065em; }
.status-hero > p { max-width: 680px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.status-overall { width: fit-content; margin-top: 30px; padding: 10px 13px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.status-overall strong { font-size: 11px; }
.status-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(201,132,119,.08); }
.status-overall.is-operational .status-indicator { background: var(--success); box-shadow: 0 0 0 4px rgba(88,206,131,.1); }
.status-overall.is-outage .status-indicator { background: var(--danger); box-shadow: 0 0 0 4px rgba(255,111,120,.1); }
.status-components { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.status-component { min-width: 0; min-height: 132px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(27,19,14,.78), rgba(10,8,7,.78)); }
.status-component > div { display: flex; align-items: center; gap: 9px; }
.status-component-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }
.status-component[data-status="operational"] .status-component-dot { background: var(--success); }
.status-component[data-status="outage"] .status-component-dot { background: var(--danger); }
.status-component strong { min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.status-component-state { display: block; margin-top: 14px; color: var(--accent-2); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.status-component[data-status="operational"] .status-component-state { color: var(--success); }
.status-component[data-status="outage"] .status-component-state { color: var(--danger); }
.status-component p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.status-meta { margin-top: 18px; padding: 14px 2px; display: flex; justify-content: space-between; gap: 16px; color: var(--quiet); font-size: 9px; }
.status-unavailable { grid-column: 1 / -1; padding: 34px; border: 1px solid rgba(255,111,120,.2); border-radius: 14px; color: var(--danger); background: rgba(255,111,120,.05); text-align: center; }
.site-permission-row { min-width: 0; min-height: 118px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px 11px; padding: 15px 16px; border: 1px solid rgba(201,132,119,.14); border-radius: 15px; background: linear-gradient(145deg, rgba(22,16,12,.72), rgba(9,8,6,.52)); transition: opacity .18s ease, transform .18s ease, border-color .18s ease, background .18s ease; }
.site-permission-row:hover { border-color: rgba(201,132,119,.28); background: linear-gradient(145deg, rgba(28,19,14,.8), rgba(10,8,7,.6)); }
.site-permission-row[draggable="true"] { cursor: grab; }
.site-permission-row[draggable="true"]:active { cursor: grabbing; }
.site-permission-row.dragging { opacity: .42; transform: scale(.985); }
.site-drag-grip { grid-column: 1; grid-row: 1; color: #765950; font-size: 20px; line-height: 1; user-select: none; }
.site-permission-copy { min-width: 0; grid-column: 2; grid-row: 1; }
.site-permission-row:not([draggable="true"]) .site-permission-copy { grid-column: 1 / -1; }
.site-permission-copy strong, .site-permission-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-permission-copy strong { margin-top: 5px; font-size: 14px; line-height: 1.35; }
.site-permission-copy .site-permission-kicker { color: #8f6a61; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.site-permission-copy .site-permission-path { margin-top: 4px; color: var(--muted); font-size: 10px; }
.site-permission-control { width: 100%; min-width: 0; grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(150px, 1fr) auto auto; align-items: center; gap: 7px; }
.rank-select { position: relative; width: 100%; min-width: 0; }
.rank-select-native { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; border: 0; white-space: nowrap; }
.rank-select-trigger { width: 100%; min-width: 0; min-height: 42px; display: grid; grid-template-columns: 8px minmax(0, 1fr) 16px; align-items: center; gap: 10px; padding: 7px 11px; border: 1px solid rgba(201,132,119,.22); border-radius: 11px; background: linear-gradient(135deg, rgba(26,18,14,.96), rgba(11,9,7,.98)); color: var(--text); text-align: left; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.025); transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.rank-select-trigger:hover { border-color: rgba(201,132,119,.43); background: linear-gradient(135deg, rgba(32,21,16,.98), rgba(13,10,8,.98)); }
.rank-select-trigger:focus-visible, .rank-select.open .rank-select-trigger { outline: none; border-color: rgba(228,34,39,.72); box-shadow: 0 0 0 3px rgba(228,34,39,.11), inset 0 1px 0 rgba(255,255,255,.03); }
.rank-select-dot { width: 7px; height: 7px; border-radius: 50%; background: #9e776d; box-shadow: 0 0 0 3px rgba(158,119,109,.1); }
.rank-select-trigger-copy, .rank-select-option-copy { min-width: 0; display: grid; gap: 1px; }
.rank-select-trigger-copy strong, .rank-select-trigger-copy small, .rank-select-option-copy strong, .rank-select-option-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-select-trigger-copy strong { font-size: 11px; line-height: 1.2; }
.rank-select-trigger-copy small { color: #8f756e; font-size: 8px; line-height: 1.2; letter-spacing: .025em; }
.rank-select-chevron { width: 8px; height: 8px; justify-self: center; border: solid #bd7b6e; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .18s ease; }
.rank-select.open .rank-select-chevron { transform: translateY(2px) rotate(225deg); }
.rank-select-menu { position: absolute; z-index: 120; top: calc(100% + 7px); left: 0; width: max(100%, 230px); max-height: min(310px, calc(100dvh - 24px)); padding: 6px; overflow: auto; border: 1px solid rgba(201,132,119,.27); border-radius: 13px; background: rgba(12,9,7,.985); box-shadow: 0 18px 50px rgba(0,0,0,.56), 0 0 0 1px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.03); animation: rank-menu-in .16s ease both; }
.rank-select[data-side="up"] .rank-select-menu { top: auto; bottom: calc(100% + 7px); transform-origin: bottom; }
.rank-select[data-align="right"] .rank-select-menu { right: 0; left: auto; }
.rank-select-menu[hidden] { display: none; }
.rank-select-option { width: 100%; min-height: 46px; display: grid; grid-template-columns: 8px minmax(0, 1fr) 18px; align-items: center; gap: 10px; padding: 7px 9px; border: 0; border-radius: 9px; background: transparent; color: #d8cbc5; text-align: left; cursor: pointer; }
.rank-select-option + .rank-select-option { margin-top: 2px; }
.rank-select-option:hover, .rank-select-option.active { background: rgba(201,132,119,.09); color: #fff8f3; }
.rank-select-option:focus-visible { outline: 1px solid rgba(228,34,39,.58); outline-offset: -1px; }
.rank-select-option.selected { background: linear-gradient(90deg, rgba(228,34,39,.15), rgba(201,132,119,.055)); color: #fff9f5; }
.rank-select-option-copy strong { font-size: 11px; line-height: 1.25; }
.rank-select-option-copy small { margin-top: 2px; color: #8f756e; font-size: 8px; line-height: 1.25; }
.rank-select-check { color: #ed7772; font-size: 12px; font-weight: 800; opacity: 0; transform: scale(.7); transition: opacity .15s ease, transform .15s ease; }
.rank-select-option.selected .rank-select-check { opacity: 1; transform: scale(1); }
.rank-select[data-rank="Guest"] .rank-select-dot, .rank-select-option[data-rank="Guest"] .rank-select-dot { background: #79c995; box-shadow: 0 0 0 3px rgba(121,201,149,.11); }
.rank-select[data-rank="User"] .rank-select-dot, .rank-select-option[data-rank="User"] .rank-select-dot { background: #72aee8; box-shadow: 0 0 0 3px rgba(114,174,232,.11); }
.rank-select[data-rank="Visitor"] .rank-select-dot, .rank-select-option[data-rank="Visitor"] .rank-select-dot { background: #a990e8; box-shadow: 0 0 0 3px rgba(169,144,232,.11); }
.rank-select[data-rank="Admin"] .rank-select-dot, .rank-select-option[data-rank="Admin"] .rank-select-dot { background: #e3a65e; box-shadow: 0 0 0 3px rgba(227,166,94,.11); }
.rank-select[data-rank="Head Admin"] .rank-select-dot, .rank-select-option[data-rank="Head Admin"] .rank-select-dot { background: #e46a68; box-shadow: 0 0 0 3px rgba(228,106,104,.11); }
.rank-select[data-rank="Owner"] .rank-select-dot, .rank-select-option[data-rank="Owner"] .rank-select-dot { background: #f2d29b; box-shadow: 0 0 0 3px rgba(242,210,155,.11); }
.site-permission-row:has(.rank-select.open) { position: relative; z-index: 25; border-color: rgba(201,132,119,.32); }
@keyframes rank-menu-in { from { opacity: 0; transform: translateY(-5px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

.ui-select { position: relative; width: 100%; min-width: 0; }
.ui-select-native { position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; min-height: 0 !important; margin: -1px !important; padding: 0 !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; overflow: hidden !important; border: 0 !important; white-space: nowrap !important; background: none !important; box-shadow: none !important; }
.ui-select-trigger { width: 100%; min-width: 0; min-height: 42px; display: grid; grid-template-columns: minmax(0, 1fr) 15px; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid rgba(201,132,119,.2); border-radius: 11px; background: linear-gradient(135deg, rgba(25,18,14,.94), rgba(11,9,7,.97)); color: var(--text); text-align: left; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.025); transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.ui-select-trigger:hover { border-color: rgba(201,132,119,.42); background: linear-gradient(135deg, rgba(31,21,16,.98), rgba(13,10,8,.98)); }
.ui-select-trigger:focus-visible, .ui-select.open .ui-select-trigger { outline: none; border-color: rgba(228,34,39,.68); box-shadow: 0 0 0 3px rgba(228,34,39,.1), inset 0 1px 0 rgba(255,255,255,.03); }
.ui-select-trigger:disabled { cursor: not-allowed; opacity: .46; }
.ui-select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 700; }
.ui-select.placeholder .ui-select-value { color: var(--muted); font-weight: 500; }
.ui-select-chevron { width: 8px; height: 8px; justify-self: center; border: solid #bd7b6e; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .18s ease; }
.ui-select.open .ui-select-chevron { transform: translateY(2px) rotate(225deg); }
.ui-select-menu { position: absolute; z-index: 130; top: calc(100% + 7px); left: 0; width: max(100%, 180px); max-width: calc(100vw - 24px); max-height: min(300px, calc(100dvh - 24px)); padding: 6px; overflow: auto; border: 1px solid rgba(201,132,119,.27); border-radius: 13px; background: rgba(12,9,7,.985); box-shadow: 0 18px 48px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.03); animation: rank-menu-in .16s ease both; }
.ui-select[data-side="up"] .ui-select-menu { top: auto; bottom: calc(100% + 7px); transform-origin: bottom; }
.ui-select[data-align="right"] .ui-select-menu { right: 0; left: auto; }
.ui-select-menu[hidden] { display: none; }
.ui-select-option { width: 100%; min-height: 40px; display: grid; grid-template-columns: minmax(0, 1fr) 18px; align-items: center; gap: 10px; padding: 8px 9px; border: 0; border-radius: 9px; background: transparent; color: #d8cbc5; text-align: left; cursor: pointer; }
.ui-select-option + .ui-select-option { margin-top: 2px; }
.ui-select-option:hover, .ui-select-option.active { color: #fff8f3; background: rgba(201,132,119,.09); }
.ui-select-option:focus-visible { outline: 1px solid rgba(228,34,39,.58); outline-offset: -1px; }
.ui-select-option.selected { color: #fff9f5; background: linear-gradient(90deg, rgba(228,34,39,.15), rgba(201,132,119,.045)); }
.ui-select-option:disabled { cursor: not-allowed; opacity: .38; }
.ui-select-option-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 700; }
.ui-select-check { color: #ed7772; font-size: 12px; font-weight: 800; opacity: 0; transform: scale(.7); transition: opacity .15s ease, transform .15s ease; }
.ui-select-option.selected .ui-select-check { opacity: 1; transform: scale(1); }
.ui-select.open { z-index: 30; }
.field > .ui-select { width: 100%; }
.storage-limit-fields .ui-select-trigger { min-height: 38px; padding-block: 7px; font-size: 12px; }
.custom-group-main-picker .ui-select { width: min(420px, 65%); }
.custom-group-main-picker .ui-select-trigger { min-height: 40px; }
.site-permission-control .move-site-route { color: #9d7d74; }
.site-ungrouped-zone { grid-column: 1 / -1; padding: 17px; border: 1px dashed rgba(201,132,119,.2); border-radius: 17px; background: rgba(8,7,6,.28); transition: border-color .18s ease, background .18s ease; }
.site-ungrouped-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 10px; }
.site-drop-label { flex: 0 0 auto; padding: 6px 9px; border: 1px dashed rgba(201,132,119,.23); border-radius: 999px; color: #8f7067; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.drop-active { border-color: rgba(228,34,39,.65) !important; background-color: rgba(228,34,39,.055) !important; box-shadow: inset 0 0 0 1px rgba(228,34,39,.12); }
.join-permission-group { grid-column: 1 / -1; margin-top: 8px; padding: 22px; border: 1px solid rgba(228,34,39,.19); border-radius: 20px; background: radial-gradient(circle at 92% 0, rgba(228,34,39,.08), transparent 28%), linear-gradient(150deg, rgba(24,15,12,.82), rgba(8,7,6,.72)); }
.join-permission-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.join-permission-heading h3 { margin: 9px 0 7px; font: 700 24px Manrope; letter-spacing: -.035em; }
.join-permission-heading p { max-width: 680px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.join-page-count { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(201,132,119,.18); border-radius: 999px; background: rgba(201,132,119,.07); color: var(--accent-2); font-size: 10px; font-weight: 800; }
.join-permission-master .site-permission-row { min-height: 126px; padding: 19px 20px; border-color: rgba(228,34,39,.32); background: linear-gradient(115deg, rgba(228,34,39,.105), rgba(30,19,14,.78) 46%, rgba(9,8,6,.68)); box-shadow: inset 3px 0 0 rgba(228,34,39,.65); }
.join-permission-master .site-permission-copy strong { font-size: 17px; }
.join-permission-master .rank-select-trigger { min-height: 46px; }
.join-permission-children { margin-top: 14px; padding: 17px; border: 1px solid rgba(201,132,119,.12); border-radius: 16px; background: rgba(6,5,4,.42); }
.join-permission-children-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.join-permission-children-head strong, .join-permission-children-head span { display: block; }
.join-permission-children-head strong { font-size: 13px; }
.join-permission-children-head span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.join-permission-children-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 10px; }
.site-permission-child { min-height: 112px; background: rgba(18,13,10,.58); }
.custom-permission-group { border-color: rgba(201,132,119,.2); background: radial-gradient(circle at 90% 0, rgba(201,132,119,.075), transparent 26%), linear-gradient(150deg, rgba(23,17,13,.82), rgba(8,7,6,.72)); }
.custom-group-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.custom-group-main-picker { margin: 0 0 13px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid rgba(201,132,119,.13); border-radius: 13px; background: rgba(7,6,5,.4); }
.custom-group-main-picker label { color: var(--muted); font-size: 11px; font-weight: 700; }
.custom-group-main-picker select { width: min(420px, 65%); min-height: 40px; font-size: 11px; }
.custom-group-empty { padding: 30px 18px; border: 1px dashed rgba(201,132,119,.18); border-radius: 12px; color: var(--muted); text-align: center; font-size: 11px; }
.custom-group-empty[hidden] { display: none; }

/* React to the panel's usable width, including split-screen and foldable layouts. */
@container (max-width: 520px) {
  .site-permission-copy strong {
    display: block;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .site-permission-row[draggable="true"] .site-permission-control { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-permission-row:not([draggable="true"]) .site-permission-control { grid-template-columns: minmax(0, 1fr); }
  .site-permission-control .rank-select { grid-column: 1 / -1; }
  .site-permission-control .button { width: 100%; }
}

.cloud-toolbar { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 16px; }
.cloud-upload-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cloud-selection-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -2px 0 16px; padding: 11px 13px; border: 1px solid rgba(228,34,39,.2); border-radius: 11px; background: rgba(228,34,39,.055); }
.cloud-selection-bar[hidden] { display: none; }
.cloud-selection-bar strong { font-size: 12px; }
.cloud-selection-bar > div { display: flex; gap: 7px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; color: var(--muted); font-size: 13px; }
.breadcrumbs button { border: 0; background: transparent; color: inherit; padding: 3px; cursor: pointer; }
.breadcrumbs button:hover { color: var(--text); }
.quota { margin-bottom: 18px; }
.quota-copy { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-bottom: 7px; }
.quota-bar { height: 5px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.quota-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: inherit; }
.cloud-upload-status { margin: -4px 0 14px; color: var(--muted); font-size: 11px; }
.cloud-upload-status > div { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 5px; background: var(--surface-2); }
.cloud-upload-status i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .18s ease; }
.drop-zone { min-height: 360px; border: 1px dashed rgba(255,255,255,.12); border-radius: 15px; padding: 14px; transition: border .15s, background .15s; }
.drop-zone.drag-over { border-color: var(--accent); background: rgba(255,155,80,.035); }
.drop-zone.read-only { border-style: solid; background: rgba(201,132,119,.025); }
.upload-label.disabled { opacity: .45; pointer-events: none; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.file-item { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 15px; cursor: pointer; text-align: left; color: var(--text); position: relative; }
.file-item:hover { border-color: rgba(255,255,255,.2); background: var(--surface-2); }
.file-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-item.drag-over { border-color: var(--accent); }
.file-item.selected { border-color: var(--accent); background: rgba(228,34,39,.075); box-shadow: inset 0 0 0 1px rgba(228,34,39,.2); }
.file-icon { height: 70px; display: grid; place-items: center; position: relative; color: var(--accent-2); }
.file-type-symbol { width: 45px; height: 45px; }
.file-icon-folder { color: #d4a05e; }
.file-icon-code { color: #e45c61; }
.file-icon-document { color: #71a7dc; }
.file-icon-spreadsheet { color: #70b78a; }
.file-icon-presentation { color: #de8a5c; }
.file-icon-image { color: #b18bd5; }
.file-icon-pdf { color: #ee6268; }
.file-icon-archive { color: #d2a765; }
.file-icon-audio { color: #c681c4; }
.file-icon-video { color: #7d91dd; }
.file-icon-executable { color: #8fa2a8; }
.file-extension-badge { position: absolute; right: calc(50% - 30px); bottom: 8px; min-width: 25px; max-width: 48px; padding: 2px 4px; border: 1px solid currentColor; border-radius: 4px; background: var(--surface); color: inherit !important; font: 800 8px/1 Manrope; letter-spacing: .04em; text-align: center; margin: 0 !important; overflow: visible !important; }
.file-item strong, .file-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item strong { font-size: 13px; }
.file-item span { color: var(--muted); font-size: 10px; margin-top: 5px; }
.file-item .item-name { display: block; width: 100%; overflow: hidden; text-overflow: clip; white-space: nowrap; }
.file-item .item-name > span { display: inline-block; min-width: max-content; margin: 0; overflow: visible; color: var(--text); font: inherit; text-overflow: clip; transform: translateX(0); transition: transform var(--name-duration, 1.8s) ease-in-out .35s; }
.file-item:hover .item-name.overflowing > span, .file-item:focus-visible .item-name.overflowing > span { transform: translateX(calc(-1 * var(--name-shift))); }
.selection-marker { display: none !important; position: absolute; left: 9px; top: 9px; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); color: transparent !important; margin: 0 !important; z-index: 2; }
.selection-marker svg { width: 15px; height: 15px; }
.selection-active .selection-marker { display: grid !important; place-items: center; }
.selection-active .file-item.selected .selection-marker { border-color: var(--accent); background: var(--accent); color: white !important; }
.item-actions { position: absolute; right: 5px; top: 5px; z-index: 5; }
.selection-active .item-actions { display: none; }
.file-menu { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 5px 7px; border-radius: 7px; font-weight: 800; letter-spacing: .08em; }
.file-menu:hover, .item-actions.open .file-menu { color: var(--text); background: var(--surface-2); }
.item-action-menu { display: none; position: absolute; right: 0; top: 30px; min-width: 145px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-3); box-shadow: var(--shadow); }
.item-actions.open .item-action-menu { display: grid; }
.item-action-menu button { width: 100%; border: 0; border-radius: 7px; padding: 9px 10px; color: var(--text); background: transparent; text-align: left; cursor: pointer; font-size: 12px; }
.item-action-menu button:hover { background: var(--surface-2); }
.item-action-menu button.danger-action { color: #ff9299; }
.drop-hint { min-height: 320px; display: grid; place-items: center; color: #765e57; text-align: center; }
.drop-hint b { color: var(--muted); display: block; margin-bottom: 5px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.7); backdrop-filter: blur(7px); display: grid; place-items: center; padding: 22px; }
.modal { width: min(800px, 100%); max-height: 90vh; overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-2); box-shadow: var(--shadow); }
.site-dialog-backdrop { z-index: 95; background: radial-gradient(circle at 50% 35%, rgba(112,34,31,.18), transparent 38%), rgba(5,4,3,.82); backdrop-filter: blur(12px); animation: dialog-backdrop-in .16s ease-out; }
.site-dialog-modal { position: relative; width: min(510px, 100%); overflow: hidden; border-color: var(--line); border-radius: 20px; background: linear-gradient(150deg, var(--surface-3), var(--surface-2) 62%); box-shadow: 0 28px 85px rgba(0,0,0,.36), 0 0 0 1px rgba(255,255,255,.025) inset; animation: site-dialog-in .2s cubic-bezier(.2,.8,.2,1); }
.site-dialog-accent { height: 3px; background: linear-gradient(90deg, transparent, var(--accent) 22%, var(--accent-2) 72%, transparent); }
.site-dialog-modal form { padding: 28px; }
.site-dialog-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.site-dialog-heading h2, .site-confirm-content h2 { margin: 5px 0 7px; font: 700 24px/1.15 Manrope; letter-spacing: -.035em; }
.site-dialog-heading p, .site-confirm-content > p { margin: 0; font-size: 12px; line-height: 1.55; }
.site-dialog-icon, .site-confirm-icon { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(228,34,39,.2); border-radius: 13px; color: var(--accent-2); background: linear-gradient(145deg, rgba(228,34,39,.12), rgba(201,132,119,.045)); box-shadow: 0 8px 26px rgba(0,0,0,.2); }
.site-dialog-icon svg { width: 24px; height: 24px; color: #d4a05e; }
.site-dialog-field { margin: 0; }
.site-dialog-field label { margin-bottom: 9px; color: var(--text); font-size: 12px; }
.site-dialog-field input { min-height: 51px; border-color: rgba(201,132,119,.22); background: rgba(7,5,4,.7); font-size: 15px; font-weight: 600; }
.site-dialog-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(228,34,39,.1); }
.site-dialog-field input.invalid { border-color: var(--danger); animation: dialog-shake .22s ease-in-out; }
.site-dialog-error { min-height: 18px; padding-top: 6px; color: #ff9299; font-size: 11px; }
.site-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.site-confirm-content { padding: 30px; }
.site-confirm-icon { margin-bottom: 17px; color: #ff9299; font: 800 21px Manrope; }
.site-confirm-content .site-dialog-actions { margin-top: 24px; }
.official-open-content { padding: 28px; }
.official-open-content .site-dialog-heading { margin-bottom: 18px; }
.official-app-icon svg { width: 25px; height: 25px; }
.official-privacy-note { display: grid; gap: 5px; padding: 13px 14px; border: 1px solid rgba(201,132,119,.18); border-radius: 11px; background: rgba(201,132,119,.05); }
.official-privacy-note strong { color: var(--accent-2); font-size: 11px; }
.official-privacy-note span { color: var(--muted); font-size: 11px; line-height: 1.55; }
@keyframes dialog-backdrop-in { from { opacity: 0; } }
@keyframes site-dialog-in { from { opacity: 0; transform: translateY(10px) scale(.975); } }
@keyframes dialog-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font: 700 17px Manrope; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-close { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 23px; }
.preview { min-height: 430px; display: grid; place-items: center; padding: 20px; }
.preview img { max-height: 68vh; border-radius: 8px; }
.preview video { max-width: 100%; max-height: 68vh; border-radius: 8px; background: #050403; }
.preview audio { width: min(540px, 100%); }
.preview iframe { width: 100%; height: 65vh; border: 0; background: white; border-radius: 8px; }
.preview pre { width: 100%; align-self: stretch; overflow: auto; white-space: pre-wrap; color: var(--text); font: 13px/1.65 ui-monospace, monospace; }
.preview-fallback { text-align: center; max-width: 400px; color: var(--muted); }
.preview-fallback .file-icon { font-size: 48px; }
.file-editor-modal { width: min(1120px, 100%); height: min(820px, 90vh); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.editor-title { min-width: 0; display: flex; align-items: center; gap: 10px; }
.editor-title h2 { min-width: 0; }
.editor-language { flex: 0 0 auto; padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--accent-2); background: var(--surface); font: 700 9px Manrope; letter-spacing: .08em; }
.editor-head-actions { display: flex; align-items: center; gap: 9px; }
.editor-state { color: var(--muted); font-size: 11px; white-space: nowrap; }
.file-editor { min-height: 0; display: grid; grid-template-columns: 54px 1fr; background: #0a0807; }
.editor-lines { margin: 0; padding: 17px 11px; overflow: hidden; border-right: 1px solid var(--line); color: #674f47; background: #0d0a08; text-align: right; user-select: none; font: 13px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; }
.file-editor textarea { width: 100%; height: 100%; min-height: 0; resize: none; border: 0; border-radius: 0; outline: none; padding: 17px 18px; color: #e8ded8; background: transparent; caret-color: var(--accent); white-space: pre; overflow: auto; tab-size: 2; font: 13px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; }
.file-editor textarea:focus { border: 0; box-shadow: none; }
.editor-footer { display: flex; justify-content: space-between; gap: 15px; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--muted); background: #0d0a08; font-size: 10px; }
.document-preview-modal { width: min(900px, 100%); }
.document-preview { min-height: 500px; margin: 28px auto; width: min(740px, calc(100% - 40px)); padding: 55px 62px; border-radius: 4px; color: #2a2522; background: #f7f2eb; box-shadow: 0 14px 45px rgba(0,0,0,.28); white-space: pre-wrap; overflow-wrap: anywhere; font: 15px/1.72 Georgia, serif; }
.delete-confirm-modal { max-width: 520px; }
.delete-confirm-body { padding: 25px; }
.delete-warning-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 16px; border: 1px solid rgba(255,111,120,.35); border-radius: 12px; color: #ff9299; background: rgba(255,111,120,.09); font: 800 21px Manrope; }
.delete-confirm-summary { margin: 0 0 7px; font-weight: 700; }
.delete-confirm-body > .muted { margin: 0 0 17px; font-size: 12px; line-height: 1.55; }
.delete-confirm-list { display: grid; gap: 5px; max-height: 155px; overflow: auto; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.delete-confirm-list span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.delete-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

.error-page { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 40px 24px; text-align: center; }
.error-code { color: var(--accent); font: 700 12px Manrope; letter-spacing: .18em; text-transform: uppercase; }
.error-page h1 { font-size: clamp(55px, 9vw, 105px); margin: 20px 0; max-width: 900px; }
.error-page p { color: var(--muted); font-size: 18px; max-width: 590px; line-height: 1.6; }
.error-page .hero-actions { justify-content: center; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 8px; }
.toast { max-width: 360px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-3); color: var(--text); box-shadow: var(--shadow); font-size: 13px; animation: toast-in .2s ease-out; }
.toast.error { border-color: rgba(255,111,120,.35); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Tablet and compact desktop: a purpose-built navigation rail leaves room for the workspace. */
@media (min-width: 701px) and (max-width: 1100px) {
  .app-layout { grid-template-columns: 88px minmax(0, 1fr); }
  .sidebar { width: 88px; padding: 20px 9px; align-items: center; }
  .sidebar .brand { justify-content: center; }
  .sidebar .brand > span:last-child, .sidebar-user .meta { display: none; }
  .side-nav { width: 100%; margin-top: 34px; gap: 8px; }
  .side-nav a { min-height: 58px; padding: 8px 3px; flex-direction: column; justify-content: center; gap: 5px; font-size: 10px; }
  .side-icon, .side-icon svg { width: 20px; height: 20px; }
  .sidebar-user { padding: 12px 0; }
  .app-main { padding: 32px clamp(22px, 4vw, 42px) 58px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:first-child { grid-row: auto; grid-column: 1 / -1; min-height: 330px; }
  .feature-card:first-child .feature-icon { margin-bottom: 100px; }
  .guides-grid { grid-template-columns: 1fr 1fr; }
  .settings-card { max-width: none; }
}

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .panel-grid { grid-template-columns: 1fr; }
}

/* Unfolded phones and landscape tablets use the extra canvas as a real two-pane workspace. */
@media (min-width: 760px) and (max-width: 1100px) and (min-aspect-ratio: 4 / 3) {
  .auth-layout { grid-template-columns: minmax(260px, .75fr) minmax(440px, 1.25fr); }
  .auth-art { display: flex; padding: 34px; }
  .auth-art h1 { font-size: clamp(40px, 6vw, 65px); }
  .auth-form-wrap { padding: 36px 28px; }
  .panel-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); }
  .settings-page { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
  .settings-page > .app-header { grid-column: 1 / -1; }
  .settings-page .settings-card { margin-top: 0; height: fit-content; }
  .settings-page .two-factor-card, .settings-page .account-data-card { grid-column: 1 / -1; }
  .file-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
  .cloud-card { padding: 24px; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-card:first-child { grid-column: span 2; min-height: 420px; }
  .feature-card:first-child .feature-icon { margin-bottom: 170px; }
}

@media (max-width: 700px) {
  .nav { height: 68px; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .public-site-nav {
    width: 100%;
    min-height: 72px;
    height: auto;
  }
  .nav .brand { font-size: 17px; }
  .nav-links .desktop-link { display: none; }
  .nav-links > a { padding-inline: 11px; }
  .nav-account-trigger-copy,
  .nav-account-chevron { display: none; }
  .nav-account-trigger { min-width: 46px; justify-content: center; padding: 5px; border-radius: 13px; }
  .nav-account-panel { position: fixed; top: 74px; right: 14px; }
  .section { padding: 72px 18px; }
  .section-head { margin-bottom: 32px; }
  .hero { min-height: 600px; padding: 72px 18px 58px; }
  .hero h1 { font-size: clamp(47px, 16vw, 76px); }
  .hero-copy > p { font-size: 16px; }
  .hero-orbit { right: -420px; opacity: .48; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card:first-child { min-height: 250px; grid-column: auto; }
  .feature-card .feature-icon, .feature-card:first-child .feature-icon { margin-bottom: 85px; }
  .guides-grid { grid-template-columns: 1fr; }
  .profile-spotlight-section { padding-top: 8px; padding-bottom: 82px; }
  .profile-spotlight { min-height: 0; grid-template-columns: 1fr; gap: 38px; padding: 34px 24px; border-radius: 22px; }
  .profile-spotlight-copy h2 { font-size: clamp(40px, 12vw, 58px); }
  .profile-spotlight-visual { min-height: 310px; }
  .profile-spotlight-orbit { width: min(72vw, 340px); }
  .profile-preview-card { width: min(100%, 330px); transform: none; }
  .wallpaper-studio-spotlight-section { padding-top: 6px; padding-bottom: 82px; }
  .wallpaper-studio-spotlight { min-height: 0; grid-template-columns: 1fr; gap: 38px; padding: 34px 24px; border-radius: 22px; }
  .wallpaper-studio-spotlight-copy h2 { font-size: clamp(38px, 11.5vw, 56px); }
  .wallpaper-studio-preview { width: min(100%, 380px); transform: none; }
  .wallpaper-studio-preview-screen { height: min(54vw, 210px); min-height: 170px; }
  .cta { padding: 34px 22px; flex-direction: column; align-items: flex-start; }
  .countdown-card { padding: 28px 22px; flex-direction: column; align-items: flex-start; }
  .countdown-tiles { width: 100%; }
  .countdown-tile { flex: 1 1 0; min-width: 0; }
  .footer { padding-inline: 18px; flex-direction: column; gap: 8px; }
  .footer-links { gap: 12px; }

  .role-preview-card, .owner-storage-card { align-items: stretch; flex-direction: column; }
  .seasonal-mode-options { grid-template-columns: 1fr; }
  .danger-zone, .delete-account-actions { align-items: stretch; flex-direction: column; }
  .delete-account-actions input { width: 100%; }
  .role-preview-bar { position: sticky; align-items: flex-start; flex-direction: column; padding: 10px 16px; }
  .role-preview-bar > div { width: 100%; flex-wrap: wrap; }
  .role-preview-actions { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; }
  .role-preview-actions select, .role-preview-actions .ui-select { width: 100%; }

  .app-layout { display: block; min-height: 100dvh; }
  .sidebar { position: fixed; inset: auto 0 0; z-index: 60; width: 100%; height: calc(68px + env(safe-area-inset-bottom)); padding: 7px max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left)); border: 1px solid var(--line); border-width: 1px 0 0; background: rgba(13,10,8,.96); }
  .sidebar > .brand, .sidebar-user { display: none; }
  .side-nav { height: 60px; margin: 0; display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { min-width: 57px; min-height: 54px; padding: 6px 3px; flex: 1 0 57px; flex-direction: column; justify-content: center; gap: 4px; border-radius: 11px; font-size: 10px; }
  .side-nav .side-icon { display: grid; width: 20px; height: 20px; }
  .side-nav .side-icon svg { width: 19px; height: 19px; }
  .role-preview-visible .sidebar { top: auto; height: calc(68px + env(safe-area-inset-bottom)); }
  .app-main { padding: 25px 16px calc(100px + env(safe-area-inset-bottom)); }
  .servers-route .app-main { height: calc(100dvh - 68px - env(safe-area-inset-bottom)); padding: 11px 9px 8px; }
  .servers-page { grid-template-rows: auto minmax(0, 1fr); gap: 10px; height: 100%; min-height: 0; }
  .servers-page-header { align-items: stretch; flex-direction: column; gap: 14px; }
  .servers-page-header > div { min-width: 0; }
  .servers-page-header h1 { margin: 2px 0 0; font-size: clamp(27px, 9vw, 36px); }
  .servers-page-header p { display: none; }
  .servers-page-header .button { position: absolute; top: 12px; right: 10px; width: auto; min-height: 38px; padding: 8px 10px; font-size: 11px; justify-content: center; }
  .servers-panel-frame { min-height: 0; border-radius: 12px; }
  .app-header { margin-bottom: 25px; flex-direction: column; }
  .app-header h1 { font-size: clamp(34px, 11vw, 48px); }
  .card { padding: 17px; border-radius: 14px; }

  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .two-factor-qr { align-items: flex-start; flex-direction: column; }
  .two-factor-qr img { width: min(220px, 100%); height: auto; }
  .two-factor-recovery pre { columns: 1; }
  .settings-actions { flex-wrap: wrap; }
  .profile-settings-row { align-items: flex-start; }
  .recovery-setting-actions { grid-template-columns: 1fr; }

  .user-row { grid-template-columns: 1fr; }
  .user-actions .button { flex: 1 1 auto; }
  .storage-policy-row { align-items: flex-start; flex-direction: column; }
  .storage-limit-fields { width: 100%; grid-template-columns: minmax(0, 1fr) 86px; }
  .storage-limit-fields .button { grid-column: 1 / -1; }
  .owner-storage-card .storage-limit-fields { grid-template-columns: minmax(0, 1fr) 86px; }
  .site-permissions-list { grid-template-columns: 1fr; }
  .site-permissions-card .card-head, .site-permission-header-actions { width: 100%; }
  .site-permissions-card .card-head { gap: 16px; flex-direction: column; }
  .site-permission-header-actions { justify-content: space-between; }
  .site-permission-row { align-items: stretch; }
  .site-drag-grip { display: none; }
  .site-permission-control { width: 100%; grid-template-columns: minmax(0, 1fr) auto auto; }
  .site-permission-control .rank-select { width: 100%; }
  .owner-operations-card .card-head, .audit-log-card .card-head { flex-direction: column; gap: 14px; }
  .operations-actions { width: 100%; justify-content: flex-start; }
  .operations-overview { align-items: flex-start; flex-direction: column; }
  .operations-backup-note { text-align: left; }
  .audit-toolbar { grid-template-columns: 1fr; }
  .audit-entry-head { flex-direction: column; gap: 6px; }
  .audit-entry time { white-space: normal; }
  .audit-page .app-header { align-items: stretch; }
  .audit-page-actions { width: 100%; justify-content: flex-start; }
  .audit-page .audit-toolbar { grid-template-columns: 1fr; }
  .audit-page .audit-list { max-height: none; overflow: visible; padding-right: 0; }
  .site-ungrouped-zone { padding: 12px; }
  .site-ungrouped-grid { grid-template-columns: 1fr; }
  .join-permission-group { padding: 16px; border-radius: 16px; }
  .join-permission-heading { flex-direction: column; gap: 12px; }
  .join-permission-heading h3 { font-size: 21px; }
  .join-permission-master .site-permission-row { padding: 17px; }
  .join-permission-master .site-permission-control .rank-select { width: 100%; }
  .join-permission-children { padding: 12px; }
  .join-permission-children-grid { grid-template-columns: 1fr; }
  .custom-group-actions { justify-content: flex-start; }
  .custom-group-main-picker { align-items: stretch; flex-direction: column; }
  .custom-group-main-picker select, .custom-group-main-picker .ui-select { width: 100%; }

  .cloud-toolbar { align-items: flex-start; flex-direction: column; }
  .cloud-upload-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cloud-upload-actions .button { width: 100%; }
  .cloud-selection-bar { align-items: stretch; flex-direction: column; }
  .cloud-selection-bar > div { display: grid; grid-template-columns: 1fr 1fr; }
  .drop-zone { min-height: 300px; padding: 10px; }
  .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .file-item { padding: 12px; }
  .file-icon { height: 62px; }
  .item-action-menu { position: fixed; inset: auto 10px calc(78px + env(safe-area-inset-bottom)); min-width: 0; padding: 8px; border-radius: 14px; }
  .item-action-menu button { min-height: 44px; }

  .modal-backdrop { align-items: end; padding: 18px 0 0; }
  .modal { width: 100%; max-height: calc(100dvh - 18px); border-radius: 20px 20px 0 0; border-width: 1px 0 0; }
  .modal-head { min-height: 60px; padding: 12px 14px; gap: 9px; }
  .modal-head h2 { font-size: 15px; }
  .editor-head-actions { gap: 5px; }
  .editor-head-actions .button { min-height: 38px; padding: 7px 9px; font-size: 11px; }
  .modal-close { min-width: 42px; min-height: 42px; }
  .file-editor-modal { height: calc(100dvh - 18px); }
  .file-editor { grid-template-columns: 39px 1fr; }
  .editor-lines { padding-inline: 6px; }
  .editor-state, .editor-footer span:last-child, .editor-language { display: none; }
  .preview { min-height: 62dvh; padding: 12px; }
  .preview iframe { height: 72dvh; }
  .document-preview { width: calc(100% - 18px); margin: 9px auto; padding: 28px 21px; }
  .site-dialog-modal form, .site-confirm-content, .official-open-content { padding: 23px 20px; }
  .site-dialog-heading { gap: 11px; }
  .site-dialog-actions { align-items: stretch; flex-direction: column-reverse; }
  .site-dialog-actions .button { width: 100%; }
  .date-picker.open::before { content: ""; position: fixed; inset: 0; z-index: 24; background: rgba(5,4,3,.72); backdrop-filter: blur(4px); }
  .date-picker-popover { position: fixed; top: 50%; left: 50%; width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; transform: translate(-50%, -50%); }
  .toast-region { right: 12px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 12px; }
  .toast { width: 100%; max-width: none; }
  .status-page { width: min(100% - 28px, 1080px); padding: 60px 0 72px; }
  .status-hero h1 { font-size: clamp(44px, 14vw, 64px); }
  .status-components { grid-template-columns: 1fr; margin-top: 38px; }
  .status-meta { flex-direction: column; gap: 4px; }
}

@media (min-width: 701px) and (max-height: 760px) {
  .servers-route .app-main { padding-block: 12px; }
  .servers-page { gap: 9px; }
  .servers-page-header h1 { margin: 2px 0 0; font-size: 30px; }
  .servers-page-header p { display: none; }
}

@media (max-width: 380px) {
  .nav .brand > span:last-child { display: none; }
  .profile-picker { flex-wrap: wrap; }
  .profile-upload-action { margin-left: 56px; }
  .cloud-upload-actions { grid-template-columns: 1fr; }
  .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .file-item strong { font-size: 12px; }
  .editor-head-actions .button.secondary { display: none; }
}

@media (pointer: coarse) {
  .button, .button.small, input, select, .toggle-password, .file-menu, .date-nav, .date-day, .breadcrumbs button { min-height: 44px; }
  .file-menu { min-width: 44px; }
}

@media (hover: none) {
  .file-item .item-name.overflowing > span { animation: mobile-name-pan calc(var(--name-duration, 1.8s) * 3) ease-in-out .8s infinite alternate; }
}

@keyframes mobile-name-pan {
  0%, 18% { transform: translateX(0); }
  82%, 100% { transform: translateX(calc(-1 * var(--name-shift))); }
}

/* Browsers on truly spanned dual-screen hardware expose the hinge as viewport segments. */
@media (horizontal-viewport-segments: 2) {
  .app-main { padding-inline: 34px; }
  .panel-grid, .settings-page { column-gap: max(28px, calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0) + 20px)); }
  .panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-page { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
  .settings-page > .app-header, .settings-page .two-factor-card, .settings-page .account-data-card { grid-column: 1 / -1; }
  .settings-page .settings-card { max-width: none; margin-top: 0; }
  .file-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* Landing page composition */
.landing-page > .hero,
.landing-page > .section,
.landing-shell > .footer {
  max-width: 1360px;
}

.landing-season-section {
  padding-top: 42px;
  padding-bottom: 120px;
}

.landing-season-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: end;
  gap: 48px;
  margin-bottom: 34px;
}

.landing-season-head h2 {
  margin-bottom: 0;
}

.landing-season-head > p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.landing-countdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  align-items: stretch;
  gap: 16px;
}

.landing-countdown-grid .countdown-section {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.landing-countdown-grid .countdown-card {
  min-height: 430px;
  height: 100%;
  padding: 30px;
  flex-flow: column nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 24px;
}

.landing-countdown-grid .countdown-copy {
  max-width: none;
}

.landing-countdown-grid .countdown-heading {
  font-size: clamp(26px, 2.5vw, 38px);
}

.landing-countdown-grid .countdown-tiles {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.landing-countdown-grid .countdown-tile {
  min-width: 0;
  padding: 14px 4px;
}

.landing-countdown-grid .countdown-tile strong {
  font-size: clamp(21px, 2vw, 27px);
}

.landing-countdown-grid .countdown-tile span {
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
}

.landing-countdown-grid .countdown-progress {
  margin-top: auto;
}

.landing-essentials-section {
  padding-top: 10px;
  padding-bottom: 120px;
}

.landing-story-grid {
  width: min(100% - 52px, 1308px);
  max-width: 1308px;
  margin: 0 auto;
  padding-bottom: 120px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.landing-story-grid > .section {
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

.landing-story-grid .profile-spotlight,
.landing-story-grid .wallpaper-studio-spotlight {
  min-height: 760px;
  height: 100%;
  grid-template-columns: minmax(0, 1fr);
  align-content: space-between;
  gap: 38px;
  padding: clamp(38px, 4vw, 58px);
}

.landing-story-grid .profile-spotlight-copy h2,
.landing-story-grid .wallpaper-studio-spotlight-copy h2 {
  font-size: clamp(40px, 4.2vw, 62px);
}

.landing-story-grid .profile-spotlight-visual {
  min-height: 300px;
}

.landing-story-grid .profile-spotlight-orbit {
  width: min(27vw, 340px);
}

.landing-story-grid .profile-preview-card {
  width: min(100%, 310px);
}

.landing-story-grid .wallpaper-studio-preview {
  width: min(100%, 350px);
  transform: rotate(-1.2deg);
}

.landing-network-section {
  padding-top: 0;
  padding-bottom: 120px;
}

.landing-network-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(310px, .8fr);
  align-items: stretch;
  gap: 18px;
}

.landing-guides-panel,
.landing-cta-panel {
  min-width: 0;
  padding: clamp(32px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(29,21,16,.88), rgba(12,9,7,.9));
}

:root[data-theme="christmas"] .landing-guides-panel,
:root[data-theme="christmas"] .landing-cta-panel {
  border-color: rgba(201,164,92,.24);
  background:
    radial-gradient(circle at 100% 0, rgba(209,55,61,.09), transparent 18rem),
    linear-gradient(145deg, rgba(16,43,28,.92), rgba(8,23,14,.95));
}

.landing-guides-panel .section-head {
  margin-bottom: 34px;
}

.landing-guides-panel .guides-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

.landing-cta-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  top: -210px;
  right: -190px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 28%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 58px color-mix(in srgb, var(--accent-2) 5%, transparent), 0 0 0 116px color-mix(in srgb, var(--accent) 3%, transparent);
}

.landing-cta-panel h2 {
  margin: 20px 0 16px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: .98;
}

.landing-cta-panel p {
  margin-bottom: 30px;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .landing-story-grid {
    grid-template-columns: 1fr;
  }

  .landing-story-grid .profile-spotlight,
  .landing-story-grid .wallpaper-studio-spotlight {
    min-height: 520px;
    grid-template-columns: minmax(0, 1fr) minmax(290px, .72fr);
    align-content: center;
  }

  .landing-story-grid .profile-spotlight-orbit {
    width: min(34vw, 380px);
  }

  .landing-network-grid {
    grid-template-columns: 1fr;
  }

  .landing-cta-panel {
    min-height: 340px;
  }
}

@media (max-width: 760px) {
  .landing-season-section,
  .landing-essentials-section,
  .agenda-spotlight-section,
  .landing-network-section {
    padding-inline: 18px;
    padding-bottom: 82px;
  }

  .landing-season-section {
    padding-top: 24px;
  }

  .landing-season-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 26px;
  }

  .landing-season-head > p {
    font-size: 14px;
  }

  .landing-countdown-grid {
    grid-template-columns: 1fr;
  }

  .landing-countdown-grid .countdown-card {
    min-height: 390px;
    padding: 26px 22px;
  }

  .landing-story-grid {
    width: calc(100% - 36px);
    padding-bottom: 82px;
  }

  .landing-story-grid .profile-spotlight,
  .landing-story-grid .wallpaper-studio-spotlight {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 34px 24px;
  }

  .landing-story-grid .profile-spotlight-orbit {
    width: min(72vw, 340px);
  }

  .agenda-spotlight {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 34px 24px;
    border-radius: 22px;
  }

  .agenda-landing-preview {
    width: 100%;
    padding: 16px;
  }

  .landing-guides-panel,
  .landing-cta-panel {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .landing-guides-panel .guides-grid {
    grid-template-columns: 1fr;
  }

  .landing-cta-panel {
    min-height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
