/* Der simulierte Mac. Alle Maße gelten für eine feste Fläche (sim.js setzt Breite, Höhe und Maßstab);
   dadurch sieht die Simulation in jeder Fensterbreite gleich aus. Farben und Maße der Nudgebar-Teile
   folgen der echten App (dunkles Erscheinungsbild). */
.screen { position: relative; box-sizing: content-box; border: 11px solid #08080a; border-radius: 26px; background: #000; overflow: hidden;
  box-shadow: 0 0 0 1.5px #3a3a40, 0 0 0 3px #0c0c0e, 0 40px 90px -24px rgba(12,14,30,.55), 0 12px 30px -10px rgba(12,14,30,.35); }
#desk { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; border-radius: 13px; user-select: none; -webkit-user-select: none; touch-action: pan-y;
  font: 13px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; color: var(--t1);
  --t1: #f2f2f5; --t2: rgba(235,235,245,.62); --t3: rgba(235,235,245,.34); --sep: rgba(255,255,255,.1); --fill: rgba(255,255,255,.09); --fill2: rgba(255,255,255,.15);
  --win: #1f1f22; --side: #29292d; --card: #2a2a2e; --blue: #0a84ff; --green: #30d158; --orange: #ff9f0a; --yellow: #ffd60a; --red: #ff453a;
  --glass: rgba(40,40,46,.8); --glass-edge: 0 0 0 .5px rgba(255,255,255,.2), inset 0 .5px 0 rgba(255,255,255,.22); }
