﻿:root {
  --sidebar-width: 220px;
  color-scheme: light;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background: #f4f6f8;
  color: #1f2933;
}

.externalLinkSection {
  display: grid;
  gap: 18px;
}

.externalLinkToolbar,
.externalLinkSupportNote,
.externalLinkCardHeader,
.externalLinkCardFooter {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.externalLinkToolbar label {
  display: grid;
  flex: 1;
  gap: 6px;
  max-width: 620px;
}

.externalLinkToolbar label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.externalLinkList {
  min-width: 0;
}

.externalLinkTableWrap {
  border: 1px solid #d8e5e2;
  border-radius: 10px;
  overflow-x: auto;
}

.externalLinkTable {
  border-collapse: collapse;
  min-width: 1440px;
  width: 100%;
}

.externalLinkTable th {
  background: #f4f7f7;
  color: #40545a;
  font-size: 12px;
  font-weight: 700;
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
}

.externalLinkTable td {
  border-top: 1px solid #e6eeec;
  color: #263b40;
  padding: 13px 14px;
  vertical-align: middle;
}

.externalLinkTable tbody tr:hover {
  background: #f8fbfa;
}

.externalLinkNameCell,
.externalLinkAddress {
  display: grid;
  gap: 4px;
}

.externalLinkNameCell small {
  color: var(--muted);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.externalLinkMetric {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.externalLinkMemberCell {
  min-width: 108px;
}

.externalLinkMemberCell strong,
.externalLinkMemberCell small {
  display: block;
  white-space: nowrap;
}

.externalLinkMemberCell strong {
  color: #0f766e;
  font-size: 12px;
}

.externalLinkMemberCell small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.externalLinkAddress {
  align-items: center;
  grid-template-columns: minmax(150px, 1fr) auto;
  max-width: 330px;
}

.externalLinkAddress a {
  color: var(--primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.externalLinkAddress button,
.externalLinkRowActions button,
.externalLinkRowActions a {
  background: transparent;
  border: 0;
  color: var(--primary);
  font: inherit;
  padding: 3px 4px;
  text-decoration: none;
  white-space: nowrap;
}

.externalLinkAddress button:hover,
.externalLinkRowActions button:hover,
.externalLinkRowActions a:hover {
  text-decoration: underline;
}

.externalLinkRowActions {
  align-items: center;
  display: flex;
  gap: 3px;
}

.externalLinkRowActions .dangerButton {
  color: #b42318;
}

.externalLinkRowActions .externalLinkMemberAction {
  background: #e7f6f3;
  border: 1px solid #8fc9bf;
  border-radius: 5px;
  color: #0f766e;
  font-weight: 700;
  padding: 6px 9px;
  text-decoration: none;
}

.externalLinkRowActions .externalLinkMemberAction:hover {
  background: #d5efe9;
  border-color: #147d75;
  text-decoration: none;
}

.externalLinkRowActions .externalLinkMemberAction:disabled {
  cursor: wait;
  opacity: 0.58;
}

.externalLinkState {
  align-items: center;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  white-space: nowrap;
}

.externalLinkState i {
  background: #a8b8b4;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.externalLinkState.isActive {
  color: #087a68;
}

.externalLinkState.isActive i {
  background: #16a085;
  box-shadow: 0 0 0 3px #dcf3ed;
}

.externalLinkDate {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.externalLinkPagination {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 16px;
  justify-content: space-between;
  min-height: 34px;
}

.externalLinkPagination > div {
  align-items: center;
  display: flex;
  gap: 8px;
}

.externalLinkPagination button {
  background: #fff;
  border: 1px solid #cad9d5;
  color: #25453f;
  min-height: 30px;
  padding: 4px 10px;
}

.externalLinkPagination button:disabled {
  color: #9caaa7;
  cursor: not-allowed;
  opacity: 0.65;
}

.externalLinkPageSize {
  border-right: 1px solid #d8e5e2;
  padding-right: 10px;
}

.callbackProjectTable {
  min-width: 1510px;
}

.callbackProjectCompactTable {
  table-layout: fixed;
}

.callbackProjectCompactTable th,
.callbackProjectCompactTable td {
  height: 42px;
  line-height: 1.25;
  padding: 7px 10px;
}

.callbackProjectCompactTable th:nth-child(1) {
  width: 150px;
}

.callbackProjectCompactTable th:nth-child(2) {
  width: 170px;
}

.callbackProjectCompactTable th:nth-child(3) {
  width: 210px;
}

.callbackProjectCompactTable th:nth-child(4) {
  width: 300px;
}

.callbackProjectCompactTable th:nth-child(5) {
  width: 260px;
}

.callbackProjectCompactTable th:nth-child(6) {
  width: 90px;
}

.callbackProjectCompactTable th:nth-child(7) {
  width: 130px;
}

.callbackProjectCompactTable th:nth-child(8) {
  width: 130px;
}

.callbackProjectCompactTable th:nth-child(9) {
  width: 150px;
}

.callbackProjectNameCell strong {
  color: #102a43;
}

.callbackProjectSourceCell {
  max-width: 210px;
}

.callbackProjectSourceCell a,
.callbackProjectCellEllipsis {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.callbackProjectTrackingLink {
  max-width: 300px;
}

.callbackProjectActionSummary {
  color: #40545a;
  max-width: 260px;
}

.callbackProjectTargetBadge {
  background: #e8f5f2;
  border: 1px solid #b8ddd6;
  border-radius: 999px;
  color: #0f6f68;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  white-space: nowrap;
}

.callbackDeepProjectWorkspace {
  border-top-color: #b8ddd6;
}

.callbackProjectInlineToggle {
  background: #c8d4d1;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 22px;
  padding: 2px;
  position: relative;
  transition: background 160ms ease;
  width: 40px;
}

.callbackProjectInlineToggle span {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgb(16 42 67 / 24%);
  display: block;
  height: 18px;
  transform: translateX(0);
  transition: transform 160ms ease;
  width: 18px;
}

.callbackProjectInlineToggle.isOn {
  background: var(--primary);
}

.callbackProjectInlineToggle.isOn span {
  transform: translateX(18px);
}

.callbackProjectInlineToggle:focus-visible {
  outline: 2px solid #67b7a8;
  outline-offset: 2px;
}

.callbackProjectRowActions {
  min-width: max-content;
}

.callbackProjectPagination {
  border-top: 1px solid #e6eeec;
  margin-top: 0;
  padding-top: 8px;
}

.externalLinkSupportNote {
  background: #f2f8f7;
  border: 1px dashed #b9d4ce;
  border-radius: 10px;
  padding: 14px 16px;
}

.callbackExternalLinkSelector {
  background: #f7fbfa;
  border: 1px solid #cfe2dd;
  border-radius: 12px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.callbackExternalLinkSelector > div:first-child {
  display: grid;
  gap: 5px;
}

.callbackExternalLinkSelector small,
.callbackExternalLinkSearch span,
.callbackExternalLinkOption small {
  color: var(--muted);
}

.callbackExternalLinkSearch {
  display: grid;
  gap: 6px;
}

.callbackExternalLinkOptions {
  display: grid;
  gap: 8px;
  max-height: 310px;
  overflow: auto;
}

.callbackExternalLinkOption {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e5e2;
  color: inherit;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1.3fr);
  justify-content: stretch;
  padding: 12px 14px;
  text-align: left;
}

.callbackExternalLinkOption:hover,
.callbackExternalLinkOption.selected {
  background: #e8f7f3;
  border-color: var(--primary);
  color: inherit;
}

.callbackExternalLinkOption span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.callbackExternalLinkOption code {
  overflow-wrap: anywhere;
  white-space: normal;
}

@media (max-width: 900px) {
  .externalLinkToolbar,
  .externalLinkSupportNote,
  .externalLinkPagination {
    align-items: stretch;
    flex-direction: column;
  }

  .externalLinkPagination > div {
    justify-content: flex-end;
  }

  .callbackExternalLinkOption {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

.loginOverlay {
  align-items: center;
  background: #eef2f6;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 10;
}

.loginPanel {
  background: #ffffff;
  border: 1px solid #bcccdc;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  max-width: 390px;
  padding: 24px;
  width: 100%;
}

.formError {
  color: #b42318;
  font-size: 13px;
  min-height: 20px;
}

.loginPage {
  background: #e9eef2;
  min-height: 100vh;
}

.loginShell {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 460px);
  margin: 0 auto;
  max-width: 980px;
  min-height: 100vh;
  padding: 72px 28px;
  place-content: center;
}

.loginIdentity {
  align-self: stretch;
  background: #17324d;
  color: #f7fafc;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 470px;
  padding: 42px;
}

.platformLoginPage .loginIdentity {
  background: #243b32;
}

.loginIdentity h1 {
  color: #ffffff;
  font-size: 36px;
  line-height: 1.2;
  margin: 10px 0 14px;
}

.loginIdentity p {
  color: #d9e2ec;
  line-height: 1.7;
  margin: 0;
  max-width: 440px;
}

.loginIdentity .loginEyebrow {
  color: #9fb3c8;
  font-size: 13px;
  font-weight: 700;
}

.loginMark {
  align-items: center;
  border: 1px solid rgb(255 255 255 / 34%);
  display: inline-flex;
  font-size: 20px;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  margin-bottom: auto;
  width: 48px;
}

.loginShell .loginPanel {
  align-self: stretch;
  border: 0;
  border-radius: 0;
  justify-content: center;
  max-width: none;
  padding: 48px;
}

.loginShell .loginPanel h2 {
  margin: 0 0 10px;
}

.loginSwitch {
  color: #486581;
  font-size: 13px;
  justify-self: center;
  margin-top: 8px;
}

.formHint,
.uploadStatus {
  color: #627d98;
  font-size: 12px;
  line-height: 1.5;
  min-height: 18px;
}

.uploadStatus {
  color: #176b4d;
  overflow-wrap: anywhere;
}

.folderPicker input[type="file"] {
  border: 1px dashed #9fb3c8;
  cursor: pointer;
  padding: 10px;
}

.userStatus {
  align-self: center;
  color: #52606d;
  font-size: 13px;
}

.appHeader {
  background: #ffffff;
  margin-left: var(--sidebar-width);
  position: sticky;
  top: 0;
  z-index: 3;
}

.topbar {
  align-items: center;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  padding: 18px 28px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  font-weight: 700;
}

h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

h3 {
  font-size: 15px;
  margin-bottom: 10px;
}

.topbar p {
  color: #52606d;
  font-size: 13px;
  margin-top: 6px;
}

.primaryNav {
  background: #ffffff;
  border-right: 1px solid #d9e2ec;
  display: flex;
  flex-direction: column;
  gap: 4px;
  inset: 0 auto 0 0;
  overflow-y: auto;
  padding: 22px 12px;
  position: fixed;
  scrollbar-width: thin;
  width: var(--sidebar-width);
  z-index: 4;
}

.navTitle {
  color: #829ab1;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 13px 12px;
}

.navBusinessGroup {
  border-top: 1px solid #d9e2ec;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding-top: 14px;
}

.navGroupTitle {
  color: #829ab1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0 13px 6px 16px;
}

.globalContext {
  align-items: center;
  border-bottom: 1px solid #d9e2ec;
  display: flex;
  gap: 12px;
  padding: 9px 28px;
}

/* 广告回传是公司级独立模块，不以当前快手推广账户作为上下文。 */
.callbackPage .globalContext {
  display: none;
}

.globalContext label {
  align-items: center;
  display: flex;
  flex: 1 1 280px;
  gap: 8px;
  max-width: 430px;
}

.globalContext label span {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
}

.globalContext select {
  min-height: 34px;
  padding-bottom: 5px;
  padding-top: 5px;
  width: 100%;
}

.globalContext .globalAccountSearch {
  flex: 0 1 360px;
  max-width: 360px;
}

.globalContext input {
  min-height: 34px;
  width: 100%;
}

.navLink {
  border-left: 3px solid transparent;
  border-radius: 4px;
  color: #52606d;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 13px 11px 14px;
  text-decoration: none;
}

.navLink:hover {
  background: #f0f7f6;
  color: #0f766e;
}

.navLink.active {
  background: #e5f2f0;
  border-left-color: #0f766e;
  color: #0f766e;
}

.layout {
  display: grid;
  gap: 18px;
  margin-left: var(--sidebar-width);
  max-width: none;
  padding: 20px;
}

.panel {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 18px;
}

.dashboardSection {
  background: #ffffff;
  border-bottom: 1px solid #d9e2ec;
  border-top: 1px solid #d9e2ec;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
}

.leadSection,
.callbackSection {
  background: #ffffff;
  border-bottom: 1px solid #d9e2ec;
  border-top: 1px solid #d9e2ec;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
}

.adminSection {
  min-width: 0;
}

.platformSection {
  min-width: 0;
}

.platformSummary {
  border-bottom: 1px solid #e4e7eb;
  border-top: 1px solid #e4e7eb;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.platformSummary > div {
  border-right: 1px solid #e4e7eb;
  min-width: 0;
  padding: 14px;
}

.platformSummary > div:last-child {
  border-right: 0;
}

.platformSummary span {
  color: #627d98;
  display: block;
  font-size: 12px;
}

.platformSummary strong {
  display: block;
  font-size: 22px;
  margin-top: 5px;
}

.platformForms {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  margin-top: 18px;
}

.platformForm {
  align-content: start;
  border-top: 1px solid #e4e7eb;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  padding-top: 14px;
}

.platformForm h3,
.platformForm .uploadStatus {
  grid-column: 1 / -1;
}

.platformOrganizationTable {
  min-width: 860px;
}

.platformUserTable {
  min-width: 1120px;
}

.temporaryPasswordNotice {
  background: #fff8db;
  border: 1px solid #f0c36d;
  border-radius: 8px;
  color: #513c06;
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  padding: 12px;
}

.temporaryPasswordNotice[hidden] {
  display: none;
}

.temporaryPasswordNotice strong {
  font-size: 14px;
}

.temporaryPasswordNotice span,
.temporaryPasswordNotice small {
  font-size: 12px;
}

.passwordValue {
  background: #ffffff;
  border: 1px solid #e4c46f;
  border-radius: 6px;
  color: #102a43;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
  padding: 8px;
}

.organizationStatus {
  border-radius: 999px;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  white-space: nowrap;
}

.organization-active {
  background: #d7f0e5;
  color: #176b4d;
}

.organization-suspended {
  background: #fbe0dc;
  color: #a23a2a;
}

.organization-expired {
  background: #fff0c2;
  color: #8a4b08;
}

.tableButton {
  background: transparent;
  border-color: #99c8c3;
  color: #0f766e;
  font-size: 11px;
  min-height: 30px;
  padding: 5px 8px;
}

.tableButton:hover {
  background: #e5f2f0;
}

.dangerButton {
  border-color: #e5aaa2;
  color: #a23a2a;
}

.dangerButton:hover {
  background: #fbe0dc;
}

.secondaryButton {
  background: #ffffff;
  border-color: #7fb9b3;
  color: #0f766e;
}

.secondaryButton:hover {
  background: #e5f2f0;
}

.adminSection .sectionHeader p {
  color: #627d98;
  font-size: 13px;
  margin-top: 5px;
}

.adminGrid {
  border-top: 1px solid #e4e7eb;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.adminForm {
  border-right: 1px solid #e4e7eb;
  min-width: 0;
  padding: 16px;
}

.adminForm:first-child {
  padding-left: 0;
}

.adminForm:last-child {
  border-right: 0;
  padding-right: 0;
}

.permissionForm {
  border-top: 1px solid #e4e7eb;
  grid-column: 1 / -1;
}

.permissionFormHeader {
  align-items: end;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr minmax(220px, 320px);
}

.permissionFormHeader h3,
.permissionFormHeader p {
  margin: 0;
}

.permissionFormHeader p {
  color: #627d98;
  font-size: 13px;
  margin-top: 6px;
}

.permissionToggles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.checkControl,
.accountCheck {
  align-items: center;
  display: flex;
  gap: 10px;
}

.checkControl input,
.accountCheck input {
  height: 18px;
  margin: 0;
  width: 18px;
}

.permissionAccounts {
  border: 1px solid #bcccdc;
  margin: 0;
  padding: 14px;
}

.permissionAccounts legend {
  color: #486581;
  font-size: 13px;
  padding: 0 6px;
}

.permissionAccountList {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.accountCheck {
  border-bottom: 1px solid #e4e7eb;
  min-width: 0;
  padding: 8px 4px;
}

.accountCheck span {
  display: grid;
  min-width: 0;
}

.accountCheck strong,
.accountCheck small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accountCheck small {
  color: #829ab1;
  margin-top: 3px;
}

.adminTables {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.adminTables .dataTable {
  min-width: 560px;
}

.accountDetailActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.commandLink,
.tableAction {
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.commandLink {
  border: 1px solid #99c8c3;
  border-radius: 6px;
  padding: 8px 10px;
}

.commandLink:hover,
.tableAction:hover {
  color: #115e59;
  text-decoration: underline;
}

.accountDetailStats {
  border-bottom: 1px solid #e4e7eb;
  border-top: 1px solid #e4e7eb;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.accountDetailStats > div {
  border-right: 1px solid #e4e7eb;
  min-width: 0;
  padding: 14px;
}

.accountDetailStats > div:last-child {
  border-right: 0;
}

.accountDetailStats span,
.accountDetailStats small {
  color: #627d98;
  display: block;
  font-size: 12px;
}

.accountDetailStats strong {
  display: block;
  font-size: 22px;
  margin: 5px 0;
}

.accountDetailTables {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.accountDetailTables .dataTable {
  min-width: 620px;
}

.tableTitle {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.tableTitle span {
  color: #627d98;
  font-size: 12px;
}

.callbackConfiguration {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}

.callbackWorkspaceHeader {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.callbackWorkspaceHeader h2,
.callbackWorkspaceHeader p {
  margin: 0;
}

.callbackWorkspaceHeader p {
  color: #627d98;
  font-size: 13px;
  margin-top: 5px;
  max-width: 760px;
}

.callbackChain {
  align-items: center;
  background: #f0f7f6;
  border: 1px solid #c8e1dd;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(9, max-content);
  justify-content: center;
  margin-top: 18px;
  min-height: 72px;
  overflow-x: auto;
  padding: 12px 18px;
}

.callbackChain span {
  color: #243b53;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.callbackChain i {
  align-items: center;
  background: #147d75;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-size: 11px;
  font-style: normal;
  height: 21px;
  justify-content: center;
  width: 21px;
}

.callbackProjectWorkspace {
  border-top: 1px solid #d9e2ec;
  margin-top: 22px;
  padding-top: 18px;
}

.callbackProjectWorkspace .tableTitle h3,
.callbackProjectWorkspace .tableTitle p {
  margin: 0;
}

.callbackProjectWorkspace .tableTitle p {
  color: #627d98;
  font-size: 12px;
  margin-top: 4px;
}

.callbackDomainOverview {
  background: #f0f7f6;
  border: 1px solid #c8e1dd;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.callbackDomainOverview > div {
  min-width: 0;
  padding: 12px 14px;
}

.callbackDomainOverview > div + div {
  border-left: 1px solid #c8e1dd;
}

.callbackDomainOverview span,
.callbackDomainOverview strong {
  display: block;
}

.callbackDomainOverview span {
  color: #627d98;
  font-size: 11px;
  font-weight: 700;
}

.callbackDomainOverview strong {
  color: #102a43;
  font-size: 13px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.callbackDomainForm {
  align-items: end;
  grid-template-columns: minmax(360px, 1fr) minmax(180px, 0.36fr) auto;
  margin-top: 14px;
}

.callbackDomainForm .uploadStatus {
  grid-column: 1 / -1;
  margin: 0;
}

.callbackDomainOriginComposer {
  background: #ffffff;
  border: 1px solid #9bc9c3;
  border-radius: 7px;
  display: grid;
  grid-template-columns: minmax(145px, 0.34fr) minmax(220px, 1fr);
  min-width: 0;
  overflow: hidden;
}

.callbackDomainOriginComposer:focus-within {
  border-color: #147d75;
  box-shadow: 0 0 0 3px rgb(20 125 117 / 16%);
}

.callbackDomainOriginComposer label {
  gap: 3px;
  min-width: 0;
  padding: 7px 10px 6px;
}

.callbackDomainOriginComposer label + label {
  border-left: 1px solid #d9e2ec;
}

.callbackDomainOriginComposer label > span,
.callbackDomainFixedUse > span {
  color: #829ab1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.callbackDomainOriginComposer input,
.callbackDomainOriginComposer select {
  border: 0;
  border-radius: 0;
  color: #102a43;
  min-height: 30px;
  padding: 3px 0;
  width: 100%;
}

.callbackDomainOriginComposer input:focus,
.callbackDomainOriginComposer select:focus {
  outline: 2px solid transparent;
}

.callbackDomainOriginComposer select:focus-visible,
.callbackDomainOriginComposer input:focus-visible {
  background: #f1fbf9;
  box-shadow: inset 0 0 0 2px #147d75;
  outline: 2px solid #147d75;
  outline-offset: -2px;
}

.callbackDomainFixedUse {
  border-left: 3px solid #147d75;
  display: grid;
  gap: 5px;
  margin: 0;
  min-height: 54px;
  padding: 8px 11px;
}

.callbackDomainFixedUse strong {
  color: #334e68;
  font-size: 12px;
}

.callbackDomainProtocolGuide {
  background: #f8fafc;
  border: 1px solid #d9e2ec;
  color: #52606d;
  font-size: 12px;
  line-height: 1.55;
  margin-top: 10px;
  padding: 10px 12px;
}

.callbackDomainProtocolGuide p {
  margin: 0;
}

.callbackDomainProtocolGuide p + p {
  margin-top: 5px;
}

.callbackDomainProtocolWarning {
  background: #fff8e8;
  border-left: 3px solid #d69e2e;
  color: #7a4d0b;
  font-size: 12px;
  line-height: 1.5;
  margin: 10px 0 0;
  padding: 8px 10px;
}

.callbackDomainFormHint {
  margin: 7px 0 0;
}

.callbackDomainList {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.callbackDomainCard {
  border: 1px solid #d9e2ec;
  border-left: 3px solid #147d75;
  padding: 15px;
}

.callbackDomainCardHeader {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.callbackDomainCardHeader > div {
  min-width: 0;
}

.callbackDomainCardHeader strong,
.callbackDomainEyebrow {
  display: block;
}

.callbackDomainCardHeader strong {
  color: #102a43;
  font-size: 15px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.callbackDomainEyebrow {
  color: #829ab1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.callbackDomainRecord {
  border-bottom: 1px solid #e4e7eb;
  border-top: 1px solid #e4e7eb;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0 0;
}

.callbackDomainRecord > div {
  min-width: 0;
  padding: 10px 12px;
}

.callbackDomainRecord > div + div {
  border-left: 1px solid #e4e7eb;
}

.callbackDomainRecord dt {
  color: #829ab1;
  font-size: 10px;
  font-weight: 700;
}

.callbackDomainRecord dd {
  color: #243b53;
  font-size: 12px;
  font-weight: 700;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.callbackDomainNotice {
  align-items: baseline;
  background: #f5f8fa;
  border-left: 2px solid #9fb3c8;
  color: #52606d;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 5px 10px;
  line-height: 1.5;
  margin-top: 12px;
  padding: 8px 10px;
}

.callbackDomainNotice strong {
  color: #334e68;
}

.callbackDomainRail {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 15px 0 0;
  padding: 0;
}

.callbackDomainStage {
  display: block;
  min-width: 0;
  padding-right: 20px;
  position: relative;
}

.callbackDomainStage:not(:last-child)::after {
  background: #d9e2ec;
  content: "";
  height: 2px;
  left: 18px;
  position: absolute;
  right: 2px;
  top: 8px;
}

.callbackDomainStageMark {
  background: #ffffff;
  border: 2px solid #bcccdc;
  border-radius: 50%;
  display: block;
  height: 18px;
  position: relative;
  width: 18px;
  z-index: 1;
}

.callbackDomainStage > span:last-child {
  display: block;
  margin-top: 6px;
}

.callbackDomainStage.is-ready .callbackDomainStageMark {
  background: #147d75;
  border-color: #147d75;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.callbackDomainStage.is-ready:not(:last-child)::after {
  background: #73b7af;
}

.callbackDomainStage.is-active .callbackDomainStageMark {
  background: #fff4cc;
  border-color: #d69e2e;
}

.callbackDomainStage.is-failed .callbackDomainStageMark {
  background: #fbe0dc;
  border-color: #b42318;
}

.callbackDomainStage strong,
.callbackDomainStage small {
  display: block;
}

.callbackDomainStage strong {
  color: #334e68;
  font-size: 11px;
}

.callbackDomainStage small {
  color: #829ab1;
  font-size: 10px;
  margin-top: 2px;
}

.callbackDomainError {
  color: #8a4b08;
  font-size: 12px;
  line-height: 1.5;
  margin: 12px 0 0;
}

.callbackDomainActions {
  justify-content: flex-end;
  margin-top: 12px;
}

.callbackDomainActions button:focus-visible {
  outline: 3px solid rgb(20 125 117 / 28%);
  outline-offset: 2px;
}

.callbackDomainDeleteButton {
  background: #ffffff;
  border-color: #d99a92;
  color: #a23a2a;
}

.callbackDomainDeleteButton:hover {
  background: #fbe0dc;
  border-color: #c86d61;
}

.callbackDomainDeleteButton:disabled,
.callbackDomainDeleteButton:disabled:hover {
  background: #f5f7fa;
  border-color: #cbd2d9;
  color: #7b8794;
  cursor: not-allowed;
}

.callbackDomainReferenceNotice {
  background: #eef8f6;
  border-left: 3px solid #147d75;
  color: #315f5a;
  font-size: 12px;
  line-height: 1.55;
  margin: 12px 0 0;
  padding: 8px 10px;
}

.callbackDomainLegacyCard p {
  color: #52606d;
  font-size: 12px;
  line-height: 1.55;
}

.callbackDomainEmpty {
  background: #f8fafc;
  border: 1px dashed #bcccdc;
  color: #52606d;
  padding: 14px;
}

.callbackDomainEmpty strong {
  color: #334e68;
  font-size: 13px;
}

.callbackDomainEmpty p {
  font-size: 12px;
  line-height: 1.5;
  margin: 5px 0 0;
}

.callbackProjectList {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.callbackProjectCard {
  border: 1px solid #d9e2ec;
  border-left: 3px solid #147d75;
  padding: 14px;
}

.callbackProjectCardHeader,
.callbackProjectCardFooter {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.callbackProjectCardHeader h4,
.callbackProjectCardHeader p {
  margin: 0;
}

.callbackProjectCardHeader h4 {
  color: #102a43;
  font-size: 15px;
}

.callbackProjectCardHeader p,
.callbackProjectCardFooter > span {
  color: #627d98;
  font-size: 12px;
  margin-top: 4px;
}

.callbackProjectMeta {
  display: grid;
  gap: 10px 18px;
  grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(120px, 1fr));
  margin: 14px 0;
}

.callbackProjectMeta div {
  min-width: 0;
}

.callbackProjectMeta dt {
  color: #829ab1;
  font-size: 11px;
}

.callbackProjectMeta dd {
  color: #243b53;
  font-size: 13px;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.copyableUrl {
  color: #0f766e;
  overflow-wrap: anywhere;
}

.callbackWizardModal,
.callbackIntegrationModal {
  align-items: center;
  background: rgba(16, 42, 67, 0.52);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 30;
}

.callbackWizardModal[hidden],
.callbackIntegrationModal[hidden] {
  display: none;
}

.callbackWizard,
.callbackIntegrationDialog {
  background: #ffffff;
  border: 1px solid #bcccdc;
  box-shadow: 0 18px 48px rgba(16, 42, 67, 0.24);
  max-height: min(860px, calc(100vh - 44px));
  max-width: 920px;
  overflow-y: auto;
  padding: 22px;
  width: min(920px, 100%);
}

.callbackProjectTagDialog {
  background: #ffffff;
  border: 1px solid #bcccdc;
  box-shadow: 0 18px 48px rgba(16, 42, 67, 0.24);
  max-height: min(760px, calc(100vh - 44px));
  overflow-y: auto;
  padding: 22px;
  width: min(720px, 100%);
}

.callbackProjectTagProject {
  background: #f3faf8;
  border-left: 3px solid #147d75;
  display: grid;
  gap: 4px;
  margin-top: 20px;
  padding: 13px 14px;
}

.callbackProjectTagProject span,
.callbackProjectTagProject small {
  color: #627d98;
  font-size: 12px;
}

.callbackProjectTagProject strong {
  color: #102a43;
  font-size: 15px;
}

.callbackProjectTagFooter {
  align-items: center;
  background: #ffffff;
  border-top: 1px solid #d9e2ec;
  bottom: -22px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 20px -22px -22px;
  padding: 14px 22px;
  position: sticky;
  z-index: 2;
}

.callbackProjectTagFooter .uploadStatus {
  flex: 1;
  margin: 0;
  min-width: 0;
}

.callbackProjectTagFooter .callbackWizardActions {
  border-top: 0;
  flex: 0 0 auto;
  margin-top: 0;
  padding-top: 0;
}

.callbackProjectTagRuleCard {
  margin-top: 18px;
}

.externalLinkDeleteDialog {
  background: #ffffff;
  border: 1px solid #e5aaa2;
  box-shadow: 0 18px 48px rgba(16, 42, 67, 0.24);
  padding: 22px;
  width: min(520px, 100%);
}

.externalLinkDeleteWarning {
  background: #fff5f3;
  border: 1px solid #efc4be;
  margin-top: 20px;
  padding: 16px;
}

.externalLinkDeleteWarning strong {
  color: #8f2f24;
  display: block;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.externalLinkDeleteWarning p,
.externalLinkDeleteHint {
  color: #52606d;
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0 0;
}

.externalLinkDeleteHint {
  margin-top: 14px;
}

.externalLinkDeleteActions {
  border-top: 1px solid #e4e7eb;
  margin-top: 20px;
  padding-top: 16px;
}

.externalLinkDeleteConfirmButton {
  background: #b63b2e;
  border-color: #b63b2e;
  color: #ffffff;
}

.externalLinkDeleteConfirmButton:hover {
  background: #922f25;
  border-color: #922f25;
}

.callbackIntegrationDialog {
  max-width: 760px;
}

.modalHeader {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.modalHeader h2,
.modalHeader p {
  margin: 0;
}

.modalHeader p {
  color: #627d98;
  font-size: 13px;
  margin-top: 5px;
}

.iconButton {
  align-items: center;
  align-self: flex-start;
  background: transparent;
  border-color: transparent;
  color: #52606d;
  display: inline-flex;
  font-size: 24px;
  font-weight: 400;
  height: 34px;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  width: 34px;
}

.iconButton:hover {
  background: #e4e7eb;
  color: #102a43;
}

.callbackWizardSteps {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.callbackWizardSteps li {
  align-items: center;
  color: #829ab1;
  display: flex;
  font-size: 13px;
  gap: 9px;
}

.callbackWizardSteps b {
  align-items: center;
  background: #d9e2ec;
  border-radius: 50%;
  color: #52606d;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.callbackWizardSteps li.active,
.callbackWizardSteps li.complete {
  color: #0f766e;
  font-weight: 700;
}

.callbackWizardSteps li.active b,
.callbackWizardSteps li.complete b {
  background: #147d75;
  color: #ffffff;
}

.callbackWizardSectionTitle {
  border-top: 1px solid #d9e2ec;
  margin: 0 0 16px;
  padding-top: 16px;
}

.callbackWizardSectionTitle h3,
.callbackWizardSectionTitle p {
  margin: 0;
}

.callbackWizardSectionTitle p {
  color: #627d98;
  font-size: 12px;
  margin-top: 4px;
}

.acquisitionMethodFieldset,
.submissionModeFieldset {
  border: 0;
  margin: 16px 0;
  padding: 0;
}

.acquisitionMethodFieldset legend,
.submissionModeFieldset legend {
  color: #52606d;
  font-size: 13px;
  margin-bottom: 8px;
}

.acquisitionMethodOptions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.acquisitionMethodOption {
  align-items: flex-start;
  border: 1px solid #bcccdc;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.acquisitionMethodOption input,
.submissionModeFieldset input {
  accent-color: #147d75;
  height: 18px;
  margin: 2px 0 0;
  min-height: 18px;
  padding: 0;
  width: 18px;
}

.acquisitionMethodOption span {
  display: grid;
  gap: 4px;
}

.acquisitionMethodOption small {
  color: #627d98;
  font-size: 12px;
  line-height: 1.45;
}

.submissionModeFieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.submissionModeFieldset legend {
  flex-basis: 100%;
}

.submissionModeFieldset label {
  align-items: center;
  display: flex;
  gap: 7px;
}

.callbackTagChecklist {
  border: 0;
  margin: 16px 0 0;
  min-width: 0;
  padding: 0;
}

.callbackTagChecklist legend {
  color: #52606d;
  font-size: 13px;
  margin-bottom: 8px;
  padding: 0;
}

.callbackTagToolbar {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) auto;
  margin-bottom: 8px;
}

.callbackTagSearchControl,
.wecomLinkTagSearchControl {
  display: grid;
  gap: 5px;
}

.callbackTagSearchControl span,
.wecomLinkTagSearchControl span {
  color: #52606d;
  font-size: 12px;
  font-weight: 600;
}

.callbackTagSearchControl input,
.wecomLinkTagSearchControl input {
  min-height: 38px;
}

.callbackTagVisibleCount {
  color: #627d98;
  font-size: 12px;
  padding-bottom: 10px;
  white-space: nowrap;
}

.callbackTagOptions {
  border: 1px solid #bcccdc;
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
  max-height: 224px;
  overflow-y: auto;
  padding: 8px;
}

.callbackTagOption {
  align-items: center;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

.callbackTagOption input[type="checkbox"] {
  accent-color: #147d75;
  appearance: auto;
  border: initial;
  border-radius: 0;
  flex: 0 0 18px;
  height: 18px;
  margin: 0;
  min-height: 18px;
  padding: 0;
  width: 18px;
}

.callbackTagOption span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.callbackTagOption:has(input:checked) {
  background: #e7f7f2;
  border-color: #147d75;
}

.callbackTagOption:focus-within {
  border-color: #147d75;
  box-shadow: 0 0 0 3px rgb(20 125 117 / 18%);
  outline: 2px solid #147d75;
  outline-offset: 1px;
}

.callbackTagOptions:has(.callbackTagEmpty) {
  border: 0;
  padding: 0;
}

.callbackTagEmpty {
  background: #f8fafc;
  border: 1px dashed #bcccdc;
  border-radius: 7px;
  color: #52606d;
  margin: 0;
  padding: 12px;
}

.callbackTagNoMatches {
  background: #f8fafc;
  border: 1px dashed #bcccdc;
  border-radius: 7px;
  color: #52606d;
  margin: 8px 0 0;
  padding: 12px;
  text-align: center;
}

.callbackTagSummary {
  color: #52606d;
  font-size: 12px;
  margin: 8px 0 0;
}

.callbackWizardActions {
  border-top: 1px solid #d9e2ec;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 16px;
}

.callbackAuthorizedLinkSelector {
  align-items: center;
  background: #f3faf8;
  border-left: 3px solid #147d75;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 16px;
  padding: 13px 14px;
}

.callbackAuthorizedLinkSelector > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.callbackAuthorizedLinkSelector span,
.callbackAuthorizedLinkSelector small {
  color: #627d98;
  font-size: 12px;
}

.callbackAuthorizedLinkSelector strong {
  color: #102a43;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.callbackAuthorizedLinkSelector .actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wecomLinkModal {
  align-items: center;
  background: rgba(16, 42, 67, 0.52);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 31;
}

.wecomLinkModal[hidden] {
  display: none;
}

.wecomLinkDialog,
.wecomLinkPickerDialog {
  background: #ffffff;
  border: 1px solid #bcccdc;
  box-shadow: 0 18px 48px rgba(16, 42, 67, 0.24);
  max-height: min(860px, calc(100vh - 44px));
  overflow-y: auto;
  padding: 22px;
  width: min(720px, 100%);
}

.wecomLinkPickerDialog {
  width: min(1040px, 100%);
}

.wecomAuthorizationOverview {
  border-top: 1px solid #d9e2ec;
  margin-top: 20px;
  padding-top: 16px;
}

.wecomAuthorizationOverview dl {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.wecomAuthorizationOverview div {
  border-left: 2px solid #9fb3c8;
  min-width: 0;
  padding: 4px 10px;
}

.wecomAuthorizationOverview dt {
  color: #627d98;
  font-size: 11px;
}

.wecomAuthorizationOverview dd {
  color: #102a43;
  font-size: 13px;
  font-weight: 700;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.wecomAuthorizationSteps {
  color: #52606d;
  display: grid;
  font-size: 13px;
  gap: 9px;
  line-height: 1.5;
  margin: 20px 0 0;
  padding-left: 22px;
}

.wecomLinkPickerToolbar {
  align-items: flex-end;
  border-top: 1px solid #d9e2ec;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
}

.wecomLinkPickerToolbar > label {
  flex: 1;
  max-width: 430px;
}

.wecomLinkPickerToolbar .actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wecomLinkCreateForm {
  background: #f0f7f6;
  border: 1px solid #c8e1dd;
  border-left: 4px solid #147d73;
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
}

.wecomLinkCreateForm[hidden] {
  display: none;
}

.wecomLinkCreateHeading,
.wecomLinkCreateActions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.wecomLinkCreateHeading strong {
  color: #102a43;
  font-size: 14px;
}

.wecomLinkCreateHeading p {
  color: #52606d;
  font-size: 12px;
  margin: 4px 0 0;
}

.wecomLinkCreatePrimary,
.wecomLinkCreateFields {
  display: grid;
  gap: 10px;
}

.wecomLinkCreatePrimary {
  grid-template-columns: minmax(240px, 1fr);
}

.wecomLinkCreateFields {
  grid-template-columns: minmax(150px, 0.7fr) minmax(240px, 1.3fr);
}

.wecomLinkAdvancedRange {
  border-top: 1px solid #c8e1dd;
  padding-top: 11px;
}

.wecomLinkAdvancedRange summary {
  color: #147d73;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.wecomLinkAdvancedRange > p {
  color: #52606d;
  font-size: 12px;
  margin: 8px 0 10px;
}

.wecomLinkSkipVerify {
  margin: 0;
}

.wecomLinkCreateActions .uploadStatus {
  margin: 0;
}

.wecomLinkMemberPicker {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.wecomLinkMemberPicker[hidden],
.wecomLinkRangeValues[hidden] {
  display: none;
}

.wecomLinkMemberList {
  background: #fff;
  border: 1px solid #c8e1dd;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
}

.wecomLinkMemberOption {
  align-items: center;
  border: 1px solid #d9e2ec;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 9px 10px;
}

.wecomLinkMemberOption:has(input:checked) {
  background: #e6f6f3;
  border-color: #147d73;
}

.wecomLinkMemberOption.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.wecomLinkMemberOption strong,
.wecomLinkMemberOption small {
  display: block;
}

.wecomLinkMemberOption small {
  color: #627d98;
  font-size: 11px;
  margin-top: 2px;
}

.wecomLinkMemberEmpty {
  color: #627d98;
  margin: 12px;
  text-align: center;
}

.wecomLinkTagPicker {
  border-top: 1px solid #c8e1dd;
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.wecomLinkTagHeading {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.wecomLinkTagHeading p {
  color: #52606d;
  font-size: 12px;
  margin: 4px 0 0;
}

.wecomLinkTagSearchControl {
  max-width: 520px;
}

.wecomLinkTagList {
  background: #fff;
  border: 1px solid #c8e1dd;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
}

.wecomLinkTagOption {
  align-items: center;
  border: 1px solid #d9e2ec;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  gap: 9px;
  padding: 9px 10px;
}

.wecomLinkTagOption:has(input:checked) {
  background: #e6f6f3;
  border-color: #147d73;
}

@media (max-width: 720px) {
  .wecomLinkTagList {
    grid-template-columns: 1fr;
  }
}
.wecomLinkPickerTableWrap {
  margin-top: 8px;
}

.wecomLinkPickerTable td {
  vertical-align: middle;
}

.wecomLinkPickerTable td strong,
.wecomLinkPickerTable td small {
  display: block;
}

.wecomLinkPickerTable td small {
  color: #829ab1;
  font-size: 11px;
  margin-top: 3px;
}

.callbackIntegrationProjectMeta {
  background: #f0f7f6;
  border: 1px solid #c8e1dd;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 18px 0;
  padding: 11px 12px;
}

.callbackIntegrationProjectMeta span {
  color: #334e68;
  font-size: 12px;
}

.callbackIntegrationLinkCard,
.callbackIntegrationGuideSection {
  border: 1px solid #d9e2ec;
  margin-top: 16px;
  padding: 14px;
}

.callbackIntegrationLinkCard h3,
.callbackIntegrationGuideSection h3,
.callbackIntegrationDialog section > h3 {
  color: #243b53;
  font-size: 14px;
  margin: 0 0 10px;
}

.callbackIntegrationChecks {
  display: grid;
  gap: 8px;
  margin: 10px 0 14px;
}

.integrationCheck {
  display: grid;
  gap: 3px 10px;
  grid-template-columns: auto 1fr;
  padding: 9px 0;
}

.integrationCheck + .integrationCheck {
  border-top: 1px solid #e4e7eb;
}

.integrationCheck strong {
  font-size: 12px;
  grid-row: span 2;
}

.integrationCheck span {
  color: #243b53;
  font-size: 13px;
}

.integrationCheck small {
  color: #627d98;
  font-size: 12px;
}

.integrationCheck.passed strong {
  color: #147d75;
}

.integrationCheck.pending strong {
  color: #b7791f;
}

.callbackIntegrationGuide {
  color: #52606d;
  display: grid;
  font-size: 13px;
  gap: 8px;
  line-height: 1.5;
  margin: 0;
  padding-left: 22px;
}

.callbackStage .tableTitle h3,
.callbackStage .tableTitle p {
  margin: 0;
}

.callbackStage .tableTitle p {
  color: #627d98;
  font-size: 12px;
  margin-top: 4px;
}

.compactForm {
  display: grid;
  gap: 10px;
}

.sectionHeader,
.chartHeader {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.sectionHeader p {
  color: #627d98;
  font-size: 13px;
  margin-top: 5px;
}

.dashboardHeaderActions {
  align-items: flex-end;
  display: flex;
  gap: 12px;
}

.dashboardDateFilter {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dashboardDateFilter label {
  display: grid;
  gap: 4px;
  margin: 0;
}

.dashboardDateFilter label span {
  color: #627d98;
  font-size: 11px;
  font-weight: 700;
}

.dashboardDateFilter input,
.dashboardDateFilter select {
  min-height: 36px;
  min-width: 126px;
  width: auto;
}

.dashboardDateFilter button {
  min-height: 36px;
}

.statusBadge {
  background: #e4e7eb;
  border-radius: 999px;
  color: #334e68;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

.status-on_target {
  background: #d7f0e5;
  color: #176b4d;
}

.status-watch {
  background: #fff0c2;
  color: #8a4b08;
}

.status-over_target {
  background: #fbe0dc;
  color: #a23a2a;
}

.kpiGrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 16px;
}

.overviewPanel {
  border-top: 1px solid #e4e7eb;
  margin-top: 16px;
  padding-top: 14px;
}

.overviewSummaryGrid {
  border: 1px solid #d9e2ec;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 12px;
}

.overviewSummaryGrid div {
  border-right: 1px solid #e4e7eb;
  min-width: 0;
  padding: 9px 10px;
}

.overviewSummaryGrid div:last-child {
  border-right: 0;
}

.overviewSummaryGrid span {
  color: #627d98;
  display: block;
  font-size: 11px;
  font-weight: 700;
}

.overviewSummaryGrid strong {
  display: block;
  font-size: 16px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.accountOverviewList {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 12px;
}

.accountOverviewCard {
  border: 1px solid #d9e2ec;
  border-left: 3px solid #9fb3c8;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 11px 12px;
}

.accountOverviewCard.is-active {
  border-left-color: #0f766e;
  background: #f3faf8;
}

.accountOverviewCard span {
  color: #627d98;
  font-size: 11px;
}

.accountOverviewCard strong {
  display: block;
  font-size: 14px;
  margin-top: 3px;
}

.overviewMetrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.overviewMetrics span {
  background: #f0f4f8;
  border-radius: 999px;
  color: #334e68;
  padding: 4px 7px;
}

.overviewSignal {
  border-left: 2px solid #9fb3c8;
  color: #334e68;
  font-size: 12px;
  line-height: 1.4;
  padding-left: 8px;
}

.signal-high {
  border-left-color: #c2410c;
}

.signal-medium {
  border-left-color: #b54708;
}

.signal-low {
  border-left-color: #1f7a75;
}

.accountOverviewCard a {
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.kpiCard {
  border-left: 3px solid #1f7a75;
  min-width: 0;
  padding: 8px 10px;
}

.kpiCard span,
.kpiCard small {
  color: #627d98;
  display: block;
  font-size: 12px;
}

.kpiCard strong {
  display: block;
  font-size: 22px;
  line-height: 1.3;
  margin: 5px 0;
  overflow-wrap: anywhere;
}

.dashboardGrid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr);
  margin-top: 18px;
}

.chartPanel,
.insightPanel,
.actionPanel {
  border-top: 1px solid #e4e7eb;
  min-width: 0;
  padding-top: 14px;
}

.sidePanelStack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.chartLegend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chartLegend span {
  align-items: center;
  color: #627d98;
  display: flex;
  font-size: 11px;
  gap: 5px;
}

.chartLegend i {
  display: inline-block;
  height: 3px;
  width: 18px;
}

.legendSpend {
  background: #1f7a75;
}

.legendCpa {
  background: #2563a6;
}

.legendTarget {
  background: #b54708;
}

#trendChart {
  display: block;
  margin-top: 10px;
  max-width: 100%;
}

.emptyState {
  align-items: center;
  color: #829ab1;
  display: flex;
  font-size: 13px;
  justify-content: center;
  min-height: 120px;
  text-align: center;
}

.actionList {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.insightList {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.insightCard {
  border-left: 3px solid #9fb3c8;
  display: grid;
  gap: 10px;
  padding: 9px 0 9px 10px;
}

.insightCard span {
  color: #627d98;
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 3px;
}

.insightCard strong {
  display: block;
  font-size: 13px;
}

.insightCard p {
  color: #52606d;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 4px;
}

.insightCard a {
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.insightCard a:hover {
  text-decoration: underline;
}

.insight-high {
  border-left-color: #c2410c;
}

.insight-medium {
  border-left-color: #b54708;
}

.insight-low {
  border-left-color: #1f7a75;
}

.actionRow > div:first-child {
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.actionTrack {
  background: #e4e7eb;
  height: 7px;
  overflow: hidden;
}

.actionTrack i {
  background: #2563a6;
  display: block;
  height: 100%;
}

.tableWrap {
  border-top: 1px solid #e4e7eb;
  margin-top: 18px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding-top: 12px;
  width: 100%;
}

.dataTable {
  border-collapse: collapse;
  font-size: 12px;
  min-width: 680px;
  width: 100%;
}

.dataTable th,
.dataTable td {
  border-bottom: 1px solid #e4e7eb;
  padding: 9px 10px;
  text-align: right;
}

.dataTable th:first-child,
.dataTable td:first-child {
  text-align: left;
}

.dataTable th {
  color: #52606d;
  font-weight: 700;
}

.tableEmpty {
  color: #829ab1;
  text-align: center !important;
}

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

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  color: #52606d;
  display: grid;
  font-size: 13px;
  gap: 6px;
}

input,
select,
button {
  border: 1px solid #bcccdc;
  border-radius: 6px;
  font: inherit;
  min-height: 38px;
  padding: 8px 10px;
}

button {
  align-self: end;
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background: #115e59;
}

button:disabled {
  background: #9aa5b1;
  border-color: #9aa5b1;
  cursor: not-allowed;
}

.actions {
  display: flex;
  gap: 10px;
}

.integrationBar {
  align-items: center;
  border-top: 1px solid #e4e7eb;
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
}

.integrationBar span {
  color: #334e68;
  font-size: 13px;
}

.summary,
.list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.wecomConfigPanel {
  border-top: 1px solid #d9e2ec;
  margin-top: 22px;
  padding-top: 18px;
}

.wecomConfigPanel[hidden],
.callbackMappingPanel[hidden] {
  display: none;
}

.callbackMappingPanel {
  border-top: 1px solid #d9e2ec;
  margin-top: 22px;
  padding-top: 18px;
}

.wecomConfigPanel .tableTitle {
  align-items: flex-start;
  margin-bottom: 14px;
}

.wecomConfigPanel .tableTitle h3,
.wecomConfigPanel .tableTitle p {
  margin: 0;
}

.callbackMappingPanel .tableTitle h3,
.callbackMappingPanel .tableTitle p {
  margin: 0;
}

.callbackMappingPanel .tableTitle p {
  color: #627d98;
  font-size: 12px;
  margin-top: 4px;
}

.callbackMappingTableWrap {
  margin-top: 16px;
}

.callbackManualDispatchForm {
  margin-top: 16px;
}

.wecomConfigPanel .tableTitle p {
  color: #627d98;
  font-size: 12px;
  margin-top: 4px;
}

.wecomConnectionCard {
  align-items: center;
  background: linear-gradient(135deg, #eef8f6 0%, #f8fafc 72%);
  border: 1px solid #b7ded8;
  border-left: 4px solid #147d75;
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 16px;
}

.wecomConnectionSummary {
  display: grid;
  flex: 1;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  margin: 0;
}

.wecomConnectionSummary div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.wecomConnectionSummary dt {
  color: #627d98;
  font-size: 12px;
}

.wecomConnectionSummary dd {
  color: #243b53;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}

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

.wecomEntityHeader {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.wecomEntityHeader h3,
.wecomEntityHeader p {
  margin: 0;
}

.wecomEntityHeader > div > p:last-child {
  color: #627d98;
  font-size: 12px;
  margin-top: 5px;
}

.sectionEyebrow {
  color: #0f766e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 4px !important;
  text-transform: uppercase;
}

.wecomEntityMetrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wecomEntityMetrics span {
  background: #eaf8f6;
  border: 1px solid #c9ebe6;
  border-radius: 999px;
  color: #0f766e;
  font-size: 12px;
  padding: 5px 10px;
}

.wecomEntityTable {
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  overflow: hidden;
}

.wecomEntityTableHeader,
.wecomEntityRow {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px, 1.35fr) minmax(120px, 1fr) minmax(108px, .8fr) 90px 120px minmax(190px, auto);
  padding: 11px 14px;
}

.wecomEntityTableHeader {
  background: #f7fafc;
  color: #627d98;
  font-size: 11px;
  font-weight: 700;
}

.wecomEntityRow {
  border-top: 1px solid #e6edf3;
  color: #334e68;
  font-size: 12px;
  transition: background-color .16s ease, box-shadow .16s ease;
}

.wecomEntityRow.is-selected {
  background: #eaf8f6;
  box-shadow: inset 3px 0 0 #147d75;
}

.wecomEntityNameButton {
  align-items: flex-start;
  background: transparent;
  border: 0;
  color: #102a43;
  display: grid;
  gap: 3px;
  justify-items: start;
  padding: 0;
  text-align: left;
}

.wecomEntityNameButton:hover {
  background: transparent;
  color: #0f766e;
}

.wecomEntityNameButton strong {
  align-items: center;
  display: flex;
  gap: 7px;
}

.wecomEntityNameButton em,
.wecomDefaultBadge {
  background: #dff4ef;
  border-radius: 999px;
  color: #0f766e;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  padding: 3px 7px;
}

.wecomEntityNameButton small {
  color: #829ab1;
  font-size: 10px;
}

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

.wecomEntityState i {
  background: #f0b429;
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.wecomEntityState i.is-ready {
  background: #2f9e73;
}

.wecomEntityRowActions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.wecomEntityRowActions button {
  background: transparent;
  border: 0;
  color: #0f766e;
  font-size: 11px;
  padding: 4px 5px;
}

.wecomEntityRowActions .dangerTextButton {
  color: #ba2525;
}

.wecomEntityEmpty {
  color: #627d98;
  padding: 28px;
  text-align: center;
}

.wecomEntityEmpty p {
  font-size: 12px;
  margin: 5px 0 0;
}

.wecomEntityDetail {
  background: linear-gradient(135deg, #fbfefd 0%, #f4f8fb 100%);
  border: 1px solid #cfe5e1;
  border-radius: 12px;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.wecomEntityDetailHeader,
.wecomEntityDetailActions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.wecomEntityDetailHeader h4 {
  color: #102a43;
  font-size: 17px;
  margin: 5px 0 2px;
}

.wecomEntityDetailHeader p {
  color: #627d98;
  font-size: 11px;
  margin: 0;
}

.wecomEntityDetailActions {
  border-top: 1px solid #d9e2ec;
  justify-content: flex-end;
  padding-top: 14px;
}

.wecomEntityStatusRail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 2px 0;
}

.wecomEntityStatusRail li {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 27px minmax(0, 1fr);
  position: relative;
}

.wecomEntityStatusRail li:not(:last-child)::after {
  background: #d9e2ec;
  content: "";
  height: 2px;
  left: 27px;
  position: absolute;
  right: 8px;
  top: 13px;
}

.wecomEntityStatusRail li > span {
  align-items: center;
  background: #fff;
  border: 2px solid #bcccdc;
  border-radius: 50%;
  color: #829ab1;
  display: flex;
  font-size: 10px;
  font-weight: 800;
  height: 27px;
  justify-content: center;
  position: relative;
  width: 27px;
  z-index: 1;
}

.wecomEntityStatusRail li.is-complete > span {
  background: #147d75;
  border-color: #147d75;
  color: #fff;
}

.wecomEntityStatusRail li.is-complete:not(:last-child)::after {
  background: #73b7af;
}

.wecomEntityStatusRail li div {
  display: grid;
  gap: 1px;
  z-index: 1;
}

.wecomEntityStatusRail strong {
  color: #334e68;
  font-size: 11px;
}

.wecomEntityStatusRail small {
  color: #829ab1;
  font-size: 9px;
}

.wecomSetupRail {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.wecomSetupRail li {
  align-items: center;
  color: #627d98;
  display: grid;
  gap: 11px;
  grid-template-columns: 34px minmax(0, 1fr);
  min-width: 0;
  padding-right: 34px;
  position: relative;
}

.wecomSetupRail li:first-child::after {
  background: #d9e2ec;
  content: "";
  height: 2px;
  left: 34px;
  position: absolute;
  right: 0;
  top: 16px;
}

.wecomSetupRail li > span {
  align-items: center;
  background: #ffffff;
  border: 2px solid #bcccdc;
  border-radius: 50%;
  color: #627d98;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  letter-spacing: 0.03em;
  position: relative;
  width: 34px;
  z-index: 1;
}

.wecomSetupRail li div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wecomSetupRail strong {
  color: #334e68;
  font-size: 13px;
}

.wecomSetupRail small {
  font-size: 11px;
  line-height: 1.35;
}

.wecomSetupRail li.is-current > span,
.wecomSetupRail li.is-complete > span {
  background: #147d75;
  border-color: #147d75;
  color: #ffffff;
}

.wecomSetupRail li.is-current strong,
.wecomSetupRail li.is-complete strong {
  color: #0f766e;
}

.wecomSetupRail li.is-complete:first-child::after {
  background: #73b7af;
}

.wecomSetupStage {
  border-top: 1px solid #d9e2ec;
  margin-top: 18px;
  padding-top: 18px;
}

.wecomSetupStageHeader {
  align-items: flex-start;
  display: grid;
  gap: 11px;
  grid-template-columns: 30px minmax(0, 1fr);
}

.wecomSetupStageHeader > span {
  border-left: 3px solid #147d75;
  color: #0f766e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 0 3px 8px;
}

.wecomSetupStageHeader h3,
.wecomSetupStageHeader p {
  margin: 0;
}

.wecomSetupStageHeader h3 {
  color: #102a43;
  font-size: 15px;
}

.wecomSetupStageHeader p {
  color: #627d98;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 4px;
}

.wecomConfigForm {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 15px;
}

.wecomConfigCallbackDomain {
  align-items: end;
  background: #f7fafc;
  border: 1px solid #d9e2ec;
  display: grid;
  gap: 8px 12px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.wecomConfigCallbackDomain label,
.wecomConfigCallbackDomain .formHint {
  min-width: 0;
}

.wecomConfigCallbackDomain .formHint {
  grid-column: 1 / -1;
  line-height: 1.55;
  margin: 0;
  order: 3;
}

.wecomConfigCallbackDomain button {
  white-space: nowrap;
}

.wecomConfigFormActions {
  align-items: center;
  display: flex;
  gap: 14px;
  grid-column: 1 / -1;
  justify-content: space-between;
}

.wecomConfigFormActions .uploadStatus,
.wecomCallbackSetupActions .uploadStatus {
  margin: 0;
}

.wecomCallbackValues {
  border: 1px solid #d9e2ec;
  display: grid;
  margin-top: 15px;
}

.wecomCallbackValue {
  align-items: center;
  background: #f8fafc;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  padding: 11px 12px;
}

.wecomCallbackValue + .wecomCallbackValue {
  border-top: 1px solid #d9e2ec;
}

.wecomCallbackValue > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.wecomCallbackValue span {
  color: #627d98;
  font-size: 11px;
  font-weight: 700;
}

.wecomCallbackValue code {
  color: #102a43;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  user-select: all;
}

.wecomCallbackChecklist {
  color: #52606d;
  display: grid;
  font-size: 12px;
  gap: 7px;
  line-height: 1.55;
  margin: 15px 0 0;
  padding-left: 22px;
}

.wecomCallbackChecklist li::marker {
  color: #147d75;
  font-weight: 700;
}

.wecomCallbackSetupActions {
  align-items: center;
  border-top: 1px solid #e4e7eb;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 14px;
}

.wecomDangerZone {
  align-items: center;
  background: #fff9f8;
  border: 1px solid #efd3cf;
  border-left: 3px solid #c75b4d;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 20px;
  padding: 14px 15px;
}

.wecomDangerZone[hidden] {
  display: none;
}

.wecomDangerZone strong {
  color: #8f3228;
  font-size: 13px;
}

.wecomDangerZone p {
  color: #6b4a46;
  font-size: 12px;
  line-height: 1.55;
  margin: 5px 0 0;
}

.wecomDangerActions {
  align-items: flex-end;
  display: grid;
  gap: 7px;
  justify-items: end;
}

.wecomDangerActions .uploadStatus {
  margin: 0;
  max-width: 280px;
  text-align: right;
}

.wecomDangerButton {
  background: #ffffff;
  border-color: #d58b82;
  color: #9f382d;
}

.wecomDangerButton:hover {
  background: #fbe9e6;
  border-color: #c75b4d;
}

.wecomDangerButton:disabled {
  background: #f3f4f6;
  border-color: #cbd2d9;
  color: #7b8794;
}

.wecomLinkDialog input:focus-visible,
.wecomLinkDialog button:focus-visible,
.wecomLinkPickerDialog input:focus-visible,
.wecomLinkPickerDialog button:focus-visible {
  border-color: #147d75;
  box-shadow: 0 0 0 3px rgb(20 125 117 / 18%);
  outline: 2px solid #0f766e;
  outline-offset: 2px;
}

.wecomAcquisitionStatusBar {
  align-items: center;
  border-top: 1px solid #d9e2ec;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 15px;
}

.wecomAcquisitionStatusBar > div:first-child {
  display: grid;
  gap: 4px;
}

.wecomAcquisitionStatusBar strong {
  color: #243b53;
  font-size: 13px;
}

.wecomAcquisitionStatusBar p {
  color: #627d98;
  font-size: 12px;
  margin: 0;
}

.wecomAcquisitionStatusBar .actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.item {
  background: #f8fafc;
  border: 1px solid #e4e7eb;
  border-radius: 6px;
  padding: 10px;
}

.item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.item span {
  color: #52606d;
  display: block;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}

.decisionBox {
  display: grid;
  gap: 10px;
}

.agentLaunchLayout {
  border-top: 1px solid #e4e7eb;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  margin-top: 18px;
  padding-top: 18px;
}

.agentLaunchForm {
  align-content: start;
  display: grid;
  gap: 14px;
}

.agentDecisionPanel {
  border-left: 1px solid #e4e7eb;
  min-width: 0;
  padding-left: 24px;
}

.agentDecisionPanel h3 {
  margin-top: 0;
}

.decisionSummary {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.decisionHero {
  border-left: 3px solid #9fb3c8;
  padding-left: 10px;
}

.decisionHero span {
  color: #627d98;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.decisionHero strong {
  display: block;
  font-size: 15px;
  line-height: 1.45;
}

.decisionHero p {
  color: #52606d;
  font-size: 12px;
  margin-top: 5px;
}

.risk-high {
  border-left-color: #c2410c;
}

.risk-medium {
  border-left-color: #b54708;
}

.risk-low {
  border-left-color: #1f7a75;
}

.decisionFacts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.decisionFacts div {
  border-top: 1px solid #e4e7eb;
  min-width: 0;
  padding-top: 8px;
}

.decisionFacts span {
  color: #627d98;
  display: block;
  font-size: 11px;
}

.decisionFacts strong {
  display: block;
  font-size: 13px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.decisionDetails summary {
  color: #0f766e;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.check input {
  min-height: auto;
}

pre {
  background: #102a43;
  border-radius: 6px;
  color: #f0f4f8;
  margin: 0;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

@media (max-width: 860px) {
  .loginShell {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .loginIdentity {
    min-height: 250px;
    padding: 28px;
  }

  .loginMark {
    margin-bottom: 54px;
  }

  .loginShell .loginPanel {
    padding: 32px 28px;
  }

  .appHeader {
    margin-left: 0;
  }

  .topbar,
  .actions,
  .integrationBar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    padding: 14px 20px;
  }

  .primaryNav {
    border-bottom: 1px solid #d9e2ec;
    border-right: 0;
    border-top: 1px solid #e4e7eb;
    flex-direction: row;
    inset: auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 12px;
    position: static;
    width: auto;
  }

  .navTitle {
    display: none;
  }

  .navBusinessGroup {
    border-left: 1px solid #d9e2ec;
    border-top: 0;
    flex-direction: row;
    gap: 0;
    margin-left: 8px;
    margin-top: 0;
    padding: 0 0 0 8px;
  }

  .navGroupTitle {
    display: none;
  }

  .globalContext {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    padding: 9px 20px 11px;
  }

  .globalContext label {
    flex: 0 0 auto;
    max-width: none;
  }

  .navLink {
    border-bottom: 3px solid transparent;
    border-left: 0;
    border-radius: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  .navLink.active {
    border-bottom-color: #0f766e;
  }

  .layout {
    margin-left: 0;
  }

  .two,
  .three {
    grid-template-columns: 1fr;
  }

  .sectionHeader,
  .chartHeader {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .dashboardHeaderActions {
    align-items: stretch;
    flex-direction: column-reverse;
    width: 100%;
  }

  .dashboardDateFilter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .dashboardDateFilter input,
  .dashboardDateFilter select,
  .dashboardDateFilter button {
    width: 100%;
  }

  .kpiGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboardGrid {
    grid-template-columns: 1fr;
  }

  .agentLaunchLayout {
    grid-template-columns: 1fr;
  }

  .agentDecisionPanel {
    border-left: 0;
    border-top: 1px solid #e4e7eb;
    padding-left: 0;
    padding-top: 18px;
  }

  .adminGrid,
  .adminTables,
  .platformForms,
  .accountDetailTables {
    grid-template-columns: 1fr;
  }

  .platformForm {
    grid-template-columns: 1fr;
  }

  .platformSummary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .permissionFormHeader,
  .permissionAccountList {
    grid-template-columns: 1fr;
  }

  .platformSummary > div:nth-child(2) {
    border-right: 0;
  }

  .platformSummary > div:nth-child(-n + 2) {
    border-bottom: 1px solid #e4e7eb;
  }

  .accountDetailStats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accountDetailStats > div:nth-child(2) {
    border-right: 0;
  }

  .accountDetailStats > div:nth-child(-n + 2) {
    border-bottom: 1px solid #e4e7eb;
  }

  .adminForm,
  .adminForm:first-child,
  .adminForm:last-child {
    border-bottom: 1px solid #e4e7eb;
    border-right: 0;
    padding: 16px 0;
  }

  .adminForm:last-child {
    border-bottom: 0;
  }

}

@media (max-width: 860px) {
  .overviewSummaryGrid {
    grid-template-columns: 1fr;
  }

  .overviewSummaryGrid div {
    border-bottom: 1px solid #e4e7eb;
    border-right: 0;
  }

  .overviewSummaryGrid div:last-child {
    border-bottom: 0;
  }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .callbackDomainForm {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .callbackDomainOriginComposer {
    grid-column: 1 / -1;
  }

  .kpiGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hierarchyOverview {
  display: block;
  margin-top: 12px;
}

.hierarchySummary {
  align-items: center;
  border: 1px solid #d9e2ec;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 10px 12px;
}

.hierarchySummary span {
  color: #627d98;
  font-size: 12px;
}

.hierarchyTableWrap {
  overflow-x: auto;
}

.hierarchyTable th,
.hierarchyTable td {
  white-space: nowrap;
}

.hierarchyRow td:first-child span {
  display: inline-grid;
  gap: 2px;
  margin-left: calc(var(--depth, 0) * 20px);
  vertical-align: middle;
}

.hierarchyRow small,
.hierarchyGroup span {
  color: #829ab1;
  font-size: 11px;
}

.hierarchyRow.is-active {
  background: #f3faf8;
}

.hierarchyToggle,
.tableSortBtn {
  align-items: center;
  background: transparent;
  border: 0;
  color: #0f766e;
  cursor: pointer;
  display: inline-flex;
  gap: 4px;
  font: inherit;
  font-weight: 700;
  justify-content: flex-end;
  line-height: 1.2;
  padding: 2px 4px;
}

.hierarchyToggle {
  border: 1px solid #9fb3c8;
  height: 22px;
  margin-right: 8px;
  width: 22px;
}

.hierarchyToggle:disabled {
  color: #9fb3c8;
  cursor: default;
}

.tableSortBtn.is-active {
  color: #0b625c;
}

.tableSortBtn small {
  color: currentColor;
  font-size: 11px;
  line-height: 1;
}

.hierarchyGroup td {
  background: #f8fafc;
  color: #334e68;
  font-weight: 700;
}

@media (max-width: 760px) {
  .callbackWorkspaceHeader,
  .callbackDomainCardHeader,
  .callbackProjectCardHeader,
  .callbackProjectCardFooter {
    align-items: stretch;
    flex-direction: column;
  }

  .callbackChain {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .callbackChain i {
    margin-left: 8px;
  }

  .callbackProjectMeta,
  .acquisitionMethodOptions,
  .callbackWizardSteps {
    grid-template-columns: 1fr;
  }

  .callbackTagChecklist,
  .callbackTagOptions,
  .callbackTagOption {
    width: 100%;
  }

  .callbackTagOptions {
    grid-template-columns: 1fr;
    max-height: 224px;
  }

  .callbackTagToolbar {
    grid-template-columns: 1fr;
  }

  .callbackTagVisibleCount {
    padding-bottom: 0;
  }

  .callbackWizardModal,
  .callbackIntegrationModal,
  .wecomLinkModal {
    align-items: flex-end;
    padding: 0;
  }

  .callbackWizard,
  .callbackIntegrationDialog,
  .wecomLinkDialog,
  .wecomLinkPickerDialog {
    max-height: min(92vh, 900px);
    padding: 18px;
  }

  .callbackWizardActions {
    justify-content: stretch;
  }

  .callbackWizardActions button {
    flex: 1;
  }

  .callbackAuthorizedLinkSelector,
  .wecomLinkPickerToolbar,
  .wecomLinkCreateHeading,
  .wecomLinkCreateActions,
  .wecomAcquisitionStatusBar {
    align-items: stretch;
    flex-direction: column;
  }

  .wecomLinkCreateFields {
    grid-template-columns: 1fr;
  }

  .callbackAuthorizedLinkSelector .actions,
  .wecomLinkPickerToolbar .actions,
  .wecomAcquisitionStatusBar .actions {
    justify-content: stretch;
  }

  .callbackAuthorizedLinkSelector .actions button,
  .wecomLinkPickerToolbar .actions button,
  .wecomAcquisitionStatusBar .actions button {
    flex: 1;
  }

  .wecomAuthorizationOverview dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wecomConnectionCard {
    align-items: stretch;
    flex-direction: column;
  }

  .wecomConnectionSummary,
  .wecomConfigForm {
    grid-template-columns: 1fr;
  }

  .wecomConfigCallbackDomain {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .wecomConfigCallbackDomain .formHint {
    grid-column: auto;
  }

  .wecomConnectionCard .actions button,
  .wecomConfigFormActions button,
  .wecomCallbackSetupActions button {
    width: 100%;
  }

  .wecomSetupRail {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .wecomSetupRail li {
    padding: 0 0 12px;
  }

  .wecomSetupRail li:first-child::after {
    bottom: -12px;
    height: auto;
    left: 16px;
    right: auto;
    top: 34px;
    width: 2px;
  }

  .wecomConfigFormActions,
  .wecomCallbackSetupActions,
  .wecomCallbackValue {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .wecomConfigFormActions,
  .wecomCallbackSetupActions {
    flex-direction: column;
  }

  .wecomDangerZone {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .wecomDangerActions {
    justify-items: stretch;
  }

  .wecomDangerActions .uploadStatus {
    max-width: none;
    text-align: left;
  }

  .wecomDangerButton {
    width: 100%;
  }

  .wecomCallbackValue button {
    width: 100%;
  }

  .callbackDomainOverview,
  .callbackDomainForm,
  .callbackDomainOriginComposer,
  .callbackDomainRecord,
  .callbackDomainRail {
    grid-template-columns: 1fr;
  }

  .callbackDomainOriginComposer label + label {
    border-left: 0;
    border-top: 1px solid #d9e2ec;
  }

  .callbackDomainOverview > div + div,
  .callbackDomainRecord > div + div {
    border-left: 0;
    border-top: 1px solid #d9e2ec;
  }

  .callbackDomainForm button {
    width: 100%;
  }

  .callbackDomainStage {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 18px minmax(0, 1fr);
    padding-bottom: 13px;
    padding-right: 0;
  }

  .callbackDomainStage > span:last-child {
    margin-top: 0;
  }

  .callbackDomainStage:not(:last-child)::after {
    bottom: -1px;
    height: auto;
    left: 8px;
    right: auto;
    top: 18px;
    width: 2px;
  }
}

@media (max-width: 960px) {
  .wecomEntityTableHeader {
    display: none;
  }

  .wecomEntityRow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wecomEntityNameButton,
  .wecomEntityRowActions {
    grid-column: 1 / -1;
  }

  .wecomEntityRowActions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .wecomEntityHeader,
  .wecomEntityDetailHeader,
  .wecomEntityDetailActions {
    align-items: stretch;
    flex-direction: column;
  }

  .wecomEntityRow,
  .wecomEntityStatusRail {
    grid-template-columns: 1fr;
  }

  .wecomEntityStatusRail {
    gap: 10px;
  }

  .wecomEntityStatusRail li:not(:last-child)::after {
    bottom: -10px;
    height: auto;
    left: 13px;
    right: auto;
    top: 26px;
    width: 2px;
  }
}
