/* Room Noir — lightweight static rebuild
   Zero external dependency: system font stack only, no webfont, no framework. */

:root {
  --paper: #f7f5f2;
  --paper-2: #efece7;
  --ink: #14110f;
  --ink-soft: #4a443f;
  --line: #d9d3ca;
  --accent: #7d1d28;
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: var(--pad); }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 242, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}

.site-head.is-stuck { border-bottom-color: var(--line); }

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: .65rem; }

.brand img { width: 34px; height: 34px; object-fit: contain; }

.brand span {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }

.nav a {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-block: .35rem;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

.nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.nav .nav-cta {
  color: var(--paper);
  background: var(--ink);
  padding: .55rem 1.15rem;
  border-bottom: 0;
  transition: background .25s var(--ease);
}

.nav .nav-cta:hover { background: var(--accent); border-bottom-color: transparent; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.burger i,
.burger i::before,
.burger i::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}

.burger i { top: 50%; }
.burger i::before { content: ""; top: -6px; }
.burger i::after { content: ""; top: 6px; }

.burger[aria-expanded="true"] i { background: transparent; }
.burger[aria-expanded="true"] i::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] i::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: clamp(520px, 88vh, 880px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #1b1715;
}

.hero-media { position: absolute; inset: 0; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: grayscale(.2) contrast(1.04);
  animation: heroIn 1.4s var(--ease) both;
}

@keyframes heroIn {
  from { transform: scale(1.06); opacity: .4; }
  to { transform: scale(1); opacity: 1; }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 9, .55) 0%, rgba(12, 10, 9, .12) 38%, rgba(12, 10, 9, .82) 100%);
}

.hero-body {
  position: relative;
  z-index: 2;
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
  color: #fbf9f6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(251, 249, 246, .78);
  margin: 0 0 1.35rem;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 6.2vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 0 0 1.35rem;
  max-width: 18ch;
  text-wrap: balance;
}

.hero p {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  color: rgba(251, 249, 246, .86);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .9rem 1.7rem;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.btn-solid { background: var(--paper); color: var(--ink); }
.btn-solid:hover { background: var(--accent); color: #fff; }

.btn-ghost { border-color: rgba(251, 249, 246, .45); color: #fbf9f6; }
.btn-ghost:hover { background: rgba(251, 249, 246, .14); border-color: #fbf9f6; }

.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent); }

.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- shared section ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.1rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

.section-head .idx {
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.lede {
  max-width: 62ch;
  margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  color: var(--ink-soft);
}

/* ---------- project split ---------- */

.split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
}

.split figure { margin: 0; position: relative; overflow: hidden; background: var(--paper-2); }

.split figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.split:hover figure img { transform: scale(1.03); }

.split h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.14;
  margin: 0 0 1.15rem;
  text-wrap: balance;
}

.split p { margin: 0 0 1rem; color: var(--ink-soft); max-width: 46ch; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.6rem;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.meta-row span { border: 1px solid var(--line); padding: .35rem .7rem; }

/* ---------- editorial grid ---------- */

.grid-ed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 224px), 1fr));
  gap: clamp(.85rem, 1.6vw, 1.35rem);
}

.card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper-2);
  isolation: isolate;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter .5s var(--ease);
  filter: saturate(.92);
}

.card:hover img { transform: scale(1.05); filter: saturate(1.05); }

.card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 2.4rem .95rem .85rem;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0) 0%, rgba(12, 10, 9, .78) 100%);
  color: #fbf9f6;
  font-size: .82rem;
  letter-spacing: .06em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.card:hover figcaption,
.card:focus-visible figcaption { opacity: 1; transform: translateY(0); }

.card .tag {
  display: block;
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .78;
  margin-bottom: .25rem;
}

/* ---------- categories ---------- */

.grid-cat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.cat {
  display: block;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}

.cat:hover { border-color: var(--ink); transform: translateY(-3px); }

.cat .thumb { overflow: hidden; }
.cat img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1s var(--ease); }
.cat:hover img { transform: scale(1.04); }

.cat .body { padding: 1.15rem 1.25rem 1.4rem; }

.cat h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0 0 .35rem;
}

.cat p { margin: 0; font-size: .88rem; color: var(--ink-soft); }

.cat .more {
  display: inline-block;
  margin-top: .9rem;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* ---------- member band ---------- */

.band {
  position: relative;
  color: #fbf9f6;
  background: #14110f;
  overflow: hidden;
}

.band .bg {
  position: absolute;
  inset: 0;
  opacity: .38;
}

.band .bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.55); }

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 17, 15, .94) 0%, rgba(20, 17, 15, .62) 55%, rgba(20, 17, 15, .35) 100%);
}

.band .inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(3.5rem, 9vw, 7rem);
  max-width: 620px;
}

.band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

.band p { margin: 0 0 1.9rem; color: rgba(251, 249, 246, .8); max-width: 46ch; }

