html,
body {
  min-height: 100%;
  height: auto;
  overflow: auto;
}

body {
  -webkit-overflow-scrolling: touch;
  --admin-sidebar-width: 240px;
  background:
    radial-gradient(circle at 12% 8%, rgba(15, 107, 99, 0.1), transparent 28%),
    linear-gradient(180deg, #f5f7f1 0%, #f7f8f4 48%, #eff4f2 100%);
}

.adminWrap {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  padding: 10px 0 24px;
}

#loginView.adminWrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  grid-template-rows: auto minmax(0, 1fr);
  align-items: center;
  gap: 42px 56px;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 28px max(28px, calc((100% - 1220px) / 2)) 54px;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(15, 107, 99, 0.09), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(222, 183, 111, 0.2), transparent 30%),
    #f5f7f1;
}

#loginView.adminWrap::before {
  content: "";
  position: absolute;
  inset: 86px 7% auto auto;
  width: min(420px, 42vw);
  height: min(420px, 42vw);
  border: 1px solid rgba(15, 107, 99, 0.1);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(15, 107, 99, 0.08)),
    radial-gradient(circle at 35% 35%, rgba(15, 107, 99, 0.14), transparent 36%);
  filter: blur(0.5px);
  pointer-events: none;
}

#loginView.adminWrap::after {
  content: "";
  position: absolute;
  inset: auto auto 40px 8%;
  width: min(520px, 52vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 107, 99, 0.36), transparent);
  pointer-events: none;
}

#loginView .loginCard {
  width: 100%;
  margin: 0;
}

.adminLoginTop {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.adminLoginIntro {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.adminLoginBrand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #14231f;
  text-decoration: none;
}

.adminLoginBrand .landingMark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(159, 201, 191, 0.82);
  border-radius: 11px;
  background: #0d5f58;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 107, 99, 0.18);
}

.adminLoginBrand strong,
.adminLoginBrand em {
  display: block;
  font-style: normal;
  line-height: 1.25;
}

.adminLoginBrand strong {
  font-size: 1.02rem;
  font-weight: 900;
}

.adminLoginBrand em {
  color: var(--shell-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.adminHomeLink {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.78rem;
  border: 1px solid rgba(15, 107, 99, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: #0f5d56;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 900;
}

.adminHomeLink:hover {
  background: #fff;
}

.adminLoginKicker {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 0.28rem 0.58rem;
  border: 1px solid rgba(15, 107, 99, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--shell-accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.adminLoginIntro h1 {
  margin: 0;
  color: #12221e;
  font-size: clamp(3.3rem, 6vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.adminLoginIntro > p {
  width: min(580px, 100%);
  margin: 24px 0 0;
  color: #586963;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.85;
}

.adminConsolePreview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(620px, 100%);
  margin: 34px 0 0;
}

.adminConsolePreview article {
  position: relative;
  min-height: 118px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(196, 213, 206, 0.86);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 252, 250, 0.78));
  box-shadow: 0 18px 40px rgba(20, 44, 36, 0.08);
}

.adminConsolePreview article::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f6b63, #d6a35f);
}

.adminConsolePreview span,
.adminConsolePreview strong,
.adminConsolePreview em {
  display: block;
}

.adminConsolePreview span {
  color: #9aa9a4;
  font-size: 0.74rem;
  font-weight: 900;
}

.adminConsolePreview strong {
  margin-top: 18px;
  color: #31423d;
  font-size: 1.02rem;
  font-weight: 900;
}

.adminConsolePreview em {
  margin-top: 7px;
  color: #697772;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 800;
}

.adminLoginCard {
  position: relative;
  z-index: 1;
  padding: 28px;
  border-color: rgba(184, 200, 193, 0.9);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 253, 251, 0.92));
  box-shadow:
    0 24px 56px rgba(33, 51, 45, 0.13),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.adminLoginCard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, #0f6b63, #d6a35f, #276ef1);
}

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

.adminLoginCard .entryBadge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf5f1;
  color: var(--shell-accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.adminSecureDot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #667872;
  font-size: 0.76rem;
  font-weight: 900;
}

.adminSecureDot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #0f6b63;
  box-shadow: 0 0 0 4px rgba(15, 107, 99, 0.1);
}

.adminLoginCard h2 {
  margin: 18px 0 8px;
  color: #17231f;
  font-size: 1.72rem;
  line-height: 1.25;
}

.adminLoginMeta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e6eeea;
  color: #748580;
  font-size: 0.72rem;
  font-weight: 900;
}

#loginView .loginHint {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  line-height: 1.65;
}

#loginView .loginHint code {
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  background: #eef4f1;
  color: var(--shell-accent);
  font-size: 0.78rem;
}

#loginView .loginError {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  color: var(--shell-danger);
  font-size: 0.875rem;
}

#loginView .loginError:empty {
  display: none;
}

#loginView .btn-primary:disabled {
  opacity: 0.72;
  cursor: wait;
}

#loginView a:focus-visible,
#loginView button:focus-visible,
#loginView input:focus-visible {
  outline: 3px solid rgba(15, 107, 99, 0.24);
  outline-offset: 3px;
}

.adminHead {
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 8px;
  padding: 0 0 4px;
  background: transparent;
}

.adminTitleBlock {
  display: flex;
  align-items: center;
  flex: 0 0 var(--admin-sidebar-width);
  gap: 18px;
  width: var(--admin-sidebar-width);
  min-width: 0;
}

.adminHeadBrand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  color: #14231f;
  text-decoration: none;
}

.adminHeadBrand .landingMark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #0f6b63;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(15, 107, 99, 0.16);
}

.adminHeadBrand strong,
.adminHeadBrand em {
  display: block;
  line-height: 1.18;
  font-style: normal;
}

.adminHeadBrand strong {
  font-size: 0.92rem;
  font-weight: 900;
}

.adminHeadBrand em {
  margin-top: 2px;
  color: var(--shell-muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.adminHeadActions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.adminHomeBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--shell-text);
  text-decoration: none;
}

.adminShellLayout {
  display: grid;
  grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
}

.adminSidebar {
  position: sticky;
  top: 14px;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: calc(100dvh - 92px);
  padding: 14px;
  border: 1px solid rgba(196, 213, 206, 0.9);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(238, 246, 242, 0.78));
  box-shadow: 0 18px 44px rgba(39, 53, 48, 0.08);
}

.adminSidebarCard {
  padding: 6px 2px 14px;
  border-bottom: 1px solid rgba(196, 213, 206, 0.72);
}

.adminSidebarKicker,
.adminSidebarCard strong,
.adminSidebarCard p {
  display: block;
}

.adminSidebarKicker {
  margin-bottom: 12px;
  color: var(--shell-accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.adminSidebarCard strong {
  color: #17231f;
  font-size: 1.08rem;
  font-weight: 900;
}

.adminSidebarCard p {
  margin: 8px 0 0;
  color: var(--shell-muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.adminSideNav {
  display: grid;
  gap: 6px;
  padding: 2px 0 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.adminNavItem {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  width: 100%;
  padding: 0.72rem 0.78rem;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #263834;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.adminNavItem span {
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.25;
}

.adminNavItem em {
  color: #81908b;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.adminNavItem:hover,
.adminNavItem.active {
  border-color: rgba(15, 107, 99, 0.18);
  background: #e8f5f1;
}

.adminNavItem.active span {
  color: var(--shell-accent);
}

.adminContent {
  min-width: 0;
}

.adminPanel {
  min-width: 0;
}

.adminPanel[hidden] {
  display: none !important;
}

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

.adminOverviewGrid article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(214, 226, 220, 0.94);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 249, 0.9));
  box-shadow: 0 14px 34px rgba(39, 53, 48, 0.06);
}

.adminOverviewGrid span,
.adminOverviewGrid strong,
.adminOverviewGrid p {
  display: block;
}

.adminOverviewGrid span {
  color: #9aa8a3;
  font-size: 0.78rem;
  font-weight: 900;
}

.adminOverviewGrid strong {
  margin-top: 18px;
  color: #17231f;
  font-size: 1.02rem;
  font-weight: 900;
}

.adminOverviewGrid p {
  margin: 8px 0 0;
  color: var(--shell-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.adminMeta {
  margin: 0;
  max-width: 820px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  line-height: 1.7;
}

.adminHeroPanel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin: 0 0 16px;
  padding: 22px;
  border: 1px solid rgba(190, 209, 201, 0.86);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15, 107, 99, 0.92), rgba(13, 86, 80, 0.96)),
    #0f6b63;
  color: #fff;
  box-shadow: 0 20px 46px rgba(15, 86, 78, 0.18);
}

.adminHeroPanel p {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
  font-weight: 900;
}

.adminHeroPanel h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  line-height: 1.2;
}

.adminHeroStats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.adminHeroStats span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.adminConfigGrid {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(520px, 1.15fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 16px;
}

.adminConfigGrid > * {
  min-width: 0;
}

.jwtCard {
  min-width: 0;
  margin: 0;
  padding: 17px;
  border: 1px solid rgba(218, 229, 224, 0.95);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 251, 0.94));
  box-shadow: 0 12px 32px rgba(39, 53, 48, 0.07);
}

.instantNoticeCard,
.consultGoalsToolbar,
.consultGoalsDashboard article,
.consultGoalsSummary article {
  min-width: 0;
  border: 1px solid rgba(218, 229, 224, 0.95);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 251, 0.94));
  box-shadow: 0 12px 32px rgba(39, 53, 48, 0.07);
}

.instantNoticeCard {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 17px;
}

.instantNoticeHead,
.instantNoticeActions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.instantNoticeActions .jwtMeta {
  margin-right: auto;
}

.instantNoticeHead p {
  margin: 0 0 4px;
  color: #9aa8a3;
  font-size: 0.75rem;
  font-weight: 900;
}

.instantNoticeHead h3 {
  margin: 0;
  color: #17231f;
  font-size: 1.02rem;
}

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

.consultGoalsToolbar {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.instantNoticeGrid label,
.instantNoticeBody,
.consultGoalsToolbar label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #50615c;
  font-size: 0.78rem;
  font-weight: 900;
}

.instantNoticeGrid input,
.instantNoticeBody textarea,
.consultGoalsToolbar input,
.consultGoalsToolbar select {
  width: 100%;
  min-height: 38px;
  min-width: 0;
  padding: 0.52rem 0.62rem;
  border: 1px solid #dce6e1;
  border-radius: 10px;
  background: #fff;
  color: #17231f;
  font: inherit;
}

.instantNoticeBody textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.6;
}

.instantNoticeAck {
  align-self: end;
  display: flex !important;
  align-items: center;
  min-height: 38px;
  padding: 0.46rem 0.62rem;
  border: 1px solid #dce6e1;
  border-radius: 10px;
  background: #fbfdfc;
}

.instantNoticeAck input {
  width: auto;
  min-height: 0;
  padding: 0;
}

.consultGoalsToolbar {
  align-items: end;
  margin-bottom: 12px;
  padding: 14px;
}

.consultGoalsMeta {
  align-self: center;
  grid-column: span 2;
  margin: 0;
  line-height: 1.55;
}

.consultGoalsDashboard,
.consultGoalsSummary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.consultGoalsDashboard article,
.consultGoalsSummary article {
  display: grid;
  gap: 8px;
  padding: 13px;
}

.consultGoalsDashboard article {
  border-color: rgba(214, 163, 95, 0.44);
  background:
    linear-gradient(180deg, rgba(255, 250, 238, 0.98), rgba(255, 243, 214, 0.9));
  box-shadow: 0 14px 34px rgba(173, 119, 39, 0.1);
}

