/* Skate Bud web demo: the Settings tab and its pages, the Keep and Delete cards, and the games box (prefix st-). */

/* ---------- the tab ---------- */
.st-root { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--sb-grouped); }
.st-bar {
  flex: none; display: grid; grid-template-columns: 96px minmax(0, 1fr) 96px; align-items: center; height: 44px;
  background: var(--sb-grouped); box-shadow: inset 0 -0.5px 0 var(--sb-border);
}
.k-cover .st-bar, .k-inner .st-bar { height: 52px; padding-top: 8px; }
.st-bar-title { text-align: center; font-size: 17px; line-height: 22px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-back {
  display: flex; align-items: center; gap: 2px; min-height: 44px; padding-left: 8px; color: var(--sb-blue);
  font-size: 17px; white-space: nowrap; overflow: hidden;
}
.st-back span { overflow: hidden; text-overflow: ellipsis; }
.st-back svg { stroke-width: 2.4; }
.st-done { justify-self: end; min-width: 44px; min-height: 44px; padding-right: 16px; color: var(--sb-blue); font-size: 17px; font-weight: 600; text-align: right; }
.st-back:active, .st-done:active { opacity: 0.5; }

.st-scroll { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 8px 0 28px; }
.st-col { max-width: 600px; margin: 0 auto; }
.k-inner .st-scroll { padding-top: 16px; }
.st-in-fwd { animation: stInFwd 0.25s ease-in-out; }
.st-in-back { animation: stInBack 0.25s ease-in-out; }
@keyframes stInFwd { from { opacity: 0.3; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes stInBack { from { opacity: 0.3; transform: translateX(-60px); } to { opacity: 1; transform: none; } }

/* ---------- grouped lists ---------- */
.st-group { margin: 0 16px 22px; }
.st-head { padding: 0 16px 6px; font-size: 13px; line-height: 18px; color: var(--sb-muted); }
.st-list { background: var(--sb-panel); border-radius: 10px; overflow: hidden; }
.st-foot { display: flex; flex-direction: column; gap: 8px; padding: 6px 16px 0; font-size: 13px; line-height: 18px; color: var(--sb-muted); }
.st-row {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 16px;
  font-size: 17px; line-height: 22px; text-align: left; color: var(--sb-text); background: none;
}
.st-row.is-nav { min-height: 52px; }
.st-row.is-nav.is-short { min-height: 44px; }
.st-row + .st-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 0.5px; background: var(--sb-border2); }
.has-tiles .st-row + .st-row::before { left: 58px; }
button.st-row:active { background: var(--sb-fill3); }
.st-tile { flex: none; width: 30px; height: 30px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: var(--sb-fill3); color: var(--sb-blue); }
.st-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.st-title { font-size: 17px; line-height: 22px; overflow: hidden; text-overflow: ellipsis; }
.st-sub { font-size: 13px; line-height: 18px; color: var(--sb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-sub.is-wrap { white-space: normal; }
.st-sub.is-two { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.st-chev { flex: none; display: flex; color: var(--sb-label3); margin-right: -4px; }
.st-chev svg { stroke-width: 2.6; }
.st-value { flex: none; color: var(--sb-muted); white-space: nowrap; }
.st-size { flex: none; font-size: 15px; line-height: 20px; color: var(--sb-muted); white-space: nowrap; }
.st-row.is-amber .st-title, .st-row.is-amber .st-value { color: var(--sb-count); }
.st-ok { flex: none; display: flex; color: var(--sb-me); }
.st-ok svg { stroke-width: 2.6; }
.st-input {
  flex: none; width: 130px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; outline: none;
  background: var(--sb-fill); color: var(--sb-text); font: 17px/1 var(--sb-font); text-align: right;
}
#st-name { text-transform: uppercase; }
.st-input::placeholder { color: var(--sb-label3); text-transform: none; }
.st-input:focus { box-shadow: 0 0 0 2px var(--sb-accent); }
.st-footline { padding: 0 32px; font-size: 13px; line-height: 18px; color: var(--sb-muted); text-align: center; }
.st-lead { margin: 0 32px 16px; font-size: 15px; line-height: 20px; color: var(--sb-text); }
.st-lead.st-muted { color: var(--sb-muted); }
.st-lead-big { margin: 4px 32px 18px; font-size: 20px; line-height: 25px; font-weight: 700; }
.st-licence { margin: 0 16px; padding: 16px; font-size: 13px; line-height: 18px; color: var(--sb-text); background: var(--sb-panel); border-radius: 10px; }
.st-licence p + p { margin-top: 10px; }
.st-licence p { overflow-wrap: anywhere; }

/* ---------- storage: the head, the meter, the wide keys ---------- */
.st-headbox { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; }
.st-free { font-size: 20px; line-height: 25px; font-weight: 700; }
.st-gname { font-size: 20px; line-height: 25px; font-weight: 700; }
.st-gsize { font-size: 15px; line-height: 20px; color: var(--sb-muted); margin-top: -6px; }
.st-meter { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--sb-fill3); }
.st-meter > i { display: block; flex-basis: 0; flex-shrink: 1; min-width: 3px; height: 100%; }
.st-meter > i.is-video, .st-mkey i.is-video { background: var(--sb-accent); }
.st-meter > i.is-analysis, .st-mkey i.is-analysis { background: rgba(95, 104, 120, 0.55); }
.st-meter > i.is-kept, .st-mkey i.is-kept { background: var(--sb-me); }
.st-mkey { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; line-height: 18px; color: var(--sb-muted); }
.st-mkey span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.st-mkey i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.st-wide {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 10px 16px;
  font-size: 17px; line-height: 22px; font-weight: 600; color: var(--sb-blue); background: var(--sb-panel); text-align: center;
}
.st-wide.is-red { color: var(--sb-sys-red); font-weight: 400; }
.st-wide:active { background: var(--sb-fill3); }
.st-wide:disabled { color: var(--sb-label3); cursor: default; background: var(--sb-panel); }

/* keeping the clips */
.st-keeping { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 6px; }
.st-k-title { font-size: 17px; line-height: 22px; font-weight: 600; }
.st-k-step { font-size: 15px; line-height: 20px; color: var(--sb-muted); }
.st-k-rows { display: flex; flex-direction: column; gap: 6px; padding: 2px 0; }
.st-k-row { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 20px; color: var(--sb-muted); }
.st-k-row.is-now { color: var(--sb-text); }
.st-k-done { display: flex; width: 20px; height: 20px; color: var(--sb-me); }
.st-k-now, .st-k-todo { display: inline-block; flex: none; width: 20px; height: 20px; border-radius: 50%; }
.st-k-now { border: 2px dotted var(--sb-accent); }
.st-k-todo { border: 1.5px solid var(--sb-border2); }
.st-k-bar { margin-top: 2px; }
.st-k-line { font-size: 13px; line-height: 18px; color: var(--sb-muted); }
.st-keeping .st-wide { padding: 8px 0; margin-top: 2px; box-shadow: inset 0 0.5px 0 var(--sb-border2); }

/* ---------- the Keep and Delete cards ---------- */
.sb-over-card > .sb-card.st-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.st-c-title { font-size: 17px; line-height: 22px; font-weight: 600; }
.st-c-text { font-size: 15px; line-height: 20px; }
.st-c-small { font-size: 13px; line-height: 18px; color: var(--sb-muted); }
.st-c-label { font-size: 13px; line-height: 18px; font-weight: 600; margin-bottom: -4px; }
.st-c-label.is-green { color: var(--sb-me); }
.st-c-label.is-red { color: var(--sb-not); }
.st-c-line { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 20px; }
.st-c-sym { flex: none; display: flex; padding-top: 2px; }
.st-c-sym.is-green { color: var(--sb-me); }
.st-c-sym.is-red { color: var(--sb-not); }
.st-c-sym.is-amber { color: var(--sb-count); }
.st-c-sym svg { stroke-width: 2.4; }
.st-c-keys { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.st-ckey {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 12px;
  font-size: 17px; line-height: 22px; text-align: center;
}
.st-ckey.is-solid { background: var(--sb-accent); color: #fff; font-weight: 600; }
.st-ckey.is-solid.is-red { background: var(--sb-sys-red); }
.st-ckey.is-quiet { background: var(--sb-fill3); color: var(--sb-blue); }
.st-ckey:active { opacity: 0.75; }

/* ---------- the games box ---------- */
.sb-popover.st-box {
  /* as tall as its rows, up to the box's height: a short page leaves no blank under its rows (QC, 2026-11-28) */
  width: var(--sb-games-box-w); height: auto; max-height: min(var(--sb-games-box-h), calc(100% - 24px));
  display: flex; flex-direction: column; overflow: hidden; padding: 0;
}
.st-bx-bar { flex: none; display: grid; grid-template-columns: 96px minmax(0, 1fr) 96px; align-items: center; height: 48px; box-shadow: inset 0 -0.5px 0 rgba(60, 60, 67, 0.18); }
.st-bx-title { text-align: center; font-size: 17px; line-height: 22px; font-weight: 600; white-space: nowrap; }
.st-bx-right { display: flex; justify-content: flex-end; gap: 4px; padding-right: 6px; }
.st-bx-icon { width: 40px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--sb-blue); }
.st-bx-icon:disabled { color: var(--sb-label3); cursor: default; }
.st-bx-body { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 8px 12px 16px; }
.st-bx-list { background: var(--sb-panel); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.st-bx-row {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 14px;
  font-size: 17px; line-height: 22px; text-align: left; color: var(--sb-text);
}
.st-bx-row + .st-bx-row::before { content: ""; position: absolute; top: 0; left: 46px; right: 0; height: 0.5px; background: var(--sb-border2); }
.st-bx-row:active { background: var(--sb-fill3); }
.st-bx-gtitle { flex: 1 1 auto; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-bx-change { flex: none; font-size: 15px; line-height: 20px; color: var(--sb-accent); }
.st-bx-ic { flex: none; display: flex; width: 22px; justify-content: center; color: var(--sb-accent); }
.st-bx-t { flex: 1 1 auto; min-width: 0; }
.st-bx-v { flex: none; color: var(--sb-muted); }
.st-bx-ud { flex: none; display: flex; color: var(--sb-muted); }

/* the games list */
.st-gl { margin: -8px -12px 0; }
.st-gl-all {
  display: flex; align-items: center; width: 100%; min-height: 44px; padding: 4px 16px;
  font-size: 17px; line-height: 22px; font-weight: 700; text-align: left; box-shadow: inset 0 -0.5px 0 rgba(60, 60, 67, 0.18);
}
.st-gl-all:active { background: var(--sb-fill3); }
.st-gl-swipe { position: relative; overflow: hidden; box-shadow: inset 0 -0.5px 0 rgba(60, 60, 67, 0.18); }
.st-gl-acts { position: absolute; top: 0; right: 0; bottom: 0; display: flex; }
.st-gl-acts button { width: 84px; color: #fff; font-size: 15px; font-weight: 600; text-align: center; }
.st-gl-keep { background: var(--sb-accent); }
.st-gl-del { background: var(--sb-sys-red); }
.st-gl-slide {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 4px 16px 4px 19px;
  background: var(--sb-sel); box-shadow: inset 3px 0 0 var(--sb-accent); cursor: pointer; touch-action: pan-y;
  transition: transform 0.25s cubic-bezier(0.2, 0.85, 0.25, 1);
}
.st-gl-slide:focus-visible { outline: 2px solid var(--sb-accent); outline-offset: -2px; }
.st-gl-day { flex: none; font-size: 17px; line-height: 22px; font-weight: 700; white-space: nowrap; }
.st-gl-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.st-gl-place { font-size: 17px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-gl-line { font-size: 13px; line-height: 18px; color: var(--sb-muted); }
.st-gl-right { flex: none; font-size: 13px; line-height: 18px; color: var(--sb-muted); white-space: nowrap; }
.st-gl-addwrap { padding: 14px 16px 6px; }
.st-gl-add { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; border-radius: 11px; background: var(--sb-blue); color: #fff; font-size: 17px; font-weight: 600; }
.st-gl-add:active { opacity: 0.8; }
.st-gl-hint { padding: 6px 16px 12px; font-size: 13px; line-height: 18px; color: var(--sb-muted); }

/* History */
.st-hi-lead { padding: 0 4px 12px; font-size: 13px; line-height: 18px; color: var(--sb-muted); }
.st-hi-head { padding: 0 14px 6px; font-size: 13px; line-height: 18px; color: var(--sb-muted); }
.st-hi-row {
  position: relative; display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px 14px;
  text-align: left; color: var(--sb-text);
}
.st-hi-row + .st-hi-row::before { content: ""; position: absolute; top: 0; left: 33px; right: 0; height: 0.5px; background: var(--sb-border2); }
.st-hi-row:active { background: var(--sb-fill3); }
.st-hi-row .st-chev { align-self: center; }
.st-hi-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; }
.st-hi-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.st-hi-what { font-size: 15px; line-height: 20px; overflow-wrap: anywhere; }
.st-hi-sub { font-size: 13px; line-height: 18px; color: var(--sb-muted); }
.st-hi-empty { padding: 12px 14px; font-size: 15px; line-height: 20px; color: var(--sb-muted); }

@media (prefers-reduced-motion: reduce) {
  .st-in-fwd, .st-in-back { animation: none; }
  .st-gl-slide { transition: none; }
}
