:root {
  --navy-950: #06152f;
  --navy-900: #0a2048;
  --navy: #12356a;
  --navy-700: #1d4c86;
  --navy-soft: #eaf1fb;
  --red: #d71920;
  --red-dark: #af1018;
  --red-soft: #fff1f1;
  --green: #008b55;
  --green-dark: #006b41;
  --green-soft: #eaf7f0;
  --amber: #9a6400;
  --amber-soft: #fff7e6;
  --ink: #152842;
  --muted: #66758a;
  --muted-strong: #4a5d75;
  --paper: #f4f7fb;
  --card: #ffffff;
  --line: #d7e0eb;
  --line-strong: #c3d0df;
  --shadow-sm: 0 5px 16px rgba(9, 38, 76, 0.06);
  --shadow-md: 0 16px 38px rgba(9, 38, 76, 0.1);
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.56;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(0, 139, 85, 0.28);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 10px;
  color: #69809c;
  font: 700 10px/1.2 var(--mono);
  letter-spacing: 0.12em;
}

.connection-banner {
  position: fixed;
  z-index: 100;
  top: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(540px, calc(100vw - 32px));
  padding: 10px 14px;
  transform: translateX(-50%);
  border: 1px solid #efcf8e;
  border-left: 4px solid var(--amber);
  border-radius: 7px;
  color: #6e4900;
  background: #fff9e9;
  box-shadow: var(--shadow-md);
  font-size: 12px;
}

.connection-banner-mark {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--amber);
  font-weight: 800;
}

.connection-banner strong,
.connection-banner span:last-child {
  display: block;
}

.connection-banner strong {
  font-size: 12px;
}

.connection-banner span:last-child {
  margin-top: 1px;
  color: #8a681f;
  font-size: 11px;
}

/* Login */
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(560px, 1.18fr) minmax(430px, 0.82fr);
  background: var(--paper);
}

.login-branding {
  position: relative;
  display: flex;
  min-height: 640px;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(44px, 7vw, 104px) clamp(44px, 9vw, 144px);
  color: #fff;
  background:
    linear-gradient(132deg, transparent 0 64%, rgba(0, 139, 85, 0.16) 64.1% 72%, transparent 72.1%),
    linear-gradient(48deg, rgba(215, 25, 32, 0.11) 0 21%, transparent 21.1%),
    linear-gradient(135deg, var(--navy-950), var(--navy-900) 53%, #164578);
}

.login-branding::before,
.login-branding::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.login-branding::before {
  top: -135px;
  left: -150px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(0, 139, 85, 0.06),
    0 0 0 84px rgba(255, 255, 255, 0.025);
}

.login-branding::after {
  right: -160px;
  bottom: -165px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgba(215, 25, 32, 0.06),
    0 0 0 76px rgba(0, 139, 85, 0.05);
}

.login-branding-top,
.logo-showcase,
.company-lockup,
.login-branding-copy,
.brand-points {
  position: relative;
  z-index: 1;
}

.login-branding-top {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c7d5e9;
  font: 700 10px/1.2 var(--mono);
  letter-spacing: 0.13em;
}

.signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42d28e;
  box-shadow: 0 0 0 5px rgba(66, 210, 142, 0.16);
}

.logo-showcase {
  width: min(474px, 100%);
  height: 176px;
  margin: 38px 0 29px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 9px;
  background: #eef1ef;
  box-shadow: 0 20px 50px rgba(0, 11, 32, 0.3);
}

.logo-showcase img {
  position: relative;
  display: block;
  width: 490px;
  max-width: none;
  top: -79px;
  left: -12px;
}

.company-lockup {
  max-width: 580px;
  padding-left: 19px;
  border-left: 2px solid var(--green);
}

.company-lockup .red-rule {
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 13px;
  background: var(--red);
}

.company-lockup p {
  margin: 0;
  color: #b8c9e4;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.company-lockup h1 {
  margin: 8px 0 0;
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.login-branding-copy {
  max-width: 440px;
  margin: 26px 0 0 21px;
  color: #d4deed;
  font-size: 14px;
  line-height: 1.9;
}

.brand-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin: 34px 0 0 21px;
  color: #dbe5f3;
  font-size: 11px;
}

.brand-points i {
  margin-right: 7px;
  color: #4cdf9a;
  font: 700 10px var(--mono);
}

.login-panel-wrap {
  display: grid;
  place-items: center;
  padding: 44px;
  background: #fff;
}

.login-panel {
  width: min(408px, 100%);
}

.login-panel-head h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: 31px;
  letter-spacing: -0.055em;
}

.login-panel-head > p:last-child {
  margin: 10px 0 27px;
  color: var(--muted);
  font-size: 13px;
}

.role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8fb;
}

.role-tab {
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  color: #62728a;
  background: transparent;
  font-size: 12px;
}

.role-tab span {
  margin-right: 6px;
  color: var(--green);
  font-size: 10px;
}

.role-tab.active {
  color: var(--navy-900);
  background: #fff;
  box-shadow: 0 2px 8px rgba(12, 39, 78, 0.13);
  font-weight: 700;
}

