:root {
  --aliest-yellow: #ffdf05;
  --nav-accent: #ffdf05;
  --nav-accent-soft: rgba(255, 223, 5, 0.1);
  --nav-accent-soft-strong: rgba(255, 223, 5, 0.12);
  --nav-accent-muted: rgba(255, 223, 5, 0.78);
  --bg: #050505;
  --surface: #0b0b0b;
  --surface-soft: #151515;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f7f9fc;
  --muted: rgba(247, 249, 252, 0.68);
  --shadow: 0 24px 60px rgba(2, 8, 22, 0.24);
}

body[data-theme="light"] {
  --bg: #eef3fb;
  --nav-accent: #2447b8;
  --nav-accent-soft: rgba(36, 71, 184, 0.1);
  --nav-accent-soft-strong: rgba(36, 71, 184, 0.14);
  --nav-accent-muted: rgba(36, 71, 184, 0.82);
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --line: rgba(22, 32, 61, 0.1);
  --text: #16203d;
  --muted: rgba(22, 32, 61, 0.64);
  --shadow: 0 18px 40px rgba(33, 46, 84, 0.12);
}

html {
  scrollbar-color: rgba(255, 223, 5, 0.92) rgba(255, 255, 255, 0.04);
}

body[data-theme="light"] {
  scrollbar-color: rgba(255, 223, 5, 0.92) rgba(22, 32, 61, 0.06);
}

* {
  box-sizing: border-box;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(255, 223, 5, 0.9);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: #ffdf05;
  background-clip: padding-box;
}

body[data-theme="light"] *::-webkit-scrollbar-track {
  background: rgba(22, 32, 61, 0.06);
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 223, 5, 0.08), transparent 16%),
    var(--bg);
  color: var(--text);
}

select,
option,
optgroup {
  color: var(--text);
  background: var(--surface);
}

.app-shell {
  min-height: 100vh;
  display: block;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 0 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 223, 5, 0.08), transparent 18%),
    linear-gradient(180deg, #050505, #101010);
  border-right: 1px solid var(--line);
}

body[data-theme="light"] .sidebar {
  background:
    radial-gradient(circle at top left, rgba(255, 223, 5, 0.12), transparent 18%),
    linear-gradient(180deg, #ffffff, #eef3fb);
}

.sidebar-brand {
  margin: 0;
  padding: 0 22px 18px;
  border-bottom: 1px solid var(--line);
}

.sidebar-logo {
  width: min(250px, 100%);
  height: auto;
  display: block;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  align-content: start;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 22px;
  border-radius: 0;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-item:hover {
  transform: translateX(2px);
}

.nav-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: transparent;
}

.nav-icon svg {
  display: none;
}

.nav-icon i {
  font-size: 1.2rem;
  line-height: 1;
}

.nav-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-copy strong,
.nav-copy small {
  display: block;
}

.nav-copy strong {
  font-size: 0.84rem;
  letter-spacing: 0.05em;
}

.nav-copy small {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.nav-item:hover,
.nav-item.is-active {
  background: var(--nav-accent-soft);
  color: var(--nav-accent);
}

.nav-item::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 0;
  bottom: 10px;
  width: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.nav-item.is-active .nav-icon,
.nav-item:hover .nav-icon {
  background: var(--nav-accent-soft-strong);
}

.nav-item.is-active::after,
.nav-item:hover::after {
  background: var(--nav-accent);
}

.nav-item.is-active .nav-copy small,
.nav-item:hover .nav-copy small {
  color: var(--nav-accent-muted);
}

.sidebar-user {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px 0;
  border-top: 1px solid var(--line);
}


.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--aliest-yellow);
  color: #16203d;
  font-weight: 800;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-width: 48px;
}

.user-avatar.has-photo {
  color: transparent;
}

.user-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.user-meta strong,
.user-meta span {
  display: block;
}

.user-meta strong {
  font-size: clamp(0.78rem, 0.48rem + 0.7vw, 0.95rem);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-meta span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-settings {
  margin-left: auto;
  flex: 0 0 auto;
}

.sidebar-settings .topbar-icon-button {
  background: rgba(255, 255, 255, 0.04);
}

body[data-theme="light"] .sidebar-settings .topbar-icon-button {
  background: rgba(22, 32, 61, 0.04);
}

.sidebar-settings .settings-dropdown {
  top: auto;
  bottom: calc(100% + 10px);
  right: 0;
}

.content-area {
  margin-left: 280px;
  padding: 66px 0 0;
}

.topbar {
  position: fixed;
  top: 0;
  left: 280px;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 62px;
  margin: 0;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(5, 5, 5, 0.98), rgba(10, 10, 10, 0.9));
  backdrop-filter: blur(12px);
}

body[data-theme="light"] .topbar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 249, 252, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 243, 251, 0.92));
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  justify-self: start;
}

.topbar-page-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--nav-accent);
  flex: 0 0 34px;
}

.topbar-back-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  flex: 0 0 34px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

body[data-theme="light"] .topbar-back-button {
  background: rgba(22, 32, 61, 0.04);
}

.topbar-back-button:hover,
.topbar-back-button:focus-visible {
  border-color: rgba(255, 223, 5, 0.3);
  background: rgba(255, 223, 5, 0.12);
  transform: translateX(-1px);
}

.topbar-back-button i {
  font-size: 1.2rem;
}

.topbar-page-icon i {
  font-size: 1.15rem;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}

.topbar-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.topbar-profile-button {
  width: 36px;
  height: 36px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  overflow: hidden;
}

body[data-theme="light"] .topbar-profile-button {
  background: rgba(22, 32, 61, 0.04);
}

