/* Forma Control: a dedicated administration workspace. */
.admin-shell {
  --admin-ink: #1d2634;
  --admin-muted: #748094;
  --admin-border: #e1e5ec;
  --admin-accent: #3455f5;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
  background: #f5f6fa;
  color: var(--admin-ink);
  font: 14px/1.55 var(--font);
}
.admin-sidebar {
  background: #111c2b;
  color: #cad2df;
  padding: 30px 18px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-logo {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 13px;
  font-family: var(--heading);
  font-size: 30px;
  line-height: 1;
  color: #fff;
  letter-spacing: -1.5px;
  font-weight: 700;
}
.admin-logo strong {
  display: block;
  font-size: 8px;
  letter-spacing: 2.5px;
  color: #90a0b9;
  margin-top: 10px;
}
.admin-logo .brand-mark {
  width: 37px;
  height: 37px;
  border-radius: 11px;
}
.admin-workspace-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 29px 12px 20px;
  padding: 12px 0;
  border-top: 1px solid #293445;
  border-bottom: 1px solid #293445;
  font-size: 10px;
  color: #91a0b5;
}
.admin-workspace-tag .icon {
  width: 14px;
  height: 14px;
}
.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: #aab7ca;
  border-radius: 8px;
  transition: 0.15s;
  font-size: 12px;
}
.admin-sidebar nav a:hover {
  background: #1e2c40;
  color: white;
}
.admin-sidebar nav a.active {
  background: #2e4ee9;
  color: #fff;
  box-shadow: 0 6px 22px #060f4520;
}
.admin-sidebar nav a i {
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  margin-left: auto;
}
.admin-sidebar nav .icon {
  width: 17px;
  height: 17px;
}
.admin-sidebar-foot {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 24px 12px 0;
  border-top: 1px solid #293445;
}
.admin-sidebar-foot strong {
  font-size: 11px;
  display: block;
  color: #e0e7f3;
}
.admin-sidebar-foot small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8292a9;
}
.admin-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #3b4b62;
  border-radius: 50%;
  background: #22324a;
  color: #b6c6dd;
}
.admin-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  background: #ffffffc9;
  border-bottom: 1px solid var(--admin-border);
  min-height: 82px;
  padding: 18px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  backdrop-filter: blur(16px);
}
.admin-breadcrumb {
  font-size: 11px;
  color: #788294;
}
.admin-breadcrumb span {
  color: #c3cbd7;
  margin: 0 9px;
}
.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-session {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #657286;
  white-space: nowrap;
}
.admin-session i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ca37a;
}
.admin-menu {
  display: none;
}
.admin-content {
  padding: 42px 38px 50px;
  flex: 1;
  max-width: 1700px;
  width: 100%;
  margin: auto;
}
.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 31px;
}
.admin-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 9px;
  color: #7e8ca1;
  font-weight: 650;
  margin-bottom: 15px;
}
.admin-page-head h1 {
  font-size: clamp(29px, 3.2vw, 43px);
  line-height: 1.12;
  letter-spacing: -1.6px;
  margin-bottom: 12px;
  font-weight: 650;
}
.admin-page-head p {
  font-size: 12px;
  color: var(--admin-muted);
  max-width: 640px;
  line-height: 1.7;
  margin: 0;
}
.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-shell .btn {
  border-radius: 7px;
  font-size: 11px;
  gap: 8px;
}
.admin-shell .btn.small {
  padding: 10px 13px;
}
.admin-shell .btn.secondary {
  background: #fff;
  border-color: var(--admin-border);
  color: #4f5c70;
}
.admin-shell .btn.secondary:hover {
  background: #f0f3fa;
}
.admin-shell .btn .icon {
  width: 14px;
  height: 14px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 27px;
}
.admin-stat {
  background: white;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 21px 22px;
}
.admin-stat > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #738197;
  font-size: 11px;
}
.admin-stat > div .icon {
  width: 17px;
  height: 17px;
  color: #7185bb;
}
.admin-stat > strong {
  display: block;
  font: 600 40px/1.4 var(--heading);
  letter-spacing: -2px;
  margin: 8px 0;
}
.admin-stat small {
  font-size: 10px;
  color: #97a0af;
}
.admin-grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
}
.admin-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.admin-panel {
  background: #fff;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 26px;
  min-width: 0;
}
.admin-panel h2 {
  font-size: 23px;
  letter-spacing: -0.8px;
  line-height: 1.25;
}
.admin-panel h3 {
  font-size: 18px;
  letter-spacing: -0.5px;
}
.admin-panel p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--admin-muted);
}
.admin-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.admin-panel-title h2 {
  font-size: 17px;
  letter-spacing: -0.5px;
  margin: 0;
}
.admin-panel-title a {
  font-size: 10px;
  color: var(--admin-accent);
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.admin-panel-title .icon {
  width: 12px;
  height: 12px;
}
.admin-panel-dark {
  background: #19263a;
  color: #f4f7fc;
  border-color: #19263a;
}
.admin-panel-dark h2 {
  font-size: 27px;
  letter-spacing: -1px;
}
.admin-panel-dark p {
  color: #a2b1c7;
}
.admin-panel-dark .admin-kicker {
  color: #96abce;
}
.admin-quicklinks {
  display: flex;
  flex-direction: column;
}
.admin-quicklinks a {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  padding: 14px 0;
  border-bottom: 1px solid #e4e8ef;
}
.admin-quicklinks a:last-child {
  border-bottom: 0;
}
.admin-quicklinks .icon {
  width: 16px;
  height: 16px;
}
.admin-quicklinks .icon:last-child {
  margin-left: auto;
}
.admin-panel-dark .admin-quicklinks a {
  border-color: #30405a;
  color: #bfcce0;
}
.admin-panel-dark .admin-quicklinks a:hover {
  color: #fff;
}
.admin-facts {
  margin: 0;
}
.admin-facts > div {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #edf0f6;
  font-size: 11px;
}
.admin-facts > div:last-child {
  border-bottom: 0;
}
.admin-facts dt {
  color: #758196;
}
.admin-facts dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.admin-table-wrap {
  max-width: 100%;
  overflow: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
.admin-table th {
  padding: 13px 14px;
  background: #f7f8fb;
  color: #8a95a6;
  font-size: 9px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  border-top: 1px solid #edf0f5;
  border-bottom: 1px solid #edf0f5;
  font-weight: 600;
  white-space: nowrap;
}
.admin-table td {
  padding: 17px 14px;
  border-bottom: 1px solid #edf0f5;
  vertical-align: middle;
  max-width: 330px;
  overflow-wrap: anywhere;
}
.admin-table tr:last-child td {
  border-bottom: 0;
}
.admin-table td strong {
  display: block;
  font-size: 12px;
  color: #2d3c54;
  font-weight: 600;
}
.admin-table td small {
  display: block;
  font-size: 10px;
  color: #8b96a8;
  margin-top: 5px;
}
.admin-table td .admin-excerpt {
  margin: 8px 0 0;
  font-size: 11px;
  max-width: 330px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.6;
}
.admin-unread {
  background: #f8faff;
}
.admin-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  white-space: nowrap;
}
.admin-row-actions .btn.small {
  padding: 7px 9px;
  font-size: 10px;
}
.admin-panel-table {
  padding: 8px 0 0;
  overflow: hidden;
}
.admin-panel-table .admin-table td:first-child,
.admin-panel-table .admin-table th:first-child {
  padding-left: 23px;
}
.admin-panel-table .admin-table td:last-child,
.admin-panel-table .admin-table th:last-child {
  padding-right: 23px;
}
.admin-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 9px;
  line-height: 1.3;
  background: #f0f2f7;
  color: #728095;
  font-weight: 600;
  text-transform: capitalize;
}
.admin-badge.green {
  color: #238568;
  background: #eaf7f1;
}
.admin-badge.blue {
  color: #3b5cd8;
  background: #edf1ff;
}
.admin-badge.red {
  color: #bd4e56;
  background: #fff0f0;
}
.admin-badge.amber {
  color: #9a751c;
  background: #fff8e4;
}
.admin-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.admin-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  background: #fff;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 0 13px;
  min-width: 0;
}
.admin-search .icon {
  width: 17px;
  height: 17px;
  color: #8c99ac;
  flex-shrink: 0;
}
.admin-search input {
  border: 0;
  background: transparent;
  font-size: 12px;
  width: 100%;
  padding: 12px 0;
}
.admin-filter select {
  font-size: 11px;
  background: #fff;
}
.admin-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 17px 23px;
  border-top: 1px solid #edf0f5;
  font-size: 10px;
  color: #8995a6;
}
.admin-pagination > div {
  display: flex;
  gap: 8px;
}
.admin-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 17px 19px;
  background: #edf2ff;
  border: 1px solid #dee6ff;
  border-radius: 9px;
  color: #5f7398;
  font-size: 11px;
  line-height: 1.8;
  margin-top: 22px;
}
.admin-notice .icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.admin-empty {
  text-align: center;
  padding: 50px 22px;
  color: #8c99ad;
}
.admin-empty > .icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 15px;
  color: #a9b7cf;
}
.admin-empty h3 {
  font-size: 18px;
  color: #6c7d96;
  margin-bottom: 9px;
}
.admin-empty p {
  font-size: 12px;
  max-width: 390px;
  margin: 0 auto;
}
.admin-footer {
  padding: 20px 38px;
  border-top: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #9aa4b5;
  font-size: 9px;
}
.admin-footer a {
  display: flex;
  gap: 5px;
  align-items: center;
}
.admin-footer .icon {
  width: 11px;
  height: 11px;
}
.admin-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr);
  gap: 24px;
}
.admin-settings-grid label {
  font-size: 11px;
  color: #68768d;
  margin: 0 0 19px;
}
.admin-settings-grid input,
.admin-settings-grid textarea {
  font-size: 12px;
  background: #fcfcfe;
  border-color: var(--admin-border);
  border-radius: 7px;
  color: #30415b;
}
.admin-section-number {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #8999b3;
  margin-bottom: 16px;
  font-weight: 650;
}
.admin-help {
  font-size: 11px !important;
  color: #8995a7 !important;
  line-height: 1.75 !important;
}
.admin-toggle {
  display: flex !important;
  align-items: center;
  gap: 15px;
  padding: 17px 0;
  margin: 0 !important;
  border-bottom: 1px solid #edf0f6;
  position: relative;
  cursor: pointer;
}
.admin-toggle > span {
  flex: 1;
}
.admin-toggle strong {
  font-size: 12px;
  color: #405069;
  display: block;
}
.admin-toggle small {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.7;
  color: #8a96a9;
  display: block;
  margin-top: 4px;
}
.admin-toggle input {
  position: absolute;
  right: 0;
  width: 42px !important;
  height: 24px;
  opacity: 0;
  cursor: pointer;
  margin: 0 !important;
  z-index: 1;
}
.admin-toggle > i {
  width: 36px;
  height: 20px;
  border-radius: 12px;
  background: #dbe1eb;
  position: relative;
  flex-shrink: 0;
  transition: 0.2s;
}
.admin-toggle > i:after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  background: white;
  box-shadow: 0 1px 4px #27364b22;
  transition: 0.2s;
}
.admin-toggle input:checked + i {
  background: #3455f5;
}
.admin-toggle input:checked + i:after {
  transform: translateX(16px);
}
.admin-toggle input:focus-visible + i {
  outline: 3px solid #9dacff;
  outline-offset: 3px;
}
.admin-toggle:last-of-type {
  margin-bottom: 20px !important;
}
.admin-gate {
  max-width: 520px;
  margin: 20px auto 65px;
  padding: 35px 20px;
  text-align: center;
}
.admin-gate-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  background: #e8edff;
  border: 1px solid #dce3ff;
  border-radius: 20px;
  color: #3a5ce1;
  margin: 0 auto 27px;
}
.admin-gate-icon > .icon {
  width: 29px;
  height: 29px;
}
.admin-gate h1 {
  font-size: 39px;
  line-height: 1.14;
  letter-spacing: -1.5px;
}
.admin-gate > p {
  font-size: 13px;
  line-height: 1.85;
  color: #8a96a9;
}
.admin-gate form {
  text-align: left;
  margin-top: 26px;
  padding: 27px;
  background: white;
  border: 1px solid #e0e6ef;
  border-radius: 12px;
}
.admin-gate label {
  font-size: 11px;
  color: #69778f;
}
.admin-gate input {
  font-size: 12px;
  background: #fafbfe;
  border-color: #e0e6ef;
}
.admin-gate form > .btn {
  width: 100%;
  margin-top: 8px;
}
.admin-text-link {
  display: block;
  margin-top: 20px;
  font-size: 11px;
  color: #6a7d9d;
}
.admin-security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
  margin-top: 25px;
}
.admin-security-grid > div > .icon {
  color: #6882d7;
  width: 20px;
  height: 20px;
  margin-bottom: 10px;
}
.admin-security-grid strong {
  display: block;
  font-size: 11px;
  line-height: 1.5;
}
.admin-security-grid p {
  font-size: 11px;
  margin: 9px 0 0;
  line-height: 1.75;
}
.admin-message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.8;
  background: #f5f7fb;
  border: 1px solid #e3e8f0;
  padding: 22px;
  margin: 20px 0;
  border-radius: 8px;
}
.admin-json,
.admin-details pre {
  max-height: 450px;
  overflow: auto;
  background: #f3f5fa;
  padding: 18px;
  border-radius: 8px;
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.admin-details {
  border-bottom: 1px solid #e5eaf3;
  padding: 15px 0;
  font-size: 12px;
}
.admin-details summary {
  cursor: pointer;
  color: #667b9c;
}
.admin-loading {
  padding: 130px 20px;
  text-align: center;
  color: #8f9db3;
  font-size: 13px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.admin-source {
  font:
    12px/1.65 ui-monospace,
    monospace;
  min-height: 460px;
  white-space: pre;
  tab-size: 2;
}
.admin-content-preview {
  border: 1px solid var(--admin-border);
  border-radius: 9px;
  overflow: hidden;
  background: white;
  max-height: 700px;
  overflow: auto;
}
.admin-content-preview .site-block {
  padding: 35px;
}
.admin-content-preview .site-block h1 {
  font-size: 38px;
}
.admin-content-preview .site-block h2 {
  font-size: 28px;
}
.admin-content-preview .site-block .feature-grid {
  grid-template-columns: 1fr;
}
.admin-content-preview .site-block .btn {
  pointer-events: none;
}
.admin-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.admin-content-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  flex-wrap: wrap;
}
.admin-content-tools select {
  font-size: 12px;
}
.admin-panel-dark .form-error {
  color: #ffc6c6;
}
@media (min-width: 1600px) {
  .admin-content {
    padding: 50px 60px;
  }
  .admin-topbar {
    padding-left: 60px;
    padding-right: 60px;
  }
}
@media (max-width: 1180px) {
  .admin-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .admin-content {
    padding: 32px 25px;
  }
  .admin-topbar {
    padding: 17px 25px;
  }
  .admin-grid-two,
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }
  .admin-grid-two > .admin-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .admin-security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-session {
    display: none;
  }
  .admin-sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .admin-stats {
    gap: 12px;
  }
  .admin-stat {
    padding: 17px;
  }
  .admin-stat small {
    font-size: 9px;
  }
  .admin-page-head h1 {
    font-size: 35px;
  }
  .admin-editor-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .admin-shell {
    display: block;
  }
  .admin-sidebar {
    position: fixed;
    left: -260px;
    width: 244px;
    top: 0;
    z-index: 90;
    transition: left 0.2s;
    box-shadow: 15px 0 60px #0d1e2d25;
  }
  .admin-nav-open .admin-sidebar {
    left: 0;
  }
  .admin-menu {
    display: grid;
  }
  .admin-topbar {
    padding: 15px 20px;
    min-height: 68px;
    gap: 12px;
  }
  .admin-top-actions {
    margin-left: auto;
    gap: 7px;
  }
  .admin-breadcrumb {
    display: none;
  }
  .admin-content {
    padding: 28px 20px;
  }
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .admin-page-head h1 {
    font-size: 34px;
  }
  .admin-grid-two > .admin-stack {
    display: flex;
  }
  .admin-panel {
    padding: 22px;
  }
  .admin-panel-table {
    padding: 6px 0 0;
  }
  .admin-filter {
    flex-wrap: wrap;
  }
  .admin-search {
    flex-basis: 100%;
  }
  .admin-footer {
    padding: 20px;
    flex-wrap: wrap;
  }
  .admin-gate {
    padding: 25px 0;
    margin-top: 0;
  }
  .admin-gate h1 {
    font-size: 32px;
  }
  .admin-gate form {
    padding: 22px;
  }
  .admin-pagination {
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-row-actions {
    flex-wrap: nowrap;
  }
  .admin-security-grid {
    gap: 20px;
  }
  .admin-table {
    min-width: 600px;
  }
  .admin-content-tools {
    align-items: stretch;
  }
  .admin-content-tools > select {
    width: 100%;
  }
  .admin-content-preview .site-block {
    padding: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .admin-shell * {
    scroll-behavior: auto;
    transition: none !important;
  }
}
@media (max-width: 800px) {
  .admin-sidebar {
    visibility: hidden;
  }
  .admin-nav-open .admin-sidebar {
    visibility: visible;
  }
}
