:root {
	--bg: #121212;
	--surface: #171717;
	--surface-2: #1e1e1e;
	--surface-3: #262626;
	--border: #2c2c2c;
	--border-strong: #3a3a3a;
	--text: #e8e8e8;
	--muted: #a0a0a0;
	--faint: #707070;
	--accent: #004f8f;
	--accent-hover: #003f73;
	--accent-soft: rgba(0, 79, 143, 0.18);
	--link: #6cb0e0;
	--green: #7fbf8f;
	--amber: #c9a86a;
	--red: #d97b7b;
	--radius: 16px;
	--radius-sm: 12px;
	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
	--mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
	color-scheme: dark;
}

[data-theme="light"] {
	--bg: #f6f6f6;
	--surface: #ffffff;
	--surface-2: #f1f1f1;
	--surface-3: #e8e8e8;
	--border: #dedede;
	--border-strong: #c6c6c6;
	--text: #1b1b1b;
	--muted: #666666;
	--faint: #8a8a8a;
	--accent: #004f8f;
	--accent-hover: #003f73;
	--accent-soft: rgba(0, 79, 143, 0.10);
	--link: #004f8f;
	--green: #2f7d32;
	--amber: #8a6d1f;
	--red: #b3261e;
	color-scheme: light;
}

* {
	box-sizing: border-box;
}

html {
	height: 100%;
}

body {
	margin: 0;
	min-height: 100%;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.app {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

a {
	color: inherit;
}

button {
	font-family: inherit;
}

::selection {
	background: var(--accent-soft);
}

::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-thumb {
	background: var(--surface-3);
	border-radius: 99px;
	border: 2px solid transparent;
	background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--border-strong);
	background-clip: padding-box;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* top bar */

.topbar {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--bg);
	border-bottom: 1px solid var(--border);
}

.topbar-inner {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 1180px;
	min-height: 56px;
	margin: 0 auto;
	padding: 9px 24px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	color: var(--text);
	text-decoration: none;
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: var(--radius-sm);
	background: var(--accent);
	color: #fff;
}

.brand-mark svg {
	width: 14px;
	height: 14px;
}

.brand-name {
	font-size: 15px;
	font-weight: 600;
}

.brand-version {
	color: var(--faint);
	font-family: var(--mono);
	font-size: 10.5px;
}

.crumbs {
	display: flex;
	align-items: center;
	gap: 1px;
	flex: 1 1 220px;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.crumbs::-webkit-scrollbar {
	display: none;
}

.crumb {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	max-width: 220px;
	padding: 4px 6px;
	border-radius: 4px;
	color: var(--muted);
	font-size: 13px;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.crumb:hover {
	background: var(--surface-2);
	color: var(--text);
}

.crumb.current {
	max-width: 320px;
	color: var(--text);
	font-weight: 500;
}

.crumb svg {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
	color: var(--faint);
}

.crumb-sep {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	color: var(--faint);
}

.crumb-sep svg {
	display: block;
	width: 12px;
	height: 12px;
}

.search {
	position: relative;
	flex: 0 1 220px;
	min-width: 140px;
}

.search input {
	width: 100%;
	padding: 7px 34px 7px 30px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text);
	font-family: inherit;
	font-size: 13px;
	outline: none;
}

.search input::placeholder {
	color: var(--faint);
}

.search input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 2px var(--accent-soft);
}

.search-icon {
	position: absolute;
	top: 50%;
	left: 9px;
	width: 14px;
	height: 14px;
	color: var(--faint);
	transform: translateY(-50%);
	pointer-events: none;
}

.search kbd {
	position: absolute;
	top: 50%;
	right: 8px;
	padding: 1px 4px;
	border: 1px solid var(--border);
	border-radius: 3px;
	background: var(--surface-2);
	color: var(--faint);
	font-family: var(--mono);
	font-size: 10px;
	transform: translateY(-50%);
	pointer-events: none;
}

.topbar-actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 0 0 auto;
}

/* buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 7px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--text);
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.btn:hover {
	border-color: var(--border-strong);
	background: var(--surface-2);
}

.btn svg {
	width: 15px;
	height: 15px;
}

.btn-primary {
	border-color: var(--accent);
	background: var(--accent);
	color: #fff;
}

.btn-primary:hover {
	border-color: var(--accent-hover);
	background: var(--accent-hover);
}

.btn-ghost {
	border-color: transparent;
	background: transparent;
	color: var(--muted);
}

.btn-ghost:hover {
	border-color: transparent;
	background: var(--surface-2);
	color: var(--text);
}

.btn-danger {
	border-color: var(--red);
	background: transparent;
	color: var(--red);
}

.btn-danger:hover {
	border-color: var(--red);
	background: var(--surface-2);
}

.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.btn-sm {
	padding: 5px 9px;
	font-size: 12px;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}

.icon-btn:hover {
	background: var(--surface-2);
	color: var(--text);
}

.icon-btn svg {
	width: 16px;
	height: 16px;
}

.icon-btn.sm {
	width: 26px;
	height: 26px;
	border-radius: 4px;
}

.icon-btn.sm svg {
	width: 14px;
	height: 14px;
}

.icon-btn.danger:hover {
	background: var(--surface-2);
	color: var(--red);
}

.user-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 4px;
	color: var(--text);
	font-size: 12.5px;
	font-weight: 500;
	white-space: nowrap;
}

.avatar {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
}

.readonly-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 30px;
	padding: 0 6px;
	color: var(--faint);
	font-size: 12px;
	white-space: nowrap;
}

.readonly-chip svg {
	width: 13px;
	height: 13px;
}

/* main */

.main {
	flex: 1;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 22px 24px 48px;
}

.summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.stats {
	display: flex;
	align-items: center;
	gap: 9px;
	color: var(--muted);
	font-size: 12.5px;
	flex-wrap: wrap;
}

.stats b {
	color: var(--text);
	font-weight: 500;
}

.stat-dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--faint);
}

.summary-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.segmented {
	display: inline-flex;
	gap: 1px;
	padding: 2px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
}

.segmented button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--faint);
	cursor: pointer;
}

.segmented button:hover {
	color: var(--text);
}

.segmented button.active {
	background: var(--surface-3);
	color: var(--text);
}

.segmented svg {
	width: 14px;
	height: 14px;
}

/* card + table */

.card {
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.table thead th {
	padding: 9px 14px;
	border-bottom: 1px solid var(--border);
	color: var(--faint);
	font-size: 15px;
	font-weight: 500;
	text-align: left;
	user-select: none;
}

.table th.col-size,
.table td.col-size {
	width: 100px;
	text-align: right;
}

.table th.col-time,
.table td.col-time {
	width: 150px;
}

.table th.col-actions,
.table td.col-actions {
	width: 96px;
	text-align: right;
}

.sort-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.sort-btn:hover,
th.sorted .sort-btn {
	color: var(--text);
}

.sort-btn .arrow {
	width: 11px;
	height: 11px;
	opacity: 0;
}

th.sorted .arrow {
	opacity: 1;
}

th.sorted.desc .arrow {
	transform: rotate(180deg);
}

.table tbody tr {
	border-bottom: 1px solid var(--border);
}

.table tbody tr:last-child {
	border-bottom: 0;
}

.table tbody tr:hover {
	background: var(--surface-2);
}

.table tbody tr[data-href] {
	cursor: pointer;
}

.table tbody td {
	padding: 6px 14px;
	font-size: 14px;
	vertical-align: middle;
}

.entry {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: var(--text);
	text-decoration: none;
}

.entry-icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	color: var(--muted);
}

.entry-icon svg {
	width: 17px;
	height: 17px;
}

.icon-dir {
	color: var(--link);
}

.name-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.entry-name {
	overflow: hidden;
	font-weight: 400;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.entry-ext {
	color: var(--faint);
}

.badge {
	flex: 0 0 auto;
	padding: 0 4px;
	border: 1px solid var(--border-strong);
	border-radius: 3px;
	color: var(--faint);
	font-size: 9.5px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.size {
	color: var(--muted);
	font-family: var(--mono);
	font-size: 11.5px;
	white-space: nowrap;
}

.time {
	color: var(--muted);
	font-size: 12px;
	white-space: nowrap;
}

.time small {
	display: block;
	color: var(--faint);
	font-size: 10.5px;
}

.row-actions {
	display: flex;
	justify-content: flex-end;
	gap: 1px;
	opacity: 0;
}

.table tbody tr:hover .row-actions,
.table tbody tr:focus-within .row-actions,
.tile:hover .row-actions,
.tile:focus-within .row-actions {
	opacity: 1;
}

.row-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 4px;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	text-decoration: none;
}

.row-action:hover {
	background: var(--surface-3);
	color: var(--text);
}

.row-action.danger:hover {
	color: var(--red);
}

.row-action svg {
	width: 14px;
	height: 14px;
}

@media (hover: none) {
	.row-actions {
		opacity: 1;
	}
}

/* grid */

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px;
	padding: 12px;
}