.topbar-profile-avatar {
  width: 100%;
  height: 100%;
  display: none;
  place-items: center;
  border-radius: 50%;
  background: var(--aliest-yellow);
  color: #16203d;
  font-size: 0.76rem;
  font-weight: 800;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.topbar-profile-avatar.has-photo {
  color: transparent;
}

.page-notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 180;
  width: min(360px, calc(100vw - 24px));
  padding: 14px 18px;
  border: 1px solid rgba(255, 223, 5, 0.28);
  border-radius: 16px;
  background: rgba(255, 223, 5, 0.12);
  color: #fff5b0;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.page-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-notice.is-success {
  border-color: rgba(255, 223, 5, 0.28);
  background: rgba(255, 223, 5, 0.12);
  color: #fff5b0;
}

.page-notice.is-error {
  border-color: rgba(255, 95, 95, 0.36);
  background: rgba(255, 95, 95, 0.14);
  color: #ffd4d4;
}

body[data-theme="light"] .page-notice {
  box-shadow: 0 20px 36px rgba(33, 46, 84, 0.16);
}

body[data-theme="light"] .page-notice.is-success {
  border-color: rgba(39, 87, 214, 0.18);
  background: rgba(39, 87, 214, 0.12);
  color: #17306a;
}

body[data-theme="light"] .page-notice.is-error {
  border-color: rgba(214, 65, 65, 0.22);
  background: rgba(214, 65, 65, 0.12);
  color: #7d1f1f;
}

.password-sync-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 14px 24px;
  background: linear-gradient(90deg, rgba(255, 223, 5, 0.18) 0%, rgba(255, 223, 5, 0.1) 18%, rgba(12, 12, 12, 0.98) 42%, rgba(12, 12, 12, 0.98) 100%);
  color: #f7f3d2;
  border-bottom: 1px solid rgba(255, 223, 5, 0.26);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

body.has-password-sync-banner .content-area {
  padding-top: 132px;
}

body.has-password-sync-banner .sidebar {
  top: 66px;
}

body.has-password-sync-banner .topbar {
  top: 66px;
}

.password-sync-banner__content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.password-sync-banner__action,
.password-sync-banner__close,
.topbar-notification-action {
  border: 0;
  cursor: pointer;
}

.password-sync-banner__action {
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffdf05;
  color: #111111;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(255, 223, 5, 0.24);
}

.password-sync-banner__close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7f3d2;
}

.password-sync-banner__action:hover,
.password-sync-banner__action:focus-visible {
  background: #fff3a6;
  color: #111111;
}

.password-sync-banner__close:hover,
.password-sync-banner__close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.topbar-notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff4d4f;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.topbar-notification-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.96);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  z-index: 50;
}

body[data-theme="light"] .topbar-notification-menu {
  background: rgba(255, 255, 255, 0.98);
}

.topbar-notification-item {
  display: grid;
  gap: 10px;
}

.topbar-notification-item strong {
  font-size: 0.95rem;
}

.topbar-notification-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.topbar-notification-action {
  width: fit-content;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--aliest-yellow);
  color: #111111;
  font-size: 0.88rem;
  font-weight: 800;
}

.search-box,
.settings-box {
  position: relative;
}

.nav-item-more,
.mobile-more-dropdown {
  display: none;
}

.topbar-icon-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

body[data-theme="light"] .topbar-icon-button {
  background: rgba(22, 32, 61, 0.04);
}

.topbar-icon-button {
  width: 36px;
  height: 36px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}

.topbar-icon-button i {
  font-size: 1.1rem;
}

.search-box {
  grid-column: 2;
  justify-self: center;
  width: 11.25rem;
  min-width: 11.25rem;
  transition: width 0.56s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 12;
}

.search-box.is-open {
  width: min(34rem, 42vw);
}

.search-pill {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition:
    background 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}

body[data-theme="light"] .search-pill {
  border-color: rgba(22, 32, 61, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(33, 46, 84, 0.08);
}

.search-pill:focus-within,
.search-box.is-open .search-pill {
  border-color: var(--nav-accent-muted);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(0);
}

body[data-theme="light"] .search-pill:focus-within,
body[data-theme="light"] .search-box.is-open .search-pill {
  background: rgba(255, 255, 255, 0.98);
}

.search-static-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-static-icon i {
  font-size: 1.1rem;
  line-height: 1;
}

.search-trigger {
  position: absolute;
  inset: 0;
  padding: 0 18px 0 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  transition:
    opacity 0.22s ease,
    transform 0.56s cubic-bezier(0.19, 1, 0.22, 1);
}

.search-placeholder {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  height: 100%;
  transform: translateX(-4px);
}

.search-input {
  width: 100%;
  height: 100%;
  opacity: 0;
  padding: 0 18px 0 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  line-height: 42px;
  outline: none;
  pointer-events: none;
  transform: translateX(14px);
  transition:
    opacity 0.24s ease,
    transform 0.56s cubic-bezier(0.19, 1, 0.22, 1);
}

.search-input::placeholder {
  color: var(--muted);
}

.search-box.is-open .search-input {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.search-box.is-open .search-trigger {
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.98), rgba(15, 15, 15, 0.98));
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.24s ease;
}

body[data-theme="light"] .search-suggestions {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.98));
}

.search-box.is-open.has-results .search-suggestions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.search-suggestions-group {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.search-suggestions-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 4px;
}

.search-suggestion {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.search-suggestion:hover,
.search-suggestion:focus-visible {
  background: var(--nav-accent-soft);
  transform: translateX(2px);
  outline: none;
}

.search-suggestion-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--nav-accent);
}

body[data-theme="light"] .search-suggestion-icon {
  background: rgba(22, 32, 61, 0.05);
}

