.admin-page {
  background: #f4f6f9;
}
.admin-page .page-banner {
  padding: 30px 0;
  background: #fff;
  border-bottom: 1px solid #e4e8ee;
}
.admin-page .page-banner h1 {
  color: var(--navy);
  font-size: 29px;
}
.admin-page .page-banner .eyebrow {
  color: var(--accent);
}
.admin-page .page-banner p {
  color: #526477;
}
.panel-shell {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 32px;
  padding-top: 28px;
  max-width: 1480px;
  width: 94%;
}
.panel-sidebar {
  align-self: start;
  position: sticky;
  top: 112px;
  background: #fff;
  border: 1px solid #e1e6ed;
  border-radius: 12px;
  padding: 20px 12px;
}
.panel-user {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 8px 20px;
  border-bottom: 1px solid #edf0f4;
}
.user-avatar {
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
}
.panel-user strong {
  display: block;
  font-size: 13px;
}
.panel-user small {
  display: block;
  font-size: 11px;
  color: #66788a;
  margin-top: 3px;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #596b7c;
  padding: 18px 10px 6px;
}
#panel-navigation {
  display: grid;
  gap: 5px;
}
#panel-navigation button {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 0;
  background: none;
  padding: 12px;
  color: #536679;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}
#panel-navigation button span {
  font-size: 12px;
  font-weight: 600;
}
#panel-navigation button.active {
  background: #123755;
  color: white;
}
#panel-navigation button:hover {
  background: #eaf0f6;
  color: var(--navy);
}
.panel-preview {
  display: block;
  margin: 24px 10px 16px;
  color: var(--accent);
  font-size: 12px;
}
.panel-sidebar > .text-link {
  margin: 8px 10px;
}
.panel-workspace {
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.panel-heading h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  margin-bottom: 8px;
}
.panel-heading p {
  font-size: 12px;
  color: #526578;
  line-height: 1.7;
}
.panel-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--accent);
}
.panel-pill {
  font-size: 11px;
  white-space: nowrap;
  padding: 9px 14px;
  border: 1px solid #dce4ec;
  border-radius: 30px;
  background: white;
}
.panel-card {
  padding: 24px;
  background: #fff;
  border: 1px solid #e1e6ed;
  border-radius: 10px;
  margin-bottom: 20px;
}
.panel-card h3 {
  font-size: 16px;
  margin-bottom: 14px;
}
.panel-card p {
  font-size: 13px;
  line-height: 1.8;
  color: #647589;
}
.panel-card label {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  display: block;
  margin: 12px 0 7px;
}
.panel-card input:not([type='checkbox']),
.panel-card textarea,
.panel-card select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ced8e2;
  border-radius: 5px;
  background: #fff;
  color: #173b57;
  font: inherit;
  font-size: 13px;
}
.panel-card textarea {
  min-height: 84px;
  resize: vertical;
}
.panel-card input[type='checkbox'] {
  margin-right: 9px;
  accent-color: var(--navy);
}
.panel-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.panel-actions .button {
  font-size: 12px;
  min-height: 40px;
  padding: 10px 18px;
}
.button.secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid #cbd6df;
}
.health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.health-card {
  background: #fff;
  border: 1px solid #e1e6ed;
  border-radius: 10px;
  padding: 20px;
  min-width: 0;
}
.health-card span {
  font-size: 10px;
  color: #596b7c;
  display: block;
  letter-spacing: 0.7px;
  margin-bottom: 12px;
}
.health-card strong {
  font-size: 18px;
  display: block;
}
.health-card small {
  font-size: 11px;
  color: #536778;
}
.health-card.ok strong {
  color: #247750;
}
.health-card.bad strong {
  color: #af3333;
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.quick-links button {
  padding: 16px;
  background: #f4f6f9;
  border: 1px solid #e0e5ed;
  border-radius: 6px;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.content-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 16px 0 20px;
}
.content-tabs button {
  font: inherit;
  font-size: 12px;
  padding: 9px 14px;
  border-radius: 5px;
  border: 1px solid #d5dee6;
  background: white;
  cursor: pointer;
}
.content-tabs button.active {
  background: var(--navy);
  color: white;
}
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.editor-grid .full {
  grid-column: 1/-1;
}
.editor-row {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8ee;
  border-radius: 6px;
  margin-bottom: 14px;
}
.editor-row .row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.row-head strong {
  font-size: 13px;
}
.row-head button,
.mini-button {
  border: 1px solid #d4dde5;
  background: white;
  padding: 7px 10px;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  color: var(--navy);
}
.danger {
  color: #a82026 !important;
}
.editor-filter {
  margin: 0 0 16px;
}
.editor-key {
  font-size: 10px;
  color: #596b7c;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.media-item img {
  height: 120px;
  width: 100%;
  object-fit: contain;
  background: #f0f3f7;
  border-radius: 5px;
}
.media-item p {
  word-break: break-all;
}
.media-item code {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.message-grid {
  display: grid;
  grid-template-columns: minmax(200px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
}
.message-list {
  display: grid;
  gap: 8px;
  align-content: start;
  max-height: 650px;
  overflow: auto;
}
.message-button {
  text-align: left;
  background: white;
  border: 1px solid #dce3eb;
  padding: 16px;
  border-radius: 6px;
  font: inherit;
  color: var(--navy);
  cursor: pointer;
}
.message-button.active {
  border-left: 3px solid var(--accent);
  background: #fff6f6;
}
.message-button strong {
  font-size: 13px;
  display: block;
}
.message-button small {
  font-size: 11px;
  display: block;
  color: #596b7c;
  margin-top: 6px;
}
.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f6f8fb;
  padding: 16px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.7;
}
.panel-note {
  padding: 12px 16px;
  border-left: 3px solid #ba292d;
  background: #fff7f6;
  font-size: 12px;
  line-height: 1.7;
  color: #6c4545;
  margin: 12px 0;
}
.panel-table {
  width: 100%;
  font-size: 12px;
}
.panel-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 300px;
}
.panel-table th {
  font-size: 10px;
}
.panel-table button {
  font-size: 11px;
}
.pending-dot {
  background: #f9ede0;
  color: #866320;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 11px;
}
.panel-card details {
  padding: 12px 0;
  border-bottom: 1px solid #edf0f3;
}
.panel-card summary {
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}
.sticky-actions {
  position: sticky;
  top: 96px;
  z-index: 5;
  background: #f4f6f9ef;
  padding: 14px 0;
  backdrop-filter: blur(8px);
}
[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .panel-shell {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
  }
  .health-grid {
    grid-template-columns: 1fr 1fr;
  }
  .media-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .panel-shell {
    display: block;
    width: 92%;
  }
  .panel-sidebar {
    position: static;
    padding: 16px;
    margin-bottom: 24px;
  }
  #panel-navigation {
    display: flex;
    overflow: auto;
    padding-bottom: 8px;
  }
  #panel-navigation button {
    white-space: nowrap;
  }
  .panel-user {
    padding-bottom: 10px;
  }
  .nav-caption {
    display: none;
  }
  .panel-preview {
    display: inline-block;
    margin: 12px;
  }
  .panel-sidebar > .text-link {
    float: right;
  }
  .editor-grid,
  .message-grid {
    grid-template-columns: 1fr;
  }
  .panel-heading {
    align-items: start;
  }
  .panel-heading h2 {
    font-size: 23px;
  }
  .panel-pill {
    display: none;
  }
  .panel-card {
    padding: 18px;
  }
  .panel-card input:not([type='checkbox']),
  .panel-card select,
  .panel-card textarea {
    font-size: 16px;
  }
  .sticky-actions {
    top: 77px;
  }
  .media-grid {
    grid-template-columns: 1fr 1fr;
  }
  .health-card {
    padding: 16px;
  }
  .health-card strong {
    font-size: 16px;
  }
  .panel-actions .button {
    padding: 10px 12px;
  }
  .admin-page .page-banner h1 {
    font-size: 25px;
  }
}
