:root {
  --accent: #f5a623;
  --accent-2: #ff7a18;
  --bg: #0f1420;
  --panel: rgba(22, 27, 40, .86);
  --panel-solid: #171c29;
  --win: #1b2131;
  --win-head: #222a3d;
  --text: #e9edf5;
  --muted: #9aa4b8;
  --line: rgba(255, 255, 255, .09);
  --hover: rgba(255, 255, 255, .08);
  --input: rgba(255, 255, 255, .06);
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --radius: 12px;
  --taskbar-h: 52px;
  --font: "Segoe UI", "Inter", "Noto Sans", Ubuntu, Roboto, system-ui, sans-serif;
  --mono: "Cascadia Mono", "JetBrains Mono", "DejaVu Sans Mono", Consolas, monospace;
}
:root[data-theme="light"] {
  --bg: #e9edf4;
  --panel: rgba(248, 250, 253, .9);
  --panel-solid: #f7f9fc;
  --win: #ffffff;
  --win-head: #f0f3f8;
  --text: #1a2030;
  --muted: #5d677b;
  --line: rgba(0, 0, 0, .09);
  --hover: rgba(0, 0, 0, .06);
  --input: rgba(0, 0, 0, .05);
  --shadow: 0 18px 50px rgba(20, 30, 60, .22);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; user-select: none; }
input, textarea, select, button { font: inherit; color: inherit; }
textarea, input[type=text], input:not([type]), .selectable { user-select: text; }
.hidden { display: none !important; }
button { cursor: pointer; }
a { color: var(--accent); }

.btn { border: 1px solid var(--line); background: var(--input); padding: 7px 14px; border-radius: 8px; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); border-color: transparent; color: #111; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { background: #e5484d; color: #fff; border-color: transparent; }
.link-btn { background: none; border: 0; color: var(--accent); padding: 0; }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; font-size: 16px; }
.icon-btn:hover { background: var(--hover); }
.field { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--input); outline: none; }
.field:focus { border-color: var(--accent); }

