/* Unimar Appstore — page-level styles: hero carousel, shelves, app tiles, app
   detail, reviews, lightbox, library/updates lists, developer portal. */

/* ---------- App icon ---------- */
.app-icon {
  display: block;
  flex: none;
  object-fit: contain;
  border-radius: 18%;
  filter: drop-shadow(0 3px 5px rgba(0, 30, 60, .28));
  background: transparent;
}

/* ---------- App tile (card) ---------- */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 12px;
  border-radius: var(--r-card);
  background: var(--tile);
  border: 1px solid var(--tile-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 1px 3px rgba(10, 40, 80, .10);
  transition: box-shadow .2s, transform .2s var(--ease), border-color .2s;
  min-width: 0;
}
.tile:hover, .tile:focus-within {
  border-color: var(--tile-hover-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 0 0 1px rgba(127, 208, 255, .45), 0 0 18px rgba(127, 208, 255, .55), 0 10px 20px -10px rgba(10, 40, 80, .4);
  transform: translateY(-2px);
}
.tile-top { display: flex; align-items: flex-start; gap: 12px; }
.tile .app-icon { width: 64px; height: 64px; }
.tile-badge { margin-left: auto; }
.tile-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none !important;
}
.tile-name::after { /* stretch the link over the whole card */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.tile-name:focus-visible { outline: none; box-shadow: none; }
.tile:has(.tile-name:focus-visible) { outline: 2px solid var(--accent-glow); outline-offset: 2px; }
.tile-pub { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 4px; min-width: 0; }
.tile-pub span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-sum {
  font-size: 12px;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
  margin: 0;
}
.tile-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; min-height: 28px; }
.tile-meta { font-size: 11.5px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; min-width: 0; }
.tile .act { position: relative; z-index: 2; margin-left: auto; flex: none; }
.tile .act .prog { width: 96px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
  gap: 14px;
}

/* ---------- Shelves (horizontal rows) ---------- */
.shelf-wrap { position: relative; }
.shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 214px;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 4px 2px 8px;
  margin: -4px -2px -8px;
}
.shelf::-webkit-scrollbar { display: none; }
.shelf > * { scroll-snap-align: start; }
.shelf-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  padding: 0;
  opacity: 0;
  transition: opacity .2s;
}
.shelf-nav.prev { left: -12px; }
.shelf-nav.next { right: -12px; }
.shelf-wrap:hover .shelf-nav:not([disabled]), .shelf-nav:focus-visible { opacity: 1; }
.shelf-nav[disabled] { opacity: 0 !important; }

