:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #757575;
  --soft: #f7f7f4;
  --paper: #ffffff;
  --line: #e4e2dc;
  --green: #04b859;
  --green-soft: #dcf9e9;
  --blue: #2266ff;
  --blue-soft: #e8efff;
  --coral: #ff6647;
  --coral-soft: #fff0ec;
  --yellow: #ffd45a;
  --shadow: 0 18px 50px rgba(17, 17, 17, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Simplified Sell tab */
.sell-screen {
  width: min(820px, 100%);
  margin: 0 auto;
  padding-bottom: 24px;
}

.sell-start[hidden],
.sell-detail[hidden] {
  display: none;
}

.sell-top {
  min-height: 58px;
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sell-top h1 {
  margin: 0;
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: 0;
}

.sell-create-action {
  border: 0;
  color: var(--green);
  background: transparent;
  font-size: 20px;
  font-weight: 850;
}

.sell-create-action:disabled {
  color: #b7b7b7;
  cursor: not-allowed;
}

.sell-card {
  min-height: 440px;
  padding: 36px 30px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 26px;
  background: var(--paper);
}

.sell-media-stage[hidden] {
  display: none;
}

.sell-media-button[hidden] {
  display: none;
}

.sell-media-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.sell-media-rail-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.sell-media-grid {
  position: relative;
  width: 100%;
  padding: 2px 0 8px;
  border: 0;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  background: transparent;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  user-select: none;
}

.sell-media-grid.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.sell-media-grid::-webkit-scrollbar {
  display: none;
}

.sell-media-grid.is-single {
  justify-content: center;
  padding-inline: 0;
}

.sell-media-tile {
  position: relative;
  flex: 0 0 clamp(260px, 78%, 390px);
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #191919;
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.16);
  cursor: grab;
}

.sell-media-grid.is-dragging .sell-media-tile {
  cursor: grabbing;
}

.sell-media-grid.is-single .sell-media-tile {
  flex-basis: min(390px, 100%);
}

.sell-media-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(17, 17, 17, 0.54);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.24);
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.sell-media-nav[hidden] {
  display: none;
}

.sell-media-nav.is-prev {
  left: 12px;
}

.sell-media-nav.is-next {
  right: 12px;
}

.sell-media-nav svg {
  width: 26px;
  height: 26px;
}

.sell-media-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.sell-media-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.03) 34%, rgba(0, 0, 0, 0.1));
  pointer-events: none;
}

.sell-media-item-remove {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: rgba(17, 17, 17, 0.62);
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.24);
}

.sell-media-item-remove svg {
  width: 30px;
  height: 30px;
}

.sell-media-duration {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  font-size: 22px;
  font-weight: 900;
}

.sell-media-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.sell-media-count {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  background: #eeeeee;
  font-size: 22px;
  font-weight: 850;
}

.sell-add-more-media {
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 18px;
  font-weight: 850;
}

.sell-add-more-media svg {
  width: 20px;
  height: 20px;
}

.sell-media-button {
  border: 0;
  display: grid;
  justify-items: center;
  gap: 14px;
  color: var(--ink);
  background: transparent;
}

.sell-plus {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: #35c65d;
}

.sell-plus svg {
  width: 78px;
  height: 78px;
  stroke-width: 1.7;
}

.sell-media-button strong {
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
}

