/* Baund — Swiss-minimal base
 *
 * Edit THIS file. Compile manually — output is style.css in this same folder.
 * Fonts: Outfit (body) + IBM Plex Sans (headings) — Google Fonts, loaded in page layouts.
 * Portfolio viewer styles: see pdf-viewer.less (separate compile → pdf-viewer.css).
 */
* {
  box-sizing: border-box;
}
/* `hidden` is a browser default (`display: none`). Any later `display` rule
 * silently wins — e.g. a flex toolbar stays visible after JS sets hidden. */
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font-family: "Outfit", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #0a0a0a;
  background: #f7f7f7;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #0a0a0a;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
a:hover {
  color: #5c5c5c;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}
h2 {
  font-size: 1.35rem;
}
h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35em;
}
p {
  margin: 0 0 1em;
}
.muted {
  color: #5c5c5c;
}
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c5c5c;
}
.lede {
  max-width: 34rem;
  font-size: 1.05rem;
  color: #2a2a2a;
}
/* —— Layout shells —— */
.site-header,
.site-footer {
  background-color: #ffffff;
  border: 1px solid #e2e2e2;
  width: 1360px;
  max-width: calc(100% - 40px);
  margin: 20px auto 0 auto;
  border-radius: 99px;
  box-shadow: 0 1px 2px rgba(50, 50, 49, 0.06), 0 8px 28px rgba(50, 50, 49, 0.1);
}
.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  flex-shrink: 0;
  margin-bottom: 20px;
}
.site-footer {
  border-bottom: 0;
  border-top: 1px solid #e2e2e2;
  margin-top: auto;
  margin-bottom: 30px;
}
.site-header__inner,
.site-footer__inner {
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header__inner {
  padding: 25px 42px;
  transition: padding 0.35s ease;
}
.site-header.is-scrolled .site-header__inner {
  padding: 10px 30px;
}
.site-header .brand {
  font-size: 1.4rem;
  transition: font-size 0.35s ease;
}
.site-header.is-scrolled .brand {
  font-size: 1.1rem;
}
@media (prefers-reduced-motion: reduce) {
  .site-header__inner,
  .site-header .brand {
    transition: none;
  }
}
.site-footer__inner {
  font-size: 0.85rem;
  color: #5c5c5c;
}
.brand {
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  font-size: 1.1rem;
}
.brand:hover {
  color: #0a0a0a;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}
.site-nav a {
  text-decoration: none;
}
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-main {
  flex: 1;
  width: 100%;
}
/* —— PDF viewer (share page) —— */
.page-pdf-view {
  background: #f7f7f7;
  /* Flip: lock to the viewport so the book fills the stage. */
  /* Scroll: document flow — pages push the footer; window scrolls. */
}
.page-pdf-view .site-header__inner {
  padding: 10px 30px;
}
.page-pdf-view .mag-app {
  width: 1200px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  overflow: visible;
}
.page-pdf-view .site-main {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  overflow: visible;
}
.page-pdf-view .site-footer {
  flex-shrink: 0;
  margin-top: 12px;
}
.page-pdf-view .site-footer a {
  text-decoration: none;
  color: #2a2a2a;
  font-weight: 500;
}
.page-pdf-view .site-footer a:hover {
  color: #0a0a0a;
}
.page-pdf-view.is-mag-flip {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.page-pdf-view.is-mag-flip .site-main {
  flex: 1;
  min-height: 0;
}
.page-pdf-view.is-mag-flip .mag-app {
  flex: 1;
  min-height: 0;
}
@media (max-width: 900px) {
  .page-pdf-view {
    /* Phones: document can scroll so the footer stays reachable. */
  }
  .page-pdf-view.is-mag-flip {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Let the page bleed to the screen edges; header/footer stay inset. */
  }
  .page-pdf-view.is-mag-flip .site-main {
    flex: 0 0 auto;
    min-height: 0;
    margin-top: 8px;
  }
  .page-pdf-view.is-mag-flip .mag-app {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    margin: 0;
    height: auto;
    min-height: 0;
  }
}
.page-pdf-view.is-mag-scroll {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
}
.page-pdf-view.is-mag-scroll .site-main {
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  overflow: visible;
}
.page-pdf-view.is-mag-scroll .mag-app {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  overflow: visible;
}
/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid #0a0a0a;
  border-radius: 99px;
  background: #0a0a0a;
  color: #ffffff;
  font: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
  color: #ffffff;
}
.btn--ghost {
  background: transparent;
  color: #0a0a0a;
}
.btn--ghost:hover {
  background: #f7f7f7;
  color: #0a0a0a;
}
.btn--sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}
.btn--block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/* —— Home —— */
.page-splash .site-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.splash {
  text-align: center;
  width: 100%;
}
.splash__brand {
  margin: 0;
  font-family: "Outfit", Helvetica, Arial, sans-serif;
  font-size: clamp(5rem, 22vw, 14rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: #0a0a0a;
}
.page-home {
  /* Sticky header ≈ 12px top + header height */
}
.page-home .site-main {
  overflow: clip;
}
.page-home .home-section[id] {
  scroll-margin-top: 4.5rem;
}
.page-home .site-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.home-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.home-section {
  padding: 3.75rem 0;
}
.home-section + .home-section {
  border-top: 1px solid #efefef;
}
.home-section__header {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}
.home-section__header h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  margin-bottom: 0.65rem;
}
.home-section__header--narrow {
  max-width: 36rem;
}
.home-section__cta {
  margin-top: 1.75rem;
}
.home-section__aside {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}
.home-brand {
  margin: 0 0 0.75rem;
  font-size: clamp(2.75rem, 9vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: #0a0a0a;
}
.home-hero {
  padding: 6rem 0 2.5rem;
}
.home-hero__copy {
  max-width: 1120px;
  border-bottom: 1px solid;
  padding-bottom: 70px;
}
.home-hero h1 {
  max-width: 22ch;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.home-hero__lede {
  max-width: 36rem;
  margin-bottom: 0;
}
.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}
.home-hero__note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
}
/* Device frames */
.device {
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(50, 50, 49, 0.05), 0 18px 40px rgba(50, 50, 49, 0.08);
  overflow: hidden;
}
.device__chrome {
  display: flex;
  gap: 5px;
  padding: 0.55rem 0.75rem;
  background: #f7f7f7;
  border-bottom: 1px solid #e2e2e2;
}
.device__chrome span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e2e2e2;
}
.device--phone {
  border-radius: 18px;
  padding: 0.55rem 0.4rem 0.7rem;
  background: #0a0a0a;
}
.device--phone .device__notch {
  width: 36%;
  height: 8px;
  margin: 0 auto 0.45rem;
  border-radius: 99px;
  background: #2a2a2a;
}
.device--phone .mock-site {
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  min-height: 220px;
}
.device--phone-sm .mock-site {
  min-height: 160px;
}
.device--pdf {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.device--sm {
  border-radius: 6px;
}
.device--laptop {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.device--laptop .device__screen {
  border: 1px solid #e2e2e2;
  border-radius: 8px 8px 2px 2px;
  background: #ffffff;
  padding: 0.85rem;
  box-shadow: 0 12px 32px rgba(50, 50, 49, 0.1);
}
.device--laptop .device__base {
  height: 10px;
  margin: 0 auto;
  width: 108%;
  margin-left: -4%;
  border-radius: 0 0 8px 8px;
  background: #efefef;
  border: 1px solid #e2e2e2;
  border-top: 0;
}
/* Architecture site / PDF mock surfaces */
.mock-site {
  background: #ffffff;
  padding: 0.75rem;
}
.mock-site__nav {
  height: 6px;
  width: 42%;
  background: #e2e2e2;
  margin-bottom: 0.75rem;
}
.mock-site__hero-img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e2e2e2 0%, #efefef 42%, #9a9a9a 42.5%, #e2e2e2 70%, #efefef 100%);
  margin-bottom: 0.55rem;
}
.mock-site__hero-img--wide {
  aspect-ratio: 21 / 9;
}
.mock-site__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.mock-site__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.mock-site__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.4rem;
}
.mock-site__cell {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #efefef, #e2e2e2 55%, #9a9a9a);
}
.mock-site__cell--tall {
  aspect-ratio: 3 / 4;
  min-height: 100%;
}
.mock-site__lines {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.2rem 0;
}
.mock-site__lines span {
  display: block;
  height: 4px;
  background: #e2e2e2;
  width: 100%;
}
.mock-site__lines span:nth-child(2) {
  width: 78%;
}
.mock-site__lines span:nth-child(3) {
  width: 54%;
}
.mock-site__split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.55rem;
  align-items: stretch;
}
.mock-site__stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.mock-site__mast {
  padding: 0.85rem 0 1rem;
}
.mock-site__mast span {
  display: block;
  height: 10px;
  width: 36%;
  background: #0a0a0a;
}
.mock-site__word {
  display: block;
  height: 8px;
  width: 70%;
  background: #0a0a0a;
  margin-bottom: 0.35rem;
}
.mock-site--a .mock-site__hero-img {
  background: linear-gradient(120deg, #2a2a2a 0%, #9a9a9a 28%, #efefef 28.2%, #e2e2e2 100%);
}
.mock-site--b .mock-site__hero-img {
  background: linear-gradient(200deg, #efefef 20%, #5c5c5c 20.2% 48%, #e2e2e2 48.2%);
}
.mock-site--c .mock-site__cell--tall {
  background: linear-gradient(15deg, #2a2a2a, #9a9a9a 60%, #efefef);
}
.mock-site--d .mock-site__hero-img {
  background: linear-gradient(90deg, #e2e2e2 50%, #5c5c5c 50%);
}
.mock-site--e .mock-site__cell:nth-child(2) {
  background: #2a2a2a;
}
.mock-site--mobile {
  padding: 0.55rem;
  min-height: inherit;
}
.mock-site--mobile .mock-site__hero-img {
  aspect-ratio: 1 / 1.05;
}
.mock-site--project {
  padding: 0.5rem;
}
.mock-site--style-a {
  padding: 0.65rem;
}
.mock-site--style-a .mock-site__hero-img {
  aspect-ratio: 16 / 8;
  background: linear-gradient(105deg, #2a2a2a 35%, #e2e2e2 35%);
}
.mock-site--style-b {
  padding: 0.65rem;
  min-height: 150px;
}
.mock-site--style-c {
  padding: 0.65rem;
}
.mock-site--style-c .mock-site__cell:first-child {
  background: #2a2a2a;
}
.mock-site--builder {
  padding: 0.5rem;
}
.mock-pdf {
  background: #ffffff;
  border: 1px solid #e2e2e2;
  box-shadow: 0 10px 28px rgba(50, 50, 49, 0.1);
  aspect-ratio: 210 / 297;
  padding: 8%;
}
.mock-pdf__cover {
  height: 100%;
  background: linear-gradient(160deg, #efefef 0 38%, #2a2a2a 38% 62%, #e2e2e2 62%);
}
.mock-pdf__cover--b {
  background: linear-gradient(20deg, #2a2a2a 0 45%, #efefef 45%);
}
.mock-pdf__cover--c {
  background: linear-gradient(135deg, #e2e2e2, #5c5c5c);
}
.mock-pdf__meta {
  display: none;
}
.mock-pdf--spread {
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.45rem;
  background: #f7f7f7;
}
.mock-pdf__page {
  min-height: 140px;
  background: #ffffff;
  border: 1px solid #e2e2e2;
  padding: 0.55rem;
}
.mock-pdf__page--alt {
  background: linear-gradient(180deg, #efefef, #ffffff 40%);
}
.mock-pdf__page--photo {
  background: linear-gradient(145deg, #9a9a9a, #efefef 48%, #2a2a2a 48.2%);
  padding: 0;
}
.mock-pdf__lines {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.mock-pdf__lines span {
  height: 3px;
  background: #e2e2e2;
  width: 100%;
}
.mock-pdf__lines span:nth-child(2) {
  width: 85%;
}
.mock-pdf__lines span:nth-child(3) {
  width: 70%;
}
.mock-pdf__lines span:nth-child(4) {
  width: 55%;
}
.mock-pdf--compact {
  aspect-ratio: 210 / 260;
  max-width: 120px;
}
.mock-pdf--viewer {
  aspect-ratio: 210 / 280;
  max-width: 160px;
  margin: 0 auto;
}
.mock-pdf--editor .mock-pdf__page {
  min-height: 220px;
}
/* Examples */
.home-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}
.home-filters__btn {
  appearance: none;
  border: 1px solid #e2e2e2;
  background: #ffffff;
  color: #5c5c5c;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem;
  border-radius: 99px;
  cursor: pointer;
}
.home-filters__btn:hover {
  border-color: #9a9a9a;
  color: #0a0a0a;
}
.home-filters__btn.is-active {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #ffffff;
}
.examples-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}
.example {
  position: relative;
  min-width: 0;
}
.example.is-hidden {
  display: none;
}
.example__preview {
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  overflow: hidden;
  background: #ffffff;
  aspect-ratio: 4 / 3;
}
.example__preview .mock-site {
  height: 100%;
  min-height: 0;
}
.example__preview .mock-site__split {
  height: 100%;
}
.example__preview .mock-site__cell--tall {
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
}
.example__preview--pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  background: #f7f7f7;
}
.example__preview--pdf .mock-pdf--spread {
  width: 100%;
  box-shadow: 0 6px 18px rgba(50, 50, 49, 0.08);
}
.example__preview--pdf .mock-pdf--spread .mock-pdf__page {
  min-height: 110px;
}
.example__meta {
  margin-top: 0.85rem;
}
.example__name {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
}
.example__type {
  margin: 0;
  font-size: 0.85rem;
}
.example__hover {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.55rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.example__hover a {
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.example:hover .example__hover,
.example:focus-within .example__hover {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
/* Core value */
.home-value,
.home-final-cta {
  background-color: #1f1f1f;
  width: calc(100% - 40px);
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 20px;
  border-top: 0 !important;
  border-bottom: 0 !important;
  color: #ffffff;
}
.home-value h2,
.home-final-cta h2,
.home-value h3,
.home-final-cta h3 {
  color: #ffffff;
}
.home-value .lede,
.home-final-cta .lede {
  color: #e2e2e2;
}
.home-value .muted,
.home-final-cta .muted {
  color: #9a9a9a;
}
.home-value .btn--ghost,
.home-final-cta .btn--ghost {
  color: #ffffff;
  border-color: #9a9a9a;
}
.home-value .btn--ghost:hover,
.home-final-cta .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: #ffffff;
}
.home-value .btn:not(.btn--ghost),
.home-final-cta .btn:not(.btn--ghost) {
  background: #ffffff;
  border-color: #ffffff;
  color: #0a0a0a;
}
.home-value .btn:not(.btn--ghost):hover,
.home-final-cta .btn:not(.btn--ghost):hover {
  background: #efefef;
  border-color: #efefef;
  color: #0a0a0a;
}
.home-value__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.home-value__copy h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
}
.value-diagram {
  display: grid;
  gap: 1.5rem;
  color: #0a0a0a;
}
.value-diagram__source {
  border: 1px solid #e2e2e2;
  background: #ffffff;
  padding: 1.15rem;
  border-radius: 3px;
}
.value-diagram__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 0.85rem;
}
.value-diagram__projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.value-diagram__project {
  aspect-ratio: 1;
  background: linear-gradient(145deg, #efefef, #9a9a9a);
  border: 1px solid #e2e2e2;
}
.value-diagram__branches {
  display: grid;
  gap: 0.55rem;
  position: relative;
  padding-left: 1.25rem;
}
.value-diagram__branches::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: #e2e2e2;
}
.value-diagram__out {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 500;
}
.value-diagram__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0a0a0a;
  flex-shrink: 0;
}
/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.steps__item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.steps__num {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 0.4rem;
}
.steps__copy h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.steps__copy p {
  margin: 0;
  color: #2a2a2a;
  font-size: 0.95rem;
}
.ui-shot {
  border: 1px solid #e2e2e2;
  background: #ffffff;
  border-radius: 3px;
  overflow: hidden;
  min-height: 160px;
}
.ui-shot--library {
  display: grid;
  grid-template-columns: 56px 1fr;
  min-height: 170px;
}
.ui-shot__sidebar {
  background: #f7f7f7;
  border-right: 1px solid #e2e2e2;
}
.ui-shot__main {
  padding: 0.85rem;
}
.ui-shot__toolbar {
  height: 10px;
  width: 40%;
  background: #e2e2e2;
  margin-bottom: 0.85rem;
}
.ui-shot__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.ui-shot__card {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #efefef, #9a9a9a);
  border: 1px solid #e2e2e2;
}
.ui-shot--builder {
  display: grid;
  grid-template-columns: 1fr 72px;
  min-height: 170px;
}
.ui-shot__canvas {
  padding: 0.75rem;
  background: #f7f7f7;
}
.ui-shot__blocks {
  border-left: 1px solid #e2e2e2;
  padding: 0.75rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: #ffffff;
}
.ui-shot__blocks span {
  height: 28px;
  border: 1px dashed #e2e2e2;
  border-radius: 3px;
  background: #f7f7f7;
}
.ui-shot--variants {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  min-height: 170px;
}
.ui-shot__list {
  padding: 0.85rem;
  border-right: 1px solid #e2e2e2;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ui-shot__row {
  height: 28px;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #f7f7f7;
}
.ui-shot__row.is-on {
  background: #0a0a0a;
  border-color: #0a0a0a;
  opacity: 0.85;
}
.ui-shot__preview {
  background: linear-gradient(150deg, #e2e2e2 0 40%, #2a2a2a 40% 62%, #efefef 62%);
}
.ui-shot--share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #f7f7f7;
}
.ui-shot__url {
  flex: 1;
  max-width: 220px;
  height: 36px;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
}
.ui-shot__url span {
  display: block;
  height: 6px;
  width: 70%;
  background: #e2e2e2;
}
/* Website builder compare */
.block-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.block-list li {
  padding: 0.45rem 0.85rem;
  border: 1px solid #e2e2e2;
  border-radius: 99px;
  font-size: 0.88rem;
  color: #2a2a2a;
}
.style-compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.style-compare__item {
  margin: 0;
}
.style-compare__item figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #5c5c5c;
}
/* Portfolio variants */
.home-variants__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}
.home-variants__copy h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
}
.feature-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.feature-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.1rem;
  border-bottom: 1px solid #efefef;
  font-size: 0.95rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0a0a0a;
}
.variants-diagram {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1rem;
  align-items: stretch;
}
.variants-diagram__library,
.variants-diagram__version {
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #ffffff;
  padding: 1rem;
}
.variants-diagram__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 0.85rem;
}
.variants-diagram__items {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.variants-diagram__item {
  height: 42px;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #f7f7f7;
}
.variants-diagram__item[data-id="a"] {
  background: linear-gradient(90deg, #2a2a2a 30%, #efefef 30%);
}
.variants-diagram__item[data-id="b"] {
  background: linear-gradient(90deg, #9a9a9a 45%, #efefef 45%);
}
.variants-diagram__item[data-id="c"] {
  background: linear-gradient(90deg, #e2e2e2 20%, #5c5c5c 20%);
}
.variants-diagram__item[data-id="d"] {
  background: linear-gradient(135deg, #efefef, #9a9a9a);
}
.variants-diagram__item[data-id="e"] {
  background: linear-gradient(90deg, #5c5c5c 55%, #e2e2e2 55%);
}
.variants-diagram__versions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.variants-diagram__version strong {
  display: block;
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
}
.variants-diagram__chips {
  display: flex;
  gap: 0.35rem;
}
.variants-diagram__chips span {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  border: 1px solid #e2e2e2;
}
.variants-diagram__chips span[data-id="a"] {
  background: #2a2a2a;
}
.variants-diagram__chips span[data-id="b"] {
  background: #9a9a9a;
}
.variants-diagram__chips span[data-id="c"] {
  background: #5c5c5c;
}
.variants-diagram__chips span[data-id="d"] {
  background: #e2e2e2;
}
.variants-diagram__chips span[data-id="e"] {
  background: linear-gradient(135deg, #5c5c5c, #efefef);
}
/* PDF feature */
.pdf-feature {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.5rem;
  align-items: end;
  margin-top: 1.75rem;
}
.pdf-feature__editor {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.85rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #f7f7f7;
}
.pdf-feature__thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.pdf-feature__thumb {
  flex: 1;
  min-height: 48px;
  border: 1px solid #e2e2e2;
  background: #ffffff;
  border-radius: 3px;
}
.pdf-feature__thumb.is-active {
  border-color: #0a0a0a;
  box-shadow: inset 0 0 0 1px #0a0a0a;
}
.pdf-feature__output {
  text-align: center;
}
.pdf-feature__output p {
  margin: 1rem 0 0;
  font-size: 0.85rem;
}
/* Audiences */
.audiences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.audiences__col {
  padding: 1.75rem 1.5rem;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #ffffff;
}
.audiences__col h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.audiences__col .feature-list {
  margin-bottom: 0;
}
/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
  max-width: 820px;
}
.pricing-plan {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  padding: 1.5rem 1.35rem 1.35rem;
  background: #ffffff;
  min-width: 0;
}
.pricing-plan--featured {
  border-color: #0a0a0a;
  box-shadow: 0 1px 2px rgba(50, 50, 49, 0.05), 0 12px 32px rgba(50, 50, 49, 0.08);
}
.pricing-plan__badge {
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5c5c5c;
}
.pricing-plan__name {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}
.pricing-plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
}
.pricing-plan__amount {
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.pricing-plan__period {
  font-size: 0.9rem;
}
.pricing-plan__desc {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
}
.pricing-plan .feature-list {
  margin: 0 0 1.35rem;
  flex: 1;
}
.pricing-plan .btn {
  margin-top: auto;
}
.pricing-plan__note {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  text-align: center;
}
.pricing-student {
  margin: 1.75rem 0 0;
  max-width: 820px;
  font-size: 0.95rem;
  color: #2a2a2a;
}
.pricing-student strong {
  font-weight: 500;
  color: #0a0a0a;
}
.pricing-student a {
  margin-left: 0.25rem;
}
/* Final CTA */
.home-final-cta__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.home-final-cta__copy h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  max-width: 16ch;
}
.home-final-cta__visual {
  position: relative;
  min-height: 200px;
}
.home-final-cta__visual .device--desktop {
  width: 78%;
}
.home-final-cta__visual .device--pdf {
  position: absolute;
  width: 28%;
  right: 18%;
  bottom: 8%;
  transform: rotate(5deg);
  z-index: 2;
}
.home-final-cta__visual .device--phone {
  position: absolute;
  width: 24%;
  right: 0;
  bottom: 0;
  z-index: 3;
}
/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media (max-width: 900px) {
  .home-value__grid,
  .home-variants__grid,
  .pdf-feature,
  .home-final-cta__inner,
  .audiences,
  .style-compare,
  .variants-diagram,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .examples-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    gap: 1.15rem;
  }
  .ui-shot--builder,
  .ui-shot--variants,
  .ui-shot--library {
    grid-template-columns: 1fr;
  }
  .ui-shot__sidebar,
  .ui-shot__blocks {
    display: none;
  }
  .pdf-feature__editor {
    grid-template-columns: 56px 1fr;
  }
}
@media (max-width: 640px) {
  .home-section {
    padding: 2.75rem 0;
  }
  .home-brand {
    font-size: clamp(2.5rem, 14vw, 3.5rem);
  }
  .home-hero {
    padding: 2rem 0 1.75rem;
  }
  .examples-gallery,
  .steps {
    grid-template-columns: 1fr;
  }
  .example__hover {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .home-final-cta__visual {
    min-height: 180px;
  }
}
/* —— Auth —— */
.page-auth .site-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
}
.page-404 .site-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}
.auth-panel {
  width: 100%;
  max-width: 420px;
}
.auth-panel__footer {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: #9a9a9a;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e2e2;
}
.form--compact {
  margin-top: 0.75rem;
}
.btn--oauth {
  margin-top: 1.25rem;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field .field__label {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5c5c5c;
}
.field .field__hint {
  font-size: 0.8rem;
  color: #9a9a9a;
}
input {
  min-height: 45px;
}
select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #ffffff;
  color: #0a0a0a;
  font: inherit;
}
select:focus {
  outline: none;
  border-color: #0a0a0a;
}
.field--checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}
.field--checkbox input {
  width: auto;
}
/* iOS-style switch — label left, pill right. Replaces boolean checkboxes. */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}
.switch--row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.switch__label {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  color: #0a0a0a;
}
.switch__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.switch__track {
  flex-shrink: 0;
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #e5e5ea;
  transition: background 0.2s ease;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28), 0 1px 1px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}
.switch__input:checked + .switch__track {
  background: #007aff;
}
.switch__input:checked + .switch__track::after {
  transform: translateX(14px);
}
.switch__input:focus-visible + .switch__track {
  outline: 2px solid #0a0a0a;
  outline-offset: 2px;
}
.switch__input:disabled + .switch__track {
  opacity: 0.45;
  cursor: not-allowed;
}
.field--switch {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field--switch > .switch {
  width: 100%;
}
.upload-dropzone {
  margin-top: 1.25rem;
  border: 1px dashed #e2e2e2;
  border-radius: 3px;
  padding: 2rem 1.25rem;
  text-align: center;
  cursor: pointer;
  background: #f7f7f7;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.upload-dropzone:hover,
.upload-dropzone.is-dragover {
  border-color: #0a0a0a;
  background: #ffffff;
}
.upload-dropzone__label {
  margin: 0;
  font-weight: 500;
}
.upload-dropzone__meta {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
}
.upload-progress {
  margin-top: 1rem;
}
.upload-progress__track {
  height: 3px;
  background: #e2e2e2;
  border-radius: 3px;
  overflow: hidden;
}
.upload-progress__bar {
  height: 100%;
  width: 0;
  background: #0a0a0a;
  transition: width 0.15s ease;
}
.upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.pdf-uploader__alert {
  margin: 0 0 1rem;
}
.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9rem;
}
.data-table th,
.data-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e2e2e2;
  vertical-align: middle;
}
.data-table th {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9a9a;
  font-weight: 500;
}
.data-table tbody tr:hover td {
  background: #f7f7f7;
}
.data-table--pdfs .col-cover {
  width: 64px;
}
.data-table--pdfs .col-title {
  width: auto;
}
.data-table--pdfs .col-pages {
  width: 72px;
}
.data-table--pdfs .col-size {
  width: 88px;
}
.data-table--pdfs .col-visibility {
  width: 100px;
}
.data-table--pdfs .col-download {
  width: 88px;
}
.data-table--pdfs .col-actions {
  width: 200px;
}
.data-table__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdf-thumb {
  display: block;
  width: 40px;
  height: 52px;
  overflow: hidden;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #f7f7f7;
}
.pdf-thumb img {
  display: block;
  width: 40px;
  height: 52px;
  max-width: 40px;
  max-height: 52px;
  object-fit: cover;
}
.pdf-thumb__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.8rem;
}
.data-table__actions {
  white-space: nowrap;
  font-size: 0.85rem;
}
.data-table__actions a,
.data-table__actions .text-action {
  margin-right: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  color: #0a0a0a;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.data-table__actions a:last-child,
.data-table__actions .inline-form:last-child .text-action {
  margin-right: 0;
}
.inline-form {
  display: inline;
  margin: 0;
}
.pdf-edit-cover {
  display: block;
  width: 96px;
  height: auto;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  margin: 0 0 1.25rem;
}
/* —— Flash —— */
.flash {
  padding: 0.75rem 1rem;
  border-radius: 3px;
  border: 1px solid #e2e2e2;
  background: #f7f7f7;
  font-size: 0.9rem;
  margin: 1rem 1.5rem 0;
}
.flash--error {
  border-color: #2a2a2a;
  background: #f7f7f7;
}
.flash--success {
  border-color: #e2e2e2;
}
.auth-panel .flash,
.dashboard-main > .flash {
  margin: 0 0 1rem;
}
/* —— Dashboard —— */
.dashboard {
  min-height: 100vh;
  background: #f7f7f7;
}
.dashboard-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.dashboard-sidebar {
  background-color: #ffffff;
  border: 1px solid #e2e2e2;
  margin: 20px 0 20px 20px;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(50, 50, 49, 0.06), 0 8px 28px rgba(50, 50, 49, 0.1);
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  align-self: start;
}
.dashboard-sidebar__brand {
  padding: 0 0.65rem 1.25rem;
}
.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.dashboard-nav__section {
  margin: 1.25rem 0.5rem 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9a9a;
}
/* Expandable top-level item (Website). Collapsed, the summary matches a link. */
.dashboard-nav__tree {
  margin: 0;
}
.dashboard-nav__summary {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 3px;
  color: #2a2a2a;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
  /* Outline chevron, pinned to the far right */
}
.dashboard-nav__summary::-webkit-details-marker,
.dashboard-nav__summary::marker {
  display: none;
  content: "";
}
.dashboard-nav__summary::after {
  content: "";
  flex-shrink: 0;
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #9a9a9a;
  border-bottom: 1.5px solid #9a9a9a;
  background: transparent;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.dashboard-nav__summary:hover {
  background: #efefef;
  color: #0a0a0a;
}
.dashboard-nav__summary.is-current {
  font-weight: 500;
}
.dashboard-nav__tree[open] > .dashboard-nav__summary::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}
.dashboard-nav__summary-label {
  min-width: 0;
}
.dashboard-nav__children {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0.1rem 0 0.35rem;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}
.dashboard-nav__children .dashboard-nav__link {
  font-size: 0.88rem;
  padding: 0.45rem 0.65rem 0.45rem 1.15rem;
}
.dashboard-nav__link {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 3px;
  text-decoration: none;
  color: #2a2a2a;
  font-size: 0.92rem;
}
.dashboard-nav__link:hover {
  background: #efefef;
  color: #0a0a0a;
}
.dashboard-nav__link.is-active {
  background: #0a0a0a;
  color: #ffffff;
}
.dashboard-act {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0.35rem 0 0;
  padding: 0.15rem 0.3rem 0.35rem;
  flex: 1 1 100%;
}
.dashboard-act__label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.dashboard-act select {
  font: inherit;
  font-size: 0.88rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.55rem;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #ffffff;
  color: #2a2a2a;
  cursor: pointer;
}
.dashboard-act select:hover,
.dashboard-act select:focus {
  border-color: #9a9a9a;
  outline: none;
}
.dashboard-act--acting select {
  border-color: #2a2a2a;
}
.dashboard-sidebar__footer {
  padding: 1rem 0.35rem 0;
  border-top: 1px solid #e2e2e2;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.dashboard-lang {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0 0.3rem 0.15rem;
}
.dashboard-lang__label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.dashboard-lang select {
  font: inherit;
  font-size: 0.88rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.55rem;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #ffffff;
  color: #2a2a2a;
  cursor: pointer;
}
.dashboard-lang select:hover,
.dashboard-lang select:focus {
  border-color: #9a9a9a;
  outline: none;
}
.user-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0 0.3rem;
}
.user-chip__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.user-chip__name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-chip__meta {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
}
.user-menu {
  position: relative;
  flex-shrink: 0;
}
.user-menu__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5c5c5c;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  line-height: 1;
  cursor: pointer;
  list-style: none;
  /* Kill any default disclosure glyph; dots only */
}
.user-menu__toggle::-webkit-details-marker,
.user-menu__toggle::marker {
  display: none;
  content: "";
}
.user-menu__toggle::before,
.user-menu__toggle::after {
  content: none;
  display: none;
}
.user-menu__toggle:hover {
  background: #efefef;
  color: #0a0a0a;
}
.user-menu[open] > .user-menu__toggle {
  background: #efefef;
  color: #0a0a0a;
}
.user-menu__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 20;
  min-width: 180px;
  padding: 0.45rem;
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  box-shadow: 0 2px 4px rgba(50, 50, 49, 0.06), 0 12px 32px rgba(50, 50, 49, 0.14);
  /* Small bubble tip pointing at the dots */
}
.user-menu__panel::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-right: 1px solid #e2e2e2;
  border-bottom: 1px solid #e2e2e2;
  transform: rotate(45deg);
}
.user-menu__link {
  display: block;
  position: relative;
  z-index: 1;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: #2a2a2a;
  font-size: 0.9rem;
}
.user-menu__link:hover {
  background: #efefef;
}
.user-menu__link.is-active {
  font-weight: 500;
}
.dashboard-main {
  padding: 1.75rem 2rem 3rem;
  min-width: 0;
}
.dashboard-main--flush {
  padding-top: 1.25rem;
}
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.dashboard-header__title {
  margin: 0;
  font-size: 1.5rem;
}
.dashboard-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
/* Generic disclosure dropdown used for Create new, etc. */
.menu-dropdown {
  position: relative;
}
.menu-dropdown__toggle {
  list-style: none;
  cursor: pointer;
}
.menu-dropdown__toggle::-webkit-details-marker {
  display: none;
}
.menu-dropdown__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 200px;
  padding: 0.35rem;
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(50, 50, 49, 0.06), 0 8px 28px rgba(50, 50, 49, 0.12);
}
.menu-dropdown--start .menu-dropdown__panel {
  left: 0;
  right: auto;
}
.menu-dropdown__item {
  display: block;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #2a2a2a;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.menu-dropdown__item:hover {
  background: #efefef;
}
.menu-dropdown__hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #5c5c5c;
}
.panel {
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
  background: #ffffff;
}
.panel__title {
  margin-bottom: 0.5rem;
}
/* —— Website pages list —— */
.page-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.page-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid #e2e2e2;
}
.page-list__item .muted {
  margin-left: 0.5rem;
  font-size: 0.85rem;
}
.page-list__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0;
  min-width: 0;
  flex: 1 1 auto;
}
.page-list__title {
  font: inherit;
  font-weight: 600;
  border: 0;
  background: transparent;
  padding: 0.15rem 0.25rem 0.15rem 0;
  margin: 0;
  min-width: 8rem;
  max-width: 100%;
  color: inherit;
}
.page-list__title:focus {
  outline: 1px solid #9a9a9a;
  outline-offset: 2px;
  background: #fff;
}
.page-list__actions {
  display: flex;
  gap: 0.5rem;
}
.page-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.page-form input[type="text"],
.page-form select {
  flex: 1 1 180px;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  font: inherit;
}
/* —— Design system page ——
 *
 * Two columns: controls that scroll, and a specimen that does not. The specimen
 * is the reason this page exists rather than a plain settings form — a type
 * scale or a muted grey is judged against real content or not at all.
 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.scope-note {
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
  border-left: 3px solid #0a0a0a;
  background: #f7f7f7;
  font-size: 0.9rem;
  line-height: 1.5;
}
.scope-note strong {
  display: block;
}
/* Design system library */
.ds-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.ds-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #ffffff;
  overflow: hidden;
}
.ds-card.is-active {
  border-color: #0a0a0a;
}
.ds-card__preview {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1rem 1rem 0.85rem;
  background: #f7f7f7;
  border-bottom: 1px solid #e2e2e2;
}
.ds-card__swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  height: 72px;
  margin-bottom: 0.75rem;
}
.ds-card__swatch {
  display: block;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.ds-card__fonts {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  min-height: 2.6em;
}
.ds-card__font-heading {
  font-size: 1.15rem;
  line-height: 1.2;
}
.ds-card__font-body {
  font-size: 0.9rem;
  color: #5c5c5c;
}
.font-face-label {
  display: block;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.35;
}
.font-face-label__sep {
  font-family: inherit;
  font-weight: 400;
  color: #9a9a9a;
}
.ds-card__body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.ds-card__title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.ds-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ds-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.theme-badge {
  margin-left: 0;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  background: #0a0a0a;
  color: #ffffff;
  font-size: 0.7rem;
  flex-shrink: 0;
}
/* Create design system modal */
.ds-modal {
  width: 640px;
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(50, 50, 49, 0.06), 0 16px 40px rgba(50, 50, 49, 0.16);
}
.ds-modal::backdrop {
  background: rgba(10, 10, 10, 0.35);
}
.ds-modal__panel {
  margin: 0;
  padding: 0;
}
.ds-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #e2e2e2;
}
.ds-modal__title {
  margin: 0;
  font-size: 1.1rem;
}
.ds-modal__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: #5c5c5c;
  cursor: pointer;
}
.ds-modal__close:hover {
  background: #efefef;
  color: #0a0a0a;
}
.ds-modal__step {
  padding: 1rem 1.15rem 1.25rem;
  overflow: auto;
  max-height: calc(100vh - 8rem);
}
.ds-modal__choices {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}
.ds-choice {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #ffffff;
  font: inherit;
  cursor: pointer;
}
.ds-choice strong {
  display: block;
  margin-bottom: 0.25rem;
}
.ds-choice span {
  display: block;
  font-size: 0.85rem;
  color: #5c5c5c;
  line-height: 1.4;
}
.ds-choice:hover {
  border-color: #0a0a0a;
}
.ds-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e2e2;
}
.preset-card--radio.is-selected {
  border-color: #0a0a0a;
  box-shadow: inset 0 0 0 1px #0a0a0a;
}
.theme-group__title {
  margin: 1.25rem 0 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c5c5c;
}
.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
}
.preset-card {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #ffffff;
  font: inherit;
  cursor: pointer;
}
.preset-card span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: #5c5c5c;
  line-height: 1.4;
}
.preset-card:hover {
  border-color: #0a0a0a;
}
.colour-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.colour-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: #5c5c5c;
}
.colour-field input[type="color"] {
  width: 56px;
  height: 32px;
  padding: 0;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: none;
  cursor: pointer;
}
.scale-table {
  margin-top: 1rem;
}
.scale-table__head,
.scale-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 90px;
  gap: 0.5rem;
  align-items: center;
}
.scale-table__head {
  padding-bottom: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.scale-row {
  padding: 0.35rem 0;
  border-top: 1px solid #e2e2e2;
}
.scale-row input {
  padding: 0.4rem 0.5rem;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  font: inherit;
  font-size: 0.85rem;
}
.scale-row__name {
  font-size: 0.9rem;
}
.theme-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.theme-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: #5c5c5c;
}
.theme-field input,
.theme-field select {
  padding: 0.5rem 0.6rem;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  font: inherit;
  font-size: 0.9rem;
  color: #0a0a0a;
}
.theme-field--check {
  grid-column: 1 / -1;
  /* Structure rule uses the switch component; don't inherit text-field chrome. */
}
.theme-field--check.theme-field--switch {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.theme-field--check.theme-field--switch .switch__input {
  min-height: 0;
  padding: 0;
  border: 0;
}
.theme-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  padding: 0.6rem 1rem;
  border-radius: 99px;
  background: #0a0a0a;
  color: #ffffff;
  font-size: 0.85rem;
  z-index: 40;
}
.theme-toast.is-error {
  background: #a3262a;
}
.grid--2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.card-link {
  display: block;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  background: #ffffff;
  transition: border-color 0.15s ease;
}
.card-link:hover {
  border-color: #0a0a0a;
  color: #0a0a0a;
}
.card-link p {
  margin: 0;
}
.meta-list {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.85rem;
}
.meta-list dt {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin: 0 0 0.15rem;
}
.meta-list dd {
  margin: 0;
}
.api-keys__meta {
  margin-top: 1.25rem;
}
.api-keys__copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.api-keys__copy-row code {
  display: block;
  flex: 1 1 12rem;
  padding: 0.45rem 0.6rem;
  overflow-wrap: anywhere;
  word-break: break-all;
  background: #f7f7f7;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  font-size: 0.82rem;
}
.api-keys__steps {
  margin: 0 0 1.25rem 1.15rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.api-keys__reveal {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #6a9a6a;
  border-radius: 3px;
  color: #2a5a2a;
}
.api-keys__reveal p {
  margin: 0 0 0.65rem;
}
.api-keys__create {
  margin: 0 0 1rem;
}
.users-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.users-toolbar input[type="search"] {
  flex: 1;
  min-width: 12rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  font: inherit;
}
.users-toolbar__note {
  margin: -0.5rem 0 1rem;
}
.data-table--users {
  table-layout: auto;
}
.stats-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 1rem;
}
.stats-grid__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #e2e2e2;
}
.stats-grid__value {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.stats-grid__label {
  font-size: 0.8rem;
}
/* —— Projects library —— */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  font-size: 0.68rem;
  color: #5c5c5c;
  background: #ffffff;
  white-space: nowrap;
}
.chip--on {
  border-color: #0a0a0a;
  color: #0a0a0a;
  font-weight: 500;
}
.chip--accent {
  border-color: #0a0a0a;
  background: #0a0a0a;
  color: #ffffff;
}
.chip--access-paid {
  border-color: #0a0a0a;
  color: #0a0a0a;
  font-weight: 500;
}
.chip--access-complimentary {
  border-color: #0a0a0a;
  background: #0a0a0a;
  color: #ffffff;
}
.chip--layout {
  cursor: pointer;
}
.projects-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.projects-select-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
  margin-bottom: 0.85rem;
  min-height: 2rem;
}
.projects-select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}
.projects-select-all input {
  margin: 0;
  width: 1rem;
  height: 1rem;
}
.projects-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
}
.projects-bulk select {
  max-width: 10rem;
  font: inherit;
  font-size: 0.85rem;
}
.projects-app__alert,
.project-editor__alert,
.person-editor [data-role="alert"] {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 3px;
  border: 1px solid #e2e2e2;
  background: #ffffff;
}
.projects-app__alert.is-error,
.project-editor__alert.is-error,
.person-editor [data-role="alert"].is-error {
  border-color: #c45c5c;
  color: #8a2a2a;
}
.projects-app__alert.is-ok,
.project-editor__alert.is-ok,
.person-editor [data-role="alert"].is-ok {
  border-color: #6a9a6a;
  color: #2a5a2a;
}
.person-editor__layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 720px) {
  .person-editor__layout {
    grid-template-columns: 1fr;
  }
}
.person-editor__photo-preview {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 3px;
  overflow: hidden;
  background: #efefef;
  border: 1px solid #e2e2e2;
}
.person-editor__photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.person-editor__photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 140px;
  color: #9a9a9a;
  font-size: 0.8rem;
}
.person-editor__photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}
.person-credits {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.person-credits__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 200px);
  gap: 0.65rem;
  align-items: center;
}
@media (max-width: 640px) {
  .person-credits__row {
    grid-template-columns: 1fr;
  }
}
.person-credits__check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}
.person-credits__check input {
  margin-top: 0.2rem;
}
.person-credits__role {
  width: 100%;
}
.project-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.project-card {
  display: grid;
  grid-template-columns: auto 88px minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #ffffff;
}
.project-card.is-dragging {
  opacity: 0.55;
}
.project-card.is-selected {
  border-color: #0a0a0a;
}
.projects-app .project-card {
  grid-template-columns: auto auto 88px minmax(0, 1fr) auto;
}
.project-card__select {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  cursor: pointer;
}
.project-card__select input {
  margin: 0;
  width: 1rem;
  height: 1rem;
}
.project-card__handle {
  appearance: none;
  border: 0;
  background: transparent;
  color: #9a9a9a;
  cursor: grab;
  padding: 0.35rem;
  font-size: 0.85rem;
  line-height: 1;
}
.project-card__cover {
  display: block;
  width: 88px;
  height: 66px;
  border-radius: 4px;
  overflow: hidden;
  background: #efefef;
  text-decoration: none;
}
.project-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-card__cover-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.7rem;
  color: #9a9a9a;
}
.project-card__title {
  display: block;
  font-weight: 500;
  text-decoration: none;
  color: #0a0a0a;
  margin-bottom: 0.2rem;
}
.project-card__meta {
  display: flex;
  gap: 0.55rem;
  font-size: 0.78rem;
  margin-bottom: 0.4rem;
}
.project-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.project-card__chips .menu-dropdown {
  display: inline-block;
}
.project-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}
.project-editor__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.project-editor .project-editor__header {
  display: block;
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f7f7f7;
  padding: 0 0 0.5rem;
  margin: 0 0 0.15rem;
}
.project-editor .project-editor__identity {
  min-width: 0;
  flex: 1;
}
.project-editor .project-editor__title-input {
  max-width: none;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  height: auto;
  margin: 0;
  padding: 0;
}
.project-editor .project-editor__lang-hint {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
}
.project-editor .project-editor__header-actions .btn {
  padding: 0.38rem 0.85rem;
  font-size: 0.82rem;
}
.project-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem 1.25rem;
}
.project-editor__title-input {
  display: block;
  width: 100%;
  max-width: 36rem;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 500;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0.15rem 0;
  margin: 0.35rem 0 0.25rem;
  background: transparent;
}
.project-editor__title-input:focus {
  outline: none;
  border-bottom-color: #e2e2e2;
}
.project-editor__slug-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  line-height: 1.2;
  font-size: 0.78rem;
}
.project-editor__slug-input {
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  height: 1.2em;
  min-height: 0;
  appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0;
  margin: 0;
  min-width: 6rem;
  max-width: 22rem;
  background: transparent;
  color: #0a0a0a;
  vertical-align: baseline;
}
.project-editor__slug-input:focus {
  outline: none;
  border-bottom-color: #e2e2e2;
}
.project-editor__slug-hint {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
}
.project-editor__layout-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.project-editor__header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.btn--publish {
  background: #2a6b3c;
  border-color: #2a6b3c;
  color: #ffffff;
}
.btn--publish:hover {
  background: #245c34;
  border-color: #245c34;
  color: #ffffff;
}
.btn--unpublish {
  background: #9a9a9a;
  border-color: #9a9a9a;
  color: #ffffff;
}
.btn--unpublish:hover {
  background: #5c5c5c;
  border-color: #5c5c5c;
  color: #ffffff;
}
.project-editor__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.25rem;
  font-size: 0.85rem;
  color: #5c5c5c;
}
.project-editor__status select {
  font: inherit;
  font-size: 0.85rem;
  border: 0;
  background: transparent;
  color: #0a0a0a;
  padding: 0.15rem 0;
  cursor: pointer;
}
.project-editor__status select:focus {
  outline: none;
}
.project-editor__status-flag {
  font-weight: 500;
}
.project-editor__status-flag.is-live {
  color: #0a0a0a;
}
.project-editor__status-dot {
  color: #c0c0c0;
}
.project-editor__tabs {
  display: flex;
  gap: 0.25rem;
  margin: 0 0 1rem;
  border-bottom: 1px solid #e2e2e2;
}
.project-editor__tab {
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  color: #5c5c5c;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.project-editor__tab.is-on {
  color: #0a0a0a;
  border-bottom-color: #0a0a0a;
  font-weight: 500;
}
.project-media-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: -0.35rem 0 0.85rem;
  padding: 0 0 0.65rem;
  background: transparent;
}
.project-media-toolbar__view {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}
.project-media-toolbar__size {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}
.project-media-toolbar__size input[type="range"] {
  width: 7rem;
  margin: 0;
  accent-color: #0a0a0a;
  cursor: pointer;
}
.project-media-toolbar__size-mark {
  appearance: none;
  display: block;
  border: 0;
  padding: 0;
  background: #5c5c5c;
  flex-shrink: 0;
  cursor: pointer;
}
.project-media-toolbar__size-mark:hover {
  background: #0a0a0a;
}
.project-media-toolbar__size-mark.is-sm {
  width: 0.45rem;
  height: 0.45rem;
}
.project-media-toolbar__size-mark.is-lg {
  width: 0.75rem;
  height: 0.75rem;
}
.project-media-toolbar__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.8rem;
  color: #5c5c5c;
  cursor: pointer;
}
.seg {
  display: inline-flex;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  overflow: hidden;
  background: #ffffff;
}
.seg__btn {
  appearance: none;
  border: 0;
  border-right: 1px solid #e2e2e2;
  background: transparent;
  padding: 0.28rem 0.7rem;
  font: inherit;
  font-size: 0.78rem;
  color: #5c5c5c;
  cursor: pointer;
}
.seg__btn:last-child {
  border-right: 0;
}
.seg__btn.is-on {
  background: #0a0a0a;
  color: #ffffff;
}
.project-media-bulk {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  font-size: 0.85rem;
  white-space: nowrap;
}
.project-media-bulk [data-role="bulk-count"] {
  white-space: nowrap;
}
.project-media-bulk select {
  max-width: 10rem;
}
.project-media-grid {
  --media-thumb: 208px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--media-thumb), 1fr));
  gap: 0.75rem;
}
.project-media-add {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  border: 1px dashed #e2e2e2;
  border-radius: 3px;
  background: #efefef;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.project-media-add:hover,
.project-media-add.is-drag {
  border-color: #5c5c5c;
  background: #e2e2e2;
}
.project-media-add__pad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  flex: 1;
  aspect-ratio: 4 / 3;
  padding: 0.75rem;
  text-align: center;
  background: transparent;
}
.project-media-add__pad .muted {
  margin: 0;
  font-size: 0.78rem;
}
.project-media-card {
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  padding: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  cursor: grab;
}
.project-media-card:active {
  cursor: grabbing;
}
.project-media-card.is-dragging {
  opacity: 0.5;
}
.project-media-card.is-selected {
  border-color: #0a0a0a;
}
.project-media-card__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #efefef;
  background-image: linear-gradient(45deg, #e2e2e2 25%, transparent 25%), linear-gradient(-45deg, #e2e2e2 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e2e2e2 75%), linear-gradient(-45deg, transparent 75%, #e2e2e2 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
}
.project-media-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.project-media-grid[data-fit="fit"] .project-media-card__thumb img {
  object-fit: contain;
}
.project-media-grid[data-fields="0"] .project-media-card__meta {
  display: none;
}
.project-media-card__check,
.project-media-card__handle,
.project-media-card__delete {
  position: absolute;
  top: 0.35rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  margin: 0;
  padding: 0;
}
.project-media-card__check {
  left: 0.35rem;
  line-height: 0;
  cursor: pointer;
}
.project-media-card__check input {
  margin: 0;
  width: 0.9rem;
  height: 0.9rem;
  accent-color: #0a0a0a;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.project-media-card__handle {
  left: 50%;
  color: #ffffff;
  pointer-events: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 1px #000) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}
.project-media-card__delete {
  right: 0.35rem;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  filter: drop-shadow(0 0 1px #000) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}
.project-media-card__delete svg {
  display: block;
}
.project-media-card__delete:hover {
  color: #ffffff;
}
.project-media-card__cover-badge {
  position: absolute;
  left: 0.4rem;
  bottom: 0.4rem;
  background: #0a0a0a;
  color: #ffffff;
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}
.project-media-card__cover-set {
  position: absolute;
  left: 0.4rem;
  bottom: 0.4rem;
  z-index: 2;
  padding: 0.15rem 0.4rem;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.94);
  color: #0a0a0a;
  font: inherit;
  font-size: 0.68rem;
  cursor: pointer;
  opacity: 0;
}
.project-media-card__cover-set:hover {
  background: #ffffff;
}
.project-media-card:hover .project-media-card__delete,
.project-media-card:focus-within .project-media-card__delete,
.project-media-card:hover .project-media-card__cover-set,
.project-media-card:focus-within .project-media-card__cover-set {
  opacity: 1;
}
@media (hover: none) {
  .project-media-card__delete,
  .project-media-card__cover-set {
    opacity: 1;
  }
}
.project-media-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem 0.55rem 0.55rem;
  cursor: auto;
}
.project-media-card__meta input[type="text"],
.project-media-card__meta select {
  font: inherit;
  font-size: 0.78rem;
  padding: 0.28rem 0.35rem;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  width: 100%;
  background: #ffffff;
}
.project-media-card__meta [data-role="media-credits"],
.project-media-card__meta [data-role="media-alt"] {
  color: #5c5c5c;
}
.project-texts-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0 0 0.65rem;
}
.project-texts-langs__btn {
  appearance: none;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  background: #ffffff;
  color: #5c5c5c;
  cursor: pointer;
}
.project-texts-langs__btn:hover {
  color: #0a0a0a;
}
.project-texts-langs__btn.is-on {
  background: #efefef;
  border-color: #9a9a9a;
  color: #0a0a0a;
  font-weight: 500;
}
.project-texts-langs__hint {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
}
.project-texts-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
  align-items: start;
}
@supports (grid-template-rows: masonry) {
  .project-texts-list {
    grid-template-rows: masonry;
  }
}
.project-texts-add {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11rem;
  margin: 0;
  padding: 1rem;
  cursor: pointer;
  border: 1px dashed #e2e2e2;
  border-radius: 3px;
  background: #efefef;
  color: #5c5c5c;
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.project-texts-add:hover,
.project-texts-add:focus {
  border-color: #5c5c5c;
  background: #e2e2e2;
  color: #0a0a0a;
  outline: none;
}
.project-text-card {
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  break-inside: avoid;
}
.project-text-card textarea,
.project-text-card input[type="text"],
.project-text-card select {
  font: inherit;
  font-size: 0.9rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  width: 100%;
  min-width: 0;
}
.project-text-card textarea {
  resize: vertical;
  field-sizing: content;
  min-height: 8rem;
  max-height: 28rem;
  line-height: 1.45;
  overflow-y: auto;
}
.project-text-card__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.project-text-card__row select {
  flex: 1;
  min-width: 8rem;
  max-width: none;
}
.project-text-card__row .chip,
.project-text-card__row .btn {
  flex-shrink: 0;
}
.project-text-card__actions {
  display: flex;
  gap: 0.35rem;
}
.project-editor__subtitle {
  margin: 1.5rem 0 0.35rem;
  font-size: 1rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}
.form-grid .field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
}
.form-grid .field > span {
  color: #5c5c5c;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.form-grid .field input,
.form-grid .field select,
.form-grid .field textarea {
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  width: 100%;
  min-height: 0;
}
.form-grid .field--full {
  grid-column: 1 / -1;
}
.custom-fields {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.75rem 0;
}
.custom-fields__row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.45rem;
}
.custom-fields__row input {
  font: inherit;
  padding: 0.4rem 0.5rem;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
}
.details-shell {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
}
.details-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  position: sticky;
  top: 1rem;
}
.details-nav__item {
  display: block;
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.3;
  color: #5c5c5c;
}
.details-nav__item:hover {
  color: #0a0a0a;
  background: #efefef;
}
.details-nav__item.is-on {
  color: #0a0a0a;
  background: #efefef;
  font-weight: 500;
}
.details-pane__title {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.details-block__title {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.details-block__sub {
  margin: 1.35rem 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.details-block__lede {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
}
.details-main__footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e2e2;
}
.project-map {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.project-map__search {
  position: relative;
}
.project-map__search input[type="search"] {
  appearance: none;
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  width: 100%;
  min-height: 0;
  background: #ffffff;
}
.project-map__results {
  position: absolute;
  z-index: 1100;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  max-height: 16rem;
  overflow: auto;
}
.project-map__results button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.35;
  color: #0a0a0a;
  cursor: pointer;
}
.project-map__results button:hover,
.project-map__results button:focus {
  background: #efefef;
  outline: none;
}
.project-map__empty {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #5c5c5c;
}
.project-map__canvas {
  height: 260px;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  overflow: hidden;
  background: #efefef;
}
.project-map__canvas .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: inherit;
  background: #efefef;
}
.project-map__hint {
  margin: 0;
  font-size: 0.8rem;
}
.project-editor__footer-actions {
  margin-top: 1.25rem;
}
@media (max-width: 800px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar {
    position: relative;
    top: auto;
    height: auto;
    width: calc(100% - 40px);
    border-bottom: 0;
  }
  .dashboard-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .grid--2 {
    grid-template-columns: 1fr;
  }
  .dashboard-main {
    padding: 1.25rem 1.25rem 2.5rem;
  }
  .project-card {
    grid-template-columns: auto 72px minmax(0, 1fr);
  }
  .projects-app .project-card {
    grid-template-columns: auto auto 72px minmax(0, 1fr);
  }
  .project-card__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .details-shell {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .details-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.2rem;
    padding-bottom: 0.85rem;
    margin-bottom: 0.15rem;
    border-bottom: 1px solid #e2e2e2;
  }
  .custom-fields__row {
    grid-template-columns: 1fr;
  }
}
/* —— Profile editor —— */
.profile-editor__alert {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 3px;
  border: 1px solid #e2e2e2;
  background: #ffffff;
}
.profile-editor__alert.is-error {
  border-color: #c45c5c;
  color: #8a2a2a;
}
.profile-editor__alert.is-ok {
  border-color: #6a9a6a;
  color: #2a5a2a;
}
.site-settings__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.site-settings__alert {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 3px;
  border: 1px solid #e2e2e2;
  background: #ffffff;
}
.site-settings__alert.is-error {
  border-color: #c45c5c;
  color: #8a2a2a;
}
.site-settings__alert.is-ok {
  border-color: #e2e2e2;
  color: #2a2a2a;
}
.site-settings__section {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 500;
}
.site-settings__lede {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
}
.site-settings__default {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 20rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}
.site-settings__default > span {
  color: #5c5c5c;
  font-size: 0.75rem;
}
.site-settings__default select {
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
}
.site-settings__label {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  color: #5c5c5c;
}
.site-settings__langs {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.site-settings__lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
}
.site-settings__add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 28rem;
  margin-bottom: 1.25rem;
}
.site-settings__add select {
  flex: 1;
  min-width: 10rem;
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
}
.site-settings__actions {
  margin-top: 0.5rem;
}
.header-settings__logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.header-settings__nav-fields,
.header-settings__cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}
.header-settings textarea {
  width: 100%;
  min-height: 4.5rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #ffffff;
  color: #0a0a0a;
  font: inherit;
  resize: vertical;
}
.header-settings textarea:focus {
  outline: none;
  border-color: #0a0a0a;
}
.header-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.55rem;
}
.header-choice-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.header-choice-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.header-choice__swatch {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  margin-bottom: 0.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.header-choice {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.header-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.header-choice strong {
  font-size: 0.9rem;
  font-weight: 500;
}
.header-choice.is-selected {
  border-color: #0a0a0a;
  box-shadow: inset 0 0 0 1px #0a0a0a;
}
.header-choice__sketch {
  display: block;
  height: 38px;
  margin-bottom: 0.25rem;
  background: #f7f7f7;
  border: 1px solid #e2e2e2;
  position: relative;
}
.header-choice__sketch::before,
.header-choice__sketch::after {
  content: "";
  position: absolute;
  background: #9a9a9a;
}
.header-choice__sketch--cluster,
.header-choice__sketch--spread,
.header-choice__sketch--pack,
.header-choice__sketch--stack {
  background-color: #f7f7f7;
}
.header-choice__sketch--cluster::before,
.header-choice__sketch--spread::before,
.header-choice__sketch--pack::before,
.header-choice__sketch--stack::before,
.header-choice__sketch--cluster::after,
.header-choice__sketch--spread::after,
.header-choice__sketch--pack::after,
.header-choice__sketch--stack::after {
  content: none;
}
.header-choice__sketch--cluster {
  background-image: linear-gradient(#9a9a9a, #9a9a9a), linear-gradient(#9a9a9a, #9a9a9a), linear-gradient(#9a9a9a, #9a9a9a);
  background-size: 22% 6px, 30% 4px, 16% 4px;
  background-position: 8px 16px, 32% 17px, right 8px top 17px;
  background-repeat: no-repeat;
}
.header-choice__sketch--spread {
  background-image: linear-gradient(#9a9a9a, #9a9a9a), linear-gradient(#9a9a9a, #9a9a9a), linear-gradient(#9a9a9a, #9a9a9a);
  background-size: 20% 6px, 28% 4px, 16% 4px;
  background-position: 8px 16px, center 17px, right 8px top 17px;
  background-repeat: no-repeat;
}
.header-choice__sketch--pack {
  background-image: linear-gradient(#9a9a9a, #9a9a9a), linear-gradient(#9a9a9a, #9a9a9a), linear-gradient(#9a9a9a, #9a9a9a);
  background-size: 22% 6px, 26% 4px, 14% 4px;
  background-position: 8px 16px, right 28% top 17px, right 8px top 17px;
  background-repeat: no-repeat;
}
.header-choice__sketch--stack {
  background-image: linear-gradient(#9a9a9a, #9a9a9a), linear-gradient(#9a9a9a, #9a9a9a), linear-gradient(#9a9a9a, #9a9a9a);
  background-size: 28% 5px, 50% 3px, 36% 3px;
  background-position: center 8px, center 18px, center 26px;
  background-repeat: no-repeat;
}
.header-choice__sketch--footer-bar,
.header-choice__sketch--footer-pack,
.header-choice__sketch--footer-spread,
.header-choice__sketch--footer-columns,
.header-choice__sketch--footer-stack {
  background-color: #f7f7f7;
}
.header-choice__sketch--footer-bar::before,
.header-choice__sketch--footer-pack::before,
.header-choice__sketch--footer-spread::before,
.header-choice__sketch--footer-columns::before,
.header-choice__sketch--footer-stack::before,
.header-choice__sketch--footer-bar::after,
.header-choice__sketch--footer-pack::after,
.header-choice__sketch--footer-spread::after,
.header-choice__sketch--footer-columns::after,
.header-choice__sketch--footer-stack::after {
  content: none;
}
.header-choice__sketch--footer-bar {
  background-image: linear-gradient(#9a9a9a, #9a9a9a), linear-gradient(#9a9a9a, #9a9a9a);
  background-size: 28% 4px, 40% 4px;
  background-position: 8px 17px, right 8px top 17px;
  background-repeat: no-repeat;
}
.header-choice__sketch--footer-pack {
  background-image: linear-gradient(#9a9a9a, #9a9a9a), linear-gradient(#9a9a9a, #9a9a9a), linear-gradient(#9a9a9a, #9a9a9a), linear-gradient(#9a9a9a, #9a9a9a);
  background-size: 18% 6px, 22% 3px, 14% 3px, 70% 2px;
  background-position: 8px 10px, right 28% top 12px, right 8px top 12px, 8px 28px;
  background-repeat: no-repeat;
}
.header-choice__sketch--footer-spread {
  background-image: linear-gradient(#9a9a9a, #9a9a9a), linear-gradient(#9a9a9a, #9a9a9a), linear-gradient(#9a9a9a, #9a9a9a), linear-gradient(#9a9a9a, #9a9a9a);
  background-size: 16% 6px, 24% 3px, 14% 3px, 70% 2px;
  background-position: 8px 10px, center 12px, right 8px top 12px, 8px 28px;
  background-repeat: no-repeat;
}
.header-choice__sketch--footer-columns {
  background-image: linear-gradient(#9a9a9a, #9a9a9a), linear-gradient(#9a9a9a, #9a9a9a), linear-gradient(#9a9a9a, #9a9a9a);
  background-size: 8px 22px, 8px 22px, 8px 22px;
  background-position: 18% 8px, center 8px, 82% 8px;
  background-repeat: no-repeat;
}
.header-choice__sketch--footer-stack {
  background-image: linear-gradient(#9a9a9a, #9a9a9a), linear-gradient(#9a9a9a, #9a9a9a), linear-gradient(#9a9a9a, #9a9a9a);
  background-size: 28% 5px, 50% 3px, 36% 3px;
  background-position: center 8px, center 18px, center 26px;
  background-repeat: no-repeat;
}
.header-choice__sketch--split::before,
.header-choice__sketch--left::before,
.header-choice__sketch--center::before {
  width: 28%;
  height: 6px;
  top: 10px;
  left: 8px;
}
.header-choice__sketch--split::after {
  width: 42%;
  height: 4px;
  top: 17px;
  right: 8px;
}
.header-choice__sketch--left::after {
  width: 36%;
  height: 4px;
  top: 17px;
  left: calc(28% + 14px);
}
.header-choice__sketch--center::before {
  left: 50%;
  transform: translateX(-50%);
  top: 8px;
}
.header-choice__sketch--center::after {
  width: 56%;
  height: 4px;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
}
.header-choice__sketch--site {
  margin-inline: 12px;
}
.header-choice__sketch--full {
  margin-inline: 0;
}
.media-picker {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.media-picker__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  background-color: #efefef;
  background-image: linear-gradient(45deg, #e2e2e2 25%, transparent 25%), linear-gradient(-45deg, #e2e2e2 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e2e2e2 75%), linear-gradient(-45deg, transparent 75%, #e2e2e2 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  overflow: hidden;
}
.media-picker__preview img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: #ffffff;
}
.media-picker__preview.has-image {
  min-height: 0;
}
.media-picker__preview.is-inherited {
  position: relative;
}
.media-picker__preview.is-inherited img {
  opacity: 0.72;
}
.media-picker__inherit {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0.25rem 0.4rem;
  background: rgba(255, 255, 255, 0.88);
  color: #5c5c5c;
  font-size: 0.72rem;
  text-align: center;
}
.media-picker__empty {
  font-size: 0.8rem;
  color: #5c5c5c;
  padding: 0.75rem;
  text-align: center;
}
.media-picker__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.menu-editor__grid {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.menu-editor__source {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 0.75rem;
}
.menu-editor__box {
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #ffffff;
  padding: 0.85rem 1rem 1rem;
}
.menu-editor__box summary {
  cursor: pointer;
  font-weight: 500;
  margin: 0 0 0.75rem;
  list-style: none;
}
.menu-editor__box summary::-webkit-details-marker {
  display: none;
}
.menu-editor__box .btn {
  margin-top: 0.65rem;
}
.menu-editor__box .field {
  margin-bottom: 0.65rem;
}
.menu-editor__pick {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 16rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.menu-editor__pick label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.9rem;
}
.menu-editor__pick label input {
  margin-top: 0.2rem;
  width: auto;
  min-height: 0;
}
.menu-editor__structure {
  margin-bottom: 0;
}
.menu-editor__empty {
  margin: 0;
  padding: 1.5rem 1rem;
  border: 1px dashed #e2e2e2;
  text-align: center;
}
.menu-editor__list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 2.5rem;
}
.menu-editor__list.is-sorting {
  cursor: grabbing;
}
.menu-editor__placeholder {
  list-style: none;
  margin: 0.05rem 0;
  padding: 0.15rem 0 0.1rem;
  pointer-events: none;
  transition: margin-left 0.12s ease;
}
.menu-editor__placeholder.is-child {
  margin-left: 1.75rem;
}
.menu-editor__placeholder-bar {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: #0a0a0a;
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.12);
}
.menu-editor__placeholder-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #5c5c5c;
}
.menu-editor__item {
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #ffffff;
  transition: margin-left 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.menu-editor__item.is-child {
  margin-left: 1.75rem;
  border-left: 2px solid #0a0a0a;
}
.menu-editor__item.is-dragging {
  opacity: 0.38;
}
.menu-editor__item.is-drop-parent {
  border-color: #0a0a0a;
  box-shadow: inset 3px 0 0 #0a0a0a;
}
.menu-editor__item.is-open {
  border-color: #0a0a0a;
}
.menu-editor__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
}
.menu-editor__handle {
  appearance: none;
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: #9a9a9a;
  cursor: grab;
  padding: 0.7rem 0.45rem;
  line-height: 1;
  letter-spacing: -0.12em;
  user-select: none;
}
.menu-editor__handle:active {
  cursor: grabbing;
}
.menu-editor__toggle {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem 0.7rem 0.2rem;
  min-width: 0;
}
.menu-editor__toggle [data-role="title"] {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-editor__type {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #5c5c5c;
}
.menu-editor__drawer {
  padding: 0 0.9rem 0.9rem 2.1rem;
  border-top: 1px solid #e2e2e2;
}
.menu-editor__drawer .field {
  margin-top: 0.75rem;
}
.menu-editor__origin {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
}
.menu-editor__row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.75rem;
}
@media (max-width: 800px) {
  .menu-editor__grid {
    grid-template-columns: 1fr;
  }
  .menu-editor__source {
    position: static;
  }
}
.profile-editor__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.profile-editor__section-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 500;
}
.profile-identity {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.profile-photo-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.profile-photo-block__preview {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: #efefef;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e2e2;
}
.profile-photo-block__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-photo-block__actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.profile-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}
.profile-links__row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
}
.profile-links__row select,
.profile-links__row input {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  width: 100%;
  min-height: 0;
}
.profile-cv-section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.profile-cv-section__head .profile-editor__section-title {
  margin: 0;
}
.profile-item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.profile-item-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45rem;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  padding: 0.75rem;
  background: #ffffff;
}
.profile-item-card.is-dragging {
  opacity: 0.55;
}
.profile-item-card__handle {
  color: #9a9a9a;
  cursor: grab;
  padding: 0.2rem 0.15rem;
  font-size: 0.85rem;
  user-select: none;
}
.profile-item-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.profile-item-card__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}
.profile-item-card__row input,
.profile-item-card__row select,
.profile-item-card__row textarea {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  width: 100%;
  min-height: 0;
}
.profile-item-card__row--dates {
  grid-template-columns: auto auto auto;
  align-items: center;
  font-size: 0.82rem;
  color: #5c5c5c;
}
.profile-item-card__row--dates label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.profile-item-card__row--dates input[type="month"] {
  width: auto;
  min-width: 8.5rem;
}
.profile-item-card__body > textarea {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  width: 100%;
  resize: vertical;
}
.profile-item-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.profile-item-card__actions {
  display: flex;
  gap: 0.35rem;
}
.profile-item-public,
.profile-item-current {
  font-size: 0.82rem;
  color: #5c5c5c;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}
.profile-item-public .switch__label,
.profile-item-current .switch__label {
  font-size: inherit;
  color: inherit;
  flex: 0 1 auto;
}
.profile-item-public .switch__track,
.profile-item-current .switch__track {
  width: 32px;
  height: 18px;
}
.profile-item-public .switch__track::after,
.profile-item-current .switch__track::after {
  width: 14px;
  height: 14px;
}
.profile-item-public .switch__input:checked + .switch__track::after,
.profile-item-current .switch__input:checked + .switch__track::after {
  transform: translateX(14px);
}
.star-rating {
  display: inline-flex;
  gap: 0.1rem;
}
.star-rating__star {
  appearance: none;
  border: 0;
  background: transparent;
  color: #e2e2e2;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem;
}
.star-rating__star.is-on {
  color: #0a0a0a;
}
/* ---- PDF builder setup (paper choices before the editor) ---- */
.pdf-setup__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
@media (max-width: 720px) {
  .pdf-setup__header {
    grid-template-columns: 1fr;
  }
}
.pdf-setup__back {
  margin: 0 0 0.5rem;
}
.pdf-setup__sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 140px;
}
.pdf-setup__sheet-page {
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e2e2e2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: width 0.15s ease, height 0.15s ease;
}
.pdf-setup__sheet-meta {
  margin: 0;
  font-size: 0.78rem;
  text-align: center;
}
.pdf-setup__form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  max-width: 40rem;
}
.pdf-setup__fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.pdf-setup__fieldset legend {
  padding: 0;
  margin-bottom: 0.55rem;
  font-weight: 500;
}
.pdf-setup__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
.pdf-setup__options--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 22rem;
}
@media (max-width: 560px) {
  .pdf-setup__options {
    grid-template-columns: 1fr;
  }
}
.pdf-setup__option {
  display: block;
  cursor: pointer;
}
.pdf-setup__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pdf-setup__option input:focus-visible + .pdf-setup__option-card {
  outline: 2px solid #0a0a0a;
  outline-offset: 2px;
}
.pdf-setup__option input:checked + .pdf-setup__option-card {
  border-color: #0a0a0a;
  background: rgba(10, 10, 10, 0.03);
}
.pdf-setup__option-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #ffffff;
  min-height: 100%;
}
.pdf-setup__option-title {
  font-weight: 500;
}
.pdf-setup__option-meta {
  font-size: 0.78rem;
}
.pdf-setup__hint {
  display: block;
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
}
.pdf-setup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  padding-top: 0.35rem;
}
@media (max-width: 800px) {
  .profile-identity {
    grid-template-columns: 1fr;
  }
  .profile-links__row {
    grid-template-columns: 1fr;
  }
  .profile-item-card__row {
    grid-template-columns: 1fr;
  }
  .profile-item-card__row--dates {
    grid-template-columns: 1fr;
  }
}
