:root {
  color-scheme: dark;
  --bg0: #0D0B09;
  --bg1: #161310;
  --surface: #1D1915;
  --surface2: #272119;
  --line: rgba(245,239,230,.10);
  --line2: rgba(245,239,230,.18);
  --text: #F5EFE6;
  --muted: #AEA293;
  --faint: #7A6F60;
  --accent: #D4502A;
  --accent-ink: #FFF4EC;
  --gold: #D9A441;
  --green: #3E8E6B;
  --radius: 16px;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Golos Text', sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 300px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: radial-gradient(1200px 700px at 70% -10%,rgba(212,80,42,.1),transparent 60%),
              radial-gradient(900px 600px at 0% 100%,rgba(217,164,65,.05),transparent 55%),var(--bg0);
  font: 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
img { max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
main:focus { outline: none; }
::selection { color: var(--bg0); background: var(--gold); }
.wrap, #main { width: min(1340px,calc(100% - clamp(40px,8vw,136px))); margin-inline: auto; }
#main { flex: 1; }
.skip { position: fixed; z-index: 30; left: 10px; top: 10px; padding: 8px 12px; background: var(--surface2); border: 1px solid var(--gold); transform: translateY(-180%); }
.skip:focus { transform: none; }
.shell-header { border-bottom: 1px solid var(--line); background: rgba(22,19,16,.86); }
.mast { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 24px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 14px; flex: none; }
.brand img { width: 34px; height: 45px; object-fit: contain; display: block; filter: drop-shadow(0 4px 16px rgba(212,80,42,.20)); }
.brand span { font: 500 14px/1.3 var(--font-display); letter-spacing: .01em; }
.brand span small { font: inherit; display: block; }
.location-pair { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 13px; }
.location-pair svg { color: var(--gold); }
.utility-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.utility-link:hover, .nav-main a:hover { color: var(--gold); }
.symbol { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.nav-main { align-self: stretch; display: flex; align-items: stretch; flex-wrap: wrap; gap: 0 clamp(12px,2.4vw,36px); }
.nav-main a { position: relative; display: flex; align-items: center; color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav-main a[aria-current=page] { color: var(--text); }
.nav-main a[aria-current=page]::after { position: absolute; content: ""; height: 3px; background: var(--accent); bottom: 0; width: 100%; left: 0; }
.account-menu { position: relative; flex: 0 1 auto; min-width: 0; }
.account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 11ch; }
.menu-member { display: block; overflow-wrap: anywhere; color: var(--muted); font-size: .875rem; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.account-toggle { border: 1px solid var(--line2); border-radius: 100px; background: var(--surface); display: flex; align-items: center; gap: 9px; min-height: 44px; max-width: 100%; padding: 4px 12px 4px 5px; font-weight: 500; font-size: .9375rem; }
.account-toggle .symbol, .mini-avatar { flex-shrink: 0; }
.mini-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--gold); background: rgba(217,164,65,.12); font: 500 11px var(--font-display); }
.account-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(230px,85vw); padding: 5px; background: var(--surface2); border: 1px solid var(--line2); border-radius: 13px; box-shadow: 0 12px 30px #0007; }
.account-pop[hidden] { display: none; }
.account-pop a, .account-pop button { display: block; width: 100%; text-align: left; font: 14px var(--font-body); padding: 12px; background: none; border: 0; border-radius: 8px; }
.account-pop a:hover, .account-pop button:hover { background: rgba(212,80,42,.12); }
.auth-grid { display: grid; grid-template-columns: minmax(0,1.22fr) minmax(350px,.88fr); margin: clamp(24px,3.5vw,54px) auto clamp(32px,4.5vw,68px); min-height: min(670px,72vh); background: var(--bg1); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.auth-scene { position: relative; isolation: isolate; overflow: hidden; min-height: 540px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(26px,3.3vw,54px); background: var(--surface); }
.auth-scene>img { position: absolute; z-index: -3; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: 51% 50%; display: block; }
.auth-scene::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg,rgba(20,13,9,.24),transparent 26%,rgba(20,13,9,.22) 48%,rgba(18,12,9,.94)); }
.photo-place { display: flex; align-items: center; gap: 7px; font-size: 12px; align-self: flex-start; padding: 5px 11px; border: 1px solid #f5efe669; border-radius: 30px; background: #16131099; }
.photo-place .symbol { width: 14px; height: 14px; }
.scene-title { font: 500 clamp(2rem,3.1vw,3.25rem)/1.23 var(--font-display); overflow-wrap: anywhere; text-wrap: balance; }
.scene-blurb { margin-top: 19px; max-width: 390px; color: var(--text); font-size: clamp(15px,1.2vw,17px); line-height: 1.55; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: clamp(26px,4vw,66px); }
.auth-body { width: 100%; max-width: 410px; }
.eyeline { display: flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.eyeline .symbol { width: 16px; height: 16px; }
.auth-title { font: 500 clamp(1.625rem,2.4vw,2.375rem)/1.3 var(--font-display); margin: 16px 0 12px; text-wrap: balance; overflow-wrap: anywhere; }
.auth-intro { font-size: 1rem; line-height: 1.55; color: var(--muted); max-width: 38ch; text-wrap: pretty; }
.auth-intro b { color: var(--text); font-weight: 500; white-space: nowrap; }
.auth-form { margin-top: 27px; }
.field-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; color: var(--muted); }
.auth-input { background: var(--surface); color: var(--text); border: 1px solid var(--line2); border-radius: 13px; width: 100%; height: 52px; padding: 0 16px; font-size: 16px; }
.auth-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,80,42,.16); }
.auth-input[aria-invalid=true] { border-color: #e0664a; }
.auth-button { border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: space-between; gap: 15px; font: 600 16px var(--font-body); padding: 14px 22px; min-height: 56px; width: 100%; margin-top: 14px; }
.auth-button:hover { filter: brightness(1.08); }
.auth-button:active { transform: scale(.99); }
.auth-error { font-size: 13px; line-height: 1.45; color: #e8876e; margin-top: 6px; }
.auth-error:empty { display: none; }
.demo-hint { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.new-member { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; color: var(--muted); font-size: 13px; }
.new-member a, .back-login, .text-action { color: var(--gold); font-weight: 500; text-underline-offset: 3px; }
.new-member a:hover, .back-login:hover, .text-action:hover { text-decoration: underline; }
.new-member .symbol { width: 14px; height: 14px; }
.back-login, .text-action { border: 0; background: none; padding: 0; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.back-login { margin-top: 22px; }
.test-code { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 8px; padding: 2px 14px; margin: 14px 0 0; border: 1px solid var(--line2); border-radius: 13px; background: var(--surface); font-size: .875rem; color: var(--muted); }
.test-code button, .back-login, .new-member a, .utility-link, .shell-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.new-member a { gap: 5px; }
.test-code b { font: 500 14px var(--font-display); letter-spacing: .05em; color: var(--gold); }
.shell-footer { color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px 22px; border-top: 1px solid var(--line); font-size: 12px; }
.shell-footer>div { display: flex; align-items: center; gap: 20px; }
.shell-footer a:hover { text-decoration: underline; }
.demo-note { display: inline-flex; align-items: center; gap: 7px; }
.demo-note i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.missing { padding: 65px 0; }
.missing h1 { font-size: 32px; }
.missing a { text-decoration: underline; }
#main>.feed { padding-block: clamp(25px,3vw,46px) clamp(40px,5vw,80px); }
@media (min-width:1600px) { .auth-grid { min-height: 690px; } }
@media (max-width:1020px) {
  .mast { gap: 18px; }
  .mast.signed-in { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 12px; padding-top: 12px; }
  .signed-in .nav-main { grid-row: 2; grid-column: 1/-1; gap: 0 24px; }
  .signed-in .nav-main a { min-height: 44px; }
  .signed-in .account-menu { justify-self: end; }
  .auth-scene { min-height: 480px; }
  .auth-grid { grid-template-columns: minmax(0,1fr) minmax(320px,.95fr); }
  .auth-panel { padding: 30px; }
  .nav-main { gap: 19px; }
}
@media (max-width:750px) {
  .wrap, #main { width: calc(100% - 36px); }
  .mast { min-height: 68px; gap: 12px; }
  .brand { gap: 8px; }
  .brand img { width: 27px; height: 35px; }
  .brand span { font-size: 11.5px; }
  .location-pair { display: none; }
  .utility-link { font-size: 12px; }
  .auth-grid { display: flex; flex-direction: column; margin-top: 18px; }
  .auth-scene { min-height: 245px; padding: 21px; gap: 32px; }
  .auth-scene>img { object-position: 50% 45%; }
  .scene-title { font-size: clamp(28px,6.4vw,42px); }
  .scene-title br { display: none; }
  .scene-blurb { margin-top: 9px; max-width: 365px; font-size: 14px; }
  .auth-panel { padding: 26px 22px; }
  .auth-body { max-width: none; }
  .auth-title { margin-top: 11px; font-size: 27px; }
  .auth-form { margin-top: 19px; }
  .new-member { margin-top: 15px; padding-top: 13px; }
  .auth-continuation .auth-scene { display: none; }
  .auth-continuation { min-height: auto; }
  .signed-in .nav-main { justify-content: space-between; gap: 0 12px; }
  .nav-main a { font-size: .9375rem; }
  .shell-footer { font-size: 11px; flex-wrap: wrap; gap: 8px; }
  .shell-footer>div { gap: 12px; }
}
@media (max-width:400px) {
  .wrap, #main { width: calc(100% - 24px); }
  .auth-scene { min-height: 205px; }
  .auth-panel { padding: 24px 17px; }
  .signed-in .nav-main { gap: 0 9px; }
}
@media (max-width:450px) {
  .account-toggle .account-name { display: none; }
  .mast .brand { width: fit-content; max-width: 100%; }
  .brand span { min-width: 0; overflow-wrap: anywhere; }
  .auth-intro b { white-space: normal; }
}
@media (max-width:750px) and (max-height:560px) {
  .auth-panel { order: -1; padding-block: 20px; }
  .auth-grid { margin-top: 12px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; animation-duration: .01ms!important; transition-duration: .01ms!important; }
}
