:root {
  --shell-bg-0: #050b14;
  --shell-bg-1: #0b1526;
  --shell-bg-2: #12263f;
  --shell-panel: rgba(8, 17, 31, 0.76);
  --shell-panel-strong: rgba(12, 24, 42, 0.92);
  --shell-panel-soft: rgba(255, 255, 255, 0.06);
  --shell-line: rgba(170, 214, 255, 0.14);
  --shell-line-strong: rgba(170, 214, 255, 0.22);
  --shell-text: #edf6ff;
  --shell-muted: #8ca5c0;
  --shell-accent: #70d6ff;
  --shell-accent-2: #8cf7d2;
  --shell-shadow: 0 24px 60px rgba(2, 8, 20, 0.52);
  --shell-mobilebar-offset: 0px;
}

body.shell-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(112, 214, 255, 0.16), transparent 22%),
    radial-gradient(circle at 88% 12%, rgba(140, 247, 210, 0.12), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(108, 123, 255, 0.10), transparent 24%),
    linear-gradient(145deg, var(--shell-bg-0), var(--shell-bg-1) 44%, var(--shell-bg-2));
  color: var(--shell-text);
}

body.shell-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 88%);
  opacity: 0.18;
}

body.shell-drawer-open {
  overflow: hidden;
}

.shell-layout {
  position: relative;
  z-index: 1;
  width: min(1680px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 32px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.shell-main {
  min-width: 0;
}

.shell-sidebar {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  border-radius: 28px;
  border: 1px solid var(--shell-line);
  background:
    radial-gradient(circle at top left, rgba(112, 214, 255, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(140, 247, 210, 0.08), transparent 24%),
    linear-gradient(165deg, rgba(9, 18, 32, 0.94), rgba(6, 12, 24, 0.96));
  box-shadow: var(--shell-shadow);
  overflow: hidden;
}

.shell-sidebar-head {
  display: grid;
  gap: 16px;
  padding: 20px 18px 18px;
  border-bottom: 1px solid var(--shell-line);
}

.shell-brand,
.shell-mobilebar-brand {
  color: inherit;
  text-decoration: none;
}

.shell-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shell-brand-mark,
.shell-mobilebar-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #f5fbff;
  border: 1px solid rgba(170, 214, 255, 0.24);
  background:
    linear-gradient(145deg, rgba(112, 214, 255, 0.22), rgba(27, 55, 95, 0.42)),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.shell-brand-mark i,
.shell-mobilebar-mark i {
  font-size: 18px;
}

.shell-brand-copy,
.shell-mobilebar-copy {
  display: grid;
  gap: 4px;
}

.shell-brand-copy strong,
.shell-mobilebar-copy strong {
  font-size: 16px;
  line-height: 1.2;
}

.shell-brand-copy small,
.shell-mobilebar-copy small {
  color: var(--shell-muted);
  font-size: 12px;
}

.shell-summary-grid {
  display: grid;
  gap: 10px;
}

.shell-summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 18px;
  border: 1px solid var(--shell-line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.shell-summary-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--shell-accent);
  border: 1px solid rgba(170, 214, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.shell-summary-copy {
  display: grid;
  gap: 3px;
}

.shell-summary-copy strong {
  font-size: 18px;
  line-height: 1;
}

.shell-summary-copy small {
  color: var(--shell-muted);
  font-size: 12px;
}

.shell-sidebar-scroll {
  max-height: calc(100vh - 220px);
  overflow: auto;
  padding: 16px;
  display: grid;
  gap: 16px;
}

.shell-sidebar-scroll::-webkit-scrollbar {
  width: 6px;
}

.shell-sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(170, 214, 255, 0.18);
  border-radius: 999px;
}

.shell-sidebar-group {
  display: grid;
  gap: 12px;
}

.shell-sidebar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shell-sidebar-kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8d9f8;
}

.shell-sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #eaf7ff;
  border: 1px solid rgba(170, 214, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.shell-sidebar-badge-muted {
  color: #bfe8d8;
}

.shell-sidebar-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--shell-muted);
}

.shell-nav-list,
.shell-placeholder-list {
  display: grid;
  gap: 10px;
}

.shell-nav-item,
.shell-placeholder-card,
.shell-reference-link {
  text-decoration: none;
  color: inherit;
}

.shell-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.shell-nav-item:hover,
.shell-placeholder-card:hover,
.shell-reference-link:hover {
  transform: translateY(-1px);
  border-color: var(--shell-line-strong);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.shell-nav-item.is-active {
  border-color: rgba(112, 214, 255, 0.34);
  background:
    linear-gradient(145deg, rgba(112, 214, 255, 0.16), rgba(61, 100, 164, 0.14)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 32px rgba(2, 8, 20, 0.24);
}

.shell-placeholder-card.is-active {
  border-color: rgba(112, 214, 255, 0.30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 32px rgba(2, 8, 20, 0.24);
}

.shell-nav-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #edf8ff;
  border: 1px solid rgba(170, 214, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.shell-nav-copy,
.shell-placeholder-copy,
.shell-reference-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.shell-nav-copy strong,
.shell-placeholder-copy strong,
.shell-reference-copy strong {
  font-size: 14px;
  line-height: 1.3;
}

.shell-nav-copy small,
.shell-placeholder-copy small,
.shell-reference-copy small {
  color: var(--shell-muted);
  font-size: 12px;
  line-height: 1.5;
}

.shell-nav-arrow {
  margin-left: auto;
  color: #7ea3c7;
  font-size: 12px;
}

.shell-placeholder-card,
.shell-reference-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--shell-line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.04));
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.shell-placeholder-icon,
.shell-reference-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(170, 214, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #edf8ff;
}

.shell-placeholder-card.tone-cyan {
  background:
    linear-gradient(145deg, rgba(78, 193, 255, 0.16), rgba(40, 72, 128, 0.14)),
    rgba(255, 255, 255, 0.04);
}

.shell-placeholder-card.tone-blue {
  background:
    linear-gradient(145deg, rgba(123, 159, 255, 0.16), rgba(47, 63, 124, 0.14)),
    rgba(255, 255, 255, 0.04);
}

.shell-placeholder-card.tone-gold {
  background:
    linear-gradient(145deg, rgba(255, 193, 94, 0.16), rgba(106, 76, 24, 0.12)),
    rgba(255, 255, 255, 0.04);
}

.shell-placeholder-card.tone-violet {
  background:
    linear-gradient(145deg, rgba(174, 144, 255, 0.16), rgba(73, 53, 138, 0.14)),
    rgba(255, 255, 255, 0.04);
}

.shell-placeholder-card.tone-teal {
  background:
    linear-gradient(145deg, rgba(111, 246, 216, 0.14), rgba(28, 89, 83, 0.12)),
    rgba(255, 255, 255, 0.04);
}

.shell-reference-link {
  background:
    radial-gradient(circle at right top, rgba(112, 214, 255, 0.12), transparent 32%),
    linear-gradient(160deg, rgba(9, 18, 32, 0.86), rgba(5, 11, 22, 0.92));
}

.shell-mobilebar {
  display: none;
}

.shell-sidebar-backdrop {
  display: none;
}

.shell-sidebar-backdrop[hidden] {
  display: none !important;
}

.global-notice-dialog {
  width: min(760px, calc(100% - 30px));
  border: 0;
  padding: 0;
  border-radius: 26px;
  background: transparent;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

.global-notice-dialog::backdrop {
  background: rgba(1, 7, 16, 0.66);
  backdrop-filter: blur(5px);
}

.global-notice-shell,
.global-notice-support,
.global-notice-group-card {
  border: 1px solid var(--shell-line);
  box-shadow: var(--shell-shadow);
}

.global-notice-shell {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(112, 214, 255, 0.14), transparent 30%),
    radial-gradient(circle at bottom left, rgba(145, 132, 255, 0.10), transparent 24%),
    linear-gradient(160deg, rgba(10, 20, 36, 0.96), rgba(6, 12, 24, 0.98));
}

.global-notice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.global-notice-eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ec5e6;
}

.global-notice-head h2 {
  margin: 6px 0 0;
  font-size: 24px;
  color: #f3f9ff;
}

.global-notice-fineprint {
  margin: 8px 0 0;
  max-width: 680px;
  color: #b7cce2;
  font-size: 13px;
  line-height: 1.7;
}

.global-notice-close {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #dce9f6;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.global-notice-close:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.16);
}

.global-notice-support {
  display: grid;
  gap: 16px;
  padding: 14px 15px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(138, 184, 227, 0.08));
  box-shadow: none;
}

.global-notice-list {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #c2d7eb;
  font-size: 13px;
  line-height: 1.6;
}

.global-notice-group-grid {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.global-notice-group-card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(132, 192, 244, 0.34);
  background:
    linear-gradient(140deg, rgba(36, 74, 112, 0.62), rgba(19, 43, 69, 0.52));
  box-shadow:
    inset 0 1px 0 rgba(194, 227, 255, 0.16);
}

.global-notice-group-entry {
  display: grid;
  gap: 7px;
}

.global-notice-group-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(176, 219, 255, 0.36);
  background: rgba(9, 22, 36, 0.52);
  color: #d7efff;
  font-size: 11px;
  font-weight: 800;
}

