/* mi.rro.rs */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #222;
	background: #fff;
}

a { color: #0645ad; }
a:visited { color: #0b0080; }
a:hover { text-decoration: underline; }

#header {
	padding: 10px 20px;
	background: #f5f5f5;
	border-bottom: 1px solid #ddd;
	font-size: 15px;
}

#header a {
	font-weight: 700;
	color: #222;
	text-decoration: none;
}

#header a:hover { text-decoration: underline; }

#content {
	padding: 16px 20px;
	min-height: 60vh;
}

h2 {
	font-size: 14px;
	font-weight: 700;
	margin: 18px 0 8px;
	color: #333;
}

h2:first-child { margin-top: 0; }

/* ── Tables ────────────────────────────────── */

.listing {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.listing th,
.listing td {
	padding: 4px 12px;
	text-align: left;
	white-space: nowrap;
}

.listing th {
	background: #f5f5f5;
	border-bottom: 1px solid #ccc;
	font-weight: 600;
	font-size: 12px;
	color: #555;
}

.listing th a {
	color: #555;
	text-decoration: none;
}

.listing th a:hover { color: #222; }

.listing td {
	border-bottom: 1px solid #eee;
	overflow: hidden;
	text-overflow: ellipsis;
}

.listing tbody tr:hover { background: #f0f6ff; }

.listing tfoot td {
	border-top: 1px solid #ccc;
	border-bottom: none;
	font-weight: 600;
	color: #555;
	padding-top: 6px;
}

.r { text-align: right; }

.mono {
	font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
	font-size: 12px;
}

.desc { color: #555; }

.col-name {
	font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
	font-size: 13px;
}

.col-size {
	font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
	font-size: 12px;
	color: #555;
}

.col-date {
	font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
	font-size: 12px;
	color: #555;
}

.parent-dir td a { font-weight: 600; }

/* ── Path / breadcrumbs ────────────────────── */

.path {
	font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
	font-size: 13px;
	margin-bottom: 12px;
	color: #555;
}

.path a { color: #0645ad; }

/* ── Filter ────────────────────────────────── */

#browse-controls { margin-bottom: 10px; }

#filter {
	font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
	font-size: 13px;
	padding: 4px 8px;
	border: 1px solid #ccc;
	width: 260px;
	outline: none;
}

#filter:focus { border-color: #0645ad; }

/* ── Access block ──────────────────────────── */

.access {
	font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
	font-size: 13px;
	line-height: 1.7;
	background: #f5f5f5;
	padding: 10px 14px;
	border: 1px solid #ddd;
	overflow-x: auto;
}

.access em {
	font-style: normal;
	color: #888;
}

/* ── Misc ──────────────────────────────────── */

.info {
	font-size: 12px;
	color: #777;
	margin-top: 8px;
}

#footer {
	padding: 12px 20px;
	border-top: 1px solid #ddd;
	font-size: 12px;
	color: #777;
	margin-top: 20px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 4px;
}

#footer a { color: #777; }
#footer a:hover { color: #222; }

.footer-right {
	font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
}

/* ── Responsive ────────────────────────────── */

@media (max-width: 640px) {
	#content { padding: 12px; }
	.listing { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.col-name { min-width: 200px; }
	#filter { width: 100%; }
}

/* ── Sync status ───────────────────────────── */

.status-cell { white-space: nowrap; font-size: 12px; }

.sync-ok { color: #2e7d32; }
.sync-err { color: #c62828; }

.sync-bar {
	display: inline-block;
	width: 48px;
	height: 8px;
	background: #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
	vertical-align: middle;
	margin-right: 4px;
}

.sync-bar-fill {
	display: block;
	height: 100%;
	width: 40%;
	background: #1565c0;
	border-radius: 4px;
	animation: sync-pulse 1.5s ease-in-out infinite;
}

@keyframes sync-pulse {
	0%, 100% { width: 20%; margin-left: 0; }
	50% { width: 60%; margin-left: 20%; }
}

/* ── JS states ─────────────────────────────── */

.listing th.sortable { cursor: pointer; user-select: none; }
tr.filtered-out { display: none; }
tr.row-highlight { background: #e8f0fe !important; outline: 2px solid #4285f4; outline-offset: -2px; }
