:root {
  --white: #fffefa;
  --paper: #f7f3ea;
  --ink: #181713;
  --muted: #6f6a60;
  --line: #e3ded1;
  --gold: #b99048;
  --gold-strong: #8f6a2b;
  --black: #0d0d0c;
  --shadow: 0 24px 70px rgba(24, 23, 19, 0.13);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--ink);
  color: var(--white);
  padding: 0.7rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 3.5vw;
  background: rgba(255, 254, 250, 0.88);
  border-bottom: 1px solid rgba(227, 222, 209, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 0.05rem;
  letter-spacing: 0;
}

.brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.85rem);
  color: #343128;
  font-size: 0.9rem;
}

.main-nav a {
  position: relative;
  padding: 0.4rem 0;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1rem;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
}

.hero-home {
  display: grid;
  align-items: start;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 254, 250, 0.92) 0%, rgba(255, 254, 250, 0.6) 38%, rgba(255, 254, 250, 0.14) 100%),
    linear-gradient(0deg, rgba(255, 254, 250, 0.94) 0%, rgba(255, 254, 250, 0) 36%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 92vw);
  margin-top: 4rem;
  padding: 1.5rem 3.5vw 10vh;
}

.kicker,
.eyebrow,
.section-label {
  color: var(--gold-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 9vw, 8.8rem);
  font-weight: 400;
  line-height: 0.91;
  margin-bottom: 1.4rem;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 4.4rem);
  font-weight: 400;
  line-height: 1.02;
  margin-bottom: 1rem;
}

h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.hero-copy {
  width: min(540px, 100%);
  color: #37342d;
  font-size: clamp(1rem, 1.8vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.76rem 1.15rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--gold);
  color: var(--white);
}

.button-primary:hover {
  background: var(--gold-strong);
}

.button-ghost {
  background: rgba(255, 254, 250, 0.75);
  border-color: var(--line);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.section {
  padding: 8rem 3.5vw;
}

.intro-band {
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 3rem;
  margin-top: 1.5rem;
}

.intro-grid h2 {
  max-width: 850px;
}

.intro-grid p {
  align-self: end;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading.compact {
  align-items: center;
}

.text-link,
.availability {
  color: var(--gold-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.masonry-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.photo-card {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  padding: 0;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-card.tall {
  grid-row: span 2;
  min-height: 760px;
}

.photo-card.wide {
  grid-column: span 2;
}

.home-selection {
  padding: 0.85rem 3.5vw 3.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.selection-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 9fr);
  align-items: start;
  gap: clamp(0.45rem, 1vw, 1rem);
}

.selection-grid-right {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.45rem, 1vw, 1rem);
}

.selection-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.selection-card-main {
  aspect-ratio: 2 / 3;
}

.selection-grid-right .selection-card {
  aspect-ratio: 3 / 2;
}

.selection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.selection-card:hover img {
  transform: scale(1.025);
}

@media (prefers-reduced-motion: reduce) {
  .selection-card img {
    transition: none;
  }

  .selection-card:hover img {
    transform: none;
  }
}

.selection-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
}

.selection-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 4rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: var(--paper);
}

.split-copy p:not(.eyebrow) {
  color: var(--muted);
  max-width: 620px;
}

.split-copy .button {
  margin-top: 0.35rem;
}

.series-stack {
  display: grid;
  gap: 1rem;
}

.series-stack article {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(220px, 3fr);
  align-items: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.series-stack img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--white);
}

.series-stack div {
  align-self: end;
  padding: 1.4rem;
}

.series-stack span {
  color: var(--gold-strong);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.series-stack h3 {
  font-size: 1.4rem;
  line-height: 1.15;
}

.shop-teaser {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-bottom: 0;
  background: var(--black);
  color: var(--white);
}

.shop-copy {
  max-width: 680px;
}

.shop-copy .eyebrow {
  color: #d2ab62;
}

.shop-copy h2 {
  max-width: 650px;
  margin-bottom: 1.5rem;
  font-size: clamp(2.8rem, 5.5vw, 5.9rem);
  line-height: 0.95;
}

.shop-copy p:not(.eyebrow) {
  max-width: 580px;
  color: rgba(255, 254, 250, 0.68);
  font-size: 1.02rem;
}

.shop-copy .button {
  margin-top: 1.4rem;
}

.shop-visual {
  margin: 0;
  padding-left: clamp(1.5rem, 3vw, 3.5rem);
  border-left: 1px solid rgba(185, 144, 72, 0.45);
}

.shop-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.shop-visual figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  color: rgba(255, 254, 250, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.author-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: var(--paper);
}

.author-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(185, 144, 72, 0.65);
}

.author-heading h2 {
  margin-bottom: 0;
  font-size: clamp(4.2rem, 8vw, 8rem);
  line-height: 0.86;
}

.author-heading-meta {
  display: flex;
  align-items: end;
  gap: 1.25rem;
  padding-bottom: 0.35rem;
}

.author-heading-meta > span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  line-height: 0.8;
}

.author-heading-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.author-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
  padding-top: 3rem;
}

.author-portrait {
  width: 100%;
  margin: 0;
  padding: 0.7rem;
  background: var(--white);
}

.author-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

.author-portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.2rem 0.1rem;
  color: var(--gold-strong);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.author-content {
  width: 100%;
  max-width: 900px;
  margin: 0;
  padding-top: 0.5rem;
}

.author-content .author-lead {
  max-width: 820px;
  margin-bottom: 2rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.28;
}

.author-statement {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem clamp(2rem, 4vw, 4rem);
  max-width: 840px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.author-sentence {
  display: block;
}

.author-sentence-lead {
  grid-column: 1 / -1;
  max-width: 760px;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", ui-sans-serif, sans-serif;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.author-sentence-close {
  grid-column: 1 / -1;
  max-width: 780px;
  color: var(--gold-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.55;
}

.page-hero {
  padding: 9rem 3.5vw 5rem;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.18rem;
}

.private-page-exit {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.private-page-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 94px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 254, 250, 0.76);
}

.language-switch::before {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--ink);
  content: "";
  transition: transform 180ms ease;
}

.language-switch[data-language="en"]::before {
  transform: translateX(100%);
}

.language-switch button {
  position: relative;
  z-index: 1;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: color 160ms ease;
}

.language-switch button[aria-pressed="true"] {
  color: var(--white);
}

.language-switch button:focus-visible {
  border-radius: 999px;
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.private-page {
  background: var(--paper);
}

.private-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 9rem);
  min-height: calc(76vh - 76px);
  padding: clamp(5rem, 10vh, 9rem) 3.5vw clamp(4rem, 8vh, 7rem);
}

.private-page-hero h1 {
  max-width: 940px;
  margin-bottom: 0;
  font-size: clamp(4rem, 8.5vw, 9rem);
}

.private-page-intro {
  padding-bottom: 0.6rem;
}

.private-page-intro p {
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.75;
}

.private-page-process {
  border-top: 1px solid var(--line);
  padding: clamp(4rem, 8vw, 8rem) 3.5vw;
  background: var(--white);
}

.private-page-process > .eyebrow {
  margin-bottom: 3rem;
}

.private-page-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 6rem);
}

.private-page-steps article {
  border-top: 1px solid var(--ink);
  padding-top: 1.25rem;
}

.private-page-steps span {
  display: block;
  margin-bottom: clamp(2rem, 5vh, 4rem);
  color: var(--gold-strong);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.private-page-steps h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.8rem);
}

.private-page-steps p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.private-page-note {
  max-width: 780px;
  margin: clamp(4rem, 8vw, 7rem) 0 0 auto;
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.5;
}

.private-page-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2.5rem, 5vw, 5rem) 3.5vw;
  background: #11110f;
  color: var(--white);
}

.private-page-contact p {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 3rem);
  line-height: 1.15;
}

.private-page-contact a {
  border-bottom: 1px solid rgba(255, 254, 250, 0.65);
  padding: 0.7rem 0;
  color: #d0a75c;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.private-page-recovery .private-page-hero {
  min-height: 0;
  padding-top: clamp(2rem, 3vw, 3rem);
  padding-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.private-page-recovery .private-page-hero h1 {
  margin-bottom: clamp(0.75rem, 1.2vw, 1.15rem);
  font-size: clamp(3.9rem, 8.2vw, 8.7rem);
}

.recovery-page-title span {
  display: block;
}

.institutional-page-title span {
  display: block;
}

.institutional-gallery {
  padding: clamp(2.5rem, 5vw, 5rem) 3.5vw;
  background: var(--white);
}

.institutional-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.55rem, 0.9vw, 0.9rem);
}

.institutional-gallery-item {
  aspect-ratio: 3 / 2;
  margin: 0;
}

.institutional-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.institutional-contact span {
  display: block;
  margin-bottom: 0.65rem;
  color: #d0a75c;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.collaboration-page {
  background: #f1ede4;
  color: #151411;
}

.collaboration-header {
  border-bottom-color: rgba(21, 20, 17, 0.14);
  background: #f1ede4;
}

.collaboration-header-meta {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
}

.collaboration-header-meta > span {
  color: var(--gold-strong);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.collaboration-index {
  display: block;
  color: #a57b34;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.collaboration-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(310px, 0.58fr);
  gap: clamp(3rem, 8vw, 9rem);
  min-height: calc(100svh - 76px);
  align-content: space-between;
  padding: clamp(4rem, 8vh, 7rem) 3.5vw 0;
  background:
    radial-gradient(circle at 82% 22%, rgba(185, 144, 72, 0.14), transparent 28%),
    #11110f;
  color: #fffefa;
}

.collaboration-hero-heading > p {
  margin: 0 0 clamp(2.5rem, 6vh, 5rem);
  color: rgba(255, 254, 250, 0.48);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.collaboration-hero h1 {
  max-width: 1050px;
  margin: 0;
  color: #fffefa;
  font-size: clamp(4.6rem, 8.7vw, 9.8rem);
  letter-spacing: -0.055em;
  line-height: 0.78;
}

.collaboration-hero h1 span,
.collaboration-hero h1 em {
  display: block;
}

.collaboration-hero h1 em {
  margin-left: clamp(2rem, 10vw, 11rem);
  color: #c99a49;
  font-weight: 400;
}

.collaboration-hero-copy {
  align-self: end;
  max-width: 560px;
  padding-bottom: clamp(3.5rem, 7vh, 6.5rem);
}

.collaboration-hero-copy .collaboration-index {
  margin-bottom: clamp(1.75rem, 3vw, 3rem);
  color: #c99a49;
}

.collaboration-hero-copy > p {
  margin: 0;
  color: rgba(255, 254, 250, 0.7);
  font-size: clamp(1rem, 1.28vw, 1.18rem);
  line-height: 1.78;
}

.collaboration-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.collaboration-hero-actions a {
  display: flex;
  min-width: 190px;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255, 254, 250, 0.32);
  padding: 0.75rem 0;
  color: #fffefa;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: border-color 160ms ease, color 160ms ease;
}

.collaboration-hero-actions a:hover {
  border-bottom-color: #c99a49;
  color: #c99a49;
}

.collaboration-disciplines {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 254, 250, 0.16);
}

.collaboration-disciplines span {
  border-right: 1px solid rgba(255, 254, 250, 0.16);
  padding: 1.25rem clamp(0.75rem, 2vw, 2rem);
  color: rgba(255, 254, 250, 0.48);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.collaboration-disciplines span:first-child {
  padding-left: 0;
}

.collaboration-disciplines span:last-child {
  border-right: 0;
}

.collaboration-manifesto {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1.25fr);
  gap: clamp(3rem, 8vw, 10rem);
  padding: clamp(5rem, 10vw, 10rem) 3.5vw;
  background: #f1ede4;
}

.collaboration-manifesto-title .collaboration-index,
.collaboration-gallery-heading .collaboration-index,
.collaboration-process .collaboration-index {
  margin-bottom: clamp(1.5rem, 3vw, 2.8rem);
}

.collaboration-manifesto h2,
.collaboration-gallery-heading h2,
.collaboration-process h2 {
  margin: 0;
  font-size: clamp(2.9rem, 5.7vw, 6rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.collaboration-manifesto-copy {
  max-width: 760px;
  align-self: end;
}

.collaboration-manifesto-copy p:first-child {
  margin: 0 0 1.5rem;
  color: #1d1c18;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.3vw, 2.15rem);
  line-height: 1.38;
}

.collaboration-manifesto-copy p:last-child {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.collaboration-values {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 5rem);
  margin-top: clamp(1rem, 3vw, 3rem);
}

.collaboration-values article {
  border-top: 1px solid rgba(21, 20, 17, 0.52);
  padding-top: 1rem;
}

.collaboration-values article > span,
.collaboration-process article > span {
  display: block;
  margin-bottom: clamp(2rem, 4vw, 4rem);
  color: #a57b34;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.collaboration-values h3,
.collaboration-process h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
}

.collaboration-values p,
.collaboration-process article p {
  max-width: 370px;
  margin: 0;
  color: var(--muted);
  line-height: 1.66;
}

.collaboration-gallery.institutional-gallery {
  padding: clamp(5rem, 9vw, 9rem) 3.5vw;
  background: #fffefa;
}

.collaboration-gallery-heading {
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 9rem);
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.collaboration-gallery-heading p {
  max-width: 520px;
  justify-self: end;
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.72;
}

.collaboration-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: clamp(0.7rem, 1.2vw, 1.25rem);
}

.collaboration-gallery-grid .work-card {
  aspect-ratio: 2 / 3;
  background: #e7e1d6;
}

.collaboration-gallery-grid .work-card::after {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  width: 20px;
  height: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  content: "";
  opacity: 0;
  transition: opacity 160ms ease;
}

.collaboration-gallery-grid .work-card:hover::after,
.collaboration-gallery-grid .work-card:focus-visible::after {
  opacity: 1;
}

.collaboration-statement {
  padding: clamp(4rem, 8vw, 8rem) 3.5vw;
  background: #11110f;
  color: #fffefa;
}

.collaboration-statement p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 6.7rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.collaboration-statement p:last-child {
  margin-left: clamp(2rem, 14vw, 15rem);
  color: #c99a49;
  font-style: italic;
}

.collaboration-process {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 8vw, 10rem);
  padding: clamp(5rem, 9vw, 9rem) 3.5vw;
  background: #f1ede4;
}

.collaboration-process > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3rem, 5vw, 6rem) clamp(2rem, 4vw, 4rem);
}

.collaboration-process article {
  border-top: 1px solid rgba(21, 20, 17, 0.52);
  padding-top: 1rem;
}

.collaboration-process article > span {
  margin-bottom: clamp(1.75rem, 3vw, 3rem);
}

.collaboration-contact {
  display: grid;
  justify-items: start;
  padding: clamp(5rem, 10vw, 10rem) 3.5vw clamp(4rem, 7vw, 7rem);
  background: #c69a4b;
  color: #11110f;
}

.collaboration-contact .collaboration-index {
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  color: rgba(17, 17, 15, 0.66);
}

.collaboration-contact > p {
  margin: 0 0 clamp(3rem, 6vw, 6rem);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 8vw, 8.7rem);
  letter-spacing: -0.055em;
  line-height: 0.84;
}

.collaboration-contact > a {
  display: flex;
  width: min(100%, 920px);
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid rgba(17, 17, 15, 0.5);
  border-bottom: 1px solid rgba(17, 17, 15, 0.5);
  padding: clamp(1rem, 2vw, 1.6rem) 0;
  color: #11110f;
  font-size: clamp(1rem, 2.2vw, 1.75rem);
  font-weight: 650;
}

.collaboration-contact > small {
  margin-top: 1rem;
  color: rgba(17, 17, 15, 0.64);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.collaboration-footer {
  border-top-color: rgba(21, 20, 17, 0.18);
  background: #f1ede4;
}

.collaboration-lightbox .art-lightbox-stage img {
  max-width: min(72vw, 760px);
  max-height: 90%;
}

@media (max-width: 1080px) {
  .collaboration-hero {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    min-height: 0;
  }

  .collaboration-hero-copy {
    max-width: 680px;
    padding-bottom: 2rem;
  }

  .collaboration-manifesto,
  .collaboration-process {
    grid-template-columns: 1fr;
  }

  .collaboration-manifesto-copy {
    max-width: 820px;
  }

  .collaboration-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .collaboration-header-meta > span {
    display: none;
  }

  .collaboration-hero,
  .collaboration-manifesto,
  .collaboration-gallery.institutional-gallery,
  .collaboration-statement,
  .collaboration-process,
  .collaboration-contact {
    padding-right: 5vw;
    padding-left: 5vw;
  }

  .collaboration-hero {
    padding-top: 3.5rem;
  }

  .collaboration-hero-heading > p {
    margin-bottom: 2.5rem;
  }

  .collaboration-hero h1 {
    font-size: clamp(3.55rem, 17vw, 6.2rem);
    line-height: 0.82;
  }

  .collaboration-hero h1 em {
    margin-left: clamp(1rem, 8vw, 3rem);
  }

  .collaboration-disciplines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collaboration-disciplines span {
    border-bottom: 1px solid rgba(255, 254, 250, 0.16);
    padding-left: 0;
  }

  .collaboration-disciplines span:nth-child(2) {
    border-right: 0;
  }

  .collaboration-values,
  .collaboration-gallery-heading,
  .collaboration-process > div {
    grid-template-columns: 1fr;
  }

  .collaboration-gallery-heading {
    gap: 2rem;
  }

  .collaboration-gallery-heading p {
    justify-self: start;
  }

  .collaboration-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collaboration-statement p:last-child {
    margin-top: 0.3rem;
    margin-left: 1.5rem;
  }

  .collaboration-contact > p br {
    display: none;
  }

  .collaboration-contact > a {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 440px) {
  .collaboration-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.private-page-recovery .private-page-process {
  padding-top: clamp(1.75rem, 3vw, 2.75rem);
  padding-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
}

.private-page-recovery .private-page-steps article {
  position: relative;
  margin-top: 1.4rem;
  padding-top: 0.7rem;
}

.private-page-recovery .private-page-steps span {
  position: absolute;
  bottom: calc(100% + 0.45rem);
  left: 0;
  margin: 0;
}

.private-page-recovery .private-page-steps h2 {
  margin-bottom: 0.55rem;
}

.private-page-recovery .private-page-steps p {
  padding-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
}

.private-page-recovery .private-page-note {
  max-width: none;
  margin: 1.5rem 0 0;
  overflow-x: auto;
  border-left: 0;
  padding-left: 0;
  color: var(--muted);
  font-family: inherit;
  font-size: clamp(0.72rem, 0.95vw, 0.92rem);
  line-height: 1.35;
  white-space: nowrap;
  scrollbar-width: none;
}

.private-page-recovery .private-page-note::-webkit-scrollbar {
  display: none;
}

.private-page-recovery .private-page-contact a {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.65vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.gallery-page {
  padding-top: 5rem;
}

.art-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 1.1rem;
}

.art-item {
  min-width: 0;
}

.art-item.large {
  grid-row: span 2;
}

.art-item button,
.mini-strip button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  padding: 0;
  overflow: hidden;
}

.art-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
}

.art-item.large img {
  aspect-ratio: 4 / 5.35;
}

.art-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.art-meta h3,
.art-meta p {
  margin-bottom: 0.15rem;
}

.art-meta p,
.art-meta a {
  color: var(--muted);
  font-size: 0.9rem;
}

.works-page {
  background: var(--paper);
  color: var(--ink);
}

.works-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2.25rem, 4vw, 4.25rem) 3.5vw clamp(1.5rem, 2.6vw, 2.5rem);
}

.works-intro p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 6.5vw, 6.75rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.85;
}

.works-intro span {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.works-gallery {
  padding: 0 3.5vw clamp(4rem, 7vw, 7rem);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.5rem, 0.9vw, 0.9rem);
}

.works-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 2;
  place-items: center;
  background: #090908;
  color: rgba(255, 255, 255, 0.72);
}

.works-placeholder span {
  font-size: clamp(0.72rem, 0.9vw, 0.88rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.work-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: var(--line);
  cursor: zoom-in;
  -webkit-touch-callout: none;
}

.work-card.is-portrait {
  aspect-ratio: 2 / 3;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 180ms ease;
}

.work-card:hover img {
  filter: brightness(0.94);
}

.work-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.works-portrait-section {
  grid-column: 1 / -1;
  margin-top: 0;
}

.works-portrait-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(0.5rem, 0.9vw, 0.9rem);
}

.works-print-note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.7fr) auto;
  align-items: end;
  gap: clamp(2rem, 5vw, 6rem);
  margin: clamp(2.5rem, 5vw, 5rem) 0;
  padding: clamp(2.5rem, 5vw, 5rem);
  background: #11110f;
  color: var(--white);
}

.works-print-note div > p {
  margin-bottom: 1.4rem;
  color: #d0a75c;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.works-print-note h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5.8rem);
  letter-spacing: -0.035em;
}

.works-print-note > p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 254, 250, 0.68);
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  line-height: 1.7;
}

.works-print-note > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  min-width: 210px;
  border-bottom: 1px solid rgba(255, 254, 250, 0.72);
  padding: 0.85rem 0;
  font-size: 0.87rem;
  font-weight: 700;
}

.works-print-note > a span {
  color: #d0a75c;
  font-size: 1.1rem;
}

.journal-list {
  display: grid;
  gap: 2rem;
  padding-top: 5rem;
}

.journal-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: 2rem;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2rem;
}

.journal-cover {
  position: relative;
  display: block;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
}

.journal-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--white);
}

.journal-content {
  display: grid;
  align-content: center;
}

.journal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--gold-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journal-content p {
  max-width: 650px;
  color: var(--muted);
}

.journal-index-page {
  min-height: 70vh;
  background: #f5f1e8;
}

.journal-index-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 9rem);
  min-height: calc(72vh - 76px);
  padding: clamp(4rem, 9vh, 8rem) 3.5vw clamp(3rem, 7vh, 6rem);
  border-bottom: 1px solid var(--line);
}

.journal-index-hero h1 {
  margin: 0;
  font-size: clamp(5rem, 10vw, 11rem);
  letter-spacing: -0.06em;
  line-height: 0.76;
}

.journal-index-hero > div:last-child {
  max-width: 560px;
  padding-bottom: 0.7rem;
}

.journal-index-hero > div:last-child span {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--gold-strong);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.journal-index-hero > div:last-child p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.75;
}

.journal-series-list {
  display: grid;
  padding: clamp(3rem, 7vw, 7rem) 3.5vw;
  background: #fffefa;
}

.journal-series-card {
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.journal-series-card:first-child {
  padding-top: 0;
}

.journal-series-link {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(300px, 0.85fr);
  align-items: stretch;
  gap: clamp(2rem, 6vw, 7rem);
  color: var(--ink);
}

.journal-series-link > img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--paper);
  transition: filter 180ms ease;
}

.journal-series-link:hover > img {
  filter: brightness(0.94);
}

.journal-series-card:nth-child(even) .journal-series-link > img {
  order: 2;
}

.journal-series-copy {
  display: grid;
  align-content: center;
  grid-template-columns: auto 1fr;
  gap: 0.8rem 1.5rem;
  padding: 1rem 0;
}

.journal-series-number,
.journal-series-date {
  color: var(--gold-strong);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.journal-series-date {
  text-align: right;
}

.journal-series-copy h2,
.journal-series-copy > p,
.journal-series-action {
  grid-column: 1 / -1;
}

.journal-series-copy h2 {
  margin: clamp(1rem, 2vw, 2rem) 0 0;
  font-size: clamp(2.8rem, 5.2vw, 5.7rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.journal-series-copy > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.journal-series-action {
  display: flex;
  width: min(100%, 280px);
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(1rem, 2vw, 2rem);
  border-bottom: 1px solid var(--ink);
  padding: 0.75rem 0;
  font-size: 0.75rem;
  font-weight: 700;
}

.journal-public-empty {
  margin: 0;
  padding: clamp(5rem, 10vw, 10rem) 3.5vw;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 3rem);
  text-align: center;
}

.journal-series-return {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.journal-story-page {
  background: #fffefa;
}

.journal-story-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 9rem);
  min-height: 55vh;
  padding: clamp(4rem, 9vw, 9rem) 3.5vw clamp(3rem, 6vw, 6rem);
  background: #f5f1e8;
}

.journal-story-header h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(4rem, 9vw, 9.5rem);
  letter-spacing: -0.055em;
  line-height: 0.82;
}

.journal-story-header > p {
  max-width: 620px;
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1.48;
}

.journal-story-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: start;
  gap: clamp(0.5rem, 0.9vw, 0.9rem);
  padding: clamp(2rem, 4vw, 4rem) 3.5vw clamp(5rem, 9vw, 9rem);
}

.journal-story-image {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: var(--paper);
  cursor: zoom-in;
}

.journal-story-image.is-landscape {
  grid-column: span 2;
  aspect-ratio: 3 / 2;
}

.journal-story-image.is-portrait {
  grid-column: span 1;
  aspect-ratio: 2 / 3;
}

.journal-story-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 180ms ease;
}

.journal-story-image:hover img {
  filter: brightness(0.94);
}

.mini-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}

.mini-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--white);
}

.password-form {
  max-width: 460px;
  margin-top: 1.5rem;
}

.password-form label,
.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.password-form div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 0.85rem 0.9rem;
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.print-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;
  padding-top: 5rem;
}

.print-intro {
  position: sticky;
  top: 100px;
}

.print-intro p,
.fine-list {
  color: var(--muted);
}

.fine-list {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: contain;
  background: var(--white);
}

.product-info {
  padding: 1.1rem;
}

.product-info span {
  color: var(--gold-strong);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-info h2 {
  font-size: 1.45rem;
}

.product-info p {
  color: var(--muted);
}

.product-info strong {
  display: block;
  margin-bottom: 1rem;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(420px, 92vw);
  height: 100vh;
  padding: 2rem;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.cart-panel.is-open {
  transform: translateX(0);
}

.cart-close,
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.4rem;
}

.cart-items {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin: 1.5rem 0;
  font-size: 1.1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 3rem;
  padding-top: 5rem;
}

.contact-panel {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--paper);
}

.big-contact {
  display: block;
  width: fit-content;
  margin: 1rem 0;
  color: var(--gold-strong);
  font-size: 1.15rem;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
}

.newsletter-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--paper);
}

.newsletter-form {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto;
  gap: 0.75rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 3.5vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer div:first-child {
  display: grid;
  gap: 0.1rem;
}

.site-footer strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: end;
}

.footer-copyright {
  display: block;
  margin-top: 0.3rem;
  color: rgba(111, 106, 96, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.admin-return-shortcut {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 35;
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 254, 250, 0.2);
  border-radius: 999px;
  padding: 0;
  background: rgba(17, 17, 15, 0.88);
  color: var(--white);
  box-shadow: 0 14px 38px rgba(13, 13, 12, 0.2);
  backdrop-filter: blur(14px);
  transition: width 220ms ease, background 180ms ease, border-color 180ms ease;
}

.admin-return-shortcut::after {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d0a75c;
  box-shadow: 0 0 0 3px rgba(208, 167, 92, 0.12);
  content: "";
}

.admin-return-shortcut-icon {
  display: grid;
  min-width: 44px;
  height: 44px;
  place-items: center;
}

.admin-return-shortcut-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
}

