:root {
  color-scheme: dark;
  --bg: #06141a;
  --bg2: #091b22;
  --surface: #0b252c;
  --surface2: #102d35;
  --line: #1a3a42;
  --aqua: #53e0d1;
  --aqua2: #9af0e7;
  --white: #f4f7f2;
  --muted: #94a3b8;
  --muted2: #6f858d;
  --coral: #ff7f73;
  --amber: #f6c85f;
  --violet: #b5a4ff;
  --radius: 20px;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.26);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  color: inherit;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  margin: 0;
  color: var(--aqua);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 2px solid var(--aqua);
  border-radius: 50%;
  color: var(--aqua);
  font-size: 1.05rem;
}
.login-view {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.8fr);
  overflow: hidden;
}
.login-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(6, 20, 26, 0.08), rgba(6, 20, 26, 0.44)),
    url("/assets/aquatic-grid-bg.png");
  background-position: center;
  background-size: cover;
  opacity: 0.82;
  pointer-events: none;
}
.login-story {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 6vw 46px;
}
.login-story h1 {
  max-width: 820px;
  margin: 28px 0 22px;
  font-size: clamp(3.7rem, 7vw, 7.7rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
}
.login-story h1 em {
  color: var(--aqua);
  font-style: normal;
}
.login-lead {
  max-width: 620px;
  margin: 0;
  color: #c2ced1;
  font-size: clamp(1.05rem, 1.7vw, 1.38rem);
  line-height: 1.55;
}
.login-proof {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted2);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.login-proof i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--aqua);
}
.auth-panel {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 27, 34, 0.86);
  backdrop-filter: blur(18px);
  padding: 30px;
}
.auth-card {
  width: min(100%, 430px);
}
.auth-card h2 {
  margin: 13px 0 8px;
  font-size: 2.2rem;
  letter-spacing: -0.045em;
}
.auth-card form {
  margin-top: 30px;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.field label {
  color: #b8c7cb;
  font-size: 0.77rem;
  font-weight: 800;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: #07191f;
  color: var(--white);
  padding: 14px 15px;
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(83, 224, 209, 0.1);
}
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 13px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 850;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button.primary {
  background: var(--aqua);
  color: #041216;
}
.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--white);
}
.button.danger {
  border: 1px solid rgba(255, 127, 115, 0.35);
  background: rgba(255, 127, 115, 0.08);
  color: var(--coral);
}
.button.demo {
  margin-top: 12px;
  border: 1px solid rgba(83, 224, 209, 0.28);
  background: rgba(83, 224, 209, 0.07);
  color: var(--aqua);
}
.button.full {
  width: 100%;
  justify-content: space-between;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 5px rgba(83, 224, 209, 0.1);
}
.text-button {
  width: 100%;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 18px;
  cursor: pointer;
}
.text-button strong {
  color: var(--aqua);
}
.privacy-note {
  margin: 16px 0 0;
  color: var(--muted2);
  font-size: 0.73rem;
  line-height: 1.5;
  text-align: center;
}
.form-error {
  min-height: 19px;
  color: var(--coral);
  font-size: 0.8rem;
}
.app-view {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 230px 1fr;
  background: linear-gradient(145deg, #06141a 0%, #071920 55%, #06141a 100%);
}
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: #061319;
  padding: 30px 18px;
  z-index: 20;
}
.sidebar-brand {
  padding: 0 12px 26px;
}
.main-nav {
  display: grid;
  gap: 5px;
  margin-top: 18px;
}
.main-nav button,
.user-button,
.bottom-nav button {
  border: 0;
  background: none;
  cursor: pointer;
}
.main-nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  text-align: left;
}
.main-nav button:hover,
.main-nav button.active {
  background: rgba(83, 224, 209, 0.09);
  color: var(--white);
}
.main-nav button.active {
  box-shadow: inset 2px 0 var(--aqua);
}
.nav-icon {
  display: grid;
  width: 24px;
  place-items: center;
  color: var(--aqua);
  font-size: 1.1rem;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 18px;
}
.user-button {
  display: grid;
  width: 100%;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  border-radius: 13px;
  padding: 8px;
  text-align: left;
}
.user-button > span:first-child {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--aqua);
  color: #06141a;
  font-weight: 900;
}
.user-button > span:nth-child(2) {
  display: grid;
}
.user-button small {
  overflow: hidden;
  max-width: 120px;
  color: var(--muted2);
  font-size: 0.68rem;
  text-overflow: ellipsis;
}
.app-column {
  min-width: 0;
}
.topbar {
  display: flex;
  min-height: 106px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 24px clamp(20px, 4vw, 52px);
}
.topbar h1 {
  margin: 7px 0 0;
  font-size: 1.8rem;
  letter-spacing: -0.035em;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sync-state {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.73rem;
}
.sync-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
}
.sync-state.offline i {
  background: var(--coral);
}
.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.bottom-nav {
  display: none;
}
#page {
  max-width: 1500px;
  margin: 0 auto;
  padding: 34px clamp(18px, 4vw, 52px) 80px;
  outline: none;
}
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.page-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  letter-spacing: -0.045em;
}
.page-head p {
  max-width: 600px;
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.grid {
  display: grid;
  gap: 16px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card {
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: var(--radius);
  background: linear-gradient(
    145deg,
    rgba(15, 43, 51, 0.92),
    rgba(9, 29, 36, 0.92)
  );
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.1);
  padding: 22px;
}
.card.soft {
  background: rgba(255, 255, 255, 0.025);
}
.card.aqua {
  border-color: rgba(83, 224, 209, 0.32);
  background: linear-gradient(
    145deg,
    rgba(83, 224, 209, 0.12),
    rgba(9, 29, 36, 0.92)
  );
}
.metric-card {
  min-height: 145px;
}
.metric-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.metric-value {
  display: block;
  margin-top: 22px;
  font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.045em;
}
.metric-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted2);
  font-size: 0.72rem;
}
.delta.up {
  color: var(--aqua);
}
.delta.down {
  color: var(--coral);
}
.hero-card {
  position: relative;
  display: grid;
  min-height: 285px;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  overflow: hidden;
  padding: 34px;
}
.hero-card::after {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(83, 224, 209, 0.16);
  border-radius: 50%;
  right: -80px;
  content: "";
  box-shadow:
    0 0 80px rgba(83, 224, 209, 0.09),
    inset 0 0 50px rgba(83, 224, 209, 0.06);
}
.hero-card h2 {
  max-width: 650px;
  margin: 11px 0 13px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.hero-card h2 em {
  color: var(--aqua);
  font-style: normal;
}
.hero-card p {
  max-width: 560px;
  color: #b7c7cb;
  line-height: 1.55;
}
.hero-score {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
}
.ring {
  display: grid;
  width: 170px;
  height: 170px;
  place-items: center;
  border: 12px solid rgba(83, 224, 209, 0.17);
  border-top-color: var(--aqua);
  border-right-color: var(--aqua);
  border-radius: 50%;
  transform: rotate(32deg);
}
.ring > span {
  display: grid;
  place-items: center;
  transform: rotate(-32deg);
}
.ring strong {
  font-size: 2.7rem;
}
.ring small {
  color: var(--muted);
  font-weight: 800;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 34px 0 14px;
}
.section-title h3 {
  margin: 0;
  font-size: 1.08rem;
}
.section-title a,
.link-button {
  border: 0;
  background: none;
  color: var(--aqua);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}
.activity-list {
  display: grid;
  gap: 10px;
}
.activity-row {
  display: grid;
  grid-template-columns:
    auto minmax(170px, 1.4fr) repeat(4, minmax(74px, 0.55fr))
    auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  padding: 14px 16px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.activity-row:hover {
  border-color: rgba(83, 224, 209, 0.3);
  transform: translateY(-1px);
}
.activity-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--aqua);
}
.activity-main {
  min-width: 0;
}
.activity-main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-main small {
  color: var(--muted2);
}
.activity-stat {
  display: grid;
  gap: 3px;
}
.activity-stat b {
  font-variant-numeric: tabular-nums;
}
.activity-stat small {
  color: var(--muted2);
  font-size: 0.65rem;
  text-transform: uppercase;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
}
.badge.aqua {
  border-color: rgba(83, 224, 209, 0.3);
  background: rgba(83, 224, 209, 0.08);
  color: var(--aqua);
}
.badge.amber {
  border-color: rgba(246, 200, 95, 0.3);
  color: var(--amber);
}
.badge.violet {
  border-color: rgba(181, 164, 255, 0.3);
  color: var(--violet);
}
.chart-card {
  min-height: 280px;
}
.chart {
  width: 100%;
  height: 190px;
  margin-top: 18px;
  overflow: visible;
}
.chart .grid-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}
.chart .line {
  fill: none;
  stroke: var(--aqua);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart .area {
  fill: url(#aquaGradient);
}
.chart circle {
  fill: var(--bg);
  stroke: var(--aqua);
  stroke-width: 3;
}
.chart text {
  fill: var(--muted2);
  font-size: 10px;
}
.empty {
  display: grid;
  min-height: 240px;
  place-items: center;
  text-align: center;
}
.empty-mark {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(83, 224, 209, 0.28);
  border-radius: 50%;
  color: var(--aqua);
  font-size: 1.6rem;
}
.empty h3 {
  margin: 16px 0 5px;
}
.empty p {
  max-width: 430px;
  margin: 0 0 20px;
  color: var(--muted);
}
.dropzone {
  display: grid;
  min-height: 210px;
  place-items: center;
  border: 1px dashed rgba(83, 224, 209, 0.38);
  border-radius: var(--radius);
  background: rgba(83, 224, 209, 0.035);
  padding: 26px;
  text-align: center;
  cursor: pointer;
}
.dropzone.drag {
  background: rgba(83, 224, 209, 0.12);
}
.dropzone input {
  display: none;
}
.dropzone strong {
  display: block;
  margin: 12px 0 5px;
  font-size: 1.15rem;
}
.dropzone small {
  color: var(--muted);
}
.upload-icon {
  font-size: 2rem;
  color: var(--aqua);
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 750;
}
.chip.active {
  border-color: var(--aqua);
  background: rgba(83, 224, 209, 0.09);
  color: var(--aqua);
}
.compare-bar {
  position: sticky;
  bottom: 18px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(720px, calc(100% - 24px));
  margin: 18px auto 0;
  border: 1px solid rgba(83, 224, 209, 0.35);
  border-radius: 16px;
  background: rgba(6, 20, 26, 0.94);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  backdrop-filter: blur(12px);
}
.plan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px;
}
.segmented button {
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  padding: 10px;
  cursor: pointer;
  font-weight: 800;
}
.segmented button.active {
  background: var(--aqua);
  color: #06141a;
}
.timeline {
  display: flex;
  gap: 5px;
  margin: 22px 0;
}
.timeline span {
  display: grid;
  min-height: 68px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-align: center;
}
.timeline span.a {
  background: rgba(83, 224, 209, 0.17);
  color: var(--aqua);
}
.timeline span.b {
  background: rgba(181, 164, 255, 0.16);
  color: var(--violet);
}
.plan-code {
  display: grid;
  place-items: center;
  min-height: 260px;
  text-align: center;
}
.plan-code strong {
  font-size: clamp(2.8rem, 8vw, 5rem);
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.plan-code p {
  color: var(--muted);
}
.cue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.cue-card {
  position: relative;
  display: flex;
  min-height: 380px;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(
    160deg,
    rgba(16, 45, 53, 0.9),
    rgba(8, 25, 31, 0.9)
  );
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}
.cue-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid rgba(83, 224, 209, 0.18);
  background: #06141a;
}
.cue-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px;
}
.cue-card::after {
  position: absolute;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(83, 224, 209, 0.12);
  border-radius: 50%;
  right: -50px;
  top: -45px;
  content: "";
}
.cue-card .cue-index {
  color: var(--aqua);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.cue-card h3 {
  margin: 15px 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}
.cue-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.cue-tags span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px 8px;
  color: #9eb0b4;
  font-size: 0.66rem;
}
.cue-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.cue-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  color: var(--aqua);
  font-size: 0.75rem;
  font-weight: 850;
}
.progress-summary {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}
.insight {
  display: flex;
  gap: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 17px 0;
}
.insight:last-child {
  border: 0;
}
.insight-icon {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(83, 224, 209, 0.1);
  color: var(--aqua);
}
.insight strong {
  display: block;
  margin-bottom: 4px;
}
.insight p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}
.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 10px;
  text-align: right;
}
.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
}
.comparison-table th {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}
.comparison-table td.best {
  color: var(--aqua);
  font-weight: 900;
}
.watch-preview {
  position: relative;
  display: grid;
  width: 210px;
  height: 210px;
  place-items: center;
  margin: 0 auto;
  border: 13px solid #1b252a;
  border-radius: 50%;
  background: #010708;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 35px rgba(83, 224, 209, 0.08);
  text-align: center;
}
.watch-preview::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(83, 224, 209, 0.4);
  border-radius: 50%;
  content: "";
}
.watch-preview strong {
  display: block;
  font-size: 1.15rem;
}
.watch-preview small {
  color: var(--aqua);
}
.settings-list {
  display: grid;
  gap: 12px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 15px 0;
}
.setting-row:last-child {
  border: 0;
}
.setting-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}
dialog {
  width: min(760px, calc(100% - 28px));
  max-height: 88vh;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #091b22;
  color: var(--white);
  box-shadow: var(--shadow);
  padding: 0;
  overflow: auto;
}
dialog::backdrop {
  background: rgba(1, 7, 9, 0.74);
  backdrop-filter: blur(5px);
}
.modal-close {
  position: sticky;
  z-index: 2;
  top: 14px;
  float: right;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin: 14px 14px 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  font-size: 1.3rem;
}
.modal-body {
  padding: 28px 30px 34px;
}
.modal-body h2 {
  margin: 7px 0 10px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}