.sell-media-button small {
  max-width: 360px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.sell-price {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.sell-price > span:first-child {
  font-size: 28px;
  font-weight: 650;
}

.sell-price-input {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bfbfbf;
  font-size: 78px;
  line-height: 1;
  font-weight: 700;
}

.sell-price-input input {
  width: 4ch;
  min-width: 1ch;
  max-width: 8ch;
  border: 0;
  outline: 0;
  color: #a8a8a8;
  background: transparent;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
}

.sell-price-input input::placeholder {
  color: #c7c7c7;
}

.sell-price-input input::-webkit-outer-spin-button,
.sell-price-input input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.sell-options {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}

.sell-row {
  width: 100%;
  min-height: 72px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 22px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.sell-row:last-child {
  border-bottom: 0;
}

.sell-row span {
  font-size: 22px;
  font-weight: 650;
}

.sell-row strong {
  color: #949494;
  font-size: 20px;
  font-weight: 650;
}

.sell-row svg {
  width: 20px;
  height: 20px;
  color: #949494;
}

.sell-generate {
  width: 100%;
  min-height: 72px;
  margin-top: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--paper);
  background: var(--green);
  font-size: 24px;
  font-weight: 850;
}

.sell-generate:disabled {
  color: #b9b9b9;
  background: #eeeeee;
  cursor: not-allowed;
}

.sell-detail {
  padding: 0 10px 92px;
}

.sell-detail-top {
  min-height: 62px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 10px;
}

.sell-detail-top h1 {
  margin: 0;
  text-align: center;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.sell-back-button {
  width: 52px;
  height: 52px;
  border: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: transparent;
}

.sell-back-button svg {
  width: 38px;
  height: 38px;
  stroke-width: 2.5;
}

.sell-detail-icon {
  width: 108px;
  height: 108px;
  margin: 54px auto 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--paper);
}

.sell-detail-icon svg {
  width: 58px;
  height: 58px;
  stroke-width: 2.2;
}

.sell-detail-fields {
  display: grid;
  gap: 28px;
}

.detail-field {
  display: grid;
  gap: 14px;
}

.detail-field > span {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
}

.detail-field small {
  margin-top: -8px;
  color: #2b2b2b;
  font-size: 21px;
  line-height: 1.35;
}

.detail-field input,
.detail-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font-size: 24px;
}

.detail-field input {
  min-height: 68px;
  padding: 0 34px;
}

.money-field {
  width: 100%;
  min-height: 68px;
  padding: 0 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #a8a8a8;
  background: var(--paper);
  font-size: 24px;
}

.money-field:focus-within {
  outline: 3px solid rgba(4, 184, 89, 0.28);
  outline-offset: 2px;
}

.money-field input {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.detail-field textarea {
  min-height: 164px;
  resize: vertical;
  padding: 28px 34px;
}

.detail-field input::placeholder,
.detail-field textarea::placeholder {
  color: #c4c4c4;
}

.price-error,
.detail-field .price-error {
  margin-top: -4px;
  color: #d04437;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.sell-price .price-error {
  text-align: center;
}

input[aria-invalid="true"],
.money-field:has(input[aria-invalid="true"]) {
  border-color: #e45b4f;
}

.detail-field input[type="number"] {
  appearance: textfield;
}

.detail-field input[type="number"]::-webkit-outer-spin-button,
.detail-field input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.share-dialog.is-bottom-sheet {
  width: min(620px, calc(100vw - 22px));
  max-width: none;
  margin: auto auto 12px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(17, 17, 17, 0.22);
}

.share-dialog.is-bottom-sheet::backdrop {
  background: rgba(17, 17, 17, 0.48);
}

.share-dialog.is-bottom-sheet .dialog-head {
  min-height: 66px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.share-dialog.is-bottom-sheet .dialog-head h2 {
  grid-column: 2;
  font-size: 24px;
}

.sheet-done {
  grid-column: 3;
  justify-self: end;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 20px;
  font-weight: 850;
}

.sheet-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.sheet-row,
.sheet-option {
  width: 100%;
  min-height: 74px;
  padding: 0 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  align-items: center;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.sheet-row:last-child,
.sheet-option:last-child {
  border-bottom: 0;
}

.sheet-row {
  grid-template-columns: 52px 1fr;
  justify-items: center;
}

.sheet-row span {
  justify-self: start;
  font-size: 24px;
  font-weight: 650;
}

.sheet-row svg,
.sheet-option > svg {
  width: 26px;
  height: 26px;
}

.sheet-option {
  grid-template-columns: 1fr 34px;
  gap: 20px;
}

.sheet-option strong,
.sheet-option small {
  display: block;
}

.sheet-option strong {
  font-size: 22px;
}

.sheet-option small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.35;
}

.sheet-option > svg {
  color: #c5c5c5;
}

.sheet-option.is-selected > svg {
  color: #35c65d;
}

.sheet-disclosure.is-selected .sheet-option > svg {
  color: #35c65d;
}

.sheet-disclosure {
  border-bottom: 1px solid var(--line);
}

.sheet-disclosure:last-child {
  border-bottom: 0;
}

.sheet-disclosure .sheet-option {
  border-bottom: 0;
}

.sheet-subrow {
  width: 100%;
  min-height: 64px;
  padding: 0 24px;
  border: 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 24px;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  background: #fbfbf8;
  text-align: left;
}

.sheet-subrow span {
  font-size: 20px;
  font-weight: 650;
}

.sheet-subrow strong {
  color: var(--muted);
  font-size: 20px;
  font-weight: 800;
}

.sheet-subrow svg {
  width: 22px;
  height: 22px;
  color: var(--muted);
}

.percent-picker {
  width: 100%;
  margin: 58px auto 0;
  display: grid;
  gap: 2px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.percent-picker button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.percent-picker button span {
  font-size: 24px;
}

.percent-picker button small {
  color: inherit;
  font-size: 22px;
  font-weight: 800;
}

.percent-picker button.is-selected {
  color: var(--ink);
  background: #f0f0ee;
  border-color: var(--line);
}

.nested-sheet-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: end;
  background: rgba(17, 17, 17, 0.3);
}

.nested-sheet-panel {
  width: min(620px, 100vw);
  margin: 0 auto;
  min-height: 350px;
  padding: 12px 18px 28px;
  border-radius: 28px 28px 0 0;
  background: var(--paper);
  box-shadow: 0 -18px 70px rgba(17, 17, 17, 0.18);
}

.nested-sheet-head {
  min-height: 46px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nested-sheet-head .sheet-done {
  padding: 4px 0 4px 18px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(4, 184, 89, 0.28);
  outline-offset: 2px;
}

.money-field input:focus-visible {
  outline: 0;
}

body.is-sell-detail .topbar,
body.is-sell-detail .bottom-nav {
  display: none;
}

body.is-sell-detail .main {
  padding-top: 18px;
  padding-bottom: 28px;
}

@media (max-width: 860px) {
  .sell-screen {
    padding: 0 18px 92px;
  }

  .sell-top h1 {
    font-size: 58px;
  }

  .sell-card {
    min-height: 420px;
  }

  .sell-detail {
    padding: 0 18px 92px;
  }
}

@media (max-width: 560px) {
  .sell-screen {
    padding: 0 18px 92px;
  }

  .sell-top {
    margin-bottom: 18px;
  }

  .sell-top h1 {
    font-size: 52px;
  }

  .sell-card {
    min-height: 390px;
    padding: 30px 18px 22px;
  }

  .sell-plus {
    width: 132px;
    height: 132px;
  }

  .sell-plus svg {
    width: 66px;
    height: 66px;
  }

  .sell-media-stage {
    width: 100%;
    max-width: 100%;
    gap: 14px;
  }

  .sell-media-grid {
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }

  .sell-media-nav {
    width: 42px;
    height: 42px;
  }

  .sell-media-nav.is-prev {
    left: 4px;
  }

  .sell-media-nav.is-next {
    right: 4px;
  }

  .sell-media-nav svg {
    width: 23px;
    height: 23px;
  }

  .sell-media-tile {
    flex-basis: clamp(248px, 78%, 390px);
    border-radius: 24px;
  }

  .sell-media-item-remove {
    width: 52px;
    height: 52px;
    top: 12px;
    right: 12px;
  }

  .sell-media-item-remove svg {
    width: 28px;
    height: 28px;
  }

  .sell-media-duration {
    top: 14px;
    left: 14px;
    min-height: 40px;
    padding: 0 16px;
    font-size: 19px;
  }

  .sell-media-count {
    min-height: 44px;
    padding: 0 18px;
    font-size: 19px;
  }

  .sell-add-more-media {
    min-height: 44px;
    padding: 0 16px;
    font-size: 16px;
  }

  .sell-media-button strong {
    font-size: 34px;
  }

  .sell-price > span:first-child {
    font-size: 24px;
  }

  .sell-price-input {
    font-size: 64px;
  }

  .sell-price-input input {
    width: 4ch;
  }

  .sell-row {
    min-height: 64px;
    padding: 0 14px;
  }

  .sell-row span {
    font-size: 18px;
  }

  .sell-row strong {
    font-size: 17px;
  }

  .sell-generate {
    min-height: 64px;
    margin-top: 28px;
    font-size: 22px;
  }

  .sell-detail {
    padding: 0 10px 92px;
  }

  .sell-detail-top {
    grid-template-columns: 48px minmax(0, 1fr) 74px;
  }

  .sell-detail-top h1 {
    font-size: 28px;
  }

  .sell-back-button {
    width: 46px;
    height: 46px;
  }

  .sell-back-button svg {
    width: 34px;
    height: 34px;
  }

  .sell-detail-icon {
    width: 92px;
    height: 92px;
    margin: 44px auto 34px;
  }

  .sell-detail-icon svg {
    width: 50px;
    height: 50px;
  }

  .sell-detail-fields {
    gap: 24px;
  }

  .detail-field > span {
    font-size: 24px;
  }

  .detail-field small {
    font-size: 18px;
  }

  .detail-field input,
  .detail-field textarea {
    font-size: 20px;
  }

  .detail-field input {
    min-height: 62px;
    padding: 0 24px;
  }

  .money-field {
    min-height: 62px;
    padding: 0 24px;
    font-size: 20px;
  }

  .money-field input {
    min-height: auto;
    padding: 0;
  }

  .detail-field textarea {
    min-height: 142px;
    padding: 24px;
  }

  .sheet-row,
  .sheet-option {
    min-height: 66px;
    padding: 0 18px;
  }

  .sheet-row span {
    font-size: 20px;
  }

  .sheet-option strong {
    font-size: 20px;
  }

  .sheet-option small {
    font-size: 15px;
  }

  .sheet-subrow {
    min-height: 58px;
    padding: 0 18px;
  }

  .sheet-subrow span,
  .sheet-subrow strong {
    font-size: 17px;
  }

  .percent-picker button {
    min-height: 42px;
  }

  .percent-picker button span {
    font-size: 22px;
  }

  .percent-picker button small {
    font-size: 20px;
  }

  .nested-sheet-panel {
    min-height: 328px;
    padding: 10px 16px 26px;
    border-radius: 24px 24px 0 0;
  }

  .percent-picker {
    margin-top: 50px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--soft);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

svg {
  display: block;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.brand,
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand {
  padding: 8px 10px 28px;
  font-size: 24px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
}

.brand-mark svg {
  width: 19px;
  height: 19px;
}

.nav-stack {
  display: grid;
  gap: 6px;
}

.nav-item,
.bottom-nav button {
  border: 0;
  color: var(--muted);
  background: transparent;
}

.nav-item {
  min-height: 48px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  font-weight: 750;
}

.nav-item:hover,
.nav-item.is-active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-item.is-active svg {
  color: var(--green);
}

.nav-item svg {
  width: 21px;
  height: 21px;
}

.sidebar-status {
  margin-top: auto;
  min-height: 48px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--paper);
  font-size: 14px;
  font-weight: 700;
}

.status-light {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 28px 28px 70px;
}

.topbar {
  position: relative;
  z-index: 60;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 38px;
}

.mobile-brand {
  display: none;
}

.top-actions,
.profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-actions {
  position: relative;
  z-index: 70;
  margin-left: auto;
  padding: 4px;
  gap: 4px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(16px);
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
}

.icon-button:hover {
  border-color: #c7c2b8;
}

.icon-button.danger:hover {
  border-color: #ffc1b6;
  color: var(--coral);
  background: var(--coral-soft);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.top-share-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #111111;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.18);
}

.top-share-button:hover {
  border-color: transparent;
  background: #202020;
  transform: translateY(-1px);
}

.top-share-button:focus-visible,
.user-chip:focus-visible {
  outline: 3px solid rgba(4, 184, 89, 0.22);
  outline-offset: 3px;
}

.top-share-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.25;
}

.user-chip {
  height: 38px;
  padding: 0 9px 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-left: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
}

.user-chip span:first-child {
  display: none;
}

.user-chip:hover {
  background: rgba(17, 17, 17, 0.04);
}

.account-caret {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.18s ease;
}

.user-chip[aria-expanded="true"] .account-caret {
  transform: rotate(180deg);
}

.account-dropdown {
  position: absolute;
  z-index: 80;
  top: 58px;
  right: 0;
  width: min(246px, calc(100vw - 28px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.16);
}

.account-dropdown[hidden] {
  display: none;
}

.account-dropdown-head {
  padding: 8px;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.account-dropdown-head .account-avatar {
  width: 40px;
  height: 40px;
}

.account-dropdown-head strong,
.account-dropdown-head small {
  display: block;
}

.account-dropdown-head strong {
  line-height: 1.1;
}

.account-dropdown-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.logout-button {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--coral);
  background: transparent;
  font-weight: 900;
  text-align: left;
}

.logout-button:hover {
  background: var(--coral-soft);
}

.logout-button svg {
  width: 18px;
  height: 18px;
}

.avatar-mini {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
  font-size: 14px;
  font-weight: 900;
}

.avatar-mini.has-image {
  color: transparent;
  background-color: var(--paper);
  background-position: center;
  background-size: cover;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.section-heading {
  margin-bottom: 22px;
}

.page-hero {
  overflow: hidden;
  margin-bottom: 18px;
  padding: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  font-size: 58px;
  line-height: 0.98;
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow) {
  max-width: 580px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 750;
}

.hero-stats,
.link-overview {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.hero-stats {
  min-width: 250px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-stats span,
.link-overview span {
  padding: 14px;
  display: grid;
  align-content: center;
  background: rgba(255, 255, 255, 0.92);
}

.hero-stats strong,
.link-overview strong {
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

.hero-stats small,
.link-overview small {
  margin-top: 7px;
  color: var(--muted);
  font-weight: 850;
}

.create-hero,
.wallet-hero {
  border-color: #111111;
  color: var(--paper);
  background: #111111;
}

.create-hero .eyebrow,
.wallet-hero .eyebrow {
  color: var(--yellow);
}

.create-hero p:not(.eyebrow),
.wallet-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.create-hero .hero-stats,
.wallet-hero .hero-stats {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.16);
}

.create-hero .hero-stats span,
.wallet-hero .hero-stats span {
  background: rgba(255, 255, 255, 0.1);
}

.create-hero .hero-stats small,
.wallet-hero .hero-stats small {
  color: rgba(255, 255, 255, 0.66);
}

.analytics-hero {
  border-color: #cbd9ff;
  background: var(--blue-soft);
}

.library-hero {
  box-shadow: none;
}

.section-heading h1,
.profile-head h1 {
  margin: 0;
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading .eyebrow,
.profile-head .eyebrow {
  margin-top: 0;
}

.inline-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.62fr);
  gap: 18px;
  align-items: start;
}

.tool-panel,
.preview-phone {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.create-form {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.panel-kicker {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
}

.panel-kicker > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
}

.panel-kicker svg {
  width: 20px;
  height: 20px;
}

.panel-kicker strong,
.panel-kicker small {
  display: block;
}

.panel-kicker small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.upload-zone {
  position: relative;
  min-height: 214px;
  padding: 22px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px dashed #c8c4ba;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.upload-zone:hover {
  transform: translateY(-1px);
  border-color: var(--green);
  background: #f6fff9;
}

.upload-zone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-icon,
.bundle-icon {
  display: inline-grid;
  place-items: center;
  color: var(--green);
  background: var(--green-soft);
}

.upload-icon {
  width: 72px;
  height: 72px;
  border-radius: 8px;
}

.upload-icon svg {
  width: 34px;
  height: 34px;
}

.upload-title {
  font-size: 28px;
  font-weight: 900;
}

.upload-meta {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span:first-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea,
.money-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  outline: 0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field input,
.field select,
.field textarea {
  padding: 0 14px;
}

.field textarea {
  min-height: 96px;
  padding-top: 14px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.money-input:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.money-input {
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.handle-input {
  width: 100%;
  min-height: 52px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.handle-input span {
  color: var(--muted) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  text-transform: none !important;
}

.handle-input input {
  width: 100%;
  min-height: 48px;
  padding: 0;
  border: 0;
  outline: 0;
  font-weight: 850;
}

.handle-input:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.money-input span {
  color: var(--ink) !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  text-transform: none !important;
}

.money-input input {
  min-height: 48px;
  padding: 0;
  border: 0;
  box-shadow: none;
  font-size: 22px;
  font-weight: 900;
}

.requirement-strip {
  min-height: 74px;
  padding: 12px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.requirement-count {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--coral);
  font-weight: 900;
}

.requirement-strip strong,
.requirement-strip span {
  display: block;
}

.requirement-strip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.launch-checklist {
  margin-bottom: 14px;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.launch-checklist-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.launch-checklist-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
}

.launch-checklist-icon svg {
  width: 24px;
  height: 24px;
}

.launch-checklist .eyebrow {
  margin: 0 0 4px;
  color: var(--green);
}

.launch-checklist h2,
.launch-checklist p {
  margin: 0;
}

.launch-checklist h2 {
  font-size: 24px;
  line-height: 1.05;
}

.launch-checklist p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 750;
}

#launch-checklist-progress {
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 14px;
}

.launch-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #efeee9;
}

.launch-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 0.22s ease;
}

.launch-checklist-items {
  display: grid;
  gap: 8px;
}

.launch-checklist-item {
  width: 100%;
  min-height: 70px;
  padding: 12px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  text-align: left;
}

.launch-checklist-item:hover {
  border-color: #c7c2b8;
  background: #fbfaf7;
}

.launch-checklist-item.is-complete {
  border-color: #c7efd7;
  background: #f7fff9;
}

.launch-check {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  background: #f0efeb;
}

.launch-checklist-item.is-complete .launch-check {
  color: var(--paper);
  background: var(--green);
}

.launch-check svg {
  width: 19px;
  height: 19px;
}

.launch-item-copy strong,
.launch-item-copy small {
  display: block;
}

.launch-item-copy strong {
  font-size: 16px;
  line-height: 1.15;
}

.launch-item-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 750;
}

.launch-item-action {
  min-height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 13px;
  font-weight: 900;
}

.launch-checklist-item.is-complete .launch-item-action {
  color: var(--muted);
  background: #efeee9;
}

.primary-button,
.secondary-button,
.small-button,
.buyer-button {
  min-height: 52px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 900;
}

.primary-button {
  border: 0;
  color: var(--paper);
  background: var(--ink);
}

.primary-button:hover {
  background: #2b2b2b;
}

.primary-button.compact {
  min-height: 44px;
  padding: 0 16px;
}

.secondary-button {
  border: 1px solid #565656;
  color: var(--ink);
  background: var(--paper);
}

.small-button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  color: var(--green);
  background: var(--green-soft);
}

.primary-button svg,
.secondary-button svg,
.small-button svg,
.buyer-button svg {
  width: 20px;
  height: 20px;
}

.preview-panel {
  position: sticky;
  top: 28px;
}

.preview-phone {
  padding: 16px;
  box-shadow: 0 20px 50px rgba(17, 17, 17, 0.12);
}

.preview-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 900;
}

.preview-price {
  color: var(--ink);
}

.locked-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: #f4f3ef;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.05);
}

.locked-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lock-plate {
  position: absolute;
  inset: auto 14px 14px auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--paper);
  background: rgba(17, 17, 17, 0.86);
}

.lock-plate svg {
  width: 24px;
  height: 24px;
}

.preview-phone h2 {
  margin: 16px 0 8px;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: 0;
}

.preview-phone p {
  min-height: 48px;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.buyer-button {
  width: 100%;
  border: 0;
  color: var(--paper);
  background: var(--green);
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.segmented button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: #e9e8e4;
  font-weight: 900;
}

.segmented button.is-selected {
  color: var(--green);
  background: var(--green-soft);
}

.link-overview {
  margin-bottom: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-list,
.profile-links {
  display: grid;
  gap: 12px;
}

.link-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: #c7c2b8;
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.1);
}

.link-media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #f0efeb;
}

.link-media img {
  width: 128px;
  height: 96px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.link-status {
  position: absolute;
  left: 8px;
  top: 8px;
  min-height: 26px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.link-status.is-expired {
  color: #ffffff;
  background: #777777;
}

.link-card h2,
.panel-title h2,
.bundle-panel h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.link-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 650;
}

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

.link-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.metric-pill {
  min-height: 28px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
  color: #4d4d4d;
  background: #f0efeb;
  font-size: 13px;
  font-weight: 850;
}

.metric-pill svg {
  width: 15px;
  height: 15px;
}

.link-price {
  min-width: 94px;
  text-align: right;
}

.link-price strong,
.link-price span {
  display: block;
}

.link-price strong {
  font-size: 22px;
  letter-spacing: 0;
}

.link-price span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

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

.link-actions .icon-button {
  width: 40px;
  height: 40px;
}

.empty-state {
  min-height: 310px;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 1px dashed #c8c4ba;
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
}

.empty-state .upload-icon {
  width: 64px;
  height: 64px;
}

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

.chart-panel {
  grid-column: 1 / -1;
  padding: 22px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.metric-row span,
.stat-panel span,
.balance-panel span {
  display: block;
  color: var(--muted);
  font-weight: 850;
}

.metric-row strong,
.balance-copy strong {
  display: block;
  margin-top: 8px;
  font-size: 54px;
  line-height: 1;
  letter-spacing: 0;
}

.metric-row .muted {
  color: #a5a5a5;
}

.chart {
  width: 100%;
  height: 260px;
  overflow: visible;
}

.chart line {
  stroke: #efeee9;
  stroke-width: 2;
}

#chart-line-shadow {
  fill: none;
  stroke: #7d7d7d;
  stroke-width: 10;
  stroke-linecap: round;
  opacity: 0.12;
}

#chart-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
  font-weight: 800;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend b {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  display: inline-block;
}

.legend-current {
  background: var(--green);
}

.legend-previous {
  background: #7d7d7d;
}

.stat-panel,
.balance-panel {
  padding: 20px;
}

.stat-panel {
  min-height: 164px;
  position: relative;
  overflow: hidden;
}

.stat-panel > svg {
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  color: var(--green);
}

.stat-panel strong {
  display: block;
  margin-top: 10px;
  font-size: 52px;
  line-height: 1;
}

.stat-panel small {
  color: var(--muted);
  font-weight: 800;
}

.stat-panel.accent {
  background: var(--blue-soft);
  border-color: #ccdafd;
}

.stat-panel.accent > svg {
  color: var(--blue);
}

.stat-panel.warm {
  background: var(--coral-soft);
  border-color: #ffd8cf;
}

.stat-panel.warm > svg {
  color: var(--coral);
}

.wallet-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: start;
}

.balance-panel {
  display: grid;
  gap: 22px;
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.balance-copy small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 800;
}

.balance-panel span {
  color: rgba(255, 255, 255, 0.72);
}

.balance-panel .primary-button {
  color: var(--paper);
  background: var(--green);
}

.balance-panel .primary-button:hover {
  background: #029f4d;
}

.wallet-method {
  padding-top: 18px;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.wallet-method > svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 8px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.12);
}

.wallet-method strong,
.wallet-method span {
  display: block;
}

.wallet-method strong {
  font-size: 16px;
  line-height: 1.2;
}

.wallet-method span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 750;
}

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