.search-suggestion-icon i {
  font-size: 1.05rem;
  line-height: 1;
}

.search-suggestion-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.search-suggestion-title,
.search-suggestion-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.search-suggestion-meta {
  color: var(--muted);
  font-size: 0.76rem;
}

.search-suggestions-empty {
  grid-column: 1 / -1;
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.84rem;
}

body[data-theme="light"] .search-suggestions-empty {
  background: rgba(22, 32, 61, 0.03);
}

.settings-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 223, 5, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.94));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body[data-theme="light"] .settings-dropdown {
  border-color: rgba(24, 39, 75, 0.08);
  background:
    radial-gradient(circle at top right, rgba(39, 87, 214, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.94));
  box-shadow: 0 20px 40px rgba(33, 46, 84, 0.16);
}

.settings-box.is-open .settings-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.theme-toggle-group {
  display: grid;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-action-button {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

body[data-theme="light"] .settings-action-button {
  background: rgba(22, 32, 61, 0.04);
  border-color: rgba(22, 32, 61, 0.08);
}

.settings-action-button:hover,
.settings-action-button:focus-visible {
  background: rgba(255, 223, 5, 0.12);
  border-color: rgba(255, 223, 5, 0.22);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
  outline: none;
}

body[data-theme="light"] .settings-action-button:hover,
body[data-theme="light"] .settings-action-button:focus-visible {
  background: rgba(255, 223, 5, 0.16);
  border-color: rgba(210, 163, 0, 0.24);
  color: var(--text);
}

.settings-action-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.settings-action-button i {
  font-size: 1rem;
  line-height: 1;
  width: 18px;
  text-align: center;
}

.theme-toggle-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 6px 8px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

body[data-theme="light"] .theme-toggle {
  background: rgba(22, 32, 61, 0.04);
}

.theme-toggle-track {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

body[data-theme="light"] .theme-toggle-track {
  background: rgba(22, 32, 61, 0.06);
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--aliest-yellow);
  box-shadow: 0 4px 10px rgba(2, 8, 22, 0.18);
  transition: transform 0.25s ease, background 0.25s ease;
}

body[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(20px);
  background: var(--nav-accent);
}

.theme-toggle-text {
  min-width: 54px;
  text-align: left;
  font-size: 0.86rem;
  font-weight: 700;
}

.carousel-panel {
  display: grid;
  gap: 16px;
  padding: 10px 18px 18px;
}

.management-panel {
  margin: 0 5px 5px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 223, 5, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.9), rgba(15, 15, 15, 0.86));
  box-shadow: var(--shadow);
}

body[data-theme="light"] .management-panel {
  background:
    radial-gradient(circle at top right, rgba(36, 71, 184, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 252, 0.9));
}

.management-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

.management-panel p {
  margin: 0;
  color: var(--muted);
}

.carousel-track {
  position: relative;
  width: min(1122px,
      calc(100vw - 36px),
      calc((100vh - 168px) * 1122 / 624));
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 1122 / 624;
  max-height: calc(100vh - 168px);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));

  box-shadow: var(--shadow);
}

.carousel-slides {
  display: flex;
  height: 100%;
  min-height: inherit;
  transition: transform 0.45s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 223, 5, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.72), rgba(10, 10, 10, 0.86));
}

.carousel-empty[hidden],
.carousel-overlay[hidden],
.carousel-button[hidden] {
  display: none !important;
}

body[data-theme="light"] .carousel-empty {
  background:
    radial-gradient(circle at top right, rgba(36, 71, 184, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 249, 252, 0.92));
}

.carousel-empty-card {
  width: min(480px, 100%);
  padding: 24px 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.4);
  backdrop-filter: blur(8px);
  text-align: center;
  box-shadow: var(--shadow);
}

body[data-theme="light"] .carousel-empty-card {
  background: rgba(255, 255, 255, 0.74);
}

.carousel-empty-card strong {
  display: block;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  margin-bottom: 8px;
}

.carousel-empty-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.48);
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

body[data-theme="light"] .carousel-button {
  background: rgba(255, 255, 255, 0.72);
}

.carousel-button-prev {
  left: 18px;
}

.carousel-button-next {
  right: 18px;
}

.carousel-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0 0 18px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.44);
  backdrop-filter: blur(8px);
}

body[data-theme="light"] .carousel-dots {
  background: rgba(255, 255, 255, 0.78);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

body[data-theme="light"] .carousel-dot {
  background: rgba(22, 32, 61, 0.18);
}

.carousel-dot.is-active {
  background: var(--aliest-yellow);
}


.session-title {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.session-title i {
  color: var(--aliest-yellow);
  font-size: 35px;
}

.title {
  font-size: 40px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
}

.shortcuts-btns-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 16px 24px 8px;
  gap: 18px;
}

.shortcut-btn {
  min-height: 168px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.2s ease-in-out,
    border-color 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out,
    background 0.2s ease-in-out,
    color 0.2s ease-in-out;
  cursor: pointer;
}

.shortcut-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 223, 5, 0.08);
  color: var(--nav-accent);
  border: 1px solid rgba(255, 223, 5, 0.16);
}

.shortcut-btn i {
  font-size: 24px;
}

.shortcut-btn p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.shortcut-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.shortcut-badge {
  margin-top: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shortcut-btn:hover {
  transform: translateY(-4px);
  color: var(--text);
  border-color: rgba(255, 223, 5, 0.24);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 223, 5, 0.06), transparent),
    var(--surface-soft);
}

.shortcut-btn:hover .shortcut-icon {
  background: rgba(255, 223, 5, 0.14);
  border-color: rgba(255, 223, 5, 0.3);
}

