:root {
  --font-base: 'Oswald', 'Roboto', sans-serif;
  --font-dyslexia:
    'Lexend', 'Atkinson Hyperlegible', 'Open Sans',
    sans-serif;
  --bg: #0b0f14;
  --bg-elev: #11161d;
  --bg-card: #11161d;
  --line: rgba(168, 176, 184, 0.28);
  --text: #e6e6e6;
  --text-muted: #a8b0b8;
  --accent: #e8a75d;
  --accent-soft: rgba(232, 167, 93, 0.22);
  --accent-shadow: rgba(232, 167, 93, 0.35);
  --metal-blue: #e8a75d;
  --metal-blue-soft: rgba(232, 167, 93, 0.3);
  --header-bg: rgba(11, 15, 20, 0.8);
  --panel-overlay: rgba(11, 15, 20, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.03);
  --surface-soft-2: rgba(255, 255, 255, 0.02);
  --surface-interactive: rgba(255, 255, 255, 0.04);
  --surface-interactive-hover: rgba(255, 255, 255, 0.08);
  --focus-surface: rgba(232, 167, 93, 0.16);
  --section-gradient-start: rgba(255, 255, 255, 0.035);
  --section-gradient-end: rgba(255, 255, 255, 0.015);
  --aside-gradient-start: rgba(255, 255, 255, 0.03);
  --aside-gradient-end: rgba(255, 255, 255, 0);
  --media-frame: rgba(255, 255, 255, 0.07);
  --dialog-backdrop: rgba(11, 15, 20, 0.78);
  --glass-card-start: rgba(255, 255, 255, 0.1);
  --glass-card-end: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.34);
  --glass-shadow-soft: 0 0.95rem 1.9rem rgba(0, 0, 0, 0.28);
  --glass-shadow-focus: 0 1.25rem 2.3rem rgba(0, 0, 0, 0.34);
  --glass-blur-profile: 0.72rem;
  --glass-blur-media: 0.58rem;
  --glass-saturate-profile: 118%;
  --glass-saturate-media: 114%;
  --profile-card-padding: 0.8rem;
  --profile-name-size: 0.98rem;
  --media-card-min-height: 4.15rem;
  --media-action-min-height: 2rem;
  --sticky-header-offset: clamp(6.5rem, 9vw, 7.5rem);
  --radius: 1.125rem;
  --shadow: 0 1.125rem 2.5rem rgba(0, 0, 0, 0.45);
}

html[data-theme='light'] {
  --bg: #eef4ff;
  --bg-elev: #f8fbff;
  --bg-card: #ffffff;
  --line: rgba(64, 88, 125, 0.22);
  --text: #121a27;
  --text-muted: #4f607e;
  --accent: #7a3f10;
  --accent-soft: rgba(122, 63, 16, 0.16);
  --accent-shadow: rgba(122, 63, 16, 0.24);
  --metal-blue: #7a3f10;
  --metal-blue-soft: rgba(122, 63, 16, 0.14);
  --header-bg: rgba(238, 244, 255, 0.86);
  --panel-overlay: rgba(248, 251, 255, 0.94);
  --surface-soft: rgba(18, 26, 39, 0.035);
  --surface-soft-2: rgba(18, 26, 39, 0.028);
  --surface-interactive: rgba(18, 26, 39, 0.04);
  --surface-interactive-hover: rgba(18, 26, 39, 0.08);
  --focus-surface: rgba(122, 63, 16, 0.16);
  --section-gradient-start: rgba(18, 26, 39, 0.045);
  --section-gradient-end: rgba(18, 26, 39, 0.018);
  --aside-gradient-start: rgba(18, 26, 39, 0.04);
  --aside-gradient-end: rgba(18, 26, 39, 0);
  --media-frame: rgba(18, 26, 39, 0.14);
  --dialog-backdrop: rgba(17, 22, 29, 0.45);
  --glass-card-start: rgba(255, 255, 255, 0.84);
  --glass-card-end: rgba(255, 255, 255, 0.5);
  --glass-border: rgba(64, 88, 125, 0.32);
  --glass-border-strong: rgba(64, 88, 125, 0.44);
  --glass-edge-highlight: rgba(255, 255, 255, 0.62);
  --glass-shadow-soft: 0 0.95rem 1.9rem
    rgba(21, 33, 57, 0.18);
  --glass-shadow-focus: 0 1.2rem 2.2rem
    rgba(21, 33, 57, 0.24);
  --glass-blur-profile: 0.7rem;
  --glass-blur-media: 0.56rem;
  --glass-saturate-profile: 106%;
  --glass-saturate-media: 104%;
  --shadow: 0 1rem 2.2rem rgba(21, 33, 57, 0.14);
}

