[hidden]{display:none!important}button:disabled{cursor:not-allowed;opacity:.5;transform:none!important}button,a,input,select,textarea{touch-action:manipulation}button:focus-visible,a:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--green-dark);outline-offset:3px}a.button{text-decoration:none}select{font:inherit;color:var(--ink);background:var(--white);padding:.65rem;border:1px solid var(--line);border-radius:9px;max-width:100%}.header-actions{display:flex;gap:.5rem;align-items:center}.status-filter{font-size:.8rem;display:flex;align-items:center;gap:.5rem}.content-toolbar{flex-wrap:wrap}.admin-page,.admin-main{min-width:0}#admin-alert{margin:1rem 2rem}#pad-title{overflow-wrap:anywhere}#editor{background:var(--white);color:var(--ink)}.file-actions a{color:var(--muted);display:inline-flex;padding:.45rem;align-items:center;min-height:44px}.file-actions button,.icon-button,.row-menu{min-width:44px;min-height:44px}.file-row{grid-template-columns:42px minmax(0,1fr) auto}.file-meta strong{overflow-wrap:anywhere}.upload-item{padding:1rem 0;font-size:.8rem;overflow-wrap:anywhere}.upload-item progress{width:100%;accent-color:var(--green-dark)}.upload-item p{margin:.3rem 0}.muted{color:var(--muted)}.error-text{color:var(--danger)}.field textarea{width:100%;min-height:140px;background:var(--paper);color:var(--ink);border:1px solid var(--line);padding:1rem;border-radius:10px}.field select{width:100%}.dialog-body dl{margin:0}.dialog-body dl>div{display:flex;justify-content:space-between;gap:1rem;padding:.7rem 0;border-bottom:1px solid var(--line)}.dialog-body dd{margin:0;text-align:right;overflow-wrap:anywhere}.dialog-body dt{color:var(--muted)}.dialog-body p{line-height:1.6;overflow-wrap:anywhere}.dialog-body .action-list{display:grid;gap:.75rem;margin-top:1.3rem}#dialog-feedback{flex-shrink:0;margin:.5rem 1.5rem;max-height:160px;overflow:auto}.inline-alert.success{background:var(--green-soft);color:var(--green-dark);border-color:var(--green-dark)}.button.danger{background:var(--danger);color:white}.metric-card strong{overflow-wrap:anywhere}.format-bars{padding:0 1.5rem 1.5rem}.format-bars li{display:grid;grid-template-columns:1fr auto;gap:.5rem;margin-bottom:1rem;font-size:.8rem}.format-bars progress{grid-column:1/-1;width:100%;accent-color:var(--green-dark)}.storage-total{text-align:center;padding:1.5rem;font-size:2rem;font-weight:800}.storage-total small{display:block;font-size:.75rem;color:var(--muted);font-weight:400}.timeline p{overflow-wrap:anywhere}.timeline time{white-space:normal;text-align:right}.table-footer button{min-width:44px;min-height:44px}.preview-shell{max-height:95dvh}.preview-shell header{flex-shrink:0}#preview-tools{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.5rem 1rem;background:var(--white)}#preview-tools:empty{display:none}#preview-tools button{border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);min-height:44px;padding:.5rem 1rem}#preview-content{overflow:auto;min-height:200px;padding:1rem;text-align:center}#preview-content canvas{display:block;margin:auto;max-width:none;background:white}#preview-content img,#preview-content video{max-width:100%;max-height:65dvh;object-fit:contain}#preview-content audio{width:min(100%,600px)}#preview-content pre{text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink);font-family:var(--mono)}#preview-feedback{margin:.5rem 1rem}.preview-shell header h2{overflow-wrap:anywhere;font-size:1rem}.preview-shell header>div{min-width:0}.preview-shell header button{white-space:nowrap}.empty-state{padding:2rem;text-align:center;color:var(--muted)}.user-card p,.profile-summary p{overflow-wrap:anywhere}.profile-summary{min-width:0}.user-grid>.empty-state{grid-column:1/-1}.field input,.search input{color:var(--ink)}.login-box .theme-toggle{display:block;margin:auto}.dialog-head button{flex-shrink:0}#dialog-title{overflow-wrap:anywhere}.admin-user>div{min-width:0}.admin-user strong{overflow:hidden;text-overflow:ellipsis}.save-state{white-space:nowrap}
[data-theme=dark]{color-scheme:dark;--ink:#e2eee8;--muted:#9db2a7;--line:#344b40;--paper:#101c16;--white:#192b21;--green-dark:#55e2b1;--green-soft:#203e32;--navy:#254a38;--shadow:0 22px 60px #0004;--danger:#e87676}
[data-theme=dark] .field input,[data-theme=dark] .slug-field,[data-theme=dark] .drop-zone,[data-theme=dark] .search,[data-theme=dark] .filter-group,[data-theme=dark] .button.subtle,[data-theme=dark] .dialog-card,[data-theme=dark] .admin-sidebar,[data-theme=dark] .admin-topbar,[data-theme=dark] .user-card,[data-theme=dark] .table-card,[data-theme=dark] .table-footer,[data-theme=dark] .preview-shell,[data-theme=dark] .filter,[data-theme=dark] .toast{background:var(--white);color:var(--ink)}
[data-theme=dark] .data-card,[data-theme=dark] .metric-card,[data-theme=dark] .editor-card,[data-theme=dark] .files-card,[data-theme=dark] .user-card>button,[data-theme=dark] .dialog-body select{background:var(--white);color:var(--ink)}
[data-theme=dark] .dialog-actions button:not(.primary):not(.danger){background:var(--paper);color:var(--ink)}
[data-theme=dark] .filter.active,[data-theme=dark] .admin-nav button.active,[data-theme=dark] .metric-card.accent{background:var(--green-soft);color:var(--ink)}[data-theme=dark] .button.primary:hover{background:#27654b;color:#fff}[data-theme=dark] .connection-banner{background:#483919;color:#ffe1a2;border-color:#806738}[data-theme=dark] .inline-alert:not(.success){background:#442526;color:#ffc9c9;border-color:#864448}[data-theme=dark] th,[data-theme=dark] .preview-shell main,[data-theme=dark] .preview-shell footer{background:var(--paper);color:var(--muted)}[data-theme=dark] .dialog-head,[data-theme=dark] .dialog-actions{background:var(--white)}[data-theme=dark] .admin-nav button,[data-theme=dark] .user-card button{color:var(--ink)}[data-theme=dark] .user-avatar,[data-theme=dark] .profile-avatar{background:var(--green-soft);color:var(--green-dark)}[data-theme=dark] .button.subtle:hover{background:var(--paper)}[data-theme=dark] .table-footer button{background:var(--paper);color:var(--ink)}
@media(max-width:780px){.header-actions{gap:0}.header-actions .text-button{font-size:.72rem}.admin-topbar{gap:.6rem}.admin-topbar h1{font-size:1.25rem}.admin-topbar .topbar-actions{gap:.25rem}.workspace-head{align-items:flex-start;gap:1rem}.workspace-actions{flex-wrap:wrap;justify-content:flex-end}.workspace-head h1{font-size:1.65rem}.presence{font-size:.7rem}.content-toolbar .search{width:100%}.status-filter{width:100%}.status-filter select{flex:1}.file-list{padding:0 .75rem}.file-row{gap:.4rem;grid-template-columns:32px minmax(0,1fr) auto}.file-type{width:32px;height:36px}.file-actions{gap:0}.file-actions button,.file-actions a{padding:.3rem;min-width:36px}.section-toolbar{gap:.5rem;flex-wrap:wrap}.table-footer{gap:.5rem;flex-wrap:wrap}.preview-shell header{align-items:flex-start;gap:.5rem}.preview-shell header>div:last-child{display:flex;flex-wrap:wrap;justify-content:flex-end}.preview-shell header button{font-size:.7rem}#preview-tools{font-size:.75rem}.admin-sidebar.open{z-index:30}.admin-user strong{max-width:115px}}
@media(max-width:780px){.table-footer button:nth-child(3),.table-footer button:nth-child(4){display:inline-flex}[data-theme=dark] #admin-pads tr{background:var(--white)}.table-footer span{align-self:center}}
body.dialog-open{overflow:hidden}.preview-shell{display:flex;flex-direction:column}#preview-content{flex:1 1 68vh;min-height:0}#preview-tools,.preview-shell footer{flex-shrink:0}.mobile-back{display:none}button.theme-toggle{color:var(--ink)}.field .pin-field{text-transform:uppercase}
@media(max-width:780px){.mobile-back{display:inline-flex}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
