@font-face { font-family: Outfit; font-weight: 200; font-display: swap; src: url(/fonts/outfit-latin-200-normal.woff2) format("woff2"); }
@font-face { font-family: Outfit; font-weight: 300; font-display: swap; src: url(/fonts/outfit-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: Outfit; font-weight: 400; font-display: swap; src: url(/fonts/outfit-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 300; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }

:root {
  --bg: #07070b; --fg: #f5f5f7; --mut: #b7b7c4; --dim: #62626e;
  --line: rgba(255,255,255,.10); --glass: rgba(255,255,255,.04); --glass2: rgba(255,255,255,.08);
  --ok: #7be0a8; --bad: #ff7a8a;
  --sans: Outfit, ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; margin: 0; }
html { color-scheme: dark; }
body {
  min-height: 100dvh; background: var(--bg); color: var(--fg);
  font: 300 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* page glow + grain (both driven by the active theme) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: var(--page-bg, #07070b); background-attachment: fixed; opacity: .95; transition: opacity .5s var(--ease);
}
body.drag::before { opacity: 1; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: var(--grain, .02); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
[hidden] { display: none !important; }
.mono, nav button, .btn, .meta, .pill, label, .lab, .name { font-family: var(--mono); }

header { display: flex; align-items: center; justify-content: space-between; padding: 22px max(20px, 4vw); }
.mark { font: 400 12px var(--mono); letter-spacing: .32em; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
nav { display: flex; gap: 2px; }
nav button { padding: 8px 13px; border-radius: 99px; color: rgba(255,255,255,.85); text-shadow: 0 1px 10px rgba(0,0,0,.35); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; transition: .2s; }
nav button:hover, nav button.on { color: #fff; background: rgba(255,255,255,.16); }

main { width: min(660px, 100% - 36px); margin: 0 auto; padding: 3vh 0 90px; }
.view { animation: in .55s var(--ease) both; }
@keyframes in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

h1 { font: 200 clamp(42px, 9vw, 72px)/1.02 var(--sans); letter-spacing: -.03em; }
h1 span { color: var(--mut); }
.sub { color: rgba(255,255,255,.78); margin: 18px 0 34px; font-size: 18px; max-width: 36ch; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

/* buttons: mono caps */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 26px;
  border-radius: 99px; background: #fff; color: #09090c; font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
  transition: transform .2s var(--ease), box-shadow .3s, opacity .2s; box-shadow: 0 10px 40px -12px rgba(255,255,255,.35);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 6px rgba(255,255,255,.08), 0 14px 46px -10px rgba(255,255,255,.45); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .25; pointer-events: none; }
.btn.block { width: 100%; }
.btn.ghost { background: rgba(255,255,255,.12); color: var(--fg); box-shadow: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn.ghost:hover { background: rgba(255,255,255,.2); box-shadow: none; }
.btn.sm { height: 34px; padding: 0 15px; font-size: 11px; }

/* cards: .card = subtle themed edge glow, .gcard = full gradient card (like the reference) */
.card { background: var(--edge-bg); border: 1px solid var(--line); border-radius: 22px; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.gcard { background: var(--edge-bg); color: var(--fg); border: 1px solid var(--line); border-radius: 22px; position: relative; overflow: hidden; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.gcard .btn { text-shadow: none; }
.lab { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }

/* send screen: one big central button */
#v-send.empty { min-height: calc(100dvh - 220px); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.bigbtn { height: 68px; padding: 0 52px; border-radius: 99px; background: #fff; color: #09090c; font: 400 13px var(--mono); letter-spacing: .18em; text-transform: uppercase;
  box-shadow: 0 0 0 10px rgba(255,255,255,.12), 0 20px 80px -10px rgba(0,0,0,.45); transition: transform .3s var(--ease), box-shadow .3s; }
.bigbtn:hover { transform: scale(1.04); box-shadow: 0 0 0 16px rgba(255,255,255,.16), 0 24px 90px -10px rgba(0,0,0,.5); }
.bigbtn:active { transform: scale(.98); }
.textlink { font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,.3); transition: .2s; }
.textlink:hover { color: #fff; border-color: #fff; }
.hint { font: 400 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.addrow { display: flex; gap: 22px; justify-content: center; margin-top: 14px; }

.files { margin-top: 14px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.row + .row { border-top: 1px solid var(--line); }
.ext { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--glass2); font: 400 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); overflow: hidden; }
.grow { flex: 1; min-width: 0; }
.name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.meta { color: var(--mut); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.x { color: var(--dim); font-size: 20px; width: 30px; height: 30px; border-radius: 50%; transition: .2s; }
.x:hover { color: var(--fg); background: var(--glass2); }

.opts { margin-top: 14px; padding: 6px 18px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; min-height: 56px; }
.opt + .opt { border-top: 1px solid var(--line); }
.opt label { color: var(--mut); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; flex: none; }
.field { width: 100%; background: transparent; border: 0; outline: 0; padding: 14px 0; font-weight: 300; }
.field::placeholder { color: var(--dim); }
.opt .field { text-align: right; padding: 0; font-family: var(--mono); font-size: 13px; }
.msg-row { display: block; }
.msg-row .field { text-align: left; font-family: var(--sans); font-size: 17px; }
textarea.field { resize: none; height: 26px; transition: height .3s var(--ease); }
textarea.field:focus { height: 84px; }
.seg { display: flex; padding: 3px; border-radius: 99px; background: var(--glass2); }
.seg button { padding: 6px 13px; border-radius: 99px; font: 400 11px var(--mono); letter-spacing: .06em; color: var(--mut); transition: .25s var(--ease); white-space: nowrap; }
.seg button.on { background: #fff; color: #09090c; }
.sw { position: relative; width: 44px; height: 26px; border-radius: 99px; background: var(--glass2); transition: .25s; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--mut); transition: .25s var(--ease); }
.sw.on { background: var(--ok); }
.sw.on::after { transform: translateX(18px); background: #09090c; }
.themebtn { display: flex; align-items: center; gap: 10px; font: 400 12px var(--mono); }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: var(--card-bg); }

.total { display: flex; justify-content: space-between; color: var(--mut); font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 14px 4px 18px; }

/* progress */
.prog { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.prog .row-between { width: 100%; justify-content: space-between; }
.big { font: 200 clamp(76px, 22vw, 140px)/1 var(--sans); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; margin: 22px 0 14px; }
.bar i { display: block; height: 100%; width: 0; background: currentColor; transition: width .25s linear; }

/* share link */
.link { display: flex; flex-direction: column; gap: 12px; margin: 30px 0 16px; text-align: left; }
.lrow { display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 20px; border-radius: 99px; background: rgba(10,10,14,.55); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #f5f5f7; }
.lrow input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font: 400 13px var(--mono); }
.pill { display: inline-block; padding: 5px 11px; border-radius: 99px; background: var(--glass2); color: var(--mut); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

/* transfers: gradient tiles, each in its own theme */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.tt { min-height: 190px; padding: 18px 16px 16px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; gap: 4px; }
.tt .tname { font: 400 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt .acts { display: flex; gap: 6px; margin-top: 10px; }
.tt .acts .btn { height: 30px; padding: 0 12px; font-size: 10px; }
.tt:last-child:nth-child(odd) { grid-column: 1 / -1; }

.err { color: var(--bad); margin-top: 14px; min-height: 22px; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; padding: 12px 20px; border-radius: 99px; background: #fff; color: #09090c; font: 400 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: .35s var(--ease); pointer-events: none; z-index: 99; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* storage meter */
.meter { margin-top: 40px; padding: 0 4px; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; width: 100%; max-width: 420px; margin-inline: auto; }
.meter.card { background: none; }
.mrow { display: flex; justify-content: space-between; gap: 12px; font: 400 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); flex-wrap: wrap; }
.mrow b { color: var(--fg); font-weight: 400; }
.mbar { height: 5px; border-radius: 5px; background: var(--glass2); overflow: hidden; margin-top: 10px; }
.mbar i { display: block; height: 100%; width: 0; border-radius: 5px; background: #fff; transition: width .6s var(--ease); }
.mbar i.warn { background: #ffb35c; } .mbar i.full { background: #ff5c6c; }

/* theme sheet */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: .3s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 61; left: 50%; bottom: 0; width: min(560px, 100%); max-height: 88dvh; overflow: auto; transform: translate(-50%, 105%); transition: transform .5s var(--ease);
  background: rgba(14,14,18,.92); border: 1px solid var(--line); border-bottom: 0; border-radius: 28px 28px 0 0; padding: 22px 22px 30px; backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); }
.sheet.on { transform: translate(-50%, 0); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.swi { text-align: center; font: 400 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.swi i { display: block; aspect-ratio: 1; border-radius: 16px; border: 1px solid rgba(255,255,255,.14); margin-bottom: 6px; transition: transform .25s var(--ease), box-shadow .25s; }
.swi:hover i { transform: translateY(-2px); }
.swi.on { color: var(--fg); }
.swi.on i { box-shadow: 0 0 0 2px #fff; }
.sec { font: 400 10px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin: 22px 0 12px; }
.ctl { display: grid; grid-template-columns: 96px 1fr 34px; align-items: center; gap: 12px; margin: 10px 0; font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.ctl output { text-align: right; color: var(--fg); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); outline: 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.5); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; }
.colors { display: flex; gap: 10px; align-items: center; }
.colors input { -webkit-appearance: none; appearance: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: none; cursor: pointer; overflow: hidden; }
.colors input::-webkit-color-swatch-wrapper { padding: 0; }
.colors input::-webkit-color-swatch { border: 0; border-radius: 13px; }
.colors input::-moz-color-swatch { border: 0; border-radius: 13px; }
.sheet .acts { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.nameinp { flex: 1; min-width: 120px; background: var(--glass2); border: 0; border-radius: 99px; padding: 0 16px; height: 34px; font: 400 12px var(--mono); outline: 0; }

/* download page */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 28px 0; }
.tile { display: flex; flex-direction: column; min-height: 230px; transition: transform .3s var(--ease), border-color .3s; border-radius: 22px; }
.tile:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.3); }
.thumb { flex: 1; min-height: 120px; display: grid; place-items: center; font: 400 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .85; overflow: hidden; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.tile .info { padding: 12px 14px 14px; text-align: center; }
.tile .dl { display: inline-block; margin-top: 8px; font: 400 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.tile:hover .dl { opacity: 1; }
.msgbox { margin: 18px 0 0; padding: 16px 18px; color: #dcdce4; white-space: pre-wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rows { margin: 28px 0; overflow: hidden; }
.sub-path { color: var(--dim); }

@media (max-width: 520px) {
  .opt { flex-wrap: wrap; }
  .opt .field { text-align: left; }
  .ctl { grid-template-columns: 84px 1fr 30px; }
  .swatches { grid-template-columns: repeat(5, 1fr); gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.dotc { width: 34px; height: 34px; border-radius: 50%; flex: none; border: 1px solid rgba(255,255,255,.25); }
.list .row { padding: 14px 16px; }
.list .acts { display: flex; gap: 6px; flex: none; }
.tile .thumb { background: rgba(255,255,255,.06); }

/* dark modal with the two upload buttons */
.modal { width: min(440px, 100%); padding: 30px 28px 26px; display: flex; flex-direction: column; gap: 20px; text-align: center;
  background: rgba(10,10,14,.8); border: 1px solid rgba(255,255,255,.12); border-radius: 30px;
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); box-shadow: 0 50px 120px -30px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.08); }
.modal .lab { opacity: .6; }
.mbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mbtns .btn { height: 56px; padding: 0 12px; }
.btn.dark { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.14); }
.btn.dark:hover { background: rgba(255,255,255,.18); box-shadow: none; }
@media (max-width: 420px) { .mbtns { grid-template-columns: 1fr; } }

.sechead { padding: 12px 16px; font: 400 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mut); border-top: 1px solid var(--line); background: rgba(255,255,255,.04); }
.row.gone .name, .row.gone .dotc { opacity: .55; }
.list .acts { align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.list .acts .btn { height: 30px; padding: 0 12px; font-size: 10px; }
@media (max-width: 520px) { .list .row { flex-wrap: wrap; } .list .acts { width: 100%; justify-content: flex-start; } }

/* recipient: main button + folder cards */
.mainact { display: flex; gap: 10px; flex-wrap: wrap; }
.mainact .btn { height: 56px; padding: 0 38px; }
.hint2 { margin-top: 12px; text-transform: none; letter-spacing: .04em; color: rgba(255,255,255,.7); }
.stack { display: grid; gap: 12px; margin-top: 26px; }
.fold { overflow: hidden; }
.fold > .row { padding: 14px 16px; flex-wrap: wrap; }
.fold .ext { font-size: 18px; }
.flist { border-top: 1px solid var(--line); max-height: 60vh; overflow: auto; }
.pill { background: rgba(0,0,0,.28); color: #fff; }
.sub-path { color: rgba(255,255,255,.55); }
.meta { color: rgba(255,255,255,.68); }
.rows { margin: 0; }

.slugrow { display: flex; align-items: center; gap: 0; margin-top: 8px; font: 400 13px var(--mono); flex-wrap: wrap; }
.slugrow .pre { color: var(--mut); white-space: nowrap; }
.slugrow input.field { flex: 1; min-width: 140px; padding: 6px 0; font: 400 13px var(--mono); color: #fff; text-align: left; border-bottom: 1px dashed rgba(255,255,255,.25); }
#slugHint { margin-top: 8px; text-transform: none; letter-spacing: .02em; }
.opt.msg-row > label { display: block; }
