/* NEP Support Desk - a calm menu on the left, the main pane, the conversation on the right (design-v5, NEP palette).
   Base 15 px, nothing under 12.5 px, few borders, one scroll per pane. Phone: a slide-in menu, one pane at a time.
   NEP Sweden AB. */
:root {
  --ground: #0f1115; --chrome: #13161d; --panel: #171b25; --face: #232938; --hover: #1d2230; --input: #0e121b;
  --line: #1f2431; --line-strong: #2c3346;
  --ink: #e8e9ec; --ink-dim: #a3abb9; --ink-off: #848d9e;
  --deep: #005DAC; --azure: #0093D8; --green: #60BB46; --yellow: #FFCF06; --orange: #F7941D; --red: #ED1B2F;
  --font: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --side: 248px; --right: 460px; --top: 54px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ground); color: var(--ink); font: 15px/1.5 var(--font); overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: #fff; background: var(--input); border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 10px; max-width: 100%; }
textarea { width: 100%; min-height: 72px; resize: vertical; display: block; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px #0093D826; }
button:focus-visible, [role="button"]:focus-visible, a:focus-visible { outline: 2px solid var(--azure); outline-offset: 1px; }
.mut { color: var(--ink-off); font-size: 13.5px; }
.link { background: none; border: 0; padding: 0; color: #8cc4ff; font-weight: 600; white-space: nowrap; }
.link:hover { text-decoration: underline; }

.app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }

/* ------------------------------------------------------------------------------------------------- top bar --- */
.top { height: var(--top); flex: none; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: var(--chrome); min-width: 0; border-bottom: 1px solid var(--line); }
button.logo { background: none; border: 0; padding: 0; }
.logo { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.logo b { color: #fff; font-size: 17px; } .logo .an { color: var(--ink-dim); }
.ap { width: 22px; height: 22px; border-radius: 50%; flex: none; background: conic-gradient(#005DAC 0 45deg, #0093D8 0 90deg, #00B8D6 0 135deg, #60BB46 0 180deg, #FFCF06 0 225deg, #F7941D 0 270deg, #ED1B2F 0 315deg, #AC208E 0); -webkit-mask: radial-gradient(circle, transparent 5px, #000 5.5px); mask: radial-gradient(circle, transparent 5px, #000 5.5px); }
.burger { display: none; background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; width: 44px; height: 44px; margin-left: -8px; border-radius: 8px; align-items: center; justify-content: center; }
.burger:hover { background: var(--hover); }
.search { flex: 1; min-width: 0; max-width: 460px; position: relative; display: flex; align-items: center; margin-left: 24px; }
.search input { width: 100%; background: var(--panel); border-color: transparent; padding-right: 64px; }
.search kbd { position: absolute; right: 8px; font: 12.5px var(--font); color: var(--ink-off); border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 6px; pointer-events: none; }
.statusline { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; border-radius: 18px; padding: 4px 14px; font-size: 14px; white-space: nowrap; min-width: 0; }
.statusline .stx { overflow: hidden; text-overflow: ellipsis; }
.statusline i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.st-ok { color: #cfeec3; background: #60BB461a; } .st-ok i { background: var(--green); }
.st-warn { color: #ffd9a6; background: #F7941D1f; } .st-warn i { background: var(--orange); }
.st-bad { color: #ffb3b3; background: #ED1B2F1f; } .st-bad i { background: var(--red); }
.me { background: none; border: 0; color: #fff; font-weight: 700; white-space: nowrap; padding: 6px 4px; }
.menuwrap { position: relative; display: inline-flex; }
.menu { position: absolute; top: 100%; left: 0; margin-top: 4px; z-index: 40; background: #1f2433; border-radius: 10px; padding: 5px; display: flex; flex-direction: column; min-width: 200px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.menu.right { left: auto; right: 0; }
.menu.up { top: auto; bottom: 100%; margin: 0 0 6px; }
.menu.hand { position: absolute; left: 24px; }
.menu button { background: none; border: 0; text-align: left; padding: 9px 12px; border-radius: 7px; white-space: nowrap; }
.menu button:hover { background: #2a3146; }
.phone-only { display: none; }

/* ------------------------------------------------------------------------------------------- the three panes --- */
.body { flex: 1; display: flex; min-height: 0; position: relative; }
.side { width: var(--side); flex: none; background: var(--chrome); display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.mid { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; background: var(--panel); }
.conv { width: var(--right); flex: none; min-width: 0; display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-left: 1px solid var(--line); }
/* questions: the list is the narrow column, the conversation gets the room */
.v-questions .mid { flex: none; width: 400px; background: var(--chrome); border-right: 1px solid var(--line); }
.v-questions .conv { flex: 1; width: auto; border-left: 0; }

/* -------------------------------------------------------------------------------------------- the menu (left) --- */
.shead { display: flex; align-items: center; gap: 8px; padding: 14px 14px 4px 18px; }
.stitle { flex: 1; color: #fff; font-weight: 700; font-size: 15px; }
.helpbtn { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: var(--ink-dim); font-weight: 700; font-size: 13.5px; padding: 0; }
.helpbtn:hover, .helpbtn[aria-expanded="true"] { color: #fff; border-color: var(--azure); }
.hint { margin: 6px 12px 4px; padding: 10px 12px; color: #cfe6ff; font-size: 13.5px; background: #0093D814; border-radius: 10px; }
.hint p { margin: 0 0 6px; }
.search.sidesearch { flex: none; margin: 6px 12px; max-width: none; }
.sscroll { flex: 1; overflow-y: auto; padding: 4px 8px 12px; min-height: 0; }
.sec { margin-top: 10px; }
.sh { margin: 6px 10px 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-off); }
.snav { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 6px 10px; color: var(--ink-dim); min-height: 34px; }
.snav:hover { background: var(--hover); color: #fff; }
.snav.on { background: #0093D833; color: #fff; }
.snav .sl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snav .sl.bold { color: #fff; font-weight: 700; }
.snav .hash { color: var(--ink-off); width: 10px; flex: none; }
.snav .sub { font-size: 12.5px; color: var(--ink-off); }
.snav .sub.ok { color: #a9dd98; }
.cnt { font-size: 12.5px; min-width: 20px; padding: 0 6px; border-radius: 10px; background: #ffffff1a; text-align: center; color: #fff; }
.snav .cnt { background: var(--azure); font-weight: 700; }
.snav .cnt.hot { background: var(--orange); color: #1b1300; }
.wdot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); display: inline-block; flex: none; }
/* a person: the dot, the name, and under it the PC · job (or "On support · until 23:00") */
.people .prow { display: grid; grid-template-columns: 9px 1fr; column-gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 4px 10px; color: var(--ink); min-width: 0; }
.people .prow .pm { grid-column: 2; }
button.prow:hover { background: var(--hover); }
.prow .dot { align-self: center; }
.prow .pn { white-space: nowrap; font-size: 14px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.prow .pm { color: var(--ink-off); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; line-height: 1.35; }
.prow.off .pn { color: var(--ink-off); }
.psup { margin-top: 4px; }
.pnone { color: var(--ink-off); font-size: 13.5px; padding: 2px 10px; }
.people .link.quiet { margin: 4px 10px; }
.link.quiet { color: var(--ink-off); font-weight: 400; font-size: 13.5px; }
.link.quiet:hover, .link.quiet.on { color: #fff; }
.sfoot { flex: none; display: flex; gap: 16px; padding: 10px 18px 14px; border-top: 1px solid var(--line); }
.scrim { display: none; }

/* -------------------------------------------------------------------------------------- the question list (centre) --- */
.list { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.lhead { display: flex; align-items: baseline; gap: 10px; padding: 16px 20px 8px; }
.lhead h2 { margin: 0; font-size: 18px; color: #fff; }
.items { flex: 1; overflow-y: auto; padding: 2px 10px 14px; }
.item { display: block; width: 100%; text-align: left; background: transparent; border: 0; border-left: 4px solid transparent; border-radius: 8px; padding: 10px 12px; margin-bottom: 4px; color: var(--ink); }
.item:hover { background: var(--hover); }
.item.sel { background: #22304a; }
.item.u-now { border-left-color: var(--red); } .item.u-today { border-left-color: var(--orange); } .item.u-normal { border-left-color: #3c465c; }
.item .row1 { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; color: var(--ink-dim); min-width: 0; }
.item .row1 b { color: #fff; } .item .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.item .ago { margin-left: auto; color: var(--ink-off); font-size: 12.5px; white-space: nowrap; }
.item .txt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; overflow-wrap: anywhere; }
.item .row2 { display: flex; gap: 8px; align-items: center; margin-top: 5px; font-size: 13px; color: var(--ink-dim); }
.uchip { font-size: 12.5px; font-weight: 700; border-radius: 5px; padding: 0 7px; white-space: nowrap; }
.uchip.u-now { background: #ED1B2F2e; color: #ffb3b3; } .uchip.u-today { background: #F7941D2b; color: #ffd9a6; }
.empty { color: var(--ink-off); padding: 14px; } .empty.big { margin: auto; padding: 40px; font-size: 16px; text-align: center; }

/* ------------------------------------------------------------------------------------------ a pane (any side) --- */
.pane { flex: 1; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.phead { flex: none; padding: 16px 24px 12px; border-bottom: 1px solid var(--line); }
.phead.row { display: flex; align-items: center; gap: 12px; } .phead h2 { margin: 0; font-size: 18px; color: #fff; flex: 1; }
.ptitle { font-size: 18px; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.psub { color: var(--ink-dim); font-size: 14px; margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.tkline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 14px; color: var(--ink-dim); }
.tkline b { color: #fff; }
.pcline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 13.5px; }
.pcstat { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-dim); }
.pcstat.on { color: #cfeec3; }
.btn.back { display: none; }
.right { margin-left: auto; }
.scroll { flex: 1; overflow-y: auto; padding: 10px 24px 16px; min-height: 0; }
.msg { display: flex; gap: 12px; padding: 9px 0; }
.msg .w { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; color: #fff; }
.msg.sup .w b { color: #8cc4ff; }
.msg.pending { opacity: .6; }
.msg.sys { color: var(--ink-off); font-size: 13.5px; padding: 4px 0; } .msg.sys .w { display: none; }
.msg .av { width: 34px; height: 34px; flex: none; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: #e6c88a22; color: #e6c88a; }
.msg.sup .av { background: #005DAC55; color: #cfe6ff; }
.msg.sys .av { background: none; height: 0; }
.role { font-size: 12.5px; color: #8cc4ff; background: #0093D81a; border-radius: 4px; padding: 0 6px; }
.role.op { color: #e6c88a; background: #e6c88a1a; border: 1px solid #e6c88a40; font-weight: 600; }
.role.sup { color: #8cc4ff; border: 1px solid #0093D855; text-transform: uppercase; font-size: 11.5px; font-weight: 700; letter-spacing: .3px; }
.meta { color: var(--ink-off); font-size: 12.5px; }
.t { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.tried { font-size: 13.5px; color: #9cc3e6; margin-top: 4px; }
.actions { flex: none; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 24px; border-top: 1px solid var(--line); position: relative; }
.actions .info { flex-basis: 100%; }
.comp { flex: none; padding: 4px 24px 16px; background: var(--panel); }
.sendrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.btn { background: var(--face); border: 0; border-radius: 8px; padding: 7px 14px; color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn:hover { background: #2c3347; }
.btn.p { background: var(--deep); font-weight: 700; } .btn.p:hover { background: #0a6cc4; }
.btn.ok { background: #60BB4626; color: #d6f2cc; }
.btn.g { background: transparent; } .btn.g:hover { background: var(--hover); }
.btn.note { background: #FFCF0617; color: #f1dc8a; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.sm { padding: 4px 10px; font-size: 13.5px; }
.btn.warn { background: #F7941D24; color: #ffd9a6; }
.btn.warn:hover { background: #F7941D3a; }
.btn.logsbtn { background: #0093D81f; color: #cfe6ff; }
.btn.logsbtn:hover { background: #0093D833; }
.info { font-size: 13.5px; color: #cfe6ff; background: #0093D814; border-radius: 8px; padding: 7px 10px; margin: 4px 0; }
.details { background: #11151e; border-radius: 10px; padding: 12px 14px; margin: 6px 0 10px; }
.details .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.chipx { border-radius: 14px; padding: 2px 10px; font-size: 13.5px; background: #AC208E26; color: #e9c3e2; }
.sub2 { font-size: 12.5px; color: var(--ink-off); font-weight: 700; letter-spacing: .4px; margin: 12px 0 4px; text-transform: uppercase; }
.note { background: #FFCF0612; border-radius: 8px; padding: 7px 10px; margin-bottom: 6px; color: #efe3b8; }
.note .h { font-size: 12.5px; color: var(--yellow); font-weight: 700; }
.hist { font-size: 13.5px; color: var(--ink-dim); } .hist b { color: #dfe3ea; }
.file { font-size: 14px; }
.file a { color: #8cc4ff; }

/* Get logs: the requests and their bundles */
.logpulls { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.lp { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-dim); background: #ffffff08; border-radius: 8px; padding: 5px 10px; min-width: 0; }
.lp .lpt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lp.done { color: #d6f2cc; } .lp.warn { color: #ffd9a6; }
.lpi { width: 18px; height: 18px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; }
.lpi.ok { background: #60BB4633; } .lp.warn .lpi { background: #F7941D33; }
.lpi.spin { border: 2px solid #0093D855; border-top-color: var(--azure); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lpi.spin { animation: none; } }

/* pages (in the centre) */
.page h3 { color: #fff; font-size: 16px; margin: 20px 0 6px; }
.prow.big { display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 8px 10px; color: var(--ink); }
.prow.big .pn { font-size: 15px; }
.prow.big .pm { font-size: 13.5px; }
.kpi { font-size: 15px; } .kpi b { font-size: 24px; color: #fff; margin-right: 6px; }
table.t { width: 100%; border-collapse: collapse; margin-top: 10px; white-space: normal; }
table.t td, table.t th { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.form { display: flex; gap: 8px; flex-wrap: wrap; }
.banner { background: #FFCF0614; color: #f1dc8a; border-radius: 8px; padding: 9px 12px; margin: 10px 0; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; max-width: calc(100vw - 32px); background: #232838; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.55); padding: 11px 16px; display: flex; gap: 14px; align-items: center; color: #fff; z-index: 50; }
.toast.error { background: #3a1b20; color: #ffd0d0; }
.toast .undo { background: none; border: 0; color: #8cc4ff; font-weight: 700; }
.locked { max-width: 520px; margin: 15vh auto; padding: 0 16px; text-align: center; }

/* ------------------------------------------------------------------------------- a group's whole chat (centre) --- */
.gchat { position: relative; min-width: 0; }
.chathead .ptitle::before { content: "# "; color: var(--ink-off); font-weight: 400; }
.opsee { display: inline-flex; align-items: center; gap: 7px; border-radius: 14px; padding: 1px 10px; font-size: 13px; }
.opsee.on { color: #cfeec3; background: #60BB461a; } .opsee.off { color: var(--ink-dim); background: #ffffff0d; }
.scroll.chat { padding-top: 4px; }
.start, .older { text-align: center; color: var(--ink-off); font-size: 13px; padding: 12px 0 4px; }
.day { display: flex; align-items: center; gap: 12px; color: var(--ink-off); font-size: 12.5px; font-weight: 600; margin: 14px 0 4px; }
.day::before, .day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cmsg { display: flex; gap: 12px; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; border-left: 3px solid transparent; }
.cmsg:hover { background: #ffffff06; }
.cmsg.open { background: #0093D814; border-left-color: var(--azure); }
.cmsg.compact { padding-top: 0; }
.cmsg .av { width: 34px; height: 34px; flex: none; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: #e6c88a22; color: #e6c88a; }
.cmsg.sup .av { background: #005DAC55; color: #cfe6ff; }
.cmsg.compact .av, .cmsg.sys .av { background: none; height: 0; }
.cbody { flex: 1; min-width: 0; }
.cmsg .w { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; color: #fff; }
.cmsg .w b { font-weight: 700; }
.cmsg.sys { color: var(--ink-off); font-size: 13.5px; }
.cmsg.sys .w { display: none; }
.cmsg.pending { opacity: .6; }
.cfoot { display: flex; gap: 10px; align-items: center; margin-top: 3px; min-height: 0; flex-wrap: wrap; }
.cfoot:empty { display: none; }
.qchip { border: 0; border-radius: 6px; padding: 1px 8px; font-size: 12.5px; font-weight: 600; background: #ffffff14; color: var(--ink-dim); }
.qchip:hover { color: #fff; }
.qchip.waiting { background: #F7941D24; color: #ffd9a6; }
.qchip.u-now { background: #ED1B2F2e; color: #ffb3b3; } .qchip.u-today { background: #F7941D2b; color: #ffd9a6; }
.replies { border: 0; background: none; padding: 0; color: #8cc4ff; font-size: 13px; font-weight: 600; }
.replies.quiet { color: transparent; }
.cmsg:hover .replies.quiet, .replies.quiet:focus-visible { color: var(--ink-off); }
.newpill { position: absolute; left: 50%; transform: translateX(-50%); bottom: 130px; background: var(--deep); color: #fff; border: 0; border-radius: 16px; padding: 6px 14px; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.4); z-index: 5; }
.ccomp textarea { min-height: 52px; }
.ccomp select { padding: 6px 8px; }

/* ----------------------------------------------------------------------------------- Machines (centre + right) --- */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px #60BB4626; } .dot.off { background: #5b6476; }
.machinesview { flex: 1; display: flex; min-width: 0; min-height: 0; }
.machinesview .mlist { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; background: var(--panel); }
.machinesview .mdetail { width: var(--right); flex: none; display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-left: 1px solid var(--line); }
.mhead { flex-wrap: wrap; } .mhead h2 { flex: none; }
.msum { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-dim); font-size: 14px; margin-left: 6px; }
.mfilters { padding: 4px 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.chips { display: flex; gap: 4px; padding: 12px 12px 6px; flex-wrap: wrap; }
.chip { background: transparent; border: 0; border-radius: 16px; padding: 5px 10px; color: var(--ink-dim); display: inline-flex; gap: 7px; align-items: center; font-weight: 600; }
.chip:hover { background: var(--hover); }
.chip.on { background: #0093D833; color: #fff; }
.chip.on .cnt { background: var(--azure); }
.gchips { display: flex; gap: 4px; padding: 2px 14px 10px; flex-wrap: wrap; }
.gchip { background: transparent; border: 1px solid var(--line-strong); border-radius: 14px; padding: 2px 10px; color: var(--ink-dim); font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.gchip.on { border-color: var(--azure); color: #fff; }
.mfilters .chips, .mfilters .gchips { padding-left: 0; padding-right: 0; }
.gchip .flag, .copt .flag, .mcountry .flag, .mfacts .flag { font-size: 15px; }
.gchip .n { color: var(--ink-off); font-size: 12.5px; }
.gchip.warn { border-color: #F7941D66; color: #ffd9a6; }
.mfind { width: 100%; max-width: 420px; margin-top: 4px; }
.mscroll { padding-top: 0; }
.msection { margin-bottom: 14px; }
.mcountry { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px; font-size: 15px; color: #fff; }
.mcountry.none { color: #ffd9a6; }
.mcountry .mut { font-weight: 400; font-size: 13px; }
.mrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; border-radius: 8px; padding: 2px 6px 2px 2px; }
.mrow:hover { background: var(--hover); } .mrow.sel { background: #22304a; }
.mmain { flex: 1 1 260px; min-width: 0; text-align: left; background: none; border: 0; padding: 8px 10px; color: var(--ink); }
.mmain .r1 { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mmain .r1 b { color: #fff; overflow-wrap: anywhere; }
.mrow.offline .mmain .r1 b { color: var(--ink-dim); }
.mseen { color: var(--ink-off); font-size: 13px; white-space: nowrap; }
.mrow.online .mseen { color: #a9dd98; }
.mmain .r2 { display: block; margin: 2px 0 0 18px; font-size: 13.5px; color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.macts { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-left: auto; padding-right: 4px; }
.cpick { flex-basis: 100%; background: #11151e; border-radius: 10px; padding: 10px; margin: 2px 0 8px; display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.cpick input { width: 100%; }
.clist { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; }
.copt { text-align: left; background: none; border: 0; border-radius: 7px; padding: 7px 10px; color: var(--ink); }
.copt:hover, .copt.on { background: #2a3146; } .copt.none { color: var(--ink-dim); font-style: italic; }
.mstatus { display: inline-flex; align-items: center; gap: 7px; } .mstatus.on { color: #cfeec3; }
.mfacts { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 14px; }
.mfacts > div { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.mfacts .k { width: 92px; flex: none; color: var(--ink-off); font-size: 13.5px; }
.mfacts .prow { display: inline-flex; gap: 6px; flex: 1; min-width: 0; } .mfacts .prow input { flex: 1; min-width: 0; }
.mfacts .cpick { margin-left: 104px; }
.item.mq { border-left-width: 4px; }

/* -------------------------------------------------------------------------------------------- narrower desktop --- */
@media (max-width: 1280px) { :root { --right: 400px; } .v-questions .mid { width: 340px; } .search { max-width: 300px; } }
@media (max-width: 1050px) { :root { --side: 216px; --right: 340px; } .logo .an { display: none; } }

/* ------------------------------------------------------------------------------------------------------ phone --- */
@media (max-width: 760px) {
  :root { --top: 52px; }
  .top { gap: 6px; padding: 0 10px; }
  .burger { display: inline-flex; }
  .logo .an, .logo b { display: none; }
  .statusline { padding: 3px 10px; font-size: 13px; flex: 1; justify-content: flex-start; }
  .statusline .link { display: none; }
  .menu .phone-only { display: block; }
  .me { padding: 10px 4px; }
  /* the menu slides in over the page */
  .side { position: fixed; top: var(--top); bottom: 0; left: 0; width: min(86vw, 320px); z-index: 30; transform: translateX(-102%); transition: transform .18s ease-out; box-shadow: 8px 0 30px rgba(0,0,0,.5); }
  .menu-open .side { transform: none; }
  .scrim { display: block; position: fixed; top: var(--top); left: 0; right: 0; bottom: 0; background: #0009; z-index: 29; }
  .snav { min-height: 44px; padding: 8px 12px; font-size: 16px; }
  .people .prow { padding: 8px 12px; }
  .sfoot .link.quiet { padding: 8px 0; font-size: 15px; }
  /* one pane at a time */
  .mid, .conv, .v-questions .mid, .v-questions .conv { width: 100%; flex: 1; border: 0; }
  .body.show-main .conv { display: none; }
  .body.show-conv .mid { display: none; }
  .btn.back { display: inline-flex; padding: 8px 10px; margin: -6px 0 6px -10px; min-height: 40px; }
  .phead, .scroll, .actions, .comp, .lhead { padding-left: 14px; padding-right: 14px; }
  .items { padding-left: 6px; padding-right: 6px; }
  .phead.row { flex-wrap: wrap; }
  .phead { padding-top: 10px; padding-bottom: 8px; }
  .ptitle { font-size: 16.5px; }
  .btn { min-height: 40px; }
  .btn.sm { min-height: 36px; }
  .actions .btn { padding: 9px 12px; }
  .sendrow .btn { flex: 1 1 100%; justify-content: center; padding: 11px; }
  /* the reply box stays above the keyboard: the pane is the screen's height and the box is its last row */
  .comp { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .ccomp .sendrow { flex-wrap: nowrap; }
  .ccomp .sendrow .btn { flex: 0 0 auto; padding: 9px 12px; }
  .ccomp .sendrow select { flex: 1; min-width: 0; min-height: 40px; }
  .ccomp .sendrow .btn.g { padding: 9px 6px; }
  .cmsg { gap: 9px; } .cmsg .av { width: 30px; height: 30px; }
  .newpill { bottom: 120px; }
  .machinesview.show-list .mdetail { display: none; }
  .machinesview.show-detail .mlist { display: none; }
  .machinesview .mdetail { width: 100%; border-left: 0; }
  .mfilters { padding: 2px 8px 6px; }
  .mfilters .chips { gap: 0; }
  .mfacts .cpick { margin-left: 0; }
  .mfacts .k { width: 80px; }
  .macts { margin-left: 18px; padding-bottom: 6px; }
  .mmain { flex-basis: 100%; }
  .toast { bottom: 90px; }
}
.setupcode { margin: 12px 0; padding: 12px; background: var(--face); border-radius: 8px; }
.setupcode code { font-size: 16px; }

/* ---- part 1: pick a machine, the operator page, a person's access, apps on a PC ---- */
.grow { flex: 1; }
.opapp { display: flex; flex-direction: column; height: 100vh; }
.opapp .top { justify-content: space-between; }
.opbody { flex: 1; overflow: auto; }
.v-pick .mid { flex: 1; width: auto; }
.pick { display: flex; justify-content: center; overflow: auto; height: 100%; }
.pick .pcol { width: 760px; max-width: 100%; padding: 30px 16px 40px; }
.pick h1 { font-size: 26px; color: #fff; margin: 0 0 6px; }
.youare { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink-dim); margin-bottom: 14px; }
.role { display: inline-flex; align-items: center; font-size: 13px; border-radius: 6px; padding: 2px 10px; border: 1px solid #1d5f86; background: #0093D81a; color: #cfe6ff; white-space: nowrap; }
.role.off { border-color: var(--line-strong); background: transparent; color: var(--ink-off); }
.role.tog { cursor: pointer; border-color: var(--line-strong); background: transparent; color: var(--ink-dim); }
.role.tog.on { border-color: #1d5f86; background: #0093D833; color: #fff; }
.pchips { padding: 0 0 10px; }
.pfind { width: 100%; margin-bottom: 6px; }
.pcountry { font-size: 13px; letter-spacing: .4px; text-transform: uppercase; color: var(--ink-dim); margin: 18px 0 4px; }
.pmach { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 16px; margin-top: 8px; }
.pmach.idle { background: transparent; border-style: dashed; }
.pmach .pinfo { flex: 1; min-width: 0; }
.pmach .ppc { font-size: 17px; font-weight: 700; color: #fff; }
.pmach.idle .ppc { color: var(--ink-dim); }
.pmach .pplace { font-size: 13.5px; color: var(--ink-dim); }
.pmach .pwhy { font-size: 13px; color: var(--ink-off); text-align: right; max-width: 220px; }
.btn.big { font-size: 16px; padding: 10px 24px; }
.dot.wait { background: var(--yellow); }
.warnt { color: #ffd9a6; font-size: 13px; }
.mwaiting { border: 1px solid #7a6400; background: #FFD1000f; border-radius: 10px; padding: 4px 8px 8px; margin: 6px 10px 10px; }
.mwait { display: flex; align-items: center; gap: 10px; padding: 4px 4px; }
.mwait .mmain { flex: 1; }
.mapps { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.mapp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mapp b { color: #fff; min-width: 60px; }
.pdetail td { background: var(--panel); }
.access { display: flex; flex-direction: column; gap: 14px; padding: 6px 4px; }
.access .at { font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--ink-dim); text-transform: uppercase; margin-bottom: 6px; }
.access .arow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
@media (max-width: 760px) {
  .pick .pcol { padding: 16px 16px 30px; }
  .pick h1 { font-size: 22px; }
  .pmach { padding: 12px 14px; }
  .btn.big { padding: 9px 16px; }
}

/* ---- the own chat: the operator's split view, my chat, role channels ---- */
.opsup { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; margin-right: 14px; }
.opsup.on { color: var(--green); } .opsup.off { color: var(--ink-dim); }
.opbody.split { display: flex; min-height: 0; overflow: hidden; }
.opbody.split .oppick { width: 560px; flex: none; border-right: 1px solid var(--line); overflow: auto; }
.opbody.split .oppick .pick .pcol { width: auto; padding: 24px 26px; }
.opbody.split .opchat { flex: 1; min-width: 0; display: flex; }
.opbody.one .oppick, .opbody.one .opchat { width: 100%; border: 0; }
.opbody.one.show-machines .opchat, .opbody.one.show-chat .oppick { display: none; }
.optabs { display: flex; border-bottom: 1px solid var(--line); }
.optab { flex: 1; background: transparent; border: 0; padding: 12px 0; color: var(--ink-dim); font-size: 15px; }
.optab.on { color: #fff; font-weight: 700; box-shadow: inset 0 -2px 0 var(--azure); }
.optab .n, .ctab .n { background: var(--azure); color: #fff; border-radius: 9px; font-size: 11px; padding: 0 6px; font-weight: 700; margin-left: 6px; }
.mychat { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #12151c; }
.mychat .ctabs { display: flex; gap: 4px; padding: 10px 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mychat .ctab { background: transparent; border: 0; padding: 8px 14px; border-radius: 8px 8px 0 0; color: var(--ink-dim); font-size: 14.5px; }
.mychat .ctab.on { background: var(--panel); color: #fff; font-weight: 700; box-shadow: inset 0 -2px 0 var(--azure); }
.mychat .cexplain { padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-dim); }
.mychat .cexplain b { color: #fff; }
.mychat .ctl { flex: 1; overflow: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.mychat .cm { display: flex; gap: 10px; }
.mychat .cm.reply { margin-left: 38px; }
.mychat .cm.pending { opacity: .55; }
.mychat .av { width: 30px; height: 30px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: #e6c88a; background: #3a3220; flex: none; }
.mychat .av.s { background: #0a4a85; color: #fff; }
.mychat .cb { min-width: 0; }
.mychat .cw { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: #fff; }
.mychat .cw .meta { color: var(--ink-off); font-size: 12px; }
.mychat .tag { font-size: 10.5px; font-weight: 700; color: #8cc4ff; border: 1px solid #1d4d73; border-radius: 3px; padding: 0 4px; }
.mychat .tag.op { color: #e6c88a; border-color: #7a6430; }
.mychat .ct { font-size: 14px; color: #dfe3ea; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.mychat .cacts { display: flex; gap: 12px; font-size: 12px; margin-top: 3px; color: var(--ink-off); }
.mychat .cacts .ok { color: #bfe8a8; }
.mychat .ccomp { border-top: 1px solid var(--line-strong); padding: 10px 16px; background: var(--chrome); }
.mychat textarea { width: 100%; min-height: 44px; resize: vertical; background: var(--input); border: 1px solid var(--azure); border-radius: 8px; padding: 9px 11px; color: #fff; font: inherit; }
.mychat .cbar { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; }
.mychat .replying { font-size: 12.5px; color: var(--ink-dim); margin-bottom: 4px; }
@media (max-width: 760px) { .opsup { display: none; } }

/* ---- channels (v10): the operator's chat list, the lock picker; About this PC (v11) ---- */
.mychat { flex-direction: row; }
.mychat .chans { width: 250px; flex: none; border-right: 1px solid var(--line); padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; background: #10131a; overflow: auto; }
.mychat .chans h4 { margin: 12px 10px 4px; font-size: 11.5px; letter-spacing: .6px; color: var(--ink-dim); font-weight: 700; text-transform: uppercase; }
.mychat .chan { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 7px; color: #c9cfdb; font-size: 14px; background: transparent; border: 0; text-align: left; }
.mychat .chan small { display: block; font-size: 11.5px; color: var(--ink-off); font-weight: 400; }
.mychat .chan.on { background: #253046; color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--azure); }
.mychat .chan .n { margin-left: auto; background: var(--azure); color: #fff; border-radius: 9px; font-size: 11px; padding: 0 6px; font-weight: 700; }
.mychat .cpane { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mychat .cexplain .back { display: none; margin-right: 8px; }
.mychat .cexplain .who { color: #cfe6ff; }
.mychat .cf .file, .mychat .cfiles .file { display: inline-block; margin-right: 10px; color: #8cc4ff; font-size: 13px; }
.mychat .attach { cursor: pointer; }
@media (max-width: 760px) {
  .mychat .chans { width: auto; flex: 1; border-right: 0; }
  .mychat.list-first .cpane { display: none; }
  .mychat.chat-first .chans { display: none; }
  .mychat .cexplain .back { display: inline; }
}
.lockbtn { margin-left: 10px; vertical-align: middle; }
.lockpick { margin: 8px 16px; padding: 12px 14px; border: 1px solid #3a4358; border-radius: 10px; background: var(--panel); display: flex; flex-direction: column; gap: 10px; }
.lockpick .lt { display: flex; flex-direction: column; gap: 2px; }
.lockpick .lt b { color: #fff; }
.lockpick .lpeople { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 12px; max-height: 180px; overflow: auto; }
.lockpick .lperson { display: flex; gap: 6px; align-items: center; font-size: 13.5px; }
.lockpick .lacts { display: flex; gap: 8px; align-items: center; }
.whosees { color: #cfe6ff; }
.about { display: grid; grid-template-columns: 110px 1fr; gap: 5px 8px; font-size: 13.5px; margin: 4px 0 10px; }
.about .k { color: var(--ink-dim); }
.dbar { height: 6px; border-radius: 3px; background: #2a3044; overflow: hidden; width: 120px; display: inline-block; vertical-align: middle; margin-left: 8px; }
.dbar i { display: block; height: 100%; background: var(--green); }
.dbar i.full { background: var(--orange); }
.almost { color: #ffd9a6; margin-left: 6px; }
.vtab { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 4px 0 10px; }
.vtab td, .vtab th { padding: 5px 6px; border-top: 1px solid var(--line); text-align: left; }
.vtab td.k, .vtab th { color: var(--ink-dim); font-weight: 400; }
.vtab .odd { color: #ffd9a6; }
.vtab .pill { font-size: 11px; border-radius: 5px; padding: 1px 6px; border: 1px solid #7a6400; color: #f1dc8a; background: #FFD1001a; margin-left: 6px; }
.logpick { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; margin: 4px 0 8px; font-size: 13.5px; }
.logpick label { display: flex; gap: 6px; align-items: center; }
.logrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-dim); }
.versionsview { padding: 12px 16px; overflow: auto; }
.chathead .lockbtn { float: right; margin: 2px 0 0 10px; }
/* files and a pasted log in the support chat */
.gchat .cf { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.gchat .cf .file { color: #8cc4ff; font-size: 13px; }
.gchat .logblock { display: flex; gap: 8px; align-items: center; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; padding: 4px 8px; border: 1px solid rgba(140,196,255,.35); border-radius: 6px; }
/* who sees a machine (admin) */
.whosees .radio, .whosees .check { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.whosees .vispeople { margin: 4px 0 0 24px; display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow: auto; }
.whosees .vispeople input[type="search"], .whosees .vispeople > input { margin-bottom: 4px; }
