/* Scoped light-web interpretation of the installed QA control language. */
.space-management { --sm-ink:#151515; --sm-muted:#626868; --sm-line:#d9dddd; --sm-surface:#f5f6f6; color:var(--sm-ink); }
.management-heading { display:flex; gap:24px; align-items:center; justify-content:space-between; margin-bottom:28px; }
.management-heading h1 { margin:0; font-size:30px; line-height:1.3; letter-spacing:-.035em; font-weight:600; }
.management-heading p { margin:8px 0 0; color:var(--sm-muted); font-size:14px; }
.management-heading .management-kicker { margin:0 0 8px; font-size:12px; font-weight:400; }
.sm-field { display:grid; min-width:0; gap:8px; margin:0 0 22px; }
.sm-field>span { font-size:14px; font-weight:600; }
.sm-field input,.sm-field textarea,.sm-field select { display:block; width:100%; min-width:0; min-height:48px; padding:12px 15px; border:1px solid #7d8585; border-radius:20px; background:#fff; color:var(--sm-ink); font:inherit; font-size:15px; line-height:1.5; }
.sm-field textarea { resize:vertical; }
.sm-field small { font-size:12px; color:var(--sm-muted); line-height:1.65; }
.sm-selector { max-width:560px; margin-bottom:24px; }
.sm-button { display:inline-flex; min-width:0; min-height:48px; padding:11px 18px; gap:8px; align-items:center; justify-content:center; border:1px solid transparent; border-radius:20px; font:inherit; font-size:14px; font-weight:600; line-height:1.45; text-align:center; cursor:pointer; }
.sm-primary { background:var(--sm-ink); color:#fff; }
.sm-secondary { background:#fff; border-color:#7d8585; color:var(--sm-ink); }
.sm-quiet { background:transparent; color:var(--sm-ink); }
.sm-button:disabled { opacity:.45; cursor:not-allowed; }
.sm-button:hover:not(:disabled) { filter:brightness(.92); }
.space-management :is(input,textarea,select):focus { border-color:var(--sm-ink); }
.sm-editor-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(250px,320px); gap:32px; align-items:start; }
.sm-editor-main { min-width:0; }
.sm-section { min-width:0; padding:0 0 32px; margin:0 0 32px; border-bottom:1px solid var(--sm-line); }
.sm-section-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; margin-bottom:12px; }
.sm-section h2,.sm-preview-heading h2 { margin:0; font-size:18px; line-height:1.5; font-weight:600; letter-spacing:-.02em; }
.sm-section-description { margin:0 0 24px; font-size:13px; line-height:1.8; color:var(--sm-muted); }
.sm-meta { color:var(--sm-muted); font-size:12px; }
.sm-field-grid { display:grid; grid-template-columns:1fr 1fr; align-items:start; gap:16px; }
.sm-save-row { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:24px; }
.sm-message { margin:0; color:var(--sm-muted); font-size:13px; line-height:1.75; overflow-wrap:anywhere; }
.sm-message.is-error { color:#9d2920; }
#sm-page-message:not(:empty) { margin-bottom:24px; }
.sm-save-row .sm-button { flex-shrink:0; }
.sm-tag { display:inline-flex; padding:5px 10px; border-radius:16px; background:var(--sm-surface); font-size:12px; color:var(--sm-muted); }
.sm-address { margin:0 0 12px; font-size:15px; line-height:1.7; overflow-wrap:anywhere; }
.sm-map { display:grid; min-height:320px; width:100%; margin:24px 0 12px; border:1px solid var(--sm-line); border-radius:16px; overflow:hidden; background:var(--sm-surface); }
.sm-map-fallback { align-self:center; padding:28px; text-align:center; }
.sm-map-fallback>span { display:block; margin-bottom:12px; font-size:26px; }
.sm-map-fallback strong { font-size:15px; font-weight:600; }
.sm-map-fallback p { margin:10px 0 0; color:var(--sm-muted); font-size:13px; line-height:1.8; overflow-wrap:anywhere; }
.sm-map-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.sm-map-help { margin:12px 0 24px; color:var(--sm-muted); font-size:12px; line-height:1.8; }
.sm-pin-selection { display:flex; flex-direction:column; gap:8px; padding:16px; margin-bottom:22px; border:1px solid var(--sm-line); border-radius:16px; background:var(--sm-surface); font-size:13px; }
.sm-pin-selection a { text-decoration:underline; text-underline-offset:4px; }
.sm-checkbox { display:flex; min-height:48px; align-items:flex-start; gap:10px; font-size:13px; line-height:1.8; }
.sm-checkbox input { width:20px; height:20px; flex-shrink:0; margin:2px 0 0; accent-color:var(--sm-ink); }
.sm-address-change { margin-top:28px; border-top:1px solid var(--sm-line); padding-top:18px; }
.sm-address-change summary { cursor:pointer; font-size:14px; font-weight:600; min-height:44px; }
.sm-address-change form { padding-top:20px; }
.sm-preview { position:sticky; top:104px; min-width:0; }
.sm-preview-heading { display:grid; gap:6px; margin-bottom:16px; }
.sm-preview-card { padding:24px; border:1px solid var(--sm-line); border-radius:16px; background:#fff; overflow-wrap:anywhere; }
.sm-preview-card h3 { margin:8px 0 16px; font-size:22px; font-weight:600; line-height:1.45; }
.sm-preview-card p { font-size:14px; line-height:1.8; white-space:pre-wrap; }
.sm-preview-card .sm-preview-type { margin:0; font-size:12px; color:var(--sm-muted); }
.sm-preview-divider { height:1px; margin:24px 0; background:var(--sm-line); }
.sm-preview-note { color:var(--sm-muted); font-size:12px; line-height:1.8; margin:12px 0 0; }
.sm-history-row { display:flex; gap:12px; align-items:center; justify-content:space-between; padding:18px 0; border-bottom:1px solid var(--sm-line); }
.sm-history-row>div { min-width:0; }
.sm-history-row strong { font-size:14px; font-weight:600; }
.sm-history-row p { margin:6px 0; font-size:13px; overflow-wrap:anywhere; }
.sm-history-row small { color:var(--sm-muted); font-size:12px; }
.sm-history-row .sm-button { flex-shrink:0; }
.sm-empty { padding:48px 24px; border:1px solid var(--sm-line); border-radius:16px; text-align:center; }
.sm-empty p { margin:10px 0 24px; color:var(--sm-muted); font-size:14px; }
.sm-leave-guard { position:sticky; z-index:15; top:88px; margin-bottom:24px; padding:20px; border:1px solid #7d8585; border-radius:16px; background:#fff; }
.sm-leave-guard p { margin:0 0 12px; font-size:14px; }
.sm-actions { display:flex; flex-wrap:wrap; gap:8px; }
@media (max-width:860px) {
  #app-view .mobile-nav { grid-template-columns:repeat(5,minmax(0,1fr)); grid-template-rows:minmax(44px,1fr); align-items:stretch; }
  #app-view .mobile-nav > button, #app-view .mobile-nav > a { display:flex; min-width:0; min-height:44px; height:100%; margin:0; padding:0 4px; align-items:center; justify-content:center; font-size:.78rem; font-weight:600; line-height:20px; text-align:center; white-space:normal; }
}
.mobile-nav button[data-view=manage].is-active { color:#151515; box-shadow:inset 0 3px 0 #151515; }
.nav-item[data-view=manage].is-active { color:#151515; border-left-color:#151515; background:#f5f6f6; }
.hq-pin-mode .workspace-nav,.hq-pin-mode .mobile-nav { display:none; }
#pr-message:not(:empty),#pr-warning:not(:empty) { margin-bottom:24px; }
#pr-reason { margin-top:24px; white-space:pre-wrap; overflow-wrap:anywhere; }
#pr-form { margin-top:24px; }
@media (max-width:1100px) { .sm-editor-layout { grid-template-columns:minmax(0,1fr); } .sm-preview { position:static; max-width:620px; } }
@media (max-width:560px) { .management-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:12px; margin-bottom:24px; } .management-heading>div { min-width:0; } .management-heading .management-kicker { display:none; } .management-heading>button { padding:10px 12px; font-size:12px; } .management-heading h1 { font-size:24px; } .sm-field-grid { grid-template-columns:1fr; gap:0; } .sm-save-row { flex-direction:column; align-items:stretch; } .sm-save-row .sm-button { width:100%; } .sm-section { margin-bottom:28px; padding-bottom:28px; } .sm-map { min-height:280px; } .sm-map-fallback { padding:22px 18px; } .sm-history-row { flex-direction:column; align-items:flex-start; } .sm-leave-guard { top:72px; } .sm-map-actions .sm-button { flex:1; } }
