
.ndc-fundo {
  --apple-bg: #000000; --apple-surface: rgba(28, 28, 30, .72); --apple-surface-strong: rgba(44, 44, 46, .88);
  --apple-text: #ffffff; --apple-text-secondary: rgba(255, 255, 255, .68); --apple-text-tertiary: rgba(255, 255, 255, .45);
  --apple-blue: #0a84ff; --apple-green: #30d158; --apple-yellow: #ffd60a; --apple-border: rgba(255, 255, 255, .12);
  --apple-radius-sm: 10px; --apple-radius-md: 14px; --apple-radius-lg: 18px; --apple-radius-xl: 24px;
  --apple-blur: 24px; --apple-fast: 120ms; --apple-normal: 160ms; --apple-ease: cubic-bezier(.22, 1, .36, 1);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --rec: var(--ndc-red, #3a86ff);
  position: fixed; inset: 0; z-index: 2147482000; display: grid; place-items: center; background: #111113; color: var(--apple-text);
  font-family: var(--nd-fonte);
  -webkit-font-smoothing: antialiased; opacity: 0; transition: opacity 150ms var(--apple-ease); color-scheme: dark; }
.ndc-fundo.on { opacity: 1; }
.ndc-fundo.saindo { opacity: 0; }
html.ndc-aberta, html.ndc-aberta body { overflow: hidden !important; }
.ndc-fundo *, .ndc-fundo *::before, .ndc-fundo *::after { box-sizing: border-box; }
.ndc-fundo button { font-family: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.ndc-fundo [hidden] { display: none !important; }
.ndc-shell { position: relative; width: min(100%, 520px); height: min(100dvh, 920px); overflow: hidden; background: var(--apple-bg); border-radius: var(--apple-radius-xl);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35); transform: scale(.985); transition: transform 150ms var(--apple-ease); }
.ndc-fundo.on .ndc-shell { transform: none; }
.ndc-fundo.saindo .ndc-shell { transform: scale(.985); }
@media (max-width: 600px), (max-height: 640px) { .ndc-shell { width: 100dvw; height: 100dvh; border-radius: 0; box-shadow: none; } }
.ndc-palco { position: absolute; inset: 0; touch-action: pan-y; }
.ndc-preview, .ndc-midia img, .ndc-midia video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.ndc-preview { transition: opacity var(--apple-fast) var(--apple-ease), transform var(--apple-fast) var(--apple-ease); }
.ndc-preview.espelho, .ndc-midia video.espelho { transform: scaleX(-1); }
.ndc-preview.girando { opacity: .75; transform: scale(.985); }
.ndc-preview.espelho.girando { transform: scaleX(-1) scale(.985); }
.ndc-midia { position: absolute; inset: 0; z-index: 1; }
.ndc-fundo[data-estado="editing"] .ndc-preview { visibility: hidden; }
.ndc-grade { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ndc-grade i { position: absolute; background: rgba(255, 255, 255, .28); }
.ndc-grade i:nth-child(1) { left: 33.33%; top: 0; bottom: 0; width: 1px; } .ndc-grade i:nth-child(2) { left: 66.66%; top: 0; bottom: 0; width: 1px; }
.ndc-grade i:nth-child(3) { top: 33.33%; left: 0; right: 0; height: 1px; } .ndc-grade i:nth-child(4) { top: 66.66%; left: 0; right: 0; height: 1px; }
.ndc-flashtela { position: absolute; inset: 0; z-index: 6; background: #fff; opacity: 0; pointer-events: none; transition: opacity 90ms ease; }
.ndc-flashtela.on { opacity: .35; } .ndc-flashtela.forte { opacity: 1; transition: none; }
.ndc-conta { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; font-size: 96px; font-weight: 200; letter-spacing: -.02em; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); pointer-events: none; }
.ndc-grad-top, .ndc-grad-bot { position: absolute; left: 0; right: 0; z-index: 3; pointer-events: none; }
.ndc-grad-top { top: 0; height: 128px; background: linear-gradient(to bottom, rgba(0, 0, 0, .38), rgba(0, 0, 0, .10), transparent); }
.ndc-grad-bot { bottom: 0; height: 240px; background: linear-gradient(to top, rgba(0, 0, 0, .48), rgba(0, 0, 0, .12), transparent); }
.ndc-ctl { width: 44px; height: 44px; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; position: relative; padding: 0; border: none; background: transparent; color: #fff; border-radius: 50%; cursor: pointer;
  transition: transform var(--apple-fast) var(--apple-ease), background var(--apple-fast) var(--apple-ease), opacity var(--apple-fast) var(--apple-ease), color var(--apple-fast) var(--apple-ease); }
.ndc-ctl:hover { background: rgba(255, 255, 255, .10); }
.ndc-ctl:active { transform: scale(.90); background: rgba(255, 255, 255, .15); }
.ndc-ctl.on { color: var(--apple-yellow); }
.ndc-fundo button:focus-visible { outline: 2px solid var(--apple-blue); outline-offset: 2px; }
.ndc-ic { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.ndc-top { position: absolute; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 10px) calc(env(safe-area-inset-right) + var(--space-3)) 10px calc(env(safe-area-inset-left) + var(--space-3)); }
.ndc-fechar .ndc-ic { width: 24px; height: 24px; }
.ndc-top-dir { display: flex; gap: var(--space-1); }
.ndc-rec { position: absolute; left: 50%; top: calc(env(safe-area-inset-top) + 18px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: rgba(28, 28, 30, .58); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ndc-rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); }
.ndc-tools { position: absolute; z-index: 10; left: calc(env(safe-area-inset-left) + var(--space-3)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: var(--space-2); transition: opacity var(--apple-normal) var(--apple-ease); }
.ndc-tools .ndc-ic { width: 22px; height: 22px; }
.ndc-tools .ndc-ctl[data-v]:not([data-v=""])::after { content: attr(data-v); position: absolute; right: -2px; bottom: 2px; min-width: 18px; padding: 0 4px; border-radius: 8px; background: rgba(28, 28, 30, .8); font-size: 10px; font-weight: 600; line-height: 16px; color: #fff; }
.ndc-shell[data-modo="post"] .ndc-t-musica, .ndc-shell[data-modo="post"] .ndc-t-dur, .ndc-shell[data-modo="post"] .ndc-t-vel, .ndc-shell[data-modo="post"] .ndc-t-fig { display: none; }
.ndc-shell[data-modo="story"] .ndc-t-dur, .ndc-shell[data-modo="story"] .ndc-t-vel { display: none; }
.ndc-shell[data-modo="reel"] .ndc-t-texto, .ndc-shell[data-modo="reel"] .ndc-t-fig { display: none; }
.ndc-shell[data-modo="live"] .ndc-tools, .ndc-shell[data-modo="live"] .ndc-flash, .ndc-shell[data-modo="live"] .ndc-opcoes { display: none; }
.ndc-fundo[data-estado="recording"] .ndc-tools, .ndc-fundo[data-estado="recording"] .ndc-modos, .ndc-fundo[data-estado="recording"] .ndc-galeria, .ndc-fundo[data-estado="recording"] .ndc-girar, .ndc-fundo[data-estado="recording"] .ndc-top-dir { opacity: 0; pointer-events: none; }
.ndc-fundo[data-estado="editing"] .ndc-tools > :not(.ndc-t-texto):not(.ndc-t-fig):not(.ndc-t-efeitos), .ndc-fundo[data-estado="editing"] .ndc-top-dir { display: none; }
.ndc-fundo[data-estado="editing"] .ndc-efeitos:not([hidden]) { display: flex; }
.ndc-fundo[data-estado="editing"] .ndc-t-texto, .ndc-fundo[data-estado="editing"] .ndc-t-fig { display: inline-flex !important; }
.ndc-efeitos { position: absolute; z-index: 10; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 176px); display: flex; gap: var(--space-3); padding: 0 var(--space-4); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.ndc-efeitos::-webkit-scrollbar { display: none; }
.ndc-ef { flex: 0 0 auto; display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; scroll-snap-align: center; }
.ndc-ef span { position: relative; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: #1c1c1e; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); transition: box-shadow var(--apple-fast) var(--apple-ease), transform var(--apple-fast) var(--apple-ease); }
.ndc-ef span img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ndc-ef small { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 500; letter-spacing: .01em; color: var(--apple-text-secondary); text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.ndc-ef:hover span { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.ndc-ef.on span { box-shadow: 0 0 0 2px #000, 0 0 0 4px #fff; }
.ndc-ef.on small { color: #fff; font-weight: 600; }
.ndc-ef:active span { transform: scale(.94); }
.ndc-efeitos { padding-top: 6px; padding-bottom: 2px; }
.ndc-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ndc-vinheta { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, transparent 45%, #000 100%); transition: opacity var(--apple-normal) var(--apple-ease); }
.ndc-fundo[data-estado="editing"] .ndc-vinheta { display: none; }
.ndc-bot { position: absolute; z-index: 10; left: 0; right: 0; bottom: 0; padding: 0 calc(env(safe-area-inset-right) + var(--space-6)) calc(env(safe-area-inset-bottom) + var(--space-4)) calc(env(safe-area-inset-left) + var(--space-6)); }
.ndc-linha { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.ndc-galeria { justify-self: start; width: 46px; height: 46px; padding: 0; display: grid; place-items: center; border-radius: var(--apple-radius-sm); overflow: hidden; border: 1px solid rgba(255, 255, 255, .30); background: rgba(255, 255, 255, .06); cursor: pointer;
  transition: transform var(--apple-fast) var(--apple-ease), opacity var(--apple-normal) var(--apple-ease); }
.ndc-galeria:active { transform: scale(.92); }
.ndc-galeria img, .ndc-galeria video { width: 100%; height: 100%; object-fit: cover; }
.ndc-girar { justify-self: end; width: 48px; height: 48px; background: rgba(255, 255, 255, .10); }
.ndc-girar .ndc-ic { width: 24px; height: 24px; }
.ndc-captura { position: relative; width: 76px; height: 76px; padding: 5px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .95); background: transparent; cursor: pointer; touch-action: none; }
.ndc-captura::after { content: ""; width: 60px; height: 60px; border-radius: 50%; background: #fff; transition: transform 100ms var(--apple-ease), border-radius 120ms var(--apple-ease), width 120ms var(--apple-ease), height 120ms var(--apple-ease), background 120ms var(--apple-ease); }
.ndc-captura:active::after { transform: scale(.88); }
.ndc-shell[data-modo="reel"] .ndc-captura::after, .ndc-shell[data-modo="live"] .ndc-captura::after { background: var(--rec); width: 58px; height: 58px; }
.ndc-fundo[data-estado="recording"] .ndc-captura::after { width: 30px; height: 30px; border-radius: 7px; background: var(--rec); }
.ndc-fundo[data-estado="loading"] .ndc-captura, .ndc-fundo[data-estado="error"] .ndc-captura { opacity: .45; pointer-events: none; }
.ndc-anel { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); transform: rotate(-90deg); pointer-events: none; }
.ndc-anel circle { fill: none; stroke: var(--rec); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 232.5; stroke-dashoffset: 232.5; transition: stroke-dashoffset 200ms linear; }
.ndc-modos { position: relative; height: 36px; margin-top: var(--space-3); overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); transition: opacity var(--apple-normal) var(--apple-ease); }
.ndc-trilho { position: absolute; left: 0; top: 0; display: flex; gap: var(--space-2); transition: transform 160ms var(--apple-ease); will-change: transform; }
.ndc-modo { height: 36px; padding: 0 var(--space-3); border: 0; background: none; cursor: pointer; color: rgba(255, 255, 255, .55); font-size: 13px; font-weight: 500; letter-spacing: .06em; transition: color var(--apple-fast) var(--apple-ease); }
.ndc-modo:hover { color: rgba(255, 255, 255, .8); }
.ndc-modo.on { color: var(--apple-yellow); font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.ndc-edita { display: none; gap: var(--space-3); }
.ndc-fundo[data-estado="editing"] .ndc-edita { display: grid; grid-template-columns: 1fr 1.4fr; }
.ndc-fundo[data-estado="editing"] .ndc-linha, .ndc-fundo[data-estado="editing"] .ndc-modos { display: none; }
.ndc-txt { position: absolute; z-index: 4; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; max-width: 86%; padding: 6px 10px; border: 0; background: none; border-radius: 10px; cursor: grab; touch-action: none;
  font-size: 26px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; text-align: center; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); user-select: none; }
.ndc-txt:active { cursor: grabbing; }
.ndc-txt:not(.ndc-txt-texto) { background: rgba(255, 255, 255, .92); text-shadow: none; font-size: 17px; padding: 8px 14px; border-radius: 12px; }
.ndc-txt:not(.ndc-txt-texto)[style*="color: rgb(255, 255, 255)"], .ndc-txt:not(.ndc-txt-texto)[style*="color:#ffffff"] { color: #1d1d1f !important; }
.ndc-txt .ndc-ic { width: 18px; height: 18px; filter: none; }
.ndc-textos { position: absolute; inset: 0; z-index: 4; pointer-events: none; } .ndc-textos > * { pointer-events: auto; }
.ndc-b1, .ndc-b2, .ndc-b-live { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); border-radius: 12px; font-size: 15px !important; font-weight: 600; cursor: pointer;
  transition: transform var(--apple-fast) var(--apple-ease), background var(--apple-fast) var(--apple-ease), opacity var(--apple-fast) var(--apple-ease); }
.ndc-b1 { background: var(--apple-blue); color: #fff; border: none; } .ndc-b1:hover { background: #2a94ff; }
.ndc-b2 { background: rgba(255, 255, 255, .10); color: #fff; border: 1px solid rgba(255, 255, 255, .08); } .ndc-b2:hover { background: rgba(255, 255, 255, .16); }
.ndc-b-live { background: var(--rec); color: #fff; border: none; }
.ndc-b1:active, .ndc-b2:active, .ndc-b-live:active { transform: scale(.97); }
.ndc-b1:disabled { opacity: .6; cursor: default; }
.ndc-b2 .ndc-ic { width: 20px; height: 20px; filter: none; }
.ndc-largo { width: 100%; margin-top: var(--space-2); }
.ndc-sheet { position: absolute; z-index: 20; left: var(--space-2); right: var(--space-2); bottom: calc(env(safe-area-inset-bottom) + var(--space-2)); max-height: 72%; overflow: auto; padding: var(--space-2) var(--space-5) var(--space-5);
  background: rgba(28, 28, 30, .82); -webkit-backdrop-filter: saturate(180%) blur(28px); backdrop-filter: saturate(180%) blur(28px); border-radius: 22px; border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 -12px 45px rgba(0, 0, 0, .20); transform: translateY(12px); opacity: 0; transition: transform 160ms var(--apple-ease), opacity 160ms var(--apple-ease); }
.ndc-sheet.on { transform: none; opacity: 1; }
.ndc-sheet-pega { width: 36px; height: 5px; margin: 0 auto var(--space-3); border-radius: 3px; background: rgba(255, 255, 255, .25); }
.ndc-sheet h3 { margin: 0 0 var(--space-4); font-size: 17px; font-weight: 600; text-align: center; }
.ndc-op { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 15px; }
.ndc-op:last-of-type { border-bottom: 0; }
.ndc-seg { display: inline-flex; padding: 2px; border-radius: 10px; background: rgba(118, 118, 128, .24); }
.ndc-seg button { min-height: 32px; padding: 0 var(--space-3); border: 0; border-radius: 8px; background: none; font-size: 13px !important; font-weight: 500; cursor: pointer; transition: background var(--apple-fast) var(--apple-ease); }
.ndc-seg button.on { background: rgba(255, 255, 255, .22); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.ndc-sheet > .ndc-seg { display: flex; } .ndc-sheet > .ndc-seg button { flex: 1; }
.ndc-sw { position: relative; width: 51px; height: 31px; flex-shrink: 0; cursor: pointer; }
.ndc-sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ndc-sw i { position: absolute; inset: 0; border-radius: 16px; background: rgba(120, 120, 128, .32); transition: background var(--apple-normal) var(--apple-ease); pointer-events: none; }
.ndc-sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform var(--apple-normal) var(--apple-ease); }
.ndc-sw input:checked + i { background: var(--apple-green); } .ndc-sw input:checked + i::after { transform: translateX(20px); }
.ndc-sw input:focus-visible + i { outline: 2px solid var(--apple-blue); outline-offset: 2px; }
.ndc-in { width: 100%; min-height: 44px; padding: 0 14px; background: rgba(255, 255, 255, .10); color: #fff; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; font: inherit; font-size: 16px;
  transition: border-color var(--apple-fast) var(--apple-ease), box-shadow var(--apple-fast) var(--apple-ease); }
.ndc-in::placeholder { color: var(--apple-text-tertiary); }
.ndc-in:focus { outline: none; border-color: rgba(10, 132, 255, .65); box-shadow: 0 0 0 3px rgba(10, 132, 255, .18); }
.ndc-area { padding: var(--space-3) 14px; resize: none; line-height: 1.4; }
.ndc-campo { display: grid; gap: 6px; margin-bottom: var(--space-2); } .ndc-campo span { font-size: 13px; color: var(--apple-text-secondary); }
.ndc-cores { display: flex; justify-content: center; gap: var(--space-3); margin: var(--space-4) 0; }
.ndc-cores button { width: 28px; height: 28px; padding: 0; border-radius: 50%; background: var(--c); border: 2px solid rgba(255, 255, 255, .35); cursor: pointer; transition: transform var(--apple-fast) var(--apple-ease); }
.ndc-cores button.on { transform: scale(1.18); border-color: #fff; }
.ndc-dois { display: flex; gap: var(--space-3); margin-top: var(--space-4); } .ndc-dois > * { flex: 1; }
.ndc-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.ndc-figs button { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-4) var(--space-2); border: 0; border-radius: var(--apple-radius-md); background: rgba(255, 255, 255, .08); font-size: 13px !important; font-weight: 500; cursor: pointer; transition: background var(--apple-fast) var(--apple-ease), transform var(--apple-fast) var(--apple-ease); }
.ndc-figs button:hover { background: rgba(255, 255, 255, .14); } .ndc-figs button:active { transform: scale(.96); }
.ndc-figs .ndc-ic { filter: none; }
.ndc-nota { margin: 0 0 var(--space-3); font-size: 14px; line-height: 1.45; color: var(--apple-text-secondary); } .ndc-centro { text-align: center; margin-top: var(--space-3); font-size: 12px; }
.ndc-tag { display: inline-block; margin-bottom: var(--space-2); padding: 4px 10px; border-radius: 8px; background: rgba(255, 214, 10, .16); color: var(--apple-yellow); font-size: 12px; font-weight: 600; }
.ndc-msg { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: var(--space-6); text-align: center; background: #000; }
.ndc-msg h2 { margin: 0 0 var(--space-2); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.ndc-msg p { margin: 0 auto var(--space-5); max-width: 320px; font-size: 15px; line-height: 1.45; color: var(--apple-text-secondary); }
.ndc-msg-bts { display: grid; gap: var(--space-2); max-width: 280px; margin: 0 auto; }
.ndc-fundo[data-estado="error"] .ndc-tools, .ndc-fundo[data-estado="error"] .ndc-top-dir { display: none; }
@media (prefers-reduced-motion: reduce) { .ndc-fundo, .ndc-fundo *, .ndc-fundo *::before, .ndc-fundo *::after { transition-duration: 1ms !important; } }
.ndc-linha { position: relative; }
.ndc-recbt { position: absolute; left: calc(50% + 62px); top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); background: rgba(0, 0, 0, .25); display: grid; place-items: center; cursor: pointer; padding: 0; }
.ndc-recbt i { width: 14px; height: 14px; border-radius: 50%; background: var(--ndc-red, #3a86ff); }
.ndc-fundo[data-estado="recording"] .ndc-recbt i { border-radius: 3px; }
.ndc-shell[data-modo="reel"] .ndc-recbt, .ndc-shell[data-modo="live"] .ndc-recbt, .ndc-fundo[data-estado="editing"] .ndc-recbt, .ndc-fundo[data-estado="error"] .ndc-recbt { display: none; }
