:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #617086;
  --line: #d8e0ea;
  --brand: #126b55;
  --brand-dark: #0d4c41;
  --accent: #b64122;
  --bg: #f5f7f8;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  font-weight: 800;
  color: var(--brand-dark);
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 28px;
  align-items: stretch;
  padding: clamp(34px, 6vw, 80px) clamp(18px, 4vw, 56px);
  min-height: 520px;
  background:
    linear-gradient(120deg, rgba(10, 72, 62, 0.92), rgba(25, 55, 80, 0.86)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='700' viewBox='0 0 1200 700'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.16'%3E%3Cpath d='M0 120h1200M0 260h1200M0 400h1200M0 540h1200M120 0v700M300 0v700M520 0v700M760 0v700M980 0v700'/%3E%3Ccircle cx='360' cy='250' r='72'/%3E%3Ccircle cx='850' cy='410' r='96'/%3E%3Cpath d='M360 178v-70M360 322v88M288 250h-92M432 250h120M754 410H620M946 410h118M850 314V188M850 506v98'/%3E%3C/g%3E%3C/svg%3E");
  color: #fff;
}

.hero-copy {
  align-self: center;
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.hero .eyebrow {
  color: #ffd7a3;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
}

.hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
}

.search {
  display: flex;
  gap: 10px;
  max-width: 760px;
  margin-top: 30px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 13px 14px;
  outline: 0;
}

button,
.buy-links a {
  border: 0;
  padding: 12px 18px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.hero-panel {
  align-self: center;
  display: grid;
  gap: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-panel span {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.15);
}

.band,
.content {
  padding: clamp(34px, 5vw, 64px) clamp(18px, 4vw, 56px);
}

.band {
  background: #fff;
}

.section-title {
  max-width: 760px;
  margin-bottom: 24px;
}

.doc-grid,
.product-list,
.resource-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.doc-grid article,
.product-card,
.resource-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px;
}

.product-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 16px;
}

.product-card,
.resource-card {
  display: grid;
  gap: 16px;
}

