:root {
  --bg: #080b12;
  --bg-2: #0c111b;
  --panel: #101725;
  --panel-2: #141c2d;
  --border: #1e2940;
  --border-soft: #18202f;
  --text: #e9eefb;
  --muted: #8b98b0;
  --muted-2: #64718a;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --blue: #3b82f6;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(1000px 600px at 12% -10%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(34, 211, 238, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
svg { vertical-align: middle; }

/* ------------------------------ 布局 ------------------------------ */

.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  background: rgba(10, 14, 23, 0.72);
  border-right: 1px solid var(--border-soft);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 22px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), #4f46e5 55%, var(--accent-2));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 8px 22px rgba(124, 92, 255, 0.35);
}

.brand-name { font-weight: 700; font-size: 15px; letter-spacing: 0.2px; }
.brand-sub { font-size: 11px; color: var(--muted-2); letter-spacing: 2px; }

.nav { display: flex; flex-direction: column; gap: 3px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13.5px;
  transition: 0.16s;
}

.nav-link:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.nav-link.active {
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.18), rgba(124, 92, 255, 0.04));
  color: #fff;
  box-shadow: inset 2px 0 0 var(--accent);
}

.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  font-size: 11px;
  display: grid;
  place-items: center;
}

.sidebar-foot {
  margin-top: auto;
  padding: 12px 10px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 11.5px;
  color: var(--muted-2);
  line-height: 1.7;
}

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 32px 14px;
}

.page-title { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: 0.2px; }
.page-sub { margin: 3px 0 0; color: var(--muted-2); font-size: 12.5px; }

.topbar-right { display: flex; align-items: center; gap: 14px; padding-top: 4px; }

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(16, 23, 37, 0.7);
}

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16); }
.dot.red { background: var(--red); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16); }
.dot.amber { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16); }
.dot.gray { background: var(--muted-2); box-shadow: none; }

.view { padding: 8px 32px 60px; }

/* ------------------------------ 通用组件 ------------------------------ */

