:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #fff4e8;
  background: #201c27;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  padding: clamp(16px, 5vw, 64px) clamp(14px, 5vw, 32px);
  background: linear-gradient(#211925d9, #211925ee), url("assets/winter.webp") center / cover fixed;
}
.account { width: min(100%, 860px); margin-inline: auto; }
.account-panel, dialog {
  padding: clamp(18px, 3.5vw, 30px);
  border: 1px solid #ffe4ce36;
  border-radius: 18px;
  background: #2b222e;
  box-shadow: 0 16px 58px #150e1a70;
}
.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
}
.header-actions { display: flex; align-items: center; gap: clamp(8px, 2vw, 20px); }
.back { white-space: nowrap; }
.account-heading { margin-block: clamp(22px, 5vw, 58px) clamp(22px, 4vw, 36px); }
dialog { width: min(490px, calc(100% - 28px)); color: inherit; }
dialog::backdrop { background: #100c14b9; }
h1 { margin: 0; font-size: clamp(29px, 5vw, 52px); line-height: 1.12; letter-spacing: -.035em; }
h2 { margin: 0 0 8px; font-size: 21px; line-height: 1.25; }
p { line-height: 1.5; color: #e9d8da; }
a { color: #f4d2a7; text-underline-offset: 4px; }
label, output { display: block; }
input, button { font: inherit; }
input {
  display: block;
  width: 100%;
  margin: 7px 0 12px;
  padding: 10px 12px;
  border: 1px solid #937688;
  border-radius: 9px;
  background: #201923;
  color: inherit;
}
button {
  padding: 10px 15px;
  border: 1px solid #f4d2a7;
  border-radius: 9px;
  background: #f4d2a7;
  color: #381e22;
  font-weight: 650;
  cursor: pointer;
}
button:disabled { opacity: .55; cursor: wait; }
.secondary { background: transparent; border-color: #9a7d89; color: inherit; }
.text-button { min-height: 44px; padding: 8px 0 8px 6px; border: 0; background: transparent; color: #f4d2a7; font-size: 14px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
#login { max-width: 440px; }
#demo-link { display: block; margin-top: 12px; }
#identity { margin: 8px 0 0; color: #dcc8d0; font-size: 15px; overflow-wrap: anywhere; }
.demo-tag {
  padding: 4px 7px;
  border-radius: 5px;
  background: #584050;
  color: #fff4e8;
  font-size: 12px;
  white-space: nowrap;
}
.demo-hint, #license-state { margin: 0; color: #dcc8d0; font-size: 14px; }
.demo-hint { margin-top: 12px; }
#license { display: grid; align-items: start; }
.license-actions:has(> :not([hidden])) {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #ffe4ce36;
}
.code-label { margin: 0 0 6px; color: #f3ddc6; font-size: 14px; font-weight: 650; }
.code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.code-hint { margin: 10px 0 0; font-size: 14px; text-wrap: pretty; }
#copy { min-height: 44px; min-width: 118px; padding: 8px 12px; font-size: 14px; }
output { font: 650 clamp(14px, 4vw, 17px) ui-monospace, Consolas, monospace; user-select: all; overflow-wrap: anywhere; }
#message { margin: 12px 0 0; font-size: 14px; }
#message:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
:focus-visible { outline: 2px solid #f9daaf; outline-offset: 3px; }
@media (min-width: 660px) {
  #license:has(.license-actions > :not([hidden])) { grid-template-columns: minmax(160px, 1fr) minmax(0, 1.7fr); }
  .license-actions:has(> :not([hidden])) {
    margin: 0;
    padding: 0 0 0 clamp(20px, 3vw, 30px);
    border-top: 0;
    border-left: 1px solid #ffe4ce36;
  }
}
