.yjlink {
  --ink: #e9f6ff;
  --muted: #91abc0;
  --panel: #0d2235;
  --panel-2: #102d44;
  --line: rgba(139, 203, 232, 0.18);
  --cyan: #34d7ed;
  --green: #4adea4;
  --orange: #ffad55;
  --red: #ff5b67;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 720px;
  padding: clamp(18px, 3vw, 38px);
  border: 1px solid rgba(130, 199, 229, 0.2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 83% 0%, rgba(27, 188, 211, 0.16), transparent 35%),
    radial-gradient(circle at 2% 96%, rgba(243, 80, 79, 0.12), transparent 33%),
    linear-gradient(145deg, #071522 0%, #0b1e30 52%, #071725 100%);
  box-shadow: 0 30px 80px rgba(3, 12, 21, 0.28), inset 0 1px rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

.yjlink *,
.yjlink *::before,
.yjlink *::after {
  box-sizing: border-box;
}

.yjlink button {
  font: inherit;
}

.yjlink button:focus-visible {
  outline: 3px solid rgba(52, 215, 237, 0.92);
  outline-offset: 3px;
}

.yjlink-ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.yjlink-ambient::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(83, 162, 194, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 162, 194, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.yjlink-ambient i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan), 0 0 55px rgba(52, 215, 237, 0.55);
  animation: yjlink-float 8s ease-in-out infinite;
}

.yjlink-ambient i:nth-child(1) { top: 12%; left: 7%; }
.yjlink-ambient i:nth-child(2) { top: 44%; right: 4%; animation-delay: -3s; }
.yjlink-ambient i:nth-child(3) { bottom: 8%; left: 48%; animation-delay: -6s; }

.yjlink-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.yjlink-title > span {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.19em;
}

.yjlink-title h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.yjlink-title p {
  max-width: 620px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.yjlink-meters {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

.yjlink-meter {
  position: relative;
  display: flex;
  min-width: 105px;
  min-height: 66px;
  flex-direction: column;
  justify-content: center;
  padding: 10px 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(150deg, rgba(27, 58, 80, 0.95), rgba(10, 35, 54, 0.86));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 14px 28px rgba(0, 0, 0, 0.12);
}

.yjlink-meter::after {
  position: absolute;
  right: -20px;
  bottom: -26px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(52, 215, 237, 0.12);
  content: "";
}

.yjlink-meter small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.yjlink-meter strong {
  position: relative;
  z-index: 1;
  margin-top: 3px;
  color: #fff;
  font-size: 23px;
  line-height: 1;
}

.yjlink-meter strong em {
  margin-left: 2px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.yjlink-combo strong { color: #ffd57b; }

.yjlink-timer::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(52, 215, 237, 0.16) calc(var(--time) * 100%), transparent 0);
  content: "";
  transition: background 0.2s linear;
}

.yjlink-timer.is-urgent {
  border-color: rgba(255, 91, 103, 0.56);
  animation: yjlink-urgent 0.85s ease-in-out infinite alternate;
}

.yjlink-timer.is-urgent strong { color: #ff8791; }

.yjlink-stage-track {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(7, 23, 37, 0.7);
}

.yjlink-stage-step {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  opacity: 0.5;
  transition: opacity 0.25s, transform 0.25s;
}

.yjlink-stage-step > i {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(145, 171, 192, 0.36);
  border-radius: 11px;
  background: #0b2031;
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.yjlink-stage-step span { min-width: 0; }
.yjlink-stage-step b,
.yjlink-stage-step small { display: block; white-space: nowrap; }
.yjlink-stage-step b { overflow: hidden; color: #cfe7f4; font-size: 12px; text-overflow: ellipsis; }
.yjlink-stage-step small { margin-top: 2px; color: #6f8ba1; font-size: 9px; }

.yjlink-stage-step.is-current,
.yjlink-stage-step.is-done { opacity: 1; }

.yjlink-stage-step.is-current { transform: translateY(-1px); }
.yjlink-stage-step.is-current > i { border-color: rgba(52, 215, 237, 0.75); background: linear-gradient(145deg, #1bc4dc, #148ba9); box-shadow: 0 0 22px rgba(52, 215, 237, 0.28); color: #fff; }
.yjlink-stage-step.is-done > i { border-color: rgba(74, 222, 164, 0.7); background: rgba(74, 222, 164, 0.15); color: var(--green); }

.yjlink-stage-line {
  height: 2px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(52, 215, 237, 0.4), rgba(88, 136, 160, 0.15));
}

.yjlink-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 18px;
}

.yjlink-board-column,
.yjlink-console {
  border: 1px solid var(--line);
  border-radius: 23px;
  background: linear-gradient(145deg, rgba(15, 44, 66, 0.92), rgba(8, 28, 43, 0.95));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055), 0 20px 40px rgba(0, 0, 0, 0.18);
}

.yjlink-board-column { padding: clamp(12px, 2vw, 20px); }

.yjlink-board-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
}

.yjlink-board-meta span {
  display: block;
  margin-bottom: 3px;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.yjlink-board-meta h3 { margin: 0; color: #fff; font-size: 19px; }
.yjlink-board-meta p { margin: 0; color: var(--muted); font-size: 12px; }
.yjlink-board-meta p b { color: #fff; font-size: 18px; }

.yjlink-board-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: rgba(52, 215, 237, 0.3) transparent;
}

.yjlink-board-frame {
  position: relative;
  width: 100%;
  min-width: 330px;
  padding: clamp(14px, 2.2vw, 26px);
  overflow: hidden;
  border: 1px solid rgba(79, 169, 201, 0.25);
  border-radius: 20px;
  background:
    linear-gradient(rgba(47, 116, 145, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 116, 145, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 50% 40%, rgba(31, 150, 180, 0.12), transparent 60%),
    #061724;
  background-size: 20px 20px, 20px 20px, auto, auto;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.28);
}

.yjlink-board-frame::before,
.yjlink-board-frame::after {
  position: absolute;
  z-index: 0;
  width: 34px;
  height: 34px;
  border-color: rgba(52, 215, 237, 0.5);
  content: "";
  pointer-events: none;
}

.yjlink-board-frame::before { top: 8px; left: 8px; border-top: 2px solid; border-left: 2px solid; }
.yjlink-board-frame::after { right: 8px; bottom: 8px; border-right: 2px solid; border-bottom: 2px solid; }

.yjlink-board {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: clamp(5px, 0.75vw, 10px);
  width: 100%;
  margin: auto;
}

.yjlink-slot {
  min-width: 0;
  aspect-ratio: 1 / 1.02;
  border-radius: clamp(8px, 1.1vw, 14px);
}

.yjlink-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-width: 0;
  padding: 5px 3px 4px;
  overflow: hidden;
  border: 1px solid rgba(184, 222, 238, 0.34);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(225, 241, 248, 0.92)),
    #eef7fb;
  box-shadow: inset 0 1px #fff, inset 0 -5px rgba(36, 88, 111, 0.07), 0 5px 0 #1b4258, 0 9px 16px rgba(0, 0, 0, 0.2);
  color: #15364a;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  transform: translateY(0);
  transition: transform 0.16s ease, border-color 0.16s, box-shadow 0.16s, filter 0.16s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.yjlink-tile::before {
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.yjlink-tile::after {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 7px #38bdf8;
  content: "";
}

.yjlink-tile canvas {
  display: block;
  width: min(72px, 84%);
  height: auto;
  max-height: calc(100% - 18px);
  object-fit: contain;
  pointer-events: none;
}

.yjlink-tile > span {
  display: block;
  width: 100%;
  margin-top: -1px;
  overflow: hidden;
  color: #16374a;
  font-size: clamp(8px, 0.85vw, 11px);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.yjlink-tile > em {
  position: absolute;
  right: -15px;
  bottom: -18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.08);
}

.yjlink-tile:hover {
  z-index: 2;
  border-color: rgba(52, 215, 237, 0.8);
  box-shadow: inset 0 1px #fff, inset 0 -5px rgba(36, 88, 111, 0.07), 0 7px 0 #116178, 0 13px 22px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(52, 215, 237, 0.15);
  transform: translateY(-3px);
}

.yjlink-tile:active { transform: translateY(2px); box-shadow: inset 0 1px #fff, 0 2px 0 #174158, 0 4px 8px rgba(0, 0, 0, 0.18); }

.yjlink-tile.is-selected {
  z-index: 3;
  border-color: #32e6ff;
  background: linear-gradient(155deg, #fff, #d4f8ff);
  box-shadow: inset 0 1px #fff, 0 6px 0 #0891b2, 0 0 0 3px rgba(52, 215, 237, 0.28), 0 0 24px rgba(52, 215, 237, 0.43);
  transform: translateY(-3px) scale(1.035);
}

.yjlink-tile.is-selected::after { background: #22c55e; box-shadow: 0 0 10px #22c55e; }

.yjlink-tile.is-hint {
  z-index: 3;
  animation: yjlink-hint 0.62s ease-in-out infinite alternate;
}

.yjlink-tile.is-wrong { animation: yjlink-wrong 0.34s ease; }

.yjlink-tile.is-matched {
  z-index: 3;
  border-color: var(--green);
  filter: brightness(1.12);
  animation: yjlink-match 0.42s ease forwards;
}

.yjlink-hole {
  border: 1px dashed rgba(82, 154, 181, 0.07);
  background: rgba(39, 109, 135, 0.025);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.08);
}

.yjlink-path {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.yjlink-board-flash {
  position: absolute;
  inset: 0;
  z-index: 7;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 91, 103, 0.22), transparent 65%);
  opacity: 0;
  pointer-events: none;
}

.yjlink.is-timeout .yjlink-board-flash { animation: yjlink-flash 0.68s ease; }

.yjlink-console {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.yjlink-console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.yjlink-console-top > b { color: #b5cad8; font-size: 10px; }

.yjlink-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.yjlink-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: yjlink-live 1.1s ease-in-out infinite;
}

.yjlink-route-rule {
  display: grid;
  grid-template-columns: 16px 1fr 16px 1fr 16px auto;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(52, 215, 237, 0.18);
  border-radius: 12px;
  background: rgba(52, 215, 237, 0.055);
}

.yjlink-route-rule i {
  width: 15px;
  height: 15px;
  border: 3px solid #e6fbff;
  border-radius: 5px;
  box-shadow: 0 0 7px rgba(52, 215, 237, 0.5);
}

.yjlink-route-rule span { height: 3px; border-radius: 4px; background: var(--cyan); box-shadow: 0 0 8px rgba(52, 215, 237, 0.5); }
.yjlink-route-rule b { color: var(--cyan); font-size: 11px; }

.yjlink-console > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.yjlink-actions { display: grid; gap: 9px; }

.yjlink-action {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(132, 190, 215, 0.18);
  border-radius: 14px;
  background: rgba(19, 56, 80, 0.78);
  color: #e7f5fb;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}

.yjlink-action > i {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  border-radius: 10px;
  background: rgba(52, 215, 237, 0.11);
  color: var(--cyan);
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
}

.yjlink-action span { font-size: 12px; font-weight: 800; }
.yjlink-action small { display: block; margin-top: 2px; color: #7896aa; font-size: 9px; font-weight: 600; }
.yjlink-action:hover:not(:disabled) { border-color: rgba(52, 215, 237, 0.55); background: rgba(24, 75, 99, 0.88); transform: translateX(2px); }
.yjlink-action.is-hint > i { color: #ffd36c; background: rgba(255, 195, 78, 0.12); }
.yjlink-action.is-active { border-color: rgba(255, 173, 85, 0.55); background: rgba(255, 173, 85, 0.08); }
.yjlink-action:disabled { opacity: 0.38; cursor: not-allowed; }

.yjlink-status {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 62px;
  padding: 11px;
  border-left: 3px solid var(--cyan);
  border-radius: 9px;
  background: rgba(52, 215, 237, 0.07);
}

.yjlink-status > i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.yjlink-status > span { color: #c6dce8; font-size: 10px; line-height: 1.65; }
.yjlink-status.is-good { border-color: var(--green); background: rgba(74, 222, 164, 0.075); }
.yjlink-status.is-good > i { background: var(--green); box-shadow: 0 0 8px var(--green); }
.yjlink-status.is-bad { border-color: var(--red); background: rgba(255, 91, 103, 0.07); }
.yjlink-status.is-bad > i { background: var(--red); box-shadow: 0 0 8px var(--red); }

.yjlink-safety {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.yjlink-safety b { color: #ffcb7d; font-size: 10px; }
.yjlink-safety p { margin: 4px 0 0; color: #6e8ca1; font-size: 9px; line-height: 1.65; }

.yjlink-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 14, 23, 0.78);
  backdrop-filter: blur(10px);
}

.yjlink-overlay[hidden] { display: none; }

.yjlink-clear-card {
  width: min(510px, 100%);
  padding: clamp(25px, 5vw, 43px);
  border: 1px solid rgba(86, 223, 179, 0.42);
  border-radius: 27px;
  background:
    radial-gradient(circle at 50% 0%, rgba(74, 222, 164, 0.18), transparent 40%),
    linear-gradient(155deg, #113047, #091d2d);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.5), inset 0 1px rgba(255, 255, 255, 0.08);
  text-align: center;
  animation: yjlink-card-in 0.42s cubic-bezier(0.2, 0.9, 0.25, 1.2);
}

.yjlink-clear-badge {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  place-items: center;
}

.yjlink-clear-badge::before,
.yjlink-clear-badge::after,
.yjlink-clear-badge i {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(74, 222, 164, 0.6);
  border-radius: 22px;
  content: "";
}

.yjlink-clear-badge::before { transform: rotate(30deg); }
.yjlink-clear-badge::after { transform: rotate(60deg); }
.yjlink-clear-badge i { background: rgba(74, 222, 164, 0.12); box-shadow: 0 0 35px rgba(74, 222, 164, 0.28); }
.yjlink-clear-badge span { position: relative; z-index: 2; color: var(--green); font-size: 32px; font-weight: 900; }
.yjlink-clear-card > small { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: 0.2em; }
.yjlink-clear-card h3 { margin: 8px 0; color: #fff; font-size: clamp(24px, 5vw, 34px); }
.yjlink-clear-card > p { margin: 0 auto 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }

.yjlink-clear-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 20px;
}

.yjlink-clear-stats span { padding: 11px 6px; border: 1px solid var(--line); border-radius: 13px; background: rgba(6, 23, 36, 0.72); }
.yjlink-clear-stats small,
.yjlink-clear-stats b { display: block; }
.yjlink-clear-stats small { color: var(--muted); font-size: 9px; }
.yjlink-clear-stats b { margin-top: 3px; color: #fff; font-size: 22px; }

.yjlink-clear-card > button {
  min-width: 215px;
  padding: 13px 21px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #42e6ad, #1aadc7);
  box-shadow: 0 12px 28px rgba(28, 193, 183, 0.25);
  color: #05232b;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}

.yjlink-clear-card > button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(28, 193, 183, 0.36); }
.yjlink-clear-card > button:disabled { opacity: 0.58; cursor: default; }

.yjlink.is-shuffling .yjlink-tile { animation: yjlink-shuffle 0.34s ease both; pointer-events: none; }
.yjlink.is-paused .yjlink-board-frame::after {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  width: auto;
  height: auto;
  place-items: center;
  border: 0;
  border-radius: inherit;
  background: rgba(4, 17, 28, 0.82);
  color: #e7f7ff;
  content: "训练已暂停";
  font-size: clamp(19px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

@keyframes yjlink-float {
  0%, 100% { opacity: 0.35; transform: translate3d(0, 0, 0) scale(0.8); }
  50% { opacity: 0.9; transform: translate3d(20px, -30px, 0) scale(1.2); }
}

@keyframes yjlink-live { 50% { opacity: 0.35; transform: scale(0.7); } }
@keyframes yjlink-urgent { to { box-shadow: 0 0 24px rgba(255, 91, 103, 0.23); } }
@keyframes yjlink-hint {
  from { box-shadow: inset 0 1px #fff, 0 5px 0 #1b4258, 0 0 0 2px rgba(255, 201, 91, 0.25), 0 0 12px rgba(255, 201, 91, 0.22); transform: translateY(-1px); }
  to { box-shadow: inset 0 1px #fff, 0 7px 0 #a36a0d, 0 0 0 4px rgba(255, 201, 91, 0.65), 0 0 30px rgba(255, 201, 91, 0.7); transform: translateY(-5px) scale(1.04); }
}

@keyframes yjlink-wrong {
  20% { border-color: var(--red); transform: translateX(-5px); }
  45% { transform: translateX(5px); }
  70% { transform: translateX(-3px); }
}

@keyframes yjlink-match {
  0% { transform: scale(1); }
  55% { opacity: 1; transform: scale(1.14) rotate(-2deg); }
  100% { opacity: 0; transform: scale(0.55) rotate(4deg); }
}

@keyframes yjlink-flash { 35% { opacity: 1; } }
@keyframes yjlink-shuffle {
  35% { opacity: 0.25; transform: scale(0.7) rotate(4deg); }
  70% { opacity: 0.7; transform: scale(1.04) rotate(-2deg); }
}

@keyframes yjlink-card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1020px) {
  .yjlink-workbench { grid-template-columns: 1fr; }
  .yjlink-console { display: grid; grid-template-columns: 1fr 1.25fr; align-items: start; }
  .yjlink-console-top,
  .yjlink-route-rule,
  .yjlink-console > p { grid-column: 1; }
  .yjlink-actions { grid-column: 2; grid-row: 1 / span 3; }
  .yjlink-status { grid-column: 1 / -1; }
  .yjlink-safety { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .yjlink { min-height: 650px; padding: 16px; border-radius: 22px; }
  .yjlink-head { align-items: flex-start; flex-direction: column; gap: 15px; }
  .yjlink-meters { width: 100%; }
  .yjlink-meter { min-width: 0; min-height: 59px; flex: 1; padding: 9px 10px; }
  .yjlink-meter strong { font-size: 20px; }
  .yjlink-stage-track { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
  .yjlink-stage-step { flex: 0 0 auto; }
  .yjlink-stage-step > i { width: 29px; height: 29px; flex-basis: 29px; }
  .yjlink-stage-line { width: 25px; flex: 0 0 25px; }
  .yjlink-board-column { padding: 10px; }
  .yjlink-board-frame { padding: 12px; }
  .yjlink-console { display: flex; padding: 14px; }
  .yjlink-actions { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .yjlink-action { min-width: 0; flex-direction: column; gap: 5px; padding: 9px 4px; text-align: center; }
  .yjlink-action > i { width: 30px; height: 30px; flex-basis: 30px; font-size: 17px; }
  .yjlink-action span { font-size: 10px; }
  .yjlink-action small { font-size: 8px; }
  .yjlink-safety { margin-top: 0; }
}

@media (max-width: 480px) {
  .yjlink-title h2 { font-size: 26px; }
  .yjlink-title p { font-size: 11px; }
  .yjlink-meter small { font-size: 8px; }
  .yjlink-board-meta h3 { font-size: 16px; }
  .yjlink-board-frame { min-width: 326px; }
  .yjlink-board { gap: 4px; }
  .yjlink-slot { border-radius: 7px; }
  .yjlink-tile { padding: 3px 1px 2px; box-shadow: inset 0 1px #fff, inset 0 -3px rgba(36, 88, 111, 0.07), 0 3px 0 #1b4258, 0 6px 9px rgba(0, 0, 0, 0.19); }
  .yjlink-tile canvas { width: 86%; max-height: calc(100% - 12px); }
  .yjlink-tile > span { font-size: 7px; letter-spacing: -0.06em; }
  .yjlink-clear-stats b { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .yjlink *,
  .yjlink *::before,
  .yjlink *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
