/* ===== Design tokens ===== SKF brand teal #1FA0B8 (from the company logo), red #E02A2A, yellow #FDCB08 */
:root {
  --brand: #1a8ba1; --brand-600: #1fa0b8; --brand-50: #e5f4f7; --brand-ink: #ffffff;
  --bg: #f3f6f5; --card: #ffffff; --card-2: #f8faf9; --text: #15201c; --muted: #66756f; --line: #e1e8e5;
  --ok: #16a34a; --bad: #dc2626; --warn: #d97706; --info: #2563eb;
  --side: #0c1a1e; --side-2: #12272d; --side-text: #b9c8c2; --side-muted: #6f837c;
  --screen: #0b0f0e;
  --shadow: 0 1px 2px rgba(16, 32, 26, .05), 0 4px 16px rgba(16, 32, 26, .05);
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #2bb4cc; --brand-600: #4cc6db; --brand-50: #0f2f36; --brand-ink: #ffffff;
    --bg: #0c1311; --card: #141d1a; --card-2: #18231f; --text: #e5ece9; --muted: #8fa29b; --line: #24332e;
    --side: #081114; --side-2: #0e1e23;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #2bb4cc; --brand-600: #4cc6db; --brand-50: #0f2f36; --brand-ink: #ffffff;
  --bg: #0c1311; --card: #141d1a; --card-2: #18231f; --text: #e5ece9; --muted: #8fa29b; --line: #24332e;
  --side: #081114; --side-2: #0e1e23;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.25; }
h1 { font-size: 22px; } h2 { font-size: 20px; font-weight: 650; } h3 { font-size: 15px; font-weight: 650; }
svg.ic { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--card-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: 12px; }

/* ===== Login (split screen) ===== */
#login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-brand { background: linear-gradient(150deg, rgba(10,70,84,.86) 0%, rgba(8,48,58,.82) 60%, rgba(4,26,32,.92) 100%), url("/img/skf-hero.jpg") center/cover; color: #e6f4f7; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-brand img { width: 230px; background: #fff; border-radius: 12px; padding: 8px 12px; align-self: flex-start; }
.login-brand .tag { color: #fdcb08; font-style: italic; letter-spacing: .3px; margin-top: 6px; }
.login-brand h2 { font-size: 30px; color: #fff; margin: 0 0 10px; font-weight: 700; }
.login-brand p { max-width: 420px; opacity: .85; margin: 0; }
.login-brand ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.login-brand li { display: flex; gap: 10px; align-items: center; opacity: .92; }
.login-brand .wave { position: absolute; right: -60px; bottom: -60px; width: 340px; height: 340px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .05); }
.login-side { display: grid; place-items: center; padding: 24px 16px; }
.login-side form { width: min(380px, 100%); }
.login-side h1 { font-size: 24px; margin-bottom: 4px; }
.login-side .sub { color: var(--muted); margin: 0 0 22px; }

/* ===== App shell ===== */
#app { display: flex; min-height: 100vh; }
#side { width: 240px; flex: 0 0 240px; background: var(--side); color: var(--side-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; transition: width .18s, flex-basis .18s; }
.logo { padding: 18px 18px 14px; display: flex; align-items: center; gap: 10px; }
.logo img { height: 34px; background: #fff; border-radius: 6px; padding: 2px 6px; }
.logo span { color: var(--side-muted); font-size: 12px; letter-spacing: .5px; line-height: 1.2; }
#menu { flex: 1; overflow-y: auto; padding: 6px 10px 16px; }
#menu a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin: 2px 0; color: var(--side-text); border-radius: 9px; text-decoration: none; white-space: nowrap; }
#menu a:hover { background: var(--side-2); color: #fff; }
#menu a.on { background: var(--brand); color: #fff; }
#menu .sec { padding: 16px 12px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--side-muted); white-space: nowrap; }
.side-foot { padding: 12px 18px; font-size: 11px; color: var(--side-muted); border-top: 1px solid var(--side-2); }
body.collapsed #side { width: 68px; flex-basis: 68px; }
body.collapsed #side .logo span, body.collapsed #menu a span, body.collapsed #menu .sec, body.collapsed .side-foot { display: none; }
body.collapsed .logo img { height: 22px; }
body.collapsed #menu a { justify-content: center; padding: 10px 0; }
.brandlogo { display: inline-flex; align-items: center; background: #fff; border-radius: 8px; padding: 4px 8px; flex: 0 0 auto; }
.brandlogo img { max-height: 30px; max-width: 120px; display: block; }
.brandname { color: #fff !important; font-weight: 650; font-size: 14px !important; letter-spacing: 0 !important; line-height: 1.25 !important; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
body.collapsed .brandname { display: none; }
body.collapsed .brandlogo img { max-width: 36px; }
.board .bt .brandlogo img { max-height: 26px; }
.brandprev { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; display: inline-flex; align-items: center; min-height: 44px; }
.brandprev img { max-height: 40px; max-width: 180px; display: block; }
.brandprev.sm { min-height: 0; padding: 3px 6px; }
.brandprev.sm img { max-height: 24px; max-width: 100px; }
#content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
header { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; min-height: 58px; }
#crumb { font-weight: 650; font-size: 16px; }
.grow { flex: 1; }
.iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 9px; }
.who { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
main { padding: 20px; width: 100%; max-width: 1560px; }

/* ===== Controls ===== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card > h3:first-child { display: flex; align-items: center; gap: 8px; }
.narrow { width: min(380px, 100%); }
label { display: block; margin-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 550; }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
input[type=checkbox] { display: inline-block; width: 16px; height: 16px; margin: 0 6px 0 0; accent-color: var(--brand); vertical-align: -3px; }
input[type=file] { padding: 6px; }
button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--text); cursor: pointer; font: inherit; font-weight: 550; transition: background .15s, border-color .15s; }
button:hover { border-color: var(--brand-600); background: var(--card-2); }
button.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
button.primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
button.danger { color: var(--bad); }
button.danger:hover { border-color: var(--bad); }
button.sm { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
button:disabled { opacity: .45; cursor: default; }
.login-side button.primary { width: 100%; justify-content: center; padding: 11px; margin-top: 4px; }
.err { color: var(--bad); min-height: 1.2em; margin: 8px 0 0; }
.ok { color: var(--ok); margin: 8px 0 0; }
.cap { color: var(--muted); font-size: 12px; }
.row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.row > * { flex: 0 0 auto; }
.row label { margin: 0; }
.row.mid { align-items: center; }
.secret { background: var(--brand-50); border: 1px dashed var(--brand-600); padding: 12px; border-radius: 9px; word-break: break-all; margin-top: 8px; }
details > summary { list-style: none; display: flex; align-items: center; gap: 8px; }
details > summary::before { content: '▸'; color: var(--muted); }
details[open] > summary::before { content: '▾'; }
details[open] > summary { margin-bottom: 10px; }

button.busy { opacity: .6; cursor: progress; }
button.busy::after { content: '…'; }
#toasts { position: fixed; top: 70px; right: 18px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-left: 5px solid var(--ok);
  border-radius: 10px; padding: 11px 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); font-size: 14px; animation: toastin .2s ease-out; }
.toast.err { border-left-color: var(--bad); } .toast.info { border-left-color: var(--info); }
.toast svg.ic { color: var(--ok); margin-top: 1px; } .toast.err svg.ic { color: var(--bad); } .toast.info svg.ic { color: var(--info); }
.toast span { flex: 1; }
.toast .x { border: 0; background: none; padding: 0 2px; font-size: 18px; line-height: 1; color: var(--muted); }
.toast.out { opacity: 0; transform: translateX(20px); transition: all .3s; }
@keyframes toastin { from { opacity: 0; transform: translateX(20px); } }

/* ===== Tables ===== */
.scroll { overflow-x: auto; border-radius: 9px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .5px; background: var(--card-2); white-space: nowrap; position: sticky; top: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--brand) 4%, transparent); }
td input, td select { margin: 0; padding: 5px 7px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding-top: 12px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); text-decoration: none; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 550; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--brand-600); border-bottom-color: var(--brand); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--card-2); color: var(--muted); border: 1px solid var(--line); }
.badge.on { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); border-color: transparent; }
.badge.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); border-color: transparent; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #9aa9a3; margin-right: 7px; flex: 0 0 auto; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 20%, transparent); }

