/* ============================================================
   archiv.leipzig-tonstudio.de — Tonstudio Look (Etappe 3, komplett)
   Body:   Hind 400, 16px, line-height 1.6em, color #282834
   H1/H2:  Montserrat 900
   Sub:    Architects Daughter
   Brand:  #DC2751
   Dark:   #282834
   ============================================================ */

:root {
    --color-text:        #282834;
    --color-bg:          #f7f7f9;
    --color-surface:     #ffffff;
    --color-border:      #e1e1e7;
    --color-border-strong: #c8c8d0;
    --color-brand:       #DC2751;
    --color-brand-dark:  #b51e41;
    --color-muted:       #6b6b78;
    --color-muted-bg:    #efeff3;
    --color-success-bg:  #e6f6ec;
    --color-success-fg:  #1f5e34;
    --color-error-bg:    #fdecef;
    --color-error-fg:    #8a1531;
    --color-warning-bg:  #fff5e0;
    --color-warning-fg:  #6f4d00;

    --font-main:        'Hind', sans-serif;
    --font-headers:     'Montserrat', sans-serif;
    --font-subheaders:  'Architects Daughter', cursive;

    --radius:    8px;
    --radius-lg: 12px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6em;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-brand); text-decoration: none; }
a:hover { color: var(--color-brand-dark); text-decoration: underline; }

code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    background: var(--color-muted-bg);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--color-text);
}

.muted { color: var(--color-muted); font-size: 14px; }

/* ============ Auth (Login, 2FA, Setup) ============ */
.auth-box {
    max-width: 420px;
    margin: 80px auto;
    padding: 40px 36px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.auth-box-wide { max-width: 540px; }
.auth-box h1 {
    font-family: var(--font-headers);
    font-weight: 900;
    font-size: 32px;
    line-height: 1.3em;
    margin: 0 0 4px;
}
.auth-box h2 {
    font-family: var(--font-headers);
    font-weight: 900;
    font-size: 22px;
    line-height: 1.3em;
    margin: 24px 0 12px;
}
.auth-box .subtitle {
    font-family: var(--font-subheaders);
    font-size: 16px;
    color: var(--color-muted);
    margin: 0 0 28px;
}
.auth-box label { display: block; margin-bottom: 16px; }
.auth-box label > span {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}
.auth-box input[type="text"],
.auth-box input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 16px;
    background: #fff;
    color: var(--color-text);
    transition: border-color .15s;
}
.auth-box input:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(220, 39, 81, 0.12);
}
.code-input {
    text-align: center;
    font-family: ui-monospace, monospace !important;
    font-size: 24px !important;
    letter-spacing: 8px;
}

/* ============ Buttons ============ */
.btn-primary {
    display: inline-block;
    width: 100%;
    padding: 14px 28px;
    margin-top: 8px;
    background: var(--color-brand);
    color: #fff;
    border: none;
    border-radius: 32px;
    font-family: var(--font-headers);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s;
    text-align: center;
}
.btn-primary:hover { background: var(--color-brand-dark); color: #fff; text-decoration: none; }

.btn-sec {
    display: inline-block;
    padding: 8px 18px;
    background: #fff;
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    border-radius: 24px;
    font-family: var(--font-headers);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
    line-height: 1.2;
    text-decoration: none;
}
.btn-sec:hover {
    background: var(--color-text);
    color: #fff;
    border-color: var(--color-text);
    text-decoration: none;
}
.btn-sec.btn-danger:hover {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: #fff;
}
.btn-sec-dark {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}
.btn-sec-dark:hover {
    background: #fff;
    color: var(--color-text);
    border-color: #fff;
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-muted);
    font-family: var(--font-main);
    font-size: 14px;
    cursor: pointer;
    padding: 6px 12px;
    text-decoration: underline;
}
.btn-link:hover { color: var(--color-text); }

.auth-foot { margin-top: 24px; text-align: center; font-size: 14px; }

