:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #101114;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --bg: #101114;
  --panel: #17191d;
  --line: #292b30;
  --muted: #b7bac3;
  --gold: #d6b77c;
  --green: #93cba9;
  --red: #efb0a8;
  --radius: 10px;
  font-size: 16px;
  line-height: 1.55;
  --text: #f1efe9;
  --subtle: #a9afbb;
  --purple: #c3adea;
  --bronze: #d8af92;
  --on-gold: #191713;
  --disabled-text: #b7bac3;
  --photo-text: #4a4e52;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --sidebar-width: 280px;
  --right-sidebar-width: 280px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
button {
  border: 0;
}
a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
button,
input,
select {
  transition:
    background 0.18s,
    border-color 0.18s,
    opacity 0.18s;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -1px;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: var(--text-base);
  font-weight: 600;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: var(--text-xs);
}
.positive {
  color: var(--green);
}
.mono {
  font-family: monospace;
  word-break: break-all;
  font-size: var(--text-sm);
}
.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #605039;
  color: var(--gold);
  background: #b18a3f0a;
  border-radius: 4px;
  font-size: var(--text-xs);
  letter-spacing: 0.8px;
  font-weight: 650;
  padding: 5px 8px;
  white-space: nowrap;
}
.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 1.8px;
  font-weight: 650;
  color: var(--gold);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  background: #24262b;
  border: 1px solid #383a40;
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  min-height: 40px;
}
.button:hover:not(:disabled) {
  background: #303238;
  border-color: #6d6250;
}
.button.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-gold);
}
.button.primary:hover:not(:disabled) {
  background: #ddbd85;
  border-color: #ddbd85;
}
.button.compact {
  min-height: 33px;
  font-size: var(--text-sm);
  padding: 8px 12px;
}
.button.full {
  width: 100%;
}
.button.danger {
  color: var(--red);
  border-color: #60423e;
  background: #3c25252b;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 5px;
  width: 32px;
  height: 32px;
  color: var(--muted);
  flex-shrink: 0;
}
.icon-button:hover {
  color: var(--text);
  background: #ffffff0c;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  color: var(--gold);
  font-size: var(--text-sm);
}
.progress {
  height: 4px;
  background: #303137;
  border-radius: 4px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: 4px;
  transition: width 0.3s;
}
.progress.green span {
  background: var(--green);
}
.progress.blue span {
  background: #7c9cbf;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand-symbol {
  font-family: Georgia, serif;
  color: var(--gold);
  font-size: 37px;
  line-height: 1;
  position: relative;
  font-weight: 700;
  border: 1px solid #77603d;
  width: 43px;
  height: 44px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
}
.brand-symbol span {
  font-family: Arial, sans-serif;
  font-size: 7px;
  position: absolute;
  top: 22px;
  left: 18px;
}
.brand small {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 4.6px;
  color: var(--muted);
  margin-bottom: 3px;
}
.brand strong {
  font-family: Georgia, serif;
  letter-spacing: 1.15px;
  font-size: var(--text-base);
  font-weight: 400;
}

/* Entry */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 65% 85%, #48402b40, transparent 65%), #151617;
  padding: 42px 52px;
  display: flex;
  flex-direction: column;
  min-height: 850px;
}
.auth-story .brand {
  position: relative;
  z-index: 2;
}
.auth-copy {
  position: relative;
  z-index: 2;
  margin: auto 0;
  padding: 65px 0 120px;
}
.auth-copy .eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 2.2px;
}
.auth-copy h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -2px;
  font-size: clamp(54px, 5.4vw, 84px);
  line-height: 1.06;
  margin: 24px 0;
}
.auth-copy h1 em {
  color: var(--gold);
  font-weight: 400;
}
.auth-copy p {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.8;
  margin-top: 25px;
}
.auth-badges {
  display: flex;
  gap: 25px;
  margin-top: 30px;
}
.auth-badges span {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--gold);
}
.auth-badges svg {
  color: var(--gold);
}
.auth-footer {
  z-index: 2;
  position: relative;
  font-size: var(--text-xs);
  letter-spacing: 2px;
  color: var(--gold);
  display: flex;
  justify-content: space-between;
}
.auth-footer span {
  color: var(--muted);
  letter-spacing: 1px;
}
.skyline {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 3px;
  opacity: 0.2;
  mask-image: linear-gradient(transparent, #000 60%);
}
.skyline i {
  display: block;
  background:
    repeating-linear-gradient(90deg, transparent 0 8px, #83744d 8px 10px),
    repeating-linear-gradient(0deg, #2d2f2d 0 9px, #a19163 9px 11px);
  border-top: 2px solid #938057;
}
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
  background: #101114;
}
.auth-form {
  width: 100%;
  max-width: 390px;
}
.auth-form > .tag {
  margin-bottom: 20px;
}
.auth-form h2 {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 9px;
}
.auth-form > .muted {
  font-size: var(--text-sm);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #191a1e;
  padding: 4px;
  border: 1px solid #2d2e33;
  border-radius: 7px;
  margin: 27px 0 25px;
}
.auth-tabs button {
  background: none;
  font-size: var(--text-sm);
  color: var(--muted);
  padding: 10px;
  border-radius: 4px;
}
.auth-tabs button.active {
  background: #303032;
  color: var(--gold);
  box-shadow: 0 1px 5px #0003;
}
label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
}
input,
select {
  width: 100%;
  height: 42px;
  border: 1px solid #32343b;
  background: #1b1d22;
  color: var(--text);
  border-radius: 6px;
  padding: 0 12px;
  outline: none;
}
input::placeholder {
  color: var(--muted);
}
input:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px #c9a76b15;
}
.auth-form label {
  margin-bottom: 15px;
}
.auth-form label input,
.auth-form label select {
  margin-top: 7px;
}
.form-row {
  display: flex;
  gap: 12px;
}
.form-row label {
  min-width: 0;
  flex: 1;
}
.auth-form .button {
  margin-top: 9px;
  min-height: 45px;
}
.auth-form .error {
  margin-bottom: 12px;
}
.auth-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: 18px;
}
.alpha-note {
  margin-top: 30px;
  border-top: 1px solid #2c2d32;
  padding-top: 22px;
  display: flex;
  gap: 10px;
  color: var(--muted);
}
.alpha-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
}
.alpha-note p {
  font-size: var(--text-sm);
  line-height: 1.7;
}
.offline {
  padding: 12px;
  text-align: center;
  background: #583126;
  color: var(--text);
  font-size: var(--text-sm);
}
.offline button {
  background: none;
  text-decoration: underline;
  margin-left: 15px;
}


