:root{--ink:#19202d;--muted:#64748b;--navy:#020617;--accent:#0e8296;--line:#d1d8e0;--bg:#f8fafc;--danger:#dc2626;--shadow:0 20px 50px rgb(15 23 42 / .18);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);font-size:14px;line-height:1.5}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit;letter-spacing:0}
button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;border:1px solid var(--line);background:#fff;border-radius:6px;padding:7px 14px;color:var(--ink);cursor:pointer;font-weight:500;white-space:nowrap;transition:background .15s,color .15s}button:hover{background:#f1f5f9}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,.file-picker:focus-within{outline:2px solid var(--accent);outline-offset:3px}button.primary{background:var(--accent);color:white;border-color:var(--accent)}button.primary:hover{background:#0e7490}button.danger{color:var(--danger)}button.danger:hover{background:#fef2f2}button.small{min-height:32px;padding:5px 10px;font-size:12px}button.text-button{min-height:32px;background:none;border:0;color:var(--accent);padding:6px 0}.wide{width:100%}
.icon{width:16px;height:16px;flex:none;vertical-align:middle;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}[data-icon]{display:inline-flex;align-items:center;justify-content:center}.icon-button{border:0;background:none;width:32px;height:32px;min-height:32px;padding:6px;color:var(--muted);font-size:22px}
input,select{width:100%;min-width:0;min-height:36px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);padding:7px 11px;outline:none}input:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 2px rgb(14 130 150 / .12)}input::placeholder{color:#94a3b8}input:disabled,select:disabled{background:#f1f5f9;color:#64748b}label{display:block;font-size:13px;line-height:1.6;color:#334155}label input,label select{margin-top:6px}label.check-label{display:flex;align-items:center;gap:9px;margin:16px 0}.check-label input{width:16px;height:16px;min-height:0;margin:0;accent-color:var(--accent)}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin-top:0}h2{font-size:18px;font-weight:600;margin-bottom:8px}h3{font-size:14px;font-weight:600;margin-bottom:12px}.muted{color:var(--muted);line-height:1.7}.fine{color:var(--muted);font-size:12px;line-height:1.7}.eyebrow{display:none}.error{color:var(--danger);font-size:13px;line-height:1.7;margin:12px 0}.error:empty{display:none}

/* Shared visual language with YWLBot: slate shell, cyan controls, compact tables. */
.auth-screen{min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:24px 16px;background:var(--navy)}.auth-form{width:100%;max-width:384px;padding:28px;border:1px solid #334155;border-radius:6px;background:white;box-shadow:0 25px 50px rgb(0 0 0 / .25)}.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:24px}.auth-brand h1{font-size:16px;font-weight:600;margin:0}.auth-brand p{font-size:12px;color:var(--muted);margin:0}.brand-mark{display:inline-grid;place-items:center;width:40px;height:40px;background:#0e7490;color:#fff;border-radius:4px}.brand-mark .icon{width:20px;height:20px}.auth-form h2{font-size:18px;margin-bottom:4px}.auth-form>.muted{font-size:12px;margin-bottom:22px}.auth-form>label{margin-bottom:16px}.auth-form input{height:40px}.auth-form .wide{height:40px;margin-top:4px}.auth-hint{border-top:1px solid #e2e8f0;padding-top:16px;margin:20px 0 0}
.workspace{min-height:100vh;min-height:100dvh}.sidebar{width:240px;background:var(--navy);color:#fff;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;z-index:40;border-right:1px solid #e2e8f0}.sidebar-brand{height:64px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid #ffffff1a}.brand{color:#fff;display:flex;flex-direction:column;text-decoration:none}.brand:hover{text-decoration:none}.brand strong{font-size:16px;font-weight:600}.brand span{font-size:12px;color:#94a3b8}.sidebar nav{display:grid;gap:4px;padding:12px;overflow:auto}.nav-item{height:40px;justify-content:flex-start;gap:12px;background:none;color:#cbd5e1;border:0;text-align:left;border-radius:4px;padding:0 12px;font-size:14px}.nav-item:hover{background:#ffffff1a;color:#fff}.nav-item.active,.nav-item.active:hover{background:#0891b2;color:#fff}.user-box{margin-top:auto;padding:16px;border-top:1px solid #ffffff1a}.user-box strong{font-size:14px;font-weight:500;display:block;overflow-wrap:anywhere}.user-box small{font-size:12px;color:#94a3b8;display:block}.logout-button{min-height:24px;margin-top:12px;background:none;border:0;border-radius:4px;padding:0;color:#cbd5e1;font-size:12px}.logout-button:hover{background:none;color:#fff}
.main{margin-left:240px;min-width:0;min-height:100vh;display:flex;flex-direction:column}.topbar{height:64px;flex-shrink:0;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 28px}.topbar-left,.topbar-right{display:flex;align-items:center;gap:12px;min-width:0}.platform-title{font-size:14px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scope-chip{color:var(--muted);font-size:12px;white-space:nowrap}.mobile-page-title{display:none}.content{padding:28px;flex:1;min-width:0}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.page-heading h1{font-size:20px;line-height:28px;margin:0 0 4px;font-weight:600}.page-heading p{font-size:14px;margin:0;color:var(--muted)}
.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.summary-card{background:#fff;border:1px solid var(--line);border-radius:6px;padding:16px 20px;box-shadow:0 1px 2px rgb(15 23 42 / .03)}.summary-card>span{color:var(--muted);font-size:12px}.summary-card strong{display:block;font-size:28px;font-weight:600;margin:8px 0 2px;line-height:1.3}.summary-card small{font-size:12px;font-weight:400;color:var(--muted)}.summary-card.accent strong{color:var(--accent)}.panel{background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;border-bottom:1px solid var(--line)}.panel-head h3{margin:0;font-size:14px}.panel-head .muted{font-size:12px}
.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px;white-space:nowrap}th{text-align:left;height:42px;font-size:12px;font-weight:500;color:var(--muted);background:#f8fafc;padding:0 14px;border-bottom:1px solid var(--line)}td{padding:11px 14px;border-bottom:1px solid #eef1f4;vertical-align:middle;color:#334155}tbody tr:hover{background:#fafcfd}tr:last-child td{border-bottom:0}td strong{color:var(--ink);font-weight:500}td .subline{display:block;color:var(--muted);font-size:12px;margin-top:2px}td.actions{white-space:nowrap}.row-actions{display:flex;align-items:center;gap:4px}.action-icon{width:32px;min-height:32px;height:32px;border:0;background:transparent;padding:8px;color:var(--accent)}.action-icon:hover{background:#ecfeff}.action-icon.danger:hover{background:#fef2f2}.row-actions .small{margin-right:4px}.badge{display:inline-flex;align-items:center;font-size:12px;line-height:18px;padding:1px 6px;border:1px solid #e2e8f0;border-radius:4px;color:#64748b;background:#f8fafc}.badge.green{color:#059669;background:#ecfdf5;border-color:#a7f3d0}.badge.amber{color:#b45309;background:#fffbeb;border-color:#fde68a}.badge.red{color:#dc2626;background:#fef2f2;border-color:#fecaca}
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:52px 24px;color:var(--muted)}.empty-symbol{display:grid;place-items:center;width:48px;height:48px;border:1px solid #e2e8f0;background:#f8fafc;border-radius:6px;color:#94a3b8;margin-bottom:16px}.empty-symbol .icon{width:24px;height:24px}.empty h3{font-size:14px;color:#475569;margin-bottom:6px}.empty p{font-size:13px;line-height:1.8;max-width:420px;margin-bottom:16px}.empty button{margin-top:0}.workflow-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border:1px solid #e2e8f0;background:#fff;border-radius:6px;margin-top:20px;color:var(--muted);font-size:12px}.workflow-strip b{font-size:12px;color:var(--accent);margin-right:8px;font-weight:500}.workflow-strip i{font-style:normal;color:#94a3b8}.page-footer{margin:0 28px;padding:16px 0;font-size:12px;color:#94a3b8;display:flex;justify-content:space-between;gap:12px}.filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.filters select{width:220px}.filters input{width:170px}.notice{background:#f0f9ff;border:1px solid #bae6fd;border-radius:6px;padding:12px 16px;color:#0e7490;font-size:13px;line-height:1.7;margin:16px 0}.notice:first-child{margin-top:0}.pagination{padding:12px 14px;display:flex;justify-content:flex-end;align-items:center;gap:12px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
dialog{border:1px solid var(--line);border-radius:6px;box-shadow:var(--shadow);color:var(--ink);max-height:92vh;max-height:92dvh;overflow:auto}dialog::backdrop{background:rgb(2 6 23 / .5)}.dialog{padding:24px;width:min(480px,94vw)}.dialog.compact{width:min(400px,94vw)}.dialog.large{width:min(880px,95vw)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.dialog-heading h2{font-size:18px;margin:0}.dialog label{margin-top:16px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px;padding-top:16px;border-top:1px solid #e2e8f0}.captcha-box{background:#f8fafc;border:1px solid var(--line);border-radius:6px;min-height:120px;display:grid;place-items:center;margin:16px 0 4px}.captcha-box img{max-width:100%;max-height:150px;image-rendering:auto}.captcha-box span{color:var(--muted);font-size:13px}#captcha-code{text-align:center;font-size:20px;letter-spacing:4px}
.editor-dialog{padding:0;width:min(1100px,96vw);height:90vh;height:90dvh;overflow:hidden}.editor-dialog[open]{display:flex;flex-direction:column}.editor-top{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid var(--line);flex-shrink:0}.editor-top h2{font-size:18px;margin:0}.editor-meta{padding:10px 24px;background:#f8fafc;color:var(--muted);font-size:12px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}.tabs{display:flex;gap:24px;padding:0 24px;border-bottom:1px solid var(--line);flex-shrink:0}.tabs button{border:0;border-radius:0;min-height:44px;padding:12px 0;color:var(--muted);background:none;font-size:13px;border-bottom:2px solid transparent}.tabs button.active{color:var(--accent);border-bottom-color:var(--accent)}.editor-body{padding:24px;overflow:auto;flex:1;min-height:0}.editor-footer{border-top:1px solid var(--line);padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;background:#fff;font-size:12px}.editor-footer>div{display:flex;gap:8px}.form-section{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid #e2e8f0}.form-section:last-child{margin-bottom:0;border-bottom:0}.form-section h3{font-size:14px;display:flex;gap:8px;align-items:center}.section-number{font-size:11px;width:22px;height:22px;display:grid;place-items:center;background:#ecfeff;color:var(--accent);border-radius:4px}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.form-grid input,.form-grid select{font-size:13px}.required{color:var(--danger);margin-left:4px;font-size:12px}
.material-list{display:grid;gap:12px}.material-card{padding:16px;border:1px solid var(--line);border-radius:6px;display:flex;justify-content:space-between;gap:20px;align-items:center}.material-card h3{font-size:14px;margin:0 0 6px;font-weight:500}.material-card p{font-size:12px;margin:6px 0;color:var(--muted);overflow-wrap:anywhere}.material-controls{display:flex;gap:12px;align-items:center;flex-shrink:0;font-size:12px}.file-picker{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:6px;padding:6px 12px;cursor:pointer;font-size:12px;background:#fff}.file-picker input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.file-picker:has(input:disabled){opacity:.45;cursor:not-allowed}.task-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.task-card{border:1px solid var(--line);border-radius:6px;padding:20px;display:flex;flex-direction:column;align-items:flex-start}.task-card h3{font-size:14px;margin:12px 0 8px}.task-card p{font-size:13px;color:var(--muted);line-height:1.8;flex:1}.task-card .number{font-size:24px;color:#94a3b8}.task-card button{font-size:12px;margin-top:8px}.task-history{margin-top:24px}.task-log{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.task-log p{margin:4px 0 0;color:var(--muted);line-height:1.7;white-space:normal}.reconcile{margin-top:20px;display:flex;gap:8px}.summary-line{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #e2e8f0;font-size:13px;gap:16px}.summary-line span{color:var(--muted)}.summary-line strong{overflow-wrap:anywhere;min-width:0;text-align:right}
pre{white-space:pre-wrap;word-break:break-word;background:#f8fafc;padding:16px;border:1px solid #e2e8f0;border-radius:6px;font-size:12px;line-height:1.8;max-height:65vh;overflow:auto}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:1000;background:#0f172a;color:#fff;padding:12px 20px;border-radius:6px;box-shadow:var(--shadow);max-width:min(600px,90vw);font-size:13px;line-height:1.7}.toast.error-toast{background:#991b1b}.mobile-only,.nav-backdrop{display:none}[hidden]{display:none!important}
@media(max-width:1199px){.summary-card{padding:16px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1023px){.sidebar{transform:translateX(-100%);transition:transform .18s}.sidebar.open{transform:translateX(0)}.sidebar .icon-button{color:#cbd5e1}.main{margin-left:0}.mobile-only{display:inline-flex}.nav-backdrop{display:block;position:fixed;inset:0;border:0;border-radius:0;background:rgb(2 6 23 / .45);z-index:35}.nav-backdrop:hover{background:rgb(2 6 23 / .45)}body.menu-open{overflow:hidden}.topbar{padding:0 16px}.content{padding:20px 16px}.page-footer{margin:0 16px}}
@media(max-width:639px){.topbar{height:58px;position:sticky;top:0;z-index:20;gap:8px}.platform-title{display:none}.mobile-page-title{display:block;font-size:14px;font-weight:500}.scope-chip{display:none}.topbar-right{gap:8px}.content{padding:18px 14px}.page-heading{align-items:flex-start;gap:12px;margin-bottom:16px}.page-heading h1{font-size:18px;line-height:26px}.page-heading p{font-size:12px;line-height:1.6}.page-heading button{font-size:12px;min-height:36px;padding:7px 10px}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}.summary-card{padding:14px}.summary-card strong{font-size:26px}.summary-card small{font-size:11px}.panel-head{padding:12px;gap:12px}.workflow-strip{flex-direction:column;align-items:flex-start;padding:14px;gap:10px}.workflow-strip i{display:none}.page-footer{font-size:11px;margin:0 14px}.page-footer>span{display:none}table{font-size:13px}th,td{padding-left:12px;padding-right:12px}.filters{width:100%}.filters select,.filters input{width:100%;flex:1 1 140px}.filters button{flex:1 1 100%;min-height:40px}.form-grid,.task-grid{grid-template-columns:1fr}.dialog{padding:20px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.dialog-heading h2{font-size:17px}.editor-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0;margin:0}.editor-top,.editor-meta,.tabs,.editor-body,.editor-footer{padding-left:16px;padding-right:16px}.editor-meta{gap:8px 16px}.tabs{gap:18px}.tabs button{font-size:12px}.editor-footer{padding-bottom:max(14px,env(safe-area-inset-bottom));flex-wrap:wrap}.editor-footer>div{margin-left:auto}.editor-footer .muted{font-size:11px}.form-grid input,.form-grid select{min-height:40px}.material-card{flex-direction:column;align-items:flex-start;gap:12px}.material-controls{width:100%;justify-content:flex-end}.notice{font-size:12px;padding:12px}.reconcile{flex-wrap:wrap}.reconcile input{flex:1 1 100%}.summary-line{font-size:12px}.auth-form{padding:24px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
