:root{--bg:#080b12;--panel:#101622cc;--panel2:#151d2b;--line:#263247;--text:#eef4ff;--muted:#8fa1bc;--accent:#6ee7ff;--accent2:#8b5cf6;--danger:#ff6b7a;--ok:#65e6a4;--shadow:0 22px 80px #0007}*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;background:radial-gradient(1000px 600px at 18% -10%,#153052 0,transparent 60%),radial-gradient(800px 600px at 100% 10%,#2f1b4e 0,transparent 55%),var(--bg);color:var(--text);font:15px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100vh}button,input,textarea{font:inherit}.shell{width:min(1440px,calc(100% - 28px));min-height:100vh;margin:auto;display:flex;flex-direction:column}.glass,.panel{background:linear-gradient(180deg,#141b29e8,#0e1420e8);border:1px solid #ffffff12;box-shadow:var(--shadow);backdrop-filter:blur(18px)}.topbar{height:66px;position:sticky;top:12px;z-index:30;margin-top:12px;border-radius:18px;display:flex;align-items:center;justify-content:space-between;padding:0 18px}.brand{display:flex;gap:11px;align-items:center;color:var(--text);text-decoration:none}.brand-copy{display:flex;min-width:0;flex-direction:column;line-height:1.1}.brand-copy strong{font-size:18px;font-weight:800}.nav-path{display:block;max-width:min(52vw,620px);margin-top:4px;color:var(--muted);font-size:11px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brandmark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,var(--accent2),var(--accent));color:#071019;box-shadow:0 0 35px #6ee7ff44}.top-actions,.inline{display:flex;gap:8px;align-items:center}.ghost,.button{border:1px solid var(--line);background:#151d2a;color:var(--text);padding:9px 13px;border-radius:11px;cursor:pointer;text-decoration:none}.ghost:hover,.button:hover{border-color:#466283;background:#1a2637}.ghost.active{border-color:#6ee7ff66;background:#1a2a3b;box-shadow:inset 0 0 0 1px #6ee7ff18;color:#fff}.button{background:linear-gradient(135deg,#25324b,#1a2538)}main{flex:1;padding:38px 0 70px}.hero{display:flex;justify-content:space-between;align-items:center;padding:26px 6px 30px}.hero h1{font-size:clamp(34px,5vw,68px);line-height:.98;margin:8px 0 14px;letter-spacing:-.055em;max-width:850px}.hero p{color:var(--muted);font-size:18px;max-width:700px}.eyebrow{color:var(--accent);font-size:12px;letter-spacing:.24em;font-weight:800}.hero-orb{width:120px;height:120px;border-radius:36px;background:linear-gradient(135deg,#8b5cf6aa,#6ee7ffaa);display:grid;place-items:center;font-size:56px;transform:rotate(8deg);box-shadow:0 0 80px #6ee7ff3d}.shortcut-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:18px}.shortcut{display:block;padding:18px;border:1px solid #ffffff10;background:#111925;border-radius:18px;color:var(--text);text-decoration:none;transition:.2s}.shortcut:hover{transform:translateY(-2px);border-color:#6ee7ff55;background:#172234}.shortcut-icon{font-size:27px;margin-bottom:15px}.shortcut span{display:block;color:var(--muted);font-size:12px;margin-top:4px}.grid2{display:grid;grid-template-columns:1.4fr .8fr;gap:18px}.panel{border-radius:20px;padding:20px}.panel-head,.browser-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}.panel h2{margin:0;font-size:18px}.muted{color:var(--muted);font-size:12px}.rss-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.rss-feed{border:1px solid var(--line);border-radius:15px;padding:13px;background:#0c111a}.rss-feed h3{font-size:13px;margin:0 0 9px;color:var(--accent)}.rss-feed a{display:block;color:#d7e5fa;text-decoration:none;padding:7px 0;border-top:1px solid #ffffff0b;font-size:13px}.rss-feed a:hover{color:#fff}.browser{margin-top:18px}.crumbs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:7px}.crumbs button{border:0;background:transparent;color:var(--muted);cursor:pointer;padding:0}.crumbs button:hover{color:var(--accent)}.file-list{display:grid;gap:7px}.file-row{display:grid;grid-template-columns:minmax(0,1fr) 100px 160px auto;align-items:center;gap:12px;padding:11px 12px;border:1px solid #ffffff0b;border-radius:12px;background:#0d131d}.file-row:hover{background:#111a27;border-color:#ffffff18}.file-main{display:flex;align-items:center;gap:10px;min-width:0}.file-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#e8f2ff;text-decoration:none;cursor:pointer}.file-meta{color:var(--muted);font-size:12px}.row-actions{display:flex;gap:5px}.icon-btn{border:1px solid #ffffff0d;background:#151d2a;color:#bac9dc;border-radius:9px;padding:6px 8px;cursor:pointer}.icon-btn:hover{color:#fff;border-color:#47617e}.danger:hover{color:var(--danger);border-color:#ff6b7a66}.gallery{columns:5 220px;column-gap:13px}.gallery-item{break-inside:avoid;margin:0 0 13px;position:relative;border-radius:16px;overflow:hidden;background:#0b1018;border:1px solid #ffffff10}.gallery-item img{display:block;width:100%;height:auto}.gallery-caption{padding:9px 11px;color:var(--muted);font-size:12px}.music-player{display:grid;grid-template-columns:320px 1fr;gap:18px}.now-playing{border-radius:22px;background:linear-gradient(145deg,#18243a,#241b39);padding:24px;min-height:270px;display:flex;flex-direction:column;justify-content:flex-end}.disc{width:120px;height:120px;border-radius:50%;background:radial-gradient(circle,#0c1320 10%,#5c7ca5 11%,#16243a 13%,#070b12 55%,#364d68 57%,#0b1018 61%);margin-bottom:24px;box-shadow:0 10px 35px #0008}.music-list{display:grid;gap:7px}.track{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:11px;cursor:pointer}.track:hover{background:#172132}.hidden{display:none!important}.modal{position:fixed;inset:0;background:#02040acb;z-index:100;display:grid;place-items:center;padding:20px}.modal-card{width:min(760px,100%);max-height:90vh;overflow:auto;border-radius:22px;padding:24px;position:relative}.modal-close{position:absolute;right:12px;top:10px;border:0;background:transparent;color:#a8b8cd;font-size:28px;cursor:pointer}.modal h2{margin-top:0}.form-grid{display:grid;gap:11px}.form-grid input,.form-grid textarea{width:100%;border:1px solid var(--line);background:#09101a;color:var(--text);padding:11px 12px;border-radius:11px;outline:none}.form-grid input:focus,.form-grid textarea:focus{border-color:#6ee7ff77}.form-grid textarea{min-height:340px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.toast{position:fixed;right:22px;bottom:22px;background:#172238;border:1px solid #ffffff18;padding:12px 16px;border-radius:12px;box-shadow:var(--shadow);z-index:120}.toast.error{border-color:#ff6b7a55;color:#ffd7dc}.small-note{font-size:12px;color:var(--muted);margin-top:8px}.admin-tabs{display:flex;gap:8px;margin-bottom:15px}.settings-lines{display:grid;gap:10px}.setting-row{display:grid;grid-template-columns:1fr 2fr auto;gap:8px}.mini-list{display:grid;gap:6px}.mini-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid #ffffff0a}.empty{color:var(--muted);padding:25px;text-align:center}.reader-link{color:var(--accent)}
.album-library-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:6px 0 18px}.album-library-head h3{font-size:26px;line-height:1;margin:5px 0 0}.album-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:18px}.album-card{position:relative;min-width:0;border:1px solid #ffffff10;border-radius:18px;background:#0d141f;overflow:hidden;transition:transform .18s ease,border-color .18s ease,background .18s ease}.album-card:hover{transform:translateY(-3px);border-color:#6ee7ff44;background:#111b29}.album-cover-button{display:block;position:relative;width:100%;aspect-ratio:1;border:0;padding:0;background:#090e16;cursor:pointer;overflow:hidden}.album-cover{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}.album-card:hover .album-cover{transform:scale(1.025)}.album-cover-placeholder{display:grid;place-items:center;width:100%;height:100%;background:radial-gradient(circle at 30% 20%,#243c5f,#111928 48%,#080c13);color:#8fa1bc;font-size:58px}.album-cover-placeholder>span{display:grid;place-items:center;width:92px;height:92px;border-radius:50%;border:1px solid #ffffff1c;background:#0a0f18aa;box-shadow:0 16px 40px #0006}.album-lock{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:34px;height:34px;border:1px solid #ffffff24;border-radius:11px;background:#080c12d9;backdrop-filter:blur(8px)}.album-info{display:grid;gap:4px;padding:12px 13px 13px}.album-title{border:0;padding:0;background:transparent;color:#edf5ff;text-align:left;font-weight:750;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.album-title:hover{color:var(--accent)}.album-meta{font-size:12px;color:var(--muted)}.album-admin{position:absolute;right:8px;bottom:8px;padding:5px;border:1px solid #ffffff0f;border-radius:10px;background:#090e16dd;opacity:0;transform:translateY(4px);transition:.18s}.album-card:hover .album-admin,.album-card:focus-within .album-admin{opacity:1;transform:none}.album-extras{margin-top:28px;padding-top:20px;border-top:1px solid #ffffff0d}.album-extras h3{margin:0 0 12px;font-size:15px}.player-cover{width:min(220px,100%);aspect-ratio:1;object-fit:cover;border-radius:16px;margin-bottom:22px;box-shadow:0 16px 40px #0008;border:1px solid #ffffff16}
@media(max-width:900px){.album-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px}.album-admin{opacity:1;transform:none}.top-actions{flex-wrap:wrap;justify-content:flex-end}.grid2,.music-player{grid-template-columns:1fr}.hero-orb{display:none}.file-row{grid-template-columns:minmax(0,1fr) auto}.file-row>.file-meta{display:none}.setting-row{grid-template-columns:1fr}.topbar{top:6px}.shell{width:min(100% - 16px,1440px)}}

