:root { color-scheme: dark; --bg: #09090b; --surface: #111113; --surface-2: #18181a; --surface-3: #1f1f22; --text: rgba(255, 255, 255, .87); --text-soft: rgba(255, 255, 255, .60); --text-dim: rgba(255, 255, 255, .52); --text-faint: rgba(255, 255, 255, .48); --text-ghost: rgba(255, 255, 255, .46); --fill: rgba(255, 255, 255, .03); --fill-2: rgba(255, 255, 255, .06); --fill-3: rgba(255, 255, 255, .08); --line: rgba(255, 255, 255, .06); --line-soft: rgba(255, 255, 255, .06); --line-hi: rgba(255, 255, 255, .10); --accent: #ffffff; --accent-text: #09090b; --good: #22c55e; --bad: #f04d4d; --focus-line: rgba(255, 255, 255, .34); --focus-ring: inset 0 0 0 1px rgba(255, 255, 255, .12); --focus-outline: rgba(255, 255, 255, .7); --r: 8px; --r-sm: 6px; --r-btn: 10px; --radius: 14px; --shadow-lg: none; --t: .15s cubic-bezier(.4, 0, .2, 1); --font: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color: var(--text); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
@media (hover: hover) { a:hover { text-decoration: underline; } }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(255, 255, 255, .16); }
:focus-visible { outline: 2px solid var(--focus-outline); outline-offset: 2px; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .10); border-radius: 3px; }
@media (hover: hover) { ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .18); } }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .10) transparent; }
h1 { margin: 0; }
h1 { font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
p { margin: 0 0 10px; }
.mono { font-family: var(--mono); font-size: 12px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); }
.brand-mark svg { width: 17px; height: 17px; stroke-width: 2.5; }
@media (min-width: 901px) and (max-height: 1019px) {
  .brand-mark { width: 30px; height: 30px; }
}
.tag-solid { background-image: linear-gradient(var(--tag), var(--tag)); border-color: transparent; --tag-ink: oklch(from var(--tag) clamp(0, (0.75 - l) * 1000, 1) 0 0); }
.card, .flash, .err-card { margin-top: 0; margin-bottom: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-body { padding: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--fill); color: var(--text-soft); font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.5; text-decoration: none; white-space: nowrap; cursor: pointer; }
@media (hover: hover) { .btn:hover { background: var(--fill-2); border-color: var(--line-hi); color: var(--text); text-decoration: none; } }
.btn-primary { height: auto; padding: 10px 20px; border: 0; line-height: normal; background: var(--accent); color: var(--accent-text); font-weight: 600; letter-spacing: -0.01em; }
@media (hover: hover) { .btn-primary:hover { border-color: transparent; color: var(--accent-text); } }
.btn-icon { width: 28px; height: 28px; padding: 0; display: inline-grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--text-dim); cursor: pointer; }
@media (hover: hover) { .btn-icon:hover { background: var(--fill-3); color: var(--text); } }
.btn-icon svg { width: 14px; height: 14px; margin: 0; }
input[type=text], input[type=password] { height: auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--fill); color: var(--text); font: inherit; font-size: 13px; font-weight: 400; line-height: 19.5px; transition: border-color var(--t); }
input::placeholder { color: var(--text-faint); }
input.tag-solid { background-image: linear-gradient(var(--tag), var(--tag)); color: var(--tag-ink); }
input.initial-box.tag-solid { color: var(--tag-ink); }
input.tag-solid::placeholder { color: color-mix(in srgb, var(--tag-ink) 60%, transparent); }
@media (hover: hover) { input:hover { border-color: var(--line-hi); } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 11px; font-weight: 500; color: var(--text-dim); }
input.initial-box:focus-visible { border-color: currentColor; outline: 1px solid currentColor; outline-offset: 0; }
.flash { padding: 12px 16px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.flash-success { background: color-mix(in srgb, var(--good) 8%, transparent); color: var(--good); border: 1px solid color-mix(in srgb, var(--good) 15%, transparent); }
.flash-error { background: color-mix(in srgb, var(--bad) 8%, transparent); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 15%, transparent); }
.auth-alt a { color: var(--text-soft); }
@media (hover: hover) { .auth-alt a:hover { color: var(--text); } }
.auth .id-picker .picker-pop { left: 0; }
.signup-row { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 14px; }
.signup-row .field { margin: 0; }
.signup-row .field-initial { flex: none; }
.signup-row .field-username { flex: 1 1 auto; min-width: 0; }
.signup-row .field-username input { width: 100%; }
input.initial-box { flex: none; width: 64px; height: 34px; padding: 0 8px; text-align: center; font-family: var(--mono); font-weight: 600; letter-spacing: .01em; text-transform: uppercase; border-radius: var(--r); transition: border-color .12s ease; }
.picker-pencil { width: 34px; height: 34px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); color: var(--text-soft); display: inline-grid; place-items: center; cursor: pointer; }
.picker-pencil svg { width: 15px; height: 15px; }
@media (hover: hover) { .picker-pencil:hover { background: var(--surface-3); border-color: var(--line); color: var(--text); } }
.picker-open .picker-pencil { border-color: var(--accent); color: var(--text); }
.picker { position: relative; }
.picker-pop { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; display: none; width: 246px; padding: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.picker-open .picker-pop { display: block; }
.picker-up .picker-pop { top: auto; bottom: calc(100% + 6px); }
.picker-area { position: relative; height: 132px; border-radius: var(--r); cursor: crosshair; touch-action: none; }
.picker-sat { position: absolute; inset: 0; border-radius: inherit; background-color: #f00; background-image: linear-gradient(to top, #000, rgb(0 0 0 / 0)), linear-gradient(to right, #fff, rgb(255 255 255 / 0)); }
.picker-val { display: none; }
.picker-area:focus-visible, .picker-hue:focus-visible { outline: 2px solid var(--focus-outline); outline-offset: 2px; }
.picker-thumb, .picker-hue-thumb { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgb(0 0 0 / .35); pointer-events: none; }
.picker-hue-thumb { top: 50%; }
.picker-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.picker-hue { position: relative; flex: 1; height: 12px; border-radius: 999px; cursor: pointer; touch-action: none; background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%); }
.picker-hash { color: var(--text-dim); font-size: 13px; }
.picker-eye { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: var(--r-sm); background: var(--surface-3); border: 1px solid var(--line); color: var(--text-soft); cursor: pointer; }
.picker-eye svg { width: 15px; height: 15px; }
@media (hover: hover) { .picker-eye:hover { color: var(--text); } }
.picker-input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.picker-pop .picker-input { height: 28px; padding: 0 8px; font-size: 12.5px; background: var(--surface-3); }
.picker-pop .picker-input:focus-visible { background: var(--surface-3); border-color: var(--focus-line); outline: 0; box-shadow: var(--focus-ring); }
.id-picker .picker-pop { left: 0; }
.err-card { background: var(--surface); border: 1px solid var(--line-soft); }
:root { --pop-bg: #161618; --pop-line: rgba(255, 255, 255, .09); --pop-shadow: none; }
.btn, .btn-icon { transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease, transform .1s ease; }
.btn:active:not(:disabled), .btn-icon:active:not(:disabled) { transform: translateY(1px); }
@media (hover: hover) { .btn-primary:hover { background: #e6e6e7; } }
.btn-primary:active:not(:disabled) { background: #d4d4d8; }
.btn:disabled { opacity: .5; pointer-events: none; }
input:focus-visible { border-color: var(--focus-line); box-shadow: var(--focus-ring); }
.btn:focus-visible, .btn-icon:focus-visible { outline: 2px solid var(--focus-outline); outline-offset: 2px; }
.picker-pop { background: var(--pop-bg); border: 1px solid var(--pop-line); border-radius: 14px; box-shadow: var(--pop-shadow); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
  @keyframes pop-up { from { opacity: 0; transform: translateY(4px) scale(.98); } }
  .picker-open .picker-pop { animation: pop-in .14s cubic-bezier(.2, .9, .3, 1); }
  .picker-up .picker-pop { animation-name: pop-up; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}
.auth { max-width: 440px; margin: 0 auto; padding: 60px 20px 40px; }
body.centered:has(> .auth) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.centered > .auth { width: 100%; margin: auto; padding: 40px 20px; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 34px; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.auth-brand .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
.auth-brand .brand-mark svg { width: 18px; height: 18px; }
.auth .card { border-radius: 18px; }
.auth .card-body { padding: 34px; }
.auth h1 { font-size: 22px; line-height: 1.5; text-align: center; margin-bottom: 28px; }
.auth h1:has(+ .auth-sub) { margin-bottom: 8px; }
.auth-sub { margin: 0 0 28px; text-align: center; font-size: 13px; color: var(--text-faint); }
.auth .flash, .auth h1 + .flash { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 20px; padding: 11px 14px; border-radius: 10px; font-size: 13px; font-weight: 500; line-height: 20px; }
.auth .flash svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.auth .flash-error { background: color-mix(in srgb, var(--bad) 8%, transparent); border-color: color-mix(in srgb, var(--bad) 18%, transparent); }
.auth .flash-success { background: color-mix(in srgb, var(--good) 8%, transparent); border-color: color-mix(in srgb, var(--good) 18%, transparent); }
.auth .field { margin-bottom: 16px; }
.auth .field label { font-size: 13px; color: var(--text-soft); }
.auth form > .field:last-of-type { margin-bottom: 24px; }
.auth .field > input, .auth .field > .pw > input { height: 45px; padding: 0 14px; font-size: 14px; border-color: var(--fill-3); border-radius: 10px; }
.auth .field > input::placeholder, .auth .field > .pw > input::placeholder { color: var(--text-ghost); }
.pw { position: relative; display: flex; }
.pw > input { flex: 1 1 auto; width: 100%; min-width: 0; }
.auth .field > .pw > input { padding-right: 46px; }
.pw-btn { position: absolute; top: 0; bottom: 0; right: 7px; width: 32px; height: 32px; margin: auto 0; }
.pw-btn[hidden] { display: none; }
.pw-btn svg { width: 16px; height: 16px; }
.pw-btn[aria-pressed="false"] .pw-off, .pw-btn[aria-pressed="true"] .pw-on { display: none; }
.auth form > .btn { width: 100%; margin: 0; padding: 13px; border-radius: 12px; font-size: 15px; font-weight: 700; letter-spacing: normal; }
.auth-alt { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--text-faint); }
.auth-alt a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; }
.auth .signup-row { display: flex; flex-direction: row; gap: 13px; margin-bottom: 16px; }
.auth .signup-row .field { margin: 0; }
.auth .id-picker { display: flex; align-items: center; height: var(--auth-field-h, 45px); }
.err-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; }
.err-card { width: 100%; max-width: 440px; padding: 40px 34px; border-radius: 18px; text-align: center; }
.err-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 16px; background: var(--fill); border: 1px solid var(--line); color: var(--text-soft); }
.err-icon svg { width: 28px; height: 28px; }
.err-gone { border: 0; border-radius: 50%; }
.err-gone { background: var(--fill-3); color: var(--text-soft); }
.err-card h1 { font-size: 22px; line-height: 1.2; margin-bottom: 28px; }
.err-card h1:has(+ .err-sub) { margin-bottom: 10px; }
.err-sub { margin: 0 0 20px; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .54); }
.err-sub:has(~ form .btn-primary, ~ .btn-primary) { margin-bottom: 28px; }
.err-card .btn { width: 100%; height: auto; padding: 14px; border-radius: 12px; font-size: 15px; font-weight: 700; line-height: normal; letter-spacing: normal; }
div.auth .id-mark { position: relative; grid-area: 1 / 1; width: 42px; height: 42px; }
div.auth .id-mark input.initial-box { width: 42px; height: 42px; padding: 0 0 1px; border: 0; border-radius: 50%; color: var(--tag-ink); font-family: var(--font); font-size: 15px; font-weight: 700; letter-spacing: normal; }
div.auth .id-mark .picker-pencil { position: absolute; z-index: 62; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-hi); color: rgba(255, 255, 255, .50); }
div.auth .id-mark .picker-pencil svg { width: 10px; height: 10px; stroke-width: 2.25; }
input:focus-visible { border-color: var(--focus-line); box-shadow: var(--focus-ring); outline: none; }
@media (hover: hover) { .auth .field > input:hover, .auth .field > .pw > input:hover { border-color: rgba(255, 255, 255, .10); } }
.auth .field > input:focus-visible, .auth .field > .pw > input:focus-visible { border-color: var(--focus-line); box-shadow: var(--focus-ring); outline: none; }
@media (hover: hover) { div.auth .id-mark .picker-pencil:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, .24); color: var(--text); } }
div.auth .picker-open .id-mark .picker-pencil { background: var(--surface-3); border-color: rgba(255, 255, 255, .24); color: var(--text); }
input:is(:-webkit-autofill, :autofill) { -webkit-text-fill-color: var(--text); caret-color: var(--text); box-shadow: 0 0 0 1000px var(--surface-2) inset; transition: border-color var(--t), background-color 9999s; }
.auth .field input:is(:-webkit-autofill, :autofill):focus-visible { box-shadow: var(--focus-ring), 0 0 0 1000px var(--surface-2) inset; }