.shortcut-btn--muted {
  opacity: 0.86;
}

.shortcut-btn--danger:hover {
  border-color: rgba(255, 95, 95, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 95, 95, 0.08), transparent),
    var(--surface-soft);
}

.shortcut-btn--danger:hover .shortcut-icon {
  background: rgba(255, 95, 95, 0.12);
  border-color: rgba(255, 95, 95, 0.26);
  color: #ff7b7b;
}

.home-story-stack {
  display: grid;
  gap: 22px;
  padding: 24px 24px 56px;
}

.home-calendar-section {
  padding: 8px 24px 0;
}

.home-calendar-panel {
  padding: 24px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.home-calendar-header,
.home-calendar-future {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.home-calendar-header h2,
.home-calendar-future h3 {
  margin: 0;
  font-size: clamp(1.55rem, 1.1rem + 1vw, 2.2rem);
}

.home-calendar-header p {
  margin: 0;
  color: var(--muted);
}

.home-calendar-weekdays,
.home-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.home-calendar-weekdays {
  margin-bottom: 10px;
}

.home-calendar-weekdays span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.home-calendar-day {
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  display: grid;
  gap: 6px;
  align-content: start;
  overflow: visible;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.home-calendar-day--muted {
  opacity: 0.52;
}

.home-calendar-day.is-event {
  border-color: rgba(255, 223, 5, 0.28);
  background: linear-gradient(180deg, rgba(255, 223, 5, 0.08), rgba(255, 223, 5, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 223, 5, 0.08);
  cursor: pointer;
}

.home-calendar-day--muted.is-event {
  border-color: rgba(255, 223, 5, 0.16);
  background: rgba(255, 223, 5, 0.04);
}

.home-calendar-day.is-today .home-calendar-day-number {
  color: var(--aliest-yellow);
}

.home-calendar-day-number {
  font-size: 1.05rem;
  font-weight: 800;
}

.home-calendar-day-copy {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.home-calendar-day.is-event .home-calendar-day-copy {
  min-height: 42px;
  padding: 8px 9px;
  border-radius: 14px;
  background: rgba(10, 10, 10, 0.3);
  border: 1px solid rgba(255, 223, 5, 0.12);
}

.home-calendar-day-main {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.home-calendar-day-copy strong,
.home-calendar-upcoming-item strong {
  font-size: 0.82rem;
  line-height: 1.3;
}

.home-calendar-day-icon,
.home-calendar-upcoming-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nav-accent);
}

.home-calendar-day-icon i,
.home-calendar-upcoming-icon i {
  font-size: 1.2rem;
}

.home-calendar-day-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 223, 5, 0.12);
  border: 1px solid rgba(255, 223, 5, 0.18);
}

.home-calendar-day-copy strong {
  display: -webkit-box;
  flex: 1;
  overflow: hidden;
  color: var(--text-color);
  word-break: break-word;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-calendar-upcoming-item strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-calendar-day-copy>span:not(.home-calendar-day-icon),
.home-calendar-empty {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.home-calendar-count {
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 223, 5, 0.14);
  color: var(--nav-accent);
  font-size: 0.72rem;
  font-weight: 800;
}

.home-calendar-day.is-event {
  position: relative;
  z-index: 1;
  touch-action: manipulation;
}

.home-calendar-day.is-event::before,
.home-calendar-day.is-event::after {
  content: none;
  display: none;
}

.home-calendar-day-details {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  width: min(260px, calc(100vw - 40px));
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(12, 12, 14, 0.96);
  border: 1px solid rgba(255, 223, 5, 0.18);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  color: #f3f4f6;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 12;
}

.home-calendar-day-details-date {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-calendar-day-details-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.home-calendar-day-details-item+.home-calendar-day-details-item {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-calendar-day-details-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(255, 223, 5, 0.14);
  color: var(--nav-accent);
}

.home-calendar-day-details-icon i {
  font-size: 1rem;
}

.home-calendar-day-details-copy {
  min-width: 0;
}

.home-calendar-day-details-copy strong {
  display: block;
  color: #f8fafc;
  font-size: 0.82rem;
  line-height: 1.35;
}

.home-calendar-day-details-copy p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  line-height: 1.45;
  word-break: break-word;
}

.home-calendar-day.is-event:hover .home-calendar-day-details,
.home-calendar-day.is-open .home-calendar-day-details {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.home-calendar-day.is-open {
  z-index: 9;
}

.home-calendar-upcoming {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  min-width: 0;
}

.home-calendar-upcoming-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  white-space: nowrap;
}

.home-calendar-future {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.home-calendar-future h3 {
  font-size: 1rem;
}

.home-calendar-upcoming-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-calendar-upcoming-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255, 223, 5, 0.12);
  color: var(--text);
  font-weight: 700;
}

.home-feature-panel,
.home-tools-panel,
.home-journey-panel,
.home-capacitation-panel {
  padding: 28px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.home-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 28px;
  align-items: center;
}

.home-feature-panel--reverse .home-feature-grid {
  grid-template-columns: minmax(300px, 460px) minmax(0, 1fr);
}

.home-feature-copy,
.home-tools-header,
.home-journey-header,
.home-capacitation-panel {
  display: grid;
  gap: 12px;
}

.home-feature-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 223, 5, 0.08);
  color: var(--nav-accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-feature-copy h2,
.home-tools-header h2,
.home-journey-header h2,
.home-capacitation-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 1.3rem + 1.9vw, 3.25rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.home-feature-copy h2 span,
.home-tools-header h2 span,
.home-journey-header h2 span,
.home-capacitation-panel h2 span {
  color: var(--aliest-yellow);
}

.home-feature-copy p,
.home-tools-header p,
.home-journey-header p,
.home-capacitation-panel p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.home-video-frame {
  min-height: 280px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #000;
  overflow: hidden;
}

.home-video-player {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
  background: #000;
  object-fit: cover;
}

.home-tools-header {
  justify-items: center;
  text-align: center;
}

.home-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 760px;
  margin: 24px auto 0;
}

.home-tool-card {
  min-height: 220px;
  width: 100%;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  gap: 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  appearance: none;
  cursor: default;
  font: inherit;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.home-tool-card:hover {
  border-color: rgba(255, 223, 5, 0.24);
  background: color-mix(in srgb, var(--surface-soft) 92%, var(--aliest-yellow) 8%);
  cursor: pointer;
}

.home-tool-logo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(255, 223, 5, 0.12);
  color: var(--aliest-yellow);
}

.home-tool-logo i {
  font-size: 3rem;
}

.home-tool-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-tool-card strong {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.platform-detail-shell {
  display: grid;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.platform-detail-header,
.platform-detail-logo-card,
.platform-detail-video-card,
.platform-detail-description {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)), var(--surface-soft);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.platform-detail-header {
  margin-top: 20px;
}

body[data-theme="light"] .platform-detail-header,
body[data-theme="light"] .platform-detail-logo-card,
body[data-theme="light"] .platform-detail-video-card,
body[data-theme="light"] .platform-detail-description {
  box-shadow: 0 18px 36px rgba(20, 31, 61, 0.08);
}

.platform-detail-header {
  padding: 28px 32px;
}

.platform-detail-header-copy {
  max-width: 760px;
}

.platform-detail-header-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
}

.platform-detail-header-copy p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.7;
}