html[data-theme='light'] .profile,
html[data-theme='light'] #series li,
html[data-theme='light'] #filmes li,
html[data-theme='light'] #bombando li,
html[data-theme='light'] #minha-lista li {
  border-color: var(--glass-border-strong);
  box-shadow:
    inset 0 0.0625rem 0 var(--glass-edge-highlight),
    inset 0 0 0 0.0625rem rgba(255, 255, 255, 0.24),
    var(--glass-shadow-soft);
}

html[data-theme='light'] .profile:hover,
html[data-theme='light'] #series li:hover,
html[data-theme='light'] #filmes li:hover,
html[data-theme='light'] #bombando li:hover,
html[data-theme='light'] #minha-lista li:hover,
html[data-theme='light'] .profile[aria-pressed='true'] {
  border-color: var(--metal-blue);
  box-shadow:
    inset 0 0.0625rem 0 rgba(255, 255, 255, 0.74),
    inset 0 0 0 0.0625rem rgba(122, 63, 16, 0.18),
    var(--glass-shadow-focus);
}

* {
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: inherit;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
}

html[data-scale='110'] {
  font-size: 110%;
}

html[data-scale='125'] {
  font-size: 125%;
}

body {
  min-height: 100vh;
  font-family: var(--font-base);
  color: var(--text);
  line-height: 1.5;
  background:
    radial-gradient(
      circle at 12% 8%,
      var(--accent-soft),
      transparent 30%
    ),
    radial-gradient(
      circle at 86% 2%,
      var(--metal-blue-soft),
      transparent 26%
    ),
    var(--bg);
  display: grid;
  grid-template-columns: 15.625rem minmax(0, 1fr);
  grid-template-areas:
    'aside header'
    'aside main'
    'aside footer';
  transition:
    background 0.35s ease,
    color 0.25s ease;
}