.download-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 160px;
  gap: 12px;
  max-width: 820px;
  margin-bottom: 18px;
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.resource-list {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.download-side {
  display: grid;
  gap: 14px;
}

.download-side section,
.book-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.download-side h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.download-side ol {
  margin: 0;
  padding-left: 22px;
}

.download-side li {
  margin-bottom: 8px;
}

.download-side a {
  display: block;
  color: var(--brand-dark);
}

.resource-type {
  width: fit-content;
  padding: 7px 10px;
  background: #eef2f6;
  color: #24364c;
  font-size: 13px;
  font-weight: 800;
}

.source-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resource-actions a,
.resource-actions button {
  display: inline-flex;
  align-items: center;
  border: 0;
  padding: 10px 12px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.resource-actions .copy-code {
  background: #24364c;
}

.resource-actions .resource-inquiry {
  background: var(--accent);
}

.book-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.book-card {
  display: grid;
  gap: 14px;
}

.book-card button {
  width: fit-content;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  padding: 5px 9px;
  background: #e7f1ee;
  color: var(--brand-dark);
  font-size: 13px;
}

.doc-list {
  display: grid;
  gap: 8px;
}

.doc-list button {
  text-align: left;
  background: #f2f5f5;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 10px 12px;
}

.buy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.buy-links a {
  background: #24364c;
  font-size: 14px;
}

.inquiry-band {
  border-top: 1px solid var(--line);
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1100px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px;
  color: var(--ink);
  background: #fff;
  outline-color: var(--brand);
}

.wide {
  grid-column: 1 / -1;
}

.form-msg {
  align-self: center;
  color: var(--brand-dark);
  font-weight: 700;
}

footer {
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.muted {
  color: var(--muted);
}

.admin-tools {
  display: flex;
  gap: 10px;
  max-width: 720px;
  margin-bottom: 20px;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f2f5f5;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .doc-grid,
  .download-toolbar,
  .download-layout,
  .book-list,
  .inquiry-form {
    grid-template-columns: 1fr;
  }

  .search,
  .admin-tools {
    flex-direction: column;
  }
}

.library-body {
  overflow: hidden;
  background: #f7f9fc;
}

.admin-body {
  overflow: auto;
}

.library-header {
  display: grid;
  grid-template-columns: 180px 520px minmax(220px, 1fr);
  gap: 16px;
  align-items: center;
  height: 58px;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid #e7ebf2;
}

.library-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.library-search span {
  flex: 0 0 auto;
  color: #20304a;
  font-weight: 800;
  white-space: nowrap;
}

.library-search input {
  width: 320px;
  flex: 0 1 320px;
  min-width: 180px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d8e0ea;
  outline: 0;
}

.library-search button,
.library-home {
  flex: 0 0 auto;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 0 14px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.library-header-space {
  min-height: 38px;
}

.library-shell {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  height: calc(100vh - 58px);
}

.library-sidebar {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 18px 10px;
  background: #f1f4fb;
  border-right: 1px solid #e2e7f0;
}

.library-sidebar a {
  padding: 12px 14px;
  color: #20304a;
}

.library-sidebar .on {
  background: #fff;
  color: #2563eb;
  font-weight: 800;
}

.library-main {
  min-width: 0;
  overflow: hidden;
}

.brand-strip {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid #eef1f6;
}

.brand-strip span {
  color: #66758d;
  font-weight: 800;
}

.brand-tabs {
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-gutter: stable;
}

.brand-tabs button {
  flex: 0 0 auto;
  min-width: 68px;
  height: 30px;
  padding: 0 14px;
  background: #f3f6fb;
  color: #20304a;
  font-size: 14px;
}

.brand-tabs .on {
  background: #2563eb;
  color: #fff;
}

.library-crumbs {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: #fff;
  color: #536177;
  font-size: 13px;
  border-bottom: 1px solid #eef1f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.library-crumbs strong {
  color: #2563eb;
}

.library-crumbs em {
  color: #9aa5b5;
  font-style: normal;
}

.category-tabs {
  min-height: 56px;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-gutter: stable;
  background: #fff;
  border-bottom: 1px solid #eef1f6;
}

.category-tabs button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #172033;
  background: #fff;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}

.category-tabs .on {
  background: #f0f3ff;
  color: #0f3f9f;
}

.library-summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  background: #fafbfe;
  border-bottom: 1px solid #eef1f6;
  color: #66758d;
  font-size: 12px;
  white-space: nowrap;
  overflow-x: auto;
}

.library-summary strong {
  color: #20304a;
  font-size: 14px;
}

.library-summary em {
  margin-left: auto;
  color: #a16207;
  font-style: normal;
}

.library-board {
  display: grid;
  grid-template-columns: 260px 260px 260px 280px minmax(360px, 1fr);
  height: calc(100vh - 218px);
  background: #fff;
}

.tree-column,
.file-detail {
  min-width: 0;
  border-right: 1px solid #edf1f7;
}

.column-title {
  height: 38px;
  padding: 10px 16px;
  color: #66758d;
  font-size: 13px;
  border-bottom: 1px solid #edf1f7;
}

.tree-list {
  height: calc(100% - 38px);
  overflow: auto;
  padding: 10px 14px;
}

.tree-list.paged-list {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.file-list.paged-list {
  grid-template-rows: auto minmax(0, 1fr);
}

.paged-items {
  min-height: 0;
  overflow: auto;
}

.tree-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 16px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  padding: 10px 10px;
  background: #fff;
  color: #26364d;
  text-align: left;
  font-weight: 500;
}

.tree-list button span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-list .on {
  background: #eaf0ff;
  color: #1746a2;
}

.folder-icon {
  color: #f0a43b;
}

.chevron {
  color: #8e99aa;
}

.file-list button {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
}

.file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  background: #e9f0ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
}

.list-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #edf1f7;
  border-bottom: 1px solid #edf1f7;
  color: #66758d;
  font-size: 12px;
}

.list-pager button {
  width: auto;
  min-width: 78px;
  min-height: 36px;
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 8px 12px;
  background: #2563eb;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 8px;
}

.list-pager button:disabled {
  background: #e8eef9;
  color: #8a96a8;
  cursor: not-allowed;
}

.list-pager > span {
  min-width: 42px;
  text-align: center;
  color: #536177;
  font-weight: 700;
  white-space: nowrap;
}

.file-detail {
  overflow: auto;
  padding: 22px 24px 32px;
}

.empty-note {
  margin: 18px 4px;
  color: #7b8799;
  font-size: 13px;
  line-height: 1.7;
}

.empty-detail {
  max-width: 560px;
  margin-top: 18px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #edf1f7;
}

.empty-detail h1 {
  margin-bottom: 20px;
}

.file-detail h1 {
  margin-bottom: 18px;
  font-size: 22px;
  line-height: 1.35;
}

.product-overview-card {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
  padding: 18px;
  background: #fff;
  border: 1px solid #edf1f7;
}

.product-overview-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: #f8fafc;
}