.admin-return-shortcut-label {
  padding-right: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  white-space: nowrap;
  transform: translateX(5px);
  transition: opacity 140ms ease, transform 180ms ease;
}

.admin-return-shortcut:hover,
.admin-return-shortcut:focus-visible {
  width: 154px;
  border-color: rgba(208, 167, 92, 0.55);
  background: rgba(13, 13, 12, 0.96);
  outline: 0;
}

.admin-return-shortcut:hover .admin-return-shortcut-label,
.admin-return-shortcut:focus-visible .admin-return-shortcut-label {
  opacity: 1;
  transform: translateX(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  background: rgba(13, 13, 12, 0.9);
  padding: 6vh 6vw;
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: 88vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  image-rendering: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.art-lightbox {
  --lightbox-info-shift: clamp(44px, 5.5vh, 68px);
  padding: 4vh 4vw;
  background: rgba(8, 8, 7, 0.92);
}

.art-lightbox .lightbox-close {
  z-index: 4;
  border: 1px solid rgba(255, 254, 250, 0.18);
  background: rgba(13, 13, 12, 0.72);
  color: var(--white);
}

.art-lightbox-layout {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: visible;
  background: transparent;
}

.art-lightbox-stage {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  place-items: center;
  padding: 0;
  background: transparent;
}

.art-lightbox .art-lightbox-stage img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  max-width: 91%;
  max-height: 88%;
  object-fit: contain;
  border: clamp(5px, 0.55vw, 9px) solid var(--white);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.art-lightbox.is-info-open .art-lightbox-stage img {
  transform: translate(-50%, calc(-50% - var(--lightbox-info-shift)));
}

.art-lightbox-info[hidden] {
  display: none !important;
}

.art-lightbox-info {
  position: absolute;
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  min-height: clamp(82px, 9vh, 96px);
  overflow: hidden;
  padding: clamp(0.48rem, 0.7vw, 0.72rem) clamp(1.1rem, 1.8vw, 1.75rem);
  background: rgba(247, 243, 234, 0.98);
  color: var(--ink);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  transition: transform 180ms ease;
}

.art-lightbox.is-info-open .art-lightbox-info {
  transform: translateY(calc(0px - var(--lightbox-info-shift)));
}

.art-lightbox-info > p:first-child {
  display: none;
}

.art-lightbox-info h2 {
  margin-bottom: 0.28rem;
  font-size: clamp(1.4rem, 1.75vw, 2.05rem);
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.art-lightbox-context {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  color: var(--muted);
  font-size: clamp(0.72rem, 0.82vw, 0.88rem);
  line-height: 1.25;
}

.art-lightbox-context span + span::before {
  margin-right: 0.35rem;
  color: var(--muted);
  content: "-";
}

.photo-technical {
  max-width: min(48vw, 620px);
  margin: 0;
  color: rgba(30, 29, 26, 0.34);
  font-size: clamp(0.52rem, 0.62vw, 0.66rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-align: right;
}

.photo-technical:empty {
  display: none;
}

.lightbox-info-toggle {
  position: absolute;
  bottom: 1.1rem;
  left: 1.1rem;
  z-index: 5;
  display: grid;
  width: 50px;
  height: 42px;
  border: 1px solid rgba(255, 254, 250, 0.24);
  border-radius: 999px;
  place-items: center;
  background: rgba(13, 13, 12, 0.58);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.lightbox-info-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.lightbox-info-toggle:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.lightbox-info-toggle[aria-expanded="true"] {
  border-color: #d0a75c;
  background: #d0a75c;
  color: var(--ink);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: rgba(13, 13, 12, 0.72);
  color: var(--white);
  font-size: 1.15rem;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 1.1rem;
}

.lightbox-next {
  right: 1.1rem;
}

.lightbox-nav:hover,
.art-lightbox .lightbox-close:hover {
  background: var(--white);
  color: var(--ink);
}

.admin-login[hidden],
.admin-private[hidden] {
  display: none !important;
}

.admin-body.admin-auth-pending [data-admin-login-view],
.admin-body.admin-auth-pending [data-admin-content] {
  display: none !important;
}

.admin-body.admin-locked {
  overflow: hidden;
}

.admin-login {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 80% 15%, rgba(185, 144, 72, 0.18), transparent 32%),
    #11110f;
}

.admin-login-panel {
  width: min(470px, 100%);
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--paper);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
}

.admin-login-brand {
  display: grid;
  width: fit-content;
  gap: 0.05rem;
  margin-bottom: clamp(4rem, 9vh, 7rem);
}

.admin-login-brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.admin-login-brand small {
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-login-copy > p {
  margin-bottom: 0.8rem;
  color: var(--gold-strong);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.admin-login-copy h1 {
  margin-bottom: 2.4rem;
  font-size: clamp(2.2rem, 5.4vw, 3.35rem);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.admin-login-form {
  display: grid;
  gap: 0.8rem;
}

.admin-login-form label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-login-form input {
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.9rem 0;
  background: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

.admin-login-form input:focus {
  border-bottom-color: var(--gold-strong);
  outline: 0;
}

.admin-password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--ink);
}

.admin-password-field:focus-within {
  border-bottom-color: var(--gold-strong);
}

.admin-password-field input {
  min-width: 0;
  border-bottom: 0;
  padding-right: 0.5rem;
}

.admin-password-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: transparent;
  color: var(--muted);
}

.admin-password-toggle:hover,
.admin-password-toggle:focus-visible {
  background: rgba(185, 144, 72, 0.12);
  color: var(--ink);
  outline: 0;
}

.admin-password-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.admin-eye-slash {
  opacity: 0;
}

.admin-password-toggle.is-visible .admin-eye-slash {
  opacity: 1;
}

.admin-private:not([hidden]) {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  padding: 1.15rem 1.05rem 0.85rem;
  background: #11110f;
  color: var(--white);
}

.admin-sidebar-brand {
  display: grid;
  gap: 0.05rem;
  width: fit-content;
  margin: 0 0 1rem 0.55rem;
}

.admin-sidebar-brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
}

.admin-sidebar-brand small {
  color: rgba(255, 254, 250, 0.5);
  font-size: 0.61rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-sidebar-nav {
  display: grid;
  gap: 0.04rem;
}

.admin-sidebar-nav a {
  border-left: 2px solid transparent;
  padding: 0.46rem 0.68rem;
  color: rgba(255, 254, 250, 0.62);
  font-size: 0.82rem;
  line-height: 1.24;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.is-active {
  border-left-color: var(--gold);
  background: rgba(255, 254, 250, 0.06);
  color: var(--white);
}

.admin-sidebar-special-links {
  display: grid;
  gap: 0.28rem;
  margin-top: 0.52rem;
  border-top: 1px solid rgba(255, 254, 250, 0.1);
  padding-top: 0.52rem;
}

.admin-sidebar-special-links a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(208, 167, 92, 0.25);
  border-radius: 5px;
  padding: 0.48rem 0.62rem;
  background: rgba(208, 167, 92, 0.06);
  color: rgba(255, 254, 250, 0.84);
  transition: background 150ms ease, border-color 150ms ease;
}

.admin-sidebar-special-links a:hover {
  border-color: rgba(208, 167, 92, 0.55);
  background: rgba(208, 167, 92, 0.12);
}

.admin-sidebar-special-links a::before {
  content: "↗";
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 0.88rem;
  line-height: 1;
}

.admin-sidebar-special-links span {
  font-size: 0.76rem;
}

.admin-sidebar-actions {
  display: grid;
  gap: 0.05rem;
  margin-top: 0;
  border-top: 1px solid rgba(255, 254, 250, 0.13);
  padding-top: 0.46rem;
}

.admin-sidebar-site-link {
  margin-top: auto;
  margin-bottom: 0.24rem;
  padding: 0.46rem 0.68rem;
  color: rgba(255, 254, 250, 0.68);
  font-size: 0.76rem;
}

.admin-sidebar-site-link:hover {
  background: rgba(255, 254, 250, 0.06);
  color: var(--white);
}

.admin-sidebar-actions button {
  border: 0;
  padding: 0.46rem 0.68rem;
  background: transparent;
  color: rgba(255, 254, 250, 0.58);
  font-size: 0.76rem;
  text-align: left;
}

.admin-sidebar-actions button:hover {
  background: rgba(255, 254, 250, 0.06);
  color: var(--white);
}

.admin-sidebar-actions .admin-logout {
  border-left: 0;
  color: #d0a75c;
}

.admin-empty-page {
  min-height: 100vh;
}

.admin-page-title {
  padding-top: 0;
}

.admin-page-title .kicker {
  margin: 0;
  color: var(--muted);
}

.gestion-shell {
  display: block;
}

.gestion-page-title h1 {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.55rem, 2.5vw, 2.45rem);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.gestion-private .admin-sidebar-nav {
  margin-top: 0.35rem;
}

.gestion-planning {
  width: min(1120px, 100%);
  margin-top: clamp(1rem, 2.4vw, 1.8rem);
}

.gestion-planning-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(18, 18, 15, 0.1);
  padding-bottom: 0.95rem;
}

.gestion-planning-tabs button {
  border: 1px solid rgba(18, 18, 15, 0.08);
  border-radius: 999px;
  padding: 0.72rem 0.98rem;
  background: rgba(255, 254, 250, 0.64);
  color: rgba(23, 23, 19, 0.56);
  font-size: 0.78rem;
  font-weight: 850;
}

.gestion-planning-tabs button:hover {
  border-color: rgba(18, 18, 15, 0.18);
  color: var(--ink);
}

.gestion-planning-tabs button.is-active {
  background: #11110f;
  color: #fffefa;
}

.gestion-planning-result {
  min-height: 1.1rem;
  margin: 0.7rem 0 0;
  color: #a63c2f;
  font-size: 0.82rem;
  font-weight: 720;
}

.gestion-planning-result.is-success {
  color: #4e7852;
}

.gestion-planning-list {
  display: grid;
  gap: 0.62rem;
  margin-top: 0.45rem;
}

.gestion-planning-day-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.1rem 0 0.2rem;
}

.gestion-planning-day-head p {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.gestion-planning-day-head span {
  color: rgba(23, 23, 19, 0.42);
  font-size: 0.72rem;
  font-weight: 850;
}

.gestion-planning-row {
  display: grid;
  grid-template-columns: 1.45rem 3.25rem minmax(8.5rem, 11.5rem) minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  border: 1px solid rgba(18, 18, 15, 0.1);
  border-radius: 18px;
  padding: 0.62rem;
  background: rgba(255, 254, 250, 0.58);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.gestion-planning-row:hover,
.gestion-planning-row:focus-within {
  border-color: rgba(18, 18, 15, 0.18);
  box-shadow: 0 12px 28px rgba(17, 17, 15, 0.05);
}

.gestion-planning-row.is-dragging {
  opacity: 0.46;
}

.gestion-planning-row.is-drag-over-before,
.gestion-planning-row.is-drag-over-after {
  border-color: rgba(193, 145, 60, 0.72);
  box-shadow: 0 0 0 3px rgba(193, 145, 60, 0.1);
}

.gestion-planning-row.is-drag-over-before {
  box-shadow: inset 0 3px 0 rgba(193, 145, 60, 0.9), 0 0 0 3px rgba(193, 145, 60, 0.1);
}

.gestion-planning-row.is-drag-over-after {
  box-shadow: inset 0 -3px 0 rgba(193, 145, 60, 0.9), 0 0 0 3px rgba(193, 145, 60, 0.1);
}

.gestion-planning-row.is-saving {
  border-color: rgba(193, 145, 60, 0.3);
}

.gestion-planning-row.is-saved {
  border-color: rgba(78, 120, 82, 0.32);
}

.gestion-planning-grip {
  display: inline-grid;
  place-items: center;
  color: rgba(23, 23, 19, 0.28);
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: -0.22em;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.gestion-planning-row.is-dragging .gestion-planning-grip {
  cursor: grabbing;
}

.gestion-planning-row input {
  min-height: 2.75rem;
  border: 1px solid rgba(18, 18, 15, 0.08);
  border-radius: 14px;
  padding: 0 0.8rem;
  background: rgba(255, 254, 250, 0.8);
  color: var(--ink);
  cursor: text;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 760;
}

.gestion-planning-row input:focus {
  outline: 2px solid rgba(193, 145, 60, 0.22);
  outline-offset: 2px;
}

.gestion-planning-emoji {
  padding: 0 !important;
  text-align: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
  font-size: 1.15rem !important;
}

.gestion-planning-time {
  color: rgba(23, 23, 19, 0.64) !important;
}

.gestion-planning-title {
  font-size: 0.95rem !important;
}

.gestion-planning-save,
.gestion-planning-delete,
.gestion-planning-reset {
  min-height: 2.75rem;
  border: 0;
  border-radius: 999px;
  padding: 0 0.9rem;
  font-size: 0.74rem;
  font-weight: 880;
  white-space: nowrap;
}

.gestion-planning-save {
  background: #11110f;
  color: #fffefa;
}

.gestion-planning-delete {
  background: rgba(166, 60, 47, 0.07);
  color: #a63c2f;
}

.gestion-planning-reset {
  background: rgba(18, 18, 15, 0.06);
  color: rgba(23, 23, 19, 0.58);
}

.gestion-planning-add {
  grid-template-columns: 1.45rem 3.25rem minmax(8.5rem, 11.5rem) minmax(0, 1fr) auto auto;
  border-style: dashed;
  background: rgba(255, 254, 250, 0.36);
  cursor: default;
}

.gestion-planning-add .gestion-planning-grip {
  color: rgba(23, 23, 19, 0.46);
  cursor: default;
  font-size: 1rem;
  letter-spacing: 0;
}

.gestion-planning-trash {
  position: fixed;
  z-index: 1500;
  top: 50%;
  right: clamp(1rem, 3.5vw, 3rem);
  display: grid;
  place-items: center;
  width: 7.4rem;
  min-height: 7.4rem;
  border: 1px solid rgba(166, 60, 47, 0.2);
  border-radius: 28px;
  padding: 1rem;
  background: rgba(255, 254, 250, 0.92);
  box-shadow: 0 24px 64px rgba(17, 17, 15, 0.18);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(0.8rem, -50%) scale(0.94);
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.gestion-planning.is-dragging .gestion-planning-trash {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%) scale(1);
}

.gestion-planning-trash.is-over {
  border-color: rgba(166, 60, 47, 0.62);
  background: rgba(166, 60, 47, 0.09);
  transform: translate(0, -50%) scale(1.04);
}

.gestion-planning-trash span {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.gestion-planning-trash small {
  color: rgba(166, 60, 47, 0.72);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.15;
}

.gestion-budget {
  width: min(1180px, 100%);
  margin-top: clamp(1.15rem, 2.4vw, 2rem);
}

.gestion-budget-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.gestion-budget-kicker {
  margin: 0 0 0.32rem;
  color: var(--gold-strong);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gestion-budget-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 2.15rem);
  font-weight: 880;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.gestion-budget-year {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(18, 18, 15, 0.08);
  border-radius: 999px;
  padding: 0.28rem;
  background: rgba(255, 254, 250, 0.62);
}

.gestion-budget-year button {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(23, 23, 19, 0.58);
  font-size: 1.2rem;
  font-weight: 900;
}

.gestion-budget-year button:hover {
  background: rgba(18, 18, 15, 0.06);
  color: var(--ink);
}

.gestion-budget-year strong {
  min-width: 3.35rem;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  text-align: center;
}

.gestion-budget-months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.34rem;
  border-bottom: 1px solid rgba(18, 18, 15, 0.1);
  padding-bottom: 0.95rem;
}

.gestion-budget-months button {
  display: grid;
  gap: 0.2rem;
  min-height: 3.25rem;
  border: 1px solid rgba(18, 18, 15, 0.08);
  border-radius: 16px;
  padding: 0.58rem 0.35rem;
  background: rgba(255, 254, 250, 0.58);
  color: rgba(23, 23, 19, 0.58);
  text-align: center;
}

.gestion-budget-months button:hover {
  border-color: rgba(18, 18, 15, 0.18);
  color: var(--ink);
}

.gestion-budget-months button.is-active {
  border-color: #11110f;
  background: #11110f;
  color: #fffefa;
}

.gestion-budget-months span {
  font-size: 0.7rem;
  font-weight: 900;
}

.gestion-budget-months small {
  overflow: hidden;
  opacity: 0.58;
  font-size: 0.56rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gestion-budget-result {
  min-height: 1.1rem;
  margin: 0.7rem 0 0;
  color: #a63c2f;
  font-size: 0.82rem;
  font-weight: 720;
}

.gestion-budget-result.is-success {
  color: #4e7852;
}

.gestion-budget-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
  margin: 0.5rem 0 1rem;
}

.gestion-budget-summary article {
  border: 1px solid rgba(18, 18, 15, 0.08);
  border-radius: 22px;
  padding: 1rem;
  background: rgba(255, 254, 250, 0.72);
  box-shadow: 0 14px 34px rgba(17, 17, 15, 0.045);
}

.gestion-budget-summary span {
  display: block;
  margin-bottom: 0.42rem;
  color: rgba(23, 23, 19, 0.48);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gestion-budget-summary strong {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.055em;
}

.gestion-budget-summary .is-balance {
  border-color: rgba(193, 145, 60, 0.24);
  background:
    radial-gradient(circle at 88% 12%, rgba(193, 145, 60, 0.18), transparent 42%),
    rgba(255, 254, 250, 0.82);
}

.gestion-budget-summary .is-balance.is-negative strong {
  color: #a63c2f;
}

.gestion-budget-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: start !important;
}

.gestion-budget-card {
  position: relative;
  z-index: 0;
  align-self: start !important;
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
  height: fit-content;
  min-height: 0;
  border: 1px solid rgba(18, 18, 15, 0.08);
  border-radius: 24px;
  padding: 1rem;
  background: rgba(255, 254, 250, 0.68);
  box-shadow: 0 16px 40px rgba(17, 17, 15, 0.045);
}

.gestion-budget-card.is-emoji-open {
  z-index: 80;
}

.gestion-budget-card:first-child {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.88), rgba(255, 254, 250, 0.62)),
    radial-gradient(circle at 10% 10%, rgba(78, 120, 82, 0.14), transparent 44%);
}

.gestion-budget-card > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(18, 18, 15, 0.08);
  padding-bottom: 0.82rem;
}

.gestion-budget-card > header > div {
  display: flex;
  align-items: start;
  gap: 0.7rem;
}

.gestion-budget-card > header span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 2.3rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 16px;
  background: rgba(18, 18, 15, 0.05);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.22rem;
}

.gestion-budget-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.04rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.gestion-budget-card p {
  margin: 0.18rem 0 0;
  color: rgba(23, 23, 19, 0.46);
  font-size: 0.72rem;
  font-weight: 710;
}

.gestion-budget-card > header strong {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
  white-space: nowrap;
}

.gestion-budget-lines {
  display: grid;
  gap: 0.46rem;
  align-content: start;
}

.gestion-budget-row,
.gestion-budget-add {
  position: relative;
  display: grid;
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: 2.65rem minmax(0, 1fr) minmax(8.8rem, 11rem) minmax(7.6rem, 9rem) 2.3rem;
  gap: 0.42rem;
  align-items: center;
  align-self: start;
  min-height: 4.55rem;
}

.gestion-budget-row {
  border: 1px solid rgba(18, 18, 15, 0.08);
  border-radius: 17px;
  padding: 0.34rem;
  background: rgba(255, 254, 250, 0.62);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.gestion-budget-row:hover,
.gestion-budget-row:focus-within {
  border-color: rgba(18, 18, 15, 0.17);
  box-shadow: 0 10px 24px rgba(17, 17, 15, 0.045);
}

.gestion-budget-row.is-saving {
  border-color: rgba(193, 145, 60, 0.3);
}

.gestion-budget-row.is-saved {
  border-color: rgba(78, 120, 82, 0.34);
}

.gestion-budget-row input,
.gestion-budget-add input {
  min-height: 2.48rem;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 0 0.65rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 850;
}

.gestion-budget-row input:focus,
.gestion-budget-add input:focus {
  border-color: rgba(193, 145, 60, 0.28);
  background: #fffefa;
  outline: 0;
}

.gestion-budget-emoji-picker {
  position: relative;
  z-index: 5;
}

.gestion-budget-emoji-picker.is-open {
  z-index: 120;
}

.gestion-budget-emoji-button {
  display: inline-grid;
  place-items: center;
  width: 2.34rem;
  height: 2.34rem;
  border: 1px solid rgba(18, 18, 15, 0.08);
  border-radius: 13px;
  padding: 0;
  background: rgba(255, 254, 250, 0.7);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.12rem;
  line-height: 1;
}

.gestion-budget-emoji-button:hover,
.gestion-budget-emoji-picker.is-open .gestion-budget-emoji-button {
  border-color: rgba(193, 145, 60, 0.34);
  background: #fffefa;
  box-shadow: 0 0 0 3px rgba(193, 145, 60, 0.09);
}

.gestion-budget-emoji-menu {
  position: absolute;
  z-index: 500;
  top: calc(100% + 0.48rem);
  left: 0;
  display: none;
  width: min(292px, 82vw);
  border: 1px solid rgba(18, 18, 15, 0.1);
  border-radius: 20px;
  padding: 0.62rem;
  background: #fffefa;
  box-shadow: 0 24px 54px rgba(17, 17, 15, 0.16);
}

.gestion-budget-emoji-picker.is-open .gestion-budget-emoji-menu {
  display: grid;
  gap: 0.55rem;
}

.gestion-budget-emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.28rem;
}

.gestion-budget-emoji-grid button {
  display: inline-grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.16rem;
  line-height: 1;
}

.gestion-budget-emoji-grid button:hover,
.gestion-budget-emoji-grid button.is-active {
  border-color: rgba(193, 145, 60, 0.42);
  background: rgba(193, 145, 60, 0.12) !important;
}

.gestion-budget-emoji-custom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.34rem;
}

.gestion-budget-emoji-custom input {
  min-height: 2.35rem;
  border: 1px solid rgba(18, 18, 15, 0.1);
  border-radius: 999px;
  padding: 0 0.78rem;
  background: #fffefa;
  color: var(--ink);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1rem;
}

.gestion-budget-emoji-custom button {
  display: inline-grid;
  place-items: center;
  min-width: 2.7rem;
  height: 2.35rem;
  border: 0;
  border-radius: 999px;
  padding: 0 0.7rem;
  background: #11110f;
  color: #fffefa;
  font-size: 0.72rem;
  font-weight: 900;
}

.gestion-budget-row-emoji {
  padding: 0 !important;
  text-align: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
  font-size: 1.1rem !important;
}

.gestion-budget-row-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.gestion-budget-row-date {
  color: rgba(23, 23, 19, 0.66) !important;
  font-size: 0.95rem !important;
  font-weight: 840 !important;
}

.gestion-budget-row-delete,
.gestion-budget-add > button {
  display: inline-grid;
  place-items: center;
  width: 2.22rem;
  height: 2.22rem;
  border: 0;
  border-radius: 50%;
  padding: 0;
  font-size: 1rem;
  font-weight: 900;
}

.gestion-budget-row-delete {
  background: rgba(166, 60, 47, 0.07);
  color: rgba(166, 60, 47, 0.74);
}

.gestion-budget-row-delete:hover {
  background: rgba(166, 60, 47, 0.12);
  color: #a63c2f;
}

.gestion-budget-add {
  border: 1px dashed rgba(18, 18, 15, 0.13);
  border-radius: 17px;
  padding: 0.34rem;
  background: rgba(255, 254, 250, 0.34);
}

.gestion-budget-add input::placeholder {
  color: rgba(23, 23, 19, 0.34);
}

.gestion-budget-add > button {
  background: #11110f;
  color: #fffefa;
}

.gestion-budget-add > button:disabled {
  opacity: 0.48;
}

.gestion-budget-empty {
  border: 1px dashed rgba(18, 18, 15, 0.12);
  border-radius: 17px;
  padding: 0.85rem;
  background: rgba(255, 254, 250, 0.3);
  color: rgba(23, 23, 19, 0.42);
  font-size: 0.78rem;
  font-weight: 760;
}

.gestion-todo {
  width: min(1040px, 100%);
  margin-top: clamp(1.15rem, 2.4vw, 2rem);
}

.gestion-todo-result {
  min-height: 1.1rem;
  margin: 0.7rem 0 0;
  color: #a63c2f;
  font-size: 0.82rem;
  font-weight: 720;
}

.gestion-todo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(18, 18, 15, 0.1);
  padding-bottom: 0.9rem;
}

.gestion-todo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.gestion-todo-tabs button,
.gestion-history-open {
  border: 1px solid rgba(18, 18, 15, 0.08);
  border-radius: 999px;
  padding: 0.72rem 0.95rem;
  background: rgba(255, 254, 250, 0.64);
  color: rgba(23, 23, 19, 0.58);
  font-size: 0.78rem;
  font-weight: 850;
}

.gestion-todo-tabs button.is-active {
  background: #11110f;
  color: #fffefa;
}

.gestion-history-open {
  white-space: nowrap;
}

.gestion-history-open:hover,
.gestion-todo-tabs button:hover {
  border-color: rgba(18, 18, 15, 0.18);
  color: var(--ink);
}

.gestion-todo-tabs button.is-active:hover {
  color: #fffefa;
}

.gestion-todo-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.85rem;
  color: rgba(23, 23, 19, 0.48);
  font-size: 0.78rem;
  font-weight: 750;
}

.gestion-todo-summary strong {
  color: var(--ink);
}

.gestion-task-list {
  display: grid;
  gap: 0.62rem;
  margin-top: 0.45rem;
}

.gestion-task {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 0.68rem;
  align-items: center;
  border: 1px solid rgba(18, 18, 15, 0.1);
  border-radius: 18px;
  padding: 0.9rem 0.95rem;
  background: rgba(255, 254, 250, 0.58);
  cursor: grab;
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.gestion-task:hover {
  border-color: rgba(18, 18, 15, 0.18);
  box-shadow: 0 12px 28px rgba(17, 17, 15, 0.06);
}

.gestion-task.is-dragging {
  opacity: 0.48;
  cursor: grabbing;
}

.gestion-task.is-drag-over-before,
.gestion-task.is-drag-over-after {
  border-color: rgba(193, 145, 60, 0.72);
  box-shadow: 0 0 0 3px rgba(193, 145, 60, 0.12);
}

.gestion-task.is-drag-over-before {
  transform: translateY(-2px);
}

.gestion-task.is-drag-over-after {
  transform: translateY(2px);
}

.gestion-task-emoji-wrap {
  position: relative;
}

.gestion-task-emoji-button {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(18, 18, 15, 0.08);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.82);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.16rem;
  line-height: 1;
  cursor: pointer;
}

.gestion-task-emoji-button:hover {
  border-color: rgba(18, 18, 15, 0.18);
  background: #fffefa;
}

.gestion-task-emoji-menu {
  position: absolute;
  z-index: 24;
  top: calc(100% + 0.5rem);
  left: 0;
  display: none;
  width: min(280px, 82vw);
  border: 1px solid rgba(18, 18, 15, 0.1);
  border-radius: 20px;
  padding: 0.62rem;
  background: #fffefa;
  box-shadow: 0 24px 54px rgba(17, 17, 15, 0.16);
}

