/* Account administration is a workspace, not the two-column sign-in page. */
body.miki-pulse .auth-admin-layout {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 24px;
  flex: 1 0 auto;
  box-sizing: border-box;
}

body.miki-pulse .auth-admin-layout .auth-main {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body.miki-pulse .auth-admin-layout .auth-card h1 {
  margin-top: 0;
  font-size: clamp(24px, 2.2vw, 32px);
}

body.miki-pulse .auth-admin-layout .auth-card h2 {
  margin: 8px 0;
  font-size: 21px;
}

body.miki-pulse .auth-admin-layout .auth-card > form[method="get"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 14px;
}

body.miki-pulse .auth-admin-layout .auth-card > p {
  margin: 10px 0;
  line-height: 1.5;
}

body.miki-pulse .auth-admin-layout .review-list {
  margin-top: 18px;
  gap: 14px;
}

body.miki-pulse .auth-admin-layout .review-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

body.miki-pulse .auth-admin-layout .review-proof img {
  max-height: 270px;
}

body.miki-pulse .auth-admin-layout .review-reset {
  margin: 12px 0;
}

body.miki-pulse .auth-admin-layout .review-reset button {
  width: fit-content;
}

body.miki-pulse .auth-admin-layout .auth-main label {
  margin-top: 0;
}

body.miki-pulse .auth-admin-layout .review-tools {
  margin-top: 12px;
}

@media (max-width: 760px) {
  body.miki-pulse .auth-admin-layout {
    padding: 18px 14px;
  }
  body.miki-pulse .auth-admin-layout .review-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  body.miki-pulse .auth-admin-layout .review-card {
    padding: 12px;
  }
  body.miki-pulse .auth-admin-layout .review-proof img {
    max-height: 210px;
  }
}

/* PULSE frame. Oct 1 density feedback retains the 206px rail while reducing
   the working header to 64px and the secondary navigation to 48px. */
html:has(body.miki-pulse) {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #4b526b #080a12;
}

body.miki-pulse .pulse-app.command-center-shell {
  grid-template-columns: 206px minmax(0, 1fr);
  gap: 0;
  min-height: 100dvh;
  padding: 0;
  background: transparent;
}

body.miki-pulse .pulse-app.command-center-shell > .pulse-sidebar {
  top: 0;
  height: 100dvh;
  border-radius: 0;
  box-shadow: none;
}

body.miki-pulse .pulse-app.command-center-shell .pulse-nav > a:not([aria-current="page"]):not(.selected) {
  justify-content: flex-start;
  background: transparent;
  color: #9da7c3;
}

body.miki-pulse .pulse-app.command-center-shell .pulse-nav > a[aria-current="page"],
body.miki-pulse .pulse-app.command-center-shell .pulse-nav > a.selected {
  justify-content: flex-start;
}

/* Public renderers use the same PULSE rail without the command-center class. */
body.miki-pulse .pulse-app:not(.command-center-shell) .pulse-nav > a:not([aria-current="page"]):not(.selected) {
  justify-content: flex-start;
  background: transparent;
  color: #9da7c3;
}

body.miki-pulse .pulse-app:not(.command-center-shell) .pulse-nav > a[aria-current="page"],
body.miki-pulse .pulse-app:not(.command-center-shell) .pulse-nav > a.selected {
  justify-content: flex-start;
}

body.miki-pulse .pulse-app.command-center-shell .pulse-top {
  top: 0;
  height: 64px;
}

body.miki-pulse .pulse-app.command-center-shell .context-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  height: 48px;
  padding: 6px 22px;
  overflow: hidden;
  border-bottom: 1px solid #272d42;
  background: #0c101a;
}

body.miki-pulse .pulse-app.command-center-shell .context-nav-current {
  display: none;
}