.band ul {
  list-style: none;
  margin: 0 0 2.1rem;
  padding: 0;
  display: grid;
  gap: .6rem;
  font-size: .92rem;
  color: rgba(251, 249, 246, .86);
}

.band li { display: flex; gap: .7rem; align-items: flex-start; }

.band li::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: .62rem;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ---------- newsletter ---------- */

.news {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.news h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  margin: 0 0 .8rem;
  text-wrap: balance;
}

.news p { margin: 0; color: var(--ink-soft); max-width: 46ch; }

.news-form { display: flex; gap: .6rem; flex-wrap: wrap; }

.news-form input {
  flex: 1 1 220px;
  min-width: 0;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .25s var(--ease);
}

.news-form input:focus { outline: none; border-color: var(--ink); }

.news-note { width: 100%; font-size: .78rem; color: var(--ink-soft); margin: .2rem 0 0; }
.news-note.ok { color: #2c6b42; }

/* ---------- footer ---------- */

.site-foot { padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, .7fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.foot-brand .brand { margin-bottom: .9rem; }
.foot-brand p { margin: 0; font-size: .86rem; color: var(--ink-soft); max-width: 34ch; }

.foot-col h3 {
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 .9rem;
  font-weight: 500;
}

.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }

.foot-col a { font-size: .88rem; color: var(--ink-soft); transition: color .2s var(--ease); }
.foot-col a:hover { color: var(--ink); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem;
  padding-top: 1.5rem;
  font-size: .76rem;
  color: var(--ink-soft);
}

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--pad) 1.25rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }

  .nav.open { opacity: 1; transform: none; pointer-events: auto; }

  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }

  .nav .nav-cta { margin-top: .9rem; text-align: center; border-bottom: 0; }

  .hero { min-height: 78vh; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- auth / register ---------- */

.auth-shell {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  min-height: calc(100vh - 68px);
}

.auth-aside {
  position: relative;
  overflow: hidden;
  background: #14110f;
  color: #fbf9f6;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.75rem, 5vw, 3.5rem);
}

.auth-aside .bg { position: absolute; inset: 0; }
.auth-aside .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; filter: grayscale(.5); }

.auth-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 15, .2) 0%, rgba(20, 17, 15, .9) 100%);
}

.auth-aside > * { position: relative; z-index: 2; }

.auth-aside h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.1;
  margin: 0 0 .8rem;
}

.auth-aside p { margin: 0; color: rgba(251, 249, 246, .78); max-width: 40ch; font-size: .92rem; }

.auth-main {
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 6vw, 5rem);
  display: flex;
  align-items: center;
}

.auth-form-wrap { width: 100%; max-width: 480px; margin-inline: auto; }

.auth-form-wrap h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin: 0 0 .5rem;
}

.auth-sub { margin: 0 0 2rem; color: var(--ink-soft); font-size: .92rem; }

.field { margin-bottom: 1.1rem; }

.field > label {
  display: block;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .45rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="date"] {
  width: 100%;
  padding: .85rem .95rem;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.field input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 17, 15, .07);
}

.field.invalid input { border-color: var(--accent); }

.err {
  display: none;
  margin-top: .4rem;
  font-size: .78rem;
  color: var(--accent);
}

.field.invalid .err { display: block; }

.hint { margin-top: .4rem; font-size: .76rem; color: var(--ink-soft); }

.pw-meter { display: flex; gap: 4px; margin-top: .5rem; }

.pw-meter i {
  flex: 1;
  height: 3px;
  background: var(--line);
  transition: background .25s var(--ease);
}

.pw-meter[data-score="1"] i:nth-child(-n+1) { background: var(--accent); }
.pw-meter[data-score="2"] i:nth-child(-n+2) { background: #b5822c; }
.pw-meter[data-score="3"] i:nth-child(-n+3) { background: #6f7f2a; }
.pw-meter[data-score="4"] i { background: #2c6b42; }

.check {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .86rem;
  color: var(--ink-soft);
  margin-bottom: .9rem;
  line-height: 1.5;
}

.check input { margin-top: .28rem; flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--ink); }

.check a { border-bottom: 1px solid currentColor; }

.field.invalid .check { color: var(--accent); }

.auth-submit { width: 100%; margin-top: .5rem; padding-block: 1rem; }

.auth-alt { margin-top: 1.5rem; font-size: .86rem; color: var(--ink-soft); text-align: center; }
.auth-alt a { border-bottom: 1px solid var(--ink); }

.notice {
  display: none;
  margin-top: 1.25rem;
  padding: .9rem 1rem;
  font-size: .86rem;
  border-left: 3px solid #2c6b42;
  background: #eef4ee;
  color: #1f4a2e;
}

.notice.show { display: block; }

.notice.warn { border-left-color: var(--accent); background: #f8ecec; color: var(--accent); }

.success {
  display: none;
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
}

.success.show { display: block; }

.success .mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: #eef4ee;
  color: #2c6b42;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.success h2 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: 0 0 .5rem; }
.success p { margin: 0 0 .35rem; color: var(--ink-soft); font-size: .9rem; }

.success dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .35rem 1rem;
  margin: 1.4rem 0 1.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  text-align: left;
  font-size: .88rem;
}

.success dt { color: var(--ink-soft); }
.success dd { margin: 0; word-break: break-all; }

.accounts { margin-top: 2rem; }

.accounts h3 {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 .8rem;
  font-weight: 500;
}

.accounts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }

.accounts li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  font-size: .85rem;
  background: #fff;
}

