:root { --bg: #000221; --fg: #fff; --ink: #111; --muted: #5b6070; --line: #e3e5ec; --primary: #2254F6; --soft: #f3f5fa; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* hidden always wins over a layout's display */
body { margin: 0; font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; background: var(--soft); color: var(--ink); }
.top { background: var(--bg); color: var(--fg); display: flex; justify-content: space-between; align-items: center; padding: 14px clamp(16px, 4vw, 40px); gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.05rem; }
.brand img { max-height: 34px; max-width: 160px; }
.who { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; }
main { max-width: 980px; margin: 0 auto; padding: clamp(16px, 4vw, 40px); }
.card { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 4px 20px rgba(0, 2, 33, 0.08); }
.narrow { max-width: 420px; margin: 6vh auto; }
h1 { font-family: "Roboto Condensed", Roboto, sans-serif; margin: 0 0 6px; font-size: 1.9rem; }
.sub { color: var(--muted); margin: 0 0 14px; }
label { display: block; font-weight: 500; margin: 12px 0 4px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=search] { width: 100%; padding: 11px 12px; border: 1.5px solid #c9ccd6; border-radius: 10px; font: inherit; }
button { font: inherit; cursor: pointer; }
.primary { background: var(--primary); color: #fff; border: 0; border-radius: 999px; padding: 11px 22px; font-weight: 600; margin-top: 14px; width: 100%; }
.ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; border-radius: 999px; padding: 7px 16px; }
.ghost.wide { width: 100%; margin-top: 10px; color: var(--primary); }
.error { color: #b00020; min-height: 1.2em; margin: 8px 0 0; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.head input { max-width: 320px; }
.newline { background: #eaf7f2; border-radius: 10px; padding: 10px 14px; font-weight: 500; }
.folder { font-weight: 700; margin: 22px 0 6px; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.file { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 12px 16px; margin: 6px 0; box-shadow: 0 1px 4px rgba(0, 2, 33, 0.06); }
.file .n { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.file small { color: var(--muted); display: block; }
.badge { background: #6AE3C0; color: #000221; border-radius: 999px; font-size: 0.72rem; font-weight: 700; padding: 1px 8px; margin-left: 8px; vertical-align: middle; }
.file a { text-decoration: none; border-radius: 999px; padding: 7px 16px; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.file a.dl { background: var(--primary); color: #fff; } .file a.open { color: var(--primary); border: 1.5px solid var(--primary); }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }

.tools { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.ghost.dark { color: var(--primary); }
.send { margin-top: 36px; background: #fff; border-radius: 16px; padding: 20px 22px; box-shadow: 0 1px 4px rgba(0, 2, 33, 0.06); }
.send h2 { font-family: "Roboto Condensed", Roboto, sans-serif; margin: 0 0 4px; }
.send h3 { margin: 18px 0 6px; font-size: 1rem; }
.drop { display: block; border: 2px dashed #c9ccd6; border-radius: 12px; padding: 22px; text-align: center; cursor: pointer; color: var(--muted); font-weight: 500; }
.drop.over { border-color: var(--primary); color: var(--primary); }
.pbar { height: 8px; background: var(--soft); border-radius: 999px; overflow: hidden; margin-top: 12px; } .pbar div { height: 100%; width: 0; background: var(--primary); transition: width 0.3s; }
.sent { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }

.terms-text { white-space: pre-wrap; max-height: 50vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 12px 0; line-height: 1.5; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }

.pk-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #fff; border: 2px solid var(--primary); border-radius: 14px; padding: 14px 18px; margin: 12px 0; flex-wrap: wrap; }
.pk-card .sub { margin: 4px 0 0; } .pk-acts { display: flex; gap: 8px; } .primary.small, .ghost.small { width: auto; margin: 0; padding: 8px 16px; font-size: 0.9rem; }
.hist { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.hist a { color: var(--primary); font-weight: 600; text-decoration: none; white-space: nowrap; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.viewas-bar { position: sticky; top: 0; z-index: 60; display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; background: #ffcc00; color: #1a1a1a; font-weight: 600; padding: 8px 14px; }
.viewas-bar button { background: #1a1a1a; color: #fff; border: 0; border-radius: 999px; padding: 6px 14px; font: inherit; cursor: pointer; }

.linkish { background: none; border: 0; color: var(--primary); text-decoration: underline; cursor: pointer; font: inherit; margin-top: 12px; padding: 0; }