.role-tab.active span {
  color: var(--red);
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.login-form label,
.form-field {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
}

.login-form input,
.form-field input,
.form-field select,
.form-field textarea,
.inline-search input,
.review-comment textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.login-form input,
.form-field input,
.form-field select {
  min-height: 42px;
  padding: 9px 11px;
  font-size: 13px;
}

.form-field textarea,
.review-comment textarea {
  min-height: 84px;
  padding: 10px 11px;
  resize: vertical;
  font-size: 12px;
  line-height: 1.65;
}

.login-form input::placeholder,
.form-field input::placeholder,
.form-field textarea::placeholder,
.inline-search input::placeholder,
.review-comment textarea::placeholder {
  color: #97a5b7;
}

.login-form input:hover,
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover,
.inline-search input:hover,
.review-comment textarea:hover {
  border-color: #9eb0c5;
}

.login-form input:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.inline-search input:focus,
.review-comment textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 139, 85, 0.12);
  outline: 0;
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"],
.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: var(--red);
  background: #fffafa;
}

.login-help {
  min-height: 18px;
  margin: -5px 0 0;
  color: #7e8ea5;
  font-size: 11px;
}

.login-button {
  min-height: 46px;
  margin-top: 1px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 9px 19px rgba(0, 139, 85, 0.2);
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.login-button:hover {
  background: var(--green-dark);
  box-shadow: 0 12px 23px rgba(0, 107, 65, 0.23);
  transform: translateY(-1px);
}

.login-footer {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #8090a6;
  font-size: 11px;
  line-height: 1.75;
}

/* Application shell */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 26px 17px 22px;
  color: #fff;
  background:
    linear-gradient(180deg, transparent 0 76%, rgba(0, 139, 85, 0.13) 100%),
    linear-gradient(145deg, var(--navy-950), var(--navy-900) 66%, #0e315d);
}

.brand {
  display: block;
  padding: 0 8px;
  color: inherit;
  text-decoration: none;
}

.brand-logo-crop {
  position: relative;
  width: 229px;
  height: 76px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  background: #edf0ef;
  box-shadow: 0 8px 18px rgba(0, 10, 29, 0.2);
}

.brand-logo-crop img {
  position: relative;
  display: block;
  width: 258px;
  max-width: none;
  top: -43px;
  left: -15px;
}

.brand-company {
  margin: 12px 0 0 2px;
  line-height: 1;
}

.brand-company strong {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.055em;
}

.brand-company small {
  margin-left: 8px;
  color: #a8bddd;
  font: 700 9px var(--mono);
  letter-spacing: 0.1em;
}

.brand-company em {
  display: block;
  margin-top: 9px;
  color: #d3dfef;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.025em;
}

.brand-divider {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 23px 8px 19px;
}

.brand-divider::before,
.brand-divider::after {
  height: 1px;
  flex: 1;
  content: "";
  background: rgba(255, 255, 255, 0.19);
}

.brand-divider span {
  width: 6px;
  height: 6px;
  background: var(--green);
  transform: rotate(45deg);
}

.nav-list {
  display: grid;
  gap: 5px;
}

.nav-item {
  width: 100%;
  min-height: 45px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #bfcee3;
  background: transparent;
  text-align: left;
  font-size: 13px;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.nav-item .nav-symbol {
  width: 18px;
  color: #84a4d2;
  text-align: center;
  font-size: 16px;
}

.nav-item b {
  min-width: 19px;
  height: 19px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font: 700 9px var(--mono);
}

.nav-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
}

.nav-item.active {
  border-color: rgba(89, 218, 158, 0.25);
  color: #fff;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  box-shadow: inset 3px 0 0 var(--red);
  font-weight: 700;
}

.nav-item.active .nav-symbol {
  color: #fff;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 0 8px;
}

.knowledge-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #42d28e;
  box-shadow: 0 0 0 5px rgba(66, 210, 142, 0.13);
}

.knowledge-status strong,
.knowledge-status small {
  display: block;
}

.knowledge-status strong {
  color: #ebf1f9;
  font-size: 11px;
  font-weight: 700;
}

.knowledge-status small {
  margin-top: 2px;
  color: #9db2d1;
  font-size: 10px;
}

.help-link {
  padding: 0;
  border: 0;
  color: #c0d1e7;
  background: transparent;
  font-size: 11px;
}

.help-link:hover {
  color: #fff;
}

.help-link span {
  margin-left: 5px;
  color: #55da9c;
}

