.sg-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:18px;margin:14px 0;box-shadow:0 8px 24px rgba(0,0,0,.05)}.sg-card input,.sg-card textarea,.sg-card select{width:100%;box-sizing:border-box;margin:6px 0 12px;padding:10px;border:1px solid #d1d5db;border-radius:10px}.sg-card button{border:0;border-radius:10px;padding:10px 14px;cursor:pointer}.sg-card button.secondary{background:#eee}.sg-msg{margin:8px 0;font-weight:600}.sg-msg.ok{color:#15803d}.sg-request{border-top:1px solid #eee;padding:12px 0}
.sg-ws-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.sg-manage-box{border:1px solid #e5e7eb;border-radius:12px;padding:12px;margin:12px 0;background:#fafafa}.sg-manage-box summary{cursor:pointer;font-weight:700;margin-bottom:10px}.sg-inline-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.sg-inline-form input{flex:1;min-width:220px}.sg-inline-form button{white-space:nowrap}.sg-member{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #eee;padding:10px 0}.sg-member span{display:block;color:#64748b;font-size:13px}.sg-member-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.sg-member-actions select{min-width:120px;margin:0}.sg-member-actions button{white-space:nowrap}.sg-danger{background:#fee2e2!important;color:#991b1b!important}.sg-danger:hover{background:#fecaca!important}

/* SG Core 1.4.3 Workspace UI polish */
.sg-workspaces .sg-ws-layout{display:grid;grid-template-columns:240px 1fr;gap:24px;margin-top:16px}
.sg-workspaces .sg-ws-sidebar{display:flex;flex-direction:column;gap:8px;min-width:0}
.sg-workspaces .sg-ws-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:12px;text-decoration:none!important;background:#fff;color:#0f172a;line-height:1.2}
.sg-workspaces .sg-ws-item:hover{background:#f8fafc;border-color:#cbd5e1}
.sg-workspaces .sg-ws-item.active{background:#eef2ff;border-color:#c7d2fe;color:#3730a3}
.sg-workspaces .sg-ws-name{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sg-workspaces .sg-role-badge{font-size:12px;text-transform:capitalize;color:#475569;background:#f1f5f9;border-radius:999px;padding:3px 8px;white-space:nowrap}
.sg-workspaces .sg-ws-item.active .sg-role-badge{background:#e0e7ff;color:#3730a3}
.sg-workspaces .sg-ws-main{min-width:0}
.sg-workspaces .sg-ws-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
@media(max-width:780px){.sg-workspaces .sg-ws-layout{grid-template-columns:1fr}.sg-workspaces .sg-ws-sidebar{flex-direction:row;overflow:auto;padding-bottom:4px}.sg-workspaces .sg-ws-item{min-width:210px}}

/* SG Core 1.5.0 Professional profiles */
.sg-profile-preview{display:flex;align-items:flex-end;gap:14px;position:relative;margin:8px 0 16px;min-height:120px;border:1px solid #e5e7eb;border-radius:16px;padding:14px;background:#f8fafc;overflow:hidden}
.sg-profile-banner{height:140px;border-radius:16px;background:linear-gradient(135deg,#e0e7ff,#f8fafc);background-size:cover;background-position:center;border:1px solid #e5e7eb;margin-bottom:12px}
.sg-profile-preview .sg-profile-banner{position:absolute;inset:0;margin:0;border:0;border-radius:0;opacity:.75}
.sg-profile-avatar{width:88px;height:88px;border-radius:999px;object-fit:cover;border:4px solid #fff;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.18);position:relative;z-index:1}
.sg-profile-preview div:last-child{position:relative;z-index:1;background:rgba(255,255,255,.84);border:1px solid rgba(226,232,240,.9);border-radius:12px;padding:8px 10px;backdrop-filter:blur(6px)}
.sg-profile-preview small{display:block;color:#64748b;margin-top:3px}
.sg-muted{color:#64748b;font-size:13px}
.sg-public-profile{overflow:hidden;padding:0!important}
.sg-public-profile .sg-profile-banner{border-radius:16px 16px 0 0;border:0;margin:0;height:180px}
.sg-public-profile-body{padding:0 22px 22px;margin-top:-44px;position:relative}
.sg-public-profile h2{margin:12px 0 4px}.sg-headline{font-size:16px;color:#334155;margin:0 0 8px}.sg-profile-bio{margin-top:14px}.sg-skill-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.sg-skill-list span{background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe;border-radius:999px;padding:5px 9px;font-size:13px}.sg-profile-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.sg-profile-links a,.sg-profile-links span{border:1px solid #e2e8f0;border-radius:999px;padding:7px 10px;text-decoration:none!important;color:#0f172a;background:#fff}
