.admin-gate,
.admin-shell {
  background: #f1eee6;
  color: #11130f;
  min-height: 100vh;
}

.admin-gate {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 30px;
}

.admin-gate-card {
  background: #fbfaf6;
  border: 1px solid #11130f;
  box-shadow: 12px 12px 0 #11130f;
  max-width: 520px;
  padding: 50px;
  text-align: center;
}

.admin-logo {
  align-items: center;
  background: #11130f;
  border-radius: 50%;
  color: #c7ff18;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 900;
  height: 54px;
  justify-content: center;
  margin-bottom: 20px;
  transform: rotate(-8deg);
  width: 54px;
}

.admin-gate-card > p:first-of-type,
.admin-topbar p,
.panel-title p,
.editor-head p {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin: 0 0 8px;
}

.admin-gate-card h1 {
  font-size: 3rem;
  letter-spacing: -0.07em;
  margin: 0;
  text-transform: uppercase;
}

.admin-gate-copy {
  color: #65695f;
  line-height: 1.6;
  margin: 24px 0;
}

.admin-login,
.admin-primary {
  background: #c7ff18;
  border: 1px solid #11130f;
  border-radius: 999px;
  color: #11130f;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 14px 20px;
  text-transform: uppercase;
}

.admin-back {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 24px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
}

.admin-sidebar {
  background: #11130f;
  color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 25px 18px;
  position: sticky;
  top: 0;
}

.admin-brand {
  align-items: center;
  display: flex;
  gap: 10px;
  margin: 0 8px 38px;
}

