:root {
  --page-bg: #fff6ea;
  --page-bg-strong: #fffdf8;
  --surface: rgba(255, 252, 245, 0.82);
  --surface-strong: #fffdf8;
  --ink: #1e241f;
  --muted: #667167;
  --outline: #e8dcc8;
  --accent: #ff7247;
  --accent-deep: #e35932;
  --accent-soft: #ffe5da;
  --secondary: #1f7a5b;
  --secondary-soft: #d8f2e6;
  --shadow: 0 28px 60px rgba(92, 71, 44, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Space Grotesk", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 114, 71, 0.18), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(31, 122, 91, 0.14), transparent 26%),
    linear-gradient(180deg, #fffaf1 0%, #fff5e9 55%, #fff0e1 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 56px;
  position: relative;
  z-index: 1;
}

.subnav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.subnav-link {
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 800;
  text-decoration: none;
}

.subnav-current {
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 800;
}

.page-orb {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.36;
  z-index: 0;
  pointer-events: none;
}

.orb-a {
  background: rgba(255, 114, 71, 0.2);
  top: -120px;
  left: -80px;
}

.orb-b {
  background: rgba(31, 122, 91, 0.16);
  right: -90px;
  top: 180px;
}

.hero,
.panel {
  animation: rise 520ms ease both;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  border: 1px solid var(--outline);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  border-radius: 32px;
  padding: 24px 28px;
}

.panel {
  border: 1px solid var(--outline);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  padding: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-form-shell {
  gap: 18px;
}

.hero-form-shell .panel-head {
  margin-bottom: 2px;
}

.hero-billboard {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 0 28px;
  border-left: 1px solid var(--outline);
}

.hero-summary-card {
  margin-top: 2px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--outline);
  background: rgba(255, 252, 246, 0.85);
}

.hero-summary-card h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.billboard-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.billboard-value {
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.billboard-caption {
  color: var(--secondary);
  font-weight: 600;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.metric {
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid var(--outline);
  background: rgba(255, 253, 248, 0.7);
}

.metric-key {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.metric-value {
  display: block;
  margin-top: 8px;
  font-size: 1.45rem;
  letter-spacing: -0.05em;
}

.dashboard {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.panel {
  border-radius: 30px;
  padding: 28px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}

.panel-head h3 {
  margin: 0;
}

.panel-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.workspace-grid,
.wishlist-grid,
.subscription-list {
  display: grid;
  gap: 18px;
}

.workspace-grid > *,
.wishlist-grid > *,
.subscription-list > * {
  min-width: 0;
}

.workspace-grid {
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
}

.wishlist-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
}

.summary-card,
.subscription-card,
.member-card {
  border-radius: 24px;
  border: 1px solid var(--outline);
  background: var(--surface-strong);
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  padding: 4px 0 0;
}

.member-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.member-filter-chip {
  appearance: none;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: #fffaf4;
  color: var(--ink);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.member-filter-chip:hover {
  transform: translateY(-1px);
}

.member-filter-chip.is-selected {
  border-color: rgba(31, 122, 91, 0.36);
  background: var(--secondary-soft);
  color: var(--secondary);
}

.summary-card {
  padding: 22px;
}

.summary-card h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.stack-list,
.member-list {
  display: grid;
  gap: 12px;
}

.payer-row {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--page-bg);
}

.payer-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.payer-row-head strong {
  font-size: 1.05rem;
}

.payer-row-head span {
  font-weight: 700;
}

.payer-row-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: #f3e7d6;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #ff9e69);
}

.inline-form,
.field-grid,
.form-actions {
  display: grid;
  gap: 14px;
}

.form-actions {
  margin-top: 18px;
}

.inline-form {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 18px;
}

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

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

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

.field span,
.member-picker legend {
  font-size: 0.92rem;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--outline);
  background: #fffdf9;
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(255, 114, 71, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 114, 71, 0.12);
  transform: translateY(-1px);
}

.member-picker {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.payer-picker {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payer-option {
  appearance: none;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--ink);
  padding: 9px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  min-height: auto;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.payer-option:hover {
  transform: translateY(-1px);
}

.payer-option.is-selected {
  border-color: rgba(31, 122, 91, 0.5);
  background: var(--secondary-soft);
  color: var(--secondary);
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.checkbox-chip {
  display: inline-flex;
  align-items: center;
}

.checkbox-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-chip span {
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: #fffaf4;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.checkbox-chip input:checked + span {
  border-color: rgba(31, 122, 91, 0.34);
  background: var(--secondary-soft);
  transform: translateY(-1px);
}

.btn {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid transparent;
  padding: 0 16px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(227, 89, 50, 0.24);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  border-color: var(--outline);
}

.btn-danger {
  background: #fff3ef;
  color: #9d3b22;
  border-color: #f4d0c5;
}

.member-card {
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.member-card-main {
  display: grid;
  gap: 8px;
}

.member-name {
  font-size: 1.08rem;
  font-weight: 700;
}

.member-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.small-pill,
.info-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.small-pill {
  background: var(--page-bg);
  color: var(--muted);
}

.info-pill {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

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

.wishlist-list {
  grid-template-columns: 1fr;
}

.wishlist-editor {
  padding: 22px;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.subscription-card {
  padding: 22px;
  display: grid;
  gap: 18px;
}

.subscription-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.subscription-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.subscription-head-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.subscription-head h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.subscription-usage {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.subscription-usage-separator,
.subscription-usage-label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.subscription-form {
  min-width: 0;
}

.subscription-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.price-pill {
  padding: 10px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, #fff1ea 100%);
  color: var(--accent-deep);
  font-size: 0.96rem;
  font-weight: 700;
  white-space: nowrap;
}

.subscription-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.meta-card {
  padding: 14px;
  border-radius: 18px;
  background: var(--page-bg);
}

.meta-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.meta-value {
  font-weight: 700;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--secondary-soft);
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 700;
}

.subscription-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.subscription-actions .btn {
  min-height: 40px;
  width: auto;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 0.92rem;
}

.empty-state {
  padding: 22px;
  border-radius: 22px;
  border: 1px dashed #d9c9b1;
  background: rgba(255, 252, 246, 0.8);
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero,
  .workspace-grid,
  .wishlist-grid,
  .subscription-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 22px;
  }

  .hero-billboard {
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid var(--outline);
  }

  .hero-summary-card {
    padding: 12px 14px;
  }

  .panel {
    padding: 24px;
  }

  .list-toolbar {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
    padding-bottom: 34px;
  }

  .hero {
    border-radius: 24px;
    gap: 16px;
    padding: 16px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    line-height: 1.02;
  }

  .hero-copy {
    padding: 0;
  }

  .billboard-value {
    font-size: clamp(1.7rem, 9vw, 2.4rem);
    letter-spacing: -0.05em;
  }

  .hero-summary-card {
    padding: 12px;
  }

  .hero-summary-card h2 {
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .panel {
    border-radius: 22px;
    padding: 18px;
  }

  .hero-metrics,
  .field-grid,
  .subscription-meta,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .inline-form {
    display: grid;
  }

  .panel-head,
  .subscription-head,
  .member-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .subscription-head-side,
  .subscription-actions {
    justify-content: flex-start;
  }

  .panel-head h2 {
    font-size: clamp(1.3rem, 6vw, 1.75rem);
  }

  .panel-head h3 {
    font-size: 1.08rem;
  }

  .panel-note {
    font-size: 0.84rem;
  }

  .summary-card,
  .subscription-card,
  .member-card,
  .wishlist-editor,
  .hero-summary-card {
    padding: 14px;
  }

  .summary-card h3 {
    margin: 0 0 10px;
    font-size: 1rem;
  }

  .field span,
  .member-picker legend {
    font-size: 0.88rem;
  }

  .field input,
  .btn {
    min-height: 44px;
  }

  .list-toolbar {
    padding: 14px;
  }

  .member-filter-chip {
    padding: 9px 12px;
    font-size: 0.86rem;
  }

  .subscription-actions {
    justify-content: flex-start;
    flex-direction: row;
  }

  .subscription-actions .btn {
    width: auto;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: calc(100% - 12px);
  }

  .hero-billboard {
    padding-top: 10px;
  }

  .hero-metrics {
    gap: 10px;
  }

  .billboard-value {
    font-size: 2rem;
    line-height: 1;
  }

  .metric-value {
    font-size: 1.26rem;
  }

  .payer-row-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

:root {
  --page-bg: #f3f3ef;
  --page-bg-strong: #ffffff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #111111;
  --muted: #5f5f5f;
  --outline: #111111;
  --accent: #111111;
  --accent-deep: #111111;
  --accent-soft: #f1f1ed;
  --secondary: #111111;
  --secondary-soft: #f1f1ed;
  --shadow: none;
}

body {
  font-family: "IBM Plex Mono", "SFMono-Regular", "Menlo", "Courier New", monospace;
  background: var(--page-bg);
  line-height: 1.55;
}

.page-orb {
  display: none;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  padding: 20px 0 40px;
}

.page-header,
.nav-link,
.hero,
.panel {
  border: 1px solid var(--outline);
  background: var(--surface);
}

.page-header {
  padding: 18px 22px;
  display: grid;
  gap: 18px;
  margin: 0;
}

.page-header-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink) !important;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.nav-link:visited {
  color: var(--ink) !important;
}

.nav-link:hover {
  background: #111111;
  color: #ffffff;
}

.page-kicker,
.billboard-label,
.subscription-usage-separator,
.subscription-usage-label,
.meta-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-heading h1 {
  margin: 6px 0 8px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
}

.page-heading p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
}

.hero,
.panel {
  animation: none;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
}

.hero {
  gap: 24px;
  margin-top: 16px;
  padding: 20px 24px;
}

.panel {
  padding: 24px;
}

.hero-billboard {
  padding-left: 24px;
  border-left: 1px solid var(--outline);
}

.hero-summary-card,
.summary-card,
.subscription-card,
.member-card,
.wishlist-editor,
.payer-row,
.metric,
.meta-card,
.small-pill,
.info-pill,
.user-chip,
.price-pill,
.empty-state {
  border: 1px solid var(--outline);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.hero-summary-card {
  padding: 16px;
}

.billboard-value,
.panel-head h2,
.subscription-head h3,
.member-name,
.payer-row-head strong {
  font-weight: 500;
  letter-spacing: 0;
}

.panel-head h2 {
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  text-transform: uppercase;
}

.panel-note,
.billboard-caption,
.payer-row-meta,
.subscription-note,
.field span,
.member-picker legend,
.meta-label,
.small-pill,
.empty-state {
  color: var(--muted);
}

.progress-track {
  border: 1px solid var(--outline);
  border-radius: 0;
  background: #ffffff;
}

.progress-fill {
  border-radius: 0;
  background: #111111;
}

.field input,
.field select {
  border: 1px solid var(--outline);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.field input:focus,
.field select:focus {
  outline: 2px solid #111111;
  outline-offset: 0;
  border-color: #111111;
  box-shadow: none;
  transform: none;
}

.member-filter-chip,
.payer-option,
.checkbox-chip span,
.btn {
  border: 1px solid var(--outline);
  border-radius: 0;
  background: #ffffff;
  color: var(--ink);
  box-shadow: none;
}

.member-filter-chip,
.payer-option,
.checkbox-chip span,
.btn,
.price-pill,
.user-chip,
.info-pill {
  font-weight: 500;
}

.member-filter-chip:hover,
.payer-option:hover,
.checkbox-chip:hover span,
.btn-ghost:hover,
.btn-danger:hover,
.subscription-actions .btn:hover {
  background: #111111;
  color: #ffffff;
  transform: none;
}

.member-filter-chip.is-selected,
.payer-option.is-selected,
.checkbox-chip input:checked + span {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
  transform: none;
}

.btn {
  min-height: 46px;
}

.btn:hover {
  transform: none;
}

.btn-primary {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.btn-primary:hover {
  background: #ffffff;
  color: #111111;
}

.btn-ghost,
.btn-danger {
  border-color: #111111;
  background: #ffffff;
  color: #111111;
}

.list-toolbar {
  margin-bottom: 16px;
  padding-top: 0;
}

.small-pill,
.info-pill,
.user-chip,
.price-pill {
  padding: 8px 10px;
  color: #111111;
}

.subscription-actions .btn {
  border-radius: 0;
}

.empty-state {
  border-style: dashed;
}

@media (max-width: 960px) {
  .hero-billboard {
    padding-left: 0;
    padding-top: 18px;
    border-left: 0;
    border-top: 1px solid var(--outline);
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 16px;
  }

  .page-header {
    padding: 16px;
  }

  .hero,
  .panel,
  .hero-summary-card,
  .summary-card,
  .subscription-card,
  .member-card,
  .wishlist-editor,
  .member-filter-chip,
  .payer-option,
  .checkbox-chip span,
  .btn {
    border-radius: 0;
  }

  .page-heading h1 {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }
}