.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
}

.tile:hover {
	border-color: var(--border-strong);
	background: var(--surface-2);
}

.tile-main {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	color: var(--text);
	text-decoration: none;
}

.thumb {
	display: grid;
	place-items: center;
	height: 100px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: var(--surface-2);
}

.thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.thumb .entry-icon {
	width: 36px;
	height: 36px;
}

.thumb .entry-icon svg {
	width: 22px;
	height: 22px;
}

.tile-name {
	display: block;
	min-height: 16px;
	max-height: 2.6em;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.3;
	word-break: break-word;
}

.tile-meta {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	color: var(--faint);
	font-family: var(--mono);
	font-size: 12px;
}

.tile-actions {
	position: absolute;
	top: 6px;
	right: 6px;
	display: flex;
	gap: 1px;
	padding: 1px;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: var(--surface);
	opacity: 0;
}

/* empty */

.empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 60px 24px;
	color: var(--muted);
	text-align: center;
}

.empty-icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	color: var(--faint);
}

.empty-icon svg {
	width: 30px;
	height: 30px;
}

.empty h2 {
	margin: 0;
	color: var(--text);
	font-size: 15px;
	font-weight: 500;
}

.empty p {
	max-width: 340px;
	margin: 0;
	font-size: 13px;
}

.empty .btn {
	margin-top: 2px;
}

/* footer */

.footer {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px 22px;
	color: var(--faint);
	font-size: 11.5px;
}

.footer-side {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
}

.footer .mono {
	overflow: hidden;
	font-family: var(--mono);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.status-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--green);
}

.status-dot.locked {
	background: var(--amber);
}

.footer kbd {
	padding: 0 3px;
	border: 1px solid var(--border);
	border-radius: 3px;
	background: var(--surface);
	font-family: var(--mono);
	font-size: 9.5px;
}

/* modal */

.overlay {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.6);
}

.dialog {
	width: min(420px, 100%);
	max-height: 90vh;
	overflow: auto;
	padding: 20px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	background: var(--surface);
}

.dialog.wide {
	width: min(540px, 100%);
}

.dialog-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.dialog h2 {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
}

.dialog .sub {
	margin: 6px 0 0;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.55;
}

.dialog .sub b {
	color: var(--text);
	font-weight: 500;
}

.dialog .sub code {
	padding: 0 4px;
	border: 1px solid var(--border);
	border-radius: 3px;
	background: var(--surface-2);
	color: var(--text);
	font-family: var(--mono);
	font-size: 11px;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-top: 12px;
}

.field label {
	color: var(--muted);
	font-size: 12px;
}

.input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	color: var(--text);
	font-family: inherit;
	font-size: 13.5px;
	outline: none;
}

.input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 2px var(--accent-soft);
}

.form-error {
	min-height: 17px;
	margin-top: 8px;
	color: var(--red);
	font-size: 12.5px;
}

.dialog-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 16px;
}

.delete-target {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 12px;
	padding: 9px 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	font-family: var(--mono);
	font-size: 12px;
	word-break: break-all;
}

/* upload */

.dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	margin-top: 14px;
	padding: 22px 18px;
	border: 1px dashed var(--border-strong);
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	color: var(--muted);
	font-size: 12.5px;
	text-align: center;
	cursor: pointer;
}

.dropzone:hover,
.dropzone.dragging {
	border-color: var(--accent);
}

.dropzone svg {
	width: 22px;
	height: 22px;
	margin-bottom: 2px;
	color: var(--muted);
}

.dropzone b {
	color: var(--text);
	font-weight: 500;
}

.dropzone span {
	color: var(--faint);
	font-size: 11.5px;
}

.file-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-height: 220px;
	margin-top: 10px;
	overflow: auto;
}

.file-row {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 7px 9px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface-2);
}

