:root {
  color-scheme: light;
  --paper: #f7f5ed;
  --white: #fff;
  --ink: #26392f;
  --olive: #233d31;
  --forest: #315c42;
  --sage: #e9eee1;
  --rust: #a14632;
  --muted: #565e53;
  --line: #e3e2d7;
  --display: "Young Serif", Georgia, "Noto Serif", serif;
  --body: "DM Sans", system-ui, sans-serif;
  --shadow: 0 14px 38px rgba(35, 61, 49, .085);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.1; }
:focus-visible { outline: 3px solid #a3472e; outline-offset: 4px; }
[hidden] { display: none !important; }
#content:focus { outline: none; }
.shell { width: min(calc(100% - 80px), 1280px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 5; top: 12px; left: 12px; transform: translateY(-160%); padding: 12px 16px; background: var(--white); border-radius: 8px; }
.skip-link:focus { transform: none; }
.button {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 18px; border: 1px solid transparent; border-radius: 9px;
  font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none;
}
.button svg, .icon-button svg { flex: 0 0 auto; }
.button-primary { background: var(--forest); color: #fff; }
.button-primary:hover { background: #254833; }
.button-secondary { background: transparent; color: var(--olive); border-color: #c8d0c2; }
.button-secondary:hover { background: var(--sage); }
.button:disabled { cursor: default; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--forest); font-weight: 750; text-underline-offset: 4px; }
.site-header { background: #fbfaf5; border-bottom: 1px solid rgba(53, 75, 60, .12); }
.header-inner { min-height: 79px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; color: var(--olive); text-decoration: none; }
.brand span { font-family: var(--display); font-size: 1.75rem; letter-spacing: -.045em; white-space: nowrap; }
.brand img { flex: 0 0 auto; border-radius: 10px; object-fit: cover; }
.site-nav { display: flex; align-items: stretch; gap: 32px; min-height: 79px; }
.site-nav a { display: flex; align-items: center; position: relative; font-size: .94rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--forest); }
.site-nav a[aria-current]::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--forest); border-radius: 2px 2px 0 0; }
.demo-profile { justify-self: end; padding-inline: 13px; min-height: 43px; font-size: .84rem; }
.site-footer { background: #e8ede2; border-top: 1px solid #d9e2d4; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 23px; align-items: center; padding-block: 36px 25px; }
.footer-inner p { margin: 10px 0 0; color: var(--muted); font-size: .93rem; }
.footer-inner nav { display: flex; gap: 26px; font-size: .92rem; font-weight: 700; }
.footer-inner nav a { text-underline-offset: 4px; }
.footer-inner .footer-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 0; padding-top: 18px; border-top: 1px solid #cad7c9; font-size: .83rem; }
.app-dialog { width: min(540px, calc(100% - 28px)); max-height: min(88dvh, 900px); border: 1px solid var(--line); border-radius: 19px; padding: 0; color: var(--ink); background: #fffefb; box-shadow: 0 25px 85px #0c23194c; }
.app-dialog::backdrop { background: rgba(17, 36, 26, .67); }
.app-dialog-wide { width: min(790px, calc(100% - 28px)); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 25px 15px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 0; font-size: clamp(1.36rem, 4vw, 1.8rem); }
.dialog-heading h2:focus { outline: none; }
.dialog-body { padding: 20px 25px 25px; }
.dialog-body > :last-child { margin-bottom: 0; }
.dialog-subtitle { margin-bottom: 7px; font-weight: 750; }
.dialog-note, .form-note { color: var(--muted); }
.form-note { margin: 2px 0 0; font-size: .89rem; }
.icon-button { display: inline-grid; flex: 0 0 auto; min-width: 44px; min-height: 44px; place-items: center; background: #eef1e8; border: 1px solid #dfe7db; border-radius: 9px; }
.icon-button:hover { background: #dfe8da; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
#registration-form { display: grid; gap: 14px; }
#registration-form label { display: grid; gap: 5px; font-weight: 700; }
#registration-form input, #registration-form select { width: 100%; min-height: 44px; border: 1px solid #bfcabf; border-radius: 8px; padding: 8px 12px; background: #fff; color: var(--ink); font-weight: 400; }
#registration-form .dialog-actions { margin-top: 0; }
.demo-account { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: var(--sage); }
.demo-account-icon, .confirmation-icon { display: inline-grid; flex: 0 0 auto; width: 43px; height: 43px; place-items: center; border-radius: 50%; background: #d6e6d6; color: #265239; }
.demo-account-status { margin-left: auto; font-size: .85rem; font-weight: 750; }
.confirmation-person { position: relative; width: max-content; margin-bottom: 13px; }
.confirmation-person img { border-radius: 50%; }
.confirmation-person .confirmation-icon { position: absolute; right: -6px; bottom: -3px; width: 24px; height: 24px; }
.form-optional { font-size: .84rem; font-weight: 400; color: var(--muted); }
.gallery-dialog figure { margin: 0; }
.gallery-dialog img { width: 100%; max-height: 54dvh; object-fit: contain; border-radius: 10px; background: #e4e8dd; }
.gallery-dialog figcaption { margin-top: 8px; color: var(--muted); }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 12px; }
.gallery-controls p { margin: 0; font-variant-numeric: tabular-nums; }
.dialog-participants { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.dialog-participants button { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 112px; align-items: center; gap: 7px; padding: 11px 7px 9px; background: #fbfaf5; border: 1px solid #d9ded3; border-radius: 11px; text-align: center; font-size: .88rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.dialog-participants button:hover { background: var(--sage); }
.dialog-participants img, .profile-portrait { aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.dialog-participants img { width: 58px; height: 58px; border: 1px solid #dfe4da; }
.profile-portrait { margin-bottom: 13px; }
.profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); }
.public-profile h3 { font-size: 1rem; margin-bottom: 8px; }
.profile-interests { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin-top: 0; list-style: none; }
.profile-interests li { border-radius: 99px; background: var(--sage); padding: 5px 10px; font-size: .89rem; }
.missing-page { min-height: 55vh; padding-block: 65px; }
@media (max-width: 850px) {
  .shell { width: calc(100% - 48px); }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 65px; grid-template-columns: 1fr auto; gap: 0 12px; }
  .header-inner .brand, .demo-profile { margin-block: 11px; }
  .brand span { font-size: 1.55rem; }
  .brand img { width: 37px; height: 37px; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; min-height: 44px; justify-content: center; gap: clamp(16px, 7vw, 36px); border-top: 1px solid var(--line); }
  .demo-profile { font-size: .8rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 17px; padding-block: 26px 21px; }
  .dialog-participants { grid-template-columns: repeat(2, 1fr); }
  .dialog-heading { padding: 14px 16px 10px; }
  .dialog-body { padding: 16px; }
}
@media (max-width: 370px) {
  .demo-profile { padding-inline: 8px; }
  .demo-profile svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