.wallet-grid > .tool-panel:not(.balance-panel) {
  padding: 20px;
}

.panel-title span {
  min-width: 34px;
  min-height: 30px;
  padding: 0 10px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 900;
}

.operation-list {
  display: grid;
  gap: 10px;
}

.operation-row {
  min-height: 58px;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.operation-row:last-child {
  border-bottom: 0;
}

.operation-row .op-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
}

.operation-row strong,
.operation-row span {
  display: block;
}

.operation-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.operation-row b {
  font-size: 18px;
}

.profile-hero {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.profile-cover {
  position: relative;
  display: block;
  width: 100%;
  height: 184px;
  min-height: 184px;
  max-height: 184px;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
}

.profile-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.profile-cover input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.08), rgba(17, 17, 17, 0.42));
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.profile-cover:hover img {
  transform: scale(1.025);
}

.profile-cover:hover::after {
  opacity: 1;
}

.cover-action {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
}

.cover-action {
  left: 18px;
  bottom: 16px;
  min-height: 40px;
  padding: 0 13px;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.52);
  backdrop-filter: blur(12px);
  font-weight: 900;
}

.cover-action svg {
  width: 18px;
  height: 18px;
}

.profile-head {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) 48px;
  align-items: end;
  gap: 20px;
  margin-top: -54px;
  padding: 0 20px;
}