.consultGoalsSummary article {
  border-color: rgba(205, 211, 205, 0.88);
  background:
    linear-gradient(180deg, rgba(252, 252, 250, 0.98), rgba(244, 242, 236, 0.94));
  box-shadow: 0 12px 28px rgba(55, 63, 58, 0.06);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.consultGoalsSummary article:hover,
.consultGoalsSummary article:focus-visible {
  border-color: rgba(15, 107, 99, 0.38);
  box-shadow: 0 16px 34px rgba(15, 107, 99, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.consultGoalsDashboard span,
.consultGoalsDashboard strong,
.consultGoalsDashboard em,
.consultGoalsSummary span,
.consultGoalsSummary strong,
.consultGoalsSummary em {
  display: block;
}

.consultGoalsDashboard span,
.consultGoalsSummary span {
  color: #667872;
  font-size: 0.78rem;
  font-weight: 900;
}

.consultGoalsDashboard strong,
.consultGoalsSummary strong {
  margin-top: 6px;
  color: #0f6b63;
  font-size: 1.22rem;
}

.consultGoalsDashboard strong {
  color: #c83d2b;
  font-size: 1.62rem;
  font-weight: 950;
  line-height: 1.05;
}

.consultGoalsDashboard em,
.consultGoalsSummary em {
  margin-top: 4px;
  color: #73847e;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.consultGoalsSummaryHead {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
}

.consultGoalsSummary .consultGoalsSummaryName {
  overflow: hidden;
  color: #5f746e;
  font-size: 0.96rem;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consultGoalsSummary .consultGoalsSummaryCount {
  flex: 0 0 auto;
  margin-top: 0;
  color: #0f6b63;
  font-size: 1.28rem;
  font-weight: 950;
  line-height: 1;
}

.consultGoalsSummaryProgress {
  display: grid;
  gap: 4px;
}

.consultGoalsSummaryProgressLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.consultGoalsSummaryProgressLine span,
.consultGoalsSummaryProgressLine em {
  margin: 0;
  color: #6a7a74;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
}

.consultGoalsSummaryProgressLine span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consultGoalsSummaryProgressLine em {
  flex: 0 0 auto;
}

.consultGoalsSummaryBar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #ee9fab;
}

.consultGoalsSummaryBar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0f7b68;
}

.consultGoalsSummary article.is-missing {
  border-color: rgba(198, 190, 174, 0.88);
  background:
    linear-gradient(180deg, rgba(250, 248, 244, 0.98), rgba(242, 238, 230, 0.95));
}

.consultGoalsSummary article.is-selected {
  border-color: rgba(15, 107, 99, 0.58);
  background:
    linear-gradient(180deg, rgba(238, 248, 245, 0.98), rgba(246, 244, 238, 0.96));
  box-shadow:
    0 16px 38px rgba(15, 107, 99, 0.13),
    0 0 0 2px rgba(15, 107, 99, 0.12) inset;
}

.consultGoalsDetailPanel {
  display: grid;
  gap: 8px;
  margin: 4px 0 10px;
  padding: 13px 14px;
  border: 1px solid rgba(205, 211, 205, 0.88);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(252, 252, 250, 0.98), rgba(244, 242, 236, 0.94));
  box-shadow: 0 12px 28px rgba(55, 63, 58, 0.06);
}

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

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

.consultGoalsDetailHead span {
  margin-bottom: 3px;
  color: #9aa8a3;
  font-size: 0.72rem;
  font-weight: 950;
}

.consultGoalsDetailHead strong {
  color: #1e332e;
  font-size: 1rem;
  font-weight: 950;
}

.consultGoalsDetailMeta {
  margin: 0;
  color: #6f7f79;
  font-size: 0.78rem;
  font-weight: 850;
}

.consultGoalsMissingPanel {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(214, 163, 95, 0.38);
  border-radius: 14px;
  background: #fffaf0;
}

.consultGoalsMissingPanel strong {
  color: #7a4c18;
  font-size: 0.86rem;
}

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

.consultGoalsMissingCard {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(214, 163, 95, 0.34);
  border-radius: 12px;
  background: #fff;
}

.consultGoalsMissingCardHead,
.consultGoalsMiniProgressLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.consultGoalsMissingCardHead strong {
  overflow: hidden;
  color: #7a4c18;
  font-size: 0.84rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consultGoalsMissingCardHead em {
  flex: 0 0 auto;
  color: #a15d13;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
}

.consultGoalsMiniProgress {
  display: grid;
  gap: 4px;
}

.consultGoalsMiniProgressLine span,
.consultGoalsMiniProgressLine em {
  color: #7a6a56;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.consultGoalsMiniBar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1e2cc;
}

.consultGoalsMiniBar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f6b63, #d6a35f);
}

.consultGoalsMissingOk {
  margin: 0;
  color: #0f6b63;
  font-weight: 900;
}

.consultGoalsMissingOk--warn {
  color: #8a5518;
}

.consultGoalsSummaryEmpty,
.emptyCell {
  color: #81908b;
  text-align: center;
}

.consultGoalsTableWrap {
  max-height: min(520px, calc(100vh - 360px));
  border-radius: 16px;
}

.consultGoalsTable {
  table-layout: fixed;
  width: 100%;
  min-width: 1240px;
}

.consultGoalsTable th,
.consultGoalsTable td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consultGoalsTable th:nth-child(1),
.consultGoalsTable td.consultGoalsCol--consultant,
.consultGoalsTable td:nth-child(1) {
  width: 5.5rem;
}

.consultGoalsTable th:nth-child(2),
.consultGoalsTable td.consultGoalsCol--customer,
.consultGoalsTable td:nth-child(2) {
  width: 5.5rem;
}

.consultGoalsTable th:nth-child(3),
.consultGoalsTable td.consultGoalsCol--kind,
.consultGoalsTable td:nth-child(3) {
  width: 3.6rem;
  text-align: center;
}

.consultGoalsTable th:nth-child(4),
.consultGoalsTable td.consultGoalsCol--arrival,
.consultGoalsTable td:nth-child(4) {
  width: 8.5rem;
}

.consultGoalsTable th:nth-child(5),
.consultGoalsTable th:nth-child(7),
.consultGoalsTable td.consultGoalsCol--product,
.consultGoalsTable td:nth-child(5),
.consultGoalsTable td:nth-child(7) {
  width: 9.5rem;
  white-space: normal;
}

.consultGoalsTable th:nth-child(6),
.consultGoalsTable th:nth-child(8),
.consultGoalsTable td.consultGoalsCol--amount,
.consultGoalsTable td:nth-child(6),
.consultGoalsTable td:nth-child(8) {
  width: 5.5rem;
}

.consultGoalsTable th:nth-child(9),
.consultGoalsTable td.consultGoalsCol--status,
.consultGoalsTable td:nth-child(9) {
  width: 5rem;
}

.consultGoalsTable th:nth-child(10),
.consultGoalsTable td.consultGoalsCol--time,
.consultGoalsTable td:nth-child(10) {
  width: 7.5rem;
}

.consultGoalsTable th:nth-child(11),
.consultGoalsTable td.consultGoalsCol--created,
.consultGoalsTable td:nth-child(11) {
  width: 9.2rem;
}

.consultGoalsKind--new,
.consultGoalsKind--old {
  display: inline-block;
  min-width: 2.4rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.consultGoalsKind--new {
  background: #e8f6ef;
  color: #0d7a52;
}

.consultGoalsKind--old {
  background: #eef2f0;
  color: #5b6b66;
}

.consultGoalRow--missing td {
  color: #9a6b3b;
  background: #fffaf0;
}

.jwtHead {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.jwtHead h2 {
  margin: 0;
  color: #17231f;
  font-size: 1.02rem;
  line-height: 1.35;
}

.jwtStatus {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #eef2f0;
  color: var(--shell-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.jwtStatus.ok {
  background: #def4e9;
  color: #08734f;
}

.jwtStatus.bad {
  background: #fde8e6;
  color: var(--shell-danger);
}

.jwtRow {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 0.65rem;
  margin: 0.85rem 0 0.45rem;
}

.jwtRow input {
  min-width: 0;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--shell-text);
  font: inherit;
}

.jwtRow input:focus {
  outline: none;
  border-color: rgba(15, 107, 99, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 107, 99, 0.12);
}

.llmAdminCard {
  padding-bottom: 16px;
}

.adminPasswordCard {
  padding-bottom: 16px;
}

.adminPasswordGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 0.7rem;
  margin: 0.85rem 0 0.55rem;
}

.adminPasswordGrid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--shell-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.adminPasswordGrid input {
  min-width: 0;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--shell-text);
  font: inherit;
}

.adminPasswordGrid input:focus {
  outline: none;
  border-color: rgba(15, 107, 99, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 107, 99, 0.12);
}

.adminPasswordSync {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.2rem 0 0.65rem;
  color: var(--shell-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.adminPasswordSync input {
  accent-color: var(--shell-accent);
}

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

.weimobAdminCard {
  padding-bottom: 16px;
}

.weimobAdminGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 0.7rem;
  margin: 0.85rem 0 0.55rem;
}

.weimobAdminGrid label,
.weimobMapField {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--shell-muted);
  font-size: 0.78rem;
  font-weight: 800;
  min-width: 0;
}

.weimobAdminGrid input,
.weimobMapField textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--shell-text);
  font: inherit;
}

.weimobAdminGrid input {
  overflow: hidden;
  text-overflow: ellipsis;
}

.weimobMapField textarea {
  resize: vertical;
  line-height: 1.5;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.weimobAdminGrid input:focus,
.weimobMapField textarea:focus {
  outline: none;
  border-color: rgba(15, 107, 99, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 107, 99, 0.12);
}

.weimobAdminActions {
  grid-template-columns: minmax(240px, 1fr) auto auto;
  margin-top: 0.7rem;
}

.arrivalNotifyGrid {
  align-items: end;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

/* 开关里的勾选框不吃 .weimobAdminGrid input 的通栏输入框样式 */
.arrivalNotifyCard input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  border: none;
  background: none;
  flex: 0 0 auto;
}

.arrivalNotifySwitch {
  gap: 0.45rem;
  color: var(--shell-text);
}

.arrivalRobotHint {
  margin: 0.7rem 0 0.45rem;
  font-size: 0.78rem;
  line-height: 1.6;
}

.arrivalRobotRows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0 0 0.55rem;
}

.arrivalRobotRow {
  display: grid;
  grid-template-columns: minmax(118px, 0.55fr) minmax(0, 2.1fr) minmax(0, 1fr) auto auto;
  gap: 0.6rem;
  align-items: end;
  padding: 0.6rem 0.65rem;
  border: 1px solid var(--shell-border);
  border-radius: 10px;
  background: #fbfcfb;
}

.arrivalRobotStore {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  align-self: center;
}

.arrivalRobotStore strong {
  color: #17231f;
  font-size: 0.84rem;
  line-height: 1.35;
}

.arrivalRobotStore span {
  color: var(--shell-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.arrivalRobotRow label:not(.llmAdminSwitch) {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--shell-muted);
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 0;
}

.arrivalRobotRow input[type="text"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  background: #fff;
  color: var(--shell-text);
  font: inherit;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arrivalRobotRow input[type="text"]:focus {
  outline: none;
  border-color: rgba(15, 107, 99, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 107, 99, 0.12);
}

.arrivalRobotRow .llmAdminSwitch {
  min-height: 38px;
  padding: 0.45rem 0.6rem;
  gap: 0.35rem;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--shell-text);
}

.arrivalRobotTestBtn {
  min-height: 38px;
}

.arrivalNotifyGrid select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--shell-text);
  font: inherit;
}

.arrivalNotifyGrid select:focus {
  outline: none;
  border-color: rgba(15, 107, 99, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 107, 99, 0.12);
}

.arrivalNotifyToday {
  margin: 0.55rem 0;
}

/* 比 .llmAdminActions 晚定义的同权重规则会盖掉列模板，这里用复合选择器提权 */
.llmAdminActions.arrivalNotifyActions {
  grid-template-columns: minmax(200px, 1fr) auto auto;
  margin-top: 0.7rem;
}

.llmAdminGrid {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(180px, 0.85fr);
  align-items: end;
  gap: 0.7rem;
  margin: 0.85rem 0 0.55rem;
}

.llmAdminGrid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--shell-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.llmAdminGrid input[type="text"],
.llmAdminGrid input[type="url"],
.llmAdminGrid input[type="password"],
.llmAdminGrid select,
.llmCustomGrid input {
  min-width: 0;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--shell-text);
  font: inherit;
}

.llmAdminGrid select {
  cursor: pointer;
}

.llmAdminGrid input:focus,
.llmAdminGrid select:focus,
.llmCustomGrid input:focus {
  outline: none;
  border-color: rgba(15, 107, 99, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 107, 99, 0.12);
}

.llmAdminSwitch {
  min-height: 40px;
  justify-content: center;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  background: #fbfcfb;
  min-width: 0;
  white-space: nowrap;
}

.llmAdminSwitch input {
  margin: 0;
  accent-color: var(--shell-accent);
}

.llmAdminSwitch {
  flex-direction: row !important;
  align-items: center;
}

.llmPresetInfo {
  margin: 0.25rem 0 0.55rem;
  padding: 0.52rem 0.64rem;
  border: 1px solid rgba(15, 107, 99, 0.12);
  border-radius: 10px;
  background: #f4faf8;
  color: #61746f;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.llmThinkingInfo {
  margin: 0 0 0.55rem;
  padding: 0.52rem 0.64rem;
  border: 1px solid rgba(15, 107, 99, 0.14);
  border-radius: 10px;
  background: #edf8f4;
  color: #0f6b63;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.45;
}

.llmThinkingInfo.is-disabled {
  border-color: rgba(132, 146, 141, 0.18);
  background: #f4f6f5;
  color: #75827e;
}

.llmAdminSwitch:has(input:disabled) {
  opacity: 0.68;
  cursor: not-allowed;
}

.llmCustomGrid {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(180px, 0.85fr);
  gap: 0.7rem;
  margin: 0 0 0.55rem;
}

.llmCustomGrid[hidden] {
  display: none !important;
}

.llmCustomGrid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--shell-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.llmAdminActions {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem;
}

.jwtMeta {
  margin: 0;
  color: var(--shell-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.adminRosterPanel {
  padding: 16px;
  border: 1px solid rgba(217, 228, 223, 0.9);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(249, 251, 249, 0.72));
  box-shadow: 0 18px 44px rgba(40, 56, 50, 0.08);
}

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

.adminSectionHead p:first-child {
  margin: 0 0 3px;
  color: var(--shell-accent);
  font-size: 0.72rem;
  font-weight: 900;
}

.adminSectionHead h2 {
  margin: 0;
  color: #17231f;
  font-size: 1.08rem;
  line-height: 1.25;
}

.adminSectionHead--compact {
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 228, 223, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(40, 56, 50, 0.06);
  overflow: visible;
}

.briefingHeadActions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.briefingSaveStatus {
  min-width: 108px;
  color: #71807b;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: left;
}

.briefingSaveStatus--saving {
  color: #9a6824;
}

.briefingSaveStatus--success {
  color: #167764;
}

.briefingSaveStatus--error {
  color: #bb4f3d;
}

.adminSectionActions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.portfolioSettingsMenu {
  position: relative;
}

.portfolioSettingsMenu summary {
  list-style: none;
  cursor: pointer;
}

.portfolioSettingsMenu summary::-webkit-details-marker {
  display: none;
}

.portfolioSettingsPopover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 12px;
  width: min(760px, calc(100vw - 40px));
  padding: 14px;
  border: 1px solid rgba(177, 196, 190, 0.92);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(32, 48, 43, 0.18);
}

.portfolioSettingsPopover section {
  display: grid;
  gap: 8px;
}

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

.portfolioSettingsHead h3 {
  margin: 0;
  color: #172622;
  font-size: 0.92rem;
  font-weight: 950;
}

.portfolioSettingsHead p {
  margin: 0;
  color: #778782;
  font-size: 0.74rem;
  font-weight: 800;
}

.adminHeadActions .shellBtn,
.briefingHeadActions .shellBtn {
  min-height: 34px;
  padding: 0.28rem 0.66rem;
}

.briefingLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.briefingSettingsGrid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(180px, auto);
  gap: 8px;
  margin-bottom: 8px;
}

.briefingSegment {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 11px 10px 7px;
  border: 1px solid var(--shell-border);
  border-radius: 10px;
  background: #fbfcfb;
}

