:root{--bg:#f4f6f9;--surface:#fff;--surface2:#f8fafc;--text:#172033;--muted:#7b8498;--line:#e6eaf0;--accent:#3157d5;--accent2:#eaf0ff;--danger:#c44545;--success:#16805b;--shadow:0 10px 30px rgba(24,33,53,.07);--radius:18px}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none;color:inherit}.app-shell{min-height:100vh;display:grid;grid-template-columns:230px 1fr}.sidebar{background:#111827;color:#dbe2ef;padding:28px 18px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;padding:0 8px 26px}.brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:#fff;color:#111827;font-weight:800}.brand strong{display:block;font-size:16px}.brand small{color:#8f9bb1}.sidebar nav{display:flex;flex-direction:column;gap:6px}.nav-item{display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:12px;color:#aeb8ca;font-size:14px}.nav-item.active{background:#24304a;color:#fff}.nav-item em{font-size:10px;margin-left:auto;color:#69758a;font-style:normal}.sidebar-foot{margin-top:auto;color:#68758c;font-size:11px;padding:10px}.content{padding:32px;min-width:0}.topbar{display:flex;align-items:end;justify-content:space-between;margin-bottom:24px}.eyebrow{margin:0 0 5px;font-size:11px;letter-spacing:.13em;color:#8a94a8;font-weight:800}.topbar h1,.detail-head h2{margin:0;font-size:30px;letter-spacing:-.035em}.workspace{display:grid;grid-template-columns:minmax(290px,360px) minmax(0,1fr);gap:22px;align-items:start}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.list-panel{position:sticky;top:24px;overflow:hidden}.search{margin:14px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--surface2);border-radius:12px;padding:0 12px}.search input{border:0;background:transparent;outline:0;padding:12px 0;width:100%;font-size:14px}.search a{font-size:20px;color:#9aa3b4}.list-meta{padding:0 18px 12px;color:var(--muted);font-size:12px}.customer-list{max-height:calc(100vh - 245px);overflow:auto}.customer-row{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:11px;padding:12px 16px;border-top:1px solid #f0f2f5}.customer-row:hover,.customer-row.selected{background:#f6f8ff}.avatar{width:38px;height:38px;border-radius:12px;background:var(--accent2);color:var(--accent);display:grid;place-items:center;font-weight:800}.customer-summary{min-width:0}.customer-summary strong,.customer-summary span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-summary strong{font-size:13px}.customer-summary span{font-size:11px;color:var(--muted);margin-top:3px}.chevron{color:#aab2c1;font-size:22px}.empty-small{padding:28px;text-align:center;color:var(--muted)}.detail-panel{min-width:0}.detail-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:2px 2px 18px}.actions,.bottom-actions>div{display:flex;gap:9px}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:11px;padding:10px 14px;font-weight:700;font-size:13px;cursor:pointer;background:#fff;color:var(--text)}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 5px 14px rgba(49,87,213,.22)}.btn.ghost{background:#fff}.btn.danger{color:var(--danger);border-color:#efd1d1;background:#fffafa}.form-card{padding:22px;margin-bottom:16px}.section-title{display:flex;gap:12px;align-items:flex-start;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid #eef1f5}.section-title>span{font-size:11px;font-weight:800;color:var(--accent);background:var(--accent2);border-radius:8px;padding:6px 7px}.section-title h3{margin:0;font-size:15px}.section-title p{margin:3px 0 0;color:var(--muted);font-size:11px}.grid{display:grid;gap:15px}.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.span-2{grid-column:span 2}.span-3{grid-column:span 3}.span-4{grid-column:span 4}label>span{display:block;font-size:11px;font-weight:700;color:#667085;margin:0 0 6px 2px}input,select,textarea{width:100%;border:1px solid #dfe4eb;background:#fbfcfe;border-radius:10px;padding:11px 12px;color:var(--text);font:inherit;font-size:13px;outline:0;transition:.16s}input:focus,select:focus,textarea:focus{border-color:#8ea6ee;background:#fff;box-shadow:0 0 0 3px #edf1ff}textarea{resize:vertical;min-height:110px}.geo-line{margin-top:14px;display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px}.geo-line code{margin-left:auto;background:#f5f6f8;border-radius:7px;padding:5px 7px}.status-dot{width:8px;height:8px;border-radius:50%;background:#c4cad4}.status-dot.ok{background:var(--success)}.bottom-actions{display:flex;justify-content:space-between;align-items:center;margin:18px 2px 40px}.alert{padding:13px 16px;border-radius:12px;margin:0 0 18px;font-size:13px}.alert.success{background:#eaf8f3;color:#136e50}.alert.error{background:#fff0f0;color:#9e3434}.empty-state{min-height:520px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px}.empty-icon{width:68px;height:68px;border-radius:22px;background:var(--accent2);color:var(--accent);display:grid;place-items:center;font-size:28px;font-weight:900;margin-bottom:18px}.empty-state h2{margin:0 0 8px}.empty-state p{color:var(--muted);max-width:360px;margin:0 0 22px}@media(max-width:1050px){.app-shell{grid-template-columns:78px 1fr}.brand div,.nav-item:not(.active){font-size:0}.brand{padding-left:0;padding-right:0;justify-content:center}.brand-mark{flex:none}.nav-item{justify-content:center}.nav-item span{font-size:16px}.sidebar-foot{display:none}.workspace{grid-template-columns:300px minmax(0,1fr)}.content{padding:24px}.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}.span-3,.span-4{grid-column:span 2}}@media(max-width:780px){.app-shell{display:block}.sidebar{display:none}.content{padding:18px}.topbar{align-items:center}.workspace{display:block}.list-panel{position:relative;top:auto;margin-bottom:18px}.customer-list{max-height:300px}.detail-head{align-items:flex-start}.detail-head h2{font-size:24px}.actions{flex-wrap:wrap;justify-content:flex-end}.cols-2,.cols-4{grid-template-columns:1fr}.span-2,.span-3,.span-4{grid-column:span 1}.bottom-actions{gap:12px;align-items:stretch}.bottom-actions,.bottom-actions>div{flex-direction:column-reverse}.btn{width:100%}}