.product-overview-image img {
  display: block;
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.product-overview-copy h2 {
  margin-bottom: 14px;
  color: #172033;
  font-size: 30px;
  line-height: 1.2;
}

.product-overview-copy p {
  margin: 0;
  color: #536177;
  font-size: 16px;
  line-height: 1.85;
}

.resource-detail-card {
  margin-bottom: 18px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #edf1f7;
  border-top: 3px solid #2563eb;
}

.resource-detail-card .eyebrow {
  color: #2563eb;
}

.resource-detail-card h1 {
  max-width: none;
  margin-bottom: 10px;
}

.inline-preview {
  margin-bottom: 18px;
  padding: 12px;
  background: #f4f6f9;
  border: 1px solid #edf1f7;
}

.inline-preview img {
  display: block;
  max-width: 100%;
  height: auto;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.detail-actions a,
.detail-actions button {
  padding: 10px 14px;
  border: 0;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.detail-actions .copy-download-link {
  background: #0f766e;
}

.detail-source {
  color: #d33a2c;
  font-weight: 800;
}

.disabled-download {
  padding: 10px 14px;
  background: #9aa5b5;
  color: #fff;
  cursor: not-allowed;
}

.admin-title {
  flex: 1;
  color: #20304a;
  font-weight: 800;
}

.admin-shell {
  padding: 18px;
}

.admin-hub {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: calc(100vh - 64px);
  background: #eef3fb;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  background: #fff;
  border-bottom: 1px solid #edf1f7;
}

.admin-tabs button {
  padding: 10px 18px;
  background: #eef3fb;
  color: #26364d;
  font-weight: 800;
}

.admin-tabs button.on {
  background: #2563eb;
  color: #fff;
}

.admin-frame {
  width: 100%;
  height: calc(100vh - 130px);
  min-height: 1300px;
  border: 0;
  background: #fff;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 260px 120px;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid #edf1f7;
}

.admin-toolbar h1 {
  margin-bottom: 4px;
  font-size: 24px;
  line-height: 1.2;
}

.admin-toolbar p {
  margin: 0;
  color: #66758d;
}

.admin-token {
  display: grid;
  gap: 6px;
  color: #536177;
  font-size: 13px;
}

.admin-token input,
.admin-token select,
.catalog-editor input {
  width: 100%;
  border: 1px solid #d8e0ea;
  padding: 10px 12px;
  background: #fff;
}

.catalog-manager {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr)) minmax(260px, 0.9fr);
  height: 1100px;
  min-height: 1100px;
  background: #fff;
  border: 1px solid #edf1f7;
}

.catalog-manager.with-type-panel {
  grid-template-columns: repeat(5, minmax(150px, 1fr)) minmax(240px, 0.8fr);
}

.catalog-column,
.catalog-editor {
  min-width: 0;
  border-right: 1px solid #edf1f7;
}

.catalog-column-head {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid #edf1f7;
}

.catalog-column-head button {
  padding: 7px 10px;
  background: #20304a;
}

.catalog-list {
  height: calc(100% - 48px);
  max-height: none;
  overflow: auto;
  padding: 10px;
}

.catalog-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  margin-bottom: 8px;
  background: #fff;
}

.catalog-row button {
  width: 100%;
  padding: 10px 12px;
  background: #fff;
  color: #26364d;
  text-align: left;
  font-weight: 600;
}

.catalog-row.on button,
.catalog-row.on .drag-handle {
  background: #eaf0ff;
  color: #1746a2;
}

.catalog-row.dragging {
  opacity: 0.5;
}

.catalog-row.drag-over {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
  background: #edf5ff;
}

.drag-handle {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a96a8;
  background: #fff;
  cursor: grab;
  user-select: none;
}

