:root {
  --ink: #173d34;
  --muted: #7b8981;
  --green: #1b5847;
  --gold: #c09a55;
  --line: #dfe6de;
  --bg: #f3f5ef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.65 'Microsoft YaHei',
    sans-serif;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: #153d33;
  color: #eaf1e8;
  padding: 35px 23px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 32px;
  letter-spacing: 5px;
  color: #e6c58c;
}
.brand span {
  display: block;
  font: 9px/3 sans-serif;
  letter-spacing: 2px;
  color: #a5bcb0;
}
.navtitle {
  font-size: 11px;
  color: #94ac9e;
  margin: 48px 10px 15px;
}
.nav {
  background: none;
  border: 0;
  text-align: left;
  color: #bbcec1;
  margin: 4px 0;
  padding: 13px 11px;
}
.nav.active {
  background: #31564a;
  color: #f0d19b;
}
.asidefoot {
  margin-top: auto;
  color: #9db8a8;
  font-size: 11px;
  line-height: 2.2;
}
.asidefoot a {
  color: #c7d6cb;
}
main {
  margin-left: 224px;
  padding: 0 34px 25px;
  max-width: 1900px;
}
header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
}
.badge {
  background: #e8eee5;
  border: 1px solid #d4dfd3;
  padding: 4px 10px;
  border-radius: 20px;
  color: #537460;
  font-size: 11px;
  white-space: nowrap;
}
.title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 22px;
}
.eyebrow,
small {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.eyebrow {
  color: #9a7c46;
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 5px 0;
}
h2 {
  font-size: 18px;
  margin: 5px 0 15px;
}
p {
  margin: 6px 0 12px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
button {
  font: inherit;
  border: 1px solid #cbd7cb;
  background: white;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 7px;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover {
  background: #eaf0e5;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.primary:hover {
  background: #26735a;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #c09a55;
  outline-offset: 3px;
}
.goal {
  background: #e8ecdf;
  border: 1px solid #d6dfcd;
  border-left: 4px solid var(--gold);
  padding: 18px 22px;
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.goal p {
  margin-bottom: 0;
  font-size: 13px;
  color: #647458;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  padding: 17px 20px;
  border-radius: 10px;
}
.stat span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.stat strong {
  display: block;
  font-size: 29px;
  margin: 4px 0;
  font-variant-numeric: tabular-nums;
}
.stat small {
  font-size: 10px;
  letter-spacing: 0;
}
.stat.warn strong {
  color: #ab7130;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  min-width: 0;
}
.panelhead {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.map {
  background: radial-gradient(ellipse at 50% 45%, #f5f7ec, white 70%);
}
.harbor {
  position: relative;
  height: 340px;
  background-image: radial-gradient(#cfd9cb 1px, transparent 1px);
  background-size: 18px 18px;
  border-radius: 8px;
}
.harbor svg {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.harbor path {
  stroke: #b1c8b1;
  stroke-width: 2;
  stroke-dasharray: 5 7;
  fill: none;
}
.pulse {
  fill: #ba9250;
}
.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid #557b59;
  border-radius: 24px;
  background: #1b4d3e;
  box-shadow: 0 12px 30px #234f3822;
  color: white;
}
.hub span {
  font-size: 25px;
  letter-spacing: 6px;
  color: #e1bf7f;
}
.hub small {
  font-size: 8px;
  color: #a9c3af;
  letter-spacing: 0;
  margin-top: 5px;
}
.dock {
  position: absolute;
  width: 175px;
  text-align: left;
  padding: 14px;
  background: #fffffff5;
  box-shadow: 0 5px 12px #3451360a;
}
.dock em {
  font-style: normal;
  font-size: 8px;
  letter-spacing: 1px;
  color: #aa8b55;
}
.dock b,
.dock span {
  display: block;
}
.dock b {
  font-size: 15px;
  margin: 4px 0;
}
.dock span {
  font-size: 10px;
  color: var(--muted);
}
.wh {
  left: 3%;
  top: 7%;
}
.sale {
  right: 3%;
  top: 7%;
}
.retail {
  left: 3%;
  bottom: 7%;
}
.market {
  right: 3%;
  bottom: 7%;
}
.dock.done {
  border-color: #3e8462;
  background: #eef6e9;
}
.mapfoot {
  font-size: 10px;
  color: var(--muted);
  padding: 10px 0;
}
.steps {
  display: flex;
  gap: 8px;
  padding: 12px 0 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.steps li {
  flex: 1;
  font-size: 10px;
  color: #94a091;
}
.steps li.done {
  color: #2d7850;
  font-weight: bold;
}
.controls h2 {
  font-size: 19px;
  line-height: 1.5;
}
label {
  display: block;
  font-size: 12px;
  margin: 13px 0;
}
input[type='number'],
textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--ink);
  border: 1px solid #cbd8c9;
  border-radius: 6px;
  padding: 9px;
  margin-top: 6px;
  background: #fafbf8;
}
input[type='range'] {
  display: block;
  width: 100%;
  accent-color: var(--green);
  margin-top: 15px;
}
#rule {
  padding: 13px;
  border-radius: 7px;
  background: #eef3e7;
  font-size: 12px;
  margin: 18px 0;
}
#rule.bad {
  background: #fff0e7;
  color: #a14a30;
}
.controls small {
  font-size: 10px;
  letter-spacing: 0;
}
.bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.docrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #eef0e9;
  gap: 12px;
}
.docrow b {
  font-size: 13px;
}
.docrow span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.docrow button {
  padding: 5px 12px;
  font-size: 11px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.actual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.audit {
  margin-top: 18px;
}
.audit h2 {
  font-size: 14px;
}
#audit {
  font-size: 11px;
  color: #788779;
}
#audit div {
  padding: 4px 0;
}
.deptheading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
}
.deptheading h2 {
  font-size: 26px;
}
textarea {
  resize: vertical;
  line-height: 1.8;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    13px/1.9 'Microsoft YaHei',
    sans-serif;
}
dialog {
  max-width: 800px;
  width: 90%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  color: var(--ink);
  max-height: 85vh;
}
dialog::backdrop {
  background: #102a2288;
  backdrop-filter: blur(3px);
}
footer {
  font-size: 10px;
  color: var(--muted);
  margin-top: 20px;
}
#review {
  font-size: 12px;
  color: #547a4e;
}
@media (min-width: 1550px) {
  main {
    padding-left: 45px;
    padding-right: 45px;
  }
  .harbor {
    height: 370px;
  }
}
@media (max-width: 1200px) {
  aside {
    width: 190px;
  }
  main {
    margin-left: 190px;
    padding: 0 22px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .controls > small,
  .controls > h2,
  .controls > p {
    grid-column: 1/-1;
  }
  .dock {
    width: 170px;
  }
}
@media (max-width: 760px) {
  aside {
    position: static;
    width: 100%;
    padding: 15px;
    display: block;
  }
  .brand {
    font-size: 23px;
  }
  .brand span,
  .navtitle,
  .asidefoot {
    display: none;
  }
  .nav {
    display: inline-block;
    font-size: 11px;
    margin: 3px;
    padding: 7px;
  }
  main {
    margin-left: 0;
    padding: 0 14px;
  }
  .title {
    align-items: start;
    gap: 10px;
  }
  h1 {
    font-size: 25px;
  }
  .title > button {
    font-size: 10px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .stat {
    padding: 12px;
  }
  .stat strong {
    font-size: 23px;
  }
  .bottom {
    grid-template-columns: 1fr;
  }
  .goal {
    display: block;
  }
  .goal button {
    margin-top: 12px;
  }
  .harbor {
    height: 410px;
  }
  .dock {
    width: 135px;
    padding: 10px;
  }
  .dock span {
    font-size: 9px;
  }
  .hub {
    width: 140px;
    height: 110px;
  }
  .controls {
    display: block;
  }
  .panel {
    padding: 17px;
  }
  header {
    font-size: 9px;
  }
  .badge {
    font-size: 9px;
  }
  .mapfoot {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulse {
    display: none;
  }
  * {
    transition: none !important;
  }
}
/* Instrument-style visual system — original campus edition */
:root {
  --bg: #eef7f3;
  --ink: #163f3e;
  --green: #287469;
  --gold: #ee7357;
  --muted: #77918a;
  --line: #d7e8e0;
}
body {
  background: radial-gradient(ellipse at 50% 10%, #fbfffa, #eaf4ef);
  font-family: 'Microsoft YaHei', sans-serif;
}
aside {
  width: 195px;
  background: #f4faf5;
  color: #214c44;
  border-right: 1px solid #d7e7dc;
  padding: 30px 18px;
}
.brand {
  color: #194e47;
  letter-spacing: 6px;
  font-size: 31px;
}
.brand span {
  color: #78948a;
  font-size: 8px;
  letter-spacing: 1.4px;
}
.navtitle {
  color: #96a89b;
  font-size: 10px;
  margin-top: 42px;
}
.nav {
  color: #637e72;
  font-size: 12px;
  padding: 13px 10px;
  border-radius: 4px;
}
.nav.active {
  background: #e3eee4;
  border-left: 3px solid #ef765b;
  color: #214e43;
}
.asidefoot {
  color: #88a093;
  font-size: 10px;
}
.asidefoot a {
  color: #5e8575;
}
main {
  margin-left: 195px;
  padding: 0 28px 30px;
}
header {
  font-family: Consolas, monospace;
  font-size: 10px;
  padding: 16px 0;
}
.title {
  padding: 25px 0 22px;
}
.eyebrow {
  font-family: Consolas, monospace;
  color: #e07960;
  font-size: 10px;
  letter-spacing: 2px;
}
h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 9px 0;
}
.title .muted {
  font-size: 12px;
}
.title > button {
  background: transparent;
  font-size: 11px;
  border-radius: 3px;
  padding: 8px 13px;
}
.badge {
  background: #eff7f0;
  border-color: #d4e6d8;
  font-size: 10px;
}
.goal {
  border: 1px solid #d4e5d6;
  border-left: 3px solid #ec7a60;
  border-radius: 3px;
  background: #f8fcf5;
  padding: 14px 18px;
}
.goal b {
  font-size: 12px;
}
.goal p {
  font-size: 11px;
}
.primary {
  background: #225d53;
  border-color: #225d53;
}
.primary:hover {
  background: #367d6c;
}
button {
  border-radius: 4px;
}
.stats {
  gap: 1px;
  background: #d6e5da;
  border: 1px solid #d6e5da;
  border-radius: 4px;
  overflow: hidden;
  margin: 17px 0;
}
.stat {
  border: 0;
  border-radius: 0;
  background: #f8fcf7;
  padding: 15px 19px;
}
.stat strong {
  font-family: Consolas, 'Microsoft YaHei', monospace;
  font-size: 29px;
  font-weight: 500;
  color: #25564c;
}
.stat.warn strong {
  color: #dc7457;
}
.stat span {
  font-size: 10px;
  letter-spacing: 0.6px;
}
.stat small {
  font-size: 9px;
  color: #8aa093;
}
.workspace {
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 15px;
}
.panel {
  border: 1px solid #d8e8dc;
  background: #fbfef9d9;
  border-radius: 5px;
  padding: 20px;
  box-shadow: 0 8px 30px #224e3804;
}
.panel small {
  font-family: Consolas, monospace;
  font-size: 9px;
  letter-spacing: 1.6px;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.map {
  padding: 0;
  overflow: hidden;
  background: #f2faf4;
}
.map > .panelhead {
  padding: 18px 20px 0;
  position: relative;
  z-index: 1;
}
.map h2 {
  margin: 3px 0 7px;
}
.harbor {
  height: 510px;
  border-radius: 0;
  background: none;
  margin-top: -12px;
}
.harbor canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
.harbor canvas.dragging {
  cursor: grabbing;
}
.scene-meta {
  position: absolute;
  top: 12px;
  left: 20px;
  font:
    9px/1.9 Consolas,
    monospace;
  color: #829d8e;
  letter-spacing: 1px;
  pointer-events: none;
}
.scene-meta span {
  font-size: 9px;
  letter-spacing: 0;
  color: #a0b2a5;
}
.scene-tools {
  position: absolute;
  top: 12px;
  right: 18px;
  display: flex;
  gap: 5px;
}
.scene-tools button {
  font-size: 9px;
  padding: 4px 7px;
  background: #f9fef6b8;
  border-color: #dce9de;
  color: #729181;
}
.scene-tools button[aria-pressed='true'] {
  color: #d46f54;
  border-color: #e2ad9b;
}
.dock {
  width: 150px;
  background: #ffffffba;
  backdrop-filter: blur(9px);
  border: 1px solid #d5e6d6;
  border-left: 2px solid #e7886c;
  border-radius: 2px;
  padding: 10px 12px;
  box-shadow: 0 7px 17px #305b4010;
}
.dock b {
  font-size: 13px;
  color: #28574a;
  font-weight: 500;
}
.dock em {
  font-family: Consolas, monospace;
  font-size: 8px;
  color: #c9755d;
  letter-spacing: 1px;
}
.dock span {
  font-size: 9px;
  color: #809b89;
}
.wh {
  top: 75px;
  left: 18px;
}
.sale {
  top: 75px;
  right: 18px;
}
.retail {
  bottom: 51px;
  left: 18px;
}
.market {
  bottom: 51px;
  right: 18px;
}
.dock.done {
  background: #eaf8e8bd;
  border-color: #7ca98c;
}
.scene-caption {
  position: absolute;
  bottom: 13px;
  left: 20px;
  right: 20px;
  font-size: 9px;
  color: #83a08e;
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}
.scene-caption b {
  margin-left: auto;
  font:
    9px Consolas,
    monospace;
  letter-spacing: 1px;
  color: #ce7659;
}
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #459d7d;
  display: inline-block;
}
.mapfoot {
  padding: 10px 20px;
  background: #f8fcf6;
  border-top: 1px solid #dfebde;
  font-size: 9px;
}
.steps {
  margin: 0;
  padding: 13px 20px;
  background: #fbfef8;
  min-height: 42px;
}
.steps li {
  font-size: 10px;
}
.controls {
  padding: 20px 17px;
}
.controls h2 {
  font-size: 18px;
  line-height: 1.6;
  margin-top: 9px;
}
.controls label {
  font-size: 11px;
  margin-top: 20px;
}
.controls input[type='number'] {
  background: #f8fcf6;
  border-radius: 3px;
  padding: 7px;
  border-color: #d5e5d4;
  font-family: Consolas, monospace;
  font-size: 16px;
}
.controls > small:last-child {
  font-size: 9px;
  color: #90a38e;
}
#rule {
  font-size: 11px;
  background: #eaf3e5;
  border-left: 2px solid #8baf81;
  border-radius: 2px;
  padding: 12px;
  line-height: 1.9;
}
.bottom {
  gap: 15px;
  margin-top: 15px;
}
.docrow {
  padding: 15px 0;
}
.docrow b {
  font-size: 12px;
  font-weight: 500;
}
.docrow span {
  font-size: 10px;
}
.docrow button {
  font-size: 10px;
  border-radius: 3px;
  background: transparent;
}
.actual input {
  background: #f8fcf5;
  border-color: #d6e5d2;
}
.audit {
  background: #f4faf2;
}
.deptheading {
  padding: 15px 0;
}
.deptheading h2 {
  font-size: 25px;
}
.deptheading .muted {
  font-size: 12px;
}
#department textarea {
  background: #fcfef9;
  border-color: #d4e3d1;
  border-radius: 4px;
  font-size: 12px;
}
#department .bottom {
  grid-template-columns: 1fr 1.15fr;
}
footer {
  font-size: 9px;
  line-height: 1.8;
  color: #8c9f90;
}
@media (min-width: 1500px) {
  main {
    padding: 0 40px 35px;
  }
  .harbor {
    height: 570px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .dock {
    width: 170px;
  }
  .wh,
  .sale {
    top: 85px;
  }
}
@media (max-width: 1150px) {
  aside {
    width: 170px;
  }
  main {
    margin-left: 170px;
    padding: 0 18px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 18px;
  }
  .controls > small,
  .controls > h2,
  .controls > p,
  #rule {
    grid-column: 1/-1;
  }
  .controls label {
    margin-top: 10px;
  }
  .harbor {
    height: 480px;
  }
}
@media (max-width: 760px) {
  aside {
    width: 100%;
    padding: 14px;
    position: static;
  }
  .brand {
    font-size: 23px;
  }
  .nav {
    font-size: 10px;
    padding: 7px;
  }
  .nav.active {
    border-left: 0;
    border-bottom: 2px solid #ee7b60;
  }
  main {
    margin-left: 0;
    padding: 0 12px;
  }
  h1 {
    font-size: 24px;
    letter-spacing: 0;
  }
  .stats {
    gap: 1px;
  }
  .stat {
    padding: 12px;
  }
  .stat strong {
    font-size: 24px;
  }
  .harbor {
    height: 460px;
  }
  .dock {
    width: 124px;
    padding: 8px;
  }
  .dock b {
    font-size: 12px;
  }
  .dock em {
    font-size: 7px;
  }
  .dock span {
    font-size: 8px;
  }
  .wh,
  .sale {
    top: 65px;
  }
  .retail,
  .market {
    bottom: 47px;
  }
  .wh,
  .retail {
    left: 10px;
  }
  .sale,
  .market {
    right: 10px;
  }
  .scene-meta {
    left: 12px;
    font-size: 8px;
  }
  .scene-tools {
    right: 10px;
  }
  .scene-tools button {
    font-size: 8px;
  }
  .scene-caption {
    left: 12px;
    right: 12px;
    font-size: 8px;
  }
  .controls {
    display: block;
  }
  .bottom,
  #department .bottom {
    grid-template-columns: 1fr;
  }
  .goal {
    padding: 13px;
  }
  .goal p {
    font-size: 11px;
  }
  .title > button {
    font-size: 9px;
    white-space: nowrap;
  }
  .panel {
    padding: 16px;
  }
  .map {
    padding: 0;
  }
  .map .panelhead {
    padding: 14px 15px 0;
  }
  .scene-caption b {
    font-size: 8px;
  }
}