html[data-reading='dyslexia'] body {
  font-family: var(--font-dyslexia);
  line-height: 1.7;
  letter-spacing: 0.01em;
  word-spacing: 0.08em;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 200;
  padding: 0.6rem 0.9rem;
  border-radius: 0.55rem;
  background: var(--bg-card);
  color: var(--text);
  border: 0.0625rem solid var(--line);
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 0.75rem;
  outline: 0.125rem solid var(--metal-blue);
  outline-offset: 0.125rem;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

aside {
  grid-area: aside;
  padding: 2rem 1.4rem;
  border-right: 0.0625rem solid var(--line);
  background: linear-gradient(
    185deg,
    var(--aside-gradient-start),
    var(--aside-gradient-end)
  );
  position: sticky;
  top: 0;
  height: 100vh;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

aside h2 {
  margin: 0 0 1.3rem;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

aside li + li {
  margin-top: 0.65rem;
}

aside a {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  width: 100%;
  padding: 0.62rem 0.72rem;
  border-radius: 0.625rem;
  color: var(--text-muted);
  transition: all 0.25s ease;
}

aside a svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

aside a:hover {
  background: var(--surface-interactive-hover);
  color: var(--text);
}

aside a:focus-visible {
  outline: 0.125rem solid var(--metal-blue);
  outline-offset: 0.125rem;
  background: var(--focus-surface);
  color: var(--text);
}

header {
  grid-area: header;
  padding: 1.6rem 2.2rem 1rem;
  border-bottom: 0.0625rem solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--header-bg);
  backdrop-filter: blur(0.625rem);
  position: sticky;
  top: 0;
  z-index: 20;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  letter-spacing: 0.11em;
  color: var(--accent);
  text-shadow: 0 0 1.125rem var(--accent-shadow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.header-accessibility {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.a11y-menu-toggle,
.a11y-menu-close {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.88rem;
  border-radius: 999px;
  background: var(--surface-interactive);
  color: var(--text-muted);
  border: 0.0625rem solid var(--line);
  cursor: pointer;
  font: inherit;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.a11y-menu-toggle:hover,
.a11y-menu-close:hover {
  color: var(--text);
  background: var(--surface-interactive-hover);
  box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.2);
}

.a11y-menu-toggle:focus-visible,
.a11y-menu-close:focus-visible {
  outline: 0.125rem solid var(--metal-blue);
  outline-offset: 0.125rem;
}

.a11y-menu-toggle svg,
.a11y-menu-close svg {
  width: 1rem;
  height: 1rem;
}

.a11y-menu-close {
  display: none;
}

.a11y-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.88rem;
  border-radius: 999px;
  background: var(--surface-interactive);
  color: var(--text-muted);
  border: 0.0625rem solid var(--line);
  cursor: pointer;
  font: inherit;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.a11y-toggle:hover {
  color: var(--text);
  background: var(--surface-interactive-hover);
  box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.2);
}

.a11y-toggle:focus-visible {
  outline: 0.125rem solid var(--metal-blue);
  outline-offset: 0.125rem;
}

.a11y-toggle svg {
  width: 1rem;
  height: 1rem;
}

.dyslexia-toggle-text {
  min-width: 6.2rem;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
}

.vision-toggle-text {
  min-width: 6.3rem;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
}

html[data-reading='dyslexia'] .a11y-toggle {
  color: var(--text);
  border-color: var(--metal-blue);
  background: var(--focus-surface);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.88rem;
  border-radius: 999px;
  background: var(--surface-interactive);
  color: var(--text-muted);
  border: 0.0625rem solid var(--line);
  cursor: pointer;
  font: inherit;
  position: relative;
  overflow: hidden;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--surface-interactive-hover);
  box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.2);
}

html[data-theme='light'] .theme-toggle {
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
}

html[data-theme='light'] .theme-toggle:hover {
  color: var(--text);
  background: #ffffff;
  border-color: var(--metal-blue);
}

.theme-toggle:active {
  transform: translateY(0.0625rem) scale(0.985);
}

.theme-toggle:focus-visible {
  outline: 0.125rem solid var(--metal-blue);
  outline-offset: 0.125rem;
}

.theme-toggle svg {
  width: 1rem;
  height: 1rem;
}

.theme-icon {
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.theme-icon-sun {
  opacity: 0;
  transform: rotate(25deg) scale(0.7);
}

.theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  margin-left: -1.45rem;
}

html[data-theme='light'] .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

html[data-theme='light'] .theme-icon-moon {
  opacity: 0;
  transform: rotate(-20deg) scale(0.75);
}

.theme-toggle.is-switching .theme-icon {
  transition-duration: 0.45s;
}

.theme-toggle-text {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 5.6rem;
  text-align: left;
}

main {
  grid-area: main;
  padding: 2rem 2.2rem;
  display: grid;
  gap: 1.4rem;
}

main > section {
  background: linear-gradient(
    160deg,
    var(--section-gradient-start),
    var(--section-gradient-end)
  );
  border: 0.0625rem solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

main > section:first-of-type {
  scroll-margin-top: var(--sticky-header-offset);
}

main h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.minha-lista-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.minha-lista-header h2 {
  margin: 0;
}

.switch-profile-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0.0625rem solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft-2);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.44rem 0.82rem;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.switch-profile-button:hover {
  border-color: var(--metal-blue);
  color: var(--text);
  background: var(--focus-surface);
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.2);
}

.switch-profile-button:focus-visible {
  outline: 0.125rem solid var(--metal-blue);
  outline-offset: 0.125rem;
  color: var(--text);
}

.switch-profile-button svg {
  width: 0.95rem;
  height: 0.95rem;
}

main > section:first-of-type {
  display: grid;
  grid-template-columns: repeat(3, minmax(9.0625rem, 1fr));
  gap: 1rem;
}

main > section:first-of-type h2 {
  grid-column: 1 / -1;
  margin-bottom: 0.2rem;
}

.profile-active-status {
  grid-column: 1 / -1;
  margin: -0.25rem 0 0.35rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.profile {
  width: 100%;
  background: linear-gradient(
    160deg,
    var(--glass-card-start),
    var(--glass-card-end)
  );
  border: 0.0625rem solid var(--glass-border);
  border-radius: 0.875rem;
  padding: var(--profile-card-padding);
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
  backdrop-filter: blur(var(--glass-blur-profile))
    saturate(var(--glass-saturate-profile));
  -webkit-backdrop-filter: blur(var(--glass-blur-profile))
    saturate(var(--glass-saturate-profile));
  box-shadow:
    inset 0 0.0625rem 0 rgba(255, 255, 255, 0.12),
    var(--glass-shadow-soft);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.profile:hover {
  border-color: var(--metal-blue);
  box-shadow:
    inset 0 0.0625rem 0 rgba(255, 255, 255, 0.18),
    var(--glass-shadow-focus);
}

.profile img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  border-radius: 0.75rem;
  border: 0.0625rem solid var(--media-frame);
}

.profile-name {
  display: block;
  margin: 0.72rem 0 0;
  font-size: var(--profile-name-size);
  line-height: 1.35;
  font-weight: 600;
  color: var(--text);
}

.profile[aria-pressed='true'] {
  border-color: var(--metal-blue);
  box-shadow:
    inset 0 0 0 0.0625rem var(--focus-surface),
    var(--glass-shadow-focus);
}

.profile:focus-visible {
  outline: 0.125rem solid var(--metal-blue);
  outline-offset: 0.125rem;
}

article h3 {
  margin: 0;
  font-size: 1.45rem;
}

article p {
  margin: 0.7rem 0 0;
  max-width: 72ch;
  color: var(--text-muted);
}

section[aria-labelledby='destaque-titulo'] article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'title action'
    'subtitle action';
  align-items: end;
  column-gap: 1rem;
  row-gap: 0.45rem;
}

section[aria-labelledby='destaque-titulo'] article h3 {
  grid-area: title;
}

section[aria-labelledby='destaque-titulo'] article p {
  grid-area: subtitle;
  margin: 0;
}

section[aria-labelledby='destaque-titulo']
  article
  .back-to-menu {
  grid-area: action;
  margin-top: 0;
  justify-self: end;
  align-self: end;
}

@media (max-width: 47.99rem) {
  section[aria-labelledby='destaque-titulo'] article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  section[aria-labelledby='destaque-titulo']
    article
    .back-to-menu {
    margin-top: 0.4rem;
    align-self: flex-end;
  }
}

#series ul,
#filmes ul,
#bombando ul,
#minha-lista ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(9.375rem, 1fr));
  gap: 0.65rem;
}

