@font-face {
  font-family: Creato;
  src: url("https://pisouno.cl/fonts/CreatoDisplay-Bold.otf");
}
@font-face {
  font-family: Avenir;
  src: url("https://pisouno.cl/fonts/Avenir.ttc");
}
* {
  box-sizing: border-box;
}
:root {
  --ink: oklch(17% 0.008 70);
  --raised: oklch(22% 0.01 70);
  --paper: oklch(95% 0.018 80);
  --muted: oklch(79% 0.02 80);
  --brass: oklch(72% 0.09 82);
  --brass-dark: oklch(58% 0.075 82);
  --red: oklch(61% 0.15 35);
  --line: oklch(95% 0.018 80/0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family:
    Avenir,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0.005em;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.topbar {
  height: 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: oklch(17% 0.008 70/0.96);
  z-index: 20;
}
.brand img {
  width: 104px;
  height: 48px;
  object-fit: contain;
  filter: invert(1) sepia(0.1);
}
.service {
  display: flex;
  gap: 10px;
  align-items: center;
}
.service small,
.service strong {
  display: block;
}
.service small {
  color: var(--muted);
  font-size: 11px;
}
.service strong {
  font-size: 13px;
  font-weight: 500;
}
.status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
}
.icon-button {
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--paper);
  padding: 5px 8px;
}
.account-button span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--raised);
  color: var(--brass);
  font-size: 11px;
}
.account-button b {
  font-size: 12px;
  font-weight: 500;
}
.icon-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.welcome {
  min-height: calc(100svh - 80px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  padding: clamp(32px, 5vw, 80px) clamp(20px, 4vw, 64px);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.welcome-copy {
  max-width: 680px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.19em;
  color: var(--brass);
  font-size: 10px;
  margin: 0 0 20px;
}
.welcome h1 {
  font-family: Creato, Georgia, serif;
  font-size: clamp(48px, 6vw, 94px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 0 0 28px;
}
.welcome-copy > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.65;
}
.mode {
  display: inline-flex;
  border: 1px solid var(--line);
  margin-top: 32px;
  padding: 3px;
  border-radius: 999px;
}
.mode button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
}
.mode button.active {
  background: var(--paper);
  color: var(--ink);
}
.hero-image {
  margin: 0;
  height: min(68vh, 720px);
  position: relative;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.05);
}
.hero-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--ink);
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.searchbar {
  display: none;
  padding: 24px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 260px 1fr;
  align-items: center;
}
.returning {
  padding: 52px clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: 0.8fr 1.3fr 0.9fr;
  gap: clamp(24px, 4vw, 60px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: stretch;
}
.returning-intro {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.member-mark {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--brass-dark);
  color: var(--brass);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.returning h2 {
  font-family: Creato, serif;
  font-size: 26px;
  margin: 3px 0 8px;
}
.returning p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}
.previous-order {
  border-left: 1px solid var(--line);
  padding-left: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.previous-order small {
  color: var(--brass);
  font-size: 11px;
}
.previous-order h3 {
  margin: 7px 0;
  font-size: 16px;
}
.previous-meta {
  display: flex;
  gap: 14px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 10px;
}
.previous-order button {
  border: 1px solid var(--brass-dark);
  background: transparent;
  color: var(--brass);
  padding: 13px 16px;
  white-space: nowrap;
}
.previous-order button span {
  margin-left: 10px;
}
.loyalty {
  border-left: 1px solid var(--line);
  padding-left: 30px;
  position: relative;
}
.loyalty > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.loyalty strong {
  font-family: Creato, serif;
  font-size: 34px;
}
.loyalty span {
  font-size: 11px;
  color: var(--brass);
}
.progress {
  height: 2px;
  background: var(--raised);
  margin-top: 18px;
}
.progress i {
  display: block;
  width: 80%;
  height: 100%;
  background: var(--brass);
}
.searchbar.open {
  display: grid;
}
.searchbar label {
  font-family: Creato, serif;
  font-size: 20px;
}
.searchbar input {
  background: transparent;
  color: var(--paper);
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  outline: 0;
}
.searchbar input:focus {
  border-color: var(--brass);
}
.categories {
  display: flex;
  gap: 4px;
  overflow: auto;
  padding: 18px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 80px;
  background: var(--ink);
  z-index: 15;
}
.categories button {
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
  font-size: 12px;
  border-radius: 999px;
}
.categories button.active {
  background: var(--raised);
  color: var(--paper);
}
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: clamp(36px, 6vw, 90px);
  padding: 64px clamp(20px, 4vw, 64px) 100px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 30px;
}
.section-heading h2,
.ledger h2,
.checkout h2 {
  font-family: Creato, Georgia, serif;
  font-size: 38px;
  letter-spacing: -0.035em;
  margin: 0;
}
.section-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.section-heading > p {
  font-size: 11px;
  color: var(--muted);
}
.product-list {
  border-top: 1px solid var(--line);
}
.product {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.product img {
  width: 150px;
  height: 120px;
  object-fit: cover;
  background: var(--raised);
}
.product h3 {
  font-size: 14px;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.product-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.favorite {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  width: 44px;
  height: 44px;
}
.favorite.active {
  color: var(--brass);
}
.product p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  max-width: 54ch;
}
.product .meta {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brass);
}
.product-action {
  text-align: right;
}
.product-action strong {
  display: block;
  font-weight: 500;
  margin-bottom: 12px;
}
.add {
  width: 44px;
  height: 44px;
  border: 1px solid var(--brass-dark);
  color: var(--brass);
  background: transparent;
  border-radius: 50%;
  font-size: 20px;
}
.add:hover,
.add:focus-visible {
  background: var(--brass);
  color: var(--ink);
}
.ledger {
  position: sticky;
  top: 160px;
  align-self: start;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.ledger-head > span {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.empty {
  min-height: 190px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.empty span {
  font-family: Creato, serif;
  font-size: 48px;
  color: var(--raised);
}
.empty p {
  max-width: 22ch;
  line-height: 1.5;
}
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item h4 {
  margin: 0 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.cart-item small {
  color: var(--muted);
}
.qty {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty button {
  border: 0;
  background: var(--raised);
  color: var(--paper);
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.cart-summary {
  padding-top: 20px;
}
.cart-summary > div {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 12px;
  color: var(--muted);
}
.cart-summary .total {
  font-size: 18px;
  color: var(--paper);
  padding: 18px 0;
}
.cart-summary button,
.checkout form > button,
.success button {
  width: 100%;
  border: 0;
  background: var(--brass);
  color: var(--ink);
  padding: 16px 18px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}
.cart-summary button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.cart-summary > small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 12px;
}
.mobile-cart {
  display: none;
}
.checkout {
  position: fixed;
  inset: 0;
  background: var(--paper);
  color: var(--ink);
  z-index: 40;
  transform: translateY(102%);
  transition: transform 0.45s var(--ease);
  display: grid;
  place-items: center;
}
.checkout.open {
  transform: none;
}
.checkout-close {
  position: absolute;
  right: 26px;
  top: 22px;
  border: 0;
  background: transparent;
  font-size: 34px;
  color: var(--ink);
}
.checkout-content {
  width: min(620px, calc(100% - 40px));
}
.express-checkout {
  gap: 10px !important;
}
.saved-option {
  width: 100%;
  border: 1px solid oklch(17% 0.008 70/0.16);
  background: transparent;
  color: var(--ink);
  padding: 16px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.saved-option.selected {
  border-color: var(--brass-dark);
}
.saved-option span {
  display: grid;
  gap: 4px;
}
.saved-option small {
  font-size: 10px;
  color: oklch(42% 0.01 70);
}
.saved-option strong {
  font-size: 13px;
}
.saved-option em {
  font-style: normal;
  font-size: 11px;
  color: oklch(42% 0.01 70);
}
.saved-option b {
  font-size: 11px;
  color: var(--brass-dark);
}
.inline-edit {
  display: none;
  padding: 14px 16px;
  background: oklch(90% 0.018 80);
}
.inline-edit.open {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
}
.inline-edit label {
  margin: 0;
}
.inline-edit button {
  border: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px;
}
.gift-note {
  margin: 10px 0 0;
}
.confirm-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid oklch(17% 0.008 70/0.16);
  padding: 18px 0 4px;
}
.confirm-total strong {
  font-family: Creato, serif;
  font-size: 24px;
}
.demo-note {
  display: block;
  text-align: center;
  color: oklch(40% 0.01 70);
  font-size: 10px;
}
.tracking {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 30px 0;
}
.tracking div {
  position: relative;
  text-align: center;
  border-top: 1px solid oklch(17% 0.008 70/0.16);
  padding-top: 15px;
  font-size: 10px;
}
.tracking i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(75% 0.01 70);
  top: -5px;
  left: calc(50% - 4px);
}
.tracking .done i,
.tracking .active i {
  background: var(--brass-dark);
}
.tracking .active {
  font-weight: 600;
}
.secondary-action {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid oklch(17% 0.008 70/0.2) !important;
  margin-bottom: 10px;
}
.checkout .section-note {
  color: oklch(40% 0.01 70);
}
.checkout-steps {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid oklch(17% 0.008 70/0.14);
  padding: 24px 0;
  margin-bottom: 28px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: oklch(40% 0.01 70);
}
.checkout-steps .active {
  color: var(--ink);
}
.checkout form {
  display: grid;
  gap: 18px;
}
.checkout label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.checkout input,
.checkout textarea {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid oklch(17% 0.008 70/0.25);
  background: transparent;
  padding: 11px 0;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  outline: 0;
}
.checkout textarea {
  min-height: 80px;
  resize: vertical;
}
.checkout .two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.checkout form > button {
  margin-top: 10px;
}
.success {
  display: none;
  text-align: center;
}
.success.show {
  display: block;
}
.success span {
  font-size: 44px;
  color: var(--brass-dark);
}
.success h3 {
  font-family: Creato, serif;
  font-size: 48px;
  margin: 12px;
}
.success p {
  color: oklch(45% 0.01 70);
  max-width: 42ch;
  margin: 0 auto 30px;
}
.success button {
  text-align: center;
  justify-content: center;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 28px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
}
.sr-status {
  position: fixed;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}
@media (max-width: 860px) {
  .topbar {
    height: 68px;
    padding: 0 16px;
    grid-template-columns: 1fr auto;
  }
  .brand img {
    width: 84px;
  }
  .service {
    display: none;
  }
  .account-button b {
    display: none;
  }
  .account-button {
    padding: 0;
  }
  .top-actions {
    gap: 6px;
  }
  .welcome {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 30px 16px 44px;
    gap: 28px;
  }
  .welcome h1 {
    font-size: 50px;
  }
  .hero-image {
    height: 42vh;
    order: -1;
  }
  .mode {
    margin-top: 18px;
  }
  .categories {
    top: 68px;
    padding: 12px 10px;
  }
  .returning {
    grid-template-columns: 1fr;
    padding: 34px 16px;
    gap: 26px;
  }
  .previous-order,
  .loyalty {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
  .previous-order {
    align-items: flex-end;
  }
  .previous-order p {
    max-width: 25ch;
  }
  .previous-order button {
    padding: 12px;
  }
  .previous-meta {
    flex-wrap: wrap;
  }
  .loyalty {
    padding-bottom: 4px;
  }
  .app-grid {
    grid-template-columns: 1fr;
    padding: 40px 16px 120px;
  }
  .ledger {
    display: none;
  }
  .product {
    grid-template-columns: 96px 1fr auto;
    gap: 14px;
  }
  .product img {
    width: 96px;
    height: 104px;
  }
  .product p {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-action strong {
    font-size: 12px;
  }
  .searchbar.open {
    display: block;
    padding: 18px 16px;
  }
  .searchbar label {
    display: block;
    margin-bottom: 12px;
  }
  .mobile-cart {
    position: fixed;
    display: flex;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 25;
    background: var(--paper);
    color: var(--ink);
    padding: 10px 10px 10px 16px;
    justify-content: space-between;
    align-items: center;
    transform: translateY(140%);
    transition: transform 0.3s var(--ease);
  }
  .mobile-cart.show {
    transform: none;
  }
  .mobile-cart small,
  .mobile-cart strong {
    display: block;
  }
  .mobile-cart small {
    font-size: 11px;
    color: oklch(38% 0.01 70);
  }
  .mobile-cart button {
    border: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 13px 18px;
  }
  .checkout .two {
    grid-template-columns: 1fr;
  }
  .checkout {
    overflow: auto;
    display: block;
    padding: 78px 0 30px;
  }
  .checkout-content {
    margin: auto;
  }
  .checkout-steps {
    gap: 14px;
    overflow: auto;
  }
  .saved-option {
    padding: 14px 12px;
  }
  .inline-edit.open {
    grid-template-columns: 1fr;
  }
  .tracking span {
    font-size: 9px;
  }
  footer {
    display: block;
    padding-bottom: 100px;
  }
  footer span {
    display: block;
    margin: 8px 0;
  }
}
/* Mi noche Piso Uno */
.profile-view {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: auto;
  background: var(--ink);
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 220ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 220ms;
}
.profile-view.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.profile-shell {
  min-height: 100%;
  max-width: 1440px;
  margin: auto;
  padding: 0 clamp(20px, 5vw, 76px) 80px;
}
.profile-header {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.profile-header h2 {
  margin: 7px 0 0;
  font:
    600 32px/1 Creato,
    sans-serif;
}
.eyebrow {
  color: var(--brass);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.profile-close {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 26px;
}
.profile-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 90px);
  padding-top: 44px;
}
.profile-nav {
  position: sticky;
  top: 32px;
  align-self: start;
  display: grid;
  gap: 4px;
}
.profile-nav button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
}
.profile-nav button.active {
  color: var(--paper);
}
.profile-nav button.active::before {
  content: "•";
  color: var(--brass);
  margin-right: 10px;
}
.profile-content {
  min-width: 0;
}
.member-level {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  padding: 8px 0 44px;
  border-bottom: 1px solid var(--line);
}
.level-copy {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.level-copy small {
  color: var(--muted);
  font-size: 12px;
}
.level-copy h3 {
  margin: 4px 0 10px;
  font:
    600 42px/1 Creato,
    sans-serif;
}
.level-copy p,
.level-progress p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.level-copy p strong {
  color: var(--paper);
}
.level-progress {
  align-self: center;
}
.level-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.level-progress .progress {
  margin: 12px 0 14px;
}
.profile-section {
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}
.profile-section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}
.profile-section-head h3 {
  margin: 7px 0 0;
  font:
    600 26px/1.1 Creato,
    sans-serif;
}
.profile-section-head > p {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.saved-orders {
  border-top: 1px solid var(--line);
}
.saved-order {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.order-date {
  display: grid;
  text-align: center;
  border: 1px solid var(--line);
  padding: 10px 6px;
}
.order-date strong {
  font:
    600 22px/1 Creato,
    sans-serif;
}
.order-date span,
.order-info small {
  color: var(--muted);
  font-size: 11px;
}
.order-info h4 {
  margin: 5px 0 6px;
  font-size: 16px;
}
.order-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.order-actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 7px 12px;
  align-items: center;
  justify-items: end;
}
.order-actions > strong {
  grid-column: 1/-1;
}
.order-actions button,
.rename-row button {
  min-height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  padding: 0 14px;
  font-size: 12px;
}
.order-actions .primary-inline {
  border-color: var(--brass-dark);
  color: var(--brass);
}
.rename-row {
  display: none;
  grid-template-columns: minmax(180px, 320px) auto;
  gap: 8px;
  margin-top: 12px;
}
.saved-order.renaming .rename-row {
  display: grid;
}
.rename-row input {
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--paper);
  padding: 0 12px;
}
.favorites-section,
.details-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.favorites-section .profile-section-head,
.details-section .profile-section-head {
  margin: 0;
}
.text-action {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--brass);
  font-size: 13px;
}
.text-action span {
  margin-left: 8px;
}
.detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 42px;
}
.detail-list div {
  display: grid;
  gap: 4px;
}
.detail-list small {
  color: var(--muted);
  font-size: 11px;
}
.detail-list strong {
  font-size: 13px;
}
body.profile-open {
  overflow: hidden;
}
@media (max-width: 760px) {
  .profile-shell {
    padding: 0 16px 64px;
  }
  .profile-header {
    min-height: 88px;
  }
  .profile-header h2 {
    font-size: 26px;
  }
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 0;
  }
  .profile-nav {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    overflow-x: auto;
    gap: 22px;
    padding: 14px 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .profile-nav button {
    flex: 0 0 auto;
  }
  .member-level {
    grid-template-columns: 1fr;
    padding-top: 8px;
  }
  .level-copy h3 {
    font-size: 36px;
  }
  .profile-section-head {
    display: block;
  }
  .profile-section-head > p {
    margin-top: 12px;
  }
  .saved-order {
    grid-template-columns: 50px 1fr;
    gap: 16px;
    align-items: start;
  }
  .order-actions {
    grid-column: 2;
    grid-template-columns: auto auto 1fr;
    justify-items: start;
  }
  .order-actions > strong {
    grid-column: auto;
    align-self: center;
  }
  .order-actions button {
    min-height: 44px;
  }
  .rename-row {
    grid-template-columns: 1fr;
  }
  .favorites-section,
  .details-section {
    grid-template-columns: 1fr;
  }
  .text-action {
    justify-self: start;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
