/* SwingVault app shell — mobile-native + desktop pro polish (loads after inline styles) */

/* Readable contrast on #070809 (sv-v116) — secondary + muted text, dividers */
:root {
  --b1: #263a48;
  --b2: #324858;
  --b3: #3d5268;
  --txt2: #a8bcc8;
  --mut: #6e8a9a;
  --glass: rgba(14, 18, 21, 0.88);
  --glass-b: rgba(30, 42, 50, 0.9);
}

/* Notebook + saved notes — clearer hierarchy on dark surfaces */
.nb-saved-toggle:hover,
.nb-saved-toggle:focus-visible {
  color: var(--txt);
}
.nb-entry:hover {
  border-color: var(--b2);
  background: var(--s3);
}
.nb-entry-del:hover {
  color: var(--txt2);
}
.nb-input::placeholder,
.ndp-input::placeholder,
.ndp-textarea::placeholder {
  color: var(--mut);
  opacity: 1;
}
.note-card-preview {
  color: var(--txt2);
}
.note-sec-sub {
  color: var(--mut);
}
.note-player-empty,
.note-empty span {
  color: var(--txt2);
}

/* Player folder — notebooks (replaces swing steps in folder UI) */
.folder-notebooks-hdr {
  border-top: 1px solid var(--b1);
}
.folder-notebooks-player {
  color: var(--acc);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.folder-notebooks {
  padding: 0 0 4px;
}
.folder-notebooks-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 10px 8px;
}
.folder-notebooks-list .folder-note-row {
  margin-bottom: 0;
  border-radius: 0;
}
.folder-notebooks-list .folder-note-row:first-child {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.folder-notebooks-list .folder-note-row:last-child {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-bottom: none;
}
.folder-note-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid var(--b1, #1e2a32);
  background: var(--s1, #0e1215);
  color: var(--txt);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
}
.folder-note-row:active {
  background: var(--s2, #141a1f);
}
.folder-note-open-btn {
  flex-shrink: 0;
  min-width: 40px;
  min-height: 36px;
  padding: 6px 12px;
  text-align: center;
  letter-spacing: 0.06em;
  border-radius: 8px;
  border: 1px solid var(--acc);
  background: var(--chip, rgba(200, 164, 90, 0.12));
  color: var(--acc);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.folder-note-open-btn:active {
  background: rgba(200, 164, 90, 0.22);
}
.folder-note-row .folder-note-del {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--mut, #6e8a9a);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.folder-note-row .folder-note-del:active {
  color: var(--red, #e05555);
  background: rgba(224, 85, 85, 0.12);
}
.folder-note-icon {
  flex-shrink: 0;
  width: 28px;
  height: 22px;
  border-radius: 3px 6px 6px 3px;
  background: linear-gradient(180deg, rgba(200, 164, 90, 0.28) 0%, rgba(200, 164, 90, 0.12) 100%);
  border: 1px solid rgba(200, 164, 90, 0.35);
  position: relative;
}
.folder-note-icon::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 9px;
  height: 7px;
  border-radius: 2px 0 0 0;
  background: rgba(200, 164, 90, 0.45);
}
.folder-note-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.folder-note-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.folder-note-meta {
  font-size: 11px;
  color: var(--txt2, #8fa3ad);
  font-family: var(--mono, ui-monospace, monospace);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.folder-note-row-session .folder-note-title {
  cursor: text;
  text-decoration: underline;
  text-decoration-color: rgba(200, 164, 90, 0.35);
  text-underline-offset: 3px;
}
.folder-note-title-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
  background: var(--s3, #1a2228);
  border: 1px solid var(--acc);
  border-radius: 8px;
  padding: 6px 10px;
  outline: none;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
}
.folder-note-rename {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--mut);
  cursor: pointer;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.folder-note-rename:active {
  color: var(--acc);
  background: rgba(200, 164, 90, 0.12);
}
.folder-note-rename-ico {
  display: block;
  width: 14px;
  height: 14px;
  position: relative;
}
.folder-note-rename-ico::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 9px;
  width: 11px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform: rotate(-38deg);
}
.folder-note-rename-ico::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-left: none;
  border-bottom: none;
  border-radius: 0 2px 0 0;
  box-sizing: border-box;
}
.folder-note-chevron {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--mut, #6e8a9a);
  opacity: 0.7;
}
.folder-notebooks-empty {
  padding: 22px 16px 26px;
  text-align: center;
}
.folder-notebooks-empty p {
  font-size: 13px;
  color: var(--txt2);
  line-height: 1.45;
  margin: 0 0 14px;
}
.folder-notebooks-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid var(--acc);
  background: var(--chip, rgba(200, 164, 90, 0.12));
  color: var(--acc);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  min-height: 44px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.folder-notebooks-add:active {
  background: rgba(200, 164, 90, 0.2);
}
.folder-notebooks-add-inline {
  display: flex;
  width: calc(100% - 20px);
  margin: 0 10px 10px;
  box-sizing: border-box;
}

/* Session notebook — folder list + coaching notepad (sv-v134); ndp + mob snap sv-v136 */
.snb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9500;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg, #070809);
  pointer-events: none;
}
.snb.open {
  display: flex;
  pointer-events: auto;
}
.snb-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.snb-view[hidden] {
  display: none !important;
}

/* Level 1 — session list hub */
.snb-list-hdr {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: max(10px, env(safe-area-inset-top, 0px)) 16px 14px;
  border-bottom: 1px solid rgba(200, 164, 90, 0.12);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--s1, #0e1215) 0%, var(--bg, #070809) 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.snb-list-hdr-main {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}
.snb-list-player {
  font-family: var(--fd, 'Bebas Neue', Impact, sans-serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--txt);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.snb-list-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mut);
  margin-top: 4px;
  font-family: var(--mono, ui-monospace, monospace);
}
.snb-list-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.snb-new-session {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid var(--acc);
  background: var(--chip, rgba(200, 164, 90, 0.12));
  color: var(--acc);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  transition: background 0.18s, border-color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.snb-new-session:active {
  background: rgba(200, 164, 90, 0.2);
}
.snb-session-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--b1);
  background: var(--s1, #0e1215);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}
.snb-session-list .folder-note-row {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--b1);
  margin-bottom: 0;
  background: var(--s1, #0e1215);
}
.snb-session-list .folder-note-row:last-child {
  border-bottom: none;
}
.snb-session-list .folder-note-row:active {
  background: var(--s2, #141a1f);
}

.snb-session-empty {
  padding: 32px 16px;
  text-align: center;
}
.snb-session-empty p {
  font-size: 13px;
  color: var(--txt2);
  line-height: 1.5;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Level 2 — session notepad + on-demand snapshot */
.snb-hdr {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: max(10px, env(safe-area-inset-top, 0px)) 16px 12px;
  border-bottom: 1px solid rgba(200, 164, 90, 0.12);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--s1, #0e1215) 0%, var(--bg, #070809) 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.snb-back {
  margin-top: 0;
}
.snb-hdr-top {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.snb-player {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acc);
  line-height: 1.2;
  flex: 1;
  min-width: 0;
  font-family: var(--mono, ui-monospace, monospace);
}
.snb-date-display {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--txt2);
  text-align: right;
  line-height: 1.35;
  max-width: 52%;
  font-family: var(--mono, ui-monospace, monospace);
}
.snb-save-status {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--txt2);
  min-width: 52px;
  text-align: right;
  font-family: var(--mono, ui-monospace, monospace);
}
.snb-save-status.ok {
  color: var(--grn, #3dd68c);
}
.snb-save-status.err {
  color: var(--red, #e05555);
}
.snb-session-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--b1);
  flex-shrink: 0;
  background: var(--glass, rgba(14, 18, 21, 0.88));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.snb-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.snb-title-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mut);
  font-family: var(--mono, ui-monospace, monospace);
}
.snb-title {
  width: 100%;
  background: var(--s3, #1a2228);
  border: 1px solid var(--b2);
  border-radius: 10px;
  color: var(--txt);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 10px 12px;
  outline: none;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  transition: border-color 0.18s;
}
.snb-title:focus {
  border-color: var(--acc);
}
.snb-title::placeholder {
  color: var(--mut);
  opacity: 1;
  font-weight: 500;
}
.snb-session-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.snb-action-btn {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--b2);
  background: var(--s2, #141a1f);
  color: var(--txt);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.snb-action-btn:active {
  border-color: var(--acc);
  background: var(--s3, #1a2228);
}
.snb-action-btn[hidden] {
  display: none;
}
.snb-action-btn-primary {
  background: var(--acc);
  color: var(--chip-on, #070809);
  border-color: var(--acc);
  box-shadow: 0 2px 12px rgba(200, 164, 90, 0.25);
}
.snb-action-btn-primary:active {
  filter: brightness(0.95);
}
.snb-workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  gap: 14px;
  background: var(--bg, #070809);
  box-sizing: border-box;
}
.snb-notepad-panel {
  flex: 0 0 auto;
  min-height: 200px;
  max-height: min(42vh, 360px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--b1);
  background: rgba(14, 18, 21, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 2px 16px rgba(0, 0, 0, 0.28);
}
.snb-toolbar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  flex-shrink: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--b1);
  background: var(--s2, #141a1f);
}
.snb-tool {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--b2);
  background: var(--s3, #1a2228);
  color: var(--txt);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.15s, background 0.15s;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.snb-tool:active {
  background: var(--s2, #141a1f);
  border-color: var(--acc);
}
.snb-tool-save {
  flex: 1.2;
  background: var(--acc);
  color: var(--chip-on, #070809);
  border-color: var(--acc);
  box-shadow: 0 2px 10px rgba(200, 164, 90, 0.22);
}
.snb-tool-save:active {
  filter: brightness(0.95);
}
.snb-notepad-sheet {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-b, rgba(30, 42, 50, 0.9));
  background:
    repeating-linear-gradient(
      transparent,
      transparent 27px,
      rgba(200, 164, 90, 0.06) 27px,
      rgba(200, 164, 90, 0.06) 28px
    ),
    linear-gradient(180deg, var(--s2, #141a1f) 0%, var(--s1, #0e1215) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 14px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.snb-body {
  flex: 1;
  width: 100%;
  min-height: 120px;
  box-sizing: border-box;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  color: var(--txt);
  font-size: 15px;
  line-height: 28px;
  padding: 10px 14px 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-overflow-scrolling: touch;
}
.snb-body::placeholder {
  color: var(--mut);
  opacity: 1;
}
.snb-doc-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.snb-session-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.snb-section {
  border-radius: 12px;
  border: 1px solid var(--b1);
  background: rgba(14, 18, 21, 0.92);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.snb-section-hdr {
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acc);
  border-bottom: 1px solid var(--b1);
  background: var(--s2, #141a1f);
  font-family: var(--mono, ui-monospace, monospace);
}
.snb-section-count {
  color: var(--txt2);
  font-weight: 600;
}
.snb-snap-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 8px;
  padding: 10px 12px 12px;
}
.snb-snap-gallery[hidden] {
  display: none !important;
}
.snb-snap-empty,
.snb-mark-empty {
  padding: 14px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--mut);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.snb-mark-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px 12px;
}
.snb-mark-card {
  border-radius: 10px;
  border: 1px solid var(--b2);
  background: var(--snap-card-bg, #141a1f);
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.snb-mark-card.on {
  border-color: var(--acc);
  box-shadow: 0 0 0 1px rgba(200, 164, 90, 0.35);
}
.snb-mark-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.snb-mark-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--b2);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  touch-action: manipulation;
}
.snb-mark-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.snb-mark-thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mut);
  font-size: 12px;
}
.snb-mark-card-meta {
  flex: 1;
  min-width: 0;
}
.snb-mark-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.3;
}
.snb-mark-card-time {
  font-size: 10px;
  color: var(--txt2);
  margin-top: 3px;
  font-family: var(--mono, ui-monospace, monospace);
}
.snb-mark-card .snb-mark-del {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--b2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--mut);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.snb-mark-card .snb-mark-del:active {
  background: rgba(224, 85, 85, 0.15);
  border-color: var(--red, #e05555);
  color: var(--red, #e05555);
}
.snb-mark-note-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 72px;
  border: 1px solid var(--b2);
  border-radius: 8px;
  background: var(--s1, #0e1215);
  color: var(--txt);
  font-size: 13px;
  line-height: 1.45;
  padding: 8px 10px;
  resize: vertical;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  outline: none;
}
.snb-mark-note-input:focus {
  border-color: var(--acc);
}
.snb-mark-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.snb-mark-act {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--b2);
  background: var(--s2, #141a1f);
  color: var(--txt2);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.snb-mark-act-primary {
  background: rgba(200, 164, 90, 0.12);
  border-color: rgba(200, 164, 90, 0.35);
  color: var(--acc);
}
.snb-mark-act:active {
  border-color: var(--acc);
  color: var(--acc);
}

/* Snapshot lightbox — aligned with nbModal / ndp chrome (sv-v134) */
.snap-lightbox {
  display: none;
  visibility: hidden;
  position: fixed;
  inset: 0;
  z-index: 9600;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.snap-lightbox.open {
  display: flex;
  visibility: visible;
  pointer-events: auto;
}
.snap-lightbox-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: max(10px, env(safe-area-inset-top, 0px)) 16px 12px;
  border-bottom: 1px solid rgba(200, 164, 90, 0.12);
  background: linear-gradient(180deg, var(--s1, #0e1215) 0%, var(--bg, #070809) 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.snap-lightbox-cap {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 4px 0;
  text-align: left;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--acc);
  font-family: var(--fd, 'Bebas Neue', Impact, sans-serif);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.snap-lightbox-close {
  position: static;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--b2);
  background: var(--s3, #1a2228);
  color: var(--txt);
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.snap-lightbox-close:active {
  border-color: var(--acc);
  background: var(--s2, #141a1f);
  color: var(--acc);
}
.snap-lb-x {
  position: relative;
  width: 16px;
  height: 16px;
  display: block;
}
.snap-lb-x::before,
.snap-lb-x::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.snap-lb-x::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.snap-lb-x::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.snap-lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  flex: 1;
  min-height: 0;
  padding: 12px 48px;
  touch-action: pan-y pinch-zoom;
  box-sizing: border-box;
}
.snap-lightbox-spinner {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(200, 164, 90, 0.15);
  border-top-color: var(--acc);
  border-right-color: rgba(200, 164, 90, 0.45);
  border-radius: 50%;
  animation: snapLbSpin 0.75s linear infinite;
  display: none;
  z-index: 4;
  box-shadow: 0 0 20px rgba(200, 164, 90, 0.12);
}
.snap-lightbox.loading .snap-lightbox-spinner {
  display: block;
}
@keyframes snapLbSpin {
  to { transform: rotate(360deg); }
}
.snap-lightbox.loading .snap-lightbox-img,
.snap-lightbox.loading .snap-lightbox-pair {
  opacity: 0;
}
.snap-lightbox.open:not(.loading) .snap-lightbox-img,
.snap-lightbox.open:not(.loading) .snap-lightbox-pair {
  opacity: 1;
}
.snap-lb-slot img[hidden] {
  display: none;
}
.snap-lb-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: #050607;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.snap-lb-frame-single {
  max-width: min(96vw, 820px);
  max-height: calc(100dvh - 220px);
  width: fit-content;
  height: auto;
}
.snap-lb-frame-single:has(#snap-lightbox-img[hidden]) {
  display: none;
}
.snap-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 220px);
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
  transition: opacity 0.18s;
}
.snap-lightbox-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  max-width: min(96vw, 820px);
  max-height: calc(100dvh - 220px);
  border-radius: 12px;
  overflow: hidden;
  background: #050607;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: opacity 0.18s;
}
.snap-lightbox-pair[hidden] {
  display: none !important;
}
.snap-lb-slot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
}
.snap-lb-slot:first-child {
  border-right: 1px solid var(--acc, #c8a45a);
}
.snap-lb-slot .snap-lb-frame {
  flex: 1;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
  background: #050607;
}
.snap-lb-slot img {
  width: 100%;
  max-width: 100%;
  max-height: calc(100dvh - 248px);
  object-fit: contain;
  image-rendering: auto;
  display: block;
  transition: opacity 0.18s;
}
.snap-lb-lbl {
  flex-shrink: 0;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--snap-card-label-txt, #a8bcc8);
  font-family: var(--mono, ui-monospace, monospace);
  background: var(--snap-card-label-bg, #0e1215);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.snap-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--b2);
  background: rgba(14, 18, 21, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--txt);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.snap-lightbox-nav.show {
  display: flex;
}
.snap-lightbox-nav:active {
  border-color: var(--acc);
  background: var(--s2, #141a1f);
  color: var(--acc);
}
.snap-lightbox-nav.prev {
  left: 12px;
}
.snap-lightbox-nav.next {
  right: 12px;
}
.snap-lb-chev {
  display: block;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.snap-lightbox-nav.prev .snap-lb-chev {
  transform: rotate(45deg);
  margin-left: 3px;
}
.snap-lightbox-nav.next .snap-lb-chev {
  transform: rotate(-135deg);
  margin-right: 3px;
}
.snap-lightbox-foot {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--b1);
  background: linear-gradient(0deg, var(--s1, #0e1215) 0%, rgba(14, 18, 21, 0.96) 100%);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}
.snap-lightbox-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--txt2);
  font-family: var(--mono, ui-monospace, monospace);
  letter-spacing: 0.06em;
  padding: 10px 0 4px;
  flex-shrink: 0;
  min-height: 0;
}
.snap-lightbox-count:empty {
  display: none;
}
.snap-lightbox-strip {
  display: none;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  gap: 8px;
  padding: 8px 2px 10px;
  flex-shrink: 0;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.snap-lightbox-strip::-webkit-scrollbar {
  display: none;
}
.snap-lightbox-strip.show {
  display: flex;
}
.snap-lb-strip-chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid var(--b2);
  background: var(--s2, #141a1f);
  color: var(--txt);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  touch-action: manipulation;
  white-space: nowrap;
  scroll-snap-align: center;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.snap-lb-strip-chip.on {
  border-color: var(--acc);
  color: var(--acc);
  background: rgba(200, 164, 90, 0.14);
  box-shadow: 0 0 0 1px rgba(200, 164, 90, 0.2);
}
.snap-lb-strip-chip:active {
  background: var(--s3, #1a2228);
}
.snap-lb-notes {
  width: 100%;
  max-width: 420px;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 10px 0 8px;
  border-top: 1px solid rgba(200, 164, 90, 0.12);
}
.snap-lb-notes[hidden] {
  display: none !important;
}
.snap-lb-notes-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.snap-lb-notes-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acc);
  font-family: var(--mono, ui-monospace, monospace);
}
.snap-lb-notes-status {
  font-size: 10px;
  font-weight: 600;
  color: var(--txt2);
  font-family: var(--mono, ui-monospace, monospace);
}
.snap-lb-notes-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 88px;
  max-height: min(28vh, 160px);
  border: 1px solid var(--b2);
  border-radius: 10px;
  background:
    repeating-linear-gradient(
      transparent,
      transparent 27px,
      rgba(200, 164, 90, 0.06) 27px,
      rgba(200, 164, 90, 0.06) 28px
    ),
    linear-gradient(180deg, var(--s2, #141a1f) 0%, var(--s1, #0e1215) 100%);
  color: var(--txt);
  font-size: 14px;
  line-height: 28px;
  padding: 8px 12px 10px;
  resize: vertical;
  outline: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-overflow-scrolling: touch;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 2px 12px rgba(0, 0, 0, 0.28);
}
.snap-lb-notes-input:focus {
  border-color: var(--acc);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(200, 164, 90, 0.35);
}
.snap-lb-notes-input::placeholder {
  color: var(--mut);
  opacity: 1;
}
.snap-lightbox.notes-open .snap-lightbox-stage {
  flex: 0 1 auto;
  max-height: min(40vh, 300px);
  padding: 8px 48px 4px;
}
.snap-lightbox.notes-open .snap-lb-frame-single img,
.snap-lightbox.notes-open .snap-lightbox-pair {
  max-height: min(36vh, 260px);
}
.snap-lightbox.notes-open .snap-lb-slot img {
  max-height: min(34vh, 240px);
}
.snap-lightbox-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  flex-shrink: 0;
  padding-top: 4px;
}
.snap-lb-btn {
  flex: 1;
  min-width: 100px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--b2);
  background: var(--s2, #141a1f);
  color: var(--txt);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  transition: border-color 0.18s, background 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.snap-lb-btn:active {
  border-color: var(--acc);
  background: var(--s3, #1a2228);
}
.snap-lb-btn-primary {
  background: var(--acc);
  color: var(--chip-on, #070809);
  border-color: var(--acc);
  box-shadow: 0 2px 12px rgba(200, 164, 90, 0.25);
}
.snap-lb-btn-primary:active {
  filter: brightness(0.95);
}
.snap-lb-btn-danger {
  background: rgba(224, 85, 85, 0.14);
  color: var(--red, #e05555);
  border-color: rgba(224, 85, 85, 0.45);
}
.snap-lb-btn-danger:active {
  background: rgba(224, 85, 85, 0.28);
}
@media (min-width: 601px) {
  .snap-lightbox-stage {
    padding: 16px 56px;
  }
  .snap-lightbox-nav.prev {
    left: 16px;
  }
  .snap-lightbox-nav.next {
    right: 16px;
  }
  .snap-lightbox-cap {
    font-size: 22px;
  }
  .snap-lightbox-hdr,
  .snap-lightbox-foot {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Shared back control — ndp, session notebook, lightbox chrome (sv-v136) */
.sv-back-pill,
.ndp-back,
.snb-back,
.abt-back {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px !important;
  min-width: 44px;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  border: 1px solid var(--b2) !important;
  background: var(--glass, rgba(14, 18, 21, 0.88)) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--txt) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif !important;
  letter-spacing: 0.02em;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.sv-back-pill:active,
.ndp-back:active,
.snb-back:active,
.abt-back:active {
  border-color: var(--acc) !important;
  background: var(--s2, #141a1f) !important;
  color: var(--acc) !important;
}
.snap-lightbox-close {
  background: var(--glass, rgba(14, 18, 21, 0.88)) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* About CTA — gold outline, inviting tap target */
.hbtn.sv-about-btn {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--acc, #c8a45a);
  background: rgba(200, 164, 90, 0.1);
  color: var(--acc, #c8a45a);
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}
.hbtn.sv-about-btn:hover {
  background: rgba(200, 164, 90, 0.18);
  border-color: var(--acc, #c8a45a);
  color: var(--txt, #e8eef2);
}
.hbtn.sv-about-btn:active {
  transform: scale(0.98);
  background: rgba(200, 164, 90, 0.24);
}
.mob-profile-actions .hbtn.sv-about-btn {
  flex: 1.15;
}
.hdr .hbtn.sv-about-btn {
  min-height: 36px;
  padding: 7px 15px;
  font-size: 12px;
  box-shadow: 0 0 0 1px rgba(200, 164, 90, 0.12);
}
@media (max-width: 600px) {
  .mob-profile-actions .hbtn.sv-about-btn {
    min-height: 44px;
    font-size: 13px;
  }
}

/* Admin — one button per viewport for master users */
#mob-admin-hdr {
  display: none !important;
}
body.is-master #admin-btn {
  display: inline-flex !important;
}
@media (max-width: 600px) {
  body.is-master #admin-btn {
    display: none !important;
  }
  body.is-master #mob-admin-hdr {
    display: inline-flex !important;
  }
}

/* About page — TrackMan-style editorial (sv-v150) */
.abt {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9055;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg, #070809);
  pointer-events: none;
}
.abt.open {
  display: flex;
  pointer-events: auto;
}
.abt-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: max(10px, env(safe-area-inset-top, 0px)) 16px 12px;
  border-bottom: 1px solid var(--b1, rgba(255, 255, 255, 0.08));
  flex-shrink: 0;
  background: var(--glass, rgba(7, 8, 9, 0.92));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.abt-hdr-main {
  flex: 1;
  min-width: 0;
}
.abt-hdr-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.abt-back {
  flex-shrink: 0;
}
.abt-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 28px 20px calc(40px + env(safe-area-inset-bottom, 0px));
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.abt-hero {
  margin: 0 0 32px;
  padding: 0;
  font-family: var(--fd, 'Bebas Neue', Impact, sans-serif);
  font-size: clamp(34px, 9vw, 48px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.02;
  color: var(--txt, #e8eef2);
  text-wrap: balance;
}
.abt-founder {
  margin-bottom: 40px;
}
.abt-portrait {
  position: relative;
  width: min(260px, 72vw);
  margin: 0 0 20px;
  padding: 3px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(200, 164, 90, 0.55), rgba(200, 164, 90, 0.08) 55%, rgba(255, 255, 255, 0.06));
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(200, 164, 90, 0.12);
}
.abt-portrait::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 9px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.abt-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 9px;
}
.abt-built {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut, #3d5566);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.abt-name {
  margin: 0;
  font-family: var(--fd, 'Bebas Neue', Impact, sans-serif);
  font-size: clamp(28px, 7vw, 34px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--txt, #e8eef2);
}
.abt-section {
  margin-bottom: 40px;
}
.abt-section:last-child {
  margin-bottom: 0;
}
.abt-section-label {
  margin: 0 0 16px;
  font-family: var(--fd, 'Bebas Neue', Impact, sans-serif);
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--txt, #e8eef2);
  line-height: 1;
}
.abt-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.abt-stat {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 12px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid var(--b1, rgba(255, 255, 255, 0.08));
  background: var(--glass, rgba(14, 18, 21, 0.72));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.abt-stat-years {
  font-family: var(--fd, 'Bebas Neue', Impact, sans-serif);
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--acc, #c8a45a);
  line-height: 1;
}
.abt-stat-team {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--txt, #e8eef2);
  line-height: 1.3;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.abt-stat-detail {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--txt2, #7a9aaa);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.abt-pullquote {
  margin: 0;
  padding: 24px 22px 24px 20px;
  border-radius: 12px;
  border: 1px solid rgba(200, 164, 90, 0.18);
  border-left: 3px solid var(--acc, #c8a45a);
  background: linear-gradient(135deg, rgba(200, 164, 90, 0.07), rgba(14, 18, 21, 0.5));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.abt-pullquote p {
  margin: 0 0 16px;
  font-size: clamp(17px, 4.4vw, 19px);
  font-weight: 400;
  color: var(--txt, #e8eef2);
  line-height: 1.55;
  letter-spacing: -0.015em;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.abt-pullquote p:last-child {
  margin-bottom: 0;
}
@media (min-width: 901px) {
  .abt-body {
    max-width: 580px;
    padding-top: 40px;
    padding-left: 28px;
    padding-right: 28px;
  }
  .abt-hero {
    margin-bottom: 36px;
    font-size: clamp(40px, 4.2vw, 56px);
    letter-spacing: 0.05em;
    line-height: 0.98;
    max-width: 520px;
  }
  .abt-portrait {
    width: 280px;
  }
  .abt-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .abt-stat {
    padding: 18px 16px;
    min-height: 120px;
    align-content: start;
  }
  .abt-stat-years {
    font-size: 24px;
  }
  .abt-pullquote {
    padding: 28px 28px 28px 24px;
  }
  .abt-pullquote p {
    font-size: 20px;
    line-height: 1.6;
  }
}

/* Note detail page — full-screen mark/session editor (sv-v136) */
.ndp {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9050;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg, #070809);
  pointer-events: none;
}
.ndp.open {
  display: flex;
  pointer-events: auto;
}
.ndp-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: max(10px, env(safe-area-inset-top, 0px)) 16px 12px;
  border-bottom: 1px solid rgba(200, 164, 90, 0.12);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--s1, #0e1215) 0%, var(--bg, #070809) 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.ndp-hdr-main {
  flex: 1;
  min-width: 0;
}
.ndp-hdr-title {
  font-family: var(--fd, 'Bebas Neue', Impact, sans-serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--txt);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ndp-hdr-title .ndp-hdr-sep {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mut);
  text-transform: none;
}
.ndp-hdr-title .ndp-hdr-mark {
  color: var(--acc);
}
.ndp-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--txt2);
  margin-top: 4px;
  line-height: 1.35;
  font-family: var(--mono, ui-monospace, monospace);
}
.ndp-save-hdr {
  flex-shrink: 0;
  min-height: 44px !important;
  padding: 8px 16px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  background: var(--acc) !important;
  color: var(--chip-on, #070809) !important;
  border: none !important;
  border-radius: 10px !important;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 12px rgba(200, 164, 90, 0.25);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ndp-save-hdr:active {
  filter: brightness(0.95);
}
.ndp-save-status {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--txt2);
  min-width: 52px;
  text-align: right;
  font-family: var(--mono, ui-monospace, monospace);
}
.ndp-save-status.ok {
  color: var(--grn, #3dd68c);
}
.ndp-save-status.err {
  color: var(--red, #e05555);
}
.ndp-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.ndp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.ndp-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--chip, rgba(200, 164, 90, 0.12));
  color: var(--chip-txt, var(--acc));
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--mono, ui-monospace, monospace);
}
.ndp-badge.player {
  background: rgba(200, 164, 90, 0.14);
  color: var(--acc);
  border: 1px solid rgba(200, 164, 90, 0.28);
}
.ndp-badge.mark {
  background: var(--s2, #141a1f);
  border: 1px solid var(--b2);
  color: var(--txt2);
}
.ndp-lbl {
  display: block;
  font-size: 10px;
  color: var(--mut);
  font-family: var(--mono, ui-monospace, monospace);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 14px 0 6px;
}
.ndp-lbl:first-child {
  margin-top: 0;
}
.ndp-input {
  width: 100%;
  background: var(--s3, #1c252c);
  border: 1px solid var(--b2);
  border-radius: 10px;
  color: var(--txt);
  font-size: 15px;
  padding: 10px 12px;
  outline: none;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.ndp-input:focus {
  border-color: var(--acc);
}
.ndp-textarea {
  width: 100%;
  min-height: 120px;
  background: var(--s3, #1c252c);
  border: 1px solid var(--b2);
  border-radius: 12px;
  color: var(--txt);
  font-size: 15px;
  line-height: 1.55;
  padding: 12px;
  outline: none;
  resize: vertical;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
}
.ndp-textarea:focus {
  border-color: var(--acc);
}
.ndp-snaps {
  margin-bottom: 8px;
}
.ndp-snap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.ndp-snap-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #050607;
  border: 1px solid var(--b2);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  cursor: pointer;
  touch-action: manipulation;
}
.ndp-snap-slot {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ndp-snap-slot:first-child {
  border-right: 1px solid var(--acc, #c8a45a);
}
.ndp-snap-frame {
  background: #050607;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ndp-snap-frame img {
  width: 100%;
  max-width: 100%;
  max-height: 42vh;
  object-fit: contain;
  image-rendering: auto;
  display: block;
}
.ndp-snap-lbl {
  flex-shrink: 0;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--snap-card-label-txt, #a8bcc8);
  font-family: var(--mono, ui-monospace, monospace);
  background: var(--snap-card-label-bg, #0e1215);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ndp-snap-card {
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--b2);
  background: var(--snap-card-bg, #141a1f);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  transition: border-color 0.18s, box-shadow 0.18s;
  touch-action: manipulation;
}
.ndp-snap-card:active,
.ndp-snap-card:hover {
  border-color: var(--acc);
  box-shadow:
    0 0 0 1px rgba(200, 164, 90, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.32);
}
.ndp-snap-card:active span,
.ndp-snap-card:hover span {
  color: var(--acc);
}
.ndp-snap-card img {
  width: 100%;
  max-width: 100%;
  height: 120px;
  object-fit: cover;
  image-rendering: auto;
  display: block;
}
.ndp-snap-card span {
  display: block;
  padding: 6px 8px;
  font-size: 10px;
  color: var(--snap-card-label-txt, #a8bcc8);
  font-weight: 700;
  font-family: var(--mono, ui-monospace, monospace);
  background: var(--snap-card-label-bg, #0e1215);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ndp-snap-single img {
  height: auto;
  max-height: 50vh;
  object-fit: contain;
}
.ndp-checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--txt);
  padding: 6px 0;
  cursor: pointer;
}
.ndp-checks input {
  width: 18px;
  height: 18px;
  accent-color: var(--acc);
  flex-shrink: 0;
}
.ndp-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ndp-met-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: var(--s2, #141a1f);
  border: 1px solid var(--b1);
  border-radius: 10px;
  padding: 8px 10px;
}
.ndp-met-row span {
  font-size: 11px;
  color: var(--txt2);
}
.ndp-met-row input {
  width: 72px;
  background: var(--s3, #1c252c);
  border: 1px solid var(--b2);
  border-radius: 8px;
  color: var(--txt);
  font-size: 14px;
  padding: 5px 8px;
  outline: none;
  text-align: right;
}
.ndp-met-row input:focus {
  border-color: var(--acc);
}
.ndp-mark-line {
  font-size: 12px;
  color: var(--acc);
  font-family: var(--mono, ui-monospace, monospace);
  padding: 4px 0;
  line-height: 1.5;
}
.ndp-textarea-readonly {
  opacity: 0.92;
  cursor: default;
  background: var(--s2, #141a1f);
  resize: none;
}
.ndp-review-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--b1);
}
.ndp-review-rating {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.ndp-review-btn {
  flex: 1;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--b2);
  background: var(--s2, #141a1f);
  color: var(--txt2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.ndp-review-btn.on {
  border-color: var(--acc);
  color: var(--acc);
  background: rgba(200, 164, 90, 0.14);
}
.ndp-review-btn:active {
  background: var(--s3, #1a2228);
}
.ndp-review-feedback {
  min-height: 72px;
}
.ndp-review-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--mut);
  line-height: 1.4;
}
.ndp-lesson-box {
  background: var(--s2, #141a1f);
  border: 1px solid var(--b1);
  border-left: 3px solid var(--acc);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--txt2);
  margin-top: 4px;
}
.ndp-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  padding-top: 4px;
}
.ndp-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-height: 46px;
  touch-action: manipulation;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-appearance: none;
  appearance: none;
  transition: filter 0.15s, border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.ndp-btn.primary {
  background: var(--acc);
  color: var(--chip-on, #070809);
  box-shadow: 0 2px 12px rgba(200, 164, 90, 0.25);
}
.ndp-btn.primary:active {
  filter: brightness(0.95);
}
.ndp-btn.secondary {
  background: var(--s2, #141a1f);
  color: var(--txt);
  border: 1px solid var(--b2);
}
.ndp-btn.secondary:active {
  border-color: var(--acc);
  background: var(--s3, #1c252c);
}
.ndp-btn.danger {
  background: transparent;
  color: var(--red, #e05555);
  border: 1px solid rgba(224, 85, 85, 0.35);
  margin-top: 4px;
}
.ndp-btn.danger:active {
  background: rgba(224, 85, 85, 0.08);
}
@media (min-width: 601px) {
  .ndp-body {
    padding: 20px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .ndp-hdr-title {
    font-size: 22px;
    letter-spacing: 2px;
  }
}

/* Snapshot cards — unified dark coaching chrome (theme-independent) */
:root {
  --snap-card-bg: #141a1f;
  --snap-card-label-bg: #0e1215;
  --snap-card-label-txt: #a8bcc8;
}
.mob-snap-section {
  border-bottom: 1px solid var(--b1);
}
.mob-snap-hdr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 12px 4px;
  gap: 8px;
}
.mob-snap-hint {
  font-size: 10px;
  color: var(--mut);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
}
.mob-snap-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 12px 12px;
  scroll-snap-type: x proximity;
}
.mob-snap-strip:empty {
  display: none;
}
.mob-snap-thumb {
  flex: 0 0 80px;
  scroll-snap-align: start;
  border-radius: 10px;
  border: 1px solid var(--b2);
  overflow: hidden;
  cursor: pointer;
  background: var(--snap-card-bg);
  touch-action: manipulation;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  transition: border-color 0.18s, box-shadow 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.mob-snap-thumb.on {
  border-color: var(--acc);
  box-shadow:
    0 0 0 2px rgba(200, 164, 90, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.32);
}
.mob-snap-thumb img {
  width: 80px;
  max-width: 80px;
  height: 54px;
  object-fit: cover;
  image-rendering: auto;
  -webkit-optimize-contrast: true;
  display: block;
}
.mob-snap-thumb span {
  display: block;
  font-size: 8px;
  text-align: center;
  padding: 4px 5px;
  color: var(--snap-card-label-txt);
  font-weight: 700;
  font-family: var(--mono, ui-monospace, monospace);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--snap-card-label-bg);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mob-snap-thumb.on span {
  color: var(--acc);
}

/* Notebook galleries + inline mark rows — same card language as Home strip */
.nb-snap-card {
  background: var(--snap-card-bg);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
.nb-snap-card span,
.nb-snap-open span {
  color: var(--snap-card-label-txt);
  background: var(--snap-card-label-bg);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nb-snap-card:hover span,
.nb-snap-card:active span,
.nb-snap-open:active span {
  color: var(--acc);
}
.nb-snap-thumb {
  background: #000;
}
.note-card-thumb {
  background: var(--snap-card-bg) !important;
}
.mob-note-mark {
  background: var(--snap-card-bg);
  border-radius: 10px;
  border: 1px solid var(--b2);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}
.mob-note-mark img {
  border-radius: 0;
  border: none;
}
.mob-note-mark span {
  padding: 4px 5px;
  margin-top: 0;
  background: var(--snap-card-label-bg);
  color: var(--snap-card-label-txt);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mob-note-mark:active span {
  color: var(--acc);
}

@media (min-width: 601px) {
  .snb-list-hdr,
  .snb-hdr,
  .snb-session-bar {
    padding-left: 20px;
    padding-right: 20px;
  }
  .snb-list-body {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 640px;
  }
  .snb-doc-scroll {
    padding: 0;
  }
  .snb-workspace {
    flex-direction: row;
    align-items: flex-start;
    padding: 16px 20px 24px;
    gap: 16px;
    max-width: 980px;
    margin: 0 auto;
    width: 100%;
  }
  .snb-notepad-panel {
    flex: 1 1 48%;
    max-width: 48%;
    min-width: 0;
    max-height: none;
  }
  .snb-session-panel {
    flex: 1 1 52%;
    max-width: 52%;
    min-width: 0;
  }
  .snb-toolbar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .snb-snap-gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* ── Desktop: pro tool chrome ── */
@media (min-width: 601px) {
  .hdr {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(14, 18, 21, 0.94);
    box-shadow: 0 1px 0 rgba(200, 164, 90, 0.1);
  }
  .hdr::-webkit-scrollbar {
    height: 0;
  }
  .brand {
    letter-spacing: 2.5px;
  }
}
@media (min-width: 901px) {
  .hdr {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(14, 18, 21, 0.92);
    box-shadow: 0 1px 0 rgba(200, 164, 90, 0.08);
  }
  .toolbar {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .pan {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 8px 32px rgba(0, 0, 0, 0.35);
  }
  .side {
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.25);
  }
}

/* PWA home screen — lock page scroll (iOS standalone bounce) */
html.sv-standalone,
html.sv-standalone body {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

/* ── Mobile: native app feel (not a website) ── */
@media (max-width: 600px) {
  html,
  body {
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
  }
  .app {
    background: var(--bg);
  }
  .hdr {
    padding-top: max(8px, env(safe-area-inset-top, 0px));
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
    background: linear-gradient(180deg, #0e1215 0%, #0a0d10 100%);
    border-bottom: 1px solid rgba(200, 164, 90, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  }
  .brand {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 20px;
    letter-spacing: 2.5px;
  }
  .mob-panel .sh,
  .mob-notes-toolbar,
  .note-sec-hdr,
  .note-sec-sub,
  .note-card-title,
  .note-card-meta,
  .note-card-preview {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  }
  .mob-notes-toolbar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  }
  .note-sec-hdr {
    position: relative;
    padding-left: 10px;
  }
  .note-sec-hdr::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22px;
    bottom: 10px;
    width: 2px;
    border-radius: 1px;
    background: rgba(200, 164, 90, 0.45);
  }
  .note-sec-hdr:first-child::before {
    top: 14px;
  }
  .note-card-title {
    font-weight: 600;
  }
  /* Never crush header buttons to unreadable size */
  .hbtn {
    font-size: 11px !important;
    padding: 8px 12px !important;
    min-height: 36px;
    border-radius: 20px;
  }
  .hbtn.gold {
    box-shadow: 0 2px 12px rgba(200, 164, 90, 0.25);
  }
  #sidebar-toggle {
    min-width: 44px;
    min-height: 44px;
    font-size: 18px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .toolbar {
    background: #0c1013;
    border-bottom-color: rgba(255, 255, 255, 0.04);
  }
  .tb,
  .spd-btn {
    min-height: 36px;
    padding: 8px 12px !important;
  }
  .pan {
    border-radius: 10px;
    border-color: rgba(255, 255, 255, 0.06);
  }
  .mob-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    isolation: isolate;
    align-items: stretch;
    height: calc(var(--mob-tabbar-h, 58px) + env(safe-area-inset-bottom, 0px));
    padding: 0 max(2px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px)
      max(2px, env(safe-area-inset-left, 0px));
    background: var(--s1, #0e1215);
    border-top: 1px solid var(--b1, #1e2a32);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  }
  .mob-tab {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: none;
    background: transparent;
    color: var(--mut, #6e8a9a);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    overflow: visible;
    word-break: keep-all;
    text-transform: none;
    cursor: pointer;
    min-height: var(--mob-tabbar-h, 58px);
    padding: 8px 2px 6px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.18s ease;
  }
  .mob-tab-ic {
    display: none;
  }
  .mob-tab.on {
    color: var(--acc, #c8a45a);
    font-weight: 700;
  }
  .mob-tab.on::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14%;
    right: 14%;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: var(--acc, #c8a45a);
  }
  @media (max-width: 360px) {
    .mob-tabbar .mob-tab {
      font-size: 10px;
      letter-spacing: 0.02em;
    }
  }
  .mob-tab:active {
    background: rgba(255, 255, 255, 0.05);
  }
  .mob-panel .nb-entry {
    margin-bottom: 8px;
  }
  .mob-sheet-ov.open .mob-sheet {
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.55);
  }
  .mob-acct .hbtn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
  :root {
    --acc: #c8a45a;
  }
  .side {
    height: auto !important;
    max-height: none !important;
    padding-bottom: 0;
    border-top: none;
  }
  .sheet-grip {
    display: none !important;
  }
  .toast {
    bottom: calc(var(--mob-tabbar-h, 58px) + 10px + env(safe-area-inset-bottom, 0px));
    font-size: 12px;
    padding: 10px 18px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  }
  /* Session notebook + snapshot lightbox + note detail — native mobile polish */
  .snb-list-hdr,
  .snb-hdr,
  .ndp-hdr {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .snb-list-body,
  .snb-doc-scroll,
  .snb-workspace,
  .snb-session-bar,
  .ndp-body {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .snap-lightbox-hdr,
  .snap-lightbox-foot {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  /* Home chrome — marks, snapshots, quick bar match lesson bar language */
  .mob-home-chrome {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  }
  .mob-marks-row,
  .mob-snap-section {
    background: transparent;
  }
  .mob-chrome-footer {
    border-top: 1px solid var(--b1);
  }
  .mob-chrome-peek {
    font-size: 11px;
    letter-spacing: 0.02em;
  }
  .desk-coach-bar,
  .desk-marks-row,
  .desk-snap-section {
    display: none !important;
  }
  .dz {
    border-radius: 8px;
    margin: 6px;
    inset: 6px;
    border: 1px dashed rgba(200, 164, 90, 0.25);
    background: rgba(7, 8, 9, 0.85);
  }
  .dz-t {
    font-size: 13px;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 400px) {
  .hbtn {
    font-size: 10px !important;
    padding: 7px 10px !important;
  }
}

/* PWA standalone — full-screen app, no browser chrome feel */
@media (display-mode: standalone) {
  html,
  body {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }
  .hdr {
    padding-top: max(10px, env(safe-area-inset-top, 0px));
  }
  .toast {
    bottom: calc(var(--mob-tabbar-h, 58px) + 10px + env(safe-area-inset-bottom, 0px));
  }
  .mob-tabbar {
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 4px);
  }
}

/* ── Update banner (all pages) ── */
.sv-update-banner {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  transform: translateX(-50%) translateY(calc(100% + 24px));
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(92vw, 440px);
  padding: 12px 14px 12px 16px;
  border-radius: 12px;
  background: rgba(12, 14, 16, 0.96);
  border: 1px solid rgba(200, 164, 90, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  color: #f2f2f2;
  font: 13px/1.35 system-ui, -apple-system, Segoe UI, sans-serif;
  transition: transform 0.28s ease;
  pointer-events: none;
}
.sv-update-banner.on {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.sv-update-banner-text {
  flex: 1;
  min-width: 0;
}
.sv-update-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sv-update-banner-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  background: #c8a45a;
  color: #0a0b0c;
  font: 600 12px/1 system-ui, -apple-system, Segoe UI, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.sv-update-banner-dismiss {
  flex-shrink: 0;
  border: 1px solid rgba(200, 164, 90, 0.28);
  border-radius: 8px;
  padding: 7px 10px;
  background: transparent;
  color: #c8a45a;
  font: 600 12px/1 system-ui, -apple-system, Segoe UI, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .sv-update-banner {
    bottom: calc(var(--mob-tabbar-h, 58px) + 12px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── App boot / update loader ── */
.sv-boot-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: #070809;
  color: #e8eef2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  pointer-events: auto;
}
.sv-boot-loader.on {
  opacity: 1;
  visibility: visible;
}
.sv-boot-loader-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sv-boot-loader-gem {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #e8c878, #c8a45a);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: 0 0 24px rgba(200, 164, 90, 0.35);
}
.sv-boot-loader-name {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(28px, 7vw, 36px);
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.sv-boot-loader-spinner {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(200, 164, 90, 0.22);
  border-top-color: #c8a45a;
  border-radius: 50%;
  animation: sv-boot-spin 0.75s linear infinite;
}
.sv-boot-loader-msg {
  margin: 0;
  font: 13px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #7a9aaa;
  letter-spacing: 0.4px;
  text-align: center;
  max-width: min(88vw, 320px);
}
@keyframes sv-boot-spin {
  to {
    transform: rotate(360deg);
  }
}
html.sv-boot-loading body {
  overflow: hidden;
}

/* ── Update / changelog (login + app) ── */
.upd-ov,
.ov#clModal {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.upd-box {
  border: 1px solid rgba(200, 164, 90, 0.22) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
}

.upd-head h3,
.nb-head h3 {
  letter-spacing: 2px;
}

.upd-continue,
.upd-foot .upd-continue {
  box-shadow: 0 4px 16px rgba(200, 164, 90, 0.2);
}

/* What's New / changelog — theme-aware contrast (dark + light soft-gray shells) */
#cl-body,
.upd-body {
  color: var(--txt);
}

.sv-cl-block {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--b1);
}
.sv-cl-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.sv-cl-ver {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--acc);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}
.sv-cl-item {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--txt);
  font-weight: 450;
}
.sv-cl-item > span:last-child {
  color: var(--txt);
}
.sv-cl-dot {
  color: var(--acc);
  flex-shrink: 0;
  margin-top: 1px;
}
.sv-cl-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #3dd68c;
  background: rgba(61, 214, 140, 0.12);
  border: 1px solid rgba(61, 214, 140, 0.25);
  border-radius: 10px;
  padding: 4px 10px;
  margin-bottom: 14px;
  font-family: 'Bebas Neue', Impact, sans-serif;
}

#cl-body {
  padding: 20px 22px 24px !important;
}

/* ── Marketing landing (landing.html) ── */
.sv-land {
  --bg: #070809;
  --s1: #0e1215;
  --s2: #141a1f;
  --s3: #1c252c;
  --b1: #263a48;
  --txt: #e8eef2;
  --txt2: #a8bcc8;
  --mut: #6e8a9a;
  --acc: #c8a45a;
  --grn: #3dd68c;
  --blue: #4a9eff;
  --fd: 'Bebas Neue', Impact, sans-serif;
  --mono: 'SF Mono', Consolas, monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 64px;
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.sv-land *,
.sv-land *::before,
.sv-land *::after {
  box-sizing: border-box;
}

.sv-land-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(7, 8, 9, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 164, 90, 0.1);
}

.sv-land-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.sv-land-gem {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #e8c878, var(--acc));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: 0 0 16px rgba(200, 164, 90, 0.25);
}

.sv-land-name {
  font-family: var(--fd);
  font-size: 20px;
  letter-spacing: 3px;
  color: #fff;
}

.sv-land-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

.sv-land-nav a {
  font-size: 11px;
  font-weight: 600;
  color: var(--txt2);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.18s var(--ease);
}

.sv-land-nav a:hover {
  color: var(--acc);
}

.sv-land-nav-cta {
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--acc);
  color: #070809 !important;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.sv-land-nav-cta:hover {
  background: #d9b56b;
  color: #070809 !important;
}

.sv-land-menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--b1);
  border-radius: 10px;
  background: var(--s1);
  color: var(--txt);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sv-land-menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.2s;
}

.sv-land-menu span::before,
.sv-land-menu span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}

.sv-land-menu span::before {
  top: -6px;
}

.sv-land-menu span::after {
  top: 6px;
}

.sv-land-menu.open span {
  background: transparent;
}

.sv-land-menu.open span::before {
  transform: translateY(6px) rotate(45deg);
}

.sv-land-menu.open span::after {
  transform: translateY(-6px) rotate(-45deg);
}

.sv-land-hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 48px) clamp(20px, 5vw, 48px) 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.sv-land-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.sv-land-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(200, 164, 90, 0.07) 0%, transparent 55%),
    linear-gradient(180deg, rgba(7, 8, 9, 0.2) 0%, var(--bg) 85%);
}

.sv-land-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: linear-gradient(rgba(200, 164, 90, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 164, 90, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

.sv-land-hero-copy,
.sv-land-hero-visual {
  position: relative;
  z-index: 1;
}

.sv-land-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 20px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(200, 164, 90, 0.08);
  border: 1px solid rgba(200, 164, 90, 0.18);
}

.sv-land-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grn);
  box-shadow: 0 0 8px rgba(61, 214, 140, 0.5);
}

.sv-land-h1 {
  font-family: var(--fd);
  font-size: clamp(44px, 6.5vw, 72px);
  letter-spacing: 2px;
  line-height: 0.95;
  color: #fff;
  margin-bottom: 20px;
}

.sv-land-h1 em {
  font-style: normal;
  color: var(--acc);
}

.sv-land-lead {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--txt2);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 32px;
}

.sv-land-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.sv-land-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.sv-land-btn:active {
  transform: scale(0.98);
}

.sv-land-btn-primary {
  background: var(--acc);
  color: #070809;
  box-shadow: 0 4px 24px rgba(200, 164, 90, 0.25);
}

.sv-land-btn-primary:hover {
  background: #d9b56b;
  box-shadow: 0 8px 32px rgba(200, 164, 90, 0.3);
}

.sv-land-btn-ghost {
  background: transparent;
  color: var(--txt2);
  border: 1px solid var(--b1);
}

.sv-land-btn-ghost:hover {
  border-color: rgba(200, 164, 90, 0.4);
  color: var(--acc);
}

.sv-land-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-top: 8px;
}

.sv-land-trust-item {
  font-size: 11px;
  color: var(--mut);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sv-land-trust-item::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--acc);
  opacity: 0.7;
}

.sv-land-device {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--s1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(200, 164, 90, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sv-land-device::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(200, 164, 90, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.sv-land-device-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sv-land-device-bar span {
  font-family: var(--fd);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--acc);
}

.sv-land-device-bar small {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--mut);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sv-land-device img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.sv-land-strip {
  border-top: 1px solid var(--b1);
  border-bottom: 1px solid var(--b1);
  background: var(--s1);
}

.sv-land-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 960px;
  margin: 0 auto;
}

.sv-land-metric {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--b1);
}

.sv-land-metric:last-child {
  border-right: none;
}

.sv-land-metric-n {
  font-family: var(--fd);
  font-size: 32px;
  letter-spacing: 2px;
  color: var(--acc);
  line-height: 1;
  margin-bottom: 6px;
}

.sv-land-metric-l {
  font-size: 10px;
  font-weight: 600;
  color: var(--txt2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sv-land-sec {
  padding: clamp(64px, 10vw, 96px) clamp(20px, 5vw, 48px);
  max-width: 1100px;
  margin: 0 auto;
}

.sv-land-sec-hdr {
  margin-bottom: 48px;
  max-width: 640px;
}

.sv-land-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--acc);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sv-land-h2 {
  font-family: var(--fd);
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: 2px;
  line-height: 1;
  color: #fff;
  margin-bottom: 14px;
}

.sv-land-h2 em {
  font-style: normal;
  color: var(--acc);
}

.sv-land-sub {
  font-size: 16px;
  color: var(--txt2);
  line-height: 1.65;
}

.sv-land-feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.sv-land-feat {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 12px;
  padding: 24px 22px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.sv-land-feat:hover {
  border-color: rgba(200, 164, 90, 0.28);
  transform: translateY(-2px);
}

.sv-land-feat-ic {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(200, 164, 90, 0.1);
  border: 1px solid rgba(200, 164, 90, 0.15);
  color: var(--acc);
}

.sv-land-feat-ic svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sv-land-feat-t {
  font-size: 15px;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 8px;
}

.sv-land-feat-d {
  font-size: 13px;
  color: var(--txt2);
  line-height: 1.55;
  margin-bottom: 14px;
}

.sv-land-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--mut);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sv-land-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sv-land-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--s2);
  border: 1px solid var(--b1);
  font-size: 12px;
  font-weight: 500;
  color: var(--txt2);
}

.sv-land-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sv-land-prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.sv-land-price {
  position: relative;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 12px;
  padding: 24px 20px;
}

.sv-land-price.featured {
  border-color: rgba(200, 164, 90, 0.4);
  box-shadow: 0 0 0 1px rgba(200, 164, 90, 0.1);
}

.sv-land-price-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acc);
  background: rgba(200, 164, 90, 0.12);
  padding: 4px 8px;
  border-radius: 4px;
}

.sv-land-price h3 {
  font-family: var(--fd);
  font-size: 26px;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 4px;
}

.sv-land-amt {
  font-family: var(--fd);
  font-size: 34px;
  color: var(--acc);
  letter-spacing: 1px;
  margin: 8px 0 16px;
}

.sv-land-amt small {
  font-size: 14px;
  color: var(--txt2);
  font-family: -apple-system, sans-serif;
  letter-spacing: 0;
}

.sv-land-price ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sv-land-price li {
  font-size: 13px;
  color: var(--txt2);
  padding: 6px 0;
  padding-left: 14px;
  position: relative;
  line-height: 1.45;
}

.sv-land-price li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 1px;
  background: var(--acc);
}

.sv-land-footnote {
  margin: 20px 0 0;
  font-size: 12px;
  color: var(--mut);
  line-height: 1.55;
  text-align: center;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.sv-land-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--b1);
  border-radius: 12px;
  overflow: hidden;
  background: var(--s1);
}

.sv-land-step {
  padding: 28px 22px;
  border-right: 1px solid var(--b1);
  position: relative;
}

.sv-land-step:last-child {
  border-right: none;
}

.sv-land-step-n {
  font-family: var(--fd);
  font-size: 36px;
  color: rgba(200, 164, 90, 0.15);
  line-height: 1;
  margin-bottom: 12px;
}

.sv-land-step-t {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 8px;
}

.sv-land-step-d {
  font-size: 12px;
  color: var(--txt2);
  line-height: 1.55;
}

.sv-land-audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.sv-land-aud {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: 10px;
}

.sv-land-aud-mark {
  flex-shrink: 0;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--acc), rgba(200, 164, 90, 0.2));
}

.sv-land-aud-t {
  font-size: 13px;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 4px;
}

.sv-land-aud-d {
  font-size: 12px;
  color: var(--txt2);
  line-height: 1.5;
}

.sv-land-cta-wrap {
  padding: clamp(64px, 10vw, 100px) clamp(20px, 5vw, 48px);
}

.sv-land-cta {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(40px, 6vw, 56px) clamp(24px, 5vw, 48px);
  background: var(--s1);
  border: 1px solid rgba(200, 164, 90, 0.2);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.sv-land-cta p {
  font-size: 15px;
  color: var(--txt2);
  line-height: 1.65;
  margin-bottom: 28px;
}

.sv-land-cta-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--mut);
}

.sv-land-cta-note a {
  color: var(--acc);
  text-decoration: none;
  font-weight: 600;
}

.sv-land-cta-note a:hover {
  text-decoration: underline;
}

.sv-land-foot {
  border-top: 1px solid var(--b1);
  padding: 32px clamp(20px, 5vw, 48px);
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.sv-land-foot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sv-land-foot-brand span {
  font-family: var(--fd);
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--mut);
}

.sv-land-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.sv-land-foot-links a {
  font-size: 11px;
  color: var(--mut);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.sv-land-foot-links a:hover {
  color: var(--acc);
}

.sv-land-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--b1), transparent);
  margin: 0 clamp(20px, 5vw, 48px);
}

@media (max-width: 900px) {
  .sv-land-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--nav-h) + 32px);
  }

  .sv-land-lead,
  .sv-land-sec-hdr {
    margin-left: auto;
    margin-right: auto;
  }

  .sv-land-actions,
  .sv-land-trust {
    justify-content: center;
  }

  .sv-land-hero-visual {
    order: -1;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .sv-land-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .sv-land-metric:nth-child(2) {
    border-right: none;
  }

  .sv-land-metric:nth-child(1),
  .sv-land-metric:nth-child(2) {
    border-bottom: 1px solid var(--b1);
  }

  .sv-land-steps {
    grid-template-columns: 1fr 1fr;
  }

  .sv-land-step:nth-child(2) {
    border-right: none;
  }

  .sv-land-step:nth-child(1),
  .sv-land-step:nth-child(2) {
    border-bottom: 1px solid var(--b1);
  }
}

@media (max-width: 720px) {
  .sv-land-menu {
    display: flex;
  }

  .sv-land-nav {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 20px;
    background: rgba(7, 8, 9, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--b1);
  }

  .sv-land-nav.open {
    display: flex;
  }

  .sv-land-nav a {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .sv-land-nav-cta {
    margin-top: 8px;
    text-align: center;
    border: none;
  }
}

@media (max-width: 520px) {
  .sv-land-metrics {
    grid-template-columns: 1fr;
  }

  .sv-land-metric {
    border-right: none;
    border-bottom: 1px solid var(--b1);
    padding: 20px 16px;
  }

  .sv-land-metric:last-child {
    border-bottom: none;
  }

  .sv-land-steps {
    grid-template-columns: 1fr;
  }

  .sv-land-step {
    border-right: none;
    border-bottom: 1px solid var(--b1);
  }

  .sv-land-step:last-child {
    border-bottom: none;
  }

  .sv-land-foot {
    flex-direction: column;
    text-align: center;
  }

  .sv-land-foot-links {
    justify-content: center;
  }
}
