:root {
  --navy: #14364c;
  --ink: #183344;
  --muted: #748592;
  --line: #e3e9ed;
  --bg: #f3f6f8;
  --orange: #eb8b37;
  --teal: #1b8b83;
  --blue: #2c6d99;
  --red: #c64b47;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #ecad63;
  outline-offset: 3px;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button {
  border: 0;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d6dfe5;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px #1b8b8315;
}
textarea {
  min-height: 95px;
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  accent-color: var(--teal);
}
.shell {
  display: grid;
  grid-template-columns: 228px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--navy);
  color: #fff;
  position: fixed;
  inset: 0 auto 0 0;
  width: 228px;
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 0 12px;
}
.mark {
  display: grid;
  place-items: center;
  background: var(--orange);
  height: 34px;
  width: 34px;
  border-radius: 9px 9px 14px 14px;
  color: #14364c;
  font-size: 22px;
  letter-spacing: 0;
}
.brand-sub {
  font-size: 11px;
  color: #9eb7c6;
  margin: 8px 12px 42px;
  letter-spacing: 3px;
}
.nav-section {
  font-size: 11px;
  color: #8faabb;
  margin: 18px 16px 9px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  color: #bdd0db;
  text-align: left;
  padding: 13px 16px;
  border-radius: 6px;
  margin: 3px 0;
}
.nav-item.active {
  background: #ffffff13;
  color: #fff;
  box-shadow: inset 3px 0 var(--orange);
}
.nav-item:hover {
  background: #ffffff0b;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.side-foot {
  margin-top: auto;
  padding: 30px 12px 0;
  color: #90acbc;
  font-size: 12px;
  line-height: 1.8;
}
.side-foot b {
  display: block;
  color: #d8e5eb;
  font-weight: 400;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 77px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 14px;
}
.crumb {
  font-size: 13px;
  color: var(--muted);
}
.crumb b {
  color: var(--ink);
  font-weight: 500;
  margin-left: 12px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.avatar {
  border-radius: 50%;
  background: #e6efef;
  color: var(--teal);
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.identity {
  line-height: 1.5;
  font-size: 13px;
}
.identity small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.content {
  padding: 32px 38px 44px;
  max-width: 1600px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-head h1 {
  font-size: 26px;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
  font-weight: 650;
}
.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.btn {
  background: var(--navy);
  color: #fff;
  padding: 11px 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 500;
}
.btn:hover {
  filter: brightness(1.12);
}
.btn.secondary {
  background: #fff;
  border: 1px solid #cdd8df;
  color: var(--ink);
}
.btn.orange {
  background: var(--orange);
  color: #182f3e;
}
.btn.teal {
  background: var(--teal);
}
.btn.small {
  padding: 7px 12px;
  font-size: 12px;
}
.text-btn {
  background: none;
  color: var(--blue);
  padding: 6px;
}
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  min-height: 218px;
  overflow: hidden;
  padding: 32px 35px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
}
.hero-copy {
  max-width: 65%;
  z-index: 1;
}
.hero-tag {
  font-size: 12px;
  color: #aec6d4;
  display: flex;
  gap: 8px;
  align-items: center;
}
.live-dot {
  width: 7px;
  height: 7px;
  background: #6fd4bd;
  border-radius: 50%;
  display: inline-block;
}
.hero h2 {
  font-size: 28px;
  line-height: 1.5;
  margin: 15px 0 8px;
  letter-spacing: 1px;
}
.hero p {
  font-size: 13px;
  color: #b6cdd9;
  line-height: 1.9;
  margin: 0;
}
.hero .btn {
  margin-top: 20px;
}
.hero-diagram {
  width: 290px;
  position: absolute;
  right: 30px;
  top: 18px;
  height: 190px;
  background-image:
    linear-gradient(#ffffff06 1px, transparent 1px),
    linear-gradient(90deg, #ffffff06 1px, transparent 1px);
  background-size: 23px 23px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shield {
  width: 108px;
  height: 125px;
  border: 2px solid #80abbd;
  border-radius: 50px 50px 65px 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  box-shadow:
    0 0 0 15px #ffffff04,
    0 0 0 31px #ffffff03;
}
.shield .icon {
  width: 55px;
  height: 55px;
  color: #ffb66b;
  stroke-width: 1.1;
  transform: rotate(8deg);
}
.diagram-note {
  position: absolute;
  bottom: 4px;
  right: 5px;
  color: #779bad;
  font-size: 10px;
  letter-spacing: 2px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 21px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.metric small {
  color: var(--muted);
  font-size: 12px;
}
.metric strong {
  display: block;
  font-size: 31px;
  line-height: 1.2;
  margin: 9px 0 6px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.metric .unit {
  font-size: 12px;
  font-weight: 400;
  margin-left: 5px;
  color: var(--muted);
}
.metric .metric-icon {
  background: #eef4f6;
  border-radius: 12px;
  padding: 12px;
  color: var(--blue);
}
.metric:nth-child(2) .metric-icon {
  color: #be7631;
  background: #fff4e7;
}
.metric:nth-child(3) .metric-icon {
  color: var(--teal);
  background: #e9f5f1;
}
.metric em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(270px, 1fr);
  gap: 24px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.panel-head h2 {
  font-size: 16px;
  margin: 0;
  font-weight: 600;
}
.panel-body {
  padding: 24px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.toolbar input {
  max-width: 310px;
}
.toolbar select {
  width: auto;
  min-width: 130px;
}
.tabs {
  display: flex;
  gap: 6px;
  background: #e8eef1;
  padding: 4px;
  border-radius: 7px;
}
.tabs button {
  padding: 9px 17px;
  background: none;
  color: var(--muted);
  border-radius: 5px;
}
.tabs button.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 3px #142f4410;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
}
th {
  background: #f8fafb;
  font-weight: 400;
  color: var(--muted);
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 24px;
  border-bottom: 1px solid #edf1f3;
}
tr:last-child td {
  border-bottom: 0;
}
.cell-title {
  font-weight: 500;
  max-width: 330px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cell-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.badge {
  display: inline-block;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  background: #edf2f5;
  color: #61798b;
}
.badge.green {
  background: #e5f4ed;
  color: #258567;
}
.badge.orange {
  background: #fff0de;
  color: #b87425;
}
.badge.red {
  background: #fdeae8;
  color: #bd514a;
}
.badge.blue {
  background: #e7f0fa;
  color: #4779a8;
}
.progress {
  height: 5px;
  border-radius: 6px;
  background: #e9eef1;
  overflow: hidden;
  margin: 9px 0 5px;
  min-width: 85px;
}
.progress span {
  display: block;
  background: var(--teal);
  height: 100%;
  border-radius: 6px;
}
.quick {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
  cursor: pointer;
}
.quick:first-child {
  padding-top: 0;
}
.quick:last-child {
  border: 0;
  padding-bottom: 0;
}
.quick-icon {
  background: #eef4f6;
  color: var(--blue);
  padding: 12px;
  border-radius: 8px;
  display: flex;
}
.quick strong {
  font-size: 13px;
  font-weight: 500;
}
.quick small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}
.quick .arrow {
  margin-left: auto;
  color: #9bafba;
}
.notice {
  border-left: 3px solid var(--orange);
  padding: 1px 0 1px 13px;
  margin: 0 0 22px;
  line-height: 1.7;
}
.notice:last-child {
  margin: 0;
}
.notice small {
  color: var(--muted);
  font-size: 11px;
}
.notice p {
  font-size: 13px;
  margin: 5px 0;
}
.empty {
  padding: 50px 24px;
  text-align: center;
  color: var(--muted);
  line-height: 2;
}
.empty .icon {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
}
.doc-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.doc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.doc-symbol {
  color: var(--teal);
  background: #eaf3f1;
  border-radius: 8px;
  padding: 12px;
  width: 46px;
  display: flex;
  margin-bottom: 20px;
}
.doc-card h3 {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 10px;
}
.doc-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.doc-card .card-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #10283880;
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal {
  background: white;
  border-radius: 12px;
  width: min(760px, 100%);
  max-height: 91vh;
  overflow: auto;
  box-shadow: 0 25px 90px #071b3b40;
}
.modal.wide {
  width: min(1000px, 100%);
}
.modal-head {
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 26px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  margin: 0;
  font-size: 19px;
}
.close {
  background: #f0f4f6;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 22px;
  color: var(--muted);
}
.modal-body {
  padding: 26px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: block;
  margin-bottom: 18px;
}
.field > span {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
  font-weight: 500;
}
.field small,
.help {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
  margin-top: 6px;
}
.form-grid .field {
  margin: 0;
}
.full {
  grid-column: 1/-1;
}
.upload {
  border: 1px dashed #b8cbd5;
  background: #f8fbfc;
  padding: 18px;
  border-radius: 7px;
}
.upload input {
  padding: 0;
  border: 0;
  background: none;
}
.upload-status {
  color: var(--teal);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 8px;
}
.question-editor {
  background: #f5f8fa;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 18px;
  margin: 14px 0;
}
.question-editor .row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.question-editor textarea {
  min-height: 90px;
}
.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  max-height: 230px;
  overflow: auto;
}
.check {
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 6px;
  font-size: 12px;
}
.check small {
  color: var(--muted);
}
.steps {
  display: flex;
  margin-bottom: 25px;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.step {
  padding: 9px 16px;
  background: #edf2f5;
  border-radius: 5px;
  color: var(--muted);
  font-size: 12px;
}
.step.active {
  background: #e5f2ed;
  color: var(--teal);
}
.video-stage {
  background: #102534;
  border-radius: 8px;
  overflow: hidden;
}
.video-stage video {
  display: block;
  width: 100%;
  max-height: 420px;
  min-height: 200px;
  background: #102534;
}
.player-bar {
  padding: 16px 20px;
  background: #f3f7f9;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.player-bar .progress-wrap {
  flex: 1;
}
.player-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.exam-q {
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.exam-q h3 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  margin: 0 0 14px;
}
.exam-q label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin-bottom: 7px;
  background: #f6f8fa;
  border-radius: 5px;
  font-size: 13px;
}
.sign-box {
  border: 1px dashed #b1c6d1;
  background: #fbfcfd;
  border-radius: 7px;
  margin-top: 12px;
  overflow: hidden;
}
.sign-box canvas {
  width: 100%;
  height: 160px;
  touch-action: none;
  display: block;
}
.sign-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-top: 24px;
}
.result {
  padding: 28px;
  text-align: center;
  background: #eff8f4;
  border-radius: 8px;
  margin-bottom: 20px;
}
.result.fail {
  background: #fff4e9;
}
.result strong {
  font-size: 38px;
  display: block;
  color: var(--teal);
}
.result.fail strong {
  color: #b57532;
}
.result p {
  font-size: 14px;
  line-height: 1.9;
}
.record-attempt {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 15px 0;
}
.signature-img {
  display: block;
  max-width: 260px;
  max-height: 90px;
  background: #fafafa;
  margin-top: 10px;
}
.org-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}
.org-node {
  padding: 14px 12px;
  margin: 8px 0;
  background: #f5f8fa;
  border-left: 3px solid #aac0ca;
  font-size: 13px;
}
.org-node.root {
  background: #e8f1f0;
  border-color: var(--teal);
  font-weight: 600;
}
.org-node small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 11px;
}
.rule-block {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.rule-block h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
.rule-block p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.flow-line {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0;
}
.flow-node {
  background: #edf4f5;
  border: 1px solid #d3e3e4;
  padding: 14px;
  border-radius: 6px;
  font-size: 13px;
}
.flow-line i {
  font-style: normal;
  color: #8ba6b3;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #fff;
}
.login-art {
  background: var(--navy);
  padding: 55px 64px;
  color: white;
  position: relative;
  overflow: hidden;
}
.login-art .brand {
  padding: 0;
}
.login-art h1 {
  font-size: 43px;
  line-height: 1.55;
  letter-spacing: 3px;
  margin: 110px 0 20px;
  position: relative;
  z-index: 1;
}
.login-art > p {
  line-height: 2;
  color: #adc6d4;
  max-width: 420px;
  font-size: 14px;
}
.login-art .hero-diagram {
  top: auto;
  right: 10px;
  bottom: 65px;
  opacity: 0.7;
}
.login-art footer {
  position: absolute;
  bottom: 35px;
  color: #8fabbc;
  font-size: 11px;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 35px;
}
.login-form {
  width: min(390px, 100%);
}
.login-form h2 {
  font-size: 27px;
  margin: 0 0 10px;
}
.login-form > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 32px;
}
.login-form .btn {
  width: 100%;
  padding: 14px;
}
.demo-accounts {
  background: #f5f8fa;
  padding: 18px;
  border-radius: 8px;
  margin-top: 30px;
  font-size: 12px;
}
.demo-accounts p {
  color: var(--muted);
  margin: 0 0 12px;
}
.demo-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}
.demo-account button {
  color: var(--blue);
  background: none;
  font-size: 12px;
}
.error {
  color: var(--red);
  font-size: 12px;
  line-height: 1.8;
  min-height: 20px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #17364c;
  color: #fff;
  z-index: 200;
  padding: 13px 23px;
  border-radius: 7px;
  box-shadow: 0 5px 20px #17364c30;
  display: none;
  font-size: 13px;
  max-width: 90vw;
}
.mobile-nav {
  display: none;
}
.mobile-banner {
  display: none;
}
.muted {
  color: var(--muted);
}
.flex {
  display: flex;
  gap: 12px;
  align-items: center;
}
.doc-content {
  white-space: pre-wrap;
  line-height: 2.1;
  color: #415768;
  font-size: 14px;
}
.section-note {
  background: #edf4f7;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.9;
  color: #567383;
  margin-bottom: 20px;
}
.company-select {
  max-width: 210px;
  font-size: 12px;
  padding: 7px;
}
.mobile-preview {
  max-width: 460px;
  margin: auto;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 6px;
}
.inline-error {
  margin-top: 12px;
  color: var(--red);
  font-size: 12px;
}
.task-mobile-card {
  display: none;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 38px;
  }
  .hero {
    min-height: 235px;
  }
}
[data-page="home"] .task-table th,
[data-page="home"] .task-table td {
  padding: 17px 18px;
}
[data-page="home"] .task-table th:nth-child(4),
[data-page="home"] .task-table td:nth-child(4),
[data-page="home"] .task-table th:nth-child(5),
[data-page="home"] .task-table td:nth-child(5) {
  display: none;
}
[data-page="home"] .task-table .cell-title {
  max-width: 270px;
}
@media (max-width: 1100px) {
  .sidebar {
    width: 195px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .shell {
    grid-template-columns: 195px 1fr;
  }
  .content {
    padding: 26px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .metric {
    padding: 18px;
  }
  .metric-icon {
    display: none;
  }
  .columns {
    grid-template-columns: 1.4fr 1fr;
  }
  .doc-list {
    grid-template-columns: 1fr 1fr;
  }
  .org-layout {
    grid-template-columns: 240px 1fr;
  }
  .hero-diagram {
    right: 0;
    width: 230px;
  }
  .login-art {
    padding: 40px;
  }
  .login-art h1 {
    font-size: 36px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .main {
    width: 100%;
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  .crumb {
    max-width: 48%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .crumb b {
    margin: 0;
  }
  .crumb > span {
    display: none;
  }
  .top-actions {
    gap: 8px;
  }
  .identity {
    display: none;
  }
  .top-actions .btn {
    padding: 7px 9px;
    font-size: 11px;
  }
  .content {
    padding: 23px 17px 95px;
  }
  .page-head {
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 20px;
  }
  .page-head h1 {
    font-size: 23px;
  }
  .page-head p {
    font-size: 12px;
  }
  .page-head > .btn {
    font-size: 12px;
    padding: 10px 12px;
  }
  .hero {
    padding: 24px;
    min-height: 210px;
    margin-bottom: 18px;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero h2 {
    font-size: 25px;
  }
  .hero-diagram {
    display: none;
  }
  .hero p {
    max-width: 90%;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }
  .metric {
    padding: 16px 18px;
  }
  .metric strong {
    font-size: 27px;
  }
  .columns,
  .org-layout {
    display: block;
  }
  .panel-head {
    padding: 18px;
  }
  .panel-body {
    padding: 18px;
  }
  .doc-list {
    grid-template-columns: 1fr;
  }
  .doc-card {
    padding: 22px;
  }
  .doc-symbol {
    margin-bottom: 13px;
  }
  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    background: #fff;
    z-index: 30;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-around;
    padding: 10px 4px max(10px, env(safe-area-inset-bottom));
  }
  .mobile-nav button {
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #84949e;
    min-width: 48px;
  }
  .mobile-nav button.active {
    color: var(--teal);
  }
  .mobile-nav .icon {
    width: 21px;
    height: 21px;
  }
  .company-select {
    max-width: 115px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .check-list {
    grid-template-columns: 1fr;
  }
  .modal {
    max-height: 94vh;
    border-radius: 10px;
  }
  .overlay {
    padding: 10px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-head {
    padding: 17px 20px;
  }
  .player-bar {
    padding: 12px;
    gap: 10px;
  }
  .steps {
    gap: 5px;
  }
  .step {
    padding: 8px 10px;
    font-size: 11px;
  }
  .login {
    display: block;
  }
  .login-art {
    padding: 24px 27px;
  }
  .login-art .brand {
    font-size: 20px;
  }
  .login-art h1 {
    font-size: 25px;
    margin: 25px 0 8px;
    letter-spacing: 1px;
  }
  .login-art > p {
    font-size: 12px;
    margin: 0;
  }
  .login-art footer {
    display: none;
  }
  .login-form-wrap {
    padding: 30px 27px;
  }
  .login-form h2 {
    font-size: 23px;
  }
  .login-form > p {
    margin-bottom: 24px;
  }
  .demo-accounts {
    margin-top: 22px;
  }
  .toolbar input {
    max-width: none;
  }
  .tabs {
    overflow: auto;
    max-width: 100%;
  }
  .tabs button {
    padding: 8px 12px;
    white-space: nowrap;
  }
  .task-table {
    display: none;
  }
  .task-mobile-card {
    display: block;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 13px;
    padding: 20px;
  }
  .task-mobile-card h3 {
    font-size: 15px;
    line-height: 1.7;
    margin: 12px 0;
  }
  .task-mobile-card .meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
    margin: 12px 0;
  }
  .task-mobile-card .btn {
    width: 100%;
    margin-top: 14px;
  }
  .mobile-banner {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 15px;
  }
  .sign-box canvas {
    height: 145px;
  }
  .section-note {
    font-size: 11px;
    padding: 12px;
  }
  .table-wrap td,
  .table-wrap th {
    padding: 15px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.console-badge {
  display: inline-flex !important;
  background: #14364c;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  max-width: none !important;
  margin-right: 8px;
}
.login-entry {
  margin: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}
.login-entry span {
  font-size: 10px;
  color: var(--muted);
}
.org-layout {
  grid-template-columns: 360px minmax(0, 1fr);
}
.editable-node {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
}
.org-node-name {
  min-width: 0;
}
.org-node-name strong {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.org-node-actions {
  display: flex;
  white-space: nowrap;
  flex-shrink: 0;
}
.org-node-actions .text-btn {
  font-size: 11px;
  padding: 6px;
}
.text-btn.danger {
  color: var(--red);
}
.access-page {
  max-width: 600px;
  margin: 15vh auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
}
.access-page h1 {
  font-size: 24px;
  margin-top: 25px;
}
.access-page p {
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 25px;
}
.portal-shell {
  min-height: 100vh;
  background: #f6f9f9;
}
.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 max(28px, calc((100vw - 1250px) / 2));
  height: 90px;
  background: #fff;
  border-bottom: 1px solid #e6eeee;
}
.portal-brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--navy);
  flex-shrink: 0;
}
.portal-brand strong {
  font-size: 22px;
  letter-spacing: 2px;
}
.portal-brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--teal);
  margin-top: 5px;
}
.portal-brand .mark {
  background: #e9f3f1;
  color: var(--teal);
  width: 41px;
  height: 44px;
}
.portal-nav {
  display: flex;
  gap: 25px;
  align-self: stretch;
}
.portal-nav button {
  position: relative;
  background: none;
  font-size: 13px;
  color: #6d838d;
  padding: 0 1px;
  white-space: nowrap;
}
.portal-nav button.active {
  color: var(--teal);
  font-weight: 600;
}
.portal-nav button.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--teal);
}
.portal-user {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  white-space: nowrap;
}
.portal-admin-link {
  border: 1px solid #cedcde;
  padding: 7px 10px;
  border-radius: 5px;
  color: var(--ink);
  font-size: 11px;
  margin-left: 8px;
}
.portal-company {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 1250px;
  margin: auto;
  padding: 17px 28px;
  border-bottom: 1px solid #e3ebeb;
  font-size: 11px;
  color: #496a75;
}
.portal-company .icon {
  width: 15px;
  height: 15px;
}
.portal-front-label {
  margin-left: auto;
  color: var(--teal);
  padding-left: 15px;
  border-left: 1px solid #d4e2e2;
  white-space: nowrap;
}
.portal-content {
  max-width: 1250px;
  padding: 32px 28px 60px;
}
.employee-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  background: #e9f3ef;
  padding: 38px 40px;
  border-radius: 12px;
  border: 1px solid #d9e8e3;
  margin-bottom: 26px;
}
.welcome-date {
  color: #64867b;
  font-size: 12px;
}
.employee-welcome h1 {
  font-size: 31px;
  font-weight: 600;
  margin: 15px 0 12px;
  letter-spacing: 1px;
}
.employee-welcome p {
  color: #5b7e73;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 23px;
}
.employee-summary {
  display: flex;
  gap: 38px;
  padding: 26px 0 26px 40px;
  border-left: 1px solid #cddfd8;
  flex-shrink: 0;
}
.employee-summary strong {
  display: block;
  font-size: 44px;
  color: var(--teal);
  font-weight: 500;
}
.employee-summary span {
  font-size: 11px;
  color: #6e8e83;
  display: block;
  margin-top: 12px;
}
.portal-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin: 25px 0 35px;
}
.portal-shortcuts button {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  border: 1px solid #dfe9e8;
  background: white;
  padding: 23px;
  border-radius: 8px;
  color: var(--ink);
}
.portal-shortcuts .shortcut-icon {
  display: flex;
  color: var(--teal);
  background: #eff7f4;
  padding: 13px;
  border-radius: 9px;
}
.portal-shortcuts strong {
  font-size: 14px;
  font-weight: 500;
}
.portal-shortcuts small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}
.portal-shortcuts button > .icon {
  margin-left: auto;
  width: 16px;
  color: #91aaa3;
}
.portal-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 18px;
}
.portal-section-title h2 {
  font-size: 18px;
  font-weight: 600;
}
.employee-task-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.employee-task {
  background: white;
  border: 1px solid #e1eae8;
  border-radius: 9px;
  padding: 26px;
}
.employee-task h3 {
  font-size: 18px;
  margin: 22px 0 10px;
  font-weight: 500;
  line-height: 1.8;
}
.employee-task p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 23px;
}
.employee-task .btn {
  margin-top: 24px;
  min-width: 140px;
}
.portal-footer {
  font-size: 11px;
  color: #8c9f9c;
  text-align: center;
  padding: 20px 20px 30px;
}
.portal-content .task-mobile-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.portal-content .panel {
  border-color: #e1eae8;
}
@media (max-width: 1100px) {
  .portal-header {
    padding: 0 24px;
    gap: 18px;
  }
  .portal-nav {
    gap: 17px;
  }
  .portal-user .avatar {
    display: none;
  }
  .portal-brand strong {
    font-size: 20px;
  }
  .employee-summary {
    gap: 20px;
    padding-left: 25px;
  }
  .org-layout {
    grid-template-columns: 310px minmax(0, 1fr);
  }
  .portal-shortcuts button {
    padding: 18px;
    gap: 10px;
  }
  .portal-shortcuts small {
    font-size: 10px;
  }
}
@media (max-width: 760px) {
  .portal-header {
    height: 73px;
    padding: 0 18px;
    gap: 8px;
  }
  .portal-brand strong {
    font-size: 18px;
  }
  .portal-brand small {
    font-size: 9px;
  }
  .portal-brand .mark {
    width: 32px;
    height: 35px;
  }
  .portal-user {
    gap: 5px;
    font-size: 11px;
  }
  .portal-user > span:not(.avatar) {
    display: none;
  }
  .portal-admin-link {
    font-size: 10px;
    padding: 7px;
    margin: 0;
  }
  .portal-nav {
    display: none;
  }
  .portal-company {
    padding: 13px 18px;
    font-size: 10px;
    flex-wrap: wrap;
    gap: 7px;
  }
  .portal-company .muted {
    display: none;
  }
  .portal-content {
    padding: 24px 18px 100px;
  }
  .employee-welcome {
    padding: 25px;
    display: block;
  }
  .employee-welcome h1 {
    font-size: 25px;
  }
  .employee-welcome p {
    font-size: 12px;
    max-width: 260px;
  }
  .employee-summary {
    border-left: 0;
    border-top: 1px solid #cddfd8;
    padding: 20px 0 0;
    margin-top: 25px;
    gap: 48px;
  }
  .employee-summary strong {
    font-size: 32px;
  }
  .employee-summary span {
    margin-top: 7px;
  }
  .portal-shortcuts {
    gap: 8px;
    margin: 20px 0 26px;
  }
  .portal-shortcuts button {
    padding: 15px 8px;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 11px;
  }
  .portal-shortcuts button > .icon {
    display: none;
  }
  .portal-shortcuts strong {
    font-size: 12px;
  }
  .portal-shortcuts small {
    display: none;
  }
  .portal-shortcuts .shortcut-icon {
    padding: 11px;
  }
  .employee-task-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .employee-task {
    padding: 23px;
  }
  .employee-task h3 {
    font-size: 16px;
  }
  .employee-task .btn {
    width: 100%;
  }
  .portal-footer {
    display: none;
  }
  .org-layout {
    display: block;
  }
  .page-head > .flex {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .page-head > .flex .btn {
    font-size: 11px;
    padding: 9px;
  }
  .access-page {
    margin: 40px 18px;
    padding: 28px;
  }
  .login-entry {
    align-items: flex-start;
  }
  .login-entry span {
    max-width: 100px;
  }
}
/* Operational controls use the same quiet industrial palette as the management console. */
.account-panel {
  max-width: 620px;
}
.account-panel .btn {
  margin-top: 20px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 22px;
  color: var(--muted, #617587);
  font-size: 13px;
}
.pagination span {
  margin-right: auto;
}
.pagination button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.course-preview {
  display: block;
  width: 100%;
  max-height: 360px;
  background: #0a2230;
  border-radius: 8px;
}
.code-example {
  white-space: pre-wrap;
  word-break: break-word;
  padding: 14px;
  background: #eef4f7;
  font-size: 12px;
}
.law-meta {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: #617587;
  margin-bottom: 14px;
}
.document-metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  background: #eff5f8;
  border-left: 3px solid #237e92;
}
.document-metadata dt {
  font-size: 12px;
  color: #637788;
}
.document-metadata dd {
  margin: 4px 0 0;
  font-size: 14px;
  word-break: break-word;
}
.reminder-note {
  color: #ad5423 !important;
  background: #fff1df;
  padding: 9px 12px;
  border-radius: 6px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #d58a35;
  outline-offset: 3px;
}
table td .text-btn {
  margin-right: 8px;
}
table td[hidden],
tr[hidden] {
  display: none !important;
}
.toolbar .check {
  border: 0;
  padding: 6px;
  min-width: max-content;
}
.identity {
  cursor: default;
}
@media (max-width: 650px) {
  .document-metadata {
    grid-template-columns: 1fr;
  }
  .pagination {
    gap: 6px;
    padding: 12px;
    flex-wrap: wrap;
  }
  .pagination span {
    width: 100%;
  }
  .portal-user {
    gap: 8px;
  }
  .portal-user > span:not(.avatar) {
    display: none;
  }
  .portal-user .text-btn {
    font-size: 11px;
  }
  .top-actions > .text-btn {
    font-size: 11px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input,
  .toolbar select {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Header actions stay on one line; company names give way before account controls. */
.topbar {
  min-height: 77px;
  height: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.crumb {
  flex: 1 1 180px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-actions {
  flex: 0 0 auto;
  white-space: nowrap;
  max-width: 100%;
}
.top-actions > * {
  flex-shrink: 0;
}
.top-actions .identity,
.top-actions .text-btn {
  white-space: nowrap;
  word-break: keep-all;
}
.company-select {
  max-width: 180px;
  min-width: 100px;
}
.top-actions .avatar {
  flex: 0 0 35px;
}
.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.onboarding-step {
  border-left: 3px solid var(--teal);
  padding: 6px 18px;
}
.onboarding-step h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.onboarding-step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.category-list {
  display: grid;
  gap: 10px;
}
.category-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.category-row strong {
  flex: 1;
}
.category-row .text-btn {
  white-space: nowrap;
}
.category-create {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 20px;
}
.category-create .field {
  flex: 1;
  margin: 0;
}
@media (max-width: 1000px) {
  .topbar {
    padding-left: 20px;
    padding-right: 20px;
    gap: 10px;
  }
  .top-actions {
    gap: 10px;
  }
  .topbar .company-select {
    max-width: 145px;
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: 12px 17px;
    gap: 10px;
  }
  .topbar .crumb {
    flex-basis: 100%;
    max-width: 100%;
  }
  .top-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .top-actions .company-select {
    margin-right: auto;
    max-width: 140px;
  }
  .top-actions .avatar {
    display: none;
  }
  .onboarding-steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .category-row {
    flex-wrap: wrap;
  }
  .category-row strong {
    flex-basis: 65%;
  }
}