.profile-avatar {
  position: relative;
  overflow: visible;
  width: 124px;
  height: 124px;
  display: block;
  border: 5px solid var(--paper);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.14);
  cursor: pointer;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.profile-avatar input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-avatar:hover img {
  transform: scale(1.03);
  filter: brightness(0.82);
}

.avatar-camera {
  position: absolute;
  right: -8px;
  bottom: -8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 3px solid var(--paper);
  border-radius: 999px;
  color: var(--paper);
  background: rgba(17, 17, 17, 0.88);
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.24);
}

.avatar-camera svg {
  width: 18px;
  height: 18px;
}

.profile-copy {
  min-width: 0;
  padding-top: 76px;
}

.profile-copy h1 {
  margin: 0;
  color: #0f3158;
  font-size: 46px;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.profile-copy p:last-child {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.profile-head .icon-button {
  margin-bottom: 10px;
}

.profile-stats {
  margin: 18px;
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.profile-stats span {
  min-height: 58px;
  padding: 0 14px;
  display: grid;
  align-content: center;
}

.profile-stats span + span {
  border-left: 1px solid var(--line);
}

.profile-stats strong,
.profile-stats small {
  display: block;
}

.profile-stats strong {
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0;
}

.profile-stats small {
  margin-top: 7px;
  color: var(--muted);
  font-weight: 850;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 18px 18px;
}

.profile-actions .primary-button {
  background: var(--green);
}

.profile-actions .primary-button:hover {
  background: #04a850;
}

.bundle-panel {
  min-height: 94px;
  padding: 16px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  background: #111111;
  color: var(--paper);
  box-shadow: var(--shadow);
}

.bundle-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
}

.bundle-panel p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.bundle-panel .small-button {
  color: var(--ink);
  background: var(--yellow);
}

.profile-storefront {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.profile-links {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.profile-tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.profile-tile:hover {
  transform: translateY(-2px);
  border-color: #c7c2b8;
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.1);
}

.profile-media {
  position: relative;
  overflow: hidden;
  background: #f0efeb;
}

.profile-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.price-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  min-height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: var(--paper);
  background: rgba(17, 17, 17, 0.88);
  font-size: 14px;
  font-weight: 900;
}

.profile-tile-copy {
  padding: 13px 14px 14px;
}

.profile-tile strong,
.profile-tile span {
  display: block;
}

.profile-tile span:not(.price-badge) {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.bottom-nav {
  display: none;
}

.share-dialog {
  width: min(480px, calc(100vw - 30px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.share-dialog::backdrop {
  background: rgba(17, 17, 17, 0.34);
}

.dialog-head {
  min-height: 64px;
  padding: 10px 12px 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
  margin: 0;
  font-size: 22px;
}

.dialog-body {
  padding: 18px;
}

.dialog-form {
  display: grid;
  gap: 14px;
}

.account-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  color: var(--ink);
  background: var(--yellow);
  font-size: 20px;
  font-weight: 900;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.settings-note,
.check-row {
  padding: 12px;
  display: grid;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.settings-note {
  grid-template-columns: 34px 1fr;
  color: var(--muted);
  font-weight: 800;
}

.settings-note svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
}

.check-row {
  grid-template-columns: 22px 1fr;
  color: var(--ink);
  font-weight: 800;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.settings-panel {
  display: grid;
  gap: 10px;
}

.settings-section-label {
  margin: 8px 2px -2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.settings-section-label:first-child {
  margin-top: 0;
}

.settings-row {
  width: 100%;
  min-height: 74px;
  padding: 12px;
  display: grid;
  grid-template-columns: 44px 1fr 22px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}

.settings-row:hover {
  border-color: #c7c2b8;
  background: #fbfaf7;
}

.settings-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
}

.settings-icon svg,
.settings-row > svg {
  width: 20px;
  height: 20px;
}

.settings-row > svg {
  color: var(--muted);
}

.settings-row strong,
.settings-row small {
  display: block;
}

.settings-row small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 750;
}

.share-box {
  padding: 12px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.share-url {
  overflow-wrap: anywhere;
  font-weight: 850;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 22px;
  bottom: 22px;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: var(--shadow);
  font-weight: 850;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .main {
    padding: 18px 18px 96px;
  }

  .topbar {
    margin-bottom: 24px;
  }

  .mobile-brand {
    display: inline-flex;
  }

  .studio-grid,
  .wallet-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    align-items: stretch;
    display: grid;
  }

  .hero-stats {
    min-width: 0;
  }

  .preview-panel {
    position: static;
  }

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

  .bottom-nav {
    position: fixed;
    z-index: 10;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 76px;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
  }

  .bottom-nav button {
    min-width: 44px;
    min-height: 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
  }

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

@media (max-width: 680px) {
  .main {
    padding-inline: 14px;
  }

  .page-hero h1,
  .section-heading h1,
  .profile-head h1 {
    font-size: 44px;
  }

  .field-grid,
  .link-overview,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .inline-heading {
    align-items: stretch;
  }

  .user-chip span:first-child {
    display: none;
  }

  .requirement-strip,
  .launch-checklist-item,
  .bundle-panel {
    grid-template-columns: 42px 1fr;
  }

  .requirement-strip .small-button,
  .launch-item-action,
  .bundle-panel .small-button {
    grid-column: 1 / -1;
  }

  .launch-checklist {
    padding: 14px;
  }

  .launch-checklist-head {
    grid-template-columns: 44px 1fr auto;
    gap: 10px;
  }

  .launch-checklist-icon {
    width: 44px;
    height: 44px;
  }

  .launch-checklist h2 {
    font-size: 22px;
  }

  .link-card {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
  }

  .link-media img {
    width: 86px;
    height: 78px;
  }

  .link-status {
    left: 6px;
    top: 6px;
    min-height: 22px;
    padding: 0 7px;
    font-size: 11px;
  }

  .link-price {
    grid-column: 1 / -1;
    text-align: left;
  }

  .link-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .link-actions .icon-button {
    flex: 1;
  }

  .metric-row {
    display: grid;
  }

  .metric-row strong,
  .balance-copy strong {
    font-size: 44px;
  }

  .profile-head {
    grid-template-columns: 96px minmax(0, 1fr) 44px;
    gap: 12px;
    margin-top: -40px;
    padding-inline: 14px;
  }

  .profile-avatar {
    width: 96px;
    height: 96px;
    border-width: 4px;
  }

  .profile-cover {
    height: 156px;
    min-height: 156px;
    max-height: 156px;
  }

  .profile-copy {
    padding-top: 56px;
  }

  .profile-copy h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  .profile-copy p:last-child {
    font-size: 14px;
    line-height: 1.35;
  }

  .profile-stats {
    margin: 14px;
  }

  .profile-stats span {
    padding-inline: 10px;
  }

  .profile-stats strong {
    font-size: 21px;
  }

  .profile-actions {
    margin: 0 14px 14px;
  }

  .toast {
    right: 14px;
    left: 14px;
    bottom: 92px;
    max-width: none;
  }
}