/* ============ Alerts ============ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}
.alert-error    { background: var(--color-error-bg);   color: var(--color-error-fg); }
.alert-success  { background: var(--color-success-bg); color: var(--color-success-fg); }
.alert-warning  { background: var(--color-warning-bg); color: var(--color-warning-fg); }

/* ============ Setup-spezifisch ============ */
.qr-box {
    display: flex;
    justify-content: center;
    margin: 24px 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.qr-box img, .qr-box canvas { display: block; }
.manual-secret {
    margin: 16px 0;
    padding: 12px 16px;
    background: var(--color-muted-bg);
    border-radius: var(--radius);
    font-size: 14px;
}
.manual-secret summary { cursor: pointer; font-weight: 700; }
.secret-code {
    display: block;
    margin: 8px 0;
    padding: 10px;
    word-break: break-all;
    font-size: 15px;
    background: #fff;
    border: 1px solid var(--color-border);
}

/* ============ Topbar ============ */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
    background: var(--color-text);
    color: #fff;
}
.topbar-brand {
    font-family: var(--font-headers);
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 0.5px;
}
.topbar-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
}
.topbar-nav a { color: #fff; }
.topbar-nav a:hover { color: var(--color-brand); }
.topbar-nav a.active { color: var(--color-brand); font-weight: 700; }

.storage-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}
.storage-bar {
    display: inline-block;
    width: 80px;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    overflow: hidden;
}
.storage-bar-fill {
    display: block;
    height: 100%;
    background: var(--color-brand);
    transition: width .3s;
}

.badge {
    display: inline-block;
    background: var(--color-brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: 4px;
}

/* ============ Filemanager ============ */
.fm {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 24px;
}

.fm-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.breadcrumb {
    font-family: var(--font-headers);
    font-weight: 600;
    font-size: 16px;
    color: var(--color-muted);
}
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-brand); text-decoration: none; }
.breadcrumb .current { color: var(--color-text); }
.breadcrumb .sep { margin: 0 8px; color: var(--color-border-strong); }

.fm-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.fm-filter {
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    font-family: var(--font-main);
    font-size: 14px;
    width: 200px;
    background: #fff;
}
.fm-filter:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(220, 39, 81, 0.10);
}

.view-toggle {
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 2px;
}
.view-toggle a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 32px;
    color: var(--color-muted);
    border-radius: 20px;
    transition: all .15s;
}
.view-toggle a:hover { color: var(--color-text); text-decoration: none; }
.view-toggle a.active {
    background: var(--color-text);
    color: #fff;
}