#series li,
#filmes li,
#bombando li,
#minha-lista li {
  background: linear-gradient(
    160deg,
    var(--glass-card-start),
    var(--glass-card-end)
  );
  border: 0.0625rem solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 0.66rem 0.82rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--media-card-min-height);
  backdrop-filter: blur(var(--glass-blur-media))
    saturate(var(--glass-saturate-media));
  -webkit-backdrop-filter: blur(var(--glass-blur-media))
    saturate(var(--glass-saturate-media));
  box-shadow:
    inset 0 0.0625rem 0 rgba(255, 255, 255, 0.09),
    var(--glass-shadow-soft);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .profile,
  #filmes li {
    transition:
      transform 0.25s ease,
      background-color 0.25s ease,
      border-color 0.25s ease,
      box-shadow 0.25s ease;
    will-change: transform;
  }

  .profile:hover,
  #filmes li:hover {
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow:
      inset 0 0.0625rem 0 rgba(255, 255, 255, 0.2),
      0 0 0.9rem rgba(232, 167, 93, 0.45),
      0 0 1.6rem rgba(232, 167, 93, 0.24),
      var(--glass-shadow-focus);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile,
  #filmes li {
    transition: none;
    transform: none;
  }

  .profile:hover,
  #filmes li:hover {
    transform: none;
  }
}

