.access-hidden { display: none !important; }

/* Unified sidebar hierarchy and disclosure treatment. */
.sidebar {
  border-right: 1px solid rgba(102, 163, 188, .16);
  background: linear-gradient(180deg, #111f34 0%, #0d1b2f 54%, #0a1729 100%);
}

.system-title {
  padding: 16px 14px 14px;
  border-bottom-color: rgba(142, 190, 211, .16);
  background: rgba(5, 16, 31, .2);
}

.system-title strong { margin-bottom: 4px; letter-spacing: .015em; }
.system-title span { color: #aebdd0; font-size: 12px; }
.module-menu { padding: 8px 8px 24px; }
.module-menu > :is(.database-nav-group, .system-monitor-nav-group) { margin: 0 0 4px; }
.module-menu > :is(.database-nav-group, .system-monitor-nav-group) > .module-item.database-module-item {
  position: relative;
  min-height: 40px;
  margin: 0;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #dce7f3;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
.module-menu > :is(.database-nav-group, .system-monitor-nav-group) > .module-item.database-module-item:hover {
  border-color: rgba(111, 199, 201, .22);
  background: rgba(255, 255, 255, .045);
  color: #fff;
}
.module-menu > :is(.database-nav-group, .system-monitor-nav-group).active > .module-item.database-module-item,
.module-menu > :is(.database-nav-group, .system-monitor-nav-group) > .module-item.database-module-item.active {
  border-color: rgba(63, 207, 198, .34);
  background: linear-gradient(90deg, rgba(15, 143, 140, .92), rgba(15, 143, 140, .62));
  color: #fff;
  box-shadow: inset 3px 0 0 #50d1ca;
}
.module-menu > :is(.database-nav-group, .system-monitor-nav-group) > .database-nav-domains {
  margin: 2px 0 7px 13px;
  padding: 2px 0 2px 10px;
  border-left-color: rgba(115, 168, 190, .25);
}
.module-menu > :is(.database-nav-group, .system-monitor-nav-group) > .database-nav-domains > .database-nav-domain,
.module-menu > :is(.database-nav-group, .system-monitor-nav-group) > .database-nav-domains > .database-nav-domain-group > .database-nav-domain {
  min-height: 31px;
  margin: 1px 0;
  padding: 5px 7px;
  border-radius: 4px;
  color: #becde0;
  font-size: 12px;
  line-height: 1.3;
}
.module-menu > :is(.database-nav-group, .system-monitor-nav-group) > .database-nav-domains .database-nav-domain:hover {
  background: rgba(255, 255, 255, .055);
  color: #f7fbff;
}
#moduleMenu .database-nav-domain,
#moduleMenu .database-nav-domain > span:first-child,
#moduleMenu .system-monitor-subnav-item {
  font-size: 14px;
}
.module-menu > :is(.database-nav-group, .system-monitor-nav-group) > .database-nav-domains .database-nav-domain.active {
  border-color: rgba(55, 204, 196, .34);
  background: rgba(12, 116, 116, .32);
  color: #fff;
}
.module-menu .database-nav-toggle {
  width: 18px;
  height: 18px;
  border-color: rgba(169, 210, 224, .48);
  color: #b9d6df;
}
.primary-nav-chevron {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(0deg);
  transition: transform 160ms ease;
}
.module-item[aria-expanded="false"] .primary-nav-chevron { transform: rotate(-90deg); }
.primary-nav-group-collapsed > .database-nav-domains { display: none !important; }

body.module-system-intro .main-view,
body.module-system-intro main.content {
  min-width: 0;
}

body.module-system-intro .main-view {
  min-height: 100vh;
  min-height: 100dvh;
}

body.module-system-intro main.content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  justify-self: stretch;
  align-self: stretch;
}

body.module-system-intro #systemIntroView { flex: 1 1 auto; }

.access-page {
  min-width: 0;
  min-height: 100vh;
  padding: 18px 20px 28px;
  background: #f3f7fb;
  color: #10243f;
}

#personnelPermissionsView {
  padding: 10px 12px 18px;
}

