:root {
  --blue: #1768ff;
  --blue-dark: #0b4edb;
  --blue-soft: #edf4ff;
  --ink: #182033;
  --muted: #778198;
  --line: #e7ebf2;
  --surface: #ffffff;
  --page: #f4f7fb;
  --success: #00a86b;
  --danger: #dc3b4b;
  --shadow: 0 10px 36px rgba(39, 68, 118, 0.08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 1180px;
  background:
    radial-gradient(circle at 12% 0, rgba(23, 104, 255, .075), transparent 25rem),
    linear-gradient(180deg, #f8faff 0, var(--page) 240px);
}
body.session-pending > * { visibility: hidden; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 44px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(35, 58, 104, .045);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.brand > div:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 17px; }
.brand span { font-size: 12px; color: var(--muted); }
.brand-mark {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe5ee;
  box-shadow: 0 8px 22px rgba(11,41,69,.15);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.23);
}
.brand-mark.small { width: 38px; height: 38px; border-radius: 11px; }
.topnav { display: flex; align-self: stretch; gap: 30px; }
.topnav button {
  display: flex; align-items: center; position: relative;
  color: #4d5669;
  border: 0;
  background: transparent;
  padding: 0;
  text-decoration: none;
  font-size: 15px;
}
.topnav .active { color: var(--blue); font-weight: 650; }
.topnav .active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--blue);
}
.user-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 7px;
  background: linear-gradient(145deg, #f8faff, #f3f7fd);
  border: 1px solid #e3e9f3;
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.user-identity-copy {
  min-width: 84px;
  display: grid;
  gap: 2px;
  margin-right: 2px;
  padding-right: 12px;
  border-right: 1px solid #dfe5ef;
}
.user-menu strong { max-width: 120px; overflow: hidden; color: #253149; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.user-menu span { color: #7c879c; font-size: 10px; font-weight: 550; }
.avatar {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #1260f4, #39a2ff);
  box-shadow: 0 7px 16px rgba(23,104,255,.2);
  font-weight: 750;
}
.text-button {
  min-height: 34px;
  padding: 0 11px;
  color: #566279;
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}
.text-button:hover {
  color: var(--blue);
  background: #f7faff;
  border-color: #a9c5ff;
  transform: translateY(-1px);
}
#logout-button {
  color: #9b4f5a;
  background: #fff8f8;
  border-color: #f1d9dc;
}
#logout-button:hover {
  color: #c62f40;
  background: #fff1f3;
  border-color: #efb7be;
}

.page-shell { width: min(96vw, 1840px); margin: 22px auto 42px; }
.filter-card, .table-card {
  background: var(--surface); border: 1px solid rgba(227,232,241,.8);
  border-radius: 18px; box-shadow: var(--shadow);
}
.filter-card {
  padding: 0 24px 20px;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) auto;
  align-items: center;
}
.view-heading {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}
.view-heading span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.5px;
}
.view-heading h1 {
  margin: 2px 0 0;
  font-size: 20px;
  letter-spacing: -.25px;
}
.view-heading p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.platform-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.asset-type-filter {
  align-items: center;
  display: flex;
  width: 100%;
  height: 42px;
  gap: 4px;
  padding: 3px;
  background: #f5f7fa;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.asset-type-filter button {
  flex: 1;
  height: 34px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #53627a;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 0 12px;
}

.asset-type-filter button.active {
  background: #1769ff;
  color: #fff;
  box-shadow: 0 5px 14px rgba(23, 105, 255, 0.2);
}

.platform-filter strong {
  margin-right: 8px;
  color: #4b5870;
  font-size: 18px;
  font-weight: 900;
}
.platform-filter button {
  min-width: 72px;
  height: 40px;
  padding: 0 18px;
  color: #657087;
  background: #f5f7fa;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.platform-filter button:hover {
  color: var(--blue-dark);
  background: var(--blue-soft);
}
.platform-filter button.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(23, 104, 255, .2);
}
.date-range {
  position: static;
  min-height: 82px; display: flex; align-items: center; gap: 8px;
  color: #475168; font-size: 13px;
  border-bottom: 1px solid var(--line);
  justify-content: flex-end;
}
.range-inputs { display: flex; align-items: center; gap: 8px; }
.today-date {
  min-width: 116px;
  padding: 9px 14px;
  color: var(--blue-dark);
  text-align: center;
  background: var(--blue-soft);
  border-radius: 9px;
  font-size: 13px;
}
.date-range input {
  border: 1px solid transparent;
  background: #f5f7fa;
  border-radius: 9px;
  padding: 8px 10px;
  color: #374056;
}
.date-range input:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23,104,255,.08);
}
.filter-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  padding-top: 16px;
}
.filter-export { margin-left: auto; }
.filter-field {
  display: grid;
  min-width: 0;
  gap: 7px;
}
.filter-field-label {
  padding-left: 2px;
  color: #5d687e;
  text-align: left;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}
