/* Article management: measured from the supplied 506 × 898 panel. */
.admin-shell {
  width: 506px;
  max-width: 100%;
  min-height: 898px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  grid-template-rows: 56px minmax(842px, auto);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #e1ecfa;
  background: white;
  color: #081650;
}
.admin-shell .admin-main {
  display: contents;
  margin: 0;
}
.admin-shell .admin-sidebar {
  position: static;
  transform: none;
  width: auto;
  height: auto;
  min-height: 842px;
  grid-column: 1;
  grid-row: 2;
  background: #152a43;
  padding: 8px 0 0;
}
.admin-shell .admin-sidebar > .brand,
.admin-shell .sidebar-label,
.admin-shell .sidebar-bottom {
  display: none;
}
.admin-shell .admin-sidebar nav {
  padding: 0;
}
.admin-shell .admin-sidebar nav > a {
  height: 46px;
  padding: 0 13px;
  margin: 0;
  gap: 9px;
  border-radius: 0;
  font-size: 12px;
}
.admin-shell .admin-sidebar nav > a.active {
  background: #0667ff;
}
.admin-shell .admin-header {
  position: static;
  grid-column: 1/-1;
  grid-row: 1;
  background: #152a43;
  height: 56px;
  padding: 0 14px;
  gap: 10px;
  color: white;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.admin-shell .admin-reference-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}