.briefingSegment legend {
  position: absolute;
  top: -9px;
  left: 12px;
  padding: 0 4px;
  background: #fbfcfb;
  color: var(--shell-muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.briefingSegment label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0.18rem 0.56rem;
  border: 1px solid #d7e6e1;
  border-radius: 999px;
  color: #31423d;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.briefingSegment label:has(input:checked) {
  border-color: rgba(15, 107, 99, 0.42);
  background: #e7f6f1;
  color: var(--shell-accent);
}

.briefingSegment input {
  margin: 0;
  accent-color: var(--shell-accent);
}

.briefingDelayField {
  display: grid;
  grid-template-columns: auto 72px auto;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 7px 10px;
  border: 1px solid var(--shell-border);
  border-radius: 10px;
  background: #fbfcfb;
  color: var(--shell-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.briefingDelayField input {
  width: 64px;
  min-height: 32px;
  padding: 0.36rem 0.48rem;
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  background: #fff;
  color: var(--shell-text);
  font: inherit;
  text-align: center;
}

.briefingDelayField em {
  font-style: normal;
  white-space: nowrap;
}

.briefingEditor {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(217, 228, 223, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(40, 56, 50, 0.08);
}

.briefingSwitch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 0;
  color: #21342f;
  font-weight: 900;
}

.briefingSwitch input {
  accent-color: var(--shell-accent);
}

.briefingSwitch--toolbar {
  position: relative;
  min-height: 36px;
  padding: 0 11px 0 44px;
  border: 1px solid rgba(15, 107, 99, 0.2);
  border-radius: 999px;
  background: #f7fbf9;
  color: #50615c;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
}

.briefingSwitch--toolbar input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.briefingSwitch--toolbar::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 26px;
  height: 16px;
  border-radius: 999px;
  background: #b8c8c1;
  transform: translateY(-50%);
  transition: background 0.18s ease;
}

.briefingSwitch--toolbar::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(20, 35, 31, 0.18);
  transform: translateY(-50%);
  transition: left 0.18s ease;
}

.briefingSwitch--toolbar:has(input:checked) {
  border-color: rgba(15, 107, 99, 0.34);
  background: #e6f4f0;
  color: var(--shell-accent);
}

.briefingSwitch--toolbar:has(input:checked)::before {
  background: var(--shell-accent);
}

.briefingSwitch--toolbar:has(input:checked)::after {
  left: 22px;
}

.briefingSaveBtn {
  min-width: 86px;
  padding-inline: 1rem;
}

.briefingFormGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
  gap: 8px;
}

.briefingFormGrid label,
.briefingTextarea {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  color: var(--shell-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.briefingFormGrid input,
.briefingMetricsHead input,
.briefingTextarea textarea {
  min-width: 0;
  min-height: 34px;
  padding: 0.36rem 0.58rem;
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--shell-text);
  font: inherit;
}

.briefingTextarea {
  margin-top: 12px;
}

.briefingTextarea textarea {
  resize: vertical;
  line-height: 1.65;
}

.briefingFormGrid input:focus,
.briefingMetricsHead input:focus,
.briefingTextarea textarea:focus {
  outline: none;
  border-color: rgba(15, 107, 99, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 107, 99, 0.12);
}

.briefingPriorityEditor {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.briefingSubhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--shell-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

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

.briefingPriorityRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 6px;
}

.briefingPriorityRow textarea {
  min-width: 0;
  min-height: 42px;
  padding: 0.36rem 0.58rem;
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--shell-text);
  font: inherit;
  line-height: 1.42;
  resize: vertical;
}

.briefingPriorityRow textarea:focus {
  outline: none;
  border-color: rgba(15, 107, 99, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 107, 99, 0.12);
}

.briefingPriorityAck {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0.28rem 0.58rem;
  border: 1px solid rgba(15, 107, 99, 0.16);
  border-radius: 8px;
  background: #f7fbf9;
  color: #52645f;
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.briefingPriorityAck input {
  margin: 0;
  accent-color: var(--shell-accent);
}

.briefingPriorityAck:has(input:checked) {
  border-color: rgba(15, 107, 99, 0.4);
  background: #e7f6f1;
  color: var(--shell-accent);
}

.briefingPriorityRemove {
  min-height: 32px;
  padding: 0.28rem 0.62rem;
  border: 1px solid #ead3d0;
  border-radius: 8px;
  background: #fff7f6;
  color: var(--shell-danger);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.briefingHelp {
  margin: 0;
  font-size: 0.72rem;
}

.briefingEncouragementInfo {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 159, 67, 0.26);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff8df, #fff1e8);
}

.briefingEncouragementInfo span {
  color: #a46112;
  font-size: 0.76rem;
  font-weight: 900;
}

.briefingEncouragementInfo p {
  margin: 0;
  color: #6a4b18;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.42;
}

.briefingEncouragementHead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.42fr);
  align-items: end;
  gap: 12px;
}

.briefingEncouragementHead > div {
  display: grid;
  gap: 3px;
}

.briefingEncouragementHead > div > p {
  color: #8c6a31;
  font-size: 0.72rem;
  font-weight: 700;
}

.briefingEncouragementHead > label {
  display: grid;
  gap: 4px;
}

.briefingEncouragementHead select {
  min-height: 34px;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(164, 97, 18, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: #5c431d;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
}

.briefingEncouragementSample {
  padding: 8px 10px;
  border: 1px dashed rgba(164, 97, 18, 0.26);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.58);
}

.assistanceRuleEditor {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.assistanceMinutesEditor {
  margin-top: 3px;
  padding: 8px 10px;
  border: 1px solid rgba(164, 97, 18, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.54);
}

.assistanceMinutesEditor summary {
  color: #75501c;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.assistanceMinutesEditor > p {
  margin-top: 6px;
  color: #8c6a31;
  font-size: 0.72rem;
  font-weight: 700;
}

.assistanceMinutesGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.assistanceMinutesGrid label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px auto;
  align-items: center;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid rgba(164, 97, 18, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.82);
}

.assistanceMinutesGrid input {
  width: 54px;
  min-height: 30px;
  padding: 0.25rem 0.35rem;
  border: 1px solid rgba(164, 97, 18, 0.24);
  border-radius: 7px;
  background: #fff;
  color: #5c431d;
  font: inherit;
  text-align: center;
}

.assistanceMinutesGrid em {
  color: #9b7842;
  font-size: 0.66rem;
  font-style: normal;
  white-space: nowrap;
}

.usageAssistanceCard {
  margin-top: 14px;
}

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

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

.briefingMetricsHead strong {
  color: #17231f;
  font-size: 0.95rem;
}

.metricRuleEditor {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding: 9px 10px;
  border: 1px solid rgba(196, 213, 206, 0.92);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(232, 245, 241, 0.78), rgba(255, 255, 255, 0.96));
}

.metricRoleTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.metricRoleTab {
  min-height: 30px;
  padding: 0.22rem 0.7rem;
  border: 1px solid rgba(205, 221, 215, 0.96);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #31423d;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.metricRoleTab:hover {
  border-color: rgba(15, 107, 99, 0.32);
  color: var(--shell-accent);
}

.metricRoleTab.active {
  border-color: rgba(15, 107, 99, 0.42);
  background: #0f6b63;
  color: var(--shell-accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 107, 99, 0.16);
}

.metricRulePanel {
  display: grid;
  gap: 9px;
  padding: 9px;
  border: 1px solid rgba(220, 232, 228, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
}

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

.metricRulePanelHead strong {
  color: #17231f;
  font-size: 0.92rem;
}

.metricRulePanelHead span {
  color: var(--shell-muted);
  font-size: 0.76rem;
  font-weight: 900;
}

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

#assistanceMetricOptionGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metricOption {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 62px;
  padding: 8px 9px;
  border: 1px solid rgba(220, 232, 228, 0.96);
  border-radius: 12px;
  background: #fbfdfc;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.metricOption:hover {
  border-color: rgba(15, 107, 99, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(39, 53, 48, 0.07);
}

.metricOption:has(input:checked) {
  border-color: rgba(15, 107, 99, 0.46);
  background:
    linear-gradient(135deg, rgba(232, 249, 246, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 12px 26px rgba(15, 107, 99, 0.1);
}

.metricOption input {
  margin-top: 2px;
  accent-color: var(--shell-accent);
}

.metricOption span,
.metricOption strong,
.metricOption em {
  display: block;
}

.metricOption strong {
  color: #1f332e;
  font-size: 0.88rem;
  line-height: 1.26;
}

.metricOption em {
  margin-top: 3px;
  color: var(--shell-muted);
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.32;
}

.adminBriefModal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(48px, 8vh, 72px) 24px 24px;
}

.adminBriefModal[hidden] {
  display: none !important;
}

.adminBriefBackdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(10, 28, 43, 0.34);
  backdrop-filter: blur(10px);
}

.adminBriefBackdrop:disabled {
  cursor: wait;
}

.adminBriefDialog {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - clamp(72px, 11vh, 108px));
  overflow: auto;
  padding: 22px 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 199, 87, 0.52), transparent 31%),
    radial-gradient(circle at 10% 0%, rgba(28, 184, 231, 0.36), transparent 28%),
    linear-gradient(145deg, #fff7d7 0%, #ffffff 40%, #e9fbff 100%);
  color: #12231f;
  box-shadow: 0 34px 80px rgba(15, 77, 105, 0.26);
}

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

.adminBriefTop span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.22rem 0.68rem;
  border: 1px solid rgba(8, 132, 122, 0.18);
  border-radius: 999px;
  background: #e1f8f5;
  color: #08746b;
  font-size: 0.78rem;
  font-weight: 900;
}

