:root {
  color-scheme: light;
  --ink: #102533;
  --muted: #637987;
  --quiet: #8ca0aa;
  --line: rgba(28, 79, 99, 0.12);
  --ice: #bcecf0;
  --ice-deep: #70cfd9;
  --aqua: #20a7b8;
  --blue: #147fa0;
  --navy: #0c3347;
  --white: #ffffff;
  --warm: #f6bc6e;
  --danger: #b85454;
  --shadow: 0 28px 80px rgba(25, 73, 93, 0.13), 0 3px 12px rgba(28, 79, 99, 0.06);
  --shadow-soft: 0 14px 44px rgba(25, 73, 93, 0.09);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #edf7f8;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #edf7f8;
}

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

button {
  border: 0;
  cursor: pointer;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(20, 127, 160, 0.24);
  outline-offset: 3px;
}

::selection {
  color: #062633;
  background: rgba(112, 207, 217, 0.48);
}

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

.icon {
  display: block;
  flex: 0 0 auto;
}

.icon--forward {
  transform: rotate(180deg);
}

.page-enter {
  animation: page-in 680ms var(--ease) backwards;
}

@keyframes page-in {
  from { opacity: 0; transform: scale(0.992); }
  to { opacity: 1; transform: none; }
}

.workspace.page-enter {
  animation: workspace-in 420ms var(--ease) backwards;
}

@keyframes workspace-in {
  from { opacity: 0; }
}

.glass-panel,
.glass-control {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(250, 254, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--shadow-soft);
  -webkit-backdrop-filter: blur(26px) saturate(135%);
  backdrop-filter: blur(26px) saturate(135%);
}

.brand {
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.brand__wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.22em;
  color: #0a2e40;
  filter: drop-shadow(0 8px 16px rgba(19, 113, 132, 0.1));
  font-size: 1.08rem;
  font-weight: 760;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
}

.brand__wordmark strong {
  font: inherit;
}

.brand__wordmark span {
  color: #118296;
  font-weight: 590;
}

.brand--compact .brand__wordmark {
  font-size: 1rem;
}

/* Entry */

.auth-page {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: #f5f7f6;
}

.auth-header {
  position: relative;
  z-index: 3;
  display: flex;
  width: min(1180px, calc(100% - 64px));
  height: 92px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1080px, calc(100% - 64px));
  min-height: calc(100svh - 160px);
  margin: -4px auto 0;
  padding-bottom: 76px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: clamp(70px, 10vw, 140px);
  align-items: center;
}

.auth-intro {
  max-width: 530px;
  padding-bottom: 34px;
}

.auth-intro h1 {
  max-width: 560px;
  margin: 0 0 20px;
  color: #0b2c3b;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 650;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.auth-intro h1 span {
  display: block;
  white-space: nowrap;
}

.auth-intro p {
  margin: 0;
  color: #5e7884;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 430;
  letter-spacing: -0.015em;
}

.auth-card {
  width: 100%;
  padding: 26px;
  border-radius: 34px;
}

.form-heading {
  display: flex;
  margin-bottom: 20px;
  align-items: center;
  gap: 12px;
}

.step-orb {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: var(--blue);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(184, 237, 241, 0.76), rgba(255, 255, 255, 0.78));
  box-shadow: inset 0 0 0 1px rgba(34, 145, 165, 0.08);
}

.form-heading div {
  display: grid;
  gap: 2px;
}

