/* =========================================================================
   styles.css — Clon de Cámara iOS / Pixel + Fotos + Ajustes secretos
   ========================================================================= */
:root {
  --yellow: #FFD60A;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --ios-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --and-font: "Google Sans", "Google Sans Text", "Product Sans", Roboto, "Segoe UI", system-ui, sans-serif;
  --v-bg: #FFFFFF;
  --v-fg: #000000;
  --v-sub: rgba(60, 60, 67, .6);
  --glass-bg: rgba(255, 255, 255, .72);
  --glass-br: rgba(255, 255, 255, .6);
}
@media (prefers-color-scheme: dark) {
  :root {
    --v-bg: #000000;
    --v-fg: #FFFFFF;
    --v-sub: rgba(235, 235, 245, .6);
    --glass-bg: rgba(48, 48, 50, .62);
    --glass-br: rgba(255, 255, 255, .12);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  background: #000; color: #fff;
  overflow: hidden; overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: 100%;
  font-family: var(--ios-font);
}
.os-android body { font-family: var(--and-font); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
svg { display: block; }
[hidden] { display: none !important; }
img { -webkit-user-drag: none; }

/* Mostrar/ocultar por SO */
.os-ios .top-and, .os-ios .zoom-and, .os-ios .modes-and, .os-ios .and-switch, .os-ios .v-and, .os-ios .flip-and { display: none !important; }
.os-android .top-ios, .os-android .zoom-ios, .os-android .zoom-ios-front, .os-android .modes-ios, .os-android .v-ios, .os-android .flip-ios { display: none !important; }

/* ============================ CÁMARA ============================ */
.cam {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  background: #000; overflow: hidden;
}
.top {
  flex: none; height: calc(var(--sat) + 52px); padding: var(--sat) calc(14px + var(--sar)) 0 calc(14px + var(--sal));
  display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 3;
}
.ic-btn { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; }
.ic-btn svg { width: 30px; height: 30px; }
.ic-btn.chev svg { width: 26px; height: 26px; }
.ic-btn.chev { width: 34px; height: 26px; border-radius: 13px; background: rgba(255,255,255,.12); }
.ico-flash .slash, .ico-live .slash { opacity: 0; }
.flash-off .ico-flash .slash { opacity: 1; }
.live-off .ico-live .slash { opacity: 1; }
.flash-on .top-ios [data-act="flash"] { color: var(--yellow); }
.live-on .top-ios [data-act="live"] { color: var(--yellow); }
.flash-auto .top-ios [data-act="flash"]::after { content: ""; }

.top-and { justify-content: center; gap: 18px; }
.a-chip { width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #E6E1E5; font-size: 13px; font-weight: 500; }
.a-chip svg { width: 22px; height: 22px; }
.flash-on .top-and [data-act="flash"] { background: #E6E1E5; color: #1C1B1F; }

.vf { position: relative; flex: none; margin: 0 auto; overflow: hidden; background: #0b0b0b; }
.os-android .vf { border-radius: 20px; }
.vf video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--z, 1)); transition: transform .25s ease;
}
.vf video.mirror { transform: scale(var(--z, 1)) scaleX(-1); }
.vf.switching video { filter: blur(18px) brightness(.7); transition: filter .15s; }

.live-pill {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  background: var(--yellow); color: #000; font-size: 12px; font-weight: 600; letter-spacing: .3px;
  padding: 3px 8px; border-radius: 5px; opacity: 0; transition: opacity .25s; pointer-events: none;
}
.live-pill.show { opacity: 1; }
.rec-time {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  background: #FF3B30; color: #fff; font-size: 15px; font-variant-numeric: tabular-nums;
  padding: 3px 8px; border-radius: 6px; display: none;
}
.recording .rec-time { display: block; }

.zoom { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 22px; background: rgba(0,0,0,.28); }
.zoom button { width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; transition: all .2s; }
.zoom button.on { width: 38px; height: 38px; color: var(--yellow); font-size: 12.5px; background: rgba(0,0,0,.5); }
.zoom-ios-front button { width: 36px; height: 36px; }
.zoom-ios-front button svg { width: 18px; height: 18px; }
.zoom-ios-front button.on { color: var(--yellow); }
.front .zoom-ios, .back .zoom-ios-front { display: none; }
.zoom-and { background: rgba(31,31,31,.6); padding: 4px; gap: 2px; }
.zoom-and button { width: 36px; height: 36px; background: transparent; color: #E6E1E5; font-weight: 500; font-size: 12px; }
.zoom-and button.on { background: #E6E1E5; color: #1C1B1F; width: 40px; height: 40px; font-size: 13px; }

.bottom { flex: 1 1 auto; min-height: 150px; display: flex; flex-direction: column; padding-bottom: var(--sab); position: relative; z-index: 2; }
.modes { flex: none; height: 44px; overflow: hidden; position: relative; touch-action: pan-y; }
.modes-track { position: absolute; top: 0; left: 0; height: 100%; display: flex; align-items: center; white-space: nowrap; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.modes-ios .modes-track span { font-size: 13.5px; font-weight: 600; letter-spacing: .6px; padding: 0 11px; color: #fff; }
.modes-ios .modes-track span.on { color: var(--yellow); }
.modes-and { height: 50px; }
.modes-and .modes-track span { font-size: 14px; font-weight: 500; padding: 7px 14px; margin: 0 2px; border-radius: 18px; color: #E6E1E5; transition: background .25s, color .25s; }
.modes-and .modes-track span.on { background: #C2E7FF; color: #001D35; }

.controls { flex: 1; min-height: 100px; max-height: 150px; display: flex; align-items: center; justify-content: space-between; padding: 0 calc(30px + var(--sar)) 0 calc(30px + var(--sal)); }
.thumb { width: 50px; height: 50px; border-radius: 8px; overflow: hidden; background: transparent; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: none; }
.thumb.has img { display: block; }
.thumb.pop img { animation: pop .35s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop { from { transform: scale(.4); opacity: .3; } to { transform: scale(1); opacity: 1; } }
.os-ios .thumb { border-radius: 8px; }
.os-android .thumb { border-radius: 50%; width: 52px; height: 52px; background: rgba(255,255,255,.1); }
.os-android .thumb.has { box-shadow: 0 0 0 2px rgba(255,255,255,.9); }

.shutter { width: 80px; height: 80px; position: relative; flex: none; }
.shutter .ring { position: absolute; inset: 0; border-radius: 50%; border: 4px solid #fff; }
.shutter .core { position: absolute; inset: 8px; border-radius: 50%; background: #fff; transition: transform .12s ease, background .2s, border-radius .25s, inset .25s; }
.shutter:active .core { transform: scale(.9); }
.vmode .shutter .core { background: #FF3B30; }
.recording .shutter .core { inset: 25px; border-radius: 7px; }
.os-android .shutter { width: 82px; height: 82px; }
.os-android .shutter .ring { border: 2px solid rgba(255,255,255,.95); }
.os-android .shutter .core { inset: 7px; }

.flip { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; -webkit-touch-callout: none; touch-action: none; }
.flip svg { width: 32px; height: 32px; transition: transform .5s cubic-bezier(.3,.7,.3,1); }
.flip.spin svg { transform: rotate(180deg); }
.os-android .flip { width: 52px; height: 52px; background: rgba(255,255,255,.12); }
.os-android .flip svg { width: 26px; height: 26px; }

.and-switch { flex: none; align-self: center; display: flex; gap: 2px; padding: 3px; margin: 0 0 10px; border-radius: 22px; background: rgba(255,255,255,.12); }
.and-switch span { width: 46px; height: 32px; border-radius: 16px; display: grid; place-items: center; color: #E6E1E5; }
.and-switch span.on { background: #E6E1E5; color: #1C1B1F; }
.and-switch svg { width: 20px; height: 20px; }

.shutter-flash { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 20; }
.shutter-flash.go { animation: blink .2s ease-out; }
@keyframes blink { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
.front-flash { position: fixed; inset: 0; background: #fffdf4; opacity: 0; pointer-events: none; z-index: 21; transition: opacity .12s; }
.front-flash.on { opacity: 1; }

.perm { position: absolute; inset: 0; z-index: 10; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px; text-align: center; color: #8E8E93; font-size: 15px; }
.perm p { margin: 0; max-width: 280px; line-height: 1.35; }
.perm button { margin-top: 6px; background: #1C1C1E; color: #fff; padding: 12px 22px; border-radius: 22px; font-weight: 600; }

/* ============================ VISOR ============================ */
.viewer { position: fixed; inset: 0; z-index: 50; overflow: hidden; color: var(--v-fg); }
.viewer.opening { animation: vin .28s cubic-bezier(.2,.8,.2,1); }
@keyframes vin { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.v-bg { position: absolute; inset: 0; background: var(--v-bg); transition: background .25s, opacity .2s; }
.os-android .viewer { color: #E3E3E3; }
.os-android .v-bg, .viewer.chrome-off .v-bg, .viewer.editing .v-bg { background: #000; }
.v-port { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.v-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.v-stage.anim { transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.v-stage img, .v-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
#vOver { will-change: opacity; }
#vOver.glitch { animation: glitch var(--gd, .7s) steps(1, end) forwards; }
@keyframes glitch {
  0%   { transform: translate(0,0); filter: none; clip-path: inset(0 0 0 0); opacity: 1; }
  8%   { transform: translate(-1.5%,0); filter: drop-shadow(6px 0 rgba(255,0,70,.85)) drop-shadow(-6px 0 rgba(0,240,255,.85)); clip-path: inset(10% 0 55% 0); }
  16%  { transform: translate(2%,0.5%); filter: drop-shadow(-8px 0 rgba(255,0,70,.85)) drop-shadow(8px 0 rgba(0,240,255,.85)); clip-path: inset(0 0 0 0); }
  24%  { transform: translate(-0.5%,0); filter: hue-rotate(80deg) drop-shadow(5px 0 rgba(255,0,70,.9)); clip-path: inset(45% 0 20% 0); }
  32%  { transform: translate(1%,-0.5%); filter: drop-shadow(-4px 0 rgba(0,240,255,.9)); clip-path: inset(0 0 0 0); opacity: .9; }
  40%  { transform: translate(-2.5%,0); filter: saturate(3) drop-shadow(9px 0 rgba(255,0,70,.8)) drop-shadow(-9px 0 rgba(0,240,255,.8)); clip-path: inset(70% 0 5% 0); }
  48%  { transform: translate(0,0); filter: none; clip-path: inset(0 0 0 0); opacity: .75; }
  56%  { transform: translate(1.5%,0); filter: drop-shadow(-7px 0 rgba(255,0,70,.85)) drop-shadow(7px 0 rgba(0,240,255,.85)); clip-path: inset(25% 0 40% 0); opacity: .7; }
  64%  { transform: translate(-1%,0); filter: invert(.15) drop-shadow(4px 0 rgba(0,240,255,.9)); clip-path: inset(0 0 0 0); opacity: .5; }
  72%  { transform: translate(2.5%,0); clip-path: inset(60% 0 12% 0); opacity: .45; }
  80%  { transform: translate(-1.5%,0); clip-path: inset(5% 0 75% 0); opacity: .3; }
  88%  { transform: translate(0.8%,0); clip-path: inset(0 0 0 0); opacity: .15; }
  100% { transform: none; filter: none; clip-path: inset(0 0 0 0); opacity: 0; }
}

.v-top, .v-bot, .v-editbar { position: absolute; left: 0; right: 0; z-index: 3; display: flex; align-items: center; transition: opacity .2s; }
.v-top { top: 0; padding: calc(var(--sat) + 6px) calc(16px + var(--sar)) 8px calc(16px + var(--sal)); justify-content: space-between; }
.v-bot { bottom: 0; padding: 8px calc(16px + var(--sar)) calc(var(--sab) + 10px) calc(16px + var(--sal)); justify-content: space-between; }
.viewer.chrome-off .v-top, .viewer.chrome-off .v-bot { opacity: 0; pointer-events: none; }
.viewer.editing .v-top, .viewer.editing .v-bot { display: none; }

.glass {
  background: var(--glass-bg); color: var(--v-fg);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: .5px solid var(--glass-br); box-shadow: 0 2px 14px rgba(0,0,0,.12);
}
.glass.circ { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.glass.circ svg { width: 23px; height: 23px; }
.glass.pill { height: 46px; padding: 0 18px; border-radius: 23px; font-size: 17px; font-weight: 600; }
.glass.group { display: flex; height: 46px; border-radius: 23px; padding: 0 4px; }
.glass.group button { width: 52px; height: 46px; display: grid; place-items: center; }
.glass.group svg { width: 23px; height: 23px; }
.v-title { display: flex; flex-direction: column; align-items: center; line-height: 1.2; text-shadow: 0 0 12px var(--v-bg); }
.v-title b { font-size: 17px; font-weight: 600; }
.v-title span { font-size: 13px; color: var(--v-sub); font-variant-numeric: tabular-nums; }
.fav-on .heart path { fill: currentColor; }
.os-ios .fav-on [data-act="fav"] { color: #FF3B5C; }
.os-android .fav-on [data-act="fav"] { color: #F2B8B5; }

.v-and.v-top { background: linear-gradient(rgba(0,0,0,.55), transparent); padding-left: calc(6px + var(--sal)); padding-right: calc(6px + var(--sar)); gap: 2px; }
.a-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #E3E3E3; }
.a-ic:active { background: rgba(255,255,255,.12); }
.a-ic svg { width: 24px; height: 24px; }
.a-when { flex: 1; font-size: 14px; padding-left: 6px; color: #E3E3E3; }
.v-and.v-bot { background: linear-gradient(transparent, rgba(0,0,0,.6)); justify-content: space-around; padding-top: 14px; }
.v-and.v-bot button { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; color: #E3E3E3; font-size: 12px; font-weight: 500; }
.v-and.v-bot svg { width: 24px; height: 24px; }

.v-editbar { display: none; top: 0; padding: calc(var(--sat) + 10px) calc(18px + var(--sar)) 12px calc(18px + var(--sal)); justify-content: space-between; color: #fff; font-size: 17px; background: linear-gradient(rgba(0,0,0,.7), transparent); }
.v-editbar span { font-weight: 600; font-size: 15px; letter-spacing: .5px; color: #aaa; text-transform: uppercase; }
.v-editbar .done { color: var(--yellow); font-weight: 600; }
.os-android .v-editbar .done { color: #A8C7FA; }
.viewer.editing .v-editbar { display: flex; }
.v-handles { position: absolute; inset: 0; display: none; pointer-events: none; }
.viewer.editing .v-handles { display: block; }
.v-handles svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.v-handle { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; pointer-events: auto; touch-action: none; display: grid; place-items: center; }
.v-handle::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; background: rgba(255,255,255,.25); box-shadow: 0 0 0 1px rgba(0,0,0,.35); }

/* ============================ HOJAS ============================ */
.sheet { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.4); animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; } }
.sheet-card { position: relative; padding: 0 8px calc(var(--sab) + 8px); animation: slideup .28s cubic-bezier(.2,.8,.2,1); color: #fff; }
@keyframes slideup { from { transform: translateY(100%); } }
.as-group { border-radius: 14px; overflow: hidden; background: rgba(44,44,46,.86); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); margin-bottom: 8px; }
.as-msg { padding: 14px 16px; text-align: center; font-size: 13px; color: rgba(235,235,245,.6); border-bottom: .5px solid rgba(84,84,88,.6); }
.as-btn { display: block; width: 100%; height: 57px; font-size: 20px; color: #0A84FF; border-bottom: .5px solid rgba(84,84,88,.6); }
.as-btn:last-child { border-bottom: 0; }
.as-btn.danger { color: #FF453A; }
.as-btn.bold { font-weight: 600; }
.as-cancel { background: #2C2C2E; }
@media (prefers-color-scheme: light) {
  .os-ios .as-group { background: rgba(249,249,249,.88); }
  .os-ios .as-cancel { background: #fff; }
  .os-ios .as-msg { color: rgba(60,60,67,.6); border-color: rgba(60,60,67,.29); }
  .os-ios .as-btn { color: #007AFF; border-color: rgba(60,60,67,.29); }
  .os-ios .as-btn.danger { color: #FF3B30; }
}
.info-card { background: #1C1C1E; border-radius: 22px; padding: 18px; margin-bottom: 8px; font-size: 15px; }
.info-card h3 { margin: 0 0 4px; font-size: 17px; }
.info-card .muted { color: #8E8E93; font-size: 13px; }
.info-card .rowi { display: flex; justify-content: space-between; padding: 10px 0; border-top: .5px solid #38383A; }
.info-card .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.info-card .chips span { font-size: 12px; background: #2C2C2E; padding: 4px 8px; border-radius: 6px; color: #EBEBF5; }
.os-android .sheet { justify-content: center; align-items: center; }
.os-android .sheet-card { width: min(320px, 88vw); padding: 0; animation: fadein .2s; }
.md-dialog { background: #2B2930; border-radius: 28px; padding: 24px; color: #E6E0E9; }
.md-dialog h3 { margin: 0 0 14px; font-size: 22px; font-weight: 400; }
.md-dialog p { margin: 0 0 20px; font-size: 14px; color: #CAC4D0; line-height: 1.45; }
.md-actions { display: flex; justify-content: flex-end; gap: 8px; }
.md-actions button { color: #D0BCFF; font-weight: 500; font-size: 14px; padding: 10px 14px; border-radius: 20px; }

/* ============================ AJUSTES SECRETOS ============================ */
.settings { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; font-family: var(--ios-font); animation: stIn .32s cubic-bezier(.2,.8,.2,1); }
@keyframes stIn { from { transform: translateY(6%); opacity: 0; } }
.st-scroll { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; padding: calc(var(--sat) + 8px) var(--sar) 0 var(--sal); }
.st-head { padding: 14px 20px 6px; }
.st-head h1 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: .3px; }
.st-head p { margin: 2px 0 0; color: #8E8E93; font-size: 15px; }
.st-label { margin: 26px 20px 8px 32px; font-size: 13px; font-weight: 400; text-transform: uppercase; color: #8E8E93; letter-spacing: .2px; }
.st-group { background: #1C1C1E; border-radius: 20px; margin: 0 16px; padding: 14px; }
.st-cardhero { display: flex; align-items: center; gap: 16px; padding: 2px 2px 14px; }
.st-cardhero img { width: 70px; height: 98px; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.6); background: #fff; }
.st-cardname { font-size: 21px; font-weight: 700; }
.st-cardsub { font-size: 13px; color: #8E8E93; margin-top: 3px; }
.seg { display: flex; padding: 2px; border-radius: 10px; background: rgba(118,118,128,.24); gap: 2px; }
.seg button { flex: 1; height: 34px; border-radius: 8px; font-size: 14px; font-weight: 500; color: #fff; transition: background .2s, color .2s; white-space: nowrap; }
.seg button.on { background: var(--yellow); color: #000; font-weight: 700; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
#stSuits button { font-size: 20px; }
#stSuits button.red:not(.on) { color: #FF453A; }
.seg-wide button { font-size: 13px; height: 40px; }
.st-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-top: 14px; }
.st-grid button { position: relative; border-radius: 6px; aspect-ratio: 250 / 350; background: #fff; overflow: hidden; transition: transform .15s; }
.st-grid button:active { transform: scale(.94); }
.st-grid button img { width: 100%; height: 100%; display: block; }
.st-grid button.on { box-shadow: 0 0 0 3px #1C1C1E, 0 0 0 6px var(--yellow); }
.st-list { padding: 0; overflow: hidden; }
.st-list > button, .st-row { width: 100%; min-height: 58px; display: flex; align-items: center; gap: 13px; padding: 9px 16px; text-align: left; position: relative; }
.st-list > button::before, .st-list > .st-row + .st-row::before, .st-sub + button::before { content: ""; position: absolute; top: 0; left: 59px; right: 0; height: .5px; background: #38383A; }
.st-list > button:first-child::before { display: none; }
.st-list > button:active { background: #2C2C2E; }
.st-ic { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; }
.st-ic svg { width: 19px; height: 19px; }
.st-t { flex: 1; font-size: 17px; display: flex; flex-direction: column; }
.st-t small { font-size: 12.5px; color: #8E8E93; margin-top: 2px; }
.chk { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.on > .chk { background: var(--yellow); }
.on > .chk::after { content: ""; width: 10px; height: 5px; border: solid #000; border-width: 0 0 2.4px 2.4px; transform: translateY(-1px) rotate(-45deg); }
.st-sub { padding: 2px 16px 14px 59px; display: none; }
.st-sub.show { display: block; }
.st-sub .seg button { font-size: 13px; }
.st-delay { padding: 6px 16px 16px; }
.st-delay .st-row { padding: 8px 0; min-height: 44px; justify-content: space-between; font-size: 17px; }
.st-delay b { color: var(--yellow); font-size: 20px; font-variant-numeric: tabular-nums; }
.st-slider { display: flex; align-items: center; gap: 12px; }
.st-slider button { width: 36px; height: 36px; flex: none; border-radius: 50%; background: #2C2C2E; font-size: 22px; line-height: 1; color: var(--yellow); }
.st-slider input { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; outline: none; touch-action: none;
  background: linear-gradient(to right, var(--yellow) 0, var(--yellow) var(--p, 0%), #3A3A3C var(--p, 0%), #3A3A3C 100%); }
.st-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.st-slider input::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; }
.st-switchrow { justify-content: space-between; }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.switch i { position: absolute; inset: 0; border-radius: 16px; background: #39393D; transition: background .25s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.2); transition: transform .25s; }
.switch input:checked + i { background: var(--yellow); }
.switch input:checked + i::after { transform: translateX(20px); }
.st-cv { font-size: 15px; font-weight: 600; color: #8E8E93; }
.st-cv.ok { color: #30D158; }
.st-cv.err { color: #FF453A; }
.st-foot { margin: 14px 32px 0; color: #8E8E93; font-size: 12.5px; line-height: 1.45; }
.st-foot b { color: #c7c7cc; }
.st-spacer { height: calc(120px + var(--sab)); }
.st-save-wrap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px calc(16px + var(--sar)) calc(var(--sab) + 14px) calc(16px + var(--sal)); background: linear-gradient(rgba(0,0,0,0), #000 38%); }
.st-save { width: 100%; height: 58px; border-radius: 29px; background: var(--yellow); color: #000; font-size: 17px; font-weight: 700; letter-spacing: .1px; box-shadow: 0 8px 26px rgba(255,214,10,.25); transition: transform .12s; }
.st-save:active { transform: scale(.97); }

/* ============================ VARIOS ============================ */
.rotate-lock { position: fixed; inset: 0; z-index: 999; background: #000; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; font-size: 15px; }
@media (orientation: landscape) and (max-height: 520px) { .rotate-lock { display: flex; } }
.haptic-lbl { position: fixed; left: -200px; top: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