/* ===== Overview ===== */
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); margin-bottom: 18px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
a.kpi:hover { text-decoration: none; border-color: var(--brand-600); }
.kpi .ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: 0 0 auto; }
.kpi .ico svg { width: 22px; height: 22px; }
.kpi.red .ico { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.kpi.blue .ico { background: color-mix(in srgb, var(--info) 12%, transparent); color: var(--info); }
.kpi.grey .ico { background: var(--card-2); color: var(--muted); }
.kpi .n { font-size: 26px; font-weight: 750; line-height: 1.1; }
.kpi .l { font-size: 12px; color: var(--muted); }
.cols { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.cols3 { display: grid; gap: 18px; grid-template-columns: 2fr 1fr; }
/* grid children may shrink below their content (charts / maps would otherwise push the card past the page edge) */
.cols > *, .cols3 > *, .top2 > *, .mon > *, .histgrid > * { min-width: 0; }
.devgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.devcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); color: inherit; text-decoration: none; display: block; transition: border-color .15s, transform .15s; }
a.devcard:hover { text-decoration: none; border-color: var(--brand-600); transform: translateY(-1px); }
.devcard .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.devcard .nm { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.devcard .sn { font: 11px ui-monospace, Consolas, monospace; color: var(--muted); }
.devcard .vals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 12px; }
.devcard .vals div { min-width: 0; }
.devcard .vals .k { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.devcard .vals .v { font-size: 18px; font-weight: 650; }
.devcard .vals .u { font-size: 12px; color: var(--muted); margin-left: 3px; font-weight: 500; }
.evt { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.evt:last-child { border-bottom: 0; }
.evt .t { color: var(--muted); font-size: 12px; white-space: nowrap; }
.chartbox { position: relative; height: 340px; }
.chartbox.sm { height: 220px; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; }
.empty svg { width: 32px; height: 32px; opacity: .5; display: block; margin: 0 auto 8px; }

/* legacy overview pieces still used elsewhere */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.stat { border-radius: var(--radius); padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--brand); }
.stat.red { border-top-color: var(--bad); } .stat.blue { border-top-color: var(--info); }
.stat .n { font-size: 30px; font-weight: 700; } .stat .l { font-size: 12px; color: var(--muted); }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.quick a { text-align: center; padding: 14px 6px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); }
.quick a:hover { border-color: var(--brand-600); text-decoration: none; }
.quick b { display: block; color: var(--brand-600); }
.quick b svg { width: 22px; height: 22px; }

