:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f9fbff;
  --line: #e4e9f2;
  --line-strong: #d5dcea;
  --text: #1d2433;
  --text-subtle: #5f6b80;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --shadow: 0 8px 24px rgba(19, 36, 73, 0.08);
  --table-cell-y: 8px;
  --table-cell-x: 9px;
}

body.theme-dark {
  --bg: #11161f;
  --surface: #1a2230;
  --surface-2: #222c3d;
  --line: #2b3649;
  --line-strong: #3a4761;
  --text: #e6edf9;
  --text-subtle: #9dadc8;
  --primary: #4f8dff;
  --primary-hover: #3e7bf0;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  margin: 0;
  padding: 12px 12px 0;
  background: linear-gradient(180deg, #f7f9ff 0%, var(--bg) 100%);
  color: var(--text);
}

body:not(.login-screen) {
  padding: 0;
  background: var(--bg);
}

body.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.25) 2px, transparent 3px),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.2) 2px, transparent 3px),
    radial-gradient(circle at 35% 75%, rgba(255, 255, 255, 0.2) 2px, transparent 3px),
    linear-gradient(180deg, #2f3f56 0%, #2a374d 100%);
  background-size: 220px 220px, 280px 280px, 320px 320px, auto;
}

body.login-screen .app-title,
body.login-screen #app { display: none; }

