:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",Arial,sans-serif;color:#202c40;background:#f3f4f6;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:#2865ca}h1{font-size:25px;line-height:1.2;margin:7px 0}h2{font-size:17px;margin:0 0 14px}h3{margin:4px 0 10px}.workspace{max-width:1440px;margin:auto;padding:24px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.eyebrow{color:#64738b;font-size:12px;letter-spacing:.06em}.columns{display:grid;grid-template-columns:minmax(330px,.9fr) minmax(480px,1.3fr);gap:20px;align-items:start}.panel{background:white;border:1px solid #e3e8f0;border-radius:14px;padding:20px;box-shadow:0 2px 4px #1f293704}.composer{position:sticky;top:20px}label{display:block;margin-bottom:8px;font-weight:550}input[type=text],input[type=password],input[type=search],input[type=url],input:not([type]),textarea,select{border:1px solid #d8e0eb;border-radius:9px;padding:10px;background:white;max-width:100%}textarea{width:100%;min-height:140px;resize:vertical;line-height:1.6}input:focus,select:focus,textarea:focus{outline:2px solid #a6c6ff;outline-offset:1px}.btn{border:1px solid #dce4ef;border-radius:9px;background:white;color:#27364c;padding:9px 13px;white-space:nowrap}.btn:hover{background:#f2f6fc}.btn.primary{background:#2b6de8;color:white;border-color:#2b6de8}.btn.gray{background:#f0f3f8}.btn.small{font-size:12px;padding:6px 8px}.btn.tiny{padding:3px 6px;font-size:12px}.btn.danger{color:#b23939}.btn.full{width:100%;margin-top:16px}.hint,.muted{color:#768399;font-size:12px;line-height:1.7}.hint{margin:8px 0 12px}#pastezone{margin:16px 0;border:1.5px dashed #b4c6e3;background:#f7faff;border-radius:11px;padding:22px;text-align:center}#pastezone b,#pastezone span{display:block}#pastezone span{font-size:12px;color:#78879d;margin:7px 0 13px}.file-label{display:inline-block;font-weight:400;margin:0}.file-label input{display:none}.pictures{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.picture{position:relative;width:104px;border:1px solid #dce4ee;border-radius:10px;padding:6px;background:#fff;cursor:grab}.picture img{width:90px;height:80px;object-fit:cover;border-radius:6px;display:block}.picture .url-thumb{height:80px;display:flex;align-items:center;justify-content:center;font-size:12px;background:#eaf1fc;color:#687b99;border-radius:6px}.picture-footer{display:flex;justify-content:space-between;align-items:center;margin-top:5px;gap:2px}.picture-footer button{font-size:11px;padding:2px 4px;border:0;border-radius:4px;background:#f0f3f9}.picture-footer .remove-image{color:#bf3939}.url-row{display:flex;gap:8px}.url-row input{min-width:0;flex:1}.sendbar{display:flex;gap:10px;justify-content:space-between;align-items:center;border-top:1px solid #edf0f5;padding-top:18px;margin-top:16px}.recent-title{margin-top:28px}.job-item{width:100%;display:flex;justify-content:space-between;padding:11px;border:0;border-top:1px solid #e8edf5;background:white;color:#64748b}.job-item:hover{background:#f7faff}.group-toolbar{margin-bottom:12px}.group-toolbar h2{margin:0}.toolbar,.create-category{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}#search{width:100%}.create-category input{flex:1;min-width:100px}.group-section{padding:0 16px;margin-bottom:12px;overflow:hidden}.group-section summary{display:flex;align-items:center;justify-content:space-between;padding:16px 0;cursor:pointer;list-style:none}.section-title{font-weight:650}.section-title small{font-weight:400;color:#7c8a9e;margin-left:8px}.fold-label{font-size:11px;color:#8a96a9}.section-actions{display:flex;gap:6px;flex-wrap:wrap;padding:0 0 12px}.group-row{display:flex;align-items:center;gap:8px;padding:12px 0;border-top:1px solid #edf1f6}.group-row.dragging,.picture.dragging{opacity:.4}.grip{color:#a0aec0;cursor:grab}.group-check{width:17px;height:17px;flex-shrink:0;accent-color:#2b6de8}.group-name{flex:1;word-break:break-word;min-width:80px;line-height:1.5}.group-controls{display:flex;align-items:center;gap:4px}.group-controls select{padding:5px;font-size:12px;max-width:120px}.empty{color:#8390a4;text-align:center;padding:18px;line-height:1.8}#notice:not(:empty){padding:12px 15px;border-radius:10px;margin-bottom:16px;background:#eaf3ff;color:#355c96}#notice.error,.error{color:#bb3b3b}dialog{border:0;border-radius:16px;padding:24px;width:min(700px,94vw);max-height:88vh;box-shadow:0 24px 70px #14223d40}dialog::backdrop{background:#14223866}.dialog-head,.dialog-actions{display:flex;justify-content:space-between;align-items:center;gap:10px}.dialog-head h2{margin:0}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.7;padding:14px;background:#f6f8fb;border-radius:10px;max-height:240px;overflow:auto}.targets-details{border-top:1px solid #e5ebf3;padding:14px 0;margin-top:15px}.targets-details summary{cursor:pointer}.target-row{display:flex;justify-content:space-between;gap:15px;padding:8px 0;border-bottom:1px solid #edf1f6}.target-state{white-space:nowrap;color:#6a7e99}.dialog-actions{border-top:1px solid #e6edf4;padding-top:16px}.login-body{min-height:100vh;display:flex;justify-content:center;align-items:center;padding:20px}.login-card{background:white;border:1px solid #e1e8f2;border-radius:17px;padding:30px;width:400px;box-shadow:0 12px 36px #2139550c}.login-card h1{margin:10px 0 18px}.login-card p{line-height:1.8}.login-card input[type=password]{width:100%;font-size:16px}#job-status{line-height:1.8}.target-error{display:block;font-size:11px;color:#a04e4e}.login-card form{margin-top:22px}[hidden]{display:none!important}@media(max-width:900px){.columns{grid-template-columns:1fr}.composer{position:static}.workspace{padding:14px}.panel{padding:16px}.group-section{padding:0 14px}.sendbar{flex-wrap:wrap}.group-controls select{max-width:96px}}@media(max-width:480px){.group-controls{flex-wrap:wrap;justify-content:flex-end;max-width:110px}.group-name{min-width:75px}.group-row{gap:6px}.btn{padding:8px 10px}.dialog-actions{flex-wrap:wrap}}

