:root {
  color-scheme: dark;
  --bg: #100d0e;
  --ink: #fff5f4;
  --muted: #cec1c3;
  --accent: #ff575d;
  --edge: #3a272b;
  --display: Manrope, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.65 "DM Sans", system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #ff9fa2; outline-offset: 4px; }
.wrap { width: min(100% - 5rem, 1280px); margin-inline: auto; }

.header {
  min-height: 79px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font: 800 1.2rem/1.15 var(--display);
  letter-spacing: -.035em;
}
.brand img { object-fit: contain; }
.brand strong { color: var(--accent); }
nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2rem); }
nav a { color: var(--muted); font-size: .9375rem; font-weight: 700; }
nav a:hover { color: #ff8589; }
.staff-link, .button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 7px;
  font-weight: 800;
}
.staff-link {
  padding: .5rem .9rem;
  border: 1px solid #87454a;
  color: var(--ink);
  background: #2b1218;
}
.staff-link:hover { border-color: var(--accent); }
.button {
  padding: .7rem 1.2rem;
  background: var(--accent);
  color: #1d0a0c;
}
.button:hover { background: #ff8589; }

h1, h2, .widget-heading h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.055em;
  text-wrap: balance;
}
h1 { font-size: clamp(4.3rem, 10vw, 9rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4.35rem); }
.hero-accent { color: var(--accent); }
@supports (background-clip: text) {
  h1 span, h2, .widget-heading h3 {
    background: linear-gradient(180deg, var(--ink) 30%, #e0bbbf);
    background-clip: text;
    color: transparent;
  }
  h1 .hero-accent {
    background-image: linear-gradient(180deg, #ff9295 12%, var(--accent) 82%);
  }
}
@media (forced-colors: active) {
  h1 span, h1 .hero-accent, h2, .widget-heading h3 { background: none; color: CanvasText; }
}

.hero {
  --pan-x: 0px;
  --pan-y: 0px;
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 590px;
  background: #160d0f;
  border-block: 1px solid var(--edge);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.hero::before {
  inset: -26px;
  background: url('roblox-collage.webp') center/cover no-repeat;
  filter: blur(4px);
  transform: translate3d(var(--pan-x), var(--pan-y), 0) scale(1.025);
  transition: transform 450ms cubic-bezier(.2,.75,.25,1);
}
.hero::after {
  inset: 0;
  background: linear-gradient(90deg,#10090cf2 0%,#130b10d9 32%,#1d0a126b 72%),
    linear-gradient(0deg,var(--bg) 0%,transparent 55%);
}
.hero-inner { position: relative; isolation: isolate; padding-block: 6rem; }
.tag {
  margin: 0 0 1rem;
  color: #ff8589;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.intro { max-width: 25rem; color: #eadbdd; font-size: 1.2rem; margin: 1.25rem 0 1.75rem; }
.hero-art {
  position: absolute;
  z-index: -1;
  width: min(58%, 690px);
  aspect-ratio: 1;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  background: repeating-radial-gradient(circle,#ef5b671c 0 1px,transparent 1px 45px);
  mask-image: radial-gradient(circle,#000 43%,#000a 58%,transparent 72%);
}
.hero-art img {
  width: 82%;
  height: auto;
  filter: drop-shadow(0 20px 38px #5c000b);
  object-fit: contain;
  transform: translate3d(calc(var(--pan-x) * -1.6), calc(var(--pan-y) * -1.6), 0);
  transition: transform 450ms cubic-bezier(.2,.75,.25,1);
}
.hero h1, .hero .intro, .hero .tag, .hero .button { animation: hero-enter 550ms both; }
.hero h1 { animation-delay: 70ms; }
.hero .intro { animation-delay: 130ms; }
.hero .button { animation-delay: 190ms; }
@keyframes hero-enter {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}

.staff { padding-block: clamp(3.5rem, 8vw, 6.5rem); text-align: center; }
.staff p { margin: 1rem 0 0; color: var(--muted); font-size: 1.125rem; }
.studio { background: #2b1218; border-block: 1px solid var(--edge); }
.studio-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-block: 4.5rem;
}
.studio p { font-size: 1.125rem; max-width: 31rem; margin: 0 0 1.25rem; }
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2rem;
}
.footer p { color: var(--muted); margin: 0; font-size: .875rem; }
.skip {
  position: fixed;
  top: 5px;
  left: 5px;
  transform: translateY(-150%);
  z-index: 2;
  background: var(--accent);
  color: var(--bg);
  padding: .5rem 1rem;
}
.skip:focus { transform: none; }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 3rem); }
  .hero { min-height: 540px; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 2rem); }
  .header { min-height: 68px; flex-wrap: wrap; padding-block: .7rem; }
  .header .brand { font-size: 1rem; }
  .header .brand img { width: 36px; height: 36px; }
  .hero { min-height: auto; }
  .hero::after { background: linear-gradient(0deg,var(--bg) 0%,#130b10ed 35%,#1d0a1280 100%); }
  .hero-inner { padding-block: clamp(9rem, 48vw, 13.5rem) 3rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-art { width: min(78%, 350px); right: -1rem; top: 0; transform: translateY(-12%); }
  .hero-art img { width: 74%; }
  .studio-inner { grid-template-columns: 1fr; gap: 1.3rem; padding-block: 3rem; }
  .footer { align-items: flex-start; flex-direction: column; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before, .hero-art img { transform: none; transition: none; }
  .hero h1, .hero .intro, .hero .tag, .hero .button { animation: none; }
}

.staff {
  margin-block: clamp(2rem, 6vw, 4.5rem);
  padding: clamp(2rem, 7vw, 5rem) 1rem;
  border: 1px solid var(--edge);
  border-radius: 1.25rem;
  background: radial-gradient(ellipse at top, #38171e, transparent 72%), #191416;
}
.staff .button { margin-top: 1.5rem; }
.studio p:last-child { margin-bottom: 0; }

.button, .staff-link {
  justify-content: center;
  font-family: inherit;
  box-shadow: 0 3px 0 #702c33;
  transition: transform 160ms ease, box-shadow 160ms ease,
    background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.button:not(:disabled) { cursor: pointer; }
@media (hover: hover) {
  .button:not(:disabled):hover, .staff-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 0 #702c33, 0 8px 24px #ff575d30;
  }
}
.button:not(:disabled):active, .staff-link:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #702c33;
}
.button:disabled, .button:disabled:hover {
  background: #342329;
  color: var(--muted);
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  .button, .staff-link { transition: none; }
  .button:not(:disabled):is(:hover, :active), .staff-link:is(:hover, :active) { transform: none; }
}

.login-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 50% 20%, #32151d, transparent 60%), var(--bg);
}
.login-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding-block: 2rem 4rem;
}
.login-panel {
  width: min(100%, 30rem);
  padding: clamp(1.25rem, 5vw, 2.75rem);
  background: #191416;
  border: 1px solid var(--edge);
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 3.5rem #0005;
}
.login-panel h1 { font-size: clamp(2.5rem, 7vw, 3.75rem); }
.login-panel p { color: var(--muted); margin: .75rem 0 1.5rem; }
.login-fields { display: grid; min-width: 0; margin: 0; padding: 0; border: 0; }
.login-fields label { margin-bottom: .35rem; font-size: .9375rem; font-weight: 700; }
.login-fields input {
  width: 100%;
  min-height: 44px;
  margin-bottom: 1rem;
  padding: .65rem .8rem;
  border: 1px solid var(--edge);
  border-radius: 7px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.login-fields .button { border: 0; font-size: 1rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.login-fields input:focus-visible {
  outline: 2px solid #ff9fa2;
  outline-offset: 2px;
}
.login-panel .login-error { color: #ff9fa2; }
button.staff-link { cursor: pointer; font-size: .9375rem; }
.dashboard { display: grid; gap: 1.25rem; padding-block: 2rem 4rem; }
.dashboard .login-panel { width: min(100%, 48rem); }
.dashboard dt { color: var(--muted); }
.dashboard dd { margin-inline-start: 0; font-weight: 800; }


.dashboard-widgets {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
  gap: 1.25rem;
}
.dashboard-widgets[hidden], .widget-form[hidden] { display: none; }
.dashboard-widgets .login-panel { width: 100%; }
.dashboard-widgets .widget-heading h3 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.widget-status:empty { display: none; }
.widget-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.widget-list li {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: .75rem;
  padding-block: .85rem;
  border-top: 1px solid var(--edge);
  overflow-wrap: anywhere;
}
.widget-list li p { margin: .25rem 0 0; white-space: pre-wrap; }
.widget-list button { flex-shrink: 0; }
.widget-form { margin-top: 1rem; }
.widget-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: .65rem .8rem;
  border: 1px solid var(--edge);
  border-radius: 7px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}
.widget-form textarea:focus-visible { outline: 2px solid #ff9fa2; outline-offset: 2px; }

.dashboard-page .header { border-bottom: 1px solid var(--edge); }
.dashboard-account { display: flex; align-items: center; gap: 1rem; text-align: right; }
.dashboard-account[hidden], .widget-editor[hidden], .dashboard #staff-status:empty { display: none; }
.dashboard-account span { display: block; color: var(--muted); font-size: .875rem; }
.dashboard > #staff-status { margin: 0; color: var(--muted); }

.dashboard-widgets .login-panel {
  padding: clamp(1rem, 2.6vw, 2rem);
  background: linear-gradient(150deg, #24171c 0%, #191416 52%);
}
.widget-heading { display: flex; align-items: center; gap: .7rem; }
.widget-heading > span, .bulletin-icon {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid #663641;
  border-radius: .65rem;
  background: #331b23;
}
.widget-editor { margin-top: 1rem; }
.widget-editor summary {
  width: fit-content;
  padding: .4rem .7rem;
  border: 1px solid #87454a;
  border-radius: 7px;
  color: #ffb8bc;
  background: #2b1218;
  cursor: pointer;
  font-weight: 700;
}
.widget-editor summary:hover { background: #451d27; }
.widget-editor summary:focus-visible { outline: 2px solid #ff9fa2; outline-offset: 3px; }
.widget-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.widget-fields select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: .25rem 0 1rem;
  padding: .5rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--edge);
  border-radius: 7px;
  font: inherit;
}
.widget-fields input { margin-top: .25rem; }
.bulletin-icon { margin-right: .5rem; vertical-align: middle; }
.bulletin-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: .4rem; color: var(--muted); font-size: .875rem; }
.bulletin-meta span { color: #ffb8bc; text-transform: capitalize; }
.directory-entry { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.role-badge {
  --role-colour: #ff959a;
  padding: .15rem .55rem;
  border: 1px solid color-mix(in srgb, var(--role-colour), transparent 60%);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--role-colour), transparent 88%);
  color: var(--role-colour);
  font-size: .875rem;
}
[data-colour="orange"] { --role-colour: #ffb17a; }
[data-colour="gold"] { --role-colour: #f9d16d; }
[data-colour="green"] { --role-colour: #a6e587; }
[data-colour="teal"] { --role-colour: #78e1cf; }
[data-colour="blue"] { --role-colour: #9fc7ff; }
[data-colour="violet"] { --role-colour: #c5afff; }
[data-colour="pink"] { --role-colour: #ffade2; }
@media (max-width: 400px) {
  .dashboard-account { text-align: left; }
  .widget-fields { grid-template-columns: 1fr; gap: 0; }
}

.dashboard-page {
  position: relative;
  isolation: isolate;
  background: #100c12;
}
.dashboard-page::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -18%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 22% 22%, #7d193d80, transparent 37%),
    radial-gradient(ellipse at 78% 46%, #4a237469, transparent 40%),
    radial-gradient(ellipse at 45% 82%, #a92c334d, transparent 36%);
}
.dashboard-banner {
  display: grid;
  align-content: end;
  min-height: clamp(10rem, 20vw, 16rem);
  padding: clamp(1.1rem, 3.75vw, 3rem);
  overflow: hidden;
  border: 1px solid #6e3347;
  border-radius: 1.35rem;
  background:
    linear-gradient(0deg, #150b14fa, transparent 86%),
    linear-gradient(90deg, #150b14e8 0%, #150b1452 58%, transparent),
    #35141d url('redspire-banner.jpg') center / cover no-repeat;
  box-shadow: 0 1.25rem 3rem #0c04085c;
}
.dashboard-banner h1 {
  font-size: clamp(2.1rem, 6vw, 4.5rem);
  text-wrap: initial;
  filter: drop-shadow(0 3px 10px #100710);
}
.dashboard-banner h1 span {
  background: linear-gradient(180deg, #fff0ec 20%, #ff8a98);
  background-clip: text;
}
.dashboard-widgets .login-panel {
  --widget-accent: #ff8da7;
  border-top: 2px solid color-mix(in srgb, var(--widget-accent), transparent 45%);
  background: linear-gradient(150deg, #2b1925, #18131c 54%);
}
.dashboard-widgets #directory-widget {
  --widget-accent: #c7a5ff;
  background: linear-gradient(150deg, #261b36, #18131f 54%);
}
.widget-heading > span {
  border-color: color-mix(in srgb, var(--widget-accent), transparent 65%);
  background: color-mix(in srgb, var(--widget-accent), #221622 84%);
}
.widget-editor[open] .widget-form {
  padding: 1rem;
  border: 1px solid var(--edge);
  border-radius: .85rem;
  background: #151019;
}
.widget-list:empty { margin: 0; }
.widget-list li {
  margin-top: .65rem;
  padding: .75rem;
  border: 1px solid #44303f;
  border-radius: .85rem;
  background: #1c1522;
}
.widget-list li > div { min-width: 0; }
.widget-list li .staff-link {
  min-height: 36px;
  padding: .25rem .55rem;
  background: transparent;
  box-shadow: none;
}
.widget-list li .staff-link:hover { background: #452332; }
.bulletin-card { --category-colour: #ff96b0; }
.widget-list li.bulletin-card {
  border-inline-start: 3px solid var(--category-colour);
}
.bulletin-card[data-category="event"] { --category-colour: #bfa0ff; }
.bulletin-card[data-category="reminder"] { --category-colour: #89d9ff; }
.bulletin-card[data-category="urgent"] { --category-colour: #ff777d; }
.bulletin-card[data-category="recognition"] { --category-colour: #ffcf78; }
.bulletin-card .bulletin-meta span { color: var(--category-colour); }
.bulletin-card strong { font-size: 1.125rem; }
.bulletin-card p { color: var(--ink); }
.widget-list li.directory-row { align-items: center; }
.directory-avatar {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding-inline: .25rem;
  border-radius: .65rem;
  color: var(--role-colour, #ff959a);
  background: color-mix(in srgb, var(--role-colour, #ff959a), #211724 82%);
  font-size: .8rem;
  font-weight: 800;
}
@media (prefers-reduced-motion: no-preference) {
  .dashboard-widgets .login-panel { animation: hero-enter 450ms ease-out both; }
  #directory-widget { animation-delay: 90ms; }
}

@media (forced-colors: active) {
  .dashboard-banner h1 span { color: CanvasText; background: none; }
}

.dashboard-page > .wrap {
  width: calc(100% - clamp(2rem, 5vw, 5rem));
}
.bulletin-meta .bulletin-author {
  color: var(--muted);
  text-transform: none;
}

.dashboard-pattern {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 35%, #0007 5%, #000 84%);
}
.dashboard-pattern--grid::before,
.dashboard-pattern--grid::after {
  content: "";
  position: absolute;
  inset: -9rem;
}
.dashboard-pattern--grid::before {
  --grid-size: 72px;
  background-image:
    radial-gradient(circle at 1px 1px, #ff9ca8 0 1px, #f4496766 2px, transparent 5px),
    linear-gradient(90deg, #e66b8e3d 1px, transparent 1px),
    linear-gradient(#b879ef35 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  transform: skewX(-29deg) translateX(-36px);
  opacity: .6;
}
.dashboard-pattern--grid::after {
  background-image: repeating-linear-gradient(
    119deg,
    transparent 0 205px,
    #ff334500 215px,
    #ff33452b 231px,
    #fc5d788c 234px,
    #ff334533 236px,
    transparent 249px 370px
  );
  transform: translateX(-100px);
  opacity: .65;
}
@media (prefers-reduced-motion: no-preference) {
  .dashboard-pattern--grid::before { animation: dashboard-grid 12s linear infinite; }
  .dashboard-pattern--grid::after { animation: dashboard-trails 10s ease-in-out infinite alternate; }
}
@keyframes dashboard-grid {
  from { background-position: 0 0; }
  to { background-position: 72px 72px; }
}
@keyframes dashboard-trails {
  from { transform: translateX(-100px); opacity: .35; }
  to { transform: translateX(100px); opacity: .85; }
}

.dashboard-pattern--galaxy {
  mask-image: none;
  background:
    radial-gradient(ellipse at 12% 68%, #711b3b73, transparent 45%),
    radial-gradient(ellipse at 86% 52%, #5330807a, transparent 52%),
    radial-gradient(ellipse at 65% 100%, #7b253f79, transparent 45%),
    #100a16;
}
.dashboard-pattern--galaxy canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.dashboard-widget-pair {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.25rem;
}
@media (max-width: 750px) {
  .dashboard-widget-pair {
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
  }
}
@media (max-width: 750px) {
  .dashboard-widgets { grid-template-columns: 1fr; }
}
.dashboard-widgets .dashboard-settings {
  --widget-accent: #e4a2ef;
  background: linear-gradient(150deg, #2b1a30, #19141e 60%);
}
.style-picker { min-width: 0; margin: 1rem 0 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.5rem), 1fr)); gap: .55rem; }
.style-picker legend { padding: 0; margin-bottom: .45rem; font-weight: 700; }
.style-picker label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .45rem;
  padding: .5rem;
  border: 1px solid var(--edge);
  border-radius: .75rem;
  background: #1c1522;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 700;
}
.style-picker label:hover { border-color: #805575; }
.style-picker label:has(input:checked) { border-color: #e4a2ef; background: #322239; }
.style-picker label:focus-within { outline: 2px solid #e4a2ef; outline-offset: 2px; }
.style-picker input { accent-color: #e4a2ef; margin: 0; }
.style-preview {
  grid-area: 1 / 1 / 2 / -1;
  min-width: 0;
  height: clamp(2rem, 4vw, 3.3rem);
  border-radius: .35rem;
  background-color: #25152d;
}
.style-preview--grid {
  background-image: repeating-linear-gradient(90deg, #ff7e9b80 0 1px, transparent 1px 6px),
    repeating-linear-gradient(#ff7e9b80 0 1px, transparent 1px 6px);
}
.style-preview--space {
  background-image: radial-gradient(circle at 74% 26%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 20% 63%, #fff 0 1px, transparent 2px),
    radial-gradient(ellipse at 58% 58%, #c86ba7, #3d2a66 58%, #201426);
}
.style-preview--geometry {
  background-image: conic-gradient(from 55deg, #ff8ca7, #a85dcb, #653bac, #ff8ca7);
  background-size: 100% 100%;
}
.dashboard-settings .settings-status { margin: .6rem 0 0; }
.settings-status:empty { display: none; }

.dashboard-pattern canvas, .geometry-field { display: none; }
.dashboard-pattern--galaxy canvas { display: block; }
.dashboard-pattern--geometry {
  mask-image: none;
  background: radial-gradient(ellipse at 70% 30%, #3c245f, transparent 65%),
    radial-gradient(ellipse at 10% 80%, #621a38, transparent 64%), #130d1a;
}
.dashboard-pattern--geometry .geometry-field { display: block; }
.geometry-field { position: absolute; inset: 0; perspective: 750px; }
.geometry-shape {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  opacity: var(--shape-opacity, .75);
}
.geometry-shape--cube { --x: 19%; --y: 26%; --size: clamp(4rem, 12vw, 11rem); --duration: 13s; --delay: -4s; }
.geometry-shape--small-cube { --x: 77%; --y: 76%; --size: clamp(3rem, 9vw, 8rem); --duration: 10s; --delay: -6s; }
.geometry-shape--rings { --x: 89%; --y: 27%; --size: clamp(4rem, 12vw, 12rem); --duration: 12s; --delay: -7s; }
.geometry-shape--orb { --x: 9%; --y: 75%; --size: clamp(3rem, 9vw, 8rem); --duration: 9s; --delay: -2s; }
.geometry-shape--diamond { --x: 49%; --y: 68%; --size: clamp(4rem, 10vw, 9rem); --duration: 11s; --delay: -8s; }
.geometry-cube, .geometry-rings, .geometry-orb, .geometry-diamond {
  width: 100%;
  height: 100%;
}
.geometry-cube, .geometry-rings {
  position: relative;
  transform: rotateX(-22deg) rotateY(36deg);
  transform-style: preserve-3d;
}
.geometry-cube i, .geometry-rings i {
  position: absolute;
  inset: 0;
  border: 1px solid #f8aed0;
  background: linear-gradient(145deg, #ec659353, #693ab32c);
  box-shadow: inset 0 0 1.3rem #d678be5a;
}
.geometry-cube i { transform: rotateY(var(--turn, 0deg)) translateZ(calc(var(--size) / 2)); }
.geometry-cube i:nth-child(2) { --turn: 90deg; }
.geometry-cube i:nth-child(3) { --turn: 180deg; }
.geometry-cube i:nth-child(4) { --turn: 270deg; }
.geometry-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--size) / 2)); }
.geometry-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--size) / 2)); }
.geometry-rings i { border-radius: 50%; border: 2px solid #deafff; background: transparent; }
.geometry-rings i:nth-child(2) { transform: rotateY(65deg); }
.geometry-rings i:nth-child(3) { transform: rotateX(66deg); }
.geometry-orb {
  border-radius: 50%;
  background: radial-gradient(circle at 34% 29%, #ffe1eb, #ed6796 16%, #843988 48%, #24122d 73%);
  box-shadow: 0 0 2.6rem #e8629e6b;
}
.geometry-diamond {
  clip-path: polygon(50% 0%, 88% 50%, 50% 100%, 12% 50%);
  background: conic-gradient(from 40deg, #ffafd4, #9d73ed, #392765, #c85baf, #ffafd4);
}
@media (prefers-reduced-motion: no-preference) {
  .dashboard-pattern--geometry .geometry-shape {
    animation: geometry-float var(--duration) ease-in-out var(--delay) infinite alternate;
  }
  .dashboard-pattern--geometry :is(.geometry-cube, .geometry-rings) {
    animation: geometry-spin 15s linear var(--delay) infinite;
  }
  .dashboard-pattern--geometry .geometry-diamond { animation: geometry-tumble 9s ease-in-out infinite alternate; }
}
@keyframes geometry-float {
  from { transform: translate(-75%, -68%); }
  to { transform: translate(-25%, -32%); }
}
@keyframes geometry-spin {
  from { transform: rotateX(-22deg) rotateY(36deg) rotateZ(10deg); }
  to { transform: rotateX(338deg) rotateY(396deg) rotateZ(10deg); }
}
@keyframes geometry-tumble {
  from { transform: rotate(-25deg) rotateY(-40deg); }
  to { transform: rotate(25deg) rotateY(40deg); }
}

@media (max-width: 400px) {
  .style-picker { grid-template-columns: 1fr; }
  .style-picker label { grid-template-columns: 2.2rem auto 1fr; }
  .style-preview { grid-area: auto; order: -1; }
}

.dashboard-widgets .important-links {
  --widget-accent: #96c9ff;
  background: linear-gradient(150deg, #1d2439, #19141e 60%);
}
.important-links-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: .65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.important-links-list .staff-link {
  width: 100%;
  justify-content: flex-start;
  gap: .5rem;
  flex-wrap: wrap;
  border-color: #46547a;
  background: #202033;
}
.important-links-list a:hover { color: #b5d8ff; border-color: #96c9ff; }
.important-links-list button:disabled {
  color: var(--muted);
  cursor: default;
  box-shadow: none;
  transform: none;
}
.important-links-list small { color: var(--muted); font-size: .8rem; }

.dashboard-category {
  --category-accent: #ffa5b6;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: .85rem;
  background: none;
  color: var(--category-accent);
  font-size: clamp(1.125rem, 2vw, 1.4rem);
  letter-spacing: .01em;
}
.dashboard-category::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--category-accent), transparent);
  opacity: .4;
}
.dashboard-category--misc { --category-accent: #c6b6ff; margin-top: .25rem; }

.idle-notice {
  color: var(--ink);
  border-top: 2px solid var(--accent);
  background: linear-gradient(145deg, #33191f, #191416 70%);
  max-width: calc(100% - 2rem);
}
.idle-notice::backdrop { background: #0d080dd1; backdrop-filter: blur(4px); }
.idle-notice h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.idle-notice .button { border: 0; font-size: 1rem; }
