:root {
  --bg: #02050d;
  --ink: #f7f2df;
  --muted: #b9bdd1;
  --gold: #f0d27a;
  --gold2: #b89038;
  --cyan: #8bd8ff;
  --teal: #7de3cc;
  --rose: #ff8ba8;
  --line: rgba(240, 210, 122, .26);
  --panel: rgba(6, 11, 27, .40);
  --panel2: rgba(8, 16, 35, .50);
  --shadow: 0 24px 70px rgba(0, 0, 0, .50);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

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

html {
  overflow-x: hidden;
  scroll-behavior: auto;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(2, 5, 13, .12), rgba(2, 5, 13, .34) 44%, rgba(2, 5, 13, .18)),
    url("/auralis-cosmic-desktop-bg.jpeg");
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: center top;
  background-attachment: scroll;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.modal-open,
body.consent-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--cyan);
}

.app-shell {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 190px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, auto);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.top-left,
.top-right,
.module,
.analysis-panel,
.report-shell,
.music-panel,
.consent-card,
.modal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .016)),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -18px 34px rgba(0, 0, 0, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.top-left {
  display: grid;
  grid-template-columns: minmax(98px, auto) minmax(178px, auto) minmax(220px, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  min-width: 0;
}

.sdg-badge,
.clock-badge,
.brand-title {
  min-width: 0;
}

.sdg-badge {
  width: 106px;
  min-height: 76px;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(125, 227, 204, .34);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(11, 71, 76, .78), rgba(5, 18, 34, .78));
  color: #e7fffb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 0 rgba(0, 0, 0, .42);
}

.sdg-badge b {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 12px;
  letter-spacing: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .82);
}

.sdg-badge .sdg-number {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 21px;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .85);
}

.sdg-symbol-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: .38;
  transform: none;
  pointer-events: none;
}

.sdg-symbol-bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.03);
}

.sdg-symbol-bg svg {
  width: 100%;
  height: 100%;
  display: none;
  fill: none;
  stroke: rgba(231, 255, 251, .98);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sdg-symbol-bg circle,
.sdg-symbol-bg rect {
  fill: none;
}

.clock-badge {
  width: auto;
  min-width: 178px;
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(139, 216, 255, .30);
  border-radius: var(--radius);
  background: rgba(7, 22, 45, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 8px 0 rgba(0, 0, 0, .38);
}

.clock-badge b {
  font-size: 15px;
  color: var(--cyan);
  line-height: 1.15;
}

.clock-badge span {
  font-size: 13px;
  color: var(--muted);
}

.brand-title h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: 0;
}

.brand-title p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: 13px;
}

.brand-title {
  display: grid;
  align-content: center;
  gap: 2px;
}

.brand-mainline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.auralis-logo-lockup {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 1 auto;
  width: fit-content;
  max-width: 100%;
  line-height: 0;
}

.auralis-logo-panel {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(240, 210, 122, .26);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 7px 18px rgba(0, 0, 0, .24);
}

.auralis-logo-panel img {
  display: block;
  object-fit: contain;
}

.auralis-logo-panel-glyphs {
  background: rgba(255, 255, 255, .96);
  width: 128px;
  max-width: min(128px, 34vw);
}

.auralis-logo-panel-glyphs img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 24px;
}

.auralis-logo-panel-symbol {
  background:
    radial-gradient(circle at 45% 32%, rgba(255, 255, 255, .18), transparent 34%),
    linear-gradient(145deg, rgba(19, 28, 47, .52), rgba(3, 8, 20, .36));
}

.auralis-logo-panel-symbol img {
  width: auto;
  height: 30px;
  filter: drop-shadow(0 3px 9px rgba(240, 210, 122, .24));
}

.top-right {
  display: grid;
  grid-template-columns: auto auto auto auto;
  grid-template-areas:
    "flags lang counter actions"
    "glyph glyph glyph glyph";
  align-items: center;
  justify-content: end;
  gap: 8px;
  padding: 10px;
  min-width: 0;
}

.flag-stack {
  grid-area: flags;
}

.lang-stack {
  grid-area: lang;
}

.flag-stack,
.lang-stack {
  display: grid;
  grid-template-columns: repeat(2, 44px);
  gap: 6px;
}

.flag,
.lang-btn,
.icon-btn,
.counter-pill {
  min-height: 38px;
  border: 1px solid rgba(240, 210, 122, .28);
  border-radius: var(--radius);
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 7px 0 rgba(0, 0, 0, .36);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0;
}

.lang-btn.active {
  color: #d9f4ff;
  background: linear-gradient(145deg, var(--gold), #fff1ad);
  text-shadow: 0 1px 0 rgba(6, 16, 30, .72);
}

.counter-pill {
  grid-area: counter;
  min-width: 236px;
  padding: 7px 10px;
  line-height: 1.2;
  color: var(--cyan);
  align-content: center;
  overflow-wrap: anywhere;
}

.counter-main {
  display: block;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.22;
}

.counter-pill small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.25;
}

.actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(2, 42px);
  gap: 6px;
}

