/* Nova Share — the no-app page phones and other computers open */
body { overflow-x: hidden; }
.wrap { position: relative; z-index: 1; width: min(640px, 100%); margin: 0 auto; padding: calc(14px + var(--sat)) 16px calc(28px + var(--sab)); min-height: 100vh; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 2px 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 18px; letter-spacing: -.02em; }
.brand img { filter: drop-shadow(0 6px 16px rgba(124, 58, 237, .6)); border-radius: 9px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.view { flex: 1; animation: rise .5s var(--ease) both; }
.foot { text-align: center; font-size: 12px; padding-top: 26px; }
.center-card { text-align: center; padding: 34px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.logo-orbit.small { width: 110px; height: 110px; margin-top: 18vh; }
.hero { text-align: center; padding: 30px 10px 20px; }
.hero h1 { margin: 34px 0 8px; font-size: 32px; letter-spacing: -.03em; }
.hero p { margin: 0 auto; max-width: 380px; line-height: 1.5; }
.code-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.code-input { text-align: center; font-family: "Cascadia Code", "SF Mono", Consolas, monospace; font-size: 30px; font-weight: 800; letter-spacing: .2em; padding: 16px; text-transform: uppercase; }
.form-error { min-height: 18px; color: #fda4af; font-size: 13.5px; text-align: center; }
.form-error.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.recv-head { display: flex; align-items: center; gap: 16px; padding: 18px; }
.recv-head h1 { margin: 2px 0 2px; font-size: 22px; letter-spacing: -.02em; word-break: break-word; }
.recv-head .muted { font-size: 13.5px; }
.big-ico { width: 54px; height: 54px; border-radius: 17px; }
.big-ico svg { width: 26px; height: 26px; stroke-width: 2.2; }
.quality { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #6ee7b7; margin: -4px 4px 16px; line-height: 1.4; }
.quality svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 10px 4px; }
.hint b { color: var(--text); }
#rAll { margin-bottom: 4px; }
#rList { margin-top: 14px; }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: cardIn .4s var(--ease) both; min-width: 0; }
.file .ico { width: 46px; height: 46px; }
.file .name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .acts { display: flex; gap: 6px; flex: none; }
.dl-btn { width: 42px; height: 42px; padding: 0; border-radius: 13px; }
.dl-btn svg { width: 19px; height: 19px; }
.more { text-align: center; color: var(--faint); font-size: 13px; padding: 8px; }

.pick { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 34px 18px 26px; border-radius: 24px; cursor: pointer; position: relative; overflow: hidden; transition: border-color .25s, transform .2s var(--ease); }
.pick::before { content: ""; position: absolute; inset: 9px; border-radius: 17px; border: 2px dashed rgba(196, 181, 253, .2); pointer-events: none; }
.pick:active { transform: scale(.985); }
.pick b { font-size: 18px; margin-top: 28px; }
.pick .muted { font-size: 13.5px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#pickArea .btn-row { margin-top: 12px; }
#pickArea .btn-row .btn { flex: 1; }
.btn-row { display: flex; gap: 8px; align-items: center; }
.btn-row .grow { flex: 1; }
#queue { margin-top: 4px; }
.q-list { max-height: 46vh; overflow-y: auto; margin-bottom: 14px; }
.q-row { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.035); font-size: 13.5px; min-width: 0; }
.q-row .ico { width: 34px; height: 34px; border-radius: 10px; }
.q-row .ico svg { width: 17px; height: 17px; }
.q-row .grow { overflow: hidden; }
.q-row .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.q-row small { color: var(--muted); font-size: 11.5px; }
.q-row .st { flex: none; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.q-row.done .st { color: #6ee7b7; } .q-row.failed .st { color: #fda4af; } .q-row.doing .st { color: #c4b5fd; }
.q-row .rm { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: var(--muted); flex: none; cursor: pointer; }
.q-total { margin-bottom: 14px; }
#qCancel { margin-top: 8px; }
.done-card { text-align: center; padding: 30px 22px; }
.done-card h2 { margin: 18px 0 6px; font-size: 26px; }
.done-tick { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #34d399, #22d3ee); box-shadow: 0 14px 40px rgba(52, 211, 153, .45); animation: pop .6s var(--spring); }
.done-tick svg { width: 42px; height: 42px; fill: none; stroke: #052e16; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.err-ico svg { width: 56px; height: 56px; fill: none; stroke: #fda4af; stroke-width: 1.8; stroke-linecap: round; }
.center-card h2 { margin: 8px 0 0; }
.center-card .btn { margin-top: 10px; }
.dropzone-overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(12, 6, 36, .72); backdrop-filter: blur(6px); pointer-events: none; }
.dropzone-overlay div { padding: 40px 60px; border-radius: 28px; border: 2px dashed rgba(196, 181, 253, .6); font-size: 22px; }
@media (min-width: 700px) { .wrap { padding-top: 34px; } .hero h1 { font-size: 40px; } }

/* ---------- hosting: link pages + My Files ---------- */
.wrap.wide { width: min(1100px, 100%); }
.lock-ico svg, .center-card .lock-ico svg { width: 56px; height: 56px; fill: none; stroke: #c4b5fd; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 6px 18px rgba(139, 92, 246, .6)); }
.pw-form { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 8px; }
.pw-form input, .code-card input[type=password] { text-align: center; font-size: 17px; }
.preview { border-radius: 20px; overflow: hidden; margin: 0 0 14px; background: rgba(10, 6, 28, .55); border: 1px solid var(--line); display: grid; place-items: center; max-height: 70vh; }
.preview img { max-width: 100%; max-height: 70vh; display: block; }
.preview video { width: 100%; max-height: 70vh; display: block; background: #000; }
.preview audio { width: calc(100% - 24px); margin: 22px 12px; }
.preview .big-kind { padding: 40px; }
.preview .big-kind svg { width: 84px; height: 84px; fill: none; stroke: #e9e4ff; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 8px 24px rgba(139, 92, 246, .7)); }
.crumbs-pub { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin: 0 0 12px; min-width: 0; }
.crumbs-pub button { font: inherit; font-size: 14px; font-weight: 650; color: var(--muted); background: none; border: 0; padding: 6px 8px; border-radius: 9px; cursor: pointer; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs-pub button:last-child { color: var(--text); }
.crumbs-pub .sep { color: var(--faint); }
#lnDl { margin: 4px 0 14px; }
.row-btn { cursor: pointer; }
.row-btn:active { transform: scale(.99); }
.file .ico.folder { background: linear-gradient(135deg, rgba(139, 92, 246, .5), rgba(34, 211, 238, .3)); }
.center-text { text-align: center; }
.my-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 18px; flex-wrap: wrap; margin-bottom: 14px; position: sticky; top: calc(6px + var(--sat)); z-index: 5; }
.my-bar .crumbs-pub { margin: 0; }
.my-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.my-tools .search { position: relative; display: flex; align-items: center; }
.my-tools .search svg { position: absolute; left: 10px; width: 16px; height: 16px; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; }
.my-tools .search input { padding: 8px 10px 8px 32px; font-size: 14px; width: 170px; border-radius: 11px; }
.my-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mt { position: relative; border-radius: 16px; padding: 9px; background: var(--glass); border: 1px solid var(--line); cursor: pointer; transition: transform .2s var(--ease), border-color .2s; animation: cardIn .35s var(--ease) both; min-width: 0; }
.mt:hover { border-color: var(--line2); transform: translateY(-2px); }
.mt .th { height: 110px; border-radius: 11px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 30% 20%, rgba(139, 92, 246, .3), transparent 60%), rgba(10, 6, 28, .5); }
.mt .th img { width: 100%; height: 100%; object-fit: cover; }
.mt .th svg { width: 44px; height: 44px; fill: none; stroke: rgba(255,255,255,.85); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.mt.dir .th svg { fill: url(#fgrad); stroke: none; width: 52px; height: 52px; }
.mt .n { font-size: 13px; font-weight: 600; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt .m { font-size: 11.5px; color: var(--faint); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt .more-btn { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(12, 9, 24, .7); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.mt .linked { position: absolute; top: 14px; left: 14px; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 7px; background: rgba(34, 211, 238, .85); color: #04232a; }
.item-card { width: min(560px, 100%); }
.item-card .preview { margin-top: 26px; }
.item-card h2 { word-break: break-word; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sheet-actions .btn { flex: 1 1 auto; }
.linkmake { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.linkmake .label { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.folder-pick { max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 12px 0; padding: 6px; border-radius: 14px; background: rgba(10, 6, 28, .45); border: 1px solid var(--line); }
.folder-pick button { font: inherit; font-size: 14px; text-align: left; color: var(--muted); background: none; border: 0; padding: 9px 10px; border-radius: 9px; cursor: pointer; }
.folder-pick button.on { background: rgba(139, 92, 246, .3); color: #fff; }
.upbar { position: fixed; z-index: 60; left: 50%; bottom: calc(14px + var(--sab)); transform: translateX(-50%); width: min(520px, calc(100% - 24px)); border-radius: 18px; padding: 14px 16px; animation: rise .3s var(--ease); }
.up-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.up-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upbar .progress-meta { align-items: center; }
@media (max-width: 560px) {
  .my-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mt .th { height: 96px; }
  .my-tools .search input { width: 120px; }
}
