:root {
  color-scheme: dark;
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #151311;
  color: #faf3e9;
  --surface: #201d19;
  --line: #433a2f;
  --muted: #b9aca0;
  --gold: #e2b776;
  --gold-light: #f1c992;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.topbar {
  min-height: 4.25rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .65rem clamp(1.1rem, 5vw, 4.75rem);
}
.brand {
  text-decoration: none;
  color: var(--gold-light);
  letter-spacing: .12em;
  font-size: .99rem;
  font-weight: 750;
}
.brand span { color: var(--muted); font-weight: 500; letter-spacing: normal; margin-left: .5rem; }
main { width: min(100% - 2.2rem, 68rem); margin: clamp(2rem, 6vw, 5rem) auto; }
h1, h2 { margin: 0; font-weight: 650; letter-spacing: -.04em; line-height: 1.1; }
h1 { font-size: clamp(2rem, 4vw, 3.65rem); }
h2 { font-size: 1.5rem; }
p { margin: .8rem 0; color: var(--muted); }
.auth, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: clamp(1.25rem, 4vw, 2.3rem);
}
.auth { max-width: 32rem; margin-inline: auto; }
.auth .primary { margin: 1rem 0 .35rem; }
.hint { font-size: .86rem; }
.intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.status {
  border: 1px solid #725638; color: var(--gold-light);
  border-radius: 100px; padding: .35rem .7rem; font-size: .83rem; white-space: nowrap;
}
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
fieldset { border: 0; padding: 0; margin: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; margin: .4rem 0 1rem; }
label { color: #e9dfd4; font-size: .9rem; display: block; margin-top: .95rem; }
label span { color: var(--muted); margin-left: .3rem; }
input {
  display: block; min-width: 0; width: 100%; margin-top: .35rem;
  border-radius: .55rem; border: 1px solid #806e5d;
  padding: .65rem .72rem; font: inherit; font-size: 1rem; background: #161411; color: inherit;
}
button { font: inherit; cursor: pointer; min-height: 44px; border-radius: .55rem; padding: .63rem 1rem; }
button:disabled { opacity: .5; cursor: wait; }
.primary { border: 1px solid var(--gold); color: #211607; background: var(--gold); font-weight: 650; }
.primary:hover { background: var(--gold-light); }
.quiet { border: 1px solid var(--line); color: inherit; background: transparent; }
.quiet:hover { background: var(--line); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.inline-link { display: inline-flex; align-items: center; min-height: 44px; margin-left: .7rem; color: var(--gold-light); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.feedback:not(:empty) { border-left: 2px solid var(--gold); padding: .55rem .85rem; color: #f7ead7; background: #29231b; overflow-wrap: anywhere; }
.feedback:empty { margin: 0; }
.feedback[data-error="true"] { border-color: #ef9685; }
#agent-state { color: var(--gold-light); }
@media (max-width: 43rem) {
  .panels { grid-template-columns: 1fr; }
  .intro { flex-direction: column; gap: .1rem; }
}
@media (max-width: 25rem) {
  .fields { grid-template-columns: 1fr; }
  .inline-link { display: flex; margin-left: 0; }
}