.catalog-editor {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border-right: 0;
}

.catalog-editor h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

.catalog-editor label {
  color: #536177;
  font-size: 13px;
}

.editor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.series-move-panel {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  background: #f7f9fc;
  border: 1px solid #e4eaf3;
}

.series-move-panel strong {
  color: #15233b;
}

.series-move-panel select {
  width: 100%;
  border: 1px solid #d8e0ea;
  padding: 9px 10px;
  background: #fff;
}

.series-move-panel button:disabled,
.series-move-panel select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.series-move-panel.is-disabled {
  background: #fbfcfe;
}

.danger-button {
  background: #d33a2c;
}

.resource-toolbar {
  grid-template-columns: minmax(0, 1fr) 260px 100px;
}

.resource-admin-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid #edf1f7;
}

.resource-admin-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 150px 170px;
  gap: 10px;
}

.resource-admin-filters input,
.resource-admin-filters select {
  width: 100%;
  border: 1px solid #d8e0ea;
  padding: 10px 12px;
  background: #fff;
}

.resource-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.resource-bulk-actions label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #26364d;
  font-weight: 700;
}

.resource-bulk-actions button {
  min-height: 34px;
  padding: 7px 12px;
  background: #20304a;
  color: #fff;
  font-weight: 800;
}

.resource-bulk-actions button:disabled {
  background: #e8eef9;
  color: #8a96a8;
  cursor: not-allowed;
}

.resource-admin-list {
  display: grid;
  gap: 10px;
}

.resource-admin-row {
  display: grid;
  grid-template-columns: 34px 96px minmax(0, 1fr) 250px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #edf1f7;
  background: #fbfcff;
}

.resource-select-box {
  display: grid;
  place-items: center;
  width: 34px;
  height: 76px;
  grid-column: 1;
}

.resource-select-box input {
  width: 18px;
  height: 18px;
}

.resource-admin-preview {
  display: grid;
  place-items: center;
  width: 96px;
  height: 76px;
  grid-column: 2;
  background: #f2f5fa;
  color: #2563eb;
  font-weight: 800;
  overflow: hidden;
}

.resource-admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.resource-admin-info {
  min-width: 0;
  display: grid;
  gap: 5px;
  grid-column: 3;
}

.resource-admin-info strong,
.resource-admin-info span,
.resource-admin-info p {
  overflow-wrap: anywhere;
}

.resource-admin-info strong {
  color: #172033;
  font-size: 16px;
}

.resource-admin-info span,
.resource-admin-info p {
  margin: 0;
  color: #66758d;
  line-height: 1.5;
}

.resource-admin-info .resource-warning {
  color: #b45309;
  font-weight: 800;
}

.resource-admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  grid-column: 4;
}

.resource-admin-actions a,
.resource-admin-actions button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 0;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.resource-admin-actions a {
  background: #20304a;
}

.admin-list-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 0;
}

.admin-list-pager button {
  min-width: 92px;
  min-height: 38px;
  padding: 8px 14px;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
}

.admin-list-pager button:disabled {
  background: #e8eef9;
  color: #8a96a8;
  cursor: not-allowed;
}

.admin-list-pager span {
  color: #536177;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .library-body {
    overflow: auto;
  }

  .library-header,
  .library-shell,
  .library-board {
    display: block;
    height: auto;
  }

  .library-header {
    padding: 12px;
  }

  .library-search {
    margin: 10px 0;
  }

  .library-sidebar {
    display: flex;
    overflow-x: auto;
  }

  .resource-toolbar,
  .resource-admin-filters,
  .resource-admin-row {
    grid-template-columns: 1fr;
  }

  .resource-admin-preview {
    width: 100%;
  }

  .tree-list {
    height: auto;
    max-height: 320px;
  }

  .product-overview-card {
    grid-template-columns: 1fr;
  }

  .product-overview-image {
    min-height: 180px;
  }

  .admin-toolbar,
  .catalog-manager {
    display: block;
  }

  .catalog-list {
    max-height: 320px;
  }
}

.sim-body {
  overflow: auto;
  background: #f7f9fc;
}

.sim-header-title {
  display: grid;
  gap: 2px;
  color: #20304a;
}

.sim-header-title span {
  color: #66758d;
  font-size: 13px;
}