.fm-bulkbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--color-text);
    color: #fff;
    border-radius: var(--radius);
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.bulkbar-count { font-weight: 700; margin-right: 8px; }
.fm-bulkbar .btn-sec { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.fm-bulkbar .btn-sec:hover { background: #fff; color: var(--color-text); }
.fm-bulkbar .btn-sec.btn-danger:hover { background: var(--color-brand); border-color: var(--color-brand); }
.fm-bulkbar .btn-link { color: rgba(255,255,255,0.7); }
.fm-bulkbar .btn-link:hover { color: #fff; }

/* Drop-Zone (fester Bereich oberhalb der Dateiliste) */
.fm-droparea {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    margin-bottom: 16px;
    border: 2px dashed var(--color-border-strong);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    color: var(--color-muted);
    font-size: 15px;
    transition: border-color .2s, background .2s, color .2s;
}
.fm-droparea svg { flex-shrink: 0; }
.fm-droparea.drag-active {
    border-color: var(--color-brand);
    background: rgba(220, 39, 81, 0.04);
    color: var(--color-brand);
}
.droparea-btn {
    background: none;
    border: none;
    color: var(--color-brand);
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}
.droparea-btn:hover { color: var(--color-brand-dark); }

/* Tabelle (Liste) */
.fm-table-wrap {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: visible;
}
.fm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.fm-table thead tr:first-child th:first-child { border-top-left-radius: var(--radius-lg); }
.fm-table thead tr:first-child th:last-child  { border-top-right-radius: var(--radius-lg); }
.fm-table tbody tr:last-child td:first-child  { border-bottom-left-radius: var(--radius-lg); }
.fm-table tbody tr:last-child td:last-child   { border-bottom-right-radius: var(--radius-lg); }

.fm-table th {
    text-align: left;
    font-family: var(--font-headers);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-muted);
    padding: 14px 12px;
    border-bottom: 1px solid var(--color-border);
    background: #fafafc;
}
.fm-table th a { color: var(--color-muted); text-decoration: none; }
.fm-table th a:hover { color: var(--color-text); }

.fm-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.fm-table tr:last-child td { border-bottom: none; }
.fm-table tr:hover td { background: #fafafc; }

.col-check  { width: 36px; }
.col-icon   { width: 56px; }
.col-size   { width: 110px; color: var(--color-muted); white-space: nowrap; }
.col-mtime  { width: 140px; color: var(--color-muted); white-space: nowrap; }
.col-actions{ width: 56px; text-align: right; }

.fm-link { color: var(--color-text); font-weight: 400; }
.fm-link:hover { color: var(--color-brand); text-decoration: none; cursor: pointer; }

.fm-empty td {
    text-align: center;
    padding: 60px 20px !important;
    color: var(--color-muted);
    font-style: italic;
}

/* Icons & Thumbnails */
.ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--color-muted-bg);
    color: var(--color-muted);
}
.ic-folder  { background: #fff4e0; color: #b87f00; }
.ic-audio   { background: #f3e8ff; color: #6b21a8; }
.ic-image   { background: #e0f2fe; color: #075985; }
.ic-video   { background: #fee2e2; color: #991b1b; }
.ic-archive { background: #ecfccb; color: #4d7c0f; }
.ic-doc     { background: #fef3c7; color: #92400e; }
.thumb {
    width: 36px; height: 36px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
}
.ic-grid {
    width: 64px !important; height: 64px !important;
    border-radius: 12px !important;
}
.ic-grid svg { width: 32px; height: 32px; }

/* Row-Aktionen-Menü */
.row-menu { position: relative; display: inline-block; }
.row-menu summary {
    list-style: none;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--color-muted);
    font-size: 18px;
    line-height: 1;
}
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu summary:hover {
    background: var(--color-muted-bg);
    color: var(--color-text);
}
.row-menu[open] summary {
    background: var(--color-muted-bg);
    color: var(--color-text);
}
.row-menu ul {
    position: absolute;
    right: 0;
    top: 100%;
    margin: 4px 0 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(40, 40, 52, 0.12);
    min-width: 160px;
    z-index: 50;
}
.fm-table tbody tr:nth-last-child(-n+2) .row-menu ul {
    top: auto;
    bottom: 100%;
    margin: 0 0 4px 0;
}
.row-menu li { display: block; }
.row-menu li button,
.row-menu li a {
    display: block;
    width: 100%;
    padding: 8px 16px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--color-text);
    cursor: pointer;
    text-decoration: none;
}
.row-menu li button:hover,
.row-menu li a:hover {
    background: var(--color-muted-bg);
    color: var(--color-text);
    text-decoration: none;
}

/* ============ Grid-Ansicht ============ */
.fm-grid-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--color-muted);
}
.grid-sort-label { font-weight: 700; }
.fm-grid-toolbar a {
    color: var(--color-muted);
    padding: 4px 10px;
    border-radius: 16px;
}
.fm-grid-toolbar a:hover { color: var(--color-text); background: var(--color-muted-bg); text-decoration: none; }
.fm-grid-toolbar a.active {
    background: var(--color-text);
    color: #fff;
}

.fm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.grid-item {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: border-color .15s, box-shadow .15s;
}
.grid-item:hover {
    border-color: var(--color-border-strong);
    box-shadow: 0 2px 8px rgba(40, 40, 52, 0.06);
}
.grid-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 120px;
    background: var(--color-muted-bg);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
}
.grid-img {
    max-width: 100%; max-height: 100%;
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}
.grid-thumb-folder { background: #fff4e0; }
.grid-name {
    font-size: 13px;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--color-text);
}
.grid-meta {
    font-size: 11px;
    color: var(--color-muted);
    margin-top: 2px;
}
.grid-check {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255,255,255,0.95);
    border-radius: 4px;
    padding: 2px;
    cursor: pointer;
}
.grid-menu {
    position: absolute !important;
    top: 4px;
    right: 4px;
}
.grid-menu summary {
    background: rgba(255,255,255,0.95);
    border-radius: 4px;
}
.fm-empty-grid {
    padding: 80px 20px;
    text-align: center;
    color: var(--color-muted);
    font-style: italic;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

/* ============ Upload-Queue ============ */
.upload-queue {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
}
.upload-queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border);
    background: #fafafc;
    font-size: 14px;
}
.upload-queue-body {
    max-height: 280px;
    overflow-y: auto;
}
.uq-row {
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border);
}
.uq-row:last-child { border-bottom: none; }
.uq-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 12px;
}
.uq-name {
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}
.uq-status {
    font-size: 12px;
    color: var(--color-muted);
    white-space: nowrap;
}
.uq-bar {
    height: 4px;
    background: var(--color-muted-bg);
    border-radius: 2px;
    overflow: hidden;
}
.uq-bar-fill {
    height: 100%;
    background: var(--color-brand);
    transition: width .2s;
}
.uq-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 12px;
    color: var(--color-muted);
}
.uq-row.uq-done .uq-bar-fill { background: var(--color-success-fg); }
.uq-row.uq-done .uq-status   { color: var(--color-success-fg); }
.uq-row.uq-error .uq-bar-fill { background: var(--color-error-fg); }
.uq-row.uq-error .uq-status   { color: var(--color-error-fg); font-weight: 700; }