.card {
  background: linear-gradient(180deg, rgba(20, 28, 45, 0.9), rgba(15, 21, 34, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
}

.card-title { font-size: 14.5px; font-weight: 650; margin: 0; }
.card-sub { color: var(--muted-2); font-size: 12px; margin: 2px 0 0; }
.card-body { padding: 0 18px 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: 0.16s;
  white-space: nowrap;
}

.btn:hover { background: rgba(255, 255, 255, 0.07); border-color: #2a3650; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, #7c5cff, #5b46e8);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(124, 92, 255, 0.28);
}
.btn-primary:hover { filter: brightness(1.08); background: linear-gradient(135deg, #7c5cff, #5b46e8); }

.btn-danger { color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.08); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.16); }

.btn-sm { height: 28px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.btn-icon { width: 32px; padding: 0; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }

.input, .select, .textarea {
  width: 100%;
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 9px 11px;
  font-size: 13px;
  outline: none;
  transition: 0.16s;
}

.input:focus, .select:focus, .textarea:focus { border-color: rgba(124, 92, 255, 0.65); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.12); }
.textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: #4d5a72; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #64718a 50%), linear-gradient(135deg, #64718a 50%, transparent 50%); background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12.5px; color: var(--muted); font-weight: 550; }
.field-hint { font-size: 11.5px; color: var(--muted-2); line-height: 1.6; }
.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.switch {
  position: relative;
  width: 38px;
  height: 21px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #1a2233;
  cursor: pointer;
  transition: 0.18s;
  flex: none;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #8593ab;
  transition: 0.18s;
}
.switch.on { background: rgba(34, 197, 94, 0.25); border-color: rgba(34, 197, 94, 0.5); }
.switch.on::after { left: 19px; background: var(--green); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill .pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.online { color: #6ee7a0; background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.25); }
.pill.expired { color: #fca5a5; background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.25); }
.pill.error { color: #fcd34d; background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.25); }
.pill.unknown { color: #9aa8c0; background: rgba(148, 163, 184, 0.08); border-color: rgba(148, 163, 184, 0.2); }
.pill.checking { color: #93c5fd; background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.25); }
.pill.scheduled { color: #c4b5fd; background: rgba(124, 92, 255, 0.12); border-color: rgba(124, 92, 255, 0.3); }
.pill.publishing { color: #93c5fd; background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.3); }
.pill.success { color: #6ee7a0; background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.25); }
.pill.partial { color: #fcd34d; background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.25); }
.pill.failed { color: #fca5a5; background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.25); }
.pill.canceled { color: #94a3b8; background: rgba(148, 163, 184, 0.08); border-color: rgba(148, 163, 184, 0.2); }
.pill.retrying { color: #fcd34d; background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.25); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.22);
  color: #c4b5fd;
  font-size: 11.5px;
}

.platform {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
}
.platform-dot { width: 8px; height: 8px; border-radius: 3px; flex: none; }

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex: none;
}

/* ------------------------------ 概览 ------------------------------ */

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }

.stat {
  position: relative;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(22, 30, 48, 0.95), rgba(13, 18, 30, 0.95));
  overflow: hidden;
}
.stat::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.16), transparent 70%);
}
.stat-label { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 7px; }
.stat-value { font-size: 30px; font-weight: 750; letter-spacing: -0.5px; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.stat-foot { color: var(--muted-2); font-size: 11.5px; }
.stat-foot b { color: var(--green); font-weight: 600; }
.stat-foot .warn { color: var(--amber); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }

.bar-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.bar-row .platform { width: 96px; flex: none; }
.bar-track { flex: 1; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; }
.bar-count { width: 28px; text-align: right; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.list-item:last-child { border-bottom: none; }
.list-main { min-width: 0; flex: 1; }
.list-title { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-sub { font-size: 11.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------ 表格 ------------------------------ */

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left;
  font-weight: 550;
  font-size: 11.5px;
  letter-spacing: 0.4px;
  color: var(--muted-2);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.table tbody tr:last-child td { border-bottom: none; }
.table .col-check { width: 36px; }
.table .actions { display: flex; gap: 4px; justify-content: flex-end; }

.account-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-name { font-weight: 550; font-size: 13px; }
.account-sub { font-size: 11px; color: var(--muted-2); }

/* ------------------------------ 工具栏 ------------------------------ */

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar-left { display: flex; align-items: center; gap: 10px; flex: 1; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search { position: relative; }
.search .input { width: 220px; padding-left: 30px; }
.search svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }

.bulkbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(124, 92, 255, 0.09);
  border: 1px solid rgba(124, 92, 255, 0.25);
  font-size: 12.5px;
}
.bulkbar .spacer { flex: 1; }

/* ------------------------------ 内容卡片 ------------------------------ */

.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }

.content-card { display: flex; flex-direction: column; }
.content-cover {
  height: 132px;
  background: linear-gradient(135deg, #1b2440, #101725);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.content-cover img { width: 100%; height: 100%; object-fit: cover; }
.content-cover .cover-letter { font-size: 40px; font-weight: 800; color: rgba(255, 255, 255, 0.16); }
.content-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.content-title { font-size: 14px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.content-meta { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: 11.5px; }
.content-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }

/* ------------------------------ 任务 ------------------------------ */

.task-card { padding: 16px 18px; margin-bottom: 12px; }
.task-head { display: flex; align-items: flex-start; gap: 12px; }
.task-title { font-size: 14.5px; font-weight: 600; }
.task-meta { display: flex; align-items: center; gap: 14px; color: var(--muted-2); font-size: 12px; margin-top: 4px; flex-wrap: wrap; }
.task-side { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.target-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.target {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-soft);
  font-size: 11.5px;
  color: var(--muted);
}
.target .target-status { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.target.success .target-status { background: var(--green); }
.target.failed .target-status { background: var(--red); }
.target.publishing .target-status { background: var(--blue); animation: pulse 1.4s infinite; }
.target.pending .target-status { background: var(--amber); }
.target a { color: #93c5fd; text-decoration: underline; text-underline-offset: 2px; }

.progress { height: 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin-top: 13px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; transition: width 0.4s; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ------------------------------ 日志 ------------------------------ */

.log-level { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; }
.log-level::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.log-info { color: #93c5fd; }
.log-success { color: #6ee7a0; }
.log-warn { color: #fcd34d; }
.log-error { color: #fca5a5; }
.log-debug { color: #7f8ca3; }

/* ------------------------------ 空状态 ------------------------------ */

.empty { text-align: center; padding: 46px 20px; }
.empty-icon { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: rgba(124, 92, 255, 0.1); border: 1px solid rgba(124, 92, 255, 0.22); color: #c4b5fd; }
.empty-title { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.empty-text { color: var(--muted-2); font-size: 12.5px; max-width: 440px; margin: 0 auto 16px; line-height: 1.7; }
.empty-actions { display: flex; gap: 10px; justify-content: center; }

/* ------------------------------ 弹窗 ------------------------------ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 20px;
  z-index: 60;
  overflow-y: auto;
}

.modal {
  width: 100%;
  max-width: 640px;
  background: linear-gradient(180deg, #151d2e, #0f1522);
  border: 1px solid #253149;
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: modalIn 0.18s ease-out;
}

@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(0.99); } to { opacity: 1; transform: none; } }

.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 0; }
.modal-title { font-size: 16px; font-weight: 650; margin: 0; }
.modal-sub { color: var(--muted-2); font-size: 12px; margin: 3px 0 0; }
.modal-close { margin-left: auto; }
.modal-body { padding: 18px 22px; }
.modal-foot { display: flex; align-items: center; gap: 9px; justify-content: flex-end; padding: 0 22px 20px; }

/* ------------------------------ 登录 ------------------------------ */

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }

.auth-brand {
  position: relative;
  padding: 62px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border-soft);
  background:
    radial-gradient(700px 420px at 20% 15%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(520px 380px at 85% 85%, rgba(34, 211, 238, 0.1), transparent 60%);
  overflow: hidden;
}

.auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.auth-title { font-size: 34px; line-height: 1.3; font-weight: 750; letter-spacing: -0.5px; margin: 0 0 14px; }
.auth-desc { color: var(--muted); font-size: 14px; max-width: 460px; line-height: 1.85; }
.auth-points { margin-top: 34px; display: grid; gap: 15px; max-width: 430px; }
.auth-point { display: flex; gap: 11px; font-size: 13px; color: var(--muted); }
.auth-point b { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; }
.auth-point .pt-icon { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: rgba(124, 92, 255, 0.12); color: #c4b5fd; }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card { width: 100%; max-width: 360px; }
.auth-card h2 { font-size: 22px; margin: 0 0 6px; }
.auth-card p.sub { color: var(--muted-2); font-size: 13px; margin: 0 0 24px; }

/* ------------------------------ 提示 ------------------------------ */

.toast-wrap { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 9px; z-index: 90; }
.toast {
  min-width: 240px;
  max-width: 380px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #172033;
  border: 1px solid #28344c;
  box-shadow: var(--shadow);
  font-size: 13px;
  animation: toastIn 0.2s ease-out;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.toast.success { border-color: rgba(34, 197, 94, 0.45); }
.toast.error { border-color: rgba(239, 68, 68, 0.5); }
.toast.warn { border-color: rgba(245, 158, 11, 0.5); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hint-box {
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #a8c3ea;
  font-size: 12px;
  line-height: 1.75;
}
.warn-box {
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: #e8c78a;
  font-size: 12px;
  line-height: 1.75;
}
.hint-box b, .warn-box b { color: #fff; }

.code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 1px 5px;
  font-size: 11.5px;
  color: #b9c6de;
}

.result-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; margin-top: 12px; }
.result-row { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 6px 9px; border-radius: 7px; background: rgba(255, 255, 255, 0.03); }
.result-row .name { font-weight: 550; }
.result-row .msg { color: var(--muted-2); margin-left: auto; text-align: right; }

.file-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.file-chip { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 7px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-soft); font-size: 11.5px; color: var(--muted); }
.file-chip img { width: 26px; height: 26px; border-radius: 5px; object-fit: cover; }

.danger-zone { border-color: rgba(239, 68, 68, 0.3); }
.danger-zone .card-head { border-bottom: 1px solid rgba(239, 68, 68, 0.15); }

.divider { height: 1px; background: var(--border-soft); margin: 16px 0; }

.mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 11.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 5px; }
input[type="checkbox"] { accent-color: #7c5cff; width: 15px; height: 15px; cursor: pointer; }
.pick-row:hover { background: rgba(255, 255, 255, 0.04); }

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
}

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; padding: 12px; overflow-x: auto; }
  .brand { padding: 0 12px 0 0; }
  .brand-sub { display: none; }
  .nav { flex-direction: row; }
  .nav-link span { display: none; }
  .sidebar-foot { display: none; }
  .topbar, .view { padding-left: 16px; padding-right: 16px; }
  .topbar { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
}
