:root{color-scheme:light;--navy:#083b57;--blue:#0b4f6c;--teal:#18a6a1;--ink:#152733;--muted:#637784;--line:#dce6eb;--bg:#f2f7f9;--danger:#b42318}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 70% 15%,#1aa6a140,transparent 32%),linear-gradient(145deg,#062d44,#0b4f6c 65%,#0c6b78)}.login-card{width:min(420px,100%);background:#fff;padding:38px;border-radius:24px;box-shadow:0 28px 80px #001a2c66}.brand-mark{width:64px;height:64px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(145deg,var(--teal),#0f7c93);color:#fff;font-size:30px;font-weight:800;box-shadow:0 12px 24px #0f7c9344}.brand-mark.small{width:42px;height:42px;border-radius:12px;font-size:20px}.eyebrow{margin:16px 0 4px;color:var(--teal);font-size:12px;font-weight:800;letter-spacing:.14em}.login-card h1{margin:0 0 8px}.muted,.hint{color:var(--muted)}label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700;color:#415864}.login-card label{margin-top:18px}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px 12px;background:#fff;color:var(--ink);outline:0}input:focus,select:focus,textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px #18a6a119}.primary,.ghost,.upload-button,.company-button,.icon-button{border:0;border-radius:10px;padding:10px 16px;font-weight:700}.primary{background:var(--blue);color:#fff}.primary:hover{background:#073e58}.wide{width:100%;margin-top:22px}.ghost{background:#e8f0f3;color:var(--blue)}.error{min-height:20px;color:var(--danger);font-size:13px}.topbar{height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:12px}.brand div{display:flex;flex-direction:column}.brand small{color:var(--muted);margin-top:3px}.top-actions{display:flex;gap:8px}.workspace{display:grid;grid-template-columns:310px minmax(0,1fr);min-height:calc(100vh - 70px)}.sidebar{background:#fff;border-right:1px solid var(--line);padding:24px 18px}.sidebar-title{display:flex;align-items:center;justify-content:space-between;padding:0 8px 14px}.sidebar-title .eyebrow{margin:0}.sidebar-title h2{margin:3px 0}.icon-button{width:40px;height:40px;padding:0;background:var(--teal);color:#fff;font-size:25px}.card-list{display:flex;flex-direction:column;gap:8px}.card-item{width:100%;text-align:left;border:1px solid transparent;background:transparent;border-radius:13px;padding:13px;display:flex;align-items:center;gap:12px}.card-item:hover,.card-item.active{background:#edf6f7;border-color:#cfe4e7}.card-item img{width:48px;height:60px;border-radius:9px;object-fit:cover;background:#dfe9ed}.card-item span{display:flex;flex-direction:column;min-width:0}.card-item strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-item small{color:var(--muted);margin-top:4px}.status{margin-left:auto!important;padding:3px 7px;border-radius:999px;background:#eaf5ee;color:#24744a;font-size:11px!important}.status.draft{background:#fff5df;color:#9a6500}.status.disabled{background:#f2f2f2;color:#777}.company-button{width:100%;margin-top:16px;background:#f2f6f8;color:var(--blue);text-align:left}.content{padding:34px;max-width:1180px;width:100%;margin:auto}.empty-state{text-align:center;color:var(--muted);padding:18vh 20px}.empty-state span{font-size:44px;color:var(--teal)}.editor-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:24px}.editor-head .eyebrow{margin:0}.editor-head h1{margin:4px 0 0}.actions{display:flex;gap:10px}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;margin-bottom:18px;box-shadow:0 8px 25px #10304409}.panel h3{margin:0 0 18px}.grid.two{display:grid;grid-template-columns:280px 1fr;gap:18px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.photo-panel{text-align:center}.photo-preview{height:280px;border-radius:15px;background:#e9f0f3;overflow:hidden;display:grid;place-items:center;margin-bottom:14px}.photo-preview img{width:100%;height:100%;object-fit:cover;display:none}.photo-preview span{color:var(--muted)}.upload-button{display:block;background:#e6f5f4;color:#087b78}.hint{font-size:12px}.switch-row,.visibility{flex-direction:row;align-items:center;margin-top:16px}.switch-row input,.visibility input{width:auto}.contact-grid{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:13px 18px;align-items:end}.advanced summary{font-weight:800;cursor:pointer}.advanced .form-grid{margin-top:18px}.company-contacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.toast{position:fixed;right:24px;top:88px;background:#173c4d;color:#fff;padding:13px 18px;border-radius:10px;z-index:20;box-shadow:0 12px 30px #0003}.toast.error-toast{background:var(--danger)}dialog{border:0;border-radius:18px;padding:26px;box-shadow:0 30px 80px #001a2c66;max-width:min(90vw,760px)}dialog::backdrop{background:#001a2c99}.dialog-close{position:absolute;right:16px;top:12px;border:0;background:transparent;font-size:28px;color:var(--muted)}#shareCanvas{display:block;width:min(100%,650px);height:auto;border-radius:12px}#passwordDialog form{width:min(360px,80vw);display:flex;flex-direction:column;gap:16px}textarea{resize:vertical}@media(max-width:820px){.workspace{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--line)}.grid.two,.form-grid{grid-template-columns:1fr}.content{padding:20px}.topbar{padding:0 16px}.contact-grid{grid-template-columns:1fr 100px}.editor-head{align-items:flex-start;gap:15px}.actions{flex-direction:column}.company-contacts{grid-template-columns:1fr}}