#desk * { box-sizing: border-box; }
#desk button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: default; }
#desk .ic { display: block; flex: none; }
.grow { flex: 1; min-width: 0; }
.cut1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Schreibtischbild */
.wall { position: absolute; inset: 0; background: #070a1c; overflow: hidden; }
.wall::before { content: ""; position: absolute; inset: -25%; filter: blur(46px) saturate(125%); background:
  radial-gradient(34% 44% at 18% 84%, #ff4f86 0, transparent 70%),
  radial-gradient(40% 50% at 78% 92%, #ff9440 0, transparent 70%),
  radial-gradient(46% 52% at 52% 46%, #6447ff 0, transparent 72%),
  radial-gradient(36% 44% at 92% 18%, #17b5c9 0, transparent 70%),
  radial-gradient(34% 42% at 6% 12%, #2438d8 0, transparent 70%); }
.wall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,6,20,.5) 0, rgba(4,6,20,0) 22%, rgba(4,6,20,0) 70%, rgba(4,6,20,.28) 100%); }

/* Menüleiste */
.mb { position: absolute; left: 0; right: 0; top: 0; height: 34px; display: flex; justify-content: space-between; align-items: center; padding: 0 14px; color: #fff; z-index: 50; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.mb-l, .mb-r { display: flex; align-items: center; }
.mb-l > * { padding: 0 9px; font-weight: 500; }
.mb-l b { font-weight: 700; }
.mb-l .logo { font-size: 11px; }
.mb-r { gap: 1px; }
.mb-i { height: 24px; min-width: 28px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; position: relative; }
#desk button.mb-i { cursor: pointer; }
#desk button.mb-i:hover, .mb-i.on { background: rgba(255,255,255,.2); }
.mb-x { display: inline-flex; overflow: hidden; max-width: 130px; transition: max-width .38s cubic-bezier(.3,.9,.3,1), opacity .25s ease; }
.mb-x i { width: 30px; height: 24px; display: grid; place-items: center; flex: none; }
#desk.mbc:not(.mbr) .mb-x { max-width: 0; opacity: 0; }
.chev .ic { transition: transform .3s cubic-bezier(.3,.9,.3,1); }
#desk.mbc:not(.mbr) .chev .ic { transform: rotate(180deg); }
.mb-clock { padding-left: 8px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: pre; }
.nb::after { content: ""; position: absolute; right: 3px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .25s cubic-bezier(.3,1.5,.5,1); }
#desk.is-awake .nb::after { opacity: 1; transform: none; }

/* Notch: oben bündig mit nach außen gezogenen Ecken, unten weich gerundet */
.notch { position: absolute; left: 50%; top: 0; width: var(--w); height: 32px; margin-left: calc(var(--w) / -2); --w: 180px; --ear: 6px; z-index: 60; color: #fff;
  transition: width .44s cubic-bezier(.3,1.25,.4,1), height .44s cubic-bezier(.3,1.25,.4,1), margin-left .44s cubic-bezier(.3,1.25,.4,1); }
.notch.live { --w: 260px; }
.notch.open { --w: 584px; --ear: 10px; height: 144px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.4)); }
.notch::before, .notch::after { content: ""; position: absolute; top: 0; width: var(--ear); height: var(--ear); }
.notch::before { left: calc(var(--ear) * -1); background: radial-gradient(circle at 0 100%, transparent calc(var(--ear) - .5px), #000 var(--ear)); }
.notch::after { right: calc(var(--ear) * -1); background: radial-gradient(circle at 100% 100%, transparent calc(var(--ear) - .5px), #000 var(--ear)); }
.n-in { position: absolute; inset: 0; background: #000; border-radius: 0 0 9px 9px; overflow: hidden; transition: border-radius .3s ease; }
.notch.open .n-in { border-radius: 0 0 24px 24px; }
.n-live { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; font: 600 11px/1 -apple-system, system-ui, sans-serif; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .2s ease; }
.notch.live:not(.open) .n-live { opacity: 1; transition-delay: .16s; }
.n-live > span { width: 40px; display: grid; place-items: center; }
.art { border-radius: 5px; background: linear-gradient(140deg, #ff5f6d, #ffc371 60%, #fff0b8); flex: none; }
.n-live .art { width: 20px; height: 20px; }
.wave { display: flex; gap: 2px; align-items: center; height: 14px; }
.wave i { width: 2.5px; border-radius: 2px; background: #fff; height: 30%; }
.notch.live .wave i { animation: wave .9s ease-in-out infinite alternate; }
.wave i:nth-child(2) { animation-delay: -.3s !important; } .wave i:nth-child(3) { animation-delay: -.6s !important; } .wave i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes wave { from { height: 22%; } to { height: 100%; } }
.n-x { position: absolute; left: 50%; top: 0; width: 584px; margin-left: -292px; opacity: 0; pointer-events: none; transition: opacity .16s ease; }
.notch.open .n-x { opacity: 1; pointer-events: auto; transition-delay: .1s; }
.n-top { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 18px; font-size: 12px; }
.n-top b { font-weight: 600; } .n-top span { color: rgba(255,255,255,.55); flex: 1; }
#desk .nbtn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
#desk .nbtn:hover { background: rgba(255,255,255,.12); }
#desk .nbtn.soft { color: rgba(255,255,255,.55); } #desk .nbtn.soft:hover { color: #fff; }
.n-cards { height: 112px; padding: 6px 12px 14px; display: flex; gap: 8px; }
.n-card { background: rgba(255,255,255,.07); border-radius: 16px; opacity: 0; transform: translateY(-8px) scale(.96); transform-origin: 50% 0; transition: opacity .2s ease, transform .4s cubic-bezier(.3,1.4,.5,1); }
.notch.open .n-card { opacity: 1; transform: none; }
.notch.open .n-card:nth-child(1) { transition-delay: .09s; } .notch.open .n-card:nth-child(2) { transition-delay: .13s; } .notch.open .n-card:nth-child(3) { transition-delay: .17s; }
.n-music { width: 204px; padding: 10px; display: flex; gap: 12px; }
.n-music .art { width: 60px; height: 60px; border-radius: 12px; box-shadow: 0 3px 6px rgba(0,0,0,.35); position: relative; }
.n-music .art i { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(#ff6b81, #f5334f); display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.n-music b { display: block; font-size: 13px; font-weight: 600; } .n-music small { font-size: 11px; color: rgba(255,255,255,.55); }
.n-ctl { display: flex; gap: 2px; margin: 4px 0 0 -6px; }
.n-cal { width: 200px; padding: 10px; }
.n-cal h6 { margin: 0 0 6px; font-size: 10px; font-weight: 600; color: rgba(255,255,255,.55); display: flex; gap: 5px; align-items: center; }
.ev { height: 18px; display: flex; align-items: center; gap: 6px; font-size: 11px; margin-bottom: 6px; }
.ev i { width: 3px; height: 14px; border-radius: 2px; flex: none; }
.ev em { font-style: normal; font-size: 10px; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.ev:first-of-type span { font-weight: 600; } .ev:first-of-type em { color: #fff; }
.n-ctlc { width: 140px; padding: 10px 12px; display: flex; flex-direction: column; gap: 9px; }
.ts { display: flex; align-items: center; gap: 8px; height: 14px; color: rgba(255,255,255,.55); cursor: pointer; touch-action: none; }
.ts-t { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.16); position: relative; transition: height .12s ease; }
.ts:hover .ts-t { height: 7px; }
.ts-f { position: absolute; inset: 0 auto 0 0; background: #fff; border-radius: 3px; min-width: 5px; }
#desk .n-awake { margin-top: auto; height: 24px; padding: 0 10px; border-radius: 99px; background: rgba(255,255,255,.09); display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 500; cursor: pointer; width: 100%; }
#desk .n-awake:hover { background: rgba(255,255,255,.16); }
#desk .n-awake.on { color: var(--orange); background: rgba(255,159,10,.2); }
#desk .n-awake span { flex: 1; text-align: left; font-variant-numeric: tabular-nums; }

/* Fenster */
.wins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.wins > .win:not(.gone) { pointer-events: auto; }
.win { position: absolute; display: flex; flex-direction: column; background: var(--win); border-radius: 16px; overflow: hidden; container-type: inline-size;
  box-shadow: 0 0 0 .5px rgba(255,255,255,.22), 0 0 0 1px rgba(0,0,0,.5), 0 22px 54px -6px rgba(0,0,0,.6); transition: opacity .2s ease, transform .25s ease, filter .2s ease; }
.win:not(.front) { filter: brightness(.9); }
.win.gone { opacity: 0; transform: scale(.94); pointer-events: none; }
.tb { height: 40px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px; cursor: grab; touch-action: none; position: relative; }
.tb:active { cursor: grabbing; }
.tb > i { width: 12px; height: 12px; border-radius: 50%; background: #4a4a4f; flex: none; }
.win.front .tb > i:nth-child(1) { background: #ff5f57; } .win.front .tb > i:nth-child(2) { background: #febc2e; } .win.front .tb > i:nth-child(3) { background: #28c840; }
.tb > span { position: absolute; left: 80px; right: 80px; text-align: center; font-weight: 600; color: var(--t2); pointer-events: none; }
.win.front .tb > span { color: var(--t1); }
.wc { flex: 1; min-height: 0; position: relative; overflow: hidden; display: flex; }
.pane { width: 150px; flex: none; background: var(--side); margin: 0 0 8px 8px; border-radius: 12px; padding: 8px 6px; overflow: hidden; }
.pane small { display: block; color: var(--t3); font-size: 11px; font-weight: 600; padding: 4px 8px; }
.pane .it { display: flex; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 8px; white-space: nowrap; }
.pane .it .ic { color: var(--blue); }
.pane .it.on { background: var(--fill2); }
#desk .pane button.it { width: 100%; cursor: pointer; text-align: left; padding: 5px 8px; }
#desk .pane button.it.on { background: var(--fill2); }
@container (max-width: 400px) { .pane { display: none; } }

.notes { flex: 1; padding: 6px 20px 16px; overflow: hidden; }
.notes h4 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.01em; }
.notes p { margin: 0 0 6px; color: var(--t2); }
.notes .pasted { color: var(--t1); min-height: 18px; }
.notes .pasted::after { content: ""; display: inline-block; width: 1.5px; height: 15px; background: var(--yellow); vertical-align: -2.5px; margin-left: 1px; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nlist .it { display: block; } .nlist .it b, .nlist .it span { display: block; overflow: hidden; text-overflow: ellipsis; } .nlist .it b { font-weight: 600; } .nlist .it span { color: var(--t3); font-size: 11.5px; }
.nlist .it.on { background: #b8860b55; }

.web { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.web-url { position: absolute; left: 50%; top: 7px; transform: translateX(-50%); width: 46%; height: 26px; border-radius: 9px; background: var(--fill); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--t2); pointer-events: none; }
.web-nav { position: absolute; left: 76px; top: 12px; display: flex; gap: 12px; color: var(--t3); pointer-events: none; }
.web-nav .on { color: var(--t1); }
.web-view { flex: 1; background: #fff; color: #1d1d1f; position: relative; overflow: hidden; margin: 0 6px 6px; border-radius: 6px 6px 11px 11px; }
.web-page { padding: 26px 30px; will-change: transform; position: absolute; left: 0; right: 0; top: 0; }
.web-page h5 { margin: 0 0 4px; font: 800 26px/1.1 ui-serif, Georgia, serif; letter-spacing: -.02em; }
.web-page small { color: #8a8a90; }
.web-hero { height: 150px; border-radius: 12px; margin: 16px 0; background: radial-gradient(60% 90% at 80% 20%, #ffd27a 0, transparent 60%), radial-gradient(70% 100% at 10% 90%, #0aa39a 0, transparent 60%), linear-gradient(120deg, #123a6b, #2f6bff); }
.web-hero.b { background: radial-gradient(60% 90% at 20% 20%, #ffc46b 0, transparent 60%), linear-gradient(120deg, #c2410c, #ff7a59); }
.web-page p { height: 9px; border-radius: 5px; background: #e6e6eb; margin: 10px 0; }
.web-page p.s { width: 62%; }
.web-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 18px 0; }
.web-cards i { height: 78px; border-radius: 10px; background: #f0f0f4; }
.web-cards i:nth-child(2) { background: #ffe8d6; } .web-cards i:nth-child(3) { background: #e3e9ff; }
.web-page.p2 { transform: translateX(-102%); }
.web-page.p2 li { list-style: none; padding: 12px 0; border-top: 1px solid #ececf0; font-weight: 600; display: flex; justify-content: space-between; }
.web-page.p2 li span { color: #8a8a90; font-weight: 400; } .web-page.p2 ul { padding: 0; margin: 16px 0 0; }

.fd-grid { flex: 1; padding: 6px 14px 14px; display: grid; grid-template-columns: repeat(auto-fill, 86px); gap: 8px 6px; align-content: start; }
.file { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 2px; border-radius: 8px; font-size: 11.5px; text-align: center; cursor: pointer; transition: opacity .2s ease; }
.file u { width: 42px; height: 52px; border-radius: 6px; background: linear-gradient(#fdfdfd, #e9e9ee); box-shadow: 0 2px 5px rgba(0,0,0,.35); display: grid; place-items: end center; padding-bottom: 6px; font-size: 8.5px; font-weight: 800; text-decoration: none; }
.file u.pdf { color: #e5484d; } .file u.img { color: #0b9b8f; } .file u.doc { color: #2f6bff; } .file u.zip { color: #77777d; }
.file span { padding: 1px 5px; border-radius: 4px; }
.file.sel u { outline: 3px solid rgba(255,255,255,.18); outline-offset: 2px; } .file.sel span { background: var(--blue); color: #fff; }
.file.cut { opacity: .38; }
.file.pop { animation: pop .45s cubic-bezier(.3,1.5,.5,1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* Nudgebar-Fenster */
.app-side { width: 172px; flex: none; padding: 40px 8px 10px; overflow: hidden; }
.app-side small { display: block; color: var(--t3); font-size: 11px; font-weight: 600; padding: 9px 8px 3px; }
.app-side div { display: flex; gap: 8px; align-items: center; padding: 4.5px 8px; border-radius: 8px; white-space: nowrap; }
.app-side div .ic { color: var(--blue); }
.app-side div.on { background: var(--blue); color: #fff; } .app-side div.on .ic { color: #fff; }
@container (max-width: 520px) { .app-side { display: none; } .app-bar { padding-left: 82px; } }
.app-main { flex: 1; min-width: 0; background: #1a1a1c; display: flex; flex-direction: column; border-left: 1px solid var(--sep); }
.app-bar { height: 40px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; font-weight: 600; color: var(--t2); pointer-events: none; }
.app-bar small { display: block; font-weight: 400; font-size: 11px; color: var(--t3); }
.app-bar .btn { pointer-events: auto; }
.app-c { flex: 1; padding: 6px 16px 16px; overflow: hidden; }
.app-c h6 { margin: 12px 2px 7px; font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.th { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 14px; padding: 11px 14px; }
.th i { width: 40px; height: 40px; border-radius: 11px; background: #3a3a3f; display: grid; place-items: center; flex: none; }
.th b { display: block; font-size: 18px; letter-spacing: -.01em; } .th span { color: var(--t2); font-size: 12px; }
.gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.gauge { background: var(--card); border-radius: 14px; padding: 11px 12px; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.08); }
.gauge small { color: var(--t2); display: flex; gap: 6px; align-items: center; font-size: 11px; font-weight: 600; }
.gauge b { display: block; font-size: 17px; margin: 5px 0 7px; font-variant-numeric: tabular-nums; }
.gauge em { display: block; font-style: normal; font-size: 10.5px; color: var(--t3); margin-top: 7px; }
.meter { height: 5px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--green); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.card { background: var(--card); border-radius: 14px; }
.row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.row + .row { border-top: 1px solid var(--sep); }
.row small { display: block; color: var(--t2); font-size: 11.5px; }
#desk .btn { background: var(--fill2); padding: 4px 11px; border-radius: 7px; font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap; }
#desk .btn.pri { background: var(--blue); color: #fff; font-weight: 600; }
#desk .btn:active { transform: scale(.96); }
.ok { color: var(--green); display: inline-flex; gap: 5px; align-items: center; font-size: 11.5px; font-weight: 500; }
.upd { color: var(--orange); display: inline-flex; gap: 5px; align-items: center; font-size: 11.5px; font-weight: 500; }
.spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--fill2); border-top-color: var(--blue); animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.agrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.acard { background: var(--card); border-radius: 14px; padding: 11px 12px; display: flex; gap: 11px; align-items: center; min-width: 0; }
.acard .sq { width: 34px; height: 34px; border-radius: 9px; flex: none; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25); }
.acard b { display: block; font-weight: 600; } .acard small { display: block; color: var(--t2); font-size: 11px; margin: 1px 0 3px; }
@container (max-width: 520px) { .agrid { grid-template-columns: 1fr; } }

/* Screenshot-Editor */
.ed { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.win.over .tb { position: absolute; left: 0; right: 0; top: 0; z-index: 1; }
.ed-bar > *, .app-bar .btn { position: relative; z-index: 2; }
.ed-g { display: flex; gap: 6px; }
.ed-bar { height: 48px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px 0 84px; pointer-events: none; }
.ed-bar > * { pointer-events: auto; }
.seg { display: flex; background: var(--fill); border-radius: 8px; padding: 2px; }
.seg b { width: 32px; height: 24px; display: grid; place-items: center; border-radius: 6px; color: var(--t2); cursor: pointer; }
.seg b.on { background: #636368; color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.dots { display: flex; gap: 6px; }
.dots i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid transparent; cursor: pointer; }
.dots i::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 .5px rgba(255,255,255,.35); }
.dots i.on { border-color: rgba(255,255,255,.8); }
#desk .gbtn { width: 30px; height: 26px; border-radius: 99px; display: grid; place-items: center; background: var(--fill); cursor: pointer; box-shadow: inset 0 .5px 0 rgba(255,255,255,.18); }
#desk .gbtn:hover { background: var(--fill2); }
.ed-c { flex: 1; display: grid; place-items: center; padding: 6px 16px 16px; min-height: 0; }
.ed-img { position: relative; width: min(100%, 470px); aspect-ratio: 470 / 290; border-radius: 4px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); cursor: crosshair; }
.capt { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; color: #1d1d1f; }
.capt .web-page { position: static; }
.mark { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mark path { stroke: #ff3b30; stroke-width: 4.5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 500; stroke-dashoffset: 500; }
.drawn .mark path { stroke-dashoffset: 0; transition: stroke-dashoffset .7s ease; }

/* Vorschau beim Einrasten */
.snap { position: absolute; border-radius: 14px; background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .15s ease, left .18s ease, top .18s ease, width .18s ease, height .18s ease; pointer-events: none; z-index: 5; }
.snap.on { opacity: 1; }

/* Dock */
.dockbar { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 22px; z-index: 40;
  background: rgba(60,60,72,.38); backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%); box-shadow: var(--glass-edge), 0 12px 30px rgba(0,0,0,.35); }
#desk .dk { width: 50px; height: 50px; position: relative; cursor: pointer; transition: transform .2s cubic-bezier(.3,1.4,.5,1); display: grid; place-items: center; }
#desk .dk:hover, #desk .dk.hov { transform: translateY(-6px) scale(1.1); }
.dk.run::after { content: ""; position: absolute; bottom: -5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(255,255,255,.8); }
.ai { display: grid; place-items: center; color: #fff; border-radius: 23%; flex: none; box-shadow: inset 0 .5px 0 rgba(255,255,255,.5), inset 0 0 0 .5px rgba(255,255,255,.14), 0 2px 5px rgba(0,0,0,.3); position: relative; overflow: hidden; }
.ai::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 45%); }
.ai img { width: 118%; height: 118%; display: block; }
.ai.real { box-shadow: 0 2px 5px rgba(0,0,0,.3); background: none !important; } .ai.real::after { display: none; }

/* Dock-Vorschau */
.dprev { position: absolute; bottom: 74px; display: flex; gap: 10px; padding: 10px; border-radius: 18px; z-index: 41; background: var(--glass); backdrop-filter: blur(30px) saturate(170%); -webkit-backdrop-filter: blur(30px) saturate(170%);
  box-shadow: var(--glass-edge), 0 16px 40px rgba(0,0,0,.45); opacity: 0; transform: translateY(8px) scale(.95); transform-origin: 50% 100%; transition: opacity .16s ease, transform .24s cubic-bezier(.3,1.2,.5,1); pointer-events: none; }
.dprev.on { opacity: 1; transform: none; pointer-events: auto; }
.dw { width: 190px; padding: 6px; border-radius: 12px; cursor: pointer; }
.dw:hover, .dw.hov { background: var(--fill); }
.dw-h { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; margin-bottom: 6px; }
.dw-h i { width: 18px; height: 18px; border-radius: 50%; background: var(--fill2); display: grid; place-items: center; opacity: .5; flex: none; }
.dw:hover .dw-h i { opacity: 1; }

/* Kleine Fensterbilder */
.mini { height: 110px; border-radius: 6px; overflow: hidden; background: var(--win); box-shadow: 0 0 0 .5px rgba(255,255,255,.2); position: relative; display: flex; flex-direction: column; }
.mini::before { content: ""; height: 13px; flex: none; background: radial-gradient(circle at 8px 6.500px, #ff5f57 2.200px, transparent 2.700px), radial-gradient(circle at 16px 6.500px, #febc2e 2.200px, transparent 2.700px), radial-gradient(circle at 24px 6.500px, #28c840 2.200px, transparent 2.700px); }
.mini i { flex: 1; margin: 0 3px 3px; border-radius: 3px; }
.mini.m-web i { background: linear-gradient(#fff 0 18%, transparent 18%), radial-gradient(60% 90% at 80% 20%, #ffd27a 0, transparent 60%), linear-gradient(120deg, #123a6b, #2f6bff); background-color: #fff; background-size: 100% 100%, 86% 52%, 86% 52%; background-position: 0 0, 50% 46%, 50% 46%; background-repeat: no-repeat; }
.mini.m-web2 i { background: linear-gradient(#fff 0 22%, #f0f0f4 22% 30%, #fff 30% 40%, #f0f0f4 40% 48%, #fff 48% 58%, #f0f0f4 58% 66%, #fff 66%); }
.mini.m-notes i { background: linear-gradient(90deg, var(--side) 0 30%, transparent 30%), linear-gradient(transparent 0 20%, rgba(255,255,255,.5) 20% 26%, transparent 26% 36%, rgba(255,255,255,.2) 36% 40%, transparent 40% 48%, rgba(255,255,255,.2) 48% 52%, transparent 52%); background-size: 100% 100%, 50% 100%; background-position: 0 0, 76% 0; background-repeat: no-repeat; }
.mini.m-finder i { background: linear-gradient(90deg, var(--side) 0 30%, transparent 30%), radial-gradient(circle, #e9e9ee 0 6px, transparent 7px); background-size: 100% 100%, 26px 32px; background-position: 0 0, 62% 30%; background-repeat: no-repeat, repeat-x; }
.mini.m-app i { background: linear-gradient(90deg, #252528 0 30%, #1a1a1c 30%); }

/* Umschalter */
.switcher { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%) scale(.95); display: flex; gap: 10px; padding: 14px; border-radius: 26px; z-index: 66;
  background: var(--glass); backdrop-filter: blur(34px) saturate(170%); -webkit-backdrop-filter: blur(34px) saturate(170%); box-shadow: var(--glass-edge), 0 26px 60px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity .14s ease, transform .2s ease; }
.switcher.on { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.sw { width: 196px; padding: 6px; border-radius: 15px; border: 1px solid transparent; transform: scale(.97); transition: transform .16s ease, background .16s ease; cursor: pointer; }
.sw.sel { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); transform: none; }
.sw-p { height: 122px; border-radius: 10px; background: rgba(255,255,255,.06); padding: 6px; }
.sw-p .mini { height: 100%; }
.sw-t { display: flex; align-items: center; gap: 6px; padding: 7px 2px 0; font-size: 11.5px; font-weight: 500; }

/* Nudgebar-Panel */
.panel { position: absolute; top: 38px; width: 320px; padding: 12px; border-radius: 20px; z-index: 70; display: flex; flex-direction: column; gap: 10px;
  background: var(--glass); backdrop-filter: blur(34px) saturate(180%); -webkit-backdrop-filter: blur(34px) saturate(180%); box-shadow: var(--glass-edge), 0 24px 54px -6px rgba(0,0,0,.6);
  opacity: 0; transform: scale(.9); transform-origin: 82% 0; pointer-events: none; transition: opacity .16s ease, transform .28s cubic-bezier(.3,1.25,.5,1); }
.panel.on { opacity: 1; transform: none; pointer-events: auto; }
.p-head { display: flex; align-items: center; gap: 6px; padding-left: 4px; font-weight: 700; font-size: 13.5px; }
.p-head > span:not(.ai) { flex: 1; }
#desk .circ { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--t2); cursor: pointer; transition: transform .12s ease; }
#desk .circ:hover { background: rgba(255,255,255,.15); } #desk .circ:active { transform: scale(.88); }
.strip { display: flex; padding: 5px 4px; border-radius: 99px; background: rgba(255,255,255,.07); position: relative; }
#desk .strip button { flex: 1; height: 32px; display: grid; place-items: center; border-radius: 99px; position: relative; z-index: 1; cursor: pointer; transition: transform .2s cubic-bezier(.3,1.5,.5,1); }
#desk .strip button:hover { transform: scale(1.1); } #desk .strip button.on { transform: none; }
.strip button.dot::after { content: ""; position: absolute; right: 18%; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: blink 1.8s ease-in-out infinite alternate; }
.strip button.dot.on::after { display: none; }
.pill-s { position: absolute; top: 5px; left: 0; height: 32px; border-radius: 99px; background: linear-gradient(#3b9bff, #0a84ff); box-shadow: 0 2px 8px rgba(10,132,255,.45); transition: transform .32s cubic-bezier(.3,1.2,.4,1); }
.platter { background: rgba(255,255,255,.07); border-radius: 16px; padding: 12px; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.08); }
.pl-h { display: flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 10px; }
.pl-h .ib { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: #fff; background: linear-gradient(#3b9bff, #0a84ff); }
.pl-h .ar { color: var(--t3); margin-left: auto; }
.pl-b { animation: plin .28s cubic-bezier(.3,1,.4,1); }
@keyframes plin { from { opacity: 0; transform: translateX(24px) scale(.98); } }
.pill { flex: 1; height: 20px; border-radius: 99px; background: rgba(255,255,255,.1); position: relative; cursor: pointer; touch-action: none; }
.pill-f { position: absolute; inset: 0 auto 0 0; background: #fff; border-radius: 99px; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.pill-i { position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; color: rgba(0,0,0,.55); }
.plr { display: flex; align-items: center; gap: 8px; }
.plr em { font-style: normal; font-size: 11.5px; color: var(--t2); width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.dname { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.dname .ic { color: var(--t2); } .dname small { color: var(--t2); font-size: 11.5px; }
#desk .dname button { color: var(--t2); cursor: pointer; padding: 2px; }
.drow + .drow { margin-top: 10px; } .drow.off .dname span { color: var(--t2); } .drow.off .dname button { color: var(--t1); } .drow.off .plr { opacity: .4; pointer-events: none; }
#desk .dev { color: var(--t2); font-size: 11.5px; margin-top: 7px; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.pl-s { font-size: 12.5px; color: var(--t2); margin: 0 0 8px; } .pl-s.act { color: var(--t1); }
.chips { display: flex; gap: 4px; }
#desk .chip { flex: 1; min-height: 24px; border-radius: 99px; background: rgba(255,255,255,.1); font-size: 11.5px; cursor: pointer; transition: transform .1s ease; }
#desk .chip:active { transform: scale(.94); }
#desk .chip.on { background: var(--t1); color: #1c1c1e; font-weight: 600; }
.caps { display: flex; gap: 4px; }
#desk .cap-b { flex: 1; padding: 6px 0; border-radius: 8px; background: rgba(255,255,255,.07); display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; cursor: pointer; }
#desk .cap-b:hover { background: rgba(255,255,255,.13); } #desk .cap-b.f { flex: none; width: 28px; justify-content: center; }
.crow { display: flex; align-items: center; gap: 8px; height: 26px; }
.crow .ic { color: var(--t2); } .crow span { flex: 1; font-size: 12.5px; }
#desk .crow button { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: var(--t2); cursor: pointer; } #desk .crow button:hover { background: var(--fill); }
#desk .lnk { color: var(--blue); font-size: 11.5px; margin-top: 4px; cursor: pointer; }

/* Menü (wie ein Aufklappmenü von macOS) */
.menu { position: absolute; min-width: 170px; padding: 5px; border-radius: 12px; z-index: 95; background: rgba(50,50,56,.86); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); box-shadow: var(--glass-edge), 0 14px 34px rgba(0,0,0,.5);
  opacity: 0; transform: scale(.96); transform-origin: 20% 0; pointer-events: none; transition: opacity .12s ease, transform .16s ease; }
.menu.on { opacity: 1; transform: none; pointer-events: auto; }
.menu div { padding: 4px 10px 4px 24px; border-radius: 7px; position: relative; cursor: default; white-space: nowrap; }
.menu div:hover, .menu div.hov { background: var(--blue); color: #fff; }
.menu div.chk::before { content: "✓"; position: absolute; left: 8px; font-weight: 700; font-size: 11px; top: 5px; }
.menu hr { border: 0; border-top: 1px solid var(--sep); margin: 4px 8px; }

/* Zwischenablage-Verlauf */
.clip { position: absolute; left: 50%; top: 44%; width: 440px; height: 380px; margin: -190px 0 0 -220px; padding: 14px; border-radius: 22px; z-index: 65; display: flex; flex-direction: column; gap: 10px;
  background: var(--glass); backdrop-filter: blur(34px) saturate(170%); -webkit-backdrop-filter: blur(34px) saturate(170%); box-shadow: var(--glass-edge), 0 26px 60px rgba(0,0,0,.55);
  opacity: 0; transform: scale(.95); pointer-events: none; transition: opacity .14s ease, transform .22s cubic-bezier(.3,1.2,.5,1); }
.clip.on { opacity: 1; transform: none; pointer-events: auto; }
.clip-s { display: flex; align-items: center; gap: 8px; padding: 0 6px; color: var(--t2); font-size: 17px; }
.clip-s span { color: var(--t3); } .clip-s span::before { content: ""; display: inline-block; width: 1.5px; height: 18px; background: var(--blue); vertical-align: -3px; margin-right: 1px; animation: blink 1.1s steps(2) infinite; }
.ci { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; margin-bottom: 2px; }
.ci.sel { background: rgba(255,255,255,.12); }
.ci > i { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: var(--t2); flex: none; }
.ci > i.th2 { background: linear-gradient(120deg, #123a6b, #2f6bff); } .ci > i.col { background: #2f6bff; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.4); }
.ci kbd { font: 11.5px -apple-system, system-ui, sans-serif; color: var(--t3); }
@media (max-width: 700px) { .clip { width: 400px; margin-left: -200px; } }

/* Bildschirmfoto: Auswahl, Vorschau, angeheftetes Bild */
.shot { position: absolute; inset: 0; z-index: 64; pointer-events: none; opacity: 0; }
.shot.on { opacity: 1; }
.sel-r { position: absolute; background: rgba(110,115,130,.24); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 0 0 .5px rgba(0,0,0,.55); }
.sel-s { position: absolute; right: -4px; bottom: -22px; color: #fff; font: 600 10.5px ui-monospace, "SF Mono", Menlo, monospace; text-shadow: 0 0 3px #000, 0 0 1px #000; white-space: nowrap; }
.pv { position: absolute; right: 16px; bottom: 16px; width: 232px; padding: 6px; border-radius: 14px; z-index: 46; background: var(--glass); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); box-shadow: var(--glass-edge), 0 14px 34px rgba(0,0,0,.5);
  transform: translateX(270px); transition: transform .28s cubic-bezier(.2,.8,.3,1), opacity .2s ease; cursor: pointer; }
.pv.on { transform: none; }
.pv-img { height: 136px; border-radius: 8px; overflow: hidden; position: relative; background: #fff; }
.pv-b { position: absolute; inset: 12px; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.pv:hover .pv-b, .pv.hov .pv-b { opacity: 1; pointer-events: auto; }
.pv-b div { display: flex; justify-content: space-between; gap: 5px; } .pv-b div:last-child { justify-content: flex-end; }
#desk .pv-b button { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(60,60,66,.82); box-shadow: var(--glass-edge); cursor: pointer; }
.pinned { position: absolute; left: 26px; top: 60px; width: 250px; aspect-ratio: 470 / 290; border-radius: 6px; z-index: 45; overflow: hidden; background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.5), 0 16px 40px rgba(0,0,0,.55);
  opacity: 0; transform: scale(.7); transition: opacity .2s ease, transform .4s cubic-bezier(.3,1.3,.5,1); pointer-events: none; }
.pinned.on { opacity: 1; transform: none; }
.pinned .mark path { stroke-dashoffset: 0; }

/* Tasten-Einblendung, Abdunklung, Zeiger */
.keys { position: absolute; left: 50%; bottom: 92px; transform: translate(-50%, 10px); display: flex; gap: 5px; padding: 8px 10px; border-radius: 13px; background: rgba(20,20,24,.82); z-index: 80; opacity: 0; transition: opacity .16s ease, transform .22s ease; pointer-events: none; box-shadow: var(--glass-edge); }
.keys.on { opacity: 1; transform: translate(-50%, 0); }
.keys kbd { min-width: 30px; height: 30px; padding: 0 8px; display: grid; place-items: center; border-radius: 7px; background: #f4f4f6; color: #1d1d1f; font: 600 15px -apple-system, system-ui, sans-serif; box-shadow: 0 2px 0 rgba(0,0,0,.5); }
.dim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 90; transition: opacity .12s linear; }
.cursor { position: absolute; left: 0; top: 0; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .25s ease; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); will-change: transform; }
#desk.auto .cursor { opacity: 1; }
.cursor svg { display: block; transition: transform .09s ease; transform-origin: 3px 2px; }
.cursor.down svg { transform: scale(.82); }
.cursor .cross { display: none; } .cursor.x .arrow { display: none; } .cursor.x .cross { display: block; margin: -9px 0 0 -8px; }

@media (max-width: 700px) { .screen { border-width: 6px; border-radius: 16px; } #desk { border-radius: 10px; } }
@media (prefers-reduced-motion: reduce) {
  #desk *, #desk *::after, #desk *::before { animation: none !important; transition-duration: .01s !important; }
}
@media (prefers-reduced-transparency: reduce) {
  #desk { --glass: #2c2c32; } .dockbar { background: #3a3a46; } .menu { background: #323238; }
  #desk * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
