/* Wolfie Remote - interfata telefonului. Realizat de Cezar de la wolfie.ro
   Paleta "noapte cu luna": albastru-cerneala, alb de luna, accent albastru, chihlimbar = ochi de lup. */
:root {
  --ink: #0d1320;
  --ink-2: #111a2a;
  --panel: #151d2c;
  --panel-2: #1c2638;
  --line: #273249;
  --text: #e8edf6;
  --dim: #8c98af;
  --blue: #4c8dff;
  --blue-2: #3f7ae6;
  --amber: #f5b84c;
  --ok: #3ecf8e;
  --danger: #ff6b6b;
  --tb-h: 54px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  /* miscare: iesire rapida, intrare care "se aseaza", arc mic pentru apasari */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.5, 0, .75, 0);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); }
body {
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
  height: var(--vvh, 100dvh);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  font-variant-numeric: tabular-nums;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; touch-action: manipulation; cursor: pointer; }
button:not(.btn):focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* Basecoat (stilul Nova) da culorile, marginile, inelul de focus si apasarea; aici doar marimi pentru deget */
.btn { touch-action: manipulation; cursor: pointer; }
/* apasare: butonul se strange repede si revine cu un arc mic */
.btn, .seg button, .x {
  transition: scale var(--pd, .34s) var(--pe, var(--spring)), background-color .18s, color .18s,
    border-color .18s, box-shadow .18s, opacity .18s;
}
.btn:active, .btn.pressed, .seg button:active, .seg button.pressed { scale: .94; --pd: .08s; --pe: ease-out; }
.btn.touch-lg:active, .btn.touch-lg.pressed, .wide-btn:active, .wide-btn.pressed { scale: .975; }
.flist a, .flist button { transition: background-color .18s, translate .3s var(--spring); }
.flist a.pressed, .flist button.pressed { translate: 4px 0; }
.btn.touch-lg { width: 100%; min-height: 56px; gap: 10px; font-size: 17px; font-weight: 650; position: relative; }
.btn .spin { display: none; }
.btn.busy .spin { display: inline-block; }
.btn.busy { pointer-events: none; }
a { color: inherit; }

.screen { position: fixed; inset: 0; height: var(--vvh, 100dvh); }