.accounts .del {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: .78rem;
  border-bottom: 1px solid currentColor;
  padding: 0;
}

.accounts .del:hover { color: var(--accent); }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { min-height: 240px; order: 2; }
  .auth-main { order: 1; padding-block: 2.5rem 3.5rem; }
}

/* ---------- safari gate ---------- */

body.gate-locked { overflow: hidden; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

.gate.open { opacity: 1; pointer-events: auto; }

.gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 9, .74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.gate-panel {
  position: relative;
  width: min(94vw, 486px);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--paper);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
  transform: translateY(14px) scale(.98);
  transition: transform .35s var(--ease);
}

.gate.open .gate-panel { transform: none; }

.gate-x {
  position: absolute;
  top: .45rem;
  right: .5rem;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s var(--ease);
}

.gate-x:hover { color: var(--ink); }

.gate-view { display: none; }
.gate-view.is-on { display: block; }

.gate .eyebrow { color: var(--ink-soft); margin-bottom: 1rem; }

.gate h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 3.4vw, 1.75rem);
  line-height: 1.15;
  margin: 0 0 .7rem;
  padding-right: 1.5rem;
  text-wrap: balance;
}

.gate p {
  margin: 0 0 1.3rem;
  font-size: .92rem;
  color: var(--ink-soft);
}

.gate-url {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.1rem;
}

.gate-url input {
  flex: 1 1 auto;
  min-width: 0;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .84rem;
  color: var(--ink);
}

.gate-url input:focus { outline: none; border-color: var(--ink); }

.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1rem;
}

.btn-plain {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
}

.btn-plain:hover { border-color: var(--ink); }

.gate-note {
  margin: 0;
  min-height: 1.2em;
  font-size: .82rem;
  color: var(--ink-soft);
}

.gate-note.ok { color: #2c6b42; }
.gate-note.warn { color: var(--accent); }

@media (max-width: 480px) {
  .gate-url { flex-direction: column; }
  .gate-url .btn { width: 100%; }
  .gate-actions .btn { flex: 1 1 100%; }
}

/* ---------- date picker (replaces native <input type="date">) ---------- */
.dp-wrap { position: relative; }

.dp-wrap input[readonly] {
  cursor: pointer;
  padding-right: 2.6rem;
}

.dp-toggle {
  position: absolute;
  top: 50%;
  right: .5rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.dp-toggle:hover { color: var(--ink); }
.dp-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dp {
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  z-index: 40;
  width: min(100%, 19.5rem);
  padding: .85rem;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(20, 17, 15, .12);
}

.dp-head {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-bottom: .55rem;
}

.dp-nav {
  flex: 0 0 auto;
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.dp-nav:hover { background: var(--paper-2); }

.dp-head select {
  flex: 1 1 auto;
  min-width: 0;
  height: 1.9rem;
  padding: 0 .3rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .78rem;
}

.dp-year { flex: 0 0 5.2rem !important; }

.dp-week,
.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.dp-week span {
  padding: .3rem 0;
  text-align: center;
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.dp-day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
}

.dp-day:hover:not([disabled]) { background: var(--paper-2); }
.dp-day:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dp-day.is-today { box-shadow: inset 0 0 0 1px var(--accent); }
.dp-day.is-sel,
.dp-day.is-sel:hover { background: var(--ink); color: #fff; }
.dp-day[disabled] { color: var(--line); cursor: not-allowed; }
.dp-blank { visibility: hidden; }

@media (max-width: 420px) {
  .dp { width: 100%; }
  .dp-head { gap: .2rem; }
  .dp-nav { width: 1.7rem; }
}

/* ---------- register page: Safari notice ---------- */
.safari-note {
  margin-bottom: 1.6rem;
  padding: 1rem 1.1rem;
  background: rgba(125, 29, 40, .045);
  border-left: 3px solid var(--accent);
}

.safari-note[hidden] { display: none; }

.safari-note-kicker {
  margin: 0 0 .45rem;
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.safari-note-body {
  margin: 0 0 .75rem;
  font-size: .86rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.safari-note-copy {
  padding: .4rem .85rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .76rem;
  letter-spacing: .06em;
  cursor: pointer;
}

.safari-note-copy:hover { border-color: var(--ink); }
.safari-note-copy.is-done { border-color: #2c6b42; color: #2c6b42; }