.gestion-task-emoji-wrap.is-open .gestion-task-emoji-menu {
  display: grid;
  gap: 0.55rem;
}

.gestion-task-emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.28rem;
}

.gestion-task-emoji-grid button {
  display: inline-grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(18, 18, 15, 0.04);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.15rem;
  line-height: 1;
}

.gestion-task-emoji-grid button:hover,
.gestion-task-emoji-grid button.is-active {
  border-color: rgba(193, 145, 60, 0.42);
  background: rgba(193, 145, 60, 0.12);
}

.gestion-task-emoji-default {
  border: 1px solid rgba(18, 18, 15, 0.08);
  border-radius: 999px;
  padding: 0.62rem 0.78rem;
  background: rgba(255, 254, 250, 0.74);
  color: rgba(23, 23, 19, 0.62);
  font-size: 0.74rem;
  font-weight: 850;
}

.gestion-task-emoji-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem;
}

.gestion-task-emoji-form input {
  min-height: 2.35rem;
  border: 1px solid rgba(18, 18, 15, 0.1);
  border-radius: 999px;
  padding: 0 0.8rem;
  background: #fffefa;
  color: var(--ink);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1rem;
}

.gestion-task-emoji-form button {
  border: 0;
  border-radius: 999px;
  padding: 0 0.8rem;
  background: #11110f;
  color: #fffefa;
  font-size: 0.74rem;
  font-weight: 850;
}

.gestion-task-main {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.gestion-task-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gestion-task-main small {
  color: rgba(23, 23, 19, 0.46);
  font-size: 0.75rem;
  font-weight: 700;
}

.gestion-priority-button {
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.64rem;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.gestion-priority-button.is-urgent {
  background: rgba(166, 60, 47, 0.12);
  color: #a63c2f;
}

.gestion-priority-button.is-important {
  background: rgba(193, 145, 60, 0.16);
  color: #9b6f28;
}

.gestion-priority-button.is-normal {
  background: rgba(17, 17, 15, 0.08);
  color: rgba(23, 23, 19, 0.72);
}

.gestion-priority-button.is-faible {
  background: rgba(78, 120, 82, 0.12);
  color: #4e7852;
}

.gestion-task-menu-wrap {
  position: relative;
}

.gestion-task-menu-button {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 18, 15, 0.05);
  color: var(--ink);
  line-height: 0;
}

.gestion-task-menu-button span,
.gestion-task-menu-button span::before,
.gestion-task-menu-button span::after {
  display: block;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.gestion-task-menu-button span {
  position: relative;
}

.gestion-task-menu-button span::before,
.gestion-task-menu-button span::after {
  position: absolute;
  top: 0;
}

.gestion-task-menu-button span::before {
  left: -0.48rem;
}

.gestion-task-menu-button span::after {
  right: -0.48rem;
}

.gestion-task-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.45rem);
  right: 0;
  display: none;
  min-width: 230px;
  border: 1px solid rgba(18, 18, 15, 0.1);
  border-radius: 18px;
  padding: 0.42rem;
  background: #fffefa;
  box-shadow: 0 24px 54px rgba(17, 17, 15, 0.16);
}

.gestion-task-menu-wrap.is-open .gestion-task-menu {
  display: grid;
  gap: 0.26rem;
}

.gestion-task-menu button,
.gestion-task-menu label {
  border: 0;
  border-radius: 13px;
  padding: 0.72rem 0.8rem;
  background: transparent;
  color: rgba(23, 23, 19, 0.72);
  font-size: 0.83rem;
  font-weight: 800;
  text-align: left;
}

.gestion-task-menu button:hover,
.gestion-task-menu label:hover {
  background: rgba(18, 18, 15, 0.05);
  color: var(--ink);
}

.gestion-task-menu label {
  display: grid;
  gap: 0.42rem;
}

.gestion-task-menu label span {
  color: rgba(23, 23, 19, 0.42);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gestion-task-menu select {
  min-height: 2.35rem;
  border: 1px solid rgba(18, 18, 15, 0.1);
  border-radius: 999px;
  padding: 0 0.74rem;
  background: #fffefa;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 780;
}

.gestion-task-menu .is-danger {
  color: #a63c2f;
}

.gestion-task-add-row {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  width: 100%;
  border: 1px dashed rgba(18, 18, 15, 0.14);
  border-radius: 17px;
  padding: 0.9rem 1rem;
  background: rgba(255, 254, 250, 0.46);
  color: rgba(23, 23, 19, 0.46);
  text-align: left;
}

.gestion-task-add-row span {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: rgba(17, 17, 15, 0.08);
  color: var(--ink);
  font-weight: 900;
}

.gestion-task-add-row strong {
  font-size: 0.92rem;
}

.gestion-task-add-form {
  border: 1px solid rgba(18, 18, 15, 0.1);
  border-radius: 18px;
  padding: 0.72rem;
  background: #fffefa;
}

.gestion-task-add-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(145px, 175px) auto auto;
  gap: 0.58rem;
  align-items: center;
}

.gestion-task-add-grid input,
.gestion-task-add-grid select {
  min-height: 2.75rem;
  border: 1px solid rgba(18, 18, 15, 0.1);
  border-radius: 999px;
  padding: 0 0.9rem;
  background: #fffefa;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 760;
}

.gestion-task-add-grid input::placeholder {
  color: rgba(23, 23, 19, 0.34);
}

.gestion-task-add-grid .button {
  min-height: 2.75rem;
  padding-inline: 1rem;
  white-space: nowrap;
}

.gestion-task-empty {
  margin: 0;
  border: 1px dashed rgba(18, 18, 15, 0.13);
  border-radius: 16px;
  padding: 1rem;
  color: rgba(23, 23, 19, 0.46);
  font-size: 0.9rem;
  font-weight: 700;
}

.gestion-history-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(17, 17, 15, 0.46);
  backdrop-filter: blur(14px);
}

.gestion-history-modal[hidden] {
  display: none;
}

.gestion-history-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(78vh, 760px);
  overflow: auto;
  border: 1px solid rgba(18, 18, 15, 0.1);
  border-radius: 26px;
  padding: clamp(1.35rem, 3vw, 2rem);
  background: #fffefa;
  box-shadow: 0 34px 84px rgba(17, 17, 15, 0.24);
}

.gestion-history-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(18, 18, 15, 0.1);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 1.3rem;
}

.gestion-history-panel > p {
  margin: 0 0 0.45rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gestion-history-panel h2 {
  margin: 0 0 1.25rem;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.gestion-history-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  border-top: 1px solid rgba(18, 18, 15, 0.08);
  border-bottom: 1px solid rgba(18, 18, 15, 0.08);
  padding: 0.72rem 0;
}

.gestion-history-tools label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(23, 23, 19, 0.46);
  font-size: 0.72rem;
  font-weight: 850;
}

.gestion-history-tools label span {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gestion-history-tools select {
  min-height: 2.25rem;
  border: 1px solid rgba(18, 18, 15, 0.1);
  border-radius: 999px;
  padding: 0 0.75rem;
  background: #fffefa;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.gestion-history-tools strong {
  color: rgba(23, 23, 19, 0.48);
  font-size: 0.74rem;
  font-weight: 800;
}

.gestion-history-list {
  display: grid;
  gap: 0.58rem;
}

.gestion-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid rgba(18, 18, 15, 0.08);
  padding: 0.8rem 0;
}

.gestion-history-item strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gestion-history-item small {
  color: rgba(23, 23, 19, 0.48);
  font-size: 0.72rem;
  font-weight: 760;
}

.gestion-history-item dl {
  display: flex;
  gap: 1rem;
  margin: 0;
  color: rgba(23, 23, 19, 0.56);
  font-size: 0.72rem;
  font-weight: 760;
}

