:root {
  color-scheme: dark;
  --ink: #e5f0f7;
  --muted: #a0b7c9;
  --line: #8cbed82b;
  --cyan: #6ad5ef;
  --gold: #e7bd63;
  --panel: linear-gradient(145deg, #0a2e49eb, #0b2940e8);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background: #061725;
  color: var(--ink);
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button,
a {
  transition:
    background 0.18s,
    transform 0.18s,
    border-color 0.18s;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
  margin-top: 24px;
}
.environment {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(105deg, #021524e8, #09283acb 60%, #031522e8),
    url("mine-aerial.jpeg") center/cover;
  transform: scale(1.02);
}
.floor-grid {
  position: fixed;
  z-index: -1;
  inset: 30% -20% -50%;
  background-image:
    linear-gradient(#45afcb12 1px, transparent 1px),
    linear-gradient(90deg, #45afcb12 1px, transparent 1px);
  background-size: 65px 65px;
  transform: perspective(600px) rotateX(57deg);
  mask-image: linear-gradient(transparent, #0005);
  pointer-events: none;
}
.hero {
  isolation: isolate;
  border: 1px solid #77c2e23d;
  border-radius: 19px;
  background: linear-gradient(115deg, #0b3455e8, #124366b3 65%, #113a53a8);
  box-shadow:
    0 28px 60px #0004,
    inset 0 1px #ffffff18;
  overflow: hidden;
  min-height: 304px;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 76% 30%, #63bee517, transparent 65%);
  pointer-events: none;
}
.eyebrow {
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1.8px;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(30px, 3.5vw, 49px);
  line-height: 1.09;
  letter-spacing: -1.8px;
  margin: 0 0 17px;
}
.hero h1 span {
  color: #8cd9eb;
}
.hero > div > p:not(.eyebrow) {
  font-size: 12px;
  color: #adc9da;
  margin-bottom: 22px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  background: linear-gradient(130deg, #f2d489, #d6a74d);
  border: 1px solid #f9dc99a6;
  color: #173348;
  border-radius: 8px;
  box-shadow:
    0 8px 22px #0003,
    inset 0 1px #fff6;
  font-size: 12px;
  font-weight: bold;
}
.primary:hover {
  transform: translateY(-2px);
  background: #f3d28a;
}
body { font-family: "Instrument Sans", Arial, sans-serif; }
.hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 36px 38px; }
.sidebar { width: 230px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 25px 16px; background: linear-gradient(165deg,#082238f2,#031524f7); border-right: 1px solid var(--line); }
.brand,.profile,.sidebar-foot { display: flex; align-items: center; gap: 11px; }
.brand { padding: 0 5px; }
.brand img { width: 39px; height: 39px; padding: 4px; object-fit: contain; background: white; border-radius: 9px; }
.brand b { font-size: 15px; }
small { display: block; color: var(--muted); }
.brand small,.profile small,.sidebar-foot small { margin-top: 4px; font-size: 11px; }
nav { margin-top: 46px; }
nav p,.meta { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.25px; }
nav p { padding-left: 11px; }
nav a { display: flex; align-items: center; gap: 12px; border-radius: 8px; padding: 12px 10px; margin-bottom: 4px; border: 1px solid transparent; color: #b4cad8; }
nav a:hover, nav a[aria-current] { background: linear-gradient(110deg,#1b5474ad,#1242687d); color: #ecf8fe; border-color: #7bcee537; }
nav i { width: 19px; text-align: center; color: #88d1e7; font-style: normal; font-size: 17px; }
.sidebar-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); }
.sidebar-foot b { font-size: 12px; }
.light { width: 7px; height: 7px; border-radius: 50%; background: #75d4c2; box-shadow: 0 0 12px #75d4c2; }
main { margin-left: 230px; }
.topbar { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 13px clamp(18px,3vw,44px); background: #051a2bbb; border-bottom: 1px solid var(--line); min-height: 66px; }
.breadcrumb { color: var(--muted); font-size: 12px; }
.breadcrumb span { padding: 0 6px; }
.breadcrumb strong { color: var(--ink); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#e8c97e,#b58a3a); color: #132d3d; font-size: 11px; font-weight: bold; }
#view { padding: 27px clamp(18px,3vw,44px) 42px; max-width: 1570px; margin: auto; }
.hero { background: linear-gradient(98deg,#0b3455f7 18%,#103d5ddd 62%,#113a5399),url("mine-aerial.jpeg") center 45%/cover; }
.hero > div > p:not(.eyebrow) { font-size: 14px; line-height: 1.5; max-width: 420px; }
.hero .eyebrow { font-size: 10px; }
.hero-copy { position: relative; z-index: 1; }




.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; margin: 18px 0 22px; }
.panel,.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 10px 24px #0002, inset 0 1px #ffffff0c; }
.stat { display: flex; gap: 12px; align-items: center; padding: 15px; min-height: 78px; }
.stat .symbol { display: grid; place-items: center; flex-shrink: 0; width: 37px; height: 37px; background: linear-gradient(145deg,#3c779749,#153754); border: 1px solid var(--line); border-radius: 8px; font-size: 20px; color: var(--cyan); }
.stat strong { display: block; font-size: 23px; margin-bottom: 3px; }
.stat small { font-size: 11px; }
.columns { display: grid; grid-template-columns: 1.65fr 1fr; gap: 17px; align-items: start; }
.panel { padding: 19px; min-width: 0; }
.panel h2 { margin-bottom: 4px; }
.subhead { color: var(--muted); font-size: 12px; margin: 0 0 14px; line-height: 1.5; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.text-link { color: #8cd9eb; font-weight: bold; white-space: nowrap; font-size: 12px; padding: 3px 0; }
.row { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.row:last-child { padding-bottom: 0; }
.row h3 { margin: 0 0 5px; }
.row small { line-height: 1.45; }
.status { display: inline-block; color: #90d9ee; background: #6ad5ef16; border: 1px solid #6ad5ef38; padding: 4px 8px; border-radius: 6px; font-size: 11px; white-space: nowrap; }
.status.gold { color: #f2cd80; background: #e7bd6318; border-color: #e7bd6340; }
.status.green { color: #9ae0c5; background: #5ecba318; border-color: #5ecba340; }
.status.red { color: #ffb2a0; background: #ff9b8018; border-color: #ff9b8040; }
.secondary { border: 1px solid #80bed85c; background: #23537173; border-radius: 7px; padding: 8px 11px; color: #e3f2fc; font-weight: bold; font-size: 12px; }
.secondary:hover { background: #347094; }
button:disabled { cursor: default; }
.heading { margin: 4px 0 23px; }
.heading h1 { font-size: clamp(26px,4vw,37px); margin: 0 0 8px; letter-spacing: -1px; }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
input,select { background: #061e30; color: var(--ink); border: 1px solid #78b5d756; border-radius: 7px; padding: 9px 11px; }
.table-scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th,td { padding: 14px 11px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; }
dialog { width: min(620px,calc(100% - 28px)); max-height: 86vh; border: 1px solid #80bed866; border-radius: 16px; padding: 26px; background: #0b2a41; color: var(--ink); box-shadow: 0 25px 90px #0008; }
dialog::backdrop { background: #00101be0; }
.close { float: right; background: #173f57; border: 1px solid var(--line); border-radius: 8px; width: 32px; height: 32px; font-size: 19px; }
#detail-title { padding-right: 38px; }
.lesson { padding: 16px; border: 1px solid var(--line); background: #071e30; border-radius: 8px; margin: 16px 0; line-height: 1.65; }
.lesson p:last-child { margin-bottom: 0; }
fieldset { margin: 12px 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
fieldset label { display: block; padding: 7px; }
.steps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
@media (max-width: 1020px) {  .hero { padding: 28px; } .stats { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 820px) { .sidebar { position: static; width: auto; padding: 13px 18px; } .sidebar-foot,nav p { display: none; } nav { display: flex; overflow: auto; gap: 5px; margin-top: 12px; } nav a { white-space: nowrap; padding: 7px; font-size: 12px; gap: 5px; margin: 0; } main { margin: 0; } }
@media (max-width: 615px) { .columns { grid-template-columns: 1fr; }  .hero { min-height: 258px; padding: 24px; } .topbar { min-height: 53px; } .profile div { display: none; } .stat { padding: 10px; gap: 8px; } .panel { padding: 15px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; } }

.row-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
body { overflow-x: clip; }
[hidden] { display: none !important; }
body.signed-out main { margin-left: 0; }
body.signed-out .breadcrumb { color: var(--ink); font-weight: bold; }
.auth { max-width: 440px; margin: 8vh auto 0; padding: 27px; }
.auth label { display: block; margin-bottom: 14px; }
.auth input,.assessor-form textarea { display: block; width: 100%; margin-top: 6px; }
#notice { margin: 12px clamp(18px,3vw,44px) 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #0a2e49; }
.assessor-form textarea { font: inherit; padding: 9px; color: inherit; background: #061e30; border: 1px solid var(--line); border-radius: 7px; }
.assessor-form label { display: block; margin: 12px 0; }
.certificate-qr { display: block; max-width: 100%; margin: 12px 0; border-radius: 8px; }
details { margin-top: 15px; }
details li { margin-bottom: 6px; }
.team-matrix { margin-top: 17px; }
.report-activity meter { width: 70px; vertical-align: middle; margin-right: 5px; accent-color: #64d8ef; }
.plan-filters { justify-content: flex-start; gap: 12px 18px; }
.plan-demand { list-style: none; padding: 0; margin: 0; max-width: 580px; }
.plan-demand li { display: grid; grid-template-columns: 88px minmax(60px,1fr) 40px; align-items: center; gap: 10px; margin-top: 6px; }
.plan-demand meter { width: 100%; accent-color: #64d8ef; }
.plan-demand strong { text-align: right; }
.plan-table { min-width: 860px; }
.plan-flags { color: #ffca7c; margin: 0; padding-left: 17px; }

.landing { max-width: 1220px; margin: 0 auto; }
.landing-hero { min-height: 415px; padding: clamp(28px, 5vw, 66px); }
.landing-hero h1 { font-size: clamp(40px, 6vw, 78px); line-height: 1; letter-spacing: -.055em; }
.landing-actions, .guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.landing-actions .secondary { min-height: 40px; }
.learning-scene {
  position: relative; flex: 0 1 420px; width: 100%; min-width: 280px; height: 290px;
  perspective: 760px; transform-style: preserve-3d; isolation: isolate;
}
.scene-platform {
  position: absolute; inset: 22% 9% 7%;
  border-radius: 50%; border: 1px solid #8ee9ff80;
  background: repeating-radial-gradient(circle, #06223890 0 12px, #153e5266 13px 14px);
  transform: translateY(48px) rotateX(66deg);
  box-shadow: 0 9px 0 #052234, 0 12px 0 #3e7189, 0 24px 44px #000a, inset 0 0 40px #76def028;
}
.scene-ring {
  position: absolute; left: 50%; top: 49%; width: min(80%, 322px); aspect-ratio: 1;
  border: 1px solid #8ee8fb70; border-radius: 50%;
  transform: translate(-50%, -50%) rotateZ(var(--angle)) rotateX(var(--tilt));
  box-shadow: 0 0 15px #65d9f222, inset 0 0 15px #65d9f222;
}
.scene-ring-a { --angle: -24deg; --tilt: 64deg; }
.scene-ring-b { --angle: 33deg; --tilt: 65deg; border-color: #f2d48970; }
.scene-ring-c { --angle: -6deg; --tilt: 77deg; border-style: dashed; opacity: .72; }
.scene-ring span { position: absolute; inset: 0; animation: scene-orbit 8s linear infinite; }
.scene-ring-b span { animation-duration: 12s; animation-direction: reverse; }
.scene-ring-c span { animation-duration: 17s; animation-delay: -5s; }
.scene-ring span::before {
  content: ""; position: absolute; left: calc(50% - 7px); top: -7px; width: 14px; height: 14px;
  border-radius: 50%; background: #a5f0ff; box-shadow: 0 0 16px 5px #65d9f28c;
}
.scene-ring-b span::before { background: #ffe4a5; box-shadow: 0 0 16px 5px #eec15c8c; }
@keyframes scene-orbit { to { transform: rotate(1turn); } }
.scene-core {
  position: absolute; z-index: 1; top: 24%; left: 32%; width: 36%; height: 48%;
  display: grid; place-content: center; text-align: center; gap: 3px;
  border-radius: 21px; border: 1px solid #93dfffad;
  background: linear-gradient(142deg, #245a79, #0a2840 72%);
  transform: translateZ(38px) rotateX(10deg) rotateY(-18deg) rotateZ(-7deg);
  box-shadow: 5px 7px #1b4660, 9px 12px #0b263c, 16px 26px 36px #000a, inset 0 1px 1px #d2f8ff8f;
  animation: scene-float 6s ease-in-out infinite;
}
.scene-core > small { color: #f5d488; letter-spacing: .16em; }
@keyframes scene-float {
  50% { transform: translate3d(0,-11px,50px) rotateX(15deg) rotateY(-12deg) rotateZ(-5deg); }
}
.scene-node {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 7px; padding: 8px 11px;
  border-radius: 8px; border: 1px solid #81d4eb77; background: linear-gradient(135deg,#1b4760,#0a273b);
  color: #a7eaff; box-shadow: 0 5px 0 #062034, 0 12px 24px #0007;
  transform: translateZ(64px) rotate(var(--lean)); animation: node-float 5s ease-in-out infinite;
}
.scene-node span { font-size: 11px; color: var(--ink); white-space: nowrap; }
.scene-node-sop { left: 5%; top: 24%; --lean: -8deg; }
.scene-node-check { right: 0; top: 41%; --lean: 7deg; animation-delay: -1.7s; }
.scene-node-award { left: 15%; bottom: 15%; --lean: -5deg; animation-delay: -3.2s; }
@keyframes node-float { 50% { transform: translate3d(0,-7px,64px) rotate(var(--lean)); } }
.motion-control {
  position: absolute; bottom: 11px; right: 14px; z-index: 3;
  border: 1px solid #81d4eb55; border-radius: 6px; background: #0a273b;
  color: var(--ink); padding: 5px 8px; font-size: 11px;
}
.motion-control[aria-pressed="true"] { border-color: #f2d489; }
.motion-paused .learning-scene * { animation-play-state: paused; }
.landing-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 20px 0 30px; perspective: 950px; }
.landing-card {
  position: relative; display: grid; justify-items: start; align-content: start; gap: 8px; padding: 19px;
  text-align: left; color: var(--ink); border: 1px solid #477b94; border-radius: 13px;
  background: linear-gradient(146deg,#1b415a,#0b263d 70%);
  transform: rotateX(4deg); transform-style: preserve-3d;
  box-shadow: 0 5px #0a1e2f, 0 8px #284b60, 0 15px 21px #0007, inset 0 1px #c0efff42;
  transition: transform .22s ease, border-color .22s ease;
}
.landing-card:hover, .landing-card:focus-visible { transform: translateY(-6px) rotateX(9deg); border-color: #8be4f5; }
.landing-card > strong { font-size: 16px; }
.landing-card > small { line-height: 1.5; color: #c2d8e4; }
.card-icon { font-size: 22px; color: #a5f0ff; text-shadow: 0 3px #143b53; }
.card-arrow { position: absolute; top: 16px; right: 16px; color: #f5d488; }
.landing-access { grid-template-columns: repeat(2,minmax(0,1fr)); }
.landing-access .auth { width: 100%; max-width: none; margin: 0; scroll-margin-top: 14px; }
.guide-actions { justify-content: space-between; margin-top: 18px; }
.guide-practice { margin: 16px 0; padding: 12px; border: 1px solid #78b5ce66; border-radius: 9px; }
.guide-practice button { margin: 0 6px 6px 0; }
.guide-feedback { margin: 6px 0 0; color: #c6e7f1; }
@media (max-width: 740px) {
  .hero:has(.learning-scene) { flex-direction: column; align-items: stretch; gap: 4px; }
  .learning-scene { flex: none; width: min(100%,400px); min-width: 0; height: clamp(210px,65vw,285px); margin: auto; }
  .landing-cards, .landing-access { grid-template-columns: 1fr; }
  .landing-card { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-control { display: none; }
  .landing-card:hover, .landing-card:focus-visible { transform: none; }
}

.hym-mark { display: block; overflow: hidden; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.hym-mark img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.16); }
.topbar-brand { display: flex; align-items: center; gap: 9px; }
.topbar-brand .hym-mark { width: 34px; flex-shrink: 0; border: 1px solid #8bd7ef; }
.scene-core .hym-mark { width: clamp(48px, 7vw, 80px); margin: 0 auto 5px; box-shadow: 0 3px 12px #0009; }
.shec-panel {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 20px; margin-bottom: 18px;
  border: 1px solid #427765; border-radius: 12px; background: linear-gradient(115deg,#113e3a,#0a2737);
}
.shec-mark {
  display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px;
  background: #12614b; color: #ddffed; border: 1px solid #6db79a; font-size: 26px;
}
.shec-panel .eyebrow { color: #a0e5c5; margin: 0 0 5px; }
.shec-line { margin: 0; }
.shec-zero { margin-left: auto; }
.shec-zero b { display: block; color: #b7f0d4; letter-spacing: .08em; }
.shec-zero small { color: var(--ink); }
@media (max-width: 520px) {
  .shec-zero { margin-left: 56px; }
}
