:root{color-scheme:dark;font:16px/1.55 system-ui,"PingFang SC","Microsoft YaHei",sans-serif;color:#edf2fa;background:#10151d}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
.page{width:min(1100px,calc(100% - 36px));margin:auto;padding:28px 0 54px}
a{color:#b9d7ff;text-underline-offset:.22em}
a:hover{color:#e4f1ff}
.breadcrumbs{display:flex;gap:24px;font-size:.92rem}
h1{margin:22px 0 6px;font-size:clamp(2rem,5.8vw,3.25rem);letter-spacing:-.045em;line-height:1.16}
h2,h3{margin:0;line-height:1.25}
p{margin:0}
.intro,.status{color:#adb9c9}
.toolbar{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 10px}
.toolbar label{display:grid;gap:5px;flex:1 1 160px}
.toolbar label:first-child{flex:2 1 290px}
input,select,button,textarea{font:inherit;color:inherit}
input,select,button{border:1px solid #3e4e63;background:#192433;border-radius:7px;min-height:43px;padding:8px 11px}
button{cursor:pointer}
button:hover,a.control:hover{background:#24364d}
button:disabled{cursor:wait;opacity:.6}
:focus-visible{outline:2px solid #b1d1ff;outline-offset:3px}
.works{padding:0;list-style:none;margin:14px 0 20px;display:grid;gap:1px;border-block:1px solid #364355;background:#2c3749}
.works li{display:grid;grid-template-columns:minmax(170px,1fr) auto;align-items:center;gap:14px;padding:13px 12px;background:#141e2a}
.works h3{font-size:1.02rem;overflow-wrap:anywhere}
.works .meta{font-size:.84rem;color:#adb9c9;margin-top:4px}
.actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.control,.actions button{display:inline-flex;align-items:center;text-decoration:none;border:1px solid #394c65;background:#192433;border-radius:7px;padding:7px 10px;min-height:39px;font-size:.875rem}
.control.primary,#copy{color:#101e2f;background:#b6d5fc;border-color:#b6d5fc;font-weight:700}
.control.primary:hover,#copy:hover{background:#d3e7fe}
dialog{width:min(780px,calc(100% - 22px));max-height:calc(100dvh - 24px);border:1px solid #415574;border-radius:13px;background:#151e2a;color:inherit;padding:21px}
dialog::backdrop{background:#050a14c9}
.prompt-header,.prompt-footer,.prompt-controls{display:flex;justify-content:space-between;align-items:center;gap:12px}
.prompt-header p{font-size:.84rem;margin-top:3px}
#prompt-links,.prompt-controls,.prompt-footer{margin-top:12px}
.prompt-controls{justify-content:start}
#prompt-text,#work-source-content{width:100%;margin-top:10px;min-height:145px;max-height:42vh;padding:12px;background:#0c141f;border:1px solid #3e4e63;border-radius:7px;resize:vertical}
#work-source-content{font-family:ui-monospace,monospace;font-size:.86rem;line-height:1.5}
#work-source-content{display:block;width:100%;margin-top:10px;min-height:145px;max-height:50vh;padding:12px;background:#0c141f;border:1px solid #3e4e63;border-radius:7px;resize:vertical;font:14px/1.5 ui-monospace,monospace;color:inherit}
#work-source-content[hidden]{display:none}
.prompt-footer{justify-content:start}
@media(max-width:640px){
 .page{width:calc(100% - 24px);padding-top:20px}
 .works li{grid-template-columns:1fr;gap:8px;padding-inline:10px}
 .toolbar{gap:8px}
 dialog{padding:14px}
 .control,.actions button{min-height:43px}
}
