/* ==========================================================================
   Rivet — app shell (app.html): sidebar, views, cards, player bar, studio
   ========================================================================== */

/* ---------------------------------------------------------------- shell --- */
.app {
  display: flex;
  min-height: 100vh;
  padding-bottom: var(--player-h);
}

.side {
  width: 248px;
  flex: none;
  border-right: 1px solid var(--line-dim);
  background: var(--ink-2);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 20px 14px calc(var(--player-h) + 20px);
}
.side__brand { padding: 4px 10px 22px; display: block; }
.side__group { margin-bottom: 26px; }
.side__label {
  display: block; color: var(--text-5);
  padding: 0 10px 10px;
}
.side__link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 10px; border-radius: 12px;
  font-size: 15px; color: var(--text-2);
  min-height: 44px;
  transition: background .15s ease, color .15s ease;
}
.side__link:hover { background: var(--surface); color: var(--text); }
.side__link.is-active { background: var(--surface-2); color: var(--text); font-weight: 600; }
.side__link.is-active svg { color: var(--violet); }
.side__link svg { flex: none; color: var(--text-4); }
.side__follows img {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none;
}
.side__empty { padding: 4px 10px; color: var(--text-5); font-size: 13px; line-height: 1.5; }

.main { flex: 1; min-width: 0; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 10, 12, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dim);
  padding: 14px 28px;
  display: flex; align-items: center; gap: 16px;
}
.topbar__menu { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; place-items: center; }
.search {
  position: relative; flex: 1 1 320px; max-width: 460px;
}
.search .input { min-height: 46px; padding-left: 44px; border-radius: 999px; }
.search__icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--text-4); pointer-events: none;
}
.search__results {
  position: absolute; inset: calc(100% + 8px) 0 auto 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  max-height: 60vh; overflow-y: auto; padding: 8px; z-index: 50;
}
.search__results:empty { display: none; }
.search__row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: 10px; width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left;
  color: var(--text); font-family: inherit; font-size: 14.5px;
}
.search__row:hover { background: var(--surface-2); }
.search__row img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; }
.search__row img.is-round { border-radius: 50%; }

.view { padding: 32px 28px 56px; max-width: 1240px; }
.view__head { margin-bottom: 30px; }
.view__title { font-size: clamp(27px, 3.4vw, 42px); font-weight: 700; }
.view__sub { margin-top: 12px; color: var(--text-2); font-size: 16px; line-height: 1.6; max-width: 66ch; }