.gestion-history-item dt {
  margin: 0 0 0.1rem;
  color: rgba(23, 23, 19, 0.36);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gestion-history-item dd {
  margin: 0;
  white-space: nowrap;
}

.gestion-history-delete {
  border: 1px solid rgba(166, 60, 47, 0.14);
  border-radius: 999px;
  padding: 0.52rem 0.74rem;
  background: rgba(166, 60, 47, 0.06);
  color: #a63c2f;
  font-size: 0.72rem;
  font-weight: 850;
}

.gestion-history-delete:hover {
  background: rgba(166, 60, 47, 0.11);
}

.gestion-history-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.gestion-history-pagination > div {
  display: flex;
  align-items: center;
  gap: 0.28rem;
}

.gestion-history-pagination button {
  min-width: 2.2rem;
  min-height: 2.2rem;
  border: 1px solid rgba(18, 18, 15, 0.1);
  border-radius: 999px;
  padding: 0 0.72rem;
  background: #fffefa;
  color: rgba(23, 23, 19, 0.62);
  font-size: 0.76rem;
  font-weight: 850;
}

.gestion-history-pagination button.is-active {
  border-color: #11110f;
  background: #11110f;
  color: #fffefa;
}

.gestion-history-pagination button:disabled {
  cursor: default;
  opacity: 0.38;
}

.gestion-history-pagination span {
  color: rgba(23, 23, 19, 0.38);
  font-size: 0.8rem;
  font-weight: 850;
}

.admin-content-manager {
  margin-top: 2rem;
}

.admin-content-tabs {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.admin-content-tabs::-webkit-scrollbar {
  display: none;
}

.admin-content-tabs button {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  padding: 0.8rem 0 0.9rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-content-tabs button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 150ms ease, transform 150ms ease;
}

.admin-content-tabs button:hover,
.admin-content-tabs button.is-active {
  color: var(--ink);
}

.admin-content-tabs button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.admin-gallery-panel[hidden],
.admin-gallery-empty[hidden],
.admin-gallery-upload-modal[hidden],
.admin-gallery-confirm-modal[hidden],
.admin-gallery-file-preview[hidden],
.admin-gallery-viewer[hidden] {
  display: none !important;
}

.admin-gallery-panel {
  margin-top: 1.5rem;
}

.admin-gallery-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-gallery-panel-head h2 {
  margin: 0 0 0.15rem;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}

.admin-gallery-panel-head span {
  color: var(--muted);
  font-size: 0.72rem;
}

.admin-gallery-format-sections {
  display: grid;
  gap: clamp(2.5rem, 4.5vw, 4.5rem);
}

.admin-gallery-format-section {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.admin-gallery-format-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-gallery-format-head p {
  margin: 0 0 0.15rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
}

.admin-gallery-format-head p span {
  margin-left: 0.35rem;
  color: var(--gold-strong);
  font-family: Inter, Arial, sans-serif;
  font-size: 0.58em;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.admin-gallery-format-head small {
  color: var(--muted);
  font-size: 0.66rem;
}

.admin-gallery-add {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  transition: background 150ms ease, color 150ms ease;
}

.admin-gallery-add:hover {
  background: transparent;
  color: var(--ink);
}

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: clamp(0.55rem, 0.9vw, 0.9rem);
}

.admin-gallery-card {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  cursor: grab;
  text-align: left;
  transition: border-color 150ms ease, transform 150ms ease;
}

.admin-gallery-card:hover {
  border-color: rgba(143, 106, 43, 0.58);
  transform: translateY(-2px);
}

.admin-gallery-card:active {
  cursor: grabbing;
}

.admin-gallery-card-view {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.admin-gallery-card-view:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.admin-gallery-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--line);
}

.admin-gallery-card.is-portrait .admin-gallery-card-image {
  aspect-ratio: 2 / 3;
}

.admin-gallery-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 160ms ease, opacity 160ms ease;
}

.admin-gallery-card:hover .admin-gallery-card-image img {
  filter: brightness(0.78);
}

.admin-gallery-card.is-hidden .admin-gallery-card-image img {
  filter: grayscale(0.55);
  opacity: 0.42;
}

.admin-gallery-card-actions {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  display: flex;
  gap: 0.35rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.admin-gallery-card:hover .admin-gallery-card-actions,
.admin-gallery-card:focus-within .admin-gallery-card-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.admin-gallery-card-action {
  display: grid;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 254, 250, 0.28);
  border-radius: 50%;
  place-items: center;
  padding: 0;
  background: rgba(13, 13, 12, 0.78);
  color: var(--white);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  transition: background 140ms ease, color 140ms ease;
}

.admin-gallery-card-action svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.admin-gallery-card-action:hover {
  background: var(--white);
  color: var(--ink);
}

.admin-gallery-card-action-delete:hover {
  background: #9d3d35;
  color: var(--white);
}

.admin-gallery-card.is-hidden .admin-gallery-card-action-visibility {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.admin-gallery-card.is-dragging {
  border-color: var(--gold);
  opacity: 0.35;
  transform: scale(0.97);
}

.admin-gallery-card-caption {
  display: grid;
  gap: 0.12rem;
  padding: 0.55rem 0.6rem 0.65rem;
}

.admin-gallery-card strong {
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-gallery-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.56rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-gallery-empty {
  border: 1px dashed rgba(111, 106, 96, 0.35);
  padding: 2.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.admin-gallery-upload-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  overflow-y: auto;
  place-items: center;
  padding: 2rem;
  background: rgba(13, 13, 12, 0.82);
  backdrop-filter: blur(12px);
}

.admin-gallery-upload-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: clamp(2rem, 4vw, 3.25rem);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.admin-gallery-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
}

.admin-gallery-upload-panel > .kicker {
  margin-bottom: 0.65rem;
}

.admin-gallery-upload-panel > h2 {
  margin-bottom: 1.75rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.admin-gallery-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.admin-gallery-form-field {
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.admin-gallery-form-field-wide,
.admin-gallery-file-preview {
  grid-column: 1 / -1;
}

.admin-gallery-form label {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.admin-gallery-form input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.65rem 0;
  background: transparent;
  color: var(--ink);
}

.admin-gallery-form input:focus {
  border-bottom-color: var(--gold-strong);
  outline: 0;
}

.admin-gallery-form-section-label {
  margin: 0.35rem 0 -0.15rem;
  color: rgba(111, 106, 96, 0.58);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.admin-gallery-form input[type="file"] {
  border: 1px dashed rgba(111, 106, 96, 0.45);
  padding: 0.8rem;
  background: rgba(255, 254, 250, 0.55);
  font-size: 0.75rem;
}

.admin-gallery-file-preview {
  width: min(240px, 100%);
}

.admin-gallery-file-preview img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.admin-gallery-upload-modal[data-admin-gallery-orientation="portrait"] .admin-gallery-file-preview {
  width: min(180px, 100%);
}

.admin-gallery-upload-modal[data-admin-gallery-orientation="portrait"] .admin-gallery-file-preview img {
  aspect-ratio: 2 / 3;
}

.admin-gallery-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.admin-gallery-form-actions > button:first-child {
  border: 0;
  padding: 0.75rem 1rem;
  background: transparent;
  color: var(--muted);
}

.admin-gallery-form-actions .button {
  min-height: 44px;
}

.admin-gallery-form-actions .button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.admin-gallery-form-result {
  min-height: 1.25rem;
  margin: 0;
  color: var(--gold-strong);
  font-size: 0.72rem;
}

.admin-gallery-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(13, 13, 12, 0.82);
  backdrop-filter: blur(12px);
}

.admin-gallery-confirm-panel {
  position: relative;
  width: min(480px, 100%);
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.admin-gallery-confirm-panel > .kicker {
  margin-bottom: 0.65rem;
}

.admin-gallery-confirm-panel h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  white-space: nowrap;
}

.admin-gallery-confirm-panel > p:not(.kicker, .admin-gallery-form-result) {
  color: var(--muted);
  line-height: 1.65;
}

.admin-gallery-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 2rem;
}

.admin-gallery-confirm-actions button {
  border: 1px solid var(--line);
  padding: 0.7rem 1rem;
  background: transparent;
}

.admin-gallery-confirm-actions [data-admin-gallery-confirm-delete],
.admin-gallery-confirm-actions [data-journal-confirm-delete] {
  border-color: #8f352e;
  background: #8f352e;
  color: var(--white);
}

.admin-gallery-confirm-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.admin-gallery-viewer {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 5vh 6vw;
  background: rgba(8, 8, 7, 0.94);
}

.admin-gallery-viewer-content {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(82vw, calc(72vh * 1.5));
  max-height: 90vh;
  background: transparent;
  box-shadow: none;
}

.admin-gallery-viewer-content > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: transparent;
}

.admin-gallery-viewer-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  align-items: center;
  gap: 2rem;
  padding: 1rem 1.25rem;
  background: var(--paper);
}

.admin-gallery-viewer-details h2 {
  margin: 0 0 0.15rem;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.admin-gallery-viewer-context {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.admin-gallery-viewer-context span + span::before {
  margin-right: 0.3rem;
  content: "-";
}

.admin-gallery-viewer-technical {
  max-width: 460px;
  margin: 0;
  color: rgba(30, 29, 26, 0.36);
  font-size: 0.5rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: right;
}

.admin-gallery-viewer-technical:empty {
  display: none;
}

.admin-gallery-viewer.is-portrait .admin-gallery-viewer-content {
  grid-template-columns: auto minmax(240px, 290px);
  grid-template-rows: minmax(0, 1fr);
  width: auto;
  height: min(82vh, 880px);
  max-width: 84vw;
  max-height: 82vh;
}

.admin-gallery-viewer.is-portrait .admin-gallery-viewer-content > img {
  width: auto;
  height: 100%;
  max-width: min(56vw, 587px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.admin-gallery-viewer.is-portrait .admin-gallery-viewer-details {
  grid-template-columns: 1fr;
  align-content: center;
  align-items: start;
  gap: 1.5rem;
  min-width: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

.admin-gallery-viewer.is-portrait .admin-gallery-viewer-technical {
  max-width: 100%;
  text-align: left;
}

.admin-gallery-viewer-close,
.admin-gallery-viewer-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 254, 250, 0.2);
  border-radius: 50%;
  place-items: center;
  background: rgba(13, 13, 12, 0.72);
  color: var(--white);
}

.admin-gallery-viewer-close {
  top: 1.1rem;
  right: 1.1rem;
  font-size: 1.2rem;
}

.admin-gallery-viewer-nav {
  top: 50%;
  font-size: 1.05rem;
  transform: translateY(-50%);
}

.admin-gallery-viewer-prev {
  left: 1.1rem;
}

.admin-gallery-viewer-next {
  right: 1.1rem;
}

.admin-gallery-viewer-close:hover,
.admin-gallery-viewer-nav:hover {
  background: var(--white);
  color: var(--ink);
}

.admin-client-galleries {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.admin-client-galleries-head {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
}

.admin-client-galleries-head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  letter-spacing: -0.045em;
}

.admin-client-galleries-head p,
.admin-client-gallery-empty {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-client-gallery-list {
  display: grid;
  gap: 1.15rem;
}

.admin-client-gallery-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(0.85rem, 1.6vw, 1.1rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(245, 241, 232, 0.5)),
    var(--paper);
  box-shadow: 0 18px 55px rgba(20, 18, 14, 0.06);
}

.admin-client-gallery-preview,
.admin-client-gallery-thumbs {
  min-height: 220px;
  columns: 4 78px;
  column-gap: 0.45rem;
  border-radius: 22px;
  padding: 0.55rem;
  background:
    radial-gradient(circle at 20% 0, rgba(196, 147, 63, 0.26), transparent 32%),
    #11110f;
  overflow: hidden;
}

.admin-client-gallery-thumbs {
  order: -1;
  grid-row: 1 / span 2;
}

.admin-client-gallery-info {
  display: grid;
  gap: 1.15rem;
  align-content: center;
  min-width: 0;
  padding: clamp(0.75rem, 1.8vw, 1.25rem) clamp(0.4rem, 1vw, 0.8rem);
}

.admin-client-gallery-card-main {
  display: grid;
  gap: 1rem;
  justify-items: end;
  text-align: right;
}

.admin-client-gallery-badge {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: var(--gold-strong);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-client-gallery-card h3 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.3rem);
  letter-spacing: -0.055em;
}

.admin-client-gallery-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.admin-client-gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.admin-client-gallery-actions button,
.admin-client-gallery-actions a,
.admin-client-gallery-form-actions button,
.admin-client-gallery-modal-panel input {
  font: inherit;
}

.admin-client-gallery-actions button,
.admin-client-gallery-actions a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.64rem 0.95rem;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.admin-client-gallery-actions button:hover,
.admin-client-gallery-actions a:hover {
  border-color: rgba(17, 17, 15, 0.24);
  background: var(--white);
  transform: translateY(-1px);
}

.admin-client-gallery-actions .is-danger {
  color: #9b352e;
}

.admin-client-gallery-link {
  display: grid;
  gap: 0.35rem;
  text-align: right;
}

.admin-client-gallery-link span,
.admin-client-gallery-field label {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-client-gallery-link input,
.admin-client-gallery-field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.75rem 0;
  background: transparent;
  color: var(--ink);
}

.admin-client-gallery-card > .admin-client-gallery-card-main,
.admin-client-gallery-card > .admin-client-gallery-link {
  grid-column: 2;
}

.admin-client-gallery-thumb {
  position: relative;
  break-inside: avoid;
  margin: 0 0 0.45rem;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.admin-client-gallery-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.admin-client-gallery-thumb button {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  display: grid;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: rgba(17, 17, 15, 0.82);
  color: var(--paper);
  opacity: 0;
  transition: opacity 160ms ease;
}

.admin-client-gallery-thumb:hover button,
.admin-client-gallery-thumb:focus-within button {
  opacity: 1;
}

.admin-client-gallery-more {
  display: grid;
  break-inside: avoid;
  min-height: 74px;
  margin-bottom: 0.45rem;
  border: 1px solid rgba(245, 241, 232, 0.16);
  border-radius: 10px;
  place-items: center;
  background: rgba(245, 241, 232, 0.08);
  color: rgba(245, 241, 232, 0.78);
  font-weight: 800;
}

.admin-client-gallery-no-preview {
  display: grid;
  min-height: 190px;
  margin: 0;
  place-items: center;
  color: rgba(245, 241, 232, 0.56) !important;
  font-size: 0.78rem;
}

.admin-client-gallery-modal[hidden] {
  display: none !important;
}

.admin-client-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(13, 13, 12, 0.78);
  backdrop-filter: blur(12px);
}

.admin-client-gallery-modal-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: clamp(1.8rem, 4vw, 3rem);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.admin-client-gallery-modal[data-client-gallery-mode="add"] .admin-client-gallery-modal-panel {
  width: min(560px, 100%);
}

.admin-client-gallery-modal[data-client-gallery-mode="add"] .admin-client-gallery-modal-panel h2 {
  max-width: 420px;
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.045em;
}

.admin-client-gallery-modal[data-client-gallery-mode="add"] .admin-client-gallery-dropzone {
  min-height: 185px;
}

.admin-client-gallery-modal-panel > .kicker {
  margin-bottom: 0.6rem;
}

.admin-client-gallery-modal-panel h2 {
  margin-bottom: 1.8rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.admin-client-gallery-form {
  display: grid;
  gap: 1rem;
}

.admin-client-gallery-field {
  display: grid;
  gap: 0.4rem;
}

.admin-client-gallery-field[hidden] {
  display: none !important;
}

.admin-client-gallery-field label span {
  color: var(--gold-strong);
  font-size: 0.58rem;
}

.admin-client-gallery-dropzone {
  position: relative;
  display: grid;
  min-height: 145px;
  border: 1px dashed rgba(151, 108, 43, 0.46);
  border-radius: 20px;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 18% 12%, rgba(196, 147, 63, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.45);
  text-align: center;
}

.admin-client-gallery-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-client-gallery-dropzone span {
  color: var(--ink);
  font-weight: 800;
}

.admin-client-gallery-dropzone small {
  color: var(--muted);
}

.admin-client-gallery-help,
.admin-client-gallery-result {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.admin-client-gallery-result {
  color: var(--gold-strong);
}

.admin-client-gallery-form-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.admin-client-gallery-form-actions > button:first-child {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.client-gallery-page {
  padding: clamp(6rem, 9vw, 8rem) 5vw 5rem;
  background: var(--paper);
}

.client-gallery-loading,
.client-gallery-access,
.client-gallery-hero {
  max-width: 1180px;
  margin: 0 auto;
}

.client-gallery-access {
  display: grid;
  max-width: 620px;
  min-height: 55vh;
  align-content: center;
}

.client-gallery-access h1,
.client-gallery-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(4rem, 10vw, 9rem);
  letter-spacing: -0.055em;
}

.client-gallery-access > p,
.client-gallery-hero p,
.client-gallery-downloads small {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.client-gallery-access-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
}

.client-gallery-access-form label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.client-gallery-access-form input {
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.9rem 0;
  background: transparent;
  font-size: 1.2rem;
}

.client-gallery-message {
  min-height: 1.25rem;
  color: #9b352e !important;
}

.client-gallery-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.client-gallery-hero > .kicker {
  grid-column: 1;
  align-self: end;
}

.client-gallery-downloads {
  display: grid;
  max-width: 390px;
  gap: 1.15rem;
  justify-items: start;
  text-align: left;
}

.client-gallery-hero > .client-gallery-downloads {
  grid-column: 1;
}

.client-gallery-downloads .kicker {
  margin-bottom: 0.8rem;
}

.client-gallery-title-block,
.client-gallery-hero > div:not(.client-gallery-downloads):not(.client-gallery-title-block) {
  justify-self: end;
  text-align: right;
}

.client-gallery-grid {
  display: block;
  max-width: 1380px;
  margin: 0 auto;
  columns: 3 290px;
  column-gap: 0.9rem;
}

.client-gallery-card {
  position: relative;
  break-inside: avoid;
  margin: 0 0 0.9rem;
  overflow: hidden;
  background: #11110f;
}

.client-gallery-open {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: #11110f;
  cursor: zoom-in;
}

.client-gallery-open img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.client-gallery-card-actions {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  left: 0.7rem;
  display: flex;
  gap: 0.4rem;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.client-gallery-card:hover .client-gallery-card-actions,
.client-gallery-card:focus-within .client-gallery-card-actions {
  opacity: 1;
  transform: translateY(0);
}

.client-gallery-card-actions a,
.client-gallery-card-actions button,
.client-gallery-viewer-actions a,
.client-gallery-viewer-actions button {
  border: 1px solid rgba(245, 241, 232, 0.38);
  border-radius: 999px;
  padding: 0.48rem 0.72rem;
  background: rgba(17, 17, 15, 0.68);
  color: var(--paper);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.client-gallery-viewer[hidden] {
  display: none !important;
}

.client-gallery-viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10, 10, 9, 0.9);
}

.client-gallery-viewer img {
  max-width: min(92vw, 1400px);
  max-height: 82vh;
  object-fit: contain;
  background: #11110f;
}

.client-gallery-viewer-close,
.client-gallery-viewer-nav {
  position: fixed;
  display: grid;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(245, 241, 232, 0.28);
  border-radius: 50%;
  place-items: center;
  background: rgba(17, 17, 15, 0.68);
  color: var(--paper);
}

.client-gallery-viewer-close {
  top: 1.5rem;
  right: 1.5rem;
}

.client-gallery-viewer-prev {
  left: 1.5rem;
}

.client-gallery-viewer-next {
  right: 1.5rem;
}

.client-gallery-viewer-actions {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  display: flex;
  gap: 0.55rem;
  transform: translateX(-50%);
}

.client-gallery-studio {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.client-gallery-studio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  border: 1px solid rgba(151, 108, 43, 0.18);
  border-radius: 30px;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  background:
    radial-gradient(circle at 4% 0, rgba(196, 147, 63, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(245, 241, 232, 0.44));
}

.client-gallery-studio-hero h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -0.06em;
}

.client-gallery-studio-hero p:not(.kicker) {
  max-width: 780px;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.client-gallery-studio-actions {
  display: grid;
  gap: 1rem;
  justify-items: end;
}

.client-gallery-studio-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.client-gallery-studio-stats span {
  display: inline-flex;
  gap: 0.35rem;
  align-items: baseline;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.72rem;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.client-gallery-studio-stats strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 400;
}

.client-gallery-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.client-gallery-library,
.client-gallery-detail {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 20px 60px rgba(20, 18, 14, 0.05);
}

.client-gallery-library {
  position: sticky;
  top: 1.4rem;
  display: grid;
  max-height: calc(100vh - 2.8rem);
  overflow: hidden;
}

.client-gallery-library-toolbar {
  display: grid;
  gap: 0.85rem;
  border-bottom: 1px solid var(--line);
  padding: 1rem;
}

.client-gallery-library-toolbar label {
  display: grid;
  gap: 0.35rem;
}

.client-gallery-library-toolbar label span,
.client-gallery-detail-toolbar label span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.client-gallery-library-toolbar input,
.client-gallery-detail-toolbar input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.78rem 0.95rem;
  background: rgba(245, 241, 232, 0.72);
  color: var(--ink);
  font: inherit;
}

.client-gallery-filter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.client-gallery-filter button,
.client-gallery-detail-toolbar button,
.client-gallery-detail-toolbar a,
.client-gallery-detail-grid-head button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.62rem 0.78rem;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.client-gallery-filter button.is-active,
.client-gallery-filter button:hover,
.client-gallery-detail-toolbar button:hover,
.client-gallery-detail-toolbar a:hover,
.client-gallery-detail-grid-head button:hover {
  border-color: rgba(17, 17, 15, 0.18);
  background: var(--ink);
  color: var(--paper);
}

.client-gallery-detail-toolbar .is-danger,
.client-gallery-detail-toolbar button.is-danger {
  color: #9b352e;
}

.client-gallery-detail-toolbar .is-danger:hover,
.client-gallery-detail-toolbar button.is-danger:hover {
  background: #9b352e;
  color: var(--paper);
}

.client-gallery-library-list {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  overflow-y: auto;
  padding: 0.65rem;
}

.client-gallery-library-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 0.55rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.client-gallery-library-item:hover,
.client-gallery-library-item.is-active {
  border-color: var(--line);
  background: rgba(245, 241, 232, 0.86);
}

.client-gallery-library-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: #11110f;
}

.client-gallery-library-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-gallery-mini-empty {
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  color: rgba(245, 241, 232, 0.55);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.client-gallery-library-copy {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.client-gallery-library-copy strong {
  overflow: hidden;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-gallery-library-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-gallery-library-arrow {
  color: var(--gold-strong);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.client-gallery-library-item:hover .client-gallery-library-arrow,
.client-gallery-library-item.is-active .client-gallery-library-arrow {
  opacity: 1;
  transform: translateX(0);
}

.client-gallery-library-empty {
  margin: 0;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.client-gallery-detail {
  min-height: 620px;
  overflow: hidden;
}

.client-gallery-detail-empty {
  display: grid;
  min-height: 540px;
  align-content: center;
  justify-items: center;
  padding: 2rem;
  text-align: center;
}

.client-gallery-detail-empty h3 {
  max-width: 620px;
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  letter-spacing: -0.055em;
}

.client-gallery-detail-empty p:not(.kicker) {
  max-width: 440px;
  color: var(--muted);
}

.client-gallery-detail-head {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(300px, 1.18fr);
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: clamp(1rem, 2vw, 1.4rem);
}

.client-gallery-detail-cover {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  min-height: 230px;
  border-radius: 22px;
  padding: 0.45rem;
  background:
    radial-gradient(circle at 20% 0, rgba(196, 147, 63, 0.26), transparent 32%),
    #11110f;
  overflow: hidden;
}

.client-gallery-detail-cover img {
  width: 100%;
  height: 100%;
  min-height: 70px;
  object-fit: cover;
}

.client-gallery-detail-cover img:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.client-gallery-detail-title {
  display: grid;
  justify-items: end;
  text-align: right;
}

.client-gallery-access-pill {
  display: inline-flex;
  border: 1px solid rgba(151, 108, 43, 0.28);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  background: rgba(196, 147, 63, 0.08);
  color: var(--gold-strong);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.client-gallery-detail-title h3 {
  max-width: 760px;
  margin: 0.75rem 0 0.35rem;
  font-size: clamp(2.7rem, 5.4vw, 6rem);
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.client-gallery-detail-title p {
  margin: 0;
  color: var(--muted);
}

.client-gallery-detail-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 1rem clamp(1rem, 2vw, 1.4rem);
}

.client-gallery-detail-toolbar label {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
}

.client-gallery-detail-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.client-gallery-detail-grid-head {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  padding: 1.2rem clamp(1rem, 2vw, 1.4rem) 0.75rem;
}

.client-gallery-detail-grid-head h4 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
}

.client-gallery-detail-grid {
  padding: 0 clamp(1rem, 2vw, 1.4rem) clamp(1rem, 2vw, 1.4rem);
  columns: 4 180px;
  column-gap: 0.65rem;
}

.client-gallery-detail-image {
  position: relative;
  break-inside: avoid;
  margin: 0 0 0.65rem;
  overflow: hidden;
  border-radius: 16px;
  background: #11110f;
}

.client-gallery-detail-image img {
  display: block;
  width: 100%;
  height: auto;
}

.client-gallery-detail-image figcaption {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  left: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.client-gallery-detail-image:hover figcaption,
.client-gallery-detail-image:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}

.client-gallery-detail-image figcaption span,
.client-gallery-detail-image figcaption button {
  border: 1px solid rgba(245, 241, 232, 0.28);
  border-radius: 999px;
  padding: 0.42rem 0.62rem;
  background: rgba(17, 17, 15, 0.72);
  color: var(--paper);
  backdrop-filter: blur(10px);
  font-size: 0.64rem;
  font-weight: 850;
}

.client-gallery-detail-image figcaption button {
  color: #ffd4cd;
}

.client-gallery-detail-placeholder {
  margin: 0;
  border: 1px dashed var(--line-strong);
  border-radius: 22px;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .admin-client-galleries-head,
  .admin-client-gallery-card-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-client-gallery-card {
    grid-template-columns: 1fr;
  }

  .admin-client-gallery-card > .admin-client-gallery-card-main,
  .admin-client-gallery-card > .admin-client-gallery-link,
  .admin-client-gallery-thumbs {
    grid-column: 1;
    grid-row: auto;
  }

  .admin-client-gallery-info,
  .admin-client-gallery-card-main,
  .admin-client-gallery-link {
    justify-items: start;
    text-align: left;
  }

  .client-gallery-hero {
    grid-template-columns: 1fr;
  }

  .client-gallery-title-block {
    justify-self: start;
    text-align: left;
  }

  .admin-client-gallery-actions,
  .client-gallery-downloads {
    justify-content: flex-start;
    justify-items: start;
    text-align: left;
  }

  .client-gallery-grid {
    columns: 2 260px;
  }

  .client-gallery-studio-hero,
  .client-gallery-workspace,
  .client-gallery-detail-head,
  .client-gallery-detail-toolbar {
    grid-template-columns: 1fr;
  }

  .client-gallery-library {
    position: relative;
    top: auto;
    max-height: none;
  }

  .client-gallery-studio-actions,
  .client-gallery-detail-title {
    align-items: start;
    justify-items: start;
    text-align: left;
  }

  .client-gallery-detail-toolbar > div {
    justify-content: flex-start;
  }

  .client-gallery-detail-grid {
    columns: 3 160px;
  }
}

@media (max-width: 680px) {
  .admin-client-galleries {
    margin-top: 1.5rem;
  }

  .admin-client-gallery-card,
  .admin-client-gallery-modal-panel {
    border-radius: 0;
  }

  .admin-client-gallery-preview {
    columns: 3 74px;
  }

  .admin-client-gallery-actions {
    width: 100%;
  }

  .admin-client-gallery-actions button,
  .admin-client-gallery-actions a {
    flex: 1 1 calc(50% - 0.55rem);
    text-align: center;
  }

  .client-gallery-page {
    padding: 6rem 4vw 3rem;
  }

  .client-gallery-grid {
    columns: 1;
  }

  .client-gallery-card-actions {
    justify-content: space-between;
    opacity: 1;
    transform: none;
  }

  .client-gallery-card-actions a,
  .client-gallery-card-actions button {
    flex: 1;
    text-align: center;
  }

  .client-gallery-viewer {
    padding: 4.5rem 0.8rem 5.5rem;
  }

  .client-gallery-viewer img {
    max-width: 100%;
    max-height: 74vh;
  }

  .client-gallery-viewer-close {
    top: 0.9rem;
    right: 0.9rem;
  }

  .client-gallery-viewer-prev {
    left: 0.75rem;
  }

  .client-gallery-viewer-next {
    right: 0.75rem;
  }

  .client-gallery-viewer-actions {
    bottom: 1rem;
    width: calc(100% - 2rem);
    justify-content: center;
  }

  .client-gallery-studio-hero,
  .client-gallery-library,
  .client-gallery-detail {
    border-radius: 0;
  }

  .client-gallery-studio-stats,
  .client-gallery-detail-grid-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-gallery-detail-cover {
    grid-template-columns: repeat(3, 1fr);
  }

  .client-gallery-detail-grid {
    columns: 2 140px;
  }

  .client-gallery-library-item {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .client-gallery-library-arrow {
    display: none;
  }
}

@media (hover: none) {
  .client-gallery-card-actions {
    opacity: 1;
    transform: none;
  }
}

.admin-journal {
  margin-top: 2rem;
}

.admin-journal-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}

.admin-journal-toolbar h1,
.admin-journal-editor-head h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.admin-journal-toolbar p {
  max-width: 620px;
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.admin-journal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-journal-series-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(220px, 1.15fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.admin-journal-series-card.is-hidden {
  opacity: 0.58;
}

.admin-journal-series-cover {
  position: relative;
  min-height: 260px;
  border: 0;
  padding: 0;
  background: #ddd7cc;
}

.admin-journal-series-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-journal-series-cover > span {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.35rem 0.5rem;
  background: rgba(13, 13, 12, 0.78);
  color: var(--white);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-journal-series-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: clamp(1.2rem, 2vw, 2rem);
}

.admin-journal-series-copy > p {
  margin: 0 0 1rem;
  color: var(--gold-strong);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-journal-series-copy h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
  line-height: 1;
}

.admin-journal-series-copy > span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.admin-journal-series-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin-top: 1.4rem;
}

.admin-journal-series-actions button,
.admin-journal-editor-head button,
.admin-journal-back {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
}

.admin-journal-series-actions button:first-child {
  color: var(--ink);
  font-weight: 700;
}

.admin-journal-empty {
  margin-top: 1.5rem;
  border: 1px dashed var(--line);
  padding: 4rem 2rem;
  color: var(--muted);
  text-align: center;
}

.admin-journal-editor[hidden],
.admin-journal-empty[hidden],
.admin-journal-toolbar[hidden],
.admin-journal-list[hidden],
.admin-journal-cover-fields[hidden] {
  display: none !important;
}

.admin-journal-back {
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.admin-journal-editor-head {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(320px, 1.25fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

.admin-journal-editor-cover {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--line);
}

.admin-journal-editor-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-journal-editor-head > div:last-child > p {
  margin: 0 0 0.8rem;
  color: var(--gold-strong);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-journal-editor-head > div:last-child > span {
  display: block;
  max-width: 760px;
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.admin-journal-editor-head > div:last-child > div {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-journal-images-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2rem 0 1rem;
}

.admin-journal-images-head h2 {
  margin: 0;
  font-size: 2rem;
}

.admin-journal-images-head span {
  color: var(--muted);
  font-size: 0.7rem;
}

.admin-journal-images {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 0.8rem;
}

.admin-journal-image-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: grab;
}

.admin-journal-image-card.is-hidden {
  opacity: 0.48;
}

.admin-journal-image-card.is-dragging {
  opacity: 0.3;
}

.admin-journal-image-view {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  border: 0;
  padding: 0;
  background: var(--line);
}

.admin-journal-image-card.is-portrait .admin-journal-image-view {
  aspect-ratio: 2 / 3;
}

.admin-journal-image-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-journal-cover-badge {
  position: absolute;
  bottom: 0.55rem;
  left: 0.55rem;
  padding: 0.3rem 0.45rem;
  background: #c99a49;
  color: #11110f;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-journal-image-actions {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: flex;
  gap: 0.3rem;
  opacity: 0;
  transition: opacity 150ms ease;
}

.admin-journal-image-card:hover .admin-journal-image-actions,
.admin-journal-image-card:focus-within .admin-journal-image-actions {
  opacity: 1;
}

.admin-journal-image-actions button {
  display: grid;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  place-items: center;
  padding: 0;
  background: rgba(13, 13, 12, 0.82);
  color: var(--white);
  font-size: 0.9rem;
}

.admin-journal-image-caption {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem;
}

.admin-journal-image-caption strong,
.admin-journal-image-caption small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-journal-image-caption strong {
  font-size: 0.72rem;
}

.admin-journal-image-caption small {
  color: var(--muted);
  font-size: 0.56rem;
}

.admin-journal-modal-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.75rem;
  background: rgba(255, 254, 250, 0.52);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.admin-journal-cover-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
  padding-top: 1.5rem;
}

.admin-journal-cover-fields > p {
  grid-column: 1 / -1;
  margin: 0 0 0.5rem;
  color: var(--gold-strong);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-password-modal[hidden] {
  display: none !important;
}

.admin-password-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(13, 13, 12, 0.78);
  backdrop-filter: blur(12px);
  overflow-y: auto;
}

.admin-password-modal-panel {
  position: relative;
  width: min(555px, 100%);
  max-height: calc(100vh - 3rem);
  max-height: calc(100svh - 3rem);
  overflow-y: auto;
  padding: clamp(1.75rem, 3vw, 2.7rem);
  background: var(--paper);
  box-shadow: var(--shadow);
  scrollbar-gutter: stable;
}

.admin-password-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
}

.admin-password-modal-panel .kicker {
  margin-bottom: 0.85rem;
}

.admin-password-modal-panel h2 {
  max-width: calc(100% - 4.2rem);
  margin-bottom: 1.45rem;
  font-size: clamp(1.6rem, 2.55vw, 2.15rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.admin-change-password-form {
  display: grid;
  gap: 0.65rem;
}

.admin-change-password-form label {
  margin-top: 0.36rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-change-password-form input {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.72rem 0;
  background: transparent;
}

.admin-change-password-form input:focus {
  border-bottom-color: var(--gold-strong);
  outline: 0;
}

.admin-change-password-form .admin-password-field {
  border-bottom-color: var(--line);
}

.admin-change-password-form .admin-password-field:focus-within {
  border-bottom-color: var(--gold-strong);
}

.admin-change-password-form .admin-password-field input {
  border-bottom: 0;
}

.admin-change-password-form .button {
  margin-top: 0.8rem;
}

.admin-change-password-result {
  min-height: 0.55rem;
  margin: 0;
  color: var(--gold-strong);
  font-size: 0.8rem;
}

.admin-change-password-result:empty,
.admin-passkey-result:empty {
  display: none;
}

.admin-login-form .button {
  width: 100%;
  margin-top: 0.7rem;
}

.admin-login-form .button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.admin-login-result {
  min-height: 1.4rem;
  margin: 0;
  color: #9b352e;
  font-size: 0.82rem;
}

.admin-passkey-button[hidden] {
  display: none !important;
}

.admin-passkey-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid rgba(185, 144, 72, 0.34);
  border-radius: 999px;
  padding: 0.62rem 1rem;
  background:
    linear-gradient(135deg, rgba(185, 144, 72, 0.12), rgba(255, 255, 255, 0.1)),
    transparent;
  color: var(--ink);
  font-weight: 800;
}

.admin-passkey-button.is-danger {
  border-color: rgba(155, 53, 46, 0.28);
  background:
    linear-gradient(135deg, rgba(155, 53, 46, 0.08), rgba(255, 255, 255, 0.12)),
    transparent;
  color: var(--ink);
}

.admin-passkey-button.is-danger:hover,
.admin-passkey-button.is-danger:focus-visible {
  border-color: rgba(155, 53, 46, 0.48);
  background:
    linear-gradient(135deg, rgba(155, 53, 46, 0.12), rgba(255, 255, 255, 0.14)),
    transparent;
}

.admin-passkey-login-button {
  width: 100%;
  margin-top: 0.2rem;
}

.admin-passkey-button:hover,
.admin-passkey-button:focus-visible {
  border-color: rgba(185, 144, 72, 0.7);
  background:
    linear-gradient(135deg, rgba(185, 144, 72, 0.22), rgba(255, 255, 255, 0.14)),
    transparent;
  outline: 0;
}

.admin-passkey-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.admin-passkey-button-icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border: 1px solid rgba(185, 144, 72, 0.3);
  border-radius: 50%;
  place-items: center;
  background: rgba(185, 144, 72, 0.11);
  color: var(--ink);
}

.admin-passkey-button-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.admin-passkey-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.68rem;
  align-items: start;
  margin-top: 0.75rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.admin-passkey-section .kicker {
  margin-bottom: 0.25rem;
}

.admin-passkey-section h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.018em;
}

.admin-passkey-copy {
  min-width: 0;
}

.admin-passkey-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.admin-passkey-state {
  position: relative;
  display: inline-grid;
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 50%;
  place-items: center;
  color: var(--muted);
}

.admin-passkey-state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.admin-passkey-state.is-enabled {
  color: #517047;
}

.admin-passkey-state.is-disabled {
  color: #9b352e;
}

.admin-passkey-state.is-unavailable {
  color: var(--muted);
}

.admin-passkey-state.is-unavailable::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-45deg);
}

.admin-passkey-section p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.admin-passkey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-start;
}

.admin-passkey-result {
  grid-column: 1 / -1;
  min-height: 1rem;
  margin-top: -0.1rem;
  color: var(--gold-strong) !important;
  font-size: 0.76rem !important;
}

@media (max-width: 680px) {
  .admin-password-modal-panel h2 {
    white-space: normal;
  }

  .admin-passkey-section {
    grid-template-columns: 1fr;
  }

  .admin-passkey-actions {
    justify-content: flex-start;
  }
}

.admin-login-back {
  display: block;
  width: fit-content;
  margin-top: 2.6rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-logout {
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0.4rem 0 0.4rem 1.4rem;
  background: transparent;
  color: var(--gold-strong);
  font-size: 0.78rem;
}

.admin-body {
  background: #f5f1e8;
}

.admin-header {
  background: rgba(245, 241, 232, 0.9);
}

.admin-shell {
  padding: 3rem 3.5vw 6rem;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.admin-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.admin-confetti-button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(193, 145, 60, 0.24);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.78);
  box-shadow: 0 0.7rem 1.8rem rgba(17, 17, 15, 0.07);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.admin-confetti-button:hover {
  transform: translateY(-1px) rotate(-4deg);
  background: #fffefa;
  box-shadow: 0 1rem 2.2rem rgba(17, 17, 15, 0.1);
}

.admin-confetti-button:active {
  transform: translateY(1px) scale(0.96);
}

.admin-hero h1 {
  font-size: clamp(2.8rem, 6vw, 6rem);
}

.admin-hero p {
  color: var(--muted);
}

.confetti-burst {
  position: fixed;
  z-index: 9999;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -1.2rem;
  left: var(--confetti-x, 50vw);
  width: var(--confetti-width, 0.54rem);
  height: var(--confetti-height, 0.82rem);
  border-radius: 2px;
  background: var(--confetti-color, var(--gold));
  opacity: 0.95;
  transform: translate3d(0, -10vh, 0) rotate(0deg);
  animation: confetti-fall var(--confetti-duration, 3s) cubic-bezier(0.14, 0.72, 0.35, 1) forwards;
  animation-delay: var(--confetti-delay, 0s);
}

.confetti-piece:nth-child(3n) {
  border-radius: 999px;
}

.confetti-piece:nth-child(4n) {
  height: 0.36rem;
}

@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -12vh, 0) rotate(0deg);
  }

  8% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--confetti-drift, 0), 112vh, 0) rotate(var(--confetti-rotate, 720deg));
  }
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metric-grid article,
.admin-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.2rem;
}

.metric-grid span,
.metric-grid small {
  display: block;
  color: var(--muted);
}

.metric-grid strong {
  display: block;
  margin: 0.4rem 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
  font-weight: 400;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.wide-panel {
  grid-column: 1 / -1;
  overflow-x: auto;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-head h2 {
  margin-bottom: 0;
  font-size: 1.8rem;
}

.panel-head button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 0.45rem 0.75rem;
}

.admin-list {
  display: grid;
}

.admin-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.admin-list span {
  color: var(--muted);
}

.admin-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-top: 1px solid var(--line);
  padding: 0.9rem;
  text-align: left;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .private-page-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .private-page-intro {
    max-width: 680px;
  }

  .admin-private:not([hidden]) {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .admin-sidebar {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 3.5vw 1.3rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.85rem 0;
  }

  .admin-logout {
    align-self: start;
    border-left: 0;
    padding: 0.85rem 0;
  }

  .intro-grid,
  .split-section,
  .journal-card,
  .print-layout,
  .contact-grid,
  .shop-teaser {
    grid-template-columns: 1fr;
  }

  .shop-visual {
    padding-top: 2rem;
    padding-left: 0;
    border-top: 1px solid rgba(185, 144, 72, 0.45);
    border-left: 0;
  }

  .author-section {
    padding-right: 8vw;
    padding-left: 8vw;
  }

  .author-heading {
    gap: 2rem;
  }

  .author-layout {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 3rem;
  }

  .masonry-grid,
  .product-grid,
  .metric-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .art-grid {
    grid-template-columns: 1fr;
  }

  .works-grid,
  .works-portrait-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .institutional-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .works-print-note {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
  }

  .works-print-note > a {
    grid-column: 2;
  }

  .print-intro {
    position: static;
  }
}

@media (max-width: 680px) {
  .private-page-recovery .private-page-hero h1 {
    font-size: clamp(3.3rem, 14.5vw, 5.3rem);
  }

  .private-page-header-actions {
    gap: 0.5rem;
  }

  .private-page-exit {
    display: none;
  }

  .private-page-hero,
  .private-page-process {
    padding-right: 5vw;
    padding-left: 5vw;
  }

  .private-page-hero {
    gap: 2.5rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .private-page-hero h1 {
    font-size: clamp(3.4rem, 15vw, 5.5rem);
  }

  .private-page-steps {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .private-page-steps span {
    margin-bottom: 1.75rem;
  }

  .private-page-note {
    margin-top: 4rem;
  }

  .private-page-contact {
    align-items: flex-start;
    flex-direction: column;
    padding: 3rem 5vw;
  }

  .private-page-contact a {
    white-space: normal;
  }

  .admin-return-shortcut {
    right: 0.7rem;
    bottom: 0.7rem;
    width: 42px;
    height: 42px;
  }

  .admin-return-shortcut-icon {
    min-width: 40px;
    height: 40px;
  }

  .admin-return-shortcut-label {
    display: none;
  }

  .admin-return-shortcut:hover,
  .admin-return-shortcut:focus-visible {
    width: 42px;
  }

  .admin-private:not([hidden]) {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    padding: 1.4rem 5vw;
  }

  .admin-sidebar-brand {
    margin: 0 0 1.4rem;
  }

  .admin-sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-sidebar-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .admin-sidebar-site-link {
    margin-top: 1.2rem;
  }

  .admin-shell {
    padding-right: 5vw;
    padding-left: 5vw;
  }

  .site-header {
    min-height: 68px;
  }

  .main-nav {
    top: 68px;
  }

  .hero {
    min-height: calc(100vh - 68px);
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(255, 254, 250, 0.96) 0%, rgba(255, 254, 250, 0.48) 58%, rgba(255, 254, 250, 0.12) 100%);
  }

  .hero-content {
    margin-top: 3rem;
    padding: 1.25rem 5vw 8vh;
  }

  .section,
  .page-hero {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .home-selection {
    padding: 0.6rem 5vw 2.75rem;
  }

  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .split-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .shop-teaser {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .author-section {
    padding-right: 5vw;
    padding-left: 5vw;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .author-heading {
    align-items: start;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 2rem;
  }

  .author-heading h2 {
    font-size: clamp(3.5rem, 16vw, 5rem);
  }

  .author-heading-meta {
    align-items: center;
  }

  .author-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 2.5rem;
  }

  .author-portrait {
    width: min(100%, 360px);
  }

  .author-content {
    margin: 0;
    padding: 0;
  }

  .author-statement {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .author-sentence-lead,
  .author-sentence-close {
    grid-column: auto;
  }

  .page-hero {
    padding-top: 6rem;
  }

  .works-intro {
    padding-right: 5vw;
    padding-left: 5vw;
  }

  .works-intro span {
    display: none;
  }

  .works-gallery {
    padding-right: 5vw;
    padding-left: 5vw;
  }

  .works-grid,
  .works-portrait-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .institutional-gallery {
    padding-right: 5vw;
    padding-left: 5vw;
  }

  .institutional-gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .works-print-note {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin: 2.5rem 0;
    padding: 2.25rem 1.75rem;
  }

  .works-print-note > a {
    grid-column: auto;
    min-width: 0;
  }

  .art-lightbox {
    padding: 1.25rem;
  }

  .art-lightbox-layout {
    display: grid;
    width: 100%;
    height: 100%;
    max-height: none;
    overflow: visible;
  }

  .art-lightbox-stage {
    min-height: 0;
    height: 100%;
    padding: 0;
  }

  .art-lightbox .art-lightbox-stage img {
    width: auto;
    height: auto;
    max-width: 95%;
    max-height: 86%;
    border-width: 5px;
    transform: translate(-50%, -50%);
  }

  .art-lightbox-info {
    position: absolute;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    min-height: 0;
    overflow: hidden;
    padding: 0.85rem 1rem;
    background: rgba(247, 243, 234, 0.97);
  }

  .art-lightbox-info h2 {
    font-size: 1.35rem;
  }

  .photo-technical {
    max-width: 100%;
    font-size: 0.5rem;
    text-align: left;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-info-toggle {
    bottom: 0.75rem;
    left: 0.75rem;
    width: 46px;
    height: 40px;
  }

  .lightbox-prev {
    left: 0.35rem;
  }

  .lightbox-next {
    right: 0.35rem;
  }

  .section-heading,
  .selection-footer,
  .shop-teaser,
  .newsletter-band,
  .site-footer,
  .admin-hero {
    align-items: start;
    flex-direction: column;
  }

  .admin-hero-actions {
    justify-content: flex-start;
  }

  .masonry-grid,
  .selection-grid,
  .product-grid,
  .metric-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .selection-grid-right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-card,
  .photo-card.tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 360px;
  }

  .photo-card.wide {
    grid-column: auto;
  }

  .series-stack article {
    grid-template-columns: 1fr;
  }

  .series-stack img {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .newsletter-form,
  .password-form div {
    grid-template-columns: 1fr;
  }

  .mini-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-list div,
  .art-meta {
    display: grid;
  }

  .site-footer {
    padding: 2rem 5vw;
  }
}

@media (max-width: 980px) {
  .admin-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-gallery-viewer-details {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .admin-gallery-viewer-technical {
    max-width: 100%;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .admin-content-manager {
    margin-top: 1.5rem;
  }

  .admin-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-gallery-upload-modal {
    padding: 1rem;
  }

  .admin-gallery-upload-panel {
    max-height: calc(100vh - 2rem);
    padding: 1.75rem 1.25rem;
  }

  .admin-gallery-form {
    grid-template-columns: 1fr;
  }

  .admin-gallery-form-field-wide,
  .admin-gallery-file-preview {
    grid-column: auto;
  }

  .admin-gallery-viewer {
    padding: 1rem;
  }

  .admin-gallery-viewer-content {
    width: 100%;
  }

  .admin-gallery-viewer-content > img {
    max-height: 62vh;
  }

  .admin-gallery-viewer-details {
    padding: 0.8rem;
  }

  .admin-gallery-viewer-prev {
    left: 0.3rem;
  }

  .admin-gallery-viewer-next {
    right: 0.3rem;
  }

  .admin-gallery-confirm-panel h2 {
    white-space: normal;
  }
}

@media (hover: none) {
  .admin-gallery-card-actions {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

.analytics-dashboard {
  display: grid;
  gap: 1rem;
  margin-top: 1.65rem;
}

.analytics-dashboard-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.4rem;
}

.analytics-dashboard-header h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(2.2rem, 4.2vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.analytics-dashboard-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.analytics-live-status {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0 0.55rem;
  min-width: 126px;
  border: 1px solid rgba(185, 144, 72, 0.38);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: rgba(185, 144, 72, 0.08);
}

.analytics-live-status > span {
  grid-row: 1 / 3;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #75a66c;
  box-shadow: 0 0 0 5px rgba(117, 166, 108, 0.13);
  animation: analytics-live-pulse 2.4s ease-in-out infinite;
}

.analytics-live-status strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.analytics-live-status small {
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes analytics-live-pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(117, 166, 108, 0.04);
  }
}

.analytics-periods {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem;
  background: rgba(255, 254, 250, 0.48);
  scrollbar-width: none;
}

.analytics-periods::-webkit-scrollbar {
  display: none;
}

.analytics-periods button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
}

.analytics-periods button:hover,
.analytics-periods button.is-active {
  background: var(--ink);
  color: var(--white);
}

.analytics-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.analytics-metrics article,
.analytics-panel,
.analytics-unavailable {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.82);
}

.analytics-metrics article {
  padding: clamp(1rem, 1.8vw, 1.45rem);
}

.analytics-metrics span,
.analytics-metrics small {
  display: block;
  color: var(--muted);
}

.analytics-metrics span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.analytics-metrics strong {
  display: block;
  margin: 0.55rem 0 0.3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.analytics-metrics small {
  font-size: 0.62rem;
  line-height: 1.4;
}

.analytics-panel {
  padding: clamp(1.15rem, 2vw, 1.65rem);
}

.analytics-panel > header,
.analytics-photo-section > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.analytics-panel header p,
.analytics-photo-section header p {
  margin: 0 0 0.2rem;
  color: var(--gold-strong);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.analytics-panel h2,
.analytics-photo-section h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: -0.025em;
}

.analytics-panel header > small {
  color: var(--muted);
  font-size: 0.58rem;
}

.analytics-chart {
  display: grid;
  grid-auto-columns: minmax(12px, 1fr);
  grid-auto-flow: column;
  gap: clamp(0.18rem, 0.5vw, 0.45rem);
  min-height: 220px;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.analytics-chart > div {
  display: grid;
  grid-template-rows: 180px 1.1rem;
  gap: 0.45rem;
  min-width: 0;
}

.analytics-chart > div > span {
  display: flex;
  align-items: end;
  justify-content: center;
  height: 180px;
}

.analytics-chart i {
  display: block;
  width: min(100%, 24px);
  min-height: 4px;
  background: linear-gradient(180deg, #d0a75c, #8d6728);
  opacity: 0.86;
  transition: height 220ms ease;
}

.analytics-chart small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.5rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-chart-empty {
  align-self: center;
  justify-self: center;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.analytics-ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.analytics-ranking {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.analytics-ranking li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding: 0.78rem 0;
}

.analytics-ranking li > span {
  color: var(--gold-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
}

.analytics-ranking li > div {
  display: grid;
  min-width: 0;
}

.analytics-ranking li strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-ranking li small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-ranking li b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.analytics-ranking .analytics-ranking-empty {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.analytics-photo-section {
  padding-top: 0.8rem;
}

.analytics-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.analytics-unavailable {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  padding: 1.2rem;
  background:
    linear-gradient(135deg, rgba(17, 17, 15, 0.96), rgba(38, 35, 29, 0.96));
  color: var(--white);
}

.analytics-unavailable::after {
  position: absolute;
  right: -20px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(208, 167, 92, 0.18);
  border-radius: 50%;
  content: "";
}

.analytics-unavailable > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.analytics-unavailable span {
  color: #d0a75c;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.analytics-unavailable strong {
  color: rgba(255, 254, 250, 0.32);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 400;
}

.analytics-unavailable p {
  margin: 2rem 0 0.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.analytics-unavailable small {
  display: block;
  max-width: 250px;
  color: rgba(255, 254, 250, 0.5);
  font-size: 0.58rem;
  line-height: 1.45;
}

.analytics-privacy-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding: 1rem 0 0;
  color: var(--muted);
}

.analytics-privacy-note > span {
  color: #75a66c;
  font-size: 1.35rem;
}

.analytics-privacy-note p,
.analytics-status {
  margin: 0;
  font-size: 0.62rem;
}

.analytics-privacy-note strong {
  color: var(--ink);
}

.analytics-status {
  min-height: 0.9rem;
  color: #8f352e;
}

@media (max-width: 1180px) {
  .analytics-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-photo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .analytics-dashboard-header {
    align-items: start;
    flex-direction: column;
  }

  .analytics-ranking-grid,
  .analytics-metrics {
    grid-template-columns: 1fr;
  }

  .analytics-chart {
    overflow-x: auto;
    grid-auto-columns: minmax(20px, 1fr);
  }

  .analytics-chart > div {
    min-width: 20px;
  }
}

@media (max-width: 1080px) {
  .admin-journal-list {
    grid-template-columns: 1fr;
  }

  .admin-journal-series-card {
    grid-template-columns: minmax(220px, 0.75fr) minmax(300px, 1.25fr);
  }

  .admin-journal-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .journal-index-hero,
  .journal-story-header {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-right: 5vw;
    padding-left: 5vw;
  }

  .journal-index-hero h1 {
    font-size: clamp(4.2rem, 20vw, 7rem);
  }

  .journal-series-list,
  .journal-story-gallery {
    padding-right: 5vw;
    padding-left: 5vw;
  }

  .journal-series-link {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .journal-series-card:nth-child(even) .journal-series-link > img {
    order: 0;
  }

  .journal-story-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journal-story-image.is-landscape {
    grid-column: span 2;
  }

  .admin-journal-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-journal-series-card,
  .admin-journal-editor-head {
    grid-template-columns: 1fr;
  }

  .admin-journal-series-cover {
    min-height: 240px;
  }

  .admin-journal-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-journal-cover-fields {
    grid-template-columns: 1fr;
  }

  .admin-journal-cover-fields > p {
    grid-column: auto;
  }
}

@media (max-width: 440px) {
  .journal-story-gallery,
  .admin-journal-images {
    grid-template-columns: 1fr;
  }

  .journal-story-image.is-landscape,
  .journal-story-image.is-portrait {
    grid-column: span 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-live-status > span {
    animation: none;
  }
}

.admin-shell-albums {
  padding: 0;
  background: #fffdfa;
}

.admin-shell-albums > .admin-page-title {
  display: none;
}

.album-console {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
  background: #fffdfa;
  color: #171713;
}

.album-console-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 100vh;
  border-right: 1px solid rgba(18, 18, 15, 0.08);
  padding: 2.6rem 1.4rem;
  background: #fffefa;
}

.album-sidebar-title {
  margin: 0 0 0.9rem;
  color: rgba(23, 23, 19, 0.45);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.album-category-nav,
.album-library-nav {
  display: grid;
  gap: 0.38rem;
}

.album-category-nav button,
.album-library-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border: 0;
  border-radius: 999px;
  padding: 0.74rem 0.9rem;
  background: transparent;
  color: rgba(23, 23, 19, 0.68);
  font-size: 0.91rem;
  font-weight: 700;
  text-align: left;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.album-category-nav button:hover,
.album-category-nav button.is-active,
.album-library-nav button:hover,
.album-library-nav button.is-active {
  background: #f0efed;
  color: #11110f;
}

.album-category-nav button:active,
.album-library-nav button:active {
  transform: scale(0.985);
}

.album-category-nav small,
.album-library-nav small {
  display: inline-grid;
  place-items: center;
  min-width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: rgba(17, 17, 15, 0.06);
  color: rgba(23, 23, 19, 0.55);
  font-size: 0.72rem;
}

.album-category-nav button.is-active small,
.album-library-nav button.is-active small {
  background: #11110f;
  color: #fffefa;
}

.album-storage-card {
  margin-top: 0.3rem;
  border-top: 1px solid rgba(18, 18, 15, 0.1);
  padding-top: 1.35rem;
}

.album-storage-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0;
}

.album-storage-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 2.3rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: #f0efed;
  color: #11110f;
}

.album-storage-icon svg {
  width: 1.08rem;
  height: 1.08rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.album-storage-row strong,
.album-storage-row small {
  display: block;
}

.album-storage-row strong {
  font-size: 1rem;
  line-height: 1.1;
}

.album-storage-row small {
  margin-top: 0.12rem;
  color: rgba(23, 23, 19, 0.5);
  font-size: 0.72rem;
}

.album-console-main {
  min-width: 0;
  padding: clamp(1.4rem, 2.2vw, 2.6rem);
}

.album-browser-head,
.album-editor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.4rem;
}

.album-browser-head .kicker {
  margin: 0 0 0.35rem;
  color: rgba(23, 23, 19, 0.42);
}

.album-browser-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 0.95;
}

.album-browser-actions,
.album-editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.album-sort-label {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  color: rgba(23, 23, 19, 0.76);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.album-sort-label span {
  white-space: nowrap;
}

.album-sort-label select,
.album-share-panel select,
.album-share-panel input,
.album-title-edit input {
  border: 0;
  border-bottom: 1px solid rgba(18, 18, 15, 0.14);
  border-radius: 0;
  background: transparent;
  color: #171713;
  font: inherit;
  outline: none;
}

.album-sort-label select {
  min-width: 0;
  width: 7.2rem;
  padding: 0.35rem 1.05rem 0.35rem 0.2rem;
}

.album-create-button,
.album-share-button,
.album-back-button,
.album-lock-button,
.album-menu-button {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.album-create-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.86rem 1.35rem;
  background: #11110f;
  color: #fffefa;
  box-shadow: 0 0.7rem 1.7rem rgba(17, 17, 15, 0.14);
}

.album-create-button span {
  font-size: 1.45rem;
  line-height: 0.7;
}

.album-create-button:hover,
.album-share-button:hover,
.album-back-button:hover,
.album-lock-button:hover,
.album-menu-button:hover {
  transform: translateY(-1px);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 1.7vw, 1.55rem);
}

.album-grid.album-photo-library-grid {
  --album-target-height: clamp(230px, 19vw, 330px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  width: 100%;
}

.album-move-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.25rem;
  border: 1px solid rgba(193, 145, 60, 0.22);
  border-radius: 999px;
  padding: 0.78rem 0.85rem 0.78rem 1.1rem;
  background: rgba(193, 145, 60, 0.09);
  color: #171713;
  box-shadow: 0 0.8rem 2rem rgba(17, 17, 15, 0.05);
}

.album-move-banner[hidden] {
  display: none !important;
}

.album-move-banner span {
  font-size: 0.9rem;
  font-weight: 850;
}

.album-move-banner button {
  min-height: 2.25rem;
  border: 1px solid rgba(18, 18, 15, 0.1);
  border-radius: 999px;
  padding: 0 0.9rem;
  background: #fffefa;
  color: #171713;
  font-size: 0.8rem;
  font-weight: 850;
}

.album-grid.is-choosing-move-target .album-card button {
  cursor: pointer;
}

.album-grid.is-choosing-move-target .album-card.is-current-move-source button {
  opacity: 0.58;
}

.album-card {
  min-width: 0;
}

.album-card button {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: #fff;
  color: #171713;
  text-align: left;
  box-shadow: 0 0.8rem 2.2rem rgba(17, 17, 15, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.album-card button:hover {
  transform: translateY(-3px);
  box-shadow: 0 1rem 2.8rem rgba(17, 17, 15, 0.12);
}

.album-card figure {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin: 0;
  background: #f1eee7;
}

.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-card-placeholder {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.42rem;
  width: 100%;
  height: 100%;
  padding: 1.4rem;
}

.album-card-placeholder span {
  border: 2px solid rgba(17, 17, 15, 0.13);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.45);
}

.album-card-copy {
  display: grid;
  gap: 0.28rem;
  padding: 1rem 1.08rem 1.12rem;
}

.album-card-copy strong {
  overflow: hidden;
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-card-copy small {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: rgba(23, 23, 19, 0.52);
  font-size: 0.82rem;
  font-weight: 700;
}

.album-card-lock {
  color: #9b6f28;
  font-size: 0.78rem;
  line-height: 1;
}

.album-empty {
  margin: 2.2rem 0 0;
  color: rgba(23, 23, 19, 0.52);
}

.album-editor[hidden],
.album-browser[hidden],
.album-upload-modal[hidden],
.album-password-modal[hidden] {
  display: none;
}

.album-editor {
  min-height: calc(100vh - 7rem);
}

.album-back-button,
.album-share-button,
.album-lock-button,
.album-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.8rem;
  padding: 0 1rem;
  background: #f0efed;
  color: #171713;
}

.album-lock-button {
  width: 2.8rem;
  padding: 0;
  font-size: 1.05rem;
}

.album-lock-button.is-locked {
  background: rgba(193, 145, 60, 0.16);
  color: #9b6f28;
}

.album-menu-button {
  width: 2.8rem;
  padding: 0;
  font-size: 1.4rem;
}

.album-more-wrap {
  position: relative;
}

.album-more-menu {
  position: absolute;
  z-index: 12;
  top: calc(100% + 0.55rem);
  right: 0;
  display: grid;
  gap: 0.35rem;
  min-width: 15rem;
  border: 1px solid rgba(18, 18, 15, 0.09);
  border-radius: 18px;
  padding: 0.55rem;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 1rem 2.6rem rgba(17, 17, 15, 0.14);
  backdrop-filter: blur(12px);
}

.album-more-menu[hidden],
.album-category-picker[hidden] {
  display: none;
}

.album-more-menu > button,
.album-category-picker button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  background: transparent;
  color: #171713;
  font-weight: 800;
  text-align: left;
}

.album-more-menu > button:hover,
.album-category-picker button:hover,
.album-category-picker button.is-active {
  background: rgba(17, 17, 15, 0.07);
}

.album-more-menu > button.is-danger {
  color: #a63c2f;
}

.album-category-picker {
  display: grid;
  gap: 0.25rem;
  border-top: 1px solid rgba(18, 18, 15, 0.08);
  border-bottom: 1px solid rgba(18, 18, 15, 0.08);
  margin: 0.15rem 0;
  padding: 0.35rem 0;
}

.album-title-panel {
  display: grid;
  place-items: center;
  gap: 0.15rem;
  margin: 0 auto 1.7rem;
  text-align: center;
}

.album-title-edit {
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-title-edit input {
  width: min(50vw, 580px);
  border-bottom-color: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.05vw, 2.25rem) !important;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.album-title-edit input:focus {
  border-bottom-color: rgba(18, 18, 15, 0.2);
}

.album-title-edit span {
  display: none !important;
}

.album-title-panel p {
  margin: 0;
  color: rgba(23, 23, 19, 0.52);
  font-size: 1.05rem;
  font-weight: 700;
}

.album-direct-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.album-inline-status {
  min-height: 1.1rem;
  margin-top: 0.25rem !important;
  color: rgba(23, 23, 19, 0.46) !important;
  font-size: 0.8rem !important;
}

.album-share-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  gap: 1rem;
  margin: 0 0 2rem;
  border: 1px solid rgba(18, 18, 15, 0.08);
  border-radius: 18px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 0.7rem 2rem rgba(17, 17, 15, 0.04);
}

.album-share-panel label {
  display: grid;
  gap: 0.35rem;
}

.album-share-panel span {
  color: rgba(23, 23, 19, 0.45);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.album-share-panel input,
.album-share-panel select {
  width: 100%;
  padding: 0.45rem 0 0.55rem;
  color: rgba(23, 23, 19, 0.82);
  font-size: 0.92rem;
}

.album-selection-toolbar {
  position: sticky;
  z-index: 9;
  top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
  margin: 0 0 1rem;
  border: 1px solid rgba(18, 18, 15, 0.08);
  border-radius: 999px;
  padding: 0.55rem 0.65rem 0.55rem 1rem;
  background: rgba(255, 254, 250, 0.92);
  box-shadow: 0 0.7rem 2rem rgba(17, 17, 15, 0.08);
  backdrop-filter: blur(14px);
}

.album-selection-toolbar[hidden] {
  display: none !important;
}

.album-selection-toolbar strong {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.88rem;
}

.album-selection-toolbar > div {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.45rem;
  min-width: 0;
}

.album-selection-toolbar button {
  min-height: 2.25rem;
  border: 1px solid rgba(18, 18, 15, 0.1);
  border-radius: 999px;
  padding: 0 0.78rem;
  background: #fffefa;
  color: #171713;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.album-selection-toolbar .is-danger {
  color: #a63c2f;
}

.album-photos-grid {
  --album-target-height: clamp(230px, 19vw, 330px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  width: 100%;
}

.album-photo {
  position: relative;
  overflow: hidden;
  display: block;
  flex: var(--album-ratio, 1.5) 1 calc(var(--album-ratio, 1.5) * var(--album-target-height));
  height: var(--album-target-height);
  min-width: 7rem;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  background: transparent;
}

.album-photo.is-landscape {
  flex-basis: min(100%, calc(var(--album-ratio, 1.5) * var(--album-target-height) * 1.05));
}

.album-photo.is-portrait {
  flex-basis: min(100%, calc(var(--album-ratio, 0.66) * var(--album-target-height)));
}

.album-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.album-photo-open {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.album-photo-open:focus-visible {
  outline: 2px solid rgba(193, 145, 60, 0.85);
  outline-offset: 3px;
}

.album-select-button {
  position: absolute;
  z-index: 4;
  top: 0.5rem;
  left: 0.5rem;
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid rgba(255, 254, 250, 0.9);
  border-radius: 999px;
  padding: 0;
  background: rgba(17, 17, 15, 0.12);
  color: transparent;
  text-shadow: none;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.album-select-button:hover,
.album-photo.is-selected .album-select-button {
  background: rgba(17, 17, 15, 0.72);
  color: #fffefa;
}

.album-select-button.is-selected {
  background: #c1913c;
  color: #fffefa;
}

.album-photo.is-selected::after {
  position: absolute;
  inset: 0;
  border: 3px solid #c1913c;
  content: "";
  pointer-events: none;
}

.album-favorite-button {
  position: absolute;
  z-index: 3;
  top: 0.55rem;
  right: 0.55rem;
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fffefa;
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
  text-shadow: 0 0.1rem 0.45rem rgba(0, 0, 0, 0.46);
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.album-favorite-button:hover {
  transform: scale(1.06);
  background: rgba(17, 17, 15, 0.14);
}

.album-favorite-button.is-favorite {
  background: transparent;
  color: #fffefa;
}

.album-photo figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent);
  color: #fffefa;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.album-photo:hover figcaption,
.album-photo:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}

.album-photo figcaption > span {
  color: rgba(255, 254, 250, 0.74);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.album-photo figcaption div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.album-photo figcaption small {
  color: rgba(255, 254, 250, 0.78);
  font-size: 0.68rem;
  font-weight: 800;
}

.album-photo figcaption button {
  border: 1px solid rgba(255, 254, 250, 0.28);
  border-radius: 999px;
  padding: 0.38rem 0.58rem;
  background: rgba(17, 17, 15, 0.42);
  color: #fffefa;
  font-size: 0.68rem;
  font-weight: 800;
}

.album-empty-state,
.album-detail-loading {
  display: grid;
  place-items: center;
  min-height: 48vh;
  text-align: center;
}

.album-empty-state {
  gap: 1.2rem;
}

.album-empty-state .album-create-button {
  display: none !important;
}

.album-empty-illustration {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  width: min(28rem, 55vw);
  aspect-ratio: 3 / 2;
  border-radius: 28px;
  padding: 1.6rem;
  background: linear-gradient(135deg, rgba(245, 241, 232, 0.9), rgba(236, 231, 219, 0.5));
}

.album-empty-illustration span {
  border: 2px dashed rgba(17, 17, 15, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
}

.album-empty-state h3,
.album-detail-loading h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.album-admin-viewer[hidden] {
  display: none !important;
}

.album-admin-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3.2rem);
  background: rgba(9, 9, 8, 0.9);
}

.album-admin-viewer-frame {
  display: grid;
  place-items: center;
  max-width: min(92vw, 1500px);
  max-height: 84vh;
  margin: 0;
}

.album-admin-viewer-frame img {
  display: block;
  max-width: min(92vw, 1500px);
  max-height: 84vh;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 1.2rem 3.6rem rgba(0, 0, 0, 0.34);
}

.album-admin-viewer-close,
.album-admin-viewer-nav {
  position: fixed;
  display: grid;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 254, 250, 0.28);
  border-radius: 999px;
  place-items: center;
  background: rgba(17, 17, 15, 0.62);
  color: #fffefa;
  font-size: 1.3rem;
  transition: transform 150ms ease, background 150ms ease;
}

.album-admin-viewer-close:hover,
.album-admin-viewer-nav:hover {
  transform: scale(1.06);
  background: rgba(17, 17, 15, 0.88);
}

.album-admin-viewer-close {
  top: 1.5rem;
  right: 1.5rem;
}

.album-admin-viewer-prev {
  left: 1.5rem;
}

.album-admin-viewer-next {
  right: 1.5rem;
}

.album-admin-viewer-download {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 999px;
  padding: 0 1.35rem;
  background: #fffefa;
  color: #11110f;
  font-weight: 900;
  text-decoration: none;
  transform: translateX(-50%);
  box-shadow: 0 0.7rem 2rem rgba(0, 0, 0, 0.22);
}

.album-admin-viewer-download:hover {
  background: #f3efe5;
}

.album-import-toast[hidden] {
  display: none !important;
}

.album-import-toast {
  position: fixed;
  right: clamp(1rem, 2vw, 1.6rem);
  bottom: clamp(1rem, 2vw, 1.6rem);
  z-index: 260;
  width: min(20rem, calc(100vw - 2rem));
  border: 1px solid rgba(18, 18, 15, 0.1);
  border-radius: 22px;
  padding: 1rem 1.05rem;
  background: rgba(255, 254, 250, 0.94);
  color: #171713;
  box-shadow: 0 1rem 3rem rgba(17, 17, 15, 0.18);
  backdrop-filter: blur(16px);
  pointer-events: none;
}

.album-import-toast p {
  margin: 0 0 0.38rem;
  color: #9b6f28;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.album-import-toast strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.2;
}

.album-import-progress {
  display: block;
  overflow: hidden;
  height: 0.32rem;
  margin: 0.75rem 0 0.52rem;
  border-radius: 999px;
  background: rgba(17, 17, 15, 0.08);
}

.album-import-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #c1913c;
  transition: width 220ms ease;
}

.album-import-toast small {
  display: block;
  overflow: hidden;
  color: rgba(23, 23, 19, 0.55);
  font-size: 0.76rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-import-toast.is-done .album-import-progress span {
  background: #6f9f63;
}

.album-import-toast.is-error .album-import-progress span {
  background: #b14a3a;
}

.album-import-toast.is-error p {
  color: #b14a3a;
}

.album-upload-modal {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(17, 17, 15, 0.72);
  backdrop-filter: blur(10px);
}

.album-upload-panel {
  position: relative;
  width: min(620px, 92vw);
  padding: clamp(2rem, 4vw, 3.4rem);
  background: #f8f3e9;
  box-shadow: 0 1.8rem 5rem rgba(0, 0, 0, 0.24);
}

.album-upload-panel h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.9;
}

.album-upload-form {
  display: grid;
  gap: 1.15rem;
}

.album-upload-drop {
  display: grid;
  gap: 0.5rem;
  border: 1px dashed rgba(17, 17, 15, 0.28);
  border-radius: 18px;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.album-upload-drop input {
  max-width: 100%;
}

.album-upload-drop span {
  font-weight: 800;
}

.album-upload-drop small {
  color: rgba(23, 23, 19, 0.54);
}

.album-upload-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.album-upload-actions > button:first-child {
  border: 0;
  background: transparent;
  color: rgba(23, 23, 19, 0.58);
}

.album-password-modal {
  position: fixed;
  z-index: 310;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(17, 17, 15, 0.66);
  backdrop-filter: blur(10px);
}

.album-password-panel {
  position: relative;
  width: min(520px, 92vw);
  border: 1px solid rgba(18, 18, 15, 0.08);
  border-radius: 24px;
  padding: clamp(1.65rem, 4vw, 2.6rem);
  background: #f8f3e9;
  box-shadow: 0 1.8rem 4.4rem rgba(0, 0, 0, 0.2);
}

.album-password-panel h2 {
  margin: 0 0 1.35rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 0.95;
}

.album-password-form {
  display: grid;
  gap: 0.9rem;
}

.album-password-form label {
  color: rgba(23, 23, 19, 0.55);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.album-password-form input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(18, 18, 15, 0.18);
  border-radius: 0;
  padding: 0.65rem 0;
  background: transparent;
  color: #171713;
  font: inherit;
  font-size: 1.05rem;
  outline: none;
}

.album-password-form input:focus {
  border-bottom-color: rgba(193, 145, 60, 0.75);
}

.album-password-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.85rem;
}

.album-password-actions > button:first-child {
  border: 0;
  background: transparent;
  color: #a63c2f;
  font-weight: 800;
}

.gestion-shell-courses {
  padding: 0;
  background: #fffdfa;
}

.gestion-shell-courses > .gestion-page-title {
  display: none;
}

.course-console {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
  background: #fffdfa;
  color: #171713;
}

.course-console-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 100vh;
  border-right: 1px solid rgba(18, 18, 15, 0.08);
  padding: 2.6rem 1.4rem;
  background: #fffefa;
}

.course-category-nav {
  display: grid;
  gap: 0.38rem;
}

.course-category-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border: 0;
  border-radius: 999px;
  padding: 0.74rem 0.9rem;
  background: transparent;
  color: rgba(23, 23, 19, 0.68);
  font-size: 0.91rem;
  font-weight: 700;
  text-align: left;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.course-category-nav button:hover,
.course-category-nav button.is-active {
  background: #f0efed;
  color: #11110f;
}

.course-category-nav button:active {
  transform: scale(0.985);
}

.course-category-nav small {
  display: inline-grid;
  place-items: center;
  min-width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: rgba(17, 17, 15, 0.06);
  color: rgba(23, 23, 19, 0.55);
  font-size: 0.72rem;
}

.course-category-nav button.is-active small {
  background: #11110f;
  color: #fffefa;
}

.course-storage-card {
  margin-top: 0.3rem;
  border-top: 1px solid rgba(18, 18, 15, 0.1);
  padding-top: 1.35rem;
}

.course-console-main {
  min-width: 0;
  padding: clamp(1.4rem, 2.2vw, 2.6rem);
}

.course-browser-head,
.course-editor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.4rem;
}

.course-browser-head .kicker {
  margin: 0 0 0.35rem;
  color: rgba(23, 23, 19, 0.42);
}

.course-browser-head h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 0.95;
}

.course-browser-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.course-collaborators-button {
  display: inline-grid;
  width: 3.55rem;
  height: 3.55rem;
  place-items: center;
  border: 1px solid rgba(23, 23, 19, 0.1);
  border-radius: 999px;
  background: #fffefa;
  color: #171713;
  box-shadow: 0 0.65rem 1.8rem rgba(17, 17, 15, 0.08);
  transition: transform 160ms ease, background 160ms ease;
}

.course-collaborators-button span {
  display: grid;
  width: 2.05rem;
  height: 2.05rem;
  place-items: center;
  border: 0;
  border-radius: 0;
  font-size: 1.32rem;
  line-height: 1;
}

.course-collaborators-button:hover {
  background: #f2eee5;
  transform: translateY(-1px);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 1.7vw, 1.55rem);
}

.course-card {
  min-width: 0;
}

.course-card button {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: #fff;
  color: #171713;
  text-align: left;
  box-shadow: 0 0.8rem 2.2rem rgba(17, 17, 15, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.course-card button:hover {
  transform: translateY(-3px);
  box-shadow: 0 1rem 2.8rem rgba(17, 17, 15, 0.12);
}

.course-card figure {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin: 0;
  background: #f1eee7;
}

.course-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    radial-gradient(circle at 22% 22%, rgba(193, 145, 60, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(248, 243, 233, 0.9), rgba(236, 231, 219, 0.62));
}

.course-card-placeholder strong {
  color: rgba(23, 23, 19, 0.38);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.course-card-copy {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
  min-height: 5.25rem;
  align-content: center;
  justify-items: center;
  padding: 0.54rem 1.08rem 0.62rem;
  text-align: center;
}

.course-card-copy strong {
  display: grid;
  --course-card-title-min-size: 7.8px;
  --course-card-title-max-size: 15.1px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 3.05rem;
  overflow: hidden;
  font-size: 0.702rem;
  line-height: 1.08;
  place-items: center;
  text-align: center;
  white-space: normal;
  overflow-wrap: normal;
}

.course-card-copy strong span {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  text-align: center;
  text-wrap: balance;
}

.course-card-copy small {
  overflow: hidden;
  color: rgba(23, 23, 19, 0.52);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  margin-top: 0.06rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-empty {
  margin: 2.2rem 0 0;
  color: rgba(23, 23, 19, 0.52);
}

.course-editor[hidden],
.course-browser[hidden],
.course-create-modal[hidden] {
  display: none !important;
}

.course-hidden-file {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.course-editor {
  min-height: calc(100vh - 7rem);
}

.course-editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.course-soft-button {
  min-height: 2.8rem;
  border: 0;
  border-radius: 999px;
  padding: 0 1rem;
  background: #f0efed;
  color: #171713;
  font-weight: 850;
  transition: transform 150ms ease, background 150ms ease;
}

.course-soft-button:hover {
  transform: translateY(-1px);
  background: #e8e5df;
}

.course-soft-button.is-danger {
  color: #a63c2f;
}

.course-editor-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  gap: 1rem;
  margin: 0 0 1.15rem;
}

.course-title-input,
.course-editor-head select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(18, 18, 15, 0.13);
  border-radius: 0;
  background: transparent;
  color: #171713;
  outline: none;
}

.course-title-input {
  padding: 0.2rem 0 0.65rem;
  font-size: clamp(1.55rem, 2.5vw, 2.65rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
}

.course-editor-head select {
  align-self: end;
  padding: 0.45rem 0;
  color: rgba(23, 23, 19, 0.58);
  font-size: 0.9rem;
  font-weight: 800;
}

.course-toolbar {
  position: sticky;
  top: 0;
  z-index: 14;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.2rem;
  border: 1px solid rgba(18, 18, 15, 0.08);
  border-radius: 18px;
  padding: 0.55rem;
  background: rgba(255, 254, 250, 0.94);
  box-shadow: 0 0.8rem 2.2rem rgba(17, 17, 15, 0.08);
  backdrop-filter: blur(16px);
}

.course-toolbar button,
.course-toolbar select,
.course-toolbar input[type="color"] {
  min-height: 2.35rem;
  border: 1px solid rgba(18, 18, 15, 0.09);
  border-radius: 12px;
  background: #fffefa;
  color: #171713;
  font-size: 0.8rem;
  font-weight: 850;
}

.course-toolbar button {
  min-width: 2.35rem;
  padding: 0 0.75rem;
}

.course-toolbar select {
  max-width: 12rem;
  padding: 0 0.62rem;
}

.course-toolbar input[type="color"] {
  width: 2.35rem;
  padding: 0.18rem;
}

.course-toolbar > span {
  width: 1px;
  height: 1.9rem;
  margin: 0 0.18rem;
  background: rgba(18, 18, 15, 0.1);
}

.course-paper-wrap {
  display: grid;
  justify-items: center;
  margin: 0 auto;
  border-radius: 28px;
  padding: clamp(1rem, 3vw, 2.2rem);
  background: #f2eee5;
}

.course-paper {
  width: min(920px, 100%);
  min-height: 68vh;
  padding: clamp(2rem, 5vw, 4.8rem);
  background: #fff;
  color: #171713;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.62;
  outline: none;
  box-shadow: 0 0.7rem 2.7rem rgba(17, 17, 15, 0.08);
}

.course-paper:empty::before {
  color: rgba(23, 23, 19, 0.32);
  content: attr(data-placeholder);
}

.course-paper h2,
.course-paper h3 {
  margin: 1.6em 0 0.55em;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.course-paper h2 {
  font-size: 2.15em;
}

.course-paper h3 {
  font-size: 1.45em;
}

.course-paper p {
  margin: 0 0 1em;
}

.course-paper blockquote {
  margin: 1.4rem 0;
  border-left: 3px solid #c1913c;
  padding-left: 1rem;
  color: rgba(23, 23, 19, 0.64);
}

.course-doc-image {
  position: relative;
  z-index: 1;
  display: block;
  margin: 1.35rem 0;
  text-align: center;
}

.course-doc-image img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border: 0;
  background: transparent;
  vertical-align: middle;
}

.course-doc-image.is-selected img {
  outline: 2px solid rgba(193, 145, 60, 0.95);
  outline-offset: 5px;
}

.course-doc-image.is-below {
  margin-top: 2.5rem;
}

.course-doc-image.is-over {
  z-index: 4;
  margin-top: -0.8rem;
  margin-bottom: -0.8rem;
}

.course-doc-image.is-behind {
  z-index: 0;
  margin-top: -0.4rem;
  margin-bottom: -3.8rem;
  opacity: 0.38;
}

.course-save-state {
  min-height: 1.2rem;
  margin: 0.9rem 0 0;
  color: rgba(23, 23, 19, 0.46);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: right;
}

.course-save-state.is-saving {
  color: #9b6f28;
}

.course-save-state.is-error {
  color: #a63c2f;
}

.course-create-modal {
  position: fixed;
  z-index: 320;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(17, 17, 15, 0.68);
  backdrop-filter: blur(10px);
}

.course-collaborators-modal {
  position: fixed;
  z-index: 330;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(17, 17, 15, 0.68);
  backdrop-filter: blur(10px);
}

.course-collaborators-modal[hidden] {
  display: none !important;
}

.course-collaborators-panel {
  position: relative;
  display: grid;
  gap: 1.15rem;
  width: min(760px, 94vw);
  max-height: min(760px, 88vh);
  overflow: auto;
  border: 1px solid rgba(18, 18, 15, 0.08);
  border-radius: 28px;
  padding: clamp(1.8rem, 4vw, 3rem);
  background: #f8f3e9;
  box-shadow: 0 1.8rem 5rem rgba(0, 0, 0, 0.24);
}

.course-collaborators-panel h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 0.95;
}

.course-collaborators-link {
  margin: 0;
  color: rgba(23, 23, 19, 0.56);
  font-size: 0.86rem;
  font-weight: 750;
}

.course-collaborators-link span {
  color: #171713;
  font-weight: 900;
}

.course-collaborator-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: end;
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 20px;
  padding: 1rem;
  background: rgba(255, 254, 250, 0.72);
}

.course-collaborator-form label {
  display: grid;
  gap: 0.38rem;
}

.course-collaborator-form label > span {
  color: rgba(23, 23, 19, 0.5);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.course-collaborator-form input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(23, 23, 19, 0.16);
  border-radius: 0;
  padding: 0.62rem 0;
  background: transparent;
  color: #171713;
  font: inherit;
  outline: none;
}

.course-collaborator-form .course-result {
  grid-column: 1 / -1;
}

.course-collaborators-list {
  display: grid;
  gap: 0.65rem;
}

.course-collaborators-empty {
  margin: 0;
  color: rgba(23, 23, 19, 0.54);
  font-weight: 800;
}

.course-collaborators-empty.is-error {
  color: #a63c2f;
}

.course-collaborator-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: #fffefa;
}

.course-collaborator-row strong,
.course-collaborator-row small {
  display: block;
}

.course-collaborator-row strong {
  font-size: 1rem;
}

.course-collaborator-row small {
  margin-top: 0.15rem;
  color: rgba(23, 23, 19, 0.52);
  font-size: 0.8rem;
  font-weight: 750;
}

.course-collaborator-row dl {
  display: flex;
  gap: 1rem;
  margin: 0;
}

.course-collaborator-row dt {
  color: rgba(23, 23, 19, 0.46);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.course-collaborator-row dd {
  margin: 0.12rem 0 0;
  color: #171713;
  font-size: 0.86rem;
  font-weight: 900;
}

.course-collaborator-row > button {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(166, 60, 47, 0.08);
  color: #a63c2f;
  font-size: 1.25rem;
  font-weight: 900;
}

.course-collab-content[hidden],
.course-collab-login[hidden] {
  display: none !important;
}

.course-collaboration-body {
  background: #fffdfa;
}

.course-console-collaboration {
  min-height: 100vh;
}

.course-create-panel {
  position: relative;
  width: min(620px, 92vw);
  border: 1px solid rgba(18, 18, 15, 0.08);
  border-radius: 26px;
  padding: clamp(1.8rem, 4vw, 3rem);
  background: #f8f3e9;
  box-shadow: 0 1.8rem 5rem rgba(0, 0, 0, 0.24);
}

.course-create-panel h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 0.95;
}

.course-create-form {
  display: grid;
  gap: 1.1rem;
}

.course-create-form label {
  display: grid;
  gap: 0.42rem;
}

.course-create-form label > span {
  color: rgba(23, 23, 19, 0.54);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.course-create-form input[type="text"],
.course-create-form select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(18, 18, 15, 0.16);
  border-radius: 0;
  padding: 0.68rem 0;
  background: transparent;
  color: #171713;
  font: inherit;
  outline: none;
}

.course-cover-drop {
  border: 1px dashed rgba(17, 17, 15, 0.22);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.34);
}

.course-cover-drop small {
  color: rgba(23, 23, 19, 0.48);
  font-size: 0.78rem;
}

.course-create-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: 0.4rem;
}

.course-create-actions > button:first-child {
  border: 0;
  background: transparent;
  color: rgba(23, 23, 19, 0.58);
  font-weight: 800;
}

.course-result {
  min-height: 1.15rem;
  margin: 0;
  color: #a63c2f;
  font-size: 0.82rem;
  font-weight: 800;
}

.course-console-sidebar {
  gap: 2.25rem;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(248, 243, 233, 0.7)),
    #fffefa;
}

.course-category-nav {
  position: relative;
  gap: 0.28rem;
  padding-left: 0.72rem;
}

.course-category-nav::before {
  position: absolute;
  top: 0.2rem;
  bottom: 0.2rem;
  left: 0;
  width: 1px;
  background: rgba(23, 23, 19, 0.1);
  content: "";
}

.course-category-nav button {
  position: relative;
  border-radius: 10px 999px 999px 10px;
  padding: 0.72rem 0.78rem;
  background: transparent;
  font-size: 0.86rem;
}

.course-category-nav button::before {
  position: absolute;
  top: 50%;
  left: -0.78rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(23, 23, 19, 0.16);
  content: "";
  transform: translateY(-50%);
}

.course-category-nav button:hover {
  background: rgba(23, 23, 19, 0.045);
}

.course-category-nav button.is-active {
  background: #171713;
  color: #fffefa;
}

.course-category-nav button.is-active::before {
  background: #c1913c;
  box-shadow: 0 0 0 4px rgba(193, 145, 60, 0.14);
}

.course-category-nav small {
  min-width: auto;
  height: auto;
  border: 1px solid rgba(23, 23, 19, 0.1);
  padding: 0.13rem 0.43rem;
  background: rgba(255, 255, 255, 0.54);
}

.course-category-nav button.is-active small {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fffefa;
}

.course-category-nav button.is-separated {
  margin-top: 0.9rem;
}

.course-category-nav button.is-separated::after {
  position: absolute;
  top: -0.48rem;
  right: 0.2rem;
  left: -0.2rem;
  height: 1px;
  background: rgba(23, 23, 19, 0.12);
  content: "";
}

.course-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 2rem);
}

.course-card button {
  border-radius: 22px;
  box-shadow: 0 1.15rem 3.1rem rgba(17, 17, 15, 0.1);
}

.course-card figure {
  border-radius: 22px 22px 0 0;
}

.course-card-copy {
  min-height: 5.45rem;
  padding: 0.64rem 1.25rem 0.74rem;
}

.course-card-copy strong {
  height: 3.05rem;
  font-size: 0.702rem;
  line-height: 1.08;
}

.course-card-copy small {
  color: #9b6f28;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  margin-top: 0.08rem;
  text-transform: uppercase;
}

.course-editor {
  min-height: calc(100vh - 5rem);
}

.course-editor.is-create-choice {
  min-height: calc(100vh - 5rem);
}

.course-create-choice {
  display: grid;
  justify-items: center;
  max-width: 760px;
  margin: clamp(2rem, 6vw, 5rem) auto;
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 2.25rem;
  padding: clamp(2rem, 5vw, 4rem);
  background: #fffefa;
  text-align: center;
  box-shadow: 0 1.6rem 4rem rgba(17, 17, 15, 0.08);
}

.course-create-choice .kicker {
  margin: 0 0 0.9rem;
  color: #9b6f28;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.course-create-choice h1 {
  margin: 0;
  color: #171713;
  font-family: var(--serif);
  font-size: clamp(3.1rem, 7vw, 5.6rem);
  line-height: 0.9;
}

.course-create-choice-intro {
  max-width: 38rem;
  margin: 1.25rem 0 2rem;
  color: rgba(23, 23, 19, 0.56);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
}

.course-format-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 620px);
  gap: 0.35rem;
  border: 1px solid rgba(191, 143, 61, 0.32);
  border-radius: 999px;
  padding: 0.38rem;
  background: #f7f2e8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.course-format-switch button {
  display: grid;
  gap: 0.18rem;
  border: 0;
  border-radius: 999px;
  padding: 0.92rem 1rem;
  background: transparent;
  color: rgba(23, 23, 19, 0.58);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.course-format-switch button:hover {
  transform: translateY(-1px);
  color: #171713;
}

.course-format-switch button.is-selected {
  background: #11110f;
  color: #fffefa;
  box-shadow: 0 0.85rem 2rem rgba(17, 17, 15, 0.14);
}

.course-format-switch strong {
  font-size: 0.98rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.course-format-switch span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.course-create-choice-submit {
  margin-top: 2rem;
}

.course-editor-topbar {
  position: relative;
  margin-bottom: clamp(1.1rem, 2vw, 1.75rem);
}

.course-editor-menu-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.course-menu-button {
  display: inline-grid;
  width: 3.15rem;
  height: 3.15rem;
  place-items: center;
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 999px;
  background: #f2eee5;
  color: #171713;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  box-shadow: 0 0.65rem 1.8rem rgba(17, 17, 15, 0.08);
  transition: transform 160ms ease, background 160ms ease;
}

.course-menu-button:hover {
  background: #e9e3d8;
  transform: translateY(-1px);
}

.course-more-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.65rem);
  right: 0;
  display: grid;
  min-width: 230px;
  gap: 0.25rem;
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 18px;
  padding: 0.45rem;
  background: #fffefa;
  box-shadow: 0 1rem 3rem rgba(17, 17, 15, 0.14);
}

.course-more-menu[hidden],
.course-category-picker[hidden],
.course-toolbar[hidden] {
  display: none !important;
}

.course-more-menu button {
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 0.78rem 0.9rem;
  background: transparent;
  color: rgba(23, 23, 19, 0.72);
  font-size: 0.9rem;
  font-weight: 850;
  text-align: left;
}

.course-more-menu button:hover,
.course-more-menu button.is-active {
  background: #f2eee5;
  color: #171713;
}

.course-more-menu button.is-danger {
  color: #a63c2f;
}

.course-category-picker {
  display: grid;
  gap: 0.22rem;
  margin: 0 0 0.35rem;
  border-bottom: 1px solid rgba(23, 23, 19, 0.08);
  padding: 0 0 0.45rem;
}

.course-category-picker button {
  padding-left: 1.25rem;
  font-size: 0.82rem;
}

.course-editor-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  max-width: 980px;
  margin: 0 auto 1rem;
}

.course-title-input {
  border-bottom: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.9rem, 3.1vw, 3.35rem);
  font-weight: 850;
}

.course-title-input[readonly] {
  cursor: default;
}

.course-console[data-course-section="concours"] .course-title-input:not(.quiz-title-input):not(.annale-title-input) {
  font-size: clamp(0.95rem, 1.55vw, 1.675rem);
}

.course-editor-category {
  margin: 0;
  color: #9b6f28;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.course-toolbar {
  top: 0.75rem;
  max-width: min(1120px, 100%);
  margin: 0 auto 1rem;
  border-radius: 999px;
  padding: 0.38rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}

.course-toolbar button,
.course-toolbar select,
.course-toolbar input[type="number"],
.course-toolbar .course-color-tool {
  flex: 0 0 auto;
  min-height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #171713;
  font-size: 0.82rem;
  font-weight: 850;
}

.course-toolbar button {
  min-width: 2.25rem;
  padding: 0 0.7rem;
}

.course-toolbar button:hover,
.course-toolbar select:hover,
.course-toolbar .course-color-tool:hover,
.course-toolbar input[type="number"]:hover {
  background: rgba(23, 23, 19, 0.06);
}

.course-toolbar select {
  max-width: 11rem;
  padding: 0 0.62rem;
}

.course-font-size-input {
  width: 4.2rem;
  border-radius: 999px;
  padding: 0 0.65rem;
  text-align: center;
}

.course-color-tool {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.28rem;
  padding: 0 0.55rem;
}

.course-color-tool input[type="color"] {
  width: 1.35rem;
  height: 1.35rem;
  min-height: 1.35rem;
  border: 1px solid rgba(23, 23, 19, 0.12);
  border-radius: 999px;
  padding: 0.12rem;
  background: #fffefa;
}

.course-toolbar-separator {
  flex: 0 0 1px;
  width: 1px;
  height: 1.45rem;
  margin: 0 0.18rem;
  background: rgba(18, 18, 15, 0.12);
}

.course-pages {
  display: grid;
  justify-items: center;
  gap: 1.35rem;
  border-radius: 30px;
  padding: clamp(1rem, 2.5vw, 2rem);
  background: #f2eee5;
}

.course-paper {
  width: min(920px, 100%);
  min-height: 1180px;
  overflow: visible;
  padding: clamp(2.4rem, 4.6vw, 4.6rem);
  background: #fff;
  font-size: 16px;
  line-height: 1.55;
  box-shadow: 0 0.8rem 2.5rem rgba(17, 17, 15, 0.08);
}

.course-paper[contenteditable="false"] {
  cursor: default;
}

.course-paper:focus {
  box-shadow:
    0 0 0 2px rgba(193, 145, 60, 0.34),
    0 0.8rem 2.5rem rgba(17, 17, 15, 0.08);
}

.course-paper p:last-child {
  margin-bottom: 0;
}

.course-editor.is-fiche-editor {
  min-height: calc(100vh - 5rem);
}

.course-fiche-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto 1.2rem;
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 24px;
  padding: 0.85rem 1rem;
  background: rgba(255, 254, 250, 0.78);
  box-shadow: 0 0.75rem 2.2rem rgba(17, 17, 15, 0.07);
}

.course-fiche-tools[hidden] {
  display: none !important;
}

.course-fiche-tools p {
  margin: 0;
  color: rgba(23, 23, 19, 0.54);
  font-size: 0.82rem;
  font-weight: 750;
}

.course-fiche-pages {
  gap: clamp(1rem, 2.2vw, 1.7rem);
}

.course-fiche-page {
  position: relative;
  display: grid;
  width: min(760px, 100%);
  min-height: 0;
  aspect-ratio: 210 / 297;
  place-items: center;
  overflow: hidden;
  padding: clamp(0.55rem, 1.2vw, 0.95rem);
  background: #fff;
}

.course-fiche-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  outline: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.course-fiche-remove {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border: 1px solid rgba(23, 23, 19, 0.1);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.9);
  color: #171713;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0.55rem 1.5rem rgba(17, 17, 15, 0.12);
}

.course-fiche-remove:hover {
  background: #171713;
  color: #fffefa;
}

.course-fiche-empty {
  display: grid;
  width: min(760px, 100%);
  min-height: min(860px, 72vh);
  aspect-ratio: 210 / 297;
  place-items: center;
  margin: 0;
  border: 1px dashed rgba(23, 23, 19, 0.2);
  border-radius: 22px;
  padding: 2rem;
  background:
    radial-gradient(circle at 24% 18%, rgba(193, 145, 60, 0.12), transparent 28%),
    rgba(255, 254, 250, 0.72);
  color: rgba(23, 23, 19, 0.54);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-fiche-empty span {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 0.6rem;
  place-items: center;
  border-radius: 999px;
  background: #171713;
  color: #fffefa;
  font-size: 1.75rem;
  line-height: 1;
}

.course-fiche-empty.is-readonly {
  min-height: 18rem;
  aspect-ratio: auto;
  border-style: solid;
  cursor: default;
  text-align: center;
}

.course-editor.is-annale-editor {
  min-height: calc(100vh - 5rem);
}

.annale-topbar,
.annale-editor-head,
.annale-editor {
  max-width: 1080px;
  margin-inline: auto;
}

.annale-editor-head {
  margin-bottom: clamp(1.25rem, 2.4vw, 2.05rem);
}

.annale-title-input {
  font-size: clamp(2rem, 3.15vw, 3.45rem);
}

.annale-editor {
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.35rem);
}

.annale-pdf-empty {
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 12%, rgba(193, 145, 60, 0.1), transparent 34%),
    rgba(255, 254, 250, 0.88);
  box-shadow: 0 1.4rem 3.4rem rgba(17, 17, 15, 0.07);
}

.annale-pdf-empty {
  display: grid;
  min-height: min(44vh, 26rem);
  place-items: center;
  justify-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.annale-pdf-empty .album-create-button {
  margin-top: 0;
}

.annale-pdf-upload-label {
  position: relative;
  overflow: hidden;
}

.annale-pdf-inline-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.annale-pdf-viewer {
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.annale-pdf-download-button {
  position: absolute;
  z-index: 3;
  top: clamp(0.65rem, 1.4vw, 1rem);
  right: clamp(0.65rem, 1.4vw, 1rem);
  display: inline-grid;
  width: clamp(2.65rem, 4vw, 3.15rem);
  height: clamp(2.65rem, 4vw, 3.15rem);
  place-items: center;
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.92);
  color: #171713;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 0.8rem 1.8rem rgba(17, 17, 15, 0.1);
}

.annale-pdf-download-button:hover {
  background: #171713;
  color: #fffefa;
}

.annale-pdf-viewer > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(23, 23, 19, 0.08);
  padding: clamp(1rem, 2vw, 1.35rem);
}

.annale-pdf-viewer > header > div:first-child {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.annale-pdf-viewer .kicker {
  margin: 0;
  color: #9b6f28;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.annale-pdf-viewer h3 {
  margin: 0;
  overflow: hidden;
  color: #171713;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.25rem, 2.25vw, 2rem);
  font-weight: 950;
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.annale-pdf-viewer small {
  color: rgba(23, 23, 19, 0.48);
  font-size: 0.82rem;
  font-weight: 800;
}

.annale-pdf-viewer > header > div:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.annale-pdf-viewer > header a,
.annale-pdf-viewer > header label,
.annale-pdf-viewer > header button {
  display: inline-flex;
  min-height: 2.45rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  background: #fffefa;
  color: #171713;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.annale-pdf-viewer > header a:hover,
.annale-pdf-viewer > header label:hover,
.annale-pdf-viewer > header button:hover {
  background: #171713;
  color: #fffefa;
}

.annale-pdf-viewer button.is-danger {
  color: #a63c2f;
}

.annale-pdf-viewer button.is-danger:hover {
  background: #a63c2f;
  color: #fffefa;
}

.annale-pdf-viewer iframe {
  display: block;
  width: 100%;
  min-height: min(76vh, 62rem);
  border: 0;
  background: transparent;
}

.course-doc-image {
  margin: 1.4rem 0;
  text-align: center;
}

.course-doc-image-box {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}

.course-doc-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
  outline: 0;
}

.course-doc-image.is-selected img,
.course-doc-image-box.is-selected img {
  outline: 2px solid rgba(47, 124, 246, 0.85);
  outline-offset: 4px;
}

.course-image-resize-handle {
  position: absolute;
  z-index: 3;
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid #2f7cf6;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0.16rem 0.45rem rgba(0, 0, 0, 0.18);
}

.course-image-resize-handle.is-nw,
.course-image-resize-handle.is-ne,
.course-image-resize-handle.is-sw,
.course-image-resize-handle.is-se {
  cursor: nwse-resize;
}

.course-image-resize-handle.is-n,
.course-image-resize-handle.is-s {
  cursor: ns-resize;
}

.course-image-resize-handle.is-e,
.course-image-resize-handle.is-w {
  cursor: ew-resize;
}

.course-image-resize-handle.is-nw { top: -0.42rem; left: -0.42rem; }
.course-image-resize-handle.is-ne { top: -0.42rem; right: -0.42rem; }
.course-image-resize-handle.is-sw { bottom: -0.42rem; left: -0.42rem; }
.course-image-resize-handle.is-se { right: -0.42rem; bottom: -0.42rem; }
.course-image-resize-handle.is-n { top: -0.42rem; left: 50%; transform: translateX(-50%); }
.course-image-resize-handle.is-s { bottom: -0.42rem; left: 50%; transform: translateX(-50%); }
.course-image-resize-handle.is-e { top: 50%; right: -0.42rem; transform: translateY(-50%); }
.course-image-resize-handle.is-w { top: 50%; left: -0.42rem; transform: translateY(-50%); }

.course-save-state {
  max-width: 980px;
  margin: 0.75rem auto 0;
}

.course-editor.is-recipe-editor {
  min-height: calc(100vh - 5rem);
}

body[data-gestion-section="cuisine"] .recipe-editor .recipe-cover,
body[data-gestion-section="cuisine"] .recipe-editor [data-course-change-cover].recipe-cover,
.course-editor.is-recipe-editor .recipe-cover {
  display: none !important;
}

.recipe-topbar {
  max-width: 1180px;
  margin-inline: auto;
}

.recipe-editor-head {
  max-width: 1180px;
  margin-bottom: clamp(1.4rem, 2.6vw, 2.3rem);
}

.recipe-title-input {
  font-size: clamp(2rem, 3.4vw, 3.7rem);
}

.recipe-editor {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 1.08fr);
  align-items: start;
  gap: clamp(1rem, 2vw, 1.55rem);
  max-width: 1180px;
  margin: 0 auto;
}

.recipe-column {
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.35rem);
}

.recipe-panel {
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 28px;
  padding: clamp(1rem, 2vw, 1.45rem);
  background: rgba(255, 254, 250, 0.82);
  box-shadow: 0 1rem 2.4rem rgba(17, 17, 15, 0.06);
}

.recipe-panel > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(23, 23, 19, 0.08);
  padding-bottom: 0.85rem;
}

