.st-wrap{--c:#4772fa;--c2:#eef2ff;--bg:#f5f6fa;--line:#e6e8ef;--tx:#1f2430;--mt:#8a909e;--red:#e5484d;--org:#f2994a;--grn:#2ea36b;
	font:14px/1.55 -apple-system,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--tx)}
.st-wrap *{box-sizing:border-box}
.st-wrap input[type=text],.st-wrap input[type=password],.st-wrap input[type=date],.st-wrap select,.st-wrap textarea{
	height:36px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--tx);font:inherit;outline:none;width:auto;margin:0}
.st-wrap textarea{height:auto;padding:8px 10px;width:100%;resize:vertical}
.st-wrap input:focus,.st-wrap select:focus,.st-wrap textarea:focus{border-color:var(--c);box-shadow:0 0 0 3px rgba(71,114,250,.15)}
.st-btn{height:36px;padding:0 16px;border:0;border-radius:8px;background:var(--c);color:#fff;font:inherit;cursor:pointer;white-space:nowrap}
.st-btn:hover{filter:brightness(1.08)}
.st-btn:disabled{opacity:.4;cursor:default}
.st-btn.st-ghost{background:#fff;color:var(--tx);border:1px solid var(--line)}
.st-btn.st-ghost:hover{border-color:var(--c);color:var(--c);filter:none}
.st-btn:focus-visible,.st-ops button:focus-visible{outline:2px solid var(--c);outline-offset:2px}

.st-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:12px}
.st-search{display:flex;gap:6px;flex:1;min-width:240px}
.st-search .st-q{flex:1;min-width:0}
.st-sizel{color:var(--mt);display:flex;align-items:center;gap:6px}
.st-add{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:12px}
.st-add .st-title{flex:1;min-width:180px;border:0!important;box-shadow:none!important}

.st-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
@media(max-width:820px){.st-cols{grid-template-columns:1fr}}
.st-col{background:#fff;border:1px solid var(--line);border-radius:12px;padding:6px 6px 10px;min-width:0}
.st-col h3{margin:0;padding:10px 10px 8px;font-size:15px;font-weight:600;display:flex;align-items:center;gap:8px}
.st-col h3 em{font-style:normal;font-weight:400;font-size:12px;color:var(--mt);background:var(--bg);padding:0 8px;border-radius:10px}
.st-list{list-style:none;margin:0;padding:0}
.st-item{display:flex;align-items:flex-start;gap:8px;padding:10px 8px;border-radius:8px;border-left:3px solid transparent;position:relative}
.st-item:hover{background:var(--bg)}
.st-item.p1{border-left-color:#5b9cf6}.st-item.p2{border-left-color:var(--org)}.st-item.p3{border-left-color:var(--red)}
.st-item.dragging{opacity:.4;background:var(--c2)}
.st-grip{cursor:grab;color:#c3c7d2;letter-spacing:-3px;user-select:none;padding-top:1px}
.st-chk{margin-top:4px;width:16px;height:16px;accent-color:var(--c);cursor:pointer;flex:none}
.st-main{flex:1;min-width:0}
.st-t{word-break:break-all}
.st-item.done .st-t{text-decoration:line-through;color:var(--mt)}
.st-c{color:var(--mt);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-meta{display:flex;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--mt)}
.st-meta .od{color:var(--red)}
.st-meta .pr1{color:#3b82f6}.st-meta .pr2{color:var(--org)}.st-meta .pr3{color:var(--red)}
.st-pinmark{display:inline-block;margin-right:6px;padding:0 6px;font-size:11px;font-weight:500;line-height:18px;color:var(--c);background:var(--c2);border-radius:4px}
.st-ops{display:none;gap:2px;flex:none}
.st-item:hover .st-ops,.st-item:focus-within .st-ops{display:flex}
.st-ops button{border:0;background:none;color:var(--mt);font:inherit;font-size:12px;padding:2px 6px;border-radius:4px;cursor:pointer}
.st-ops button:hover{background:#fff;color:var(--c)}
.st-ops button[data-op=del]:hover{color:var(--red)}
@media(hover:none){.st-ops{display:flex}}
.st-empty{padding:28px 10px;text-align:center;color:var(--mt)}
.st-pager{display:flex;gap:10px;justify-content:center;align-items:center;padding-top:8px;color:var(--mt)}
.st-pager .st-btn{height:30px;padding:0 12px}

.st-modal{position:fixed;inset:0;background:rgba(20,24,40,.45);display:flex;align-items:center;justify-content:center;z-index:100000;padding:16px;
	font:14px/1.55 -apple-system,"PingFang SC","Microsoft YaHei",sans-serif}
.st-card{background:#fff;border-radius:14px;padding:20px;width:100%;max-width:460px;color:#1f2430}
.st-card *{box-sizing:border-box}
.st-card h4{margin:0 0 12px;font-size:16px}
.st-card label{display:block;margin-bottom:10px;color:#8a909e;font-size:12px}
.st-card input,.st-card textarea,.st-card select{display:block;width:100%;margin-top:4px;height:36px;padding:0 10px;border:1px solid #e6e8ef;border-radius:8px;font:inherit;color:#1f2430;background:#fff}
.st-card textarea{height:auto;padding:8px 10px}
.st-card .st-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.st-card .st-act{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}
.st-card .st-btn{width:auto;margin:0;height:36px;padding:0 16px;border:0;border-radius:8px;background:#4772fa;color:#fff;cursor:pointer}
.st-card .st-btn.st-ghost{background:#fff;color:#1f2430;border:1px solid #e6e8ef}
.st-toast{position:fixed;left:50%;bottom:40px;transform:translateX(-50%);background:#1f2430;color:#fff;padding:8px 16px;border-radius:8px;z-index:100001;font:14px sans-serif}

/* ---- 前台整页布局 ---- */
body.st-body{margin:0;background:#f5f6fa}
.st-page{display:flex;min-height:100vh}
.st-side{width:230px;flex:none;background:#fff;border-right:1px solid #e6e8ef;padding:20px 12px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}
.st-brand{font-size:20px;font-weight:700;color:#4772fa;padding:0 10px 16px;text-decoration:none}
.st-nav button{display:block;width:100%;text-align:left;border:0;background:none;padding:9px 12px;border-radius:8px;font:inherit;color:#1f2430;cursor:pointer}
.st-nav button:hover{background:#f5f6fa}
.st-nav button.on{background:#eef2ff;color:#4772fa;font-weight:600}
.st-user{margin:0 0 14px;padding:4px 10px 14px;border-bottom:1px solid #e6e8ef;font-size:13px;color:#8a909e}
.st-user b{color:#1f2430;display:block;margin-bottom:6px;word-break:break-all}
.st-user a,.st-user button{color:#8a909e;font-size:12px;background:none;border:0;padding:0;margin-right:12px;cursor:pointer;text-decoration:none}
.st-user a:hover,.st-user button:hover{color:#4772fa}
.st-content{flex:1;min-width:0;padding:24px 32px 48px;max-width:1100px}
.st-content h1{font-size:22px;margin:0 0 16px}
@media(max-width:820px){
	.st-page{display:block}
	.st-side{position:static;width:auto;height:auto;border-right:0;border-bottom:1px solid #e6e8ef;padding:12px}
	.st-nav{display:flex;gap:6px;overflow-x:auto}.st-nav button{width:auto;white-space:nowrap}
	.st-user{margin:0 0 6px;padding:2px 10px 8px}
	.st-content{padding:16px 12px 40px}
}

/* ---- 登录卡片 ---- */
.st-authbox{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px}
.st-auth{width:100%;max-width:380px;background:#fff;border:1px solid #e6e8ef;border-radius:16px;padding:32px 28px}
.st-auth h2{margin:0;font-size:24px;color:#4772fa}
.st-sub{margin:4px 0 20px;color:#8a909e}
.st-tabs{display:flex;gap:4px;background:#f5f6fa;padding:4px;border-radius:10px;margin-bottom:16px}
.st-tabs button{flex:1;border:0;background:none;height:32px;border-radius:8px;font:inherit;cursor:pointer;color:#8a909e}
.st-tabs button.on{background:#fff;color:#1f2430;font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.st-aform input{display:block;width:100%!important;margin-bottom:10px!important;height:40px!important}
.st-err{min-height:20px;color:#e5484d;font-size:13px;margin-bottom:4px}
.st-big{width:100%;height:42px}
.st-or{text-align:center;margin:22px 0 12px;color:#8a909e;font-size:12px;position:relative}
.st-or:before{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px solid #e6e8ef}
.st-or span{position:relative;background:#fff;padding:0 10px}
.st-soc{display:flex;gap:8px}
.st-soc button{flex:1;height:38px;border:1px solid #e6e8ef;border-radius:8px;background:#fafbfc;color:#a9aebb;font:inherit;cursor:not-allowed}
.st-hint{margin:10px 0 0;text-align:center;font-size:12px;color:#a9aebb}

/* ---- 后台 ---- */
.st-admin{margin-top:10px}
.st-sum{display:flex;gap:12px;flex-wrap:wrap;margin:10px 0 16px}
.st-sum div{background:#fff;border:1px solid #e6e8ef;border-radius:10px;padding:10px 18px}
.st-sum b{display:block;font-size:22px;color:#4772fa}
.st-day{margin-bottom:14px;background:#fff;border:1px solid #e6e8ef;border-radius:10px;overflow:hidden}
.st-day h4{margin:0;padding:8px 14px;background:#f5f6fa;font-size:14px}
.st-day h4 small{color:#8a909e;font-weight:400;margin-left:8px}
.st-day ul{list-style:none;margin:0;padding:0}
.st-day li{padding:8px 14px;border-top:1px solid #f0f1f5;display:flex;gap:10px}
.st-day li span.u{margin-left:auto;color:#8a909e;font-size:12px}

.st-add{flex-direction:column;gap:8px}
.st-add .st-title{flex:none;width:100%;min-width:0;height:38px;border:1px solid var(--line)!important;font-weight:500}
.st-add .st-content{width:100%;min-height:60px}
.st-addrow{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.st-addrow label{display:flex;align-items:center;gap:6px;color:var(--mt)}
.st-addrow .st-btn{margin-left:auto}
.st-meta span:first-child{margin-right:0}

/* ---- 右侧详情面板 ---- */
.st-drawer-wrap{position:fixed;inset:0;z-index:100000;font:14px/1.55 -apple-system,"PingFang SC","Microsoft YaHei",sans-serif;color:#1f2430}
.st-drawer-wrap *{box-sizing:border-box}
.st-mask{position:absolute;inset:0;background:rgba(20,24,40,.25);opacity:0;transition:opacity .18s}
.st-drawer{position:absolute;top:0;right:0;bottom:0;width:min(520px,100vw);background:#fff;box-shadow:-8px 0 30px rgba(20,24,40,.12);
	display:flex;flex-direction:column;transform:translateX(100%);transition:transform .18s ease-out;margin:0}
.st-drawer-wrap.open .st-mask{opacity:1}
.st-drawer-wrap.open .st-drawer{transform:none}
.st-dh{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid #e6e8ef;font-weight:600}
.st-dx{border:0;background:none;font-size:24px;line-height:1;color:#8a909e;cursor:pointer;padding:0 4px}
.st-dx:hover{color:#1f2430}
.st-db{flex:1;display:flex;flex-direction:column;padding:16px 20px;min-height:0;gap:10px}
.st-drawer .st-dtitle{height:44px;border:0;border-bottom:1px solid #e6e8ef;border-radius:0;padding:0;font:600 18px/1.4 inherit;color:#1f2430;width:100%;outline:none;background:none}
.st-drawer .st-dcontent{flex:1;width:100%;border:0;resize:none;padding:0;font:inherit;color:#1f2430;outline:none;background:none;min-height:120px}
.st-dopt{display:flex;gap:12px;padding:10px 20px;border-top:1px solid #e6e8ef}
.st-dopt label{display:flex;align-items:center;gap:6px;color:#8a909e}
.st-dopt input,.st-dopt select{height:34px;border:1px solid #e6e8ef;border-radius:8px;padding:0 8px;font:inherit;color:#1f2430;background:#fff}
.st-df{display:flex;align-items:center;gap:8px;padding:12px 20px;border-top:1px solid #e6e8ef}
.st-dt{margin-right:auto;font-size:12px;color:#8a909e}
.st-drawer .st-btn{height:36px;padding:0 16px;border:0;border-radius:8px;background:#4772fa;color:#fff;font:inherit;cursor:pointer}
.st-drawer .st-btn.st-ghost{background:#fff;color:#1f2430;border:1px solid #e6e8ef}
@media(prefers-reduced-motion:reduce){.st-mask,.st-drawer{transition:none}}

.st-item{cursor:pointer}
.st-item .st-chk,.st-item .st-ops button{cursor:pointer}
.st-grip{cursor:grab}

/* ---- 自动保存状态 ---- */
.st-df{flex-direction:column;align-items:stretch;gap:10px}
.st-dbtns{display:flex;gap:8px}
.st-dstat{display:flex;align-items:center;justify-content:space-between;gap:12px}
.st-dt{margin-right:0}
.st-status{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:#8a909e}
.st-ic{position:relative;width:18px;height:18px;border-radius:50%;flex:none;display:inline-block}
.st-status.idle .st-ic{border:2px solid #d5d8e0}
.st-status.ing{color:#4772fa}
.st-status.ing .st-ic{border:2px solid #dfe5fd;border-top-color:#4772fa;animation:st-spin .8s linear infinite}
.st-status.ok{color:#2ea36b}
.st-status.ok .st-ic{background:#2ea36b}
.st-status.ok .st-ic:after{content:"";position:absolute;left:6px;top:2.5px;width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.st-status.err{color:#e5484d}
.st-status.err .st-ic{background:#e5484d}
.st-status.err .st-ic:after{content:"!";position:absolute;inset:0;color:#fff;font:700 12px/18px sans-serif;text-align:center}
@keyframes st-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.st-status.ing .st-ic{animation-duration:2.4s}}