/* ===== Monitoring ===== */
.mon { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
.tree { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; max-height: calc(100vh - 100px); overflow: auto; position: sticky; top: 76px; box-shadow: var(--shadow); }
.tree input { margin: 0 0 8px; }
.tree .g { padding: 8px 6px; cursor: pointer; display: flex; justify-content: space-between; font-weight: 650; border-radius: 7px; }
.tree .g:hover { background: var(--card-2); }
.tree .d { padding: 7px 8px 7px 18px; cursor: pointer; border-radius: 8px; font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; }
.tree .d:hover { background: var(--card-2); }
.tree .d.sel { background: var(--brand); color: #fff; }
.tree .d .sn { flex-basis: 100%; padding-left: 16px; font-size: 10px; opacity: .7; font-family: ui-monospace, Consolas, monospace; }
.top2 { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(320px, 1.15fr); gap: 18px; }
.info { display: grid; grid-template-columns: auto 1fr; font-size: 13px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.info div { padding: 7px 11px; border-bottom: 1px solid var(--line); }
.info div:nth-last-child(-n+2) { border-bottom: 0; }
.info .k { color: var(--muted); background: var(--card-2); border-right: 1px solid var(--line); }
.ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex: 0 0 auto;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line) 0); position: relative; }
.ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--card); }
.ring span { position: relative; font-size: 15px; }
.board { background: var(--screen); color: #fff; border-radius: 10px; padding: 12px 16px 16px; min-height: 260px; }
.board .bt { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
.board .bt img { height: 26px; }
.board .bt .title { font-size: 17px; letter-spacing: 1px; }
.board .bt .clock { font: 13px ui-monospace, Consolas, monospace; text-align: right; }
.board .cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.board .it { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .3px; }
.board .it .v { min-width: 92px; background: #e7eef5; color: #111; text-align: center; border-top: 3px solid #3c78b4; padding: 2px 8px; font-weight: 500; border-radius: 3px; }
.histgrid { display: grid; grid-template-columns: 240px 1fr; gap: 16px; }
.taglist { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; padding: 6px 8px; margin-top: 5px; }
.taglist label { margin: 0; padding: 3px 0; color: var(--text); font-size: 13px; font-weight: 400; }

/* ===== Equipment view ===== */
.eqview { position: relative; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); user-select: none; margin: 18px 0; }
.eqview img { display: block; width: 100%; height: auto; border-radius: 10px; }
.top2 > .wide { grid-column: 1 / -1; order: -1; }
.eqview.edit img { cursor: crosshair; }
.eqpin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: rgba(13, 27, 23, .86); color: #fff; border-radius: 8px; padding: 3px 8px; border: 2px solid var(--brand-600);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35); white-space: nowrap; line-height: 1.2; pointer-events: auto; }
.eqview.edit .eqpin { cursor: grab; touch-action: none; }
.eqpin::after { content: ''; position: absolute; bottom: -7px; width: 8px; height: 8px; background: var(--brand-600); border-radius: 50%; }
.eqpin .eql { font-size: 10px; opacity: .85; }
.eqpin .eqv { font-size: 14px; font-weight: 700; }
.eqpin .eqv.flash { animation: eqflash .8s; }
@keyframes eqflash { from { color: #7dffc8; } to { color: #fff; } }

/* ===== Map ===== */
.mapbox { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.devdot { border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #15201c, 0 2px 6px rgba(0,0,0,.45); background: #8a9893; }
.devdot.alarm { animation: devpulse 1.6s ease-out infinite; }
@keyframes devpulse { 0% { box-shadow: 0 0 0 2px #15201c, 0 0 0 0 rgba(220,38,38,.7); } 100% { box-shadow: 0 0 0 2px #15201c, 0 0 0 14px rgba(220,38,38,0); } }
.devdot.online { background: var(--brand); } .devdot.alarm { background: var(--bad); }
.devclu { border-radius: 50%; display: grid !important; place-items: center; color: #fff; font-weight: 750; font-size: 14px;
  background: #8a9893; border: 3px solid #fff; box-shadow: 0 0 0 5px rgba(138,152,147,.35), 0 2px 6px rgba(0,0,0,.35); }
.devclu.online { background: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 35%, transparent), 0 2px 6px rgba(0,0,0,.35); }
.devclu.alarm { background: var(--bad); box-shadow: 0 0 0 5px color-mix(in srgb, var(--bad) 35%, transparent), 0 2px 6px rgba(0,0,0,.35); }
.cluleg { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; margin-right: 6px; vertical-align: -4px; }
.mappop { min-width: 180px; font: 13px/1.45 "Segoe UI", system-ui, sans-serif; color: #15201c; }
.mappop .cap { color: #66756f; }
.pin { width: 18px; height: 18px; border-radius: 50%; background: var(--bad); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.leaflet-popup-content-wrapper { border-radius: 10px; }

/* ===== Responsive ===== */
@media (max-width: 1100px) { .cols3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  #login { grid-template-columns: 1fr; }
  .login-brand { padding: 28px 22px; }
  .login-brand ul, .login-brand .wave { display: none; }
  #side { position: fixed; z-index: 30; inset: 0 auto 0 0; transform: translateX(-100%); transition: transform .2s; width: 260px; }
  #side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); }
  body.collapsed #side { width: 260px; }
  body.collapsed #side .logo span, body.collapsed #menu a span, body.collapsed #menu .sec { display: revert; }
  body.collapsed #menu a { justify-content: flex-start; padding: 9px 12px; }
  .cols, .top2, .mon, .histgrid { grid-template-columns: 1fr; }
  .tree { position: static; max-height: 280px; }
  main { padding: 12px; }
  header { padding: 8px 12px; }
  .who .name { display: none; }
  .board .cols2 { grid-template-columns: 1fr; }
}