.access-eyebrow,
.intro-detail-nav > div > span {
  display: block;
  margin-bottom: 5px;
  color: #0f8f8c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.access-panel-title h3,
.intro-detail-nav h3,
.intro-detail-content h2,
.feedback-card h3 { margin: 0; color: #10243f; }
.access-panel-title p { margin: 5px 0 0; color: #61738b; }

.access-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.access-page .primary-btn,
.access-page .secondary-btn {
  width: auto;
  min-width: 72px;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 14px;
  white-space: nowrap;
}
.access-actions .primary-btn,
.access-actions .secondary-btn,
.feedback-submit-panel .primary-btn,
.feedback-reply-form .primary-btn { width: auto; min-width: 104px; }

.access-status {
  min-height: 24px;
  color: #0f766e;
  font-size: 14px;
}

#accessPermissionMessage:empty { display: none; }
#accessPermissionMessage:not(:empty) { margin-bottom: 8px; }

.permission-workspace {
  display: grid;
  grid-template-columns: clamp(320px, 21vw, 390px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.permission-directory,
.permission-matrix-panel,
.permission-log-panel,
.feedback-submit-panel,
.feedback-log-panel,
.intro-detail-nav,
.intro-detail-content {
  border: 1px solid #d2dfeb;
  background: #fff;
}

.permission-directory {
  position: sticky;
  top: 8px;
  max-height: calc(100vh - 102px);
  overflow: hidden;
}

.permission-directory .personnel-org-tree {
  max-height: calc(100vh - 205px);
  min-height: 0;
}

.permission-directory .permission-org-node.active {
  border: 1px solid #79c5c1;
  background: #e9f7f6;
  color: #075f5d;
}

.access-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #dce5ee;
}

.access-panel-title > span {
  padding: 3px 8px;
  border: 1px solid #a9d8d5;
  background: #eaf8f7;
  color: #087f7b;
  font-weight: 800;
  font-size: 12px;
}

.permission-directory-title h3,
.permission-matrix-title h3,
.permission-log-title h3 { font-size: 17px; }
.permission-matrix-title p { margin-top: 3px; font-size: 12px; }
.permission-matrix-title { align-items: flex-start; justify-content: flex-start; flex-wrap: wrap; }
.permission-matrix-actions { align-items: center; flex-wrap: wrap; }
.permission-matrix-actions .primary-btn,
.permission-matrix-actions .secondary-btn { min-width: 96px; padding: 0 12px; }

.permission-select-all,
.access-tree-node,
.access-tree-member {
  width: calc(100% - 16px);
  margin: 4px 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #263c58;
  text-align: left;
  cursor: pointer;
}

.permission-select-all {
  margin-top: 6px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 700;
}

.access-tree-node {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding: 6px 8px 6px calc(8px + var(--tree-depth, 0) * 10px);
  font-size: 12px;
}

.access-tree-member {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px calc(8px + var(--tree-depth, 0) * 10px);
  font-size: 12px;
}

.access-tree-member > .access-member-avatar {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #e6f5f4;
  color: #087f7b;
  font-size: 12px;
}

.access-member-identity {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 4px;
}
.access-member-identity strong { overflow: hidden; text-overflow: ellipsis; font-size: 11px; font-weight: 650; white-space: nowrap; }
.access-member-identity small { flex: 0 0 auto; font-size: 10px; }
.access-tree-node > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.access-tree-node > small {
  min-width: 2.5ch;
  justify-self: end;
  text-align: right;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.access-tree-level-1,
.access-tree-level-2 { font-size: 12.5px; font-weight: 750; color: #17324f; }
.access-tree-level-3 { font-size: 12px; font-weight: 700; color: #284663; }
.access-tree-level-4 { font-size: 12px; font-weight: 750; color: #087f7b; }
.access-tree-level-5 { font-size: 11.5px; font-weight: 650; color: #38536d; }

.access-tree-node small,
.access-tree-member small { color: #73849a; }
.permission-select-all:hover,
.access-tree-node:hover,
.access-tree-member:hover,
.permission-select-all.active,
.access-tree-node.active,
.access-tree-member.active {
  border-color: #79c5c1;
  background: #e9f7f6;
  color: #075f5d;
}

.permission-matrix-panel { min-width: 0; }
.permission-matrix-scroll { max-width: 100%; overflow: auto; }
.permission-matrix-panel .permission-matrix-scroll {
  max-height: calc(100vh - 92px);
  max-height: calc(100dvh - 92px);
}
.permission-matrix-table,
.access-log-table { border-collapse: separate; border-spacing: 0; }
.permission-matrix-table { width: auto; min-width: 0; table-layout: auto; }
.access-log-table { width: 100%; min-width: 920px; }
.permission-matrix-table th,
.permission-matrix-table td,
.access-log-table th,
.access-log-table td {
  padding: 7px 8px;
  border-right: 1px solid #dce5ee;
  border-bottom: 1px solid #dce5ee;
  background: #fff;
  white-space: nowrap;
  text-align: left;
}

.permission-matrix-table thead th,
.access-log-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #edf3f8;
  color: #18314f;
}
.permission-matrix-table thead th span,
.permission-matrix-table thead th small { display: block; }
.permission-matrix-table thead th small { margin-top: 2px; color: #72859b; font-weight: 500; }
.permission-matrix-table .permission-module-cell {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 230px;
  min-width: 210px;
  max-width: 300px;
  background: #f7fafc;
}
.permission-matrix-table .permission-module-cell > span {
  font-size: 12px;
  font-weight: 700;
}
.permission-matrix-table th:not(.permission-module-cell),
.permission-matrix-table td:not(.permission-module-cell) {
  width: 104px;
  min-width: 104px;
}
.permission-matrix-table thead th:not(.permission-module-cell) > span { font-size: 12px; }
.permission-matrix-table thead th:not(.permission-module-cell) > small { font-size: 10px; }
.permission-matrix-table thead .permission-module-cell { z-index: 5; background: #e8f0f6; }
.permission-level-select {
  min-width: 82px;
  padding: 5px 7px;
  border: 1px solid #c5d4e1;
  border-radius: 3px;
  background: #fff;
  color: #213a58;
  font-size: 12px;
}
.permission-level-select.dirty { border-color: #0f9795; box-shadow: 0 0 0 2px rgba(15,151,149,.12); }
.permission-level-select:disabled { background: #eaf7f6; color: #087f7b; font-weight: 700; opacity: 1; }
.permission-login-note { display: block; max-width: 108px; margin-top: 4px; color: #72859b; font-size: 10px; line-height: 1.4; white-space: normal; }
.permission-bulk-dialog { width: min(660px, calc(100vw - 28px)); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #c4d3e0; border-radius: 4px; background: #fff; color: #17324c; box-shadow: 0 20px 60px rgba(15, 33, 53, .25); overflow: auto; }
.permission-bulk-dialog::backdrop { background: rgba(15, 33, 53, .4); }
.permission-bulk-dialog > .access-panel-title { position: sticky; top: 0; z-index: 1; justify-content: space-between; background: #fff; }
.permission-bulk-form { display: grid; gap: 12px; padding: 16px; }
.permission-bulk-help,
.permission-bulk-source,
.permission-bulk-summary,
.permission-bulk-error { margin: 0; font-size: 13px; line-height: 1.65; }
.permission-bulk-help { color: #61758d; }
.permission-bulk-source { color: #087f7b; }
.permission-bulk-field { display: grid; gap: 6px; margin: 0; font-size: 13px; font-weight: 700; }
.permission-bulk-field select,
.permission-bulk-field input { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid #c4d3e0; border-radius: 3px; background: #fff; color: #17324c; font: inherit; font-weight: 400; }
.permission-bulk-targets { max-height: 260px; overflow: auto; border: 1px solid #dce5ee; border-radius: 3px; }
.permission-bulk-target { display: flex; align-items: center; gap: 9px; margin: 0; padding: 9px 11px; cursor: pointer; }
.permission-bulk-target + .permission-bulk-target { border-top: 1px solid #edf1f5; }
.permission-bulk-target:hover { background: #f3f9f9; }
.permission-bulk-target input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: #0f9795; }
.permission-bulk-target strong { font-size: 13px; font-weight: 600; }
.permission-bulk-target small { display: block; margin-top: 3px; color: #72859b; font-size: 11px; }
.permission-bulk-target.unavailable { color: #72859b; background: #f7f9fb; cursor: default; }
.permission-bulk-target.unavailable small,
.permission-bulk-error { color: #a14b24; }
.permission-bulk-error:empty,
.permission-bulk-source:empty { display: none; }
.permission-bulk-footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid #dce5ee; }
.permission-bulk-footer > span { width: 100%; color: #61758d; font-size: 12px; line-height: 1.6; }

.access-loading,
.access-empty,
.access-callout,
.access-readonly-banner {
  padding: 14px 16px;
  border: 1px solid #cad8e5;
  background: #f7fafc;
  color: #536980;
}
.access-callout.warning,
.access-readonly-banner { border-color: #ebcd76; background: #fff8dc; color: #805a00; }
.access-readonly-banner { margin-bottom: 12px; }

.permission-log-title { min-height: 48px; }
.permission-log-title .secondary-btn { width: auto; }
.permission-log-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 9px 10px;
  padding: 11px 12px;
  border-bottom: 1px solid #dce5ee;
  background: #f8fbfd;
}
.permission-log-filters label { display: grid; gap: 4px; min-width: 0; }
.permission-log-filters label > span { color: #4d647c; font-size: 11px; font-weight: 700; }
.permission-log-filters input,
.permission-log-filters select {
  min-width: 0;
  width: 100%;
  height: 32px;
  padding: 5px 7px;
  border: 1px solid #c5d4e1;
  border-radius: 3px;
  background: #fff;
  color: #213a58;
  font-size: 12px;
}
.permission-log-filter-actions { display: flex; align-items: end; gap: 7px; }
.permission-log-filter-actions .primary-btn,
.permission-log-filter-actions .secondary-btn { width: auto; min-width: 70px; height: 32px; padding: 5px 10px; }
.permission-log-table-scroll { max-width: 100%; max-height: calc(100vh - 294px); overflow: auto; }
.access-log-table th,
.access-log-table td { font-size: 12px; }
.permission-log-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding: 9px 12px;
  border-top: 1px solid #dce5ee;
  background: #f8fbfd;
  color: #536980;
  font-size: 12px;
}
.permission-log-pagination > div { display: flex; align-items: center; gap: 6px; }
.permission-log-pagination .secondary-btn { width: auto; min-width: 64px; padding: 6px 9px; }
.permission-log-pagination label { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.permission-log-pagination input { width: 62px; height: 30px; padding: 4px 6px; border: 1px solid #c5d4e1; border-radius: 3px; }

.system-intro-content { min-width: 0; }
.access-page.system-intro-home-view {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  background: #07182d;
}

.system-intro-home-view .system-intro-content {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
}

.leads-home-hero {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(58px, 7vw, 210px) clamp(42px, 6vw, 240px);
  color: #f7fbff;
  background:
    radial-gradient(circle at 78% 46%, rgba(0, 188, 199, .19), transparent 34%),
    linear-gradient(118deg, #07182d 0%, #0a213c 60%, #07384c 100%);
}

.leads-home-hero::before,
.leads-home-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.leads-home-hero::before {
  inset: 0;
  z-index: -2;
  opacity: .32;
  background-image:
    linear-gradient(rgba(90, 187, 201, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 187, 201, .06) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 50%, #000 100%);
}

.leads-home-hero::after {
  inset: 14px;
  z-index: 3;
  border-top: 1px solid rgba(132, 229, 229, .34);
  border-right: 1px solid rgba(132, 229, 229, .18);
}

.leads-home-copy {
  position: relative;
  z-index: 2;
  width: min(1600px, 72%);
}

.leads-home-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(108px, 11.4vw, 360px);
  font-weight: 800;
  line-height: .82;
  letter-spacing: -.065em;
  text-shadow: 0 18px 44px rgba(0, 7, 20, .28);
}

.leads-home-copy h1::after {
  display: block;
  width: clamp(86px, 9vw, 150px);
  height: 7px;
  margin: clamp(36px, 5vh, 64px) 0 clamp(30px, 4vh, 48px);
  background: #18b5af;
  content: "";
}

.leads-home-name {
  display: grid;
  gap: 10px;
}

.leads-home-name p,
.leads-home-summary { margin: 0; }

.leads-home-name-cn {
  color: #fff;
  font-size: clamp(31px, 3.25vw, 86px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.leads-home-name-en {
  color: #d5e7f3;
  font-size: clamp(19px, 1.65vw, 48px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .01em;
}

.leads-home-summary {
  position: relative;
  max-width: 1500px;
  margin-top: clamp(34px, 5vh, 58px);
  padding-left: 24px;
  color: #e9f4fa;
  font-size: clamp(21px, 1.8vw, 46px);
  font-weight: 500;
  line-height: 1.65;
}

.leads-home-summary::before {
  position: absolute;
  top: .18em;
  bottom: .18em;
  left: 0;
  width: 5px;
  background: #18b5af;
  content: "";
}

.leads-home-network {
  position: absolute;
  z-index: 1;
  top: 0;
  right: -4%;
  width: 56%;
  height: 100%;
  opacity: .86;
  pointer-events: none;
}

.leads-home-network svg { width: 100%; height: 100%; overflow: visible; }
.leads-network-grid path { fill: none; stroke: rgba(67, 159, 181, .17); stroke-width: 1; }
.leads-circuit-traces path,
.leads-circuit-chip path,
.leads-circuit-chip rect {
  vector-effect: non-scaling-stroke;
}
.leads-circuit-traces path {
  fill: none;
  stroke: #16b6c1;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .62;
}
.leads-circuit-traces path:nth-child(2n) { stroke: #238cb2; opacity: .54; }
.leads-circuit-traces path.secondary { stroke: #4b9caf; stroke-width: 1.35; opacity: .38; }
.leads-circuit-chip > rect:first-child {
  fill: rgba(6, 34, 59, .84);
  stroke: rgba(66, 219, 215, .78);
  stroke-width: 2;
  filter: drop-shadow(0 0 18px rgba(29, 194, 193, .2));
}
.leads-circuit-chip > rect:nth-child(2) {
  fill: rgba(14, 95, 111, .28);
  stroke: rgba(123, 223, 220, .4);
  stroke-width: 1;
}
.leads-circuit-chip path { fill: none; stroke: rgba(164, 239, 237, .68); stroke-width: 1.4; }
.leads-circuit-pads circle {
  fill: #2ad2cf;
  stroke: rgba(218, 252, 255, .78);
  stroke-width: 1;
  filter: drop-shadow(0 0 7px rgba(42, 225, 220, .52));
}
.leads-circuit-pads circle:nth-child(3n) { fill: #d9f9ff; }
.leads-circuit-signals circle {
  fill: #ecfeff;
  stroke: #38ded7;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(60, 236, 227, .86));
}

.intro-detail-layout {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 12px;
  min-height: calc(100vh - 46px);
  min-height: calc(100dvh - 46px);
}
.intro-detail-nav { padding-bottom: 12px; overflow: auto; }
.intro-detail-nav > div { padding: 14px 14px 10px; border-bottom: 1px solid #dce5ee; }
.intro-detail-nav h4 { margin: 16px 14px 6px; color: #0f8f8c; font-size: 12px; }
.intro-detail-nav button {
  display: block;
  width: calc(100% - 20px);
  margin: 2px 10px;
  padding: 8px 11px;
  border: 1px solid transparent;
  background: transparent;
  color: #344b67;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}
.intro-detail-nav button:hover,
.intro-detail-nav button.active { border-color: #79c5c1; background: #eaf7f6; color: #075f5d; }
.intro-detail-content { padding: clamp(20px, 2.2vw, 32px); }
.intro-detail-content > span { color: #0f8f8c; font-weight: 800; letter-spacing: .12em; }
.intro-detail-content h2 { margin-top: 7px; font-size: 24px; line-height: 1.35; }
.intro-detail-lead { width: min(100%, 88ch); margin: 14px 0 18px; color: #415a75; font-size: 14px; line-height: 1.65; text-wrap: pretty; }
.intro-keep-phrase { white-space: nowrap; }
.intro-content-grid { display: grid; grid-template-columns: minmax(0, 1fr); width: min(100%, 88ch); gap: 14px; margin-bottom: 12px; }
.intro-content-grid article,
.intro-guide-card,
.intro-tip-card { border: 1px solid #d3dfe9; background: #f9fbfd; }
.intro-content-grid article,
.intro-guide-card { padding: 16px 18px; }
.intro-content-grid article > span,
.intro-guide-card > span { color: #0f8f8c; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.intro-content-grid h3,
.intro-guide-card h3 { margin: 5px 0 10px; color: #17324c; font-size: 17px; line-height: 1.4; }
.intro-content-grid ul,
.intro-guide-card ol { margin: 0; padding-left: 22px; color: #405a74; line-height: 1.8; }
.intro-content-grid li + li,
.intro-guide-card li + li { margin-top: 7px; }
.intro-content-grid article > p { margin: 0; color: #405a74; line-height: 1.8; }
.intro-guide-card { width: min(100%, 88ch); margin-bottom: 12px; }
.intro-tip-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); width: min(100%, 88ch); align-items: start; padding: 13px 15px; border-left: 4px solid #0f9795; background: #eef8f7; }
.intro-tip-card strong { color: #076b68; }
.intro-tip-card p { margin: 0; color: #405a74; line-height: 1.7; }

.feedback-workspace {
  display: grid;
  grid-template-columns: minmax(380px, 460px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.feedback-submit-panel,
.feedback-log-panel { min-width: 0; margin: 0; }
#systemFeedbackForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px 14px;
}
#systemFeedbackForm label:not(.feedback-file-button) {
  display: grid;
  gap: 6px;
  margin: 0;
  color: #334c68;
  font-weight: 700;
}
#systemFeedbackForm select,
#systemFeedbackForm textarea,
.feedback-reply-form textarea,
.feedback-reply-form select {
  padding: 10px 11px;
  border: 1px solid #c4d3e0;
  border-radius: 3px;
  background: #fff;
  color: #16304e;
  font: inherit;
}
#systemFeedbackForm select,
#systemFeedbackForm textarea { width: 100%; }
#systemFeedbackForm textarea { min-height: 128px; line-height: 1.6; resize: vertical; }
.feedback-submit-panel > .access-panel-title,
.feedback-log-panel > .access-panel-title { align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 10px; }
.feedback-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.feedback-file-row { display: flex; min-width: 0; align-items: center; flex: 1 1 230px; gap: 10px; color: #667a91; }
.feedback-file-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feedback-file-button { display: inline-flex !important; align-items: center; width: auto !important; height: 36px; margin: 0 !important; padding: 0 14px; cursor: pointer; }
.feedback-file-button input { display: none; }
.feedback-card-list { display: grid; max-height: calc(100vh - 132px); max-height: calc(100dvh - 132px); gap: 10px; padding: 12px; overflow: auto; }
.feedback-card { padding: 15px 16px; border: 1px solid #d4e0eb; background: #f9fbfd; }
.feedback-card header { display: flex; justify-content: space-between; gap: 12px; }
.feedback-card header > div { display: flex; align-items: center; gap: 9px; }
.feedback-card header small { color: #71849a; }
.feedback-card > p { white-space: pre-wrap; line-height: 1.7; }
.feedback-status { padding: 3px 7px; border-radius: 2px; background: #eaf1f7; color: #4c647d; font-size: 12px; font-weight: 800; }
.feedback-status.in_progress { background: #fff1c9; color: #806000; }
.feedback-status.resolved { background: #dff5e9; color: #26704c; }
.feedback-status.closed { background: #e6eaf0; color: #566477; }
.feedback-attachments { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.feedback-attachments a { padding: 6px 9px; border: 1px solid #bcd7d5; background: #edf9f8; color: #087a77; text-decoration: none; }
.feedback-replies { display: grid; gap: 6px; margin-top: 10px; }
.feedback-replies > div { padding: 9px 11px; border-left: 3px solid #0f9795; background: #edf6f6; }
.feedback-replies small { display: block; margin-top: 4px; color: #667a91; }
.feedback-replies > span { color: #7b8ca0; }
.feedback-reply-form { display: grid; grid-template-columns: minmax(0, 72ch) 130px auto; align-items: end; gap: 8px; margin-top: 12px; }
.feedback-reply-form textarea,
.feedback-reply-form select { width: 100%; }

@media (max-width: 1000px) {
  .permission-workspace,
  .intro-detail-layout,
  .feedback-workspace { grid-template-columns: 1fr; }
  .permission-directory { position: static; max-height: none; }
  .permission-directory .personnel-org-tree { max-height: 380px; min-height: 0; }
  .intro-detail-nav { max-height: 340px; }
  .intro-content-grid { grid-template-columns: 1fr; }
  .feedback-card-list { max-height: none; overflow: visible; }
  .permission-log-pagination { align-items: flex-start; flex-direction: column; }
  .leads-home-copy { width: min(820px, 82%); }
  .leads-home-network { right: -20%; width: 74%; opacity: .66; }
}

@media (max-width: 720px) {
  .access-page { padding: 56px 10px 10px; }
  .access-page.system-intro-home-view { padding: 0; }
  .feedback-card header { align-items: flex-start; flex-direction: column; }
  .access-actions { width: 100%; flex-wrap: wrap; }
  .permission-matrix-title { align-items: flex-start; flex-direction: column; }
  .permission-matrix-actions { width: 100%; flex-wrap: wrap; }
  .permission-matrix-table .permission-module-cell { width: 190px; min-width: 180px; }
  .permission-log-filter-actions { align-items: center; }
  .permission-log-pagination > div { flex-wrap: wrap; }
  .feedback-reply-form { grid-template-columns: 1fr; }
  .feedback-form-actions { align-items: flex-start; flex-direction: column; }
  .feedback-file-row { width: 100%; flex: 0 1 auto; align-items: flex-start; flex-direction: column; }
  .feedback-file-row > span { width: 100%; white-space: normal; }
  .system-intro-home-view .system-intro-content,
  .leads-home-hero {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .leads-home-hero { align-items: start; padding: 84px 24px 54px; }
  .leads-home-hero::after { inset: 9px; }
  .leads-home-copy { width: 100%; }
  .leads-home-copy h1 { font-size: clamp(68px, 23vw, 96px); line-height: .88; }
  .leads-home-copy h1::after { height: 5px; margin: 32px 0 28px; }
  .leads-home-name-cn { max-width: 330px; font-size: 28px; }
  .leads-home-name-en { max-width: 330px; font-size: 18px; }
  .leads-home-summary { max-width: 330px; margin-top: 34px; padding-left: 18px; font-size: 19px; line-height: 1.65; }
  .leads-home-network { top: 35%; right: -44%; width: 138%; height: 72%; opacity: .5; }
  .intro-detail-content { padding: 24px 18px; }
  .intro-tip-card { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .primary-nav-chevron { transition: none; }
  .leads-circuit-signals { display: none; }
}

/* R2-050: only the home canvas is flush with its available viewport. */
body.access-home-layout:has(#mainView:not(.hidden)) #app > #mainView {
  margin: 0;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 0;
}
body.access-home-layout:has(#mainView:not(.hidden)) #app > #mainView > main.content {
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 0;
}
body.access-home-layout #systemIntroView.system-intro-home-view,
body.access-home-layout #systemIntroView > .system-intro-content {
  box-sizing: border-box;
  min-height: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 0;
}
body.access-home-layout #systemIntroView .leads-home-hero {
  min-height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
}
@media (min-width: 721px) {
  body.access-home-layout #app > #mainView {
    grid-template-columns: var(--leads-sidebar-width, 200px) minmax(0, 1fr);
  }
  body.access-home-layout #app > #mainView.leads-sidebar-collapsed {
    grid-template-columns: 0 minmax(0, 1fr);
  }
  body.access-home-layout #app > #mainView.leads-sidebar-collapsed > .sidebar {
    transform: translateX(-100%);
    pointer-events: none;
  }
  body.access-home-layout #mainView.leads-sidebar-collapsed > #desktopSidebarToggle {
    left: 0;
  }
}

/* R2-051: introduction and feedback only; home canvas and other workspaces retain their layout. */
#systemIntroView .intro-detail-layout { grid-template-columns: minmax(210px, 240px) minmax(0, 1fr); }
#systemIntroView .intro-detail-content { padding: clamp(16px, 1.6vw, 26px); }
#systemIntroView .intro-detail-content h2 { font-size: 23px; }
#systemIntroView .intro-detail-lead { margin: 12px 0 16px; }
#systemIntroView .intro-content-grid article,
#systemIntroView .intro-guide-card { padding: 13px 16px; }
#systemIntroView .intro-content-grid article > span,
#systemIntroView .intro-guide-card > span,
#systemIntroView .intro-detail-nav > div > span { letter-spacing: .03em; }
#systemIntroView .intro-content-grid li + li,
#systemIntroView .intro-guide-card li + li { margin-top: 4px; }

#systemIntroView:not(.hidden) .feedback-workspace {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}
#systemIntroView .feedback-submit-panel,
#systemIntroView .feedback-log-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
#systemIntroView .feedback-workspace .access-panel-title {
  flex: 0 0 auto;
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid #dce5ee;
}
#systemIntroView .feedback-workspace .access-panel-title h3 { font-size: 16px; }
#systemIntroView .feedback-workspace .access-panel-title p,
#systemIntroView .feedback-workspace .access-panel-title > span { font-size: 12px; line-height: 1.5; }
#systemIntroView #systemFeedbackForm {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 0;
  gap: 10px;
  overflow: auto;
}
#systemIntroView .feedback-description-field { display: flex !important; flex-direction: column; flex: 0 0 auto; min-height: 0; }
#systemIntroView #systemFeedbackForm .feedback-description-field textarea { flex: 0 0 auto; height: calc(8em + 16px); min-height: calc(8em + 16px); max-height: calc(8em + 16px); line-height: 1.6; resize: none; }
#systemIntroView .feedback-workspace select,
#systemIntroView .feedback-workspace textarea { box-sizing: border-box; min-width: 0; width: 100%; font-size: 13px; padding: 7px 9px; }
#systemIntroView .feedback-workspace select { height: 34px; }
#systemIntroView .feedback-form-actions { flex: 0 0 auto; }
#systemIntroView .feedback-file-row { flex: 1 1 auto; gap: 8px; }
#systemIntroView .feedback-file-limit { flex: 0 0 auto; white-space: nowrap; font-size: 12px; }
#systemIntroView .feedback-selected-files { display: flex; flex-wrap: wrap; gap: 6px; }
#systemIntroView .feedback-selected-files:empty,
#systemIntroView .feedback-file-notice:empty { display: none; }
#systemIntroView .feedback-selected-file { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; gap: 6px; padding: 4px 7px; border: 1px solid #c4dedb; border-radius: 3px; background: #f2faf9; }
#systemIntroView .feedback-selected-file > span { overflow: hidden; max-width: 240px; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
#systemIntroView .feedback-selected-file > button { flex: 0 0 auto; min-width: 0; padding: 0 3px; border: 0; background: transparent; color: #087c77; font: inherit; font-size: 12px; cursor: pointer; }
#systemIntroView .feedback-file-notice { color: #8c5c1b; font-size: 12px; line-height: 1.5; }
#systemIntroView .feedback-workspace .access-status,
#systemIntroView .feedback-load-message { flex: 0 0 auto; min-height: 0; padding: 0 14px 10px; font-size: 13px; overflow-wrap: anywhere; }
#systemIntroView .feedback-workspace .access-status:empty,
#systemIntroView .feedback-load-message:empty { display: none; }
#systemIntroView .feedback-load-message { color: #8c5c1b; }
#systemIntroView .feedback-reply-form {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  align-items: end;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid #dce5ee;
}
#systemIntroView .feedback-reply-form label { display: grid; gap: 5px; min-width: 0; margin: 0; color: #334c68; font-size: 13px; font-weight: 700; }
#systemIntroView .feedback-reply-form textarea { min-height: 62px; max-height: 160px; line-height: 1.5; resize: vertical; }
#systemIntroView .feedback-reply-form .primary-btn { min-width: 0; width: auto; height: 34px; min-height: 34px; padding: 0 10px; font-size: 13px; }
#systemIntroView .feedback-log-table-wrap { flex: 1 1 0; min-height: 120px; overflow: auto; overscroll-behavior: contain; }
#systemIntroView .feedback-log-table { width: 100%; min-width: 550px; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
#systemIntroView .feedback-log-table th { position: sticky; top: 0; z-index: 1; background: #edf4f8; color: #26445f; text-align: left; }
#systemIntroView .feedback-log-table th,
#systemIntroView .feedback-log-table td { padding: 9px 10px; border-bottom: 1px solid #dce5ee; vertical-align: top; line-height: 1.55; overflow-wrap: anywhere; }
#systemIntroView .feedback-log-table th:nth-child(1) { width: 23%; }
#systemIntroView .feedback-log-table th:nth-child(2) { width: 72px; }
#systemIntroView .feedback-log-table th:nth-child(3) { width: 31%; }
#systemIntroView .feedback-log-table td > small { display: block; margin-top: 4px; color: #667a91; }
#systemIntroView .feedback-original-description { margin: 0; white-space: pre-wrap; }
#systemIntroView .feedback-log-table .feedback-status { display: inline-block; white-space: nowrap; }
#systemIntroView .feedback-log-table .feedback-attachments { margin: 6px 0 0; gap: 4px; }
#systemIntroView .feedback-log-table .feedback-attachments a { padding: 3px 5px; }
#systemIntroView .feedback-log-table .feedback-replies { margin: 0; }
#systemIntroView .feedback-log-table .feedback-replies > div { padding: 5px 7px; white-space: pre-wrap; }
#systemIntroView .feedback-workspace :is(button, input, select, textarea):disabled { cursor: default; opacity: .65; }
@media (max-width: 1000px) {
  #systemIntroView .intro-detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  #systemIntroView:not(.hidden) .feedback-workspace { grid-template-columns: minmax(0, 1fr); }
  #systemIntroView .feedback-log-table-wrap { flex-basis: auto; max-height: 65dvh; }
  #systemIntroView #systemFeedbackForm { flex-basis: auto; }
  #systemIntroView .feedback-description-field { flex-basis: auto; }
}
