:root {
  --bg: #111111;
  --bg-soft: #191919;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f1ec;
  --muted: rgba(245, 241, 236, 0.68);
  --accent: #f28c8c;
  --accent-strong: #ff7373;
  --accent-soft: rgba(242, 140, 140, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Noto Sans KR", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(242, 140, 140, 0.18), transparent 22rem),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 26rem),
    linear-gradient(180deg, #0d0d0d 0%, #141414 100%);
}

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

button {
  cursor: pointer;
  border: 0;
}

.app-shell {
  width: min(1280px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1rem 0 6.5rem;
}

.hero {
  display: grid;
  gap: 1rem;
  padding: 1rem 0 1.5rem;
}

.hero-copy,
.hero-summary,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.tab-panel[hidden] {
  display: none;
}

.home-placeholder {
  min-height: 18rem;
  display: grid;
  align-content: center;
  gap: 0.8rem;
}

.home-placeholder h2,
.home-placeholder p {
  margin: 0;
}

.home-placeholder p {
  max-width: 36rem;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-layout {
  display: grid;
  gap: 1rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.45rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero h1,
.section-head h2 {
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 0.96;
}

.hero-text {
  margin: 0.9rem 0 0;
  max-width: 44rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero-summary {
  border-radius: var(--radius-xl);
  padding: 1.25rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-metric {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
}

.hero-metric strong {
  display: block;
  font-size: 1.35rem;
  margin-top: 0.3rem;
}

.layout {
  display: grid;
  gap: 1rem;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  z-index: 20;
  width: min(28rem, calc(100% - 1.5rem));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.bottom-nav-button {
  min-height: 2.7rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.bottom-nav-button.is-active {
  background: var(--accent-soft);
  color: var(--text);
}

.left-column,
.right-column {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 1rem;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.month-actions,
.form-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ghost-button,
.accent-button {
  min-height: 2.8rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.accent-button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #1e1010;
  font-weight: 700;
}

.ghost-button:hover,
.accent-button:hover,
.calendar-day:hover {
  transform: translateY(-1px);
}

.legend,
.weekday-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.legend {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  display: inline-block;
}

.dot-soft {
  background: rgba(242, 140, 140, 0.35);
}

.dot-medium {
  background: rgba(242, 140, 140, 0.62);
}

.dot-strong {
  background: var(--accent-strong);
}

.dot-complete {
  background: #fff4ef;
  box-shadow: 0 0 0 2px rgba(242, 140, 140, 0.22);
}

.weekday-row {
  margin-bottom: 0.6rem;
}

.weekday-cell {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.calendar-day {
  position: relative;
  min-height: 5rem;
  padding: 0.75rem 0.6rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
}

.calendar-day.is-outside {
  color: rgba(245, 241, 236, 0.28);
  background: rgba(255, 255, 255, 0.015);
}

.calendar-day.is-selected {
  border-color: rgba(242, 140, 140, 0.72);
  box-shadow: inset 0 0 0 1px rgba(242, 140, 140, 0.24);
}

.calendar-day.is-today {
  background: rgba(255, 255, 255, 0.08);
}

.calendar-day-number {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
}

.calendar-day-meta {
  margin-top: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.intensity-pill,
.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.5rem;
  min-width: 1.5rem;
  border-radius: 999px;
  font-size: 0.74rem;
}

.intensity-pill {
  padding: 0 0.45rem;
  background: var(--accent-soft);
}

.intensity-pill.level-1 {
  background: rgba(242, 140, 140, 0.2);
}

.intensity-pill.level-2 {
  background: rgba(242, 140, 140, 0.42);
}

.intensity-pill.level-3 {
  background: rgba(255, 115, 115, 0.7);
}

.count-pill {
  border: 1px solid var(--line);
  color: var(--muted);
}

.complete-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.65rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #fff4ef;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  border-radius: var(--radius-lg);
}

.stat-card h3 {
  margin: 0;
  font-size: 0.94rem;
}

.stat-value {
  margin-top: 0.65rem;
  font-size: 1.9rem;
  font-weight: 800;
}

.stat-subtext,
.empty-state,
.record-meta,
.summary-grid span,
.mini-bars-labels,
.detail-block p {
  color: var(--muted);
}

.mini-bars {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.mini-bar-row {
  display: grid;
  grid-template-columns: 4.6rem 1fr auto;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
}

.mini-bar-track {
  overflow: hidden;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(242, 140, 140, 0.45), var(--accent-strong));
}

.daily-summary {
  margin-bottom: 1rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.summary-card {
  padding: 0.95rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.summary-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.2rem;
}

.record-list {
  display: grid;
  gap: 0.85rem;
}

.record-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.record-topline,
.record-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.7rem 0 0.9rem;
}

.tag {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}

.tag.is-accent {
  background: rgba(242, 140, 140, 0.18);
  color: #ffd7d7;
}

.detail-block {
  margin-top: 0.75rem;
}

.detail-block h4 {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
}

.detail-block p {
  margin: 0;
  line-height: 1.5;
  white-space: pre-wrap;
}

.record-form {
  display: grid;
  gap: 0.9rem;
}

.form-section {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.form-section-title {
  margin: 0;
  font-size: 1rem;
}

.form-section-description {
  margin: 0.3rem 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.88rem;
}

.compact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-size: 0.88rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.85rem 0.95rem;
}

.field textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.field input[type="range"] {
  padding: 0;
}

.range-value {
  color: var(--accent);
  font-size: 0.95rem;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
}

.checkbox-field input {
  width: 1rem;
  height: 1rem;
}

.empty-state {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line);
  line-height: 1.5;
}

.form-error-message {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 115, 115, 0.44);
  border-radius: var(--radius-md);
  background: rgba(255, 115, 115, 0.12);
  color: #ffd7d7;
  font-weight: 800;
}

.form-error-message[hidden] {
  display: none;
}

.goal-builder {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
}

.goal-builder h3,
.goal-builder p {
  margin: 0;
}

.goal-builder p {
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.5;
}

.goal-builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(7rem, 0.6fr) minmax(7rem, 0.6fr);
  gap: 0.75rem;
}

.goal-block-list,
.move-stat-list {
  display: grid;
  gap: 0.65rem;
}

.goal-block-list.is-compact {
  gap: 0.5rem;
}

.goal-block-card {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
}

.goal-block-card.is-complete {
  border-color: rgba(167, 240, 193, 0.36);
}

.goal-block-card.needs-work {
  border-color: rgba(255, 215, 168, 0.34);
}

.goal-block-main,
.goal-block-meta,
.move-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.goal-block-main {
  flex-wrap: wrap;
}

.goal-block-main span,
.goal-block-meta,
.move-stat-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.goal-progress {
  overflow: hidden;
  width: 100%;
  height: 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.goal-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(242, 140, 140, 0.55), var(--accent-strong));
}

.goal-remove-button {
  min-height: 1.9rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.goal-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.goal-status-badge.is-complete {
  background: rgba(167, 240, 193, 0.16);
  color: #c9ffd8;
}

.goal-status-badge.needs-work {
  background: rgba(255, 215, 168, 0.16);
  color: #ffe1b5;
}

.saved-move-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.saved-move-chip,
.location-tag {
  border: 1px solid rgba(242, 140, 140, 0.26);
}

.saved-move-chip {
  min-height: 2.2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ffd7d7;
  font-size: 0.82rem;
  font-weight: 800;
}

.move-stat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-insight-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.insight-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.insight-card h3 {
  margin: 0;
  font-size: 0.95rem;
}

.insight-value {
  margin-top: 0.65rem;
  font-size: 1.55rem;
  font-weight: 900;
}

.insight-comment {
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.move-stat-toggle {
  min-height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ffd7d7;
  font-size: 0.78rem;
  font-weight: 900;
}

.move-stat-title {
  font-weight: 800;
}

.calendar-move-badge {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(242, 140, 140, 0.2);
  color: #ffd7d7;
  font-size: 0.68rem;
  font-weight: 800;
}

.calendar-day.review-level-1 {
  background: rgba(242, 140, 140, 0.055);
}

.calendar-day.review-level-2 {
  background: rgba(242, 140, 140, 0.095);
  border-color: rgba(242, 140, 140, 0.24);
}

.calendar-day.review-level-3 {
  background: rgba(255, 115, 115, 0.15);
  border-color: rgba(255, 115, 115, 0.42);
}

.calendar-day.is-goals-complete .complete-badge {
  width: 0.75rem;
  height: 0.75rem;
  box-shadow: 0 0 0 0.22rem rgba(167, 240, 193, 0.18);
  background: #c9ffd8;
}

.status-dot {
  position: absolute;
  top: 0.7rem;
  right: 0.65rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 241, 236, 0.52);
}

.status-dot.is-planned {
  background: transparent;
  border-color: rgba(242, 140, 140, 0.72);
}

.status-dot.is-reviewed {
  background: #c9ffd8;
  border-color: #c9ffd8;
  box-shadow: 0 0 0 0.2rem rgba(167, 240, 193, 0.16);
}

.review-card {
  margin-top: 1rem;
}

.review-checklist {
  display: grid;
  gap: 0.55rem;
}

.review-check-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.review-check-item input {
  width: 1rem;
  height: 1rem;
}

.review-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.review-status-badge.is-planned {
  border: 1px solid rgba(242, 140, 140, 0.36);
  background: rgba(242, 140, 140, 0.12);
  color: #ffd7d7;
}

.review-status-badge.is-reviewed {
  border: 1px solid rgba(167, 240, 193, 0.36);
  background: rgba(167, 240, 193, 0.13);
  color: #c9ffd8;
}

.home-grid {
  display: grid;
  gap: 1rem;
}

.profile-setup,
.room-card,
.mini-room-card {
  overflow: hidden;
}

.profile-setup {
  display: grid;
  gap: 1.2rem;
}

.setup-copy h2,
.setup-copy p {
  margin: 0;
}

.setup-copy h2 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
}

.setup-copy p {
  margin-top: 0.65rem;
  color: var(--muted);
  line-height: 1.6;
}

.setup-form,
.home-side-stack {
  display: grid;
  gap: 0.9rem;
}

.customizer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.team-create-fields,
.inline-team-form {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.team-create-fields[hidden],
.inline-team-form[hidden] {
  display: none;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ffd7d7;
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-month-insight {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.profile-month-insight span {
  color: var(--muted);
  font-size: 0.88rem;
}

.avatar-room {
  position: relative;
  overflow: hidden;
  min-height: 28rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: #181514;
}

.room-wall {
  position: absolute;
  inset: 0 0 34%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 4rem 100%,
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(242, 140, 140, 0.08)),
    #241c1e;
}

.room-floor {
  position: absolute;
  inset: 58% 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 1rem 1.2rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07) 25%, transparent 25%) 0 0 / 2.2rem 2.2rem,
    linear-gradient(225deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%) 0 0 / 2.2rem 2.2rem,
    #171717;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.room-mirror {
  position: absolute;
  left: 1.2rem;
  top: 1.2rem;
  width: min(42%, 15rem);
  height: 9rem;
  border: 0.45rem solid rgba(245, 241, 236, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.room-speaker {
  position: absolute;
  right: 1.3rem;
  bottom: 0.9rem;
  width: 3.4rem;
  height: 6rem;
  border-radius: 0.9rem;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.room-speaker::before,
.room-speaker::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  border: 0.28rem solid rgba(242, 140, 140, 0.45);
  transform: translateX(-50%);
}

.room-speaker::before {
  top: 0.85rem;
}

.room-speaker::after {
  bottom: 0.85rem;
}

.room-light {
  position: absolute;
  left: 50%;
  top: 0.8rem;
  width: 5.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: rgba(255, 244, 239, 0.72);
  box-shadow: 0 0 2.5rem rgba(242, 140, 140, 0.42);
  transform: translateX(-50%);
}

.dancer-avatar {
  --shirt: #f28c8c;
  --pants: #353535;
  --shoe: #f5f1ec;
  --avatar-scale: 1;
  --avatar-rotate: 0deg;
  --avatar-y: 0;
  position: relative;
  width: 8.2rem;
  height: 15.2rem;
  display: grid;
  justify-items: center;
  align-content: end;
  transform-origin: 50% 100%;
  transform: translateY(var(--avatar-y)) rotate(var(--avatar-rotate)) scale(var(--avatar-scale));
}

.dancer-avatar.is-small {
  --avatar-scale: 0.9;
  width: 6rem;
  height: 12.3rem;
}

.dancer-avatar.is-mock {
  opacity: 0.82;
}

.avatar-head {
  z-index: 3;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: #f0c4aa;
  border: 0.2rem solid rgba(17, 17, 17, 0.2);
}

.avatar-hat {
  z-index: 4;
  min-height: 1.2rem;
  margin-bottom: -0.3rem;
  color: transparent;
  font-size: 0;
}

.avatar-hat-cap,
.avatar-hat-beanie,
.avatar-hat-bucket {
  width: 3.3rem;
  height: 1.15rem;
  background: #f28c8c;
}

.avatar-hat-cap {
  border-radius: 1rem 1rem 0.3rem 0.3rem;
}

.avatar-hat-cap::after {
  content: "";
  position: absolute;
  width: 1.2rem;
  height: 0.42rem;
  margin: 0.7rem 0 0 2.4rem;
  border-radius: 999px;
  background: #ffcdcd;
}

.avatar-hat-beanie {
  border-radius: 1.2rem 1.2rem 0.45rem 0.45rem;
  background: #ffd7d7;
}

.avatar-hat-bucket {
  width: 3.8rem;
  border-radius: 0.5rem 0.5rem 1rem 1rem;
  background: #b9d7ff;
}

.avatar-arms {
  position: absolute;
  z-index: 1;
  top: 5.05rem;
  width: 6.4rem;
  height: 0.85rem;
  border-radius: 999px;
  background: #f0c4aa;
}

.avatar-body {
  z-index: 2;
  width: 4.4rem;
  min-height: 4rem;
  padding: 1.2rem 0.25rem 0;
  border-radius: 1.1rem 1.1rem 0.65rem 0.65rem;
  background: var(--shirt);
  color: rgba(17, 17, 17, 0.58);
  text-align: center;
  font-size: 0.66rem;
  font-weight: 800;
}

.avatar-legs {
  z-index: 2;
  width: 4.7rem;
  min-height: 3.9rem;
  padding-top: 1.2rem;
  border-radius: 0.55rem 0.55rem 1rem 1rem;
  background: linear-gradient(90deg, var(--pants) 48%, rgba(255, 255, 255, 0.1) 48% 52%, var(--pants) 52%);
  color: rgba(245, 241, 236, 0.58);
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
}

.avatar-shoes {
  z-index: 3;
  width: 5.3rem;
  min-height: 1.1rem;
  border-radius: 999px;
  background: var(--shoe);
  color: rgba(17, 17, 17, 0.62);
  text-align: center;
  font-size: 0.58rem;
  font-weight: 800;
}

.avatar-label {
  position: absolute;
  left: 50%;
  bottom: -1.7rem;
  min-width: 5rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.8);
  color: var(--text);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  transform: translateX(-50%);
}

.avatar-top-hoodie {
  --shirt: #b9d7ff;
}

.avatar-top-overshirt {
  --shirt: #ffd7a8;
}

.avatar-top-jacket {
  --shirt: #a7f0c1;
}

.avatar-bottom-wide {
  --pants: #57515e;
}

.avatar-bottom-shorts {
  --pants: #8d5f66;
}

.avatar-bottom-track {
  --pants: #263348;
}

.avatar-shoes-hightop {
  --shoe: #ff7373;
}

.avatar-shoes-dance {
  --shoe: #b9d7ff;
}

.avatar-pose-groove {
  --avatar-rotate: -4deg;
}

.avatar-pose-groove .avatar-arms {
  transform: rotate(-12deg);
}

.avatar-pose-freeze {
  --avatar-rotate: -14deg;
  --avatar-y: 0.8rem;
}

.avatar-pose-freeze .avatar-arms {
  top: 7.2rem;
  transform: rotate(24deg);
}

.avatar-pose-wave .avatar-arms {
  transform: rotate(-26deg);
  transform-origin: 85% 50%;
}

.avatar-pose-team {
  --avatar-y: -0.25rem;
}

.team-room {
  min-height: 19rem;
  margin-top: 0.9rem;
}

.team-floor {
  justify-content: space-evenly;
  gap: 0.5rem;
}

.team-meta-grid,
.profile-detail-grid {
  display: grid;
  grid-template-columns: minmax(5rem, 0.7fr) 1fr;
  gap: 0.55rem 0.8rem;
  margin-bottom: 0.9rem;
}

.team-meta-grid span,
.profile-detail-grid span,
.team-member-row span:last-child {
  color: var(--muted);
}

.team-member-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.danger-button {
  min-height: 2.8rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 95, 95, 0.16);
  color: #ffd7d7;
  border: 1px solid rgba(255, 95, 95, 0.42);
  font-weight: 800;
}

@media (min-width: 760px) {
  .app-shell {
    width: min(1280px, calc(100% - 2rem));
    padding-top: 1.25rem;
  }

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

  .dashboard-layout {
    grid-template-columns: minmax(20rem, 0.9fr) minmax(0, 1.5fr);
    align-items: start;
  }

  .profile-setup {
    grid-template-columns: minmax(18rem, 0.7fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 1080px) {
  .layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(22rem, 0.88fr);
    align-items: start;
  }

  .right-column {
    position: sticky;
    top: 1rem;
  }

  .home-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(22rem, 0.82fr);
    align-items: start;
  }
}

@media (max-width: 759px) {
  .legend,
  .stats-grid,
  .summary-grid,
  .field-row,
  .customizer-grid,
  .goal-builder-grid,
  .compact-form-grid,
  .dashboard-insight-grid {
    grid-template-columns: 1fr;
  }

  .weekday-row,
  .calendar-grid {
    gap: 0.35rem;
  }

  .calendar-day {
    min-height: 4.3rem;
    padding: 0.55rem 0.45rem;
  }

  .mini-bar-row {
    grid-template-columns: 4rem 1fr auto;
  }

  .avatar-room {
    min-height: 23rem;
  }

  .team-room {
    min-height: 18rem;
  }

  .team-floor {
    padding-inline: 0.35rem;
  }

  .dancer-avatar {
    --avatar-scale: 0.88;
  }

  .dancer-avatar.is-small {
    --avatar-scale: 0.72;
  }
}