.platform-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.platform-detail-logo-card {
  padding: 30px;
  display: grid;
  gap: 22px;
  align-content: start;
}
.knowTrilha{
   font-family: "DM Sans", sans-serif;
   font-weight: 600;
}

.platform-detail-logo {
  width: 164px;
  height: 164px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 5px;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.06);
}

.platform-detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

.platform-detail-eyebrow {
  color: var(--nav-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.platform-detail-copy h3 {
  margin: 10px 0 0;
  font-size: 1.55rem;
  line-height: 1.1;
}

.platform-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  margin-bottom: 15px;
}

.platform-detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.platform-detail-video-card {
  min-height: 420px;
  overflow: hidden;
  padding: 18px;
}

.platform-detail-video-player {
  width: 100%;
  height: 100%;
  min-height: 384px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: #050505;
  object-fit: cover;
}

.platform-detail-video-placeholder {
  width: 100%;
  height: 100%;
  min-height: 384px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
  padding: 32px;
  color: var(--muted);
  background:
    radial-gradient(circle at top, rgba(255, 223, 5, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    #060606;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 22px;
}

.platform-detail-video-placeholder i {
  font-size: 3.4rem;
  color: var(--aliest-yellow);
}

.platform-detail-video-placeholder strong {
  color: var(--text);
  font-size: 1.12rem;
}

.platform-detail-video-placeholder span {
  max-width: 32ch;
  line-height: 1.7;
}

.platform-detail-description {
  padding: 30px 32px;
}

.platform-detail-description h3 {
  margin: 0 0 16px;
  font-size: 1.26rem;
}

.platform-detail-description p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 74ch;
}

.platform-detail-description p+p {
  margin-top: 12px;
}

.home-capacitation-panel {
  justify-items: center;
  text-align: center;
}

.home-journey-panel {
  display: grid;
  gap: 18px;
}

.home-journey-header {
  justify-items: center;
  text-align: center;
}

.home-video-frame--wide {
  max-width: 760px;
  margin: 0 auto;
}

.home-video-frame--wide .home-video-player {
  min-height: 320px;
}

.home-capacitation-button {
  margin-top: 8px;
  min-width: min(100%, 360px);
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--aliest-yellow);
  color: #111;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: none;
  transition: filter 0.18s ease;
}

.home-capacitation-button:hover {
  filter: brightness(0.97);
}

.access-platform-button {
  margin-top: 8px;
  min-width: min(100%, 360px);
  min-height: 43px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--aliest-yellow);
  color: #111;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: none;
  transition: filter 0.18s ease;

}

.access-platform-button:hover {
  filter: brightness(0.97);
}

body[data-theme="light"] .home-feature-copy h2 span,
body[data-theme="light"] .home-tools-header h2 span,
body[data-theme="light"] .home-journey-header h2 span,
body[data-theme="light"] .home-capacitation-panel h2 span,
body[data-theme="light"] .home-video-play,
body[data-theme="light"] .home-tool-logo {
  color: #2447b8;
}


body.has-welcome-popup {
  overflow: hidden;
}

.portal-welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.portal-welcome-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.315);
  backdrop-filter: blur(8px);
}

.portal-welcome-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  max-height: calc(100vh - 64px);
  overflow-x: hidden;
  border: 1px solid rgba(255, 223, 5, 0.12);
  border-radius: 34px;
  background: #000000;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.56);
}

.portal-welcome-modal__close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.006);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #f7f9fc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.portal-welcome-modal__close i {
  font-size: 1.7rem;
}

.portal-welcome-modal__hero {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 26px 26px 0;
  background: #000000;
}

.portal-welcome-modal__hero img {
  width: 100%;
  height: auto;
  max-height: 300px;
  display: block;
  object-fit: contain;
  object-position: center top;
}

.portal-welcome-modal__body {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 12px 48px 28px;
  text-align: center;
}

.portal-welcome-modal__body h2 {
  margin: 0;
  color: #ffffff;
  font-size: 55px;
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 800;
  font-family: "DM Sans", sans-serif;
}