.form-heading strong {
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

.form-heading span:not(.step-orb) {
  color: var(--muted);
  font-size: 0.72rem;
}

.field {
  position: relative;
  display: block;
  margin: 9px 0;
}

.floating-input {
  position: relative;
  display: block;
  min-width: 0;
}

.floating-input__prompt {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 16px;
  display: flex;
  max-width: calc(100% - 32px);
  align-items: center;
  gap: 5px;
  overflow: hidden;
  color: #8a9ea7;
  font-size: 0.9rem;
  font-weight: 470;
  letter-spacing: -0.01em;
  line-height: 1.2;
  pointer-events: none;
  text-overflow: ellipsis;
  transform: translateY(-50%);
  transform-origin: left center;
  transition:
    top 360ms var(--ease),
    color 260ms ease,
    font-size 360ms var(--ease),
    font-weight 260ms ease,
    letter-spacing 360ms var(--ease),
    transform 360ms var(--ease);
  white-space: nowrap;
}

.floating-input__prompt--with-help {
  overflow: visible;
  pointer-events: auto;
}

.floating-input__control {
  transition: padding 360ms var(--ease);
}

.floating-input__control:not(:placeholder-shown) + .floating-input__prompt {
  top: 9px;
  color: #6a818c;
  font-size: 0.62rem;
  font-weight: 660;
  letter-spacing: 0.03em;
  transform: none;
}

.field .floating-input__control {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  color: #153747;
  border: 1px solid rgba(33, 83, 100, 0.1);
  border-radius: 17px;
  outline: none;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  transition:
    padding 360ms var(--ease),
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.field .floating-input__control:not(:placeholder-shown) {
  padding: 22px 16px 6px;
}

.field .floating-input__control:focus {
  border-color: rgba(26, 145, 167, 0.34);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 4px rgba(79, 187, 202, 0.09);
}

.field--ice .floating-input__control {
  border-color: rgba(31, 75, 91, 0.16);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(252, 254, 254, 0.94), rgba(235, 241, 242, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(28, 79, 99, 0.055),
    0 5px 14px rgba(25, 73, 93, 0.035);
  caret-color: #0e6174;
}

.field--ice .floating-input__prompt {
  color: #627983;
}

.field--ice .floating-input__control:not(:placeholder-shown) + .floating-input__prompt {
  color: #526b75;
}

.field--ice .floating-input__control:hover:not(:focus) {
  border-color: rgba(31, 75, 91, 0.23);
  background: linear-gradient(145deg, #fff, rgba(239, 245, 245, 0.96));
}

.field--ice .floating-input__control:focus {
  border-color: rgba(18, 94, 117, 0.36);
  background: rgba(250, 252, 252, 0.98);
  box-shadow: 0 0 0 4px rgba(65, 125, 143, 0.08), inset 0 1px 0 #fff;
}

.level-picker {
  position: relative;
  z-index: 12;
}

.level-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 58px;
  padding: 0 48px 0 16px;
  color: #153747;
  border: 1px solid rgba(33, 83, 100, 0.1);
  border-radius: 17px;
  outline: none;
  background: rgba(255, 255, 255, 0.55);
  text-align: left;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    border-radius 360ms var(--ease),
    box-shadow 220ms ease,
    transform 220ms var(--ease);
}

.level-trigger:hover,
.level-trigger:focus-visible,
.level-picker.is-open .level-trigger {
  border-color: rgba(26, 145, 167, 0.32);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 4px rgba(79, 187, 202, 0.08);
}

.level-picker.has-error .level-trigger {
  border-color: rgba(178, 83, 83, 0.42);
}

.level-trigger__prompt,
.level-trigger__value {
  position: absolute;
  left: 16px;
  max-width: calc(100% - 64px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-trigger__prompt {
  top: 50%;
  color: #657f8a;
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateY(-50%);
  transition:
    top 360ms var(--ease),
    color 260ms ease,
    font-size 360ms var(--ease),
    font-weight 260ms ease,
    letter-spacing 360ms var(--ease),
    transform 360ms var(--ease);
}

.level-trigger__value {
  bottom: 7px;
  font-size: 0.9rem;
  font-weight: 520;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 240ms ease, transform 360ms var(--ease);
}

.level-trigger.has-value .level-trigger__prompt {
  top: 9px;
  color: #6a818c;
  font-size: 0.62rem;
  font-weight: 660;
  letter-spacing: 0.03em;
  transform: none;
}

.level-trigger.has-value .level-trigger__value {
  opacity: 1;
  transform: none;
}

.level-trigger > svg {
  position: absolute;
  top: 20px;
  right: 17px;
  color: #69828c;
  pointer-events: none;
  transition: transform 360ms var(--ease);
}

.level-picker.is-open .level-trigger > svg {
  transform: rotate(180deg);
}

.level-menu {
  position: absolute;
  z-index: 40;
  right: 0;
  bottom: calc(100% + 9px);
  left: 0;
  display: grid;
  max-height: min(280px, 40svh);
  padding: 6px;
  overflow: auto;
  gap: 2px;
  border: 1px solid rgba(31, 119, 138, 0.13);
  border-radius: 19px 23px 18px 21px;
  background: rgba(248, 253, 253, 0.97);
  box-shadow: 0 24px 58px rgba(23, 76, 94, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  opacity: 0;
  overscroll-behavior: contain;
  pointer-events: none;
  scrollbar-width: thin;
  transform: translateY(10px) scale(0.975);
  transform-origin: 50% 100%;
  transition:
    visibility 0s linear 300ms,
    opacity 220ms ease,
    transform 420ms cubic-bezier(0.18, 1.2, 0.34, 1);
  visibility: hidden;
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  backdrop-filter: blur(22px) saturate(125%);
}

.level-picker.is-open .level-menu {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
  visibility: visible;
}

.level-option {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 44px;
  padding: 0 38px 0 14px;
  align-items: center;
  color: #345967;
  border-radius: 12px 15px 12px 14px;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 560;
  text-align: left;
  transition: color 160ms ease, background 160ms ease, transform 220ms var(--ease);
}

.level-option:hover,
.level-option:focus-visible,
.level-option[aria-selected="true"] {
  color: #155e73;
  background: rgba(210, 239, 242, 0.78);
}

.level-option:focus-visible {
  outline: 2px solid rgba(34, 144, 163, 0.22);
  outline-offset: -2px;
}

.level-option[aria-selected="true"]::after {
  position: absolute;
  right: 15px;
  color: #16859a;
  content: "✓";
  font-size: 0.78rem;
  font-weight: 760;
}

.level-option:active {
  transform: scale(0.985);
}

.tooltip-trigger {
  position: relative;
  display: inline-grid;
  color: #78919a;
  cursor: help;
  place-items: center;
  pointer-events: auto;
}

.tooltip {
  position: absolute;
  z-index: 30;
  right: -8px;
  bottom: calc(100% + 10px);
  width: min(252px, calc(100vw - 56px));
  padding: 11px 12px;
  color: #edf9fb;
  border-radius: 12px;
  background: rgba(10, 47, 64, 0.94);
  box-shadow: 0 12px 32px rgba(8, 37, 50, 0.2);
  font-size: 0.7rem;
  font-weight: 470;
  letter-spacing: 0;
  line-height: 1.5;
  opacity: 0;
  overflow-wrap: anywhere;
  pointer-events: none;
  text-align: left;
  transform: translateY(5px) scale(0.985);
  transform-origin: right bottom;
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: normal;
}

.tooltip-trigger:hover .tooltip,
.tooltip-trigger:focus .tooltip {
  opacity: 1;
  transform: none;
}

.primary-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  margin-top: 15px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: white;
  border-radius: 17px;
  background: linear-gradient(135deg, #123e51, #0a2b3b);
  box-shadow: 0 12px 30px rgba(10, 47, 64, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  font-weight: 650;
  transition: transform 180ms var(--ease), box-shadow 180ms ease, filter 180ms ease;
}

.primary-button:hover {
  box-shadow: 0 16px 34px rgba(10, 47, 64, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.primary-button:active {
  transform: translateY(1px) scale(0.992);
}

.primary-button--ice {
  background: linear-gradient(135deg, #168aa1, #0d637c);
}

/* Watering workspace */

.workspace {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden auto;
  overscroll-behavior-y: none;
  background: linear-gradient(180deg, #f5fbfb 0%, #eaf5f6 68%, #dfeff0 100%);
}

.workspace-header {
  position: relative;
  z-index: 20;
  display: grid;
  width: min(1280px, calc(100% - 56px));
  height: 76px;
  margin: 0 auto;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.watering {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: 12px 0 185px;
}

.drop-source {
  position: relative;
  z-index: 9;
  display: grid;
  width: min(610px, calc(100vw - 48px));
  min-height: 62px;
  margin: 2px auto 42px;
  padding: 10px 18px 8px;
  border-radius: 23px;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  align-items: center;
  transition: width 360ms var(--ease), min-height 360ms var(--ease), border-radius 360ms var(--ease);
}

.drop-source label {
  grid-column: 1;
}

.drop-source .floating-input {
  width: 100%;
  min-height: 36px;
}

.drop-source input {
  width: 100%;
  height: 36px;
  padding: 0 90px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 520;
  transition: padding 360ms var(--ease);
}

.drop-source .floating-input__prompt {
  left: 0;
  max-width: calc(100% - 90px);
  color: #7e969f;
  font-size: 0.92rem;
}

.drop-source input:not(:placeholder-shown) {
  padding: 13px 90px 0 0;
}

.drop-source input:not(:placeholder-shown) + .floating-input__prompt {
  top: 0;
  color: #718b95;
  font-size: 0.54rem;
  letter-spacing: 0.05em;
  transform: none;
}

.drop-source--expanded {
  min-height: 82px;
  padding: 12px 12px 12px 50px;
  grid-template-columns: minmax(150px, 0.8fr) minmax(190px, 1.25fr) 38px;
  grid-template-rows: 1fr;
  gap: 10px;
}

.composer-back {
  position: absolute;
  left: 13px;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: #64818c;
  border-radius: 50%;
  background: rgba(229, 244, 246, 0.8);
}

.composer-summary {
  display: grid;
  min-width: 0;
  padding: 3px 12px 3px 2px;
  gap: 3px;
  border-right: 1px solid rgba(30, 88, 104, 0.1);
}

.composer-summary span {
  color: #75909a;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.composer-summary strong {
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-proof {
  position: relative;
  grid-column: auto !important;
}

.drop-source--expanded .composer-proof input {
  height: 68px;
  padding: 0 4px;
  font-size: 0.76rem;
}

.drop-source--expanded .composer-proof .floating-input__prompt {
  left: 4px;
  display: block;
  max-width: calc(100% - 8px);
  overflow: visible;
  font-size: 0.76rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-overflow: clip;
  text-wrap: pretty;
  white-space: normal;
}

.drop-source--expanded .composer-proof input:not(:placeholder-shown) {
  padding: 36px 4px 6px;
}

.drop-source--expanded .composer-proof input:not(:placeholder-shown) + .floating-input__prompt {
  top: 4px;
  font-size: 0.5rem;
  line-height: 1.3;
}

.drop-source--expanded .form-error {
  position: absolute;
  top: calc(100% + 7px);
  left: 50px;
  margin: 0;
}

.drop-recommendations {
  position: absolute;
  z-index: 12;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: grid;
  max-height: min(244px, calc(100dvh - 150px));
  padding: 6px;
  overflow: auto;
  overscroll-behavior: contain;
  gap: 3px;
  border: 1px solid rgba(34, 81, 94, 0.1);
  border-radius: 18px;
  background: rgba(250, 253, 253, 0.94);
  box-shadow: 0 18px 48px rgba(27, 72, 86, 0.12);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  backdrop-filter: blur(24px) saturate(125%);
  transform-origin: 50% 0;
}

.drop-recommendations[hidden] {
  display: none;
}

.drop-recommendations.is-open {
  animation: drop-recommendations-in 160ms ease-out both;
}

@keyframes drop-recommendations-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.99);
  }
}

.drop-recommendation {
  display: grid;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  color: #274f5d;
  border-radius: 13px;
  background: transparent;
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: left;
}

.drop-recommendation > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-wrap: pretty;
}

.drop-recommendation small {
  color: #78919a;
  font-size: 0.62rem;
  font-weight: 620;
  white-space: nowrap;
}

.drop-recommendation[aria-selected="true"],
.drop-recommendation:focus-visible {
  outline: 0;
  background: rgba(210, 239, 242, 0.72);
  box-shadow: inset 0 0 0 1px rgba(43, 123, 141, 0.16);
}

@media (hover: hover) and (pointer: fine) {
  .drop-recommendation:hover {
    background: rgba(220, 241, 242, 0.68);
  }
}

.composer-send {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  border-radius: 14px;
  background: linear-gradient(145deg, #4ec4d2, #1785a2);
  box-shadow: 0 8px 18px rgba(22, 133, 162, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.stage {
  position: relative;
  width: min(690px, calc(100vw - 48px));
  margin: 0 auto;
}

.ice-card {
  position: relative;
  min-height: 510px;
  padding: 39px 46px 54px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 78px 88px 82px 72px;
  background:
    linear-gradient(149deg, rgba(255, 255, 255, 0.83) 0%, rgba(227, 247, 248, 0.86) 48%, rgba(195, 233, 237, 0.83) 100%);
  box-shadow:
    0 42px 88px rgba(27, 89, 107, 0.13),
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 22px 16px 56px rgba(255, 255, 255, 0.4),
    inset -18px -18px 52px rgba(57, 167, 184, 0.09);
  transition: border-radius 600ms var(--ease), filter 300ms ease;
}

.ice-card:hover {
  border-radius: 83px 76px 88px 72px;
}

.ice-card--solved {
  background: linear-gradient(149deg, rgba(255, 253, 242, 0.88), rgba(223, 248, 244, 0.86));
}

.ice-card__shine {
  position: absolute;
  top: 12px;
  left: 15%;
  width: 52%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
  transform: rotate(-7deg);
}

.ice-title-row {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 64px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.ice-title-row h1 {
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #0c3547;
  font-size: clamp(1.45rem, 3.2vw, 2.25rem);
  font-weight: 640;
  letter-spacing: -0.05em;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subice-zone,
.genius-zone {
  position: relative;
  z-index: 2;
}

.subice-zone {
  min-height: 155px;
  padding-top: 29px;
}

.zone-label {
  display: block;
  margin-bottom: 12px;
  color: #75909a;
  font-size: 0.58rem;
  font-weight: 680;
  letter-spacing: 0.04em;
}

.subice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subice-chip {
  display: flex;
  max-width: 100%;
  min-height: 39px;
  padding: 7px 13px 7px 15px;
  align-items: center;
  gap: 9px;
  color: #284f5e;
  border: 1px solid rgba(35, 113, 132, 0.1);
  border-radius: 14px 17px 15px 16px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 5px 14px rgba(32, 104, 123, 0.04);
  font-size: 0.73rem;
  font-weight: 550;
  text-align: left;
  transition: background 170ms ease, transform 170ms var(--ease), box-shadow 170ms ease;
}

.subice-chip:hover {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(32, 104, 123, 0.07);
  transform: translateY(-2px);
}

.subice-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.add-subice {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #4c8493;
  border: 1px dashed rgba(27, 122, 144, 0.26);
  border-radius: 15px;
  background: rgba(218, 243, 245, 0.4);
  transition: background 160ms ease, transform 160ms var(--ease);
}

.add-subice:hover {
  background: rgba(255, 255, 255, 0.78);
  transform: rotate(8deg) scale(1.04);
}

.subice-editor {
  position: absolute;
  z-index: 12;
  top: 63px;
  left: 0;
  width: min(430px, 100%);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 19px;
  background: rgba(248, 253, 253, 0.95);
  box-shadow: 0 22px 55px rgba(23, 76, 94, 0.18);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  animation: editor-in 230ms var(--ease) both;
}

@keyframes editor-in {
  from { opacity: 0; transform: translateY(-5px) scale(0.98); }
}

.subice-editor input {
  width: calc(100% - 35px);
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(27, 104, 121, 0.11);
  border-radius: 12px;
  outline: 0;
  background: rgba(230, 247, 248, 0.64);
  font-size: 0.76rem;
  transition: padding 360ms var(--ease), border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.subice-input {
  width: 100%;
}

.subice-input .floating-input__prompt {
  left: 12px;
  max-width: calc(100% - 70px);
  font-size: 0.76rem;
}

.subice-input input:not(:placeholder-shown) {
  padding: 14px 12px 0;
}

.subice-input input:not(:placeholder-shown) + .floating-input__prompt {
  top: 5px;
  font-size: 0.5rem;
  transform: none;
}

.editor-close {
  position: absolute;
  top: 17px;
  right: 12px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #6f8992;
  border-radius: 50%;
  background: transparent;
}

.suggestions {
  display: grid;
  margin-top: 7px;
  gap: 3px;
}

.suggestion {
  display: flex;
  width: 100%;
  padding: 9px 10px;
  align-items: center;
  justify-content: space-between;
  color: #335866;
  border-radius: 10px;
  background: transparent;
  font-size: 0.7rem;
  text-align: left;
}

.suggestion:hover {
  background: rgba(216, 241, 243, 0.66);
}

.suggestion small {
  color: #8aa0a8;
  font-size: 0.55rem;
}

.suggestion-empty {
  padding: 8px 10px 2px;
  color: #80959d;
  font-size: 0.64rem;
}

.ice-divider {
  position: relative;
  z-index: 1;
  display: grid;
  margin: 10px -7px 21px;
  grid-template-columns: 1fr 27px 1fr;
  align-items: center;
}

.ice-divider span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29, 105, 123, 0.18));
}

.ice-divider span:last-child {
  background: linear-gradient(90deg, rgba(29, 105, 123, 0.18), transparent);
}

.ice-divider i {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #4ca7b6;
  font-style: normal;
}

.genius-zone {
  isolation: isolate;
  min-height: 128px;
}

.genius-watermark {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  border-radius: 24px;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.genius-watermark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.genius-watermark__identity,
.genius-watermark__seen {
  font-family: var(--font);
}

.genius-watermark__identity {
  fill: rgba(38, 78, 91, 0.068);
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0.75px;
}

.genius-watermark__seen {
  fill: rgba(38, 78, 91, 0.052);
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 540;
  letter-spacing: 0.55px;
}

.genius-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
}

.genius-drop {
  display: flex;
  width: 100%;
  min-height: 40px;
  padding: 8px 13px;
  align-items: center;
  gap: 10px;
  color: #284b58;
  border: 1px solid rgba(243, 180, 92, 0.16);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 249, 229, 0.69), rgba(255, 255, 255, 0.48));
  font-size: 0.71rem;
  text-align: left;
  transition: transform 160ms var(--ease), background 160ms ease;
}

.genius-drop:hover {
  background: rgba(255, 252, 239, 0.9);
  transform: translateX(3px);
}

.hanging-drops {
  position: absolute;
  z-index: 6;
  top: calc(100% - 4px);
  left: 50%;
  display: flex;
  max-width: 88%;
  justify-content: center;
  gap: 26px;
  transform: translateX(-50%);
}

.hanging-drop-wrap {
  position: relative;
  display: grid;
  width: 128px;
  justify-items: center;
}

.water-drop {
  position: relative;
  z-index: 2;
  display: grid;
  width: 86px;
  min-height: 86px;
  padding: 7px;
  place-items: center;
  color: #0c647e;
  background: transparent;
  touch-action: none;
  transform: translateY(var(--drag-y, 0));
  transition: transform 320ms var(--ease), filter 180ms ease;
}

.water-drop__text {
  position: absolute;
  top: 91px;
  left: 50%;
  width: 150px;
  color: #476b78;
  font-size: 0.58rem;
  font-weight: 570;
  line-height: 1.35;
  text-align: center;
  transform: translateX(-50%);
}

.water-drop--reviewable::before,
.water-drop--reviewable::after {
  position: absolute;
  z-index: -1;
  left: 50%;
  width: 72px;
  padding: 5px 6px;
  border-radius: 999px;
  font-size: 0.49rem;
  font-weight: 680;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 120ms ease;
}

.water-drop--reviewable::before {
  bottom: calc(100% + 11px);
  color: #236277;
  background: rgba(220, 243, 245, 0.96);
  content: "形成子冰";
}

.water-drop--reviewable::after {
  top: calc(100% + 9px);
  color: #8b632c;
  background: rgba(255, 244, 218, 0.96);
  content: "验证通过";
}

.water-drop[data-direction="up"]::before,
.water-drop[data-direction="down"]::after {
  opacity: 1;
}

.water-drop.is-dragging {
  filter: saturate(1.15);
  transition: none;
}

.floating-dock {
  position: fixed;
  z-index: 28;
  right: 28px;
  bottom: 26px;
  display: flex;
  min-height: 57px;
  padding: 6px;
  border-radius: 21px;
  gap: 3px;
}

.floating-dock button {
  display: grid;
  min-width: 60px;
  min-height: 45px;
  padding: 5px 10px;
  place-items: center;
  gap: 1px;
  color: #486975;
  border-radius: 15px;
  background: transparent;
  transition: color 160ms ease, background 160ms ease, transform 160ms var(--ease);
}

.floating-dock button:hover {
  color: #0a5973;
  background: rgba(255, 255, 255, 0.68);
  transform: translateY(-1px);
}

.floating-dock button span {
  font-size: 0.5rem;
  font-weight: 650;
}

/* Modals */

.modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(18, 43, 53, 0.24);
  -webkit-backdrop-filter: blur(13px) saturate(105%);
  backdrop-filter: blur(13px) saturate(105%);
  animation: backdrop-in 210ms ease both;
}

@keyframes backdrop-in {
  from { opacity: 0; }
}

.modal {
  position: relative;
  width: min(430px, 100%);
  max-height: calc(100svh - 48px);
  overflow: auto;
  padding: 31px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  background: rgba(249, 253, 253, 0.93);
  box-shadow: 0 36px 100px rgba(7, 43, 57, 0.25), inset 0 1px 0 white;
  -webkit-backdrop-filter: blur(30px) saturate(130%);
  backdrop-filter: blur(30px) saturate(130%);
  animation: modal-in 340ms var(--ease) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96); }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #627d87;
  border-radius: 50%;
  background: rgba(224, 240, 242, 0.7);
}

.modal h2 {
  max-width: 330px;
  margin: 9px 0 10px;
  color: #123747;
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.modal-copy {
  margin: 0 0 20px;
  color: #687e87;
  font-size: 0.77rem;
  line-height: 1.62;
}

.modal-form {
  display: grid;
  gap: 4px;
}

.form-error {
  margin: 4px 3px;
  color: #b25353;
  font-size: 0.67rem;
  line-height: 1.4;
}

.copy-list {
  display: grid;
  gap: 8px;
}

.copy-list > div {
  display: grid;
  min-height: 68px;
  padding: 12px 12px 12px 15px;
  border: 1px solid rgba(34, 90, 106, 0.09);
  border-radius: 17px;
  background: rgba(235, 247, 248, 0.68);
  grid-template-columns: 1fr 36px;
  align-items: center;
}

.copy-list span {
  color: #7b929b;
  font-size: 0.57rem;
  font-weight: 650;
}

.copy-list strong {
  overflow: hidden;
  color: #244b5a;
  font-size: 0.78rem;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-list button {
  display: grid;
  width: 34px;
  height: 34px;
  grid-row: 1 / 3;
  grid-column: 2;
  place-items: center;
  color: #477582;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 4px 11px rgba(31, 91, 107, 0.07);
}

.privacy-note {
  display: flex;
  margin: 15px 2px 0;
  align-items: center;
  gap: 6px;
  color: #83969d;
  font-size: 0.6rem;
}

.sentence-stem {
  margin: -5px 0 11px;
  padding: 12px 14px;
  color: #44636e;
  border-radius: 14px;
  background: rgba(222, 243, 245, 0.66);
  font-size: 0.75rem;
  line-height: 1.5;
}

.splash-mark {
  position: relative;
  display: grid;
  width: 90px;
  height: 80px;
  margin: 8px auto 15px;
  place-items: center;
  color: #32a6b8;
}

.splash-mark::after {
  position: absolute;
  right: 8px;
  bottom: 4px;
  left: 8px;
  height: 14px;
  border: 2px solid rgba(39, 157, 176, 0.24);
  border-radius: 50%;
  content: "";
}

.splash-mark i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #68c7d3;
}

.splash-mark i:nth-child(2) { top: 18px; left: 12px; }
.splash-mark i:nth-child(3) { top: 10px; right: 17px; }
.splash-mark i:nth-child(4) { right: 4px; bottom: 25px; }

.secondary-button,
.danger-button {
  display: flex;
  min-height: 45px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #315866;
  border: 1px solid rgba(37, 91, 107, 0.1);
  border-radius: 14px;
  background: rgba(232, 246, 247, 0.72);
  font-size: 0.72rem;
  font-weight: 640;
}

.danger-button {
  color: white;
  border-color: transparent;
  background: #a94e4e;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

/* Profile */

.profile-page {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden auto;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(145deg, #f5faf8, #e3f2f2 65%, #d8ecef);
}

.profile-shell {
  position: relative;
  display: grid;
  width: min(920px, calc(100% - 56px));
  margin: 24px auto 80px;
  grid-template-columns: minmax(360px, 1fr) minmax(260px, 0.72fr);
  gap: 20px;
  align-items: center;
}

.round-back {
  position: absolute;
  top: 2px;
  left: -64px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #496b77;
  border-radius: 16px;
}

.profile-card {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(252, 254, 253, 0.58);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(26px) saturate(125%);
  backdrop-filter: blur(26px) saturate(125%);
}

.profile-card {
  position: relative;
  min-height: 590px;
  padding: 52px 42px 35px;
  border-radius: 72px 62px 68px 64px;
  text-align: center;
}

.profile-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 84px auto 10px;
  place-items: center;
  color: #346677;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: #d9f0f1;
  box-shadow: 0 7px 18px rgba(28, 94, 113, 0.1);
  font-size: 0.76rem;
  font-weight: 720;
}

.profile-card h1 {
  margin: 0;
  color: #123646;
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.rank-name {
  display: grid;
  gap: 2px;
}

.rank-name strong {
  color: #267f94;
  font-size: 0.81rem;
  font-weight: 720;
  letter-spacing: 0.06em;
}

.score-card {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(35, 96, 112, 0.09);
  border-radius: 22px;
  background: rgba(235, 248, 248, 0.58);
  text-align: left;
}

.score-grid {
  display: grid;
  padding: 10px 16px;
  color: #56727c;
  border-top: 1px solid rgba(39, 98, 113, 0.07);
  grid-template-columns: 1.3fr 0.6fr 0.9fr 1fr;
  align-items: center;
  font-size: 0.62rem;
  text-align: right;
}

.score-grid strong {
  color: #2b5665;
}

.score-grid--head {
  color: #91a2a8;
  font-size: 0.52rem;
  font-weight: 660;
}

.logout-button {
  position: fixed;
  right: 28px;
  bottom: 26px;
  display: flex;
  min-height: 47px;
  padding: 0 17px;
  align-items: center;
  gap: 8px;
  color: #526f7a;
  border-radius: 16px;
  font-size: 0.66rem;
  font-weight: 620;
}

/* Toasts */

.toast-region {
  position: fixed;
  z-index: 120;
  top: 20px;
  left: 50%;
  display: grid;
  width: min(380px, calc(100% - 32px));
  gap: 8px;
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  display: flex;
  min-height: 46px;
  padding: 10px 16px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #effbfc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(13, 49, 64, 0.92);
  box-shadow: 0 14px 36px rgba(10, 45, 59, 0.2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-size: 0.7rem;
  font-weight: 570;
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
  transition: opacity 240ms ease, transform 300ms var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.toast--success {
  background: rgba(16, 82, 86, 0.92);
}

/* Responsive */

@media (max-width: 1080px) {
  .round-back {
    top: -54px;
    left: 0;
  }
}

@media (max-width: 820px) {
  .auth-page {
    overflow: auto;
  }

  .auth-header {
    width: calc(100% - 36px);
    height: 74px;
  }

  .auth-shell {
    width: min(500px, calc(100% - 36px));
    min-height: auto;
    padding: 42px 0 110px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .auth-intro {
    padding: 0 7px;
  }

  .auth-intro h1 {
    font-size: clamp(2.55rem, 9vw, 4rem);
  }

  .workspace-header {
    width: calc(100% - 32px);
    height: 68px;
    grid-template-columns: 1fr auto;
  }

  .watering {
    width: calc(100% - 28px);
    padding-top: 7px;
  }

  .drop-source {
    width: min(610px, calc(100vw - 30px));
    margin-bottom: 27px;
  }

  .stage {
    width: min(690px, calc(100vw - 28px));
  }

  .ice-card {
    min-height: 500px;
    padding: 34px 32px 51px;
    border-radius: 54px;
  }

  .ice-card:hover {
    border-radius: 54px;
  }

  .profile-shell {
    width: min(550px, calc(100% - 34px));
    margin-top: 75px;
    grid-template-columns: 1fr;
  }

  .profile-card {
    min-height: 0;
  }

}

@media (max-width: 560px) {
  .genius-watermark__identity {
    font-size: 9px;
  }

  .genius-watermark__seen {
    font-size: 7.75px;
  }

  .level-option {
    min-height: 48px;
  }

  .auth-shell {
    padding-top: 26px;
  }

  .auth-intro h1 {
    margin-top: 13px;
    font-size: clamp(2.3rem, 9.5vw, 3.3rem);
  }

  .auth-card {
    padding: 19px;
    border-radius: 26px;
  }

  .drop-source--expanded {
    min-height: 124px;
    padding: 12px 12px 12px 47px;
    grid-template-columns: 1fr 38px;
    grid-template-rows: auto auto;
  }

  .composer-summary {
    grid-column: 1 / 3;
    padding-bottom: 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(30, 88, 104, 0.1);
  }

  .composer-proof {
    grid-column: 1 !important;
  }

  .ice-card {
    min-height: 500px;
    padding: 29px 22px 47px;
    border-radius: 38px;
  }

  .ice-title-row {
    min-height: 74px;
  }

  .ice-title-row h1 {
    font-size: 1.45rem;
  }

  .subice-zone {
    min-height: 165px;
  }

  .subice-chip {
    width: calc(100% - 49px);
  }

  .floating-dock {
    right: 50%;
    bottom: 15px;
    width: min(250px, calc(100% - 28px));
    justify-content: space-around;
    transform: translateX(50%);
  }

  .floating-dock button {
    flex: 1;
  }

  .modal-backdrop {
    padding: 12px;
    align-items: end;
  }

  .modal {
    width: 100%;
    padding: 28px 23px calc(25px + env(safe-area-inset-bottom));
    border-radius: 28px;
  }

  .profile-page .workspace-header {
    grid-template-columns: 1fr auto auto;
  }

  .profile-card {
    padding: 48px 22px 28px;
    border-radius: 44px;
  }

  .score-grid {
    padding: 10px 11px;
    grid-template-columns: 1.1fr 0.55fr 0.85fr 0.95fr;
    font-size: 0.56rem;
  }

  .logout-button {
    position: static;
    width: min(240px, calc(100% - 40px));
    margin: 0 auto 30px;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #405b67;
    --quiet: #526b75;
    --line: rgba(15, 57, 73, 0.3);
  }

  .glass-panel,
  .glass-control,
  .ice-card,
  .modal,
  .profile-card {
    border-color: rgba(18, 70, 87, 0.3);
    background-color: rgba(255, 255, 255, 0.94);
  }

  .genius-watermark {
    display: none;
  }
}

@media (forced-colors: active) {
  .genius-watermark {
    display: none;
  }

  .genius-drop__ice-layer {
    color: CanvasText;
    border: 1px solid CanvasText;
    background: Canvas;
    box-shadow: none;
  }

  .drop-recommendations,
  .drop-recommendation {
    color: CanvasText;
    border-color: CanvasText;
    background: Canvas;
    box-shadow: none;
  }

  .drop-recommendation[aria-selected="true"] {
    color: HighlightText;
    background: Highlight;
  }

}

/* Annotation pass: quieter, PRD-led surfaces */

.auth-card {
  padding: 24px 26px 27px;
}

.workspace,
.profile-page {
  background: #f5f7f6;
}

.workspace-header {
  display: flex;
  width: min(1280px, calc(100% - 56px));
  height: 68px;
  justify-content: flex-start;
}

.watering {
  width: min(980px, calc(100% - 40px));
  min-height: calc(100svh - 68px);
  padding: 6px 0 264px;
}

.stage {
  --ice-corner-radius: 64px;
  isolation: isolate;
}

.drop-source:not(.drop-source--expanded) {
  display: flex;
  width: min(610px, calc(100vw - 40px));
  min-height: 54px;
  margin: 0 auto 34px;
  padding: 0 20px;
  align-items: center;
  border-radius: 21px;
}

.drop-source:not(.drop-source--expanded) label {
  width: 100%;
}

.drop-source:not(.drop-source--expanded) input {
  padding: 0 90px 0 0;
}

.drop-source:not(.drop-source--expanded) input:not(:placeholder-shown) {
  padding: 13px 90px 0 0;
}

.ice-card {
  z-index: 2;
  min-height: 510px;
  border: 1px solid rgba(34, 81, 94, 0.08);
  border-radius: var(--ice-corner-radius);
  background: rgba(239, 246, 246, 0.88);
  box-shadow:
    0 18px 52px rgba(27, 72, 86, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ice-card:hover {
  border-radius: var(--ice-corner-radius);
}

.ice-card--solved {
  background: rgba(241, 247, 245, 0.92);
}

.ice-card__shine {
  display: none;
}

.ice-title-row {
  display: block;
  min-height: 52px;
}

.ice-title-row h1 {
  font-size: clamp(2.25rem, 4vw, 3rem);
}

.ice-title-group {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.ice-title-group h1 {
  min-width: 0;
}

.ice-back {
  display: grid;
  width: 36px;
  height: 36px;
  margin-left: -7px;
  place-items: center;
  color: #64808a;
  border-radius: 50%;
  background: transparent;
}

.ice-back:hover {
  color: #1e6579;
  background: rgba(255, 255, 255, 0.62);
}

.subice-zone {
  min-height: 190px;
}

.zone-label {
  font-size: 0.76rem;
}

.subice-list {
  display: grid;
  width: min(480px, 100%);
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.subice-chip {
  width: 100%;
  max-width: none;
  min-height: 52px;
  justify-content: space-between;
  font-size: 1rem;
}

.add-subice {
  justify-self: start;
}

.subice-editor {
  position: relative;
  top: auto;
  left: auto;
  width: min(480px, 100%);
  margin-top: 10px;
}

.ice-divider {
  display: block;
  margin: 14px -7px 21px;
}

.ice-divider span {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29, 105, 123, 0.14), transparent);
}

.genius-list {
  gap: 9px;
}

.genius-drop {
  position: relative;
  isolation: isolate;
  display: grid;
  overflow: hidden;
  min-height: 52px;
  padding: 0;
  gap: 0;
  contain: paint;
  color: #315763;
  border: 1px solid rgba(40, 111, 128, 0.1);
  border-radius: 25px 31px 24px 29px / 21px 25px 23px 27px;
  background: rgba(247, 252, 252, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -5px 12px rgba(76, 155, 167, 0.035),
    0 6px 16px rgba(30, 89, 105, 0.03);
  font-size: 0.98rem;
  transition:
    transform 180ms var(--ease),
    background 180ms ease;
}

.genius-drop__face,
.genius-drop__ice-layer {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 52px;
  padding: 11px 20px;
  align-items: center;
  grid-area: 1 / 1;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  text-align: left;
  text-wrap: balance;
}

.genius-drop__face {
  z-index: 1;
}

.genius-drop__ice-layer {
  z-index: 2;
  border-radius: inherit;
  background:
    radial-gradient(circle at 42% 30%, rgba(255, 255, 255, 0.98), rgba(239, 246, 246, 0.96) 48%, rgba(225, 237, 239, 0.98)),
    linear-gradient(145deg, rgba(252, 254, 254, 0.96), rgba(235, 241, 242, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 0 0 1px rgba(31, 75, 91, 0.1),
    inset 0 -1px 0 rgba(28, 79, 99, 0.05);
  color: #284f5e;
  font-weight: 570;
  line-height: 1.28;
  pointer-events: none;
  clip-path: circle(0 at var(--genius-ripple-x, 50%) var(--genius-ripple-y, 50%));
}

.genius-drop__ice-layer > span {
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .genius-drop:hover {
    background: rgba(255, 255, 255, 0.68);
    transform: translateY(-1px);
  }

  .genius-drop--reveals-ice:hover,
  .genius-drop.is-revealing-ice:hover {
    transform: none;
  }
}

.genius-drop.is-revealing-ice .genius-drop__ice-layer {
  clip-path: circle(var(--genius-ripple-radius) at var(--genius-ripple-x) var(--genius-ripple-y));
}

.hanging-drops {
  --water-attachment-rise: 17.5242px;
  --band-stride: 74px;
  --drop-label-optical-y: -6px;
  z-index: 1;
  top: calc(100% - var(--water-attachment-rise));
  left: 20px;
  display: grid;
  width: calc(100% - 40px);
  max-width: none;
  justify-content: stretch;
  grid-auto-rows: var(--band-stride);
  gap: 0;
  padding-top: var(--water-attachment-rise);
  padding-bottom: 0;
  filter: drop-shadow(0 18px 42px rgba(31, 112, 132, 0.06));
  transform: none;
}

.hanging-drop-wrap {
  position: relative;
  display: grid;
  width: 100%;
  height: var(--band-stride);
  min-height: 0;
  margin: 0;
  align-self: start;
  justify-items: stretch;
}

.hanging-drop-wrap.is-dragging {
  z-index: 1000;
}

.water-drop {
  --drop-surface-offset: var(--drop-surface-offset-desktop);
  --drop-total-height: var(--drop-total-height-desktop);
  position: relative;
  top: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: block;
  color: #225a68;
  border: 0;
  background: transparent;
  overflow: visible;
  pointer-events: none;
  touch-action: none;
  transform: none;
  transition: filter 220ms ease;
}

.water-drop__surface {
  position: absolute;
  z-index: 0;
  top: calc(0px - var(--drop-surface-offset));
  right: 0;
  left: 0;
  height: var(--drop-total-height);
  transform: translate3d(var(--drop-surface-x, 0), var(--drop-surface-y, 0), 0) rotate(var(--drop-tilt, 0deg)) scaleX(var(--drop-scale-x, 1)) scaleY(var(--drop-scale-y, 1));
  transform-origin: 50% var(--drop-surface-offset);
  transition: transform 540ms cubic-bezier(0.18, 1.22, 0.35, 1);
  will-change: transform;
}

.water-drop__band {
  display: none;
  width: 100%;
  height: 100%;
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.water-drop__band--desktop {
  display: block;
}

.water-drop__band-fill {
  cursor: pointer;
  pointer-events: visiblePainted;
}

.water-drop__band-depth {
  pointer-events: none;
}

.water-drop__band-edge {
  fill: none;
  stroke: rgba(48, 137, 154, 0.14);
  stroke-linecap: butt;
  stroke-linejoin: round;
  stroke-width: 1;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.hanging-drop-wrap:not(:last-child) .water-drop__band-edge {
  stroke-opacity: 0.58;
}

.water-drop__text {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  width: 100%;
  padding: 0;
  place-items: center;
  box-sizing: border-box;
  color: inherit;
  font-size: 0.98rem;
  font-weight: 590;
  line-height: 1.45;
  pointer-events: none;
  text-align: center;
  transform: translate3d(
    var(--drop-text-x, 0px),
    calc(var(--drop-label-optical-y) + var(--drop-text-y, 0px)),
    0
  ) rotate(var(--drop-text-tilt, 0deg));
  transition: transform 540ms cubic-bezier(0.18, 1.22, 0.35, 1);
}

.water-drop__text > span {
  display: block;
  width: min(68%, 460px);
  overflow-wrap: anywhere;
  text-align: center;
  text-wrap: balance;
}

.water-drop--reviewable::before,
.water-drop--reviewable::after {
  z-index: 5;
  width: 88px;
}

.review-water-drop-tooltip {
  position: fixed;
  z-index: 70;
  display: grid;
  width: min(292px, calc(100vw - 28px));
  padding: 10px;
  gap: 3px;
  color: #edf9fb;
  border: 1px solid rgba(215, 242, 245, 0.12);
  border-radius: 14px;
  background: rgba(10, 47, 64, 0.94);
  box-shadow: 0 16px 38px rgba(8, 37, 50, 0.2);
  font-size: 0.73rem;
  line-height: 1.35;
  opacity: 0;
  overflow-wrap: anywhere;
  pointer-events: auto;
  user-select: none;
  transform: translateY(4px);
  transition:
    opacity 150ms ease,
    transform 150ms var(--ease),
    visibility 0s linear 150ms;
  visibility: hidden;
}

.review-water-drop-tooltip[data-placement="below"] {
  transform: translateY(-4px);
}

.review-water-drop-tooltip.is-visible {
  opacity: 1;
  transform: none;
  transition-delay: 0s;
  visibility: visible;
}

.review-water-drop-tooltip.is-suppressed {
  opacity: 0;
  transition: none;
  visibility: hidden;
}

.review-water-drop-tooltip > span {
  display: grid;
  min-height: 30px;
  padding: 6px 8px;
  align-items: center;
  border-radius: 9px;
  grid-template-columns: 44px minmax(0, 1fr);
}

.review-water-drop-tooltip > span + span {
  border-top: 1px solid rgba(215, 242, 245, 0.1);
}

.review-water-drop-tooltip strong {
  color: #9ddce3;
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.04em;
}

.review-water-drop-tooltip span span {
  font-weight: 540;
}

@media (forced-colors: active) {
  .review-water-drop-tooltip {
    color: CanvasText;
    border: 1px solid CanvasText;
    background: Canvas;
    box-shadow: none;
  }

  .review-water-drop-tooltip strong {
    color: CanvasText;
  }
}

.water-drop.is-dragging {
  filter: saturate(1.08) brightness(1.015);
}

.water-drop.is-dragging .water-drop__surface,
.water-drop.is-dragging .water-drop__text {
  transition: none;
}

.floating-dock {
  min-height: 50px;
  padding: 4px;
  border-radius: 18px;
  gap: 2px;
}

.floating-dock button {
  min-width: 44px;
  min-height: 40px;
  padding: 0;
  border-radius: 14px;
}

.profile-shell {
  display: block;
  width: min(520px, calc(100% - 40px));
  margin: 36px auto 90px;
}

.round-back {
  top: 0;
  left: -58px;
}

.profile-card {
  min-height: 470px;
  padding: 54px 42px 44px;
  border: 1px solid rgba(34, 81, 94, 0.08);
  border-radius: 56px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 20px 60px rgba(27, 72, 86, 0.08);
}

.profile-avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border: 1px solid rgba(42, 102, 119, 0.1);
  background: #edf4f4;
  box-shadow: none;
  font-size: 1rem;
}

.profile-card h1 {
  font-size: 1.45rem;
}

.rank-name {
  margin-top: 9px;
}

.rank-name strong {
  color: #4b6973;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.score-card {
  margin-top: 38px;
  border-radius: 18px;
  background: transparent;
}

.score-grid {
  padding: 14px 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
}

.score-grid--head {
  border-top: 0;
}

@media (max-width: 820px) {
  .workspace-header {
    width: calc(100% - 32px);
    height: 64px;
  }

  .watering {
    width: calc(100% - 24px);
    padding-bottom: 270px;
  }

  .stage {
    --ice-corner-radius: 44px;
    width: min(690px, calc(100vw - 24px));
  }

  .ice-card {
    padding: 32px 28px 50px;
    border-radius: var(--ice-corner-radius);
  }

  .ice-card:hover {
    border-radius: var(--ice-corner-radius);
  }

  .hanging-drops {
    --water-attachment-rise: 10.0589px;
    --band-stride: 80px;
    --drop-label-optical-y: -6.4px;
    left: 16px;
    width: calc(100% - 32px);
  }

  .water-drop {
    --drop-surface-offset: var(--drop-surface-offset-tablet);
    --drop-total-height: var(--drop-total-height-tablet);
  }

  .water-drop__band--desktop {
    display: none;
  }

  .water-drop__band--tablet {
    display: block;
  }

  .profile-shell {
    width: min(520px, calc(100% - 32px));
    margin-top: 70px;
  }

  .round-back {
    top: -54px;
    left: 0;
  }
}

@media (max-width: 560px) {
  .stage {
    --ice-corner-radius: 36px;
  }

  .ice-card {
    padding: 28px 22px 45px;
    border-radius: var(--ice-corner-radius);
  }

  .ice-card:hover {
    border-radius: var(--ice-corner-radius);
  }

  .subice-list,
  .subice-chip {
    width: 100%;
  }

  .hanging-drops {
    --water-attachment-rise: 14.6693px;
    --band-stride: 64px;
    --drop-label-optical-y: -5.1px;
    left: 7px;
    width: calc(100% - 14px);
  }

  .water-drop {
    --drop-surface-offset: var(--drop-surface-offset-mobile);
    --drop-total-height: var(--drop-total-height-mobile);
  }

  .water-drop__band--tablet {
    display: none;
  }

  .water-drop__band--mobile {
    display: block;
  }

  .water-drop__text {
    overflow: visible;
    color: #225a68;
    font-size: 0.92rem;
    text-shadow: none;
  }

  .water-drop__text > span {
    width: min(84%, 460px);
  }

  .profile-card {
    padding: 46px 24px 38px;
    border-radius: 42px;
  }

  .score-grid {
    padding: 13px 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .floating-dock {
    right: 16px;
    width: auto;
    justify-content: flex-start;
    transform: none;
  }

  .floating-dock button {
    flex: 0 0 44px;
  }
}
