:root{--ink:#332c27;--muted:#82776e;--paper:#fbfaf7;--line:#e9e3da;--accent:#985e40;--accent-light:#f6e9db;--green:#52735c;--red:#b04436;font-family:Inter,"PingFang SC","Microsoft Yahei",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;transition:background .15s,transform .15s}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ddbc9c;outline-offset:3px}[hidden]{display:none!important}h1,h2,p{margin-top:0}h1{font-size:32px;letter-spacing:-1px;line-height:1.3;font-weight:650;margin-bottom:10px}h2{font-size:23px;font-weight:600}small{font-size:12px}label{display:flex;flex-direction:column;gap:9px;font-size:13px;color:#5c524b;margin-bottom:20px}input,select{background:white;color:var(--ink);padding:12px 14px;border:1px solid var(--line);border-radius:9px;min-width:0;width:100%;height:44px}input[type=checkbox]{width:17px;height:17px;accent-color:var(--accent)}.primary,.secondary,.danger{border-radius:9px;padding:11px 18px;min-height:42px;border:1px solid transparent;font-weight:550}.primary{background:var(--accent);color:white}.primary:hover{background:#7e4c33}.secondary{background:white;color:var(--ink);border-color:var(--line)}.secondary:hover{background:#f1ece5}.danger{background:#fff0ed;color:var(--red);border-color:#edd0c9}.text-button{border:0;background:transparent;color:var(--accent);padding:8px}.muted{color:var(--muted);line-height:1.7}.eyebrow{color:var(--accent);font-size:10px;font-weight:700;letter-spacing:2px;margin-bottom:18px}.brand{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:650;white-space:nowrap}.mark{display:inline-grid;place-items:center;border-radius:12px;width:37px;height:37px;background:var(--ink);color:#fff6e6;font-size:21px;font-family:serif}.brand-sub{font-size:11px;color:var(--muted);font-weight:400;border-left:1px solid #d7cabe;padding-left:10px}.login-screen{display:grid;grid-template-columns:1.1fr 1fr;min-height:100vh}.login-story{background:#eee4d6;padding:55px 10%;display:flex;flex-direction:column;align-items:flex-start;position:relative;overflow:hidden}.login-story .eyebrow{margin-top:110px}.login-story h1{font-size:clamp(32px,3.6vw,52px);font-family:"Noto Serif CJK SC","Songti SC",serif;font-weight:500;line-height:1.55}.login-story>p:not(.eyebrow){line-height:1.9;color:#796b60}.login-story small{margin-top:auto;padding-top:90px;color:#8c7e70}.story-lines{display:flex;align-items:center;gap:16px;margin-top:30px;font-size:12px;color:#8b7662}.story-lines span{border:1px solid #ccb9a6;border-radius:100%;width:62px;height:62px;display:grid;place-items:center}.story-lines i{width:40px;height:1px;background:#ccb9a6}.login-card{align-self:center;justify-self:center;width:340px;max-width:calc(100% - 48px);padding:60px 0}.login-card .primary{width:100%;display:flex;justify-content:space-between;margin:12px 0 20px}.login-card .muted{margin-bottom:32px}.error{color:var(--red);min-height:20px;font-size:13px}.workspace{display:grid;grid-template-columns:222px 1fr;min-height:100vh}.sidebar{background:#f1ece4;border-right:1px solid var(--line);padding:31px 20px;display:flex;flex-direction:column;position:fixed;width:222px;height:100vh}.sidebar .brand{font-size:19px;gap:8px}.sidebar .brand-sub{font-size:10px;padding-left:7px}.workspace-label{font-size:10px;color:#9a8f83;letter-spacing:2px;margin:54px 13px 16px}.sidebar nav{display:flex;flex-direction:column;gap:8px}.sidebar nav button{padding:14px 15px;border:0;background:transparent;color:#7a7066;text-align:left;border-radius:9px;display:flex;gap:13px;align-items:center}.sidebar nav button span{font-size:18px;width:18px;text-align:center}.sidebar nav button.selected{background:#e5d6c6;color:#68442f;font-weight:600}.sidebar nav button:hover{background:#e9dfd3}.sidebar-foot{margin-top:auto;color:#897b6e;font-size:10px;padding:20px 10px 0;line-height:2}.sidebar-foot small{display:block;color:#a5998e;font-size:10px}.dot{display:inline-block;height:6px;width:6px;border-radius:50%;background:var(--green);margin-right:4px}main{grid-column:2;min-width:0}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px;color:#94877c;font-size:11px}.topbar>div{display:flex;gap:20px;align-items:center}.main-content{max-width:1440px;margin:auto;padding:40px 42px 70px}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:29px}.page-heading .eyebrow{margin-bottom:12px}.page-heading p.muted{margin-bottom:0;font-size:12px}.page-heading .secondary{font-size:12px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:0 0 32px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:21px}.stat-label{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;align-items:center}.stat-value{font-size:32px;line-height:1.2;margin:14px 0 7px;font-weight:550;letter-spacing:-.7px}.stat-note{font-size:10px;color:#a4978a}.stat.emphasis{background:#f6ece0;border-color:#e6d3bd}.panel{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:22px 24px;border-bottom:1px solid var(--line)}.panel-header h2{font-size:16px;margin:0}.panel-header p{font-size:11px;color:var(--muted);margin:6px 0 0}.actions{display:flex;align-items:center;gap:10px}.actions input{width:210px;font-size:12px}.actions select{width:145px;font-size:12px}.actions button{font-size:12px;white-space:nowrap}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;text-align:left;font-size:12px}th{font-size:10px;letter-spacing:.4px;color:#9a8f84;font-weight:500;background:#fdfcf9;padding:14px 24px;border-bottom:1px solid var(--line)}td{padding:20px 24px;border-bottom:1px solid #f1ece6;color:#695f56}tr:last-child td{border-bottom:0}.user-cell{display:flex;gap:12px;align-items:center}.avatar{width:36px;height:36px;display:grid;place-items:center;background:#f0e6da;border-radius:11px;color:#966e4f;font-size:14px;flex-shrink:0}.user-name{font-weight:550;color:var(--ink);font-size:13px;max-width:200px;text-overflow:ellipsis;overflow:hidden}.subtext{font-size:10px;color:#a59b90;margin-top:5px;font-family:ui-monospace,monospace}.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:5px;background:#eef3ed;color:var(--green);font-size:10px}.badge.warning{background:#f8ecd9;color:#a37632}.badge.off{background:#f3efeb;color:#8a7d70}.badge.error{background:#fcece7;color:var(--red)}.badge::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.row-actions{display:flex;gap:4px}.row-actions button{font-size:11px;white-space:nowrap}.pagination{padding:15px 24px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;color:#9b8e80;font-size:11px}.pagination button{padding:7px 12px;min-height:32px;font-size:11px}.panel-note{color:#9b8d7f;font-size:11px;line-height:1.8;margin:17px 4px}.empty{padding:55px 25px;text-align:center;color:var(--muted);line-height:1.8}.config-form{padding:26px;max-width:800px}.config-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.field-help{font-size:11px;color:#9d9186;margin-top:0;line-height:1.8}.tools-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:15px 0 24px}.tool-option{display:flex;flex-direction:row;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;font-size:12px;margin:0}.tool-option input{margin:0}.form-footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:20px;margin-top:10px}.error-banner{background:#fff0eb;border:1px solid #ecd0c6;border-radius:8px;padding:12px 16px;color:var(--red);margin-bottom:24px}.notice{background:#f6f2ea;border-radius:8px;padding:14px;color:#8c7760;font-size:12px;line-height:1.8;margin-bottom:22px}dialog{border:1px solid var(--line);border-radius:14px;padding:27px;width:510px;max-width:calc(100vw - 28px);max-height:90vh;color:var(--ink);box-shadow:0 25px 100px #332c2722}dialog::backdrop{background:#302b2544;backdrop-filter:blur(3px)}.modal-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.modal-heading h2{font-size:21px;margin:0}.icon-button{border:0;background:transparent;color:var(--muted);font-size:27px;padding:0 6px}.secret{display:block;white-space:pre-wrap;overflow-wrap:anywhere;background:#f8f3ea;padding:18px;border:1px solid #dfc9aa;border-radius:8px;font-size:13px;color:#795231;margin:20px 0}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);border-radius:9px;background:#43382e;color:white;padding:13px 24px;box-shadow:0 8px 28px #332c271c;z-index:30;max-width:85vw;font-size:13px}.status-strip{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;margin-top:13px}.skeleton{padding:50px;text-align:center;color:#a49788}
@media(min-width:1500px){.main-content{padding-top:55px}.stats{gap:22px}.stat{padding:25px}.sidebar{width:242px}.workspace{grid-template-columns:242px 1fr}}
@media(max-width:1000px){.main-content{padding:30px 24px}.topbar{padding:0 24px}.workspace{grid-template-columns:190px 1fr}.sidebar{width:190px;padding:28px 14px}.brand-sub{display:none}.stats{gap:10px}.stat{padding:16px}.stat-value{font-size:28px}.panel-header{padding:20px}th,td{padding:16px 20px}.actions input{width:165px}}
@media(max-width:700px){.login-screen{display:block}.login-story{padding:25px}.login-story .eyebrow{margin-top:35px}.login-story h1{font-size:29px;line-height:1.4}.login-story p:not(.eyebrow),.login-story small,.story-lines{display:none}.login-card{width:auto;margin:0 25px;padding:36px 0;max-width:none}.workspace{display:block}.sidebar{width:100%;height:auto;position:sticky;top:0;z-index:5;padding:15px 18px 0;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand{font-size:19px}.sidebar .mark{width:30px;height:30px;border-radius:9px;font-size:18px}.workspace-label,.sidebar-foot{display:none}.sidebar nav{flex-direction:row;gap:0;margin-top:15px;justify-content:space-between}.sidebar nav button{font-size:12px;padding:12px 9px;border-radius:7px 7px 0 0;gap:5px}.sidebar nav button span{display:none}.topbar{height:46px;padding:0 20px;font-size:10px}.topbar>div{gap:10px}.main-content{padding:25px 18px}.page-heading{align-items:flex-start;margin-bottom:22px;gap:12px}.page-heading h1{font-size:26px}.page-heading .eyebrow{font-size:9px}.page-heading .secondary{padding:7px 12px;min-height:35px}.stats{grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:22px}.stat{padding:16px}.stat-value{font-size:27px;margin-top:10px}.panel-header{padding:18px;align-items:flex-start}.actions{width:100%;flex-wrap:wrap}.actions input{flex:1;min-width:120px}.actions select{width:130px}.pagination{padding:14px 18px}.tools-grid{grid-template-columns:1fr}.config-grid{grid-template-columns:1fr;gap:0}.config-form{padding:19px}.panel-note{font-size:10px}dialog{padding:22px}}