.portal-welcome-modal__body h2 span {
  color: #ffdf05;
}

.portal-welcome-modal__body p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.4;
}

.portal-welcome-modal__primary {
  width: min(100%, 420px);
  min-height: 50px;
  padding: 0 34px;
  border: 0;
  border-radius: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #ffc800;
  color: #121212;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
}

.portal-welcome-modal__primary i {
  font-size: 2.4rem;
}

.portal-welcome-modal__manual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: clamp(1rem, 1.4vw, 1.28rem);
}

.portal-welcome-modal__manual span {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: #ffc800;
}

.portal-welcome-modal__manual i {
  font-size: 1.5rem;
}

.portal-welcome-modal__primary:hover,
.portal-welcome-modal__primary:focus-visible,
.portal-welcome-modal__manual:hover,
.portal-welcome-modal__manual:focus-visible,
.portal-welcome-modal__close:hover,
.portal-welcome-modal__close:focus-visible {
  filter: brightness(1.04);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  width: min(360px, calc(100vw - 32px));
  padding: 18px 20px;
  border: 1px solid rgba(255, 214, 10, 0.28);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(18, 18, 18, 0.98) 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.modal p {
  margin: 0;
  color: #f5f7fb;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
}

@media (max-width: 1100px) {

  .portal-welcome-modal {
    padding: 24px 18px;
  }

  .portal-welcome-modal__dialog {
    width: min(100%, 860px);
    max-height: calc(100vh - 48px);
    border-radius: 30px;
  }

  .portal-welcome-modal__hero {
    aspect-ratio: 16 / 9;
  }

  .portal-welcome-modal__body {
    gap: 18px;
    padding: 28px 30px 32px;
  }

  .topbar-profile-avatar {
    display: block;
  }

  .topbar-profile-button {
    display: inline-flex;
  }

  .sidebar {
    position: static;
    width: auto;
    gap: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0 16px;
  }

  .content-area {
    margin-left: 0;
    padding-top: 72px;
  }

  body.has-password-sync-banner .content-area {
    padding-top: 138px;
  }

  .topbar {
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  body.has-password-sync-banner .topbar,
  .password-sync-banner {
    left: 0;
  }

  body.has-password-sync-banner .topbar {
    top: 66px;
  }

  .search-box.is-open {
    width: min(28rem, 40vw);
  }

  .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: initial;
    padding: 16px 0;
  }

  .nav-item {
    min-height: 62px;
  }

  .carousel-track {
    width: min(1122px,
        calc(100vw - 28px),
        calc((100vh - 144px) * 1122 / 624));
    max-width: 100%;
  }

  .carousel-panel {
    padding: 12px 14px 16px;
  }

  .management-panel {
    margin: 20px 20px 28px;
  }

  .shortcuts-btns-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 24px 20px 8px;
  }

  .home-calendar-section {
    padding: 8px 20px 0;
  }

  .home-story-stack {
    padding: 24px 20px 48px;
  }

  .home-feature-grid,
  .home-feature-panel--reverse .home-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {

  .portal-welcome-modal {
    padding: 12px;
  }

  .portal-welcome-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 26px;
  }

  .portal-welcome-modal__close {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
  }

  .portal-welcome-modal__hero {
    padding: 18px 18px 0;
    aspect-ratio: auto;
  }

  .portal-welcome-modal__hero img {
    max-height: 180px;
  }

  .portal-welcome-modal__body {
    gap: 14px;
    padding: 12px 18px 24px;
  }

  .portal-welcome-modal__body h2 {
    font-size: clamp(2.1rem, 8.4vw, 2.7rem);
    line-height: 0.98;
  }

  .portal-welcome-modal__body p {
    font-size: 0.98rem;
    line-height: 1.38;
  }

  .portal-welcome-modal__primary {
    width: 100%;
    min-height: 68px;
    border-radius: 22px;
    font-size: 1.12rem;
  }

  .portal-welcome-modal__manual {
    gap: 8px;
    font-size: 0.96rem;
  }

  .topbar-profile-avatar {
    display: flex;
    justify-content: center;
  }

  .topbar-profile-button {
    display: inline-flex;
  }


  .content-area {
    padding: 114px 0 calc(116px + env(safe-area-inset-bottom, 0px));
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .content-area>* {
    max-width: 100%;
    box-sizing: border-box;
  }

  .sidebar {
    right: 0;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 0;
  }

  .topbar {
    top: 0;
    left: 0;
    right: 0;
    min-height: auto;
    padding: 12px 12px 10px;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    row-gap: 10px;
  }

  .topbar-title {
    grid-column: 1 / -1;
    justify-content: center;
    padding: 0 42px;
    text-align: center;
  }

  .search-box {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
  }

  .search-box.is-open {
    width: 100%;
  }

  .topbar-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .carousel-track {
    border-radius: 22px;
    width: 100%;
  }

  .carousel-panel {
    margin-inline: 0;
    padding: 8px 8px 14px;
  }

  .management-panel {
    margin: 16px;
    padding: 18px;
  }

  .shortcuts-btns-container {
    margin-inline: 0;
    grid-template-columns: 1fr;
    padding: 18px 10px 4px;
  }

  .home-story-stack {
    margin-inline: 0;
    gap: 18px;
    padding: 18px 10px 36px;
  }

  .home-feature-panel,
  .home-tools-panel,
  .home-journey-panel,
  .home-capacitation-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .home-video-frame,
  .home-video-player {
    min-height: 220px;
  }

  .home-video-frame--wide .home-video-player {
    min-height: 260px;
  }

  .home-tools-grid {
    grid-template-columns: 1fr;
  }

  .home-tool-card {
    min-height: 180px;
  }


  .platform-detail-hero {
    grid-template-columns: 1fr;
  }

  .platform-detail-header {
    padding: 24px;
  }

  .platform-detail-logo-card,
  .platform-detail-description {
    padding: 22px;
  }

  .platform-detail-video-card,
  .platform-detail-video-player,
  .platform-detail-video-placeholder {
    min-height: 240px;
  }

  .platform-detail-video-card {
    padding: 14px;
  }

  .shortcut-btn {
    min-height: 152px;
    padding: 16px;
  }

  .carousel-button {
    width: 40px;
    height: 40px;
  }

  .carousel-button-prev {
    left: 12px;
  }

  .carousel-button-next {
    right: 12px;
  }

  .carousel-overlay {
    padding-bottom: 12px;
  }
}

@media (max-width: 760px) {

  .topbar-profile-avatar {
    display: flex;
    justify-content: center;
  }

  .topbar-profile-button {
    display: inline-flex;
  }

  .app-shell {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }

  .content-area {
    padding: 118px 0 calc(112px + env(safe-area-inset-bottom, 0px));
  }

  .sidebar {
    position: fixed;
    top: auto;
    right: 0;
    bottom: env(safe-area-inset-bottom, 0px);
    left: 0;
    width: auto;
    z-index: 40;
    gap: 0;
    padding: 8px 0 10px;
    border: 1px solid var(--line);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
    background:
      linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(10, 10, 10, 0.94)),
      rgba(8, 8, 8, 0.88);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
  }

  body[data-theme="light"] .sidebar {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 244, 252, 0.94)),
      rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 40px rgba(33, 46, 84, 0.14);
  }

  .sidebar-brand {
    display: none;
  }

  .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 2px;
    padding: 0;
    overflow: visible;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    min-width: 0;
    min-height: 76px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 2px 10px;
    border-radius: 20px;
    text-align: center;
    scroll-snap-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .nav-item::after {
    display: none;
  }

  .nav-item:hover {
    transform: none;
  }

  .nav-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    margin: 0 auto;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
  }

  .nav-icon i {
    font-size: 1.4rem;
  }

  .nav-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
  }

  .nav-copy strong {
    max-width: 100%;
    font-size: 0.55rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.03em;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .nav-copy small {
    display: none;
  }

  .nav-item-profile,
  .nav-item-management {
    display: none;
  }

  .nav-item-more {
    position: relative;
    display: block;
  }

  .nav-item-more-toggle {
    border: 0;
    background: transparent;
    font: inherit;
  }

  .nav-item.is-active {
    background: rgba(255, 223, 5, 0.08);
  }

  .nav-item.is-active .nav-icon,
  .nav-item-more.is-open .nav-icon,
  .nav-item-more-toggle.is-active .nav-icon {
    background: var(--nav-accent);
    color: #101010;
    border-color: rgba(255, 223, 5, 0.2);
    box-shadow: 0 10px 22px rgba(255, 223, 5, 0.22);
  }

  body[data-theme="light"] .nav-item.is-active .nav-icon,
  body[data-theme="light"] .nav-item-more.is-open .nav-icon,
  body[data-theme="light"] .nav-item-more-toggle.is-active .nav-icon {
    color: #ffffff;
  }

  .sidebar-user {
    display: none;
  }

  .mobile-more-dropdown {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    z-index: 45;
    min-width: 196px;
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
      linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(10, 10, 10, 0.98)),
      rgba(8, 8, 8, 0.92);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
  }

  body[data-theme="light"] .mobile-more-dropdown {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 244, 252, 0.98)),
      rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 44px rgba(33, 46, 84, 0.16);
  }

  .mobile-more-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    text-decoration: none;
    text-align: left;
    font: inherit;
  }

  body[data-theme="light"] .mobile-more-link {
    background: rgba(22, 32, 61, 0.04);
  }

  .mobile-more-link-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--nav-accent-soft);
    color: var(--nav-accent);
    flex: 0 0 34px;
  }

  .mobile-more-link span:last-child {
    font-size: 0.92rem;
    font-weight: 700;
  }

  .mobile-more-link-danger .mobile-more-link-icon {
    background: rgba(255, 95, 95, 0.12);
    color: #ff8d8d;
  }

  .topbar {
    min-height: auto;
    padding: 14px 14px 12px;
    grid-template-columns: 46px minmax(0, 1fr);
    row-gap: 12px;
    column-gap: 10px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  }

  .topbar-title {
    grid-column: 1 / -1;
    justify-self: center;
    justify-content: center;
    padding: 0;
    text-align: center;
  }

  .topbar-title>div {
    min-width: 0;
    text-align: center;
  }

  .topbar-page-icon {
    display: none;
  }

  .topbar-actions {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: stretch;
    margin-left: 0;
    gap: 8px;
  }

  .search-box {
    grid-column: 1;
    grid-row: 2;
    width: 46px;
    min-width: 46px;
    z-index: 36;
  }

  .topbar-actions .topbar-icon-button,
  .topbar-profile-button {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .search-box.is-open {
    grid-column: 1 / -1;
    width: 100%;
  }

  .search-pill {
    height: 46px;
    border-radius: 18px;
  }

  .search-box:not(.is-open) .search-placeholder {
    opacity: 0;
  }

  .search-box:not(.is-open) .search-static-icon {
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .search-box:not(.is-open) .search-trigger {
    padding: 0;
  }

  .search-placeholder,
  .search-input {
    font-size: 0.92rem;
  }

  .search-trigger,
  .search-input {
    padding: 0 16px 0 42px;
  }

  .search-static-icon {
    left: 14px;
  }

  .search-suggestions {
    top: calc(100% + 8px);
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    max-height: min(52vh, 360px);
    overflow-y: auto;
  }

  .search-suggestion {
    gap: 10px;
    padding: 10px;
    border-radius: 13px;
  }

  .topbar h1 {
    font-size: 1rem;
    text-align: center;
  }

  .topbar-title small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .carousel-panel,
  .shortcuts-btns-container,
  .home-calendar-section,
  .home-story-stack,
  .management-panel {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .page-notice,
  .modal {
    right: 12px;
    bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    width: auto;
  }

  .search-suggestions {
    max-height: min(52vh, 420px);
  }
}

@media (max-width: 640px) {

  .topbar-profile-avatar {
    display: flex;
    justify-content: center;
  }

  .topbar-profile-button {
    display: inline-flex;
  }

  .carousel-panel,
  .shortcuts-btns-container,
  .home-calendar-section,
  .home-story-stack,
  .management-panel {
    width: 100%;
    max-width: none;
  }

  .content-area {
    padding: 112px 0 calc(114px + env(safe-area-inset-bottom, 0px));
  }

  body.has-password-sync-banner .content-area {
    padding: 178px 0 calc(114px + env(safe-area-inset-bottom, 0px));
  }

  .sidebar {
    right: 0;
    bottom: env(safe-area-inset-bottom, 0px);
    left: 0;
    padding: 8px 0 10px;
    border-radius: 22px 22px 0 0;
  }

  .topbar {
    padding: 12px 12px 10px;
    grid-template-columns: 44px minmax(0, 1fr);
    row-gap: 10px;
    column-gap: 8px;
  }

  body.has-password-sync-banner .topbar {
    top: 66px;
  }

  .password-sync-banner {
    left: 0;
    padding: 12px 14px;
  }

  .password-sync-banner__content {
    gap: 6px;
    font-size: 0.9rem;
  }

  .topbar-title {
    padding: 0;
  }

  .topbar-title>div {
    text-align: center;
  }

  .topbar h1 {
    font-size: 0.98rem;
  }

  .topbar-title small {
    font-size: 0.68rem;
  }

  .home-calendar-section {
    padding: 8px 0 0;
  }

  .home-calendar-panel {
    width: auto;
    margin: 0 8px;
    padding: 14px 10px 12px;
    border-radius: 18px;
  }

  .home-calendar-weekdays,
  .home-calendar-grid {
    gap: 2px;
  }

  .home-calendar-weekdays span {
    font-size: 0.68rem;
  }

  .home-calendar-upcoming {
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .home-calendar-upcoming::-webkit-scrollbar {
    display: none;
  }

  .home-calendar-upcoming-item,
  .home-calendar-upcoming-more {
    flex: 0 0 auto;
    padding: 9px 11px;
  }

  .home-calendar-day {
    min-height: 50px;
    padding: 5px 2px;
    border-radius: 12px;
    gap: 3px;
  }

  .home-calendar-day-number {
    font-size: 0.92rem;
  }

  .home-calendar-day.is-event .home-calendar-day-copy {
    padding: 5px;
    border-radius: 9px;
    min-height: 30px;
  }

  .home-calendar-day-main {
    gap: 5px;
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .home-calendar-day-icon {
    width: 20px;
    height: 20px;
    border-radius: 8px;
  }

  .home-calendar-day-icon i {
    font-size: 0.88rem;
  }

  .home-calendar-day-copy strong {
    font-size: 0.64rem;
    line-height: 1.15;
    -webkit-line-clamp: 2;
  }

  .home-calendar-count {
    padding: 2px 6px;
    font-size: 0.66rem;
  }

  .home-calendar-future {
    margin-top: 14px;
    padding-top: 14px;
  }

  .home-calendar-upcoming-item strong {
    max-width: 110px;
    font-size: 0.76rem;
  }

  .home-calendar-day {
    overflow: visible;
  }

  .home-calendar-day-details {
    top: calc(100% + 8px);
    bottom: auto;
    left: 50%;
    right: auto;
    width: min(220px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    transform: translate(-50%, 6px);
    z-index: 50;
  }

  .home-calendar-day.is-open {
    z-index: 51;
  }

  .home-calendar-day.is-open .home-calendar-day-details {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .home-calendar-grid .home-calendar-day:nth-child(7n + 1) .home-calendar-day-details {
    left: 0;
    transform: translateY(6px);
  }

  .home-calendar-grid .home-calendar-day:nth-child(7n + 1).is-open .home-calendar-day-details {
    transform: translateY(0);
  }

  .home-calendar-grid .home-calendar-day:nth-child(7n) .home-calendar-day-details {
    left: auto;
    right: 0;
    transform: translateY(6px);
  }

  .home-calendar-grid .home-calendar-day:nth-child(7n).is-open .home-calendar-day-details {
    transform: translateY(0);
  }

  .nav-item {
    min-width: 0;
    min-height: 72px;
    padding: 7px 1px 9px;
  }

  .nav-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 12px;
  }

  .nav-copy strong {
    font-size: 0.5rem;
    letter-spacing: 0.02em;
  }

  .search-pill {
    height: 44px;
    border-radius: 16px;
  }

  .search-box {
    width: 44px;
    min-width: 44px;
  }

  .topbar-actions .topbar-icon-button,
  .topbar-profile-button {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .search-placeholder,
  .search-input {
    font-size: 0.88rem;
  }

  .search-suggestions {
    max-height: min(48vh, 320px);
  }

  .carousel-panel {
    padding: 8px 8px 14px;
  }

  .shortcuts-btns-container {
    padding: 18px 8px 4px;
  }
}
