:root {
  color-scheme: dark;
  font: 16px/1.55 system-ui, sans-serif;
  background: #120e13;
  color: #fff3f7;
  --surface: #20161d;
  --border: #493442;
  --accent: #ff8aab;
  --muted: #cfb7c4;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.header { display: flex; align-items: center; justify-content: space-between; padding: 16px max(20px, calc((100vw - 1120px) / 2)); border-bottom: 1px solid var(--border); }
.brand { display: flex; gap: 12px; align-items: center; font-weight: 750; font-size: 1.2rem; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #27111d; }
main { max-width: 1160px; padding: 30px 20px; margin: 0 auto; }
h1, h2, h3 { margin: 0 0 14px; line-height: 1.25; }
h1 { font-size: clamp(1.55rem, 4vw, 2.2rem); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 8px 0; }
.grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.panel { min-width: 0; border: 1px solid var(--border); background: var(--surface); border-radius: 18px; padding: 20px; }
.login { max-width: 460px; margin: 48px auto 12px; }
.login .button { margin-top: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > input { flex: 1 1 140px; min-width: 0; }
.title { justify-content: space-between; margin-bottom: 12px; }
.title h2 { margin: 0; }
label { display: block; color: var(--muted); font-size: 0.88rem; margin: 8px 0 5px; }
input, select, button, .button { font: inherit; padding: 9px 12px; border-radius: 9px; }
input, select { border: 1px solid var(--border); background: #161017; color: inherit; }
button, .button { background: var(--accent); border: 1px solid transparent; color: #21101a; font-weight: 650; cursor: pointer; text-decoration: none; display: inline-block; }
button.secondary { background: transparent; color: inherit; border-color: var(--border); }
button:disabled { opacity: 0.55; cursor: wait; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.status { background: #2c1c29; border-radius: 10px; padding: 11px 14px; margin-bottom: 16px; }
.status.error { color: #ffb6ad; }
.record { margin-top: 13px; border-top: 1px solid var(--border); padding-top: 13px; }
.meta { font-size: 0.86rem; color: var(--muted); overflow-wrap: anywhere; }
.address { font: 0.92rem/1.6 ui-monospace, monospace; overflow-wrap: anywhere; }
#credit { margin-top: 14px; }

@media (max-width: 740px) {
  .grid { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .login { margin-top: 12px; }
}