/* Custom album player */
.custom-player{display:grid;gap:22px}.custom-player-main{display:grid;grid-template-columns:minmax(240px,360px) minmax(0,1fr);gap:30px;align-items:stretch;padding:24px;border:1px solid #ffffff10;border-radius:26px;background:radial-gradient(700px 360px at 10% 0%,#243c5f55,transparent 60%),linear-gradient(145deg,#121c2b,#0b111b);overflow:hidden}.custom-player-art{position:relative;aspect-ratio:1;align-self:center;border-radius:24px;isolation:isolate}.custom-player-cover,.custom-player-cover-placeholder{position:relative;z-index:2;width:100%;height:100%;display:grid;place-items:center;border-radius:24px;object-fit:cover;border:1px solid #ffffff1c;box-shadow:0 26px 70px #000a}.custom-player-cover-placeholder{background:radial-gradient(circle at 35% 25%,#2a4d73,#141f31 46%,#080d15);font-size:84px;color:#b9d8ef}.custom-player-cover-placeholder span{display:grid;place-items:center;width:128px;height:128px;border-radius:50%;border:1px solid #ffffff18;background:#07101b88}.custom-player-art-glow{position:absolute;z-index:1;inset:10% -8% -8% 10%;border-radius:30%;background:linear-gradient(135deg,#6ee7ff55,#8b5cf655);filter:blur(40px);opacity:.75}.custom-player-panel{display:flex;min-width:0;flex-direction:column;justify-content:center;padding:18px 12px}.custom-player-kicker{font-size:11px;font-weight:850;letter-spacing:.24em;color:var(--accent);margin-bottom:9px}.custom-player-title{margin:0;max-width:850px;font-size:clamp(28px,4vw,48px)!important;line-height:1.02;letter-spacing:-.045em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.custom-player-album{margin-top:10px;color:var(--muted);font-size:13px}.custom-player-progress-row{display:grid;grid-template-columns:46px minmax(0,1fr) 46px;gap:11px;align-items:center;margin-top:34px}.custom-player-time{font-variant-numeric:tabular-nums;font-size:11px;color:#9aacc4}.custom-player-time:last-child{text-align:right}.custom-player-range{--range-progress:0%;width:100%;height:5px;margin:0;appearance:none;-webkit-appearance:none;border-radius:999px;outline:none;background:linear-gradient(90deg,var(--accent) 0,var(--accent) var(--range-progress),#2a3547 var(--range-progress),#2a3547 100%);cursor:pointer}.custom-player-range::-webkit-slider-thumb{-webkit-appearance:none;width:15px;height:15px;border-radius:50%;border:3px solid #08111a;background:#fff;box-shadow:0 0 0 2px #6ee7ff66,0 4px 14px #0008}.custom-player-range::-moz-range-thumb{width:11px;height:11px;border-radius:50%;border:3px solid #08111a;background:#fff;box-shadow:0 0 0 2px #6ee7ff66}.custom-player-controls{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:25px}.custom-control{display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid #ffffff16;border-radius:50%;background:#131d2b;color:#edf7ff;cursor:pointer;transition:transform .15s ease,border-color .15s ease,background .15s ease,box-shadow .15s ease}.custom-control:hover{transform:translateY(-1px);border-color:#6ee7ff66;background:#1a2a3c}.custom-control-play{width:66px;height:66px;border-color:#6ee7ff55;background:linear-gradient(135deg,#6ee7ff,#8b5cf6);color:#071019;font-size:20px;box-shadow:0 12px 35px #6ee7ff22}.custom-control-play:hover{background:linear-gradient(135deg,#8bf0ff,#a17aff);box-shadow:0 15px 42px #6ee7ff35}.custom-control-small{width:40px;height:40px;font-size:17px;color:#95a9c4}.custom-control.active{color:var(--accent);border-color:#6ee7ff55;background:#102638;box-shadow:inset 0 0 0 1px #6ee7ff14}.custom-player-bottom{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:27px}.custom-volume-button{width:32px;height:32px;border:0;background:transparent;color:#c7d6e8;cursor:pointer;padding:0}.custom-player-volume{width:min(180px,36vw)}.custom-volume-text{width:38px;text-align:right;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.custom-player-queue{padding:3px 2px}.custom-player-queue-head{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin:0 2px 13px}.custom-player-queue-head h3{margin:4px 0 0;font-size:20px}.custom-track-list{display:grid;gap:6px}.custom-track{display:grid;grid-template-columns:34px 26px minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;padding:11px 13px;border:1px solid #ffffff0b;border-radius:12px;background:#0c121c;color:var(--text);text-align:left;cursor:pointer;transition:.14s}.custom-track:hover{border-color:#ffffff1c;background:#121b29}.custom-track.active{border-color:#6ee7ff33;background:linear-gradient(90deg,#132638,#101823)}.custom-track-index{color:#667991;font-size:11px;font-variant-numeric:tabular-nums}.custom-track-play{display:grid;place-items:center;width:23px;height:23px;color:#91a7c3;font-size:10px}.custom-track.active .custom-track-play,.custom-track.playing .custom-track-title{color:var(--accent)}.custom-track-title{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}.custom-track-size{color:var(--muted);font-size:11px}.custom-player audio{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
@media(max-width:900px){.custom-player-main{grid-template-columns:1fr;gap:20px;padding:18px}.custom-player-art{width:min(360px,100%);margin:auto}.custom-player-panel{padding:4px 0}.custom-player-title{white-space:normal}.custom-player-progress-row{margin-top:24px}.custom-player-bottom{justify-content:center}.custom-player-volume{width:min(220px,48vw)}}
@media(max-width:560px){.custom-player-main{padding:13px;border-radius:20px}.custom-player-art,.custom-player-cover,.custom-player-cover-placeholder{border-radius:18px}.custom-player-controls{gap:7px}.custom-control{width:42px;height:42px}.custom-control-small{width:35px;height:35px}.custom-control-play{width:58px;height:58px}.custom-track{grid-template-columns:28px 22px minmax(0,1fr);padding:10px}.custom-track-size{display:none}.custom-player-progress-row{grid-template-columns:38px minmax(0,1fr) 38px;gap:7px}.custom-player-volume{width:min(180px,42vw)}}

/* Schnelllinks: Anbieter-Icon wird serverseitig von der Ziel-Domain geladen. */
.shortcut-icon.provider-icon{width:48px;height:48px;margin-bottom:14px;border-radius:13px;display:grid;place-items:center;overflow:hidden;background:#0b111b;border:1px solid #ffffff12}
.shortcut-icon.provider-icon img{display:block;width:34px;height:34px;object-fit:contain}
.shortcut-icon.provider-icon>span{display:none;font-size:27px}
.shortcut-icon.provider-icon.icon-failed img{display:none}
.shortcut-icon.provider-icon.icon-failed>span{display:block}

/* Bilderordner: Galerie + Lightbox */
.gallery-view{display:grid;gap:24px}.gallery-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 2px 12px;font-size:13px;font-weight:750;color:#dce8f7}.gallery-folders{padding-bottom:20px;border-bottom:1px solid #ffffff0d}.gallery-folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}.gallery-folder{display:flex;align-items:center;gap:8px;min-width:0;padding:8px;border:1px solid #ffffff0e;border-radius:13px;background:#0c131e}.gallery-folder-open{display:flex;align-items:center;gap:10px;min-width:0;flex:1;padding:5px 7px;border:0;background:transparent;color:var(--text);cursor:pointer;text-align:left}.gallery-folder-open:hover .gallery-folder-name{color:var(--accent)}.gallery-folder-icon{font-size:20px}.gallery-folder-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:650}.gallery-open{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}.gallery-open img{transition:transform .22s ease,filter .22s ease}.gallery-item:hover .gallery-open img{transform:scale(1.018);filter:brightness(1.05)}.gallery-caption{display:flex;align-items:center;justify-content:space-between;gap:8px}.gallery-caption-name{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gallery-lightbox{position:fixed;inset:0;z-index:300;display:grid;place-items:center;padding:24px}.gallery-lightbox.hidden{display:none}.gallery-lightbox-backdrop{position:absolute;inset:0;background:#03060bed;backdrop-filter:blur(14px)}.gallery-lightbox-shell{position:relative;z-index:1;display:grid;grid-template-columns:56px minmax(0,1fr) 56px;align-items:center;width:min(1500px,96vw);height:min(920px,92vh)}.gallery-lightbox-stage{display:flex;min-width:0;min-height:0;height:100%;flex-direction:column;align-items:center;justify-content:center;gap:12px}.gallery-lightbox-stage img{display:block;max-width:100%;max-height:calc(92vh - 72px);width:auto;height:auto;object-fit:contain;border-radius:14px;box-shadow:0 30px 100px #000c}.gallery-lightbox-meta{display:flex;width:min(900px,100%);align-items:center;justify-content:space-between;gap:14px;color:#dfeafa;font-size:12px}.gallery-lightbox-meta strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gallery-lightbox-meta span{color:var(--muted);font-variant-numeric:tabular-nums}.gallery-lightbox-close,.gallery-lightbox-nav{display:grid;place-items:center;border:1px solid #ffffff20;background:#0d1623d9;color:#fff;cursor:pointer;backdrop-filter:blur(10px)}.gallery-lightbox-close{position:absolute;right:0;top:0;width:42px;height:42px;border-radius:50%;font-size:28px;z-index:2}.gallery-lightbox-nav{width:46px;height:64px;border-radius:16px;font-size:38px;line-height:1}.gallery-lightbox-nav:hover,.gallery-lightbox-close:hover{border-color:#6ee7ff66;background:#15263a}.gallery-lightbox-nav.prev{justify-self:start}.gallery-lightbox-nav.next{justify-self:end}body.lightbox-open{overflow:hidden}
@media(max-width:700px){.gallery-lightbox{padding:10px}.gallery-lightbox-shell{grid-template-columns:38px minmax(0,1fr) 38px;width:100%;height:96vh}.gallery-lightbox-nav{width:34px;height:54px;border-radius:12px;font-size:30px}.gallery-lightbox-close{right:4px;top:4px}.gallery-lightbox-stage img{max-height:calc(96vh - 74px)}.gallery-caption .row-actions{opacity:1}.gallery-folder-grid{grid-template-columns:1fr 1fr}}
@media(max-width:460px){.gallery-folder-grid{grid-template-columns:1fr}}

/* Pinterest-style image wall + zoomable lightbox */
.gallery{column-width:225px;column-count:auto;column-gap:16px}
.gallery-item{display:inline-block;width:100%;break-inside:avoid;page-break-inside:avoid;margin:0 0 16px;border-radius:18px;overflow:hidden;background:#0c121c;border:1px solid #ffffff10;box-shadow:0 8px 28px #0003;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.gallery-item:hover{transform:translateY(-2px);border-color:#ffffff20;box-shadow:0 15px 38px #0005}
.gallery-open{position:relative;overflow:hidden;border-radius:17px 17px 0 0}
.gallery-open::after{content:'↗  Ansehen';position:absolute;right:10px;top:10px;padding:7px 10px;border-radius:999px;background:#07101bd9;color:#fff;font-size:11px;font-weight:750;letter-spacing:.02em;opacity:0;transform:translateY(-4px);transition:.18s;backdrop-filter:blur(10px)}
.gallery-item:hover .gallery-open::after{opacity:1;transform:translateY(0)}
.gallery-caption{min-height:42px;padding:10px 12px;background:linear-gradient(180deg,#101823,#0c121c)}
.gallery-caption-name{font-weight:650;color:#dfe9f8}
.gallery-lightbox-shell{grid-template-columns:58px minmax(0,1fr) 58px}
.gallery-lightbox-nav.prev{grid-column:1;grid-row:1}
.gallery-lightbox-stage{grid-column:2;grid-row:1;position:relative;overflow:visible;width:100%;height:100%}
.gallery-lightbox-nav.next{grid-column:3;grid-row:1}
.gallery-lightbox-viewport{position:relative;display:grid;place-items:center;width:100%;height:calc(92vh - 72px);overflow:hidden;border-radius:16px;cursor:zoom-in;touch-action:none;user-select:none}
.gallery-lightbox-viewport.is-zoomed{cursor:grab}
.gallery-lightbox-viewport.is-dragging{cursor:grabbing}
.gallery-zoom-canvas{display:grid;place-items:center;width:100%;height:100%;will-change:transform}
.gallery-zoom-canvas img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:14px;box-shadow:0 30px 100px #000c;transform-origin:center center;will-change:transform;transition:transform .12s ease-out;pointer-events:none}
.gallery-lightbox-viewport.is-dragging .gallery-zoom-canvas img{transition:none}
.gallery-zoom-toolbar{position:absolute;z-index:4;top:0;left:50%;transform:translate(-50%,-4px);display:flex;align-items:center;gap:4px;padding:5px;border:1px solid #ffffff1c;border-radius:13px;background:#0a121ed9;box-shadow:0 8px 30px #0007;backdrop-filter:blur(12px)}
.gallery-zoom-toolbar button{min-width:38px;height:34px;padding:0 9px;border:0;border-radius:9px;background:transparent;color:#eef6ff;font-size:18px;cursor:pointer}
.gallery-zoom-toolbar button:hover{background:#ffffff10}
.gallery-zoom-toolbar .gallery-zoom-value{min-width:62px;color:var(--accent);font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
.gallery-zoom-hint{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);padding:6px 10px;border-radius:999px;background:#07101bb8;color:#b9c8dc;font-size:10px;white-space:nowrap;opacity:.82;pointer-events:none;backdrop-filter:blur(8px)}
.gallery-lightbox-meta{padding:0 2px}
@media(max-width:900px){.gallery{column-width:190px;column-gap:12px}.gallery-item{margin-bottom:12px}.gallery-zoom-hint{display:none}}
@media(max-width:700px){.gallery{column-width:145px;column-gap:10px}.gallery-item{margin-bottom:10px;border-radius:14px}.gallery-caption{padding:8px 9px;min-height:36px}.gallery-open::after{display:none}.gallery-lightbox-viewport{height:calc(96vh - 74px);border-radius:12px}.gallery-zoom-toolbar{top:6px;transform:translateX(-50%)}.gallery-zoom-toolbar button{min-width:36px;height:32px}.gallery-lightbox-shell{grid-template-columns:38px minmax(0,1fr) 38px}}
@media(max-width:460px){.gallery{column-width:130px;column-gap:8px}.gallery-item{margin-bottom:8px}.gallery-caption-name{font-size:11px}}

/* Hell-/Dunkelmodus */
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="light"]{color-scheme:light;--bg:#f4f7fb;--panel:#ffffffdf;--panel2:#edf3f9;--line:#d4deea;--text:#172033;--muted:#66768b;--accent:#087ea4;--accent2:#6d5bd0;--danger:#c53f50;--ok:#1b8c5b;--shadow:0 22px 70px #22344f22}
html[data-theme="light"] body{background:radial-gradient(1000px 600px at 18% -10%,#dcecff 0,transparent 62%),radial-gradient(800px 600px at 100% 10%,#eee7ff 0,transparent 58%),var(--bg)}
html[data-theme="light"] .glass,html[data-theme="light"] .panel{background:linear-gradient(180deg,#fffffff4,#f8fbfff0);border-color:#aebed15c;box-shadow:var(--shadow)}
html[data-theme="light"] .brandmark{color:#fff;box-shadow:0 0 30px #087ea433}
html[data-theme="light"] .ghost,html[data-theme="light"] .button{background:#f8fbff;color:var(--text);border-color:var(--line)}
html[data-theme="light"] .ghost:hover,html[data-theme="light"] .button:hover{background:#edf4fb;border-color:#a8bacf}
html[data-theme="light"] .ghost.active{background:#e7f3f8;border-color:#67aec6;color:#0d5169;box-shadow:inset 0 0 0 1px #087ea414}
html[data-theme="light"] .button{background:linear-gradient(135deg,#f5f9fe,#eaf1f9)}
html[data-theme="light"] .shortcut{background:#fff;border-color:#dce5ef;color:var(--text);box-shadow:0 8px 28px #22344f0d}
html[data-theme="light"] .shortcut:hover{background:#f7fbff;border-color:#89b8cb}
html[data-theme="light"] .shortcut-icon.provider-icon{background:#f7f9fc;border-color:#dce5ef}
html[data-theme="light"] .rss-feed{background:#f8fbfe;border-color:var(--line)}
html[data-theme="light"] .rss-feed a{color:#314762;border-top-color:#dce5ef}
html[data-theme="light"] .rss-feed a:hover{color:#087ea4}
html[data-theme="light"] .file-row{background:#fff;border-color:#dfe7f0}
html[data-theme="light"] .file-row:hover{background:#f5f9fd;border-color:#c4d2e1}
html[data-theme="light"] .file-name,html[data-theme="light"] .album-title{color:var(--text)}
html[data-theme="light"] .icon-btn{background:#f6f9fd;border-color:#dce5ef;color:#5c6d82}
html[data-theme="light"] .icon-btn:hover{color:#172033;border-color:#aabed2}
html[data-theme="light"] .modal{background:#26364f66}
html[data-theme="light"] .modal-close{color:#62738a}
html[data-theme="light"] .form-grid input,html[data-theme="light"] .form-grid textarea{background:#fff;color:var(--text);border-color:var(--line)}
html[data-theme="light"] .toast{background:#fff;border-color:#d7e2ed;color:var(--text)}
html[data-theme="light"] .mini-item{border-bottom-color:#dfe6ee}
html[data-theme="light"] .album-card{background:#fff;border-color:#dfe7f0}
html[data-theme="light"] .album-card:hover{background:#f8fbff;border-color:#8fb9ca}
html[data-theme="light"] .album-cover-button{background:#eef3f8}
html[data-theme="light"] .album-cover-placeholder{background:radial-gradient(circle at 30% 20%,#d8e8f6,#edf3f9 50%,#dfe8f2);color:#6f8094}
html[data-theme="light"] .album-cover-placeholder>span{background:#ffffffaa;border-color:#aebed155}
html[data-theme="light"] .album-admin{background:#ffffffec;border-color:#dfe7f0}
html[data-theme="light"] .album-extras{border-top-color:#dfe7f0}
html[data-theme="light"] .custom-player-main{border-color:#dce6f0;background:radial-gradient(700px 360px at 10% 0%,#cde9f755,transparent 60%),linear-gradient(145deg,#ffffff,#f0f5fb)}
html[data-theme="light"] .custom-player-cover,html[data-theme="light"] .custom-player-cover-placeholder{border-color:#d5e0eb;box-shadow:0 26px 70px #3147632b}
html[data-theme="light"] .custom-player-cover-placeholder{background:radial-gradient(circle at 35% 25%,#cbe3f4,#e6eff7 48%,#dbe7f1);color:#54728c}
html[data-theme="light"] .custom-player-cover-placeholder span{background:#ffffff9c;border-color:#bacbdb}
html[data-theme="light"] .custom-player-art-glow{opacity:.3}
html[data-theme="light"] .custom-player-time{color:#6e8095}
html[data-theme="light"] .custom-player-range{background:linear-gradient(90deg,var(--accent) 0,var(--accent) var(--range-progress),#d0dbe7 var(--range-progress),#d0dbe7 100%)}
html[data-theme="light"] .custom-player-range::-webkit-slider-thumb{border-color:#fff;background:#087ea4;box-shadow:0 0 0 2px #087ea43d,0 4px 14px #22344f22}
html[data-theme="light"] .custom-player-range::-moz-range-thumb{border-color:#fff;background:#087ea4;box-shadow:0 0 0 2px #087ea43d}
html[data-theme="light"] .custom-control{background:#fff;color:#2e4259;border-color:#d2deea}
html[data-theme="light"] .custom-control:hover{background:#eef6fb;border-color:#77aec3}
html[data-theme="light"] .custom-control-play{background:linear-gradient(135deg,#66d5ec,#8b74e8);color:#09202a;border-color:#5bb7cd}
html[data-theme="light"] .custom-control.active{background:#e2f3f8;color:#087ea4;border-color:#8dc3d5}
html[data-theme="light"] .custom-volume-button{color:#50647d}
html[data-theme="light"] .custom-track{background:#fff;border-color:#e0e8f0;color:var(--text)}
html[data-theme="light"] .custom-track:hover{background:#f5f9fd;border-color:#cbd8e5}
html[data-theme="light"] .custom-track.active{background:linear-gradient(90deg,#e7f5fa,#f3f8fd);border-color:#9bc9d9}
html[data-theme="light"] .custom-track-index,html[data-theme="light"] .custom-track-play{color:#74859a}
html[data-theme="light"] .gallery-section-head{color:var(--text)}
html[data-theme="light"] .gallery-folders{border-bottom-color:#dce5ee}
html[data-theme="light"] .gallery-folder{background:#fff;border-color:#dfe7ef}
html[data-theme="light"] .gallery-item{background:#fff;border-color:#dfe7ef;box-shadow:0 8px 28px #22344f18}
html[data-theme="light"] .gallery-item:hover{border-color:#bccbd9;box-shadow:0 15px 38px #22344f24}
html[data-theme="light"] .gallery-caption{background:linear-gradient(180deg,#fff,#f7fafc)}
html[data-theme="light"] .gallery-caption-name{color:var(--text)}
html[data-theme="light"] code{color:#465b73}
.theme-toggle{min-width:82px}

/* Dashboard weather (GPS + 3-day forecast) */
.weather-panel{min-height:100%}.weather-card{display:grid;gap:16px}.weather-loading,.weather-error{min-height:210px;display:flex;align-items:center;justify-content:center;gap:14px;padding:20px;border:1px dashed #ffffff18;border-radius:18px;background:linear-gradient(145deg,#0d141f,#111a28)}.weather-loading>div,.weather-error>div{display:grid;gap:3px;flex:1}.weather-loading span:not(.weather-spinner),.weather-error p{margin:0;color:var(--muted);font-size:12px}.weather-location-icon{font-size:30px;color:var(--accent)}.weather-spinner{width:26px;height:26px;border:3px solid #ffffff1b;border-top-color:var(--accent);border-radius:50%;animation:weather-spin .8s linear infinite}@keyframes weather-spin{to{transform:rotate(360deg)}}.weather-current{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:15px;padding:18px;border-radius:18px;background:radial-gradient(360px 180px at 0 0,#6ee7ff1f,transparent 65%),linear-gradient(145deg,#111b2a,#0b111b);border:1px solid #ffffff12}.weather-current-icon{font-size:54px;filter:drop-shadow(0 10px 20px #0005)}.weather-current-copy{display:grid;line-height:1.05}.weather-current-copy strong{font-size:38px;letter-spacing:-.04em;margin:3px 0 5px}.weather-current-copy>span:last-child{color:var(--muted);font-size:12px}.weather-location{font-size:11px!important;color:var(--accent)!important;font-weight:750;letter-spacing:.04em;text-transform:uppercase}.weather-days{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.weather-day{display:grid;grid-template-columns:1fr auto;grid-template-areas:'day icon' 'temp icon' 'rain rain';align-items:center;gap:2px 8px;padding:12px;border:1px solid #ffffff0d;border-radius:14px;background:#0d141f}.weather-day>strong{grid-area:day;font-size:12px}.weather-day-icon{grid-area:icon;font-size:28px}.weather-temp{grid-area:temp;font-size:18px;font-weight:800}.weather-temp small{font-size:12px;color:var(--muted);font-weight:600}.weather-rain{grid-area:rain;margin-top:4px;color:#8cccf6;font-size:11px}.weather-source{text-align:right;color:var(--muted);font-size:10px}.weather-error>span{font-size:30px;color:var(--danger)}.weather-error p{margin-top:3px}.weather-retry{white-space:nowrap}
html[data-theme="light"] .weather-loading,html[data-theme="light"] .weather-error{background:linear-gradient(145deg,#fff,#f5f9fd);border-color:#d5e1ec}html[data-theme="light"] .weather-current{background:radial-gradient(360px 180px at 0 0,#c5edf766,transparent 65%),linear-gradient(145deg,#fff,#eef5fb);border-color:#d6e2ed}html[data-theme="light"] .weather-day{background:#fff;border-color:#dfe7ef}html[data-theme="light"] .weather-rain{color:#267aa8}
@media(max-width:560px){.weather-days{grid-template-columns:1fr}.weather-day{grid-template-columns:1fr auto auto;grid-template-areas:'day icon temp' 'rain icon temp'}.weather-current-copy strong{font-size:32px}.weather-current-icon{font-size:46px}.weather-source{text-align:left}}

/* Wetter nach PLZ */
.weather-plz-start{min-height:112px;display:flex;align-items:center;gap:14px;padding:18px;border:1px dashed #ffffff18;border-radius:18px;background:linear-gradient(145deg,#0d141f,#111a28)}
.weather-plz-start>div{display:grid;gap:3px}.weather-plz-start span:not(.weather-location-icon){color:var(--muted);font-size:12px}
.weather-search{display:grid;grid-template-columns:auto minmax(110px,1fr) auto;align-items:center;gap:9px}
.weather-search label{font-size:11px;font-weight:800;letter-spacing:.08em;color:var(--muted)}
.weather-search input{min-width:0;width:100%;border:1px solid var(--line);background:#09101a;color:var(--text);padding:10px 12px;border-radius:11px;outline:none;font-variant-numeric:tabular-nums}
.weather-search input:focus{border-color:#6ee7ff77;box-shadow:0 0 0 3px #6ee7ff12}
html[data-theme="light"] .weather-plz-start{background:linear-gradient(145deg,#fff,#f5f9fd);border-color:#d5e1ec}
html[data-theme="light"] .weather-search input{background:#fff;color:var(--text);border-color:#cbd8e4}

/* Foto-Bibliothek: Fotos/<Galerie>/... analog zur Musikbibliothek */
.photo-gallery-card .album-cover-button{background:#0a1018}
.photo-gallery-card .album-cover{object-fit:cover}
.photo-gallery-placeholder{background:radial-gradient(circle at 30% 20%,#243f4e,#111c26 48%,#080d13);color:#7ed9e8}
.photo-gallery-placeholder>span{border-radius:22px;font-size:44px}
.photo-gallery-card:hover .photo-gallery-cover{transform:scale(1.04)}
html[data-theme="light"] .photo-gallery-card .album-cover-button{background:#edf5f7}
html[data-theme="light"] .photo-gallery-placeholder{background:radial-gradient(circle at 30% 20%,#d7f0f4,#eef7f8 50%,#e2edf0);color:#468496}
@media(max-width:560px){.weather-search{grid-template-columns:1fr auto}.weather-search label{grid-column:1/-1}.weather-plz-start{min-height:auto}}

/* Turntable visual for the custom music player */
.turntable-visual{aspect-ratio:1.08;min-height:0;border-radius:28px;overflow:visible;isolation:isolate}
.turntable-visual .custom-player-art-glow{inset:8% 2% -4% 4%;border-radius:40%;opacity:.6}
.turntable-deck{position:absolute;z-index:2;inset:0;border:1px solid #ffffff18;border-radius:28px;background:linear-gradient(145deg,#202834,#0d1219 62%,#171d26);box-shadow:inset 0 1px 0 #ffffff12,inset 0 -18px 55px #0006,0 24px 65px #0008;overflow:hidden}
.turntable-deck:before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,#ffffff09,transparent 28%,transparent 72%,#0004),repeating-linear-gradient(90deg,#ffffff018 0 1px,transparent 1px 5px);pointer-events:none}
.turntable-platter{position:absolute;left:5.5%;top:9%;width:77%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#20262d 0 5%,#090b0e 5.5% 58%,#2b323a 58.5% 62%,#07090b 62.5% 67%,#202731 67.5% 72%,#060709 72.5%);box-shadow:0 16px 35px #000a,inset 0 0 0 2px #ffffff0b,inset 0 0 0 8px #0008;display:grid;place-items:center}
.turntable-record{position:relative;width:91%;aspect-ratio:1;border-radius:50%;overflow:hidden;background:#050607;box-shadow:0 10px 28px #000b,inset 0 0 0 2px #ffffff0d;animation:turntable-spin 5.5s linear infinite;animation-play-state:paused;will-change:transform}
.turntable-visual.is-playing .turntable-record{animation-play-state:running}
.turntable-record .custom-player-cover,.turntable-record .custom-player-cover-placeholder{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:50%;box-shadow:none;object-fit:cover;z-index:1}
.turntable-record .custom-player-cover-placeholder{background:radial-gradient(circle at 35% 25%,#31556f,#172536 48%,#070b10);font-size:72px}
.turntable-record .custom-player-cover-placeholder span{width:34%;height:34%;font-size:.7em}
.turntable-grooves{position:absolute;z-index:2;inset:0;border-radius:50%;pointer-events:none;background:repeating-radial-gradient(circle at center,transparent 0 5px,#ffffff0a 5.4px 5.9px,transparent 6.2px 9px),radial-gradient(circle at center,transparent 0 16%,#0000000f 17% 47%,#00000036 70%,#00000077 100%);mix-blend-mode:soft-light}
.turntable-record:after{content:"";position:absolute;z-index:3;inset:0;border-radius:50%;background:conic-gradient(from 20deg,transparent 0 12%,#ffffff12 17%,transparent 24% 61%,#ffffff0d 69%,transparent 76%);pointer-events:none}
.turntable-spindle{position:absolute;z-index:5;left:50%;top:50%;width:14px;height:14px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#aeb7c0 34%,#3c4249 68%,#111 72%);box-shadow:0 2px 8px #000b,0 0 0 3px #05060780}
.turntable-tonearm{position:absolute;z-index:6;right:1.7%;top:5.2%;width:31%;height:73%;transform-origin:78% 13%;transform:rotate(-12deg);transition:transform .72s cubic-bezier(.2,.82,.2,1);filter:drop-shadow(0 8px 8px #0009);pointer-events:none}
.turntable-visual.is-playing .turntable-tonearm{transform:rotate(10deg)}
.turntable-visual.is-paused .turntable-tonearm{transform:rotate(5deg)}
.turntable-tonearm-base{position:absolute;right:0;top:0;width:46%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 38% 30%,#7f8b96 0 7%,#28303a 9% 31%,#090c10 33% 56%,#202832 58% 71%,#06080b 73%);border:1px solid #ffffff22;box-shadow:inset 0 1px 0 #ffffff16,0 6px 16px #000b}
.turntable-tonearm-pivot{position:absolute;right:9.5%;top:8%;width:27%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f7f9fb 0 8%,#aeb8c1 13% 33%,#4f5a64 38% 58%,#13181e 62%);border:1px solid #ffffff35;box-shadow:0 3px 8px #000a;z-index:4}
.turntable-tonearm-counterweight{position:absolute;right:18%;top:3.5%;width:31%;height:10%;border-radius:999px;background:linear-gradient(180deg,#b9c2ca,#59646e 42%,#252c33 72%,#101419);border:1px solid #ffffff24;box-shadow:inset 0 1px 0 #ffffff40,0 4px 7px #0009;transform:rotate(-8deg);transform-origin:right center;z-index:2}
.turntable-tonearm-stick{position:absolute;right:21%;top:20%;width:8px;height:63%;border-radius:999px;background:linear-gradient(90deg,#1d242b,#d8e0e6 31%,#83909b 55%,#2a333b 78%,#11161b);transform:rotate(20deg);transform-origin:50% 0;box-shadow:0 0 0 1px #0008,inset 1px 0 0 #ffffff35;z-index:3}
.turntable-tonearm-stick:after{content:"";position:absolute;left:50%;bottom:-14%;width:7px;height:29%;transform:translateX(-50%) rotate(-27deg);transform-origin:50% 0;border-radius:999px;background:linear-gradient(90deg,#28313a,#e0e6eb 37%,#75818c 66%,#252d34);box-shadow:0 0 0 1px #0006}
.turntable-tonearm-head{position:absolute;left:50%;bottom:-8%;width:35px;height:14px;transform:translateX(-85%) rotate(-60deg);transform-origin:78% 50%;border-radius:6px 3px 3px 6px;background:linear-gradient(160deg,#e3e8ec 0 24%,#7b8792 44%,#30383f 47% 72%,#11161b 74%);border:1px solid #0008;box-shadow:inset 0 1px 0 #ffffff5c,0 4px 8px #0009;z-index:5}
.turntable-tonearm-head:before{content:"";position:absolute;right:-5px;top:3px;width:8px;height:8px;border-radius:2px;background:#1b2026;box-shadow:inset 0 1px 0 #ffffff1d}
.turntable-tonearm-cartridge{position:absolute;left:3px;bottom:-5px;width:13px;height:7px;border-radius:2px;background:linear-gradient(180deg,#303841,#101419);box-shadow:0 2px 3px #0007}
.turntable-tonearm-needle{position:absolute;left:7px;bottom:-11px;width:1.5px;height:9px;background:linear-gradient(#e5edf2,#7d8992);transform:rotate(58deg);transform-origin:top;box-shadow:0 0 2px #fff8}
.turntable-status-light{position:absolute;z-index:4;right:8%;bottom:8%;width:10px;height:10px;border-radius:50%;background:#4a3437;box-shadow:inset 0 0 0 2px #0008;transition:.2s}
.turntable-visual.is-playing .turntable-status-light{background:#65e6a4;box-shadow:0 0 12px #65e6a4aa,inset 0 0 0 2px #ffffff30}
@keyframes turntable-spin{to{transform:rotate(360deg)}}
html[data-theme="light"] .turntable-deck{border-color:#ccd7e1;background:linear-gradient(145deg,#f4f7fa,#d9e0e7 62%,#eef2f5);box-shadow:inset 0 1px 0 #fff,inset 0 -18px 45px #53657722,0 24px 55px #52657a28}
html[data-theme="light"] .turntable-platter{background:radial-gradient(circle,#adb7c0 0 5%,#3c434a 5.5% 58%,#c1c8ce 58.5% 62%,#343a40 62.5% 67%,#8e99a3 67.5% 72%,#2c3136 72.5%)}
html[data-theme="light"] .turntable-status-light{background:#bca9aa}
@media(max-width:900px){.turntable-visual{width:min(420px,100%);margin:auto}}
@media(max-width:560px){.turntable-visual{border-radius:20px}.turntable-deck{border-radius:20px}.turntable-tonearm{right:.5%;top:5%;width:32%;height:72%}.turntable-tonearm-head{width:30px;height:12px}.turntable-spindle{width:11px;height:11px}}
@media(prefers-reduced-motion:reduce){.turntable-record{animation:none!important}.turntable-tonearm{transition:none!important}}

/* Datei-/Ordnericons: Bootstrap Icons 1.13.1 (lokaler SVG-Sprite, MIT). */
.file-icon-open{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--muted);cursor:pointer;transition:background .15s ease,color .15s ease,transform .15s ease}
.file-icon-open:hover{background:#6ee7ff10;color:var(--accent);transform:translateY(-1px)}
.filetype-icon-wrap{position:relative;display:grid;place-items:center;width:30px;height:30px;color:inherit}
.filetype-icon{display:block;width:28px;height:28px;fill:currentColor}
.filetype-icon-wrap.is-folder{color:#f2bd58}
.file-icon-open:hover .filetype-icon-wrap.is-folder{color:#ffd476}
.filetype-icon-wrap.is-protected{padding-right:2px;padding-bottom:1px}
.filetype-lock{position:absolute;right:-2px;bottom:-2px;width:14px;height:14px;padding:2px;border-radius:5px;background:var(--panel2);fill:var(--accent);filter:drop-shadow(0 2px 3px #0007)}
.file-overlay-title>[data-file-overlay-icon] .filetype-icon-wrap{width:36px;height:36px}
.file-overlay-title>[data-file-overlay-icon] .filetype-icon{width:32px;height:32px}
html[data-theme=light] .file-icon-open:hover{background:#0369a110}
html[data-theme=light] .filetype-icon-wrap.is-folder{color:#b7791f}
html[data-theme=light] .file-icon-open:hover .filetype-icon-wrap.is-folder{color:#925d0b}
html[data-theme=light] .filetype-lock{background:#fff;filter:drop-shadow(0 1px 2px #0002)}

/* Fotos: Galerie-Sammlungen als visuelle Ordnerkarten */
.photo-collection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}
.photo-collection-card{position:relative;min-width:0;border:1px solid #ffffff12;border-radius:20px;background:#0c131d;overflow:hidden;box-shadow:0 10px 34px #0003;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.photo-collection-card:hover{transform:translateY(-4px);border-color:#6ee7ff55;box-shadow:0 18px 44px #0005}
.photo-collection-open{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
.photo-collection-media{position:relative;display:block;width:100%;aspect-ratio:16/11;overflow:hidden;background:#080d14}
.photo-collection-collage{display:grid;width:100%;height:100%;gap:3px;background:#0a111a}
.photo-collection-collage.has-1{grid-template-columns:1fr}
.photo-collection-collage.has-2{grid-template-columns:1fr 1fr}
.photo-collection-collage.has-3{grid-template-columns:1.5fr 1fr;grid-template-rows:1fr 1fr}
.photo-collection-collage.has-3 .cell-1{grid-row:1/3}
.photo-collection-collage.has-4{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.photo-collection-cell{position:relative;display:grid;place-items:center;min-width:0;min-height:0;overflow:hidden;background:linear-gradient(145deg,#111b27,#080d14)}
.photo-collection-cell img{display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;object-position:center;transition:transform .35s ease,filter .35s ease}
.photo-collection-card:hover .photo-collection-cell img{filter:brightness(1.05)}
.photo-collection-cell.image-error{background:linear-gradient(135deg,#172330,#0b1119)}
.photo-collection-cell.image-error img{display:none}
.photo-collection-empty{display:grid;width:100%;height:100%;place-content:center;justify-items:center;gap:10px;color:#74879d;background:radial-gradient(circle at 30% 25%,#203546,#101923 55%,#080d13)}
.photo-collection-empty svg{width:46px;height:46px;fill:currentColor;opacity:.86}.photo-collection-empty span{font-size:11px;font-weight:700}
.photo-collection-shade{position:absolute;inset:45% 0 0;background:linear-gradient(180deg,transparent,#05080cc9);pointer-events:none}
.photo-collection-count{position:absolute;right:11px;bottom:10px;padding:6px 9px;border:1px solid #ffffff20;border-radius:999px;background:#07101bc9;color:#f0f7ff;font-size:11px;font-weight:750;line-height:1;backdrop-filter:blur(10px)}
.photo-collection-lock{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:34px;height:34px;border:1px solid #ffffff24;border-radius:11px;background:#080c12d9;color:#fff;backdrop-filter:blur(8px)}
.photo-collection-lock svg{width:15px;height:15px;fill:currentColor}
.photo-collection-copy{display:grid;gap:3px;padding:13px 14px 15px}
.photo-collection-copy strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#edf5ff;font-size:15px;font-weight:780}
.photo-collection-copy>span{color:var(--muted);font-size:11px}
.photo-collection-card:hover .photo-collection-copy strong{color:var(--accent)}
.photo-collection-admin{position:absolute;right:10px;bottom:10px;padding:5px;border:1px solid #ffffff16;border-radius:10px;background:#080e17e8;opacity:0;transform:translateY(4px);transition:.18s}
.photo-collection-card:hover .photo-collection-admin,.photo-collection-card:focus-within .photo-collection-admin{opacity:1;transform:none}
html[data-theme="light"] .photo-collection-card{background:#fff;border-color:#dfe7f0;box-shadow:0 10px 30px #22344f14}
html[data-theme="light"] .photo-collection-card:hover{border-color:#8fb9ca;box-shadow:0 18px 38px #22344f20}
html[data-theme="light"] .photo-collection-media{background:#eef3f8}
html[data-theme="light"] .photo-collection-copy strong{color:var(--text)}
html[data-theme="light"] .photo-collection-empty{color:#73889a;background:radial-gradient(circle at 30% 25%,#d9ebf3,#eef5f8 55%,#e5edf2)}
html[data-theme="light"] .photo-collection-admin{background:#ffffffed;border-color:#d8e3ec}
@media(max-width:900px){.photo-collection-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:13px}.photo-collection-admin{opacity:1;transform:none}}
@media(max-width:560px){.photo-collection-grid{grid-template-columns:1fr 1fr;gap:10px}.photo-collection-media{aspect-ratio:1}.photo-collection-copy{padding:10px 10px 12px}.photo-collection-copy strong{font-size:13px}.photo-collection-copy>span{display:none}.photo-collection-count{right:7px;bottom:7px;padding:5px 7px;font-size:9px}}


/* Globaler Footer mit administrierbaren Links */
.site-footer{padding:0 0 22px;margin-top:auto}
.site-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 19px;border-top:1px solid #ffffff12;color:var(--muted);font-size:12px}
.site-footer-copy{white-space:nowrap}
.site-footer-links{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px 16px}
.site-footer-links a{position:relative;color:var(--muted);text-decoration:none;transition:color .15s ease}
.site-footer-links a:hover{color:var(--accent)}
.site-footer-links a+a:before{content:"·";position:absolute;left:-10px;color:var(--line);pointer-events:none}
.site-footer-links.is-empty{display:none}
html[data-theme="light"] .site-footer-inner{border-top-color:#d9e3ed}
@media(max-width:650px){.site-footer-inner{align-items:flex-start;flex-direction:column;gap:10px;padding-inline:8px}.site-footer-links{justify-content:flex-start;gap:7px 16px}.site-footer-copy{white-space:normal}}

/* Integrierte Datei-Vorschau: lesbare Dateien bleiben innerhalb von WebIndex. */
.file-overlay{position:fixed;inset:0;z-index:180;display:grid;place-items:center;padding:18px}
.file-overlay-backdrop{position:absolute;inset:0;background:#02050bd9;backdrop-filter:blur(9px)}
.file-overlay-shell{position:relative;z-index:1;display:grid;grid-template-rows:64px minmax(0,1fr);width:min(1380px,calc(100vw - 36px));height:min(920px,calc(100vh - 36px));overflow:hidden;border:1px solid #ffffff1b;border-radius:22px;background:#0b111b;box-shadow:0 30px 120px #000b}
.file-overlay-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 14px 0 17px;border-bottom:1px solid #ffffff12;background:linear-gradient(180deg,#151d2a,#111823)}
.file-overlay-title{display:flex;align-items:center;gap:11px;min-width:0}
.file-overlay-title>div{display:grid;min-width:0;line-height:1.2}
.file-overlay-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.file-overlay-title small{max-width:min(70vw,850px);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:10px}
.file-overlay-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.file-overlay-actions a{display:grid;place-items:center;text-decoration:none;min-width:36px;height:36px}
.file-overlay-close{display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid #ffffff12;border-radius:12px;background:#151d2a;color:#dce8f6;font-size:25px;line-height:1;cursor:pointer}
.file-overlay-close:hover{border-color:#ff6b7a66;color:#fff;background:#2a1720}
.file-overlay-body{position:relative;min-width:0;min-height:0;overflow:auto;background:#080c13}
.file-overlay-frame{display:block;width:100%;height:100%;min-height:0;border:0;background:#fff}
.file-overlay-loading{display:grid;min-height:100%;place-items:center;color:var(--muted)}
.file-overlay-text{min-height:100%;margin:0;padding:22px 25px 40px;overflow:auto;background:#090e16;color:#dbe7f5;font:13px/1.62 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;tab-size:4;white-space:pre;word-break:normal}
.file-overlay-text code{font:inherit}
.file-overlay-media{display:grid;width:100%;height:100%;place-items:center;padding:20px;background:#05080d}
.file-overlay-media video{display:block;max-width:100%;max-height:100%;border-radius:14px;background:#000;box-shadow:0 18px 55px #0008}
.file-overlay-notice{position:sticky;top:0;z-index:2;padding:8px 14px;border-bottom:1px solid #ffffff13;background:#2a2212e8;color:#ffd98a;font-size:11px;backdrop-filter:blur(8px)}
body.file-overlay-open{overflow:hidden}
html[data-theme="light"] .file-overlay-backdrop{background:#e6edf5d6}
html[data-theme="light"] .file-overlay-shell{border-color:#cbd8e5;background:#fff;box-shadow:0 30px 90px #21354d35}
html[data-theme="light"] .file-overlay-head{border-bottom-color:#dce5ee;background:linear-gradient(180deg,#fff,#f4f7fa)}
html[data-theme="light"] .file-overlay-close{border-color:#d5e0ea;background:#fff;color:#334155}
html[data-theme="light"] .file-overlay-body{background:#f7f9fc}
html[data-theme="light"] .file-overlay-text{background:#fff;color:#172033}
html[data-theme="light"] .file-overlay-notice{border-bottom-color:#ead9a8;background:#fff8db;color:#755707}
@media(max-width:720px){.file-overlay{padding:0}.file-overlay-shell{width:100vw;height:100dvh;border:0;border-radius:0}.file-overlay-head{height:58px}.file-overlay-shell{grid-template-rows:58px minmax(0,1fr)}.file-overlay-title small{max-width:56vw}.file-overlay-text{padding:17px 15px 32px;font-size:12px}}

/* /Fotos: alle rekursiven Bilder gemeinsam wie eine Pinterest-Pinnwand. */
.gallery-caption-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:2px}
.gallery-caption-folder{display:block;min-width:0;color:var(--muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Lightbox niemals auf Karten-/Thumbnail-Geometrie zwingen. */
.gallery-lightbox .gallery-zoom-canvas img{max-width:none!important;max-height:none!important;object-fit:contain!important;aspect-ratio:auto!important}

/* Lightbox: Basisgroesse wird per JS aus naturalWidth/naturalHeight gesetzt; niemals strecken. */
#galleryLightbox .gallery-zoom-canvas{overflow:visible}
#galleryLightbox .gallery-zoom-canvas img{flex:none!important;min-width:0!important;min-height:0!important}


/* Lightbox Fit v2: im Ausgangszustand muss das komplette Bild sichtbar sein.
   Die eigentliche Zoom-Vergrößerung erfolgt ausschließlich per transform. */
#galleryLightbox .gallery-lightbox-viewport{overflow:hidden!important}
#galleryLightbox .gallery-zoom-canvas{position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;overflow:visible!important}
#galleryLightbox .gallery-zoom-canvas img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center center!important;aspect-ratio:auto!important;image-orientation:from-image;flex:0 0 auto!important}

/* Fotos: echte Galerie-Ordnerkarten mit einem repräsentativen Vorschaubild. */
.photo-collection-card{overflow:visible}
.photo-collection-card::before,.photo-collection-card::after{content:"";position:absolute;inset:8px 9px -7px;border:1px solid #ffffff10;border-radius:18px;background:#0a1018;z-index:-1;transform:rotate(-1.3deg);pointer-events:none}
.photo-collection-card::after{inset:5px 13px -4px;transform:rotate(1.1deg);background:#0d151f}
.photo-collection-open{overflow:hidden;border-radius:20px;background:#0c131d}
.photo-collection-cover{position:relative;display:grid;place-items:center;width:100%;height:100%;overflow:hidden;background:#080d14;isolation:isolate}
.photo-collection-cover-bg{position:absolute;inset:-8%;width:116%;height:116%;object-fit:cover;filter:blur(20px) brightness(.48) saturate(.9);transform:scale(1.08);opacity:.9;z-index:0}
.photo-collection-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#00000008 50%,#00000054);z-index:1;pointer-events:none}
.photo-collection-cover-img{position:relative;z-index:1;display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;object-position:center;transition:transform .28s ease,filter .28s ease;filter:drop-shadow(0 7px 18px #0008)}
.photo-collection-card:hover .photo-collection-cover-img{transform:scale(1.018);filter:drop-shadow(0 10px 22px #0009) brightness(1.03)}
.photo-collection-cover.image-error .photo-collection-cover-bg,.photo-collection-cover.image-error .photo-collection-cover-img{display:none}
.photo-collection-cover.image-error::before{content:"Galerie";display:grid;place-items:center;position:absolute;inset:0;color:#7890a8;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;background:radial-gradient(circle at 30% 25%,#203546,#101923 55%,#080d13)}
html[data-theme="light"] .photo-collection-card::before,html[data-theme="light"] .photo-collection-card::after{background:#eef3f7;border-color:#dce5ec}
html[data-theme="light"] .photo-collection-open{background:#fff}
html[data-theme="light"] .photo-collection-cover{background:#eaf0f5}
html[data-theme="light"] .photo-collection-cover-bg{filter:blur(20px) brightness(.85) saturate(.75);opacity:.72}
html[data-theme="light"] .photo-collection-cover-img{filter:drop-shadow(0 7px 14px #25384a33)}
@media(max-width:560px){.photo-collection-card::before,.photo-collection-card::after{inset:5px 6px -4px;border-radius:15px}.photo-collection-open{border-radius:16px}}
/* RSS Reader: Meldungen innerhalb von WebIndex statt Anbieter-Seite öffnen */
.rss-item{display:grid;width:100%;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 0;border:0;border-top:1px solid #ffffff0b;background:transparent;color:#d7e5fa;text-align:left;cursor:pointer}
.rss-item span{min-width:0;font-size:13px;line-height:1.38}
.rss-item small{color:var(--muted);font-size:9px;white-space:nowrap;opacity:.8}
.rss-item:hover span,.rss-item:focus-visible span{color:#fff}
.rss-item:focus-visible{outline:2px solid #6ee7ff66;outline-offset:2px;border-radius:7px}
html[data-theme="light"] .rss-item{border-top-color:#dce5ef;color:#314762}
html[data-theme="light"] .rss-item:hover span,html[data-theme="light"] .rss-item:focus-visible span{color:#087ea4}

.rss-overlay{position:fixed;inset:0;z-index:190;display:grid;place-items:center;padding:22px}
.rss-overlay-backdrop{position:absolute;inset:0;background:#02050be6;backdrop-filter:blur(10px)}
.rss-overlay-shell{position:relative;z-index:1;display:grid;grid-template-rows:auto minmax(0,1fr);width:min(920px,calc(100vw - 44px));max-height:min(880px,calc(100vh - 44px));overflow:hidden;border:1px solid #ffffff1c;border-radius:24px;background:linear-gradient(180deg,#121a27,#0a1019);box-shadow:0 35px 140px #000c}
.rss-overlay-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:24px 24px 19px;border-bottom:1px solid #ffffff10}
.rss-overlay-heading{min-width:0}
.rss-overlay-feed{display:block;margin-bottom:7px;color:var(--accent);font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.rss-overlay-head h2{margin:0;color:var(--text);font-size:clamp(21px,3vw,34px);line-height:1.12;letter-spacing:-.025em}
.rss-overlay-meta{margin-top:10px;color:var(--muted);font-size:11px}
.rss-overlay-close{display:grid;place-items:center;flex:0 0 auto;width:40px;height:40px;padding:0;border:1px solid #ffffff14;border-radius:50%;background:#121c2b;color:#dce8f6;font-size:26px;line-height:1;cursor:pointer}
.rss-overlay-close:hover{border-color:#ff6b7a66;background:#29151f;color:#fff}
.rss-overlay-scroll{overflow:auto;padding:22px 26px 32px}
.rss-overlay-image{display:block;width:100%;max-height:430px;margin:0 0 24px;border-radius:17px;object-fit:contain;background:#05080d}
.rss-overlay-content{color:#dce7f5;font-size:15px;line-height:1.72;white-space:pre-wrap;overflow-wrap:anywhere}
.rss-overlay-empty{padding:18px;border:1px solid var(--line);border-radius:14px;background:#0d141f;color:var(--muted);font-size:13px;line-height:1.55}
body.rss-overlay-open{overflow:hidden}
html[data-theme="light"] .rss-overlay-backdrop{background:#e7edf4df}
html[data-theme="light"] .rss-overlay-shell{border-color:#cad6e3;background:#fff;box-shadow:0 35px 100px #21354d3d}
html[data-theme="light"] .rss-overlay-head{border-bottom-color:#dce5ee}
html[data-theme="light"] .rss-overlay-head h2{color:#172033}
html[data-theme="light"] .rss-overlay-close{border-color:#d4dfeb;background:#f7fafc;color:#334155}
html[data-theme="light"] .rss-overlay-scroll{background:#fff}
html[data-theme="light"] .rss-overlay-image{background:#f1f5f9}
html[data-theme="light"] .rss-overlay-content{color:#25364b}
html[data-theme="light"] .rss-overlay-empty{background:#f7fafc;color:#61738a}
@media(max-width:720px){.rss-item{grid-template-columns:1fr}.rss-item small{display:none}.rss-overlay{padding:0}.rss-overlay-shell{width:100vw;max-height:none;height:100dvh;border:0;border-radius:0}.rss-overlay-head{padding:18px 16px 15px}.rss-overlay-scroll{padding:17px 16px 30px}.rss-overlay-image{max-height:42vh;margin-bottom:18px}.rss-overlay-content{font-size:14px}.rss-overlay-close{width:38px;height:38px}}

/* Schnelllinks: Logo und Beschriftung sauber zentrieren. */
.shortcut{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  text-align:center;
}
.shortcut-icon{
  display:grid;
  place-items:center;
  margin-left:auto;
  margin-right:auto;
}
.shortcut-icon.provider-icon{
  margin-left:auto;
  margin-right:auto;
}
.shortcut strong{
  width:100%;
  text-align:center;
}


/* Mobile navigation */
.mobile-nav-toggle{display:none;width:44px;height:44px;padding:0;flex:0 0 44px;align-items:center;justify-content:center;flex-direction:column;gap:5px}
.mobile-nav-toggle span{display:block;width:19px;height:2px;border-radius:999px;background:currentColor;transition:transform .2s ease,opacity .2s ease}
.topbar.nav-open .mobile-nav-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.topbar.nav-open .mobile-nav-toggle span:nth-child(2){opacity:0}
.topbar.nav-open .mobile-nav-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media(max-width:760px){
  .shell{width:min(100% - 16px,1440px)}
  .topbar{height:62px;top:6px;margin-top:6px;padding:0 10px 0 12px;overflow:visible}
  .brand{min-width:0;max-width:calc(100% - 56px)}
  .brandmark{width:36px;height:36px;flex:0 0 36px}
  .brand-copy{min-width:0}
  .brand-copy strong{font-size:16px}
  .nav-path{max-width:calc(100vw - 115px);font-size:10px}
  .mobile-nav-toggle{display:flex;position:relative;z-index:42}
  .top-actions{display:none;position:absolute;z-index:41;top:calc(100% + 8px);left:0;right:0;flex-direction:column;align-items:stretch;gap:6px;padding:10px;border:1px solid #ffffff18;border-radius:17px;background:linear-gradient(180deg,#141b29fa,#0e1420fa);box-shadow:0 24px 70px #000a;backdrop-filter:blur(22px)}
  .topbar.nav-open .top-actions{display:flex;animation:mobileNavIn .16s ease-out}
  .top-actions .ghost{display:flex;width:100%;min-height:45px;align-items:center;justify-content:flex-start;padding:10px 13px;text-align:left;border-radius:12px}
  .top-actions .ghost.active{background:#1a2a3b}
  .top-actions #themeBtn{margin-top:3px;border-top-color:#ffffff18}
  .top-actions #adminBtn{margin-top:1px}
  main{padding-top:24px}
}
@keyframes mobileNavIn{from{opacity:0;transform:translateY(-7px) scale(.985)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.topbar.nav-open .top-actions{animation:none}.mobile-nav-toggle span{transition:none}}

/* Globale Volltextsuche für Dateinamen und Dokumentinhalte */
.global-search{display:flex;align-items:center;flex:1 1 320px;max-width:430px;min-width:220px;height:40px;margin:0 18px;border:1px solid #ffffff16;border-radius:12px;background:#090f18;box-shadow:inset 0 1px 0 #ffffff08;overflow:hidden;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.global-search:focus-within{border-color:#6ee7ff77;background:#0c1520;box-shadow:0 0 0 3px #6ee7ff10,inset 0 1px 0 #ffffff0b}
.global-search-icon{display:grid;place-items:center;flex:0 0 38px;color:var(--muted);font-size:21px;line-height:1}
.global-search input{min-width:0;flex:1;height:100%;padding:0 6px 0 0;border:0;outline:0;background:transparent;color:var(--text);font-size:13px}
.global-search input::placeholder{color:#6f8199}
.global-search input::-webkit-search-cancel-button{filter:invert(.7)}
.global-search-submit{align-self:stretch;padding:0 13px;border:0;border-left:1px solid #ffffff10;background:#131d2b;color:#bdd0e5;font-size:12px;font-weight:700;cursor:pointer}
.global-search-submit:hover{background:#1a293b;color:#fff}
.search-results{display:grid;gap:14px}
.search-summary{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:6px 2px 12px;border-bottom:1px solid #ffffff0e}
.search-summary h3{margin:4px 0 3px;font-size:23px;letter-spacing:-.02em}
.search-summary p{margin:0;color:var(--muted);font-size:12px}
.search-support{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:48%}
.search-support span,.search-match-badge{display:inline-flex;align-items:center;padding:5px 8px;border:1px solid #ffffff10;border-radius:999px;background:#111a26;color:#95a9c1;font-size:10px;line-height:1.1;white-space:nowrap}
.search-notice{padding:11px 13px;border:1px solid #f6c45330;border-radius:12px;background:#f6c4530b;color:#b9a16c;font-size:12px;line-height:1.5}
.search-notice strong{color:#e4c778}
.search-result-list{display:grid;gap:8px}
.search-result{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:start;padding:13px 14px;border:1px solid #ffffff0c;border-radius:14px;background:#0d141f;transition:background .15s ease,border-color .15s ease,transform .15s ease}
.search-result:hover{border-color:#ffffff1d;background:#111b29;transform:translateY(-1px)}
.search-result-main{display:flex;gap:10px;min-width:0}
.search-result-copy{min-width:0;flex:1}
.search-result-title-line{display:flex;align-items:center;gap:8px;min-width:0}
.search-result-title{min-width:0;max-width:100%;padding:0;border:0;background:transparent;color:#edf5ff;font:inherit;font-weight:760;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.search-result-title:hover{color:var(--accent)}
.search-result-path{display:block;max-width:100%;margin:3px 0 0;padding:0;border:0;background:transparent;color:#6f839c;font-size:11px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.search-result-path:hover{color:var(--accent)}
.search-result-snippet{margin:7px 0 0;color:#b5c5d8;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.search-result-side{display:grid;justify-items:end;gap:4px;min-width:105px;color:var(--muted);font-size:10px;white-space:nowrap}
.search-limit-note{padding:8px;text-align:center;color:var(--muted);font-size:11px}
.search-loading{display:flex;align-items:center;justify-content:center;gap:14px;min-height:220px;color:#d7e5f5}
.search-loading>div{display:grid;gap:3px}
.search-loading small{color:var(--muted);font-size:11px}
.search-spinner{width:28px;height:28px;border:3px solid #ffffff14;border-top-color:var(--accent);border-radius:50%;animation:searchSpin .8s linear infinite}
@keyframes searchSpin{to{transform:rotate(360deg)}}
html[data-theme="light"] .global-search{border-color:#d8e2ec;background:#f8fafc;box-shadow:inset 0 1px 0 #fff}
html[data-theme="light"] .global-search:focus-within{border-color:#58a9be;background:#fff;box-shadow:0 0 0 3px #0891b215}
html[data-theme="light"] .global-search input{color:#1f2f43}
html[data-theme="light"] .global-search input::placeholder{color:#8291a3}
html[data-theme="light"] .global-search-submit{border-left-color:#dce5ee;background:#eef4f8;color:#4d6279}
html[data-theme="light"] .global-search-submit:hover{background:#e3eef4;color:#17384a}
html[data-theme="light"] .search-summary{border-bottom-color:#dce5ee}
html[data-theme="light"] .search-support span,html[data-theme="light"] .search-match-badge{border-color:#dce5ee;background:#f5f8fb;color:#65778c}
html[data-theme="light"] .search-notice{border-color:#d2a93d55;background:#fff9e8;color:#846d36}
html[data-theme="light"] .search-notice strong{color:#6e581f}
html[data-theme="light"] .search-result{border-color:#e0e7ef;background:#fff}
html[data-theme="light"] .search-result:hover{border-color:#bdccd9;background:#f9fbfd}
html[data-theme="light"] .search-result-title{color:#203248}
html[data-theme="light"] .search-result-snippet{color:#52667e}
html[data-theme="light"] .search-result-path{color:#78899c}
@media(max-width:1180px){.global-search{max-width:320px;margin-inline:10px}.global-search-submit{display:none}.top-actions{gap:5px}.top-actions .ghost{padding-inline:10px}}
@media(max-width:900px) and (min-width:761px){.global-search{max-width:250px;min-width:160px}.brand-copy strong{font-size:16px}.top-actions .ghost{font-size:12px;padding-inline:8px}}
@media(max-width:760px){.topbar{height:auto;min-height:62px;flex-wrap:wrap;padding:8px 10px 9px 12px}.brand{order:1}.mobile-nav-toggle{order:2;margin-left:auto}.global-search{order:3;flex:1 0 100%;max-width:none;min-width:0;width:100%;height:39px;margin:7px 0 0}.global-search-submit{display:block}.top-actions{order:4;top:calc(100% + 8px)}.search-summary{align-items:flex-start;flex-direction:column}.search-support{max-width:none;justify-content:flex-start}.search-result{grid-template-columns:1fr}.search-result-side{display:flex;justify-items:start;gap:10px;min-width:0;padding-left:48px}.search-result-snippet{font-size:11px}}
@media(max-width:480px){.global-search-submit{padding-inline:10px}.global-search input{font-size:12px}.search-result{padding:11px}.search-result-title-line{align-items:flex-start;flex-direction:column;gap:5px}.search-result-side{padding-left:0}.search-match-badge{font-size:9px}.search-summary h3{font-size:20px}}
@media(prefers-reduced-motion:reduce){.search-spinner{animation:none}.search-result{transition:none}}
