* { box-sizing: border-box; }
body { margin: 0; color: #102341; font: 15px/1.6 Inter, system-ui, sans-serif; }
[hidden] { display: none !important; }
a, .link { color: #155eef; }
:focus-visible { outline: 3px solid #5585e8; outline-offset: 3px; }
h1, h2 { margin: 0 0 12px; line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
h2 { font-size: 1.15rem; }
.auth { display: grid; grid-template-columns: minmax(340px,35%) minmax(0,1fr); min-height: 100svh; }
.brand-panel { min-width: 0; display: flex; flex-direction: column; padding: 40px clamp(24px,3vw,56px); background: #f1f4ff; border-inline-end: 1px solid #e6ebfa; }
.brand { align-self: start; text-decoration: none; font-weight: 700; font-size: 24px; color: #155eef; }
.story { flex: 1; display: grid; align-content: center; }
.story p { color: #526580; }
.wordmark { font-size: clamp(27px,2.6vw,42px); font-weight: 600; color: #155eef; letter-spacing: -.04em; }
.actions { display: inline-grid; color: #7c3aed; vertical-align: top; }
.actions i { grid-area: 1/1; opacity: 0; animation: word 10s ease-in-out infinite; }
.actions i:nth-child(2) { animation-delay: 2.5s; }
.actions i:nth-child(3) { animation-delay: 5s; }
.actions i:nth-child(4) { animation-delay: 7.5s; }
@keyframes word { 0%,22% { opacity: 1; } 25%,100% { opacity: 0; } }
.auth-content { display: grid; align-items: center; justify-items: center; padding: 24px; }
.auth-form { width: min(100%,420px); }
form label { display: block; margin: 12px 0; font-weight: 600; }
input:not([type="checkbox"]), select { display: block; width: 100%; min-height: 42px; margin-top: 4px; padding: 8px 10px; border: 1px solid #c7d3e4; border-radius: 6px; font: inherit; }
button { min-height: 38px; padding: 7px 12px; border: 1px solid #c7d3e4; border-radius: 6px; background: white; color: #155eef; font: inherit; font-weight: 600; cursor: pointer; }
button[type="submit"], #create-account { color: white; background: #155eef; border-color: #155eef; }
.auth-form button[type="submit"] { width: 100%; }
button:disabled { opacity: .55; cursor: default; }
.link { background: transparent; border: 0; padding-inline: 0; }
.form-links { display: flex; gap: 0 14px; flex-wrap: wrap; }
.check { display: flex; align-items: baseline; gap: 8px; font-weight: 400; }
dialog { width: min(calc(100% - 32px),540px); padding: 24px; border: 1px solid #d9e3f0; border-radius: 12px; color: inherit; }
dialog::backdrop { background: #10234188; }
#app { min-height: 100svh; background: #f1f4ff; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; padding: 12px max(20px,calc((100% - 1160px)/2)); background: white; }
.dashboard { max-width: 1200px; margin: auto; padding: 24px 20px; }
.panel { min-width: 0; background: white; border: 1px solid #d9e3f0; border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.code, .notice { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 12px; }
.metrics strong { display: block; font-size: 1.65rem; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(265px,1fr); gap: 12px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: start; }
th,td { text-align: start; padding: 8px; border-bottom: 1px solid #e6ebfa; overflow-wrap: anywhere; }
#payouts p { border-top: 1px solid #e6ebfa; padding-top: 8px; overflow-wrap: anywhere; }
.notice-window { flex: 1 1 240px; overflow: hidden; }
.notice-window p { margin: 0; white-space: nowrap; width: max-content; animation: notice 16s linear infinite; }
.notice.is-paused p { animation: none; width: auto; white-space: normal; }
@keyframes notice { from { transform: translateX(-100%); } to { transform: translateX(max(50vw, 420px)); } }
@media (max-width:760px) {
  .auth,.dashboard-columns { grid-template-columns: minmax(0,1fr); }
  .brand-panel { padding: 16px 24px; }
  .story { padding-top: 12px; }
}
@media (prefers-reduced-motion:reduce) {
  .actions i { animation: none; }
  .actions i:first-child { opacity: 1; }
  .notice-window p { animation: none; width: auto; white-space: normal; }
  #pause-notice { display: none; }
}