.main-content {
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  height: 76px;
  max-width: 1540px;
  margin: auto;
  padding: 0 clamp(26px, 5vw, 82px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dfe6ee;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  color: #8290a2;
  font-size: 12px;
}

.breadcrumb i {
  color: #b9c3cf;
  font-style: normal;
}

.breadcrumb strong {
  color: #3d506b;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-text-button,
.logout-button {
  padding: 0;
  border: 0;
  color: #5f728c;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.header-text-button:hover {
  color: var(--green);
}

.security-trigger {
  padding: 6px 9px;
  border: 1px solid #cbd7e4;
  border-radius: 4px;
  color: var(--navy);
  background: #f9fbfe;
}

.security-trigger:hover {
  border-color: var(--green);
  color: var(--green-dark);
  background: var(--green-soft);
}

.logout-button {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.logout-button:hover {
  color: var(--red);
}

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

.role-identity > span {
  padding: 3px 6px;
  border-radius: 3px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 9px;
  font-weight: 700;
}

.role-identity.admin > span {
  color: var(--red-dark);
  background: var(--red-soft);
}

.user-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-size: 11px;
  font-weight: 700;
}

.role-identity strong,
.role-identity small {
  display: block;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-identity strong {
  color: #32455f;
  font-size: 11px;
}

.role-identity small {
  margin-top: 1px;
  color: #8794a6;
  font: 9px var(--mono);
}

/* Search workspace */
.page {
  display: none;
}

.page.active {
  display: block;
}

.hero,
.page-hero {
  max-width: 1540px;
  margin: auto;
  padding-right: clamp(26px, 5vw, 82px);
  padding-left: clamp(26px, 5vw, 82px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 57px;
  padding-bottom: 44px;
}

.hero::after {
  position: absolute;
  right: clamp(26px, 5vw, 82px);
  bottom: 0;
  width: 180px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--green) 0 60%, var(--red) 60% 100%);
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(39px, 4.5vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.072em;
}

.hero-copy h1 em,
.page-hero h1 em {
  color: var(--green);
  font-style: normal;
}

.hero-copy p:last-child,
.page-hero > div > p:last-child {
  max-width: 540px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.88;
}

.hero-stats {
  width: 298px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid #d7e1e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.hero-stats div {
  padding: 15px 16px 16px;
  border-top: 3px solid var(--green);
}

.hero-stats div + div {
  border-top-color: var(--red);
  border-left: 1px solid #dfe6ed;
}

.hero-stats small,
.hero-stats strong {
  display: block;
}

.hero-stats small {
  color: #718096;
  font-size: 10px;
}

.hero-stats strong {
  margin-top: 4px;
  color: var(--navy);
  font: 700 20px var(--mono);
}

.search-section {
  position: relative;
  overflow: hidden;
  padding: 26px clamp(26px, 5vw, 82px) 22px;
  border-top: 1px solid #d9e8e3;
  border-bottom: 1px solid #d6e4df;
  background:
    linear-gradient(105deg, #eaf7f0 0%, #f8fcfa 54%, #fff4f4 100%);
}

.search-section::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.26;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(19, 53, 106, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 53, 106, 0.12) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.search-box,
.quick-searches {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

.search-box {
  height: 63px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #b8c9d7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 11px 26px rgba(19, 53, 106, 0.1);
}

.search-box:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 139, 85, 0.12), 0 11px 26px rgba(19, 53, 106, 0.1);
}

.search-icon {
  color: var(--green);
  font: 29px Georgia, serif;
  transform: rotate(-16deg);
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.search-box input::placeholder {
  color: #98a7b9;
}

.search-box kbd {
  padding: 4px 7px;
  border: 1px solid #dce4ed;
  border-radius: 4px;
  color: #7f8fa3;
  background: #fbfcfd;
  font: 9px var(--mono);
}

.quick-searches {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.quick-searches > span {
  margin-right: 2px;
  color: #68798e;
  font-size: 10px;
}

.quick-searches button {
  padding: 4px 9px;
  border: 1px solid #c6d6d4;
  border-radius: 999px;
  color: #426158;
  background: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.quick-searches button:hover {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.content-layout {
  max-width: 1540px;
  margin: auto;
  padding: 48px clamp(26px, 5vw, 82px) 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: clamp(36px, 5vw, 82px);
}

.section-heading,
.workspace-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading h2,
.workspace-heading h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: 23px;
  letter-spacing: -0.055em;
}

.section-heading h2 span {
  color: var(--green);
}

.filter-button,
.small-button {
  border: 1px solid #c6d2df;
  border-radius: 5px;
  color: #50647e;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}

.filter-button {
  min-height: 34px;
  padding: 0 10px;
}

.filter-button:hover,
.small-button:hover {
  border-color: var(--green);
  color: var(--green-dark);
  background: #fbfffc;
}

.filter-button span {
  margin-right: 3px;
  font-size: 16px;
}

.filter-button b {
  display: none;
  width: 15px;
  height: 15px;
  margin-left: 4px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font: 700 9px var(--mono);
}

.filter-button b.visible {
  display: inline-grid;
}

.filter-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 17px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}

.filter-row label {
  display: grid;
  gap: 5px;
  color: #65758a;
  font-size: 10px;
  font-weight: 700;
}

.filter-row select {
  min-width: 156px;
  height: 33px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
}

.filter-row button {
  height: 33px;
  padding: 0 8px;
  border: 0;
  color: var(--green-dark);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.active-search {
  margin-bottom: 15px;
  color: #65758c;
  font-size: 12px;
}

.active-search b {
  color: var(--green-dark);
}

.strategy-list,
.workflow-list,
.audit-list {
  display: grid;
  gap: 12px;
}

.strategy-card,
.workflow-item {
  position: relative;
  width: 100%;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: var(--card);
  text-align: left;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.strategy-card {
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 20px;
  padding: 21px;
}

.strategy-card:hover {
  border-color: #9dbbad;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.strategy-code {
  display: grid;
  align-content: start;
  gap: 8px;
}

.strategy-code b,
.workflow-meta b {
  color: var(--navy);
  font: 700 11px var(--mono);
}

.strategy-code small,
.workflow-meta small {
  color: #8795a7;
  font-size: 10px;
}

.risk,
.status {
  width: max-content;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
}

.risk.high {
  color: var(--red-dark);
  background: var(--red-soft);
}

.risk.medium {
  color: var(--amber);
  background: var(--amber-soft);
}

.risk.low {
  color: var(--green-dark);
  background: var(--green-soft);
}

.card-main {
  min-width: 0;
}

.card-main h3,
.workflow-main h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.card-main p {
  margin: 7px 0 11px;
  display: -webkit-box;
  overflow: hidden;
  color: #66758a;
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.card-tags span,
.detail-tags span {
  padding: 3px 6px;
  border-radius: 3px;
  color: #5d7088;
  background: #f0f4f8;
  font-size: 10px;
}

.card-meta {
  min-width: 106px;
  display: grid;
  align-content: space-between;
  justify-items: end;
  gap: 17px;
}

.video-mark {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #527467;
  font-size: 10px;
}

.video-mark i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 8px;
  font-style: normal;
}

.video-mark.no-video {
  color: #929fac;
}

.video-mark.no-video i {
  background: #b6c1cd;
}

.open-label {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
}

.strategy-card mark {
  padding: 0 1px;
  color: inherit;
  background: #d9f1e4;
}

.empty-state {
  padding: 71px 20px;
  border: 1px dashed #c6d3df;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.empty-state > span {
  color: var(--green);
  font: 34px Georgia, serif;
}

.empty-state h3 {
  margin: 9px 0 4px;
  color: var(--navy-900);
  font-size: 16px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.empty-state button {
  margin-top: 18px;
  border: 0;
  color: var(--green-dark);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.empty-state button:hover {
  text-decoration: underline;
}

.insight-panel {
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.panel-heading span {
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 700;
}

.panel-heading small {
  color: #8b98a8;
  font: 9px var(--mono);
  letter-spacing: 0.06em;
}

.insight-panel > p {
  margin: 9px 0 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.primary-button,
.secondary-button,
.approve-button,
.reject-button,
.cancel-button {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.primary-button,
.approve-button {
  border: 1px solid var(--green);
  color: #fff;
  background: var(--green);
}

.primary-button:hover,
.approve-button:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.secondary-button {
  border: 1px solid #c6d3e0;
  color: var(--navy);
  background: #fff;
}

.secondary-button:hover {
  border-color: var(--navy);
  background: #f8fbff;
}

.reject-button {
  border: 1px solid var(--red);
  color: #fff;
  background: var(--red);
}

.reject-button:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
}

.cancel-button {
  border: 1px solid #cad5e1;
  color: #607188;
  background: #fff;
}

.cancel-button:hover {
  border-color: #92a6bc;
  color: var(--navy);
}

.primary-button:hover,
.secondary-button:hover,
.approve-button:hover,
.reject-button:hover {
  transform: translateY(-1px);
}

.insight-panel .primary-button,
.insight-panel .secondary-button {
  width: 100%;
}

.panel-divider {
  height: 1px;
  margin: 21px 0 17px;
  background: var(--line);
}

.issue-list {
  margin: 7px -6px -4px;
}

.issue-list button {
  width: 100%;
  padding: 9px 6px;
  display: grid;
  grid-template-columns: 23px 1fr auto;
  gap: 4px;
  align-items: center;
  border: 0;
  color: #455a73;
  background: transparent;
  text-align: left;
  font-size: 11px;
}

.issue-list button:hover {
  background: #f3f8f6;
}

.issue-list b {
  color: #8e9db0;
  font: 700 9px var(--mono);
}

.issue-list small {
  color: #929fb0;
  font: 9px var(--mono);
}

.aside-notice {
  padding: 12px;
  border-left: 3px solid var(--red);
  color: #5e7087;
  background: #f8fafc;
  font-size: 11px;
  line-height: 1.72;
}

.aside-notice strong {
  color: var(--navy);
}

/* Role workspaces */
.page-hero {
  padding-top: 53px;
  padding-bottom: 35px;
}

.page-hero.compact h1 {
  font-size: clamp(34px, 4vw, 49px);
}

.page-hero.compact h1 em {
  margin-left: 8px;
}

.wide-button {
  min-width: 152px;
}

.page-metric {
  min-width: 145px;
  padding: 13px 18px;
  border: 1px solid #efd0d1;
  border-top: 3px solid var(--red);
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.page-metric small,
.page-metric strong,
.page-metric span {
  display: block;
}

.page-metric small {
  color: #718196;
  font-size: 10px;
}

.page-metric strong {
  margin: 2px 0;
  color: var(--red);
  font: 700 25px var(--mono);
}

.page-metric span {
  color: #8491a1;
  font-size: 10px;
}

.workspace-card {
  max-width: 1376px;
  min-height: 250px;
  margin: 0 auto 82px;
  padding: 29px clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.workspace-heading {
  align-items: flex-start;
}

.workspace-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

.status {
  font-size: 10px;
}

.status.draft {
  color: #5d6c81;
  background: #edf1f6;
}

.status.pending {
  color: #8b5900;
  background: var(--amber-soft);
}

.status.approved {
  color: var(--green-dark);
  background: var(--green-soft);
}

.status.rejected {
  color: var(--red-dark);
  background: var(--red-soft);
}

.status.offline {
  color: var(--navy);
  background: var(--navy-soft);
}

.workflow-item {
  grid-template-columns: 114px minmax(0, 1fr) auto;
  gap: 21px;
  align-items: center;
  padding: 19px;
}

.workflow-item:hover {
  border-color: #afc0d3;
}

.workflow-meta {
  display: grid;
  align-content: start;
  gap: 8px;
}

.workflow-main {
  min-width: 0;
}

.workflow-main h3 {
  font-size: 15px;
}

.workflow-main p {
  margin: 6px 0 0;
  overflow: hidden;
  color: #66758a;
  font-size: 11px;
  line-height: 1.65;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-main .workflow-note {
  margin-top: 8px;
  padding: 7px 9px;
  border-left: 2px solid var(--red);
  color: #814247;
  background: #fff7f7;
  white-space: normal;
}

.workflow-actions,
.member-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.small-button {
  min-height: 31px;
  padding: 0 10px;
}

.small-button.emphasis {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.small-button.emphasis:hover {
  color: #fff;
  background: var(--green-dark);
}

.small-button.danger {
  border-color: #efc9cb;
  color: var(--red-dark);
  background: #fffafa;
}

.small-button.danger:hover {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
}

.compact-empty {
  padding: 56px 20px;
}

.table-count {
  padding: 4px 7px;
  border-radius: 3px;
  color: var(--navy);
  background: var(--navy-soft);
  font: 700 10px var(--mono);
}

.inline-search {
  width: min(350px, 100%);
  margin-top: 15px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: #64758a;
  font-size: 10px;
  font-weight: 700;
}

.inline-search input {
  min-height: 33px;
  padding: 6px 9px;
  font-size: 11px;
}

.member-list {
  display: grid;
  gap: 10px;
}

.member-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.member-item.inactive {
  opacity: 0.68;
  background: #fafbfd;
}

.member-avatar {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

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

.member-name strong {
  color: var(--ink);
  font-size: 13px;
}

.member-name span {
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 9px;
  font-weight: 700;
}

.member-item.inactive .member-name span {
  color: #67768a;
  background: #edf1f6;
}

.member-info {
  margin-top: 4px;
  color: #8390a0;
  font-size: 10px;
}

.member-info code {
  color: #526680;
  font: 10px var(--mono);
}

/* Audit and security workspaces */
.audit-workspace {
  padding-bottom: 23px;
}

.audit-status {
  min-height: 20px;
  padding: 5px 8px;
  border-left: 3px solid var(--green);
  color: #537163 !important;
  background: var(--green-soft);
  font-size: 10px !important;
  font-weight: 700;
}

.audit-entry {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #fbfcfe, #fff);
}

.audit-entry::before {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #c9d7e5;
  border-radius: 50%;
  color: var(--navy);
  background: var(--navy-soft);
  content: "✓";
  font-size: 13px;
  font-weight: 800;
}

.audit-entry.is-warning::before,
.audit-entry[data-level="warning"]::before {
  border-color: #f1d18f;
  color: var(--amber);
  background: var(--amber-soft);
  content: "!";
}

.audit-entry.is-danger::before,
.audit-entry[data-level="danger"]::before {
  border-color: #edc5c7;
  color: var(--red-dark);
  background: var(--red-soft);
  content: "×";
}

.audit-meta {
  min-width: 0;
}

.audit-meta strong,
.audit-meta span {
  display: block;
}

.audit-meta strong {
  color: var(--navy-900);
  font-size: 13px;
}

.audit-meta span {
  margin-top: 3px;
  color: #8391a3;
  font: 10px var(--mono);
}

.audit-detail {
  margin: 6px 0 0;
  color: #5f7085;
  font-size: 11px;
  line-height: 1.7;
}

.audit-entry > time,
.audit-entry .audit-time {
  color: #7d8b9d;
  font: 10px var(--mono);
  white-space: nowrap;
}

.audit-footer {
  margin-top: 16px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  color: #7d8c9d;
  font-size: 10px;
}

.security-mark {
  width: 124px;
  padding: 15px 18px;
  display: grid;
  place-items: center;
  border: 1px solid #cae5d7;
  border-top: 3px solid var(--green);
  border-radius: 7px;
  color: var(--green-dark);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.security-mark span {
  font-size: 21px;
}

.security-mark small {
  margin-top: 3px;
  font: 700 9px var(--mono);
  letter-spacing: 0.1em;
}

.security-card {
  max-width: 760px;
  margin-left: max(26px, calc((100vw - 280px - 1376px) / 2));
}

.password-form {
  max-width: 630px;
}

.form-notice {
  min-height: 19px;
  margin: 16px 0 0;
  color: #5d768b;
  font-size: 11px;
  line-height: 1.65;
}

.form-notice.is-error,
.form-error,
.field-error {
  color: var(--red-dark);
}

.form-notice.is-error,
.form-error {
  padding: 8px 10px;
  border-left: 3px solid var(--red);
  background: var(--red-soft);
}

.field-error {
  margin: -2px 0 0;
  font-size: 10px;
}

.security-guidance {
  margin-top: 27px;
  padding: 15px 17px;
  border-left: 3px solid var(--green);
  border-radius: 0 6px 6px 0;
  color: #597084;
  background: #f6fbf8;
  font-size: 11px;
  line-height: 1.75;
}

.security-guidance strong {
  color: var(--navy);
}

.security-guidance ul {
  margin: 7px 0 0;
  padding-left: 18px;
}

/* Modals and forms */
.modal {
  width: min(780px, calc(100vw - 30px));
  max-height: min(820px, calc(100vh - 30px));
  padding: 33px;
  overflow: auto;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 26px 76px rgba(3, 18, 49, 0.3);
}

.modal::backdrop {
  background: rgba(5, 19, 45, 0.62);
  backdrop-filter: blur(3px);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 15px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #52677e;
  background: #edf2f7;
  font-size: 22px;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
  background: var(--navy);
}

.modal-title h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: 28px;
  letter-spacing: -0.06em;
}

.modal-title > p:last-child {
  margin: 9px 0 25px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.68;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field.span-2,
.safety-confirmation.span-2 {
  grid-column: span 2;
}

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

.video-field {
  padding: 13px;
  border: 1px dashed #a8c4b6;
  border-radius: 7px;
  background: #f6fbf8;
}

.video-field > label {
  color: #48665b;
  font-size: 11px;
  font-weight: 700;
}

.video-field input[type="file"] {
  padding: 7px 0;
  border: 0;
  background: transparent;
  font-size: 11px;
}

.video-field > small,
.video-field-meta small {
  color: #718095;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.65;
}

.video-field-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 4px;
}

.video-field-meta small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#removeVideo {
  flex: 0 0 auto;
  border-color: #c8d6cf;
  color: #42695a;
}

#removeVideo:hover {
  border-color: var(--red);
  color: var(--red-dark);
  background: #fffafa;
}

.safety-confirmation {
  padding: 13px;
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  border: 1px solid #d9e4e6;
  border-left: 3px solid var(--green);
  border-radius: 6px;
  color: #587084;
  background: #fbfefd;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.72;
}

.safety-confirmation input,
.review-checklist input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.safety-confirmation strong {
  display: block;
  margin-bottom: 2px;
  color: var(--navy);
  font-size: 11px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.form-actions .primary-button,
.form-actions .secondary-button {
  width: auto;
}

.form-note {
  min-height: 17px;
  margin: 16px 0 0;
  color: #748399;
  font-size: 11px;
  line-height: 1.65;
}

.form-note.is-error {
  padding: 8px 10px;
  border-left: 3px solid var(--red);
  color: var(--red-dark);
  background: var(--red-soft);
}

.detail-header {
  padding-right: 34px;
}

.detail-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--navy);
  font: 700 11px var(--mono);
}

.detail-header h2 {
  margin: 10px 0 0;
  color: var(--navy-900);
  font-size: clamp(23px, 4vw, 34px);
  letter-spacing: -0.06em;
}

.detail-summary {
  margin: 18px 0;
  color: #5f7086;
  font-size: 13px;
  line-height: 1.8;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-grid small,
.detail-grid strong {
  display: block;
}

.detail-grid small {
  color: #7f8fa2;
  font-size: 10px;
}

.detail-grid strong {
  margin-top: 3px;
  color: #344a64;
  font-size: 12px;
}

.detail-section {
  margin-top: 25px;
}

.detail-section h3 {
  margin: 0 0 12px;
  color: var(--navy-900);
  font-size: 14px;
}

.safety-notice {
  margin-top: 19px;
  padding: 12px 14px;
  border-left: 3px solid var(--red);
  border-radius: 0 6px 6px 0;
  color: #75494a;
  background: #fff7f7;
  font-size: 11px;
  line-height: 1.72;
}

.safety-notice strong {
  color: var(--red-dark);
}

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-list li {
  position: relative;
  min-height: 32px;
  padding: 0 0 14px 36px;
  color: #51647c;
  font-size: 12px;
  line-height: 1.7;
  counter-increment: step;
}

.step-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--green);
  content: counter(step, decimal-leading-zero);
  font: 700 10px var(--mono);
}

.step-list li:not(:last-child)::after {
  position: absolute;
  top: 18px;
  bottom: -1px;
  left: 9px;
  border-left: 1px solid #c8dbd2;
  content: "";
}

.video-box {
  overflow: hidden;
  border-radius: 7px;
  background: var(--navy-950);
}

.video-box video {
  display: block;
  width: 100%;
  max-height: 360px;
  background: var(--navy-950);
}

.video-error {
  padding: 13px;
  color: var(--red-dark);
  background: var(--red-soft);
  font-size: 12px;
}

.no-video-detail {
  padding: 25px;
  color: #c7d4e4;
  text-align: center;
  font-size: 12px;
}

.no-video-detail b {
  display: block;
  margin-bottom: 4px;
  color: #edf2f8;
}

.detail-tags {
  margin-top: 20px;
}

.review-summary {
  margin: 16px 0 21px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafcfe;
}

.review-summary p {
  margin: 0;
  color: #596b82;
  font-size: 12px;
  line-height: 1.72;
}

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

.review-summary b {
  color: var(--navy);
}

.review-comment {
  display: grid;
  gap: 7px;
  margin-top: 23px;
  color: #4f627a;
  font-size: 11px;
  font-weight: 700;
}

.review-checklist {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 13px;
  border: 1px solid #d8e2e8;
  border-radius: 7px;
  background: #fbfdfd;
}

.review-checklist::before {
  color: var(--navy);
  content: "审核复核";
  font-size: 11px;
  font-weight: 700;
}

.review-checklist label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: #5b6f84;
  font-size: 11px;
  line-height: 1.65;
}

.review-checklist label span {
  display: block;
}

.review-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 19px;
}

.guide-modal {
  width: min(590px, calc(100vw - 30px));
}

.guide-steps {
  display: grid;
  gap: 20px;
  margin: 26px 0 25px;
  padding: 0;
  list-style: none;
}

.guide-steps li {
  display: grid;
  grid-template-columns: 37px 1fr;
  gap: 12px;
}

.guide-steps b {
  color: var(--green);
  font: 700 12px var(--mono);
}

.guide-steps strong {
  color: var(--navy-900);
  font-size: 13px;
}

.guide-steps p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.guide-note {
  padding: 14px;
  border-left: 3px solid var(--red);
  color: #596c83;
  background: #f7f9fc;
  font-size: 11px;
  line-height: 1.75;
}

.toast {
  position: fixed;
  z-index: 90;
  bottom: 24px;
  left: 50%;
  max-width: calc(100vw - 40px);
  padding: 11px 15px;
  border-radius: 6px;
  color: #fff;
  background: var(--navy-900);
  box-shadow: 0 10px 24px rgba(8, 27, 61, 0.27);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1120px) {
  .login-screen {
    grid-template-columns: minmax(480px, 1fr) minmax(400px, 0.86fr);
  }

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

  .sidebar {
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand-logo-crop {
    width: 204px;
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .insight-panel {
    display: none;
  }

  .workspace-card {
    margin-right: 25px;
    margin-left: 25px;
  }

  .security-card {
    margin-left: 25px;
  }
}

@media (max-width: 920px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-branding {
    min-height: 425px;
    padding: 52px 9vw;
  }

  .login-panel-wrap {
    padding: 58px 30px;
  }

  .login-branding-copy,
  .brand-points {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    min-height: auto;
    padding: 10px 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
  }

  .brand {
    flex: 0 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .brand-logo-crop {
    width: 119px;
    height: 39px;
  }

  .brand-logo-crop img {
    width: 135px;
    top: -22px;
    left: -9px;
  }

  .brand-company {
    margin: 0;
  }

  .brand-company strong,
  .brand-company small {
    display: none;
  }

  .brand-company em {
    max-width: 156px;
    margin: 0;
    color: #dce7f3;
    font-size: 9px;
    line-height: 1.45;
  }

  .brand-divider,
  .sidebar-bottom {
    display: none;
  }

  .nav-list {
    display: flex;
    gap: 4px;
    margin-left: auto;
    white-space: nowrap;
  }

  .nav-item {
    width: auto;
    min-height: 35px;
    padding: 0 8px;
    gap: 0;
    border-radius: 5px;
    font-size: 10px;
  }

  .nav-item .nav-symbol {
    display: none;
  }

  .nav-item b {
    min-width: 14px;
    height: 14px;
    margin-left: 4px;
    font-size: 8px;
  }

  .topbar {
    height: 59px;
    padding: 0 18px;
  }

  .breadcrumb span,
  .header-text-button:not(.security-trigger),
  .role-identity > div:last-child {
    display: none;
  }

  .topbar-actions {
    gap: 10px;
  }

  .security-trigger {
    padding: 5px 7px;
    font-size: 10px;
  }

  .logout-button {
    padding-left: 10px;
  }

  .hero,
  .page-hero {
    padding-right: 25px;
    padding-left: 25px;
    display: block;
  }

  .hero {
    padding-top: 39px;
    padding-bottom: 33px;
  }

  .hero::after {
    right: 25px;
  }

  .hero-copy h1,
  .page-hero h1,
  .page-hero.compact h1 {
    font-size: 39px;
  }

  .hero-stats {
    width: 100%;
    margin-top: 25px;
  }

  .page-hero {
    padding-top: 37px;
    padding-bottom: 29px;
  }

  .page-hero .wide-button,
  .page-metric,
  .security-mark {
    margin-top: 23px;
  }

  .search-section {
    padding: 17px 25px;
  }

  .search-box {
    height: 54px;
    padding: 0 12px;
  }

  .search-box input {
    font-size: 13px;
  }

  .search-box kbd {
    display: none;
  }

  .content-layout {
    padding: 33px 25px 62px;
  }

  .workspace-card,
  .security-card {
    margin: 0 16px 58px;
    padding: 21px 16px;
  }

  .workspace-heading {
    display: block;
  }

  .status-legend,
  .table-count,
  .audit-status {
    margin-top: 13px !important;
  }

  .strategy-card {
    grid-template-columns: 1fr auto;
    gap: 11px;
    padding: 16px;
  }

  .strategy-code {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .strategy-code small {
    display: none;
  }

  .card-main h3 {
    font-size: 14px;
  }

  .card-meta {
    min-width: auto;
    align-content: center;
    gap: 0;
  }

  .video-mark {
    font-size: 0;
  }

  .video-mark i {
    font-size: 8px;
  }

  .open-label {
    display: none;
  }

  .workflow-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .workflow-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
  }

  .workflow-meta small {
    margin-left: auto;
  }

  .workflow-main p {
    white-space: normal;
  }

  .workflow-actions {
    justify-content: flex-start;
  }

  .member-item {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .member-controls {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .audit-entry {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .audit-entry > time,
  .audit-entry .audit-time {
    grid-column: 2;
    margin-top: -6px;
  }

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

  .modal {
    width: min(100% - 22px, 780px);
    max-height: min(860px, calc(100vh - 22px));
    padding: 26px 18px;
  }

  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .form-field.span-2,
  .safety-confirmation.span-2 {
    grid-column: span 1;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions .primary-button,
  .form-actions .secondary-button,
  .form-actions .cancel-button {
    flex: 1;
  }

  .video-field-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .video-field-meta small {
    white-space: normal;
  }

  .review-actions {
    justify-content: stretch;
  }

  .review-actions .approve-button,
  .review-actions .reject-button,
  .review-actions .small-button {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .login-branding {
    min-height: 380px;
    padding: 35px 24px;
  }

  .logo-showcase {
    width: 100%;
    height: 140px;
    margin: 28px 0 23px;
  }

  .logo-showcase img {
    width: 390px;
    top: -64px;
    left: -14px;
  }

  .company-lockup h1 {
    font-size: 28px;
  }

  .brand-points {
    gap: 10px 13px;
    margin-top: 25px;
  }

  .login-panel-wrap {
    padding: 44px 22px;
  }

  .login-panel-head h2 {
    font-size: 28px;
  }

  .brand-company em {
    max-width: 118px;
  }

  .nav-item {
    padding: 0 7px;
    font-size: 9px;
  }

  .security-trigger {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .security-trigger:hover {
    background: transparent;
  }

  .filter-row label {
    flex: 1;
  }

  .filter-row select {
    width: 100%;
    min-width: 0;
  }

  .quick-searches {
    gap: 5px;
  }

  .hero-copy p:last-child {
    font-size: 12px;
  }

  .inline-search {
    grid-template-columns: 1fr;
  }

  .safety-confirmation {
    grid-template-columns: 18px minmax(0, 1fr);
    padding: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Final integration: readable field text, audit snapshots, and touch navigation. */
.form-field, .login-form label, .review-comment, .form-note,
.workflow-main p, .member-info, .card-main p, .review-checklist label {
  font-size: 13px;
}
.form-field input, .form-field textarea, .form-field select,
.login-form input, .password-form input { font-size: 14px; }
.form-note, .workflow-meta small, .member-info { color: #53657b; }
.audit-entry { display: block; position: relative; padding: 18px 18px 18px 62px; overflow-wrap: anywhere; }
.audit-entry::before { position: absolute; top: 18px; left: 16px; }
.audit-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.audit-meta span { margin: 0; }
.audit-meta time { font: 11px var(--mono); color: var(--muted-strong); }
.audit-entry > p { font-size: 12px; margin: 10px 0; }
.audit-detail { width: 100%; }
.audit-detail summary { cursor: pointer; color: var(--navy); font-weight: 600; }
.audit-detail pre { max-height: 360px; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.8 var(--mono); }
.review-checklist legend { font-size: 13px; font-weight: 700; }
.review-checklist::before { content: none; }
@media (max-width: 760px) {
  .sidebar { display: block; overflow: visible; padding: 10px 16px 0; }
  .sidebar .brand { display: flex; width: 100%; gap: 12px; }
  .brand-company { width: auto; max-width: none; flex: 1; }
  .brand-company em { font-size: 11px; line-height: 1.6; }
  .nav-list { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 5px; margin-top: 8px; padding: 0 0 8px; width: 100%; }
  .nav-item { flex: 0 0 auto; min-height: 42px; padding: 8px 12px; font-size: 13px; }
  .hero h1 { font-size: 35px; line-height: 1.25; }
  .hero h1 em { display: block; }
  .primary-button, .secondary-button, .small-button, .cancel-button,
  .approve-button, .reject-button, .logout-button { min-height: 42px; font-size: 13px; }
  .topbar { padding: 12px 16px; }
  .topbar-actions { gap: 9px; }
  .header-text-button { font-size: 12px; }
  .form-field input, .form-field textarea, .form-field select { font-size: 16px; }
  .card-main h3 { font-size: 16px; line-height: 1.6; }
  .card-main p { font-size: 13px; }
  .audit-entry { padding-left: 50px; }
  .audit-entry::before { left: 10px; width: 28px; height: 28px; }
}