.recipe-panel .kicker {
  margin: 0 0 0.25rem;
  color: #9b6f28;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.recipe-panel h3 {
  margin: 0;
  color: #171713;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.recipe-list {
  display: grid;
  gap: 0.58rem;
}

.recipe-row,
.recipe-add-form {
  display: grid;
  align-items: center;
  gap: 0.55rem;
}

.recipe-row.is-ingredient,
.recipe-add-form.is-ingredient {
  grid-template-columns: 3.1rem minmax(5rem, 0.36fr) minmax(0, 1fr) 2.35rem;
}

.recipe-row.is-step,
.recipe-add-form.is-step {
  grid-template-columns: 3.1rem minmax(0, 1fr) 2.35rem;
}

.recipe-row {
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 18px;
  padding: 0.45rem;
  background: #fffefa;
}

.recipe-row input,
.recipe-add-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 13px;
  padding: 0.78rem 0.82rem;
  background: transparent;
  color: #171713;
  font-size: 0.94rem;
  font-weight: 760;
}

.recipe-row input:focus,
.recipe-add-form input:focus {
  outline: 2px solid rgba(193, 145, 60, 0.26);
  outline-offset: 0;
  background: #fff;
}

.recipe-row input:disabled {
  color: rgba(23, 23, 19, 0.76);
  opacity: 1;
}

