/* 🌐 Website manager (js/webman.js) — the company program and the group portal. Colours from the design tokens only. */
.wm { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
@media (min-width: 1180px) { .wm { grid-template-columns: minmax(0, 1fr) 430px; } .wm-pv { position: sticky; top: 12px; } .wm-pv-x { display: none; } }
.wm-ed { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.wm-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 10px; }
.wm-status { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wm-status .gk-chip { text-decoration: none; cursor: default; }
.wm-status a.gk-chip, .wm-status button.gk-chip { cursor: pointer; border: 1px solid var(--ds-line, #ddd); font: inherit; font-size: .82rem; }
.wm-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wm-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.wm-areas .tile { min-height: 48px; padding: 8px 10px; flex-direction: row; align-items: center; gap: 8px; }
.wm-areas .tile .ic { font-size: 1.25rem; }
.wm-body { min-height: 240px; }
.wm-body .tiles { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.wm-box { text-align: left; cursor: pointer; }
.wm-box small { line-height: 1.45; }
.wm-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: var(--ds-surface-2, #f4f4f4); margin-top: 4px; }
.wm-sw { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: middle; margin-right: 2px; border: 1px solid var(--ds-line, #ddd); }
.wm-pal { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.wm-pal button { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--ds-line, #ddd); border-radius: 12px; overflow: hidden; padding: 0; background: var(--ds-surface, #fff); cursor: pointer; }
.wm-pal button span { height: 34px; }
.wm-pal button small { grid-column: 1 / -1; padding: 4px; font-size: .75rem; color: var(--ds-ink, #222); }
.wm-pal button.on { border-color: var(--ds-primary, #1747a6); box-shadow: 0 0 0 3px var(--ds-primary-soft, #dbe6ff); }
.wm-slides, .wm-secs, .wm-vers { display: flex; flex-direction: column; gap: 10px; }
.wm-slide { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; }
.wm-slide.off, .wm-sec.off { opacity: .6; }
.wm-slide-pic { width: 92px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--ds-surface-2, #f4f4f4); display: grid; place-items: center; font-size: 1.6rem; }
.wm-slide-pic img { width: 100%; height: 100%; object-fit: cover; }
.wm-slide-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wm-slide-t small { color: var(--ds-muted, #666); overflow-wrap: anywhere; }
.wm-slide-b { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.wm-sec { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; }
.wm-sec-m, .wm-item-m { flex: 1 1 220px; display: flex; gap: 10px; align-items: center; text-align: left; background: none; border: 0; padding: 6px; cursor: pointer; color: inherit; font: inherit; min-width: 0; }
.wm-sec-m .ic { font-size: 1.4rem; }
.wm-sec-m span, .wm-item-m { flex-direction: column; align-items: flex-start; }
.wm-sec-m small, .wm-item-m small { display: block; color: var(--ds-muted, #666); font-size: .82rem; }
.wm-sec-b { display: flex; gap: 4px; flex-wrap: wrap; }
.wm-dev { white-space: nowrap; }
.wm-ver { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 12px; }
.wm-ver small { display: block; color: var(--ds-muted, #666); }
.wm-items { display: flex; flex-direction: column; gap: 6px; }
.wm-item { display: flex; align-items: center; gap: 6px; border: 1px solid var(--ds-line, #ddd); border-radius: 12px; padding: 4px 6px; background: var(--ds-surface, #fff); }
.wm-cats { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; }
.wm-f { display: flex; flex-direction: column; gap: 12px; }
.wm-l { display: flex; flex-direction: column; gap: 4px; }
.wm-l input:not([type=checkbox]), .wm-l textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border: 1px solid var(--ds-line, #ccc); border-radius: 10px; background: var(--ds-surface, #fff); color: var(--ds-ink, #222); }
.wm-l small { font-size: .8rem; }
.wm-on { flex-direction: row; align-items: center; gap: 8px; }
.wm-on input { width: 22px; height: 22px; }
.wm-cnt { color: var(--ds-muted, #666); } .wm-cnt.warn { color: var(--ds-warn, #b45309); }
.wm-col { display: flex; gap: 8px; align-items: center; } .wm-col i { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--ds-line, #ddd); flex: none; }
.wm-pic { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wm-pic-v { width: 120px; height: 80px; border-radius: 10px; background: var(--ds-surface-2, #f4f4f4); display: grid; place-items: center; overflow: hidden; font-size: .8rem; }
.wm-pic-v img { width: 100%; height: 100%; object-fit: contain; }
.wm-pic-b { display: flex; gap: 6px; flex-wrap: wrap; }
.wm-pv { background: var(--ds-surface, #fff); border: 1px solid var(--ds-line, #ddd); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.wm-pv-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wm-pv-bar .seg { display: inline-flex; border: 1px solid var(--ds-line, #ddd); border-radius: 999px; overflow: hidden; margin-left: auto; }
.wm-pv-bar .seg button { border: 0; background: none; padding: 6px 12px; font: inherit; font-size: .85rem; cursor: pointer; color: inherit; }
.wm-pv-bar .seg button.on { background: var(--ds-primary, #1747a6); color: var(--ds-primary-ink, #fff); }
.wm-pv-frame { margin: 0 auto; border-radius: 22px; overflow: hidden; border: 8px solid var(--ds-ink, #222); background: #fff; }
.wm-pv-frame.phone { width: 390px; max-width: 100%; height: 720px; max-height: 72vh; }
.wm-pv-frame.desktop { width: 100%; height: 72vh; border-width: 4px; border-radius: 10px; }
.wm-pv-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.wm-pv-frame.desktop iframe { width: 1280px; height: calc(72vh / .31); transform: scale(.31); transform-origin: 0 0; }
@media (min-width: 1500px) { .wm { grid-template-columns: minmax(0, 1fr) 560px; } .wm-pv-frame.desktop iframe { height: calc(72vh / .41); transform: scale(.41); } }
/* phone / tablet: the preview is a full-screen layer opened with 👁 Preview */
@media (max-width: 1179px) {
  .wm-pv { position: fixed; inset: 0; z-index: 60; border-radius: 0; visibility: hidden; pointer-events: none; }
  .wm-pvopen .wm-pv { visibility: visible; pointer-events: auto; }
  .wm-pv-frame.phone { height: calc(100vh - 110px); max-height: none; }
  .wm-pv-frame.desktop iframe { width: 1280px; height: calc((100vh - 110px) / .3); transform: scale(.3); }
}
@media (max-width: 480px) { .wm-pv-frame.phone { border-width: 0; border-radius: 0; width: 100%; } .wm-act .btn { flex: 1 1 auto; } }
.wm-item-m .wm-thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; object-position: top; flex-shrink: 0; }   /* a photo / picture in a list (leaders, cards) */
