.studio-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,.105);
  background: #0b0c0e;
  color: #f3f3f1;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body[data-studio-page="home"] > .shell { padding-top: var(--studio-header-height, 101px); }
body[data-studio-page="home"] section[id],
body[data-studio-page="inspiration"] section[id] { scroll-margin-top: calc(var(--studio-header-height, 101px) + 24px); }

body[data-studio-page="inspiration"] .studio-header {
  background: rgba(11,12,14,.56);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
}

.studio-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: min(100% - 80px, 1200px);
  min-height: 100px;
  margin: 0 auto;
}

.studio-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.studio-brand img {
  display: block;
  width: 168px;
  height: auto;
  filter: invert(1);
}

.studio-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #b8b9bb;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.studio-links a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

.studio-links a:hover,
.studio-links a:focus-visible { color: #fff; }

.studio-account { position: relative; flex: 0 0 auto; }
.studio-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: #f3f3f1;
  color: #151515;
  font: 650 15px/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}
.studio-avatar:hover,
.studio-avatar[aria-expanded="true"] { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.13); }
.studio-avatar:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.studio-avatar[hidden],
.studio-account-menu[hidden],
.studio-account-error[hidden] { display: none; }
.studio-account-menu {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  z-index: 40;
  width: 244px;
  padding: 17px 8px 8px;
  border: 1px solid #deddd7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,.25);
  color: #171717;
  text-align: left;
}
.studio-account-label { margin: 0 9px 5px; color: #777; font-size: 11px; }
.studio-account-email { overflow-wrap: anywhere; margin: 0 9px 15px; font-size: 13px; font-weight: 600; line-height: 1.45; }
.studio-account-action {
  display: block;
  width: 100%;
  min-height: 39px;
  padding: 10px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #171717 !important;
  font: 13px/1.4 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  cursor: pointer;
}
.studio-account-action:hover,
.studio-account-action:focus-visible { background: #f1f0eb; }
.studio-account-action + .studio-account-action { border-top: 1px solid #eee; border-radius: 0 0 8px 8px; }
.studio-account-error { margin: 7px 9px; color: #a2362e; font-size: 12px; line-height: 1.4; }

.studio-language { position: relative; flex: 0 0 auto; }
.studio-language-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #b8b9bb;
  cursor: pointer;
}
.studio-language-button svg { width: 19px; height: 19px; }
.studio-language-button:hover,
.studio-language-button[aria-expanded="true"] { background: rgba(255,255,255,.12); color: #fff; }
.studio-language-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  min-width: 150px;
  padding: 6px;
  border: 1px solid #deddd7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.2);
}
.studio-language-menu[hidden] { display: none; }
.studio-language-menu button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #171717;
  font: 14px/1.4 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  cursor: pointer;
}
.studio-language-menu button:hover { background: #f1f0eb; }
.studio-language-menu button[aria-checked="true"] { font-weight: 600; }
.studio-language-menu button[aria-checked="true"]::after { content: "✓"; }

@media (max-width: 1040px) {
  .studio-navigation { justify-content: center; flex-wrap: wrap; gap: 16px; padding: 18px 0; }
  .studio-links { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 700px) {
  .studio-navigation { width: min(100% - 40px, 1200px); gap: 12px; padding: 14px 0; }
  .studio-brand img { width: 139px; }
  .studio-links { gap: 13px; font-size: 12px; }
  .studio-language-button { width: 32px; height: 32px; }
}