.sim-main {
  min-width: 0;
  overflow: auto;
  background: #f7f9fc;
}

.sim-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  padding: 32px;
  background: #0f3d45;
  color: #fff;
}

.sim-hero-copy {
  display: grid;
  align-content: center;
  max-width: 820px;
}

.sim-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 44px;
  line-height: 1.12;
}

.sim-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
}

.sim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.sim-primary,
.sim-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  font-weight: 800;
}

.sim-primary {
  background: #f59e0b;
  color: #172033;
}

.sim-secondary {
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: #fff;
}

.sim-panel {
  display: grid;
  align-content: space-between;
  min-height: 340px;
  padding: 22px;
  background: #ffffff;
  color: #172033;
  border: 1px solid #d8e0ea;
}

.sim-circuit {
  display: grid;
  grid-template-columns: 1fr 42px 1fr 42px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 210px;
}

.sim-part {
  min-height: 92px;
  display: grid;
  gap: 8px;
  place-items: center;
  padding: 14px;
  border: 2px solid #2563eb;
  background: #eef4ff;
  color: #1746a2;
  font-weight: 800;
}

.sim-part svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sim-source {
  border-color: #0f766e;
  background: #e7f6f2;
  color: #0d4c41;
}

.sim-lamp {
  border-color: #f59e0b;
  background: #fff7df;
  color: #92400e;
}

.sim-wire {
  height: 4px;
  background: #2563eb;
}

.sim-return {
  grid-column: 1 / -1;
  width: 72%;
  justify-self: center;
  background: #0f766e;
}

.sim-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #e7ebf2;
}

.sim-status span {
  color: #66758d;
}

.sim-status strong {
  color: #b45309;
}

.sim-section {
  padding: 30px 32px;
  border-bottom: 1px solid #e7ebf2;
  background: #fff;
}

.sim-section-head {
  max-width: 720px;
  margin-bottom: 20px;
}

.sim-section h2 {
  font-size: 30px;
}

.sim-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.sim-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #e4eaf3;
}

.sim-card-icon,
.tool-icon,
.node-icon {
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.sim-card-icon {
  width: 48px;
  height: 48px;
  color: #2563eb;
}

.sim-icon-switch,
.tool-switch,
.node-switch {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 60h44v-8H18v8Zm3-16h38L50 18H30l-9 26Zm15-20h8l4 12H32l4-12Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 60h44v-8H18v8Zm3-16h38L50 18H30l-9 26Zm15-20h8l4 12H32l4-12Z'/%3E%3C/svg%3E");
}

.sim-icon-two-way,
.tool-two-way {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 56h22v-8H14v8Zm30 0h22v-8H44v8ZM18 42h14l-3-22h-8l-3 22Zm30 0h14l-3-22h-8l-3 22Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 56h22v-8H14v8Zm30 0h22v-8H44v8ZM18 42h14l-3-22h-8l-3 22Zm30 0h14l-3-22h-8l-3 22Z'/%3E%3C/svg%3E");
}

.sim-icon-socket,
.tool-socket {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 14h44v52H18V14Zm12 15a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm20 0a5 5 0 1 0 0 10 5 5 0 0 0 0-10ZM29 50h22v6H29v-6Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 14h44v52H18V14Zm12 15a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm20 0a5 5 0 1 0 0 10 5 5 0 0 0 0-10ZM29 50h22v6H29v-6Z'/%3E%3C/svg%3E");
}

.sim-icon-lamp,
.tool-lamp,
.node-lamp {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 10a22 22 0 0 0-13 40v8h26v-8A22 22 0 0 0 40 10Zm-8 54h16v6H32v-6Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 10a22 22 0 0 0-13 40v8h26v-8A22 22 0 0 0 40 10Zm-8 54h16v6H32v-6Z'/%3E%3C/svg%3E");
}

.sim-icon-contactor,
.tool-contactor {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 14h48v52H16V14Zm10 10h28v8H26v-8Zm0 16h10v16H26V40Zm18 0h10v16H44V40Zm-22 30h8v-8h-8v8Zm28 0h8v-8h-8v8Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 14h48v52H16V14Zm10 10h28v8H26v-8Zm0 16h10v16H26V40Zm18 0h10v16H44V40Zm-22 30h8v-8h-8v8Zm28 0h8v-8h-8v8Z'/%3E%3C/svg%3E");
}

.tool-power,
.node-power {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 18h40v44H20V18Zm8 10h24v6H28v-6Zm0 14h24v6H28v-6ZM16 10h8v8h-8v-8Zm40 0h8v8h-8v-8Zm-40 52h8v8h-8v-8Zm40 0h8v8h-8v-8Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 18h40v44H20V18Zm8 10h24v6H28v-6Zm0 14h24v6H28v-6ZM16 10h8v8h-8v-8Zm40 0h8v8h-8v-8Zm-40 52h8v8h-8v-8Zm40 0h8v8h-8v-8Z'/%3E%3C/svg%3E");
}

.sim-card strong {
  color: #1746a2;
}

.sim-card p {
  margin: 0;
  color: #536177;
  font-size: 14px;
}

.sim-roadmap {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
}

.sim-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sim-steps li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e4eaf3;
}

