:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #101819;
  color: #eef9f7;
  font-size: 16px;
  --muted: #a6bcb9;
  --card: #172325;
  --line: #2c4144;
  --mint: #7ce0c5;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
[hidden] { display: none !important; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.top { border-bottom: 1px solid var(--line); background: #131e20; }
.top-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { color: #f4fffd; font-size: 1.45rem; font-weight: 760; letter-spacing: -.05em; text-decoration: none; }
.brand span { color: var(--mint); }
.session, .section-heading, .account-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.session { color: var(--muted); font-size: .9rem; }
.hero { margin: 40px 0 28px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.055em; line-height: 1.05; }
h2 { font-size: 1.2rem; letter-spacing: -.02em; }
p { color: var(--muted); line-height: 1.5; }
h1 + p, h2 + p { margin-top: 10px; }
.workspace-grid { display: grid; grid-template-columns: minmax(270px, 385px) minmax(0, 1fr); gap: 20px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.auth { max-width: 430px; margin: 10vh auto 0; }
.auth h1 { font-size: 2.25rem; }
form { display: grid; gap: 17px; margin-top: 22px; }
label { display: grid; gap: 8px; color: #eaf6f4; font-size: .93rem; font-weight: 650; }
input, textarea { width: 100%; min-width: 0; border: 1px solid #40575a; background: #111c1e; padding: 11px 12px; color: inherit; border-radius: 10px; font: inherit; font-weight: 400; }
textarea { resize: vertical; min-height: 112px; }
input::placeholder, textarea::placeholder { color: #879d9b; }
input[type="file"] { font-size: .88rem; color: var(--muted); }
input::file-selector-button { border: 0; border-radius: 5px; padding: 6px 8px; margin-right: 8px; background: #2c4245; color: #eaf6f4; }
.check { display: flex; align-items: flex-start; gap: 9px; font-weight: 450; line-height: 1.4; }
.check input { width: 16px; height: 16px; flex: none; margin: 2px 0 0; accent-color: var(--mint); }
small, .secondary { color: var(--muted); font-size: .82rem; font-weight: 400; }
button, .download { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid transparent; border-radius: 9px; color: #112321; background: var(--mint); padding: 8px 14px; font: inherit; font-size: .92rem; font-weight: 720; text-decoration: none; cursor: pointer; }
button:hover, .download:hover { filter: brightness(1.12); }
button:disabled { opacity: .55; cursor: wait; }
button.subtle { border-color: #3c5556; background: transparent; color: #e5f5f2; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.notice { font-size: .9rem; color: #f0c3a2; white-space: pre-wrap; }
.notice:empty { display: none; }
.history .notice:not(:empty) { margin-top: 12px; }
.job-list { display: grid; gap: 12px; margin-top: 18px; }
.job { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 14px; align-items: start; border-top: 1px solid var(--line); padding: 14px 0 2px; }
.artboard { width: 86px; aspect-ratio: 1; display: block; border-radius: 10px; background: repeating-conic-gradient(#2c3e40 0% 25%,#222f31 0% 50%) 50% / 14px 14px; }
.artboard img { display: block; width: 100%; height: 100%; object-fit: contain; }
.job p { white-space: pre-wrap; overflow-wrap: anywhere; }
.job .prompt { color: #effbf8; overflow: auto; max-height: 10rem; }
.job .secondary { margin-top: 4px; }
.download { min-height: 32px; margin-top: 9px; color: var(--mint); background: transparent; border-color: #3b5d57; }
.credentials { margin-top: 18px; padding: 14px; border: 1px solid #46736a; background: #132d2a; border-radius: 10px; }
pre { color: #e8f9f4; white-space: pre-wrap; overflow-wrap: anywhere; }
.accounts:not(:empty) { margin-top: 18px; }
.account-row { border-top: 1px solid var(--line); padding: 10px 0; font-size: .88rem; overflow-wrap: anywhere; }
.account-row button { min-height: 32px; font-size: .8rem; flex: none; }
#budget { margin-top: 14px; }
footer { margin: 22px 0; font-size: .8rem; }
footer a { color: var(--muted); }
@media (max-width: 720px) {
  .container { padding: 0 14px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .hero { margin: 26px 0 18px; }
  .card { padding: 17px; }
  .auth { margin-top: 7vh; }
  .session > span { max-width: 100px; text-overflow: ellipsis; overflow: hidden; }
}