.sectionbar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin: 40px 0 18px;
}
.sectionbar h2 { font-size: 22px; font-weight: 700; }
.sectionbar:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- cards --- */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
.grid--wide { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid--mood { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.tcard {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px;
  text-align: left; width: 100%; cursor: pointer;
  font-family: inherit; color: var(--text);
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
  position: relative;
}
.tcard:hover { border-color: #3C3C48; transform: translateY(-2px); background: var(--surface-2); }
.tcard.is-current { border-color: var(--violet); }
.tcard__art {
  position: relative; border-radius: 10px; overflow: hidden;
  aspect-ratio: 1; background: var(--surface-2);
}
.tcard__art img { width: 100%; height: 100%; object-fit: cover; }
.tcard__play {
  position: absolute; right: 9px; bottom: 9px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--violet); color: var(--ink);
  border: 0; display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease;
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, .7);
}
.tcard:hover .tcard__play,
.tcard:focus-within .tcard__play,
.tcard.is-current .tcard__play { opacity: 1; transform: none; }
@media (hover: none) { .tcard__play { opacity: 1; transform: none; } }

.tcard__name {
  margin-top: 12px; font-weight: 600; font-size: 14.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tcard__by {
  margin-top: 4px; color: var(--text-4); font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tcard__tag {
  position: absolute; top: 20px; left: 20px;
  background: rgba(10, 10, 12, .82); backdrop-filter: blur(6px);
  border: 1px solid #45454F; color: var(--text-3);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; padding: 3px 7px; border-radius: 5px;
}

.acard { text-align: center; }
.acard .tcard__art { border-radius: 50%; }
.acard .tcard__name { text-align: center; }
.acard .tcard__by { text-align: center; }

.moodcard {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 18px; background: var(--surface); cursor: pointer;
  text-align: left; width: 100%; font-family: inherit; color: var(--text);
  min-height: 104px; display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color .16s ease, background .16s ease;
}
.moodcard:hover { border-color: var(--violet); background: var(--surface-2); }
.moodcard b { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.moodcard span { color: var(--text-4); font-size: 12.5px; margin-top: 8px; display: block; }

/* ------------------------------------------------------------ track list - */
.tlist { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.trow {
  display: grid;
  grid-template-columns: 34px 46px 1fr auto auto;
  gap: 14px; align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-dim);
  background: var(--surface);
  cursor: pointer; width: 100%; text-align: left;
  font-family: inherit; color: var(--text); border-left: 0; border-right: 0; border-top: 0;
  transition: background .14s ease;
}
.trow:last-child { border-bottom: 0; }
.trow:hover { background: var(--surface-2); }
.trow.is-current { background: var(--surface-2); }
.trow.is-current .trow__title { color: var(--violet); }
.trow__n { color: var(--text-5); font-family: var(--mono); font-size: 12px; text-align: center; }
.trow img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
.trow__title { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow__by { color: var(--text-4); font-size: 12.5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow__plays { color: var(--text-4); font-size: 13px; font-family: var(--mono); }
.trow__acts { display: flex; gap: 4px; }
.trow__icon {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: none;
  color: var(--text-4); cursor: pointer; display: grid; place-items: center;
}
.trow__icon:hover { background: var(--surface-3); color: var(--text); }
.trow__icon.is-on { color: var(--violet); }
@media (max-width: 680px) {
  .trow { grid-template-columns: 26px 44px 1fr auto; gap: 11px; padding: 10px 12px; }
  .trow__plays { display: none; }
}

/* ------------------------------------------------------------ artist page - */
.ahero { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; margin-bottom: 30px; }
.ahero__img {
  width: 180px; height: 180px; border-radius: 50%; object-fit: cover; flex: none;
  border: 1px solid var(--line);
}
.ahero__body { flex: 1 1 300px; min-width: 0; }
.ahero__name { font-size: clamp(32px, 5vw, 58px); font-weight: 800; }
.ahero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.ahero__bio { margin-top: 16px; color: var(--text-2); line-height: 1.6; max-width: 60ch; }
.ahero__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--line);
  margin-bottom: 26px; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 13px 18px; border: 0; background: none; cursor: pointer;
  color: var(--text-3); font-family: inherit; font-size: 15px; font-weight: 500;
  border-bottom: 2px solid transparent; white-space: nowrap; min-height: 48px;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-bottom-color: var(--violet); font-weight: 600; }

/* store rows */
.storerow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); margin-bottom: 12px;
}
.storerow img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.storerow__body { flex: 1 1 180px; min-width: 0; }
.storerow__split { color: var(--text-5); font-size: 12.5px; margin-top: 4px; }

/* ---------------------------------------------------------------- video --- */
.vgrid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.vcard { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.vcard video { width: 100%; display: block; background: #000; aspect-ratio: 16/9; }
.vcard__body { padding: 16px 18px 18px; }

/* --------------------------------------------------------------- studio --- */
.kpis { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kpi { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; background: var(--surface); }
.kpi__n { font-family: var(--display); font-weight: 700; font-size: 32px; letter-spacing: -.035em; margin-top: 10px; }
.kpi__d { color: var(--text-5); font-size: 12.5px; margin-top: 8px; line-height: 1.5; }

.ledger { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.ledger th {
  text-align: left; padding: 14px 16px; font-weight: 500; color: var(--text-4);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.ledger td { padding: 14px 16px; border-bottom: 1px solid var(--line-dim); vertical-align: top; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .num { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.ledger .pos { color: var(--violet); }
.ledger .neg { color: var(--warn); }
.ledger .off { color: var(--text-5); text-decoration: line-through; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

.split-row {
  display: grid; grid-template-columns: 1fr 1fr 92px 44px; gap: 10px; align-items: end;
  margin-bottom: 10px;
}
@media (max-width: 620px) { .split-row { grid-template-columns: 1fr 1fr; } }

.dropzone {
  border: 1.5px dashed #3A3A46; border-radius: var(--radius);
  padding: 40px 24px; text-align: center; background: var(--surface);
  transition: border-color .16s ease, background .16s ease;
}
.dropzone.is-over { border-color: var(--violet); background: var(--surface-2); }

.meter { height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 12px; }
.meter span { display: block; height: 100%; background: var(--violet); border-radius: 99px; }

/* ----------------------------------------------------------- player bar --- */
.pb {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(16, 16, 20, .96);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  height: var(--player-h);
}
.pb__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px; align-items: center;
  height: 100%; padding: 0 20px;
}
.pb__now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pb__art { width: 54px; height: 54px; border-radius: 9px; object-fit: cover; flex: none; }
.pb__meta { min-width: 0; }
.pb__title {
  display: block; font-size: 14.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pb__artist {
  display: block; font-size: 12.5px; color: var(--text-4); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pb__artist:hover { color: var(--violet); }

.pb__controls { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pb__buttons { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pb__icon {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: none;
  color: var(--text-3); cursor: pointer; display: grid; place-items: center;
  transition: color .15s ease, background .15s ease;
}
.pb__icon:hover { color: var(--text); background: var(--surface-3); }
.pb__opt[aria-pressed="true"] { color: var(--violet); }
.pb__play {
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--violet); color: var(--ink);
  cursor: pointer; display: grid; place-items: center; margin-inline: 4px;
  transition: transform .14s ease, background .16s ease;
}
.pb__play:hover { background: var(--violet-hi); }
.pb__play:active { transform: scale(.95); }
.pb__play svg { margin-left: 2px; }

.pb__scrub { display: flex; align-items: center; gap: 10px; }
.pb__t { font-family: var(--mono); font-size: 11px; color: var(--text-5); flex: none; min-width: 34px; }
.pb__t:last-child { text-align: right; }

.pb__range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 18px; background: none; cursor: pointer; margin: 0;
}
.pb__range::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: var(--surface-3); }
.pb__range::-moz-range-track { height: 4px; border-radius: 99px; background: var(--surface-3); }
.pb__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 13px; height: 13px; border-radius: 50%; background: var(--text);
  margin-top: -4.5px; border: 0;
}
.pb__range::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: var(--text); border: 0; }
.pb__range:hover::-webkit-slider-thumb { background: var(--violet); }
.pb__range:hover::-moz-range-thumb { background: var(--violet); }

.pb__right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pb__vol { max-width: 96px; }
.pb__volicon { color: var(--text-4); width: auto; height: auto; }
.pb__counted {
  color: var(--violet); border: 1px solid var(--violet); background: var(--violet-dim);
  padding: 4px 9px; border-radius: 99px; font-size: 9.5px; white-space: nowrap;
}
.pb__progress { display: none; }

@media (max-width: 1040px) {
  .pb__right { display: none; }
  .pb__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}
@media (max-width: 720px) {
  :root { --player-h: 70px; }
  .pb__inner { grid-template-columns: 1fr auto; gap: 12px; padding: 0 12px; }
  .pb__scrub { display: none; }
  .pb__buttons .pb__opt { display: none; }
  .pb__art { width: 46px; height: 46px; }
  .pb__save { display: none; }
  .pb__progress {
    display: block; position: absolute; left: 0; right: 0; top: 0;
    height: 2px; background: var(--surface-3);
  }
  .pb__progress span { display: block; height: 100%; background: var(--violet); width: 0; }
}

/* ------------------------------------------------------- responsive shell - */
.side__scrim {
  display: none; position: fixed; inset: 0; z-index: 70;
  background: rgba(0, 0, 0, .6);
}
.side__scrim.is-open { display: block; }

@media (max-width: 920px) {
  .side {
    position: fixed; z-index: 80; left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
    /* visibility, not just transform: a translated-offscreen sidebar is still
       in the tab order, so keyboard users would tab into an invisible menu */
    visibility: hidden;
    transition: transform .22s ease, visibility .22s ease;
    box-shadow: var(--shadow); width: 272px;
  }
  .side.is-open { transform: none; visibility: visible; }
  .topbar__menu { display: grid; }
  .view { padding: 24px 18px 48px; }
  .topbar { padding: 12px 18px; }
  .ahero__img { width: 120px; height: 120px; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  .grid--mood { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   Advertising (free tier only)
   ========================================================================== */

/* ---- audio-ad overlay on the player bar ---- */
.pb__ad {
  position: absolute; inset: 0; z-index: 2;
  background: var(--surface-2);
  border-top: 1px solid var(--violet);
  display: flex; flex-direction: column; justify-content: center;
}
/* `display: flex` above beats the `hidden` attribute's UA `display: none`, so
   without this the invisible overlay sits on top of the player and swallows
   every click on play/next/seek. Must stay next to the rule above. */
.pb__ad[hidden] { display: none; }
.pb__ad-inner {
  display: flex; align-items: center; gap: 14px;
  padding: 0 20px; min-width: 0;
}
.pb__ad-tag {
  flex: none; background: var(--violet); color: var(--ink);
  padding: 4px 9px; border-radius: 5px; font-weight: 600; font-size: 10px;
}
.pb__ad-copy { flex: 1; min-width: 0; }
.pb__ad-head {
  font-size: 14.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pb__ad-sub {
  font-size: 12.5px; color: var(--text-4); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pb__ad-count {
  flex: none; color: var(--text-3); font-size: 12px;
  min-width: 30px; text-align: right;
  text-transform: none;   /* .mono uppercases; "18s" reads better than "18S" */
  letter-spacing: .02em;
}
.pb__ad-bar { height: 3px; background: var(--line); margin-top: 10px; }
.pb__ad-bar span {
  display: block; height: 100%; background: var(--violet);
  width: 0; transition: width .9s linear;
}
@media (max-width: 560px) {
  .pb__ad-sub { display: none; }
  .pb__ad-inner { gap: 10px; padding: 0 12px; }
}

/* ---- display banner ---- */
.adbanner {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; margin-bottom: 28px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface);
}
.adbanner__tag {
  flex: none; align-self: flex-start;
  border: 1px solid #45454F; color: var(--text-4);
  padding: 3px 8px; border-radius: 5px; font-size: 9.5px;
}
.adbanner__body { flex: 1; min-width: 0; }
.adbanner__head { font-size: 15px; font-weight: 600; }
.adbanner__sub { font-size: 13.5px; color: var(--text-4); margin-top: 5px; line-height: 1.5; }
.adbanner__side { flex: none; text-align: right; }
.adbanner__by { color: var(--text-5); font-size: 9.5px; margin-top: 8px; }
@media (max-width: 620px) {
  .adbanner { flex-wrap: wrap; }
  .adbanner__side { width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; }
  .adbanner__by { margin-top: 0; }
}

/* ---- free-listening meter in the sidebar ---- */
.capmeter {
  margin: 4px 10px 0; padding: 12px 13px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface);
}
.capmeter.is-low { border-color: var(--warn); }
.capmeter__row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; color: var(--text-4);
}
.capmeter__left { font-size: 12px; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.capmeter__bar { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 10px; }
.capmeter__bar span { display: block; height: 100%; background: var(--violet); border-radius: 99px; }
.capmeter.is-low .capmeter__bar span { background: var(--warn); }
.capmeter__cta {
  display: inline-block; margin-top: 10px;
  font-size: 12.5px; color: var(--violet); font-weight: 600;
}

/* ---- allowance-exhausted paywall ---- */
.adcap {
  border: 1px solid var(--violet); border-radius: var(--radius);
  background: var(--surface); padding: 30px; margin-bottom: 30px;
}
.adcap__h { font-size: clamp(21px, 2.6vw, 28px); font-weight: 700; margin-top: 14px; }
.adcap__p { margin-top: 14px; color: var(--text-2); line-height: 1.65; max-width: 56ch; font-size: 15.5px; }

/* ---- upload: file list + pipeline explainer ---- */
.filelist { margin-top: 18px; text-align: left; }
.filelist:empty { display: none; }
.filerow {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin-top: 8px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--ink); font-size: 13.5px;
}
.filerow.is-ok { border-color: #2F4A1E; }
.filerow.is-bad { border-color: #5A2A2A; }
.filerow__name {
  flex: 1; min-width: 0; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.filerow__meta { flex: none; color: var(--text-5); font-size: 10.5px; }
.filerow__state { flex: none; color: var(--text-4); font-size: 10.5px; text-align: right; }
.filerow.is-ok .filerow__state { color: var(--violet); }
.filerow.is-bad .filerow__state { color: var(--danger); }

.pipeline { list-style: none; counter-reset: step; padding: 0; margin: 20px 0 0; }
.pipeline li {
  counter-increment: step;
  display: grid; grid-template-columns: 26px 1fr; gap: 12px;
  padding: 11px 0; border-top: 1px solid var(--line-dim);
}
.pipeline li:first-child { border-top: 0; padding-top: 0; }
.pipeline li::before {
  content: counter(step);
  font-family: var(--mono); font-size: 11px; color: var(--violet);
  border: 1px solid var(--line); border-radius: 6px;
  width: 24px; height: 24px; display: grid; place-items: center;
}
.pipeline b { font-size: 14.5px; font-weight: 600; display: block; }
.pipeline span { display: block; color: var(--text-4); font-size: 13px; margin-top: 4px; line-height: 1.5; }

/* ==========================================================================
   Store, tip jar, share link
   ========================================================================== */
.storehead { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-start; margin-bottom: 26px; }
.storehead .lede { flex: 1 1 340px; }
.storehead__ratio {
  flex: 0 1 280px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--grad-soft);
}
.storehead__ratio .mono { color: var(--violet); }
.storehead__ratio p { margin-top: 8px; font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
.storehead__ratio strong { color: var(--text); font-weight: 600; }

.storerow--feature { border-color: var(--violet); background: var(--grad-soft); align-items: flex-start; }
.storerow--feature img { width: 72px; height: 72px; }

.buybox { flex: 0 1 220px; }
.buybox__label { display: block; color: var(--text-4); margin-bottom: 7px; }
.buybox__row {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid #3A2E4A; border-radius: 10px;
  background: var(--ink); padding: 0 12px;
}
.buybox__row:focus-within { border-color: var(--violet); }
.buybox__cur { color: var(--text-3); font-family: var(--mono); font-size: 14px; }
.buybox__input {
  width: 100%; min-height: 42px; padding: 0 4px;
  background: none; border: 0; color: var(--text);
  font-family: var(--mono); font-size: 15px;
}
.buybox__input:focus { outline: none; }
.buybox__min { color: var(--text-5); font-size: 11.5px; margin: 7px 0 11px; line-height: 1.45; }

.tipjar {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
  justify-content: space-between;
  margin-top: 22px; padding: 22px;
  border: 1px dashed #3A2E4A; border-radius: var(--radius);
  background: var(--surface);
}

.linkbox {
  display: flex; align-items: center; gap: 10px;
  margin-top: 22px; padding: 8px 8px 8px 14px;
  border: 1px solid var(--violet); border-radius: 12px;
  background: var(--ink);
}
.linkbox__icon { color: var(--violet); display: grid; place-items: center; flex: none; }
.linkbox__input {
  flex: 1; min-width: 0; min-height: 40px;
  background: none; border: 0; color: var(--text);
  font-family: var(--mono); font-size: 14.5px;
}
.linkbox__input:focus { outline: none; }

.wherelist { list-style: none; padding: 0; margin: 0; }
.wherelist li { padding: 13px 0; border-top: 1px solid var(--line-dim); }
.wherelist li:first-child { border-top: 0; padding-top: 0; }
.wherelist b { display: block; font-size: 14.5px; font-weight: 600; }
.wherelist span { display: block; color: var(--text-4); font-size: 13px; margin-top: 4px; line-height: 1.55; }

@media (max-width: 620px) {
  .buybox { flex: 1 1 100%; }
  .storerow--feature { flex-direction: column; align-items: stretch; }
  .tipjar { flex-direction: column; align-items: flex-start; }
}