.auralis-glyph-banner {
  grid-area: glyph;
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 clamp(18px, 2.6vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(240, 210, 122, .28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 7px 0 rgba(0, 0, 0, .30);
}

.auralis-glyph-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: start;
}

.main-stack {
  display: grid;
  gap: 14px;
}

.side-stack {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 14px;
}

.side-stack .button-grid,
.side-stack .button-grid.two,
.side-stack .button-grid.five {
  grid-template-columns: 1fr;
}

.module {
  padding: 14px;
}

.module-profiler {
  border-color: rgba(139, 216, 255, .34);
  background:
    linear-gradient(145deg, rgba(139, 216, 255, .12), rgba(240, 210, 122, .05)),
    rgba(3, 8, 19, .62);
}

.module-profiler-shortcut {
  border-color: rgba(139, 216, 255, .38);
  background:
    radial-gradient(circle at 95% 0%, rgba(139, 216, 255, .14), transparent 38%),
    linear-gradient(145deg, rgba(139, 216, 255, .10), rgba(240, 210, 122, .055)),
    rgba(3, 8, 19, .52);
}

.module-profiler-mobile {
  display: none;
}

.module-profiler-shortcut p {
  margin: -2px 0 11px;
  color: #eaf8ff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.button-grid.profiler-shortcut {
  grid-template-columns: 1fr;
}

.button-grid.profiler-shortcut .cosmic-btn {
  min-height: 74px;
}

.profiler-copy {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.profiler-copy p {
  margin: 0;
  color: #eaf8ff;
  font-weight: 750;
  line-height: 1.45;
}

.profiler-chips,
.profiler-modal-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profiler-chips span,
.profiler-modal-guide span {
  border: 1px solid rgba(139, 216, 255, .24);
  border-radius: 999px;
  padding: 7px 10px;
  color: #dff8ff;
  background: rgba(139, 216, 255, .08);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.button-grid.profiler {
  grid-template-columns: minmax(260px, 520px);
}

.button-grid.profiler .cosmic-btn {
  min-height: 86px;
  border-color: rgba(240, 210, 122, .30);
  background:
    linear-gradient(145deg, rgba(24, 34, 64, .98), rgba(0, 0, 0, .96)),
    radial-gradient(circle at 12% 16%, rgba(139, 216, 255, .20), transparent 34%);
}

.profiler-modal-guide {
  margin: 10px 0 14px;
}

.day-history-module {
  border-color: rgba(240, 210, 122, .32);
  background:
    radial-gradient(circle at 94% 0%, rgba(139, 216, 255, .13), transparent 32%),
    linear-gradient(145deg, rgba(240, 210, 122, .10), rgba(139, 216, 255, .055)),
    rgba(3, 8, 19, .40);
}

.day-history-head {
  align-items: center;
}

.secondary-btn.compact {
  min-width: 104px;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
}

.day-history-loading {
  border: 1px solid rgba(139, 216, 255, .18);
  border-radius: var(--radius);
  padding: 14px;
  color: #dff8ff;
  background: rgba(0, 0, 0, .22);
  font-weight: 800;
}

.day-history-loading.error {
  border-color: rgba(255, 139, 168, .38);
  color: #ffd5df;
}

.day-history-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.day-history-link {
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.day-history-link:first-child {
  grid-column: span 2;
}

.day-history-item {
  min-height: 100%;
  display: grid;
  grid-template-rows: 86px minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(11, 25, 49, .84), rgba(4, 8, 20, .72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 9px 0 rgba(0, 0, 0, .35);
}

.day-history-item.featured {
  grid-template-rows: 118px minmax(0, 1fr);
  border-color: rgba(255, 232, 157, .42);
  background:
    linear-gradient(145deg, rgba(240, 210, 122, .12), rgba(11, 25, 49, .78)),
    rgba(3, 8, 19, .60);
}

.day-history-thumb,
.day-history-year {
  display: grid;
  place-items: center;
  min-width: 0;
  background:
    radial-gradient(circle at 24% 18%, rgba(240, 210, 122, .22), transparent 42%),
    linear-gradient(145deg, rgba(139, 216, 255, .14), rgba(0, 0, 0, .38));
}

.day-history-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.day-history-year {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 900;
}

.day-history-copy {
  display: grid;
  gap: 7px;
  padding: 11px;
  min-width: 0;
}

.day-history-copy b {
  color: #fff1ad;
  font-size: 13px;
  line-height: 1.18;
}

.day-history-copy span {
  color: #eaf8ff;
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.day-history-item.featured .day-history-copy b {
  font-size: 15px;
}

.day-history-item.featured .day-history-copy span {
  font-size: 13px;
  line-height: 1.42;
  -webkit-line-clamp: 6;
}

.day-history-copy em {
  align-self: end;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.day-history-meta {
  margin: 10px 0 0;
}

.module-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}

.module h2,
.analysis-panel h2,
.report-shell h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.14;
  letter-spacing: 0;
}

.module small {
  color: var(--muted);
  font-weight: 700;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.button-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.button-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cosmic-btn,
.primary-btn,
.secondary-btn,
.danger-btn {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 72px;
  padding: 11px 12px 18px;
  text-align: left;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  background: linear-gradient(145deg, rgba(17, 35, 68, .92), rgba(7, 13, 31, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -13px 22px rgba(0, 0, 0, .30), 0 8px 0 rgba(0, 0, 0, .46), 0 22px 44px rgba(0, 0, 0, .28);
  overflow: hidden;
}

.cosmic-btn::before,
.primary-btn::before,
.secondary-btn::before,
.danger-btn::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 38%;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 999px 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), transparent);
  pointer-events: none;
  z-index: 0;
}

.cosmic-btn > *,
.primary-btn > *,
.secondary-btn > *,
.danger-btn > * {
  position: relative;
  z-index: 1;
}

.cosmic-btn:hover,
.primary-btn:hover,
.secondary-btn:hover,
.icon-btn:hover,
.lang-btn:hover {
  border-color: rgba(139, 216, 255, .62);
}

.cosmic-btn:active,
.primary-btn:active,
.secondary-btn:active,
.icon-btn:active,
.lang-btn:active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -8px 16px rgba(0, 0, 0, .35), 0 3px 0 rgba(0, 0, 0, .48);
}

.cosmic-btn .mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #d9f4ff;
  background: linear-gradient(145deg, var(--gold), #fff0ac);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 22px rgba(240, 210, 122, .26);
  text-shadow: 0 1px 0 rgba(6, 16, 30, .72);
  margin: 0;
  align-self: center;
  justify-self: center;
}

.cosmic-btn.star .mark {
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--cyan), #e4f7ff);
}

.cosmic-btn.meteor .mark {
  border-radius: 999px 8px 999px 8px;
  background: linear-gradient(145deg, var(--rose), #ffd5df);
}

.cosmic-btn.black {
  background: linear-gradient(145deg, rgba(16, 16, 22, .94), rgba(0, 0, 0, .94));
}

.cosmic-btn[data-btn="profiler"] {
  border-color: rgba(139, 216, 255, .56);
  background:
    radial-gradient(circle at 18% 8%, rgba(139, 216, 255, .18), transparent 34%),
    linear-gradient(145deg, rgba(22, 26, 36, .96), rgba(0, 0, 0, .94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .20),
    inset 0 -14px 24px rgba(0, 0, 0, .34),
    0 10px 0 rgba(0, 0, 0, .48),
    0 24px 46px rgba(0, 0, 0, .30),
    0 0 28px rgba(139, 216, 255, .16);
}

.cosmic-btn[data-btn="profiler"] .mark {
  color: #06101e;
  background: linear-gradient(145deg, #8bd8ff, #fff0ac);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    0 0 26px rgba(139, 216, 255, .30),
    0 0 18px rgba(240, 210, 122, .20);
}

.cosmic-btn b {
  display: block;
  font-size: 14px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.cosmic-btn .btn-copy,
.cosmic-btn .btn-sub {
  display: block;
  min-width: 0;
}

.cosmic-btn .btn-copy {
  margin: 0;
}

.cosmic-btn .btn-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.button-live-stamp {
  position: absolute;
  right: 7px;
  bottom: 5px;
  color: var(--teal);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .72);
}

.analysis-panel {
  padding: 16px;
  scroll-margin-top: 12px;
}

.panel-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.form-nudge {
  margin: -4px 0 14px;
  border: 1px solid rgba(240, 210, 122, .28);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: #fff3b8;
  background: linear-gradient(145deg, rgba(240, 210, 122, .13), rgba(139, 216, 255, .055));
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.clarification-strip {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(139, 216, 255, .24);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 12px 0 14px;
  color: #eaf8ff;
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 216, 255, .14), transparent 34%),
    rgba(0, 0, 0, .24);
}

.clarification-strip.ok {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border-color: rgba(138, 232, 184, .26);
  background: rgba(15, 66, 53, .20);
}

.clarification-strip b {
  color: #fff1ad;
  font-size: 13px;
}

.clarification-strip span,
.clarification-strip small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.clarification-strip ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.clarification-strip li {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 9px 10px;
  background: rgba(255, 255, 255, .045);
}

.feedback-box {
  margin-top: 14px;
}

.feedback-box textarea {
  width: 100%;
  min-height: 78px;
  margin-top: 10px;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-image-wrap {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.report-image-wrap .report-image {
  margin: 0;
}

.palm-map {
  overflow: hidden;
  border: 1px solid rgba(139, 216, 255, .24);
  border-radius: var(--radius);
  padding: 10px;
  background:
    radial-gradient(circle at 85% 12%, rgba(139, 216, 255, .12), transparent 30%),
    rgba(0, 0, 0, .20);
}

.palm-map figcaption {
  color: #fff1ad;
  font-size: 12px;
  font-weight: 900;
}

.palm-zone {
  position: absolute;
  z-index: 2;
  max-width: 128px;
  border: 1px solid rgba(255, 241, 173, .55);
  border-radius: 999px;
  padding: 5px 8px;
  color: #fff8d1;
  background: rgba(3, 8, 20, .68);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .14);
  font-size: 10.5px;
  font-weight: 950;
  line-height: 1.05;
  pointer-events: none;
}

.palm-zone-heart { left: 18%; top: 28%; }
.palm-zone-head { left: 22%; top: 43%; }
.palm-zone-life { left: 12%; top: 58%; }
.palm-zone-fate { left: 48%; top: 50%; }
.palm-zone-venus { left: 58%; top: 66%; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  min-width: 0;
}

.field.wide {
  grid-column: 1 / -1;
}

label {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 6px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(139, 216, 255, .24);
  border-radius: var(--radius);
  background: rgba(2, 5, 13, .68);
  color: var(--ink);
  padding: 11px;
  outline: none;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(240, 210, 122, .72);
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.primary-btn,
.secondary-btn,
.danger-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 160px;
  padding: 11px 14px;
  font-weight: 900;
  text-align: center;
}

.primary-btn {
  color: #d9f4ff;
  background: linear-gradient(145deg, var(--gold), #fff1ad);
  text-shadow: 0 1px 0 rgba(6, 16, 30, .72);
}

.secondary-btn {
  background: linear-gradient(145deg, rgba(12, 29, 58, .88), rgba(4, 10, 24, .88));
}

.danger-btn {
  background: linear-gradient(145deg, rgba(82, 22, 42, .88), rgba(26, 7, 18, .88));
}

.status-box {
  margin-top: 12px;
  min-height: 48px;
  border: 1px solid rgba(139, 216, 255, .18);
  border-radius: var(--radius);
  padding: 11px;
  color: var(--muted);
  background: rgba(0, 0, 0, .24);
  line-height: 1.45;
}

.sdg-feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-right: min(160px, 24vw);
}

.sdg-feature .sdg-symbol-bg {
  right: 10px;
  top: 50%;
  width: 136px;
  height: 136px;
  inset: auto 10px auto auto;
  opacity: .26;
  transform: translateY(-50%) rotate(-3deg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .28);
}

.sdg-feature-copy {
  position: relative;
  z-index: 1;
}

.status-box.error {
  color: #ffe0ac;
  border-color: rgba(255, 139, 168, .42);
}

.report-shell {
  padding: 14px;
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.section-menu {
  display: grid;
  gap: 8px;
  align-content: start;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.section-menu button {
  min-height: 44px;
  border: 1px solid rgba(240, 210, 122, .18);
  border-radius: var(--radius);
  text-align: left;
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
  padding: 9px 10px;
  font-weight: 800;
}

.section-menu button b,
.section-menu button small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.section-menu button small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.28;
}

.section-menu button.active {
  border-color: rgba(240, 210, 122, .62);
  background: rgba(240, 210, 122, .12);
}

.report-card {
  min-height: 360px;
  border: 1px solid rgba(139, 216, 255, .18);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .24);
  padding: 16px;
  line-height: 1.72;
  min-width: 0;
  overflow-x: auto;
}

.report-card h3 {
  font-family: Georgia, serif;
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.1;
}

.report-card p {
  margin: 10px 0;
}

.report-image {
  display: block;
  width: min(100%, 520px);
  max-height: 520px;
  object-fit: contain;
  margin: 12px auto 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(240, 210, 122, .28);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .28);
}

.report-visual {
  width: min(100%, 740px);
  margin: 12px auto 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(139, 216, 255, .22);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .42);
  background: rgba(0, 0, 0, .28);
}

.astrogram-svg {
  display: block;
  width: 100%;
  height: auto;
}

.report-note {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(240, 210, 122, .22);
  border-radius: var(--radius);
  background: rgba(240, 210, 122, .08);
  color: #f7e6a6;
  font-size: 13px;
  line-height: 1.45;
}

.report-plain {
  border-color: rgba(139, 216, 255, .26);
  background: linear-gradient(145deg, rgba(139, 216, 255, .11), rgba(240, 210, 122, .07));
  color: #eaf8ff;
}

.report-plain b {
  display: block;
  color: var(--gold);
  margin-bottom: 4px;
}

.report-plain p {
  margin: 0;
}

.decision-intro {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(139, 216, 255, .22);
  border-radius: var(--radius);
  background: rgba(139, 216, 255, .08);
  color: #eaf8ff;
  font-size: 13px;
  line-height: 1.45;
}

.report-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  margin-top: 14px;
}

.report-table th,
.report-table td {
  border-bottom: 1px solid rgba(240, 210, 122, .16);
  padding: 9px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.data-card {
  border: 1px solid rgba(139, 216, 255, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
  padding: 11px;
  min-width: 0;
}

.data-card b {
  display: block;
  color: var(--gold);
  margin-bottom: 4px;
}

.data-card span,
.item-card p,
.smart-detail p,
.smart-detail li {
  overflow-wrap: anywhere;
}

.item-list,
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.item-card {
  border: 1px solid rgba(139, 216, 255, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .045);
  padding: 11px;
  min-width: 0;
}

.item-card b {
  display: block;
  color: var(--gold);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.external-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(139, 216, 255, .26);
  border-radius: var(--radius);
  padding: 7px 10px;
  background: rgba(139, 216, 255, .08);
  text-decoration: none;
  font-weight: 900;
}

.source-panel {
  background: rgba(0, 0, 0, .18);
}

.source-panel h3 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 17px;
}

.weather-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.weather-card {
  min-width: 0;
  border: 1px solid rgba(139, 216, 255, .22);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 8px 22px rgba(0, 0, 0, .20);
  padding: 11px;
  display: grid;
  gap: 5px;
}

.weather-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  border: 1px solid rgba(240, 210, 122, .28);
  background: radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .18), transparent 32%), rgba(0, 0, 0, .24);
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 14px rgba(0, 0, 0, .22);
}

.weather-icon svg {
  width: 32px;
  height: 32px;
  display: block;
  overflow: visible;
}

.weather-icon.small {
  width: 30px;
  height: 30px;
}

.weather-icon.small svg {
  width: 22px;
  height: 22px;
}

.wi-sun-core {
  fill: #ffd873;
  stroke: rgba(255, 244, 187, .95);
  stroke-width: 1.6;
}

.wi-rays path,
.wi-lines,
.wi-lines path,
.wi-rain path,
.wi-snow path,
.wi-sky-ring {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wi-rays path {
  stroke: #ffe8a6;
  stroke-width: 2.2;
}

.wi-rays-soft path {
  stroke-width: 1.7;
  opacity: .82;
}

.wi-cloud-main {
  fill: rgba(230, 242, 255, .92);
  stroke: rgba(255, 255, 255, .9);
  stroke-width: 1.7;
}

.wi-lines,
.wi-lines path {
  stroke: #ccefff;
  stroke-width: 2.4;
  opacity: .82;
}

.wi-rain path {
  stroke: #7fd7ff;
  stroke-width: 2.8;
}

.wi-rain-soft path {
  stroke-width: 2.2;
  opacity: .86;
}

.wi-snow path {
  stroke: #e9fbff;
  stroke-width: 2;
}

.wi-bolt {
  fill: #ffe06d;
  stroke: #fff3aa;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.wi-sky-ring {
  stroke: #b9e7ff;
  stroke-width: 2.6;
}

.weather-icon-sun {
  border-color: rgba(255, 220, 112, .44);
}

.weather-icon-rain,
.weather-icon-drizzle {
  border-color: rgba(127, 215, 255, .38);
}

.weather-icon-snow,
.weather-icon-fog {
  border-color: rgba(221, 248, 255, .36);
}

.weather-icon-storm {
  border-color: rgba(255, 224, 109, .44);
  background: radial-gradient(circle at 34% 22%, rgba(255, 224, 109, .16), transparent 34%), rgba(0, 0, 0, .28);
}

.weather-card b {
  color: var(--gold);
  line-height: 1.25;
}

.weather-card span {
  color: var(--ink);
  font-weight: 800;
}

.weather-card small {
  color: var(--muted);
  line-height: 1.35;
}

.weather-card p {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.live-meta {
  min-height: 0;
  margin-top: 0;
}

.smart-search {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.smart-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 12px;
}

.smart-list {
  display: grid;
  gap: 9px;
  align-content: start;
  max-height: 58dvh;
  overflow: auto;
  padding-right: 3px;
}

.smart-row {
  display: grid;
  gap: 4px;
  min-height: 66px;
  border: 1px solid rgba(139, 216, 255, .20);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 255, 255, .045);
  color: var(--ink);
  text-align: left;
}

.smart-row b,
.smart-row span {
  overflow-wrap: anywhere;
}

.smart-row b {
  color: var(--gold);
}

.smart-row span {
  color: var(--muted);
  font-size: 12px;
}

.smart-row.active {
  border-color: rgba(240, 210, 122, .62);
  background: rgba(240, 210, 122, .11);
}

.smart-detail {
  min-height: 320px;
  border: 1px solid rgba(139, 216, 255, .18);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .22);
  padding: 13px;
}

.smart-detail h3,
.smart-detail h4 {
  color: var(--gold);
  margin: 8px 0;
}

.tax200-case textarea {
  min-height: 118px;
}

#tax200App,
#tax200App .status-box,
#tax200App .data-grid,
#tax200App .data-card,
.tax200-grid,
.tax200-grid .smart-list,
.tax200-grid .smart-detail,
.tax200-detail,
.tax200-analysis-list,
.tax200-analysis-list .item-card,
.tax200-row,
.tax200-badge {
  min-width: 0;
  max-width: 100%;
}

#tax200App .status-box,
#tax200App .data-card,
.tax200-detail,
.tax200-detail h3,
.tax200-detail h4,
.tax200-detail p,
.tax200-analysis-list .item-card,
.tax200-analysis-list .item-card b,
.tax200-analysis-list .item-card p,
.tax200-row b,
.tax200-row span,
.tax200-badge {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

#tax200App .data-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}

.tax200-row {
  cursor: pointer;
  width: 100%;
  overflow: hidden;
  align-items: start;
}

.tax200-badge {
  display: inline-block;
  vertical-align: top;
  margin: 0 6px 6px 0;
  border: 1px solid rgba(139, 216, 255, .24);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(139, 216, 255, .08);
  color: #c7f3ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.tax200-grid .smart-detail {
  max-height: 58dvh;
  overflow: auto;
}

.tax200-analysis-list .item-card p {
  margin-bottom: 8px;
}

.modal-overlay,
.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 5, 13, .72);
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  overscroll-behavior: contain;
  contain: layout paint;
}