.recipe-emoji-picker {
  position: relative;
  min-width: 0;
}

.recipe-emoji-value,
.recipe-add-form .recipe-emoji-value {
  display: inline-grid;
  width: 100%;
  height: 2.9rem;
  min-width: 0;
  place-items: center;
  border: 0;
  border-radius: 13px;
  padding: 0;
  background: transparent;
  color: #171713;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.recipe-emoji-value:hover,
.recipe-emoji-picker.is-open .recipe-emoji-value {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(193, 145, 60, 0.24);
}

.recipe-emoji-value:disabled {
  cursor: default;
  opacity: 1;
}

.recipe-emoji-value.is-empty {
  color: rgba(23, 23, 19, 0.44);
}

.recipe-emoji-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 0.42rem);
  left: 0;
  display: grid;
  width: min(22rem, 76vw);
  max-height: 17rem;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.18rem;
  overflow: auto;
  border: 1px solid rgba(23, 23, 19, 0.1);
  border-radius: 18px;
  padding: 0.52rem;
  background: #fffefa;
  box-shadow: 0 22px 54px rgba(23, 23, 19, 0.17);
}

.recipe-emoji-menu[hidden] {
  display: none;
}

.recipe-emoji-menu button,
.recipe-add-form .recipe-emoji-menu button {
  display: inline-grid;
  width: 2.18rem;
  height: 2.18rem;
  min-width: 0;
  place-items: center;
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  color: #171713;
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
}

