/* Ergänzungen der Linux-Shell zu os.css (die Website-Datei bleibt unverändert).
   Jede Oberfläche (Desktop, Taskleiste, Flyouts …) ist eine eigene WebView; html[data-surface]
   sagt, welche. Schrift: "Segoe UI" wird unter Linux per fontconfig auf Selawik abgebildet. */

@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;
  src:url('../vendor/website/fonts/ibm-plex-mono-normal-400-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;
  src:url('../vendor/website/fonts/ibm-plex-mono-normal-400-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;
  src:url('../vendor/website/fonts/ibm-plex-mono-normal-500-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:italic;font-weight:400;font-display:swap;
  src:url('../vendor/website/fonts/ibm-plex-mono-italic-400-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* Oberflächen ohne eigenen Hintergrund: der Compositor zeigt darunter den Desktop */
html[data-surface="panel"],html[data-surface="panel"] body,
html[data-surface="overlay"],html[data-surface="overlay"] body{background:transparent}

/* Taskleiste: In der Linux-Shell ist die WebView genau so hoch wie die Leiste */
html[data-surface="panel"] #os-taskbar{inset:0;height:100%}

/* Software-Rendering (VM ohne GPU): Matrix wird in halber Auflösung gezeichnet und vom Browser
   hochskaliert – das ergibt die Weichzeichnung von blur(2px) ohne Vollbildfilter. */
body.sw-render #matrix{filter:none;image-rendering:auto}

/* Tray der Linux-Shell: Systemsymbole (Netzwerk/Ton/Akku) als eine Schaltfläche wie bei Windows 11 */
.tray-sys{gap:9px}
.tray-sys svg{width:16px;height:16px;stroke-width:1.8}
.tray-sys .tray-batt{display:inline-flex;align-items:center}
#os-exit svg{width:16px;height:16px}

/* Overlay: Die Fläche endet bereits über der Taskleiste (exklusive Zone) – Flyouts sitzen 12 px darüber */
html[data-surface="overlay"]{--tb-h:0px}

/* Startmenü: „Alle Apps“ wie Windows 11, im Stil der Startmenü-Elemente aus os.css */
.sm-label .sm-more{
  margin-left:auto;display:inline-flex;align-items:center;gap:4px;padding:3px 8px 3px 10px;border-radius:5px;
  font-size:.7rem;font-weight:400;color:var(--text);background:var(--card);border:1px solid var(--stroke)
}
.sm-label .sm-more:hover{background:var(--card-hover)}
.sm-label .sm-more svg{width:12px;height:12px;stroke-width:2}
.sm-all{display:flex;flex-direction:column;gap:1px}
.sm-letter{font-size:.72rem;font-weight:600;color:var(--text-2);padding:10px 10px 4px}
.sm-allitem{width:100%}
.sm-allitem .ic-pic img,.sm-pin .ic-pic img{width:100%;height:100%}
.sm-user .sm-ava img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.sm-pin:focus-visible,.sm-recitem:focus-visible,.sm-more:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}

/* Administrator-Abfrage (Polkit) – .dlg der Website mit Benutzerzeile und Passwortfeld */
.auth-dlg .dlg-title{display:flex;align-items:center;gap:10px}
.auth-dlg .dlg-title svg{width:18px;height:18px;color:var(--accent);flex-shrink:0}
.auth-dlg .auth-msg{margin-bottom:14px;color:var(--text)}
.auth-user{display:flex;align-items:center;gap:11px;margin-bottom:12px}
.auth-user .sm-ava{width:32px;height:32px;border-radius:50%;background:var(--accent-soft);display:flex;align-items:center;justify-content:center;font-size:1.05rem}
.auth-user .auth-name{font-size:.82rem;color:var(--text)}
.auth-dlg .txt-input{width:100%;margin-bottom:8px}
.auth-err{color:var(--danger);font-size:.78rem;margin:2px 0 6px}
.auth-action{font-size:.68rem;color:var(--text-3);margin-top:6px;word-break:break-all}
.auth-shake{animation:authShake .32s ease}
@keyframes authShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-8px)}75%{transform:translateX(8px)}}

/* Eigene Apps: echtes Fenster, Rahmen aus os.css (.os-window). Wayfire animiert das Öffnen selbst,
   Schatten kommen vom Compositor – deshalb hier keine Fensteranimation und kein box-shadow. */
html.gregos-app,html.gregos-app body{background:transparent;height:100%}
html.gregos-app .os-window.app-window{position:fixed;inset:0;min-width:0;min-height:0;animation:none;box-shadow:none}
html.gregos-app .os-window.app-window.maximized{border-radius:0;border:none}
html.gregos-app #app-content{flex:1;display:flex;flex-direction:column;min-height:0}

/* Dateien: Ergänzungen zum Explorer der Website (.fx*) */
.fx-cmd[hidden]{display:none}
.fx-ci-term{margin-left:2px}
.fx-hiddenfile .fx-ic,.fx-hiddenfile .fx-nm{opacity:.62}
.fx-tile .fx-thumb{width:64px;height:64px;object-fit:cover;border-radius:4px;box-shadow:0 1px 4px rgba(0,0,0,.35)}
.fx-ni{position:relative}
.fx-neject{margin-left:auto;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;color:var(--text-2)}
.fx-neject:hover{background:color-mix(in srgb,var(--text) 12%,transparent);color:var(--text)}
.fx-neject svg{width:12px;height:12px}
.fx-perm{margin-top:14px;font-size:.78rem;color:var(--text-2)}
.fx-perm code{font-family:var(--mono);font-size:.74rem;margin-left:6px;color:var(--text)}
.fx-perm table{margin-top:8px;border-collapse:collapse}
.fx-perm th{font-weight:400;font-size:.72rem;padding:2px 10px;color:var(--text-3)}
.fx-perm td{padding:3px 10px;text-align:center}
.fx-perm td:first-child{text-align:left;padding-left:0;color:var(--text)}
.fx-perm input{accent-color:var(--accent)}
.fx-job{position:fixed;right:16px;bottom:44px;z-index:9960;width:340px;padding:14px 16px 12px;border-radius:10px;
  background:var(--surf-solid);border:1px solid var(--stroke-strong);box-shadow:var(--shadow-fly);font-size:.78rem;color:var(--text)}
