:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #0b1118;
  color: #eef3f7;
  font-family: "M PLUS 1", "Roboto", sans-serif;
}

.dev-page {
  padding-top: calc(56px + 18px + env(safe-area-inset-top));
}

.dev-page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 16px;
}

.dev-page-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #eef3f7;
}

.dev-page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(10, 14, 20, 0.9);
  color: #e8f0f7;
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.global-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: rgba(10, 14, 20, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.global-logo {
  height: 22px;
  width: auto;
  display: block;
}

.global-burger {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 18, 26, 0.9);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.global-burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: rgba(230, 240, 255, 0.9);
  margin: 2px 0;
}

.global-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 30, 44, 0.9);
  color: #e8f0f7;
  font-size: 11px;
  text-decoration: none;
}

.preview-btn-mobile {
  display: none;
}

.global-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(220, 235, 255, 0.9);
  font-size: 11px;
}

.global-user-role {
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.global-menu {
  position: fixed;
  top: 56px;
  left: 12px;
  width: min(280px, 90vw);
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(12, 16, 22, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  z-index: 9998;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.global-menu a {
  color: rgba(230, 240, 255, 0.9);
  text-decoration: none;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(20, 28, 40, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.global-menu.is-open {
  display: flex;
}

.global-foot {
  width: 100%;
  text-align: center;
  padding: 28px 12px 40px;
  font-size: 11px;
  color: rgba(160, 175, 190, 0.8);
}

@media (max-width: 720px) {
  .global-head {
    height: 52px;
    padding: 0 12px;
  }
  .global-preview-btn {
    font-size: 10px;
  }
}
