:root {
  --bg: #f8fafc;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --panel: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #64748b;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-2: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-gradient);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Noto Sans, Ubuntu, Cantarell, Helvetica Neue, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

/* New app shell */
.app-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); }
.app-shell > * { min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; background: rgba(255, 255, 255, 0.95); 
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}
.brand { display: inline-flex; gap: 12px; align-items: center; }
.brand__icon { 
  width: 32px; height: 32px; 
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); 
  border-radius: var(--radius-sm); 
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.brand__name { 
  font-weight: 700; 
  font-size: 18px;
  letter-spacing: -0.02em; 
  color: var(--text);
}
.brand__subtitle {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-left: -8px;
}
.topbar__right { display: inline-flex; gap: 12px; align-items: center; }
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
.status-dot--online {
  background: var(--success);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.chip { 
  font-size: 12px; 
  background: #eef2ff; 
  color: #3730a3; 
  padding: 6px 10px; 
  border-radius: 999px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip--api {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd;
}
.logout-form {
  margin: 0;
}
.btn--logout {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 14px;
  transition: all 0.2s ease;
}
.btn--logout:hover {
  background: #f8fafc;
  color: var(--danger);
  border-color: var(--danger);
}
.page { padding: 24px; max-width: 1200px; margin: 0 auto; width: 100%; }

/* Dashboard Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card__icon--teams {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.stat-card__icon--apks {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.stat-card__icon--pending {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.stat-card__icon--links {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

.stat-card__content {
  flex: 1;
}

.stat-card__number {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.stat-card__label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}
.footer { padding: 16px 24px; border-top: 1px solid var(--border); background: #fff; }

.btn { 
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  gap: 8px;
  padding: 10px 16px; 
  border-radius: var(--radius-sm); 
  border: none; 
  cursor: pointer; 
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); 
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  filter: brightness(1.05);
}

.btn--refresh {
  background: linear-gradient(135deg, var(--success), #059669);
}
.btn--ghost { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn--subtle { background: #eef2ff; border: 1px solid #e0e7ff; color: #3730a3; }
.btn--link { background: #fff; color: var(--accent); border: 1px solid var(--border); }
.btn--small { padding: 8px 10px; font-size: 14px; }

.input { 
  background: #fff; 
  border: 1px solid var(--border); 
  padding: 10px 12px; 
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: all 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-container {
  position: relative;
  min-width: 280px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-input {
  padding-left: 40px;
  width: 100%;
}
.table-wrap { 
  border-radius: var(--radius); 
  border: 1px solid var(--border); 
  background: #fff;
  box-shadow: var(--shadow);
  overflow: auto;
}

.table--enhanced {
  border-collapse: separate;
  border-spacing: 0;
}

.table--enhanced th {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.th-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-row:hover {
  background-color: #f8fafc;
}

.table-cell {
  padding: 16px;
  vertical-align: top;
}

.team-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge--success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.status-badge--warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.version-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.version-number {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.no-data {
  color: var(--muted);
  font-style: italic;
  font-size: 14px;
}

.link-container {
  max-width: 300px;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.external-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.link-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 250px;
}
.card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 8px; }
.actions { display: inline-flex; gap: 10px; }
.actions--wrap { flex-wrap: wrap; }
.actions--tight { gap: 6px; }
.actions--cell { flex-wrap: wrap; align-items: stretch; }
.th-actions { width: 440px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 13px; }
.truncate { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file--compact input[type="file"] { padding: 6px; }
.upload-form { align-items: center; }
.upload-form .upload-btn { min-width: 90px; }
.file-input { cursor: pointer; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.2); }
.modal__x { position: absolute; right: 14px; top: 10px; background: transparent; border: none; font-size: 22px; cursor: pointer; color: var(--muted); }

.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}

.alert--success { 
  background: #ecfdf5; 
  border: 1px solid #d1fae5; 
  color: #065f46;
}

.alert svg {
  flex-shrink: 0;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

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

.file input[type="file"] {
  background: #fff;
  color: #111827;
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: 6px;
}

.button-link {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  text-decoration: none;
}

/* Modal styles */
.modal {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 640px;
  width: 90vw;
  background: transparent;
  animation: modalSlideIn 0.3s ease-out;
  position: fixed;
  top: 6vh;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  max-height: 88vh;
  overflow-y: auto;
}
.modal--wide { max-width: 760px; }
body.has-modal { overflow: hidden; }

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
  animation: backdropFadeIn 0.3s ease-out;
}

@keyframes backdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal__content {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  position: relative;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.98);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.modal__header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.modal__actions { 
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.modal__form { 
  display: grid; 
  gap: 16px;
}

.modal__x {
  position: absolute;
  right: 16px;
  top: 16px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal__x:hover {
  background: #f1f5f9;
  color: var(--text);
}

.modal__close {
  display: flex;
  justify-content: flex-end;
}
.modal__close button {
  background: transparent;
  color: var(--muted);
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.card {
  background: var(--panel);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

h1 {
  font-size: 28px;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
}

h2 {
  font-size: 20px;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--text);
}

.muted {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.muted {
  color: var(--muted);
  margin-top: 16px;
}

label {
  display: block;
  margin-top: 12px;
  margin-bottom: 8px;
}

input, button {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f3f5f9;
  color: var(--text);
}

button {
  margin-top: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  transition: filter 0.15s ease, transform 0.05s ease;
  color: #fff;
}

button:hover { filter: brightness(1.08); }
button:active { transform: translateY(1px); }

.card form {
  display: grid;
  gap: 12px;
}

.code {
  background: #f3f6ff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  overflow: auto;
}

.success {
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  color: #065f46;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 12px;
}

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

.table th,
.table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.table th {
  background: #f8fafc;
}

.table tbody tr:nth-child(even) {
  background: #f9fafb;
}

details {
  margin-top: 8px;
}

details summary {
  cursor: pointer;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.container--light .muted { color: #98a2b3; }
.card--light { background: var(--panel); }
.table--light th { background: #eef2ff; }
.table--light tbody tr:nth-child(even) { background: #f9fafb; }

/* ===== v1.1 — status, flash, row actions, modals ===== */
[hidden] { display: none !important; }
.status-dot--offline { background: var(--danger); box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2); }

.flash {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%);
  width: min(860px, calc(100vw - 32px)); z-index: 30; margin: 0;
  align-items: center; flex-wrap: wrap; box-shadow: var(--shadow-lg);
  animation: flashIn 0.25s ease-out;
}
@keyframes flashIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.flash__text { flex: 1 1 auto; }
.flash__cta { margin-left: auto; white-space: nowrap; }
.flash__x {
  width: 28px; height: 28px; margin: 0; padding: 0; border: none; background: transparent;
  color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: 0.6; border-radius: 6px;
}
.flash__x:hover { opacity: 1; background: rgba(0,0,0,0.05); filter: none; }
body.has-modal .flash { display: none; }
.alert .flash__cta { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }

.status-badge--pending { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.apk-meta { font-size: 12px; color: var(--muted); }

.table-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; margin: 0 0 10px 2px; }
.filter-chips { display: inline-flex; gap: 4px; margin-left: auto; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: all 0.15s ease;
}
.filter-chip:hover { border-color: var(--accent); color: var(--text); }
.filter-chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.filter-chip__n { font-variant-numeric: tabular-nums; opacity: 0.75; }
.table-empty { padding: 28px 16px; text-align: center; }
.table--enhanced tbody tr[hidden] { display: none; }

.link-container { display: flex; align-items: center; gap: 8px; max-width: none; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 6px; border: 1px solid var(--border);
  background: #fff; color: var(--text-secondary); font-size: 12px; cursor: pointer;
  width: auto; margin: 0; transition: all 0.15s ease;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); filter: none; }
.copy-btn.is-copied { border-color: var(--success); color: #065f46; background: #ecfdf5; }

.row-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.row-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 9px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: #fff; color: var(--text-secondary); font-size: 13px; font-weight: 500;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: all 0.15s ease;
}
.row-btn:hover { background: #f8fafc; color: var(--text); transform: translateY(-1px); }
.row-btn--update:hover { border-color: var(--accent); color: var(--accent-hover); }
.row-btn--history:hover { border-color: #a855f7; color: #7e22ce; }
.row-btn--upload:hover { border-color: var(--success); color: #047857; }
.row-btn--download:hover { border-color: #0ea5e9; color: #0369a1; }
.row-btn--disabled { opacity: 0.45; cursor: not-allowed; }
.row-btn--disabled:hover { transform: none; background: #fff; color: var(--text-secondary); }

@keyframes rowFocus {
  0% { background: #fef9c3; box-shadow: inset 4px 0 0 var(--warning); }
  70% { background: #fef9c3; box-shadow: inset 4px 0 0 var(--warning); }
  100% { background: transparent; box-shadow: none; }
}
.table-row.is-focused { animation: rowFocus 5s ease-out forwards; }

.modal__team {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px; padding: 2px 8px; margin-left: 6px; border-radius: 6px;
  background: #eef2ff; color: #3730a3; vertical-align: middle;
}
.modal__count { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 8px; }
.modal__form label { margin-top: 0; margin-bottom: 0; font-size: 14px; font-weight: 500; }
.field-hint { font-size: 13px; margin-top: -8px; }
.field-hint--warn { color: #92400e; }
.field-hint--error { color: #b91c1c; }
.publish-note { font-size: 13px; margin: 0; }
.publish-note strong { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-weight: 600; color: var(--text); }
.btn.is-busy { opacity: 0.7; cursor: progress; }

.publish-context {
  display: grid; gap: 8px; padding: 14px 16px; margin-bottom: 16px;
  background: #f8fafc; border: 1px solid var(--border-light); border-radius: var(--radius-sm);
}
.publish-context__item { display: grid; grid-template-columns: 130px 1fr; gap: 12px; font-size: 14px; align-items: baseline; }
.publish-context__label { color: var(--muted); font-size: 13px; }
.publish-context__value { color: var(--text); word-break: break-all; }
.publish-context__value--warn { color: #b45309; }
.publish-context__value--warn a { color: var(--accent-hover); }
.publish-context .field-hint { margin-top: 0; }

.publish-done { text-align: center; padding: 8px 4px 0; }
.publish-done__icon { color: var(--success); margin-bottom: 8px; }
.publish-done h3 { margin: 0 0 6px; font-size: 18px; }
.publish-done .muted { margin: 0 0 16px; font-size: 14px; }
.publish-done .modal__actions { justify-content: center; }
.link-row {
  display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap;
  padding: 10px 12px; background: #f8fafc; border: 1px solid var(--border-light); border-radius: var(--radius-sm);
}
.link-row__url { color: var(--accent); text-decoration: none; word-break: break-all; }
.link-row__url:hover { text-decoration: underline; }
.link-row .copy-btn { padding: 6px 10px; font-size: 13px; }

.hist { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; border: 1px solid var(--border-light); border-radius: var(--radius-sm); }
.hist__row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border-light); }
.hist__row:last-child { border-bottom: none; }
.hist__row:nth-child(even) { background: #fafbfc; }
.hist__versions { font-size: 14px; display: inline-flex; gap: 10px; align-items: center; }
.hist__prev { color: var(--muted); }
.hist__arrow { color: var(--muted); }
.hist__new { font-weight: 600; color: var(--text); }
.hist__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; color: var(--muted); }
.hist__link a { color: var(--accent); text-decoration: none; }

.dropzone {
  display: block; position: relative; cursor: pointer; margin: 0;
  padding: 22px 16px; text-align: center; border: 2px dashed var(--border);
  border-radius: var(--radius-sm); background: #f8fafc; color: var(--text-secondary); font-size: 14px;
  transition: all 0.15s ease;
}
.dropzone:hover, .dropzone--over { border-color: var(--accent); background: #eff6ff; }
.dropzone--bad { border-color: var(--danger); background: #fef2f2; }
.dropzone__input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.dropzone__idle { display: inline-flex; align-items: center; gap: 10px; }
.dropzone__idle svg { color: var(--accent); }
.dropzone__file { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.dropzone__name { font-weight: 600; color: var(--text); word-break: break-all; }
.dropzone__size { font-size: 13px; }

.progress { display: grid; gap: 6px; }
.progress__bar { height: 8px; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.2s ease; }
.progress { position: relative; }
.progress::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: 999px; background: #e2e8f0; z-index: 0; }
.progress__bar { position: relative; z-index: 1; }
.progress__text { font-size: 13px; }

@media (max-width: 1100px) {
  .row-btn span { display: none; }
  .row-btn { padding: 8px; }
  .th-actions { width: auto; }
}
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .topbar__right { flex-wrap: wrap; }
  .page { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 18px; }
  .card__header { flex-direction: column; align-items: stretch; }
  .search-container { min-width: 0; }
  .publish-context__item { grid-template-columns: 1fr; gap: 2px; }
  .hist__row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hist__meta { align-items: flex-start; }
}
