/* Events, Ticketing, Payment Gateway, Spaces and Space Management (P0099; P2081 design language: hairline rules,
   light large numbers, mono captions, black primary actions). Tokens from tokens.css. */

.uws-com-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px;margin:4px 0 22px}
.uws-com-stat{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border:1px solid var(--ws-rule);border-radius:var(--radius-stat);background:var(--surface-card);min-width:0}
.uws-com-stat strong{font-size:24px;font-weight:300;letter-spacing:-.01em;line-height:1.1;overflow-wrap:anywhere}
.uws-com-stat .uws-caps{white-space:normal}
.uws-com-tags{display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap}
.uws-com-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px 32px;margin-bottom:22px}
.uws-com-cols .uws-kv{border-top:0}
.uws-com-detail{display:flex;flex-direction:column;gap:18px}
.uws-com-detail__head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.uws-com-detail__head h2{font-size:22px;font-weight:400}
.uws-com-scan{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.uws-com-scan .uws-field{flex:1 1 260px;min-width:0}
.uws-com-result{display:flex;flex-direction:column;gap:4px;margin-top:14px;padding:14px 16px;border-radius:var(--radius-stat);border:1px solid var(--ws-rule);font-size:14px}
.uws-com-result strong{font-size:18px;font-weight:500}
.uws-com-result.is-ok{background:#E6F3EC;border-color:#B9DFC9}
.uws-com-result.is-warn{background:#FBF0E1;border-color:#F0D3A9}
.uws-com-result.is-bad{background:#FBECEA;border-color:#F0C3BE}
.uws-com-event{display:flex;flex-direction:column;gap:6px;margin-bottom:28px}
.uws-com-event__head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.uws-com-event__head h2{font-size:26px;font-weight:300;margin:4px 0 2px}
.uws-com-about{max-width:72ch;font-size:14px;line-height:1.6;margin:0 0 10px}
.uws-com-space{display:inline-flex;align-items:center;gap:10px;min-width:0}
.uws-com-swatch{display:inline-block;width:14px;height:14px;border-radius:50%}
.uws-com-pick{display:flex;flex-wrap:wrap;gap:6px}
.uws-com-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.uws-com-narrow{max-width:560px}

/* Access matrix: roles × Space permissions */
.uws-com-matrix{display:flex;flex-direction:column;border-top:1px solid var(--ws-rule-strong);overflow-x:auto}
.uws-com-matrix>div{display:grid;grid-template-columns:minmax(200px,1.6fr) repeat(var(--cols,13),minmax(54px,.4fr)) 70px;align-items:center;gap:0 4px;min-width:max-content}
.uws-com-matrix__group{padding-top:12px}
.uws-com-matrix__group span{font:500 10.5px var(--font-mono);text-transform:uppercase;letter-spacing:var(--ls-caps);color:var(--grey-600);text-align:center;border-bottom:1px solid var(--ws-rule);padding-bottom:4px}
.uws-com-matrix__group span:first-child,.uws-com-matrix__group span:last-child{border:0}
.uws-com-matrix__head span{font-size:11.5px;color:var(--grey-600);text-align:center;padding:8px 0}
.uws-com-matrix__head span:first-child{text-align:left}
.uws-com-matrix__row{border-top:1px solid var(--ws-rule);padding:10px 0}
.uws-com-matrix__row span{text-align:center}
.uws-com-matrix__row span:first-child{text-align:left;min-width:0}
.uws-com-matrix input{width:16px;height:16px;accent-color:var(--ink)}

/* Space */
.uws-space{display:flex;flex-direction:column;gap:18px}
.uws-space__hero{display:flex;flex-direction:column;justify-content:flex-end;gap:8px;min-height:220px;padding:28px 30px;border-radius:var(--radius-panel);background-size:cover;background-position:center 40%;color:var(--ink)}
.uws-space__hero.has-cover{color:#fff;min-height:300px}
.uws-space__hero.has-cover .uws-caps{color:rgba(255,255,255,.82)}
.uws-space__hero h1{font-size:44px;font-weight:300;letter-spacing:-.02em;line-height:1.05;margin:0}
.uws-space__tagline{font-size:18px;font-weight:400;margin:0}
.uws-space__desc{font-size:14px;max-width:62ch;margin:0;opacity:.9}
.uws-space__event{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--ws-rule)}
.uws-space__event>div{display:flex;flex-direction:column;gap:3px}
.uws-space__event strong{font-size:16px;font-weight:500}
.uws-space__types{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.uws-space__type{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border:1px solid var(--ws-rule);border-radius:var(--radius-stat);background:var(--surface-card)}
.uws-space__type-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.uws-space__type-head strong{font-weight:500}
.uws-bar{height:4px;border-radius:4px;background:var(--grey-100,#EEEFF2);overflow:hidden}
.uws-bar span{display:block;height:100%;background:var(--ink)}
.uws-space__links{display:flex;gap:8px;flex-wrap:wrap}

@media (max-width:760px){
  .uws-space__hero{padding:22px 18px;min-height:180px}
  .uws-space__hero.has-cover{min-height:240px}
  .uws-space__hero h1{font-size:32px}
  .uws-com-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .uws-com-stat strong{font-size:20px}
}
