* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f7fb;
  color: #1f2937;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 0;
}

.hero:not(.hero-compact) {
  align-items: center;
  padding: 8px 0 4px;
}

.hero-compact {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 0 12px;
  min-height: 0;
}

.brand-block {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.hero:not(.hero-compact) .brand-block {
  gap: 0;
  line-height: 0;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: min(420px, 100%);
  height: auto;
  max-height: 110px;
}

.hero:not(.hero-compact) .brand-logo {
  display: block;
  max-width: min(920px, 100%);
  max-height: 260px;
  width: 100%;
  height: auto;
}

.brand-logo-admin {
  max-width: 320px;
  max-height: 85px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #d11f28;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

h1, h2 {
  margin: 0 0 12px;
}

.hero-text {
  margin: 0;
  max-width: 720px;
  color: #475569;
}

.content,
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compact {
  gap: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.app-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.session-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #475569;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  padding: 10px 12px;
  border: 1px solid #d0d7e2;
  border-radius: 12px;
  background: #fff;
}

textarea {
  width: 100%;
  resize: vertical;
}

button {
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  background: #1f3a5f;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button.secondary {
  background: #355684;
}

button.ghost {
  background: #e5eefb;
  color: #1f3a5f;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.upload-controls,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.file-input {
  position: relative;
  overflow: hidden;
  align-self: end;
}

.file-input input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-input span {
  display: inline-block;
  background: #1f3a5f;
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
}

.folder-shortcuts-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.folder-shortcuts-label {
  color: #5b6f8e;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.folder-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.folder-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 132px;
  min-height: 118px;
  padding: 14px 12px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #1f3a5f;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.folder-shortcut.active {
  border-color: #1f3a5f;
  background: #1f3a5f;
  color: #fff;
}

.folder-shortcut-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  pointer-events: none;
}

.folder-shortcut-text {
  display: block;
  line-height: 1.25;
  word-break: break-word;
  pointer-events: none;
}

.upload-controls-below {
  justify-content: flex-start;
  margin-top: 4px;
}

.upload-footer-note {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.upload-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f3a5f;
  text-decoration: none;
  font-weight: 600;
}

.upload-footer-logo {
  display: block;
  height: 24px;
  width: auto;
}

.folder-picker-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid #d8e4f4;
  border-radius: 16px;
  background: #f8fbff;
}

.folder-selection-summary {
  margin-top: 6px;
  font-weight: 700;
  color: #1f3a5f;
  word-break: break-word;
}

.table-wrap {
  overflow-x: auto;
}

.admin-template-textarea {
  min-height: 320px;
  font-family: Consolas, "Courier New", monospace;
}

.upload-queue-panel {
  display: none;
}

.upload-queue-panel:empty {
  display: none;
}

.file-details-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 40;
  width: min(560px, calc(100vw - 32px));
}

.file-details-card {
  background: #fff;
  border: 1px solid #d8e4f4;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.file-details-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.file-details-close-button {
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 999px;
  background: #e5eefb;
  color: #1f3a5f;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.file-details-title {
  font-weight: 700;
  word-break: break-word;
}

.file-details-meta {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

.file-details-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.file-details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.file-status-panel {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d8e4f4;
  background: #f8fbff;
}

.file-status-panel.is-working {
  border-color: #c8d8ef;
}

.file-status-panel.is-success {
  border-color: #9fd3b2;
}

.file-status-panel.is-error {
  border-color: #e6a5a8;
  background: #fff7f7;
}

.file-status-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-status-indicator {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  position: relative;
}

.file-status-panel.is-working .file-status-indicator {
  border: 2px solid #c8d8ef;
  border-top-color: #355684;
  border-radius: 999px;
  animation: upload-spin 0.8s linear infinite;
}

.file-status-panel.is-success .file-status-indicator::before,
.file-status-panel.is-error .file-status-indicator::before {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.file-status-panel.is-success .file-status-indicator::before {
  content: "✓";
  color: #1f8f4f;
}

.file-status-panel.is-error .file-status-indicator::before {
  content: "✕";
  color: #d11f28;
}

.file-status-text {
  flex: 1;
  color: #475569;
  font-size: 13px;
}

.file-move-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #d8e4f4;
}

.file-move-label {
  color: #5b6f8e;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.file-move-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.file-support-panel {
  padding: 12px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #d8e4f4;
}

.file-support-panel textarea {
  width: 100%;
  min-height: 220px;
  padding: 10px 12px;
  border: 1px solid #d0d7e2;
  border-radius: 12px;
  resize: vertical;
  font: inherit;
  background: #fff;
}

.file-link-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #d8e4f4;
}

