:root {
  --nav:#123747;
  --primary:#176b76;
  --primary-hover:#115761;
  --page:#f2f5f6;
  --surface:#fff;
  --ink:#192b36;
  --muted:#526772;
  --line:#dce5e8;
  --control-line:#8099a2;
  --soft:#e9f0f2;
  --warning-bg:#fff1d9;
  --warning-ink:#805216;
  --danger-bg:#fce8e5;
  --danger-ink:#8b3028;
  --danger:#a13d37;
  font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;
  color:var(--ink);
  background:var(--page);
  font-size:16px;
  line-height:1.6;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
body.workspace-shell {
  display:grid;
  grid-template-columns:232px minmax(0,1fr);
  align-items:start;
}
a {
  color:var(--primary);
  text-decoration:none;
  overflow-wrap:anywhere;
}
a:hover {
  text-decoration:underline;
}
button,.button,a,summary {
  touch-action:manipulation;
}
:where(a,button,input,select,textarea,summary):focus-visible {
  outline:3px solid var(--primary);
  outline-offset:4px;
}
.skip-link {
  position:fixed;
  top:8px;
  left:8px;
  transform:translateY(-150%);
  padding:12px 20px;
  background:white;
  z-index:100;
}
.skip-link:focus {
  transform:none;
}
header {
  background:var(--nav);
  color:white;
  padding:28px 18px;
  display:flex;
  gap:24px;
  flex-direction:column;
  position:sticky;
  top:0;
  height:100vh;
  height:100dvh;
  overflow-y:auto;
}
header a {
  color:white;
}
header a:focus-visible,header button:focus-visible {
  outline-color:#9adbe0;
}
header .brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:19px;
  font-weight:700;
  line-height:1.35;
  text-decoration:none;
}
.brand small {
  display:block;
  margin-top:8px;
  font-size:12px;
  font-weight:400;
  color:#c6d9df;
}
.brand-mark {
  flex:0 0 32px;
  height:36px;
  border:1.5px solid #9adbe0;
  border-radius:3px;
  position:relative;
}
.brand-mark::before {
  content:"";
  position:absolute;
  left:6px;
  top:8px;
  width:18px;
  height:12px;
  border:1.5px solid #9adbe0;
  border-right-width:5px;
}
.brand-mark::after {
  content:"";
  position:absolute;
  left:6px;
  right:6px;
  bottom:6px;
  border-top:1.5px solid #9adbe0;
}
header nav {
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:16px;
}
header nav a {
  padding:11px 14px;
  border-radius:8px;
  font-size:15px;
  min-height:46px;
  border-left:3px solid transparent;
}
header nav a:hover {
  background:#214b5a;
  text-decoration:none;
}
header nav a[aria-current=page] {
  background:#265866;
  border-left-color:#9adbe0;
  font-weight:700;
}
.nav-count {
  display:inline-block;
  padding:0 7px;
  margin-left:6px;
  border-radius:4px;
  background:#fff1d9;
  color:#805216;
  font-size:13px;
}
.navigation-note {
  color:#c6d9df;
  font-size:12px;
  margin-top:auto;
}
header form {
  margin:0;
}
header form button.secondary {
  width:100%;
  font-size:13px;
  background:#214b5a;
  color:white;
  border-color:#537783;
  white-space:normal;
}
main {
  width:100%;
  min-width:0;
  max-width:1280px;
  margin:0 auto;
  padding:36px 40px 64px;
}
main:focus {
  outline:none;
}
.guest-shell header {
  position:static;
  height:auto;
  padding:20px 32px;
}
.guest-shell main {
  max-width:1120px;
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:28px;
  flex-wrap:wrap;
}
.page-heading h1 {
  margin-bottom:6px;
}
.page-heading p {
  margin:0;
}
h1 {
  font-size:28px;
  letter-spacing:-.5px;
  line-height:1.4;
  margin:0 0 20px;
  font-weight:700;
  overflow-wrap:anywhere;
}
h2 {
  font-size:19px;
  line-height:1.5;
  margin:0 0 14px;
}
h3 {
  font-size:16px;
  margin:0 0 10px;
}
p {
  margin:10px 0 16px;
  overflow-wrap:anywhere;
}
.card {
  min-width:0;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  padding:24px;
  margin:0 0 20px;
  box-shadow:0 2px 3px #12374704;
}
.card .card {
  box-shadow:none;
  border-radius:8px;
  padding:16px;
}
.grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));
  gap:20px;
}
.grid>.card {
  margin-bottom:0;
}
.row {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.row>* {
  min-width:0;
  max-width:100%;
}
.row h1,.row h2 {
  margin-bottom:0;
}
.row+.card,.row+section {
  margin-top:20px;
}
.muted {
  color:var(--muted);
}
.small {
  font-size:14px;
}
.pill {
  display:inline-block;
  max-width:100%;
  overflow-wrap:anywhere;
  vertical-align:middle;
  background:#e2f2f1;
  color:#14565c;
  border:1px solid #bbdcdd;
  border-radius:6px;
  padding:3px 9px;
  font-size:13px;
  font-weight:600;
}
.warn {
  background:var(--warning-bg);
  color:var(--warning-ink);
}
.danger {
  background:var(--danger-bg);
  color:var(--danger-ink);
}
.pill.warn {
  border-color:#e1c384;
}
.pill.danger {
  border-color:#e1b5b0;
}
.card.warn {
  border-color:#e1c384;
  box-shadow:none;
}
.button,button {
  border:1px solid transparent;
  border-radius:8px;
  background:var(--primary);
  color:white;
  min-height:44px;
  padding:10px 18px;
  cursor:pointer;
  font:inherit;
  font-size:14px;
  line-height:1.5;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow-wrap:anywhere;
  transition:background-color 160ms;
}
.button.secondary,button.secondary {
  background:var(--soft);
  color:#24444e;
  border-color:#b8cbd1;
}
.button.danger,button.danger {
  background:var(--danger);
  color:white;
}
.button:hover,button:hover {
  text-decoration:none;
  background:var(--primary-hover);
}
.button.secondary:hover,button.secondary:hover {
  background:#dce8ec;
}
.button.danger:hover,button.danger:hover {
  background:#862e29;
}
button:disabled {
  cursor:not-allowed;
  opacity:.6;
}
label {
  display:block;
  font-weight:600;
  margin:14px 0 6px;
  font-size:14px;
}
input,select,textarea {
  width:100%;
  max-width:100%;
  min-height:44px;
  font:inherit;
  font-size:16px;
  padding:10px 12px;
  border:1px solid var(--control-line);
  border-radius:7px;
  background:white;
  color:var(--ink);
}
input::placeholder,textarea::placeholder {
  color:var(--muted);
}
input[type=checkbox],input[type=radio] {
  width:18px;
  height:18px;
  min-height:0;
  margin:0 6px 0 0;
  vertical-align:middle;
  accent-color:var(--primary);
}
input[type=file] {
  padding:8px;
  white-space:normal;
}
textarea {
  min-height:100px;
  resize:vertical;
}
.errorlist {
  color:#a12929;
  overflow-wrap:anywhere;
}
.message {
  background:#e8f4ed;
  border-left:4px solid #2c8b56;
  border-radius:6px;
  padding:14px 18px;
  margin:0 0 20px;
}
.message.error {
  background:#fff0ed;
  border-color:#bc4c3e;
}
table {
  width:100%;
  border-collapse:collapse;
  overflow-wrap:anywhere;
}
td,th {
  text-align:left;
  vertical-align:top;
  padding:14px 12px;
  border-bottom:1px solid var(--line);
}
th {
  font-size:13px;
  color:var(--muted);
  background:#f5f8f9;
  font-weight:600;
}
td {
  font-size:14px;
}
td a {
  font-weight:600;
}
tbody tr:last-child td {
  border-bottom:0;
}
details {
  margin:12px 0;
}
summary {
  cursor:pointer;
  color:var(--primary);
  padding:12px 0;
  min-height:44px;
  font-weight:600;
}
.mono {
  font-family:Consolas,ui-monospace,monospace;
  overflow-wrap:anywhere;
}
.break {
  overflow-wrap:anywhere;
}
.filters {
  display:flex;
  gap:16px;
  align-items:end;
  flex-wrap:wrap;
  background:#f5f8f9;
  border:1px solid var(--line);
  border-radius:8px;
  padding:16px;
  margin:20px 0;
}
.filters>div {
  min-width:140px;
  flex:1;
}
.filters label {
  margin-top:0;
}
.filters select {
  min-width:140px;
}
.project-grid {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));
}
.project-card {
  padding:28px;
  border-top:3px solid var(--primary);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
}
.project-card h2 {
  font-size:23px;
  margin:0;
}
.project-card p {
  margin:0;
}
.project-card .button {
  margin-top:12px;
}
.project-symbol {
  width:44px;
  height:44px;
  color:var(--primary);
  margin-bottom:8px;
}
.project-grid .project-card {
  max-width:600px;
}
.empty-state {
  padding:44px 28px;
  color:var(--muted);
}
.document-summary {
  border-top:3px solid var(--primary);
}
.document-summary>.row {
  gap:20px;
  align-items:flex-start;
}
.document-summary>.row>div {
  flex:1 1 240px;
}
.document-summary h1 {
  font-size:25px;
  margin-bottom:12px;
}
.document-meta {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px 32px;
  border-top:1px solid var(--line);
  padding-top:20px;
  margin:20px 0 0;
}
.document-meta>div {
  min-width:0;
}
.document-meta dt {
  color:var(--muted);
  font-size:13px;
  margin-bottom:6px;
}
.document-meta dd {
  margin:0;
  overflow-wrap:anywhere;
}
.document-meta .wide {
  grid-column:1/-1;
}
.breadcrumb {
  margin:0 0 20px;
  font-size:14px;
}
.login-layout {
  display:grid;
  grid-template-columns:1fr 440px;
  gap:56px;
  align-items:center;
  padding-top:60px;
}
.login-intro h1 {
  font-size:38px;
  max-width:12em;
}
.login-intro p {
  color:var(--muted);
  max-width:28em;
}
.login-card {
  padding:32px;
}
.login-card h2 {
  font-size:24px;
}
.login-card button {
  width:100%;
  margin-top:12px;
}
.login-intro .brand-mark {
  display:block;
  width:64px;
  height:72px;
  margin-bottom:24px;
  border-color:var(--primary);
}
.login-intro .brand-mark::before {
  border-color:var(--primary);
  width:42px;
  height:28px;
  left:9px;
  top:15px;
}
.login-intro .brand-mark::after {
  border-color:var(--primary);
  left:9px;
  right:9px;
  bottom:12px;
}
@media(max-width:1100px) {
  main {
    padding:28px 24px 48px;
  }
  body.workspace-shell {
    grid-template-columns:208px minmax(0,1fr);
  }
  header {
    padding:24px 14px;
  }
  header .brand {
    font-size:17px;
    gap:8px;
  }
}
@media(max-width:900px) {
  body.workspace-shell {
    display:block;
  }
  header {
    height:auto;
    position:static;
    padding:16px 20px;
    flex-direction:row;
    flex-wrap:wrap;
    gap:12px;
    align-items:center;
  }
  header .brand {
    flex:1;
  }
  header .brand small,.navigation-note {
    display:none;
  }
  header form {
    margin-left:auto;
  }
  header nav {
    width:100%;
    order:3;
    flex-direction:row;
    flex-wrap:wrap;
    gap:8px;
    margin:4px 0 0;
  }
  header nav a {
    padding:8px 14px;
  }
  .guest-shell header {
    padding:20px;
  }
  .login-layout {
    gap:28px;
    grid-template-columns:1fr 1fr;
    padding-top:24px;
  }
  .login-intro h1 {
    font-size:30px;
  }
}
@media(max-width:650px) {
  main {
    padding:24px 16px 40px;
  }
  header {
    padding:16px;
  }
  header form button.secondary {
    padding:8px 10px;
  }
  .card {
    padding:20px 16px;
  }
  .card .card {
    padding:12px;
  }
  .page-heading {
    margin-bottom:20px;
  }
  h1 {
    font-size:24px;
  }
  h2 {
    font-size:18px;
  }
  .project-card h2 {
    font-size:21px;
  }
  .document-summary h1 {
    font-size:22px;
  }
  .document-meta {
    grid-template-columns:1fr;
    gap:16px;
  }
  .document-meta .wide {
    grid-column:auto;
  }
  .grid {
    gap:16px;
  }
  table {
    display:block;
    overflow-x:auto;
  }
  td,th {
    padding:12px 8px;
  }
  .filters {
    gap:12px;
    padding:12px;
  }
  .filters>div {
    flex-basis:100%;
    min-width:0;
  }
  .filters button {
    width:100%;
  }
  .filters select {
    min-width:0;
  }
  .effective-table thead {
    display:none;
  }
  .effective-table,.effective-table tbody,.effective-table tr,.effective-table td {
    display:block;
  }
  .effective-table tr {
    padding:12px 0;
    border-bottom:1px solid var(--line);
  }
  .effective-table td {
    border:0;
    padding:6px 0;
  }
  .effective-table td::before,.scope-table td[data-label]::before {
    content:attr(data-label);
    display:block;
    color:var(--muted);
    font-size:13px;
    margin-bottom:4px;
  }
  .scope-table,.scope-table tr,.scope-table td {
    display:block;
  }
  .scope-table tr:first-child {
    display:none;
  }
  .scope-table tr:not(:first-child) {
    padding:12px 0;
    border-bottom:1px solid var(--line);
  }
  .scope-table td {
    border:0;
    padding:6px 0;
  }
  .login-layout {
    display:block;
    padding-top:0;
  }
  .login-intro {
    margin-bottom:24px;
  }
  .login-intro .brand-mark {
    display:none;
  }
  .login-intro h1 {
    font-size:28px;
  }
  .login-card {
    padding:24px 20px;
  }
  .review-file .row .button {
    flex:1 1 140px;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    transition:none!important;
    animation:none!important;
    scroll-behavior:auto!important;
  }
}