.modal-card {
  width: min(1060px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 28px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(17, 35, 68, .76), rgba(5, 10, 24, .86)),
    rgba(5, 10, 24, .88);
  transform: none;
  margin: auto;
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(240, 210, 122, .18);
  background: linear-gradient(145deg, rgba(9, 18, 38, .94), rgba(3, 8, 20, .94));
}

.modal-head h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1.12;
}

.modal-close {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.modal-body {
  padding: 14px;
  overflow: auto;
  line-height: 1.58;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
}

.consent-card {
  position: relative;
  isolation: isolate;
  width: min(760px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 28px);
  overflow: auto;
  padding: 22px;
  margin: auto;
  transform: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .38)),
    url("/auralis-cosmic-desktop-bg.jpeg");
  background-size: cover;
  background-position: center top;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.consent-card::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 0;
  width: clamp(112px, 18vw, 174px);
  height: clamp(112px, 18vw, 174px);
  background: url("/auralis-logo-symbol.png?v=5.11.33") center / contain no-repeat;
  opacity: .24;
  filter: drop-shadow(0 12px 30px rgba(240, 210, 122, .30));
  pointer-events: none;
}

.consent-card > * {
  position: relative;
  z-index: 1;
}

.consent-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.consent-card .lang-stack {
  grid-template-columns: repeat(2, 38px);
}

.consent-card .lang-btn {
  min-height: 32px;
  font-size: 12px;
}

.consent-card .primary-btn {
  width: 100%;
}

.consent-card h2 {
  margin: 14px 0 10px;
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.consent-card p,
.consent-card li {
  color: #f0eef7;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.consent-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.consent-list li {
  border: 1px solid rgba(240, 210, 122, .22);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .34);
  padding: 9px 10px;
}

.music-panel {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 2147482000;
  width: 318px;
  padding: 8px;
  display: grid;
  gap: 8px;
}

body.consent-open .music-panel {
  opacity: 0;
  pointer-events: none;
}

.music-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.music-label {
  min-width: 0;
  display: grid;
  gap: 2px;
  line-height: 1.05;
}

.music-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 32px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(240, 210, 122, .16);
  color: var(--gold);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.music-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  background: #000;
}

.music-toggle {
  min-width: 80px;
  min-height: 34px;
  border: 1px solid rgba(240, 210, 122, .30);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03));
  color: var(--ink);
  font-weight: 900;
}

.hidden {
  display: none !important;
}