/* ============ Modals ============ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(40, 40, 52, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
}
.modal[hidden] { display: none; }
.modal-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-box h2 {
    font-family: var(--font-headers);
    font-weight: 900;
    font-size: 22px;
    line-height: 1.3em;
    margin: 0 0 16px;
}
.modal-box label { display: block; margin-bottom: 16px; }
.modal-box label > span {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}
.modal-box input[type="text"],
.modal-box input[type="file"],
.modal-box select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 16px;
    background: #fff;
    color: var(--color-text);
}
.modal-box input:focus,
.modal-box select:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(220, 39, 81, 0.12);
}
.modal-box .muted { color: var(--color-muted); font-size: 13px; line-height: 1.5; margin: 0 0 16px; }
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 8px;
}
.modal-actions .btn-primary { width: auto; padding: 12px 28px; margin: 0; }

/* ============ Viewer (Lightbox / Player) ============ */
.viewer {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 26, 0.96);
    z-index: 200;
    display: flex;
    flex-direction: column;
}
.viewer[hidden] { display: none; }
.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(0,0,0,0.3);
    color: #fff;
}
.viewer-title {
    font-family: var(--font-headers);
    font-weight: 600;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60vw;
}
.viewer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.viewer-close {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.viewer-close:hover { background: rgba(255,255,255,0.1); }
.viewer-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 0;
}
.viewer-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.viewer-video {
    max-width: 100%;
    max-height: 100%;
    display: block;
    background: #000;
}
.viewer-audio-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    color: #fff;
    max-width: 600px;
    width: 100%;
}
.viewer-audio-icon {
    color: var(--color-brand);
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    width: 160px; height: 160px;
    display: flex; align-items: center; justify-content: center;
}
.viewer-audio-title {
    font-family: var(--font-headers);
    font-weight: 600;
    font-size: 18px;
    text-align: center;
}
.viewer-audio {
    width: 100%;
    max-width: 500px;
}
.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    line-height: 1;
    font-family: var(--font-headers);
}
.viewer-nav:hover { background: rgba(255,255,255,0.2); }
.viewer-prev { left: 24px; }
.viewer-next { right: 24px; }

/* ============ Mobile ============ */
@media (max-width: 720px) {
    .topbar { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
    .topbar-nav { gap: 12px; font-size: 13px; flex-wrap: wrap; }
    .storage-info { order: 10; flex-basis: 100%; }
    .fm { padding: 0 12px; margin: 16px auto; }
    .fm-toolbar { flex-direction: column; align-items: stretch; }
    .fm-actions { justify-content: space-between; }
    .fm-filter { flex: 1; width: auto; }
    .col-mtime { display: none; }
    .col-size  { width: 80px; font-size: 12px; }
    .modal-box { padding: 24px; }
    .auth-box { margin: 24px 16px; padding: 28px 24px; }
    .fm-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
    .grid-thumb { height: 100px; }
    .viewer-title { max-width: 40vw; }
    .viewer-nav { width: 44px; height: 44px; font-size: 28px; }
    .viewer-prev { left: 8px; }
    .viewer-next { right: 8px; }
}