.header-actions{display:flex;align-items:center;gap:8px}.header-actions a{text-decoration:none}.login-card input[type=text]{width:100%;font-size:16px}.field-label{margin-top:15px}.success{color:#247449;line-height:1.8}

/* 群管理视图 */
.workspace-intro{color:#6d7c90;margin:9px 0 0;line-height:1.6}
.group-overview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:20px}
.stat-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:16px 18px;background:#fff;border:1px solid #dfe6ef;border-radius:12px;color:#607088;text-align:left}
.stat-card strong{font-size:26px;color:#253952;line-height:1.1}
.stat-card[aria-pressed=true]{background:#eef4ff;border-color:#81a9ed;box-shadow:0 0 0 1px #81a9ed}
.stat-card[aria-pressed=true] strong{color:#225fbd}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.section-heading h2{margin:0}.step-label{color:#768399;font-size:12px}
.columns{grid-template-columns:minmax(300px,.75fr) minmax(560px,1.5fr)}
.filter-row{display:grid;grid-template-columns:1fr minmax(110px,180px);gap:10px}
.filter-row input,.filter-row select{min-width:0;width:100%}
.batch-toolbar{display:flex;align-items:center;gap:10px;padding:12px;background:#f4f7fc;border-radius:10px;margin-top:14px;flex-wrap:wrap}
.batch-toolbar select{flex:1;min-width:110px}
.create-category{padding-top:4px}.group-toolbar{padding:18px}
.group-row{padding:14px 0;align-items:center}.group-row:hover{background:#f8faff}
.group-title{display:block;font-weight:550;color:#283b55}
.group-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:6px}
.status-badge{font-size:11px;padding:2px 6px;border-radius:5px;white-space:nowrap;font-weight:400;line-height:1.5}
.status-badge.ready{background:#eaf6ed;color:#287343}.status-badge.waiting{background:#fff4df;color:#90601d}.status-badge.quiet{background:#eef0f5;color:#637086}
.group-id{font-size:10px;color:#97a2b1;font-variant-numeric:tabular-nums}
.group-controls{flex-direction:column;align-items:flex-end;gap:7px}.row-order-controls{display:flex;gap:4px}
.group-controls select{width:118px;max-width:140px}.group-footnote{text-align:center;margin:16px 0}
.group-check{cursor:pointer}.sendbar small{display:inline-block;margin-top:6px}.composer #pastezone{padding:18px 12px}
@media(max-width:1050px){.columns{grid-template-columns:1fr}.composer{position:static}.workspace{padding:18px}.group-overview{gap:8px}.stat-card{padding:13px 12px}}
@media(max-width:560px){header{align-items:flex-start;gap:12px;flex-direction:column}.header-actions{width:100%;justify-content:flex-end}.group-overview{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.stat-card{padding:12px 10px;gap:7px;font-size:12px}.stat-card strong{font-size:23px}.filter-row{grid-template-columns:1fr}.group-toolbar{padding:14px}.group-controls{max-width:102px;flex-shrink:0}.group-controls select{max-width:102px;width:102px}.group-title{font-size:13px}.group-row{gap:7px}.group-name{min-width:0}.workspace{padding:12px}.batch-toolbar{gap:8px;padding:10px}}