.adminBriefClose {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(8, 132, 122, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: #17302b;
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
}

.adminBriefHello {
  margin: 12px 0 4px;
  color: #0a7a72;
  font-size: 0.9rem;
  font-weight: 800;
}

.adminBriefDialog h2 {
  margin: 0;
  max-width: 13em;
  color: #10201d;
  font-size: clamp(1.72rem, 3.3vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.adminBriefList {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.adminBriefList li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px 10px 40px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
  color: #1f332e;
  font-size: 0.94rem;
  line-height: 1.55;
}

.adminBriefList li.needs-ack {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-right: 10px;
}

.adminBriefPriorityText {
  min-width: 0;
}

.adminBriefAckBtn {
  min-height: 28px;
  padding: 0.24rem 0.68rem;
  border: 1px solid rgba(255, 122, 69, 0.38);
  border-radius: 999px;
  background: #fff7ed;
  color: #c75625;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.adminBriefAckBtn:hover {
  border-color: rgba(255, 122, 69, 0.72);
  background: #fff0df;
}

.adminBriefAckBtn.done,
.adminBriefAckBtn:disabled {
  border-color: rgba(15, 107, 99, 0.24);
  background: #e8f5f1;
  color: var(--shell-accent);
  cursor: default;
}

.adminBriefList li::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 16px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ff9f43;
  box-shadow: 0 0 0 5px rgba(255, 159, 67, 0.18);
}

.adminBriefMetrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.adminBriefMetrics article {
  min-width: 0;
  min-height: 104px;
  padding: 13px;
  border: 1px solid rgba(12, 131, 122, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: #12231f;
}

.adminBriefMetrics span,
.adminBriefMetrics strong,
.adminBriefMetrics em {
  display: block;
}

.adminBriefMetrics span {
  color: #657b75;
  font-size: 0.72rem;
  font-weight: 900;
}

.adminBriefMetrics strong {
  margin-top: 8px;
  color: #f0643c;
  font-size: 1.42rem;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.adminBriefMetrics em {
  margin-top: 7px;
  color: #667973;
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.45;
}

.adminBriefEncouragement {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 13px;
  background: linear-gradient(135deg, #fff0c2, #ffe1c9);
  color: #533a08;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.65;
}

.adminBriefActions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.adminBriefActions .shellBtn {
  min-width: 132px;
  border-color: #ff7a45;
  background: #ff7a45;
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 122, 69, 0.28);
}

.adminBriefClose:disabled,
.adminBriefActions .shellBtn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  box-shadow: none;
}

.adminBriefModal.is-close-locked .adminBriefClose,
.adminBriefModal.is-close-locked .adminBriefActions .shellBtn {
  border-color: rgba(102, 121, 115, 0.24);
  background: #e9efed;
  color: #6c7b76;
}

.rosterToolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 160px auto;
  align-items: end;
  gap: 0.75rem;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid rgba(220, 230, 225, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.rosterSearch,
.rosterFilter {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--shell-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.rosterSearch input,
.rosterFilter select {
  min-height: 40px;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--shell-text);
  font: inherit;
}

.rosterSearch input:focus,
.rosterFilter select:focus {
  outline: none;
  border-color: rgba(15, 107, 99, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 107, 99, 0.12);
}

.rosterCount {
  justify-self: end;
  margin: 0;
  line-height: 40px;
  white-space: nowrap;
}

.assignmentRules {
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid #d8e5df;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(15, 107, 99, 0.05), rgba(214, 163, 95, 0.1)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 36px rgba(18, 45, 38, 0.07);
}

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

.assignmentRulesHead h2 {
  margin: 0 0 4px;
  color: #17231f;
  font-size: 1rem;
  line-height: 1.35;
}

.assignmentRulesHead p {
  margin: 0;
  line-height: 1.6;
}

.shellBtn--primary {
  border-color: rgba(15, 107, 99, 0.72);
  background: #0f6b63;
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 107, 99, 0.18);
}

.shellBtn--primary:hover {
  background: #0b5e57;
}

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

.roleRuleRow {
  display: grid;
  grid-template-columns: minmax(92px, 112px) minmax(0, 1fr);
  grid-template-areas:
    "role checks"
    "role primary";
  gap: 8px 12px;
  align-items: center;
  min-height: 106px;
  padding: 12px;
  border: 1px solid rgba(189, 210, 202, 0.85);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
}

.roleRuleRole span,
.roleRuleRole strong,
.roleRuleRole p {
  display: block;
}

.roleRuleRole {
  grid-area: role;
}

.roleRuleRole span {
  color: #78908a;
  font-size: 0.72rem;
  font-weight: 900;
}

.roleRuleRole strong {
  margin-top: 2px;
  color: #0f2a25;
  font-size: 1rem;
  font-weight: 900;
}

.roleRuleRole p {
  display: none;
}

.ruleWorkbenchChecks {
  grid-area: checks;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ruleWorkbenchCheck {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0.25rem 0.65rem;
  border: 1px solid #d7e6e1;
  border-radius: 999px;
  background: #fbfdfc;
  color: #31423d;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.ruleWorkbenchCheck:has(input:checked) {
  border-color: rgba(15, 107, 99, 0.42);
  background: #e7f6f1;
  color: var(--shell-accent);
}

.ruleWorkbenchCheck input {
  margin: 0;
  accent-color: var(--shell-accent);
}

.ruleDefaultSelect {
  grid-area: primary;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--shell-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.ruleDefaultSelect select {
  width: min(170px, 100%);
  min-height: 36px;
  padding: 0.42rem 0.6rem;
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--shell-text);
  font: inherit;
}

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

.bulkAssignMsg {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

.tableWrap {
  min-height: 20rem;
  max-height: calc(100vh - 420px);
  overflow: auto;
  border: 1px solid #dce6e1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.rosterTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.rosterTable th,
.rosterTable td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #e8eeeb;
  text-align: left;
  vertical-align: middle;
}

.rosterTable th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef5f2;
  color: #31423d;
  font-weight: 800;
}

.rosterTable tbody tr:hover {
  background: #f8fbf9;
}

.rosterTable select {
  min-height: 32px;
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--shell-border);
  border-radius: 7px;
  background: #fff;
  color: var(--shell-text);
  font: inherit;
}

.workbenchCell {
  min-width: 230px;
}

.currentWorkbench,
.workbenchSummary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.opsCell {
  min-width: 230px;
}

.workbenchPicker {
  display: grid;
  gap: 8px;
}

.workbenchPicker[hidden] {
  display: none;
}

.workbenchPicker--inline {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #dce6e1;
  border-radius: 12px;
  background: #fbfdfc;
}

.workbenchChecks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.workbenchCheck {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0.2rem 0.55rem;
  border: 1px solid #d7e6e1;
  border-radius: 999px;
  background: #f7fbf9;
  color: #31423d;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.workbenchCheck:has(input:checked) {
  border-color: rgba(15, 107, 99, 0.42);
  background: #e7f6f1;
  color: var(--shell-accent);
}

.workbenchCheck input {
  margin: 0;
  accent-color: var(--shell-accent);
}

.workbenchDefaultRow {
  display: grid;
  grid-template-columns: auto minmax(110px, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--shell-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.workbenchDefaultRow select {
  width: 100%;
}

.workbenchSaveBtn {
  justify-self: start;
  min-height: 30px;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(15, 107, 99, 0.38);
  border-radius: 8px;
  background: #fff;
  color: var(--shell-accent);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.workbenchSaveBtn:hover {
  background: #e8f7f4;
}

.workbenchSaveBtn:disabled {
  opacity: 0.62;
  cursor: wait;
}

.tag {
  display: inline-block;
  margin: 0.1rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #edf4f1;
  color: var(--shell-accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.tag--workbench {
  background: #f6faf8;
  color: #31423d;
}

.tag--primary {
  background: #e7f6f1;
  color: var(--shell-accent);
}

.btnLink {
  margin-left: 0.5rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--shell-blue);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.btnLink:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  #assistanceMetricOptionGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .adminSidebar {
    position: static;
    min-height: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .adminSidebarCard {
    display: none;
  }

  .adminSideNav {
    display: flex;
    overflow-x: auto;
    padding: 6px;
    border: 1px solid rgba(212, 225, 219, 0.92);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 34px rgba(39, 53, 48, 0.06);
  }

  .adminNavItem {
    flex: 0 0 150px;
  }

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

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

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

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

  .adminOverviewGrid,
  .briefingLayout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .adminWrap {
    width: min(100% - 28px, 1440px);
  }

  .adminHead {
    align-items: flex-start;
    flex-direction: column;
  }

  .adminTitleBlock {
    align-items: flex-start;
    flex: 0 1 auto;
    flex-direction: column;
    gap: 10px;
    width: auto;
  }

  .adminHeadBrand {
    min-width: 0;
  }

  .adminSectionHead {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .adminSectionActions {
    justify-self: stretch;
  }

  .adminSectionActions .shellBtn {
    flex: 1;
  }

  .jwtRow,
  .adminPasswordGrid,
  .adminPasswordActions,
  .weimobAdminGrid,
  .weimobAdminActions,
  .arrivalNotifyGrid,
  .arrivalNotifyActions,
  .arrivalRobotRow,
  .llmAdminGrid,
  .llmCustomGrid,
  .llmAdminActions,
  .rosterToolbar,
  .instantNoticeGrid,
  .consultGoalsToolbar,
  .briefingSettingsGrid,
  .briefingFormGrid,
  .briefingMetricsHead {
    grid-template-columns: 1fr;
  }

  .consultGoalsMeta {
    grid-column: auto;
  }

  .instantNoticeHead,
  .instantNoticeActions {
    align-items: stretch;
    flex-direction: column;
  }

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

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

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

  .metricRulePanelHead {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

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

  .assignmentRulesHead {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .roleRuleRow {
    grid-template-columns: minmax(64px, 68px) minmax(0, 1fr);
    grid-template-areas:
      "role checks"
      "role primary";
    align-items: stretch;
  }

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

  .llmAdminActions {
    align-items: stretch;
  }

  .rosterCount {
    justify-self: start;
    line-height: 1.4;
  }

  .tableWrap {
    max-height: min(72vh, 620px);
  }

}

@media (max-width: 900px) {
  .adminBriefMetrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #loginView.adminWrap {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    align-items: start;
    gap: 24px;
    padding: 22px 18px 32px;
    overflow: auto;
  }

  #loginView.adminWrap::before,
  #loginView.adminWrap::after {
    display: none;
  }

  .adminLoginTop {
    align-items: flex-start;
  }

  .adminConsolePreview {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 24px;
  }

  .adminConsolePreview article {
    min-height: 78px;
  }

  .adminConsolePreview strong {
    margin-top: 10px;
  }

  .adminLoginIntro h1 {
    font-size: 2.7rem;
  }

  .adminLoginKicker {
    margin-top: 34px;
  }
}

@media (max-width: 560px) {
  #assistanceMetricOptionGrid {
    grid-template-columns: 1fr;
  }

  .adminWrap {
    width: min(100% - 20px, 1440px);
    padding-top: 12px;
  }

  .adminLoginBrand em,
  .adminHeadBrand em {
    display: none;
  }

  .adminHomeLink {
    min-height: 32px;
    padding-inline: 0.62rem;
  }

  .adminLoginIntro > p {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .adminLoginCard {
    padding: 22px;
  }

  .adminHeroPanel {
    padding: 18px;
  }

  .adminHeroPanel h2 {
    font-size: 1.35rem;
  }

  .adminRosterPanel {
    padding: 10px;
  }

  .adminHeadActions {
    flex-wrap: wrap;
  }

  .adminNavItem {
    flex-basis: 126px;
    padding: 0.62rem 0.68rem;
  }

  .adminNavItem em {
    display: none;
  }

  .adminOverviewGrid {
    gap: 8px;
  }

  .adminOverviewGrid article,
  .briefingEditor {
    padding: 12px;
  }

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

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

  .consultGoalsMeta {
    grid-column: auto;
  }

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

  .assignmentRules {
    padding: 12px;
  }

.adminLoginIntro h1 {
  font-size: 2.35rem;
  }
}

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

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

.campaignFinderOverview {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.campaignFinderOverview article {
  min-height: 72px !important;
  padding: 10px 12px !important;
}

.campaignFinderFreshness {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.84rem;
  line-height: 1.35;
  border: 1px solid rgba(194, 210, 205, 0.88);
  background: rgba(244, 250, 247, 0.95);
}

.campaignFinderFreshness > div {
  flex: 1 1 auto;
  min-width: 0;
}

.campaignFinderPrimaryBuiltAt {
  flex: 1 1 100%;
  font-size: 0.78rem;
  opacity: 0.88;
}

.campaignFinderCoverageNote {
  display: inline;
  margin-top: 0;
  color: inherit;
  opacity: 0.92;
}

.campaignFinderFreshness[data-state="stale"] {
  border-color: rgba(214, 184, 126, 0.8);
  background: rgba(255, 248, 232, 0.95);
  color: #5f3f13;
}

.campaignFinderFreshness[data-state="ok"] {
  border-color: rgba(120, 180, 150, 0.7);
  color: #1f4d3a;
}

.campaignFinderCampaignBar {
  display: grid;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(167, 196, 184, 0.9);
  background: linear-gradient(180deg, rgba(241, 248, 244, 0.98), rgba(255, 255, 255, 0.96));
}

.campaignFinderCampaignMain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.campaignFinderCampaignSelect {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #2f4a3f;
}

.campaignFinderCampaignSelect select {
  min-width: 220px;
  max-width: min(420px, 70vw);
  border: 1px solid rgba(170, 194, 184, 0.95);
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
}

.campaignFinderCampaignExclude {
  margin-left: auto;
}

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

.campaignFinderCampaignCreateRow[hidden] {
  display: none !important;
}

.campaignFinderCampaignCreateRow input[type="text"] {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 420px;
  border: 1px solid rgba(170, 194, 184, 0.95);
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
  font-size: 0.88rem;
}

.campaignFinderCampaignMeta {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #4a655a;
}

.campaignFinderBatchList {
  display: grid;
  gap: 6px;
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px dashed rgba(180, 200, 190, 0.9);
}

.campaignFinderBatchList strong {
  font-size: 0.82rem;
  color: #2f4a3f;
}

.campaignFinderBatchItem {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #51685e;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(210, 224, 216, 0.95);
  display: grid;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.campaignFinderBatchItem:hover,
.campaignFinderBatchItem:focus-visible {
  border-color: rgba(90, 150, 120, 0.75);
  box-shadow: 0 6px 16px rgba(32, 48, 43, 0.08);
  outline: none;
}

.campaignFinderBatchItem.is-active {
  border-color: rgba(70, 140, 180, 0.85);
  background: rgba(236, 246, 252, 0.95);
}

.campaignFinderBatchItemHead {
  color: #3f5a4f;
  font-weight: 650;
}

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

.campaignFinderBatchChipGroup {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  max-width: 100%;
}

.campaignFinderBatchChipGroup > em {
  color: #7a9086;
  font-style: normal;
  font-size: 0.72rem;
  margin-right: 2px;
  white-space: nowrap;
}

.campaignFinderBatchChip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(186, 206, 198, 0.95);
  background: rgba(236, 246, 241, 0.95);
  color: #2f4f42;
  font-size: 0.74rem;
  line-height: 1.35;
  white-space: nowrap;
}

.campaignFinderBatchChip--scope {
  border-color: rgba(120, 170, 210, 0.95);
  background: rgba(232, 243, 252, 0.98);
  color: #24557a;
}

.campaignFinderBatchChip--tag {
  border-color: rgba(140, 190, 150, 0.95);
  background: rgba(234, 247, 238, 0.98);
  color: #2a5d3d;
}

.campaignFinderBatchChip--mode {
  border-color: rgba(190, 180, 210, 0.95);
  background: rgba(244, 240, 250, 0.98);
  color: #5a4a72;
}

.campaignFinderBatchChip--muted {
  background: rgba(244, 247, 245, 0.95);
  color: #7a9086;
  border-style: dashed;
}

.campaignFinderBatchItem em {
  color: #7a9086;
  font-style: normal;
}

.campaignFinderCheckList label.campaignFinderTagUsed {
  opacity: 0.55;
  color: #6a7f75;
  background: rgba(210, 220, 214, 0.35);
  border-radius: 999px;
  padding: 2px 8px 2px 4px;
}

.campaignFinderCheckList label.campaignFinderTagUsed input {
  opacity: 0.85;
}

.campaignFinderCheckList label.campaignFinderTagUsed::after {
  content: "已用";
  margin-left: 4px;
  font-size: 0.72rem;
  color: #7d9087;
}

.campaignFinderActionBar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 4px 0 10px;
  padding: 12px 14px;
  border: 1px solid rgba(194, 210, 205, 0.88);
  border-radius: 10px;
  background: rgba(244, 250, 247, 0.98);
  box-shadow: 0 8px 20px rgba(32, 48, 43, 0.05);
  position: sticky;
  top: 8px;
  z-index: 6;
  backdrop-filter: blur(8px);
}

.campaignFinderExportHistoryPanel {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(194, 210, 205, 0.88);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(32, 48, 43, 0.05);
}

.campaignFinderExportHistoryHead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 8px;
}

.campaignFinderExportHistoryHint {
  display: block;
  margin-top: 4px;
  color: #5a7168;
  font-size: 0.8rem;
}

.campaignFinderExportHistoryFilter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #456257;
}

.campaignFinderExportHistoryFilter select {
  min-width: 10rem;
}

.campaignFinderExportHistoryMeta {
  margin: 0 0 8px;
  color: #51685e;
  font-size: 0.84rem;
}

.campaignFinderExportHistoryTableWrap {
  max-height: 22rem;
  overflow: auto;
}

.campaignFinderExportHistoryTable td,
.campaignFinderExportHistoryTable th {
  vertical-align: top;
  font-size: 0.82rem;
}

.campaignFinderExportHistorySummary {
  max-width: 18rem;
  color: #5a7168;
  line-height: 1.35;
  word-break: break-word;
}

.campaignFinderExportHistoryStatus {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
}

.campaignFinderExportHistoryStatus[data-status="done"] {
  background: rgba(88, 168, 120, 0.18);
  color: #1f6b45;
}

.campaignFinderExportHistoryStatus[data-status="error"] {
  background: rgba(196, 84, 84, 0.14);
  color: #8a2f2f;
}

.campaignFinderExportHistoryStatus[data-status="running"],
.campaignFinderExportHistoryStatus[data-status="pending"] {
  background: rgba(88, 132, 196, 0.16);
  color: #24548a;
}

.campaignFinderActionHint {
  margin: 0;
  color: #51685e;
  font-size: 0.84rem;
  line-height: 1.4;
}

.campaignFinderFilters,
.campaignFinderExportBox,
.campaignFinderPreview {
  border: 1px solid rgba(194, 210, 205, 0.88);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(32, 48, 43, 0.05);
  padding: 12px 14px;
}

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

.campaignFinderFilterBlock {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(210, 222, 217, 0.95);
  border-radius: 10px;
  background: rgba(248, 252, 250, 0.9);
}

.campaignFinderFilterBlockTitle {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3f5a4f;
}

.campaignFinderLead {
  margin: 6px 0 0;
  max-width: 52rem;
  color: #5a7168;
  font-size: 0.86rem;
  line-height: 1.45;
}

.campaignFinderMatchNote {
  margin: 0;
  color: #5a7168;
  font-size: 0.82rem;
  line-height: 1.4;
}

.campaignFinderMatchModeBar {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(226, 236, 231, 0.95);
  width: fit-content;
}

.campaignFinderMatchModeBtn {
  border: 0;
  background: transparent;
  color: #456257;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
}

.campaignFinderMatchModeBtn.active {
  background: #fff;
  color: #1f3f34;
  box-shadow: 0 1px 4px rgba(32, 48, 43, 0.12);
}

.campaignFinderMatchPanel {
  display: grid;
  gap: 0;
}

.campaignFinderAdvanced {
  margin-top: 4px;
  border: 1px dashed rgba(190, 205, 198, 0.95);
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.55);
}

.campaignFinderAdvanced > summary {
  cursor: pointer;
  color: #5a7168;
  font-size: 0.82rem;
  font-weight: 650;
  list-style: none;
}

.campaignFinderAdvanced > summary::-webkit-details-marker {
  display: none;
}

.campaignFinderAdvanced[open] > summary {
  margin-bottom: 6px;
  color: #314840;
}

.campaignFinderFieldset {
  border: 0;
  margin: 0;
  padding: 8px 0 0;
  display: grid;
  gap: 6px;
  border-top: 1px dashed rgba(190, 205, 198, 0.95);
}

.campaignFinderFilterBlock > .campaignFinderFieldset:first-of-type {
  border-top: 0;
  padding-top: 0;
}

#campaignFinderTagGroups {
  display: grid;
  gap: 0;
}

#campaignFinderTagGroups > .campaignFinderFieldset:first-child {
  border-top: 1px dashed rgba(190, 205, 198, 0.95);
  padding-top: 8px;
}

.campaignFinderFieldHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}

.campaignFinderFieldHead strong {
  color: #314840;
  font-weight: 700;
  font-size: 0.86rem;
}

.campaignFinderFieldHead small {
  margin-left: 6px;
  font-weight: 500;
  color: #8a9a93;
}

.campaignFinderFieldset legend {
  float: none;
  width: auto;
  color: #314840;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0;
}

.campaignFinderFieldset legend small {
  margin-left: 6px;
  font-weight: 500;
  color: #8a9a93;
}

.campaignFinderFieldActions {
  display: inline-flex;
  gap: 4px;
  flex-shrink: 0;
}

.campaignFinderFieldActions--inline {
  margin-bottom: 4px;
}

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

.campaignFinderMiniBtn {
  appearance: none;
  border: 1px solid rgba(170, 188, 182, 0.95);
  background: #fff;
  color: #3f5a4f;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  line-height: 1.4;
  cursor: pointer;
}

.campaignFinderMiniBtn:hover {
  background: rgba(236, 245, 241, 0.95);
}

.campaignFinderCheckList {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.campaignFinderCheckList label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(205, 218, 212, 0.95);
  background: #fff;
}

.campaignFinderCheckList label.campaignFinderTagTip {
  cursor: help;
  border-style: dashed;
}

.campaignFinderCheckList label.campaignFinderTagTip:hover {
  border-color: rgba(90, 140, 120, 0.75);
  background: rgba(244, 250, 247, 0.98);
}

.campaignFinderCheckList label:has(input:checked) {
  border-color: rgba(90, 150, 120, 0.85);
  background: rgba(232, 245, 238, 0.95);
}

.campaignFinderCheckList em {
  color: #8a9a93;
  font-style: normal;
  font-size: 0.74rem;
}

.campaignFinderCheckList--wrap {
  max-height: 128px;
  overflow: auto;
  padding: 4px;
  border: 1px solid rgba(210, 222, 217, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  align-content: start;
}

.campaignFinderProductMatchBody {
  display: grid;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(190, 210, 202, 0.95);
  border-radius: 8px;
  background: #fff;
}

.campaignFinderProductMatchRow {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.campaignFinderProductMatchLabel {
  padding-top: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #3f5a4f;
}

.campaignFinderScoreRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-top: 4px;
}

.campaignFinderScoreRow label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #3f5a4f;
  font-weight: 600;
}

.campaignFinderScoreRow input {
  width: 4.5rem;
  min-height: 28px;
  border: 1px solid rgba(170, 188, 182, 0.9);
  border-radius: 6px;
  padding: 2px 6px;
  background: #fff;
}

.campaignFinderScorePresets {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.campaignFinderScoreHint {
  margin: 0;
  flex: 1 1 100%;
  font-size: 0.74rem;
  color: #6d7f76;
}

.campaignFinderScoreRow--product {
  padding: 6px 0 0;
  border-top: 1px dashed rgba(210, 222, 217, 0.95);
}

.campaignFinderProductMatchHint {
  margin: 0;
  font-size: 0.76rem;
  color: #6d7f76;
}

.campaignFinderProductMatch[data-incomplete="1"] .campaignFinderProductMatchHint {
  color: #8a5a1a;
}

.campaignFinderProductMatch[data-incomplete="1"] .campaignFinderProductMatchBody {
  border-color: rgba(214, 184, 126, 0.9);
  background: rgba(255, 248, 232, 0.75);
}

.campaignFinderInlineInputs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 4px;
}

.campaignFinderInlineInputs label {
  display: grid;
  gap: 3px;
  font-size: 0.82rem;
}

.campaignFinderInlineInputs span {
  color: #5b6b64;
  font-weight: 600;
}

.campaignFinderInlineInputs input {
  min-height: 32px;
  border: 1px solid rgba(170, 188, 182, 0.9);
  border-radius: 6px;
  padding: 4px 8px;
  background: #fff;
}

.campaignFinderExportHead {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}

.campaignFinderExportHead h3 {
  margin: 0;
  font-size: 0.95rem;
}

.campaignFinderExportHead p,
.campaignFinderByTenant {
  margin: 0;
  color: #5b6b64;
  font-size: 0.82rem;
}

.campaignFinderExportControls {
  display: grid;
  gap: 8px;
}

.campaignFinderSwitch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
}

.campaignFinderSwitch--warn {
  color: #5f3f13;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid rgba(214, 184, 126, 0.8);
  background: rgba(255, 248, 232, 0.95);
}

.campaignFinderBatchFlagWarn {
  color: #8a4b12;
  font-weight: 700;
}

.campaignFinderNoDedupModal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 24px;
}