.app-layout { display: flex; gap: 0; align-items: stretch; min-height: 100vh; }
.app-main { flex: 1; min-width: 0; padding: 14px 14px 16px; display: flex; flex-direction: column; }
.app-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: -2px 0 12px;
  flex-shrink: 0;
}
.app-header-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(31, 46, 82, 0.06);
  max-width: 100%;
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #4b80ff 0%, #2563eb 100%);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.user-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.25;
}
.user-display-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.user-display-role {
  font-size: 11px;
  color: var(--text-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.app-main .card:last-child { margin-bottom: 0; }

.app-view { display: none; }
.app-view.is-active { display: block; animation: appViewIn 0.18s ease-out; }
@keyframes appViewIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #323845 0%, #2a2f3a 100%);
  border-radius: 0;
  padding: 0;
  border: 0;
  border-right: 1px solid #232833;
  box-shadow: 4px 0 18px rgba(15, 22, 38, 0.12);
  align-self: stretch;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.2s ease;
}
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 14px 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.sidebar-brand {
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding: 0 4px;
  margin: 0;
  border-bottom: 0;
  line-height: 1.2;
  min-width: 0;
}
.sidebar-collapse-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #c8d2e4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-collapse-btn svg { width: 16px; height: 16px; display: block; }
.sidebar-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.sidebar-brand-ai {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #7eb0ff;
  text-shadow: 0 0 20px rgba(110, 168, 255, 0.35);
}
.sidebar-brand-text {
  font-size: 17px;
  font-weight: 700;
  color: #f4f7fc;
  letter-spacing: 0.02em;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px 16px;
}
.sidebar-group { display: flex; flex-direction: column; gap: 2px; }
.sidebar-group.is-open .sidebar-submenu { display: flex; }
.sidebar-group.is-open .sidebar-chevron { transform: rotate(0deg); }
.sidebar-group:not(.is-open) .sidebar-submenu { display: none; }
.sidebar-group:not(.is-open) .sidebar-chevron { transform: rotate(-90deg); }
.sidebar-group-toggle { cursor: pointer; }
.sidebar-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #8fa0bc;
  transition: transform 0.15s ease;
}
.sidebar-chevron svg { width: 14px; height: 14px; display: block; }
.sidebar-submenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 4px 42px;
}
.sidebar-subitem {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  margin: 0;
  padding: 7px 10px;
  background: transparent;
  color: #a8b6d0;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-subitem:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #eef3fb;
}
.sidebar-subitem.active {
  background: rgba(75, 128, 255, 0.22);
  color: #fff;
}
.sidebar-group.has-active-child > .sidebar-group-toggle {
  color: #eef3fb;
}
.sidebar-group.has-active-child > .sidebar-group-toggle .sidebar-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #d0dcf2;
}
body.sidebar-collapsed .app-sidebar { width: 64px; }
body.sidebar-collapsed .sidebar-brand-text,
body.sidebar-collapsed .sidebar-label,
body.sidebar-collapsed .sidebar-chevron,
body.sidebar-collapsed .sidebar-submenu { display: none !important; }
body.sidebar-collapsed .sidebar-head { justify-content: center; padding: 12px 8px; }
body.sidebar-collapsed .sidebar-brand-ai { font-size: 15px; }
body.sidebar-collapsed .sidebar-brand-text { display: none !important; }
body.sidebar-collapsed .sidebar-collapse-btn svg { transform: rotate(180deg); }
body.sidebar-collapsed .sidebar-nav { padding: 8px 6px 12px; }
body.sidebar-collapsed .sidebar-item { justify-content: center; padding: 9px 6px; }
body.sidebar-collapsed .sidebar-group-toggle .sidebar-label { display: none; }
.sidebar-item {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  margin: 0;
  padding: 9px 10px;
  background: transparent;
  color: #c8d2e4;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.sidebar-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #a8b6d0;
}
.sidebar-icon svg { width: 17px; height: 17px; display: block; }
.sidebar-label { flex: 1; line-height: 1.35; }
.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #eef3fb;
}
.sidebar-item:hover .sidebar-icon { background: rgba(255, 255, 255, 0.1); color: #d0dcf2; }
.sidebar-item.active {
  background: linear-gradient(90deg, rgba(75, 128, 255, 0.95) 0%, rgba(62, 108, 235, 0.88) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.sidebar-item.active .sidebar-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.app-topbar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(31, 46, 82, 0.06);
}
.topbar-head { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; width: 100%; }
.app-topbar { flex-wrap: wrap; }
.workbench-month-label { margin: 0; font-size: 12px; color: var(--text-subtle); font-weight: 600; }
.workbench-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 720px;
}
.workbench-kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  box-shadow: 0 2px 8px rgba(31, 46, 82, 0.05);
}
.workbench-kpi--accent {
  border-color: #9db9ff;
  background: linear-gradient(180deg, #eaf1ff 0%, #f8fbff 100%);
}
.workbench-kpi-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  color: #1a2f5c;
  letter-spacing: -0.02em;
}
.workbench-kpi--accent .workbench-kpi-value { color: #184bb8; font-size: 24px; }
.workbench-kpi-label { font-size: 11px; color: var(--text-subtle); line-height: 1.35; }
@media (max-width: 900px) {
  .workbench-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.topbar-title { font-size: 15px; font-weight: 700; color: #2e3b54; }
.topbar-subtitle { font-size: 12px; color: #6f7c92; margin-right: 6px; }

h2 { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
h3 { margin: 10px 0; font-size: 15px; font-weight: 700; }
.section-subtitle { margin: -4px 0 10px; color: var(--text-subtle); font-size: 12px; }
.group-title { margin: 10px 0 6px; font-size: 13px; color: #33425d; letter-spacing: 0.2px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 14px; box-shadow: var(--shadow); }
.row { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; align-items: center; }
.checkbox-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-subtle); max-width: 100%; }
.checkbox-label input { width: auto; min-width: 0; height: auto; }
.section-head { justify-content: space-between; margin-bottom: 4px; }
.section-head h2 { margin: 0; }

.sticky-tools {
  position: sticky;
  top: 8px;
  z-index: 3;
  background: rgba(247, 250, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  backdrop-filter: blur(2px);
}
body.theme-dark .sticky-tools { background: rgba(28, 37, 53, 0.94); }
.filter-right-tools {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-right-tools label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-subtle);
}
.filter-right-tools select {
  min-width: 86px;
  height: 30px;
}

.workflow-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 10px; }
.step-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: #4b5d80; background: #f5f8ff; font-size: 12px; font-weight: 600; }
.step-chip.active { border-color: #9db9ff; color: #184bb8; background: #eaf1ff; }

input, select, button, textarea {
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  transition: 0.16s ease;
}
input, select, button { height: 34px; padding: 0 10px; }
input, select { min-width: 118px; }
textarea { padding: 8px 10px; min-height: 58px; min-width: 340px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #8fb5ff; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14); }
button { cursor: pointer; font-weight: 600; }
button:hover { border-color: #bfcae0; background: #f4f7ff; }

#loginBtn, #createUserBtn, #addInfluencerBtn, #saveEditInfluencerBtn, #importBtn, #createShortlistBtn, #createShortlistAndSendBtn, #addInfluencerToJobByNicknameBtn, #saveGatewayBtn, #saveFeishuConfigBtn, #addFeishuContactBtn {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
#loginBtn:hover, #createUserBtn:hover, #addInfluencerBtn:hover, #saveEditInfluencerBtn:hover, #importBtn:hover, #createShortlistBtn:hover, #createShortlistAndSendBtn:hover, #addInfluencerToJobByNicknameBtn:hover, #saveGatewayBtn:hover, #saveFeishuConfigBtn:hover, #addFeishuContactBtn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
#cancelEditInfluencerBtn, #resetShortlistFormBtn, #loadShortlistBtn, #exportShortlistBtn, #confirmShortlistToHistoryBtn, #refreshShortlistJobsBtn, #refreshWechatLogsBtn, #testWecomConnectionBtn, #saveFeishuConfigBtn, #pushShortlistToFeishuBtn, #toggleAccountCardBtn, #toggleInfluencerCardBtn, #toggleShortlistCardBtn, #toggleGatewayCardBtn {
  background: #f3f6fb;
  border-color: #cdd7ea;
}

hr.gateway-split {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0 14px;
}

table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 8px; font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
th, td { border-bottom: 1px solid var(--line); border-right: 1px solid #edf1f8; padding: var(--table-cell-y) var(--table-cell-x); line-height: 1.52; vertical-align: top; }
th:last-child, td:last-child { border-right: 0; }
tr:last-child td { border-bottom: 0; }
th { background: var(--surface-2); color: #39445a; text-align: left; font-weight: 700; position: sticky; top: 0; }
tbody tr:hover td, tr:hover td { background: #f8fbff; }

.hidden { display: none; }
.hint { color: var(--text-subtle); font-size: 12px; margin: 4px 0 0; max-width: 820px; line-height: 1.45; }
.settlement-total { font-size: 14px; color: var(--text); font-weight: 600; margin: 8px 0 6px; }
.settlement-price-input { width: 6.5rem; padding: 4px 6px; }
.settlement-autosave-hint { min-height: 1.2em; color: var(--primary); font-size: 12px; margin: 4px 0 0; }
#userInfo { margin-bottom: 8px; color: #30415f; font-weight: 600; }
#authMsg, #importMsg, #shortlistMsg { color: #2e4a80; font-size: 12px; margin-left: 4px; }

.account-perm-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.account-perm-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 10px 0;
  align-items: center;
}
.account-inline-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-subtle);
}

.feishu-shortlist-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.feishu-shortlist-heading {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #2e3b54;
}
.feishu-shortlist-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  flex-shrink: 0;
}
.feishu-shortlist-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.feishu-shortlist-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.feishu-shortlist-msg {
  margin: 0;
  flex: 1;
  min-width: 120px;
}

.feishu-shortlist-title {
  width: 100%;
  margin: 10px 0 0;
  font-size: 14px;
}
.feishu-shortlist-hint {
  width: 100%;
  margin: 0 0 4px;
}
.feishu-receive-input {
  min-width: 220px;
  flex: 1;
}
.group-subtitle {
  font-size: 13px;
  font-weight: 700;
  margin: 12px 0 6px;
  color: #39445a;
}
.feishu-push-label {
  font-size: 12px;
  font-weight: 700;
  color: #39445a;
  margin-right: 6px;
  align-self: center;
}
#feishuPushContactSelect {
  min-width: 220px;
  max-width: 420px;
}

.manual-quote-input {
  width: 100%;
  min-width: 72px;
  max-width: 160px;
  font-size: 12px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-sizing: border-box;
}
.manual-quote-input.saved-flash {
  outline: 2px solid var(--primary);
  transition: outline 0.25s ease;
}

.note-text { white-space: pre-wrap; }
.note-images { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.note-thumb { width: 44px; height: 44px; object-fit: cover; border: 1px solid #d9e2f3; border-radius: 6px; background: #fff; }
.clip { display: inline-block; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

#authCard { width: 460px; max-width: calc(100vw - 24px); margin: 0 auto; }
.auth-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin: 0 auto 10px;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
body.login-screen #authCard {
  background: rgba(36, 50, 70, 0.9);
  border: 1px solid #3e5270;
  box-shadow: 0 20px 48px rgba(6, 14, 26, 0.45);
  color: #e9f0ff;
  padding: 34px 28px 28px;
}
body.login-screen #authCard h2 { color: #f2f6ff; text-align: center; margin-bottom: 4px; }
body.login-screen #authCard .section-subtitle { text-align: center; color: #9bb0d4; margin-bottom: 16px; }
body.login-screen #authCard .row { margin: 10px 0; }
body.login-screen #authCard input { width: 100%; height: 44px; background: rgba(24, 34, 48, 0.82); border-color: #3c5272; color: #eef3ff; }
body.login-screen #loginBtn { width: 100%; height: 44px; margin-top: 6px; }

body.density-compact th, body.density-compact td { font-size: 11px; }
body.density-compact input, body.density-compact select, body.density-compact button { height: 30px; }
body.density-relaxed th, body.density-relaxed td { font-size: 13px; }
body.density-relaxed input, body.density-relaxed select, body.density-relaxed button { height: 38px; }

body.theme-dark input, body.theme-dark select, body.theme-dark textarea { background: #1f2736; color: #e6edf9; }
body.theme-dark table { background: #1b2433; }
body.theme-dark tbody tr:hover td, body.theme-dark tr:hover td { background: #253147; }
body.theme-dark .app-sidebar { background: #161d29; border-color: #2f3b53; }
body.theme-dark .sidebar-item:hover { background: #27334a; }
body.theme-dark .app-header-user { background: #1a2230; border-color: #2f3b53; }
body.theme-dark .app-topbar { background: #1a2230; }
body.theme-dark .topbar-title { color: #dce7fb; }
body.theme-dark .topbar-subtitle { color: #9dadc8; }

@media (max-width: 1100px) {
  body:not(.login-screen) { padding: 0; }
  .app-sidebar { width: 200px; }
  body.sidebar-collapsed .app-sidebar { width: 64px; }
  .card { padding: 12px; }
  input, select { min-width: 106px; }
  textarea { min-width: 260px; }
}

@media (max-width: 760px) {
  .app-layout { display: block; min-height: auto; }
  .app-sidebar { width: 100%; min-height: auto; position: static; margin-bottom: 0; }
  body.sidebar-collapsed .app-sidebar { width: 100%; }
  .app-topbar { display: block; }
  .topbar-subtitle { display: block; margin: 2px 0; width: 100%; }
  .filter-right-tools { margin-left: 0; width: 100%; }
  .row { gap: 6px; }
  input, select, button { width: 100%; min-width: 0; }
  textarea { width: 100%; min-width: 0; }
}

.settlement-cloud-url-row {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.settlement-source-url-input {
  flex: 1;
  min-width: 200px;
}

.settlement-table-upload-row {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.settlement-field-label {
  font-size: 13px;
  color: var(--text-subtle);
  min-width: 88px;
}

.settlement-paste-block {
  margin: 12px 0 8px;
}

.settlement-paste-block .settlement-field-label {
  display: block;
  margin-bottom: 6px;
}

.settlement-paste-zone {
  min-height: 100px;
  padding: 14px 16px;
  border: 2px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  text-align: center;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.settlement-paste-zone:focus {
  border-color: var(--primary);
  background: var(--surface);
}

body.theme-dark .settlement-paste-zone:focus {
  background: #1f2736;
}

.settlement-paste-hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-subtle);
  line-height: 1.55;
}

.settlement-paste-hint kbd {
  display: inline-block;
  padding: 1px 6px;
  margin: 0 1px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  font-family: inherit;
  background: var(--surface);
}

.settlement-paste-preview {
  display: block;
  max-width: 100%;
  max-height: 220px;
  margin: 10px auto 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: contain;
}

.settlement-paste-preview.hidden {
  display: none;
}

.settlement-clear-paste {
  margin-top: 8px;
}

.settlement-clear-paste.hidden {
  display: none;
}

.settlement-month-label {
  font-size: 13px;
  color: var(--text-subtle);
  white-space: nowrap;
}

input[type="month"] {
  min-width: 132px;
}

button.btn-danger-soft {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
  font-weight: 600;
}

button.btn-danger-soft:hover {
  border-color: #f87171;
  background: #fee2e2;
}

body.theme-dark button.btn-danger-soft {
  color: #fca5a5;
  border-color: #7f1d1d;
  background: #3f1515;
}

body.theme-dark button.btn-danger-soft:hover {
  background: #5c1f1f;
}