.recipe-emoji-menu button:hover,
.recipe-emoji-menu button.is-active {
  background: #f2eee5;
}

.recipe-quantity-field {
  color: #9b6f28 !important;
  font-weight: 900 !important;
}

.recipe-remove-button,
.recipe-add-form > button[type="submit"] {
  display: inline-grid;
  height: 2.35rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.recipe-remove-button {
  width: 2.35rem;
  background: #f2eee5;
  color: rgba(23, 23, 19, 0.58);
  font-size: 1.15rem;
}

.recipe-remove-button:hover {
  background: #171713;
  color: #fffefa;
}

.recipe-add-form {
  margin-top: 0.7rem;
  border: 1px dashed rgba(23, 23, 19, 0.18);
  border-radius: 18px;
  padding: 0.45rem;
  background: rgba(242, 238, 229, 0.72);
}

.recipe-add-form > button[type="submit"] {
  position: relative;
  width: 2.35rem;
  min-width: 2.35rem;
  padding: 0;
  background: #171713;
  color: #fffefa;
  font-size: 0;
  line-height: 1;
  overflow: hidden;
}

.recipe-add-form > button[type="submit"]::before,
.recipe-add-form > button[type="submit"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.recipe-add-form > button[type="submit"]::before {
  width: 0.86rem;
  height: 0.13rem;
}

.recipe-add-form > button[type="submit"]::after {
  width: 0.13rem;
  height: 0.86rem;
}

.recipe-empty-line {
  margin: 0;
  border: 1px dashed rgba(23, 23, 19, 0.15);
  border-radius: 18px;
  padding: 1rem;
  color: rgba(23, 23, 19, 0.48);
  font-size: 0.92rem;
  font-weight: 800;
}

.course-editor.is-workout-editor {
  min-height: calc(100vh - 5rem);
}

.workout-topbar,
.workout-editor-head,
.workout-editor {
  max-width: 1180px;
  margin-inline: auto;
}

.workout-editor-head {
  margin-bottom: clamp(1.4rem, 2.6vw, 2.3rem);
}

.workout-title-input {
  font-size: clamp(2rem, 3.4vw, 3.7rem);
}

.workout-editor {
  display: block;
}

.workout-panel {
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 28px;
  padding: clamp(1rem, 2vw, 1.45rem);
  background: rgba(255, 254, 250, 0.82);
  box-shadow: 0 1rem 2.4rem rgba(17, 17, 15, 0.06);
}

.workout-panel > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(23, 23, 19, 0.08);
  padding-bottom: 0.85rem;
}

.workout-panel .kicker {
  margin: 0 0 0.25rem;
  color: #9b6f28;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.workout-panel h3 {
  margin: 0;
  color: #171713;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.workout-list {
  display: grid;
  gap: 0.58rem;
}

.workout-row,
.workout-add-form {
  display: grid;
  grid-template-columns: 3.1rem minmax(4.5rem, 0.24fr) minmax(5.8rem, 0.3fr) minmax(0, 1fr) 2.35rem;
  align-items: center;
  gap: 0.55rem;
}

.workout-row {
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 18px;
  padding: 0.45rem;
  background: #fffefa;
}

.workout-row input,
.workout-add-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 13px;
  padding: 0.78rem 0.82rem;
  background: transparent;
  color: #171713;
  font-size: 0.94rem;
  font-weight: 760;
}

.workout-row input:focus,
.workout-add-form input:focus {
  outline: 2px solid rgba(193, 145, 60, 0.26);
  outline-offset: 0;
  background: #fff;
}

.workout-row input:disabled {
  color: rgba(23, 23, 19, 0.76);
  opacity: 1;
}

.workout-emoji-field {
  text-align: center;
  font-size: 1.28rem !important;
}

.workout-small-field {
  color: #9b6f28 !important;
  font-weight: 900 !important;
}

.workout-remove-button,
.workout-add-form > button[type="submit"] {
  display: inline-grid;
  height: 2.35rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.workout-remove-button {
  width: 2.35rem;
  background: #f2eee5;
  color: rgba(23, 23, 19, 0.58);
  font-size: 1.15rem;
}

.workout-remove-button:hover {
  background: #171713;
  color: #fffefa;
}

.workout-add-form {
  margin-top: 0.7rem;
  border: 1px dashed rgba(23, 23, 19, 0.18);
  border-radius: 18px;
  padding: 0.45rem;
  background: rgba(242, 238, 229, 0.72);
}

.workout-add-form > button[type="submit"] {
  position: relative;
  width: 2.35rem;
  min-width: 2.35rem;
  padding: 0;
  background: #171713;
  color: #fffefa;
  font-size: 0;
  line-height: 1;
  overflow: hidden;
}

.workout-add-form > button[type="submit"]::before,
.workout-add-form > button[type="submit"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.workout-add-form > button[type="submit"]::before {
  width: 0.86rem;
  height: 0.13rem;
}

.workout-add-form > button[type="submit"]::after {
  width: 0.13rem;
  height: 0.86rem;
}

.workout-empty-line {
  margin: 0;
  border: 1px dashed rgba(23, 23, 19, 0.15);
  border-radius: 18px;
  padding: 1rem;
  color: rgba(23, 23, 19, 0.48);
  font-size: 0.92rem;
  font-weight: 800;
}

.course-editor.is-quiz-editor {
  min-height: calc(100vh - 5rem);
}

.quiz-topbar,
.quiz-editor-head,
.quiz-editor {
  max-width: 1080px;
  margin-inline: auto;
}

.quiz-editor-head {
  margin-bottom: clamp(1.3rem, 2.5vw, 2.15rem);
}

.quiz-title-input {
  font-size: clamp(1.65rem, 2.65vw, 2.85rem);
}

.quiz-editor {
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.35rem);
}

.quiz-editor-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 26px;
  padding: 1rem;
  background: rgba(255, 254, 250, 0.9);
  box-shadow: 0 1rem 2.4rem rgba(17, 17, 15, 0.06);
}

.quiz-editor-controls label {
  display: grid;
  min-width: min(22rem, 100%);
  gap: 0.42rem;
}

.quiz-editor-controls label span,
.quiz-question-card header small,
.quiz-prompt-field span,
.quiz-answer-list > p {
  color: #9b6f28;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quiz-editor-controls select {
  width: 100%;
  border: 1px solid rgba(23, 23, 19, 0.1);
  border-radius: 999px;
  padding: 0.82rem 1rem;
  background: #fffefa;
  color: #171713;
  font-size: 0.96rem;
  font-weight: 850;
}

.quiz-editor-controls select:disabled {
  opacity: 1;
  color: #171713;
}

.quiz-add-question-main {
  white-space: nowrap;
}

.quiz-question-list {
  display: grid;
  gap: 1rem;
}

.quiz-question-card {
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 28px;
  padding: clamp(1rem, 2vw, 1.45rem);
  background: #fffefa;
  box-shadow: 0 1rem 2.4rem rgba(17, 17, 15, 0.055);
}

.quiz-question-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(23, 23, 19, 0.08);
  padding-bottom: 0.8rem;
}

.quiz-question-card header > div {
  display: grid;
  gap: 0.22rem;
}

.quiz-question-card header strong {
  color: #171713;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.quiz-question-card header button,
.quiz-answer-row button {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f7ece7;
  color: #a63c2f;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
}

.quiz-question-card header button:hover,
.quiz-answer-row button:hover {
  background: #a63c2f;
  color: #fffefa;
}

.quiz-prompt-field {
  display: grid;
  gap: 0.48rem;
}

.quiz-prompt-field textarea {
  width: 100%;
  min-height: 6.6rem;
  border: 1px solid rgba(23, 23, 19, 0.1);
  border-radius: 20px;
  padding: 1rem;
  background: rgba(248, 243, 233, 0.42);
  color: #171713;
  font-size: 1rem;
  font-weight: 740;
  line-height: 1.48;
  resize: vertical;
}

.quiz-prompt-field textarea:focus {
  outline: 2px solid rgba(193, 145, 60, 0.26);
  outline-offset: 0;
  background: #fff;
}

.quiz-prompt-field textarea:disabled {
  opacity: 1;
  color: #171713;
}

.quiz-answer-list {
  display: grid;
  gap: 0.55rem;
}

.quiz-answer-list > p {
  margin: 0;
}

.quiz-answer-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 999px;
  padding: 0.5rem 0.6rem;
  background: rgba(255, 255, 255, 0.72);
}

.quiz-answer-row input[type="radio"] {
  width: 1.08rem;
  height: 1.08rem;
  margin: 0;
  accent-color: #171713;
}

.quiz-answer-row input[type="text"] {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 0.74rem 0.7rem;
  background: transparent;
  color: #171713;
  font-size: 0.96rem;
  font-weight: 800;
}

.quiz-answer-row input[type="text"]:focus {
  outline: 2px solid rgba(193, 145, 60, 0.24);
  background: #fff;
}

.quiz-answer-row input:disabled {
  opacity: 1;
  color: #171713;
}

.quiz-answer-row.is-selected {
  box-shadow: inset 0 0 0 1px rgba(23, 23, 19, 0.08);
}

.quiz-answer-row.is-correct {
  border-color: rgba(68, 130, 79, 0.38);
  background: rgba(228, 241, 229, 0.74);
}

.quiz-answer-row.is-wrong {
  border-color: rgba(166, 60, 47, 0.32);
  background: rgba(247, 236, 231, 0.68);
}

.quiz-add-answer-button {
  justify-self: start;
  border: 1px solid rgba(193, 145, 60, 0.28);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: transparent;
  color: #9b6f28;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.quiz-add-answer-button:hover {
  background: #f2eee5;
}

.quiz-empty-line {
  margin: 0;
  border: 1px dashed rgba(23, 23, 19, 0.16);
  border-radius: 24px;
  padding: 1.45rem;
  background: rgba(255, 254, 250, 0.72);
  color: rgba(23, 23, 19, 0.52);
  font-size: 0.96rem;
  font-weight: 850;
}

.quiz-player {
  display: grid;
  justify-items: center;
  padding: clamp(1rem, 3vw, 2.5rem) 0 clamp(2rem, 5vw, 4rem);
}

.quiz-player-card {
  width: min(760px, 100%);
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: clamp(28px, 4vw, 42px);
  background:
    radial-gradient(circle at top left, rgba(193, 145, 60, 0.12), transparent 34%),
    #fffefa;
  box-shadow: 0 1.8rem 4.4rem rgba(17, 17, 15, 0.08);
}

.quiz-intro-card,
.quiz-result-card {
  display: grid;
  justify-items: center;
  gap: 1.15rem;
  padding: clamp(2.1rem, 5vw, 4.4rem);
  text-align: center;
}

.quiz-player-kicker {
  color: #9b6f28;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.quiz-player-card h2 {
  max-width: 18ch;
  margin: 0;
  color: #171713;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(1.85rem, 4.55vw, 3.45rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.055em;
}

.quiz-intro-card p,
.quiz-result-card p {
  max-width: 48rem;
  margin: 0;
  color: rgba(23, 23, 19, 0.62);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 750;
  line-height: 1.58;
}

.quiz-start-button,
.quiz-next-button {
  border: 0;
  border-radius: 999px;
  background: #171713;
  color: #fffefa;
  font-size: 0.98rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 1rem 2.2rem rgba(17, 17, 15, 0.16);
}

.quiz-start-button {
  margin-top: 0.4rem;
  padding: 1rem 1.35rem;
}

.quiz-question-play-card {
  display: grid;
  gap: clamp(1.2rem, 2.8vw, 2rem);
  padding: clamp(1.35rem, 3vw, 2.2rem);
}

.quiz-question-play-card.is-validated {
  border-width: 2px;
}

.quiz-question-play-card.is-answer-correct {
  border-color: rgba(45, 122, 67, 0.42);
  background:
    radial-gradient(circle at top left, rgba(45, 122, 67, 0.12), transparent 34%),
    #fffefa;
}

.quiz-question-play-card.is-answer-wrong {
  border-color: rgba(166, 60, 47, 0.42);
  background:
    radial-gradient(circle at top left, rgba(166, 60, 47, 0.1), transparent 34%),
    #fffefa;
}

.quiz-question-play-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(23, 23, 19, 0.58);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quiz-question-play-head strong {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12rem;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: #171713;
  color: #fffefa;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.quiz-question-play-head > div {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.quiz-question-play-head [data-quiz-timer] {
  min-width: 3.1rem;
  justify-content: center;
  text-align: center;
  font-size: 1.22rem;
}

.quiz-question-play-head [data-quiz-timer].is-warning {
  color: #f1c25e;
}

.quiz-question-play-card h2 {
  max-width: 100%;
  font-size: clamp(1.28rem, 2.35vw, 2.05rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.quiz-choice-list {
  display: grid;
  gap: 0.72rem;
}

.quiz-choice-list button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 24px;
  padding: 0.86rem 1rem;
  background: rgba(248, 243, 233, 0.48);
  color: #171713;
  text-align: left;
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  font-weight: 850;
  line-height: 1.28;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.quiz-choice-list button > strong {
  min-width: 0;
  color: inherit;
  font: inherit;
}

.quiz-choice-list button:hover,
.quiz-choice-list button.is-selected {
  border-color: rgba(193, 145, 60, 0.45);
  background: #fffefa;
  box-shadow: 0 0.9rem 2rem rgba(17, 17, 15, 0.07);
  transform: translateY(-1px);
}

.quiz-choice-list button.is-locked {
  cursor: default;
  transform: none;
}

.quiz-choice-list button.is-locked:hover {
  transform: none;
}

.quiz-choice-list button.is-correct {
  border-color: rgba(45, 122, 67, 0.46);
  background: rgba(45, 122, 67, 0.08);
  box-shadow: none;
}

.quiz-choice-list button.is-wrong {
  border-color: rgba(166, 60, 47, 0.28);
  background: rgba(166, 60, 47, 0.055);
  box-shadow: none;
}

.quiz-choice-list button.is-correct span {
  background: #2d7a43;
}

.quiz-choice-list button.is-wrong span {
  background: #a63c2f;
}

.quiz-choice-list button span {
  display: inline-grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 999px;
  background: #171713;
  color: #fffefa;
  font-size: 0.82rem;
  font-weight: 950;
}

.quiz-choice-list button em {
  justify-self: end;
  font-size: 1.12rem;
  font-style: normal;
  line-height: 1;
}

.quiz-question-play-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(23, 23, 19, 0.08);
  padding-top: 1.1rem;
}

.quiz-question-play-card footer small {
  color: rgba(23, 23, 19, 0.46);
  font-size: 0.82rem;
  font-weight: 800;
}

.quiz-next-button {
  min-width: 11rem;
  padding: 0.9rem 1.15rem;
}

.quiz-next-button:disabled {
  cursor: not-allowed;
  opacity: 0.34;
  box-shadow: none;
}

.quiz-result-card h2 {
  max-width: 100%;
}

.course-grid.is-quiz-hub {
  display: block;
}

.quiz-hub-loading {
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 28px;
  padding: 1.4rem;
  background: #fffefa;
  color: rgba(23, 23, 19, 0.58);
  font-size: 1rem;
  font-weight: 850;
}

.quiz-hub-loading.is-error {
  color: #a63c2f;
}

.quiz-hub-stack {
  display: grid;
  gap: clamp(1.35rem, 3vw, 2.6rem);
}

.quiz-hub {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
  max-width: 980px;
  margin-inline: auto;
}

.quiz-hub .quiz-player {
  grid-column: 1 / -1;
}

.quiz-hub.is-playing {
  grid-template-columns: minmax(0, 1fr);
}

.quiz-hub.is-playing .quiz-start-panel,
.quiz-hub.is-playing .quiz-history-panel {
  display: none;
}

.quiz-hub.is-playing .quiz-player {
  grid-column: 1 / -1;
}

.quiz-hub.is-inactive-playing {
  display: none;
}

.quiz-start-panel,
.quiz-history-panel {
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: clamp(26px, 3vw, 38px);
  padding: clamp(1.35rem, 3vw, 2.4rem);
  background:
    radial-gradient(circle at top left, rgba(193, 145, 60, 0.1), transparent 34%),
    #fffefa;
  box-shadow: 0 1.4rem 3.5rem rgba(17, 17, 15, 0.07);
}

.quiz-start-panel {
  display: grid;
  justify-items: center;
  gap: 1.15rem;
  text-align: center;
}

.quiz-start-panel h2,
.quiz-history-panel h3 {
  margin: 0;
  color: #171713;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.quiz-start-panel h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  line-height: 0.94;
}

.quiz-start-panel p {
  max-width: 42rem;
  margin: 0;
  color: rgba(23, 23, 19, 0.62);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-weight: 750;
  line-height: 1.55;
}

.quiz-start-intro {
  text-align: center;
}

.quiz-rules {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  max-width: 46rem;
  margin: 0.25rem auto 0;
}

.quiz-rules span {
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 999px;
  padding: 0.62rem 0.82rem;
  background: rgba(248, 243, 233, 0.62);
  color: rgba(23, 23, 19, 0.62);
  font-size: 0.84rem;
  font-weight: 900;
}

.quiz-start-form {
  display: grid;
  grid-template-columns: minmax(260px, 420px);
  justify-items: center;
  gap: 0.85rem;
  width: min(420px, 100%);
  margin: 0.35rem auto 0;
}

.quiz-start-form label {
  display: grid;
  width: 100%;
  gap: 0.55rem;
}

.quiz-start-form label span,
.quiz-category-field span,
.quiz-question-image-field > span {
  color: #9b6f28;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quiz-category-select-label > span:first-child,
.quiz-question-count-label > span:first-child {
  justify-self: center;
}

.quiz-question-count-picker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid rgba(193, 145, 60, 0.22);
  border-radius: 999px;
  padding: 0.34rem;
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.98), rgba(248, 243, 233, 0.78));
  box-shadow: 0 0.85rem 2rem rgba(17, 17, 15, 0.055);
}

.quiz-question-count-choice {
  display: inline-grid;
  min-width: 3.4rem;
  height: 2.45rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(23, 23, 19, 0.58);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.quiz-question-count-choice.is-selected {
  background: transparent;
  color: #050505;
  box-shadow: none;
  transform: none;
  font-weight: 1000;
}

.quiz-question-count-choice:hover {
  background: transparent;
  color: #171713;
  box-shadow: none;
  transform: scale(1.045);
  font-weight: 1000;
}

.quiz-difficulty-picker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(193, 145, 60, 0.22);
  border-radius: 999px;
  padding: 0.42rem;
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.98), rgba(248, 243, 233, 0.78));
  box-shadow: 0 0.85rem 2rem rgba(17, 17, 15, 0.055);
}

.quiz-start-form .quiz-difficulty-picker {
  margin: 0 auto;
}

.quiz-difficulty-star,
.quiz-difficulty-random {
  display: inline-grid;
  width: 2.32rem;
  height: 2.32rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(23, 23, 19, 0.34);
  font-size: 1.12rem;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.quiz-difficulty-star.is-filled {
  color: #c1913c;
}

.quiz-difficulty-star:hover,
.quiz-difficulty-random:hover,
.quiz-difficulty-star.is-selected,
.quiz-difficulty-random.is-selected {
  background: transparent;
  box-shadow: none;
  transform: scale(1.08);
}

.quiz-difficulty-random {
  margin-left: 0.16rem;
}

.quiz-start-message {
  min-height: 1.2em;
  text-align: center;
  color: #a63c2f !important;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
}

.quiz-history-panel {
  display: grid;
  gap: 1rem;
}

.quiz-history-panel header {
  display: grid;
  gap: 0.35rem;
}

.quiz-history-panel h3 {
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
}

.quiz-history-empty {
  margin: 0;
  border: 1px dashed rgba(23, 23, 19, 0.14);
  border-radius: 22px;
  padding: 1rem;
  color: rgba(23, 23, 19, 0.48);
  font-size: 0.92rem;
  font-weight: 820;
}

.quiz-history-list {
  display: grid;
  gap: 0.65rem;
}

.quiz-history-row {
  display: grid;
  grid-template-columns: 1.2fr minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 18px;
  padding: 0.78rem 0.88rem;
  background: rgba(255, 255, 255, 0.72);
}

.quiz-history-row.is-simple {
  grid-template-columns: minmax(0, 1fr) auto;
}

.quiz-history-row span,
.quiz-history-row strong,
.quiz-history-row em {
  min-width: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 900;
}

.quiz-history-row span {
  color: rgba(23, 23, 19, 0.48);
  font-size: 0.82rem;
}

.quiz-history-row strong {
  overflow: hidden;
  color: #171713;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiz-history-row em,
.quiz-result-card h2.is-high {
  color: #2d7a43;
}

.quiz-history-row em.is-low,
.quiz-result-card h2.is-low {
  color: #a63c2f;
}

.quiz-manager-controls {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) auto auto;
}

.quiz-manager-controls.is-simple {
  grid-template-columns: minmax(0, 1fr) auto;
}

.quiz-manager-controls strong {
  color: rgba(23, 23, 19, 0.58);
  font-size: 0.95rem;
  font-weight: 900;
  white-space: nowrap;
}

.quiz-category-field,
.quiz-question-image-field {
  display: grid;
  gap: 0.5rem;
}

.quiz-question-image-box {
  overflow: hidden;
  border: 1px dashed rgba(23, 23, 19, 0.16);
  border-radius: 22px;
  background: rgba(248, 243, 233, 0.34);
}

.quiz-question-image-box figure {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 2;
  width: 100%;
}

.quiz-question-image-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quiz-question-image-box figure button {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
}

.quiz-image-add,
.quiz-image-replace {
  display: grid;
  place-items: center;
  min-height: 5rem;
  color: rgba(23, 23, 19, 0.58);
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
}

.quiz-image-add {
  aspect-ratio: 3 / 2;
}

.quiz-image-replace {
  min-height: auto;
  padding: 0.8rem;
}

.quiz-image-add input,
.quiz-image-replace input {
  display: none;
}

.quiz-play-image {
  overflow: hidden;
  margin: 0;
  aspect-ratio: 3 / 2;
  width: 100%;
  border-radius: 24px;
  background: #f2eee5;
}

.quiz-play-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1240px) {
  .album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .album-photos-grid,
  .album-grid.album-photo-library-grid {
    --album-target-height: clamp(190px, 22vw, 270px);
  }
}

@media (max-width: 980px) {
  .album-console {
    grid-template-columns: 1fr;
  }

  .course-console {
    grid-template-columns: 1fr;
  }

  .album-console-sidebar {
    position: static;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(18, 18, 15, 0.08);
    padding: 1.5rem;
  }

  .course-console-sidebar {
    position: static;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(18, 18, 15, 0.08);
    padding: 1.5rem;
  }

  .album-category-nav,
  .album-library-nav,
  .course-category-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .album-storage-card {
    margin-top: 0;
  }

  .course-storage-card {
    margin-top: 0;
  }

  .album-browser-head,
  .album-editor-topbar,
  .album-share-panel,
  .course-browser-head,
  .course-editor-topbar,
  .course-editor-head {
    grid-template-columns: 1fr;
  }

  .album-share-panel {
    display: grid;
  }

  .course-editor-head {
    display: grid;
  }

  .recipe-editor {
    grid-template-columns: 1fr;
  }

  .quiz-editor-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .quiz-add-question-main {
    justify-content: center;
  }

  .album-photos-grid,
  .album-grid.album-photo-library-grid {
    --album-target-height: clamp(180px, 28vw, 250px);
  }
}

