/* Visual baseline: ComicMaker design1.0 95fa7be, committed design-v1.css
   header rules (544 onward). Adapt the React header without loading the
   prototype's authentication, billing or generation runtime. */
.lp-page h3 { line-height: 1.15; }
.lp-language > .ph { font-size: 22px; line-height: 1; }

html body .app-header {
  height: auto;
  min-height: 80px;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 12px;
}
html body .app-header .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  max-width: 100%;
  flex-wrap: wrap;
}
html body .app-header .interface-locale-control {
  height: 40px;
  font-size: 13px;
  border-width: 2px;
}
html body .app-header .interface-locale-control > .ph-globe { font-size: 16px; }
html body .app-header .membership-group[hidden],
html body .app-header #header-membership[hidden] { display: none !important; }
html body .app-header .header-auth:not(.is-guest) {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 2px solid #111;
  border-radius: 50%;
  box-shadow: none;
}
html body .app-header .header-auth:not(.is-guest) > .ph { font-size: 30px; line-height: 1; }
html body .app-header .membership-group:not([hidden]) { min-height: 40px; align-items: center; }
html body .app-header #header-earn {
  height: 40px;
  min-height: 40px;
  padding: 8px 10px;
  border-width: 2px;
  font-size: 13px;
}
.workspace-guest-menu { display: none !important; }
.membership-product-credits { display: block; font-size: 12px; }
.membership-page .membership-plan-benefits { font-size: 13px; font-weight: 600; line-height: 1.65; color: #333; }
.membership-page .membership-plan-benefits .membership-product-credits { font-size: 12px; font-weight: 400; line-height: 1.65; color: #666; }
/* Match the design's purchase-card treatment; disabled is still native and
   the label/status explains whether purchasing is available. */
.membership-purchase-card .membership-buy:disabled {
  background: var(--brand, #eef200);
  color: #000;
  box-shadow: 2px 2px 0 #000;
  opacity: 1;
  cursor: not-allowed;
}
.story-character-count.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (min-width:768px) and (max-width:1100px) {
  html body .app-header #header-earn { display: none !important; }
}
@media (min-width:768px) and (max-width:900px) {
  html[lang] body .app-header { padding-inline: 24px; column-gap: 16px; row-gap: 12px; }
  html[lang] body .app-header .brand { font-size: 24px; }
  html[lang] body .app-header > nav { margin-inline-start: 16px; gap: 16px; }
  html[lang] body .app-header > nav a { font-size: 14px; }
  html[lang] body .app-header > .header-actions { gap: 10px; }
}
@media (max-width:767px) {
  html body .app-header {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto 40px;
    align-items: center;
    gap: 10px 8px;
    min-height: 0;
    padding-block: 14px;
  }
  html body .app-header > nav { display: none !important; }
  html body .app-header > .header-actions { display: contents; }
  html body .app-header .brand {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 20px;
    letter-spacing: -.7px;
    min-width: 0;
  }
  html body .app-header .membership-group:not([hidden]) {
    grid-column: 2;
    grid-row: 1;
    max-width: 180px;
    min-width: 0;
    justify-self: end;
  }
  html body .app-header .membership-group > :is(.ink-button,.vip-button) {
    min-width: 0;
    padding-inline: 5px;
    font-size: 12px;
  }
  html body .app-header .header-auth {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  html body .app-header .interface-locale-control {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    max-width: 200px;
    padding-inline: 12px;
    gap: 7px;
    width: 132px;
  }
  html body .app-header:is([data-authenticated=false],[data-authenticated=pending]:where(html:not([data-auth=user]) *)) .interface-locale-control {
    grid-column: 2;
    grid-row: 1;
  }
  html body .app-header #header-earn { display: none !important; }
  .workspace-guest-menu { display: inline-flex !important; }
}
@media (max-width:359px) {
  html body .app-header:is([data-authenticated=false],[data-authenticated=pending]:where(html:not([data-auth=user]) *)) .interface-locale-control { width: 108px; }
  html body .app-header:is([data-authenticated=false],[data-authenticated=pending]:where(html:not([data-auth=user]) *)) .brand { font-size: 17px; }
  html body .app-header:is([data-authenticated=true],[data-authenticated=pending]:where(html[data-auth=user] *)) .brand { grid-column: 1 / 3; }
  html body .app-header:is([data-authenticated=true],[data-authenticated=pending]:where(html[data-auth=user] *)) .membership-group:not([hidden]) {
    grid-column: 1 / 4;
    grid-row: 2;
    justify-self: center;
  }
  html body .app-header:is([data-authenticated=true],[data-authenticated=pending]:where(html[data-auth=user] *)) .interface-locale-control { grid-row: 3; }
}