/* ---------- Hero carousel ---------- */
.hero {
  position: relative;
  height: 330px;
  border-radius: var(--r-win);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  border: 1px solid rgba(0, 10, 30, .5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), var(--panel-shadow);
  background: #143a5e;
}
.hero::after { /* glass gloss over the whole hero */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .05) 50%, rgba(255, 255, 255, 0) 50.2%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 26px 34px 46px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility 0s linear .7s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; z-index: 1; }
/* layer 1: the app icon, hugely blurred — an instant colour wash */
.hero-wash {
  position: absolute;
  inset: -80px;
  z-index: -3;
  width: calc(100% + 160px);
  height: calc(100% + 160px);
  object-fit: cover;
  filter: blur(42px) saturate(190%) brightness(1.05);
  transform: scale(1.1);
}
/* layer 2: the first screenshot, full bleed, fades in when loaded */
.hero-art { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; opacity: 0; transform: scale(1.04); transition: opacity .8s ease, transform 7s ease-out; }
.hero-art img.is-loaded { opacity: 1; }
.hero-slide.is-active .hero-art img.is-loaded { transform: scale(1); }
/* layer 3: shade so the glass card reads on any artwork */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(4, 18, 36, .55), rgba(4, 18, 36, 0) 34%),
    linear-gradient(90deg, rgba(4, 18, 36, .55) 0%, rgba(4, 18, 36, .25) 48%, rgba(4, 18, 36, 0) 75%);
}
/* the frosted glass info card */
.hero-info {
  position: relative;
  display: grid;
  gap: 9px;
  align-content: center;
  min-width: 0;
  max-width: 560px;
  padding: 20px 24px 22px;
  border-radius: var(--r-win);
  background: linear-gradient(to bottom, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .07) 50%, rgba(255, 255, 255, .03) 50.5%, rgba(255, 255, 255, .08) 100%), rgba(8, 26, 48, .30);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(0, 10, 30, .45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32), 0 14px 34px -12px rgba(0, 10, 30, .7);
}
.hero-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #bfe8ff; text-shadow: 0 0 10px rgba(127, 208, 255, .8); }
.hero-title { display: flex; align-items: center; gap: 16px; }
.hero-title .app-icon { width: 72px; height: 72px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .45)); }
.hero-title h2 { font-size: 32px; font-weight: 700; letter-spacing: -.015em; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.hero-pub { font-size: 13px; opacity: .92; display: flex; align-items: center; gap: 6px; margin-top: 2px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.hero-pub .verified { color: #9fe0ff; }
.hero-sum { font-size: 14.5px; line-height: 1.5; text-shadow: 0 1px 4px rgba(0, 0, 0, .55); margin: 2px 0 0; }
.hero-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.hero-actions .act { gap: 10px; }
.hero-actions .act .note { color: rgba(255, 255, 255, .88); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); max-width: 190px; }
.hero-actions .act-busy { min-width: 260px; }
.hero-actions .prog-text, .hero-actions .prog-text .prog-stage, .hero-actions .prog-msg { color: #fff; }
.hero-meta { font-size: 12px; opacity: .9; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.hero-meta .stars-bg { color: rgba(255, 255, 255, .35); }

.hero-ctrl {
  position: absolute;
  z-index: 5;
  left: 44px; right: 24px; bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-dots { display: flex; gap: 7px; }
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .2);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  transition: background .2s, box-shadow .2s, width .25s;
}
.hero-dot[aria-selected="true"] { width: 26px; border-radius: 5px; background: linear-gradient(#fff, #bfe6ff); box-shadow: 0 0 8px rgba(127, 208, 255, .95); }
.hero-arrows { margin-left: auto; display: flex; gap: 6px; }
.hero-arrows .btn { width: 30px; min-width: 30px; height: 30px; padding: 0; border-radius: 50%; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cat-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-card);
  background: var(--tile);
  border: 1px solid var(--tile-edge);
  color: var(--text);
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 1px 3px rgba(10, 40, 80, .10);
  transition: box-shadow .2s, transform .2s var(--ease), border-color .2s;
}
.cat-tile:hover { border-color: var(--tile-hover-edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 0 16px rgba(127, 208, 255, .55); transform: translateY(-2px); }
.cat-tile b { display: block; font-size: 13.5px; }
.cat-tile small { color: var(--text-dim); }

/* ---------- Page header + sort bar ---------- */
.page-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.page-head h1 { display: flex; align-items: center; gap: 12px; }
.page-head .grow { min-width: 200px; }
.sortbar { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sortbar .select { width: auto; min-width: 150px; }
.seg { display: inline-flex; border: 1px solid var(--btn-edge); border-radius: var(--r-btn); overflow: hidden; box-shadow: 0 1px 1px rgba(10, 40, 80, .08); }
.seg button { border: 0; border-right: 1px solid var(--btn-edge); background: var(--btn-bg); padding: 4px 12px; min-height: 28px; cursor: pointer; font-size: 12px; color: var(--btn-text); }
.seg button:last-child { border-right: 0; }
.seg button:hover { background: var(--btn-hover-bg); }
.seg button[aria-pressed="true"] { background: var(--btn-active-bg); box-shadow: inset 0 2px 3px rgba(10, 50, 90, .25); font-weight: 600; }

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.pager .btn[aria-current="page"] { background: var(--btn-active-bg); box-shadow: inset 0 2px 4px rgba(10, 50, 90, .3); font-weight: 700; }

/* ---------- App detail ---------- */
.detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  padding: 24px;
}
.detail-head .app-icon { width: 128px; height: 128px; -webkit-box-reflect: below 2px linear-gradient(transparent 70%, rgba(255, 255, 255, .3)); }
.detail-title { display: grid; gap: 6px; min-width: 0; }
.detail-title h1 { font-size: 28px; word-break: break-word; }
.detail-pub { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.detail-sum { font-size: 14px; color: var(--text-dim); margin: 2px 0 0; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 6px; font-size: 12.5px; color: var(--text-dim); }
.detail-facts > span { display: inline-flex; align-items: center; gap: 5px; }
.detail-facts strong { color: var(--text); }
.detail-act { min-width: 240px; max-width: 280px; display: grid; gap: 8px; justify-items: stretch; }

.detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--gutter); align-items: start; margin-top: var(--gutter); }
.detail-main > * + *, .detail-side > * + * { margin-top: var(--gutter); }

.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 46%); gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shot {
  position: relative;
  scroll-snap-align: start;
  padding: 0;
  border: 1px solid rgba(0, 20, 40, .35);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, .08);
  cursor: zoom-in;
  aspect-ratio: 16 / 10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .45) inset, 0 6px 14px -8px rgba(0, 20, 50, .6);
  transition: box-shadow .2s, transform .2s var(--ease);
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 45%); pointer-events: none; }
.shot:hover { box-shadow: 0 0 0 1px rgba(127, 208, 255, .9) inset, 0 0 16px rgba(127, 208, 255, .65); transform: translateY(-2px); }

