:root { --bg: #14161d; --surface: #1c1f29; --surface2: #252936; --line: #2c3040; --text: #e6e8ef; --muted: #9aa0b4; --faint: #5d6377; --accent: #6e7bff; --accent-soft: #6e7bff26; --green: #3ecf8e; --red: #ff5f6d; --orange: #ffb347; --radius: 14px; /* Capacitor setzt --safe-area-inset-* bei Edge-to-Edge; env() als Rückfall */ /* Status-/Navigationsleiste und Tastatur rechnet MainActivity als Rand um den WebView heraus */ --top: 0px; --bottom: 0px; color-scheme: dark; } * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; } html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; } body { font: 15px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-user-select: none; user-select: none; overscroll-behavior: none; } [hidden] { display: none !important; } button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; } input, select, textarea { font: inherit; color: var(--text); -webkit-user-select: text; user-select: text; } svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; } .mono { font-family: ui-monospace, 'JetBrains Mono', 'DejaVu Sans Mono', monospace; } /* ---------- Start ---------- */ #boot { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 28px; } #boot img { width: 84px; height: 84px; } .spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--surface2); border-top-color: var(--accent); animation: spin .8s linear infinite; } .spinner.sm { width: 16px; height: 16px; border-width: 2px; } @keyframes spin { to { transform: rotate(360deg); } } /* ---------- Grundlayout ---------- */ #main { position: fixed; inset: 0; display: flex; flex-direction: column; } #view { flex: 1; overflow-y: auto; padding: calc(var(--top) + 8px) 16px 96px; -webkit-overflow-scrolling: touch; } #tabs { display: flex; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: var(--bottom); } #tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; color: var(--faint); font-size: 11.5px; font-weight: 600; } #tabs button.active { color: var(--accent); } .top { display: flex; align-items: center; gap: 10px; min-height: 52px; } .top h1 { font-size: 26px; margin: 0; flex: 1; letter-spacing: -.3px; } .top h1 .brand { color: var(--green); } .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); } .icon:active { background: var(--surface2); } .search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; margin: 6px 0 14px; } .search svg { color: var(--faint); width: 18px; height: 18px; } .search input { flex: 1; background: none; border: 0; outline: 0; padding: 12px 0; } .section { margin: 18px 4px 8px; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; } .section .count { background: var(--surface2); border-radius: 8px; padding: 1px 7px; font-size: 11px; color: var(--faint); } .section svg { width: 16px; height: 16px; } .list { background: var(--surface); border-radius: var(--radius); overflow: hidden; } .item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 62px; position: relative; } .item + .item::before { content: ''; position: absolute; top: 0; left: 64px; right: 0; border-top: 1px solid var(--line); } .item:active { background: var(--surface2); } .item .meta { flex: 1; min-width: 0; } .item .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .item .sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .item .more { color: var(--faint); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; margin-right: -6px; } .item.disabled { opacity: .55; } .avatar { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; font-size: 16px; } .avatar svg { width: 20px; height: 20px; } .avatar.soft { background: var(--accent-soft); color: var(--accent); } .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; } .dot.on { background: var(--green); } .dot.err { background: var(--red); } .sessions { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 4px; padding: 2px 16px 8px; scrollbar-width: none; } .sessions::-webkit-scrollbar { display: none; } .chip { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 8px 14px; white-space: nowrap; font-weight: 600; font-size: 14px; } .empty { text-align: center; padding: 60px 24px; color: var(--muted); } .empty .avatar { margin: 0 auto 16px; width: 60px; height: 60px; border-radius: 18px; } .empty .avatar svg { width: 28px; height: 28px; } .empty h3 { color: var(--text); margin: 0 0 6px; } .fab { position: fixed; right: 18px; bottom: calc(76px + var(--bottom)); width: 58px; height: 58px; border-radius: 18px; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px #0008; } .fab svg { width: 26px; height: 26px; } /* ---------- Karten / Einstellungen ---------- */ .card { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; } .card h3 { margin: 0 0 4px; font-size: 16px; } .card p, .hint { color: var(--muted); font-size: 13.5px; margin: 4px 0 10px; } .row { display: flex; align-items: center; gap: 12px; padding: 10px 0; } .row + .row { border-top: 1px solid var(--line); } .row .grow { flex: 1; min-width: 0; } .row .sub { color: var(--muted); font-size: 13px; } .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; } .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--surface2); font-weight: 600; } .btn svg { width: 18px; height: 18px; } .btn.primary { background: var(--accent); color: #fff; } .btn.danger { color: var(--red); } .btn.block { width: 100%; } .btn:disabled { opacity: .5; } .btn:active { filter: brightness(1.15); } .field { margin-bottom: 14px; } .field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); margin: 0 2px 6px; } .field input, .field select, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; outline: 0; min-height: 48px; } .field textarea { min-height: 110px; resize: vertical; font-family: ui-monospace, monospace; font-size: 13px; } .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); } .field .hint { margin: 6px 2px 0; font-size: 12.5px; } .pw { position: relative; } .pw input { padding-right: 48px; } .pw button { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--faint); } .two { display: grid; grid-template-columns: 1fr 96px; gap: 10px; } .switch { position: relative; width: 50px; height: 30px; flex: none; } .switch input { opacity: 0; width: 0; height: 0; position: absolute; } .switch span { position: absolute; inset: 0; background: var(--surface2); border-radius: 20px; transition: .2s; } .switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--muted); transition: .2s; } .switch input:checked + span { background: var(--accent); } .switch input:checked + span::after { transform: translateX(20px); background: #fff; } .warn-box { border: 1px solid #ffb34755; background: #ffb34712; border-radius: 12px; padding: 10px 12px; color: var(--orange); font-size: 13px; margin: 8px 0; } /* ---------- Ebenen: Seiten, Sheets, Dialoge ---------- */ #layer > * { position: fixed; inset: 0; z-index: 20; } .page { background: var(--bg); display: flex; flex-direction: column; animation: slidein .18s ease-out; } @keyframes slidein { from { transform: translateX(30px); opacity: 0; } } .page-head { display: flex; align-items: center; gap: 6px; padding: calc(var(--top) + 6px) 8px 6px; border-bottom: 1px solid var(--line); background: var(--surface); } .page-head h2 { flex: 1; font-size: 18px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .page-head .btn { min-height: 38px; padding: 0 14px; } .page-body { flex: 1; overflow-y: auto; padding: 16px 16px calc(24px + var(--bottom)); } .scrim { background: #0009; display: flex; align-items: flex-end; animation: fade .15s; } .scrim.center { align-items: center; justify-content: center; padding: 20px; } @keyframes fade { from { opacity: 0; } } .sheet { width: 100%; background: var(--surface); border-radius: 20px 20px 0 0; padding: 8px 8px calc(10px + var(--bottom)); max-height: 85vh; overflow-y: auto; animation: up .18s ease-out; } @keyframes up { from { transform: translateY(40px); } } .sheet .grab { width: 38px; height: 4px; background: var(--line); border-radius: 4px; margin: 4px auto 8px; } .sheet .sheet-title { padding: 6px 12px 10px; color: var(--muted); font-size: 13px; font-weight: 600; } .sheet button.opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 14px; border-radius: 12px; text-align: left; font-weight: 500; } .sheet button.opt:active { background: var(--surface2); } .sheet button.opt.danger { color: var(--red); } .sheet button.opt svg { color: var(--muted); } .sheet button.opt.danger svg { color: var(--red); } .dialog { width: 100%; max-width: 420px; background: var(--surface); border-radius: 20px; padding: 20px; max-height: 88vh; overflow-y: auto; animation: pop .15s ease-out; } @keyframes pop { from { transform: scale(.96); opacity: 0; } } .dialog h3 { margin: 0 0 8px; font-size: 18px; } .dialog p { color: var(--muted); margin: 0 0 14px; } .dialog .btns { justify-content: flex-end; margin-top: 16px; } .fp { font-size: 12.5px; background: var(--bg); border-radius: 10px; padding: 10px; word-break: break-all; color: var(--text); -webkit-user-select: text; user-select: text; } .pair-code { font: 700 38px ui-monospace, monospace; letter-spacing: 6px; text-align: center; padding: 16px; background: var(--bg); border-radius: 14px; color: var(--accent); } .checks label { display: flex; align-items: center; gap: 12px; padding: 10px 2px; } .checks input { width: 20px; height: 20px; accent-color: var(--accent); } .checks h4 { margin: 12px 0 2px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; } #toasts { position: fixed; left: 16px; right: 16px; bottom: calc(84px + var(--bottom)); z-index: 50; display: flex; flex-direction: column; gap: 8px; pointer-events: none; } .toast { background: var(--surface2); border-left: 3px solid var(--accent); border-radius: 12px; padding: 12px 14px; box-shadow: 0 8px 24px #0008; animation: up .2s; font-size: 14px; } .toast.ok { border-color: var(--green); } .toast.error { border-color: var(--red); } /* ---------- Sperrbildschirm ---------- */ #lockScreen { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; gap: 14px; } #lockScreen img { width: 72px; height: 72px; margin-bottom: 6px; } #lockScreen h2 { margin: 0; } #lockScreen p { margin: 0 0 10px; color: var(--muted); text-align: center; } #lockScreen form { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 10px; } #lockScreen .field { margin: 0; } .bio-btn { width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-top: 10px; } .bio-btn svg { width: 32px; height: 32px; } /* ---------- Terminal ---------- */ #termScreen { position: fixed; left: 0; right: 0; top: 0; height: 100%; display: flex; flex-direction: column; background: var(--term-bg, #13151c); z-index: 10; } .term-head { display: flex; align-items: center; gap: 2px; padding: calc(var(--top) + 2px) 4px 2px; background: var(--surface); border-bottom: 1px solid var(--line); } .term-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px; font-weight: 700; } .term-title .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .term-title svg { width: 16px; height: 16px; color: var(--faint); } .term-title .count { background: var(--surface2); color: var(--muted); border-radius: 8px; padding: 0 7px; font-size: 12px; } #terms { flex: 1; position: relative; overflow: hidden; } .term-wrap { position: absolute; inset: 0; padding: 4px 2px 0 6px; } .term-wrap .xterm { height: 100%; } .term-wrap .xterm-viewport { background-color: transparent !important; } .term-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--term-bg, #13151c); color: var(--muted); padding: 24px; text-align: center; z-index: 5; } #keybar { display: flex; gap: 6px; overflow-x: auto; padding: 6px 6px calc(6px + var(--bottom)); background: var(--surface); border-top: 1px solid var(--line); scrollbar-width: none; } #keybar::-webkit-scrollbar { display: none; } #keybar button { flex: none; min-width: 44px; height: 40px; padding: 0 10px; border-radius: 10px; background: var(--surface2); font: 600 14px ui-monospace, monospace; color: var(--text); display: grid; place-items: center; } #keybar button svg { width: 18px; height: 18px; } #keybar button.on { background: var(--accent); color: #fff; } #keybar button.lock { box-shadow: inset 0 0 0 2px #fff; } body.kbd-open #keybar { padding-bottom: 6px; } body.kbd-open #tabs, body.kbd-open .fab { display: none; }