.campaignFinderNoDedupModal[hidden] {
  display: none !important;
}

.campaignFinderNoDedupModalBackdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(10, 28, 43, 0.34);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.campaignFinderNoDedupModalPanel {
  position: relative;
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
  padding: 22px 24px 20px;
  border: 1px solid rgba(214, 184, 126, 0.75);
  border-radius: 16px;
  background: #fffef9;
  color: #12231f;
  box-shadow: 0 24px 56px rgba(15, 40, 32, 0.22);
}

.campaignFinderNoDedupModalPanel h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  color: #5f3f13;
}

.campaignFinderNoDedupModalWarn {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(214, 184, 126, 0.8);
  background: rgba(255, 248, 232, 0.95);
  color: #5f3f13;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 650;
}

.campaignFinderNoDedupModalSummary {
  margin: 0;
  padding: 0 0 0 1.1em;
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #3f5a4f;
}

.campaignFinderNoDedupModalCheck {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 650;
  color: #3f5a4f;
  cursor: pointer;
}

.campaignFinderNoDedupModalCheck input {
  margin-top: 3px;
}

.campaignFinderNoDedupModalActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.campaignFinderFieldList {
  padding-top: 4px;
  border-top: 1px dashed rgba(180, 198, 192, 0.9);
}

.campaignFinderFieldPhone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(205, 218, 212, 0.95);
  background: #fff;
}

.campaignFinderFieldPhone:has(input[value="phone"]:checked) {
  border-color: rgba(90, 150, 120, 0.85);
  background: rgba(232, 245, 238, 0.95);
}

.campaignFinderFieldPhone > label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: inherit;
  line-height: inherit;
}

.campaignFinderFieldPhone > label:has(input:checked) {
  border: 0;
  background: transparent;
}

.campaignFinderPhonePlainInline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 8px;
  margin: 0;
  border: 0;
  border-left: 1px solid rgba(180, 200, 192, 0.95);
  border-radius: 0;
  background: transparent;
  font-size: 0.78rem;
  color: #456257;
}

.campaignFinderPhonePlainInline:has(input:checked) {
  border-left-color: rgba(90, 150, 120, 0.85);
  background: transparent;
  color: #1f5a45;
  font-weight: 650;
}

.campaignFinderPhonePlainInline input:disabled {
  opacity: 0.45;
}

.campaignFinderPhonePlainInline:has(input:disabled) {
  color: #8a9a93;
}

.campaignFinderByTenant {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.campaignFinderTableWrap {
  min-height: 12rem;
  max-height: min(52vh, 560px);
}

.campaignFinderTable {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
  font-size: 0.82rem;
}

.campaignFinderTable th,
.campaignFinderTable td {
  padding: 0.42rem 0.55rem;
  white-space: nowrap;
  width: 1%;
}

.campaignFinderTable th[data-field="customer_name"],
.campaignFinderTable th[data-field="matched_needs"],
.campaignFinderTable th[data-field="matched_interests"],
.campaignFinderTable th[data-field="key_tags"],
.campaignFinderTable th[data-field="reminder_summary"],
.campaignFinderTable .campaignFinderCellWide {
  white-space: normal;
  width: auto;
  max-width: 14rem;
  line-height: 1.35;
}

.campaignFinderTable .campaignFinderCellId {
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  color: #6d7f76;
}

.campaignFinderTable .campaignFinderCellWide {
  max-width: 16rem;
}

.campaignFinderByTenant span {
  display: inline-flex;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(236, 245, 241, 0.95);
  border: 1px solid rgba(190, 210, 202, 0.9);
}

@media (max-width: 1100px) {
  .campaignFinderOverview {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .campaignFinderInlineInputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .campaignFinderOverview,
  .campaignFinderInlineInputs {
    grid-template-columns: 1fr !important;
  }
}

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

.portfolioOverview article,
.portfolioCard,
.portfolioJobsPanel {
  border: 1px solid rgba(194, 210, 205, 0.88);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 32px rgba(32, 48, 43, 0.07);
}

.portfolioOverview article {
  min-height: 86px;
  padding: 12px 14px;
}

.portfolioOverview--quality article {
  border-color: rgba(214, 184, 126, 0.72);
  background: rgba(255, 251, 243, 0.9);
}

.portfolioOverview--quality strong {
  color: #5f3f13;
}

.portfolioOverview span,
.portfolioOverview strong,
.portfolioOverview em {
  display: block;
}

.portfolioOverview span {
  color: #6d7d78;
  font-size: 0.78rem;
  font-weight: 900;
}

.portfolioOverview strong {
  margin-top: 8px;
  color: #14231f;
  font-size: 1.45rem;
  font-weight: 950;
}

.portfolioOverview em {
  margin-top: 5px;
  color: #7c8985;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.portfolioActionBar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 107, 99, 0.15);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(15, 107, 99, 0.08), rgba(214, 163, 95, 0.12));
}

.portfolioActionBar p {
  flex: 1 1 260px;
  margin: 0;
  text-align: right;
}

.portfolioGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.portfolioCard,
.portfolioJobsPanel {
  padding: 14px;
}

.portfolioCard--wide {
  grid-column: 1 / -1;
}

.portfolioCardHead {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.portfolioCardHead h3 {
  margin: 0;
  color: #172622;
  font-size: 1rem;
  font-weight: 950;
}

.portfolioCardHead h4 {
  margin: 0;
  color: #172622;
  font-size: 0.92rem;
  font-weight: 950;
}

.portfolioCardHead p {
  margin: 2px 0 0;
  color: #778782;
  font-size: 0.78rem;
  font-weight: 800;
}

.portfolioCardHead--tight {
  margin-bottom: 8px;
}

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

.portfolioCheckGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.portfolioRawGrid {
  display: grid;
  gap: 8px;
}

.portfolioFieldPackage,
.portfolioHistoryRows label,
.portfolioSwitch {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: #2e403a;
  font-size: 0.86rem;
  font-weight: 850;
}

.portfolioFieldPackage {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid rgba(177, 196, 190, 0.76);
  border-radius: 8px;
  background: #f8fbf8;
}

.portfolioFieldPackage--history {
  grid-template-columns: 18px minmax(0, 1fr) 168px 94px auto;
}

.portfolioFieldPackage > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.portfolioFieldPackage strong,
.portfolioFieldPackage em {
  display: block;
  font-style: normal;
  line-height: 1.35;
}

.portfolioFieldPackage strong {
  color: #253b35;
  font-size: 0.86rem;
  font-weight: 950;
}

.portfolioFieldPackage em {
  color: #6f817b;
  font-size: 0.74rem;
  font-weight: 800;
}

.portfolioFieldExample {
  justify-self: end;
}

.portfolioFieldExample summary {
  min-width: 72px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 107, 99, 0.24);
  border-radius: 8px;
  background: #fff;
  color: #0f6b63;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 950;
  list-style: none;
  text-align: center;
  white-space: nowrap;
}

.portfolioFieldExample summary::-webkit-details-marker {
  display: none;
}

.portfolioFieldExample[open] summary {
  background: rgba(15, 107, 99, 0.08);
}

.portfolioFieldExample[open] summary::after {
  content: "收起";
}

.portfolioFieldExample[open] summary {
  font-size: 0;
}

.portfolioFieldExample[open] summary::after {
  font-size: 0.76rem;
}

.portfolioFieldExample[open] {
  grid-column: 1 / -1;
  justify-self: stretch;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.portfolioFieldExample[open] summary {
  grid-column: 2;
  justify-self: end;
}

.portfolioFieldExample dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(92px, 140px) minmax(0, 1fr);
  gap: 5px 12px;
  margin: 6px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(177, 196, 190, 0.7);
  border-radius: 8px;
  background: #fff;
}

.portfolioFieldExample dt {
  color: #6f817b;
  font-size: 0.74rem;
  font-weight: 950;
}

.portfolioFieldExample dd {
  margin: 0;
  color: #253b35;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.45;
  word-break: break-word;
}

.portfolioFormGrid label,
.portfolioRulesGrid label,
.portfolioTimeChecks {
  display: grid;
  gap: 6px;
  color: #5e6f69;
  font-size: 0.76rem;
  font-weight: 900;
}

.portfolioFormGrid {
  grid-template-columns: 148px minmax(180px, 1fr);
  align-items: end;
  gap: 8px 10px;
}

.portfolioFormGrid--settings {
  grid-template-columns: 170px minmax(220px, 1fr);
}

.portfolioFormGrid .portfolioSwitch {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(177, 196, 190, 0.76);
  border-radius: 8px;
  background: #f8fbf8;
  color: #2e403a;
  font-size: 0.84rem;
}

.portfolioFormGrid .portfolioSwitch--disabled,
.portfolioActionBar .shellBtn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.portfolioFormGrid > label:last-child {
  grid-column: 1 / -1;
  max-width: 320px;
}

.portfolioTimeChecks {
  align-self: stretch;
}

.portfolioTimeChecks > span {
  color: #5e6f69;
  font-size: 0.76rem;
  font-weight: 900;
}

.portfolioTimeChecks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(177, 196, 190, 0.76);
  border-radius: 8px;
  background: #f8fbf8;
  color: #2e403a;
  font-size: 0.8rem;
  font-weight: 850;
}

.portfolioTimeChecks {
  grid-template-columns: repeat(3, minmax(68px, 1fr));
}

.portfolioTimeChecks > span {
  grid-column: 1 / -1;
}

.portfolioRulesGrid {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px 10px;
}

.portfolioRulesGrid--visit {
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  max-width: 430px;
}

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

.portfolioRuleGroup {
  padding: 12px;
  border: 1px solid rgba(177, 196, 190, 0.76);
  border-radius: 10px;
  background: #f8fbf8;
}

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

.portfolioTagDimension {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(177, 196, 190, 0.76);
  border-radius: 10px;
  background: #f8fbf8;
}

.portfolioTagDimension h4 {
  margin: 0;
  color: #172622;
  font-size: 0.9rem;
  font-weight: 950;
}

.portfolioTagDimension p {
  margin: 3px 0 0;
  color: #6f817b;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.45;
}

.portfolioTagChips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  max-height: 26px;
  padding-right: 34px;
  overflow: hidden;
}