.global-notice-group-text {
  margin: 0;
  color: #f1f7ff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.global-notice-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  color: #a6ddff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.global-notice-link:hover {
  color: #d4ecff;
}

.global-notice-inline-link {
  color: #f1f7ff;
  text-decoration: underline;
}

.global-notice-links {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1080px) {
  body.shell-page {
    --shell-mobilebar-offset: calc(72px + env(safe-area-inset-top, 0px));
  }

  .shell-layout {
    width: min(100% - 18px, 1680px);
    grid-template-columns: 1fr;
    padding-top: var(--shell-mobilebar-offset);
  }

  .shell-mobilebar {
    position: fixed;
    left: 10px;
    right: 10px;
    top: calc(10px + env(safe-area-inset-top, 0px));
    z-index: 42;
    height: 54px;
    padding: 0 10px;
    border-radius: 18px;
    border: 1px solid var(--shell-line);
    background: rgba(7, 15, 27, 0.88);
    backdrop-filter: blur(14px);
    box-shadow: var(--shell-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .shell-mobilebar-btn,
  .shell-mobilebar-link {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1px solid rgba(170, 214, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #edf8ff;
    display: grid;
    place-items: center;
    text-decoration: none;
    font: inherit;
  }

  .shell-mobilebar-brand {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0;
  }

  .shell-mobilebar-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 14px;
  }

  .shell-mobilebar-copy strong {
    font-size: 14px;
  }

  .shell-mobilebar-copy small {
    font-size: 11px;
  }

  .shell-mobilebar-copy {
    gap: 2px;
  }

  .shell-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 39;
    display: block;
    background: rgba(1, 7, 16, 0.56);
    backdrop-filter: blur(4px);
  }

  .shell-sidebar {
    position: fixed;
    inset: 10px auto 10px 10px;
    top: 10px;
    width: min(320px, calc(100vw - 20px));
    max-height: calc(100vh - 20px);
    z-index: 41;
    transform: translateX(calc(-100% - 12px));
    transition: transform 0.22s ease;
  }

  .shell-sidebar.is-open {
    transform: translateX(0);
  }

  .shell-sidebar-scroll {
    max-height: calc(100vh - 220px);
  }
}

@media (max-width: 760px) {
  .global-notice-shell {
    padding: 16px;
    border-radius: 20px;
  }

  .global-notice-head {
    align-items: center;
  }

  .global-notice-head h2 {
    font-size: 20px;
  }

  .global-notice-support {
    padding: 16px;
    border-radius: 18px;
  }

  .global-notice-group-card {
    padding: 14px;
  }

  .global-notice-group-text {
    color: #f4f9ff !important;
    -webkit-text-fill-color: #f4f9ff;
  }

  .global-notice-group-badge {
    color: #e8f4ff !important;
    -webkit-text-fill-color: #e8f4ff;
  }

  .global-notice-group-badge i {
    color: #d5ecff !important;
    -webkit-text-fill-color: #d5ecff;
  }

  .global-notice-links {
    margin-top: 14px;
  }

  .global-notice-link {
    color: #b9e5ff !important;
    -webkit-text-fill-color: #b9e5ff;
  }
}