.fine {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .top-right {
    justify-content: stretch;
    grid-template-columns: auto auto minmax(150px, 1fr) auto;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .side-stack {
    position: relative;
    top: auto;
  }

  .button-grid.five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .day-history-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .day-history-link:first-child {
    grid-column: span 3;
  }
}

@media (max-width: 820px) {
  body {
    background-size: auto 920px;
  }

  .app-shell {
    width: min(100% - 18px, 720px);
    padding-top: 9px;
    padding-bottom: 110px;
  }

  .top-left {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .sdg-badge,
  .clock-badge {
    width: 100%;
    min-height: 58px;
  }

  .brand-title h1 {
    font-size: 30px;
  }

  .auralis-logo-panel-glyphs {
    max-width: min(112px, calc(100vw - 178px));
  }

  .auralis-logo-panel-glyphs img {
    height: 22px;
  }

  .auralis-logo-panel-symbol img {
    height: 28px;
  }

  .top-right {
    grid-template-columns: 1fr 1fr;
  }

  .counter-pill {
    min-width: 0;
  }

  .button-grid,
  .button-grid.two,
  .button-grid.five,
  .day-history-list,
  .form-grid,
  .form-grid.two,
  .report-layout,
  .smart-search,
  .smart-grid {
    grid-template-columns: 1fr;
  }

  .cosmic-btn {
    min-height: 62px;
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 10px 10px 17px;
  }

  .cosmic-btn .mark {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .cosmic-btn b {
    font-size: 13px;
  }

  .cosmic-btn .btn-sub {
    font-size: 11px;
  }

  .panel-top,
  .module-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .day-history-head {
    align-items: stretch;
  }

  .secondary-btn.compact {
    width: 100%;
  }

  .day-history-item {
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-rows: auto;
    min-height: 110px;
  }

  .day-history-link:first-child {
    grid-column: auto;
  }

  .day-history-item.featured {
    grid-template-columns: 108px minmax(0, 1fr);
    grid-template-rows: auto;
    min-height: 128px;
  }

  .day-history-copy span,
  .day-history-item.featured .day-history-copy span {
    -webkit-line-clamp: 4;
  }

  .section-menu {
    max-height: none;
  }

  .smart-list {
    max-height: 32dvh;
  }

  .button-live-stamp {
    right: 6px;
    bottom: 4px;
    font-size: 9px;
  }

  .music-panel {
    right: 8px;
    bottom: 8px;
    width: 164px;
    padding: 6px;
  }

  .music-panel b {
    font-size: 11px;
  }

  .music-toggle {
    min-width: 50px;
    min-height: 30px;
    font-size: 12px;
  }

  .music-frame {
    height: 68px;
    aspect-ratio: auto;
  }

  .consent-overlay,
  .modal-overlay {
    padding: 8px;
    place-items: center;
  }

  .consent-card,
  .modal-card {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: min(760px, calc(100dvh - 16px));
  }

  .consent-top {
    grid-template-columns: 1fr;
  }

  .consent-card h2 {
    font-size: clamp(23px, 6.6vw, 26px);
  }

  .consent-card {
    padding: 18px;
  }

  .modal-head h2 {
    font-size: 21px;
  }

  .report-table {
    min-width: 520px;
  }
}

@media (max-width: 520px) {
  .consent-overlay,
  .modal-overlay {
    justify-items: center;
  }

  .consent-card,
  .modal-card {
    width: min(340px, calc(100vw - 24px));
    max-width: min(340px, calc(100vw - 24px));
    overflow-x: hidden;
    margin-left: 0;
    margin-right: 0;
  }

  .modal-body,
  .consent-card {
    max-width: 100%;
  }

  .consent-card {
    padding: 14px;
  }

  .consent-card::before {
    top: 10px;
    right: 10px;
    width: 88px;
    height: 88px;
    opacity: .18;
  }

  .consent-card h2 {
    font-size: clamp(18px, 5.8vw, 22px);
    line-height: 1.14;
  }

  .consent-card p,
  .consent-card li {
    font-size: 15px;
    line-height: 1.52;
  }
}

:root {
  --panel: rgba(4, 10, 24, .34);
  --panel2: rgba(7, 15, 34, .42);
  --line: rgba(240, 210, 122, .24);
  --glass-line: rgba(185, 230, 255, .18);
  --deep-blue: rgba(4, 12, 31, .58);
  --button-edge: rgba(249, 227, 153, .34);
}

body {
  background-image:
    linear-gradient(180deg, rgba(2, 5, 13, .04), rgba(2, 5, 13, .18) 38%, rgba(2, 5, 13, .30) 74%, rgba(2, 5, 13, .16)),
    url("/auralis-cosmic-desktop-bg.jpeg");
  background-size: 100% auto;
  background-position: center top;
}

.public-signal {
  width: min(1500px, calc(100% - 32px));
  margin: 12px auto 0;
  border: 1px solid rgba(139, 216, 255, .20);
  border-radius: var(--radius);
  padding: 7px 10px;
  color: rgba(231, 255, 251, .90);
  background: linear-gradient(145deg, rgba(2, 5, 13, .34), rgba(10, 20, 44, .26));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.app-shell {
  padding-top: 12px;
}

.top-left,
.top-right,
.module,
.analysis-panel,
.report-shell,
.music-panel,
.consent-card,
.modal-card {
  border-color: rgba(240, 210, 122, .20);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .066), rgba(255, 255, 255, .014) 42%, rgba(139, 216, 255, .026)),
    rgba(3, 8, 20, .36);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .44),
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 -1px 0 rgba(240, 210, 122, .08);
}

.topbar {
  gap: 16px;
  margin-bottom: 16px;
}

.top-left {
  grid-template-columns: minmax(112px, auto) minmax(198px, auto) minmax(280px, 1fr);
  padding: 14px;
}

.top-right {
  padding: 12px;
}

.brand-title h1 {
  color: #fff5cc;
  text-shadow: 0 2px 18px rgba(240, 210, 122, .18);
}

.brand-title p {
  max-width: 760px;
  color: #cbd5e8;
}

.sdg-badge,
.clock-badge,
.flag,
.lang-btn,
.icon-btn,
.counter-pill {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -10px 22px rgba(0, 0, 0, .18),
    0 8px 0 rgba(0, 0, 0, .34),
    0 18px 36px rgba(0, 0, 0, .20);
}

.clock-badge {
  min-width: 198px;
  background: rgba(4, 13, 33, .52);
}

.counter-pill {
  background: rgba(4, 13, 33, .50);
}

.layout,
.main-stack,
.side-stack {
  gap: 16px;
}

.layout {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 368px);
}

.module {
  position: relative;
  overflow: hidden;
  padding: 16px;
  box-shadow:
    0 22px 50px rgba(0, 0, 0, .28),
    0 7px 0 rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 -18px 34px rgba(0, 0, 0, .18);
}

.module::after {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 3px solid var(--module-accent, rgba(240, 210, 122, .34));
  pointer-events: none;
}

.module-mystic-panel {
  --module-accent: rgba(139, 216, 255, .68);
}

.module-economy-panel {
  --module-accent: rgba(125, 227, 204, .62);
}

.module-audit-panel {
  --module-accent: rgba(240, 210, 122, .68);
}

.atlantis-showcase {
  padding: 0;
  min-height: clamp(420px, 42vw, 720px);
  border-color: rgba(139, 216, 255, .34);
  background: rgba(3, 8, 20, .18);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, .38),
    0 8px 0 rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .13);
}

.atlantis-showcase::after {
  border-left-color: rgba(139, 216, 255, .46);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    inset 0 -80px 120px rgba(2, 5, 13, .34),
    inset 0 70px 110px rgba(139, 216, 255, .10);
}

.atlantis-showcase img {
  display: block;
  width: 100%;
  height: clamp(420px, 42vw, 720px);
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.04) contrast(1.04) brightness(.94);
}

.module-main-app-panel {
  --module-accent: rgba(255, 139, 168, .52);
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 232, 157, .18), transparent 34%),
    linear-gradient(145deg, rgba(255, 139, 168, .135), rgba(240, 210, 122, .085) 42%, rgba(139, 216, 255, .045)),
    rgba(3, 8, 20, .34);
  border-color: rgba(240, 210, 122, .42);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -18px 34px rgba(0, 0, 0, .18),
    0 0 0 1px rgba(255, 232, 157, .08);
}

.synastry-entry {
  margin: -2px 0 12px;
  padding: 0;
}

.synastry-entry .synastry-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.synastry-entry .cosmic-btn {
  width: 100%;
  min-height: 82px;
  border-color: rgba(255, 232, 157, .72);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 232, 157, .22), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(139, 216, 255, .20), transparent 32%),
    linear-gradient(145deg, rgba(52, 42, 92, .94), rgba(6, 15, 35, .94) 58%, rgba(3, 8, 20, .90));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -16px 28px rgba(0, 0, 0, .30),
    0 10px 0 rgba(0, 0, 0, .46),
    0 28px 58px rgba(139, 216, 255, .16),
    0 0 0 1px rgba(255, 232, 157, .10);
}

.synastry-entry .cosmic-btn[data-btn="astro"] {
  min-height: 92px;
}

.synastry-entry .cosmic-btn b {
  font-size: clamp(19px, 2.2vw, 27px);
}

.synastry-entry .cosmic-btn .mark {
  border-color: rgba(255, 232, 157, .74);
  color: #fff2c2;
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 255, 255, .24), transparent 34%),
    linear-gradient(145deg, rgba(240, 210, 122, .26), rgba(139, 216, 255, .16));
}

.module-main-app-panel .module-head h2 {
  font-size: 30px;
  text-shadow: 0 1px 22px rgba(240, 210, 122, .24);
}

.module-main-app-panel .button-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.module-main-app-panel .cosmic-btn {
  min-height: 88px;
}

.module-main-app-panel [data-btn="form"] {
  grid-column: span 2;
  border-color: rgba(255, 232, 157, .72);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 232, 157, .20), transparent 36%),
    linear-gradient(145deg, rgba(54, 41, 86, .90), rgba(7, 13, 31, .96)),
    rgba(2, 5, 13, .46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .20),
    inset 0 -13px 22px rgba(0, 0, 0, .30),
    0 9px 0 rgba(0, 0, 0, .46),
    0 24px 52px rgba(240, 210, 122, .13);
}

.module-main-app-panel [data-btn="form"] b {
  font-size: 16px;
}

.module-main-app-panel [data-btn="astro"],
.module-main-app-panel [data-btn="numero"],
.module-main-app-panel [data-btn="palm"] {
  border-color: rgba(139, 216, 255, .42);
}

.module-mystic-panel .cosmic-btn,
.module-economy-panel .cosmic-btn,
.module-audit-panel .cosmic-btn {
  min-height: 66px;
  padding-top: 9px;
  padding-bottom: 16px;
}