.file-link-label {
  color: #5b6f8e;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.file-link-value {
  color: #1f3a5f;
  word-break: break-all;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 4px;
}

.tab-button {
  background: #e5eefb;
  color: #1f3a5f;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
}

.tab-button.active {
  background: #1f3a5f;
  color: #fff;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toolbar-actions button {
  background: #e5eefb;
  color: #1f3a5f;
}

.toolbar-actions button.secondary {
  background: #1f3a5f;
  color: #fff;
}

.toolbar-actions button.ghost {
  background: #f1f5fb;
  color: #1f3a5f;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 8px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: top;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-item,
.upload-item {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  background: #fafcff;
}

.upload-item {
  position: relative;
  padding: 14px 16px;
  padding-right: 46px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.upload-item-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  background: #e5eefb;
  color: #1f3a5f;
  font-size: 18px;
  line-height: 1;
}

.upload-item.is-working {
  border-color: #c8d8ef;
}

.upload-item.is-success {
  border-color: #9fd3b2;
}

.upload-item.is-error {
  border-color: #e6a5a8;
}

.upload-item-title {
  font-weight: 700;
  word-break: break-word;
}

.upload-item-meta {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

.upload-status {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #475569;
}

.upload-status-indicator {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  position: relative;
}

.upload-item.is-working .upload-status-indicator {
  border: 2px solid #c8d8ef;
  border-top-color: #355684;
  border-radius: 999px;
  animation: upload-spin 0.8s linear infinite;
}

.upload-item.is-success .upload-status-indicator::before,
.upload-item.is-error .upload-status-indicator::before {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.upload-item.is-success .upload-status-indicator::before {
  content: "✓";
  color: #1f8f4f;
}

.upload-item.is-error .upload-status-indicator::before {
  content: "✕";
  color: #d11f28;
}

.upload-status-text {
  flex: 1;
}

.upload-support-button {
  padding: 8px 12px;
  border-radius: 10px;
  background: #e5eefb;
  color: #1f3a5f;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.upload-item.is-error .upload-support-button {
  background: #fce8ea;
  color: #a61b24;
}

.file-status-panel.is-error .upload-support-button {
  background: #fce8ea;
  color: #a61b24;
}

.file-tree-table {
  overflow-x: auto;
  margin-top: 10px;
  padding-bottom: 4px;
}

.file-tree {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  min-width: 900px;
}

.file-tree-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 110px 90px 90px;
  align-items: center;
  gap: 12px;
  margin-left: 38px;
  padding: 0 14px 6px;
  color: #5b6f8e;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 862px;
}

.file-sort-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  color: inherit;
  border: none;
  border-radius: 0;
  font-size: inherit;
  font-weight: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}

.file-sort-button::after {
  content: "↕";
  color: #94a3b8;
  font-size: 12px;
}

.file-sort-button.active {
  color: #1f3a5f;
}

.file-sort-button.active[data-direction="asc"]::after {
  content: "↑";
  color: #1f3a5f;
}

.file-sort-button.active[data-direction="desc"]::after {
  content: "↓";
  color: #1f3a5f;
}

.file-tree-header-name {
  padding-left: 44px;
}

.file-tree-header-access {
  white-space: nowrap;
}

.tree-empty {
  padding: 14px 16px;
  border: 1px dashed #c8d8ef;
  border-radius: 14px;
  color: #64748b;
  background: #f8fbff;
}

.tree-branch {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tree-children {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tree-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding-left: calc(var(--depth, 0) * 22px);
  min-width: max-content;
}

.tree-toggle,
.tree-toggle-spacer {
  width: 30px;
  flex: 0 0 30px;
}

.tree-toggle {
  padding: 0;
  min-height: 44px;
  border-radius: 12px;
  background: #e5eefb;
  color: #1f3a5f;
  font-size: 15px;
}

.tree-toggle-spacer {
  min-height: 44px;
}

.tree-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid #d8e4f4;
  border-radius: 16px;
  background: #fff;
  color: #1f2937;
  text-align: left;
  cursor: pointer;
}

.tree-file-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 110px 90px 90px;
  align-items: center;
  column-gap: 12px;
  min-width: 862px;
}

.tree-main.selected {
  border-color: #1f3a5f;
  background: #eef4fc;
}

.tree-main.drag-target {
  border-color: #355684;
  background: #f2f7ff;
  box-shadow: inset 0 0 0 1px #c8d8ef;
}

.tree-main.readonly {
  opacity: 0.88;
}

.tree-folder-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.tree-file-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #e5eefb 0%, #d7e5f7 100%);
  position: relative;
}

.tree-file-icon::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #ffffff;
}

