Files
MrTerm/src/renderer/styles.css
T

418 lines
36 KiB
CSS

:root {
--titlebar: 42px;
font-family: var(--font);
font-size: 13px;
color: var(--text);
}
[data-theme='light'] .card, [data-theme='xp'] .card, [data-theme='win11'] .card, [data-theme='macos'] .card { border-color: var(--border); }
[data-theme='light'] .avatar .proto, [data-theme='xp'] .avatar .proto, [data-theme='win11'] .avatar .proto, [data-theme='macos'] .avatar .proto { background: var(--panel); }
[data-theme='light'] ::-webkit-scrollbar-thumb, [data-theme='xp'] ::-webkit-scrollbar-thumb, [data-theme='win11'] ::-webkit-scrollbar-thumb, [data-theme='macos'] ::-webkit-scrollbar-thumb { background: #c5cad8; background-clip: padding-box; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--text); }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2f3445; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
#app { display: flex; flex-direction: column; height: 100vh; }
/* ---------- Titlebar & Tabs ---------- */
#titlebar { height: var(--titlebar); display: flex; align-items: center; background: var(--chrome); -webkit-app-region: drag; border-bottom: 1px solid var(--chrome-line); flex: none; }
.brand { width: 212px; padding-left: 16px; font-weight: 700; letter-spacing: .3px; display: flex; align-items: center; gap: 10px; flex: none; }
.logo { width: 24px; height: 24px; border-radius: 6px; }
.brand { gap: 8px !important; }
.brand-term { color: #5ef0c4; margin-left: -8px; }
#tabs { display: flex; gap: 4px; height: 100%; align-items: flex-end; overflow-x: auto; min-width: 0; -webkit-app-region: no-drag; }
#tabs::-webkit-scrollbar { height: 0; }
.tab { -webkit-app-region: no-drag; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 12px; border: none; background: transparent; border-radius: 8px 8px 0 0; color: var(--muted); max-width: 220px; min-width: 110px; white-space: nowrap; position: relative; }
.tab.home { min-width: 0; }
.tab span { overflow: hidden; text-overflow: ellipsis; flex: 1; text-align: left; }
.tab:hover { background: var(--hover); color: var(--text); }
.tab.active { background: var(--bg); color: var(--text); }
.tab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.tab .dot.on { background: var(--green); box-shadow: 0 0 6px var(--green); }
.tab .dot.err { background: var(--red); }
.tab .dot.wait { background: var(--orange); animation: pulse 1s infinite; }
.tab .x { opacity: 0; border: none; background: none; padding: 2px; border-radius: 4px; color: var(--muted); display: flex; }
.tab:hover .x, .tab.active .x { opacity: 1; }
.tab .x:hover { background: rgb(var(--tint) / 0.094); color: var(--text); }
.tab .x svg { width: 12px; height: 12px; }
@keyframes pulse { 50% { opacity: .35; } }
.icon-btn { -webkit-app-region: no-drag; border: none; background: transparent; color: var(--muted); width: 30px; height: 30px; border-radius: 8px; font-size: 18px; margin-left: 4px; flex: none; }
.icon-btn:hover { background: var(--chrome-line); color: var(--text); }
.drag-fill { flex: 1; min-width: 40px; height: 100%; }
.win-ctrls { display: flex; height: 100%; -webkit-app-region: no-drag; }
.win-ctrls button { width: 46px; border: none; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.win-ctrls button svg { width: 12px; height: 12px; stroke-width: 1.2; }
.win-ctrls button:hover { background: rgb(var(--tint) / 0.071); color: var(--text); }
.win-ctrls button.close:hover { background: #e81123; color: white; }
/* ---------- Layout ---------- */
#body { flex: 1; display: flex; min-height: 0; position: relative; }
#sidebar { width: 212px; background: var(--chrome); padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--chrome-line); flex: none; }
#sidebar .spacer { flex: 1; }
#sidebar { min-height: 0; }
.nav-sep { border-top: 1px solid var(--chrome-line); margin: 8px 4px 6px; flex: none; }
.tree { flex: 1; min-height: 60px; overflow: auto; margin: 0 -4px; padding: 0 4px; user-select: none; }
.tree-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--faint); padding: 4px 6px 6px; border-radius: 6px; }
.tree-head button { border: none; background: none; color: var(--faint); padding: 2px; border-radius: 4px; display: flex; }
.tree-head button:hover { color: var(--text); background: var(--hover); }
.tree-head button svg { width: 14px; height: 14px; }
.tree-row { display: flex; align-items: center; gap: 6px; height: 26px; padding-right: 6px; border-radius: 6px; color: var(--muted); cursor: pointer; white-space: nowrap; font-size: 12.5px; }
.tree-row:hover { background: var(--hover); color: var(--text); }
.tree-row.active { background: var(--nav-active); color: var(--text); }
.tree-row .chev { width: 14px; display: flex; justify-content: center; color: var(--faint); flex: none; }
.tree-row .chev svg { width: 12px; height: 12px; transition: transform .12s; }
.tree-row .chev.open svg { transform: rotate(90deg); }
.tree-row .ti { display: flex; flex: none; }
.tree-row .ti svg { width: 15px; height: 15px; }
.tree-row .tl { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.tree-row .tc { font-size: 10px; color: var(--faint); }
.tree-row.host .ti { width: 16px; height: 16px; border-radius: 4px; align-items: center; justify-content: center; color: white; }
.tree-row.host .ti svg { width: 11px; height: 11px; stroke-width: 2.2; }
.tree-row.drop, .tree-head.drop { outline: 1px dashed var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tree-empty { color: var(--faint); font-size: 12px; padding: 4px 8px; }
.nav { display: flex; align-items: center; gap: 12px; border: none; background: none; padding: 9px 12px; border-radius: 8px; color: var(--muted); text-align: left; font-weight: 500; }
.nav:hover { background: var(--hover); color: var(--text); }
.nav.active { background: var(--nav-active); color: var(--text); }
.nav.active svg { color: var(--accent-2); }
.vault-badge { font-size: 11px; color: var(--faint); padding: 8px 12px; display: flex; gap: 6px; align-items: center; }
.vault-badge svg { width: 13px; height: 13px; }
body.in-session #sidebar { display: none; }
#main { flex: 1; min-width: 0; position: relative; background: var(--bg); }
.page { position: absolute; inset: 0; overflow: auto; display: none; }
.page.active { display: block; }
#sessions > .session { position: absolute; inset: 0; display: none; flex-direction: column; }
#sessions > .session.active { display: flex; }
/* ---------- Header / Toolbar ---------- */
.toolbar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 18px 28px 14px; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid transparent; }
.search { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 0 14px; height: 40px; }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; background: none; border: none; outline: none; height: 100%; font-size: 14px; }
.search svg { color: var(--faint); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); font-weight: 600; white-space: nowrap; }
.btn:hover { background: var(--card-hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-2); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: color-mix(in srgb, var(--red) 10%, transparent); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--card); color: var(--text); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn svg { width: 16px; height: 16px; }
.content { padding: 4px 28px 40px; }
.section-title { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; margin: 18px 0 10px; }
.section-title .count { background: var(--card); padding: 1px 7px; border-radius: 10px; font-size: 11px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); background: transparent; color: var(--muted); padding: 4px 10px; border-radius: 20px; font-size: 12px; }
.chip.active, .chip:hover { background: color-mix(in srgb, var(--accent) 13%, transparent); border-color: var(--accent); color: var(--text); }
/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { background: var(--card); border: 1px solid transparent; border-radius: var(--radius); padding: 14px; display: flex; gap: 12px; align-items: center; cursor: pointer; position: relative; transition: background .12s, border-color .12s, transform .12s; user-select: none; min-width: 0; }
.card:hover { background: var(--card-hover); border-color: var(--border); }
.card.selected { border-color: var(--accent); }
.card .meta { min-width: 0; flex: 1; }
.card .title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sub { color: var(--muted); font-size: 12px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .actions { display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.card:hover .actions { opacity: 1; }
.card .actions button { border: none; background: none; color: var(--muted); padding: 6px; border-radius: 6px; display: flex; }
.card .actions button:hover { background: rgb(var(--tint) / 0.078); color: var(--text); }
.card .actions svg { width: 16px; height: 16px; }
.avatar { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: white; flex: none; position: relative; }
.avatar svg { width: 20px; height: 20px; }
.avatar .proto { position: absolute; right: -4px; bottom: -4px; font-size: 8px; background: var(--chrome); color: var(--muted); padding: 1px 3px; border-radius: 4px; border: 1px solid var(--border); font-weight: 700; }
.group-card .avatar { background: var(--icon-bg); color: var(--accent-2); }
.tags { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.tag { font-size: 10px; background: rgb(var(--tint) / 0.059); color: var(--muted); padding: 1px 6px; border-radius: 4px; }
.empty { text-align: center; color: var(--muted); padding: 70px 20px; }
.empty .big { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; background: var(--card); display: flex; align-items: center; justify-content: center; color: var(--accent-2); }
.empty .big svg { width: 30px; height: 30px; }
.empty h3 { color: var(--text); margin: 0 0 6px; font-size: 16px; }
.empty p { margin: 0 0 18px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-top: 8px; }
.breadcrumb a { color: var(--accent-2); cursor: pointer; }
.list { display: flex; flex-direction: column; gap: 6px; }
.list .card { padding: 11px 14px; }
.mono { font-family: 'Cascadia Code', 'JetBrains Mono', Consolas, monospace; font-size: 12px; }
.status-pill { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: rgb(var(--tint) / 0.063); color: var(--muted); }
.status-pill.on { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
/* ---------- Drawer (Editor) ---------- */
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 400px; background: var(--bg-2); border-left: 1px solid var(--border); transform: translateX(100%); visibility: hidden; transition: transform .18s ease, box-shadow .18s ease, visibility 0s linear .18s; z-index: 20; display: flex; flex-direction: column; box-shadow: none; }
.drawer.open { transform: translateX(0); visibility: visible; box-shadow: -20px 0 40px #0006; transition: transform .18s ease, box-shadow .18s ease, visibility 0s; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer header h2 { margin: 0; font-size: 15px; }
.drawer .form { flex: 1; overflow: auto; padding: 16px 20px 20px; }
.drawer footer { display: flex; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }
.drawer footer .grow { flex: 1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.field input, .field select, .field textarea { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; outline: none; width: 100%; }
.field textarea { resize: vertical; min-height: 80px; font-family: 'Cascadia Code', Consolas, monospace; font-size: 12px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field .hint { font-size: 11px; color: var(--faint); }
.row { display: flex; gap: 10px; }
.row > .field { flex: 1; }
.row > .field.small { flex: 0 0 90px; }
.form h4 { margin: 20px 0 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--accent-2); }
.seg { display: flex; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 3px; gap: 3px; margin-bottom: 14px; }
.seg button { flex: 1; border: none; background: none; padding: 7px; border-radius: 6px; color: var(--muted); font-weight: 600; }
.seg button.active { background: var(--accent); color: var(--on-accent); }
.check { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.colors button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; }
.colors button.active { border-color: white; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 36px; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: none; background: none; color: var(--muted); display: flex; padding: 4px; }
/* ---------- Terminal-Session ---------- */
.session .sbar { height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: var(--bg-2); border-bottom: 1px solid var(--border); flex: none; }
.session .sbar .info { color: var(--muted); font-size: 12px; margin-right: auto; display: flex; gap: 8px; align-items: center; overflow: hidden; white-space: nowrap; }
.session .term-wrap { flex: 1; position: relative; min-height: 0; display: flex; }
.session .term { flex: 1; min-width: 0; min-height: 0; overflow: hidden; }
/* Innenabstand am .xterm-Element: FitAddon zieht nur dessen Padding ab (am Elternelement würde es mitgezählt) */
.session .term .xterm { height: 100%; padding: 8px 0 4px 10px; }
.session .term .xterm-viewport { background-color: transparent !important; } /* sonst schwarzer Rand im Innenabstand */
.session .overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; background: var(--overlay); z-index: 3; }
.session .overlay .spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; }
.session .overlay .msg { color: var(--muted); max-width: 520px; text-align: center; }
.session .overlay .msg.err { color: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }
.snip-panel { width: 260px; border-left: 1px solid var(--border); background: var(--bg-2); display: none; flex-direction: column; flex: none; }
.snip-panel.open { display: flex; }
.snip-panel .head { padding: 12px; font-weight: 600; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.snip-panel .items { overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.snip-panel .it { background: var(--card); border-radius: 8px; padding: 9px 10px; cursor: pointer; }
.snip-panel .it:hover { background: var(--card-hover); }
.snip-tpl { margin-top: 10px; }
.snip-tpl summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: 6px 2px; user-select: none; }
.snip-tpl .tpl-items { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.snip-tpl .it { background: var(--card); border-radius: 8px; padding: 9px 10px; cursor: pointer; }
.snip-tpl .it:hover { background: var(--card-hover); }
.snip-tpl .hint { color: var(--muted); font-size: 12px; margin-top: 3px; }
.snip-panel .it .mono { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.findbar { position: absolute; top: 8px; right: 24px; z-index: 4; display: none; gap: 4px; align-items: center; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 4px; box-shadow: 0 8px 24px #0008; }
.findbar.open { display: flex; }
.findbar input { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; outline: none; width: 200px; }
/* ---------- SFTP ---------- */
.sftp { display: flex; flex: 1; min-height: 0; gap: 1px; background: var(--border); }
.pane { flex: 1; display: flex; flex-direction: column; background: var(--bg); min-width: 0; }
.pane .phead { display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.pane .phead .title { font-weight: 600; margin-right: 6px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.pane .phead input { flex: 1; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; outline: none; min-width: 60px; font-family: 'Cascadia Code', Consolas, monospace; font-size: 12px; }
.pane .phead select { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 4px; }
.pane .files { flex: 1; overflow: auto; }
.pane.dragover .files { outline: 2px dashed var(--accent); outline-offset: -6px; background: color-mix(in srgb, var(--accent) 5%, transparent); }
.pane table { width: 100%; border-collapse: collapse; }
.pane th { position: sticky; top: 0; background: var(--bg); text-align: left; font-size: 11px; color: var(--faint); font-weight: 600; padding: 7px 10px; text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.pane td { padding: 6px 10px; white-space: nowrap; border-bottom: 1px solid var(--row-line); }
.pane td.name { max-width: 0; width: 100%; }
.pane td.name > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pane td.name span:last-child { overflow: hidden; text-overflow: ellipsis; }
.pane td.num { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.pane td.date { color: var(--muted); }
.pane tr:hover td { background: rgb(var(--tint) / 0.024); }
.pane tr.sel td { background: color-mix(in srgb, var(--accent) 15%, transparent); }
.pane .ico-dir { color: var(--folder); }
.pane .ico-file { color: var(--faint); }
.pane-empty { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; color: var(--muted); }
.host-picker { width: min(520px, 90%); max-height: 60%; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.transfers { max-height: 150px; overflow: auto; border-top: 1px solid var(--border); background: var(--bg-2); flex: none; }
.transfers:empty { display: none; }
.transfer { display: flex; gap: 10px; align-items: center; padding: 6px 12px; font-size: 12px; }
.transfer .bar { flex: 0 0 180px; height: 5px; background: var(--card); border-radius: 4px; overflow: hidden; }
.transfer .bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .1s; }
.transfer.done .bar i { background: var(--green); }
.transfer.fail .bar i { background: var(--red); }
.transfer .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ---------- Modals, Palette, Menüs, Toasts ---------- */
.modal-bg { position: fixed; inset: 0; background: #0009; display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; z-index: 100; animation: fade .12s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(460px, 92vw); background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 30px 80px #000a; overflow: hidden; }
.modal .mbody { padding: 20px; }
.modal h3 { margin: 0 0 6px; font-size: 16px; }
.modal p { color: var(--muted); margin: 0 0 16px; }
.modal .mfoot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--bg); }
.palette { width: min(620px, 92vw); }
.palette .pin { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.palette .pin input { flex: 1; background: none; border: none; outline: none; height: 54px; font-size: 16px; }
.palette .res { max-height: 50vh; overflow: auto; padding: 8px; }
.palette .item { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.palette .item .avatar { width: 32px; height: 32px; font-size: 13px; border-radius: 8px; }
.palette .item.active { background: color-mix(in srgb, var(--accent) 15%, transparent); }
.palette .item .k { margin-left: auto; color: var(--faint); font-size: 11px; }
.palette .grp { font-size: 11px; color: var(--faint); padding: 8px 10px 4px; text-transform: uppercase; letter-spacing: .5px; }
.ctx { position: fixed; z-index: 200; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 5px; min-width: 190px; box-shadow: 0 14px 40px #000a; }
.ctx button { display: flex; align-items: center; gap: 10px; width: 100%; border: none; background: none; padding: 7px 10px; border-radius: 6px; text-align: left; }
.ctx button:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.ctx button.danger { color: var(--red); }
.ctx hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.ctx svg { width: 15px; height: 15px; color: var(--muted); }
#toasts { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 300; }
.toast { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 8px; box-shadow: 0 10px 30px #0008; max-width: 380px; animation: slide .18s; }
.toast.error { border-left-color: var(--red); }
.toast.ok { border-left-color: var(--green); }
@keyframes slide { from { transform: translateY(10px); opacity: 0; } }
.settings-grid { max-width: 720px; }
.settings-card { background: var(--card); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.settings-card h3 { margin: 0 0 14px; font-size: 14px; }
.theme-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.theme-prev { border-radius: 8px; padding: 10px; font-family: 'Cascadia Code', Consolas, monospace; font-size: 11px; cursor: pointer; border: 2px solid transparent; line-height: 1.5; }
.theme-prev.active { border-color: var(--accent); }
.theme-prev .nm { font-family: 'Segoe UI', sans-serif; font-weight: 600; margin-bottom: 4px; }
kbd { background: var(--card); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; font-size: 11px; font-family: inherit; }
.update-badge { color: var(--accent-2) !important; background: color-mix(in srgb, var(--accent) 14%, transparent) !important; }
.design-prev { padding: 8px; }
.design-prev .dp { display: flex; gap: 6px; height: 62px; margin-bottom: 8px; }
.design-prev .dp i { width: 22%; border-radius: 4px; }
.design-prev .dp > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.design-prev .dp b { flex: 1; border-radius: 4px; position: relative; }
.design-prev .dp s { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; border-radius: 3px; }
.design-prev .nm { margin: 0; }
[data-theme='light'] .brand-term { color: #14a37a; }
.rdp-area { background: #000; }
.rdp-area .rdp-hint { margin: auto; color: var(--faint); font-size: 12px; }
/* ---------- Einklappbares Menü in der Sidebar ---------- */
.nav-head { padding-top: 0; }
.nav-head button svg { transition: transform .15s; }
.nav-menu { display: flex; flex-direction: column; gap: 2px; flex: none; }
#sidebar.nav-collapsed .nav-head button svg { transform: rotate(180deg); }
#sidebar.nav-collapsed .nav-menu { flex-direction: row; flex-wrap: wrap; gap: 2px; }
#sidebar.nav-collapsed .nav-menu .nav { padding: 7px; flex: 0 0 auto; }
#sidebar.nav-collapsed .nav-menu .nav span { display: none; }
/* App-Sperre */
.lock-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.lock-screen { position: fixed; inset: 0; top: var(--titlebar); z-index: 200; background: var(--bg); display: flex; align-items: center; justify-content: center; animation: fade .15s; }
.lock-box { width: 340px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.lock-box h2 { margin: 0 0 6px; font-size: 18px; }
.lock-logo { width: 64px; height: 64px; }
.lock-pw { display: flex; gap: 8px; width: 100%; }
.lock-pw input { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; color: var(--text); outline: none; }
.lock-pw input:focus { border-color: var(--accent); }
.lock-fido { width: 100%; justify-content: center; }
.lock-err { color: var(--red); min-height: 18px; font-size: 13px; }
.lock-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.lock-row .grow { flex: 1; min-width: 0; }
.lock-row b { display: flex; align-items: center; gap: 6px; }
.lock-row b svg { width: 14px; height: 14px; }
.lock-row .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
/* VPN */
.vpn-hosts { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow: auto; }
.spinner.sm { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; margin-right: 6px; vertical-align: -2px; }
/* Docker */
.session.docker .sbar .search.sm { flex: 0 1 260px; height: 28px; margin: 0; }
.session.docker .rt { color: var(--faint); }
.docker-body { flex: 1; overflow: auto; position: relative; }
.docker-body .pane-empty { height: 100%; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; }
.docker-table { width: 100%; border-collapse: collapse; }
.docker-table th { position: sticky; top: 0; background: var(--bg); text-align: left; font-size: 11px; color: var(--faint); font-weight: 600; padding: 8px 10px; text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--border); z-index: 1; }
.docker-table td { padding: 7px 10px; border-bottom: 1px solid var(--row-line); white-space: nowrap; vertical-align: middle; }
.docker-table tr:hover td { background: rgb(var(--tint) / 0.024); }
.docker-table td.name { width: 30%; max-width: 0; }
.docker-table td.name > div { display: flex; flex-direction: column; min-width: 0; }
.docker-table td.name b, .docker-table td.name .img { overflow: hidden; text-overflow: ellipsis; }
.docker-table td.name .img { color: var(--faint); font-size: 11px; }
.docker-table td.muted { color: var(--muted); font-size: 12px; }
.docker-table td.ports { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.docker-table .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.docker-table td.acts { text-align: right; }
.docker-table td.acts .btn { padding: 4px 6px; }
.docker-table .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.docker-table .dot.on { background: var(--green); }
.docker-table .dot.wait { background: var(--orange); }
/* Firewall */
.seg.sm button { padding: 4px 10px; font-size: 12px; }
.fw-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.fw-def { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; margin-left: 8px; }
.fw-def select { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; color: var(--text); }
.fw-note { padding: 10px 16px; color: var(--faint); font-size: 12px; border-bottom: 1px solid var(--border); }
.fw-chain-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 8px; }
.fw-chain-head .muted { color: var(--faint); font-size: 12px; }
.fw-chain-head .fw-def { margin-left: auto; }
.fw-table td.spec { font-size: 12px; white-space: normal; word-break: break-all; }
.fw-act { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: rgb(var(--tint) / 0.063); color: var(--muted); }
.fw-act.allow, .fw-act.accept { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.fw-act.deny, .fw-act.reject { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.fw-act.limit { background: color-mix(in srgb, var(--orange) 14%, transparent); color: var(--orange); }
.fw-table th:first-child, .fw-table td:first-child { width: 44px; text-align: left; padding-left: 16px; }
.fw-off { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); text-align: center; }
.fw-off svg { width: 40px; height: 40px; color: var(--faint); margin-bottom: 6px; }
.fw-off b { color: var(--text); font-size: 15px; }
/* Netzwerk */
.net-wrap { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.net-banner { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.net-banner.warn { border-color: color-mix(in srgb, var(--orange) 50%, transparent); color: var(--orange); }
.net-sys { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; background: var(--card); border-radius: 12px; padding: 14px 16px; }
.net-sys label { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--faint); font-weight: 600; }
.net-sys .v { margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.net-sys .hint { font-size: 11px; color: var(--faint); margin-top: 4px; }
.net-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; }
.net-card { background: var(--card); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.net-card.absent { opacity: .7; border: 1px dashed var(--border); }
.net-card .nh { display: flex; align-items: center; gap: 8px; }
.net-card .nh .grow { flex: 1; }
.net-card .kind { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 2px 6px; border-radius: 6px; background: rgb(var(--tint) / 0.063); color: var(--muted); }
.net-card .nm, .net-card .ncfg { font-size: 12px; }
.net-card .na { font-family: var(--mono, monospace); font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; }
.net-card .net-bond { font-size: 12px; border-top: 1px solid var(--row-line); padding-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.net-card .slave { display: flex; align-items: center; gap: 6px; }
.net-card .muted, .net-sys .muted { color: var(--faint); }
.network .dot, .net-card .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.net-card .dot.on { background: var(--green); }
.net-card .dot.err { background: var(--red); }
.flabel { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 600; margin: 4px 0 6px; }
/* Synchronisation */
.sync-peers .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.sync-peers .dot.on { background: var(--green); }
.pair-code { font-size: 34px; font-weight: 700; letter-spacing: 6px; text-align: center; padding: 14px 0 6px; font-variant-numeric: tabular-nums; color: var(--accent); }
.pair-list { max-height: 260px; overflow: auto; }
.share-list { max-height: 380px; overflow: auto; }
.share-list h4 { margin: 12px 0 6px; }
.fw-hint { align-items: flex-start; margin: 4px 0 14px; }
.fw-hint svg { width: 22px; height: 22px; }
.fw-hint .grow { flex: 1; min-width: 0; }
.fw-hint b { color: var(--text); }
.fw-hint p { margin: 4px 0 8px; color: var(--muted); }
.fw-hint pre, .fw-pre { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin: 0 0 10px; color: var(--text); white-space: pre-wrap; user-select: text; }
/* Design-Extras: XP-Titelleiste, Cyberpunk-Neon */
[data-theme='xp'] #titlebar { background: linear-gradient(#0a5fdc, #0846b8 55%, #0a3f9f); color: #fff; }
[data-theme='xp'] #titlebar .brand, [data-theme='xp'] #titlebar .win-ctrls button, [data-theme='xp'] #titlebar .tab:not(.active) { color: #fff; }
[data-theme='xp'] #titlebar .tab.active { color: var(--text); }
[data-theme='xp'] .btn.primary { background: linear-gradient(#3d86e8, #2159b8); border-color: #1b4a9a; }
[data-theme='cyberpunk'] .btn.primary { clip-path: polygon(0 0, 100% 0, 100% 70%, calc(100% - 10px) 100%, 0 100%); text-transform: uppercase; letter-spacing: .5px; }
[data-theme='cyberpunk'] #titlebar { border-bottom: 1px solid #fcee0a55; }
[data-theme='cyberpunk'] .card:hover { box-shadow: inset 2px 0 0 var(--accent-3); }
[data-theme='xp'] .brand-term, [data-theme='win11'] .brand-term, [data-theme='macos'] .brand-term { color: #14a37a; }
/* macOS Liquid Glass */
[data-theme='macos'] #main, [data-theme='macos'] .pane { background: transparent; }
[data-theme='macos'] :is(#titlebar, #sidebar, .toolbar, .card, .settings-card, .modal, .drawer, .ctx, .palette, .search, .toast, .net-card, .findbar, .pane th, .tab.active, .btn, .seg, .field input, .field select, .field textarea) {
-webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
[data-theme='macos'] :is(.card, .settings-card, .modal, .drawer, .ctx, .palette, .toast, .net-card, .search) { border: 1px solid var(--border); box-shadow: var(--glass-edge); }
[data-theme='macos'] #sidebar { border-right: 1px solid var(--chrome-line); box-shadow: inset -1px 0 0 rgba(255, 255, 255, .6); }
[data-theme='macos'] #titlebar { border-bottom: 1px solid var(--chrome-line); }
[data-theme='macos'] .btn { border-radius: 999px; border-color: rgba(255, 255, 255, .75); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 8px rgba(30, 40, 80, .08); }
[data-theme='macos'] .btn.primary { background: linear-gradient(rgba(40, 145, 255, .92), rgba(0, 110, 240, .92)); border-color: rgba(255, 255, 255, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 4px 14px rgba(0, 122, 255, .3); }
[data-theme='macos'] .modal-bg { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
[data-theme='macos'] .nav.active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 8px rgba(30, 40, 80, .08); }
/* Web-Version (Browser): Desktop-Funktionen ausblenden */
.web .win-ctrls, .web #lockBtn, .web .nav[data-view='vpns'], .web .nav[data-view='forwards'], .web #updateBadge { display: none !important; }