:root {
  color-scheme: light;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #182741;
  background: #f3f6fb;
  --ink: #182741;
  --muted: #546581;
  --blue: #1746a5;
  --line: #dce5f1;
  --nav: #10203b;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: var(--blue); text-decoration: none; }
a:focus-visible { outline: 3px solid #517fea; outline-offset: 3px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1 { font-size: clamp(25px, 3vw, 36px); line-height: 1.18; letter-spacing: -.04em; }
h2 { font-size: 17px; margin-bottom: 12px; }
h3 { font-size: 16px; line-height: 1.4; }

.sidebar {
  background: var(--nav);
  color: white;
  width: 223px;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 27px 15px;
}
.brand { display: flex; align-items: center; gap: 11px; color: white; margin: 0 7px 33px; }
.brand-mark {
  background: #769dff;
  color: #11254b;
  border-radius: 9px;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 23px;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .07em; }
.brand small { color: #bbcbe4; font-size: 12px; }
nav { display: grid; gap: 5px; }
nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  color: #cbd7e9;
  padding: 9px 11px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 550;
}
nav a span { text-align: center; width: 18px; color: #aac3ff; font-size: 17px; }
nav a:hover { background: #1b3154; color: #fff; }
nav a[aria-current] { background: #213c67; color: #fff; border-left-color: #8fb0ff; }

main { margin-left: 223px; max-width: 1670px; padding: 35px clamp(20px, 4vw, 56px); }
main > section + section { margin-top: 22px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.page-heading { margin-bottom: 23px; }
.page-heading p { color: var(--muted); margin-top: 6px; }
.environment { color: #3d516f; background: #e8eef8; padding: 4px 9px; border-radius: 6px; font-size: 12px; white-space: nowrap; }

.panel, .entry {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 2px 5px #10203b05;
}
.entries, .resources { display: grid; gap: 14px; }
.resources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.original-overview { color: #1a1a1a; line-height: normal; }

.entries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.entry {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  padding: 12px;
}
.entry:hover { border-color: #8ba9e1; background: #fbfdff; }
.entry-icon { display: grid; place-items: center; min-height: 36px; border-radius: 8px; color: #204f9a; background: #eaf1ff; font-size: 19px; }
.entry strong, .entry small { display: block; }
.entry small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.entry-arrow { color: var(--blue); }

.resource { padding: 17px 19px 10px; min-width: 0; align-self: start; }
.resource:only-child { grid-column: 1 / -1; }
.resource-description, .resource-meta { margin-top: 6px; font-size: 13px; color: var(--muted); }
.resource-meta { color: #24518e; font-size: 12px; }
.resource ul { list-style: none; padding: 0; margin: 12px 0 0; }
.resource li { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #edf1f7; padding: 9px 0; }
.resource li > span { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.row-actions { display: flex; gap: 6px; }
.action { color: #1746a5; background: #eaf1ff; padding: 3px 8px; border-radius: 5px; font-size: 12px; white-space: nowrap; }
.action:hover { background: #dbe8ff; }
.dispatch-entry { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 19px; margin-bottom: 14px; }
.dispatch-note { margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.dispatch-entry h2 { margin-bottom: 4px; }
.dispatch-entry p { color: var(--muted); font-size: 13px; }
.dispatch-link { background: #1746a5; color: white; padding: 8px 12px; border-radius: 6px; white-space: nowrap; font-weight: 600; }
.dispatch-link:hover { background: #123b8b; }

@media (max-width: 1050px) {
  .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sidebar { width: auto; position: static; padding: 12px 15px; }
  .brand { margin: 0 0 8px; }
  nav { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 3px; }
  nav a { padding: 6px 8px; min-height: 37px; }
  nav a span { display: none; }
  main { margin: 0; padding: 20px 14px; }
  .page-heading { align-items: flex-start; margin-bottom: 15px; }
  .resource { padding: 12px; }
  .resources { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .entries { grid-template-columns: 1fr; }
  .dispatch-entry { align-items: flex-start; flex-direction: column; }
}