.media-card-title {
  font-weight: 600;
}

.media-card-action {
  border: 0.0625rem solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft-2);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  min-height: var(--media-action-min-height);
  padding: 0.38rem 0.72rem;
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.media-card-action:hover {
  border-color: var(--metal-blue);
  color: var(--text);
  background: var(--focus-surface);
}

.media-card-action:focus-visible {
  outline: 0.125rem solid var(--metal-blue);
  outline-offset: 0.125rem;
  color: var(--text);
}

.media-card-action[aria-pressed='true'] {
  border-color: var(--accent);
  color: var(--text);
  background: var(--focus-surface);
}

.empty-list-state {
  color: var(--text-muted);
  font-weight: 500;
}

.media-card:focus-visible {
  outline: 0.125rem solid var(--metal-blue);
  outline-offset: 0.15rem;
  border-color: var(--metal-blue);
  color: var(--text);
}

.back-to-menu {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0.0625rem solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-muted);
  font: inherit;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.back-to-menu:hover {
  color: var(--text);
  border-color: var(--metal-blue);
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.2);
}

.back-to-menu:focus-visible {
  outline: 0.125rem solid var(--metal-blue);
  outline-offset: 0.125rem;
  color: var(--text);
}

.back-to-menu svg {
  width: 1rem;
  height: 1rem;
}

.profile-dialog {
  width: min(30rem, calc(100% - 2rem));
  border: 0.0625rem solid var(--line);
  border-radius: 1rem;
  background: var(--bg-elev);
  color: var(--text);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}

.profile-dialog::backdrop {
  background: var(--dialog-backdrop);
}

.profile-dialog h2 {
  margin: 0;
  font-size: 1.1rem;
}

.profile-dialog p {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
}

.profile-dialog-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.profile-dialog-actions button {
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.45rem 0.88rem;
  border: 0.0625rem solid var(--line);
  background: var(--surface-soft);
  color: var(--text-muted);
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease;
}

.profile-dialog-actions button:hover {
  border-color: var(--metal-blue);
  color: var(--text);
}

.profile-dialog-actions button:focus-visible {
  outline: 0.125rem solid var(--metal-blue);
  outline-offset: 0.125rem;
}

.dialog-primary-action {
  border-color: var(--metal-blue);
  color: var(--text);
  background: var(--focus-surface);
}

.switch-profile-modal-overlay[hidden] {
  display: none;
}

.switch-profile-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--dialog-backdrop);
}

.switch-profile-dialog {
  width: min(30rem, calc(100% - 2rem));
  border: 0.0625rem solid var(--line);
  border-radius: 1rem;
  background: var(--bg-elev);
  color: var(--text);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}

.switch-profile-dialog h2 {
  margin: 0;
  font-size: 1.1rem;
}

.switch-profile-dialog p {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
}

.switch-profile-dialog-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.switch-profile-dialog-actions button {
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.45rem 0.88rem;
  border: 0.0625rem solid var(--line);
  background: var(--surface-soft);
  color: var(--text-muted);
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease;
}

.switch-profile-dialog-actions button:hover {
  border-color: var(--metal-blue);
  color: var(--text);
}

.switch-profile-dialog-actions button:focus-visible {
  outline: 0.125rem solid var(--metal-blue);
  outline-offset: 0.125rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

.site-footer {
  grid-area: footer;
  background-color: var(--footer-background, transparent);
  color: var(--footer-text-color, var(--text-muted));
  padding: 2rem 2.2rem;
  text-align: center;
  font-size: 0.875rem;
  border-top: 1px solid var(--line);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 7rem;
  height: auto;
  border-radius: 1rem;
  object-fit: contain;
}

.footer-copyright {
  margin: 0;
  font-weight: 500;
}

.footer-focus {
  margin: 0;
  font-style: italic;
  opacity: 0.9;
}

footer {
  grid-area: footer;
  border-top: 0.0625rem solid var(--line);
  padding: 1.2rem 2.2rem 1.6rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

footer p {
  margin: 0;
}

footer ul {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

footer a:hover {
  color: var(--text);
}
