.admin-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  min-height: calc(100vh - 56px);
}

.admin-sidebar,
.admin-main {
  min-width: 0;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(8, 20, 31, 0.72);
  box-shadow: var(--shadow-soft);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  width: 46px;
  height: 46px;
  padding: 2px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 26, 40, 0.28), rgba(5, 15, 24, 0.12));
  border: 1px solid rgba(139, 202, 255, 0.07);
  color: #dff8ff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 8px 14px rgba(3, 26, 41, 0.1);
}

.brand-mark-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: #0a1d2d;
  filter: saturate(0.96) brightness(1.02);
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 700;
}

.brand-copy small {
  color: rgba(244, 251, 255, 0.96);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sidebar-group {
  display: grid;
  gap: 14px;
}

.sidebar-kicker {
  margin: 0;
  padding: 0 6px;
  color: rgba(195, 217, 232, 0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.sidebar-note {
  padding: 22px 20px 20px;
}

.sidebar-note h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.sidebar-note p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.admin-main {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(8, 21, 34, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.topbar-copy h1 {
  margin: 0;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.1;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.page-main {
  display: block;
}

.page-content {
  display: grid;
  gap: 22px;
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(420px, 1.15fr);
  gap: 22px;
}

.entry-shell {
  display: grid;
  place-items: center;
}

.entry-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
}

.entry-panel {
  padding: 42px 38px;
}

@media (max-width: 1280px) {
  .admin-shell {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .workbench-grid {
    grid-template-columns: 1fr;
  }
}

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

  .admin-sidebar {
    order: 2;
  }

  .admin-main {
    order: 1;
  }
}

@media (max-width: 720px) {
  .admin-topbar {
    padding: 16px;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .entry-panel {
    padding: 34px 22px;
  }
}