.admin-brand > span {
  align-items: center;
  background: #c7ff18;
  border-radius: 50%;
  color: #11130f;
  display: flex;
  font-size: 0.65rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.admin-brand b {
  font-size: 0.85rem;
  letter-spacing: -0.03em;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-nav button,
.admin-nav a {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #94998e;
  cursor: pointer;
  display: flex;
  font-size: 0.75rem;
  font-weight: 800;
  gap: 12px;
  padding: 13px 12px;
  text-align: left;
}

.admin-nav button span,
.admin-nav a span {
  width: 18px;
}

.admin-nav button:hover,
.admin-nav button.active,
.admin-nav a:hover,
.admin-nav a.active {
  background: #282b25;
  color: white;
}

.admin-nav button.active span,
.admin-nav a.active span {
  color: #c7ff18;
}

.admin-account {
  border-top: 1px solid #343830;
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding: 20px 8px 0;
}

.admin-account small {
  color: #767b70;
  font-size: 0.55rem;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.admin-account strong {
  font-size: 0.62rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-account a {
  color: #c7ff18;
  font-size: 0.62rem;
  margin-top: 10px;
}

.admin-content {
  min-width: 0;
  padding: 38px 4vw 80px;
}

.admin-topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 34px;
}

.admin-topbar h1 {
  font-size: clamp(2.6rem, 4vw, 4.5rem);
  letter-spacing: -0.07em;
  line-height: 0.9;
  margin: 0;
  text-transform: uppercase;
}

.admin-topbar > a {
  border-bottom: 1px solid;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  padding-bottom: 6px;
  text-transform: uppercase;
}

.admin-message {
  background: #c7ff18;
  border: 1px solid #11130f;
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 20px;
  padding: 12px 15px;
}

.admin-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 28px;
}

.admin-metrics article {
  background: #fbfaf6;
  border: 1px solid #d5d2c9;
  display: flex;
  flex-direction: column;
  min-height: 145px;
  padding: 18px;
}

.admin-metrics article > span {
  color: #73776e;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-metrics b {
  font-size: 3rem;
  letter-spacing: -0.07em;
  line-height: 1;
  margin-top: auto;
}

.admin-metrics small {
  color: #8d9188;
  font-size: 0.6rem;
}

.admin-metrics .metric-live {
  background: #c7ff18;
  border-color: #11130f;
}

.admin-metrics .metric-live > span,
.admin-metrics .metric-live small {
  color: #11130f;
}

.admin-panel {
  background: #fbfaf6;
  border: 1px solid #d5d2c9;
  margin-bottom: 28px;
  padding: 28px;
}

.panel-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.panel-title h2,
.editor-head h2 {
  font-size: 1.8rem;
  letter-spacing: -0.05em;
  margin: 0;
}

.content-table {
  border-top: 1px solid #d9d7cf;
}

.content-table article {
  align-items: center;
  border-bottom: 1px solid #d9d7cf;
  display: grid;
  gap: 13px;
  grid-template-columns: 10px 1fr auto auto auto;
  padding: 15px 4px;
}

.status-dot {
  background: #aaa;
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.status-dot.published {
  background: #6faa00;
  box-shadow: 0 0 0 4px rgba(111, 170, 0, 0.12);
}

.content-table article > div {
  display: flex;
  flex-direction: column;
}

.content-table strong {
  font-size: 0.84rem;
}

.content-table small {
  color: #858980;
  font-size: 0.66rem;
  margin-top: 3px;
}

.status-label {
  background: #e4e2db;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 6px 9px;
  text-transform: uppercase;
}

.status-label.published {
  background: #e0f5b5;
  color: #416500;
}

.content-table button,
.editor-head button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.63rem;
  font-weight: 800;
}

.content-table .delete-button {
  color: #a7472a;
  font-size: 1.1rem;
}

.admin-empty {
  color: #7d8178;
  font-size: 0.8rem;
  padding: 30px 0;
  text-align: center;
}

.settings-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 20px;
}

.settings-grid .full {
  grid-column: 1 / -1;
}

.settings-panel label,
.editor-drawer label {
  color: #65695f;
  display: flex;
  flex-direction: column;
  font-size: 0.63rem;
  font-weight: 800;
  gap: 7px;
  text-transform: uppercase;
}

.settings-panel input,
.settings-panel textarea,
.settings-panel select,
.editor-drawer input,
.editor-drawer textarea,
.editor-drawer select {
  background: white;
  border: 1px solid #cbc9c1;
  border-radius: 0;
  color: #11130f;
  font: 400 0.82rem/1.5 Arial, sans-serif;
  outline: none;
  padding: 11px 12px;
  text-transform: none;
}

.settings-panel input:focus,
.settings-panel textarea:focus,
.settings-panel select:focus,
.editor-drawer input:focus,
.editor-drawer textarea:focus,
.editor-drawer select:focus {
  border-color: #11130f;
  box-shadow: 3px 3px 0 #c7ff18;
}

.editor-backdrop {
  background: rgba(17, 19, 15, 0.55);
  inset: 0;
  position: fixed;
  z-index: 20;
}

.editor-drawer {
  background: #fbfaf6;
  box-shadow: -12px 0 0 rgba(17, 19, 15, 0.3);
  display: flex;
  flex-direction: column;
  gap: 17px;
  height: 100%;
  margin-left: auto;
  max-width: 560px;
  overflow-y: auto;
  padding: 34px;
  width: 92%;
}

.editor-head {
  align-items: center;
  border-bottom: 1px solid #d5d2c9;
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;
}

.editor-head button {
  font-size: 1.8rem;
}

.editor-row {
  display: grid;
  gap: 15px;
  grid-template-columns: 1fr 1fr;
}

.editor-actions {
  align-items: center;
  border-top: 1px solid #d5d2c9;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 22px;
}

.editor-actions > button:first-child {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
}

.setup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.setup-form label {
  color: #65695f;
  display: flex;
  flex-direction: column;
  font-size: 0.63rem;
  font-weight: 800;
  gap: 7px;
  text-transform: uppercase;
}

.setup-form input,
.settings-panel select {
  background: white;
  border: 1px solid #cbc9c1;
  color: #11130f;
  font: 400 0.82rem/1.5 Arial, sans-serif;
  padding: 11px 12px;
}

.table-action {
  font-size: 0.63rem;
  font-weight: 800;
}

.content-table form {
  margin: 0;
}

.editor-inline {
  scroll-margin-top: 20px;
}

@media (max-width: 920px) {
  .admin-shell {
    grid-template-columns: 74px 1fr;
  }

  .admin-sidebar {
    padding: 22px 10px;
  }

  .admin-brand b,
  .admin-nav button:not(.active),
  .admin-nav a:not(.active) {
    font-size: 0;
  }

  .admin-brand {
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
  }

  .admin-nav button,
  .admin-nav a {
    justify-content: center;
  }

  .admin-nav button span,
  .admin-nav a span {
    font-size: 0.9rem;
    width: auto;
  }

  .admin-account {
    display: none;
  }

  .admin-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    align-items: center;
    flex-direction: row;
    min-height: auto;
    padding: 10px 15px;
    position: static;
  }

  .admin-brand {
    margin: 0 auto 0 0;
  }

  .admin-nav {
    flex-direction: row;
  }

  .admin-nav button {
    padding: 10px;
  }

  .admin-content {
    padding: 28px 15px 60px;
  }

  .admin-topbar > a {
    display: none;
  }

  .admin-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .admin-panel {
    padding: 20px 15px;
  }

  .content-table article {
    grid-template-columns: 8px 1fr auto;
  }

  .status-label {
    display: none;
  }

  .settings-grid,
  .editor-row {
    grid-template-columns: 1fr;
  }

  .settings-grid .full {
    grid-column: auto;
  }
}