.tree-file-thumb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8e4f4;
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
}

.tree-file-thumb-button::after {
  display: none;
}

.tree-file-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tree-file-thumb-button:hover {
  border-color: #1f3a5f;
  box-shadow: 0 0 0 2px rgba(31, 58, 95, 0.12);
}

.tree-file-thumb-button.thumbnail-failed {
  background: linear-gradient(180deg, #e5eefb 0%, #d7e5f7 100%);
}

.tree-preview-button {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #c8d8ef;
  border-radius: 10px;
  background: #f8fbff;
  color: #1f3a5f;
}

.tree-preview-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.tree-preview-button:hover {
  background: #eef4fc;
  border-color: #1f3a5f;
}

.image-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.image-preview-card {
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.image-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.image-preview-title {
  font-weight: 700;
  word-break: break-word;
}

.image-preview-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 12px;
  background: #f8fafc;
}

.tree-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tree-file-primary {
  min-width: 320px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tree-label {
  font-weight: 700;
  word-break: normal;
  overflow-wrap: normal;
}

.tree-file-main .tree-label {
  white-space: nowrap;
}

.tree-meta {
  color: #64748b;
  font-size: 12px;
  word-break: break-word;
}

.tree-file-field {
  color: #475569;
  font-size: 13px;
  white-space: nowrap;
}

.tree-file-access {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tree-access-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tree-access-indicator input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #1f3a5f;
  pointer-events: none;
}

.tree-mobile-meta {
  display: none;
  color: #64748b;
  font-size: 12px;
  word-break: break-word;
}

.tree-root-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e5eefb;
  color: #1f3a5f;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid #d8e4f4;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fc 100%);
}

.nav-card-label {
  margin: 0;
  color: #5b6f8e;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 140px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #1f3a5f;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(31, 58, 95, 0.18);
}

.nav-card-link:hover,
.nav-card-link:focus-visible {
  background: #355684;
}

.admin-table tbody tr {
  cursor: pointer;
}

.admin-table tbody tr:hover {
  background: #f8fbff;
}

.selected-row {
  background: #fff1f2;
}

.progress {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: #355684;
}

@keyframes upload-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

.narrow {
  max-width: 420px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #111827;
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}

.modal-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

#processorRunOverlay {
  z-index: 20;
}

.modal-card-wide {
  width: min(1100px, 100%);
}

.processor-run-status {
  margin: 0 0 12px;
  color: #4b5563;
}

.processor-run-status.is-running {
  color: #1d4ed8;
}

.processor-run-status.is-success {
  color: #059669;
}

.processor-run-status.is-warning {
  color: #d97706;
}

.processor-run-status.is-error {
  color: #dc2626;
}

.processor-run-log-wrap {
  max-height: min(60vh, 520px);
  overflow: auto;
  margin-bottom: 16px;
}

.modal-header,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.modal-actions-top {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-actions button,
.modal-actions button.secondary {
  background: #1f3a5f;
  color: #fff;
}

select[multiple] {
  min-height: 140px;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid #d0d7e2;
  border-radius: 12px;
  background: #fff;
}

.checkbox-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: #1f2937;
}

.checkbox-item input {
  margin: 0;
}

.permissions-field {
  overflow-x: auto;
  border: 1px solid #d8e4f4;
  border-radius: 14px;
  background: #f8fbff;
}

.permissions-table {
  width: 100%;
  border-collapse: collapse;
}

.permissions-table th,
.permissions-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5edf7;
}

.permissions-table th {
  background: #eef4fc;
  color: #1f3a5f;
  font-weight: 700;
}

.permissions-table tbody tr:last-child td {
  border-bottom: none;
}

.permissions-toggle-cell {
  width: 130px;
  text-align: center;
}

.permissions-toggle-cell input {
  width: 18px;
  height: 18px;
  margin: 0;
}

@media (max-width: 900px) {
  .page {
    padding: 16px;
  }

  .app-workspace {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
  }

  .brand-block {
    flex-direction: column;
    gap: 12px;
  }

  .brand-logo {
    max-width: min(320px, 100%);
    max-height: 90px;
  }

  .hero:not(.hero-compact) .brand-logo {
    max-width: 100%;
    max-height: 200px;
  }

  .brand-logo-admin {
    max-width: 260px;
    max-height: 75px;
  }

  .upload-queue-panel {
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
  }

  .file-details-panel {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 32px));
  }

  .file-tree-header {
    display: none;
  }

  .tree-file-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .tree-file-field {
    display: none;
  }

  .tree-mobile-meta {
    display: block;
    grid-column: 1;
    padding-left: 44px;
  }
}