.module-mystic-panel .btn-sub,
.module-economy-panel .btn-sub,
.module-audit-panel .btn-sub {
  color: #cfd8ec;
}

.module-pro-panel {
  --module-accent: rgba(255, 245, 194, .70);
  background:
    linear-gradient(145deg, rgba(240, 210, 122, .10), rgba(139, 216, 255, .030)),
    rgba(3, 8, 20, .42);
}

.module-pro-mobile {
  display: none;
  --module-accent: rgba(255, 245, 194, .72);
  margin: 0 0 12px;
  background:
    radial-gradient(circle at 88% 10%, rgba(240, 210, 122, .20), transparent 34%),
    radial-gradient(circle at 12% 88%, rgba(139, 216, 255, .14), transparent 32%),
    linear-gradient(145deg, rgba(240, 210, 122, .12), rgba(125, 227, 204, .050)),
    rgba(3, 8, 19, .58);
}

.module-pro-panel .button-grid,
.module-pro-mobile .button-grid {
  gap: 9px;
}

.module-pro-panel .cosmic-btn,
.module-pro-mobile .cosmic-btn {
  min-height: 72px;
  border-color: rgba(255, 245, 194, .34);
}

.module-resources-panel {
  --module-accent: rgba(139, 216, 255, .44);
}

.module-side-navigator {
  --module-accent: rgba(125, 227, 204, .66);
  min-height: clamp(690px, 76vh, 880px);
  display: flex;
  flex-direction: column;
  align-content: start;
  gap: 13px;
  background:
    radial-gradient(circle at 82% 10%, rgba(139, 216, 255, .17), transparent 34%),
    radial-gradient(circle at 12% 86%, rgba(240, 210, 122, .13), transparent 32%),
    linear-gradient(145deg, rgba(125, 227, 204, .10), rgba(255, 139, 168, .045)),
    rgba(3, 8, 20, .36);
  border-color: rgba(125, 227, 204, .26);
  box-shadow:
    0 26px 58px rgba(0, 0, 0, .34),
    0 10px 0 rgba(0, 0, 0, .20),
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 -22px 42px rgba(0, 0, 0, .22);
}

.navigator-hero {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.navigator-orbit {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(3, 8, 20, .96) 0 56%, transparent 57%),
    conic-gradient(rgba(240, 210, 122, .92) calc(var(--progress) * 1%), rgba(139, 216, 255, .16) 0);
  box-shadow:
    inset 0 0 22px rgba(139, 216, 255, .10),
    0 14px 34px rgba(0, 0, 0, .34);
}

.navigator-orbit span {
  color: #fff2c2;
  font-weight: 1000;
  font-size: 15px;
}

.navigator-hero b,
.navigator-signal b,
.navigator-mini-grid b {
  display: block;
  color: var(--gold);
}

.navigator-hero p,
.navigator-signal p,
.navigator-warning {
  margin: 0;
  color: #eaf8ff;
  line-height: 1.35;
}

.navigator-hero small {
  display: block;
  margin-top: 4px;
  color: #cfd8ec;
  line-height: 1.3;
}

.navigator-percent-help {
  margin: -2px 0 0;
  padding: 9px 10px;
  border: 1px solid rgba(139, 216, 255, .16);
  border-radius: var(--radius);
  color: #dbefff;
  background: rgba(3, 8, 20, .24);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}

.navigator-signal {
  border: 1px solid rgba(139, 216, 255, .18);
  border-radius: var(--radius);
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)),
    rgba(255, 255, 255, .035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    inset 0 -8px 16px rgba(0, 0, 0, .18),
    0 8px 18px rgba(0, 0, 0, .18);
}

.navigator-signal span {
  display: block;
  margin-top: 8px;
  color: #dff8ff;
  font-size: 13px;
  line-height: 1.4;
}

.navigator-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.navigator-mini-grid span {
  min-width: 0;
  border: 1px solid rgba(240, 210, 122, .18);
  border-radius: var(--radius);
  padding: 9px 8px;
  color: #f7fbff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
    rgba(0, 0, 0, .18);
  font-size: 12px;
  line-height: 1.25;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 6px 12px rgba(0, 0, 0, .16);
}

.navigator-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.navigator-actions button {
  position: relative;
  min-height: 66px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 9px;
  border: 1px solid rgba(139, 216, 255, .22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 232, 157, .14), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
    rgba(2, 5, 13, .46);
  color: #f7fbff;
  text-align: left;
  padding: 10px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -10px 18px rgba(0, 0, 0, .30),
    0 8px 0 rgba(0, 0, 0, .36),
    0 16px 28px rgba(0, 0, 0, .22);
  overflow: hidden;
}

.navigator-actions button::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 42%;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 999px 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .15), transparent);
  pointer-events: none;
}

.navigator-actions button b {
  grid-row: 1 / span 2;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #07111f;
  background: linear-gradient(145deg, #fff2c2, #8bd8ff);
  font-size: 11px;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 20px rgba(139, 216, 255, .18);
}

.navigator-actions button span {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}

.navigator-actions button em {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
  color: #cfd8ec;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
}

.navigator-actions button:hover {
  border-color: rgba(240, 210, 122, .40);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -10px 18px rgba(0, 0, 0, .28),
    0 10px 0 rgba(0, 0, 0, .34),
    0 20px 34px rgba(0, 0, 0, .26),
    0 0 28px rgba(139, 216, 255, .10);
}

.navigator-actions button:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 -8px 14px rgba(0, 0, 0, .36),
    0 3px 0 rgba(0, 0, 0, .42);
}

.navigator-warning {
  border-top: 1px solid rgba(255, 255, 255, .10);
  padding-top: 11px;
  color: #cfd8ec;
  font-size: 13px;
}

.navigator-mentor {
  position: relative;
  min-height: 275px;
  margin: auto 0 0;
  border: 1px solid rgba(240, 210, 122, .24);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, .30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 12px 0 rgba(0, 0, 0, .28),
    0 26px 46px rgba(0, 0, 0, .34);
}

.navigator-mentor img {
  width: 100%;
  height: 100%;
  min-height: 275px;
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.08) contrast(1.05);
}

.navigator-mentor::before,
.navigator-mentor::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.navigator-mentor::before {
  background:
    linear-gradient(180deg, rgba(3, 8, 20, .08), transparent 42%, rgba(3, 8, 20, .78)),
    radial-gradient(circle at 50% 16%, rgba(139, 216, 255, .16), transparent 34%);
}

.navigator-mentor::after {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: inherit;
  box-shadow: inset 0 0 42px rgba(139, 216, 255, .08);
}

.navigator-mentor figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius);
  background: rgba(2, 5, 13, .58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.navigator-mentor figcaption b {
  color: #fff2c2;
}

.navigator-mentor figcaption span {
  color: #dff8ff;
  font-size: 12px;
  text-align: right;
}

.module-profiler {
  --module-accent: rgba(139, 216, 255, .76);
  background:
    linear-gradient(145deg, rgba(139, 216, 255, .12), rgba(240, 210, 122, .045)),
    rgba(3, 8, 19, .42);
}

.module-head {
  margin-bottom: 14px;
  align-items: center;
}

.module h2,
.analysis-panel h2,
.report-shell h2 {
  color: #fff2c2;
  text-shadow: 0 1px 18px rgba(240, 210, 122, .12);
}

.module small {
  border: 1px solid rgba(139, 216, 255, .14);
  border-radius: 999px;
  padding: 5px 8px;
  color: #ccecff;
  background: rgba(139, 216, 255, .06);
  line-height: 1.1;
}

.button-grid {
  gap: 11px;
}

.cosmic-btn,
.primary-btn,
.secondary-btn,
.danger-btn {
  border-color: var(--button-edge);
  background:
    linear-gradient(145deg, rgba(24, 42, 76, .84), rgba(3, 8, 22, .92)),
    rgba(2, 5, 13, .40);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -14px 24px rgba(0, 0, 0, .28),
    0 9px 0 rgba(0, 0, 0, .42),
    0 24px 46px rgba(0, 0, 0, .24);
}

.cosmic-btn {
  min-height: 82px;
  padding: 12px 12px 18px;
}

.cosmic-btn:hover,
.primary-btn:hover,
.secondary-btn:hover,
.icon-btn:hover,
.lang-btn:hover {
  border-color: rgba(139, 216, 255, .78);
  filter: saturate(1.06);
}

.cosmic-btn:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.danger-btn:focus-visible,
.icon-btn:focus-visible,
.lang-btn:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid rgba(139, 216, 255, .88);
  outline-offset: 2px;
}

