/* NAS im Browser: nur was admin.css nicht schon mitbringt */

.ax-grow { flex: 1; min-width: 0; }
.web { padding-bottom: 120px; }
.web-ich { color: var(--ax-label-2); font-size: 14px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.ax-out { border: 0; background: none; font: inherit; cursor: pointer; }
.web-laden { display: grid; place-items: center; padding: 120px 0; }
.web-laden .ax-spinner { width: 26px; height: 26px; }
code { font-family: var(--ax-mono); font-size: .92em; }

/* Anmelden */
.web-login { min-height: calc(100dvh - var(--ax-nav-h) - 40px); display: grid; place-items: center; padding: 24px 0; }
.web-login-karte { width: min(380px, 100%); padding: 28px 26px 22px; display: grid; gap: 14px; border-radius: var(--ax-r-xl); box-shadow: var(--ax-shadow-2); }
.web-login-mark { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; margin: 0 auto 2px; color: #fff; background: linear-gradient(160deg, #5aa2ff, #0a6cff 55%, #4b3fe0); box-shadow: inset 0 .5px 0 rgba(255,255,255,.45), 0 6px 18px color-mix(in srgb, #0a6cff 35%, transparent); }
.web-login-mark svg { width: 30px; height: 30px; }
.web-login-kopf { text-align: center; display: grid; gap: 6px; margin-bottom: 4px; }
.web-login-kopf p { margin: 0; color: var(--ax-label-2); font-size: 14px; line-height: 1.4; }
.web-login .ax-btn--lg { width: 100%; margin-top: 2px; }
.web-login-fuss { margin: 2px 0 0; text-align: center; font-size: 13px; color: var(--ax-label-3); }
.web-fehler { margin: -4px 0 -6px; min-height: 18px; color: var(--ax-red-text); font-size: 13.5px; font-weight: 550; }
.web-wackeln { animation: web-wackeln 380ms var(--ax-ease); }
@keyframes web-wackeln { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 45% { transform: translateX(7px); } 70% { transform: translateX(-4px); } 85% { transform: translateX(2px); } }

/* Laufwerke */
.web-platz { margin: -6px 0 22px; max-width: 420px; }
.web-txt { display: grid; gap: 1px; flex: 1; min-width: 0; }
.web-txt b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-txt small { color: var(--ax-label-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-laufwerke a.ax-row:hover { background: var(--ax-fill-2); }
.ax-list-foot code { user-select: all; }

/* Kopf eines Ordners */
.web-kopf { align-items: flex-end; }
.web-kopf-txt { min-width: 0; flex: 1 1 320px; }
.web-krumen { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-bottom: 6px; font-size: 14px; }
.web-krumen a { color: var(--ax-accent-text); text-decoration: none; border-radius: 6px; padding: 1px 4px; margin: 0 -4px; max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-krumen a:hover { background: var(--ax-fill-2); }
.web-krumen span { color: var(--ax-label-3); }
.web-titel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-kopf .ax-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Leiste mit Suche, Sortierung und Auswahl */
.web-leiste { margin: 0 calc(-1 * var(--ax-pad)) 10px; }
.web-leiste-in { min-height: 58px; padding: 10px var(--ax-pad); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.web-suche { flex: 1 1 220px; max-width: 420px; }
.web-sort { flex: none; }
.web-auswahl { display: flex; align-items: center; gap: 8px; width: 100%; }
.web-auswahl .ax-btn--plain { font-weight: 600; }

/* Liste */
.web-liste { overflow: visible; }
.web-zeile { position: relative; display: grid; grid-template-columns: 26px 30px minmax(0, 1fr) 150px 100px 34px; align-items: center; gap: 12px; padding: 7px 10px 7px 14px; min-height: 52px; border-radius: 0; }
.web-zeile + .web-zeile::before { content: ""; position: absolute; top: 0; left: 82px; right: 0; height: .5px; background: var(--ax-sep); }
.web-zeile[data-name]:hover { background: var(--ax-fill-2); }
.web-zeile.is-gewaehlt { background: color-mix(in srgb, var(--ax-accent) 11%, transparent) !important; }
.web-zeile.is-ziel { background: color-mix(in srgb, var(--ax-accent) 16%, transparent) !important; box-shadow: inset 0 0 0 2px var(--ax-accent); }
.web-liste > .web-zeile:first-child { border-radius: var(--ax-r) var(--ax-r) 0 0; }
.web-liste > .web-zeile:last-child { border-radius: 0 0 var(--ax-r) var(--ax-r); }
.web-spalten { min-height: 38px; font-size: 12px; font-weight: 600; color: var(--ax-label-2); }
.web-spalten span:nth-child(5) { text-align: right; }
.web-name { display: grid; gap: 1px; min-width: 0; color: var(--ax-label) !important; text-decoration: none; padding: 4px 0; }
.web-name b { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-name:hover b { color: var(--ax-accent-text); }
.web-name:focus-visible { outline: 2px solid var(--ax-accent); outline-offset: 2px; border-radius: 4px; }
.web-meta-mobil { display: none; color: var(--ax-label-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-datum, .web-groesse { color: var(--ax-label-2); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.web-groesse { text-align: right; }
.web-sym svg { width: 17px; height: 17px; }
.web-zeile-menu { color: var(--ax-label-2); opacity: .7; }
.web-zeile:hover .web-zeile-menu, .web-zeile-menu[aria-expanded="true"] { opacity: 1; }

/* Auswahlkästchen */
.web-check { display: grid; place-items: center; width: 26px; height: 26px; cursor: pointer; }
.web-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.web-check span { width: 19px; height: 19px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ax-sep-strong); transition: background-color var(--ax-fast) ease, box-shadow var(--ax-fast) ease; }
.web-check input:checked + span { background: var(--ax-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5'/%3E%3C/svg%3E") center/100% no-repeat; box-shadow: none; }
.web-check input:focus-visible + span { box-shadow: inset 0 0 0 1.5px var(--ax-sep-strong), 0 0 0 3px color-mix(in srgb, var(--ax-accent) 40%, transparent); }
@media (hover: hover) {
  .web-zeile[data-name] .web-check span { opacity: .55; }
  .web-zeile[data-name]:hover .web-check span, .web-zeile .web-check input:checked + span, .web-liste:has(input[data-wahl]:checked) .web-check span { opacity: 1; }
}

.web-leer-sym { width: 64px; height: 64px; color: var(--ax-label-3); }
.web-leer-sym svg { width: 100%; height: 100%; }

/* Menü */
.web-menu { min-width: 220px; }
.web-menu button.ax-more-item { width: 100%; border: 0; background: none; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.web-menu .web-gefahr, .web-menu .web-gefahr svg { color: var(--ax-red-text) !important; }
.web-menu-trenner { border: 0; height: .5px; background: var(--ax-sep); margin: 4px 8px; }

/* Rückfrage mit Eingabe */
.web-frage-feld { margin-top: 12px; width: 100%; }
.ax-alert .web-frage { margin: 0; }

/* Hochladen */
.web-uploads { position: fixed; z-index: 55; right: 16px; bottom: calc(16px + var(--ax-safe-b)); width: min(380px, calc(100vw - 32px)); max-height: min(60vh, 520px); display: flex; flex-direction: column; border-radius: var(--ax-r-l); background: var(--ax-bg-2); box-shadow: var(--ax-shadow-3); overflow: hidden; animation: web-hoch 260ms var(--ax-ease-out); }
.web-uploads[hidden] { display: none; }
@keyframes web-hoch { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.web-uploads-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 10px 16px; box-shadow: inset 0 -.5px 0 var(--ax-sep); font-size: 14px; }
.web-uploads-liste { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; }
.web-up { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; }
.web-up-sym { width: 26px; height: 26px; border-radius: 6px; }
.web-up-sym svg { width: 15px; height: 15px; }
.web-up-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.web-up-txt b { font-size: 13.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-up-txt small { font-size: 12px; color: var(--ax-label-2); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-up .ax-meter { height: 4px; }
.web-up .ax-meter i { background: var(--ax-accent); transition: width .2s linear; }
.web-up.is-fertig .ax-meter, .web-up.is-uebersprungen .ax-meter, .web-up.is-abgebrochen .ax-meter, .web-up.is-fehler .ax-meter, .web-up.is-wartet .ax-meter { display: none; }
.web-up.is-fehler small { color: var(--ax-red-text); }
.web-up.is-uebersprungen, .web-up.is-abgebrochen { opacity: .6; }
.web-up-ok { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ax-green); color: #fff; flex: none; margin-right: 6px; }
.web-up-ok svg { width: 14px; height: 14px; }

/* Ablegen */
.web-drop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--ax-bg) 70%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; animation: web-ein 160ms ease; }
.web-drop[hidden] { display: none; }
.web-drop > div { width: 100%; height: 100%; border-radius: var(--ax-r-xl); border: 2.5px dashed var(--ax-accent); display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--ax-accent-text); background: color-mix(in srgb, var(--ax-accent) 6%, transparent); }
.web-drop svg { width: 48px; height: 48px; }
.web-drop b { font-size: 20px; }
.web-drop span { color: var(--ax-label-2); }
@keyframes web-ein { from { opacity: 0; } }

/* Schmal und Handy */
@media (max-width: 760px) {
  .web-zeile { grid-template-columns: 26px 30px minmax(0, 1fr) 34px; gap: 10px; padding-left: 10px; }
  .web-zeile + .web-zeile::before { left: 76px; }
  .web-spalten { display: none; }
  .web-liste > .web-zeile:nth-child(2) { border-radius: var(--ax-r) var(--ax-r) 0 0; }
  .web-liste > .web-zeile:nth-child(2)::before { display: none; }
  .web-datum, .web-groesse { display: none; }
  .web-meta-mobil { display: block; }
  .web-weg-mobil { display: none; }
  .web-suche { max-width: none; }
  .web-kopf .ax-head-actions { width: 100%; justify-content: flex-end; }
}
@media (max-width: 520px) {
  .ax-out span { display: none; }
  .web-leiste-in { gap: 8px; }
  .web-sort { width: 100%; }
  .web-sort > button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .web-uploads, .web-drop { animation: none; } }
