:root { color-scheme: dark; --bg: #05070B; --bg-2: #0A0D13; --card: #0E1219; --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16); --text: #F2F3F5; --muted: #8E95A3; --dim: #5B6271; --red: #F0172A; --red-2: #FF3445; --ok: #2BD47D; --f-display: "Montserrat", "Helvetica Neue", Arial, sans-serif; --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --ease: cubic-bezier(.16,1,.3,1); }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: radial-gradient(60% 50% at 90% 0%, rgba(240,23,42,.12), transparent 60%), radial-gradient(60% 50% at 0% 0%, rgba(46,68,100,.3), transparent 60%), var(--bg); background-attachment: fixed; color: var(--text); font-family: var(--f-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; }
.red { color: var(--red); }
.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.label { font-family: var(--f-display); font-size: .7rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.label.red { color: var(--red); }
.muted { color: var(--muted); }

.top { position: sticky; top: 0; z-index: 20; background: rgba(5,7,11,.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.brand { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.who span { font-size: .9rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38vw; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; height: 48px; padding: 0 1.3rem; border-radius: 999px; font-family: var(--f-display); font-weight: 700; font-size: .9rem; border: 1px solid var(--line-2); transition: background .25s, border-color .25s, opacity .25s; white-space: nowrap; }
.btn:hover { border-color: #fff; }
.btn.solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn.solid:hover { background: var(--red-2); border-color: var(--red-2); }
.btn.sm { height: 38px; padding: 0 1rem; font-size: .82rem; }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: #fff; border-color: var(--line-2); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.gbtn { width: 100%; height: 58px; background: #fff; color: #1F1F1F; border: 0; font-size: 1rem; }
.gbtn:hover { background: #ECEEF1; }
.gbtn svg { width: 22px; height: 22px; }

.card { background: linear-gradient(160deg, rgba(20,25,36,.92), rgba(10,13,19,.94)); border: 1px solid var(--line); border-radius: 22px; }
.pad { padding: clamp(22px, 4vw, 34px); }

/* login */
.login { min-height: 100svh; display: grid; place-items: center; padding: 40px 20px; }
.login .box { width: 100%; max-width: 430px; display: flex; flex-direction: column; gap: 22px; }
.login .wm { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 9vw, 2.9rem); letter-spacing: -0.035em; text-align: center; }
.login h1 { font-size: 1.6rem; }
.login .back { text-align: center; font-size: .9rem; color: var(--muted); }
.login .back:hover { color: #fff; }
.warn { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(240,23,42,.12); border: 1px solid rgba(240,23,42,.4); font-size: .93rem; }
.warn svg { flex: none; width: 20px; height: 20px; color: var(--red); margin-top: 2px; }
.note { font-size: .85rem; color: var(--muted); }
.note a { color: var(--text); border-bottom: 1px solid var(--line-2); }

/* forms */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--f-display); font-size: .7rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: 14px; padding: 13px 14px; font-size: 1rem; transition: border-color .2s; }
.field select option { background: #0E1219; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: #C9CED8; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin-top: 2px; flex: none; }

/* panel */
.page { padding-block: clamp(28px, 6vw, 56px) 80px; display: flex; flex-direction: column; gap: 28px; }
.hello h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.hello p { margin-top: 10px; }
.files { display: grid; gap: 14px; }
@media (min-width: 720px) { .files { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.file { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--line); transition: border-color .25s, background .25s; text-align: left; width: 100%; min-width: 0; }
.file:hover { border-color: var(--red); background: rgba(240,23,42,.07); }
.file .ic { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(240,23,42,.12); color: var(--red); border: 1px solid rgba(240,23,42,.3); font-family: var(--f-display); font-weight: 900; font-size: .78rem; letter-spacing: .04em; }
.file .tx { min-width: 0; flex: 1; }
.file b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; }
.file small { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.file .new { font-family: var(--f-display); font-size: .62rem; font-weight: 800; letter-spacing: .16em; color: #fff; background: var(--red); padding: 3px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }
.file .go { flex: none; color: var(--muted); }
.file .go svg { width: 20px; height: 20px; }
.empty { padding: 46px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 20px; }
.empty b { display: block; color: var(--text); font-family: var(--f-display); font-size: 1.15rem; margin-bottom: 6px; }
.state { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.state .big { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(240,23,42,.12); color: var(--red); }
.state .big svg { width: 30px; height: 30px; }
.filter { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .85rem; font-weight: 600; color: #C9CED8; }
.chip.on { background: var(--red); border-color: var(--red); color: #fff; }

/* admin */
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.02); width: max-content; max-width: 100%; overflow-x: auto; }
.tabs button { height: 40px; padding: 0 16px; border-radius: 999px; font-family: var(--f-display); font-weight: 700; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.tabs button.on { background: #fff; color: #05070B; }
.tabs .cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 99px; background: var(--red); color: #fff; font-size: .7rem; margin-left: 6px; padding: 0 5px; }
.list { display: flex; flex-direction: column; }
.row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; flex-wrap: wrap; }
.row:last-child { border-bottom: 0; }
.row .av { width: 40px; height: 40px; border-radius: 50%; background: #1A2130; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; flex: none; overflow: hidden; }
.row .av img { width: 100%; height: 100%; object-fit: cover; }
.row .meta { flex: 1; min-width: 160px; }
.row .meta b { display: block; font-family: var(--f-display); font-weight: 700; }
.row .meta small { color: var(--muted); font-size: .84rem; word-break: break-all; }
.row .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { font-family: var(--f-display); font-size: .66rem; font-weight: 800; letter-spacing: .14em; padding: 4px 8px; border-radius: 6px; }
.badge.wait { background: rgba(240,23,42,.16); color: #FF8A94; }
.badge.ok { background: rgba(43,212,125,.14); color: var(--ok); }
.grid2 { display: grid; gap: 18px; }
@media (min-width: 860px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px; padding: 20px; border-radius: 18px; border: 1.5px dashed var(--line-2); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--red); background: rgba(240,23,42,.06); }
.drop svg { width: 30px; height: 30px; color: var(--red); }
.drop b { font-family: var(--f-display); }
.picks { display: flex; flex-direction: column; max-height: 330px; overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; }
.picks label { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: .95rem; }
.picks label:last-child { border-bottom: 0; }
.picks label:hover { background: rgba(255,255,255,.03); }
.picks input { width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.picks small { color: var(--muted); margin-left: auto; }
.bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 50; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: .85rem 1.2rem; border-radius: 14px; background: #fff; color: #0A0D13; font-weight: 600; font-size: .92rem; transition: opacity .3s, transform .4s var(--ease); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.demo { position: fixed; right: 12px; bottom: 12px; z-index: 40; font-family: var(--f-display); font-size: .68rem; font-weight: 800; letter-spacing: .16em; padding: 6px 10px; border-radius: 8px; background: #FFD23F; color: #05070B; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--red); animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.center { min-height: 60vh; display: grid; place-items: center; }
[hidden] { display: none !important; }