/* ================= LOGARE ================= */
#login {
  display: flex; flex-direction: column; justify-content: center;
  padding: max(28px, env(safe-area-inset-top)) 24px max(20px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: radial-gradient(120% 70% at 50% 120%, #0a0f19 0%, transparent 60%), var(--ink);
}
/* luna: singurul element "decorativ" al aplicatiei */
.moon {
  position: absolute; width: 340px; height: 340px; right: -120px; top: -110px; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #dfe7f5 0%, #b9c6dc 32%, #6e7f9c 60%, rgba(76,141,255,0) 72%);
  opacity: .16; filter: blur(.5px); pointer-events: none;
}
.moon::after {
  content: ""; position: absolute; inset: -60px; border-radius: 50%;
  background: radial-gradient(circle, rgba(76,141,255,.22) 0%, rgba(76,141,255,0) 62%);
}
.login { position: relative; width: min(420px, 100%); margin: 0 auto; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; letter-spacing: -.005em; }
.brand img { border-radius: 8px; }
.login h1 {
  font-size: clamp(34px, 10.5vw, 46px); line-height: 1.02; letter-spacing: -.035em; font-weight: 750;
  margin: 26px 0 30px; max-width: 11ch; text-wrap: balance;
}
.field-label { font-size: 14px; color: var(--dim); margin-bottom: 8px; }
.pw-wrap { position: relative; }
.pw-wrap input {
  width: 100%; font-size: 17px; padding: 16px 52px 16px 16px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--ink-2); color: var(--text); outline: none;
  -webkit-user-select: text; user-select: text; transition: border-color .15s, box-shadow .15s;
}
.pw-wrap input::placeholder { color: #5d6a82; }
/* PIN: cifre mari, rarite, ca pe ecranul de deblocare */
.pw-wrap input.pin { font-size: 24px; letter-spacing: .32em; padding-top: 12px; padding-bottom: 12px; font-variant-numeric: tabular-nums; }
.pw-wrap input.pin::placeholder { font-size: 17px; letter-spacing: normal; }
/* parola / PIN gresit: campul "da din cap" */
.pw-wrap.shake input { border-color: var(--danger); }
@keyframes shake { 15% { translate: -8px 0; } 30% { translate: 7px 0; } 45% { translate: -5px 0; } 60% { translate: 3px 0; } 75% { translate: -1px 0; } }
.pw-wrap input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(76,141,255,.16); }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; color: var(--dim); }
.eye svg { width: 20px; height: 20px; }
.eye[aria-pressed="true"] { color: var(--blue); }
.check-row { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; font-size: 14.5px; cursor: pointer; }
.remember { display: flex; align-items: center; gap: 12px; margin: 18px 0 22px; font-size: 15px; cursor: pointer; }
.remember input, .check-row input {
  appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; flex: none;
  border-radius: 7px; border: 1.5px solid #3a4763; background: var(--ink-2); display: grid; place-items: center;
  transition: background .15s, border-color .15s;
}
.remember input::after, .check-row input::after {
  content: ""; width: 11px; height: 6px; border: 2.2px solid #fff; border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .3s var(--spring);
}
.remember input:checked, .check-row input:checked { background: var(--blue); border-color: var(--blue); }
.remember input:checked::after, .check-row input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.err { color: var(--danger); min-height: 1.5em; margin: 14px 0 0; font-size: 15px; }
.credit { margin: 18px 0 0; font-size: 13px; color: var(--dim); text-align: center; }
.credit a { color: var(--text); font-weight: 650; text-decoration: none; }
.login-credit { position: absolute; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom)); margin: 0; }

/* intrarea ecranului de logare: singurul moment "orchestrat" - luna rasare, apoi randurile pe rand */
#login:not(.out) .moon { animation: moonRise 1.4s var(--ease-out) both; }
#login:not(.out) .login > * { animation: up .6s var(--ease-out) backwards; }
#login:not(.out) .login > :nth-child(2) { animation-delay: .06s; }
#login:not(.out) .login > :nth-child(4) { animation-delay: .12s; }
#login:not(.out) .login > :nth-child(5) { animation-delay: .16s; }
#login:not(.out) .login > :nth-child(6) { animation-delay: .2s; }
#login:not(.out) .login > :nth-child(7) { animation-delay: .24s; }
#login:not(.out) .login-credit { animation: fade .8s .4s ease backwards; }
#login.out .login { animation: away .32s var(--ease-in) forwards; }
#login .login > .pw-wrap.shake { animation: shake .44s var(--ease-out); }
@keyframes moonRise { from { opacity: 0; translate: 40px 50px; scale: .85; } }
@keyframes up { from { opacity: 0; translate: 0 18px; } }
@keyframes away { to { opacity: 0; scale: .96; } }

.spin {
  width: 18px; height: 18px; border-radius: 50%; border: 2.4px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
.spin.big { width: 28px; height: 28px; border-color: rgba(76,141,255,.25); border-top-color: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= SESIUNE ================= */
#app { display: flex; flex-direction: column; background: #000; animation: fade .32s ease; }
#app.out { animation: fadeOut .22s ease forwards; }
#app #toolbar { animation: barUp .5s .08s var(--ease-out) backwards; }
@keyframes barUp { from { translate: 0 100%; } }
@keyframes fadeOut { to { opacity: 0; } }
#stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #000; }
#screen { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }

/* mod mouse: telefonul e un touchpad mare */
#pad {
  position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(circle, rgba(140,152,175,.13) 1px, transparent 1.4px) 0 0 / 22px 22px,
    radial-gradient(90% 60% at 50% 0%, rgba(76,141,255,.10), transparent 70%),
    var(--ink);
}
.pad-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; animation: up .5s var(--ease-out) backwards; }
.pad-inner strong { font-size: 18px; letter-spacing: -.01em; }
.pad-inner span { color: var(--dim); font-size: 14px; max-width: 26ch; }

