/* ─────────────────────────────────────────────────────────────
   SoftRack — the phone's app market.
   Aged paper on black: the same sepia the rest of the phone wears,
   but darker, because a storefront at night is lit from inside.
   Own file per project rule — never merged into phone-styles.css.
   ───────────────────────────────────────────────────────────── */

.sr-app {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: #141110;
  color: #e8dcc8;
  font-family: 'Courier New', Courier, monospace;
}

/* ── header ── */
.sr-head {
  position: relative;
  padding: 14px 12px 10px;
  text-align: center;
  border-bottom: 1px solid #3a322a;
  background: linear-gradient(180deg, #1c1815 0%, #141110 100%);
}
.sr-head-row {
  display: flex; align-items: center; gap: 10px; text-align: left;
}
.sr-brand {
  font-size: 20px; font-weight: bold; letter-spacing: 1px; color: #f0e4cd;
}
.sr-brand span { font-family: Georgia, 'Times New Roman', serif; }
.sr-tagline {
  margin-top: 3px; font-size: 8px; letter-spacing: 2.5px; color: #8b7d68;
}
.sr-back {
  background: none; border: none; color: #c9b892; cursor: pointer;
  font-family: inherit; font-size: 13px; padding: 2px 4px;
}

/* ── tabs ── */
.sr-tabs {
  display: flex; gap: 4px; padding: 8px 8px 4px; overflow-x: auto;
}
.sr-tab {
  flex: none; padding: 5px 11px; border-radius: 11px; cursor: pointer;
  background: transparent; color: #9c8d76;
  border: 1px solid transparent;
  font-family: inherit; font-size: 10px; letter-spacing: 0.5px;
}
.sr-tab.active { background: #e8dcc8; color: #241f1a; font-weight: bold; }

/* ── grid ── */
.sr-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px 6px; padding: 10px 8px 22px;
}
.sr-cell { text-align: center; cursor: pointer; }
.sr-icon {
  width: 54px; height: 54px; margin: 0 auto 5px;
  border-radius: 12px; overflow: hidden;
  background: #d9c9a8;
  box-shadow: 0 2px 7px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
}
.sr-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-icon.big { width: 68px; height: 68px; }
.sr-emoji { font-size: 27px; color: #241f1a; }
.sr-name { font-size: 10px; color: #ece1cd; }
.sr-cat  { font-size: 8px; color: #8b7d68; margin-top: 1px; }
.sr-stars { font-size: 8px; color: #c9a86b; letter-spacing: 0.5px; margin: 2px 0 4px; }

.sr-btn {
  display: inline-block; padding: 3px 13px; border-radius: 10px;
  border: 1px solid #5a4e3d; color: #e2d4b8;
  font-size: 9px; letter-spacing: 0.5px; background: #262019;
}
.sr-btn.done { color: #8b7d68; border-color: #3a322a; background: transparent; }

/* ── one listing ── */
.sr-listing { padding: 12px 14px 26px; }
.sr-listing-top { display: flex; gap: 12px; align-items: flex-start; }
.sr-listing-id { flex: 1; min-width: 0; }
.sr-title {
  font-size: 19px; font-weight: bold; color: #f2e7d2;
  font-family: Georgia, 'Times New Roman', serif;
}
.sr-blurb { font-size: 10px; color: #b3a48b; margin: 5px 0 4px; line-height: 1.45; }

.sr-section {
  margin: 16px 0 6px; font-size: 11px; font-weight: bold; color: #f0e4cd;
  font-family: Georgia, 'Times New Roman', serif;
}
.sr-about { font-size: 10px; color: #b3a48b; line-height: 1.5; }

.sr-meta {
  margin-top: 12px; border-top: 1px solid #332c25; padding-top: 8px;
  font-size: 10px;
}
.sr-meta div {
  display: flex; justify-content: space-between; padding: 3px 0;
}
.sr-meta span { color: #8b7d68; }
.sr-meta b { color: #ddd0b6; font-weight: normal; }

/* ── install ── */
.sr-progress-card {
  margin-top: 14px; padding: 11px 12px; border-radius: 6px;
  background: #ece1cd; color: #241f1a;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.5);
}
.sr-ring {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: 3px solid #241f1a; border-right-color: #cbbda3;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: bold;
  animation: srSpin 1.1s linear infinite;
}
@keyframes srSpin { to { transform: rotate(360deg); } }
.sr-progress-body { flex: 1; min-width: 0; }
.sr-progress-label { font-size: 13px; font-weight: bold; margin-bottom: 5px; }
.sr-bar {
  height: 7px; border-radius: 4px; background: #c6b69a; overflow: hidden;
}
.sr-bar i { display: block; height: 100%; background: #241f1a; transition: width 0.25s ease; }
.sr-mb { font-size: 9px; margin-top: 4px; color: #4a4038; }

.sr-cta {
  display: block; width: 100%; margin-top: 16px; padding: 11px;
  text-align: center; border-radius: 5px; cursor: pointer;
  background: #e8dcc8; color: #241f1a; border: none;
  font-family: inherit; font-size: 12px; font-weight: bold; letter-spacing: 1.5px;
}
.sr-cta.done,
.sr-cta.busy { background: transparent; color: #8b7d68; border: 1px solid #3a322a; cursor: default; }
.sr-cta.gated { background: #262019; color: #6d6154; border: 1px solid #3a322a; cursor: not-allowed; }
.sr-gate-note {
  margin-top: 7px; text-align: center; font-size: 9px; color: #6d6154;
  letter-spacing: 0.5px;
}

/* The phone has no visible scrollbars anywhere else. */
.sr-app::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* Brand mark, drawn rather than typed: an emoji here renders as a
   tofu box wherever the font is missing, which the first capture
   caught. A cart in two borders costs nothing and always shows. */
.sr-mark {
  display: inline-block; width: 13px; height: 10px;
  border: 2px solid #f0e4cd; border-top: none; border-radius: 0 0 3px 3px;
  position: relative; margin-right: 6px; vertical-align: 1px;
}
.sr-mark::before {
  content: ''; position: absolute; left: -5px; top: -3px;
  width: 5px; height: 2px; background: #f0e4cd; transform: rotate(-32deg);
}
.sr-mark::after {
  content: ''; position: absolute; left: 1px; bottom: -5px;
  width: 3px; height: 3px; border-radius: 50%;
  background: #f0e4cd; box-shadow: 6px 0 0 #f0e4cd;
}

/* Sarah's link, inside a Quickie bubble. Underlined rather than
   coloured - the bubble is already sepia and a blue web link would
   walk out of the room. */
.sr-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font-weight: bold;
}
.sr-link:active { opacity: 0.6; }

/* The grid needs its own exit - the listing's Back only goes up one
   level, which left the storefront a room with no door. */
.sr-back-home {
  position: absolute;
  left: 6px;
  top: 12px;
}
