:root { color-scheme: dark; }
body { font-family: "JetBrains Mono", monospace; }
.readme { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; min-height: 80px; }
.fetch-heading { white-space: nowrap; }
button, input, select, textarea { font: inherit; }
button { border: 1px solid #454a43; background: #191d18; color: #eef0eb; padding: 12px 17px; cursor: pointer; border-radius: 5px; }
button:hover { border-color: #8bd450; }
button:disabled { opacity: .5; cursor: wait; }
button.primary { background: #8bd450; color: #10190b; border-color: #8bd450; font-weight: 700; }
:focus-visible { outline: 2px solid #6bd5e7; outline-offset: 4px; }
[hidden] { display: none !important; }
.toolbar { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #3b4136; border-radius: 9px; background: #121610f5; box-shadow: 0 12px 40px #0009; font-size: 12px; width: max-content; max-width: calc(100% - 24px); }
.toolbar strong { letter-spacing: .08em; font-size: 11px; color: #8bd450; }
.toolbar small { display: block; color: #a8aaac; margin-top: 5px; font-size: 10px; }
#exportStatus:not(:empty) { position: absolute; bottom: calc(100% + 8px); left: 0; right: 0; padding: 10px; background: #191d18; border: 1px solid #454a43; }
dialog { width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #434b3b; border-radius: 12px; color: #f1f1ef; background: #10130f; box-shadow: 0 32px 140px #000c; }
dialog::backdrop { background: #020402ce; backdrop-filter: blur(8px); }
#profileForm { padding: 30px; }
.eyebrow { color: #8bd450; font-size: 10px; letter-spacing: .15em; }
h1 { font-size: clamp(23px, 4vw, 32px); letter-spacing: -.06em; margin: 14px 0 10px; }
h1 span { color: #8bd450; }
.editor-header p, .photo-help, .crop-controls p { color: #a8aaac; font-size: 12px; line-height: 1.8; }
.steps { border-top: 1px solid #32392d; border-bottom: 1px solid #32392d; display: flex; justify-content: space-between; padding: 14px 0; margin: 24px 0; font-size: 10px; color: #8bd450; letter-spacing: .08em; }
.steps span + span { color: #8c9386; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: #d5dacf; }
input:not([type=range]), select, textarea { width: 100%; min-width: 0; border: 1px solid #3b4136; border-radius: 4px; padding: 11px; background: #090c08; color: #f1f1ef; font-size: 13px; }
input::placeholder, textarea::placeholder { color: #787f72; }
textarea { resize: vertical; }
label small { font-size: 10px; color: #9ca491; line-height: 1.6; }
.wide { grid-column: 1 / -1; }
.editor-footer { display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid #32392d; padding-top: 20px; margin-top: 20px; font-size: 12px; }
#cancelEdit { margin-right: auto; }
h2 { font-size: 20px; letter-spacing: -.04em; }
a { color: #8bd450; text-underline-offset: 3px; }
.crop-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-top: 22px; align-items: center; }
#cropFrame { position: relative; aspect-ratio: 472.5 / 480; overflow: hidden; background: #090a0a; outline: 1px solid #454a43; touch-action: none; cursor: grab; }
#cropFrame:active { cursor: grabbing; }
#cropPhoto { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
#cropPlaceholder { position: absolute; top: 44%; width: 100%; text-align: center; font-size: 13px; color: #8bd450; line-height: 2; }
#cropPlaceholder small { color: #78836f; font-size: 10px; }
.crop-controls { display: grid; gap: 16px; }
.crop-controls p { margin: 0; }
input[type=range] { width: 100%; accent-color: #8bd450; }
#formError { color: #ff928b; font-size: 12px; line-height: 1.6; }
@media (max-width: 560px) {
  #profileForm { padding: 20px; }
  .fields { grid-template-columns: 1fr; gap: 15px; }
  .crop-layout { grid-template-columns: 1fr; }
  #cropFrame { width: min(100%, 300px); margin: auto; }
  .toolbar { gap: 8px; padding: 8px; bottom: 12px; }
  .toolbar > div { display: none; }
  .toolbar button { padding: 12px; }
  .steps span + span { display: none; }
}
