/* F5: Sections, package lists, Search, the package page, depictions and the modal sheet. Sizes are the kit's @2x
   halved, or Cydia's points (docs/cydia.md); colours from the kit's layers as named, else the theme's variables. */

/* ---- "folder.png", redrawn: a #8e8e93 rounded square with a white folder; Cydia puts the section's count in it
   (12pt bold, in the folder's grey). ---- */
.folder {
  position: relative; flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='7' fill='%238e8e93'/%3E%3Cpath d='M5.5 10V7.2c0-.7.5-1.2 1.2-1.2h7.6c.5 0 .9.3 1.1.7L16.2 8H25c.7 0 1.2.5 1.2 1.2V10z' fill='%23eaeaeb'/%3E%3Crect x='3' y='9.5' width='26' height='17.5' rx='1.6' fill='%23fff'/%3E%3C/svg%3E") center / 32px 32px no-repeat;
}
.folder-count { margin-top: 5px; font-size: 12px; font-weight: bold; line-height: 1; color: #8e8e93; letter-spacing: -.02em; }
.all-sources-row .cell-inner { min-height: 53px; }
.sections .cell-inner { min-height: 46px; padding-left: 7px; gap: 9px; } /* folder at (7,7), name at x 48 */
.sections .cell-label { flex: 1; min-width: 0; font-size: 18px; line-height: 22px; }

/* ---- the virtualised list (nav/vlist.js) ---- */
.vlist { position: relative; contain: layout; }
.vlist-row, .vlist-header { position: absolute; top: 0; left: 0; right: 0; }
.vlist-header { z-index: 1; }
/* Placeholder rows under a package list: a fast fling can outrun drawing the real rows (they're placed once a frame),
   so the gap shows rows still loading instead of blank space. The real rows cover them; the list is only as tall
   as its items, so they stop where the list ends. */
.pkg-vlist {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='58'%3E%3Cg fill='%23808080'%3E%3Crect x='9' y='13' width='32' height='32' rx='7' fill-opacity='.22'/%3E%3Crect x='51' y='15' width='130' height='13' rx='4' fill-opacity='.2'/%3E%3Crect x='51' y='34' width='190' height='9' rx='3' fill-opacity='.13'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 260px 58px repeat-y,
    linear-gradient(transparent 57px, var(--keyline) 57px) 0 0 / 100% 58px repeat-y, var(--plain);
}
.vlist-sticky { position: sticky; top: 0; z-index: 2; margin-bottom: -23px; } /* top: 0 is just under the nav: sticky offsets count from inside the scroller's padding */

/* Package rows: 58px, the 32px icon, name in bold with the version beside it, the short description under. */
.pkg-row { height: 58px; contain: strict; background: var(--plain); border-bottom: 1px solid var(--keyline); }
.pkg-row > .cell-inner { height: 100%; min-height: 0; gap: 10px; padding: 0 12px 0 9px; }
.pkg-row > .cell-inner::after { /* the disclosure chevron, as on every Cydia package cell */
  content: ""; flex: none; width: 9px; height: 13px; background: var(--chevron) center / contain no-repeat;
}
.pkg-row > .cell-inner.is-pressed::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17.5 26.4'%3E%3Cpath fill='%23fff' d='M.07 4.23 9.12 13.27 0 22.26 4.12 26.38 17.47 13.03 4.43 0Z'/%3E%3C/svg%3E");
}
.pkg-icon {
  position: relative; flex: none; width: 32px; height: 32px; border-radius: 7px; overflow: hidden;
  display: grid; place-items: center; background: #8c99b3; box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.pkg-letter { font-size: 16px; font-weight: bold; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.3); }
.pkg-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; background: #fff; }
.pkg-icon img.loaded { opacity: 1; }
.pkg-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pkg-top { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.pkg-name { flex: 0 1 auto; min-width: 0; font-size: 17px; font-weight: bold; line-height: 21px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pkg-version { flex: none; margin-left: auto; max-width: 45%; font-size: 13px; color: var(--subtitle); text-align: right; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pkg-desc { font-size: 14px; line-height: 17px; color: var(--subtitle); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---- loading ---- */
.loading { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 40px 20px; font-size: 17px; color: var(--head); text-shadow: var(--emboss); }
.loading-spinner { /* UIActivityIndicatorViewStyleGray (nav/spinner.js), turned a spoke at a time */
  width: 20px; height: 20px; flex: none; background: var(--spinner-gray) center / 20px no-repeat;
  animation: hud-spin .96s linear infinite;
}
.depiction-slot .loading { margin: 20px; }
.page-body > .loading { height: 72%; margin: 0 20px; } /* a page still loading: the spinner in the middle (user 2026-11-17) */

/* ---- "grey search bar": 44px, #b5b9bd -> #d3dbdf (7%) -> #b3bdc5, a 1px #81919f line under it; the field is
   30px, 15px corners, white, a #7b8fa3 -> #a3afb9 edge and a soft inner shadow; the #93979d magnifier. ---- */
.search-bar {
  height: 44px; margin: 0; padding: 7px 5px; display: flex;
  background: linear-gradient(#81919f, #81919f) bottom / 100% 1px no-repeat, linear-gradient(#b5b9bd, #d3dbdf 7%, #b3bdc5);
}
.search-field {
  flex: 1; display: flex; align-items: center; height: 30px; padding: 0 10px 0 29px; border-radius: 15px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2393979d' fill-rule='evenodd' d='M6.5 0a6.5 6.5 0 0 1 5.3 10.3l4 4-1.5 1.5-4-4A6.5 6.5 0 1 1 6.5 0zm0 2a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9z'/%3E%3C/svg%3E") 10px 50% / 14px 14px no-repeat;
  border: 1px solid #a3afb9; border-top-color: #7b8fa3;
  box-shadow: inset 0 1.5px 2px rgba(35,31,32,.45);
}
.search-field input {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: none;
  font: inherit; font-size: 16px; color: #000; -webkit-user-select: text; user-select: text; -webkit-appearance: none; appearance: none;
}
.search-field input::placeholder { color: #b4b3b4; }
.search-field input::-webkit-search-decoration { -webkit-appearance: none; }
html[data-theme="dark"] .search-bar {
  background: linear-gradient(#000, #000) bottom / 100% 1px no-repeat, linear-gradient(#4c4c4c, #2a2a2a 7%, #1a1a1a);
}
html[data-theme="dark"] .search-field { background-color: #2b2e33; border-color: #15171a; }
html[data-theme="dark"] .search-field input { color: #fff; }
.search-note:empty { display: none; }
.search-note { margin: 30px 20px; }
/* F100: Recent's Clear sits at the right of the group header, in the header's own colour and emboss. */
.search-recent { padding-bottom: 10px; }
.search-recent .group-header { display: flex; justify-content: space-between; align-items: baseline; }
.recent-clear { border: 0; padding: 0 0 0 12px; background: none; font: inherit; font-size: 15px; font-weight: normal; color: var(--head); text-shadow: var(--emboss); }

/* ---- the package page ---- */
.group-footer { white-space: pre-line; }
.pkg-head-table { display: block; }
.pkg-head { display: flex; align-items: center; gap: 12px; padding: 10px; position: relative; min-height: 84px; }
.pkg-icon.large { width: 64px; height: 64px; border-radius: 12px; }
.pkg-icon.large .pkg-letter { font-size: 30px; }
.pkg-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-right: 40px; }
.pkg-head-name { font-size: 17px; font-weight: bold; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pkg-head-version { font-size: 14px; color: var(--detail); }
.pkg-head-size { position: absolute; right: 10px; bottom: 8px; font-size: 12px; color: var(--subtitle); }
.pkg-description { padding: 10px 12px; font-size: 15px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
a.cell-inner.download .cell-label { color: var(--detail); }

/* ---- Sileo depictions, drawn natively (screens/depiction.js) ---- */
.dep-card { padding: 4px 0; overflow: hidden; }
.dep { --dep-tint: var(--detail); font-size: 15px; line-height: 20px; color: var(--text); overflow-wrap: anywhere; }
.dep-header-image { display: block; width: 100%; max-height: 180px; object-fit: cover; }
.dep-stack { display: flex; flex-direction: column; }
.dep-stack.row { flex-direction: row; align-items: center; }
.dep-stack.row > * { flex: 1; min-width: 0; }
.dep-layer { display: grid; } .dep-layer > * { grid-area: 1 / 1; }
.dep-header { margin: 10px 12px 4px; font-size: 19px; line-height: 23px; font-weight: bold; }
.dep-subheader { margin: 2px 12px 6px; font-size: 15px; color: var(--subtitle); } .dep-subheader.bold { font-weight: bold; color: var(--text); }
.dep-label { margin: 4px 12px; }
.dep-markdown { padding: 2px 12px; -webkit-user-select: text; user-select: text; }
.dep-markdown p { margin: 6px 0; }
.dep-markdown h3, .dep-markdown h4, .dep-markdown h5, .dep-markdown h6 { margin: 10px 0 4px; font-size: 16px; }
.dep-markdown ul, .dep-markdown ol { margin: 6px 0; padding-left: 22px; }
.dep-markdown img { max-width: 100%; height: auto; }
.dep-markdown code { font-family: Menlo, Courier, monospace; font-size: 13px; }
.dep a { color: var(--dep-tint); text-decoration: none; }
.dep-image { padding: 6px 12px; } .dep-image img { max-width: 100%; height: auto; }
.dep-shots { display: flex; gap: 10px; padding: 8px 12px; overflow-x: auto; touch-action: pan-x pan-y; overscroll-behavior-x: contain; }
.dep-shots img { flex: none; object-fit: cover; background: rgba(127,127,127,.15); }
.dep-row { display: flex; align-items: center; gap: 8px; min-height: 43px; padding: 0 12px; border-top: 1px solid var(--divider); }
.dep-row-title { flex: 1; font-weight: bold; } .dep-row-text { color: var(--detail); text-align: right; }
.dep-button-row { font-weight: bold; }
.dep-button-row::after { content: ""; margin-left: auto; flex: none; width: 9px; height: 13px; background: var(--chevron) center / contain no-repeat; }
.dep-button { display: block; margin: 6px 12px; padding: 10px; border-radius: 8px; text-align: center; font-weight: bold; color: #fff !important; background: var(--dep-tint); }
/* B18: Sileo's isLink buttons are plain tint-colour links; a nested view brings its own margins. */
.dep-button.link { padding: 0; border-radius: 0; text-align: inherit; font-weight: normal; color: var(--dep-tint) !important; background: none; }
.dep-button.has-view { margin: 0; }
.dep-button.has-view:not(.link) { margin: 6px 12px; }
.dep-button.link .dep-label { color: inherit !important; }
.dep-button-row.disabled, .dep-button.disabled { opacity: .5; pointer-events: none; }
.dep-separator { margin: 6px 12px; border: 0; border-top: 1px solid var(--divider); }

/* Segmented control (DepictionTabView): grey segments, the selected one in the kit's matte blue. */
.segmented { display: flex; margin: 8px 12px; border: 1px solid #8e8e8e; border-radius: 6px; overflow: hidden; }
.segment {
  flex: 1; height: 30px; padding: 0 6px; border: 0; cursor: pointer; font-size: 13px; font-weight: bold; color: #6b6b6b;
  text-shadow: 0 1px 0 rgba(255,255,255,.75); background: linear-gradient(#fdfdfd, #e2e2e2);
}
.segment + .segment { border-left: 1px solid #8e8e8e; }
.segment.selected { color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.35); background: var(--select); }

/* ---- the modal sheet (nav/sheet.js): its own blue nav bar with Done, slid up by transform ---- */
.sheet { position: fixed; inset: 0; z-index: 25; display: flex; flex-direction: column; background: var(--plain); will-change: transform; }
html.native .navbar.sheet-bar { display: block; } /* the app hides the web nav bar, not a sheet's */
.sheet-bar-row {
  position: absolute; left: 0; right: 0; top: env(safe-area-inset-top); height: 44px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 4px;
  padding: 0 max(5px, env(safe-area-inset-right)) 0 max(5px, env(safe-area-inset-left));
}
.sheet-right { justify-self: end; display: flex; }
.sheet-body { flex: 1; position: relative; min-height: 0; padding-bottom: env(safe-area-inset-bottom); }
.sheet-body > .sheet-scroll { position: absolute; inset: 0; }
.depiction-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }

/* ---- Changes tab (screens/changes.js): the version reads "New 1.0" or "Updated 1.2" (Cydian's addition) ---- */
.pkg-row[data-change="new"] .pkg-version::before { content: "New "; font-weight: bold; }
.pkg-row[data-change="updated"] .pkg-version::before { content: "Updated "; font-weight: bold; }

/* ---- Works on my phone (F17): a small outlined tag beside the name and on the package page; the switch row above
   the Sections list and Search's results ---- */
.pkg-compat {
  flex: none; padding: 0 4px; border: 1px solid currentColor; border-radius: 4px;
  font-size: 10px; font-weight: bold; line-height: 13px; white-space: nowrap; color: var(--subtitle);
}
.pkg-compat:empty { display: none; }
.pkg-compat[data-compat="works"] { color: #3e8e2f; }
.pkg-compat[data-compat="ios"], .pkg-compat[data-compat="rootful"], .pkg-compat[data-compat="rootless"],
.pkg-compat[data-compat="roothide"], .pkg-compat[data-compat="jailbreak"], .pkg-compat[data-compat="arch"] { color: #c0392b; }
:root[data-theme="dark"] .pkg-compat[data-compat="works"] { color: #7fcf6f; }
:root[data-theme="dark"] .pkg-compat[data-compat="ios"], :root[data-theme="dark"] .pkg-compat[data-compat="rootful"],
:root[data-theme="dark"] .pkg-compat[data-compat="rootless"], :root[data-theme="dark"] .pkg-compat[data-compat="roothide"],
:root[data-theme="dark"] .pkg-compat[data-compat="jailbreak"], :root[data-theme="dark"] .pkg-compat[data-compat="arch"] { color: #ff7b6b; }
.pkg-compat[data-compat="ipad"] { color: #c0392b; } /* F160: iPad-only (the IPA's UIDeviceFamily) */
:root[data-theme="dark"] .pkg-compat[data-compat="ipad"] { color: #ff7b6b; }
.pkg-head-text .pkg-compat { align-self: flex-start; }
.compat-filter .cell-inner { min-height: 50px; }

/* ---- Search's scope bar (F35): iOS 6's UISearchBar scope buttons under the field. The bar runs on in the search
   bar's grey and takes its bottom line; the segments are UISegmentBar's (UISegmentBarButton*.png, 30pt): a
   #3b4046 top edge, #abbacd -> #6581a4 inside (selected #97a9c1 -> #41618e), #586f8f under, 30% white below. ---- */
.search-bar.has-scope { background: linear-gradient(#b5b9bd, #d3dbdf 7%, #b3bdc5); }
.search-scope {
  display: flex; gap: 6px; height: 44px; padding: 7px 5px; align-items: flex-start;
  background: linear-gradient(#81919f, #81919f) bottom / 100% 1px no-repeat, linear-gradient(#b3bdc5, #aab5be);
}
.scope-segments { flex: 1; min-width: 0; display: flex; border-radius: 5px; box-shadow: 0 1px 0 rgba(255,255,255,.3); }
.scope-segment, .scope-filter {
  flex: 1; min-width: 0; height: 30px; padding: 0 4px; margin: 0; cursor: pointer; touch-action: manipulation;
  font: inherit; font-size: 12px; font-weight: bold; line-height: 28px; color: #fff; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; text-shadow: 0 -1px 0 rgba(0,0,0,.45);
  border: 1px solid #505e70; border-top-color: #3b4046; border-bottom-color: #586f8f; border-radius: 0;
  background: linear-gradient(#abbacd, #6581a4); background-origin: border-box;
}
.scope-segment + .scope-segment { border-left-color: #5e7597; }
.scope-segment:first-child { border-radius: 5px 0 0 5px; }
.scope-segment:last-child { border-radius: 0 5px 5px 0; }
.scope-segment.selected, .scope-segment:active, .scope-filter.selected, .scope-filter:active {
  border-color: #3e4e64; border-top-color: #343a42; border-bottom-color: #38547b;
  background: linear-gradient(#97a9c1, #41618e); background-origin: border-box;
}
.scope-segment.selected + .scope-segment { border-left-color: #43597b; }
.scope-filter { flex: none; padding: 0 10px; border-radius: 5px; box-shadow: 0 1px 0 rgba(255,255,255,.3); }
/* Filter becomes a blue Done while its panel is open (the nav bar's Done colours, sources.css). */
.scope-filter.done, html[data-theme="dark"] .scope-filter.done {
  border-color: #1f3f86; border-top-color: #30363e;
  background: linear-gradient(#79a1f3, #3b71e1 49%, #215fdd 51%, #2361dd); background-origin: border-box;
}
.scope-filter.done:active, html[data-theme="dark"] .scope-filter.done:active {
  background: linear-gradient(#5f86d6, #2a5bc0 49%, #164bb8 51%, #184db9); background-origin: border-box;
}
html[data-theme="dark"] .search-bar.has-scope { background: linear-gradient(#4c4c4c, #2a2a2a 7%, #1a1a1a); }
html[data-theme="dark"] .search-scope { background: linear-gradient(#000, #000) bottom / 100% 1px no-repeat, #1a1a1a; }
html[data-theme="dark"] .scope-segment, html[data-theme="dark"] .scope-filter {
  border-color: #111; background: linear-gradient(#4a4f58, #24272c); background-origin: border-box;
}
html[data-theme="dark"] .scope-segment.selected, html[data-theme="dark"] .scope-segment:active,
html[data-theme="dark"] .scope-filter.selected, html[data-theme="dark"] .scope-filter:active {
  border-color: #000; background: linear-gradient(#2a2d32, #121316); background-origin: border-box;
}
html[data-theme="dark"] .scope-segments, html[data-theme="dark"] .scope-filter { box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.filter-sheet .filter-clear .cell-label { color: var(--detail); }

/* ---- Compatibility marks (F35): a small round mark beside every package, like the old Cydia tweak that drew a
   check or an X: green check works, red X doesn't, grey ? the package doesn't say. Drawn as SVG; Settings > Show
   Compatibility Marks hides them (html[data-compat-marks="off"], browse.js). ---- */
.compat-mark { flex: none; align-self: center; width: 14px; height: 14px; background: center / contain no-repeat; }
.compat-mark:not([data-mark]) { display: none; }
html[data-compat-marks="off"] .compat-mark { display: none; }
.compat-mark.large { width: 18px; height: 18px; }
.compat-mark[data-mark="works"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3ClinearGradient id='g' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2384d65e'/%3E%3Cstop offset='1' stop-color='%23329c1c'/%3E%3C/linearGradient%3E%3Ccircle cx='14' cy='14' r='13' fill='url(%23g)' stroke='%23267a16' stroke-width='1.5'/%3E%3Cpath d='M8 14.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.compat-mark[data-mark="no"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3ClinearGradient id='g' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f2675c'/%3E%3Cstop offset='1' stop-color='%23c3211a'/%3E%3C/linearGradient%3E%3Ccircle cx='14' cy='14' r='13' fill='url(%23g)' stroke='%238f1610' stroke-width='1.5'/%3E%3Cpath d='M9.5 9.5l9 9M18.5 9.5l-9 9' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.compat-mark[data-mark="unknown"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3ClinearGradient id='g' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23c3c7cc'/%3E%3Cstop offset='1' stop-color='%238c929a'/%3E%3C/linearGradient%3E%3Ccircle cx='14' cy='14' r='13' fill='url(%23g)' stroke='%23707780' stroke-width='1.5'/%3E%3Cpath d='M10.4 11.2a3.6 3.6 0 1 1 5.4 3.1c-1.2.7-1.8 1.3-1.8 2.7' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='14' cy='20.6' r='1.8' fill='%23fff'/%3E%3C/svg%3E");
}
/* F160: an app whose source gives no iOS range and whose IPA isn't read yet on this device: the same ? outlined, no
   fill (opening the app's page reads it, core/ipainfo.js). The filled grey ? is "checked, still unknown". */
.compat-mark[data-mark="unchecked"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='12.5' fill='none' stroke='%238c929a' stroke-width='2'/%3E%3Cpath d='M10.4 11.2a3.6 3.6 0 1 1 5.4 3.1c-1.2.7-1.8 1.3-1.8 2.7' fill='none' stroke='%238c929a' stroke-width='2.6' stroke-linecap='round'/%3E%3Ccircle cx='14' cy='20.6' r='1.7' fill='%238c929a'/%3E%3C/svg%3E");
}
/* An exact match that can't work (Search, F35): the name in red, the reason under it. */
.pkg-name.incompatible { color: #c0392b; }
html[data-theme="dark"] .pkg-name.incompatible { color: #ff7b6b; }
.pkg-head-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pkg-head-top .pkg-head-name { min-width: 0; }
html[data-theme="dark"] .scope-segment + .scope-segment, html[data-theme="dark"] .scope-segment.selected + .scope-segment { border-left-color: #000; }

/* Search's Filter panel (screens/search.js): drops down from under the scope bar over the results only, between the
   scope bar and the tab bar; scrolls on its own. */
.filter-drop { position: fixed; left: 0; right: 0; bottom: var(--tab-h); z-index: 2; overflow: hidden; }
.filter-drop-inner {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 20px;
  background: repeating-linear-gradient(90deg, var(--pin-dark) 0 2.5px, var(--pin-light) 2.5px 8px) var(--pin-light);
  box-shadow: inset 0 3px 3px -2px rgba(0,0,0,.35);
}

/* ---- The action sheet (nav/actionsheet.js, F29): UIActionSheet's default style, from the 4S's UIAlertSheet* art.
   Panel (UIAlertSheetDefaultBackground, 84% opaque): a 1pt #3f4347 top edge, half a point of white, then
   #acb1b9 -> #5c626d over 33pt and flat below. Buttons (UIAlertSheetDefaultButton): 44pt, 10pt corners, a dark
   edge that fades inward, white -> #c2c3c5 (69%) -> #e3e3e3 face and a faint light line under the button (all
   in the art); pressed (…ButtonPressed) #91a2f0 -> #022bdc -> #3252e3 with white text. Cancel
   (…CancelButton) #7e8288 -> #2b3038 -> #383f46, white text, after a wider gap. Black style in the dark theme. ---- */
.action-scrim { position: fixed; inset: 0; z-index: 30; }
.action-dim { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.action-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 11px;
  padding: 21px 21px calc(22px + env(safe-area-inset-bottom));
  max-height: calc(100% - 20px - env(safe-area-inset-top)); overflow: hidden;
  background:
    linear-gradient(#3f4347, #3f4347) top / 100% 1px no-repeat,
    linear-gradient(rgba(255,255,255,.84), rgba(255,255,255,.84)) 0 1px / 100% .5px no-repeat,
    linear-gradient(rgba(172,177,185,.84) 1.5px, rgba(142,148,158,.84) 12px, rgba(107,113,123,.84) 26px, rgba(92,98,109,.84) 33px);
  will-change: transform;
}
/* The choices scroll here, Cancel pinned below; the padding keeps the buttons' outer shadow from clipping */
.action-list {
  display: flex; flex-direction: column; gap: 11px; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  margin: -2px -2px; padding: 2px; scrollbar-width: none;
}
.action-list::-webkit-scrollbar { display: none; }
body:has(.action-scrim) .scroll-indicator { z-index: 31; } /* the iOS 6 indicator (nav/scroller.js) over the sheet */
.action-title {
  margin: -6px 0 2px; font-size: 13px; line-height: 17px; text-align: center; color: #fff;
  text-shadow: 0 -1px 0 rgba(0,0,0,.5); white-space: pre-line; overflow-wrap: anywhere;
}
.action-button {
  flex: none; height: 44px; min-height: 44px; padding: 0 12px; margin: 0; cursor: pointer; touch-action: manipulation;
  font: inherit; font-size: 20px; font-weight: bold; line-height: 40px; color: #000; text-shadow: 0 1px 0 rgba(255,255,255,.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border: 1px solid rgba(0,0,0,.8); border-radius: 10px;
  box-shadow: inset 0 0 1.5px 1px rgba(0,0,0,.35), 0 1px 0 rgba(211,211,211,.23);
  background: linear-gradient(#fff, #fafafa 7%, #ebebec 23%, #d9d9db 38%, #c9cacc 54%, #c2c3c5 69%, #c5c6c7 77%, #cdcdcf 85%, #dcdcdd 92%, #e3e3e3);
  background-origin: border-box;
}
.action-button:active {
  color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.4);
  background: linear-gradient(#91a2f0, #7a90ec 7%, #6a82ea 23%, #4c69e6 38%, #2d4fe1 54%, #1036de 69%, #022bdc 77%, #0c33dd 85%, #2649df 92%, #3252e3);
  background-origin: border-box;
}
.action-button.destructive {
  color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.4); /* UIAlertSheetDefaultDestroyButton: Cydia's Remove isn't one */
  background: linear-gradient(#f59a9a, #e45c5c 30%, #cf1f1f 69%, #d52f2f); background-origin: border-box;
}
.action-button.cancel {
  margin-top: 14px; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.5);
  background: linear-gradient(#7e8288, #65676d 7%, #565a60 23%, #484b52 38%, #3b3f47 54%, #2e333b 69%, #2b3038 77%, #2c3139 85%, #333941 92%, #383f46);
  background-origin: border-box;
}
.action-button.cancel:active { background: linear-gradient(#5f6268, #3a3d43 50%, #1c2027); background-origin: border-box; }
html[data-theme="dark"] .action-sheet { /* UIAlertSheetBlackBackground: #232323 edge, #6a6a6a -> #040404 */
  background:
    linear-gradient(rgba(35,35,35,.89), rgba(35,35,35,.89)) top / 100% 1px no-repeat,
    linear-gradient(rgba(167,167,167,.82), rgba(167,167,167,.82)) 0 1px / 100% .5px no-repeat,
    linear-gradient(rgba(106,106,106,.73) 1.5px, rgba(81,81,81,.7) 12px, rgba(44,44,44,.65) 24px, rgba(9,9,9,.62) 36px, rgba(1,1,1,.6));
}
html[data-theme="dark"] .action-button:not(.cancel):not(.destructive):not(:active) { /* UIAlertSheetBlackButton */
  background: linear-gradient(#fbfbfb, #f5f5f5 15%, #f0f0f0 38%, #eee 46%, #e4e4e4 54%, #e4e4e4); background-origin: border-box;
}
html[data-theme="dark"] .action-button.cancel { /* UIAlertSheetBlackCancelButton */
  background: linear-gradient(#878787, #686868 7%, #545454 23%, #383838 38%, #1a1a1a 54%, #020202 69%, #000 77%, #131313); background-origin: border-box;
}

/* ---- The package page's head (F29): the author under the name, as a link to their packages ---- */
.pkg-head-author { font-size: 14px; color: var(--subtitle); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; }

/* ---- Version History (F29, browse.js renderVersions): one cell per version, version and marks on top, sources or
   date and size beside, release notes under; versions this iPhone can't run are greyed ---- */
.version-row .cell-inner { flex-direction: column; align-items: stretch; gap: 2px; padding-top: 9px; padding-bottom: 9px; }
.version-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.version-top .cell-label { flex: 0 1 auto; min-width: 0; font-weight: bold; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.version-top .cell-detail { margin-left: auto; font-size: 14px; }
.version-tag {
  flex: none; padding: 0 4px; border: 1px solid currentColor; border-radius: 4px;
  font-size: 10px; font-weight: bold; line-height: 13px; color: var(--detail); white-space: nowrap;
}
.version-sub { font-size: 14px; color: var(--subtitle); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.version-notes { margin: 2px 0 0; font-size: 14px; line-height: 18px; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.version-row.unavailable .cell-label, .version-row.unavailable .version-notes { color: var(--subtitle); }

/* The section index (nav/sectionindex.js): UITableView's, 12px bold slate letters spread down the right edge
   between the bars; held, a grey rounded backing behind them. */
.section-index {
  position: absolute; z-index: 4; right: 0; top: calc(var(--nav-h) + 6px); bottom: calc(var(--tab-h) + 6px); width: 18px;
  margin-right: max(2px, env(safe-area-inset-right)); display: flex; flex-direction: column; justify-content: space-between;
  align-items: center; padding: 4px 0; border-radius: 9px; touch-action: none; -webkit-user-select: none; user-select: none;
  font-size: 11px; font-weight: bold; line-height: 1; color: #59657a; cursor: pointer;
}
.section-index.held { background: rgba(0,0,0,.18); }
html[data-theme="dark"] .section-index { color: #9aa3b2; }
html[data-theme="dark"] .section-index.held { background: rgba(255,255,255,.15); }
.page-body[data-section-index] .pkg-row > .cell-inner { padding-right: 26px; } /* rows end before the index, as UITableView's */

/* Before the app's first page (index.html #boot): the pinstripes between the bars with Loading in the middle. */
.boot {
  position: fixed; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(90deg, var(--pin-dark) 0 2.5px, var(--pin-light) 2.5px 8px) var(--pin-light);
}

/* The clear button iOS 6 puts in a search field with text in it (Cydia's search on the 4S: ref/4s/screens/search-85.png):
   a grey circle with a white x at the field's right end. Drawn here since WebKit on iOS shows none; app.js clears
   the field on a tap there. */
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search-field::after {
  content: ""; display: none; flex: none; width: 19px; height: 19px; margin: 0 -5px 0 6px; border-radius: 50%;
  background: #b4b4b4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2l-6 6' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 9px 9px no-repeat;
}
.search-field:has(input:not(:placeholder-shown))::after { display: block; }
html[data-theme="dark"] .search-field::after { background-color: #6b6f75; }

/* Search's root page: the bar and scope row fixed at the top, the results their own scroller below. */
.page-body.search-root { overflow: hidden; display: flex; flex-direction: column; }
.search-root > .search-bar, .search-root > .search-scope { flex: none; }
.search-results { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; position: relative; }
.page-body.search-root::before { display: none; } /* the always-bounce spacer (ios6.css) belongs to the results now */
.search-results::before { content: ""; float: left; width: 1px; margin-right: -1px; height: calc(100% + 1px); }

/* F91: a signature's days left (Installed, Changes' Needs Re-sign, the app page's Signature row): the tab bar's red
   count badge (ios6.css .badge, its gloss and shadow) without the white ring, in green outside the re-sign window,
   amber inside it and red once expired. */
.sig-pill,
.cell[class*="sig-row-"] .cell-detail,
.pkg-row[data-change="resign"] .pkg-version {
  display: inline-block; flex: none; align-self: center; min-width: 20px; height: 20px; padding: 0 7px; border-radius: 10px;
  font-size: 13px; font-weight: bold; line-height: 20px; letter-spacing: -.02em; color: #fff; text-align: center;
  box-shadow: 0 1px 1.5px rgba(0,0,0,.45);
  background: linear-gradient(#b8eda6, #4fc232 48.8%, #3cb11d 50.5%, #24900a); /* ok */
}
.sig-pill[data-sig="soon"], .cell.sig-row-soon .cell-detail, .pkg-row[data-change="resign"][data-sig="soon"] .pkg-version {
  background: linear-gradient(#fde0a0, #f6a724 48.8%, #f2990b 50.5%, #c97900);
}
.sig-pill[data-sig="expired"], .cell.sig-row-expired .cell-detail, .pkg-row[data-change="resign"][data-sig="expired"] .pkg-version {
  background: linear-gradient(#f7b3b7, #e92d35 48.8%, #e70f19 50.5%, #c50103); /* .badge's red */
}
.pkg-row[data-change="resign"] .pkg-version::before { content: none; }
/* F103: Sileo's RatingView, ReviewView and WebView. Stars are drawn the iOS 6 App Store way: five grey stars, the
   filled ones dark, clipped to the rating (a fraction shows as part of a star). */
.dep-rating { margin: 4px 12px; line-height: 0; }
.dep-stars {
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23c4c4c4' d='M10 1l2.6 6.2 6.9.4-5.3 4.4 1.7 6.6L10 15l-5.9 3.6 1.7-6.6L.5 7.6l6.9-.4z'/%3E%3C/svg%3E");
  --star-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23666' d='M10 1l2.6 6.2 6.9.4-5.3 4.4 1.7 6.6L10 15l-5.9 3.6 1.7-6.6L.5 7.6l6.9-.4z'/%3E%3C/svg%3E");
  position: relative; display: inline-block; flex: none; vertical-align: middle; width: 70px; height: 14px;
  background: var(--star) left center / 14px 14px repeat-x;
}
.dep-stars-fill { position: absolute; inset: 0 auto 0 0; background: var(--star-on) left center / 14px 14px repeat-x; }
.dep-review { margin: 6px 10px; padding: 8px 10px; background: var(--table); border: 1px solid var(--table-edge); border-radius: 9.5px;
  box-shadow: inset 0 .5px .5px var(--table-inset); }
.dep-review-head { display: flex; align-items: center; gap: 8px; }
.dep-review-title { flex: 1; min-width: 0; font-weight: bold; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dep-review-author { font-size: 13px; line-height: 17px; color: var(--subtitle); }
.dep-review-body { padding: 0; }
.dep-web { padding: 6px 12px; line-height: 0; }
.dep-web iframe { display: inline-block; max-width: 100%; height: auto; border: 0; background: #fff; }

/* F125: Installed's Wish List page (screens/installed.js): package rows with sources.css's Edit and swipe Delete
   (.source-row's red minus and Delete); the chevron and the version make room as they do on a source row. */
.wish-row > .cell-inner::after, .wish-row .pkg-version { transition: opacity .2s ease; }
.editing .wish-row > .cell-inner::after, .wish-row.armed > .cell-inner::after, .wish-row.armed .pkg-version { opacity: 0; }

/* ---- F126: Cydia's package icons (PackageCell): the section icon (or unknown.png) behind the package's own, and a
   badge half the icon's size centred 11/32 of the way in from its corner (Cydia: 32 pt icon at (25,25), 16 pt badge
   at (36,36)). The artwork is Cydia's own (icons/sections/, GPLv3) and draws its own rounded corners. */
.pkg-art { position: relative; flex: none; display: block; width: 32px; height: 32px; }
.pkg-art.large { width: 64px; height: 64px; }
.pkg-icon.cy { width: 100%; height: 100%; box-shadow: none; background: transparent center / cover no-repeat; }
.pkg-badge { position: absolute; left: 19px; top: 19px; width: 16px; height: 16px; pointer-events: none; }
.pkg-art.large .pkg-badge { left: 38px; top: 38px; width: 32px; height: 32px; }
.pkg-badge[hidden], .pkg-badge.section { display: none; }
.pkg-art.own .pkg-badge.section:not([hidden]) { display: block; }

/* F127: Installed's User | Expert | Recent in the nav bar, as Cydia's bar-style UISegmentedControl on the 4S
   (ref/4s/screens/cydia-installed-user.png: 167pt wide, 30pt high, centred in place of the title), drawn with
   Search's segments. */
.nav-title.nav-title-view { display: flex; justify-content: center; line-height: normal; overflow: visible; max-width: none; }
.nav-segments { display: flex; width: 167px; }
.nav-segments .scope-segments { box-shadow: 0 1px 0 rgba(255,255,255,.25); }
/* With the A–Z index down the right edge (User, Expert), the rows and the search bar above the list stop short of it,
   as UISearchBar does over an indexed table on iOS 6. */
.page-body[data-section-index] > .installed-search, .page-body[data-section-index] > .installed-scope { padding-right: 24px; }
.page-body[data-section-index] > .installed-top { margin-right: 24px; }
.page-body[data-section-index] > .list-search { padding-right: 24px; } /* F124: Browse's list search ends before the A–Z index */

/* F147: Installed's Wish List bar button (screens/installed.js): beside the segmented title the name may end in "…",
   the count stays whole. */
.bar-button.wish-button { display: inline-flex; padding: 0 7px; }
.wish-button .wish-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wish-button .wish-count { flex: none; margin-left: .25em; }

/* ---- F154: Browse (screens/browse.js renderBrowseHome), from docs/concepts/browse/ in the app's own look. ---- */
/* Featured | New | Top 25: Search's scope bar at the top of the page (screens/browse.js filterBar). */
.browse-scope { margin-bottom: -1px; }
/* Tweak of the Day: one package on brushed slate (the concept's hero), the whole card a link. */
.browse-hero-slot { margin: 10px 10px 0; }
/* Its background is iOS 6's black glossy bar (UIButtonBarBlackOpaqueBackgroundTall, as behind Music's Now Playing):
   a #575757 top line, #303030 -> #141414 down the top half, black below (user 2026-11-18: the linen was too much, a
   white card too plain for the featured one). */
.browse-hero { display: block; border-radius: 9.5px; overflow: hidden; border: 1px solid #000; color: #fff; text-decoration: none;
  background: linear-gradient(#303030, #141414 50%, #000 50%); background-origin: border-box;
  box-shadow: inset 0 1px 0 #575757, 0 1px 0 rgba(255,255,255,.5); }
.browse-hero-kicker { display: block; padding: 9px 12px 0; font-size: 11px; font-weight: bold; letter-spacing: .08em; color: #c9d4e3;
  text-shadow: 0 -1px 0 rgba(0,0,0,.5); }
.browse-hero-row { display: flex; gap: 12px; align-items: center; padding: 8px 12px 10px; }
.browse-hero-icon { position: relative; flex: none; width: 57px; height: 57px; border-radius: 10px; overflow: hidden;
  background: center / cover no-repeat; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.browse-hero-icon img, .browse-icon-row .cell-icon img, .roulette-icon img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; background: #fff; }
.browse-hero-icon img.loaded, .browse-icon-row .cell-icon img.loaded, .roulette-icon img.loaded { opacity: 1; }
.browse-hero-words { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.browse-hero-name { font-size: 20px; font-weight: bold; text-shadow: 0 -1px 0 rgba(0,0,0,.5); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browse-hero-desc { font-size: 13px; line-height: 17px; color: #dfe6ef; text-shadow: 0 -1px 0 rgba(0,0,0,.4);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.browse-hero-foot { display: flex; justify-content: space-between; align-items: center; min-height: 24px; padding: 0 12px 11px; }
.browse-hero-meta { font-size: 12px; color: #c9d4e3; text-shadow: 0 -1px 0 rgba(0,0,0,.5); }
.browse-hero.is-loading .ph-bar, .browse-hero.is-loading .ph-box { background: rgba(255,255,255,.18); }
.browse-hero.is-loading .browse-hero-icon { box-shadow: none; }
/* The green pill (the concept's Install, here View: the package page installs), and Roulette's grey one. */
.browse-hero-view, .roulette-pill { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 4px;
  font: bold 12px/1 "Helvetica Neue", Helvetica, sans-serif; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.35); text-decoration: none;
  border: 1px solid #1d6a19; background: linear-gradient(#8fd96f, #3bab2f 50%, #2b9b21 51%, #35a52a); background-origin: border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35); cursor: pointer; }
.roulette-pill.grey { border-color: #8c8c8c; color: #385487; text-shadow: 0 1px 0 #fff;
  background: linear-gradient(#fdfdfd, #e3e3e3 50%, #d8d8d8 51%, #e4e4e4); background-origin: border-box; }
.roulette-pill:active { filter: brightness(.85); }
.browse-hero:active .browse-hero-view { /* the whole card is the link: pressing it presses View */
  border-color: #144d11; background: linear-gradient(#5aa845, #24801b 50%, #1b7313 51%, #217a17); background-origin: border-box;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
/* Rows with a section icon (Collections, New This Week, the Roulette row): the icon draws its own corners. */
.browse-icon-row .cell-icon { position: relative; overflow: hidden; background: transparent center / cover no-repeat; }
.browse-icon-row .cell-inner, .browse-ph { min-height: 58px; }
.browse-ph .ph-icon { margin-right: 0; }
.browse-head { display: flex; justify-content: space-between; align-items: baseline; }
.browse-see-all { border: 0; background: none; padding: 0; font: 14px "Helvetica Neue", Helvetica, sans-serif; color: #385487;
  text-shadow: var(--emboss); cursor: pointer; }
/* Top 25: the rank before the icon. */
.browse-ranked .pkg-rank { flex: none; width: 20px; margin-right: -4px; font-size: 15px; font-weight: bold; color: var(--subtitle); text-align: right; }
.browse-list-footer { margin: 12px 10px; font-size: 14px; text-align: center; color: var(--subtitle); }

/* ---- F154: Tweak Roulette (screens/roulette.js): iOS 6's UIPickerView, three wheels behind a blue band. ---- */
.roulette-stats { display: flex; margin: 12px 10px 10px; }
.roulette-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--head); text-shadow: var(--emboss); }
.roulette-stat b { font-size: 20px; }
.roulette-stat span { font-size: 12px; }
.roulette-picker { position: relative; display: flex; gap: 6px; height: 220px; margin: 0 10px; padding: 0 9px; border-radius: 9px; overflow: hidden;
  border: 1px solid #1c1f24; background: linear-gradient(#7b818c, #3a3f48 8%, #2b2f36 50%, #3a3f48 92%, #7b818c); background-origin: border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.roulette-wheel { position: relative; flex: 1; min-width: 0; margin: 10px 0; overflow: hidden; border-radius: 3px; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.55); }
.roulette-wheel.w2 { flex: .75; }
.roulette-wheel { touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; } /* turned by finger (screens/roulette.js dragWheel) */
.roulette-wheel::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(40,40,46,.85), rgba(255,255,255,0) 30%, rgba(255,255,255,0) 70%, rgba(40,40,46,.85)); }
.roulette-reel { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.roulette-slot { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 8px; font-size: 15px; font-weight: bold; color: #111;
  white-space: nowrap; overflow: hidden; }
.roulette-slot img { flex: none; width: 22px; height: 22px; }
.roulette-slot span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.roulette-band { position: absolute; left: 4px; right: 4px; top: 90px; height: 40px; pointer-events: none; border-radius: 3px;
  border: 1px solid rgba(40,60,110,.75);
  background: linear-gradient(rgba(220,228,245,.55), rgba(160,178,220,.35) 50%, rgba(120,145,205,.4) 51%, rgba(170,188,228,.45));
  background-origin: border-box; box-shadow: 0 1px 3px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.6); }
.roulette-spin { display: flex; align-items: center; justify-content: center; width: calc(100% - 20px); height: 46px; margin: 14px 10px 0;
  border-radius: 9px; font: bold 20px/1 "Helvetica Neue", Helvetica, sans-serif; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.4);
  border: 1px solid #1d6a19; background: linear-gradient(#8fd96f, #3bab2f 50%, #2b9b21 51%, #35a52a); background-origin: border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35); cursor: pointer; }
.roulette-spin:active:not(:disabled) { background: linear-gradient(#5fb447, #23861a 50%, #187610 51%, #1f8015); background-origin: border-box; }
.roulette-spin:disabled { opacity: .8; cursor: default; }
.roulette-pick { min-height: 74px; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.roulette-icon { position: relative; flex: none; width: 57px; height: 57px; border-radius: 10px; overflow: hidden;
  background: center / cover no-repeat; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.roulette-desc { font-size: 13px; line-height: 16px; color: var(--subtitle); }
.roulette-actions { justify-content: flex-end; gap: 8px; }

/* F165: a long description in its own group (screens/description.js): collapsed it shows its first 6 lines (20px each
   inside 10px padding) with the 6th fading out; the "More"/"Less" row under it is Permissions' .perm-more. */
.desc-cell { list-style: none; }
.desc-text.collapsed { max-height: 140px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 110px, transparent 130px); mask-image: linear-gradient(to bottom, #000 110px, transparent 130px); }
.desc-link { color: #385487; overflow-wrap: anywhere; }
html[data-theme="dark"] .desc-link { color: #8fb0e8; }