.pill {
  position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  background: rgba(13,19,32,.78); border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  pointer-events: none; transition: opacity .4s;
}
.pill.faded { opacity: 0; }
.pdot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); transition: background-color .3s; }
.pill[data-state="ok"] .pdot { background: var(--ok); }
.pill[data-state="wait"] .pdot { background: var(--amber); animation: blink 1s ease-in-out infinite; }
.pill[data-state="bad"] .pdot { background: var(--danger); animation: blink 1s ease-in-out infinite; }
.pill[data-state="bad"] { color: #ffc2c2; }
@keyframes blink { 50% { opacity: .35; } }

.overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5,8,14,.6); pointer-events: none; padding: 24px; }
.overlay-box {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 320px; text-align: center;
}
.overlay-box strong { font-size: 17px; }
.overlay-box span:last-child { color: var(--dim); font-size: 14px; }
.overlay:not(.loading) .spin { display: none; }
.overlay { animation: fade .25s ease; }
.overlay .overlay-box { animation: pop .34s var(--spring); }
.overlay.out { animation: fadeOut .22s ease forwards; }

/* ---------- bara de jos ---------- */
#toolbar {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 6px;
  height: calc(var(--tb-h) + env(safe-area-inset-bottom));
  padding: 6px calc(8px + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(8px + env(safe-area-inset-left));
  background: var(--panel); border-top: 1px solid var(--line);
}
.tb-scroll {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent);
  padding-right: 18px;
}
.tb-scroll::-webkit-scrollbar { display: none; }
.tb-sep { flex: none; width: 1px; height: 22px; background: var(--line); margin: 0 3px; }
.tb {
  flex: none; min-width: 46px; height: 42px; padding: 0 12px; font-size: 14.5px; font-weight: 600;
}
.tb.icon { padding: 0; width: 46px; }
.tb.arrow { font-size: 17px; padding: 0; width: 44px; min-width: 44px; }
.tb svg { width: 20px; height: 20px; }
.tb.on { background: var(--blue); color: #fff; animation: modOn .32s var(--spring); }
.tb.locked { background: var(--blue); color: #fff; box-shadow: inset 0 -3px 0 #fff; animation: modLock .36s var(--spring); }
@keyframes modOn { from { scale: .86; } }
@keyframes modLock { 40% { scale: 1.08; } }
.tb.kbd-key { flex: none; width: 54px; margin-left: 2px; }  /* langa degetul mare */
.tb.kbd-key svg { width: 22px; height: 22px; }
.tb.kbd-key.kbd-open { background: var(--text); color: var(--ink); }

/* „Scrie”: apare langa deget cand ai dat click intr-un camp de text pe PC */
.kbchip { position: absolute; z-index: 3; left: 0; top: 0; gap: 8px; height: 46px; padding: 0 18px 0 14px; border-radius: 23px;
  font-size: 15.5px; font-weight: 650; box-shadow: 0 10px 26px -10px rgba(0,0,0,.8); animation: chipIn .34s var(--spring); }
.kbchip.out { animation: chipOut .12s ease-in forwards; }
.kbchip svg { width: 20px; height: 20px; }
@keyframes chipIn { from { opacity: 0; translate: 0 8px; scale: .8; } }
@keyframes chipOut { to { opacity: 0; scale: .9; } }
.tb.end { color: var(--dim); }
.tb.end.open { color: var(--text); background: var(--panel-2); }

/* ---------- foi (sheets) ---------- */
#backdrop { position: absolute; inset: 0; z-index: 4; background: rgba(4,7,12,.55); animation: fade .24s ease; }
#backdrop.out { animation: fadeOut .2s ease forwards; }
.sheet {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: 0;
  max-height: min(78%, 640px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--panel); border-top: 1px solid var(--line); border-radius: 24px 24px 0 0;
  padding: 8px calc(18px + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left));
  box-shadow: 0 -24px 60px rgba(0,0,0,.5);
  animation: sheetIn .42s var(--ease-out);
}
.sheet.out { animation: sheetOut .2s var(--ease-in) forwards; pointer-events: none; }
/* continutul foii intra pe rand, imediat dupa foaie */
.sheet:not(.out) > * { animation: up .42s var(--ease-out) backwards; }
.sheet:not(.out) > :nth-child(3) { animation-delay: .04s; }
.sheet:not(.out) > :nth-child(4) { animation-delay: .07s; }
.sheet:not(.out) > :nth-child(5) { animation-delay: .1s; }
.sheet:not(.out) > :nth-child(6) { animation-delay: .13s; }
.sheet:not(.out) > :nth-child(n+7) { animation-delay: .16s; }
@keyframes sheetIn { from { translate: 0 100%; } }
@keyframes sheetOut { to { translate: 0 100%; } }
@keyframes rise { from { translate: 0 40px; opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.sheet h3 { margin: 22px 0 10px; font-size: 14px; font-weight: 600; color: var(--dim); }
.x { width: 40px; height: 40px; border-radius: 50%; color: var(--dim); font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.fkeys { grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); }
.grid .btn, .actions .btn {
  height: auto; min-height: 48px; padding: 8px 10px; font-size: 14.5px; font-weight: 550; text-align: center;
  white-space: normal; line-height: 1.2;
}

.seg { position: relative; isolation: isolate; display: flex; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px; gap: 4px; }
.seg button { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 8px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--dim); min-height: 42px; }
.seg button.on { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 2px 6px -2px rgba(0,0,0,.5); }
/* pastila care aluneca (JS pune --i = butonul ales, --n = cate sunt) */
.seg.has-on::before {
  content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px - (var(--n) - 1) * 4px) / var(--n));
  translate: calc(var(--i) * (100% + 4px)) 0;
  border-radius: 10px; background: var(--primary); box-shadow: 0 2px 6px -2px rgba(0,0,0,.5);
  transition: translate .42s cubic-bezier(.3, 1.2, .45, 1);
}
.seg.has-on { overflow: hidden; }
.seg.has-on button.on { background: transparent; box-shadow: none; }
.mode-desc { margin: 12px 0 8px; font-size: 14.5px; color: var(--text); }
.gestures { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.gestures li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 14px; }
.gestures li + li { border-top: 1px solid var(--line); }
.gestures b { font-weight: 600; color: var(--text); }
.gestures span { color: var(--dim); text-align: right; }
.range-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--dim); }
.range-row input { flex: 1; accent-color: var(--blue); height: 32px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.actions .danger { grid-column: 1 / -1; }
.actions.power { margin-top: 0; }
.actions.power .danger { grid-column: auto; }

/* ---------- confirmare ---------- */
.confirm { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 24px; background: rgba(4,7,12,.66); animation: fade .16s ease; }
.confirm-box {
  width: min(340px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 20px 18px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); animation: pop .36s var(--spring);
}
.confirm.out { animation: fadeOut .16s ease forwards; }
.confirm.out .confirm-box { animation: away .16s var(--ease-in) forwards; }
.confirm-box strong { display: block; font-size: 19px; letter-spacing: -.015em; }
.confirm-box p { margin: 8px 0 18px; color: var(--dim); font-size: 15px; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.confirm-actions .btn { height: auto; min-height: 48px; font-size: 15px; font-weight: 600; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }

#kbd {
  position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0;
  font-size: 16px; border: 0; padding: 0; resize: none; pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition: none !important;
  }
  .btn:active, .btn.pressed, .seg button:active, .seg button.pressed { scale: none; }
}