/* PUBLIC LOGIN 1.0: presentation-only adaptation of actual Auth.tsx. */
body { min-width: 320px; }
.auth-story { min-height: min(850px, 100vh); }
.auth-copy { padding-top: 45px; }
.auth-form { max-width: 430px; }
.public-banner { display: flex; gap: 12px; align-items: flex-start;
  padding: 15px 16px; border: 1px solid #77603d; border-radius: 8px;
  background: linear-gradient(120deg,#30281d,#201e1b 85%);
  margin: 20px 0 0; color: var(--text); }
.public-banner .pub-lock { color: var(--gold); flex-shrink:0; font-size:24px; line-height:1.15; }
.public-banner strong { display:block; font-size:var(--text-sm); color:var(--gold); }
.public-banner p { font-size:var(--text-sm); line-height:1.55; margin-top:4px; color:var(--muted); }
.form-closed fieldset { margin:0; padding:0; border:0; min-width:0; }
.form-closed input, .form-closed select { opacity:.7; cursor:not-allowed; }
.auth-form .form-closed label { color: #b7bac3; }
.button.primary.closed { background:#3b3429; color:#e5cf9d; border-color:#786443; opacity:1; }
.auth-tabs button:hover { color:var(--gold); }
.auth-tabs button:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
.auth-note { flex-wrap:wrap; text-align:center; }
.auth-badges { flex-wrap:wrap; }
.public-details { margin-top:18px; padding:13px 0 0; border-top:1px solid #2c2d32; font-size:var(--text-xs); color:var(--muted); }
.public-details a { text-decoration: underline; text-underline-offset: 3px; }
.auth-copy .eyebrow { line-height: 1.7; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
@media (min-width:1700px) { .auth-story { padding-inline:clamp(52px,5.3vw,120px); } }
@media (max-width:950px) {
 .auth-story { padding:35px; }
 .auth-panel { padding:35px; }
 .auth-copy h1 { font-size:60px; }
 .auth-form h2 { font-size:28px; }
}
@media (max-width:700px) {
 .auth { display:flex;flex-direction:column; }
 .auth-story { min-height:290px; padding:24px; }
 .auth-copy { margin-top:25px;margin-bottom:25px;padding:0; }
 .auth-copy h1 { font-size:40px;line-height:1.04;margin:12px 0; }
 .auth-copy p,.auth-badges,.auth-footer { display:none; }
 .skyline { left:55%;bottom:0;opacity:.1; }
 .auth-panel { padding:30px 24px 45px; }
 .auth-form { max-width:410px; }
 .auth-form h2 { font-size:29px; }
 .auth .brand-symbol { height:35px;width:35px;font-size:29px; }
 .auth .brand-symbol span { left:14px;top:18px; }
 .auth .brand strong { font-size:var(--text-sm); }
 .auth .brand small { font-size:var(--text-xs); }
 .auth-form > .tag { margin-bottom:16px; }
}
@media (max-width:390px) { .form-row { flex-direction: column;gap:0; } .auth-panel {padding-inline:16px;} }
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { transition:none !important; animation:none !important; } }

.skyline i:nth-child(1){height:35px;width:18px}
.skyline i:nth-child(2){height:72px;width:31px}
.skyline i:nth-child(3){height:109px;width:44px}
.skyline i:nth-child(4){height:146px;width:57px}
.skyline i:nth-child(5){height:183px;width:22px}
.skyline i:nth-child(6){height:70px;width:35px}
.skyline i:nth-child(7){height:107px;width:48px}
.skyline i:nth-child(8){height:144px;width:61px}
.skyline i:nth-child(9){height:181px;width:26px}
.skyline i:nth-child(10){height:68px;width:39px}
.skyline i:nth-child(11){height:105px;width:52px}
.skyline i:nth-child(12){height:142px;width:65px}
.skyline i:nth-child(13){height:179px;width:30px}
.skyline i:nth-child(14){height:66px;width:43px}
.skyline i:nth-child(15){height:103px;width:56px}
.skyline i:nth-child(16){height:140px;width:21px}
.skyline i:nth-child(17){height:177px;width:34px}
.skyline i:nth-child(18){height:64px;width:47px}
.skyline i:nth-child(19){height:101px;width:60px}
.skyline i:nth-child(20){height:138px;width:25px}
.skyline i:nth-child(21){height:175px;width:38px}
.skyline i:nth-child(22){height:62px;width:51px}
.skyline i:nth-child(23){height:99px;width:64px}
.skyline i:nth-child(24){height:136px;width:29px}