.cosmic-btn .mark {
  color: #051022;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .92), rgba(255, 255, 255, .16) 25%, transparent 26%),
    linear-gradient(145deg, #ffe89d, #b8862e 58%, #634514);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .52),
    inset -8px -10px 18px rgba(0, 0, 0, .22),
    0 0 22px rgba(240, 210, 122, .28);
}

.cosmic-btn.star .mark {
  border-radius: 8px;
  background:
    linear-gradient(145deg, #eaf9ff, #7edaff 58%, #295a90);
}

.cosmic-btn.meteor .mark {
  border-radius: 999px 8px 999px 8px;
  background:
    linear-gradient(145deg, #ffd1dc, #ff8ba8 58%, #80334d);
}

.cosmic-btn.black {
  background:
    linear-gradient(145deg, rgba(31, 37, 55, .96), rgba(0, 0, 0, .95)),
    rgba(2, 5, 13, .40);
}

.primary-btn {
  color: #071226;
  background:
    linear-gradient(145deg, #fff3bc, #e3b84c 58%, #9d6f26),
    rgba(240, 210, 122, .72);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .42);
}

.secondary-btn {
  background:
    linear-gradient(145deg, rgba(21, 42, 78, .90), rgba(5, 11, 27, .92)),
    rgba(2, 5, 13, .40);
}

.danger-btn {
  background:
    linear-gradient(145deg, rgba(89, 24, 46, .90), rgba(28, 8, 20, .92)),
    rgba(2, 5, 13, .40);
}

.cosmic-btn b {
  color: #fff8dc;
  font-size: 14px;
}

.cosmic-btn .btn-sub {
  color: #bfc9de;
}

.analysis-panel,
.report-shell {
  padding: 18px;
  scroll-margin-top: 14px;
}

.report-empty-shell {
  display: grid;
  gap: 14px;
  min-height: 250px;
  align-content: center;
  background:
    linear-gradient(145deg, rgba(240, 210, 122, .085), rgba(139, 216, 255, .045)),
    rgba(3, 8, 20, .34);
}

.report-empty-copy {
  max-width: 780px;
}

.report-empty-copy h2 {
  font-size: 30px;
}

.report-empty-copy p {
  margin: 8px 0 0;
  color: #d8e2f4;
  line-height: 1.55;
}

.report-empty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.report-empty-grid div {
  border: 1px solid rgba(139, 216, 255, .18);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .16);
  padding: 12px;
}

.report-empty-grid b,
.report-empty-grid span {
  display: block;
}

.report-empty-grid b {
  color: #fff0be;
  margin-bottom: 5px;
}

.report-empty-grid span {
  color: #cbd5e8;
  line-height: 1.35;
}

.report-empty-actions {
  margin-top: 2px;
}

.form-nudge {
  background: linear-gradient(145deg, rgba(240, 210, 122, .14), rgba(139, 216, 255, .075));
  color: #fff1b4;
}

input,
select,
textarea {
  border-color: rgba(139, 216, 255, .26);
  background: rgba(2, 5, 13, .56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

input:focus,
select:focus,
textarea:focus {
  background: rgba(2, 5, 13, .68);
  box-shadow: 0 0 0 3px rgba(139, 216, 255, .10), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.report-layout {
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
}

.section-menu {
  border: 1px solid rgba(139, 216, 255, .12);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .14);
  padding: 8px;
}

.section-menu button {
  border-color: rgba(139, 216, 255, .16);
  background: rgba(255, 255, 255, .035);
}

.section-menu button.active {
  border-color: rgba(240, 210, 122, .72);
  background:
    linear-gradient(145deg, rgba(240, 210, 122, .16), rgba(139, 216, 255, .05)),
    rgba(255, 255, 255, .035);
}

.report-card {
  background: rgba(0, 0, 0, .18);
  border-color: rgba(139, 216, 255, .16);
  line-height: 1.78;
  color: #f1f4fb;
  padding: 20px;
}

.report-card h3 {
  color: #fff0be;
}

.report-detail {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(139, 216, 255, .14);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .13);
}

.report-detail b {
  display: block;
  margin-bottom: 6px;
  color: #eaf8ff;
  font-size: 13px;
}

.report-detail p {
  margin: 0;
}

.report-card p,
.report-plain p,
.status-box,
.item-card,
.data-card,
.smart-detail {
  color: #d7deef;
}

.report-note,
.report-plain,
.report-detail,
.status-box,
.data-card,
.item-card,
.smart-detail,
.weather-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .050), rgba(255, 255, 255, .018)),
    rgba(0, 0, 0, .18);
}

.report-plain {
  border-color: rgba(139, 216, 255, .34);
  background:
    linear-gradient(145deg, rgba(139, 216, 255, .13), rgba(240, 210, 122, .075)),
    rgba(0, 0, 0, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
}

.report-plain b {
  font-size: 14px;
}

.report-technical {
  margin-top: 14px;
  border: 1px solid rgba(240, 210, 122, .16);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, .14);
  overflow: hidden;
}

.report-technical summary {
  min-height: 42px;
  padding: 10px 12px;
  color: #fff0be;
  font-weight: 900;
  cursor: pointer;
}

.report-technical .report-table {
  margin: 0;
  border-top: 1px solid rgba(240, 210, 122, .12);
}

.report-table th {
  color: #fff0be;
  background: rgba(240, 210, 122, .06);
}

.report-table td {
  color: #e4e9f5;
}

.modal-overlay,
.consent-overlay {
  place-items: center;
  background:
    linear-gradient(180deg, rgba(2, 5, 13, .64), rgba(2, 5, 13, .78)),
    rgba(2, 5, 13, .68);
}

.modal-card {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  background:
    linear-gradient(145deg, rgba(18, 34, 64, .82), rgba(4, 9, 22, .90)),
    rgba(4, 9, 22, .90);
}

.modal-body .data-grid,
.modal-body .item-list,
.modal-body .link-grid {
  gap: 10px;
}

.modal-body .status-box:first-child,
.modal-body .data-grid:first-child {
  margin-top: 0;
}

.modal-head {
  background: linear-gradient(145deg, rgba(12, 22, 46, .98), rgba(3, 8, 20, .98));
}

.modal-close {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .025)),
    rgba(0, 0, 0, .30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 18px rgba(0, 0, 0, .24);
}

.consent-card {
  width: min(720px, calc(100vw - 32px));
  background:
    linear-gradient(180deg, rgba(2, 5, 13, .22), rgba(2, 5, 13, .48)),
    url("/auralis-cosmic-desktop-bg.jpeg");
  background-size: cover;
  background-position: center top;
}

.consent-card h2 {
  color: #fff1be;
}

.consent-list li {
  background: rgba(0, 0, 0, .28);
}

.music-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018)),
    rgba(3, 8, 20, .54);
  width: 220px;
}

.music-frame {
  height: 74px;
  aspect-ratio: auto;
}

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .side-stack {
    position: relative;
    top: auto;
  }
}

@media (max-width: 820px) {
  body {
    background-size: auto 980px;
    background-position: center top;
  }

  .public-signal {
    width: min(100% - 18px, 720px);
    margin-top: 8px;
  }

  .app-shell {
    width: min(100% - 18px, 720px);
    padding-top: 9px;
  }

  .top-left,
  .top-right,
  .module,
  .analysis-panel,
  .report-shell {
    padding: 12px;
  }

  .module-pro-mobile,
  .module-profiler-mobile {
    display: block;
    margin: 0 0 12px;
    border-color: rgba(139, 216, 255, .44);
    background:
      radial-gradient(circle at 100% 0%, rgba(139, 216, 255, .16), transparent 36%),
      linear-gradient(145deg, rgba(139, 216, 255, .12), rgba(240, 210, 122, .055)),
      rgba(3, 8, 19, .56);
  }

  .side-stack > .module-profiler-shortcut,
  .side-stack > .module-pro-panel {
    display: none;
  }

  .module-pro-mobile .module-head,
  .module-profiler-mobile .module-head {
    margin-bottom: 9px;
  }

  .module-pro-mobile .button-grid {
    grid-template-columns: 1fr;
  }

  .synastry-entry {
    margin: 0 0 12px;
  }

  .synastry-entry .synastry-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .atlantis-showcase {
    min-height: 240px;
  }

  .atlantis-showcase img {
    height: 240px;
  }

  .module-pro-mobile .cosmic-btn,
  .module-profiler-mobile .cosmic-btn {
    min-height: 66px;
  }

  .synastry-entry .cosmic-btn,
  .synastry-entry .cosmic-btn[data-btn="astro"] {
    min-height: 72px;
  }

  .top-left {
    grid-template-columns: 1fr;
  }

  .module-head {
    align-items: flex-start;
  }

  .module-main-app-panel .module-head h2 {
    font-size: 26px;
  }

  .module-main-app-panel .button-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .module-main-app-panel [data-btn="form"] {
    grid-column: auto;
  }

  .module small {
    max-width: 100%;
  }

  .module-side-navigator {
    min-height: auto;
  }

  .navigator-mentor,
  .navigator-mentor img {
    min-height: 230px;
  }

  .cosmic-btn {
    min-height: 68px;
    padding: 10px 10px 18px;
  }

  .day-history-link:first-child {
    grid-column: auto;
  }

  .day-history-item,
  .day-history-item.featured {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto;
    min-height: 118px;
  }

  .day-history-copy span,
  .day-history-item.featured .day-history-copy span {
    -webkit-line-clamp: 4;
  }

  .report-detail,
  .report-plain,
  .report-note {
    padding: 11px;
  }

  .section-menu {
    display: flex;
    gap: 8px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 8px 10px;
    scroll-snap-type: x proximity;
  }

  .section-menu button {
    min-width: min(240px, 76vw);
    scroll-snap-align: start;
  }

  .report-empty-shell {
    min-height: 0;
  }

  .report-empty-copy h2 {
    font-size: 24px;
  }

  .report-empty-grid {
    grid-template-columns: 1fr;
  }

  .report-card {
    padding: 13px;
    line-height: 1.66;
  }

  .clarification-strip.ok,
  .clarification-strip ul {
    grid-template-columns: 1fr;
  }

  .feedback-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .report-card h3 {
    font-size: 24px;
  }

  .modal-overlay,
  .consent-overlay {
    padding: 8px;
  }

  .modal-card,
  .consent-card {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }

  .modal-body {
    padding: 12px;
  }

  .smart-search.tax200-search,
  .smart-grid.tax200-grid,
  #tax200App .data-grid,
  .tax200-analysis-list {
    grid-template-columns: 1fr;
  }

  .smart-search.tax200-search {
    gap: 8px;
  }

  .smart-search.tax200-search select,
  .smart-search.tax200-search input,
  .smart-search.tax200-search button,
  .tax200-case .primary-btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
    line-height: 1.25;
  }

  .tax200-grid .smart-list {
    max-height: 38dvh;
    padding-right: 0;
  }

  .tax200-grid .smart-detail {
    max-height: none;
    min-height: 0;
  }

  .tax200-row {
    min-height: auto;
    padding: 9px;
  }

  .tax200-row b {
    font-size: 13px;
    line-height: 1.32;
  }

  .tax200-row span,
  .tax200-badge {
    font-size: 11px;
    line-height: 1.35;
  }

  .tax200-detail h3 {
    font-size: 20px;
    line-height: 1.22;
  }

  .tax200-analysis-list .item-card {
    padding: 11px;
  }

  .music-panel {
    width: min(132px, calc(100vw - 18px));
    min-height: 42px;
    padding: 6px;
    gap: 0;
  }

  .music-top {
    gap: 4px;
  }

  .music-panel b {
    font-size: 10px;
  }

  .music-toggle {
    min-width: 44px;
    min-height: 28px;
    font-size: 11px;
  }

  .music-frame {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: .01;
    pointer-events: none;
  }
}