.cue-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  background: #06141a;
}
.cue-hero img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: cover;
}
.cue-source {
  position: absolute;
  right: 16px;
  bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(3, 17, 23, 0.82);
  padding: 7px 11px;
  color: #bed0d4;
  font-size: 0.68rem;
  backdrop-filter: blur(8px);
}
.cue-lead {
  max-width: 680px;
  color: #d7e4e6;
  font-size: 1.08rem;
  line-height: 1.55;
}
.cue-intent {
  margin: 22px 0;
}
.cue-intent > div {
  border-left: 2px solid var(--aqua);
  padding: 4px 0 4px 15px;
}
.cue-intent p:last-child {
  margin-bottom: 0;
}
.video-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  border: 1px solid rgba(83, 224, 209, 0.2);
  border-radius: 16px;
  background: rgba(83, 224, 209, 0.05);
  padding: 14px;
}
.video-strip .play-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  font-size: 0.9rem;
}
.video-strip small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
.video-placeholder {
  position: relative;
  display: grid;
  aspect-ratio: 16/9;
  place-items: center;
  margin: 24px 0;
  border: 1px solid rgba(83, 224, 209, 0.25);
  border-radius: 18px;
  background:
    radial-gradient(circle, rgba(83, 224, 209, 0.14), transparent 55%), #06141a;
  text-align: center;
}
.play-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: var(--aqua);
  color: #06141a;
  font-size: 1.4rem;
}
.steps {
  display: grid;
  gap: 10px;
  counter-reset: steps;
}
.steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
  list-style: none;
  color: #c5d0d3;
  line-height: 1.5;
}
.steps li::before {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: rgba(83, 224, 209, 0.1);
  color: var(--aqua);
  content: counter(steps);
  counter-increment: steps;
  font-size: 0.72rem;
  font-weight: 900;
}
.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  max-width: 400px;
  border: 1px solid rgba(83, 224, 209, 0.35);
  border-radius: 14px;
  background: #0c2931;
  box-shadow: var(--shadow);
  padding: 13px 17px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.2s ease;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.linked-analysis {
  margin-top: 16px;
  padding: 24px;
}
.linked-head,
.linked-label,
.linked-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.linked-head h3 {
  margin: 6px 0 0;
}
.linked-readout {
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.75rem;
}
.linked-readout strong {
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.linked-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.45fr);
  gap: 18px;
  margin-top: 20px;
}
.linked-stack {
  display: grid;
  gap: 8px;
}
.linked-chart {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(2, 12, 16, 0.28);
  padding: 12px 14px 6px;
}
.linked-label span {
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.linked-label span::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--series, var(--aqua));
  content: "";
}
.linked-label strong {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.linked-chart svg {
  width: 100%;
  height: 86px;
  touch-action: none;
  cursor: crosshair;
  overflow: visible;
}
.linked-grid {
  stroke: rgba(255, 255, 255, 0.07);
}
.shared-cursor {
  stroke: rgba(244, 247, 242, 0.65);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.chart-hit {
  fill: transparent;
  pointer-events: all;
}
.linked-map {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: #071920;
  padding: 12px;
}
.linked-map svg {
  width: 100%;
  aspect-ratio: 1;
  margin: auto;
  border-radius: 10px;
}
.linked-map small {
  margin-top: 8px;
  color: var(--muted2);
  text-align: center;
}
.empty-map {
  min-height: 240px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  content: "";
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}
@media (max-width: 1050px) {
  .linked-layout {
    grid-template-columns: 1fr;
  }
  .linked-map svg {
    max-height: 300px;
  }
  .grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
  .cue-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .activity-row {
    grid-template-columns:
      auto minmax(160px, 1fr) repeat(2, minmax(74px, 0.5fr))
      auto;
  }
  .activity-stat:nth-of-type(3),
  .activity-stat:nth-of-type(4) {
    display: none;
  }
  .hero-card {
    grid-template-columns: 1fr auto;
  }
  .plan-layout,
  .progress-summary {
    grid-template-columns: 1fr;
  }
  .login-view {
    grid-template-columns: 1fr 420px;
  }
  .login-story {
    padding-left: 5vw;
  }
  .login-story h1 {
    font-size: clamp(3.4rem, 6vw, 5.5rem);
  }
}
@media (max-width: 760px) {
  .linked-analysis {
    padding: 16px;
  }
  .linked-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .linked-readout {
    width: 100%;
  }
  .login-view {
    display: block;
  }
  .login-story {
    min-height: 48vh;
    padding: 28px 22px 42px;
  }
  .login-story h1 {
    margin-top: 54px;
    font-size: clamp(3rem, 15vw, 4.7rem);
  }
  .login-proof {
    display: none;
  }
  .auth-panel {
    min-height: 52vh;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 34px 22px;
  }
  .app-view {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .app-column {
    padding-bottom: 76px;
  }
  .topbar {
    min-height: 84px;
    padding: 19px 18px;
  }
  .topbar h1 {
    font-size: 1.55rem;
  }
  .sync-state {
    display: none;
  }
  .bottom-nav {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(5, 18, 23, 0.94);
    padding: 7px max(5px, env(safe-area-inset-right))
      calc(7px + env(safe-area-inset-bottom))
      max(5px, env(safe-area-inset-left));
    backdrop-filter: blur(18px);
  }
  .bottom-nav button {
    display: grid;
    place-items: center;
    gap: 3px;
    color: var(--muted2);
    padding: 4px;
  }
  .bottom-nav button span {
    font-size: 1.1rem;
  }
  .bottom-nav button small {
    font-size: 0.61rem;
    font-weight: 800;
  }
  .bottom-nav button.active {
    color: var(--aqua);
  }
  #page {
    padding: 24px 15px 80px;
  }
  .page-head {
    align-items: start;
    flex-direction: column;
  }
  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr 1fr;
  }
  .hero-card {
    min-height: 360px;
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .hero-score {
    display: none;
  }
  .activity-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 13px;
  }
  .activity-stat {
    display: none !important;
  }
  .cue-grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 18px;
  }
  .metric-card {
    min-height: 126px;
  }
  .metric-value {
    margin-top: 16px;
  }
  .compare-bar {
    bottom: 82px;
  }
  .top-actions .icon-button {
    display: none;
  }
}
@media (max-width: 430px) {
  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr 1fr;
  }
  .metric-value {
    font-size: 1.75rem;
  }
  .metric-foot {
    display: block;
  }
  .auth-card h2 {
    font-size: 1.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