.portfolioTagChips--expanded {
  max-height: none;
}

.portfolioTagChips span {
  padding: 4px 8px;
  border: 1px solid rgba(15, 107, 99, 0.2);
  border-radius: 999px;
  background: #fff;
  color: #0f6b63;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.2;
}

.portfolioTagExpand {
  position: absolute;
  right: 0;
  top: 0;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 24px;
  border: 1px solid rgba(15, 107, 99, 0.22);
  border-radius: 999px;
  background: #fff;
  color: #0f6b63;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1;
}

.portfolioTagChips--expanded .portfolioTagExpand {
  background: rgba(15, 107, 99, 0.08);
}

.portfolioTagEvidence {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(177, 196, 190, 0.86);
}

.portfolioTagEvidence summary {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(15, 107, 99, 0.22);
  border-radius: 8px;
  background: #fff;
  color: #0f6b63;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.2;
  list-style: none;
}

.portfolioTagEvidence summary::-webkit-details-marker {
  display: none;
}

.portfolioTagEvidence[open] summary {
  background: rgba(15, 107, 99, 0.08);
}

.portfolioTagEvidence[open] summary::after {
  content: "收起";
}

.portfolioTagEvidence[open] summary {
  font-size: 0;
}

.portfolioTagEvidence[open] summary::after {
  font-size: 0.72rem;
}

.portfolioTagEvidence dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
}

.portfolioTagEvidence dt {
  color: #60716b;
  font-size: 0.74rem;
  font-weight: 950;
}

.portfolioTagEvidence dd {
  margin: 0;
  color: #253b35;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.45;
}

.portfolioFormGrid input,
.portfolioFormGrid select,
.portfolioRulesGrid input,
.portfolioHistoryRows input[type="number"],
.portfolioConcurrencyGrid input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(177, 196, 190, 0.9);
  border-radius: 10px;
  background: #fff;
  color: #172622;
  font: inherit;
  font-weight: 850;
}

.portfolioHistoryRows input[type="number"] {
  text-align: center;
}

.portfolioFieldPackage input[type="checkbox"],
.portfolioHistoryRows input[type="checkbox"],
.portfolioFormGrid input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.portfolioHistoryRows {
  display: grid;
  gap: 8px;
}

.portfolioHistoryRows > label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 168px;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid rgba(177, 196, 190, 0.76);
  border-radius: 8px;
  background: #f8fbf8;
}

.portfolioHistoryRows .portfolioWideCheck {
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 44px;
}

.portfolioHistoryRows span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.portfolioHistoryRows strong,
.portfolioHistoryRows em {
  display: block;
  font-style: normal;
  line-height: 1.35;
}

.portfolioHistoryRows strong {
  color: #253b35;
  font-size: 0.86rem;
  font-weight: 950;
}

.portfolioHistoryRows em {
  color: #6f817b;
  font-size: 0.74rem;
  font-weight: 800;
}

.portfolioLimitControl {
  display: grid;
  grid-template-columns: auto 58px auto;
  align-items: center;
  gap: 6px;
  justify-self: end;
  min-width: 154px;
  color: #6f817b;
  font-size: 0.78rem;
  font-weight: 900;
}

.portfolioLimitControl span {
  display: block;
  white-space: nowrap;
}

.portfolioLimitControl input[type="number"] {
  width: 58px;
  height: 32px;
  padding: 0 8px;
}

.portfolioFullControl {
  display: inline-flex !important;
  align-items: center;
  justify-self: end;
  gap: 6px;
  width: auto;
  min-width: 92px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #60716b;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.portfolioFullControl input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.portfolioConcurrencyGrid {
  display: grid;
  grid-template-columns: 54px repeat(3, minmax(0, 1fr));
  gap: 7px;
  align-items: center;
}

.portfolioConcurrencyGrid strong,
.portfolioConcurrencyGrid span {
  color: #60716b;
  font-size: 0.76rem;
  font-weight: 900;
}

.portfolioJobsTable td {
  vertical-align: top;
}

.portfolioJobsPanel .tableWrap {
  margin-top: 0;
}

.portfolioJobsTable th,
.portfolioJobsTable td {
  padding-top: 9px;
  padding-bottom: 9px;
}

@media (max-width: 720px) {
  .adminBriefModal {
    align-items: end;
    padding: 10px;
  }

  .adminBriefDialog {
    width: 100%;
    max-height: min(88vh, 720px);
    padding: 16px;
    border-radius: 18px;
  }

  .adminBriefDialog h2 {
    max-width: 11em;
    font-size: 1.72rem;
  }

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

  .adminBriefMetrics article {
    min-height: 86px;
  }

  .adminBriefActions {
    position: sticky;
    bottom: -16px;
    margin: 14px -16px -16px;
    padding: 12px 16px 16px;
    background: linear-gradient(180deg, rgba(255, 247, 215, 0), #fff7d7 34%);
  }

  .adminBriefActions .shellBtn {
    width: 100%;
  }

  .portfolioOverview,
  .portfolioGrid,
  .portfolioCheckGrid,
  .portfolioFormGrid,
  .portfolioRulesGrid,
  .portfolioTagPlan {
    grid-template-columns: 1fr;
  }

  .portfolioActionBar p {
    flex-basis: 100%;
    text-align: left;
  }

  .portfolioCardHead {
    display: grid;
  }

  .portfolioFieldPackage,
  .portfolioFieldPackage--history,
  .portfolioHistoryRows label {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .portfolioLimitControl {
    grid-column: 2;
    justify-self: start;
  }

  .portfolioFullControl {
    grid-column: 2;
    justify-self: start;
  }

  .portfolioFieldExample {
    grid-column: 2;
  }

  .portfolioFieldExample summary {
    justify-self: start;
    width: fit-content;
    margin-top: 2px;
  }

  .portfolioFieldExample dl {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .portfolioFieldExample[open] {
    grid-column: 1 / -1;
  }

  .portfolioConcurrencyGrid {
    grid-template-columns: 48px repeat(3, minmax(64px, 1fr));
    overflow-x: auto;
  }
}

/* 使用分析 */
.usagePanel {
  display: grid;
  gap: 12px;
}

.usageSectionHead {
  margin-bottom: 0;
}

.usageFilters {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 9px;
}

.usageFilters label {
  display: grid;
  gap: 5px;
  min-width: 142px;
  color: #60716b;
  font-size: 0.75rem;
  font-weight: 900;
}

.usageFilters select {
  min-height: 38px;
  padding: 0.46rem 2rem 0.46rem 0.62rem;
  border: 1px solid #dce6e1;
  border-radius: 10px;
  background: #fff;
  color: #17231f;
  font: inherit;
}

.usageFilters .shellBtn {
  min-height: 38px;
}

.usageStatusBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 13px;
  border: 1px solid rgba(205, 220, 214, 0.92);
  border-radius: 12px;
  background: rgba(248, 252, 250, 0.92);
}

.usageStatusBar p {
  margin: 0;
  color: #687a74;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.5;
}

.usageStatusBar p:last-child {
  text-align: right;
}

#usageStatus[data-state="loading"] {
  color: #8a621f;
}

#usageStatus[data-state="ready"] {
  color: #0f6b63;
}

#usageStatus[data-state="empty"] {
  color: #687a74;
}

#usageStatus[data-state="error"],
#usageStatus[data-state="stale"] {
  color: #a64132;
}

.usageMethodNote {
  margin: -2px 0 0;
  padding: 9px 12px;
  border-left: 3px solid rgba(15, 107, 99, 0.5);
  border-radius: 0 9px 9px 0;
  background: rgba(232, 245, 241, 0.64);
  color: #5e706a;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.65;
}

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

.usageSummaryGrid article,
.usageCard {
  min-width: 0;
  border: 1px solid rgba(214, 226, 220, 0.94);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 249, 0.94));
  box-shadow: 0 14px 34px rgba(39, 53, 48, 0.07);
}

.usageSummaryGrid article {
  display: grid;
  gap: 6px;
  min-height: 126px;
  padding: 15px;
  border-color: rgba(15, 107, 99, 0.17);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(232, 245, 241, 0.9));
}

.usageSummaryGrid span,
.usageSummaryGrid strong,
.usageSummaryGrid em {
  display: block;
}

.usageSummaryGrid span {
  color: #60716b;
  font-size: 0.78rem;
  font-weight: 900;
}

.usageSummaryGrid strong {
  align-self: end;
  margin-top: 4px;
  color: #0f6b63;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 950;
  line-height: 1.05;
}

.usageSummaryGrid em {
  color: #7c8b86;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.4;
}

.usageCard {
  padding: 15px;
}

.usageCardHead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.usageCardHead span,
.usageCardHead h3,
.usageCardHead p {
  display: block;
  margin: 0;
}

.usageCardHead span {
  margin-bottom: 3px;
  color: #8a9a94;
  font-size: 0.68rem;
  font-weight: 950;
}

.usageCardHead h3 {
  color: #1d302b;
  font-size: 0.98rem;
  font-weight: 950;
}

.usageCardHead p {
  color: #7b8c86;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
}

.usageTrendCard {
  overflow: hidden;
}

.usageDetailCard {
  overflow: hidden;
}

.usageDetailSummaryGrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.usageDetailSummaryGrid article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(15, 107, 99, 0.14);
  border-radius: 12px;
  background: rgba(232, 245, 241, 0.52);
}

.usageDetailSummaryGrid span,
.usageDetailSummaryGrid strong,
.usageDetailSummaryGrid em {
  display: block;
  min-width: 0;
}

.usageDetailSummaryGrid span {
  color: #60716b;
  font-size: 0.7rem;
  font-weight: 900;
}

.usageDetailSummaryGrid strong {
  overflow-wrap: anywhere;
  color: #0f6b63;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 950;
  line-height: 1.15;
}

.usageDetailSummaryGrid em {
  color: #7c8b86;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.4;
}

.usageDetailSubCard {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(220, 230, 225, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.usageDetailSubCard .usageCardHead {
  margin-bottom: 10px;
}

.usageTrendWrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(220, 230, 225, 0.92);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(248, 252, 250, 0.86), rgba(255, 255, 255, 0.98));
}

.usageTrendChart {
  display: block;
  width: 100%;
  min-width: 660px;
  height: auto;
  min-height: 220px;
}

.usageTrendGrid {
  stroke: rgba(93, 119, 111, 0.22);
  stroke-width: 1;
}

.usageTrendGrid--soft {
  stroke-dasharray: 3 5;
  stroke: rgba(93, 119, 111, 0.13);
}

.usageTrendLine {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.7;
}

.usageTrendLine--actions {
  stroke: #0f6b63;
}

.usageTrendLine--time {
  stroke: #d19a4e;
}

.usageTrendLine--employees {
  stroke: #4f78a7;
}

.usageTrendDot.usageTrendLine--actions {
  fill: #0f6b63;
}

.usageTrendDot.usageTrendLine--time {
  fill: #d19a4e;
}

.usageTrendDot.usageTrendLine--employees {
  fill: #4f78a7;
}

.usageTrendSeriesLabel,
.usageTrendLatest,
.usageTrendDate,
.usageTrendEmpty {
  fill: #3d514b;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
}

.usageTrendSeriesMax {
  fill: #84938e;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
}

.usageTrendLatest {
  fill: #5e716b;
  font-size: 10px;
}