body.miki-pulse .pulse-app.command-center-shell .context-nav-links {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

body.miki-pulse .pulse-app.command-center-shell .context-nav-links a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #a3aac5;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.miki-pulse .pulse-app.command-center-shell .context-nav-links a:hover,
body.miki-pulse .pulse-app.command-center-shell .context-nav-links a:focus-visible {
  background: #191e30;
  color: #f3f5ff;
}

body.miki-pulse .pulse-app.command-center-shell .context-nav-links a[aria-current="page"] {
  background: #251c42;
  color: #b99eff;
}

/* Keep complete labels in the working strip. The searchable All sections
   drawer retains every route, including those omitted from this shortcut row. */
body.miki-pulse .pulse-app.command-center-shell .context-nav-links a:nth-child(n + 7):not([aria-current="page"]) {
  display: none;
}
@media (max-width: 1180px) {
  body.miki-pulse .pulse-app.command-center-shell .context-nav-links a:nth-child(n + 4):not([aria-current="page"]) {
    display: none;
  }
}
@media (max-width: 620px) {
  body.miki-pulse .pulse-app.command-center-shell .context-nav-links a:not([aria-current="page"]) {
    display: none;
  }
}

body.miki-pulse .pulse-app.command-center-shell .context-nav-open {
  min-height: 32px;
  padding: 0 9px;
  border-color: #303649;
  background: #151a29;
  font-size: 10px;
  white-space: nowrap;
}

/* Keep the complete fan-site disclosure, but return the footer to the compact
   two-row PULSE rhythm instead of four oversized legacy action tiles. */
body.miki-pulse .pulse-footer {
  flex-wrap: wrap;
  align-items: center;
}

body.miki-pulse .pulse-footer nav {
  width: auto;
  flex-wrap: wrap;
  align-items: center;
}

body.miki-pulse .pulse-footer nav a,
body.miki-pulse .pulse-footer nav button[data-dark-menu] {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
}

body.miki-pulse .pulse-footer small {
  flex: 1 0 100%;
  margin-top: 1px;
  padding-top: 12px;
  border-top: 1px solid #24293a;
  color: #66728e;
  font-size: 9px;
  line-height: 1.5;
}

body.miki-pulse .pulse-footer .pulse-owner-contact {
  flex: 1 0 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body.miki-pulse .pulse-footer .pulse-owner-contact a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Account actions are always discoverable, including without JavaScript. */
body.miki-pulse .pulse-account-menu {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
body.miki-pulse .pulse-account-menu > summary {
  display: flex;
  margin: 0;
  list-style: none;
  cursor: pointer;
  color: #140d29;
  background: linear-gradient(145deg, #cfb3ff, var(--accent) 44%, #7050cd);
  border: 1px solid rgba(232, 220, 255, .42);
  font-size: 12px;
  line-height: 1.4;
}
body.miki-pulse .pulse-account-menu > summary:hover {
  filter: brightness(1.06);
}
body.miki-pulse .pulse-account-menu > summary::-webkit-details-marker {
  display: none;
}
body.miki-pulse .pulse-account-menu > summary::after {
  content: none;
}
body.miki-pulse .pulse-account-menu > summary > span {
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
body.miki-pulse .pulse-account-menu > nav {
  position: absolute;
  z-index: 60;
  top: calc(100% + 9px);
  right: 0;
  width: 240px;
  max-width: calc(100vw - 28px);
  padding: 6px;
  border: 1px solid #42435e;
  border-radius: 12px;
  background: #171c2c;
  box-shadow: 0 16px 40px #0007;
}
body.miki-pulse .pulse-account-menu > nav a,
body.miki-pulse .pulse-app .pulse-logout {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #c8cde2;
  font-size: 12px;
  line-height: 1.3;
}
body.miki-pulse .pulse-account-menu > nav a:hover,
body.miki-pulse .pulse-app .pulse-logout:hover {
  color: #f5f5ff;
  background: #28203f;
}
body.miki-pulse .pulse-app .pulse-logout {
  margin-top: 4px;
}
body.miki-pulse .pulse-account-menu > nav .icon,
body.miki-pulse .pulse-app .pulse-logout .icon {
  width: 16px;
  height: 16px;
}

/* The header names the actual page. Identity, navigation and appearance have
   distinct controls; motion remains available inside the appearance dialog. */
body.miki-pulse .pulse-top {
  gap: 16px;
}
body.miki-pulse .pulse-top-left {
  flex: 1 1 auto;
  min-width: 0;
}
body.miki-pulse .pulse-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #a3adc7;
  font-size: 12px;
  line-height: 1.4;
}
body.miki-pulse .pulse-breadcrumb .top-identity {
  flex: 0 0 auto;
  color: #f1f3fb;
}
body.miki-pulse .pulse-top .pulse-breadcrumb > a {
  /* Breadcrumb links must not inherit the legacy nav tile dimensions. */
  min-height: 0;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.miki-pulse .pulse-breadcrumb-area {
  flex: 0 0 auto;
  color: #a3adc7;
}
body.miki-pulse .pulse-breadcrumb-area:hover {
  color: #d2baff;
}
body.miki-pulse .pulse-breadcrumb-separator {
  color: #626e89;
}
body.miki-pulse .pulse-breadcrumb-current {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #c6cee3;
}
body.miki-pulse .pulse-top .top-search {
  flex: 0 1 310px;
  min-width: 140px;
  margin-left: 0;
}
body.miki-pulse .pulse-top-actions {
  flex: 0 0 auto;
  gap: 8px;
}
body.miki-pulse .pulse-top .pulse-appearance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 40px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
}
body.miki-pulse .pulse-top .pulse-account-menu > summary.top-login {
  min-height: 40px;
  color: #140d29;
  background: linear-gradient(145deg, #cfb3ff, var(--accent) 44%, #7050cd);
  border: 1px solid rgba(232, 220, 255, .42);
}
body.miki-pulse .pulse-top .pulse-account-menu > nav a {
  background: transparent;
  box-shadow: none;
}
body.miki-pulse .pulse-top .pulse-account-menu > nav a:hover,
body.miki-pulse .pulse-top .pulse-account-menu > nav a:focus-visible {
  background: #28203f;
}
body.miki-pulse .pulse-account-heading {
  display: grid;
  gap: 4px;
  padding: 10px 12px 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid #30394e;
}
body.miki-pulse .pulse-account-heading small {
  color: #929fbc;
  font-size: 11px;
}
body.miki-pulse .pulse-account-heading b {
  color: #f1f3fb;
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
body.miki-pulse .pulse-account-menu > nav a[href="/logout"] {
  margin-top: 4px;
  border-top: 1px solid #30394e;
  border-radius: 0 0 8px 8px;
}
@media (max-width: 1120px) {
  body.miki-pulse .pulse-appearance > span {
    display: none;
  }
}

@media (max-width: 1180px) {
  body.miki-pulse .pulse-app.command-center-shell .context-nav-links a:nth-child(n + 10) {
    display: none;
  }
  body.miki-pulse .pulse-app.command-center-shell .context-nav-links a[aria-current="page"] {
    display: inline-flex;
    order: -1;
  }
}

@media (max-width: 850px) {
  body.miki-pulse .pulse-app.command-center-shell .context-nav-links a:nth-child(n + 6) {
    display: none;
  }
}

@media (max-width: 620px) {
  body.miki-pulse .pulse-top {
    gap: 8px;
    padding-inline: 14px;
  }
  body.miki-pulse .pulse-top-left {
    gap: 8px;
  }
  body.miki-pulse .pulse-breadcrumb {
    display: grid;
    gap: 2px;
    line-height: 1.2;
  }
  body.miki-pulse .pulse-breadcrumb .top-identity {
    font-size: 10px !important;
    color: #a3adc7;
  }
  body.miki-pulse .pulse-breadcrumb-current {
    font-size: 12px;
    font-weight: 650;
    color: #f1f3fb;
  }
  body.miki-pulse .pulse-breadcrumb-area,
  body.miki-pulse .pulse-breadcrumb-separator {
    display: none;
  }
  body.miki-pulse .pulse-top .icon-btn,
  body.miki-pulse .pulse-top .top-search {
    width: 44px !important;
    min-width: 44px;
    min-height: 44px !important;
    height: 44px;
    flex: 0 0 44px;
    padding: 0 !important;
    justify-content: center;
  }
  body.miki-pulse .pulse-top-actions {
    gap: 6px;
  }
  body.miki-pulse .pulse-top .pulse-account-menu > summary {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }
  body.miki-pulse .pulse-top .pulse-account-name,
  body.miki-pulse .pulse-top .pulse-account-menu > summary > .icon:last-child {
    display: none;
  }
  body.miki-pulse .pulse-top .pulse-top-avatar {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
  }
  /* Long member names must shrink inside the header, not beyond its edge. */
  body.miki-pulse .pulse-app .pulse-top-actions {
    min-width: 0;
  }
  body.miki-pulse .pulse-app .top-login {
    min-width: 0;
    max-width: 100%;
    padding-inline: 10px;
  }
  body.miki-pulse .pulse-app .top-login > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.miki-pulse .pulse-app.command-center-shell {
    display: block;
  }
  body.miki-pulse .pulse-app.command-center-shell .pulse-top {
    height: 60px;
    min-height: 60px;
  }
  body.miki-pulse .pulse-app.command-center-shell .context-nav {
    height: 52px;
    min-height: 52px;
    gap: 4px;
    padding: 6px 15px;
  }
  body.miki-pulse .pulse-app.command-center-shell .context-nav-links a {
    min-height: 40px;
    padding: 6px 8px;
    font-size: 10px;
  }
  body.miki-pulse .pulse-app.command-center-shell .context-nav-links a:nth-child(n + 4) {
    display: none;
  }
  body.miki-pulse .pulse-app.command-center-shell .context-nav-links a[aria-current="page"] {
    display: inline-flex;
  }
  body.miki-pulse .pulse-app.command-center-shell .context-nav-open {
    min-height: 40px;
    min-width: 41px;
    width: 41px;
    padding: 0;
  }
  body.miki-pulse .pulse-app.command-center-shell .context-nav-open span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  body.miki-pulse .pulse-footer {
    align-items: flex-start;
    gap: 10px;
    padding: 22px 14px 20px;
  }
  body.miki-pulse .pulse-footer nav {
    margin-left: 0;
    gap: 16px;
  }
  body.miki-pulse .pulse-footer small {
    margin-top: 2px;
    padding-top: 11px;
  }
}