.account-search-field { width: 250px; flex: 0 1 250px; }
.account-select-field { width: 190px; flex: 0 0 190px; }
.asset-type-field { width: 150px; flex: 0 0 150px; }
.video-search-field { width: 250px; flex: 0 1 250px; }
.operator-select-field { width: 160px; flex: 0 0 160px; }
.search-box {
  width: 390px; height: 42px; display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #f8fafc;
}
.video-search-field .search-box { width: 100%; }
.account-search-control {
  position: relative;
  width: 100%;
}
.account-search-box { width: 100%; }
.account-search-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 310px;
  overflow-y: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 18px 42px rgba(28, 48, 85, .18);
}
.account-search-option {
  width: 100%;
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  color: #303b50;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
}
.account-search-option:hover,
.account-search-option.active {
  color: var(--blue);
  background: var(--blue-soft);
}
.account-search-option strong { font-size: 13px; font-weight: 650; }
.account-search-option span { color: var(--muted); font-size: 11px; }
.account-search-empty { padding: 16px 12px; color: var(--muted); font-size: 12px; text-align: center; }
#account-select, #operator-select { width: 100%; min-width: 0; }
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,104,255,.09); }
.search-icon { font-size: 24px; color: var(--blue); padding: 0 12px; }
.search-box input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; }
select {
  min-height: 40px; border: 1px solid var(--line); border-radius: 9px;
  color: #475168; background: #fff; padding: 0 34px 0 12px;
}
.sync-status { color: var(--blue); font-size: 13px; font-weight: 550; }
.sync-status:not(:empty)::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(23,104,255,.1);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .4; transform: scale(.82); } }
.primary-button, .secondary-button {
  border-radius: 9px; min-height: 40px; padding: 0 18px; font-weight: 650;
}
.primary-button { border: 1px solid var(--blue); color: #fff; background: var(--blue); }
.primary-button:hover { background: var(--blue-dark); }
.primary-button.compact { min-height: 34px; padding: 0 16px; }
.secondary-button { border: 1px solid #d8deea; color: #44506a; background: #fff; }
.secondary-button:hover { color: var(--blue); border-color: var(--blue); }

.summary-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 14px 0; }
.summary-grid article {
  min-width: 0;
  position: relative;
  overflow: hidden;
  padding: 18px 20px 19px 24px;
  background: linear-gradient(145deg,#fff,#f8fbff);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.summary-grid article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  bottom: 15px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--blue);
}
.summary-grid article:nth-child(2)::before { background: #6556e8; }
.summary-grid article:nth-child(3)::before { background: #00a6a6; }
.summary-grid article:nth-child(4)::before { background: #e8a423; }
.summary-grid article:nth-child(5)::before { background: #0aa76b; }
.summary-grid article:nth-child(6)::before { background: #e96c88; }
.summary-grid article:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(39,68,118,.09);
}
.summary-metric-select {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 0 22px 0 0;
  border: 0;
  outline: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-overflow: ellipsis;
}
.summary-metric-select:focus { color: var(--blue); }
.summary-grid strong { font-size: 21px; letter-spacing: -.4px; }
.summary-grid .account-video-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  text-align: center;
  font-family: "Microsoft YaHei UI", "Source Han Sans SC", "PingFang SC", sans-serif;
  background: #fff;
  box-shadow: none;
}
.summary-grid .account-video-summary span,
.summary-grid .account-video-summary strong {
  width: 100%;
  color: #0a0f1c;
  font-size: clamp(17px, 1.12vw, 21px);
  line-height: 1.18;
  letter-spacing: -.25px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.summary-grid .account-video-summary span {
  font-weight: 800;
}
.summary-grid .account-video-summary strong {
  font-weight: 900;
}

.table-card { overflow: hidden; position: relative; }
#video-table-card.is-refreshing .table-wrap,
#video-table-card.is-refreshing .pagination {
  opacity: .58;
  transition: opacity .12s ease;
}
#video-table-card.is-refreshing::after {
  content: "正在更新…";
  position: absolute;
  z-index: 30;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 9px 18px;
  border: 1px solid #dbe5f6;
  border-radius: 999px;
  color: #37639d;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(29, 73, 137, .14);
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
}
.table-toolbar {
  min-height: 82px; padding: 15px 22px; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--line);
}
.table-toolbar h2 { margin: 0 0 4px; font-size: 17px; }
.table-toolbar p { margin: 0; color: var(--muted); font-size: 12px; }
.toolbar-actions { display: flex; gap: 10px; }
.notice { margin: 14px 20px 0; padding: 12px 14px; border-radius: 9px; color: #85500b; background: #fff8e7; border: 1px solid #ffe0a1; }
.table-wrap {
  overflow: auto;
  scrollbar-color: #aeb8ca #edf1f6;
  scrollbar-width: thin;
}
.table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.table-wrap::-webkit-scrollbar-track { background: #edf1f6; }
.table-wrap::-webkit-scrollbar-thumb {
  background: #aeb8ca;
  border-radius: 999px;
  border: 2px solid #edf1f6;
}
table { width: 100%; min-width: 2320px; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.account-summary-table { min-width: 1740px; }
.summary-table-wrap { max-height: calc(100vh - 355px); min-height: 320px; }
thead th {
  height: 44px; padding: 0 14px; text-align: left; white-space: nowrap;
  color: #3e475a; background: #f3f5f8; font-weight: 650;
  position: sticky;
  top: 0;
  z-index: 3;
  box-shadow: inset 0 -1px 0 var(--line);
}
.sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-height: 32px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}
th.number-cell .sort-button { margin-left: auto; }
.sort-button > span {
  color: #a5afbf;
  font-size: 14px;
  line-height: 1;
}
.sort-button.active { color: var(--blue); }
.sort-button.active > span { color: var(--blue); }
.sort-button small {
  display: none;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 9px;
  line-height: 16px;
}
.sort-button.active small { display: inline-flex; }
tbody td { min-height: 72px; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:hover { background: #f8fbff; }
.video-column {
  width: 350px;
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 1px 0 0 var(--line);
}
.wechat-platform-table table {
  min-width: 1280px;
  table-layout: fixed;
}
.wechat-platform-table .video-column { width: 330px; }
.wechat-platform-table .account-column { width: 200px; }
.wechat-platform-table tbody .account-column { white-space: normal; }
.wechat-platform-table [data-metric-column] { width: calc((100% - 530px) / 4); }
.wechat-platform-table th.number-cell,
.wechat-platform-table td.number-cell { text-align: center; }
.wechat-platform-table th.number-cell .sort-button {
  justify-content: center;
  margin-right: auto;
}
.standard-platform-table table {
  min-width: 2475px;
  table-layout: fixed;
}
.standard-platform-table .video-column { width: 350px; }
.standard-platform-table .account-column { width: 260px; }
.standard-platform-table tbody .account-column {
  white-space: normal;
  vertical-align: middle;
}
.standard-platform-table [data-metric-column] { width: 125px; }
.standard-platform-table [data-metric-column="attributed_conversions"] { width: 150px; }
.standard-platform-table [data-metric-column="attributed_conversion_cost"] { width: 160px; }
.standard-platform-table [data-metric-column="cpc"] { width: 150px; }
.standard-platform-table [data-metric-column="cpm"] { width: 180px; }
.standard-platform-table [data-metric-column="deep_conversion_cost"] { width: 180px; }
.standard-platform-table th.number-cell,
.standard-platform-table td.number-cell {
  text-align: center;
  vertical-align: middle;
}
.standard-platform-table th.number-cell .sort-button {
  width: 100%;
  justify-content: center;
  margin: 0;
}
tbody tr:hover .video-column { background: #f8fbff; }
thead .video-column { z-index: 5; background: #f3f5f8; }
.video-info { display: flex; align-items: center; gap: 11px; }
.video-download {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.video-download:hover strong { color: var(--blue); }
.video-download small { color: var(--blue); }
.video-info img, .thumb-placeholder {
  width: 54px; height: 54px; border-radius: 8px; object-fit: cover; background: #edf1f7;
}
.thumb-placeholder { display: grid; place-items: center; color: #94a0b5; }
.video-info > div:last-child { display: grid; gap: 3px; min-width: 0; }
.video-info strong { max-width: 245px; overflow: hidden; text-overflow: ellipsis; font-weight: 550; }
.video-info span, .video-info small, .account-cell span { color: #8791a6; font-size: 11px; }
.account-cell { display: grid; gap: 5px; }
.account-cell strong { font-weight: 550; }
.summary-account-cell {
  min-width: 210px;
  display: grid;
  gap: 4px;
}
.summary-account-cell strong { font-size: 13px; }
.summary-account-cell span { color: var(--muted); font-size: 11px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #687186;
  background: #f3f5f8;
}
.status.success { color: #087f55; background: #ecfbf5; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: #acb4c2; }
.status.success i { background: var(--success); }
.number-cell { text-align: right; font-variant-numeric: tabular-nums; }
.metric-strong { font-weight: 650; }
.link-number { color: var(--blue); }
.loading-row {
  position: sticky;
  left: 0;
  width: calc(100vw - 44px);
  max-width: calc(100vw - 44px);
  box-sizing: border-box;
  padding: 52px;
  text-align: center;
  color: var(--muted);
}
.compact-empty-row td {
  height: 92px;
  text-align: center;
  color: var(--muted);
  background: #fbfcfe;
}
.compact-empty-row strong { color: #4c566a; margin-right: 10px; }
.compact-empty-row span { font-size: 12px; }
.video-empty-state {
  min-height: 128px;
  width: calc(100vw - 44px);
  max-width: calc(100vw - 44px);
  position: sticky;
  left: 0;
  box-sizing: border-box;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
}
.video-empty-state strong {
  margin: 0;
  color: #263249;
  font-size: 19px;
  font-weight: 850;
}
.video-empty-state .t-plus-one-note {
  padding: 8px 16px;
  color: #8a620d;
  background: #fff8e7;
  border: 1px solid #f3d389;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.pagination { height: 70px; display: flex; align-items: center; justify-content: flex-end; gap: 20px; padding: 0 22px; }
.pagination > span { color: #5f687a; font-size: 13px; }
.page-controls { display: flex; align-items: center; gap: 8px; }
.page-controls button {
  width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 20px;
}
.page-controls span { min-width: 65px; text-align: center; color: #4f596c; font-size: 13px; }

.toast {
  position: fixed; right: 28px; bottom: 28px; z-index: 30;
  padding: 13px 18px; border-radius: 10px; color: #fff; background: #202a3e;
  box-shadow: 0 15px 35px rgba(15,23,42,.25);
}
.toast.error { background: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.handoff-management { display: grid; gap: 14px; }
.handoff-hero {
  min-height: 116px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(circle at 84% 0, rgba(87, 169, 255, .32), transparent 20rem),
    linear-gradient(120deg, #0c347d, #1768ff);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(23, 104, 255, .18);
}
.handoff-hero span { color: #a8c9ff; font-size: 10px; font-weight: 750; letter-spacing: 1.7px; }
.handoff-hero h1 { margin: 5px 0 3px; font-size: 26px; }
.handoff-hero p { margin: 0; color: #d8e7ff; font-size: 12px; }
.handoff-create-button {
  min-height: 44px;
  padding: 0 20px;
  color: #0b4edb;
  background: #fff;
  border-color: #fff;
  box-shadow: 0 10px 25px rgba(3, 30, 84, .2);
}
.handoff-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.handoff-stat-card {
  min-height: 70px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.handoff-stat-grid strong { color: #1c2941; font-size: 22px; }
.handoff-toolbar {
  padding: 14px;
  display: flex;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.handoff-search-box { width: min(480px, 100%); }
.handoff-upload-filter {
  min-height: 78px;
  padding: 13px 16px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(39, 68, 118, .04);
}
.handoff-upload-filter label { display: grid; gap: 7px; }
.handoff-upload-filter label > span {
  padding-left: 2px;
  color: #536076;
  font-size: 12px;
  font-weight: 750;
}
.handoff-upload-filter select {
  width: 230px;
  height: 40px;
  padding: 0 34px 0 11px;
  color: #344158;
  background-color: #f8fafc;
  border: 1px solid #dce3ee;
  border-radius: 9px;
  font-size: 12px;
  outline: 0;
}
.handoff-upload-filter select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23,104,255,.09);
}
.handoff-upload-filter-copy {
  margin: 0 0 11px auto;
  color: #7c8798;
  font-size: 12px;
}
.handoff-list { display: grid; gap: 14px; }
.handoff-list.scroll-mode {
  max-height: min(72vh, 760px);
  padding-right: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #aeb8ca #edf1f6;
  scrollbar-width: thin;
}
.handoff-list.scroll-mode::-webkit-scrollbar { width: 10px; }
.handoff-list.scroll-mode::-webkit-scrollbar-track {
  background: #edf1f6;
  border-radius: 999px;
}
.handoff-list.scroll-mode::-webkit-scrollbar-thumb {
  background: #aeb8ca;
  border: 2px solid #edf1f6;
  border-radius: 999px;
}
.handoff-pagination {
  min-height: 66px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(39, 68, 118, .04);
}
.handoff-pagination[hidden] { display: none; }
.handoff-pagination button {
  min-width: 88px;
  height: 38px;
  padding: 0 16px;
  color: #315071;
  background: #f7f9fc;
  border: 1px solid #d8e1ed;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 720;
}
.handoff-pagination button:not(:disabled):hover {
  color: var(--blue);
  background: #eef4ff;
  border-color: #b9cdf1;
}
.handoff-pagination button:disabled { opacity: .42; }
.handoff-pagination span {
  min-width: 96px;
  color: #536076;
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.handoff-card {
  overflow: hidden;
  padding: 21px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 10px 30px rgba(39, 68, 118, .055);
}
.handoff-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.handoff-title-line { display: flex; align-items: center; gap: 9px; }
.handoff-title-line h2 { margin: 0; font-size: 18px; }
.handoff-card-head p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.handoff-id { color: #9aa4b5; font-size: 11px; font-weight: 650; }
.handoff-status {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.handoff-status.open { color: #9b6100; background: #fff6dd; }
.handoff-status.claimed { color: #0b4edb; background: #edf4ff; }
.handoff-status.review { color: #6d28d9; background: #f2eaff; }
.handoff-status.completed { color: #087f55; background: #eafaf3; }
.handoff-owner {
  padding: 8px 12px;
  color: #1551b5;
  background: #edf4ff;
  border-radius: 10px;
  font-size: 11px;
  white-space: nowrap;
}
.handoff-owner.muted { color: var(--muted); background: #f4f6f9; }
.handoff-instructions {
  margin-top: 16px;
  padding: 12px 14px;
  color: #4d586d;
  background: #f7f9fc;
  border-left: 3px solid #8eb5ff;
  border-radius: 0 9px 9px 0;
  font-size: 12px;
  line-height: 1.7;
}
.handoff-columns { margin-top: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.handoff-columns > section {
  padding: 14px;
  background: #fbfcfe;
  border: 1px solid #edf0f5;
  border-radius: 12px;
}
.handoff-section-title { margin-bottom: 10px; display: flex; justify-content: space-between; }
.handoff-section-title strong { font-size: 13px; }
.handoff-section-title span { color: var(--muted); font-size: 10px; }
.handoff-files { display: grid; gap: 8px; }
.handoff-file {
  min-height: 54px;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid #e6eaf1;
  border-radius: 10px;
}
.handoff-file.final { border-color: #cceadd; background: #fbfffd; }
.handoff-file-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: #0b4edb; background: #eaf2ff;
  border-radius: 9px; font-size: 11px; font-weight: 750;
}
.handoff-file.final .handoff-file-icon { color: #087f55; background: #e7f8f0; }
.handoff-file > div { min-width: 0; display: grid; gap: 3px; }
.handoff-file strong { overflow: hidden; color: #253149; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.handoff-file small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.handoff-file a { display: inline-flex; align-items: center; text-decoration: none; }
.handoff-review { margin-top: 12px; color: #69758a; font-size: 11px; text-align: right; }
.handoff-actions {
  margin-top: 16px;
  padding-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #edf0f5;
}
.handoff-delete { color: #c93c4d; background: transparent; border: 0; font-size: 11px; }
.handoff-empty {
  min-height: 230px;
  display: grid;
  place-content: center;
  justify-items: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed #d8dee9;
  border-radius: 16px;
}
.handoff-empty span {
  width: 42px; height: 42px; margin-bottom: 10px;
  display: grid; place-items: center;
  color: var(--blue); background: var(--blue-soft); border-radius: 14px;
}
.handoff-empty strong { color: #354158; }
.handoff-empty p { margin: 6px 0 0; font-size: 11px; }
.handoff-modal-card { width: min(660px, 94vw); }
.file-picker { display: grid; gap: 8px; color: #525d72; font-size: 12px; }
.file-picker input[type="file"] {
  height: auto;
  padding: 13px;
  background: #f8faff;
  border: 1px dashed #afc8f9;
}
.file-picker small { color: var(--muted); }
.form-grid textarea {
  width: 100%;
  padding: 11px 12px;
  resize: vertical;
  color: #303b50;
  background: #fbfcfe;
  border: 1px solid #dde3ed;
  border-radius: 9px;
  outline: 0;
  font: inherit;
  line-height: 1.6;
}
.form-grid textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,104,255,.09); }
.upload-progress {
  height: 38px;
  margin-top: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #2451a2;
  background: #edf4ff;
  border-radius: 9px;
  font-size: 11px;
}
.upload-progress span { position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(23,104,255,.12); transition: width .16s linear; }

#handoff-management {
  --handoff-ink: #17211d;
  --handoff-green: #087052;
  --handoff-lime: #c9f36b;
  --handoff-paper: #f3f1e9;
  color: var(--handoff-ink);
}
.handoff-page-head {
  min-height: 62px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e3e8e5;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(34, 67, 54, .055);
}
.handoff-page-head h1 { margin: 0; font-size: 22px; letter-spacing: -.5px; }
.handoff-page-head span {
  padding: 6px 11px;
  color: var(--handoff-green);
  background: #eaf6f1;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}
.handoff-compose {
  padding: 22px;
  background: #fff;
  border: 1px solid #e0e6e2;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(34, 67, 54, .06);
}
.handoff-compose > form {
  margin-top: 16px;
}
.handoff-compose-heading h2 { margin: 0; font-size: 17px; }
.handoff-compose-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.handoff-compose-fields label,
.handoff-source-picker {
  display: grid;
  gap: 8px;
  color: #4e5853;
  font-size: 12px;
  font-weight: 700;
}
.handoff-compose-fields input,
.handoff-compose-fields select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  color: var(--handoff-ink);
  background: #fbfcfa;
  border: 1px solid #d7dcd8;
  border-radius: 10px;
  outline: 0;
}
.handoff-compose-fields input:focus,
.handoff-compose-fields select:focus {
  border-color: var(--handoff-green);
  box-shadow: 0 0 0 3px rgba(8,112,82,.10);
}
.handoff-source-picker { margin-top: 17px; position: relative; }
.handoff-source-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.handoff-source-picker b {
  min-height: 72px;
  display: grid;
  place-items: center;
  color: var(--handoff-green);
  background: #f1f8f4;
  border: 1px dashed #9db6aa;
  border-radius: 11px;
}
.handoff-source-picker small { color: #7a837e; font-weight: 400; }
.handoff-source-selection { margin-top: 14px; display: grid; gap: 9px; }
.handoff-selected-file {
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 34px minmax(180px, .75fr) minmax(240px, 1fr) auto;
  align-items: center;
  gap: 11px;
  background: #fafbf9;
  border: 1px solid #e1e4df;
  border-radius: 11px;
}
.handoff-selected-file > span {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: var(--handoff-green);
  background: #dff1e8;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
}
.handoff-selected-file div { min-width: 0; display: grid; gap: 3px; }
.handoff-selected-file strong,
.handoff-selected-file small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.handoff-selected-file strong { font-size: 12px; }
.handoff-selected-file small { color: #89918d; font-size: 10px; }
.handoff-selected-file input {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #d7dcd8;
  border-radius: 9px;
  outline: 0;
}
.handoff-selected-file input:focus { border-color: var(--handoff-green); }
.handoff-remove-source,
.handoff-inline-selection button {
  padding: 7px 10px;
  color: #9f3a3a;
  background: #fff7f7;
  border: 1px solid #efd1d1;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}
.handoff-remove-source:hover,
.handoff-inline-selection button:hover {
  color: #7f2424;
  border-color: #dfa9a9;
}
.handoff-inline-selection {
  margin-top: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 12px;
  background: #f8faf9;
  border: 1px solid #dfe5e1;
  border-radius: 10px;
}
.handoff-inline-selection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.handoff-inline-selection-head strong {
  min-width: 0;
  overflow: hidden;
  color: #46524c;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}
.handoff-inline-file-list { display: grid; gap: 6px; }
.handoff-inline-selected-file {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  background: #fff;
  border: 1px solid #e4e9e6;
  border-radius: 8px;
}
.handoff-inline-selected-file strong {
  overflow: hidden;
  color: #26342d;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.handoff-inline-selected-file small {
  color: #7d8982;
  font-size: 10px;
}
.handoff-inline-upload {
  margin-top: 10px;
  padding: 12px;
  display: grid;
  gap: 9px;
  background: #f4faf7;
  border: 1px dashed #a8c9ba;
  border-radius: 11px;
}
.handoff-inline-picker { position: relative; cursor: pointer; }
.handoff-inline-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.handoff-inline-picker span {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: var(--handoff-green);
  background: #fff;
  border: 1px solid #cfe2d9;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
}
.handoff-inline-upload .upload-progress { margin-top: 0; }
.handoff-inline-upload > .primary-button { justify-self: end; }
.handoff-inline-upload .form-error { margin: 0; }
.handoff-compose-actions { margin-top: 18px; display: flex; justify-content: flex-end; }
.handoff-compose-actions .primary-button {
  min-height: 46px;
  color: #243020;
  background: var(--handoff-lime);
  border-color: #b5df55;
  box-shadow: inset 0 -2px rgba(0,0,0,.1);
}
#handoff-management .handoff-toolbar {
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  background: transparent;
  border: 0;
}
#handoff-management .handoff-search-box { margin-left: auto; }
#handoff-management .handoff-status.claimed { color: #315b79; background: #e0edf6; }
#handoff-management .handoff-status.review { color: #8c5d1f; background: #fae8c9; }
#handoff-management .handoff-status.completed { color: var(--handoff-green); background: #dff1e8; }
#handoff-management .handoff-owner {
  color: var(--handoff-green);
  background: #e7f5ef;
}
.handoff-file-note {
  margin: 3px 0 0;
  color: #56635d;
  font-size: 10px;
  line-height: 1.45;
}
.handoff-card-simple { padding: 14px; }
.handoff-card-simple .handoff-columns { margin-top: 0; }

.upload-record-management { display: grid; gap: 14px; }
.upload-record-hero p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.upload-record-total {
  min-width: 128px;
  padding: 10px 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  color: #536076;
  background: var(--blue-soft);
  border-radius: 12px;
}
.upload-record-total strong { color: var(--blue); font-size: 24px; }
.upload-record-total span { font-size: 11px; }
.upload-record-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.upload-record-heading {
  min-height: 92px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(90deg, #fbfcff, #fff 42%);
  border-bottom: 1px solid var(--line);
}
.upload-record-heading h2 { margin: 0 0 5px; font-size: 17px; }
.upload-record-heading span { color: var(--muted); font-size: 11px; }
.upload-record-heading-copy {
  min-width: 250px;
  padding-left: 24px;
  text-align: right;
  border-left: 1px solid #e7ecf3;
}
.upload-record-filters { display: flex; align-items: flex-end; gap: 14px; }
.upload-record-filters label { display: grid; gap: 6px; }
.upload-record-filters label > span {
  padding-left: 2px;
  color: #536076;
  font-size: 12px;
  font-weight: 720;
}
.upload-record-filters select,
.upload-record-filters input {
  width: 188px;
  height: 40px;
  padding: 0 34px 0 11px;
  color: #344158;
  background-color: #f8fafc;
  border: 1px solid #dce3ee;
  border-radius: 9px;
  font-size: 12px;
  outline: 0;
}
.upload-record-filters input { width: 156px; padding-right: 10px; }
.upload-record-date-range {
  display: flex;
  align-items: center;
  gap: 9px;
}
.upload-record-date-range i {
  color: #7b8799;
  font-size: 12px;
  font-style: normal;
}
.upload-record-filters select:focus,
.upload-record-filters input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23,104,255,.09);
}
.upload-record-export {
  height: 40px;
  padding: 0 17px;
  color: #1556c8;
  background: #fff;
  border-color: #cfdcf0;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.upload-record-export:hover { background: #f2f6fd; }
@media (max-width: 760px) {
  .upload-record-heading { align-items: stretch; flex-direction: column; }
  .upload-record-filters { flex-wrap: wrap; }
  .upload-record-filters label { flex: 1 1 180px; }
  .upload-record-filters select { width: 100%; }
  .upload-record-date-range input { min-width: 0; flex: 1; }
  .upload-record-export { flex: 1 1 100%; }
  .upload-record-heading-copy {
    min-width: 0;
    padding: 12px 0 0;
    text-align: left;
    border-top: 1px solid #e7ecf3;
    border-left: 0;
  }
}
.upload-record-table-wrap { max-height: calc(100vh - 270px); min-height: 320px; }
.upload-record-table { min-width: 920px; }
.upload-record-table th {
  height: 50px;
  padding: 0 18px;
  color: #27344d;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: .1px;
  white-space: nowrap;
}
.upload-record-table td {
  height: 66px;
  padding: 0 18px;
  color: #536076;
  font-size: 13px;
}
.upload-record-date {
  color: #263249 !important;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  white-space: nowrap;
}
.upload-record-uploader { color: #263249 !important; font-weight: 680; }
.upload-record-ranges { display: flex; flex-wrap: wrap; gap: 6px; min-width: 330px; }
.upload-record-ranges span {
  padding: 5px 9px;
  color: #23406f;
  background: #f1f5fb;
  border: 1px solid #dfe8f5;
  border-radius: 7px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.user-management { display: grid; gap: 14px; }
.management-hero {
  min-height: 82px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:
    radial-gradient(circle at 4% 0, rgba(23,104,255,.08), transparent 13rem),
    #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.management-hero h1 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #1c2941;
  font-size: 22px;
  letter-spacing: -.35px;
}
.management-hero h1::before {
  content: "";
  width: 5px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1768ff, #4aa8ff);
  box-shadow: 0 5px 12px rgba(23,104,255,.22);
}
.add-user-button {
  min-height: 40px;
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 8px 18px rgba(23,104,255,.18);
}
.add-user-button:hover { color: #fff; background: var(--blue-dark); }
.add-user-button b { margin-right: 5px; font-size: 18px; }
.user-stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.user-stat-grid article {
  min-height: 68px;
  position: relative;
  overflow: hidden;
  padding: 13px 18px 13px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(145deg, #fff, #fafcff);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.user-stat-grid article::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: #1768ff;
}
.user-stat-grid article:nth-child(2)::before { background: #7c3aed; }
.user-stat-grid article:nth-child(3)::before { background: #0aa76b; }
.user-stat-grid article:nth-child(4)::before { background: #d94aa7; }
.user-stat-grid article:nth-child(5)::before { background: #00a6a6; }
.user-stat-grid span { color: var(--muted); font-size: 12px; }
.user-stat-grid strong { color: #1c2941; font-size: 22px; }
.user-list-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.user-list-heading {
  min-height: 68px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.user-list-heading h2 { margin: 0 0 4px; font-size: 17px; }
.user-list-heading > div > span { color: var(--muted); font-size: 12px; }
.role-legend { display: flex; gap: 8px; }
.role-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  color: #687288;
  background: #f7f9fc;
  border: 1px solid #e8ecf3;
  border-radius: 999px;
  font-size: 11px;
}
.role-legend i { width: 7px; height: 7px; border-radius: 50%; }
.role-legend .super { background: #7c3aed; }
.role-legend .admin { background: var(--blue); }
.role-legend .operator { background: #e8a423; }
.role-legend .editor { background: #d94aa7; }
.role-legend .user { background: #0aa76b; }
.user-table-wrap { overflow-x: auto; }
.user-table { min-width: 1160px; width: 100%; }
.user-table th:last-child, .user-table td:last-child { text-align: right; }
.user-table tbody td { height: 66px; color: #586277; }
.user-identity { display: flex; align-items: center; gap: 11px; }
.user-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  background: linear-gradient(145deg, #e8f1ff, #f4f8ff);
  border: 1px solid #d9e7ff;
  border-radius: 12px;
  font-weight: 750;
}
.user-identity > div { display: grid; gap: 3px; }
.user-identity strong { color: var(--ink); font-size: 13px; }
.user-identity small { color: var(--muted); font-size: 11px; }
.login-name { color: #26334c !important; font-weight: 600; }
.role-badge, .account-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
}
.role-badge.super_admin { color: #6d28d9; background: #f2eaff; }
.role-badge.admin { color: var(--blue-dark); background: var(--blue-soft); }
.role-badge.operator { color: #a45f00; background: #fff5d8; }
.role-badge.editor { color: #9b257a; background: #fff0fa; }
.role-badge.user { color: #087f55; background: #eafaf3; }
.account-status { gap: 6px; color: #667085; background: #f3f5f8; }
.account-status i { width: 6px; height: 6px; border-radius: 50%; background: #929bad; }
.account-status.active { color: #087f55; background: #eafaf3; }
.account-status.active i { background: var(--success); }
.user-action-button {
  min-width: 58px;
  height: 32px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border: 1px solid #dce8ff;
  border-radius: 8px;
}
.user-actions { display: flex; justify-content: flex-end; gap: 7px; }
.user-action-button.warning { color: #a55b0b; background: #fff8e8; border-color: #ffe6b2; }
.user-action-button.danger { color: #c93c4d; background: #fff1f3; border-color: #ffd9df; }
.protected-account { color: #98a1b1; font-size: 11px; }
.current-account-label {
  display: inline-flex;
  padding: 5px 9px;
  color: #687288;
  background: #f3f5f8;
  border-radius: 8px;
  font-size: 11px;
}

.modal-open { overflow: hidden; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 22, 48, .46);
  backdrop-filter: blur(6px);
}
.user-modal-card {
  width: min(620px, 94vw);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 20px;
  box-shadow: 0 32px 90px rgba(9, 28, 68, .3);
}
.modal-header {
  padding: 24px 26px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: linear-gradient(145deg, #f7faff, #fff);
  border-bottom: 1px solid var(--line);
}
.modal-header span { color: var(--blue); font-size: 10px; font-weight: 750; letter-spacing: 1.5px; }
.modal-header h2 { margin: 6px 0 0; font-size: 21px; }
.modal-close {
  width: 34px; height: 34px; border: 0; border-radius: 9px;
  color: #737d91; background: #edf1f6; font-size: 22px; line-height: 1;
}
.create-user-form { padding: 24px 26px 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.form-grid.single-column { grid-template-columns: 1fr; }
.form-grid label { display: grid; gap: 8px; color: #525d72; font-size: 12px; }
.form-grid input, .form-grid select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  color: #303b50;
  background: #fbfcfe;
  border: 1px solid #dde3ed;
  border-radius: 9px;
  outline: 0;
}
.form-grid input:focus, .form-grid select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23,104,255,.09);
}
.role-choice-copy {
  margin-top: 17px;
  padding: 11px 13px;
  color: #667085;
  background: #f4f7fb;
  border-radius: 9px;
  font-size: 11px;
}
.modal-account-copy {
  margin: 0 0 17px;
  padding: 11px 13px;
  color: #536076;
  background: #f4f7fb;
  border-radius: 9px;
  font-size: 12px;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.password-modal-card { width: min(520px, 94vw); }
.confirm-modal-card {
  width: min(440px, 94vw);
  padding: 30px;
  text-align: center;
}
.confirm-modal-card h2 { margin: 14px 0 8px; font-size: 22px; }
.confirm-modal-card > p:not(.form-error) { margin: 0; color: var(--muted); line-height: 1.65; }
.confirm-modal-card .modal-actions { justify-content: center; }
.confirm-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  color: #c93c4d;
  background: #fff1f3;
  border: 1px solid #ffd9df;
  border-radius: 15px;
  font-size: 24px;
  font-weight: 800;
}
.danger-button {
  min-height: 40px;
  padding: 0 18px;
  color: #fff;
  background: #d83f50;
  border: 1px solid #d83f50;
  border-radius: 9px;
}
.danger-button:hover { background: #bd2f40; }

.auth-body { min-width: 0; min-height: 100vh; background: #f3f7ff; }
.auth-shell {
  min-height: 100vh; display: grid; grid-template-columns: 1.12fr .88fr;
  background:
    radial-gradient(circle at 16% 14%, rgba(59,130,246,.22), transparent 32%),
    linear-gradient(135deg, #071b45 0 50%, #f7f9fd 50% 100%);
}
.auth-brand { padding: clamp(48px, 8vw, 120px); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 42px; }
.auth-brand h1 { max-width: 620px; font-size: clamp(42px, 5vw, 72px); line-height: 1.05; letter-spacing: -2px; margin: 12px 0 18px; }
.auth-lead { max-width: 580px; color: #c6d8ff; font-size: 17px; line-height: 1.8; }
.eyebrow { margin: 0; color: #6ea2ff; text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 750; }
.auth-points { display: flex; gap: 10px; }
.auth-points span { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); border-radius: 999px; padding: 8px 14px; font-size: 12px; color: #dae6ff; }
.auth-card {
  width: min(430px, 78%); align-self: center; justify-self: center;
  padding: 42px; border-radius: 22px; background: rgba(255,255,255,.96);
  box-shadow: 0 30px 80px rgba(20,38,75,.17);
}
.auth-card h2 { font-size: 30px; margin: 10px 0 8px; letter-spacing: -.6px; }
.muted { color: var(--muted); margin: 0; line-height: 1.6; }
.auth-form { display: grid; gap: 18px; margin-top: 32px; }
.auth-form label { display: grid; gap: 8px; color: #505a6f; font-size: 13px; }
.auth-form input {
  height: 48px; border: 1px solid #dfe4ed; border-radius: 10px; padding: 0 14px; outline: 0; background: #fbfcfe;
}
.auth-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,104,255,.1); }
.auth-submit { height: 48px; margin-top: 2px; }
.form-error { min-height: 18px; margin: -6px 0; color: var(--danger); font-size: 12px; }
.auth-footnote { margin: 22px 0 0; color: #9099aa; font-size: 11px; text-align: center; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; background: #f4f7fb; }
  .auth-brand { display: none; }
  .auth-card { width: min(430px, calc(100% - 36px)); }
}