.usageTrendDate {
  fill: #84938e;
  font-size: 10px;
}

.usageTrendEmpty {
  fill: #81908b;
}

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

.usageFeatureDashCard {
  min-width: 0;
}

.usageFeatureDashboard {
  min-height: 220px;
}

.usageFeatureDashLayout {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

.usageFeatureDonutPanel {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.usageFeatureDonutChart {
  width: min(220px, 100%);
  height: auto;
}

.usageFeatureDonutHole {
  fill: #f7fbf9;
}

.usageFeatureDonutTotal {
  fill: #17332c;
  font-size: 22px;
  font-weight: 900;
}

.usageFeatureDonutTotalLabel {
  fill: #6b7c75;
  font-size: 11px;
  font-weight: 800;
}

.usageFeatureDonutLegend {
  display: grid;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.usageFeatureDonutLegend li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3d524b;
  font-size: 0.76rem;
  font-weight: 800;
}

.usageFeatureDonutLegend i {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.usageFeatureBarsPanel {
  min-width: 0;
}

.usageFeatureBarsHead,
.usageFeatureBarsMeta {
  margin: 0 0 8px;
  color: #6b7c75;
  font-size: 0.76rem;
  font-weight: 800;
}

.usageFeatureBarsMeta {
  margin: 8px 0 0;
}

.usageFeatureBarChart {
  width: 100%;
  height: auto;
  display: block;
}

.usageFeatureBarLabel,
.usageFeatureBarValue {
  fill: #30433d;
  font-size: 11px;
  font-weight: 800;
}

.usageFeatureBarValue {
  fill: #0f6b63;
  font-weight: 900;
}

.usageFeatureBarTrack {
  fill: #e7f1ec;
}

.usageBarList {
  display: grid;
  align-content: start;
  gap: 13px;
  min-height: 180px;
}

.usageBarItem {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.usageBarItemHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.usageBarItemHead strong {
  overflow: hidden;
  color: #30433d;
  font-size: 0.8rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usageBarItemHead span {
  flex: 0 0 auto;
  color: #0f6b63;
  font-size: 0.8rem;
  font-weight: 950;
}

.usageBarTrack {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8efec;
}

.usageBarTrack i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f6b63, #68a89e);
}

.usageBarItem p {
  margin: 0;
  color: #7a8a85;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.4;
}

.usageEmptyState {
  align-self: center;
  margin: 0;
  padding: 28px 12px;
  color: #81908b;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}

.usageMatrixCard {
  min-width: 0;
}

.usageMatrixNote {
  margin: 0 0 10px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.usageMatrixWrap {
  max-height: min(640px, calc(100vh - 240px));
  overflow: auto;
  border: 1px solid rgba(205, 220, 214, 0.92);
  border-radius: 12px;
  background: #fff;
}

.usageMatrixTable {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
}

.usageMatrixTable th,
.usageMatrixTable td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(46, 64, 58, 0.08);
  border-right: 1px solid rgba(46, 64, 58, 0.06);
  white-space: nowrap;
  text-align: right;
  vertical-align: middle;
}

.usageMatrixTable thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f3f8f5;
  color: #3d524b;
  font-weight: 900;
}

.usageMatrixTable thead tr:first-child th {
  top: 0;
  z-index: 4;
}

.usageMatrixTable thead tr:nth-child(2) th {
  top: 34px;
  z-index: 3;
  font-size: 0.72rem;
  font-weight: 800;
}

.usageMatrixGroupHead {
  text-align: center !important;
  background: #e7f1ec !important;
}

.usageMatrixSticky {
  position: sticky;
  left: 0;
  z-index: 5;
  text-align: left !important;
  background: #f8fbf9;
  box-shadow: 1px 0 0 rgba(46, 64, 58, 0.08);
}

.usageMatrixSticky--name {
  left: 0;
  min-width: 88px;
  font-weight: 900;
  color: #1f3933;
}

.usageMatrixSticky--role {
  left: 88px;
  min-width: 72px;
  z-index: 5;
  color: #5e6f69;
}

.usageMatrixTable thead .usageMatrixSticky {
  z-index: 6;
  background: #f3f8f5;
}

.usageMatrixTable tfoot .usageMatrixSticky,
.usageMatrixTable tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 4;
  background: #eef5f1;
  font-weight: 900;
  border-top: 1px solid rgba(46, 64, 58, 0.12);
}

.usageMatrixTable tfoot .usageMatrixSticky {
  z-index: 7;
}

.usageMatrixMetric--zero {
  color: #a3b2ab;
  font-weight: 600;
}

.usageMatrixMetric:not(.usageMatrixMetric--zero),
.usageMatrixTotal {
  color: #1f3933;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.usageMatrixKind--activeMinutes,
.usageMatrixKind--detailMinutes {
  min-width: 72px;
}

.usageEmployeeCard {
  min-width: 0;
}

.usageTableWrap {
  min-height: 0;
  max-height: min(560px, calc(100vh - 300px));
}

.usageEmployeeTable {
  min-width: 1480px;
}

.usageEmployeeName,
.usageEmployeeMetric {
  color: #1f3933;
  font-weight: 900;
}

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

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

@media (max-width: 900px) {
  .usageSectionHead {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .usageFilters {
    justify-content: stretch;
  }

  .usageFilters label {
    flex: 1;
  }

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

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

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

@media (max-width: 720px) {
  .usagePanel {
    gap: 10px;
  }

  .usageFilters,
  .usageStatusBar,
  .usageCardHead {
    align-items: stretch;
    flex-direction: column;
  }

  .usageFilters label,
  .usageFilters .shellBtn {
    width: 100%;
  }

  .usageStatusBar p:last-child,
  .usageCardHead p {
    text-align: left;
  }

  .usageSummaryGrid,
  .usageChartGrid,
  .usageDetailSummaryGrid {
    grid-template-columns: 1fr;
  }

  .usageDetailSummaryGrid.usageAssistanceStats,
  .assistanceMinutesGrid,
  .briefingEncouragementHead {
    grid-template-columns: 1fr;
  }

  .usageSummaryGrid article {
    min-height: 112px;
  }

  .usageTrendChart {
    min-width: 620px;
  }

  .usageBarList {
    min-height: 130px;
  }
}

.portfolioBusinessRules {
  margin: 16px 0 8px;
}

.portfolioBusinessRules .portfolioCardHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.portfolioBusinessRulesGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
  align-items: stretch;
}

.portfolioBusinessRulesSide {
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
  min-width: 0;
  align-content: start;
}

.portfolioBusinessRulesBlock {
  min-width: 0;
  border: 1px solid rgba(46, 64, 58, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.portfolioBusinessRulesBlock--cycle {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.portfolioBusinessRulesBlock h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.portfolioBusinessRulesBlock > .muted {
  margin: 0 0 8px;
  line-height: 1.35;
}

.portfolioBusinessRulesFields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

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

.portfolioBusinessRulesFields label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #5e6f69;
  font-size: 0.76rem;
  font-weight: 900;
}

.portfolioBusinessRulesFields input,
.portfolioBusinessRulesFields select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(177, 196, 190, 0.9);
  border-radius: 10px;
  background: #fff;
  color: #172622;
  font: inherit;
  font-weight: 850;
}

.portfolioCycleTableWrap {
  flex: 1 1 auto;
  max-height: 360px;
  overflow: auto;
  margin: 0 0 10px;
  min-height: 0;
}

.portfolioCycleTable {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.portfolioCycleTable th,
.portfolioCycleTable td {
  padding: 5px 6px;
  border-bottom: 1px solid rgba(46, 64, 58, 0.08);
  text-align: left;
  vertical-align: middle;
}

.portfolioCycleTable th:nth-child(1),
.portfolioCycleTable td:nth-child(1) {
  width: auto;
}

.portfolioCycleTable th:nth-child(2),
.portfolioCycleTable td:nth-child(2) {
  width: 72px;
  text-align: center;
}

.portfolioCycleTable th:nth-child(3),
.portfolioCycleTable td:nth-child(3) {
  width: 48px;
  text-align: right;
  color: #6b7c75;
  font-variant-numeric: tabular-nums;
}

.portfolioCycleTable td em {
  display: block;
  color: #6b7c75;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
}

.portfolioCycleTable input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 64px;
  margin: 0 auto;
  height: 28px;
  padding: 0 4px;
  border: 1px solid rgba(177, 196, 190, 0.9);
  border-radius: 8px;
  background: #fff;
  color: #172622;
  font: inherit;
  font-weight: 850;
  text-align: center;
}

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

@media (max-width: 640px) {
  .portfolioBusinessRulesFields--pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── 内购会客池 ── */
.ng815StatusLine {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

.ng815Tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.ng815Tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 6px 10px 6px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.ng815Tab:hover {
  border-color: rgba(14, 87, 128, 0.35);
}

.ng815Tab.is-active {
  background: #0e5780;
  border-color: #0e5780;
  color: #fff;
}

.ng815Tab--warn:not(.is-active) {
  border-color: rgba(196, 132, 106, 0.55);
  color: #9a5b3f;
}

.ng815TabCount {
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.ng815Tab.is-active .ng815TabCount {
  background: rgba(255, 255, 255, 0.2);
}

.ng815AclPopover {
  width: min(460px, calc(100vw - 40px));
  z-index: 30;
}

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

.ng815AclForm input {
  height: 38px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
}

.ng815AclChips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}

.ng815AclChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  padding: 0 6px 0 10px;
  background: #f8fafc;
  font-size: 13px;
}

.ng815AclChip button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  color: #64748b;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.ng815AclChip button:hover,
.ng815AclChip button:focus-visible {
  color: #9a3412;
  background: #fff1f2;
}

.ng815AclCandidateHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.ng815AclCandidateHead strong {
  font-size: 13px;
}

.ng815AclCandidateHead span {
  color: #64748b;
  font-size: 12px;
}

.ng815AclCandidateList {
  display: grid;
  gap: 4px;
  min-height: 180px;
  max-height: min(320px, 46vh);
  overflow: auto;
  padding: 4px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #f8fafc;
}

.ng815AclPerson {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.ng815AclPerson:hover,
.ng815AclPerson:focus-within {
  background: #fff;
}

.ng815AclPerson input {
  margin: 3px 0 0;
}

.ng815AclPerson span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ng815AclPerson strong {
  font-size: 13px;
  font-weight: 650;
}

.ng815AclPerson em {
  color: #64748b;
  font-style: normal;
  font-size: 12px;
}

.ng815ListCard {
  padding: 12px 14px 8px;
}

.ng815Toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

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

.ng815ToolbarRight select,
.ng815ToolbarRight input[type="search"] {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  padding: 7px 10px;
  font: inherit;
  background: #fff;
}

.ng815ToolbarRight input[type="search"] {
  min-width: 200px;
}

.ng815VerifyFilter {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #f4f6f8;
}

.ng815VerifyChip {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ng815VerifyChip:hover {
  color: #0f172a;
}

.ng815VerifyChip.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.ng815TableWrap .adminActions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ng815NotifyModal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

.ng815NotifyModal[hidden] {
  display: none;
}

.ng815NotifyModalBackdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.42);
  cursor: pointer;
}

.ng815NotifyDialog {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

.ng815NotifyHead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ng815NotifyKicker {
  margin: 0 0 4px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}

.ng815NotifyHead h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.ng815NotifyBody {
  display: grid;
  gap: 10px;
  padding: 14px 18px;
  overflow: auto;
}

.ng815NotifyStatusRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.ng815NotifyStatusRow span {
  color: #64748b;
  font-size: 13px;
}

.ng815NotifyStatusRow strong {
  font-size: 15px;
}

.ng815NotifyStatusRow strong.is-ok {
  color: #15803d;
}

.ng815NotifyStatusRow strong.is-wait {
  color: #b45309;
}

.ng815NotifyMarkdownLabel {
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

#ng815NotifyMarkdown {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #fff;
}

.ng815NotifyLinkBox {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

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

.ng815NotifyLinkMeta span {
  color: #64748b;
  font-size: 13px;
}

.ng815NotifyDetailBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #eef2f6;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ng815NotifyDetailBtn:hover {
  background: #e2e8f0;
}

#ng815NotifyDetailUrl {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  color: #334155;
  background: #fff;
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ng815NotifyActions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ng815TableWrap {
  overflow: auto;
  max-height: calc(100vh - 280px);
}

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

.ng815TableWrap th,
.ng815TableWrap td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  vertical-align: top;
  font-size: 13px;
}

.ng815TableWrap th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 1;
  text-align: left;
  color: #64748b;
  font-weight: 650;
}

.ng815AssignSelect {
  max-width: 140px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  padding: 4px 6px;
  font: inherit;
  font-size: 12px;
}

.ng815PublicAssign {
  display: grid;
  gap: 5px;
  min-width: 138px;
}

.ng815PublicLabel {
  width: max-content;
  border-radius: 4px;
  padding: 2px 6px;
  color: #9a5b3f;
  background: #fff4ed;
  font-size: 11px;
  font-weight: 700;
}

.ng815TeamReadonly {
  display: inline-flex;
  border-radius: 4px;
  padding: 3px 7px;
  color: #0e5780;
  background: #edf7fa;
  font-size: 12px;
  font-weight: 700;
}

.ng815AdminPager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 4px 2px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ng815AdminPager > span {
  color: #64748b;
  font-size: 12px;
}

.ng815AdminPager > div {
  display: flex;
  gap: 8px;
}

@media (max-width: 720px) {
  .ng815AdminPager {
    align-items: stretch;
    flex-direction: column;
  }

  .ng815AdminPager > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.ng815Drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.ng815DrawerBackdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.35);
  cursor: pointer;
}

.ng815DrawerPanel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(560px, 100vw);
  height: 100%;
  background: #fff;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  padding: 16px 18px 20px;
  overflow: auto;
}

.ng815DrawerHead {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.ng815DrawerKicker {
  margin: 0 0 4px;
  color: #0e5780;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ng815DrawerHead h3 {
  margin: 0;
  font-size: 20px;
}

.ng815DrawerBody {
  margin-bottom: 16px;
}

.ng815DrawerKv {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px 10px;
  font-size: 13px;
}

.ng815DrawerKv span {
  color: #64748b;
}

.ng815Intent {
  color: #3d7a5f;
  font-weight: 700;
}

.ng815Consult {
  color: #c4846a;
  font-weight: 700;
}

.ng815Reception {
  color: #0e5780;
}

.ng815Section {
  margin: 0 0 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ng815Section:first-child {
  border-top: 0;
  padding-top: 0;
}

.ng815Section h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #0f172a;
}

.ng815Empty {
  color: #94a3b8;
  font-size: 13px;
}

.ng815TagRow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ng815Tag {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
}

.ng815NeedList,
.ng815PlanList {
  display: grid;
  gap: 8px;
}

.ng815NeedItem,
.ng815PlanItem {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.ng815NeedItem strong,
.ng815PlanItem strong {
  display: block;
  font-size: 13px;
}

.ng815NeedItem span,
.ng815PlanItem p {
  display: block;
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
}

.ng815NeedItem em,
.ng815PlanItem b {
  color: #0e5780;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}

.ng815PlanHead {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.ng815PlanHead span {
  display: inline-block;
  margin-right: 6px;
  color: #64748b;
  font-weight: 600;
}

.ng815Growth {
  display: grid;
  gap: 8px;
}

.ng815GrowthRow {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 12px;
}

.ng815GrowthRow > span {
  color: #64748b;
}

.ng815GrowthRow em {
  display: inline-flex;
  margin: 0 4px 4px 0;
  padding: 2px 6px;
  border-radius: 6px;
  background: #fff7ed;
  color: #9a3412;
  font-style: normal;
}

.ng815GrowthRow em.is-done {
  background: #ecfdf5;
  color: #047857;
}

.ng815Evo {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
}

.ng815Evo em {
  font-style: normal;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
}

.ng815RemindList {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

.ng815RemindList li {
  margin: 0 0 6px;
}

.ng815RemindList span {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.ng815AiBox {
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff, #f8fafc);
  border: 1px solid rgba(14, 87, 128, 0.12);
}

.ng815AiBox header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ng815AiBox header span {
  color: #0e5780;
  font-size: 12px;
  font-weight: 700;
}

.ng815AiBox p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.5;
}

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

.ng815AiBullets em {
  font-style: normal;
  font-size: 12px;
  color: #334155;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(14, 87, 128, 0.06);
}

/* ── 周年庆圈客：联系与成交进度 ── */
/* 面板底线和左侧导航齐平：外层网格 align-items: stretch 会把内容列拉到和导航一样高，这里 height: 100% 跟着吃满；
   min-height 与导航的 min-height 同源，导航比视口矮时也不塌。表格用 flex-basis 0 不参与撑高，剩余高度在卡片内部滚动，
   页面本身不再多出一条滚动条。 */
.adminPanel[data-admin-panel="anniversaryCircles"] {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: calc(100dvh - 92px);
}

.acpStatusLine {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

.acpSourceBadges {
  display: inline-flex;
  gap: 6px;
}

.acpSourceBadge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #3d7a5f;
  background: rgba(61, 122, 95, 0.1);
  border: 1px solid rgba(61, 122, 95, 0.22);
}

.acpSourceBadge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.acpSourceBadge.is-warn {
  color: #9a6700;
  background: rgba(248, 214, 106, 0.22);
  border-color: rgba(154, 103, 0, 0.3);
}

.acpSourceBadge.is-bad {
  color: #9a3412;
  background: #fff1f2;
  border-color: rgba(154, 52, 18, 0.3);
}

.acpScopeRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.acpScopeTabs {
  display: inline-flex;
  gap: 6px;
}

.acpScopeTab {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.acpScopeTab:hover {
  border-color: rgba(15, 107, 99, 0.4);
}

.acpScopeTab.is-active {
  background: #0f6b63;
  border-color: #0f6b63;
  color: #fff;
}

.acpCaption {
  margin: 0;
  font-size: 12px;
}

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

.acpMetric {
  --acp-accent: #172622;
  --acp-accent-soft: rgba(23, 38, 34, 0.08);
  display: grid;
  gap: 4px;
  padding: 14px 16px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.acpMetric--follow {
  --acp-accent: #0e5780;
  --acp-accent-soft: rgba(14, 87, 128, 0.12);
}

.acpMetric--deal {
  --acp-accent: #3d7a5f;
  --acp-accent-soft: rgba(61, 122, 95, 0.12);
}

.acpMetric--amount {
  --acp-accent: #9a6700;
  --acp-accent-soft: rgba(214, 163, 95, 0.18);
  background: linear-gradient(180deg, #fff, rgba(248, 214, 106, 0.16));
}

.acpMetric span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.acpMetric strong {
  color: var(--acp-accent);
  font-size: 28px;
  font-weight: 950;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.acpMetric em {
  min-height: 16px;
  color: #5b6b66;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

.acpMetric .acpPaceLabel {
  color: var(--acp-accent);
}

/* 数据源没取到且无旧数据：整卡变灰、数字用「—」，避免把空结果的 0 读成真值 */
.acpMetric[data-unavailable="1"] {
  --acp-accent: #94a3b8;
  --acp-accent-soft: rgba(148, 163, 184, 0.16);
  background: repeating-linear-gradient(135deg, #fff 0 8px, rgba(148, 163, 184, 0.08) 8px 16px);
  border-style: dashed;
}

.acpMetric[data-unavailable="1"] em {
  color: #b45309;
}

/* 跟进颜色表示实际完成率相对时间进度；总览、门店、咨询师共用。 */
.acpMetric[data-pace="red"],
.acpProgress[data-pace="red"] {
  --acp-accent: #c03935;
  --acp-accent-soft: rgba(192, 57, 53, 0.12);
}

.acpMetric[data-pace="yellow"],
.acpProgress[data-pace="yellow"] {
  --acp-accent: #a66b00;
  --acp-accent-soft: rgba(214, 163, 45, 0.16);
}

.acpMetric[data-pace="green"],
.acpProgress[data-pace="green"] {
  --acp-accent: #27805a;
  --acp-accent-soft: rgba(39, 128, 90, 0.12);
}

.acpMetric[data-pace="neutral"],
.acpProgress[data-pace="neutral"] {
  --acp-accent: #64748b;
  --acp-accent-soft: rgba(100, 116, 139, 0.12);
}

.acpBar {
  height: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--acp-accent-soft, rgba(23, 38, 34, 0.08));
  overflow: hidden;
}

.acpBar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--acp-accent, #172622);
  transition: width 0.35s ease;
}

/* 门店：一张卡一家店，只有「一根跟进进度条 + 一行成交」两件事 */
.acpStores {
  flex: 0 0 auto;
  margin: 0 0 14px;
}

.acpSectionHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 2px 8px;
}

.acpSectionHead p {
  margin: 0;
}

.acpStoreHint {
  font-size: 12px;
}

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

.acpStoreCard {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.acpStoreCard:hover {
  border-color: rgba(15, 107, 99, 0.35);
}

.acpStoreCard.is-active {
  border-color: #0f6b63;
  background: rgba(15, 107, 99, 0.06);
  box-shadow: inset 0 0 0 1px #0f6b63;
}

.acpStoreCardHead {
  display: grid;
  gap: 2px;
}

.acpStoreCardHead strong {
  color: #172622;
  font-size: 15px;
  font-weight: 900;
}

.acpStoreCardHead span {
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

/* 共用的进度块：条 + 「已跟进 / 名单  百分比」 */
.acpProgress {
  display: grid;
  gap: 5px;
  min-width: 160px;
}

.acpProgressBar {
  height: 8px;
  border-radius: 999px;
  background: var(--acp-accent-soft, rgba(100, 116, 139, 0.12));
  overflow: hidden;
}

.acpProgressBar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--acp-accent, #64748b);
  transition: width 0.35s ease;
}

.acpProgressText {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.acpProgressText b {
  color: var(--acp-accent, #64748b);
  font-size: 15px;
  font-weight: 900;
}

.acpProgressText span {
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

.acpProgressText em {
  margin-left: auto;
  color: var(--acp-accent, #64748b);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 800;
}

/* 共用的成交块：金额为主，人数为辅 */
.acpDeal {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.acpDeal b {
  color: #9a6700;
  font-size: 15px;
  font-weight: 900;
}

.acpDeal span {
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

.acpDeal.is-empty b {
  color: #94a3b8;
  font-weight: 700;
}

.acpDeal.is-unavailable span {
  color: #b45309;
}

.acpStoreCard .acpDeal {
  padding-top: 8px;
  border-top: 1px dashed rgba(15, 23, 42, 0.08);
}

.acpTableCard {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px 14px 10px;
}

.acpToolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

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

.acpSortLabel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12.5px;
}

.acpToolbarRight select,
.acpToolbarRight input {
  height: 34px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  background: #fff;
}

.acpToolbarRight input {
  width: 160px;
}

.acpTableWrap {
  flex: 1 1 0px;
  min-height: 180px;
  overflow: auto;
}

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

.acpTableWrap th,
.acpTableWrap td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  vertical-align: middle;
  font-size: 13px;
}

.acpTableWrap th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  text-align: left;
  color: #64748b;
  font-weight: 650;
  white-space: nowrap;
}

.acpTableWrap tbody tr[data-consultant] {
  cursor: pointer;
}

.acpTableWrap tbody tr[data-consultant]:hover {
  background: rgba(15, 107, 99, 0.04);
}

/* 咨询师表：排名 · 姓名 · 一根进度条 · 成交 · 明细 */
.acpConsultantTable th.acpRankCol,
.acpConsultantTable td.acpRankCol {
  width: 36px;
  padding-right: 0;
  text-align: center;
}

.acpRank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #64748b;
  background: rgba(15, 23, 42, 0.05);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.acpConsultantTable tbody tr:nth-child(-n + 3) .acpRank {
  color: #6b4700;
  background: #f8d66a;
}

.acpConsultantTable .acpProgressCol {
  width: 40%;
}

.acpConsultantTable td.acpProgressCol .acpProgress {
  max-width: 420px;
}

.acpConsultantTable .acpDealCol {
  width: 22%;
}

.acpConsultantTable th.acpActionCol,
.acpConsultantTable td.acpActionCol {
  width: 72px;
  text-align: right;
}

.acpAmount {
  font-variant-numeric: tabular-nums;
  color: #334155;
}

.acpAmount.is-positive {
  color: #9a6700;
}

.acpTag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  color: #475569;
  background: rgba(15, 23, 42, 0.06);
}

.acpTag.is-ok {
  color: #0e5780;
  background: rgba(14, 87, 128, 0.1);
}

.acpTag.is-pending {
  color: #9a3412;
  background: #fff1f2;
}

.acpDrawer {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.acpDrawerBackdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.35);
  cursor: pointer;
}

.acpDrawerPanel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(640px, 100vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 20px;
  background: #fff;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.acpDrawerHead {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.acpDrawerKicker {
  margin: 0 0 4px;
  color: #0f6b63;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.acpDrawerHead h3 {
  margin: 0;
  font-size: 20px;
}

.acpDrawerHead .muted {
  margin: 4px 0 0;
  font-size: 12.5px;
}

.acpChipRow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.acpChip {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 5px 12px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.acpChip.is-active {
  background: #0e5780;
  border-color: #0e5780;
  color: #fff;
}

.acpDrawerTable {
  min-height: 0;
}

/* 抽屉打开时锁住页面滚动：后台页的滚动容器是 html（顶部 html, body { overflow: auto }），只锁 body 不起作用 */
html.acpDrawerOpen,
html.acpDrawerOpen body {
  overflow: hidden;
}

@media (max-width: 960px) {
  .acpMetrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 查询与反馈审计 */
#assistantAuditFilters { flex-wrap: wrap; justify-content: flex-start; margin-block: 16px; }
#assistantAuditFilters input { border: 1px solid #d5dbe4; border-radius: 8px; padding: 9px; font: inherit; }
.assistantAuditQuery { min-width: 180px; max-width: 320px; white-space: normal; overflow-wrap: anywhere; }
.assistantAuditDetail { width: min(840px, calc(100vw - 32px)); max-height: 85vh; box-sizing: border-box; overflow: auto; border: 1px solid #d5dbe4; border-radius: 16px; padding: 24px; color: #243140; background: #fff; }
.assistantAuditDetail::backdrop { background: rgb(20 30 45 / 35%); }
.assistantAuditDetail label { display: grid; gap: 8px; margin: 12px 0; }
.assistantAuditDetail pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; background:#f4f6f9; padding:12px; border-radius:8px; }
.assistantAuditDetail textarea,.assistantAuditDetail select { font: inherit; padding: 10px; border:1px solid #d5dbe4; border-radius:8px; }
#assistantUsagePeople { white-space: nowrap; }

/* Pilot capabilities stay hidden until confirmed by the server. */
[data-admin-section="activity"][hidden] { display: none !important; }

/* Assistant permissions share the existing role and employee editors. */
.assistantSettingsChecks { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.roleRuleRow { grid-template-areas: "role checks" "role primary" "role assistant"; }
.ruleAssistantChecks { grid-area: assistant; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; border-top: 1px solid #d7e6e1; }
.ruleAssistantChecks small, .assistantEmployeeControls small, .assistantAccessSummary small { display: block; flex-basis: 100%; color: #647b74; line-height: 1.5; }
.ruleWorkbenchCheck:has(input:disabled) { opacity: .62; cursor: default; }
.assistantEmployeeControls { display: grid; gap: 10px; padding: 12px 0; border-top: 1px solid #d7e6e1; }
.assistantEmployeeControls label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.assistantEmployeeControls select { max-width: 100%; min-width: 170px; padding: 8px; border: 1px solid #c7d9d3; border-radius: 8px; background: white; }
.assistantAccessSummary { min-width: 160px; }
.assistantAccessSummary .tag { display: block; width: fit-content; margin-bottom: 4px; }
@media (max-width: 760px) { .roleRuleRow { grid-template-areas: "role checks" "role primary" "role assistant"; } }

/* Source controls retain the house style and distinguish unavailable phases. */
#hospitalSourceCard button:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
