.business-avatar{background:var(--business-color,#164e3d);color:white}
.nav-item.active{box-shadow:inset 3px 0 var(--business-color,#164e3d)}
.space-summary{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 24px;color:#647461;font-size:12px}
.space-summary span{padding:9px 14px;border:1px solid #e3e9df;border-radius:10px;background:#fff}
.spaces-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:20px}
.space-card{padding:24px;min-width:0;display:flex;flex-direction:column}
.space-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.space-avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;color:#fff;font-size:17px;font-weight:700;flex-shrink:0}
.space-card h2{font-size:20px;line-height:1.4;margin:0 0 6px;overflow-wrap:anywhere}
.space-kind{color:#73836c;font-size:11px;margin:0 0 14px}
.space-description{color:#647461;font-size:13px;line-height:1.7;margin:0 0 20px;overflow-wrap:anywhere;white-space:pre-wrap}
.space-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:24px}
.space-tags span{background:#f0f4eb;color:#52664a;border-radius:6px;padding:5px 8px;font-size:10px}
.space-card-actions{margin-top:auto;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.space-color-field{display:flex;align-items:center;gap:12px;margin:18px 0 22px;flex-wrap:wrap;font-size:12px}
.space-color-field label{font-weight:600;color:#53674b}
.space-color-field input{width:48px;height:36px;border:1px solid #dce5d7;border-radius:8px;background:white;padding:3px;cursor:pointer}
.space-color-field span{font-family:monospace;color:#647461}
.space-modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.space-module{display:flex;align-items:flex-start;gap:10px;padding:15px 12px;border:1px solid #dce5d7;border-radius:12px;cursor:pointer;background:#fff;min-width:0}
.space-module:has(input:checked){background:#f1f6ee;border-color:#79916c}
.space-module input{accent-color:#164e3d;margin-top:4px;flex:0 0 auto;width:17px;height:17px}
.space-module-icon{color:#647b59;margin-top:2px}
.space-module strong{display:block;font-size:12px;margin-bottom:4px;color:#284b38}
.space-module small{display:block;font-size:11px;line-height:1.6;color:#6a7c62}
.space-module-help,.space-selection-note{font-size:12px;line-height:1.7;color:#647461;margin:12px 0 18px}
.space-launch{padding:24px;text-align:left;display:flex;flex-direction:column;gap:14px;color:#284b38;cursor:pointer;font:inherit}
.space-launch strong{font-size:18px}.space-launch span{font-size:12px;color:#647461;line-height:1.6}
[hidden]{display:none!important}
@media(max-width:600px){.space-modules{grid-template-columns:1fr}.space-card{padding:20px}.space-card-actions .btn{min-height:42px}.spaces-grid{gap:14px}.space-module{padding:14px}.space-card-actions{align-items:stretch}}

.space-description-input{display:block;width:100%;box-sizing:border-box;border:1px solid #dce5d7;border-radius:10px;padding:12px 14px;font:inherit;font-size:13px;line-height:1.6;color:#294b38;background:#fafbf9;resize:vertical;margin:6px 0 16px}

@media(max-width:600px){#entry-form[data-kind="business-settings"] .form-grid{grid-template-columns:1fr}}