.desc { font-size: 13.5px; line-height: 1.65; }
.desc p { margin: 0 0 .9em; white-space: pre-line; }
.desc.is-clamped { max-height: 190px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }

.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 14px; margin: 0; font-size: 12.5px; }
.facts dt { color: var(--text-dim); white-space: nowrap; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.facts dd a[data-external] { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.facts dd a[data-external] .url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hash {
  display: flex; align-items: flex-start; gap: 6px;
  font: 11.5px/1.45 var(--mono);
  word-break: break-all;
  padding: 8px 8px 8px 10px;
}
.hash code { flex: 1; font-size: 11.5px; }

.ver-list { list-style: none; margin: 0; padding: 0; }
.ver-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 2px; border-top: 1px solid var(--divider); }
.ver-list li:first-child { border-top: 0; padding-top: 2px; }
.ver-num { font-weight: 600; font-variant-numeric: tabular-nums; }
.ver-meta { font-size: 12px; color: var(--text-dim); }
.ver-dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(#9cc8ea, #5f8fb8); box-shadow: 0 0 0 3px rgba(42, 138, 212, .12); }
.ver-list li:first-child .ver-dot { background: linear-gradient(#5be0d1, #14988b); box-shadow: 0 0 0 3px rgba(31, 181, 166, .2), 0 0 8px rgba(31, 181, 166, .6); }

.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; }
.req-list li { display: flex; align-items: center; gap: 8px; }
.req-ok { color: var(--accent-2); }
.req-bad { color: var(--danger); }

/* Reviews */
.rev-summary { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rev-big { font-size: 44px; font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.rev-list { display: grid; gap: 10px; margin-top: 14px; }
.review { padding: 12px 14px; border-radius: var(--r-card); background: var(--tile); border: 1px solid var(--tile-edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 13px;
  background: linear-gradient(hsl(var(--h, 205) 70% 62%), hsl(var(--h, 205) 65% 42%));
  border: 1px solid rgba(0, 0, 0, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
  flex: none;
}
.review-title { font-weight: 600; }
.review-body { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.review.is-new { animation: flashIn 1.2s ease; }
@keyframes flashIn { from { box-shadow: 0 0 0 2px var(--accent-glow), 0 0 18px var(--accent-glow); } }

.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; border: 0; padding: 0; margin: 0; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: rgba(110, 135, 160, .45); padding: 1px; border-radius: 3px; line-height: 0; }
.star-input label .i { width: 24px; height: 24px; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--star); filter: drop-shadow(0 0 3px rgba(255, 190, 60, .7)); }
.star-input input:focus-visible + label { outline: 2px solid var(--accent-glow); }
.review-form { display: grid; gap: 12px; }

/* ---------- Lightbox ---------- */
dialog.lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}
dialog.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
dialog.lightbox::backdrop { background: rgba(2, 10, 22, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lb-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.lb-top .grow { font-weight: 600; }
.lb-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 0 18px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 140px); margin: auto; display: block; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), 0 30px 80px rgba(0, 0, 0, .7); background: #0b1626; }
.lb-nav { width: 44px; height: 44px; border-radius: 50%; padding: 0; }
.lb-thumbs { display: flex; justify-content: center; gap: 8px; padding: 12px; }
.lb-thumbs button { width: 72px; aspect-ratio: 16 / 10; padding: 0; border-radius: 4px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .3); background: none; cursor: pointer; opacity: .55; transition: opacity .15s, box-shadow .15s; }
.lb-thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--accent-glow), 0 0 12px var(--accent-glow); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Action widget ---------- */
.act { display: flex; align-items: center; gap: 6px; }
.act-lg { display: grid; gap: 8px; align-items: stretch; }
.act-lg .btn-row { display: flex; gap: 6px; }
.act-lg .btn-row .btn { flex: 1; }
.act-lg .btn-row .btn-icon { flex: none; }
.act .note { font-size: 11.5px; color: var(--text-dim); line-height: 1.4; }
.act .note .i { width: 13px; height: 13px; vertical-align: -2px; }
.act-busy { display: flex; align-items: center; gap: 6px; min-width: 0; }
.act-busy .grow { min-width: 0; }
.act-lg .act-busy { align-items: flex-start; }
.act-sm-prog { display: grid; gap: 2px; width: 100px; }
.act-sm-prog .prog { height: 8px; }
.act-sm-prog span { font-size: 10.5px; color: var(--text-dim); text-align: right; font-variant-numeric: tabular-nums; }
.scope-select { font-size: 12px; min-height: 28px; }

/* ---------- Library (installed) & updates lists ---------- */
.lib-list { display: grid; gap: 8px; }
.lib-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--r-card);
  background: var(--tile);
  border: 1px solid var(--tile-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 1px 2px rgba(10, 40, 80, .08);
  transition: border-color .2s, box-shadow .2s;
}
.lib-row:hover { border-color: var(--tile-hover-edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 0 14px rgba(127, 208, 255, .45); }
.lib-row .app-icon { width: 48px; height: 48px; }
.lib-name { font-weight: 600; font-size: 14px; color: var(--text); }
.lib-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.lib-row .act { justify-content: flex-end; }
.lib-row .act .prog { width: 160px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .input { width: 240px; flex: 0 1 240px; }

.ver-arrow { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.ver-arrow .new { color: var(--accent-2); font-weight: 600; }

/* ---------- Developer portal ---------- */
.dev-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); align-items: start; }
.dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 30px 20px;
  border-radius: var(--r-card);
  border: 2px dashed rgba(42, 138, 212, .45);
  background: linear-gradient(rgba(255, 255, 255, .35), rgba(255, 255, 255, .12));
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--accent); box-shadow: 0 0 16px rgba(127, 208, 255, .5) inset; }
.dropzone.is-over { border-color: var(--accent-2); background: linear-gradient(rgba(31, 181, 166, .2), rgba(31, 181, 166, .06)); box-shadow: 0 0 22px rgba(80, 230, 210, .55) inset, 0 0 18px rgba(80, 230, 210, .45); }
.dropzone.is-disabled { opacity: .55; pointer-events: none; }
.dropzone .state-icon { width: 54px; height: 54px; border-radius: 14px; }
.dropzone b { font-size: 14px; }
.upl-list { display: grid; gap: 8px; margin-top: 12px; }
.upl { padding: 10px 12px; border-radius: var(--r-card); background: var(--tile); border: 1px solid var(--tile-edge); }
.upl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.upl-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upl.is-error .prog-bar { background: linear-gradient(#f08c7c, #c43a2a); box-shadow: none; }
.upl.is-done .prog-bar::after, .upl.is-error .prog-bar::after { display: none; }
.upl-status { font-size: 12px; color: var(--text-dim); margin-top: 4px; overflow-wrap: anywhere; }
.upl.is-error .upl-status { color: var(--danger); }
.mine { display: grid; gap: 8px; }
.mine-row { border-radius: var(--r-card); background: var(--tile); border: 1px solid var(--tile-edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.mine-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; }
.mine-head .app-icon { width: 40px; height: 40px; }
.mine-vers { padding: 0 12px 10px 64px; }
.mine-vers .ver-list li { grid-template-columns: minmax(0, 1fr) auto; }
.token-row { display: flex; gap: 8px; }
.token-row .input { flex: 1; font-family: var(--mono); }
.signed { display: flex; align-items: center; gap: 10px; }
.code-hint { font: 12px/1.6 var(--mono); padding: 10px 12px; overflow-x: auto; white-space: pre; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .detail-body { grid-template-columns: minmax(0, 1fr) 270px; }
}
@media (max-width: 1000px) {
  .detail-body { grid-template-columns: minmax(0, 1fr); }
  .dev-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .detail-head { grid-template-columns: auto minmax(0, 1fr); padding: 18px; gap: 16px; }
  .detail-head .app-icon { width: 88px; height: 88px; }
  .detail-title h1 { font-size: 22px; }
  .detail-act { grid-column: 1 / -1; max-width: none; min-width: 0; }
}
@media (max-width: 600px) {
  .hero { height: 400px; }
  .hero-slide { padding: 12px 12px 50px; align-items: flex-end; }
  .hero-info { padding: 14px 16px 16px; gap: 7px; width: 100%; }
  .hero-title { gap: 12px; }
  .hero-title h2 { font-size: 24px; }
  .hero-title .app-icon { width: 54px; height: 54px; }
  .hero-sum { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-meta { display: none; }
  .hero-actions .act .note { display: none; }
  .hero-actions .act-busy { min-width: 0; flex: 1; }
  .hero-ctrl { left: 20px; right: 14px; }
  .shelf { grid-auto-columns: 172px; }
  .tile .app-icon { width: 52px; height: 52px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 10px; }
  .tile { padding: 12px 11px 10px; }
  .tile-sum { display: none; }
  .tile-foot { flex-wrap: wrap; }
  .tile .act { margin-left: 0; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .panel { padding: 14px; }
  .lib-row { grid-template-columns: auto minmax(0, 1fr); }
  .lib-row .act { grid-column: 1 / -1; justify-content: flex-start; }
  .sortbar { margin-left: 0; width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .mine-vers { padding-left: 12px; }
  .lb-stage { grid-template-columns: minmax(0, 1fr); padding: 0 8px; }
  .lb-nav { display: none; }
}