/* ---------- aplicatie pe ecranul principal (PWA) ---------- */
.wide-btn { width: 100%; height: auto; min-height: 48px;
  font-size: 15px; font-weight: 600; }
.hint { margin: 8px 0 0; font-size: 13.5px; color: var(--dim); }
.install-tip { position: absolute; z-index: 4; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top)); max-width: 460px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 16px 40px -16px rgba(0,0,0,.8); animation: drop .5s var(--spring); }
.install-tip.out { animation: lift .18s var(--ease-in) forwards; }
@keyframes drop { from { opacity: 0; translate: 0 -24px; } }
@keyframes lift { to { opacity: 0; translate: 0 -16px; } }
.install-tip img { border-radius: 9px; flex: none; }
.install-tip p { margin: 0; flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; }
.install-tip b { display: block; font-weight: 650; }
.install-tip span { color: var(--dim); font-size: 13px; }
#installTipYes { flex: none; height: 40px; padding: 0 16px; font-size: 14.5px; font-weight: 650; }
.install-tip .x { flex: none; width: 36px; height: 36px; }
.login .offline { display: block; margin-top: 6px; color: var(--dim); font-size: 14px; }
.login .offline a { color: var(--text); font-weight: 650; }

/* ---------- fisiere si text ---------- */
.files-entry { grid-template-columns: repeat(3, 1fr); }
.files-entry .btn { flex-direction: column; gap: 2px; align-items: flex-start; justify-content: flex-start; text-align: left; padding: 12px; }
.files-entry b { font-size: 14.5px; font-weight: 650; }
.files-entry span { font-size: 12.5px; color: var(--dim); font-weight: 450; }
.sheet.tall { max-height: min(88%, 760px); }
.fpane { margin-top: 14px; }
.crumb { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.crumb .btn { flex: none; width: 44px; height: 44px; font-size: 24px; line-height: 1; }
.crumb button:disabled { opacity: .35; }
.crumb span { min-width: 0; font-size: 14px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: rtl; text-align: left; }
.flist { list-style: none; margin: 10px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.flist li + li { border-top: 1px solid var(--line); }
.flist li { animation: up .34s var(--ease-out) backwards; animation-delay: calc(var(--k, 0) * 22ms); }
.sheet:not(.out) > .fpane { animation-delay: 0s; }
.flash { animation: flash .5s var(--ease-out); }
@keyframes flash { from { opacity: .2; translate: 0 4px; } }
.flist a, .flist button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 14px; border: 0;
  background: transparent; color: var(--text); text-decoration: none; text-align: left; font: inherit; }
.flist a:active, .flist button:active { background: var(--panel-2); }
.flist .ic { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--panel-2); color: var(--dim); }
.flist .ic.dir { background: rgba(245,184,76,.14); color: var(--amber); }
.flist .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.flist .sz { flex: none; font-size: 12.5px; color: var(--dim); }
.flist .empty { padding: 18px 14px; color: var(--dim); font-size: 14px; }
.drop { position: relative; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; text-align: center;
  min-height: 150px; padding: 18px; border: 1.5px dashed var(--line); border-radius: var(--r-lg); background: var(--ink-2); cursor: pointer; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop b { font-size: 17px; font-weight: 650; }
.drop span { font-size: 13.5px; color: var(--dim); max-width: 28ch; }
.fprog { margin-top: 14px; }
.fprog .bar { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.fprog .bar i { display: block; height: 100%; width: 0; background: #2f6fe0; transition: width .2s; }
.fprog p { margin: 8px 0 0; font-size: 14px; color: var(--dim); }
#clipText { width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-2);
  color: var(--text); font: inherit; font-size: 15px; resize: vertical; -webkit-user-select: text; user-select: text; }
#clipText:focus { outline: 0; border-color: var(--blue); }
.actions.two { margin-top: 10px; }