/* Boot */
.boot { position: fixed; inset: 0; z-index: 9999; background: #05070c; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; transition: opacity .5s; }
.boot.fade { opacity: 0; pointer-events: none; }
.boot-logo { width: 96px; height: 96px; animation: pulse 1.6s ease-in-out infinite; }
.boot-name { color: #fff; font-size: 22px; letter-spacing: .5px; font-weight: 600; }
.boot-bar { width: 200px; height: 4px; background: #1d2433; border-radius: 4px; overflow: hidden; }
.boot-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .25s; }
@keyframes pulse { 50% { transform: scale(1.06); filter: drop-shadow(0 0 18px rgba(245, 166, 35, .55)); } }

/* Hintergrund */
.wall, .lock, .desktop { background: var(--wall, linear-gradient(135deg, #1a1f35, #0d1220)); background-size: cover; background-position: center; }

/* Sperrbildschirm */
.lock { position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column; align-items: center; color: #fff; padding-top: 12vh; transition: transform .45s ease, opacity .45s; }
.lock::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); backdrop-filter: blur(2px); }
.lock > * { position: relative; }
.lock.up { transform: translateY(-100%); opacity: 0; }
.lock-time { font-size: clamp(64px, 11vw, 120px); font-weight: 300; line-height: 1; text-shadow: 0 4px 30px rgba(0, 0, 0, .4); }
.lock-date { font-size: 20px; opacity: .9; margin-top: 8px; }
.lock-user { margin-top: auto; margin-bottom: 14vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lock-name { font-size: 20px; font-weight: 600; }
.lock-link { color: #fff; opacity: .85; font-size: 13px; }
.lock-hint { position: absolute; bottom: 24px; font-size: 12px; opacity: .6; }

.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #111; font-weight: 700; display: grid; place-items: center; flex: none; }
.avatar.big { width: 96px; height: 96px; font-size: 40px; box-shadow: 0 6px 30px rgba(0, 0, 0, .35); }

/* Desktop */
.desktop { position: fixed; left: 0; right: 0; top: 0; bottom: var(--taskbar-h); }
.icons { position: absolute; inset: 0; }
.dicon { position: absolute; width: 84px; padding: 6px 4px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; text-align: center; font-size: 12px; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); border: 1px solid transparent; }
.dicon:hover { background: rgba(255, 255, 255, .1); }
.dicon.sel { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .25); }
.dicon .lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.appicon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: 24px; box-shadow: 0 3px 10px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .25); flex: none; }
.appicon.sm { width: 26px; height: 26px; font-size: 15px; border-radius: 7px; box-shadow: none; }
.appicon.xs { width: 20px; height: 20px; font-size: 12px; border-radius: 5px; box-shadow: none; }
.select-rect { position: absolute; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); pointer-events: none; z-index: 1; }

/* Fenster */
.windows { position: absolute; inset: 0; pointer-events: none; }
.win { position: absolute; pointer-events: auto; background: var(--win); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; min-width: 280px; min-height: 160px; animation: winIn .16s ease-out; }
.win.closing { animation: winOut .14s ease-in forwards; }
.win.min { display: none; }
.win.max { border-radius: 0; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; }
.win.inactive .win-head { opacity: .82; }
@keyframes winIn { from { transform: scale(.96); opacity: 0; } }
@keyframes winOut { to { transform: scale(.96); opacity: 0; } }
.win-head { height: 40px; flex: none; display: flex; align-items: center; gap: 8px; padding-left: 12px; background: var(--win-head); border-bottom: 1px solid var(--line); }
.win-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.win-ctl { display: flex; height: 100%; }
.win-ctl button { width: 44px; height: 100%; border: 0; background: transparent; font-size: 14px; color: var(--text); }
.win-ctl button:hover { background: var(--hover); }
.win-ctl button.x:hover { background: #e5484d; color: #fff; }
.win-body { flex: 1; min-height: 0; position: relative; overflow: auto; }
.win-body.noscroll { overflow: hidden; }
.win-shield { position: absolute; inset: 0; z-index: 5; display: none; }
.dragging .win-shield, .resizing .win-shield { display: block; }
.rz { position: absolute; z-index: 6; }
.rz.n { top: -3px; left: 8px; right: 8px; height: 7px; cursor: n-resize; }
.rz.s { bottom: -3px; left: 8px; right: 8px; height: 7px; cursor: s-resize; }
.rz.e { right: -3px; top: 8px; bottom: 8px; width: 7px; cursor: e-resize; }
.rz.w { left: -3px; top: 8px; bottom: 8px; width: 7px; cursor: w-resize; }
.rz.ne { right: -3px; top: -3px; width: 12px; height: 12px; cursor: ne-resize; }
.rz.nw { left: -3px; top: -3px; width: 12px; height: 12px; cursor: nw-resize; }
.rz.se { right: -3px; bottom: -3px; width: 14px; height: 14px; cursor: se-resize; }
.rz.sw { left: -3px; bottom: -3px; width: 12px; height: 12px; cursor: sw-resize; }
.win.max .rz { display: none; }
.snap-preview { position: absolute; background: color-mix(in srgb, var(--accent) 20%, transparent); border: 2px solid var(--accent); border-radius: 12px; transition: all .12s; pointer-events: none; z-index: 8000; }

/* Taskleiste */
.taskbar { position: fixed; left: 0; right: 0; bottom: 0; height: var(--taskbar-h); background: var(--panel); backdrop-filter: blur(22px) saturate(1.4); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 6px; z-index: 7000; }
.start-btn { width: 44px; height: 40px; border: 0; border-radius: 8px; background: transparent; display: grid; place-items: center; }
.start-btn img { width: 28px; height: 28px; transition: transform .2s; }
.start-btn:hover, .start-btn.on { background: var(--hover); }
.start-btn:hover img { transform: rotate(-8deg) scale(1.06); }
.task-search { display: flex; align-items: center; gap: 6px; background: var(--input); border: 1px solid var(--line); border-radius: 20px; padding: 0 12px; height: 34px; width: 220px; }
.task-search input { border: 0; outline: 0; background: transparent; width: 100%; }
.task-apps { flex: 1; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.task-app { height: 40px; min-width: 44px; max-width: 190px; border: 0; border-radius: 8px; background: transparent; display: flex; align-items: center; gap: 8px; padding: 0 10px; position: relative; flex: none; }
.task-app:hover { background: var(--hover); }
.task-app .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.task-app::after { content: ""; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 6px; height: 3px; border-radius: 2px; background: var(--muted); }
.task-app.active { background: var(--hover); }
.task-app.active::after { width: 18px; background: var(--accent); }
.task-app.pinned:not(.running)::after { display: none; }
.tray { display: flex; align-items: center; gap: 2px; height: 100%; }
.tray-btn { position: relative; height: 40px; min-width: 36px; border: 0; background: transparent; border-radius: 8px; font-size: 15px; }
.tray-btn:hover, .tray-clock:hover { background: var(--hover); }
.badge { position: absolute; top: 4px; right: 2px; background: #e5484d; color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; }
.tray-clock { height: 40px; border: 0; background: transparent; border-radius: 8px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding: 0 10px; font-size: 12px; line-height: 1.25; }
.show-desktop { width: 8px; height: 100%; border-left: 1px solid var(--line); margin-left: 4px; cursor: pointer; }
.show-desktop:hover { background: var(--hover); }

/* Panels */
.panel { position: fixed; z-index: 7500; background: var(--panel); backdrop-filter: blur(26px) saturate(1.4); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); animation: panelIn .16s ease-out; }
@keyframes panelIn { from { transform: translateY(12px); opacity: 0; } }
.start-menu { left: 8px; bottom: calc(var(--taskbar-h) + 8px); width: min(600px, calc(100vw - 16px)); height: min(640px, calc(100vh - var(--taskbar-h) - 24px)); display: flex; flex-direction: column; padding: 18px 18px 0; }
.start-search { width: 100%; padding: 10px 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--input); outline: 0; margin-bottom: 12px; }
.start-search:focus { border-color: var(--accent); }
.start-section-title { font-weight: 600; font-size: 13px; margin: 6px 4px 8px; color: var(--muted); }
.start-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.start-tile { border: 0; background: transparent; border-radius: 10px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; }
.start-tile:hover, .start-row:hover, .start-row.focus { background: var(--hover); }
.start-tile span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.start-list { flex: 1; overflow-y: auto; min-height: 0; padding-bottom: 8px; }
.start-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 10px 8px 4px; }
.start-row { width: 100%; border: 0; background: transparent; border-radius: 8px; padding: 6px 8px; display: flex; align-items: center; gap: 10px; text-align: left; }
.start-row small { color: var(--muted); margin-left: auto; font-size: 11px; }
.start-foot { margin: 0 -18px; padding: 10px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: rgba(0, 0, 0, .12); border-radius: 0 0 14px 14px; }
.start-user { display: flex; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 8px; cursor: pointer; }
.start-user:hover { background: var(--hover); }
.cal-panel { right: 8px; bottom: calc(var(--taskbar-h) + 8px); width: 320px; padding: 16px; }
.cal-big { font-size: 34px; font-weight: 300; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 10px; text-align: center; font-size: 12px; }
.cal-grid b { color: var(--muted); font-weight: 600; padding: 4px 0; }
.cal-grid span { padding: 7px 0; border-radius: 50%; }
.cal-grid span.o { opacity: .35; }
.cal-grid span.t { background: var(--accent); color: #111; font-weight: 700; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.notif-panel { right: 8px; bottom: calc(var(--taskbar-h) + 8px); width: 360px; max-height: 70vh; display: flex; flex-direction: column; }
.notif-head { display: flex; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notif-list { overflow-y: auto; padding: 8px; }
.notif { padding: 10px 12px; border-radius: 10px; background: var(--input); margin-bottom: 6px; }
.notif b { display: block; }
.notif small { color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 24px; }

/* Kontextmenü */
.ctx { position: fixed; z-index: 9500; min-width: 210px; background: var(--panel); backdrop-filter: blur(22px); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 5px; }
.ctx button { display: flex; width: 100%; gap: 10px; align-items: center; border: 0; background: transparent; padding: 7px 10px; border-radius: 6px; text-align: left; }
.ctx button:hover { background: var(--hover); }
.ctx button[disabled] { opacity: .4; pointer-events: none; }
.ctx hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
.ctx .k { margin-left: auto; color: var(--muted); font-size: 11px; }

/* Toasts */
.toasts { position: fixed; right: 12px; bottom: calc(var(--taskbar-h) + 12px); z-index: 9600; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; width: 320px; background: var(--panel); backdrop-filter: blur(22px); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; display: flex; gap: 12px; animation: toastIn .25s ease-out; }
.toast.out { animation: toastOut .25s ease-in forwards; }
.toast b { display: block; }
.toast small { color: var(--muted); }
@keyframes toastIn { from { transform: translateX(110%); } }
@keyframes toastOut { to { transform: translateX(110%); opacity: 0; } }

/* Aus */
.off { position: fixed; inset: 0; z-index: 9999; background: #000; color: #ccc; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }

/* Dialog */
.dlg-back { position: absolute; inset: 0; z-index: 20; background: rgba(0, 0, 0, .35); display: grid; place-items: center; }
.dlg { background: var(--panel-solid); border: 1px solid var(--line); border-radius: 12px; padding: 18px; width: min(380px, 90%); box-shadow: var(--shadow); }
.dlg h3 { margin: 0 0 10px; font-size: 15px; }
.dlg .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }

/* Web-App-Fenster */
.webapp { display: flex; flex-direction: column; height: 100%; }
.webbar { display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-bottom: 1px solid var(--line); background: var(--win-head); }
.webbar .icon-btn { width: 30px; height: 30px; font-size: 14px; }
.webbar .url { flex: 1; min-width: 0; padding: 5px 12px; border-radius: 16px; background: var(--input); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.webapp iframe { flex: 1; border: 0; width: 100%; background: #fff; }
/* Browser */
.browser { display: flex; flex-direction: column; height: 100%; }
.br-tabbar { display: flex; align-items: flex-end; gap: 2px; padding: 6px 6px 0; background: var(--win-head); overflow-x: auto; scrollbar-width: none; }
.br-tabs { display: flex; gap: 2px; min-width: 0; }
.br-tab { display: flex; align-items: center; gap: 6px; width: 190px; min-width: 90px; flex-shrink: 1; padding: 6px 6px 6px 10px; border-radius: 8px 8px 0 0; font-size: 12.5px; cursor: default; color: var(--muted); }
.br-tab:hover { background: var(--input); }
.br-tab.on { background: var(--win); color: var(--text); }
.br-tab-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-tab-x { border: 0; background: none; color: inherit; width: 20px; height: 20px; border-radius: 50%; font-size: 15px; line-height: 1; cursor: pointer; }
.br-tab-x:hover { background: var(--line); }
.br-newtab { border: 0; background: none; color: var(--text); width: 30px; height: 30px; border-radius: 8px; font-size: 18px; cursor: pointer; margin-bottom: 2px; flex-shrink: 0; }
.br-newtab:hover { background: var(--input); }
.br-form { flex: 1; min-width: 0; display: flex; align-items: center; background: var(--input); border-radius: 18px; padding: 2px 4px; border: 1px solid transparent; }
.br-form:focus-within { border-color: var(--accent); }
.br-eng { width: 24px; height: 24px; border-radius: 50%; border: 0; color: #fff; font-weight: 800; font-size: 12px; cursor: pointer; flex-shrink: 0; }
.br-addr { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); padding: 5px 10px; font: inherit; font-size: 13px; outline: none; }
.br-hint { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 5px 12px; font-size: 12px; color: var(--muted); background: rgba(245,166,35,.08); border-bottom: 1px solid var(--line); }
.br-hint .linkbtn { border: 0; background: none; color: var(--accent); cursor: pointer; font: inherit; font-weight: 600; padding: 0; }
.br-view { flex: 1; position: relative; min-height: 0; }
.br-view > * { position: absolute; inset: 0; }
.br-pane iframe { width: 100%; height: 100%; border: 0; background: #fff; display: block; }
.br-start { overflow: auto; display: flex; flex-direction: column; align-items: center; padding: 60px 20px 30px; gap: 18px; background: radial-gradient(700px 400px at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%), var(--win); }
.br-logo { display: flex; align-items: center; gap: 12px; font-size: 30px; }
.br-logo img { width: 52px; }
.br-logo b { color: var(--accent); }
.br-start-form { display: flex; gap: 8px; width: min(620px, 100%); }
.br-start-q { flex: 1; min-width: 0; padding: 13px 20px; border-radius: 26px; border: 1px solid var(--line); background: var(--input); color: var(--text); font: inherit; font-size: 15px; outline: none; }
.br-start-q:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.br-start-form .btn { border-radius: 26px; padding: 0 22px; }
.br-start-eng { display: flex; gap: 6px; }
.br-start-eng .chip { border: 1px solid var(--line); background: var(--input); color: var(--muted); padding: 5px 14px; border-radius: 16px; cursor: pointer; font: inherit; font-size: 12.5px; }
.br-start-eng .chip.on { background: var(--accent); color: #111; border-color: transparent; font-weight: 700; }
.br-tiles { display: grid; grid-template-columns: repeat(5, 104px); gap: 10px; margin-top: 8px; }
.br-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--input); color: var(--text); cursor: pointer; font: inherit; font-size: 12px; }
.br-tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.br-tile-i { font-size: 26px; }
.br-note { max-width: 560px; text-align: center; font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.browser:not([data-skin="rd"]) { --accent: var(--br-accent); }
.browser:not([data-skin="rd"]) .br-start-eng .chip.on { color: #fff; }
.browser:not([data-skin="rd"]) .br-tabbar { box-shadow: inset 0 3px 0 var(--br-accent); }
.br-pick { display: flex; align-items: center; gap: 6px; flex-shrink: 0; border: 1px solid var(--line); background: var(--input); color: var(--text); border-radius: 16px; padding: 3px 9px 3px 3px; margin: 0 6px 4px 0; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; }
.br-pick:hover { border-color: var(--accent); }
.br-pick-i { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.br-pick-c { color: var(--muted); font-size: 10px; }
.br-vpnbtn { display: flex; align-items: center; gap: 5px; flex-shrink: 0; border: 1px solid var(--line); background: var(--input); color: var(--text); border-radius: 16px; padding: 4px 10px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; }
.br-vpnbtn:hover { border-color: var(--accent); }
.br-main { flex: 1; position: relative; min-height: 0; display: flex; }
.br-main > .br-view { flex: 1; }
.br-vpn { position: absolute; top: 8px; right: 8px; bottom: 8px; width: min(380px, calc(100% - 16px)); overflow: auto; z-index: 5; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: var(--win); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.br-vpn-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.br-vpn-status { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: var(--input); }
.br-vpn-status small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.br-vpn-status .br-vpn-ok { color: #3ecf6e; font-weight: 600; }
.br-vpn-flag { font-size: 34px; line-height: 1; }
.br-vpn .br-note { text-align: left; margin: 0; }
.br-vpn-list { display: flex; flex-direction: column; gap: 6px; }
.br-vpn-item { display: flex; align-items: flex-start; gap: 10px; text-align: left; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--input); color: var(--text); cursor: pointer; font: inherit; font-size: 13px; }
.br-vpn-item:hover { border-color: var(--accent); }
.br-vpn-item small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
@media (max-width: 700px) { .br-pick-n, .br-vpnbtn span { display: none; } }
@media (max-width: 700px) { .br-tiles { grid-template-columns: repeat(3, 1fr); width: 100%; } .br-start { padding-top: 30px; } .br-tab { width: 120px; } }
.web-blocked { position: absolute; inset: 40px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; background: var(--win); }
.web-loading { position: absolute; top: 38px; left: 0; height: 2px; background: var(--accent); animation: load 1.2s ease-in-out infinite; }
@keyframes load { 0% { left: 0; width: 0; } 50% { width: 60%; } 100% { left: 100%; width: 0; } }

/* Gemeinsame App-Stile */
.pad { padding: 16px; }
.toolbar { display: flex; gap: 4px; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--win-head); flex-wrap: wrap; }
.toolbar .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.tbtn { border: 0; background: transparent; padding: 5px 9px; border-radius: 6px; font-size: 13px; }
.tbtn:hover { background: var(--hover); }
.tbtn.on { background: color-mix(in srgb, var(--accent) 25%, transparent); }
.col { display: flex; flex-direction: column; height: 100%; }
.grow { flex: 1; min-height: 0; }
.status { padding: 4px 10px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); display: flex; gap: 16px; }

/* Dateien */
.files { display: flex; height: 100%; }
.files-side { width: 180px; border-right: 1px solid var(--line); padding: 8px; overflow-y: auto; flex: none; }
.files-side button { width: 100%; display: flex; gap: 8px; align-items: center; padding: 6px 8px; border: 0; background: transparent; border-radius: 6px; text-align: left; }
.files-side button:hover, .files-side button.on { background: var(--hover); }
.files-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.crumbs { flex: 1; padding: 5px 10px; background: var(--input); border-radius: 6px; font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.crumbs span { cursor: pointer; }
.crumbs span:hover { color: var(--accent); }
.fgrid { flex: 1; overflow: auto; padding: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); align-content: start; gap: 4px; }
.fitem { padding: 8px 4px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 12px; word-break: break-word; border: 1px solid transparent; }
.fitem:hover { background: var(--hover); }
.fitem.sel { background: color-mix(in srgb, var(--accent) 20%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.fitem .fi { font-size: 34px; line-height: 1.1; }
.fitem img { width: 56px; height: 44px; object-fit: cover; border-radius: 4px; }
.fgrid.drop { outline: 2px dashed var(--accent); outline-offset: -6px; }

/* Editor */
.editor { flex: 1; width: 100%; border: 0; outline: 0; resize: none; padding: 14px; background: transparent; font: 14px/1.6 var(--mono); tab-size: 4; }

/* Terminal */
.term { height: 100%; background: #0b0e14; color: #d6deeb; font: 13.5px/1.5 var(--mono); padding: 10px 12px; overflow-y: auto; cursor: text; }
.term .line { white-space: pre-wrap; word-break: break-word; }
.term .in { display: flex; }
.term .in input { flex: 1; background: transparent; border: 0; outline: 0; color: inherit; font: inherit; padding: 0; caret-color: var(--accent); }
.term .p { color: #7fdbca; }
.term .u { color: var(--accent); }
.term .e { color: #ff6b6b; }
.term .d { color: #82aaff; }

/* Rechner */
.calc { display: flex; flex-direction: column; height: 100%; padding: 10px; gap: 8px; }
.calc-disp { text-align: right; padding: 10px 8px; }
.calc-disp .h { color: var(--muted); font-size: 13px; min-height: 18px; }
.calc-disp .v { font-size: 38px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.calc-keys { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.calc-keys button { border: 0; border-radius: 8px; background: var(--input); font-size: 17px; }
.calc-keys button:hover { background: var(--hover); }
.calc-keys button.op { background: color-mix(in srgb, var(--accent) 16%, var(--input)); }
.calc-keys button.eq { background: var(--accent); color: #111; font-weight: 700; }

/* Einstellungen */
.settings { display: flex; height: 100%; }
.set-nav { width: 200px; padding: 10px; border-right: 1px solid var(--line); flex: none; }
.set-nav button { width: 100%; display: flex; gap: 10px; padding: 8px 10px; border: 0; background: transparent; border-radius: 8px; text-align: left; }
.set-nav button:hover, .set-nav button.on { background: var(--hover); }
.set-main { flex: 1; overflow-y: auto; padding: 20px 24px; }
.set-main h2 { margin: 0 0 16px; font-size: 22px; font-weight: 600; }
.set-card { background: var(--input); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.set-card .grow { flex: 1; }
.set-card small { color: var(--muted); display: block; }
.walls { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px; }
.walls button { aspect-ratio: 16/10; border-radius: 10px; border: 3px solid transparent; background-size: cover; background-position: center; }
.walls button.on { border-color: var(--accent); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; }
.swatches button.on { border-color: var(--text); }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 12px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(20px); }

/* Malen */
.paint-canvas-wrap { flex: 1; overflow: auto; background: repeating-conic-gradient(var(--input) 0 25%, transparent 0 50%) 0 0 / 20px 20px; display: grid; place-items: center; }
.paint-canvas-wrap canvas { background: #fff; box-shadow: var(--shadow); cursor: crosshair; touch-action: none; }

/* Bilder */
.viewer { height: 100%; display: grid; place-items: center; background: #0b0e14; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Task-Manager */
.tm table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tm th, .tm td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.tm th { color: var(--muted); font-weight: 600; position: sticky; top: 0; background: var(--win); }
.tm tr.sel td { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; width: 120px; }
.meter span { display: block; height: 100%; background: var(--accent); }

/* Uhr */
.clockapp { height: 100%; display: flex; flex-direction: column; }
.clockapp .tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.bigtime { font-size: 54px; font-weight: 300; text-align: center; font-variant-numeric: tabular-nums; margin: 22px 0 6px; }
.laps { max-height: 160px; overflow-y: auto; padding: 0 20px; font-variant-numeric: tabular-nums; }
.laps div { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--line); }

/* Haftnotizen */
.sticky { position: absolute; width: 210px; min-height: 170px; background: #fff59d; color: #3b3200; border-radius: 4px; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); z-index: 2; display: flex; flex-direction: column; }
.sticky .sh { height: 24px; display: flex; justify-content: flex-end; align-items: center; padding: 0 4px; cursor: move; background: rgba(0, 0, 0, .06); border-radius: 4px 4px 0 0; }
.sticky .sh button { border: 0; background: transparent; color: inherit; opacity: .6; font-size: 13px; }
.sticky .sh button:hover { opacity: 1; }
.sticky textarea { flex: 1; min-height: 140px; border: 0; outline: 0; background: transparent; padding: 8px 10px; font: 14px/1.4 var(--font); color: inherit; resize: both; }

/* About */
.about { text-align: center; padding: 26px 20px; }
.about img { width: 84px; }
.about h1 { margin: 10px 0 2px; font-size: 24px; }
.about table { margin: 18px auto 0; text-align: left; font-size: 13px; }
.about td { padding: 3px 10px; }
.about td:first-child { color: var(--muted); }

/* Mobile */
@media (max-width: 700px) {
  .task-search { display: none; }
  .task-app .t { display: none; }
  .start-grid { grid-template-columns: repeat(4, 1fr); }
  .win { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; }
  .win .rz { display: none; }
  .files-side, .set-nav { width: 64px; }
  .files-side button span, .set-nav button span { display: none; }
  .tray-btn#trayNet { display: none; }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); background-clip: padding-box; border: 2px solid transparent; }

/* Touchscreen (Chromebook, Tablet): Ziehen bewegt Fenster/Symbole statt die Seite zu scrollen */
.win-head, .rz, .dicon, .sticky .sh, .taskbar { touch-action: none; }
@media (pointer: coarse) {
  .win-head { height: 46px; }
  .win-ctl button { width: 52px; font-size: 16px; }
  .rz.e, .rz.w { width: 16px; } .rz.n, .rz.s { height: 16px; }
  .rz.se, .rz.sw, .rz.ne, .rz.nw { width: 24px; height: 24px; }
  .sticky .sh { height: 34px; }
}