.admin-shell .admin-reference-heading {
  font-size: 16px;
  border-left: 1px solid #ffffff22;
  padding-left: 11px;
  white-space: nowrap;
}
.admin-shell .admin-header .admin-breadcrumb {
  display: none;
}
.admin-shell .admin-header > a[target] {
  font-size: 10px;
  color: #d1dfef;
  margin-left: auto;
  white-space: nowrap;
}
.admin-reference-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: white;
  padding: 3px;
  flex-shrink: 0;
}
.admin-shell .admin-content {
  grid-column: 2;
  grid-row: 2;
  padding: 15px 12px 24px;
  min-width: 0;
  background: linear-gradient(110deg, #fff, #f9fcff);
}
.admin-shell .admin-title {
  margin-bottom: 18px;
  gap: 8px;
}
.admin-shell .admin-title .eyebrow,
.admin-shell .admin-title p {
  display: none;
}
.admin-shell .admin-title h1 {
  font-size: 21px;
  margin: 0;
  white-space: nowrap;
}
.admin-shell .admin-title .button {
  padding: 9px 10px;
  font-size: 11px;
  gap: 3px;
}
.admin-shell .admin-toolbar {
  padding: 10px;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-shell .admin-toolbar .search {
  flex: 1;
  min-width: 110px;
}
.admin-shell .admin-toolbar .search input {
  width: 90px;
  font-size: 11px;
}
.admin-shell .admin-toolbar select {
  max-width: 130px;
  padding: 6px;
  font-size: 11px;
}
.admin-shell .admin-toolbar .muted,
.admin-shell .admin-toolbar .text-button {
  font-size: 10px;
}
.admin-shell .admin-bottom {
  display: none;
}
.admin-shell .overview-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.admin-shell .metric {
  padding: 14px;
}
.admin-shell .metric strong {
  font-size: 25px;
}
.admin-shell .admin-panel {
  padding: 14px;
}
.admin-shell .admin-industry-grid {
  grid-template-columns: 1fr;
}
.admin-shell .admin-header .mobile-menu {
  display: none;
}
@media (max-width: 430px) {
  .admin-shell {
    display: block;
    min-height: 100vh;
  }
  .admin-shell .admin-sidebar {
    display: none;
    position: absolute;
    left: 0;
    top: 56px;
    width: 122px;
    z-index: 30;
    min-height: calc(100vh - 56px);
  }
  .admin-shell .admin-sidebar.open {
    display: block;
    box-shadow: 5px 0 16px #10274422;
  }
  .admin-shell .admin-header {
    padding: 0 10px;
    gap: 8px;
  }
  .admin-shell .admin-reference-brand {
    font-size: 16px;
    gap: 6px;
  }
  .admin-shell .admin-reference-heading {
    font-size: 13px;
    padding-left: 8px;
  }
  .admin-shell .admin-header .mobile-menu {
    display: block;
    color: white;
    margin-left: auto;
    background: none;
  }
  .admin-shell .admin-header > a[target] {
    display: none;
  }
  .admin-shell .admin-content {
    padding: 15px 12px 25px;
  }
}
html:has(.reference-page),
html:has(.reference-admin) {
  scrollbar-width: none;
}
html:has(.reference-page)::-webkit-scrollbar,
html:has(.reference-admin)::-webkit-scrollbar {
  display: none;
}
.ra-account-menu a {
  display: block;
  padding: 7px 6px;
  font-size: 12px;
  color: #183455;
}
.reference-admin {
  width: 506px;
  max-width: 100%;
  min-height: 898px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  grid-template-rows: 56px minmax(840px, auto);
  border: 1px solid #dbe9fa;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  color: #071647;
  font:
    12px/1.5 Arial,
    "Microsoft YaHei",
    sans-serif;
  box-shadow: 0 2px 14px #3180c30a;
}
.ra-topbar {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: #152a43;
  color: white;
  white-space: nowrap;
}
.ra-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  letter-spacing: 0;
  flex-shrink: 0;
}
.ra-heading {
  border-left: 1px solid #ffffff24;
  padding-left: 12px;
  font-size: 16px;
}
.ra-account {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 11px;
}
.ra-account-trigger > svg:first-child {
  border-radius: 50%;
  width: 28px;
  height: 28px;
  padding: 4px;
  background: #738aa4;
}
.ra-account-trigger {
  background: none;
  color: #fff;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.ra-account-menu {
  position: absolute;
  right: 0;
  top: 35px;
  min-width: 130px;
  padding: 8px;
  background: #fff;
  color: #183455;
  box-shadow: 0 5px 18px #12294130;
  border: 1px solid #d8e5f5;
  border-radius: 4px;
  z-index: 30;
}
.ra-account-menu > span {
  font-size: 10px;
  color: #8297b4;
  display: block;
  padding: 4px 6px;
}
.ra-account-menu > button {
  display: flex;
  align-items: center;
  gap: 7px;
  background: white;
  color: #183455;
  padding: 7px 6px;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
.ra-account-menu > button:hover {
  background: #eef6ff;
}
.ra-editor fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.ra-menu-button {
  display: none;
  background: none;
  color: white;
  padding: 0;
}
.ra-sidebar {
  grid-column: 1;
  grid-row: 2;
  background: #152a43;
  color: white;
  padding-top: 8px;
}
.ra-sidebar nav > a {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  font-size: 13px;
  white-space: nowrap;
}
.ra-sidebar nav > a.active {
  background: #0768ff;
  font-weight: 650;
}
.ra-sidebar nav > a:hover {
  background: #ffffff10;
}
.ra-sidebar nav > a.active:hover {
  background: #0768ff;
}
.ra-sidebar details {
  margin: 8px 15px;
  font-size: 11px;
  color: #a9bfd6;
}
.ra-sidebar summary {
  cursor: pointer;
}
.ra-sidebar details a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
}
.ra-main {
  grid-column: 2;
  grid-row: 2;
  padding: 14px 10px 22px;
  background: linear-gradient(110deg, #fff, #f9fcff);
}
.ra-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
  margin-left: 6px;
  margin-right: 2px;
}
.ra-title h1 {
  font-size: 21px;
  line-height: 38px;
  margin: 0;
  font-weight: 750;
  letter-spacing: 0;
}
.ra-primary,
.ra-secondary {
  height: 38px;
  border: 1px solid #0868ff;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  padding: 0 14px;
  font-size: 12px;
  background: #0868ff;
  color: #fff;
}
.ra-title .ra-primary {
  min-width: 108px;
}
.ra-secondary {
  background: #fff;
  color: #152957;
  border-color: #cad8eb;
}
.ra-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 13px;
  min-height: 31px;
  margin-left: 6px;
  margin-right: 2px;
}
.ra-filter label {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
}
.ra-filter select {
  height: 32px;
  padding: 0 10px;
  width: 149px;
  font-size: 12px;
  border-radius: 5px;
  border: 1px solid #d4e1f4;
}
.ra-filter > button {
  background: none;
  color: #5b729d;
  padding: 3px;
  margin-left: auto;
}
.ra-search {
  display: block;
  width: 100%;
  height: 30px;
  font-size: 12px;
  margin: 0 0 10px;
}
.ra-table-wrap {
  margin-left: 6px;
  margin-right: 2px;
  border: 1px solid #e3edfa;
  border-radius: 5px;
  max-height: 190px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #d6e1f1 transparent;
  background: white;
}
.ra-table-wrap table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  min-width: 0;
}
.ra-table-wrap th,
.ra-table-wrap td {
  padding: 0 8px;
  height: 38px;
  border-right: 1px solid #e9eff9;
  border-bottom: 1px solid #e9eff9;
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  color: #0b1a50;
}
.ra-table-wrap th {
  background: #f3f7fd;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}
.ra-table-wrap th:last-child,
.ra-table-wrap td:last-child {
  padding: 0 6px;
  border-right: 0;
  text-align: center;
}
.ra-table-wrap tr:last-child td {
  border-bottom: 0;
}
.ra-edit-link {
  color: #0065ff;
  font-size: 11px;
  background: none;
  padding: 0;
}
.ra-status {
  background: none;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: #90a0b7;
  font-size: 10px;
  white-space: nowrap;
}
.ra-status > span {
  width: 19px;
  height: 12px;
  border-radius: 7px;
  background: #bfcbda;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.ra-status > span:after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}
.ra-status.published {
  color: #00b873;
}
.ra-status.published > span {
  background: #00c37a;
}
.ra-status.published > span:after {
  left: 9px;
}
.ra-message {
  padding: 7px 9px;
  border-radius: 4px;
  margin-bottom: 9px;
  background: #edf6ff;
  color: #1665a8;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.ra-message button {
  color: #0667ff;
  background: none;
  text-decoration: underline;
  font-size: 11px;
}
.ra-error {
  color: #b74444;
  background: #fff1f1;
}
.ra-empty {
  padding: 15px;
  color: #8a9ab3;
  text-align: center;
  font-size: 12px;
  margin: 0;
}
.ra-editor {
  margin-top: 22px;
  border: 1px solid #e3edfa;
  background: white;
  border-radius: 6px;
  padding: 12px 9px 12px 12px;
}
.ra-editor h2 {
  font-size: 19px;
  line-height: 28px;
  margin: 0 0 12px;
  font-weight: 750;
  color: #07164a;
}
.ra-field {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
}
.ra-field > span {
  white-space: nowrap;
}
.ra-field em,
.ra-body > label em {
  font-style: normal;
  color: #f33131;
}
.ra-field input,
.ra-field select {
  width: 100%;
  height: 32px;
  font-size: 12px;
  line-height: 30px;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid #d3e0f3;
  color: #12204b;
  background: white;
}
.ra-field select:disabled {
  opacity: 1;
  color: #12204b;
}
.ra-cover-field {
  align-items: start;
  margin-top: 15px;
  margin-bottom: 18px;
}
.ra-cover-field > span {
  padding-top: 4px;
}
.ra-cover-controls {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}
.ra-cover-controls > img,
.ra-cover-empty {
  height: 98px;
  width: 110px;
  object-fit: cover;
  border-radius: 5px;
}
.ra-cover-empty {
  background: #f4f7fd;
  color: #99aac3;
  display: grid;
  place-items: center;
}
.ra-upload {
  height: 98px;
  min-width: 0;
  border: 1px dashed #bacfec;
  border-radius: 5px;
  background: white;
  color: #47689f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  padding: 5px 3px;
}
.ra-upload small {
  font-size: 9px;
  line-height: 1.6;
  color: #8097bd;
  white-space: nowrap;
}
.ra-cover-controls > input[hidden] {
  display: none;
}
.ra-body > label {
  display: block;
  margin-bottom: 0;
  line-height: 14px;
  font-size: 12px;
}
.reference-admin .rich-editor {
  border: 1px solid #d9e4f5;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.reference-admin .rich-toolbar {
  min-height: 32px;
  gap: 3px;
  padding: 3px 6px;
  background: #fff;
  border-bottom: 1px solid #e3eafa;
  flex-wrap: nowrap;
}
.reference-admin .rich-toolbar select {
  width: 57px !important;
  min-width: 57px;
  height: 23px;
  padding: 0 2px;
  font-size: 11px;
  border: 0;
  border-radius: 0;
}
.reference-admin .rich-toolbar button {
  width: 21px;
  height: 24px;
  padding: 2px;
  color: #102154;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  font-size: 11px;
}
.reference-admin .rich-toolbar button svg {
  width: 14px;
  height: 14px;
}
.reference-admin .toolbar-divider {
  height: 18px;
  margin: 0 2px;
  background: #e6edf7;
}
.reference-admin .rich-content {
  font-size: 11px;
  line-height: 1.8;
  min-height: 110px;
  height: 110px;
  overflow-y: auto;
  padding: 9px 10px;
  color: #152752;
  outline: none;
}
.reference-admin .rich-content p {
  margin: 0 0 5px;
}
.reference-admin .rich-content h2 {
  font-size: 14px;
  line-height: 1.6;
  margin: 4px 0;
}
.reference-admin .rich-content img {
  max-width: 100%;
  height: auto;
}
.reference-admin .rich-editor-footer {
  display: none;
}
.reference-admin .rich-content blockquote {
  margin: 5px 0;
  padding-left: 8px;
  border-left: 2px solid #9ebcf3;
}
.ra-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-top: 13px;
}
.ra-actions > label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  line-height: 18px;
}
.ra-actions input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #0667ff;
}
.ra-actions > div {
  display: flex;
  gap: 10px;
  margin-left: auto;
  margin-top: -3px;
}
.ra-actions .ra-primary {
  min-width: 99px;
}
.ra-actions .ra-secondary {
  min-width: 90px;
}
.ra-more-fields {
  margin-top: 10px;
  font-size: 10px;
  color: #738bb0;
}
.ra-more-fields summary {
  cursor: pointer;
}
.ra-more-fields label {
  display: block;
  margin-top: 9px;
  font-size: 11px;
}
.ra-more-fields input,
.ra-more-fields textarea {
  display: block;
  width: 100%;
  padding: 6px 8px;
  font-size: 11px;
  margin-top: 3px;
}
.ra-more-fields textarea {
  min-height: 65px;
}
.rich-toolbar .editor-more {
  position: relative;
}
.editor-more-menu {
  position: absolute;
  right: 0;
  top: 28px;
  background: white;
  border: 1px solid #d6e3f5;
  box-shadow: 0 5px 16px #0e2b5d20;
  padding: 5px;
  min-width: 90px;
  z-index: 5;
}
.reference-admin .editor-more-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 4px 8px;
  height: auto;
  font-size: 11px;
  white-space: nowrap;
}
@media (max-width: 505px) {
  .reference-admin {
    margin: 0 auto;
    min-height: 100vh;
    border-radius: 0;
    grid-template-columns: 106px minmax(0, 1fr);
  }
  .ra-brand {
    font-size: 16px;
  }
  .ra-heading {
    font-size: 13px;
  }
  .ra-topbar {
    padding: 0 10px;
    gap: 8px;
  }
  .ra-account {
    gap: 3px;
    font-size: 10px;
  }
  .ra-sidebar nav > a {
    padding: 0 10px;
    gap: 8px;
    font-size: 12px;
  }
  .ra-main {
    padding: 13px 9px;
  }
  .ra-cover-controls {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 7px;
  }
  .ra-cover-controls > img,
  .ra-cover-empty {
    width: 90px;
  }
  .ra-field {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 6px;
  }
  .ra-upload small {
    font-size: 8px;
  }
  .ra-title h1 {
    font-size: 20px;
  }
  .ra-primary {
    padding: 0 11px;
  }
  .ra-cover-controls {
    min-width: 0;
  }
}
@media (max-width: 430px) {
  .reference-admin {
    display: block;
  }
  .ra-topbar {
    height: 56px;
  }
  .ra-heading {
    font-size: 13px;
  }
  .ra-account {
    margin-left: auto;
  }
  .ra-account > span,
  .ra-account > svg:last-of-type {
    display: none;
  }
  .ra-menu-button {
    display: block;
  }
  .ra-sidebar {
    display: none;
    position: absolute;
    left: 0;
    top: 56px;
    width: 122px;
    min-height: calc(100vh - 56px);
    z-index: 20;
    box-shadow: 5px 0 12px #10274422;
  }
  .reference-admin.menu-open .ra-sidebar {
    display: block;
  }
  .ra-main {
    padding: 15px 12px 25px;
  }
  .ra-cover-controls {
    grid-template-columns: 110px minmax(0, 1fr);
  }
  .ra-cover-controls > img,
  .ra-cover-empty {
    width: 110px;
  }
  .ra-field {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 10px;
  }
  .ra-account > svg:first-child {
    width: 26px;
    height: 26px;
  }
  .ra-table-wrap {
    max-height: 190px;
  }
}
