:root {
  --ui-brand: #0b5c4d;
  --ui-brand-strong: #07463b;
  --ui-brand-soft: #e8f3ef;
  --ui-ink: #17221f;
  --ui-muted: #66756f;
  --ui-line: #dce5e1;
  --ui-canvas: #f3f6f4;
  --ui-surface: #fff;
  --ui-radius: 14px;
  --ui-shadow: 0 8px 26px rgba(20, 53, 43, .07);
}

body { color: var(--ui-ink); background: var(--ui-canvas); }
button, input, select, textarea { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(11, 92, 77, .22);
  outline-offset: 2px;
}

.side {
  width: 236px;
  border-right: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, #0d2940 0%, #102a3d 50%, #0b2538 100%);
  box-shadow: 8px 0 30px rgba(9, 33, 50, .08);
}
.main { margin-left: 236px; }
.brand { height: 78px; padding: 14px 16px; }
.brand .seal.brand-logo {
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 3px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 18, 32, .24);
}
.brand .seal.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand b { font-size: 15px; letter-spacing: .02em; }
.brand small { color: #9fb4c6; }

.nav-search-wrap { padding: 12px 10px 2px; }
.nav-search-box {
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9eb2c3;
  background: rgba(255, 255, 255, .06);
}
.nav-search-box:focus-within { border-color: rgba(111, 209, 183, .55); background: rgba(255, 255, 255, .1); }
.nav-search-box span { font-size: 15px; }
.nav-search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 12px;
}
.nav-search-box input::placeholder { color: #91a6b8; }
.nav-search-empty { margin: 10px; padding: 12px; border-radius: 10px; color: #9fb2c2; background: rgba(255,255,255,.05); font-size: 12px; text-align: center; }
.nav-search-empty.hidden, .global-busy.hidden { display: none !important; }
.nav-group.search-open > .nav-children { display: block; }
.nav-direct, .nav-group-toggle { min-height: 44px; }
.nav a, .nav-group-toggle { transition: color .16s ease, background .16s ease, transform .16s ease; }
.nav a:hover, .nav-group-toggle:hover { transform: translateX(2px); }
.nav a.active { background: linear-gradient(90deg, rgba(44, 132, 191, .34), rgba(44, 132, 191, .12)); }

.top {
  position: sticky;
  z-index: 8;
  top: 0;
  height: 66px;
  border-bottom-color: rgba(205, 218, 213, .85);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 5px 20px rgba(25, 52, 44, .035);
  backdrop-filter: blur(14px);
}
.top > b { font-size: 15px; letter-spacing: .01em; }
.workspace-context-strip { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 26px; border-bottom: 1px solid #dce9e5; color: #1f5d4f; background: #eef8f4; }
.workspace-context-strip > span:nth-child(2) { display: grid; gap: 1px; min-width: 0; }
.workspace-context-strip small { color: #6c8c84; font-size: 10px; line-height: 1.3; }
.workspace-context-strip b { overflow: hidden; color: #1b5b4d; font-size: 12px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.workspace-context-mark { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: #fff; background: #18846c; font-size: 14px; }
.workspace-context-strip a { margin-left: auto; padding: 5px 9px; border: 1px solid #a9d1c5; border-radius: 6px; color: #18715e; font-size: 11px; text-decoration: none; white-space: nowrap; }
.workspace-context-strip a:hover, .workspace-context-strip a:focus-visible { background: #fff; outline: none; }
.account-tools { gap: 10px; }
.account-name { padding: 6px 10px; border-radius: 9px; color: #4e615a; background: #f1f5f3; font-size: 12px; }
.content { width: min(100%, 1680px); margin: 0 auto; padding: 26px 30px 40px; }
.title,
.page-heading .title {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: 0;
}
.title:has(.current-version-badge) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  letter-spacing: 0;
}
.current-version-badge {
  display: inline-block;
  max-width: min(100%, 760px);
  box-sizing: border-box;
  min-width: 0;
  letter-spacing: 0;
  padding: 5px 10px;
  border: 1px solid #b9dfd1;
  border-radius: 7px;
  color: #176b55;
  background: #effaf5;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.subtitle { display: none !important; }
.metric-status { display: block; margin-top: 5px; color: #277660; font-size: 10px; font-weight: 700; }

.panel {
  border-color: var(--ui-line);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
}
.cards { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.card {
  min-height: 104px;
  border: 1px solid var(--ui-line);
  border-right: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  box-shadow: inset 0 3px 0 #2c7fb3, 0 5px 18px rgba(19, 48, 39, .045);
}
.card span { color: var(--ui-muted); }
.card b { color: #163a4b; font-size: 27px; }

.btn {
  min-height: 40px;
  border: 1px solid #d7e0dc;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 650;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(21, 55, 44, .1); }
.btn:disabled { cursor: not-allowed; opacity: .48; }
.btn.primary { border-color: var(--ui-brand); background: var(--ui-brand); }
.btn.success { border-color: #168a63; }
.btn.link { min-height: 36px; border-color: transparent; box-shadow: none; }
.field { min-height: 42px; border-color: #cedad5; border-radius: 9px; }
.field:focus { border-color: var(--ui-brand); box-shadow: 0 0 0 3px rgba(11, 92, 77, .11); }

.table-wrap { border-radius: 11px; }
th { color: #53655f; background: #f5f8f7; font-weight: 700; }
tr:hover td { background: #f5faf8; }
.dialog { border: 1px solid rgba(210, 222, 217, .8); border-radius: 18px; box-shadow: 0 28px 80px rgba(12, 35, 28, .24); }
.dialog-head { gap: 18px; }
.dialog-head h2 { margin-bottom: 5px; }
.modal { background: rgba(7, 25, 20, .5); backdrop-filter: blur(3px); }
.notice, .data-quality-note, .rule-note { border-radius: 11px; }

.global-busy {
  position: fixed;
  z-index: 200;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  color: var(--ui-ink);
  background: rgba(7, 26, 20, .58);
  backdrop-filter: blur(5px);
}
.global-busy-card { width: min(440px, 100%); padding: 28px; border-radius: 20px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.25); text-align: center; }
.global-busy-spinner { width: 42px; height: 42px; margin: 0 auto 18px; border: 4px solid #d8e8e2; border-top-color: var(--ui-brand); border-radius: 50%; animation: ui-spin .8s linear infinite; }
.global-busy-card h2 { margin: 0; font-size: 20px; }
.global-busy-card p { margin: 9px 0 0; color: var(--ui-muted); font-size: 13px; line-height: 1.65; }
@keyframes ui-spin { to { transform: rotate(360deg); } }

.publish-result { width: 560px; }
.publish-result-mark { width: 54px; height: 54px; margin-bottom: 16px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--ui-brand); font-size: 28px; font-weight: 900; }
.publish-result-grid { margin: 20px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.publish-result-grid div { padding: 14px; border: 1px solid var(--ui-line); border-radius: 12px; background: #f8faf9; }
.publish-result-grid span, .publish-result-grid b { display: block; }
.publish-result-grid span { color: var(--ui-muted); font-size: 12px; }
.publish-result-grid b { margin-top: 6px; font-size: 21px; }

.top-command-trigger {
  width: min(320px, 25vw);
  min-height: 38px;
  margin: 0 auto 0 28px;
  padding: 0 10px;
  border: 1px solid #d8e3df;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6c7c76;
  background: #f6f8f7;
  cursor: pointer;
}
.top-command-trigger:hover { border-color: #a7c7bc; background: #fff; }
.top-command-trigger b { flex: 1; text-align: left; font-size: 12px; font-weight: 500; }
.top-command-trigger kbd, .home-command-trigger kbd {
  padding: 2px 6px;
  border: 1px solid #d5dfdb;
  border-bottom-width: 2px;
  border-radius: 6px;
  color: #697a74;
  background: #fff;
  font: 10px/1.45 "Microsoft YaHei", sans-serif;
}

.home-hero {
  min-height: 154px;
  margin-bottom: 16px;
  padding: 27px 30px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  position: relative;
  color: #fff;
  background: linear-gradient(125deg, #0a4c43 0%, #0e6d5d 58%, #198b75 100%);
  box-shadow: 0 18px 44px rgba(9, 70, 59, .16);
}
.home-hero::after {
  content: "";
  width: 280px;
  height: 280px;
  position: absolute;
  right: 14%;
  top: -185px;
  border: 38px solid rgba(255, 255, 255, .065);
  border-radius: 50%;
}
.home-hero-copy, .home-hero-actions { position: relative; z-index: 1; }
.home-hero-copy > span { color: #bce1d8; font-size: 12px; }
.home-hero h1 { margin: 8px 0 7px; font-size: 28px; letter-spacing: -.035em; }
.home-hero p { margin: 0; color: #d5ece6; font-size: 13px; }
.home-hero-actions { display: flex; align-items: stretch; gap: 9px; }
.home-command-trigger, .home-mobile-trigger {
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 13px;
  color: #17362f;
  background: #fff;
  box-shadow: 0 12px 28px rgba(1, 44, 36, .18);
  cursor: pointer;
}
.home-command-trigger { width: 270px; padding: 0 12px; display: flex; align-items: center; gap: 9px; }
.home-command-trigger b { flex: 1; text-align: left; font-size: 12px; }
.home-mobile-trigger { min-width: 84px; padding: 0 14px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.home-mobile-trigger span { color: var(--ui-brand); }
.home-mobile-trigger b { font-size: 12px; }

.home-primary-grid { margin-bottom: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-primary-card {
  min-height: 118px;
  padding: 17px 18px;
  border: 1px solid var(--ui-line);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  color: var(--ui-ink);
  background: #fff;
  box-shadow: var(--ui-shadow);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.home-primary-card:hover { transform: translateY(-2px); border-color: #9cc8ba; box-shadow: 0 12px 30px rgba(19, 75, 58, .1); }
.home-primary-card > span { color: var(--ui-muted); font-size: 12px; }
.home-primary-card strong { margin: 7px 0 6px; color: #173e36; font-size: 29px; line-height: 1; }
.home-primary-card small { width: 100%; display: flex; justify-content: space-between; color: #82908b; font-size: 11px; }
.home-primary-card small i { color: var(--ui-brand); font-size: 16px; font-style: normal; }

.home-main-grid { margin-bottom: 16px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(310px, .8fr); gap: 16px; align-items: stretch; }
.home-main-grid .panel { margin: 0; padding: 20px; }
.home-section-head { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.home-section-head span { color: #83908c; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.home-section-head h2 { margin: 3px 0 0; font-size: 18px; }
.home-section-head > button { border: 0; color: var(--ui-brand); background: transparent; font-size: 12px; cursor: pointer; }
.home-task-total { padding: 6px 10px; border-radius: 999px; color: #8a6517; background: #fff4d7; font-size: 12px; }
.home-task-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.home-task {
  min-height: 66px;
  padding: 10px 11px;
  border: 1px solid #e1e8e5;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 9px;
  text-align: left;
  color: var(--ui-ink);
  background: #fbfcfc;
  cursor: pointer;
}
.home-task:hover { border-color: #a7c9be; background: #f5faf8; }
.home-task-mark { width: 7px; height: 7px; border-radius: 50%; background: #3a927a; box-shadow: 0 0 0 4px #e5f3ee; }
.home-task.warning .home-task-mark { background: #d99420; box-shadow: 0 0 0 4px #fff2d8; }
.home-task.danger .home-task-mark { background: #d45050; box-shadow: 0 0 0 4px #fde9e9; }
.home-task-copy b, .home-task-copy small, .home-task-copy em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-task-copy b { font-size: 13px; }
.home-task-copy small { margin-top: 4px; color: #7d8b86; font-size: 10px; }
.home-task-copy em { margin-top: 4px; color: #a96c0b; font-size: 9px; font-style: normal; font-weight: 800; }
.home-task strong { min-width: 29px; color: #174c40; font-size: 18px; text-align: right; }
.home-task i { color: #9caaa5; font-size: 20px; font-style: normal; }
.home-clear-state { min-height: 138px; padding: 22px; border: 1px dashed #cfe0da; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 13px; color: #48655c; background: #f8fbfa; }
.home-clear-state > span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #2f8b70; font-weight: 900; }
.home-clear-state b, .home-clear-state small { display: block; }
.home-clear-state small { margin-top: 5px; color: #81908b; }

.home-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.home-quick-link { min-height: 64px; padding: 10px; border: 1px solid #e2e9e6; border-radius: 12px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 10px; align-items: center; gap: 8px; color: var(--ui-ink); background: #fff; cursor: pointer; text-align: left; }
.home-quick-link:hover { border-color: #9fc8ba; background: #f6faf8; }
.home-quick-link > span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #116653; background: #e7f3ef; font-size: 11px; font-weight: 800; }
.home-quick-link b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.home-quick-link i { color: #9caaa5; font-style: normal; }

.home-details { margin: 0 0 14px; padding: 0; overflow: visible; }
.home-details > summary { min-height: 70px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; list-style: none; cursor: pointer; }
.home-details > summary::-webkit-details-marker { display: none; }
.home-details > summary span b, .home-details > summary span small { display: block; }
.home-details > summary span b { font-size: 15px; }
.home-details > summary span small { margin-top: 5px; color: var(--ui-muted); font-size: 11px; }
.home-details > summary > i { color: var(--ui-brand); font-size: 12px; font-style: normal; }
.home-details[open] > summary { border-bottom: 1px solid var(--ui-line); }
.home-details[open] > summary > i { font-size: 0; }
.home-details[open] > summary > i::after { content: "收起"; font-size: 12px; }
.home-detail-body { padding: 4px 20px 18px; }
.home-detail-body > section > h3 { margin: 18px 0 6px; color: #52645e; font-size: 13px; }
.home-compact-kpis { margin: 8px 0 4px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.home-compact-kpis .phase3-kpi { min-height: 86px; padding: 13px; border-radius: 11px; box-shadow: none; }
.home-compact-kpis .phase3-kpi b { font-size: 20px; }
.home-insights { padding: 18px 20px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home-insights > section { min-width: 0; padding: 15px; border: 1px solid #e5ece9; border-radius: 13px; background: #fbfcfc; }
.home-insights h3 { margin: 0 0 12px; font-size: 13px; }

.ui-toast-region { width: min(410px, calc(100vw - 32px)); position: fixed; z-index: 500; top: 18px; right: 18px; display: grid; gap: 9px; pointer-events: none; }
.ui-toast { min-height: 56px; padding: 11px 11px 11px 13px; border: 1px solid #d9e5e0; border-left: 4px solid #397e6c; border-radius: 12px; display: grid; grid-template-columns: 10px minmax(0, 1fr) 28px; align-items: start; gap: 9px; color: #243a33; background: #fff; box-shadow: 0 16px 42px rgba(15, 53, 41, .18); pointer-events: auto; animation: ui-toast-in .2s ease-out; }
.ui-toast.leaving { opacity: 0; transform: translateX(10px); transition: .18s ease; }
.ui-toast.error { border-left-color: #c84d4d; }
.ui-toast.warning { border-left-color: #d18b24; }
.ui-toast.success { border-left-color: #238164; }
.ui-toast-mark { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #397e6c; }
.ui-toast.error .ui-toast-mark { background: #c84d4d; }
.ui-toast.warning .ui-toast-mark { background: #d18b24; }
.ui-toast.success .ui-toast-mark { background: #238164; }
.ui-toast p { margin: 0; color: #344b43; font-size: 12px; line-height: 1.65; white-space: pre-line; }
.ui-toast button { width: 28px; height: 28px; border: 0; border-radius: 8px; color: #7e8d88; background: transparent; cursor: pointer; }
@keyframes ui-toast-in { from { opacity: 0; transform: translateY(-8px); } }

.ui-confirm-layer, .mobile-entry-layer, .command-palette { position: fixed; z-index: 400; inset: 0; padding: 22px; display: grid; place-items: center; background: rgba(5, 27, 21, .58); backdrop-filter: blur(5px); }
.ui-confirm-card { width: min(470px, 100%); padding: 26px; border-radius: 20px; color: var(--ui-ink); background: #fff; box-shadow: 0 30px 90px rgba(0, 0, 0, .26); text-align: center; }
.ui-confirm-icon { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--ui-brand); font-size: 20px; font-weight: 900; }
.ui-confirm-icon.danger { background: #c84f4f; }
.ui-confirm-card h2 { margin: 0; font-size: 19px; }
.ui-confirm-card p { margin: 11px 0 22px; color: var(--ui-muted); font-size: 12px; line-height: 1.75; white-space: pre-line; }
.ui-confirm-card > div:last-child { display: flex; justify-content: center; gap: 9px; }
.btn.danger { border-color: #bd4747; color: #fff; background: #bd4747; }

.login-mobile-entry { min-height: 94px; margin-top: 17px; padding: 10px; border: 1px solid #e0e7e4; border-radius: 13px; display: flex; align-items: center; gap: 12px; color: #263c35; background: #f7faf9; }
.login-mobile-entry img, .login-mobile-entry-placeholder { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 9px; background: #e5ece9; object-fit: contain; cursor: pointer; }
.login-mobile-entry-placeholder { position: relative; overflow: hidden; }
.login-mobile-entry-placeholder::after { content: ""; width: 32px; height: 100%; position: absolute; left: -40px; top: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent); animation: qr-loading 1.2s infinite; }
@keyframes qr-loading { to { left: 90px; } }
.login-mobile-entry b, .login-mobile-entry small { display: block; }
.login-mobile-entry small { margin-top: 4px; color: #74837e; font-size: 11px; line-height: 1.5; }
.login-mobile-entry button { margin-top: 6px; padding: 0; border: 0; color: var(--ui-brand); background: transparent; font-size: 11px; cursor: pointer; }
.login-mobile-entry-error { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: #c34c4c; font-weight: 900; }
.mobile-entry-card { width: min(430px, 100%); padding: 28px; border-radius: 22px; position: relative; color: var(--ui-ink); background: #fff; box-shadow: 0 34px 100px rgba(0,0,0,.28); text-align: center; }
.mobile-entry-close { width: 36px; height: 36px; position: absolute; top: 14px; right: 14px; border: 0; border-radius: 11px; color: #65756f; background: #eef3f1; cursor: pointer; font-size: 20px; }
.mobile-entry-kicker { color: var(--ui-brand); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.mobile-entry-card h2 { margin: 8px 0 6px; font-size: 21px; }
.mobile-entry-card > p { margin: 0 0 13px; color: var(--ui-muted); font-size: 12px; }
.mobile-entry-card > img { width: 220px; height: 220px; padding: 7px; border: 1px solid #e2e9e6; border-radius: 15px; background: #fff; object-fit: contain; }
.mobile-entry-card > code { margin: 12px 0; padding: 9px; border-radius: 9px; display: block; overflow-wrap: anywhere; color: #365047; background: #f2f6f4; font-size: 11px; }
.mobile-entry-actions { display: flex; justify-content: center; gap: 9px; }
.mobile-entry-actions a { text-decoration: none; }
.mobile-entry-card > small { margin-top: 13px; display: block; color: #8a6c2a; font-size: 10px; }
.mobile-entry-loading { padding: 40px 10px 20px; color: var(--ui-muted); font-size: 12px; }

.command-palette.hidden { display: none; }
.command-palette { place-items: start center; padding-top: min(14vh, 120px); }
.command-card { width: min(680px, 100%); max-height: min(72vh, 650px); border: 1px solid rgba(255,255,255,.16); border-radius: 19px; display: flex; flex-direction: column; overflow: hidden; color: var(--ui-ink); background: #fff; box-shadow: 0 35px 100px rgba(0,0,0,.3); }
.command-card > header { min-height: 63px; padding: 0 17px; border-bottom: 1px solid var(--ui-line); display: flex; align-items: center; gap: 11px; }
.command-card > header > span { color: var(--ui-brand); font-size: 21px; }
.command-card input { flex: 1; min-width: 0; border: 0; color: #21352f; background: transparent; font-size: 15px; }
.command-card kbd { padding: 3px 7px; border: 1px solid #d5dfdb; border-bottom-width: 2px; border-radius: 7px; color: #75847f; background: #f7f9f8; font-size: 10px; }
.command-hint { padding: 11px 17px 5px; display: flex; align-items: center; justify-content: space-between; }
.command-hint span { color: #52655e; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.command-hint small { color: #8a9893; font-size: 10px; }
.command-results { min-height: 140px; padding: 4px 9px 12px; overflow: auto; }
.command-group h3 { margin: 9px 8px 5px; color: #8a9792; font-size: 10px; font-weight: 700; }
.command-result { width: 100%; min-height: 54px; padding: 7px 10px; border: 0; border-radius: 11px; display: grid; grid-template-columns: 36px minmax(0, 1fr) 12px; align-items: center; gap: 10px; text-align: left; color: var(--ui-ink); background: transparent; cursor: pointer; }
.command-result:hover, .command-result.selected { background: #edf6f2; }
.command-result-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #176653; background: #deefe9; font-size: 12px; font-weight: 800; }
.command-result.person .command-result-icon { color: #255a78; background: #e4f0f7; }
.command-result b, .command-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-result b { font-size: 13px; }
.command-result small { margin-top: 3px; color: #80908a; font-size: 10px; }
.command-result i { color: #9ca9a5; font-style: normal; font-size: 18px; }
.command-searching, .command-person-tip, .command-empty { margin: 9px; padding: 15px; border-radius: 11px; color: #74847e; background: #f5f8f7; font-size: 11px; text-align: center; }
.command-searching span { width: 9px; height: 9px; margin-right: 7px; border: 2px solid #bad1c9; border-top-color: var(--ui-brand); border-radius: 50%; display: inline-block; animation: ui-spin .7s linear infinite; }
.command-empty b, .command-empty span { display: block; }
.command-empty span { margin-top: 4px; }
.command-card > footer { min-height: 37px; padding: 0 16px; border-top: 1px solid var(--ui-line); display: flex; align-items: center; gap: 17px; color: #8a9893; background: #fafbfb; font-size: 9px; }

.table-preference-bar { min-height: 38px; padding: 5px 3px 5px 9px; border-bottom: 1px solid #e5ebe8; display: flex; align-items: center; justify-content: flex-end; gap: 7px; color: #7b8a85; background: #fafcfb; font-size: 10px; position: relative; }
.table-preference-bar > button, .table-preference-bar summary { min-height: 28px; padding: 0 9px; border: 1px solid #d9e2df; border-radius: 8px; display: flex; align-items: center; color: #4f645d; background: #fff; cursor: pointer; font-size: 10px; list-style: none; }
.table-preference-bar summary::-webkit-details-marker { display: none; }
.table-preference-bar details { position: relative; }
.table-column-menu { width: 220px; max-height: 330px; padding: 9px; border: 1px solid #d9e4df; border-radius: 11px; display: grid; gap: 3px; overflow: auto; position: absolute; z-index: 12; right: 0; top: 34px; background: #fff; box-shadow: 0 18px 50px rgba(18, 55, 43, .18); }
.table-column-menu label { min-height: 34px; padding: 0 7px; border-radius: 7px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.table-column-menu label:hover { background: #f1f7f4; }
.table-column-menu input { accent-color: var(--ui-brand); }
.table-reset-button { min-height: 32px; margin-top: 5px; border: 0; border-radius: 8px; color: var(--ui-brand); background: #eaf4f0; cursor: pointer; font-size: 10px; }
.table-column-hidden { display: none !important; }
table.table-density-compact th, table.table-density-compact td { padding-top: 6px !important; padding-bottom: 6px !important; }
table.table-density-compact { font-size: 12px; }

.operations-grid { margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 13px; }
.health-card { min-height: 126px; padding: 18px; border: 1px solid #dfe8e4; border-radius: 15px; display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 12px; color: var(--ui-ink); background: #fff; box-shadow: 0 8px 24px rgba(24, 62, 50, .05); }
.health-dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #2e9677; box-shadow: 0 0 0 5px #e5f4ef; }
.health-card.warning .health-dot { background: #d39427; box-shadow: 0 0 0 5px #fff2d9; }
.health-card.danger .health-dot { background: #c44d4d; box-shadow: 0 0 0 5px #fde7e7; }
.health-card small, .health-card strong, .health-card p { display: block; }
.health-card small { color: #7c8c86; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.health-card strong { margin-top: 8px; font-size: 18px; }
.health-card p { margin: 8px 0 0; color: #75847f; font-size: 10px; line-height: 1.55; }
.operations-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.operation-detail-card { min-width: 0; padding: 20px; }
.operation-card-head { min-height: 48px; margin-bottom: 13px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.operation-card-head span { color: #26745f; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.operation-card-head h2 { margin: 5px 0 0; font-size: 16px; }
.operation-card-actions { display: flex; align-items: center; gap: 7px; }
.operation-detail-card dl { margin: 0; border-top: 1px solid #e6ece9; border-left: 1px solid #e6ece9; display: grid; grid-template-columns: 1fr 1fr; }
.operation-detail-card dl > div { min-height: 68px; padding: 11px 13px; border-right: 1px solid #e6ece9; border-bottom: 1px solid #e6ece9; }
.operation-detail-card dl > div.wide { grid-column: 1 / -1; }
.operation-detail-card dt { margin-bottom: 7px; color: #82908b; font-size: 9px; }
.operation-detail-card dd { margin: 0; color: #30463e; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.operation-url { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.operation-status { padding: 3px 9px; border-radius: 99px; color: #197258; background: #e4f4ee; font-size: 10px; }
.operation-status.warning { color: #976113; background: #fff0d5; }
.operation-status.danger { color: #aa3838; background: #fde6e6; }
.operation-wide-card { grid-column: 1 / -1; }
.operation-readiness { padding: 6px 10px; border-radius: 9px; color: #176b55; background: #e3f3ed; font-size: 10px; font-weight: 800; }
.operation-readiness.warning { color: #946214; background: #fff0d5; }
.security-check-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 9px; }
.security-check { min-height: 82px; padding: 13px; border: 1px solid #e2e9e6; border-radius: 12px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; background: #fbfcfc; }
.security-check > span { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: #d09127; font-size: 12px; font-weight: 900; }
.security-check.passed > span { background: #2b8c6f; }
.security-check b { color: #344b43; font-size: 12px; }
.security-check p { margin: 5px 0 0; color: #7b8984; font-size: 10px; line-height: 1.55; }
.operation-security-note { margin: 13px 0 0; }
.operations-panel { padding: 17px; }
.operation-filters .field { min-width: 135px; }
.operation-filters #auditSearch { min-width: 230px; }
.operation-range-separator { color: #84918d; font-size: 11px; }
.operation-count { margin-left: auto; color: #65756f; font-size: 11px; font-weight: 800; }
.operation-privacy-note { margin-bottom: 14px; }
.operation-table-wrap { overflow-x: auto; }
.operation-table-wrap table { min-width: 1080px; }
.operation-table-wrap th:nth-child(1) { width: 148px; }
.operation-table-wrap th:nth-child(5) { width: 250px; }
.operation-table-wrap th:nth-child(6) { width: 210px; }
.operation-badge { padding: 3px 8px; border-radius: 99px; display: inline-flex; color: #176653; background: #e4f2ed; font-size: 10px; font-weight: 800; }
.audit-object-id { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-fields { display: flex; flex-wrap: wrap; gap: 4px; }
.audit-fields span { padding: 2px 6px; border-radius: 6px; color: #4e625b; background: #f0f4f2; font-size: 9px; }
.audit-fields .audit-sensitive-hidden { color: #986714; background: #fff1d7; }
.operation-page { padding: 9px; color: #71817b; font-size: 11px; }
.pager .btn:disabled { opacity: .45; cursor: not-allowed; }

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

@media (max-width: 1260px) {
  .top-command-trigger { width: 210px; }
  .home-main-grid { grid-template-columns: minmax(0, 1.35fr) minmax(290px, .8fr); }
  .home-task-list { grid-template-columns: 1fr; }
  .home-insights { grid-template-columns: 1fr 1fr; }
  .home-insights > section:first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
 .roster-source-file { display: inline-block; margin-left: 12px; padding: 5px 10px; border: 1px solid #cbd5e1; border-radius: 6px; color: #334155; background: #f8fafc; font-size: 14px; font-weight: 500; vertical-align: middle; }
 @media (max-width: 700px) { .roster-source-file { display: block; width: fit-content; margin: 8px 0 0; font-size: 13px; } }
/* Context is kept visible after entering a privileged workspace so the active
   authorization is clear when users move between personnel and dashboards. */
.workspace-context-strip{display:flex;align-items:center;gap:10px;margin:0;padding:9px 22px;border-bottom:1px solid #dce5e2;background:#f7fbf9;color:#2b4a43;font-size:12px;line-height:1.4}
.workspace-context-strip>span:nth-child(2){display:grid;gap:1px;min-width:0}
.workspace-context-strip small{color:#6b817a;font-size:10px}
.workspace-context-strip b{font-size:13px;color:#173d35}
.workspace-context-strip a{margin-left:auto;color:#0a7566;text-decoration:none;white-space:nowrap}
.workspace-context-mark{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#dff2ec;color:#087764;font-size:14px}
@media(max-width:600px){.workspace-context-strip{padding:8px 14px}.workspace-context-strip a{font-size:11px}}