.fx-job-t{font-weight:600;margin-bottom:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fx-job-bar{height:4px;border-radius:2px;background:var(--card-hover);overflow:hidden}
.fx-job-bar i{display:block;height:100%;background:var(--accent);transition:width .2s}
.fx-job-s{margin:8px 0 10px;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.72rem}
.fx-job .btn{float:right}
.ow-app img{width:24px;height:24px;object-fit:contain}

/* Meldungsfläche: Toast sitzt unten in der kleinen Fläche (die schon über der Taskleiste beginnt) */
html[data-surface="toast"],html[data-surface="toast"] body{background:transparent}
html[data-surface="toast"]{--tb-h:-8px}

/* Einstellungen: Ergänzungen zu .set-* der Website (Unterseiten mit Pfeil, Brotkrumen, Schieberegler) */
.set-nav .set-navsearch{width:auto;margin:0 6px 10px;font-size:.76rem}
.set-card.set-link{cursor:default;transition:background .12s}
.set-card.set-link:hover{background:var(--card-hover)}
.set-card.set-link:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.set-chev{display:flex;color:var(--text-3)}
.set-chev svg{width:14px;height:14px;stroke-width:2}
.set-card .btn{white-space:nowrap}
.set-card > .btn + .btn,.set-card > .tgl{margin-left:-4px}
.set-card .sc-ic img{width:20px;height:20px;object-fit:contain}
.set-card input[type=datetime-local],.set-card input[type=number]{color-scheme:inherit}
:root[data-theme="dark"] .set-card select,:root[data-theme="dark"] .set-card input{color-scheme:dark}
.set-slider{display:flex;align-items:center;gap:10px}
.set-slider input{width:170px;accent-color:var(--accent)}
.set-slider span{min-width:48px;text-align:right;font-size:.74rem;color:var(--text-2);font-variant-numeric:tabular-nums}
.set-note{font-size:.74rem;color:var(--text-3);margin:10px 2px 14px;line-height:1.5;max-width:640px}
.set-busy{font-size:.78rem;color:var(--text-2);padding:14px 2px}
.set-busy::before{content:'';display:inline-block;width:12px;height:12px;margin-right:10px;vertical-align:-2px;border-radius:50%;
  border:2px solid var(--accent);border-right-color:transparent;animation:setSpin .8s linear infinite}
body.no-anim .set-busy::before{animation:none}
@keyframes setSpin{to{transform:rotate(360deg)}}
.set-main h2.set-crumbs{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.set-crumbs button{font:inherit;font-weight:400;color:var(--text-2)}
.set-crumbs button:hover{color:var(--text)}
.set-crumbs span{color:var(--text-3);font-weight:400}
.set-crumbs b{font-weight:600}
.set-usage{padding:14px 16px;margin-bottom:5px;background:var(--card);border:1px solid var(--stroke);border-radius:6px;font-size:.8rem}
.set-usage-t{display:flex;justify-content:space-between;margin-bottom:9px}
.set-usage-t span{color:var(--text-3);font-size:.74rem}
.set-usage .fx-use i{background:var(--accent)}
.set-main .set-search{width:100%;max-width:420px;margin-bottom:12px}
.set-form{display:flex;flex-direction:column;gap:12px;min-width:340px}
.set-form label{display:flex;flex-direction:column;gap:5px;font-size:.76rem;color:var(--text-2)}
.set-form label:has(input[type=checkbox]){flex-direction:row-reverse;justify-content:flex-end;align-items:center;gap:8px}
.set-form select{height:30px;border-radius:5px;border:1px solid var(--stroke-strong);background:var(--card);color:var(--text);font-size:.76rem;padding:0 8px}
.set-form .txt-input{width:100%}
.set-main > .btn.primary{margin-top:10px}
@media (max-width:760px){.set-nav .set-navsearch{display:none}.set-slider input{width:120px}}

/* ===== Uhr-Flyout: Benachrichtigungscenter über dem Kalender (Windows 11) ===== */
#os-calcol{position:fixed;right:12px;bottom:calc(var(--tb-h) + 12px);z-index:9500;width:360px;
  display:flex;flex-direction:column;gap:12px;max-height:calc(100vh - 24px);animation:calIn .18s ease}
#os-calcol[hidden]{display:none}
#os-calcol #os-calendar{position:static;width:auto;animation:none;flex-shrink:0}
#os-notes{background:var(--surf-1);backdrop-filter:blur(34px) saturate(1.6);border:1px solid var(--stroke-strong);
  border-radius:10px;box-shadow:var(--shadow-fly);display:flex;flex-direction:column;min-height:0;overflow:hidden}
