:root{color-scheme:dark;--bg:#0b0c0e;--base:#151619;--raised:#23262b;--hover:#30343a;--text:#f4f4f5;--muted:#a1a1aa;--cyan:#72eee8;font-family:"Microsoft YaHei","Microsoft YaHei UI",sans-serif;font-size:14px;line-height:22px;color:var(--text);background:var(--bg)}
*{box-sizing:border-box;box-shadow:none}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select,summary{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:1px solid #ededed}button{border:0;border-radius:24px;padding:11px 20px;background:var(--raised);color:var(--text);font-weight:700;line-height:20px;cursor:pointer;white-space:nowrap}button:hover{background:var(--hover)}button:disabled{opacity:.45;cursor:not-allowed}button.primary{background:#ededed;color:#0b0c0e}button.primary:hover{background:white}button.text-button{background:transparent;padding:8px 10px}button.icon{width:40px;height:40px;padding:0;font-size:24px;flex-shrink:0}button.danger{color:#f87171;background:#2a1517}a{color:var(--cyan);text-decoration:none;overflow-wrap:anywhere}label{display:block;font-weight:700;margin:16px 0 8px}input,textarea,select{width:100%;border:0;background:var(--base);color:var(--text);border-radius:20px;padding:12px 16px;min-width:0}textarea{resize:vertical;line-height:24px}input::placeholder,textarea::placeholder{color:var(--muted)}input[type=file]{padding:0}h1{font-size:28px;line-height:38px;margin:8px 0 14px;font-weight:700}h2{font-size:18px;line-height:28px;margin:0;font-weight:700}h3{font-size:16px;line-height:24px;margin:0}p{margin:0 0 12px}img,video{max-width:100%;object-fit:cover}video{width:100%;border-radius:20px}.muted{color:var(--muted)}.small{font-size:12px;line-height:18px}.eyebrow{font-size:12px;line-height:18px;color:var(--muted);margin:0 0 12px}.row{display:flex;align-items:center;gap:12px}.spread{justify-content:space-between}.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:var(--raised);font-weight:700;color:var(--cyan);font-size:14px}.brand{display:flex;align-items:center;gap:12px;color:var(--text);font-weight:700}.brand .muted{font-size:12px;font-weight:400}.pill{display:inline-flex;background:var(--raised);color:var(--muted);padding:5px 12px;border-radius:20px;font-size:12px;line-height:18px;white-space:nowrap}.pill.published{color:var(--cyan)}.pill.changed{color:#e8cb88}.login-wrap{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 75% 0%,#153d42 0%,transparent 50%),var(--bg)}.login-card{width:min(100%,460px);padding:40px;background:var(--base);border-radius:32px}.login-card .brand-mark{margin-bottom:36px}.login-card input{background:var(--raised)}.login-card button{width:100%;margin:24px 0 8px;display:flex;justify-content:space-between}.login-card form{margin:30px 0}.login-card h1{font-size:24px;line-height:34px}.topbar{max-width:1440px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 40px}.workspace{max-width:1440px;padding:36px 40px;margin:auto}.intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:32px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:36px}.stats article{background:var(--base);border-radius:32px;padding:24px 28px}.stats p{font-size:12px;color:var(--muted);margin-bottom:12px}.stats strong{font-size:28px;line-height:38px}.stats article:last-child strong{color:var(--cyan)}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.filters{display:flex;gap:12px;min-width:0}.filters input{width:280px}.filters select{width:140px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.card{background:var(--base);border-radius:32px;overflow:hidden;display:flex;flex-direction:column;min-width:0}.art{position:relative;aspect-ratio:16/10;background:radial-gradient(ellipse at 45% 25%,#28676b 0%,#152c31 45%,#101315 90%);overflow:hidden}.art img{width:100%;height:100%;display:block}.art .pill{position:absolute;top:16px;left:16px;background:#151619}.card-body{padding:20px;display:flex;flex-direction:column;flex:1}.card h3{color:var(--cyan);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card .description{color:var(--muted);font-size:12px;line-height:18px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:36px;margin:12px 0 20px}.card-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto}.card-bottom button{padding:8px 16px}.card-bottom span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty{padding:72px 24px;background:var(--base);border-radius:32px;text-align:center;color:var(--muted)}.empty h2{color:var(--text);margin:0 0 12px}.pagination{display:flex;align-items:center;justify-content:space-between;margin-top:24px}.footer{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;margin-top:32px;gap:16px}.footer button{font-size:12px}.error{color:#f87171;min-height:18px;font-size:12px;margin:12px 0}.required{color:var(--cyan)}dialog{border:0;border-radius:32px;background:var(--raised);color:var(--text);padding:28px;width:min(680px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:auto}dialog::backdrop{background:rgb(0 0 0 / .7)}.large-dialog{width:min(1280px,calc(100vw - 64px));padding:0;overflow:hidden}.large-dialog form{max-height:calc(100dvh - 48px);display:flex;flex-direction:column}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}.large-dialog .dialog-head{padding:24px 32px 0}.dialog-head .eyebrow{margin-bottom:4px}.editor-columns{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:32px;padding:0 32px 24px;overflow-y:auto;min-height:0}.form-fields>label:first-child{margin-top:0}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-row>div{min-width:0}.preview{background:var(--base);padding:24px;border-radius:32px;align-self:start;position:sticky;top:0}.preview-art{aspect-ratio:16/10;border-radius:20px;overflow:hidden;margin:20px 0;background:radial-gradient(ellipse at 40% 10%,#28676b, #122a2e 50%,#0b0c0e);display:grid;place-items:center;color:#a1d8d7}.preview-art img{width:100%;height:100%}.preview>h2{font-size:24px;line-height:34px;color:var(--cyan);overflow-wrap:anywhere;margin-bottom:12px}.preview .pill{background:var(--raised)}.prompt-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:24px;max-height:220px;overflow:auto;margin-top:20px}.tags{display:flex;gap:8px;flex-wrap:wrap}.tags span{padding:4px 10px;background:var(--raised);border-radius:20px;font-size:12px;color:var(--muted)}.preview>.small{margin:20px 0 0}.dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:24px}.large-dialog .dialog-footer{padding:20px 32px;background:var(--raised);margin:0}.dialog-footer p{margin:0}.upload-button{display:inline-block;font-size:12px;padding:7px 14px;background:var(--base);border-radius:20px;cursor:pointer;margin:10px 8px 0 0}details{margin-top:20px}summary{cursor:pointer;font-weight:700}.release-row{padding:16px 20px;margin-top:12px;background:var(--base);border-radius:20px;display:flex;justify-content:space-between;gap:16px}.release-row p{margin:0 0 6px}.release-row time{white-space:nowrap;color:var(--muted);font-size:12px}#api-dialog a{display:block;background:var(--base);border-radius:20px;padding:16px;margin-bottom:20px}#notice{position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:2000;background:var(--hover);color:var(--text);padding:14px 24px;border-radius:20px;max-width:90vw}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
@media(max-width:1100px){.cards{grid-template-columns:repeat(3,minmax(0,1fr))}.toolbar{align-items:stretch;flex-direction:column}.toolbar>.row{justify-content:flex-end}.filters input{flex:1}.topbar,.workspace{padding-left:24px;padding-right:24px}}
@media(max-width:760px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{grid-template-columns:repeat(2,1fr)}.topbar{align-items:flex-start}.brand .muted{display:none}.topbar>.row{gap:4px}.intro{align-items:flex-start;flex-direction:column}.intro h1{font-size:24px;line-height:34px}.filters{flex-wrap:wrap}.filters input{width:100%;flex-basis:100%}.filters select{flex:1}.editor-columns{grid-template-columns:1fr;padding:0 20px 24px}.preview{position:static}.large-dialog{width:calc(100vw - 24px)}.large-dialog .dialog-head{padding:20px 20px 0}.large-dialog .dialog-footer{padding:16px 20px;flex-direction:column;align-items:stretch}.dialog-footer>.row{justify-content:flex-end;flex-wrap:wrap}.footer{align-items:flex-start;flex-direction:column}.release-row{flex-direction:column;gap:4px}.form-row{grid-template-columns:1fr}.login-card{padding:28px}.workspace{padding-top:16px}}
@media(max-width:440px){.cards{grid-template-columns:1fr}.stats article{padding:20px}.topbar{padding:18px 16px}.workspace{padding:20px 16px}.brand{gap:8px;font-size:12px}.topbar .pill{display:none}.stats{gap:12px}dialog{padding:20px}.dialog-footer{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