@media (min-width: 1181px) {
  .music-panel {
    position: static;
    width: min(430px, 100%);
    margin: 12px 0 0 auto;
    padding: 10px;
    gap: 10px;
  }

  .music-frame {
    height: clamp(190px, 24vh, 300px);
    min-height: 190px;
    aspect-ratio: auto;
  }
}

@media (max-width: 520px) {
  .consent-overlay,
  .modal-overlay {
    justify-items: center;
  }

  .consent-card,
  .modal-card {
    width: min(340px, calc(100vw - 24px));
    max-width: min(340px, calc(100vw - 24px));
    margin-left: auto;
    margin-right: auto;
  }

  .consent-top {
    grid-template-columns: 1fr;
  }

  .consent-card .lang-stack {
    grid-template-columns: repeat(2, 34px);
    justify-self: start;
  }

  .consent-card .lang-btn {
    min-height: 30px;
  }

  .consent-card {
    padding: 14px;
  }

  .consent-card h2 {
    font-size: clamp(18px, 5.8vw, 22px);
    line-height: 1.14;
  }

  .consent-card p,
  .consent-card li {
    font-size: 15px;
    line-height: 1.52;
  }

  .navigator-actions {
    grid-template-columns: 1fr;
  }

  .navigator-mentor figcaption {
    align-items: flex-start;
    flex-direction: column;
  }

  .navigator-mentor figcaption span {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .consent-card {
    box-sizing: border-box;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    overflow-x: hidden;
  }

  .consent-card *,
  .consent-card *::before,
  .consent-card *::after {
    box-sizing: border-box;
    max-width: 100%;
  }

  .consent-card .consent-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .consent-card .lang-stack {
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .app-shell,
  .topbar,
  .top-left,
  .top-right,
  .layout,
  .main-stack,
  .side-stack,
  .module,
  .analysis-panel,
  .report-shell,
  .report-card,
  .modal-card,
  .modal-body,
  .consent-card,
  .status-box,
  .data-card,
  .item-card,
  .weather-card,
  .smart-list,
  .smart-detail,
  .smart-row,
  .tax200-detail,
  .report-note,
  .report-plain,
  .report-detail,
  .navigator-actions button,
  .day-history-item,
  .day-history-copy,
  .clarification-strip,
  .feedback-box {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .data-grid,
  .item-list,
  .link-grid,
  .weather-grid,
  .smart-search,
  .smart-grid,
  .tax200-analysis-list,
  .report-empty-grid,
  .navigator-actions,
  .feedback-actions,
  .form-actions {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 100%;
  }

  .form-actions {
    display: grid;
  }

  .primary-btn,
  .secondary-btn,
  .danger-btn,
  .icon-btn,
  .lang-btn,
  .music-toggle,
  .external-link,
  .tax200-badge,
  .smart-row,
  .section-menu button {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }

  .cosmic-btn,
  .navigator-actions button {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .cosmic-btn b,
  .cosmic-btn span,
  .cosmic-btn small,
  .cosmic-btn em,
  .btn-copy,
  .btn-sub,
  .module h2,
  .module small,
  .panel-top,
  .status-box h3,
  .status-box p,
  .data-card b,
  .data-card span,
  .item-card b,
  .item-card p,
  .smart-row b,
  .smart-row span,
  .smart-detail h3,
  .smart-detail h4,
  .smart-detail p,
  .tax200-detail h3,
  .tax200-detail h4,
  .tax200-detail p,
  .report-card h3,
  .report-card p,
  .report-note,
  .report-detail p,
  .report-plain p,
  .weather-card b,
  .weather-card span,
  .weather-card small,
  .navigator-actions button span,
  .navigator-actions button em,
  .day-history-copy b,
  .day-history-copy span {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  select,
  input,
  textarea {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .section-menu {
    max-width: 100%;
  }

  .section-menu button {
    flex: 0 0 min(240px, 74vw);
  }

  .report-table {
    min-width: 480px;
  }
}

@media (max-width: 520px) {
  .modal-card,
  .consent-card {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
  }

  .modal-body {
    overflow-x: hidden;
  }

  .report-card {
    overflow-x: auto;
  }

  .modal-body .report-table {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .modal-body .report-table thead {
    display: none;
  }

  .modal-body .report-table tbody,
  .modal-body .report-table tr,
  .modal-body .report-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .modal-body .report-table tr {
    border: 1px solid rgba(240, 210, 122, .18);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, .18);
    overflow: hidden;
  }

  .modal-body .report-table td {
    display: grid;
    grid-template-columns: minmax(92px, 36%) minmax(0, 1fr);
    gap: 8px;
    padding: 9px 10px;
    border-bottom: 1px solid rgba(240, 210, 122, .10);
    overflow-wrap: anywhere;
  }

  .modal-body .report-table td:last-child {
    border-bottom: 0;
  }

  .modal-body .report-table td::before {
    content: attr(data-label);
    color: #fff0be;
    font-weight: 900;
    overflow-wrap: anywhere;
  }

  .tax200-grid .smart-list,
  .smart-list {
    max-height: none;
  }
}

/* Premium visual pass: brand hierarchy, cleaner glass, stronger primary actions. */
:root {
  --panel: rgba(4, 10, 24, .28);
  --panel2: rgba(7, 15, 34, .34);
  --line: rgba(240, 210, 122, .22);
  --glass-line: rgba(185, 230, 255, .16);
  --premium-gold: rgba(255, 238, 172, .72);
  --premium-cyan: rgba(139, 216, 255, .58);
  --premium-shadow: 0 24px 58px rgba(0, 0, 0, .34);
}

body {
  background-image:
    linear-gradient(180deg, rgba(2, 5, 13, .015), rgba(2, 5, 13, .14) 42%, rgba(2, 5, 13, .24) 78%, rgba(2, 5, 13, .12)),
    url("/auralis-cosmic-desktop-bg.jpeg");
}

.public-signal {
  border-color: rgba(255, 238, 172, .18);
  background: linear-gradient(145deg, rgba(2, 5, 13, .24), rgba(10, 20, 44, .16));
  color: rgba(247, 242, 223, .88);
}

.top-left,
.top-right {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .010) 46%, rgba(139, 216, 255, .020)),
    rgba(3, 8, 20, .28);
  border-color: rgba(255, 238, 172, .25);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, .30),
    inset 0 1px 0 rgba(255, 255, 255, .13),
    inset 0 -1px 0 rgba(255, 238, 172, .08);
}

.top-left {
  grid-template-columns: minmax(102px, auto) minmax(196px, auto) minmax(300px, 1fr);
  gap: 13px;
}

.brand-mainline {
  gap: 12px;
}

.brand-title h1 {
  color: #fff6cf;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, .55),
    0 10px 28px rgba(240, 210, 122, .22);
}

.brand-title p {
  color: #d8e3f2;
}

.brand-title .fine {
  color: rgba(194, 255, 239, .82);
}

.sdg-badge,
.clock-badge {
  border-color: rgba(139, 216, 255, .26);
  background:
    linear-gradient(145deg, rgba(13, 46, 63, .54), rgba(4, 12, 28, .38));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 7px 0 rgba(0, 0, 0, .28),
    0 16px 28px rgba(0, 0, 0, .18);
}

.top-right .flag,
.top-right .lang-btn,
.top-right .icon-btn,
.top-right .counter-pill {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .070), rgba(255, 255, 255, .015)),
    rgba(4, 13, 33, .34);
  border-color: rgba(255, 238, 172, .20);
}

.module,
.analysis-panel,
.report-shell {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .010) 48%, rgba(139, 216, 255, .018)),
    rgba(3, 8, 20, .27);
  border-color: rgba(255, 238, 172, .18);
  box-shadow:
    var(--premium-shadow),
    0 6px 0 rgba(0, 0, 0, .14),
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 -1px 0 rgba(255, 238, 172, .055);
}

.module::after {
  border-left-width: 2px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .035),
    inset 0 36px 72px rgba(139, 216, 255, .025);
}

.module-head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 238, 172, .095);
}

.module h2,
.analysis-panel h2,
.report-shell h2 {
  color: #fff3bf;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, .62),
    0 12px 30px rgba(240, 210, 122, .16);
}

.module small {
  border-color: rgba(139, 216, 255, .13);
  background: rgba(139, 216, 255, .045);
  color: #d8efff;
}

.synastry-entry {
  margin-bottom: 14px;
}

.synastry-entry .cosmic-btn {
  border-color: rgba(255, 238, 172, .74);
  background:
    linear-gradient(145deg, rgba(61, 54, 102, .82), rgba(7, 16, 38, .83) 58%, rgba(3, 8, 20, .74));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .23),
    inset 0 -16px 28px rgba(0, 0, 0, .27),
    0 9px 0 rgba(0, 0, 0, .38),
    0 24px 52px rgba(139, 216, 255, .15),
    0 0 0 1px rgba(255, 238, 172, .10);
}