.file-row .fname {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	font-size: 12.5px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.file-row .fsize {
	color: var(--faint);
	font-family: var(--mono);
	font-size: 10.5px;
	white-space: nowrap;
}

.file-row .row-action {
	width: 24px;
	height: 24px;
}

.file-row .row-action svg {
	width: 12px;
	height: 12px;
}

.file-progress {
	flex: 0 0 70px;
	height: 3px;
	overflow: hidden;
	border-radius: 99px;
	background: var(--surface-3);
}

.file-progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--accent);
}

.file-row.done .file-progress span {
	background: var(--green);
}

.file-row.failed .file-progress span {
	background: var(--red);
}

.upload-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 10px;
	color: var(--faint);
	font-size: 11.5px;
}

.checkbox {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-size: 12px;
	cursor: pointer;
	user-select: none;
}

.checkbox input {
	width: 13px;
	height: 13px;
	accent-color: var(--accent);
}

.link-btn {
	padding: 0;
	border: 0;
	background: none;
	color: var(--link);
	font: inherit;
	font-size: inherit;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.link-btn:hover {
	color: var(--accent-hover);
}

/* drag overlay */

.drop-overlay {
	position: fixed;
	inset: 0;
	z-index: 70;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 0.5);
	pointer-events: none;
}

.drop-overlay-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 24px;
	padding: 36px 48px;
	border: 1px dashed var(--accent);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--text);
	text-align: center;
}

.drop-overlay-inner svg {
	width: 28px;
	height: 28px;
	color: var(--accent);
}

.drop-overlay-inner strong {
	font-size: 15px;
	font-weight: 500;
}

.drop-overlay-inner span {
	color: var(--muted);
	font-size: 12.5px;
}

/* toasts */

.toast-root {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 90;
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: min(340px, calc(100vw - 32px));
}

.toast {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 9px 11px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font-size: 12.5px;
}

.toast svg {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	margin-top: 1px;
}

.toast.success svg {
	color: var(--green);
}

.toast.error svg {
	color: var(--red);
}

.toast.error {
	border-color: var(--red);
}

/* noscript */

.noscript {
	max-width: 720px;
	margin: 32px auto;
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.noscript-hint {
	margin: 0 0 10px;
	color: var(--muted);
	font-size: 12.5px;
}

.noscript h1 {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 500;
}

.noscript ul {
	margin: 0;
	padding-left: 18px;
}

.noscript li {
	margin: 4px 0;
}

.noscript a {
	color: var(--link);
	text-decoration: none;
}

.noscript a:hover {
	text-decoration: underline;
}

.noscript span {
	margin-left: 7px;
	color: var(--faint);
	font-family: var(--mono);
	font-size: 11px;
}

/* animations */

.spin {
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* responsive */

@media (max-width: 980px) {
	.brand-version {
		display: none;
	}

	.search {
		flex-basis: 180px;
	}

	.crumb {
		max-width: 150px;
	}
}

@media (max-width: 820px) {
	.brand-name {
		display: none;
	}
}

@media (max-width: 900px) {
	.topbar-actions #login-btn span {
		display: none;
	}

	.topbar-actions #login-btn {
		padding: 7px;
	}

	.search kbd {
		display: none;
	}

	.search input {
		padding-right: 10px;
	}
}

@media (max-width: 720px) {
	.topbar-inner {
		flex-wrap: wrap;
		gap: 8px 10px;
		padding: 8px 14px;
	}

	.topbar-actions {
		margin-left: auto;
	}

	.brand-version,
	.brand-name {
		display: none;
	}

	.crumbs {
		order: 3;
		flex: 1 0 100%;
	}

	.search {
		order: 4;
		flex: 1 0 100%;
	}

	.main {
		padding: 16px 14px 36px;
	}

	.footer {
		padding: 0 14px 20px;
	}

	.table th.col-time,
	.table td.col-time {
		width: 104px;
	}

	.table th.col-actions,
	.table td.col-actions {
		width: 66px;
	}

	.table thead th,
	.table tbody td {
		padding-right: 9px;
		padding-left: 9px;
	}

	.grid {
		grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
		gap: 8px;
		padding: 8px;
	}

	.thumb {
		height: 86px;
	}
}

@media (max-width: 560px) {
	.table th.col-size,
	.table td.col-size {
		display: none;
	}

	.crumb {
		max-width: 120px;
	}

	.summary-actions .btn span {
		display: none;
	}
}

@media (max-width: 420px) {
	.table th.col-time,
	.table td.col-time {
		display: none;
	}

	.user-chip .user-name {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.spin {
		animation: none;
	}
}