.sim-steps span {
  color: #536177;
}

.workbench-body {
  overflow: hidden;
  background: #eef3fb;
}

.workbench-header {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  background: #fff;
  border-bottom: 1px solid #e7ebf2;
}

.workbench-header a:not(.brand) {
  color: #2563eb;
  font-weight: 800;
}

.workbench-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 280px;
  height: calc(100vh - 58px);
}

.workbench-toolbox,
.workbench-side {
  min-width: 0;
  overflow: auto;
  background: #fff;
  border-right: 1px solid #e2e7f0;
}

.workbench-side {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 0 16px 18px;
  border-right: 0;
  border-left: 1px solid #e2e7f0;
}

.workbench-toolbox button {
  width: calc(100% - 24px);
  margin: 8px 12px 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  background: #f3f6fb;
  color: #20304a;
  text-align: left;
}

.tool-thumb {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e2e7f0;
}

.workbench-toolbox button:hover,
.practice-node:hover {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

.tool-icon {
  width: 28px;
  height: 28px;
  color: #2563eb;
}

.workbench-side section {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e4eaf3;
}

.workbench-side p {
  margin: 0;
  color: #536177;
}

.workbench-side .sim-primary {
  width: 100%;
  margin-top: 4px;
}

.workbench-canvas {
  min-width: 0;
  overflow: auto;
  padding: 24px;
}

.workbench-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.workbench-topline h1 {
  margin: 0;
  font-size: 28px;
}

.workbench-actions {
  display: flex;
  gap: 10px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  background: #126b55;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.action-button:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}

.secondary-button {
  background: #536177;
}

.practice-board {
  position: relative;
  min-height: 520px;
  background:
    linear-gradient(#eef2f8 1px, transparent 1px),
    linear-gradient(90deg, #eef2f8 1px, transparent 1px),
    #fff;
  background-size: 28px 28px;
  border: 1px solid #d8e0ea;
}

.switch-state-input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  cursor: pointer;
}

.wire-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wire-path {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgba(23, 32, 51, 0.18));
  transition: d 180ms ease, opacity 180ms ease;
  pointer-events: none;
}

.terminal-hit {
  cursor: pointer;
  pointer-events: auto;
}

.terminal-hit circle {
  fill: rgba(255, 255, 255, 0.78);
  stroke: #0f766e;
  stroke-width: 4;
}

.terminal-hit text {
  fill: #20304a;
  font-size: 18px;
  font-weight: 800;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
}

.terminal-hit.is-active circle {
  fill: #fef3c7;
  stroke: #f59e0b;
  stroke-width: 6;
}

.terminal-button {
  position: absolute;
  z-index: 8;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border: 3px solid #0f766e;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  color: #20304a;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.terminal-button.terminal-red {
  border-color: #ef2b2b;
  color: #b91c1c;
}

.terminal-button.terminal-blue {
  border-color: #1d4ed8;
  color: #1d4ed8;
}

.terminal-button.terminal-green {
  border-color: #16a34a;
  color: #16a34a;
}

.terminal-button.is-active {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.switch-toggle-button {
  position: absolute;
  z-index: 12;
  right: 10px;
  top: 10px;
  min-height: 28px;
  padding: 0 10px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.switch-node {
  z-index: 6;
}

.wire-red {
  stroke: #ef2b2b;
}

.wire-blue {
  stroke: #1d4ed8;
}

.wire-gray {
  stroke: #8d9096;
}

.practice-board.is-powered .wire-gray {
  stroke: #ef2b2b;
}

.practice-board.is-powered {
  background:
    linear-gradient(rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.08)),
    linear-gradient(#eef2f8 1px, transparent 1px),
    linear-gradient(90deg, #eef2f8 1px, transparent 1px),
    #fff;
  background-size: auto, 28px 28px, 28px 28px, auto;
}

.practice-node {
  position: absolute;
  display: grid;
  grid-template-columns: 42px 1fr 1fr;
  gap: 10px;
  width: 184px;
  padding: 14px;
  background: #fff;
  border: 2px solid #2563eb;
  box-shadow: 0 8px 22px rgba(23, 32, 51, 0.08);
  cursor: pointer;
  z-index: 2;
}

.practice-node.image-node {
  grid-template-columns: 1fr;
  justify-items: center;
  width: 180px;
  padding: 10px;
}

.node-image {
  display: block;
  width: 150px;
  height: 210px;
  object-fit: contain;
  pointer-events: none;
}

.source-node .node-image {
  width: 310px;
  height: 96px;
}

.source-node.image-node {
  width: 150px;
  overflow: visible;
}

.switch-node .node-image,
.lamp-node .node-image {
  width: 150px;
  height: 220px;
}

.practice-node.image-node strong {
  grid-column: 1;
  width: 100%;
  padding-top: 6px;
  color: #20304a;
  text-align: center;
}

.practice-node.is-control {
  cursor: pointer;
}

.practice-node.is-control::after {
  content: "点击切换";
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 4px 7px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.state-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  min-width: 28px;
  padding: 4px 7px;
  background: #20304a;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

.practice-board.is-powered .lamp-node .state-badge,
.practice-board.is-powered .switch-node .state-badge {
  background: #f59e0b;
  color: #172033;
}

.switch-image-on,
.lamp-image-on,
.state-on {
  display: none;
}

.practice-board:has(#switchState:checked) .switch-node .switch-image-off,
.practice-board:has(#switchState:checked) .lamp-node .lamp-image-off,
.practice-board:has(#switchState:checked) .switch-node .state-off,
.practice-board:has(#switchState:checked) .lamp-node .state-off {
  display: none;
}

.practice-board:has(#switchState:checked) .switch-node .switch-image-on,
.practice-board:has(#switchState:checked) .lamp-node .lamp-image-on,
.practice-board:has(#switchState:checked) .switch-node .state-on,
.practice-board:has(#switchState:checked) .lamp-node .state-on {
  display: block;
}

.practice-board:has(#switchState:checked) .switch-node .state-on,
.practice-board:has(#switchState:checked) .lamp-node .state-on {
  background: #f59e0b;
  color: #172033;
}

.practice-node.is-selected {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18), 0 12px 28px rgba(23, 32, 51, 0.12);
}

.added-node {
  z-index: 2;
  border-color: #0f766e;
}

.node-icon {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  align-self: center;
  color: #2563eb;
}

.practice-node strong {
  grid-column: 2 / -1;
  color: #20304a;
}

.practice-node > span:not(.node-icon) {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #eaf0ff;
  color: #1746a2;
  border-radius: 50%;
  font-weight: 800;
}

.source-node {
  left: 5%;
  top: 54px;
  border-color: #0f766e;
}

.switch-node {
  left: 38%;
  top: 188px;
}

.lamp-node {
  right: 10%;
  top: 54px;
  border-color: #f59e0b;
}

.practice-line {
  display: none;
  position: absolute;
  height: 4px;
  background: #2563eb;
  transform-origin: left center;
}

.practice-line-one {
  left: 22%;
  top: 175px;
  width: 230px;
  transform: rotate(18deg);
}

.practice-line-two {
  left: 53%;
  top: 250px;
  width: 210px;
  transform: rotate(-22deg);
}

.practice-line-three {
  left: 18%;
  right: 18%;
  bottom: 120px;
  height: 3px;
  background: #0f766e;
}

@media (max-width: 1100px) {
  .sim-hero,
  .sim-roadmap,
  .workbench-shell {
    grid-template-columns: 180px minmax(760px, 1fr) 260px;
    overflow: auto;
  }

  .sim-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workbench-body {
    overflow: auto;
  }

  .workbench-shell {
    height: calc(100vh - 58px);
  }

  .workbench-toolbox,
  .workbench-side {
    border: 0;
  }
}

@media (max-width: 680px) {
  .sim-hero,
  .sim-section,
  .workbench-canvas {
    padding: 18px;
  }

  .sim-hero h1 {
    font-size: 32px;
  }

  .sim-card-grid,
  .sim-steps li {
    grid-template-columns: 1fr;
  }

  .sim-circuit {
    grid-template-columns: 1fr;
  }

  .sim-wire,
  .sim-return {
    width: 4px;
    height: 28px;
    justify-self: center;
  }

  .workbench-topline,
  .workbench-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Draggable simulator prototype */
.practice-board.is-switch-on .switch-node .switch-image-off,
.practice-board.is-switch-on .lamp-node .lamp-image-off,
.practice-board.is-switch-on .switch-node .state-off,
.practice-board.is-switch-on .lamp-node .state-off {
  display: none;
}

.practice-board.is-switch-on .switch-node .switch-image-on,
.practice-board.is-switch-on .lamp-node .lamp-image-on,
.practice-board.is-switch-on .switch-node .state-on,
.practice-board.is-switch-on .lamp-node .state-on {
  display: block;
}

.practice-board.is-switch-on .switch-node .state-on,
.practice-board.is-switch-on .lamp-node .state-on {
  background: #f59e0b;
  color: #172033;
}

.practice-node {
  touch-action: none;
  user-select: none;
}

.practice-node.is-dragging {
  opacity: 0.88;
  box-shadow: 0 18px 34px rgba(23, 32, 51, 0.18);
}

.wire-layer {
  pointer-events: none;
}

.transparent-terminal {
  position: absolute;
  z-index: 20;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.01);
  cursor: crosshair;
  transform: translate(-50%, -50%);
}

.transparent-terminal:hover,
.transparent-terminal.is-active {
  background: rgba(245, 158, 11, 0.18);
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.transparent-terminal.terminal-red:hover,
.transparent-terminal.terminal-red.is-active {
  border-color: #ef232d;
}

.transparent-terminal.terminal-blue:hover,
.transparent-terminal.terminal-blue.is-active {
  border-color: #2459d8;
}

.transparent-terminal.terminal-green:hover,
.transparent-terminal.terminal-green.is-active {
  border-color: #159447;
}

.practice-node.image-node {
  gap: 6px;
  padding: 0 0 16px;
}

.practice-node.image-node .node-image {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.source-node.image-node .node-image,
.switch-node .node-image,
.lamp-node .node-image {
  width: 100%;
  height: auto;
}

.transparent-terminal {
  color: transparent;
  font-size: 0;
}

.transparent-terminal:hover,
.transparent-terminal.is-snap-target {
  color: #172033;
  font-size: 11px;
  font-weight: 800;
}

.transparent-terminal.is-snap-target {
  background: rgba(20, 148, 71, 0.18);
  border-color: #149447;
  box-shadow: 0 0 0 5px rgba(20, 148, 71, 0.14);
}

.workbench-wire {
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.65));
}

.workbench-wire.draft {
  opacity: 0.72;
  stroke-dasharray: 8 7;
}

.switch-node {
  cursor: grab;
}

.switch-node:active {
  cursor: grabbing;
}

.switch-toggle-button {
  opacity: 0.78;
}

.practice-board.is-switch-on:not(.is-lamp-on) .lamp-node .lamp-image-on,
.practice-board.is-switch-on:not(.is-lamp-on) .lamp-node .state-on {
  display: none;
}

.practice-board.is-switch-on:not(.is-lamp-on) .lamp-node .lamp-image-off,
.practice-board.is-switch-on:not(.is-lamp-on) .lamp-node .state-off {
  display: block;
}

.practice-board.is-lamp-on .lamp-node .lamp-image-off,
.practice-board.is-lamp-on .lamp-node .state-off {
  display: none;
}

.practice-board.is-lamp-on .lamp-node .lamp-image-on,
.practice-board.is-lamp-on .lamp-node .state-on {
  display: block;
}