@media (max-width: 720px) {
  .gestion-planning-row,
  .gestion-todo-toolbar,
  .gestion-task,
  .gestion-task-add-grid,
  .gestion-history-item,
  .course-browser-head,
  .course-editor-topbar {
    grid-template-columns: 1fr;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .course-toolbar {
    position: static;
  }

  .course-paper {
    padding: 1.5rem;
  }

  .recipe-row.is-ingredient,
  .recipe-add-form.is-ingredient,
  .recipe-row.is-step,
  .recipe-add-form.is-step,
  .workout-row,
  .workout-add-form,
  .quiz-answer-row {
    grid-template-columns: 2.75rem minmax(0, 1fr);
  }

  .quiz-question-play-head,
  .quiz-question-play-card footer {
    align-items: stretch;
    flex-direction: column;
  }

  .quiz-question-play-head strong,
  .quiz-next-button {
    justify-content: center;
    width: 100%;
  }

  .recipe-row.is-ingredient .recipe-quantity-field,
  .recipe-add-form.is-ingredient .recipe-quantity-field,
  .recipe-row .recipe-remove-button,
  .recipe-add-form > button,
  .workout-row .workout-text-field,
  .workout-row .workout-remove-button,
  .workout-add-form .workout-text-field,
  .workout-add-form > button,
  .quiz-answer-row button {
    grid-column: 1 / -1;
  }

  .course-browser-actions,
  .course-collaborator-form,
  .course-collaborator-row,
  .course-collaborator-row dl {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .course-browser-actions {
    justify-content: flex-start;
  }

  .gestion-todo-toolbar,
  .gestion-history-item {
    align-items: stretch;
  }

  .gestion-todo-toolbar {
    flex-direction: column;
  }

  .gestion-todo-tabs,
  .gestion-history-item dl {
    width: 100%;
  }

  .gestion-history-tools,
  .gestion-history-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .gestion-history-pagination > div {
    flex-wrap: wrap;
    justify-content: center;
  }

  .gestion-todo-tabs button,
  .gestion-planning-tabs button,
  .gestion-history-open {
    flex: 1 1 auto;
  }

  .gestion-planning-day-head,
  .gestion-planning-row {
    align-items: stretch;
  }

  .gestion-planning-emoji {
    width: 3.25rem;
  }

  .gestion-task-main strong {
    white-space: normal;
  }

  .gestion-priority-button,
  .gestion-task-menu-button {
    justify-self: start;
  }

  .gestion-task-menu {
    right: auto;
    left: 0;
  }

  .album-console-main {
    padding: 1.2rem;
  }

  .album-browser-head,
  .album-editor-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .album-browser-actions,
  .album-editor-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .album-grid,
  .album-category-nav,
  .album-library-nav {
    grid-template-columns: 1fr;
  }

  .album-photos-grid,
  .album-grid.album-photo-library-grid {
    --album-target-height: clamp(170px, 42vw, 230px);
  }

  .album-title-edit input {
    width: min(86vw, 520px);
    font-size: clamp(1.35rem, 7vw, 2.15rem) !important;
  }

  .album-more-menu {
    right: auto;
    left: 0;
  }
}

.admin-private:not([hidden]) {
  transition: grid-template-columns 180ms ease;
}

.admin-private.is-sidebar-collapsed:not([hidden]) {
  grid-template-columns: 66px minmax(0, 1fr);
}

.admin-sidebar {
  transition: padding 180ms ease, width 180ms ease;
}

.admin-sidebar-brand {
  position: relative;
  padding-right: 2.35rem;
}

.admin-sidebar-brand::after {
  content: "GP";
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(208, 167, 92, 0.32);
  border-radius: 50%;
  background: rgba(208, 167, 92, 0.1);
  color: #fffefa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.admin-sidebar-toggle {
  position: absolute;
  top: 1.22rem;
  right: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.72rem;
  height: 1.72rem;
  margin: 0;
  border: 1px solid rgba(255, 254, 250, 0.11);
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 254, 250, 0.04);
  color: rgba(255, 254, 250, 0.64);
  font-size: 0.82rem;
  font-weight: 800;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.admin-sidebar-toggle:hover {
  border-color: rgba(208, 167, 92, 0.42);
  background: rgba(208, 167, 92, 0.11);
  color: #fffefa;
}

.admin-sidebar-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  font-size: 0.98rem;
  line-height: 0.7;
  transform: translateY(-0.03rem);
  transition: transform 180ms ease;
}

.admin-sidebar-nav a.has-admin-sidebar-icon,
.admin-sidebar-special-links a.has-admin-sidebar-icon,
.admin-sidebar-site-link.has-admin-sidebar-icon,
.admin-sidebar-actions button.has-admin-sidebar-icon {
  display: flex;
  align-items: center;
  gap: 0.58rem;
}

.admin-sidebar-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 1.62rem;
  width: 1.62rem;
  height: 1.62rem;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 254, 250, 0.72);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
}

.admin-sidebar-nav a:hover .admin-sidebar-icon,
.admin-sidebar-nav a.is-active .admin-sidebar-icon,
.admin-sidebar-special-links a:hover .admin-sidebar-icon,
.admin-sidebar-site-link:hover .admin-sidebar-icon,
.admin-sidebar-actions button:hover .admin-sidebar-icon {
  background: transparent;
  color: var(--gold);
}

.admin-sidebar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar-special-links a.has-admin-sidebar-icon::before {
  content: none;
}

.has-admin-password-star-icon .admin-sidebar-icon {
  font-size: 1.32rem;
  font-weight: 900;
  transform: translateY(0.08rem);
}

.admin-private.is-sidebar-collapsed .has-admin-password-star-icon .admin-sidebar-icon {
  font-size: 1.45rem;
}

.admin-private.is-sidebar-collapsed .admin-sidebar {
  align-items: center;
  overflow-x: visible;
  padding: 0.82rem 0.45rem 0.65rem;
}

.admin-private.is-sidebar-collapsed .admin-sidebar-brand {
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0 0 0.48rem;
  padding-right: 0;
}

.admin-private.is-sidebar-collapsed .admin-sidebar-brand span,
.admin-private.is-sidebar-collapsed .admin-sidebar-brand small {
  display: none;
}

.admin-private.is-sidebar-collapsed .admin-sidebar-brand::after {
  display: grid;
  width: 36px;
  height: 36px;
  font-size: 0.88rem;
}

.admin-private.is-sidebar-collapsed .admin-sidebar-toggle {
  position: static;
  justify-content: center;
  width: 31px;
  height: 31px;
  margin: 0 0 0.55rem;
  border-radius: 50%;
  padding: 0;
}

.admin-private.is-sidebar-collapsed .admin-sidebar-toggle-icon {
  transform: rotate(180deg) translateY(0.03rem);
}

.admin-private.is-sidebar-collapsed .admin-sidebar-nav,
.admin-private.is-sidebar-collapsed .admin-sidebar-special-links,
.admin-private.is-sidebar-collapsed .admin-sidebar-actions {
  width: 100%;
}

.admin-private.is-sidebar-collapsed .admin-sidebar-nav a.has-admin-sidebar-icon,
.admin-private.is-sidebar-collapsed .admin-sidebar-special-links a.has-admin-sidebar-icon,
.admin-private.is-sidebar-collapsed .admin-sidebar-site-link.has-admin-sidebar-icon,
.admin-private.is-sidebar-collapsed .admin-sidebar-actions button.has-admin-sidebar-icon {
  justify-content: center;
  width: 34px;
  min-height: 34px;
  margin-right: auto;
  margin-left: auto;
  border-left-color: transparent;
  border-radius: 50%;
  padding: 0;
}

.admin-private.is-sidebar-collapsed .admin-sidebar-special-links a.has-admin-sidebar-icon {
  border-color: rgba(208, 167, 92, 0.18);
}

.admin-private.is-sidebar-collapsed .admin-sidebar-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.admin-private.is-sidebar-collapsed .admin-sidebar-icon {
  flex-basis: 1.9rem;
  width: 1.9rem;
  height: 1.9rem;
  font-size: 0.86rem;
}

.admin-private.is-sidebar-collapsed .admin-sidebar-special-links {
  gap: 0.2rem;
  margin-top: 0.32rem;
  padding-top: 0.32rem;
}

.admin-private.is-sidebar-collapsed .admin-sidebar-site-link {
  width: 34px;
  margin-right: auto;
  margin-left: auto;
}

.admin-private.is-sidebar-collapsed .admin-sidebar-actions {
  gap: 0.18rem;
  padding-top: 0.28rem;
}

@media (max-width: 680px) {
  .admin-private.is-sidebar-collapsed:not([hidden]) {
    grid-template-columns: 1fr;
  }

  .admin-private.is-sidebar-collapsed .admin-sidebar {
    align-items: stretch;
    padding: 1.4rem 5vw;
  }

  .admin-private.is-sidebar-collapsed .admin-sidebar-brand {
    display: grid;
    place-items: start;
    width: fit-content;
    margin: 0 0 1.4rem;
    padding-right: 2.35rem;
  }

  .admin-private.is-sidebar-collapsed .admin-sidebar-brand span,
  .admin-private.is-sidebar-collapsed .admin-sidebar-brand small {
    display: block;
  }

  .admin-private.is-sidebar-collapsed .admin-sidebar-brand::after {
    display: none;
  }

  .admin-private.is-sidebar-collapsed .admin-sidebar-toggle {
    position: absolute;
    top: 1.55rem;
    right: 5vw;
    justify-content: flex-start;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    padding: 0;
  }

  .admin-private.is-sidebar-collapsed .admin-sidebar-nav a.has-admin-sidebar-icon,
  .admin-private.is-sidebar-collapsed .admin-sidebar-special-links a.has-admin-sidebar-icon,
  .admin-private.is-sidebar-collapsed .admin-sidebar-site-link.has-admin-sidebar-icon,
  .admin-private.is-sidebar-collapsed .admin-sidebar-actions button.has-admin-sidebar-icon {
    justify-content: flex-start;
    width: auto;
    min-height: auto;
    margin: 0;
    border-radius: 0;
    padding: 0.56rem 0.72rem;
  }

  .admin-private.is-sidebar-collapsed .admin-sidebar-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
}

@media (max-width: 760px) {
  body[data-gestion-page] {
    overflow-x: hidden;
  }

  body[data-gestion-page] .admin-private:not([hidden]),
  body[data-gestion-page] .admin-private.is-sidebar-collapsed:not([hidden]) {
    display: block;
    min-height: 100svh;
  }

  body[data-gestion-page] .admin-sidebar,
  body[data-gestion-page] .admin-private.is-sidebar-collapsed .admin-sidebar {
    position: sticky;
    z-index: 220;
    top: 0;
    display: grid;
    align-items: stretch;
    gap: 0.48rem;
    height: auto;
    min-height: 0;
    max-height: 42svh;
    overflow: auto;
    overscroll-behavior: contain;
    border-bottom: 1px solid rgba(255, 254, 250, 0.12);
    padding: 0.62rem 0.74rem 0.58rem;
  }

  body[data-gestion-page] .admin-sidebar-brand,
  body[data-gestion-page] .admin-private.is-sidebar-collapsed .admin-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  body[data-gestion-page] .admin-sidebar-brand span,
  body[data-gestion-page] .admin-private.is-sidebar-collapsed .admin-sidebar-brand span {
    display: block;
    font-size: 1rem;
    line-height: 1;
  }

  body[data-gestion-page] .admin-sidebar-brand small,
  body[data-gestion-page] .admin-private.is-sidebar-collapsed .admin-sidebar-brand small {
    display: block;
    font-size: 0.54rem;
    letter-spacing: 0.13em;
  }

  body[data-gestion-page] .admin-sidebar-brand::after,
  body[data-gestion-page] .admin-private.is-sidebar-collapsed .admin-sidebar-brand::after,
  body[data-gestion-page] .admin-sidebar-toggle {
    display: none;
  }

  body[data-gestion-page] .admin-sidebar-nav,
  body[data-gestion-page] .admin-private.is-sidebar-collapsed .admin-sidebar-nav {
    display: flex;
    grid-template-columns: none;
    gap: 0.36rem;
    width: 100%;
    margin: 0;
    overflow-x: auto;
    padding: 0.08rem 0 0.18rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body[data-gestion-page] .admin-sidebar-nav::-webkit-scrollbar,
  body[data-gestion-page] .admin-sidebar-actions::-webkit-scrollbar,
  body[data-gestion-page] .course-category-nav::-webkit-scrollbar,
  body[data-gestion-page] .gestion-todo-tabs::-webkit-scrollbar,
  body[data-gestion-page] .gestion-planning-tabs::-webkit-scrollbar {
    display: none;
  }

  body[data-gestion-page] .admin-sidebar-nav a.has-admin-sidebar-icon,
  body[data-gestion-page] .admin-private.is-sidebar-collapsed .admin-sidebar-nav a.has-admin-sidebar-icon {
    flex: 0 0 auto;
    justify-content: center;
    min-height: 2.28rem;
    width: auto;
    margin: 0;
    border-left: 0;
    border-radius: 999px;
    padding: 0.42rem 0.68rem;
    background: rgba(255, 254, 250, 0.055);
  }

  body[data-gestion-page] .admin-sidebar-icon,
  body[data-gestion-page] .admin-private.is-sidebar-collapsed .admin-sidebar-icon {
    flex: 0 0 auto;
    width: 1.2rem;
    height: 1.2rem;
    font-size: 0.86rem;
  }

  body[data-gestion-page] .admin-sidebar-label,
  body[data-gestion-page] .admin-private.is-sidebar-collapsed .admin-sidebar-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    font-size: 0.72rem;
  }

  body[data-gestion-page] .admin-sidebar-site-link.has-admin-sidebar-icon,
  body[data-gestion-page] .admin-private.is-sidebar-collapsed .admin-sidebar-site-link.has-admin-sidebar-icon {
    width: fit-content;
    min-height: 2.18rem;
    margin: 0;
    border-radius: 999px;
    padding: 0.38rem 0.68rem;
    background: rgba(255, 254, 250, 0.045);
  }

  body[data-gestion-page] .admin-sidebar-actions,
  body[data-gestion-page] .admin-private.is-sidebar-collapsed .admin-sidebar-actions {
    display: flex;
    grid-template-columns: none;
    gap: 0.34rem;
    width: 100%;
    margin: 0;
    border-top: 0;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body[data-gestion-page] .admin-sidebar-actions button.has-admin-sidebar-icon,
  body[data-gestion-page] .admin-private.is-sidebar-collapsed .admin-sidebar-actions button.has-admin-sidebar-icon {
    flex: 0 0 auto;
    justify-content: center;
    width: auto;
    min-height: 2.18rem;
    margin: 0;
    border-radius: 999px;
    padding: 0.38rem 0.68rem;
    background: rgba(255, 254, 250, 0.045);
  }

  body[data-gestion-page] .admin-shell,
  body[data-gestion-page] .gestion-shell {
    padding: 1rem 0.82rem 3.2rem;
  }

  body[data-gestion-page] .gestion-page-title h1 {
    font-size: clamp(1.65rem, 9vw, 2.35rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
  }

  body[data-gestion-page] .gestion-shell-courses {
    padding: 0;
  }

  body[data-gestion-page] .course-console {
    display: block;
    min-height: 0;
  }

  body[data-gestion-page] .course-console-sidebar {
    position: static;
    gap: 0.78rem;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(18, 18, 15, 0.08);
    padding: 0.76rem 0.82rem;
  }

  body[data-gestion-page] .course-category-nav {
    display: flex;
    grid-template-columns: none;
    gap: 0.38rem;
    overflow-x: auto;
    padding: 0 0 0.08rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body[data-gestion-page] .course-category-nav::before,
  body[data-gestion-page] .course-category-nav button::before {
    display: none;
  }

  body[data-gestion-page] .course-category-nav button {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 0.58rem 0.7rem;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  body[data-gestion-page] .course-category-nav small {
    padding: 0.08rem 0.36rem;
    font-size: 0.62rem;
  }

  body[data-gestion-page] .course-storage-card {
    display: none;
  }

  body[data-gestion-page] .course-console-main {
    padding: 1rem 0.82rem 3rem;
  }

  body[data-gestion-page] .course-browser-head,
  body[data-gestion-page] .course-editor-topbar,
  body[data-gestion-page] .course-editor-head,
  body[data-gestion-page] .recipe-editor-head,
  body[data-gestion-page] .workout-editor-head,
  body[data-gestion-page] .annale-editor-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.72rem;
    margin-bottom: 1rem;
  }

  body[data-gestion-page] .course-browser-head h2 {
    font-size: clamp(1.75rem, 11vw, 2.6rem);
  }

  body[data-gestion-page] .course-browser-actions,
  body[data-gestion-page] .course-editor-actions {
    justify-content: flex-start;
    gap: 0.48rem;
  }

  body[data-gestion-page] .album-create-button,
  body[data-gestion-page] .course-soft-button,
  body[data-gestion-page] .album-back-button,
  body[data-gestion-page] .course-menu-button {
    min-height: 2.48rem;
    padding-inline: 0.86rem;
    font-size: 0.78rem;
  }

  body[data-gestion-page] .course-collaborators-button {
    width: 2.48rem;
    height: 2.48rem;
  }

  body[data-gestion-page] .course-collaborators-button span {
    width: 1.55rem;
    height: 1.55rem;
    font-size: 1.05rem;
  }

  body[data-gestion-page] .course-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  body[data-gestion-page] .course-card button {
    border-radius: 18px;
  }

  body[data-gestion-page] .course-card figure {
    border-radius: 18px 18px 0 0;
  }

  body[data-gestion-page] .course-card-copy {
    padding: 0.9rem 0.95rem 1rem;
  }

  body[data-gestion-page] .course-title-input,
  body[data-gestion-page] .recipe-title-input,
  body[data-gestion-page] .workout-title-input,
  body[data-gestion-page] .annale-title-input {
    font-size: clamp(1.85rem, 12vw, 3rem);
  }

  body[data-gestion-page] .course-console[data-course-section="concours"] .course-title-input:not(.quiz-title-input):not(.annale-title-input) {
    font-size: clamp(0.95rem, 6vw, 1.5rem);
  }

  body[data-gestion-page] .course-editor-category {
    font-size: 0.66rem;
  }

  body[data-gestion-page] .course-toolbar {
    position: static;
    margin-bottom: 0.8rem;
    border-radius: 18px;
    padding: 0.42rem;
  }

  body[data-gestion-page] .course-pages {
    gap: 0.7rem;
    border-radius: 18px;
    padding: 0.5rem;
  }

  body[data-gestion-page] .course-fiche-tools {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 0.75rem;
    border-radius: 18px;
    padding: 0.75rem;
  }

  body[data-gestion-page] .course-fiche-tools p {
    font-size: 0.76rem;
  }

  body[data-gestion-page] .course-fiche-page,
  body[data-gestion-page] .course-fiche-empty {
    width: 100%;
    border-radius: 16px;
  }

  body[data-gestion-page] .course-paper {
    min-height: 72svh;
    padding: 1.15rem;
    font-size: 15px;
    box-shadow: 0 0.5rem 1.4rem rgba(17, 17, 15, 0.08);
  }

  body[data-gestion-page] .course-fiche-page {
    min-height: 0;
    padding: 0.45rem;
  }

  body[data-gestion-page] .course-fiche-empty {
    min-height: 64svh;
  }

  body[data-gestion-page] .annale-pdf-empty {
    min-height: 44svh;
    border-radius: 20px;
    padding: 1.2rem;
  }

  body[data-gestion-page] .annale-pdf-viewer > header {
    align-items: stretch;
    flex-direction: column;
    padding: 0.9rem;
  }

  body[data-gestion-page] .annale-pdf-viewer > header > div:last-child {
    justify-content: flex-start;
  }

  body[data-gestion-page] .annale-pdf-viewer iframe {
    min-height: 70svh;
  }

  body[data-gestion-page] .recipe-editor,
  body[data-gestion-page] .workout-editor {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  body[data-gestion-page] .recipe-panel,
  body[data-gestion-page] .workout-panel {
    border-radius: 20px;
    padding: 0.9rem;
  }

  body[data-gestion-page] .recipe-panel > header,
  body[data-gestion-page] .workout-panel > header {
    align-items: start;
    gap: 0.55rem;
  }

  body[data-gestion-page] .recipe-panel h3,
  body[data-gestion-page] .workout-panel h3 {
    font-size: 1.35rem;
  }

  body[data-gestion-page] .recipe-row.is-ingredient,
  body[data-gestion-page] .recipe-add-form.is-ingredient {
    grid-template-columns: 2.75rem minmax(4.3rem, 0.48fr) minmax(0, 1fr) 2.35rem;
  }

  body[data-gestion-page] .recipe-row.is-step,
  body[data-gestion-page] .recipe-add-form.is-step {
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.35rem;
  }

  body[data-gestion-page] .workout-row,
  body[data-gestion-page] .workout-add-form {
    grid-template-columns: 2.75rem minmax(3.8rem, 0.38fr) minmax(4.2rem, 0.42fr) minmax(0, 1fr) 2.35rem;
    gap: 0.42rem;
  }

  body[data-gestion-page] .recipe-row input,
  body[data-gestion-page] .recipe-add-form input,
  body[data-gestion-page] .workout-row input,
  body[data-gestion-page] .workout-add-form input {
    padding-inline: 0.56rem;
    font-size: 0.82rem;
  }

  body[data-gestion-page] .gestion-todo,
  body[data-gestion-page] .gestion-planning {
    width: 100%;
    margin-top: 1rem;
  }

  body[data-gestion-page] .gestion-todo-toolbar {
    align-items: stretch;
    gap: 0.72rem;
  }

  body[data-gestion-page] .gestion-todo-tabs,
  body[data-gestion-page] .gestion-planning-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.36rem;
    overflow-x: auto;
    padding-bottom: 0.62rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body[data-gestion-page] .gestion-todo-tabs button,
  body[data-gestion-page] .gestion-planning-tabs button,
  body[data-gestion-page] .gestion-history-open {
    flex: 0 0 auto;
    min-height: 2.42rem;
    padding: 0.58rem 0.78rem;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  body[data-gestion-page] .gestion-todo-summary {
    gap: 0.52rem;
    margin-top: 0.7rem;
  }

  body[data-gestion-page] .gestion-task {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.5rem;
    border-radius: 17px;
    padding: 0.72rem;
  }

  body[data-gestion-page] .gestion-task-main strong {
    font-size: 0.92rem;
    white-space: normal;
  }

  body[data-gestion-page] .gestion-task-main small {
    font-size: 0.68rem;
  }

  body[data-gestion-page] .gestion-priority-button {
    grid-column: 2 / 3;
    justify-self: start;
    padding: 0.34rem 0.54rem;
    font-size: 0.56rem;
  }

  body[data-gestion-page] .gestion-task-menu-wrap {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    align-self: center;
  }

  body[data-gestion-page] .gestion-task-menu {
    right: -0.2rem;
    min-width: min(15rem, 78vw);
  }

  body[data-gestion-page] .gestion-task-add-grid {
    grid-template-columns: 1fr;
  }

  body[data-gestion-page] .gestion-history-panel {
    width: min(100%, calc(100vw - 1rem));
    max-height: calc(100svh - 1rem);
    border-radius: 24px;
    padding: 1.1rem;
  }

  body[data-gestion-page] .gestion-history-panel h2 {
    font-size: clamp(1.6rem, 10vw, 2.4rem);
  }

  body[data-gestion-page] .gestion-planning-day-head,
  body[data-gestion-page] .gestion-planning-row {
    align-items: stretch;
  }

  body[data-gestion-page] .gestion-planning-row {
    grid-template-columns: 1.35rem 2.65rem minmax(0, 0.62fr) minmax(0, 1fr);
    gap: 0.42rem;
    border-radius: 16px;
    padding: 0.5rem;
  }

  body[data-gestion-page] .gestion-planning-add {
    grid-template-columns: 1.35rem 2.65rem minmax(0, 0.62fr) minmax(0, 1fr);
  }

  body[data-gestion-page] .gestion-planning-add .gestion-planning-save,
  body[data-gestion-page] .gestion-planning-add .gestion-planning-reset {
    grid-column: span 2;
  }

  body[data-gestion-page] .gestion-planning-row input {
    min-height: 2.42rem;
    padding-inline: 0.52rem;
    font-size: 0.78rem;
  }

  body[data-gestion-page] .gestion-planning-emoji {
    width: auto;
  }

  body[data-gestion-page] .gestion-planning-trash {
    right: 0.8rem;
    width: 5.5rem;
    min-height: 5.5rem;
    border-radius: 20px;
  }

  body[data-gestion-page] .gestion-budget {
    width: 100%;
    margin-top: 1rem;
  }

  body[data-gestion-page] .gestion-budget-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.75rem;
  }

  body[data-gestion-page] .gestion-budget-year {
    width: fit-content;
  }

  body[data-gestion-page] .gestion-budget-months {
    display: flex;
    gap: 0.36rem;
    overflow-x: auto;
    padding-bottom: 0.7rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body[data-gestion-page] .gestion-budget-months::-webkit-scrollbar {
    display: none;
  }

  body[data-gestion-page] .gestion-budget-months button {
    flex: 0 0 4.75rem;
    min-height: 3rem;
    border-radius: 14px;
  }

  body[data-gestion-page] .gestion-budget-summary {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  body[data-gestion-page] .gestion-budget-summary article {
    border-radius: 18px;
    padding: 0.85rem;
  }

  body[data-gestion-page] .gestion-budget-grid {
    grid-template-columns: 1fr;
    gap: 0.72rem;
  }

  body[data-gestion-page] .gestion-budget-card {
    border-radius: 20px;
    padding: 0.82rem;
  }

  body[data-gestion-page] .gestion-budget-card > header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.62rem;
  }

  body[data-gestion-page] .gestion-budget-row,
  body[data-gestion-page] .gestion-budget-add {
    grid-template-columns: 2.45rem minmax(0, 1fr) minmax(6.2rem, 0.52fr) minmax(5.2rem, 0.44fr) 2.2rem;
    gap: 0.32rem;
    border-radius: 15px;
    padding: 0.34rem;
  }

  body[data-gestion-page] .gestion-budget-row input,
  body[data-gestion-page] .gestion-budget-add input {
    min-height: 2.45rem;
    padding-inline: 0.5rem;
    font-size: 0.9rem;
  }

  body[data-gestion-page] .gestion-budget-row-emoji {
    font-size: 1rem !important;
  }

  body[data-gestion-page] .gestion-budget-emoji-button {
    width: 2.32rem;
    height: 2.32rem;
    border-radius: 12px;
    font-size: 1rem;
  }

  body[data-gestion-page] .gestion-budget-emoji-menu {
    left: -0.15rem;
    width: min(286px, 86vw);
  }
}