.nt-head{display:flex;align-items:center;gap:6px;padding:12px 12px 10px 18px}
.nt-head b{flex:1;font-size:.84rem;font-weight:600}
.nt-dnd{width:30px;height:30px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;color:var(--text-2)}
.nt-dnd svg{width:15px;height:15px;stroke-width:1.8}
.nt-dnd:hover{background:var(--card-hover);color:var(--text)}
.nt-dnd.on{color:var(--accent)}
.nt-clear{font-size:.72rem;padding:5px 10px;border-radius:5px;background:var(--card);border:1px solid var(--stroke);color:var(--text)}
.nt-clear:hover{background:var(--card-hover)}
.nt-clear[hidden]{display:none}
.nt-list{overflow-y:auto;padding:0 10px 10px;display:flex;flex-direction:column;gap:10px;min-height:0}
.nt-empty{padding:22px 8px 26px;text-align:center;font-size:.76rem;color:var(--text-3)}
.nt-ghead{display:flex;align-items:center;gap:8px;padding:2px 4px 6px;font-size:.72rem;color:var(--text-2)}
.nt-gic{width:16px;height:16px;display:inline-flex}
.nt-gic svg,.nt-gic img,.nt-gic .ic-tile{width:16px;height:16px;font-size:.45rem;border-radius:3px}
.nt-gname{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nt-gx,.nt-x{width:22px;height:22px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;color:var(--text-3);flex-shrink:0}
.nt-gx svg,.nt-x svg{width:11px;height:11px;stroke-width:2}
.nt-gx:hover,.nt-x:hover{background:var(--card-hover);color:var(--text)}
.nt-group{display:flex;flex-direction:column;gap:5px}
.nt-card{background:var(--card);border:1px solid var(--stroke);border-radius:7px;padding:10px 10px 10px 12px;font-size:.76rem;cursor:default}
.nt-card:hover{background:var(--card-hover)}
.nt-card.crit{border-left:3px solid var(--danger)}
.nt-row{display:flex;gap:10px;align-items:flex-start}
.nt-img{width:42px;height:42px;border-radius:5px;object-fit:cover;flex-shrink:0}
.nt-txt{flex:1;min-width:0}
.nt-sum{font-weight:600;color:var(--text);margin-bottom:2px;overflow-wrap:anywhere}
.nt-body{color:var(--text-2);line-height:1.4;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.nt-body a{color:var(--accent)}
.nt-time{font-size:.66rem;color:var(--text-3);white-space:nowrap;margin-top:2px}
.nt-acts{display:flex;gap:6px;margin-top:10px}
.nt-acts .btn{flex:1;font-size:.72rem;padding:5px 8px}
.cal-foot{display:flex;align-items:center}
.cal-kw{font-size:.7rem;color:var(--text-3);padding-left:6px;flex:1}

/* ===== Schnelleinstellungen ===== */
#os-quick{position:fixed;right:12px;bottom:calc(var(--tb-h) + 12px);z-index:9500;width:360px;
  background:var(--surf-1);backdrop-filter:blur(34px) saturate(1.6);border:1px solid var(--stroke-strong);border-radius:10px;
  box-shadow:var(--shadow-fly);overflow:hidden;animation:calIn .18s ease;color:var(--text)}
#os-quick[hidden]{display:none}
.qs-page{padding:18px 18px 10px}
/* Wiedergabe (MPRIS) oben in den Schnelleinstellungen */
.qs-media{display:flex;align-items:center;gap:12px;margin:12px 12px 0;padding:10px;border-radius:8px;background:var(--card);border:1px solid var(--stroke)}
.qm-art{width:52px;height:52px;flex-shrink:0;border-radius:6px;overflow:hidden;background:var(--card-hover);display:flex;align-items:center;justify-content:center;color:var(--text-3)}
.qm-art img{width:100%;height:100%;object-fit:cover;display:block}
.qm-art svg{width:24px;height:24px;stroke-width:1.6}
.qm-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.qm-txt small{font-size:.66rem;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qm-txt b{font-size:.8rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qm-txt span{font-size:.72rem;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qm-ctl{display:flex;gap:2px;flex-shrink:0}
.qm-ctl button{width:32px;height:32px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;color:var(--text)}
.qm-ctl button svg{width:14px;height:14px;fill:currentColor;stroke:none}
.qm-ctl button:hover:not(:disabled){background:var(--card-hover)}
.qm-ctl button:disabled{opacity:.35}
.qm-ctl .qm-play{background:var(--accent);color:#fff}
.qm-ctl .qm-play:hover:not(:disabled){background:var(--accent);filter:brightness(1.1)}
/* Symbole fremder Programme (StatusNotifierItem) links im Infobereich */
.tray-sni{display:inline-flex;align-items:center;gap:2px}
.tray-sni:empty{display:none}
.tray-sni button{width:30px;height:36px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center}
.tray-sni button:hover{background:var(--card-hover)}
.tray-sni img{width:18px;height:18px;object-fit:contain;display:block}
.tray-sni button.att img{animation:sniAtt 1.2s ease-in-out 3}
@keyframes sniAtt{50%{transform:scale(1.25)}}
body.no-anim .tray-sni button.att img{animation:none}
.qs-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:14px 10px;margin-bottom:14px}
.qs-tile{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0}
.qs-tb{display:flex;height:46px;border-radius:6px;overflow:hidden;background:var(--card);border:1px solid var(--stroke)}
.qs-tb button{display:flex;align-items:center;justify-content:center;color:var(--text)}
.qs-tb button:hover{background:var(--card-hover)}
.qs-main-btn{flex:1}
.qs-tb svg{width:17px;height:17px;stroke-width:1.7}
.qs-more{width:30px;border-left:1px solid var(--stroke) !important}
.qs-more svg{width:12px;height:12px;stroke-width:2.2}
.qs-tile.on .qs-tb{background:var(--accent);border-color:transparent}
.qs-tile.on .qs-tb button{color:var(--accent-text)}
.qs-tile.on .qs-tb button:hover{background:var(--accent-hover)}
.qs-tile.on .qs-more{border-left-color:color-mix(in srgb,var(--accent-text) 25%,transparent) !important}
.qs-lbl{font-size:.7rem;text-align:center;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qs-slider{display:flex;align-items:center;gap:10px;height:40px}
.qs-sic,.qs-more2{width:32px;height:32px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;color:var(--text);flex-shrink:0}
.qs-sic:hover,.qs-more2:hover{background:var(--card-hover)}
.qs-sic svg{width:18px;height:18px;stroke-width:1.7}
.qs-more2 svg{width:12px;height:12px;stroke-width:2.2}
.qs-slider input{flex:1;accent-color:var(--accent);min-width:0}
.qs-val{width:26px;text-align:right;font-size:.72rem;color:var(--text-2);font-variant-numeric:tabular-nums}
.qs-foot{display:flex;align-items:center;gap:8px;padding:8px 12px 8px 18px;border-top:1px solid var(--stroke);
  background:color-mix(in srgb,var(--surf-solid) 55%,transparent);font-size:.74rem;color:var(--text-2);min-height:46px}
.qs-batt{display:inline-flex;align-items:center;gap:6px}
.qs-batt svg{width:15px;height:15px}
.qs-flex{flex:1}
.qs-gear{width:32px;height:32px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;color:var(--text-2)}
.qs-gear:hover{background:var(--card-hover);color:var(--text)}
.qs-gear svg{width:16px;height:16px;stroke-width:1.7}
.qs-sub{padding:10px 10px 12px;max-height:min(520px,calc(100vh - 140px));display:flex;flex-direction:column}
.qs-subhead{display:flex;align-items:center;gap:8px;padding:4px 6px 10px}
.qs-subhead b{flex:1;font-size:.86rem;font-weight:600}
.qs-back{width:30px;height:30px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;color:var(--text)}
.qs-back:hover{background:var(--card-hover)}
.qs-back svg{width:13px;height:13px;stroke-width:2.2}
.qs-list{overflow-y:auto;display:flex;flex-direction:column;gap:2px;min-height:0}
.qs-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:9px 10px;border-radius:6px;font-size:.78rem}
.qs-row:hover{background:var(--card-hover)}
.qs-row.active{background:var(--card)}
.qs-ric{width:18px;height:18px;display:inline-flex;color:var(--text)}
.qs-ric svg{width:18px;height:18px;stroke-width:1.7}
.qs-rtxt{flex:1;min-width:0}
.qs-rtxt b{display:block;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qs-rtxt small{font-size:.68rem;color:var(--text-3)}
.qs-row .btn{font-size:.72rem;padding:4px 10px}
.qs-connect{flex-basis:100%;display:flex;gap:8px;padding:6px 0 2px 30px}
.qs-connect .txt-input{flex:1;min-width:0}
.qs-note{font-size:.76rem;color:var(--text-3);padding:12px 10px}
.qs-link{font-size:.74rem;color:var(--accent);padding:10px 10px 2px;text-align:left}
.qs-link:hover{text-decoration:underline}

/* ===== Wetter: Widget in der Taskleiste und Flyout ===== */
#os-widget{border:0;background:none;font:inherit;gap:9px;padding:0 12px 0 8px;max-width:260px}
#os-widget .tbw-ic{font-size:1.45rem;line-height:1;width:28px;text-align:center}
#os-widget .tbw-text{display:flex;flex-direction:column;line-height:1.25;min-width:0;text-align:left}
#os-widget .tbw-text b{font-weight:400;color:var(--text);font-size:.78rem;white-space:nowrap}
#os-widget .tbw-text small{font-size:.68rem;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#os-widget.open{background:var(--card-hover)}
#os-taskbar.no-widget #os-widget{display:none}
#os-taskbar.align-left{grid-template-columns:auto 1fr auto}
#os-taskbar.align-left .tb-center{justify-content:flex-start;padding-left:4px}
#os-weather{position:fixed;left:12px;bottom:calc(var(--tb-h) + 12px);z-index:9500;width:440px;max-height:calc(100vh - 24px);overflow-y:auto;
  background:var(--surf-1);backdrop-filter:blur(34px) saturate(1.6);border:1px solid var(--stroke-strong);border-radius:10px;
  box-shadow:var(--shadow-fly);animation:calIn .18s ease;color:var(--text);padding:16px 18px 12px;font-size:.78rem}
#os-weather[hidden]{display:none}
#os-weather.loading .wx-refresh svg{animation:setSpin .9s linear infinite}
.wx-empty{padding:30px 10px;text-align:center;color:var(--text-2);display:flex;flex-direction:column;gap:8px;align-items:center}
.wx-empty small{color:var(--text-3);font-size:.68rem;max-width:360px}
.wx-head{display:flex;align-items:center;gap:4px;margin-bottom:12px}
.wx-place{flex:1;min-width:0}
.wx-place b{display:block;font-size:.95rem;font-weight:600}
.wx-place small{font-size:.68rem;color:var(--text-3)}
.wx-btn{width:30px;height:30px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;color:var(--text-2)}
.wx-btn:hover{background:var(--card-hover);color:var(--text)}
.wx-btn svg{width:15px;height:15px;stroke-width:1.8}
.wx-now{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.wx-big{font-size:3rem;line-height:1}
.wx-temp{font-size:2.6rem;font-weight:300;line-height:1;letter-spacing:-.02em}
.wx-temp small{font-size:1rem;vertical-align:top;margin-left:2px;color:var(--text-2)}
.wx-cond{display:flex;flex-direction:column;gap:3px;min-width:0}
.wx-cond b{font-size:.9rem;font-weight:600}
.wx-cond span{font-size:.7rem;color:var(--text-2)}
.wx-facts{display:flex;flex-wrap:wrap;gap:6px 14px;padding:10px 12px;background:var(--card);border:1px solid var(--stroke);border-radius:7px;font-size:.72rem;color:var(--text-2)}
.wx-facts b{font-weight:600;color:var(--text)}
.wx-label{font-size:.74rem;font-weight:600;margin:14px 0 6px}
.wx-hours{display:flex;gap:4px;overflow-x:auto;padding-bottom:4px}
.wx-hour{flex:0 0 52px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 0;border-radius:6px;background:var(--card);font-size:.7rem}
.wx-hour span{color:var(--text-2)}
.wx-hour i{font-style:normal;font-size:1.2rem;line-height:1.2}
.wx-hour small{font-size:.62rem;color:#4ea8ff;min-height:.8em}
.wx-days{display:flex;flex-direction:column;gap:2px}
.wx-day{display:grid;grid-template-columns:96px 26px 52px 34px 1fr 34px;align-items:center;gap:8px;padding:6px 8px;border-radius:6px}
.wx-day:hover{background:var(--card-hover)}
.wx-dn{white-space:nowrap}
.wx-day i{font-style:normal;font-size:1.1rem;text-align:center}
.wx-pop{font-size:.66rem;color:#4ea8ff;white-space:nowrap}
.wx-min{text-align:right;color:var(--text-2)}
.wx-max{font-weight:600}
.wx-bar{position:relative;height:5px;border-radius:3px;background:var(--card-hover)}
.wx-bar i{position:absolute;top:0;bottom:0;border-radius:3px;background:linear-gradient(90deg,#4ea8ff,#f7c65a,#f7630c)}
.wx-foot{margin-top:10px;font-size:.64rem;color:var(--text-3)}

/* ===== Meldungen von Programmen (eigene Fläche unten rechts) ===== */
html[data-surface="notify"],html[data-surface="notify"] body{background:transparent;overflow:hidden}
#nt-stack{position:absolute;right:0;bottom:0;width:364px;display:flex;flex-direction:column;gap:10px}
.nt-toast{background:var(--surf-solid);border:1px solid var(--stroke-strong);border-radius:9px;box-shadow:0 4px 14px rgba(0,0,0,.3);
  padding:10px 10px 12px 14px;font-size:.76rem;color:var(--text);animation:ntIn .25s cubic-bezier(.2,.9,.3,1)}
.nt-toast.out{animation:ntOut .2s ease forwards}
.nt-toast .nt-ghead{padding:0 0 8px}
.nt-toast .nt-card{background:none;border:0;padding:0}
.nt-toast .nt-card:hover{background:none}
.nt-toast .nt-card .nt-time,.nt-toast .nt-card .nt-x{display:none}
@keyframes ntIn{from{transform:translateX(40px);opacity:0}to{transform:none;opacity:1}}
@keyframes ntOut{to{transform:translateX(40px);opacity:0}}
body.no-anim .nt-toast,body.no-anim .nt-toast.out{animation:none}

/* Uhr mit Nicht-stören-Symbol; geöffnete Flyouts markieren ihren Knopf */
#os-clock{flex-direction:row;align-items:center;gap:8px}
#os-clock .tb-time{display:flex;flex-direction:column;align-items:flex-end}
#os-clock .tb-dnd{display:inline-flex;color:var(--text-2)}
#os-clock .tb-dnd svg{width:14px;height:14px;stroke-width:1.8}
.tb-right > button.open{background:var(--card-hover)}

/* Software-Rendering (VM ohne GPU): Daueranimationen zeichneten mit 60 Bildern/s jedes Mal den ganzen Bildschirm
   neu (rund zwei CPU-Kerne). Sterne und Sonne treibt dann desktop.js mit wenigen Bildern/s an (body.sky-js),
   die Krabbenscheren schnappen nur beim Hover/Öffnen. Fenster-, Menü- und Hover-Animationen bleiben. */
body.sky-js #os-stars span{animation:none}
body.sky-js #os-sun{animation:none}
body.sw-render .start-crab .crab-claw{animation:none}
body.sw-render:not(.no-anim) #os-start:hover .crab-claw,body.sw-render:not(.no-anim) #os-start.open .crab-claw{animation:crabSnap 1.2s ease-in-out infinite}
body.sw-render:not(.no-anim) #os-start:hover .crab-claw-r,body.sw-render:not(.no-anim) #os-start.open .crab-claw-r{animation-name:crabSnapR}
/* In der Einstellungen-Vorschau schnappt die Krabbe wie die anderen Motive nur beim Überfahren */
.sb-tile .crab-claw{animation:none}
body:not(.no-anim) .sb-tile:hover .crab-claw{animation:crabSnap 1.2s ease-in-out infinite}
body:not(.no-anim) .sb-tile:hover .crab-claw-r{animation-name:crabSnapR}

/* ===== Startknopf-Motive (startbuttons.js): Bewegung nur beim Überfahren bzw. bei offenem Startmenü ===== */
.sb-ic .sb-a{transform-box:fill-box;transform-origin:center}
/* Dauer/Takt allgemein, die Art (animation-name) setzt je Motiv eine Regel gleicher Spezifität weiter unten */
:is(#os-start:is(:hover,.open),.sb-tile:hover) .sb-a{animation-duration:1.6s;animation-timing-function:ease-in-out;animation-iteration-count:infinite}
:is(#os-start:is(:hover,.open),.sb-tile:hover) .sb-d2{animation-delay:.55s}
.sb-ic .sb-wave{transform-origin:50% 0}
:is(#os-start:is(:hover,.open),.sb-tile:hover) .sb-wave{animation-name:sbWave}
@keyframes sbWave{0%,100%{transform:skewX(0)}25%{transform:skewX(8deg)}75%{transform:skewX(-8deg)}}
.sb-ic .sb-flame{transform-origin:50% 0}
body:not(.no-anim) :is(#os-start:is(:hover,.open),.sb-tile:hover) .sb-flame{animation:sbFlame .32s ease-in-out infinite}
@keyframes sbFlame{0%,100%{transform:scaleY(1);opacity:1}50%{transform:scaleY(1.5);opacity:.65}}
.sb-ic .sb-spin,.sb-ic .sb-rays{transform-box:view-box;transform-origin:12px 12px}
body:not(.no-anim) :is(#os-start:is(:hover,.open),.sb-tile:hover) .sb-spin{animation:sbSpin 2.4s linear infinite}
body:not(.no-anim) :is(#os-start:is(:hover,.open),.sb-tile:hover) .sb-rays{animation:sbSpin 7s linear infinite}
@keyframes sbSpin{to{transform:rotate(360deg)}}
:is(#os-start:is(:hover,.open),.sb-tile:hover) .sb-twinkle{animation-name:sbTwinkle}
@keyframes sbTwinkle{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.25;transform:scale(.45)}}
:is(#os-start:is(:hover,.open),.sb-tile:hover) .sb-aurora{animation-name:sbAurora;animation-duration:2.2s}
@keyframes sbAurora{0%,100%{transform:translateX(0);opacity:1}50%{transform:translateX(1.4px) translateY(-.6px);opacity:.5}}
:is(#os-start:is(:hover,.open),.sb-tile:hover) .sb-blink{animation-name:sbBlink;animation-duration:2.2s}
@keyframes sbBlink{0%,40%,52%,100%{transform:scaleY(1)}46%{transform:scaleY(.1)}}
.sb-ic .sb-tilt,.sb-ic .sb-waddle{transform-origin:50% 100%}
:is(#os-start:is(:hover,.open),.sb-tile:hover) .sb-tilt{animation-name:sbTilt}
@keyframes sbTilt{0%,100%{transform:rotate(0)}30%{transform:rotate(-9deg)}60%{transform:rotate(6deg)}}
:is(#os-start:is(:hover,.open),.sb-tile:hover) .sb-waddle{animation-name:sbWaddle;animation-duration:.9s}
@keyframes sbWaddle{0%,100%{transform:rotate(-7deg)}50%{transform:rotate(7deg)}}
body:not(.no-anim) :is(#os-start:is(:hover,.open),.sb-tile:hover) .sb-cursor{animation:sbCursor 1s steps(1) infinite}
@keyframes sbCursor{50%{opacity:0}}
:is(#os-start:is(:hover,.open),.sb-tile:hover) .sb-steam{animation-name:sbSteam;animation-timing-function:ease-out}
@keyframes sbSteam{0%{transform:translateY(1.6px);opacity:0}35%{opacity:1}100%{transform:translateY(-2.2px);opacity:0}}
:is(#os-start:is(:hover,.open),.sb-tile:hover) .sb-bob{animation-name:sbBob;animation-duration:1.4s}
@keyframes sbBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.2px)}}
:is(#os-start:is(:hover,.open),.sb-tile:hover) .sb-beam{animation-name:sbBeam;animation-duration:.9s}
@keyframes sbBeam{0%,100%{opacity:.2}50%{opacity:1}}
:is(#os-start:is(:hover,.open),.sb-tile:hover) .sb-flash{animation-name:sbFlash;animation-duration:1.5s}
@keyframes sbFlash{0%,22%,44%,100%{opacity:1}11%,33%{opacity:.15}}
:is(#os-start:is(:hover,.open),.sb-tile:hover) .sb-float{animation-name:sbBob;animation-duration:1.8s}
:is(#os-start:is(:hover,.open),.sb-tile:hover) .sb-draw{animation-name:sbDraw;animation-duration:2s}
@keyframes sbDraw{0%{stroke-dasharray:0 1}55%,100%{stroke-dasharray:1 0}}
body.no-anim .sb-ic .sb-a{animation:none!important}
/* eigenes Bild: als Bild oder als Silhouette in der Akzentfarbe */
#os-start .start-img,.sb-tile .start-img{object-fit:contain;border-radius:3px}
.start-mask{display:block;width:26px;height:26px;background:var(--accent);
  -webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}
#os-start .start-img,#os-start .start-mask{transition:transform .12s}
#os-start:hover .start-img,#os-start:hover .start-mask{transform:scale(1.08)}
body.no-anim #os-start .start-img,body.no-anim #os-start .start-mask{transition:none}

/* ===== Bildschirmfoto-Auswahl (shell/snip.html) wie das Windows-Snipping-Tool ===== */
body.sn-body{margin:0;overflow:hidden;background:transparent;cursor:crosshair;user-select:none;-webkit-user-select:none}
body.sn-body:not(.sn-on) #sn-root{display:none}
#sn-root{position:fixed;inset:0}
#sn-img{position:absolute;inset:0;width:100vw;height:100vh;display:block;pointer-events:none}
#sn-dim{position:absolute;inset:0;background:rgba(0,0,0,.42);pointer-events:none}
#sn-sel:not([hidden]) ~ #sn-dim{display:none}          /* die Auswahl dunkelt selbst ab (Schatten) */
#sn-sel{position:absolute;box-shadow:0 0 0 100vmax rgba(0,0,0,.42);outline:1.5px solid #fff;outline-offset:0;pointer-events:none}
#sn-sel[hidden]{display:none}
#sn-size{position:absolute;left:0;top:-26px;padding:2px 8px;border-radius:4px;background:rgba(20,22,24,.86);color:#fff;font-size:.72rem;white-space:nowrap}
#sn-size.in{top:6px;left:6px}
body.sn-drag #sn-bar{pointer-events:none;opacity:.35}
#sn-bar{position:absolute;top:14px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:2px;padding:5px;
  background:var(--surf-solid);border:1px solid var(--stroke-strong);border-radius:9px;box-shadow:var(--shadow-fly);cursor:default;
  animation:calIn .16s ease}
#sn-bar button{width:40px;height:34px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;color:var(--text-2)}
#sn-bar button svg{width:18px;height:18px;stroke-width:1.7}
#sn-bar button:hover{background:var(--card-hover);color:var(--text)}
#sn-bar button.active{background:var(--accent-soft);color:var(--accent)}
#sn-bar [data-act="close"]:hover{background:#c42b1c;color:#fff}
.sn-sep{width:1px;height:22px;background:var(--stroke-strong);margin:0 4px}
#sn-hint{position:absolute;top:66px;left:50%;transform:translateX(-50%);padding:4px 12px;border-radius:6px;background:rgba(20,22,24,.8);
  color:#fff;font-size:.74rem;pointer-events:none;white-space:nowrap}
body.no-anim #sn-bar{animation:none}

/* ===== Anmeldebildschirm (greeter/) – baut auf dem Sperrbildschirm auf ===== */
.greeter-body #os-boot{z-index:100}
.gr-users{position:fixed;left:24px;bottom:24px;z-index:12;display:flex;flex-direction:column;gap:4px;max-height:50vh;overflow-y:auto}
.gr-users[hidden]{display:none}
.gr-user{display:flex;align-items:center;gap:12px;padding:8px 14px 8px 8px;border-radius:8px;color:#fff;font-size:.85rem;text-align:left;
  background:rgba(255,255,255,.06);border:1px solid transparent;min-width:220px}
.gr-user:hover{background:rgba(255,255,255,.12)}
.gr-user.sel{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.22)}
.gr-uava{width:38px;height:38px;border-radius:50%;overflow:hidden;background:rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.gr-uava img{width:100%;height:100%;object-fit:cover}
.gr-uava svg{width:20px;height:20px}
.gr-login{width:100%;margin-bottom:8px}
.gr-session{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:12px;font-size:.74rem;color:rgba(255,255,255,.75)}
.gr-session[hidden]{display:none}
.gr-session select{background:rgba(0,0,0,.35);color:#fff;border:1px solid rgba(255,255,255,.25);border-radius:5px;padding:3px 8px;font:inherit}
.gr-host{font-size:.74rem;color:rgba(255,255,255,.6);margin-right:6px}
.gr-welcome{display:flex;flex-direction:column;align-items:center;gap:22px;color:#fff;font-size:1.5rem;font-weight:300}
.gr-welcome .boot-ring span{background:#fff}

/* ===== Willkommen bei GregOS (welcome/) ===== */
.wc-app{display:flex;height:100%;min-height:0;color:var(--text)}
.wc-stage{width:250px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;position:relative;
  background:radial-gradient(circle at 50% 38%,color-mix(in srgb,var(--accent) 28%,transparent),transparent 62%),linear-gradient(#05070a,#0b1a14 60%,#123326);color:#fff}
.wc-stage b{font-size:1.25rem;font-weight:600;letter-spacing:.02em;margin-top:14px}
.wc-stage > span{font-size:.8rem;opacity:.7}
.wc-logo{width:120px;height:120px;display:flex;align-items:center;justify-content:center}
.wc-logo .start-crab,.wc-logo .start-mask{width:110px!important;height:110px!important;color:var(--accent)}
.wc-dots{position:absolute;bottom:22px;display:flex;gap:7px}
.wc-dots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.25)}
.wc-dots i.past{background:rgba(255,255,255,.55)}
.wc-dots i.on{background:var(--accent);width:20px;border-radius:4px}
.wc-main{flex:1;min-width:0;display:flex;flex-direction:column}
.wc-step{flex:1;overflow-y:auto;padding:30px 34px 10px}
.wc-h{font-size:1.45rem;font-weight:600;margin:0 0 8px}
.wc-p{font-size:.84rem;color:var(--text-2);line-height:1.55;margin:0 0 18px;max-width:560px}
.wc-sub{font-size:.8rem;font-weight:600;margin:18px 0 8px}
.wc-choices{display:flex;flex-wrap:wrap;gap:10px}
.wc-choice{width:150px;border-radius:8px;border:1px solid var(--stroke);background:var(--card);padding:8px;display:flex;flex-direction:column;gap:7px;text-align:left}
.wc-choice:hover{background:var(--card-hover)}
.wc-choice.sel{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.wc-prev{height:72px;border-radius:5px;display:flex;align-items:center;justify-content:center;color:#00ff41;font-family:var(--mono);font-size:.7rem;letter-spacing:.2em}
.wc-lbl{font-size:.78rem;font-weight:600}
.wc-lang .wc-prev{font-size:2.4rem;letter-spacing:0;background:var(--card-hover)}
.wc-mode .wc-prev{background:#1b1b1f;border:1px solid var(--stroke)}
.wc-mode.wc-light .wc-prev{background:#f3f3f3}
.wc-mode .wc-prev::after{content:'';width:62%;height:14px;border-radius:3px;background:rgba(127,127,127,.35);box-shadow:0 22px 0 -4px var(--accent)}
.wc-walls .wc-choice{width:120px}
.wc-walls .wc-prev{height:60px}
.wc-row{display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:8px;background:var(--card);border:1px solid var(--stroke);margin:10px 0;max-width:600px}
.wc-row > div{flex:1;display:flex;flex-direction:column;gap:2px}
.wc-row b{font-size:.82rem;font-weight:600}
.wc-row small{font-size:.72rem;color:var(--text-2)}
.wc-apps{display:flex;flex-direction:column;gap:10px;max-width:620px}
.wc-app-row{display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:8px;background:var(--card);border:1px solid var(--stroke)}
.wc-app-row > div{display:flex;flex-direction:column;gap:2px;min-width:0}
.wc-app-row b{font-size:.84rem}
.wc-app-row small{font-size:.72rem;color:var(--text-2)}
.wc-aic{width:36px;height:36px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.wc-aic > *{width:32px;height:32px}
.wc-ok{font-size:.76rem;color:var(--text-2);white-space:nowrap}
.wc-flex{flex:1}
.wc-keys{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px 18px;max-width:640px}
.wc-keys > div{display:flex;align-items:center;gap:10px;font-size:.8rem}
.wc-keys kbd{min-width:120px;font-family:var(--font);font-size:.72rem;padding:4px 8px;border-radius:5px;background:var(--card);border:1px solid var(--stroke-strong);border-bottom-width:2px;text-align:center}
.wc-nav{display:flex;align-items:center;gap:8px;padding:14px 34px 18px;border-top:1px solid var(--stroke)}
.wc-nav [hidden]{display:none}
@media (max-width:640px){.wc-stage{display:none}}

/* ===== Ausschalteffekt (shell/power.html) ===== */
body.pw-body{margin:0;overflow:hidden;background:transparent;cursor:none}
body.pw-body:not(.pw-on) #pw-shot{display:none}
#pw-shot{position:fixed;inset:0;width:100vw;height:100vh;display:block;transform-origin:center}
body.pw-go #pw-shot{animation:screenCollapse .3s ease forwards}

/* ===== Alt+Tab (shell/alttab.html) wie Windows 11 ===== */
body.at-body{margin:0;height:100vh;display:flex;align-items:center;justify-content:center;background:transparent;overflow:hidden}
#at-panel{display:grid;grid-template-columns:repeat(var(--at-cols,4),168px);gap:8px;padding:14px;max-width:calc(100vw - 48px);
  max-height:calc(100vh - 120px);overflow:auto;background:var(--surf-solid);border:1px solid var(--stroke-strong);border-radius:12px;
  box-shadow:var(--shadow-fly);color:var(--text);animation:atIn .14s ease}
#at-panel[hidden]{display:none}
@keyframes atIn{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
body.no-anim #at-panel{animation:none}
.at-item{height:132px;border-radius:8px;border:2px solid transparent;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:6px;padding:10px 10px 8px;cursor:default;text-align:center;min-width:0}
.at-item:hover{background:var(--card-hover)}
.at-item.sel{border-color:var(--accent);background:var(--card)}
.at-item .at-ic{width:56px;height:56px;display:flex;align-items:center;justify-content:center}
.at-item .at-ic > *{width:48px;height:48px;font-size:1.3rem}
.at-item .at-ic svg{width:40px;height:40px}
.at-item .at-ic img{width:48px;height:48px;object-fit:contain}
.at-item b{font-size:.76rem;font-weight:600;line-height:1.3;max-width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word}
.at-item small{font-size:.66rem;color:var(--text-3);max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.at-item.min .at-ic{opacity:.6}

/* Einstellungen › Start: Auswahl des Startknopfs */
.sb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;margin:6px 0 14px}
.sb-tile{position:relative;height:88px;border-radius:8px;background:var(--card);border:1px solid var(--stroke);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--text-2);font-size:.7rem;padding:6px}
.sb-tile:hover{background:var(--card-hover);color:var(--text)}
.sb-tile.sel{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);color:var(--text)}
.sb-tile .start-crab{width:30px;height:30px;color:var(--accent);overflow:visible}
.sb-tile .start-mask{width:30px;height:30px}
.sb-tile .sb-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb-tile .sb-del{position:absolute;top:3px;right:3px;width:22px;height:22px;border-radius:5px;display:none;align-items:center;justify-content:center;color:var(--text-2)}
.sb-tile .sb-del svg{width:12px;height:12px;stroke-width:2}
.sb-tile:hover .sb-del,.sb-tile:focus-within .sb-del{display:inline-flex}
.sb-tile .sb-del:hover{background:#c42b1c;color:#fff}
.sb-tile.sb-add{border-style:dashed;color:var(--text-2)}
.sb-tile.sb-add svg{width:22px;height:22px;stroke-width:1.6}
.sb-tile.sb-add.drag{border-color:var(--accent);background:var(--accent-soft)}
.sb-tile.sb-busy{opacity:.6;pointer-events:none}

/* Einstellungen › Hintergrund: Vorschau „Himmel“ (links Nacht, rechts Tag) */
.ap-tile.ap-sky{display:flex;background:none}
.ap-sky-half{position:relative;flex:1;height:100%;overflow:hidden}
.ap-night{background:linear-gradient(#05070a,#0b1210 55%,#101d14)}
.ap-day{background:linear-gradient(#a8d8f0,#cfe8f4 55%,#eef4ea)}
.ap-moon{position:absolute;top:14%;right:16%;width:18px;height:18px;border-radius:50%;background:radial-gradient(circle at 38% 38%,#fffff0,#ddd0a0 45%,#a89050);box-shadow:0 0 10px rgba(220,200,120,.55)}
.ap-sun{position:absolute;top:16%;left:22%;width:16px;height:16px;border-radius:50%;background:radial-gradient(circle,#fff,#fffce2 55%,rgba(255,232,90,.5));box-shadow:0 0 8px 3px rgba(255,252,200,.8),0 0 22px 8px rgba(255,238,100,.35)}
.ap-night b{position:absolute;width:1px;height:1px;background:#fffbe8;border-radius:50%}
.ap-night b:nth-of-type(1){left:12%;top:20%}.ap-night b:nth-of-type(2){left:30%;top:46%}.ap-night b:nth-of-type(3){left:52%;top:18%}.ap-night b:nth-of-type(4){left:22%;top:62%}.ap-night b:nth-of-type(5){left:64%;top:52%}

/* Rechner: Modus, Vorschau, Speicherleiste, wissenschaftliche Tasten (5 Spalten) */
.calc-top{display:flex;align-items:center}
.calc-mode{display:inline-flex;background:var(--card);border:1px solid var(--stroke);border-radius:6px;padding:2px;gap:2px}
.calc-mode button{font-size:.72rem;padding:4px 10px;border-radius:4px;color:var(--text-2)}
.calc-mode button:hover{color:var(--text)}
.calc-mode button.active{background:var(--accent);color:var(--accent-text)}
.calc-display{position:relative}
.calc-preview{position:absolute;right:12px;top:4px;font-size:.72rem;color:var(--text-3);pointer-events:none;font-variant-numeric:tabular-nums}
.calc-mem{display:flex;gap:2px;flex-shrink:0}
.calc-mem button{flex:1;font-size:.72rem;padding:4px 0;border-radius:4px;color:var(--text-2)}
.calc-mem button:hover{background:var(--card-hover);color:var(--text)}
.calc-mem button:disabled{opacity:.35;pointer-events:none}
.calc-keys.sci{grid-template-columns:repeat(5,1fr);gap:6px}
.calc-keys.sci .calc-key{font-size:.92rem}
html.gregos-app .calc-app{border-radius:0 0 8px 8px}

/* ===== Uhr (Timer, Wecker, Stoppuhr, Weltuhr) – Navigation wie die Einstellungen der Website ===== */
.clk-main{position:relative;padding-bottom:80px}
.clk-nav button.busy::after{content:'';width:6px;height:6px;border-radius:50%;background:var(--accent);margin-left:auto}
.clk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.clk-card{position:relative;background:var(--card);border:1px solid var(--stroke);border-radius:8px;padding:14px 16px;font-size:.8rem}
.clk-card.ringing{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.clk-chead{display:flex;align-items:center;gap:4px}
.clk-chead b{flex:1;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.clk-ib{width:30px;height:30px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;color:var(--text-2);flex-shrink:0}
.clk-ib:hover{background:var(--card-hover);color:var(--text)}
.clk-ib svg{width:14px;height:14px;stroke-width:2}
.clk-ib.big{width:44px;height:44px;border-radius:50%;background:var(--card-hover);color:var(--text)}
.clk-ib.big svg{width:17px;height:17px}
.clk-ib.primary{background:var(--accent);color:var(--accent-text)}
.clk-ib.primary:hover{background:var(--accent-hover)}
.clk-ib.big.primary svg{fill:currentColor;stroke-width:1}
.clk-ib.dis{opacity:.4;pointer-events:none}
.clk-ring{position:relative;width:170px;height:170px;margin:6px auto 4px}
.clk-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.clk-ring circle{fill:none;stroke-width:7;stroke-linecap:round}
.clk-ring .bg{stroke:var(--card-hover)}
.clk-ring .fg{stroke:var(--accent);transition:stroke-dashoffset .25s linear}
.clk-left{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:300;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.clk-total{position:absolute;left:0;right:0;bottom:44px;text-align:center;color:var(--text-3);font-size:.7rem}
.clk-timer.running .clk-left{color:var(--text)}
.clk-btns{display:flex;justify-content:center;gap:14px;margin-top:6px}
.clk-add{position:fixed;right:26px;bottom:22px;display:inline-flex;align-items:center;gap:8px;box-shadow:var(--shadow-fly)}
.clk-add svg{width:14px;height:14px;stroke-width:2.2}
.clk-empty{grid-column:1/-1;color:var(--text-3);font-size:.8rem;padding:30px 0}
.clk-alarm{display:flex;align-items:center;gap:14px;cursor:default}
.clk-alarm:hover{background:var(--card-hover)}
.clk-atime{font-size:2.1rem;font-weight:300;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.clk-ainfo{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.clk-ainfo b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.clk-ainfo small{font-size:.7rem;color:var(--text-2)}
.clk-ainfo .clk-anext{color:var(--text-3)}
.clk-alarm.off .clk-atime,.clk-alarm.off b{opacity:.5}
.clk-form{display:flex;flex-direction:column;gap:14px;min-width:320px}
.clk-hms{display:flex;gap:10px}
.clk-hms label{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:.7rem;color:var(--text-2)}
.clk-hms input{width:100%;text-align:center;font-size:1.4rem;font-variant-numeric:tabular-nums}
.clk-lbl{display:flex;flex-direction:column;gap:5px;font-size:.74rem;color:var(--text-2)}
.clk-timein{font-size:2rem;text-align:center;font-variant-numeric:tabular-nums;color-scheme:dark}
:root[data-theme="light"] .clk-timein{color-scheme:light}
.clk-days{display:flex;gap:6px;flex-wrap:wrap}
.clk-day{width:38px;height:38px;border-radius:50%;background:var(--card);border:1px solid var(--stroke-strong);font-size:.72rem;color:var(--text)}
.clk-day:hover{background:var(--card-hover)}
.clk-day.on{background:var(--accent);border-color:transparent;color:var(--accent-text)}
.clk-sw{display:flex;flex-direction:column;align-items:center;gap:18px;padding-top:20px}
.clk-swtime{font-size:4rem;font-weight:200;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.clk-laps{width:100%;max-width:520px;font-size:.8rem;font-variant-numeric:tabular-nums}
.clk-laphead,.clk-lap{display:grid;grid-template-columns:60px 1fr 1fr;padding:7px 12px;border-radius:5px}
.clk-laphead{color:var(--text-3);font-size:.7rem}
.clk-lap:nth-child(even){background:var(--card)}
.clk-lap.best{color:var(--accent)}
.clk-lap.worst{color:var(--danger)}
.clk-local{margin-bottom:18px}
.clk-ltime{font-size:3.4rem;font-weight:200;font-variant-numeric:tabular-nums;letter-spacing:-.02em;line-height:1.1}
.clk-ldate{font-size:.8rem;color:var(--text-2)}
.clk-zone{display:flex;align-items:center;gap:10px}
.clk-zinfo{flex:1;min-width:0;display:flex;flex-direction:column}
.clk-zinfo b{font-weight:600}
.clk-zinfo small{font-size:.7rem;color:var(--text-3)}
.clk-ztime{font-size:1.6rem;font-weight:300;font-variant-numeric:tabular-nums}
.clk-zsearch{width:100%}
.clk-zlist{width:100%;background:var(--card);color:var(--text);border:1px solid var(--stroke-strong);border-radius:5px;font-size:.78rem;padding:4px}
@media (max-width:760px){.clk-add span{display:none}.clk-swtime{font-size:3rem}}

/* Schmale App-Fenster (z. B. Rechner) sind kein Handy: die Mobil-Regeln der Website (max-width:760px)
   dürfen Rahmen, Ecken, Größenänderung und Fensterknöpfe nicht abschalten. */
@media (max-width:760px){
  html.gregos-app .os-window.app-window:not(.maximized){border:1px solid var(--stroke-strong);border-radius:var(--radius)}
  html.gregos-app .win-rz{display:block}
  html.gregos-app .win-btn.wb-max,html.gregos-app .win-btn.wb-min{display:inline-flex}
}

/* Sperrbildschirm (gregos-lock): Website-Login über dem Desktop-Hintergrund */
html[data-surface="lock"],html[data-surface="lock"] body{background:#05070a}
.lock-body #os-login{background:transparent;transition:background .3s,backdrop-filter .3s}
.lock-body #os-login.cred{background:rgba(0,0,0,.35);backdrop-filter:blur(18px)}
body.sw-render.lock-body #os-login.cred{backdrop-filter:none;background:rgba(0,0,0,.55)}
.lock-body .lg-ava img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.lock-body.lock-out #os-login{opacity:0;transition:opacity .22s}
.lock-tray{position:fixed;right:22px;bottom:18px;z-index:100001;display:flex;align-items:center;gap:6px;color:#fff}
.lock-tray > span,.lock-tray button{display:inline-flex;align-items:center;gap:5px;height:36px;min-width:36px;justify-content:center;border-radius:6px;color:#fff;font-size:.78rem;padding:0 6px}
.lock-tray button:hover{background:rgba(255,255,255,.14)}
.lock-tray svg{width:18px;height:18px;stroke-width:1.7}
.lock-tray small{font-size:.72rem}
.lock-tray > span:empty{display:none}

/* OSD der Medientasten (Toast-Fläche): Pille unten mittig wie Windows 11 */
.osd-pill{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);display:flex;align-items:center;gap:12px;
  height:46px;padding:0 18px;border-radius:23px;background:var(--surf-solid);border:1px solid var(--stroke-strong);
  box-shadow:0 6px 20px rgba(0,0,0,.35);color:var(--text);font-size:.8rem;animation:toastIn .18s ease}
.osd-pill.out{opacity:0;transition:opacity .35s}
.osd-ic{display:inline-flex}
.osd-ic svg{width:18px;height:18px;stroke-width:1.8}
.osd-bar{width:150px;height:4px;border-radius:2px;background:var(--card-hover);overflow:hidden}
.osd-bar i{display:block;height:100%;background:var(--accent);transition:width .12s}
.osd-val{min-width:26px;text-align:right;font-variant-numeric:tabular-nums}
body.no-anim .osd-pill{animation:none}

/* ===== Win+V / Win+. – Emoji, Kaomoji, Symbole, Zwischenablage (Windows 11) ===== */
#os-clip{position:fixed;left:50%;bottom:calc(var(--tb-h) + 12px);transform:translateX(-50%);z-index:9500;width:380px;height:min(470px,calc(100vh - 24px));
  display:flex;flex-direction:column;background:var(--surf-1);backdrop-filter:blur(34px) saturate(1.6);border:1px solid var(--stroke-strong);
  border-radius:10px;box-shadow:var(--shadow-fly);color:var(--text);font-size:.78rem;animation:calIn .18s ease;overflow:hidden}
#os-clip[hidden]{display:none}
.cp-tabs{display:flex;gap:4px;padding:8px 10px 4px}
.cp-tab{flex:1;height:34px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-size:1rem;color:var(--text-2);position:relative}
.cp-tab svg{width:16px;height:16px;stroke-width:1.8}
.cp-tab:hover{background:var(--card-hover);color:var(--text)}
.cp-tab.active{background:var(--card-hover);color:var(--text)}
.cp-tab.active::after{content:'';position:absolute;bottom:2px;left:40%;right:40%;height:3px;border-radius:2px;background:var(--accent)}
.cp-head{padding:4px 12px 6px;display:flex;flex-direction:column;gap:6px}
.cp-head:empty{display:none}
.cp-search{display:flex;align-items:center;gap:8px;height:32px;padding:0 10px;border-radius:6px;background:var(--card);border:1px solid var(--stroke);border-bottom:2px solid var(--accent)}
.cp-search svg{width:14px;height:14px;color:var(--text-3)}
.cp-search input{flex:1;background:none;border:0;outline:0;color:var(--text);font:inherit}
.cp-tones{display:flex;gap:2px}
.cp-tone{width:28px;height:26px;border-radius:5px;font-size:.95rem}
.cp-tone:hover{background:var(--card-hover)}
.cp-tone.active{background:var(--accent-soft)}
.cp-cliphead{display:flex;align-items:center}
.cp-cliphead b{flex:1;font-size:.84rem;font-weight:600}
.cp-clear{font-size:.72rem;padding:4px 10px;border-radius:5px;background:var(--card);border:1px solid var(--stroke)}
.cp-clear:hover{background:var(--card-hover)}
.cp-clear[hidden]{display:none}
.cp-body{flex:1;overflow-y:auto;padding:2px 10px 12px;outline:none}
.cp-group{font-size:.72rem;font-weight:600;color:var(--text-2);margin:10px 4px 6px}
.cp-grid{display:grid;gap:2px}
.cp-emoji{grid-template-columns:repeat(8,1fr)}
.cp-sym{grid-template-columns:repeat(8,1fr)}
.cp-kao{grid-template-columns:repeat(2,1fr)}
.cp-cell{height:40px;border-radius:6px;font-size:1.35rem;line-height:1;display:flex;align-items:center;justify-content:center;overflow:hidden}
.cp-sym .cp-cell{font-size:1.05rem}
.cp-kao .cp-cell{font-size:.8rem;height:36px;white-space:nowrap;padding:0 6px}
.cp-cell:hover,.cp-cell.sel{background:var(--card-hover)}
.cp-cell.sel{outline:2px solid var(--accent);outline-offset:-2px}
.cp-empty{padding:40px 16px;text-align:center;color:var(--text-2);display:flex;flex-direction:column;gap:8px;align-items:center}
.cp-empty b{color:var(--text);font-size:.86rem}
.cp-item{position:relative;background:var(--card);border:1px solid var(--stroke);border-radius:7px;padding:10px 70px 10px 12px;margin-bottom:6px;cursor:default;outline:none}
.cp-item:hover,.cp-item.sel{background:var(--card-hover)}
.cp-item.sel{border-color:var(--accent)}
.cp-text{white-space:pre-wrap;word-break:break-word;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;line-height:1.45}
.cp-img{max-width:100%;max-height:130px;border-radius:4px;display:block}
.cp-files{display:flex;align-items:center;gap:8px}
.cp-files svg{width:18px;height:18px;color:#f7c65a;flex-shrink:0}
.cp-acts{position:absolute;top:6px;right:6px;display:flex;gap:2px}
.cp-acts button{width:28px;height:28px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;color:var(--text-3)}
.cp-acts button:hover{background:var(--card-hover);color:var(--text)}
.cp-acts svg{width:14px;height:14px;stroke-width:1.8}
.cp-pin.on{color:var(--accent)}
.cp-item:not(:hover):not(.sel) .cp-pin:not(.on),.cp-item:not(:hover):not(.sel) .cp-more{opacity:0}
