:root {
  --bg: #070c1c;
  --bg2: #0b1226;
  --panel: #0f1730;
  --panel2: #131d3b;
  --line: rgba(160, 180, 255, .1);
  --line2: rgba(160, 180, 255, .18);
  --text: #e9eefc;
  --muted: #8d9abb;
  --acc: #6d8bff;
  --acc2: #6ee7ff;
  --acc3: #a66bff;
  --grad: linear-gradient(120deg, #6ee7ff, #6d8bff 50%, #a66bff);
  --ok: #3dd68c;
  --err: #ff5d73;
  --r: 14px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .65);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--acc2); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.grow { flex: 1; }
.nojs { padding: 40px; text-align: center; }
.ic { width: 20px; height: 20px; flex: none; }
.spin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
:focus-visible { outline: 2px solid var(--acc2); outline-offset: 2px; }

/* ------------------------------------------------------------ Bühne / Anmeldung */
#stage { position: fixed; inset: 0; overflow: hidden; background: radial-gradient(1200px 700px at 50% 110%, #16224a 0%, transparent 60%), radial-gradient(900px 600px at 50% -10%, #0f1838, transparent 70%), #050914; }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .32; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: #2b5cff; left: -20vmax; top: -25vmax; }
.aurora i:nth-child(2) { background: #7a3cff; right: -25vmax; top: 10vmax; animation-delay: -8s; opacity: .22; }
.aurora i:nth-child(3) { background: #00c2ff; left: 20vmax; bottom: -35vmax; animation-delay: -15s; opacity: .18; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

#auth { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; overflow-y: auto; }
#auth > * { grid-area: 1 / 1; }

.intro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; cursor: pointer; user-select: none; }
.intro-logo { width: 136px; height: 136px; }
.intro-word { font-size: clamp(26px, 5vw, 38px); font-weight: 750; letter-spacing: .42em; margin-right: -.42em; display: flex; }
.intro-word span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-tag { font-size: 12px; text-transform: uppercase; letter-spacing: .28em; color: var(--muted); }
.intro-ring { position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 1.5px solid rgba(110, 231, 255, .55); top: calc(50% - 140px); opacity: 0; }
.intro-skip { position: absolute; bottom: 28px; font-size: 12px; color: var(--muted); opacity: .0; animation: fadein .8s 1.2s forwards; }
@keyframes fadein { to { opacity: .6; } }

.card {
  width: min(420px, 100%);
  background: linear-gradient(180deg, rgba(20, 29, 60, .82), rgba(12, 18, 40, .86));
  border: 1px solid var(--line2);
  border-radius: 24px;
  padding: 34px 32px 30px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: cardin .55s cubic-bezier(.2, .8, .2, 1) both;
  position: relative;
  z-index: 2;
}
.card.leave { animation: cardout .26s ease-in forwards; pointer-events: none; }
@keyframes cardin { from { opacity: 0; transform: translateY(18px) scale(.98); filter: blur(4px); } }
@keyframes cardout { to { opacity: 0; transform: translateY(-14px) scale(.98); } }
.card-logo { width: 58px; height: 58px; margin: 0 auto 14px; filter: drop-shadow(0 6px 22px rgba(109, 139, 255, .55)); }
.card-logo svg { width: 100%; height: 100%; }
.card h1 { margin: 0; text-align: center; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.card .sub { margin: 6px 0 24px; text-align: center; color: var(--muted); font-size: 14px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.lbl { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--muted); font-weight: 550; }
.field {
  width: 100%; height: 48px; padding: 0 15px; border-radius: 12px;
  background: rgba(5, 9, 22, .6); border: 1px solid var(--line2); color: var(--text); font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px rgba(109, 139, 255, .18); }
.pw { position: relative; }
.pw .field { padding-right: 48px; }
.pw .eye { position: absolute; right: 6px; top: 6px; }
.meter { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: -4px; }
.meter i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .3s; border-radius: 3px; }
.form .meter[data-s="0"] i { width: 8%; background: var(--err); }
.form .meter[data-s="1"] i { width: 28%; background: #ff9b52; }
.form .meter[data-s="2"] i { width: 52%; background: #f5cf4b; }
.form .meter[data-s="3"] i { width: 78%; }
.form .meter[data-s="4"] i { width: 100%; }
.form > small { margin-top: -10px; min-height: 16px; font-size: 12px; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(245, 184, 75, .08); border: 1px solid rgba(245, 184, 75, .22); color: #f3d08a; font-size: 13px; }
.note .ic { color: #f5b84b; margin-top: 1px; }
.err { display: none; padding: 10px 14px; border-radius: 11px; background: rgba(255, 93, 115, .1); border: 1px solid rgba(255, 93, 115, .3); color: #ffb3bd; font-size: 13.5px; }
.err.on { display: block; }
.link { font-size: 13.5px; color: var(--muted); }
.links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.link:hover { color: var(--text); }
.phone-ic { width: 54px; height: 54px; margin: -6px auto 18px; display: grid; place-items: center; border-radius: 16px; background: rgba(109, 139, 255, .12); color: var(--acc2); }
.phone-ic .ic { width: 26px; height: 26px; }

.otp { display: flex; gap: 9px; justify-content: center; margin: 4px 0 16px; }
.otp-box {
  width: 50px; height: 60px; text-align: center; font-size: 26px; font-weight: 650; border-radius: 13px;
  background: rgba(5, 9, 22, .6); border: 1px solid var(--line2); caret-color: var(--acc2);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.otp-box:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px rgba(109, 139, 255, .2); transform: translateY(-2px); }
.otp-box:nth-child(3) { margin-right: 10px; }
.steps { margin: 0 0 6px; padding-left: 20px; color: var(--muted); font-size: 14px; }
.steps li { margin: 6px 0; }
.steps b { color: var(--text); }
.paircode { font: 700 34px/1.1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .14em; text-align: center; padding: 16px; margin: 8px 0 4px; border-radius: 14px; background: rgba(5, 9, 22, .6); border: 1px dashed var(--line2); background-image: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.paircode + small { display: block; text-align: center; margin-bottom: 14px; }
.pairbox { display: flex; flex-direction: column; }
.pairbox .otp { margin-bottom: 8px; }

/* ------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 11px; border: 1px solid transparent; cursor: pointer; font-weight: 600; font-size: 14px;
  transition: transform .15s, background .2s, box-shadow .2s, opacity .2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.primary { background: var(--grad); color: #071026; box-shadow: 0 8px 24px -10px rgba(109, 139, 255, .9); }
.btn.primary:hover { box-shadow: 0 10px 30px -8px rgba(109, 139, 255, 1); }
.btn.ghost { background: rgba(255, 255, 255, .04); border-color: var(--line2); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.btn.danger { background: var(--err); color: #fff; }
.btn.wide { width: 100%; height: 50px; font-size: 15px; margin-top: 4px; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn .ic { width: 18px; height: 18px; }
.btn.busy { color: #071026; }
.danger-t { color: #ff8394 !important; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; flex: none; }
.icon-btn:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.icon-btn.sm { width: 28px; height: 28px; }
.icon-btn.sm .ic { width: 16px; height: 16px; }

/* ------------------------------------------------------------ Start-Animation */
.takeoff { position: fixed; inset: 0; z-index: 1000; overflow: hidden; pointer-events: all; }
.to-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #060d24 0%, #13285c 38%, #3d4f9c 60%, #b47aa6 80%, #ffb38a 93%, #ffd9a6 100%); }
.to-sky::after { content: ""; position: absolute; inset: 0; background: radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent), radial-gradient(1px 1px at 32% 8%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 58% 22%, #fff 50%, transparent), radial-gradient(1px 1px at 76% 12%, #fff 50%, transparent), radial-gradient(1px 1px at 88% 30%, #fff 50%, transparent), radial-gradient(1px 1px at 44% 34%, #fff 50%, transparent); background-repeat: no-repeat; opacity: .7; }
.to-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; }
.to-hills {
  position: absolute; left: 0; bottom: calc(100% - 1px); width: 300%; height: 110px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 110' preserveAspectRatio='none'%3E%3Cpath d='M0 110V70l40-18 50 22 60-40 70 34 50-16 60 30 70-46 60 36 50-14 50 26 40-10v36z' fill='%23182349'/%3E%3Cpath d='M0 110V88l60-12 70 16 80-20 60 18 90-22 70 20 80-14 90 18v18z' fill='%230f1733'/%3E%3C/svg%3E") repeat-x 0 -1px / 600px 112px;
}
.to-hills::after { content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 26px; background: radial-gradient(circle, #ffd27a 0 1.4px, transparent 2px) 0 0 / 23px 9px repeat-x, radial-gradient(circle, #9fd8ff 0 1.2px, transparent 2px) 11px 12px / 31px 9px repeat-x; opacity: .7; }
.to-runway { position: absolute; inset: 0; background: linear-gradient(180deg, #121a35 0%, #0b1129 22%, #070b1c 100%); overflow: hidden; }
.to-runway::before { content: ""; position: absolute; left: 0; right: 0; top: 18%; height: 34%; background: linear-gradient(180deg, #232c4a, #1a2240); box-shadow: 0 -2px 0 #3a4568 inset, 0 2px 0 #3a4568 inset; }
.to-dashes { position: absolute; left: 0; top: calc(18% + 17% - 3px); width: 400%; height: 6px; background: repeating-linear-gradient(90deg, #eef3ff 0 80px, transparent 80px 170px); opacity: .85; }
.to-lights { position: absolute; left: 0; top: calc(18% - 7px); width: 400%; height: calc(34% + 14px); background: radial-gradient(circle, #ffdf8e 0 3px, rgba(255, 223, 142, .25) 5px, transparent 8px) 0 0 / 110px 14px repeat-x, radial-gradient(circle, #8fd6ff 0 3px, rgba(143, 214, 255, .25) 5px, transparent 8px) 55px 100% / 110px 14px repeat-x; }
.to-plane { position: absolute; left: 50%; bottom: calc(30% * .52); width: min(400px, 64vw); margin-left: calc(min(400px, 64vw) / -2); transform-origin: 34% 80%; z-index: 3; }
.to-plane-svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }
.pl-beacon { animation: beacon 1s steps(1) infinite; }
@keyframes beacon { 50% { opacity: .1; } }
.to-exhaust { position: absolute; right: 84%; top: 66%; width: 46%; height: 8%; transform-origin: right center; border-radius: 50%; background: linear-gradient(90deg, transparent, rgba(190, 215, 255, .35) 60%, rgba(255, 255, 255, .7)); filter: blur(5px); }
.to-clouds { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.to-clouds i { position: absolute; left: 110%; top: calc(var(--i) * 11% - 6%); width: calc(260px + var(--i) * 22px); height: calc(110px + var(--i) * 6px); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255, 255, 255, .95), rgba(225, 235, 255, .6) 45%, transparent 70%); filter: blur(10px); animation: cloudpass 1.05s linear infinite; animation-delay: calc(var(--i) * -0.13s); }
.to-clouds i:nth-child(even) { animation-duration: .8s; transform: scale(1.4); }
@keyframes cloudpass { from { transform: translate(0, -20vh); } to { transform: translate(-170vw, 30vh); } }
.to-caption { position: absolute; left: 0; right: 0; top: 13%; text-align: center; z-index: 5; display: flex; flex-direction: column; gap: 4px; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.to-caption b { font-size: clamp(20px, 3.4vw, 30px); letter-spacing: .02em; }
.to-caption span { color: #c7d3f5; font-size: 14px; }
.to-fog { position: absolute; inset: -10%; z-index: 6; background: radial-gradient(circle at 60% 40%, #ffffff, #dfe9ff 40%, #9fb6ec 100%); }

/* ------------------------------------------------------------ App */
#root { height: 100%; }
.app { display: grid; grid-template-columns: 270px 1fr; height: 100dvh; background: var(--bg); }
.side { display: flex; flex-direction: column; background: linear-gradient(180deg, #0b1228, #080d1e); border-right: 1px solid var(--line); padding: 18px 12px; min-height: 0; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 20px; }
.brand-logo { width: 40px; height: 40px; filter: drop-shadow(0 4px 14px rgba(109, 139, 255, .5)); }
.brand-logo svg { width: 100%; height: 100%; }
.brand b { display: block; font-size: 16px; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: 11.5px; }
.tree { flex: 1; overflow: auto; padding-right: 2px; }
.tn { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 calc(4px + var(--d) * 16px); border-radius: 10px; cursor: pointer; color: #c2cbe6; font-size: 14px; transition: background .15s; user-select: none; }
.tn:hover { background: rgba(255, 255, 255, .05); }
.tn.act { background: rgba(109, 139, 255, .16); color: #fff; }
.tn.act > .ic { color: var(--acc2); }
.tn.dt, .it.dt, .crumb.dt { outline: 2px dashed var(--acc2); outline-offset: -2px; background: rgba(110, 231, 255, .08); }
.tn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn > .ic { width: 18px; height: 18px; color: #f5b84b; }
.tn > .ic:nth-child(2):only-of-type { color: var(--muted); }
.tw { width: 20px; height: 20px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 6px; padding: 0; }
.tw .ic { width: 14px; height: 14px; transition: transform .2s; }
.tw.open .ic { transform: rotate(90deg); }
.tw.none { visibility: hidden; }
.storage { margin-top: 12px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.st-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.st-head .ic { width: 18px; height: 18px; color: var(--acc2); }
.storage .meter { margin: 0 0 8px; height: 6px; }
.storage .meter i { width: 2%; }
.storage small { font-size: 12px; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.top { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.search { flex: 1; min-width: 0; max-width: 560px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--acc); box-shadow: 0 0 0 4px rgba(109, 139, 255, .14); }
.search-in { flex: 1; min-width: 0; border: 0; background: none; outline: none; height: 100%; color: var(--text); }
.top-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line2); background: linear-gradient(135deg, rgba(110, 231, 255, .18), rgba(166, 107, 255, .18)); color: #fff; display: grid; place-items: center; cursor: pointer; }
.avatar .ic { width: 18px; height: 18px; }
.bar { display: flex; align-items: center; gap: 12px; padding: 16px 22px 10px; }
.crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; flex: 1; font-size: 18px; font-weight: 650; }
.crumb { padding: 2px 8px; border-radius: 8px; color: var(--muted); }
.crumb:hover { background: rgba(255, 255, 255, .05); text-decoration: none; color: var(--text); }
.crumb.cur { color: var(--text); }
.crumbs .sep { width: 16px; height: 16px; color: #46527a; }
.tools { display: flex; gap: 6px; align-items: center; }
.sort { height: 36px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); padding: 0 10px; color: var(--muted); }
.selbar { display: flex; align-items: center; gap: 8px; margin: 0 22px; padding: 0 10px; height: 0; overflow: hidden; border-radius: 12px; background: rgba(109, 139, 255, .12); border: 1px solid transparent; transition: height .2s, margin .2s, border-color .2s; }
.selbar.on { height: 50px; margin-bottom: 10px; border-color: rgba(109, 139, 255, .3); }
.selbar b { font-size: 14px; white-space: nowrap; }

.items { flex: 1; overflow: auto; padding: 8px 22px 120px; align-content: start; outline: none; }
.items.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 14px; }
.it { position: relative; border-radius: var(--r); cursor: default; user-select: none; transition: background .15s, border-color .15s, transform .15s; border: 1px solid transparent; }
.grid .it { padding: 16px 12px 12px; background: var(--panel); border-color: var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; animation: pop .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.grid .it:hover { background: var(--panel2); border-color: var(--line2); transform: translateY(-2px); }
.it.sel { background: rgba(109, 139, 255, .14) !important; border-color: rgba(109, 139, 255, .55) !important; }
.tile { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 12px; background: color-mix(in srgb, var(--tone) 14%, transparent); color: var(--tone); }
.tile .ic { width: 36px; height: 36px; }
.grid .nm { font-size: 14px; font-weight: 550; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid .it small { font-size: 12px; margin-top: 2px; }
.where { display: block; color: #6f7ca3; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.chk { position: absolute; left: 10px; top: 10px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line2); background: rgba(5, 9, 22, .5); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; padding: 0; color: transparent; }
.chk .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.it:hover .chk, .it.sel .chk { opacity: 1; }
.it.sel .chk { background: var(--acc); border-color: var(--acc); color: #071026; }
.more { position: absolute; right: 6px; top: 6px; opacity: 0; }
.it:hover .more, .it.sel .more { opacity: 1; }
.t-dir { --tone: #f5b84b; } .t-img { --tone: #3dd68c; } .t-vid { --tone: #ff6b8b; } .t-aud { --tone: #b58cff; }
.t-pdf { --tone: #ff7a59; } .t-arc { --tone: #e6b25a; } .t-code { --tone: #4fb6ff; } .t-doc { --tone: #6d8bff; } .t-file { --tone: #93a0c4; }
.t-dir .ic { fill: color-mix(in srgb, var(--tone) 22%, transparent); }

.items.list { display: flex; flex-direction: column; gap: 2px; }
.lh, .it.row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 110px 170px 40px; align-items: center; gap: 10px; padding: 0 10px; }
.lh { height: 34px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #6f7ca3; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.it.row { height: 52px; animation: pop .25s ease both; }
.it.row:hover { background: rgba(255, 255, 255, .04); }
.it.row .chk { position: static; opacity: .6; }
.it.row .more { position: static; }
.it.row > span { font-size: 13.5px; }
.nmw { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nmw .nm { font-weight: 550; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nmw > div:last-child { min-width: 0; }
.fi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--tone) 14%, transparent); color: var(--tone); }
.fi .ic { width: 18px; height: 18px; }

.empty, .loading { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 90px 20px; text-align: center; }
.loading { flex-direction: row; color: var(--muted); }
.empty-ic { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(110, 231, 255, .12), rgba(166, 107, 255, .12)); color: var(--acc2); margin-bottom: 8px; animation: float 4s ease-in-out infinite; }
.empty-ic .ic { width: 40px; height: 40px; }
.empty b { font-size: 17px; }
@keyframes float { 50% { transform: translateY(-6px); } }

.drop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(5, 9, 22, .72); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drop.on { opacity: 1; }
.drop-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 50px 70px; border-radius: 26px; border: 2px dashed var(--acc2); background: rgba(110, 231, 255, .06); transform: scale(.96); transition: transform .2s; }
.drop.on .drop-box { transform: none; }
.drop-box .ic { width: 46px; height: 46px; color: var(--acc2); }
.drop-box b { font-size: 20px; }

/* ------------------------------------------------------------ Menüs, Dialoge, Toasts */
.ctx { position: fixed; z-index: 300; min-width: 220px; padding: 6px; border-radius: 14px; background: #121b38; border: 1px solid var(--line2); box-shadow: var(--shadow); animation: menu .14s ease-out; }
@keyframes menu { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.ctx-i { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: none; cursor: pointer; text-align: left; font-size: 14px; }
.ctx-i:hover, .ctx-i:focus-visible { background: rgba(255, 255, 255, .07); outline: none; }
.ctx-i .ic { width: 18px; height: 18px; color: var(--muted); }
.ctx-i.danger-t .ic { color: inherit; }
.ctx-sep { height: 1px; background: var(--line); margin: 5px 4px; }
.ctx-info { padding: 6px 12px 8px; font-size: 12px; color: #6f7ca3; }

.backdrop { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(3, 6, 16, .62); backdrop-filter: blur(6px); animation: fadein2 .18s ease-out; }
.backdrop.out { opacity: 0; transition: opacity .18s; }
@keyframes fadein2 { from { opacity: 0; } }
.modal { width: min(460px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; border-radius: 20px; background: linear-gradient(180deg, #141e3e, #0f1731); border: 1px solid var(--line2); box-shadow: var(--shadow); animation: cardin .28s cubic-bezier(.2, .8, .2, 1); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 6px 22px; }
.modal-head h3 { margin: 0; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-body { padding: 10px 22px 6px; overflow: auto; }
.modal-body p { margin: 4px 0 8px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px 20px; }
.picker { display: flex; flex-direction: column; gap: 2px; max-height: 340px; overflow: auto; padding: 4px; border-radius: 12px; background: rgba(5, 9, 22, .5); border: 1px solid var(--line); }
.pk { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 calc(10px + var(--d) * 18px); border: 0; border-radius: 9px; background: none; cursor: pointer; text-align: left; font-size: 14px; }
.pk:hover { background: rgba(255, 255, 255, .06); }
.pk.act { background: rgba(109, 139, 255, .2); }
.pk:disabled { opacity: .35; cursor: not-allowed; }
.pk .ic { width: 18px; height: 18px; color: #f5b84b; }
.pk > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#toasts { position: fixed; z-index: 1200; top: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(460px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 13px; background: #16204a; border: 1px solid var(--line2); box-shadow: var(--shadow); font-size: 14px; animation: toastin .3s cubic-bezier(.2, .8, .2, 1); transition: opacity .3s, transform .3s; }
.toast.out { opacity: 0; transform: translateY(-8px); }
.toast.ok .ic { color: var(--ok); } .toast.err .ic { color: var(--err); } .toast.info .ic { color: var(--acc2); }
.toast.err { border-color: rgba(255, 93, 115, .4); }
@keyframes toastin { from { opacity: 0; transform: translateY(-10px) scale(.97); } }

.tpanel { position: fixed; right: 20px; bottom: 20px; z-index: 200; width: min(380px, calc(100% - 24px)); border-radius: 18px; background: #111a37; border: 1px solid var(--line2); box-shadow: var(--shadow); overflow: hidden; animation: cardin .3s ease-out; }
.tpanel.hidden { display: none; }
.tp-head { display: flex; align-items: center; gap: 4px; padding: 10px 10px 10px 18px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--line); }
.tp-title { flex: 1; font-weight: 600; font-size: 14px; }
.tp-head .icon-btn:first-of-type .ic { transform: rotate(90deg); transition: transform .2s; }
.tpanel.min .tp-head .icon-btn:first-of-type .ic { transform: rotate(-90deg); }
.tpanel.min .tp-list { display: none; }
.tp-list { max-height: 320px; overflow: auto; padding: 6px; }
.tp-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; }
.tp-row:hover { background: rgba(255, 255, 255, .03); }
.tp-main { flex: 1; min-width: 0; }
.tp-name { font-size: 13.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .07); margin: 6px 0 4px; overflow: hidden; }
.tp-bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 2px; transition: width .25s; }
.tp-row small { font-size: 11.5px; }
.tp-row.ok .tp-bar i { background: var(--ok); }
.tp-row.err .tp-bar i { background: var(--err); width: 100% !important; }
.tp-row.err small { color: #ff98a6; }
.tp-row.cancel { opacity: .55; }

.only-sm { display: none; }

/* ------------------------------------------------------------ Handy */
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 120; left: 0; top: 0; bottom: 0; width: 82%; max-width: 300px; transform: translateX(-102%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow); }
  .side.open { transform: none; }
  .only-sm { display: inline-grid; }
  .hide-sm { display: none; }
  .top { padding: 10px 12px; gap: 8px; }
  .top-actions { gap: 6px; }
  .top-actions .btn, .avatar { width: 40px; padding: 0; flex: none; }
  .search { padding: 0 10px; }
  .bar { padding: 12px 14px 8px; }
  .crumbs { font-size: 16px; }
  .items { padding: 6px 12px 120px; }
  .items.grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
  .selbar { margin: 0 12px; }
  .lh, .it.row { grid-template-columns: 30px minmax(0, 1fr) 76px 36px; }
  .chk, .more { opacity: 1; }
  .card { padding: 28px 20px 24px; }
  .otp-box { width: 42px; height: 54px; font-size: 22px; }
  .otp { gap: 6px; }
  .tpanel { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
