:root {
  --bg: #0f1419;
  --panel: #1a2332;
  --card: #243044;
  --text: #e7eef8;
  --muted: #8fa3bf;
  --accent: #3d8bfd;
  --border: #31425a;
  --danger: #f07178;
  --ok: #7fd99a;
  /* 管理台主壳：4K 优先，按视口自动分档 */
  --shell-max: 100%;
  --shell-pad-x: 16px;
  --ui-font: 15px;
  --ui-line: 1.45;
}
@media (min-width: 1440px) {
  :root {
    --shell-max: min(94vw, 1760px);
    --shell-pad-x: 22px;
    --ui-font: 15px;
  }
}
@media (min-width: 2560px) {
  :root {
    --shell-max: min(90vw, 2360px);
    --shell-pad-x: 28px;
    --ui-font: 16px;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: var(--ui-font);
  line-height: var(--ui-line);
  background: linear-gradient(160deg, #0b1220, #152238 45%, #0f1419);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
.auth-body { display: grid; place-items: center; min-height: 100vh; }
.auth-card, .card, .topbar, .panel {
  background: rgba(26, 35, 50, 0.92);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.auth-card {
  width: min(420px, 92vw);
  padding: 28px;
  display: grid;
  gap: 12px;
}
.auth-card h1 { margin: 0; font-size: 1.4rem; }
.muted, .hint { color: var(--muted); margin: 0 0 12px; font-size: 0.92rem; line-height: 1.5; }
.panel h2 { margin: 0 0 8px; font-size: 1.35rem; letter-spacing: 0.01em; }
.panel h3 { margin: 22px 0 10px; font-size: 1.12rem; }
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 0.72rem;
  border-radius: 4px;
  border: 1px solid var(--accent);
  color: var(--accent);
  vertical-align: middle;
}
label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}
input, select, textarea, button {
  font: inherit;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #121a27;
  color: var(--text);
  padding: 10px 12px;
}
button {
  background: var(--accent);
  border-color: transparent;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
}
button.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
button.danger { background: var(--danger); }
.error { color: var(--danger); min-height: 1.2em; }
.topbar {
  margin: 16px auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 14px;
  max-width: var(--shell-max);
  width: calc(100% - (var(--shell-pad-x) * 2));
  box-sizing: border-box;
}
.brand { font-weight: 700; }
.topbar-web-ver {
  font-size: 0.82rem;
  color: var(--muted, #9aa7b8);
  white-space: nowrap;
  margin-right: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.topbar-support {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}
.topbar-support:hover { text-decoration: underline; }
.dl-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
@media (min-width: 720px) {
  .dl-grid { grid-template-columns: 1fr 1fr; }
}
.dl-card {
  background: rgba(26, 35, 50, 0.92);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.dl-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.dl-card .dl-meta { font-size: 0.84rem; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }
.dl-card .dl-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.guide-card {
  margin-bottom: 0.75rem;
}
.guide-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.guide-steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.75;
}
.guide-steps li + li {
  margin-top: 0.35rem;
}
.guide-steps strong {
  color: var(--text);
  font-weight: 600;
}
.topbar nav { display: flex; gap: 12px; flex: 1; flex-wrap: wrap; }
.topbar nav a {
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
}
.topbar nav a.active, .topbar nav a:hover {
  color: var(--text);
  background: rgba(61, 139, 253, 0.15);
}
main {
  padding: 0 var(--shell-pad-x) 40px;
  max-width: var(--shell-max);
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.panel {
  display: none;
  padding: 18px 20px 22px;
  margin-bottom: 16px;
  max-width: 100%;
  overflow-x: auto;
}
.panel.active { display: block; }
.card { padding: 14px; margin-top: 12px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th { color: var(--muted); font-weight: 600; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.hidden { display: none !important; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(61, 139, 253, 0.2);
  color: #9ec1ff;
  font-size: 0.8rem;
}
.badge.pending { background: rgba(240, 180, 80, 0.2); color: #f0c070; }
.badge.approved { background: rgba(127, 217, 154, 0.2); color: var(--ok); }
.badge.rejected { background: rgba(240, 113, 120, 0.2); color: var(--danger); }
pre {
  white-space: pre-wrap;
  word-break: break-all;
  background: #121a27;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.toolbar.wrap { align-items: center; }
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.pkg-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: #121a27;
  min-width: 0;
}
.pkg-item h4 { margin: 0 0 6px; font-size: 0.95rem; }
.pkg-item .pkg-summary {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}
.pkg-item .pkg-detail {
  margin-top: 8px;
  font-size: 0.8rem;
}
.pkg-item .pkg-detail > summary {
  cursor: pointer;
  color: var(--muted);
  user-select: none;
}
.pkg-item .pkg-detail[open] > summary { margin-bottom: 4px; }
.pkg-catalog-fold {
  border: none;
  padding: 0;
}
.pkg-catalog-fold > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}
.pkg-catalog-fold > summary::-webkit-details-marker { display: none; }
.pkg-catalog-fold > summary::before {
  content: "▸";
  color: var(--muted);
  font-size: 0.85rem;
}
.pkg-catalog-fold[open] > summary::before { content: "▾"; }
.pkg-catalog-body { margin-top: 12px; }
.reg-switch-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.reg-switch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}
.reg-switch-row:last-child { border-bottom: none; }
.reg-switch-row .reg-pkg-name {
  min-width: 11rem;
  font-weight: 600;
}
.reg-switch-row label.reg-open-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  cursor: pointer;
}
.reg-switch-row input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
  background: #0b1220;
}
.reg-switch-row .reg-link {
  font-size: 0.85rem;
}
.reg-switch-error {
  color: var(--danger);
  margin: 0;
}
.pkg-group { margin-bottom: 14px; }
.pkg-group:last-child { margin-bottom: 0; }
.pkg-group-title {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.mb-mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 0.6rem;
  max-width: 100%;
}
.mb-mod-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #121a27;
  min-width: 0;
  cursor: pointer;
}
.mb-mod-item.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.mb-mod-item .mb-mod-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.mb-mod-item .mb-mod-id {
  font-weight: 700;
  font-size: 0.95rem;
}
.mb-mod-item .mb-mod-name {
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mb-mod-item .mb-mod-meta {
  font-size: 0.75rem;
  color: var(--muted);
}
.badge.available { background: rgba(127, 217, 154, 0.2); color: var(--ok); }
.badge.coming_soon { background: rgba(143, 163, 191, 0.2); color: var(--muted); }
.badge.active { background: rgba(127, 217, 154, 0.2); color: var(--ok); }
.badge.redeemed { background: rgba(61, 139, 253, 0.2); color: #9ec1ff; }
.badge.revoked { background: rgba(240, 113, 120, 0.2); color: var(--danger); }
.badge.online { background: rgba(127, 217, 154, 0.2); color: var(--ok); }
.badge.offline { background: rgba(143, 163, 191, 0.2); color: var(--muted); }
.badge.elevated { background: rgba(240, 180, 80, 0.22); color: #f0c070; }
.badge.limited { background: rgba(143, 163, 191, 0.18); color: var(--muted); }

/* 设备分柜：在线展开 / 离线默认折叠 */
.cabinet-summary { margin: 0 0 10px; }
.cabinet-group {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  background: rgba(18, 26, 39, 0.35);
}
.cabinet-group-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  background: rgba(61, 139, 253, 0.08);
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.cabinet-group[data-cabinet-group="offline"] .cabinet-group-head {
  background: rgba(143, 163, 191, 0.08);
}
.cabinet-group.is-collapsed .cabinet-group-head {
  border-bottom: 0;
}
.cabinet-caret {
  display: inline-block;
  width: 1em;
  color: var(--muted);
}
.cabinet-group-body { padding: 0 8px 4px; }
.cabinet-group.is-collapsed .cabinet-group-body { display: none; }
.cabinet-sort-btn {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.cabinet-sort-btn:hover { color: var(--accent, #9ec1ff); }
.cabinet-pager {
  margin: 8px 0 12px;
  padding: 0 4px;
}
.cabinet-empty { padding: 10px 4px; margin: 0; }

/* 浏览器凭证：按类目折叠 */
.cred-fold-wrap { display: flex; flex-direction: column; gap: 8px; }
.cred-fold-group {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(18, 26, 39, 0.35);
}
.cred-fold-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  background: rgba(61, 139, 253, 0.08);
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
}
.cred-fold-group.is-collapsed .cred-fold-head { border-bottom: 0; }
.cred-fold-caret {
  display: inline-block;
  width: 1em;
  color: var(--muted);
}
.cred-fold-count {
  margin-left: auto;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.92rem;
}
.cred-fold-body { padding: 8px; }
.cred-fold-group.is-collapsed .cred-fold-body { display: none; }
.cred-fold-body .cred-fold-table-wrap { overflow-x: auto; }
.cred-fold-more { margin-top: 8px; }
.cabinet-table-detail,
.cabinet-table-narrow {
  width: 100%;
  table-layout: auto;
  font-size: 0.95rem;
}
.cabinet-table-detail th,
.cabinet-table-detail td,
.cabinet-table-narrow th,
.cabinet-table-narrow td {
  padding: 10px 12px;
  vertical-align: middle;
}
.cabinet-table-detail .cabinet-cell-tight,
.cabinet-table-detail th:nth-child(4),
.cabinet-table-detail th:nth-child(5),
.cabinet-table-detail th:nth-child(7),
.cabinet-table-detail th:nth-child(8) {
  width: 1%;
  white-space: nowrap;
  padding-right: 16px;
}
.cabinet-table-detail .cabinet-collect-cell,
.cabinet-table-detail th:nth-child(6) {
  min-width: 200px;
  max-width: 360px;
  padding-right: 16px;
}
.cabinet-table-detail .cabinet-id-cell,
.cabinet-table-detail th:nth-child(1) {
  width: 1%;
  min-width: 160px;
  max-width: 260px;
  padding-right: 12px;
}
.cabinet-id-code {
  font-size: 0.82rem;
  word-break: break-all;
  white-space: normal;
  line-height: 1.35;
}
.cabinet-table-detail .cabinet-ip-cell,
.cabinet-table-detail th:nth-child(2) {
  width: 1%;
  min-width: 180px;
  max-width: 320px;
  padding-right: 12px;
}
.cabinet-ip-line {
  font-size: 0.88rem;
  line-height: 1.35;
  word-break: break-word;
}
.cabinet-table-detail .cabinet-device,
.cabinet-table-detail th:nth-child(3) {
  width: 1%;
  min-width: 120px;
  max-width: 220px;
  padding-right: 16px;
}
.cabinet-table-detail .cabinet-spacer,
.cabinet-table-detail th.cabinet-spacer,
.cabinet-table-narrow .cabinet-spacer,
.cabinet-table-narrow th.cabinet-spacer {
  width: auto;
  padding: 0;
  border-bottom-color: transparent;
}
.cabinet-table-detail .cabinet-actions,
.cabinet-table-detail th:last-child,
.cabinet-table-narrow .cabinet-actions,
.cabinet-table-narrow th:last-child {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  padding-left: 12px;
}
.cabinet-row {
  cursor: pointer;
}
.cabinet-row:hover td:not(.cabinet-spacer) {
  background: rgba(255, 255, 255, 0.03);
}
.cabinet-row.is-expanded td:not(.cabinet-spacer) {
  border-bottom-color: transparent;
}
.cabinet-device {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: 340px;
}
.cabinet-expand-mark {
  color: var(--muted);
  flex: 0 0 auto;
  margin-top: 2px;
}
.cabinet-device-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.cabinet-device-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
  font-size: 1rem;
  max-width: 300px;
}
.cabinet-device-sub {
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
  margin: 0;
}
.cabinet-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.cabinet-collect-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cabinet-collect-advice {
  margin-top: 3px;
  font-size: 0.82rem;
  color: var(--accent);
}
.cabinet-collect-at,
.cabinet-seen-abs {
  margin-top: 2px;
  font-size: 0.78rem;
}
.cabinet-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}
.cabinet-summary {
  font-size: 0.95rem;
}
.cabinet-more {
  position: relative;
}
.cabinet-more > summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
}
.cabinet-more > summary::-webkit-details-marker { display: none; }
.cabinet-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  min-width: 128px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #121a27;
  display: grid;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.cabinet-more-menu button {
  width: 100%;
  text-align: left;
  font-weight: 500;
}
.cabinet-detail-row td {
  background: rgba(18, 26, 39, 0.55);
  border-bottom: 1px solid var(--border);
}
.cabinet-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 16px;
  padding: 8px 4px 12px;
  font-size: 0.88rem;
}
.cabinet-detail code {
  font-size: 0.82rem;
  word-break: break-all;
}
.cabinet-detail .tiny {
  padding: 2px 8px;
  font-size: 0.78rem;
  margin-left: 6px;
}
.cabinet-detail-collect {
  grid-column: 1 / -1;
}
.cabinet-table code {
  font-size: 0.82rem;
}
.cabinet-ip { font-size: 0.82rem; white-space: nowrap; }
.cabinet-collect .hint-action,
.cabinet-device .hint-action {
  color: var(--accent);
  font-weight: 700;
}
label.inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 0.9rem;
}
code.block {
  display: block;
  margin: 4px 0;
  padding: 8px;
  background: #0b1220;
  border-radius: 6px;
  word-break: break-all;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(5, 10, 18, 0.72);
  backdrop-filter: blur(2px);
}
.modal-backdrop.hidden { display: none !important; }
.modal-card {
  width: min(560px, 96vw);
  max-height: min(80vh, 720px);
  overflow: auto;
  background: rgba(26, 35, 50, 0.98);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}
.modal-card label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.modal-card .error {
  color: var(--danger);
  min-height: 1.2em;
  margin: 0 0 8px;
}
.modal-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.4;
}
.modal-card pre {
  margin: 0 0 14px;
  max-height: 50vh;
  overflow: auto;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.secret-mode-wrap {
  margin-left: 4px;
  gap: 8px;
}
.secret-mode-wrap select {
  min-width: 88px;
  padding: 8px 10px;
}

.cred-subnav {
  display: flex;
  gap: 6px;
  margin: 16px 0 10px;
  padding: 4px;
  background: rgba(12, 18, 28, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.cred-subtab {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 10px 18px;
  font-size: 0.95rem;
}
.cred-subtab:hover {
  color: var(--text);
  background: rgba(61, 139, 253, 0.12);
}
.cred-subtab.active {
  color: #fff;
  background: var(--accent);
}
.cred-subpanel { display: none; }
.cred-subpanel.active { display: block; }
.cred-shared-filters { margin-top: 4px; }

.ss-day {
  margin: 0 0 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(18, 26, 39, 0.35);
}
.ss-day > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.ss-day:not([open]) > summary {
  margin-bottom: 0;
}
.ss-day-body {
  margin-top: 4px;
}
.ss-day-pager {
  margin-top: 10px;
}
.ss-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.cabinet-ss-count {
  min-width: 2.2rem;
  padding: 2px 8px !important;
}
.ss-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(8, 12, 20, 0.45);
  cursor: pointer;
}
.ss-card .ss-del {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 8px;
  font-size: 12px;
  z-index: 2;
  opacity: 0.85;
}
.ss-card:hover .ss-del { opacity: 1; }
.ss-card img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: #0a0f18;
}
.ss-card .meta {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.ss-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin: 8px auto 0;
  border-radius: 6px;
}
#ssPolicyForm label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 10px 0 16px;
  max-width: 100%;
}
.overview-stat {
  background: #121a27;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  min-height: 88px;
}
.overview-stat .label { color: var(--muted); font-size: 0.88rem; margin-bottom: 8px; }
.overview-stat .value { font-size: 1.45rem; font-weight: 700; }

.file-drive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.file-drive-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
  text-align: left;
}
.file-drive-btn:hover { border-color: var(--accent); }
.file-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.file-crumb {
  word-break: break-all;
  font-size: 13px;
}
.file-table td:first-child { max-width: 420px; word-break: break-all; }
.file-table tr { cursor: default; }
.file-table tr[data-isdir="1"] { cursor: pointer; }
.file-table tr[data-isdir="1"]:hover td { background: rgba(255,255,255,0.03); }
.file-actions { white-space: nowrap; }
.overview-actions { display: flex; gap: 8px; flex-wrap: wrap; }