.synastry-entry .cosmic-btn[data-btn="astro"] {
  background:
    linear-gradient(145deg, rgba(91, 72, 128, .84), rgba(9, 28, 58, .84) 58%, rgba(3, 8, 20, .74));
}

.synastry-entry .cosmic-btn[data-btn="profiler"] {
  border-color: rgba(139, 216, 255, .64);
}

.synastry-entry .cosmic-btn[data-btn="decision"] {
  border-color: rgba(255, 139, 168, .58);
}

.synastry-entry .cosmic-btn[data-btn="coffee"] {
  border-color: rgba(240, 210, 122, .68);
}

.cosmic-btn,
.primary-btn,
.secondary-btn,
.danger-btn {
  transition: transform .16s ease, border-color .16s ease, filter .16s ease, box-shadow .16s ease;
}

.cosmic-btn {
  background:
    linear-gradient(145deg, rgba(24, 44, 80, .72), rgba(3, 8, 22, .82)),
    rgba(2, 5, 13, .30);
  border-color: rgba(255, 238, 172, .25);
}

.cosmic-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .20),
    inset 0 -14px 24px rgba(0, 0, 0, .25),
    0 11px 0 rgba(0, 0, 0, .38),
    0 26px 48px rgba(139, 216, 255, .13);
}

.cosmic-btn:active {
  transform: translateY(3px);
}

.cosmic-btn .mark {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .54),
    inset -7px -9px 16px rgba(0, 0, 0, .22),
    0 0 18px rgba(240, 210, 122, .24);
}

.module-mystic-panel,
.module-economy-panel {
  border-color: rgba(139, 216, 255, .24);
  background:
    linear-gradient(145deg, rgba(139, 216, 255, .070), rgba(125, 227, 204, .035) 44%, rgba(3, 8, 20, .25)),
    rgba(2, 5, 13, .18);
}

.module-economy-panel {
  border-color: rgba(125, 227, 204, .25);
  background:
    linear-gradient(145deg, rgba(125, 227, 204, .072), rgba(139, 216, 255, .030) 44%, rgba(3, 8, 20, .25)),
    rgba(2, 5, 13, .18);
}

.module-mystic-panel .module-head,
.module-economy-panel .module-head {
  border-bottom-color: rgba(139, 216, 255, .14);
}

.module-mystic-panel .cosmic-btn,
.module-economy-panel .cosmic-btn,
.module-audit-panel .cosmic-btn {
  min-height: 64px;
  background:
    linear-gradient(145deg, rgba(20, 39, 72, .66), rgba(3, 8, 22, .76)),
    rgba(2, 5, 13, .20);
}

.side-stack .module {
  border-color: rgba(255, 238, 172, .20);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .050), rgba(255, 255, 255, .010) 50%, rgba(125, 227, 204, .016)),
    rgba(3, 8, 20, .30);
}

.module-pro-panel {
  border-color: rgba(255, 245, 194, .30);
  background:
    linear-gradient(145deg, rgba(255, 238, 172, .090), rgba(139, 216, 255, .028)),
    rgba(2, 5, 13, .24);
}

.module-resources-panel {
  border-color: rgba(139, 216, 255, .22);
}

.module-side-navigator {
  border-color: rgba(125, 227, 204, .30);
  background:
    linear-gradient(145deg, rgba(125, 227, 204, .075), rgba(255, 238, 172, .045) 52%, rgba(3, 8, 20, .28)),
    rgba(2, 5, 13, .22);
}

.atlantis-showcase {
  min-height: clamp(780px, 66vw, 980px);
}

.atlantis-showcase img {
  height: clamp(780px, 66vw, 980px);
  object-position: center center;
}

.navigator-actions button {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .014)),
    rgba(3, 8, 20, .34);
  border-color: rgba(255, 238, 172, .22);
}

.navigator-mentor {
  border-color: rgba(255, 238, 172, .26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 10px 0 rgba(0, 0, 0, .20),
    0 24px 42px rgba(0, 0, 0, .26);
}

@media (max-width: 820px) {
  body {
    background-image:
      linear-gradient(180deg, rgba(2, 5, 13, .06), rgba(2, 5, 13, .20) 46%, rgba(2, 5, 13, .26)),
      url("/auralis-cosmic-desktop-bg.jpeg");
  }

  .top-left,
  .top-right,
  .module,
  .analysis-panel,
  .report-shell {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, .056), rgba(255, 255, 255, .012)),
      rgba(3, 8, 20, .33);
  }

  .top-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .brand-mainline {
    flex-wrap: wrap;
    gap: 6px 9px;
    max-width: 100%;
  }

  .brand-mainline h1 {
    flex: 0 0 100%;
  }

  .auralis-logo-lockup {
    flex: 0 1 172px;
    max-width: 100%;
  }

  .auralis-logo-panel-glyphs {
    width: 128px;
    min-width: 112px;
    max-width: 128px;
  }

  .auralis-logo-panel-glyphs img {
    width: 100%;
    height: auto;
    max-height: 24px;
  }

  .auralis-logo-panel-symbol img {
    height: 27px;
  }

  .top-right {
    grid-template-columns: minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.72fr) minmax(0, .82fr);
    gap: 6px;
    align-items: stretch;
    padding: 8px;
  }

  .flag-stack,
  .lang-stack,
  .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    min-width: 0;
  }

  .flag,
  .lang-btn,
  .icon-btn {
    min-height: 42px;
    padding: 0;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1;
  }

  .counter-pill {
    min-height: 42px;
    padding: 5px 6px;
    border-radius: 8px;
  }

  .counter-main {
    font-size: 10.5px;
    line-height: 1.16;
  }

  .counter-pill small {
    font-size: 9.5px;
    line-height: 1.18;
  }

  .module-head {
    padding-bottom: 8px;
  }

  .synastry-entry {
    padding: 6px;
    border: 1px solid rgba(255, 238, 172, .20);
    border-radius: var(--radius);
    background:
      linear-gradient(145deg, rgba(255, 238, 172, .055), rgba(139, 216, 255, .040)),
      rgba(3, 8, 20, .22);
  }

  .synastry-entry .synastry-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .module-pro-mobile .button-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .synastry-entry .cosmic-btn,
  .synastry-entry .cosmic-btn[data-btn="astro"],
  .module-pro-mobile .cosmic-btn {
    min-height: 82px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 30px auto auto;
    justify-items: center;
    align-content: center;
    gap: 3px;
    padding: 8px 5px 10px;
    text-align: center;
  }

  .synastry-entry .cosmic-btn .mark,
  .module-pro-mobile .cosmic-btn .mark {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .synastry-entry .cosmic-btn b,
  .module-pro-mobile .cosmic-btn b {
    font-size: 11.5px;
    line-height: 1.08;
  }

  .synastry-entry .cosmic-btn .btn-sub,
  .module-pro-mobile .cosmic-btn .btn-sub {
    display: -webkit-box;
    overflow: hidden;
    font-size: 9.2px;
    line-height: 1.14;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .atlantis-showcase {
    min-height: clamp(440px, 118vw, 620px);
  }

  .atlantis-showcase img {
    height: clamp(440px, 118vw, 620px);
  }

  .synastry-entry .cosmic-btn,
  .cosmic-btn,
  .cosmic-btn:hover,
  .navigator-actions button:hover {
    transform: none;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .topbar,
  .module,
  .analysis-panel,
  .music-panel,
  .section-menu,
  .form-actions,
  .modal-overlay,
  .consent-overlay {
    display: none !important;
  }

  .app-shell {
    width: 100%;
    padding: 0;
  }

  .report-shell,
  .report-card {
    box-shadow: none;
    border: 0;
    background: #fff;
    color: #000;
  }

  .report-layout {
    display: block;
  }
}

.brand-subline {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.brand-title {
  position: relative;
  min-height: 76px;
  padding-right: clamp(58px, 9vw, 86px);
}

.brand-copy {
  min-width: 0;
}

.brand-subline .auralis-logo-lockup {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: grid;
  align-items: stretch;
  justify-items: end;
  width: clamp(54px, 8vw, 78px);
  max-width: clamp(54px, 8vw, 78px);
}

.brand-subline .auralis-logo-panel-symbol img {
  width: auto;
  height: 100%;
  max-height: 76px;
}

@media (max-width: 980px) {
  .top-right {
    grid-template-columns: auto auto minmax(190px, 1fr) auto;
  }

  .auralis-glyph-banner {
    height: 38px;
  }

  .brand-title {
    padding-right: 64px;
  }

  .brand-subline .auralis-logo-lockup {
    width: 58px;
    max-width: 58px;
  }

  .brand-subline .auralis-logo-panel-symbol img {
    max-height: 72px;
  }
}

@media (max-width: 820px) {
  .top-right {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "flags lang"
      "counter counter"
      "glyph glyph"
      "actions actions";
    justify-content: stretch;
  }

  .auralis-glyph-banner {
    height: 34px;
  }

  .brand-title {
    min-height: 66px;
    padding-right: 56px;
  }

  .brand-subline .auralis-logo-lockup {
    width: 50px;
    max-width: 50px;
  }

  .brand-subline .auralis-logo-panel-symbol img {
    max-height: 66px;
  }

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

@media (max-width: 420px) {
  .brand-title {
    min-height: 62px;
    padding-right: 50px;
  }

  .brand-subline .auralis-logo-lockup {
    width: 44px;
    max-width: 44px;
  }

  .brand-subline .auralis-logo-panel-symbol img {
    max-height: 62px;
  }
}
