:root{--ink:#15233a;--muted:#66758b;--line:#dfe6f0;--bg:#f4f7fb;--card:#fff;--blue:#2457d6;--blue-dark:#173f9f;--green:#16835f;--red:#c43d4b;--amber:#a86505;--shadow:0 12px 34px rgba(31,55,92,.08);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}a{color:inherit;text-decoration:none}button,input,select{font:inherit}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px;position:sticky;top:0;z-index:20}.brand{display:flex;gap:11px;align-items:center}.brand span:last-child{display:flex;flex-direction:column}.brand small{font-size:11px;color:var(--muted);margin-top:2px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(145deg,#2c66ef,#183ca8);color:#fff;font-weight:800;box-shadow:0 7px 16px rgba(36,87,214,.28)}.brand-mark.large{width:52px;height:52px;border-radius:16px;font-size:22px}.topbar nav{display:flex;align-items:center;gap:22px;font-size:14px}.topbar nav a:hover{color:var(--blue)}.topbar nav form{margin:0}.user{color:var(--muted);padding-left:18px;border-left:1px solid var(--line)}.link-button{border:0;background:none;color:var(--muted);cursor:pointer;padding:0}.page{max-width:1440px;margin:0 auto;padding:34px 32px 80px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}.page-heading h1{margin:3px 0 7px;font-size:30px;letter-spacing:-.6px}.page-heading p{margin:0}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.6px;color:var(--blue);margin:0}.muted{color:var(--muted);line-height:1.65}.button{border:1px solid transparent;border-radius:10px;padding:10px 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:650;font-size:14px;cursor:pointer;transition:.15s ease;background:#fff}.button:hover{transform:translateY(-1px)}.button.primary{background:var(--blue);color:#fff;box-shadow:0 6px 14px rgba(36,87,214,.2)}.button.primary:hover{background:var(--blue-dark)}.button.ghost{border-color:var(--line);color:var(--ink)}.button.text{border:0;color:var(--blue);background:transparent;padding:8px}.button.danger{background:var(--red);color:#fff}.button.full{width:100%}.button:disabled{opacity:.45;cursor:not-allowed;transform:none}.button-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.panel{background:var(--card);border:1px solid rgba(215,224,237,.9);border-radius:16px;padding:22px;box-shadow:var(--shadow)}.panel.compact{padding:14px 16px}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.panel-heading h2,.panel h2{margin:0 0 5px;font-size:18px}.panel-heading p{margin:0;color:var(--muted);font-size:13px}.section-gap{margin-top:24px}.activity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px}.activity-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:var(--shadow)}.activity-card h2{font-size:20px;margin:20px 0}.card-top,.card-actions{display:flex;justify-content:space-between;gap:10px;align-items:center}.card-actions{justify-content:flex-start;margin-top:22px}.pill{display:inline-flex;align-items:center;border-radius:999px;background:#eaf0ff;color:var(--blue-dark);padding:5px 9px;font-size:12px;font-weight:700}.pill.success{background:#e9f8f2;color:var(--green)}.pill.danger{background:#fff0f2;color:var(--red)}.pill.light{background:rgba(255,255,255,.14);color:#fff}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.metrics div{display:flex;flex-direction:column;gap:3px}.metrics strong{font-size:22px}.metrics span{font-size:12px;color:var(--muted)}.empty-state{background:#fff;border:1px dashed #c8d4e5;border-radius:18px;padding:70px 24px;text-align:center}.empty-state.small{padding:40px 20px}.empty-state p{color:var(--muted);margin:8px auto 22px;max-width:520px}.empty-icon{width:46px;height:46px;border-radius:15px;margin:0 auto 15px;display:grid;place-items:center;background:#eaf0ff;color:var(--blue);font-size:24px;font-weight:800}.empty-icon.danger{background:#fff0f2;color:var(--red)}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}.table-wrap.wide{max-height:62vh}table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}th,td{padding:12px 14px;border-bottom:1px solid #edf1f6;text-align:left;white-space:nowrap;vertical-align:middle}th{background:#f6f8fc;color:#536177;font-weight:700;position:sticky;top:0;z-index:2}tbody tr:hover td{background:#fafcff}tbody tr:last-child td{border-bottom:0}.sticky-col{position:sticky;left:0;background:#fff;z-index:3}.actions-col{min-width:118px}.truncate{max-width:340px;overflow:hidden;text-overflow:ellipsis}.status{display:inline-flex;border-radius:999px;padding:4px 8px;background:#eef2f7;color:#566477;font-size:11px;font-weight:800}.status.synced,.status.success{background:#e9f8f2;color:var(--green)}.status.failed{background:#fff0f2;color:var(--red)}.status.unknown,.status.pending,.status.pending_delete,.status.running,.status.queued{background:#fff7e7;color:var(--amber)}.error-text{display:block;color:var(--red);margin-top:5px}.row-actions{display:flex;gap:12px;align-items:center}.row-actions a,.row-actions button{color:var(--blue);font-weight:650;background:none;border:0;padding:0;cursor:pointer}.row-actions button{color:var(--red)}.row-actions form{margin:0}.toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center}.search-form{display:flex;gap:9px;align-items:center;flex:1}.search-form input{max-width:320px}.search-form input,.search-form select,input,select{border:1px solid #ccd6e4;border-radius:9px;background:#fff;padding:10px 12px;color:var(--ink);outline:none}.search-form input:focus,.search-form select:focus,input:focus,select:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(36,87,214,.1)}.breadcrumbs{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:13px;margin-bottom:22px}.breadcrumbs a{color:var(--blue)}.form-panel{max-width:1000px}.stack-form{display:flex;flex-direction:column;gap:18px}.stack-form.narrow{max-width:580px}.stack-form label,.field-grid label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700}.stack-form input,.field-grid input{height:44px}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}.field-grid label b{color:var(--red);margin-left:3px}.field-grid label small{font-size:10px;color:#8591a3;font-weight:500}.full-span{grid-column:1/-1}.form-actions,.sticky-actions{display:flex;justify-content:flex-end;gap:10px;align-items:center;margin-top:10px}.sticky-actions{position:sticky;bottom:18px;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);padding:13px 16px;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);margin-top:22px}.table-input{min-width:180px;width:100%}.option-cell{max-width:360px;white-space:normal;color:var(--muted);line-height:1.55}code{background:#eef2f7;border-radius:6px;padding:4px 6px;font-size:11px}.switch input{position:absolute;opacity:0}.switch span{display:block;width:36px;height:20px;background:#c7d0dc;border-radius:20px;position:relative}.switch span:after{content:"";position:absolute;width:16px;height:16px;background:#fff;border-radius:50%;top:2px;left:2px;transition:.15s}.switch input:checked+span{background:var(--blue)}.switch input:checked+span:after{left:18px}.notice{padding:12px 14px;border-radius:10px;margin-bottom:18px;font-size:13px;line-height:1.6}.notice.success{background:#e9f8f2;color:#126f50}.notice.danger{background:#fff0f2;color:#a72d3a}.notice.warning{background:#fff7e7;color:#8a5707}.notice ul{margin:7px 0 0;padding-left:18px}.confirm-shell{max-width:760px;margin:40px auto}.confirm-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:32px;box-shadow:var(--shadow)}.confirm-card h1{font-size:28px;margin:8px 0}.confirm-icon{width:44px;height:44px;border-radius:14px;background:#fff0f2;color:var(--red);display:grid;place-items:center;font-size:22px;font-weight:800;margin-bottom:18px}.confirm-list{margin:24px 0;border:1px solid var(--line);border-radius:12px;overflow:hidden}.confirm-list div{display:grid;grid-template-columns:180px 1fr;border-bottom:1px solid var(--line)}.confirm-list div:last-child{border-bottom:0}.confirm-list dt,.confirm-list dd{padding:12px 14px;margin:0}.confirm-list dt{background:#f6f8fc;color:var(--muted);font-size:12px}.confirm-list dd{white-space:pre-wrap;word-break:break-word}.confirm-actions{display:flex;flex-direction:column;gap:18px}.confirm-check{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:var(--muted)}.confirm-actions .button-row{justify-content:flex-end}.upload-panel{max-width:760px}.upload-form{display:flex;flex-direction:column;gap:16px}.drop-zone{border:2px dashed #c3cee0;border-radius:14px;padding:44px 20px;text-align:center;display:flex;flex-direction:column;gap:8px;cursor:pointer;background:#f9fbff}.drop-zone:hover{border-color:var(--blue);background:#f3f7ff}.drop-zone input{display:none}.drop-zone small{color:var(--muted)}.upload-icon{font-size:28px;color:var(--blue)}.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.summary-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:5px}.summary-card strong{font-size:27px}.summary-card span{color:var(--muted);font-size:12px}.summary-card.success strong{color:var(--green)}.summary-card.warning strong{color:var(--amber)}.summary-card.danger strong{color:var(--red)}.error-list{color:var(--red);line-height:1.8}.login-body{min-height:100vh;background:#eef3fb;display:grid;place-items:center;padding:24px}.login-shell{width:min(980px,100%);min-height:570px;display:grid;grid-template-columns:1.05fr .95fr;background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 24px 70px rgba(26,53,92,.16)}.login-panel{padding:58px 62px;display:flex;flex-direction:column;justify-content:center}.login-panel h1{font-size:31px;margin:14px 0 7px}.login-panel .stack-form{margin-top:22px}.login-aside{background:linear-gradient(145deg,#2457d6,#122f81);color:#fff;padding:60px 48px;display:flex;flex-direction:column;justify-content:center}.login-aside h2{font-size:30px;line-height:1.35;margin:22px 0}.login-aside ul{list-style:none;padding:0;margin:0;display:grid;gap:15px;color:#dbe6ff}.login-aside li:before{content:"✓";display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.14);margin-right:10px;color:#fff}@media(max-width:800px){.topbar{padding:0 16px}.topbar nav a,.user{display:none}.page{padding:24px 16px 70px}.page-heading{align-items:flex-start;flex-direction:column}.button-row{width:100%}.button-row .button{flex:1}.toolbar,.search-form{align-items:stretch;flex-direction:column}.field-grid{grid-template-columns:1fr}.summary-grid{grid-template-columns:repeat(2,1fr)}.login-shell{grid-template-columns:1fr}.login-panel{padding:42px 28px}.login-aside{display:none}.confirm-card{padding:23px}.confirm-list div{grid-template-columns:1fr}.confirm-list dt{padding-bottom:4px}.confirm-list dd{padding-top:4px}.activity-grid{grid-template-columns:1fr}}
