/* The board's look, in two independent layers chosen in Menu -> Board Settings -> Look:
   STYLE (html[data-style]): shapes, type, edges, effects  - classic | modern | future | retro
   THEME (html[data-theme]): colors only                   - classic | midnight | graphite | daylight
   Any style works with any theme. Neither ever moves a window, button or view. */

@font-face { font-family: "Inter"; src: url("/static/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/Inter-Bold.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }

/* Colors every style uses; the Classic theme keeps the board's original colors. */
:root { --hdr-bg: transparent; --panel-bg: var(--panel); --tile-bg: var(--row); --edge: var(--line);
        --input-bg: var(--bg); --seg-on: var(--row); --shadow: rgba(0,0,0,.35); --accent: var(--link); }

/* ===================================== THEMES (colors) ===================================== */

html[data-theme="midnight"] { --bg: #070c18; --panel: #0d1526; --row: #111b30; --line: #1c2843; --text: #e6ecf5; --muted: #8796b0;
  --up: #2fd08f; --down: #ff5f5a; --warn: #f2b443; --link: #7ea6ff; --unk: #6c7a94;
  --hdr-bg: linear-gradient(180deg, rgba(20,34,68,.92), rgba(9,15,30,.92)); --panel-bg: linear-gradient(180deg, #111c34, #0c1426);
  --tile-bg: #101a2f; --edge: #1c2945; --input-bg: #0a1122; --seg-on: #22365f; --shadow: rgba(0,0,0,.5); --accent: #7ea6ff; }
html[data-theme="midnight"] body { background: radial-gradient(1400px 700px at 15% -20%, #142449 0%, transparent 60%), #070c18; }

html[data-theme="graphite"] { --bg: #0e1116; --panel: #13171d; --row: #181d25; --line: #242a33; --text: #e7eaee; --muted: #8a93a0;
  --up: #3fb97f; --down: #e5534b; --warn: #d6a531; --link: #79a8f5; --unk: #6b7480;
  --hdr-bg: #0e1116; --panel-bg: #13171d; --tile-bg: #181d25; --edge: #232932; --input-bg: #101419; --seg-on: #232a35;
  --shadow: rgba(0,0,0,.4); --accent: #9aa7b8; }

html[data-theme="daylight"] { --bg: #eef1f5; --panel: #ffffff; --row: #ffffff; --line: #d3dae3; --text: #18212d; --muted: #5f6b7d;
  --up: #17975c; --down: #d23b37; --warn: #b9770e; --unk: #8a94a3; --link: #2563d6; --watch: #d9701f; --archive: #7c4dd8;
  --hdr-bg: #ffffff; --panel-bg: #ffffff; --tile-bg: #ffffff; --edge: #e1e6ed; --input-bg: #ffffff; --seg-on: #ffffff;
  --shadow: rgba(16,24,40,.08); --accent: #2563d6; color-scheme: light; }
html[data-theme="daylight"] body { background: #eef1f5; }
html[data-theme="daylight"] .brand img { filter: brightness(0) saturate(100%); opacity: .85; }
html[data-theme="daylight"] .hbadge { color: #8a5a00 !important; }
html[data-theme="daylight"] .sys.crestron { color: #b03a78 !important; } html[data-theme="daylight"] .sys.unifi { color: #1d5fc9 !important; }
html[data-theme="daylight"] .sys.ovrc { color: #6b3fc9 !important; } html[data-theme="daylight"] .sys.lutron { color: #12807f !important; }
html[data-theme="daylight"] .alert { background: #fbfcfe !important; }
html[data-theme="daylight"] .seg { background: #f3f5f8; }
html[data-theme="daylight"] .seg button[aria-pressed="true"] { box-shadow: 0 1px 2px rgba(16,24,40,.12); }

/* Any theme other than Classic paints the board's surfaces with its colors. */
html[data-theme]:not([data-theme="classic"]) header { background: var(--hdr-bg); border-bottom-color: var(--edge); }
html[data-theme]:not([data-theme="classic"]) .panel { background: var(--panel-bg); border-color: var(--edge); }
html[data-theme]:not([data-theme="classic"]) .tile, html[data-theme]:not([data-theme="classic"]) .ctile { background: var(--tile-bg); }
html[data-theme]:not([data-theme="classic"]) .seg button[aria-pressed="true"] { background: var(--seg-on); color: var(--text); }
html[data-theme]:not([data-theme="classic"]) input, html[data-theme]:not([data-theme="classic"]) select,
html[data-theme]:not([data-theme="classic"]) textarea { background: var(--input-bg); border-color: var(--edge); color: var(--text); }

/* ===================================== STYLES (look and feel) ===================================== */

/* ---- Modern: the looks first made in 2026.10.29-42, one per theme.
        Modern + Classic theme = the board exactly as it was originally. ---- */
/* Modern + midnight */
html[data-style="modern"][data-theme="midnight"] body { font-family: "Inter", "Segoe UI", system-ui, sans-serif; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; letter-spacing: -0.005em; }
html[data-style="modern"][data-theme="midnight"] h1, html[data-style="modern"][data-theme="midnight"] h2, html[data-style="modern"][data-theme="midnight"] h3 { letter-spacing: -0.015em; }
html[data-style="modern"][data-theme="midnight"] .ptitle h2 { font-size: 16px; font-weight: 650; }
html[data-style="modern"][data-theme="midnight"] .clock .time, html[data-style="modern"][data-theme="midnight"] .wseccount, html[data-style="modern"][data-theme="midnight"] .tstatus .for { font-variant-numeric: tabular-nums; }
html[data-style="modern"][data-theme="midnight"] .wsechead { font-size: 11px !important; letter-spacing: .09em; font-weight: 650; }
html[data-style="modern"][data-theme="midnight"] .btn, html[data-style="modern"][data-theme="midnight"] .seg button, html[data-style="modern"][data-theme="midnight"] .chip, html[data-style="modern"][data-theme="midnight"] select, html[data-style="modern"][data-theme="midnight"] input { transition: background .15s, color .15s, border-color .15s; }
html[data-style="modern"][data-theme="midnight"] .tile, html[data-style="modern"][data-theme="midnight"] .ctile { transition: box-shadow .2s, transform .2s; }
html[data-style="modern"][data-theme="midnight"] { --bg: #070c18; --panel: #0d1526; --row: #111b30; --line: #1c2843; --text: #e6ecf5; --muted: #8796b0;
        --up: #2fd08f; --down: #ff5f5a; --warn: #f2b443; --link: #7ea6ff; --unk: #6c7a94; }
html[data-style="modern"][data-theme="midnight"] body { background: radial-gradient(1400px 700px at 15% -20%, #142449 0%, transparent 60%), #070c18; }
html[data-style="modern"][data-theme="midnight"] header { background: linear-gradient(180deg, rgba(20,34,68,.9), rgba(9,15,30,.9)); border-bottom: 1px solid #1a2746; box-shadow: 0 1px 0 rgba(126,166,255,.10), 0 8px 24px rgba(0,0,0,.35); }
html[data-style="modern"][data-theme="midnight"] h1 { font-weight: 700; letter-spacing: .01em; }
html[data-style="modern"][data-theme="midnight"] .panel { border-radius: 16px; border: 1px solid #1a2643; background: linear-gradient(180deg, rgba(17,28,52,.92), rgba(12,20,38,.95)); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
html[data-style="modern"][data-theme="midnight"] .panel.unifi, html[data-style="modern"][data-theme="midnight"] .panel.ovrc, html[data-style="modern"][data-theme="midnight"] .panel.lutron, html[data-style="modern"][data-theme="midnight"] .panel.crestron, html[data-style="modern"][data-theme="midnight"] .panel.contract, html[data-style="modern"][data-theme="midnight"] .panel.watchp, html[data-style="modern"][data-theme="midnight"] #panel-sites { border-top-width: 2px !important; }
html[data-style="modern"][data-theme="midnight"] .tile { border-radius: 14px; background: #101a2f; border: 1px solid #1c2945; }
html[data-style="modern"][data-theme="midnight"] .tile.down { background: linear-gradient(180deg, rgba(255,95,90,.10), rgba(255,95,90,.02) 45%), #101a2f; border-color: rgba(255,95,90,.35); box-shadow: 0 0 0 1px rgba(255,95,90,.08), 0 8px 28px rgba(255,95,90,.12); }
html[data-style="modern"][data-theme="midnight"] .tile.warn { background: linear-gradient(180deg, rgba(242,180,67,.09), transparent 45%), #101a2f; border-color: rgba(242,180,67,.30); }
html[data-style="modern"][data-theme="midnight"] .tile.watch { background: linear-gradient(180deg, rgba(242,146,75,.10), transparent 45%), #101a2f; border-color: rgba(242,146,75,.35); }
html[data-style="modern"][data-theme="midnight"] .tile.ok { border-color: rgba(47,208,143,.18); }
html[data-style="modern"][data-theme="midnight"] .tile .th { border-bottom-color: #1a2643 !important; }
html[data-style="modern"][data-theme="midnight"] .tstatus .big { font-size: 17px !important; }
html[data-style="modern"][data-theme="midnight"] .ctile { border-radius: 12px; background: #101a2f; border: 1px solid #1c2945; }
html[data-style="modern"][data-theme="midnight"] .seg { border-radius: 999px; border-color: #22304f; background: rgba(10,17,33,.6); }
html[data-style="modern"][data-theme="midnight"] .seg button { padding: 5px 13px; }
html[data-style="modern"][data-theme="midnight"] .seg button[aria-pressed="true"] { background: linear-gradient(180deg, #2a3f72, #1f3058); color: #fff; }
html[data-style="modern"][data-theme="midnight"] .btn { border-radius: 999px; padding: 3px 12px; }
html[data-style="modern"][data-theme="midnight"] .chip { border-color: #22304f; }
html[data-style="modern"][data-theme="midnight"] input, html[data-style="modern"][data-theme="midnight"] select { background: rgba(7,12,24,.7) !important; border-color: #22304f !important; border-radius: 999px !important; padding-left: 12px !important; }
html[data-style="modern"][data-theme="midnight"] .wsechead { text-transform: uppercase; }
/* Modern + graphite */
html[data-style="modern"][data-theme="graphite"] body { font-family: "Inter", "Segoe UI", system-ui, sans-serif; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; letter-spacing: -0.005em; }
html[data-style="modern"][data-theme="graphite"] h1, html[data-style="modern"][data-theme="graphite"] h2, html[data-style="modern"][data-theme="graphite"] h3 { letter-spacing: -0.015em; }
html[data-style="modern"][data-theme="graphite"] .ptitle h2 { font-size: 16px; font-weight: 650; }
html[data-style="modern"][data-theme="graphite"] .clock .time, html[data-style="modern"][data-theme="graphite"] .wseccount, html[data-style="modern"][data-theme="graphite"] .tstatus .for { font-variant-numeric: tabular-nums; }
html[data-style="modern"][data-theme="graphite"] .wsechead { font-size: 11px !important; letter-spacing: .09em; font-weight: 650; }
html[data-style="modern"][data-theme="graphite"] .btn, html[data-style="modern"][data-theme="graphite"] .seg button, html[data-style="modern"][data-theme="graphite"] .chip, html[data-style="modern"][data-theme="graphite"] select, html[data-style="modern"][data-theme="graphite"] input { transition: background .15s, color .15s, border-color .15s; }
html[data-style="modern"][data-theme="graphite"] .tile, html[data-style="modern"][data-theme="graphite"] .ctile { transition: box-shadow .2s, transform .2s; }
html[data-style="modern"][data-theme="graphite"] { --bg: #0e1116; --panel: #13171d; --row: #181d25; --line: #242a33; --text: #e7eaee; --muted: #8a93a0;
        --up: #3fb97f; --down: #e5534b; --warn: #d6a531; --link: #79a8f5; --unk: #6b7480; }
html[data-style="modern"][data-theme="graphite"] header { background: #0e1116; border-bottom: 1px solid #1d222a; }
html[data-style="modern"][data-theme="graphite"] .panel { border-radius: 10px; border: 1px solid #20262f; box-shadow: none; }
html[data-style="modern"][data-theme="graphite"] .panel.unifi, html[data-style="modern"][data-theme="graphite"] .panel.ovrc, html[data-style="modern"][data-theme="graphite"] .panel.lutron, html[data-style="modern"][data-theme="graphite"] .panel.crestron, html[data-style="modern"][data-theme="graphite"] .panel.contract, html[data-style="modern"][data-theme="graphite"] .panel.watchp, html[data-style="modern"][data-theme="graphite"] #panel-sites { border-top-width: 2px !important; }
html[data-style="modern"][data-theme="graphite"] #panel-links, html[data-style="modern"][data-theme="graphite"] #panel-alerts, html[data-style="modern"][data-theme="graphite"] #panel-map { border-top: 1px solid #20262f !important; }
html[data-style="modern"][data-theme="graphite"] .ptitle h2 { font-size: 15px; font-weight: 600; }
html[data-style="modern"][data-theme="graphite"] .tile { border-radius: 8px; background: #181d25; border: 1px solid #222832; }
html[data-style="modern"][data-theme="graphite"] .tile.down { box-shadow: inset 3px 0 0 var(--down); }
html[data-style="modern"][data-theme="graphite"] .tile.warn { box-shadow: inset 3px 0 0 var(--warn); }
html[data-style="modern"][data-theme="graphite"] .tile.watch { box-shadow: inset 3px 0 0 var(--watch); }
html[data-style="modern"][data-theme="graphite"] .tile .th h3 { font-weight: 600; font-size: 14.5px; }
html[data-style="modern"][data-theme="graphite"] .tstatus .big { font-size: 15.5px !important; font-weight: 600 !important; }
html[data-style="modern"][data-theme="graphite"] .btn { border-radius: 6px; font-weight: 500; }
html[data-style="modern"][data-theme="graphite"] .btn:not(.quiet):not(.primary):not(.danger) { background: transparent; }
html[data-style="modern"][data-theme="graphite"] .seg { border-radius: 7px; border-color: #262c36; }
html[data-style="modern"][data-theme="graphite"] .seg button { color: #8a93a0; }
html[data-style="modern"][data-theme="graphite"] .seg button[aria-pressed="true"] { background: #222934; color: #fff; }
html[data-style="modern"][data-theme="graphite"] .chip { border-color: #2a313c; }
html[data-style="modern"][data-theme="graphite"] input, html[data-style="modern"][data-theme="graphite"] select { background: #101419 !important; border-color: #262c36 !important; border-radius: 6px !important; }
html[data-style="modern"][data-theme="graphite"] .wsechead { text-transform: uppercase; }
/* Modern + daylight */
html[data-style="modern"][data-theme="daylight"] body { font-family: "Inter", "Segoe UI", system-ui, sans-serif; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; letter-spacing: -0.005em; }
html[data-style="modern"][data-theme="daylight"] h1, html[data-style="modern"][data-theme="daylight"] h2, html[data-style="modern"][data-theme="daylight"] h3 { letter-spacing: -0.015em; }
html[data-style="modern"][data-theme="daylight"] .ptitle h2 { font-size: 16px; font-weight: 650; }
html[data-style="modern"][data-theme="daylight"] .clock .time, html[data-style="modern"][data-theme="daylight"] .wseccount, html[data-style="modern"][data-theme="daylight"] .tstatus .for { font-variant-numeric: tabular-nums; }
html[data-style="modern"][data-theme="daylight"] .wsechead { font-size: 11px !important; letter-spacing: .09em; font-weight: 650; }
html[data-style="modern"][data-theme="daylight"] .btn, html[data-style="modern"][data-theme="daylight"] .seg button, html[data-style="modern"][data-theme="daylight"] .chip, html[data-style="modern"][data-theme="daylight"] select, html[data-style="modern"][data-theme="daylight"] input { transition: background .15s, color .15s, border-color .15s; }
html[data-style="modern"][data-theme="daylight"] .tile, html[data-style="modern"][data-theme="daylight"] .ctile { transition: box-shadow .2s, transform .2s; }
html[data-style="modern"][data-theme="daylight"] { --bg: #eef1f5; --panel: #ffffff; --row: #ffffff; --line: #d3dae3; --text: #18212d; --muted: #5f6b7d;
        --up: #17975c; --down: #d23b37; --warn: #b9770e; --unk: #8a94a3; --link: #2563d6; --watch: #d9701f; color-scheme: light; }
html[data-style="modern"][data-theme="daylight"] body { background: #eef1f5; }
html[data-style="modern"][data-theme="daylight"] header { background: #ffffff; border-bottom: 1px solid #e3e8ef; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
html[data-style="modern"][data-theme="daylight"] .panel { border-radius: 12px; border: 1px solid #e3e8ef; box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 10px 28px rgba(16,24,40,.06); }
html[data-style="modern"][data-theme="daylight"] .panel.unifi, html[data-style="modern"][data-theme="daylight"] .panel.ovrc, html[data-style="modern"][data-theme="daylight"] .panel.lutron, html[data-style="modern"][data-theme="daylight"] .panel.crestron, html[data-style="modern"][data-theme="daylight"] .panel.contract, html[data-style="modern"][data-theme="daylight"] .panel.watchp, html[data-style="modern"][data-theme="daylight"] #panel-sites { border-top-width: 3px !important; }
html[data-style="modern"][data-theme="daylight"] .tile, html[data-style="modern"][data-theme="daylight"] .ctile { background: #ffffff; border: 1px solid #e3e8ef; box-shadow: 0 1px 3px rgba(16,24,40,.06); border-radius: 10px; }
html[data-style="modern"][data-theme="daylight"] .tile.down { box-shadow: inset 0 3px 0 var(--down), 0 1px 3px rgba(16,24,40,.06); }
html[data-style="modern"][data-theme="daylight"] .tile.warn { box-shadow: inset 0 3px 0 var(--warn), 0 1px 3px rgba(16,24,40,.06); }
html[data-style="modern"][data-theme="daylight"] .tile.watch { box-shadow: inset 0 3px 0 var(--watch), 0 1px 3px rgba(16,24,40,.06); }
html[data-style="modern"][data-theme="daylight"] .tile.ok { box-shadow: inset 0 3px 0 var(--up), 0 1px 3px rgba(16,24,40,.06); }
html[data-style="modern"][data-theme="daylight"] .tile .th { border-bottom-color: #eef1f5 !important; }
html[data-style="modern"][data-theme="daylight"] .tile .tbody, html[data-style="modern"][data-theme="daylight"] .tile .member, html[data-style="modern"][data-theme="daylight"] .lutronalerts, html[data-style="modern"][data-theme="daylight"] .unmonnote { color: var(--text); }
html[data-style="modern"][data-theme="daylight"] .seg { background: #f3f5f8; border-color: #dde3ea; border-radius: 8px; }
html[data-style="modern"][data-theme="daylight"] .seg button[aria-pressed="true"] { background: #ffffff; box-shadow: 0 1px 2px rgba(16,24,40,.10); color: #18212d; }
html[data-style="modern"][data-theme="daylight"] .btn { border-radius: 6px; }
html[data-style="modern"][data-theme="daylight"] .btn.quiet { background: #fff; color: #3d4757; }
html[data-style="modern"][data-theme="daylight"] input, html[data-style="modern"][data-theme="daylight"] select { background: #fff !important; border-color: #dde3ea !important; color: #18212d !important; border-radius: 7px !important; }
html[data-style="modern"][data-theme="daylight"] .hbadge { color: #8a5a00 !important; }
html[data-style="modern"][data-theme="daylight"] .sys.crestron { color: #b03a78 !important; }
html[data-style="modern"][data-theme="daylight"] .sys.unifi { color: #1d5fc9 !important; }
html[data-style="modern"][data-theme="daylight"] .sys.ovrc { color: #6b3fc9 !important; }
html[data-style="modern"][data-theme="daylight"] .sys.lutron { color: #12807f !important; }
html[data-style="modern"][data-theme="daylight"] .alert { background: #fbfcfe !important; color: var(--text); }
html[data-style="modern"][data-theme="daylight"] .wsechead { text-transform: uppercase; }
html[data-style="modern"][data-theme="daylight"] .brand img { filter: brightness(0) saturate(100%); opacity: .85; }

/* ---- Future: control-room HUD. Squared edges, glowing outlines, corner brackets, wide caps ---- */
html[data-style="future"] body { font-family: "Inter", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  background-image: linear-gradient(color-mix(in srgb, var(--accent) 5%, transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in srgb, var(--accent) 5%, transparent) 1px, transparent 1px);
  background-size: 32px 32px; }
html[data-style="future"] h1 { text-transform: uppercase; letter-spacing: .18em; font-weight: 600; font-size: 17px; }
html[data-style="future"] .ptitle h2 { text-transform: uppercase; letter-spacing: .14em; font-size: 13.5px; font-weight: 600; }
html[data-style="future"] .clock .time { font-family: "Cascadia Mono", "Consolas", "DejaVu Sans Mono", monospace; letter-spacing: .06em; text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent); }
html[data-style="future"] .wsechead { font-size: 11px !important; letter-spacing: .2em; text-transform: uppercase; }
html[data-style="future"] .panel { border-radius: 3px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--edge));
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 0 30px color-mix(in srgb, var(--accent) 10%, transparent); }
html[data-style="future"] .panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(var(--accent), var(--accent)) top left / 16px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) top left / 2px 16px no-repeat,
              linear-gradient(var(--accent), var(--accent)) bottom right / 16px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) bottom right / 2px 16px no-repeat; }
html[data-style="future"] main:not(.free) .panel { position: relative; }
html[data-style="future"] .tile { border-radius: 2px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--edge)); }
html[data-style="future"] .tile .th h3 { letter-spacing: .02em; }
html[data-style="future"] .tstatus .big { text-transform: uppercase; letter-spacing: .06em; font-size: 15px !important; }
html[data-style="future"] .tile.down { border-color: var(--down); box-shadow: 0 0 18px color-mix(in srgb, var(--down) 30%, transparent), inset 0 0 22px color-mix(in srgb, var(--down) 8%, transparent); }
html[data-style="future"] .tile.warn { border-color: color-mix(in srgb, var(--warn) 70%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--warn) 20%, transparent); }
html[data-style="future"] .tile.watch { border-color: color-mix(in srgb, var(--watch) 70%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--watch) 22%, transparent); }
html[data-style="future"] .sdot { box-shadow: 0 0 8px currentColor; }
html[data-style="future"] .ctile { border-radius: 2px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--edge)); }
html[data-style="future"] .seg, html[data-style="future"] .btn, html[data-style="future"] .chip,
html[data-style="future"] input, html[data-style="future"] select { border-radius: 2px; }
html[data-style="future"] .btn, html[data-style="future"] .seg button, html[data-style="future"] .chip { text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; }
html[data-style="future"] .seg button[aria-pressed="true"] { box-shadow: inset 0 -2px 0 var(--accent); }

/* ---- Retro: old-school terminal. Monospace, square, chunky borders, hard shadows, faint scanlines ---- */
html[data-style="retro"] body { font-family: "Cascadia Mono", "Consolas", "DejaVu Sans Mono", "Courier New", monospace; font-size: 14px; letter-spacing: 0; }
html[data-style="retro"] h1, html[data-style="retro"] .ptitle h2, html[data-style="retro"] .wsechead { text-transform: uppercase; letter-spacing: .06em; }
html[data-style="retro"] .panel { border-radius: 0; border: 2px solid var(--edge); box-shadow: 6px 6px 0 var(--shadow); }
html[data-style="retro"] .panel.unifi, html[data-style="retro"] .panel.ovrc, html[data-style="retro"] .panel.lutron,
html[data-style="retro"] .panel.crestron, html[data-style="retro"] .panel.contract, html[data-style="retro"] .panel.watchp { border-top-width: 6px; }
html[data-style="retro"] .tile { border-radius: 0; border: 2px solid var(--edge); box-shadow: 4px 4px 0 var(--shadow); }
html[data-style="retro"] .tile.down { border-color: var(--down); } html[data-style="retro"] .tile.warn { border-color: var(--warn); }
html[data-style="retro"] .tile.watch { border-color: var(--watch); }
html[data-style="retro"] .tstatus .big { text-transform: uppercase; font-size: 15px !important; }
html[data-style="retro"] .sdot, html[data-style="retro"] .wsecdot { border-radius: 0 !important; }
html[data-style="retro"] .ctile { border-radius: 0; border: 2px solid var(--edge); }
html[data-style="retro"] .seg, html[data-style="retro"] .btn, html[data-style="retro"] .chip, html[data-style="retro"] input,
html[data-style="retro"] select, html[data-style="retro"] textarea, html[data-style="retro"] .menubtn, html[data-style="retro"] .lbadge,
html[data-style="retro"] .hbadge, html[data-style="retro"] .sys, html[data-style="retro"] .iptag { border-radius: 0 !important; }
html[data-style="retro"] .btn, html[data-style="retro"] .menubtn { border-width: 2px; text-transform: uppercase; }
html[data-style="retro"] .btn:active { transform: translate(2px, 2px); }
html[data-style="retro"] .clock .time { letter-spacing: .04em; }
html[data-style="retro"]:not([data-theme="daylight"]) .tstatus .big, html[data-style="retro"]:not([data-theme="daylight"]) .clock .time { text-shadow: 0 0 6px currentColor; }
html[data-style="retro"] body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.07) 0 1px, transparent 1px 3px); }
html[data-style="retro"][data-theme="daylight"] body::after { background: repeating-linear-gradient(0deg, rgba(0,0,0,.025) 0 1px, transparent 1px 3px); }/* ---------- Being worked on: one color (2026.10.29-47) ----------
   Everything in the "Being worked on" section uses the section's blue, in every
   style and theme: the status text, its dot, the edge and the outline. The red is
   for problems nobody is on yet. */
.wsec-work .tile .tstatus .big, .wsec-work .loclist .lstat, .wsec-work .ctile .cstat, the edge and the outline. The red is
   for problems nobody is on yet. */
.wsec-maint .tile .tstatus .big, .wsec-maint .loclist .lstat, .wsec-maint .ctile .cstat { color: var(--link) !important; }.wsec-work .tile, .wsec-maint .tile { box-shadow: inset 4px 0 0 var(--link) !important; border-color: color-mix(in srgb, var(--link) 35%, var(--line)) !important; }.wsec-work .tile.down, .wsec-maint .tile.down { background: linear-gradient(180deg, color-mix(in srgb, var(--link) 9%, transparent), transparent 45%), var(--panel) !important; }.wsec-work .ctile, .wsec-maint .ctile { box-shadow: inset 4px 0 0 var(--link) !important; border-color: color-mix(in srgb, var(--link) 35%, var(--line)) !important; }.wsec-work .loclist .lbar, .wsec-maint .loclist .lbar { background: var(--link) !important; }html[data-style="future"] .wsec-work .tile, html[data-style="future"] .wsec-maint .tile { box-shadow: 0 0 18px color-mix(in srgb, var(--link) 25%, transparent) !important; }html[data-style="retro"] .wsec-work .tile, html[data-style="retro"] .wsec-maint .tile { box-shadow: 4px 4px 0 color-mix(in srgb, var(--link) 45%, transparent) !important; }

/* ---------- Daylight: clearer window edges (2026.10.29-48) ----------
   Every window gets a darker outline and a slightly deeper shadow, so windows stand
   apart from the light background. The colored top edge of each system window stays. */
html[data-theme="daylight"] .panel { border-left-color: #aeb9c7 !important; border-right-color: #aeb9c7 !important; border-bottom-color: #aeb9c7 !important;
  border-left-width: 1px !important; border-right-width: 1px !important; border-bottom-width: 1px !important; border-style: solid !important;
  box-shadow: 0 1px 2px rgba(16,24,40,.10), 0 8px 24px rgba(16,24,40,.10) !important; }
html[data-theme="daylight"] .panel:not(.unifi):not(.ovrc):not(.lutron):not(.crestron):not(.watchp):not(#panel-sites) { border-top-color: #aeb9c7 !important; border-top-width: 1px !important; }
html[data-theme="daylight"] .tile, html[data-theme="daylight"] .ctile { border-color: #c3ccd8 !important; }
html[data-theme="daylight"] .phead { border-bottom-color: #d3dae3 !important; }
html[data-theme="daylight"] .filters { border-color: #c3ccd8 !important; }

/* Status Options: one drop-down for Maintenance and Watch */
.sopts { position: relative; display: inline-block; }
.sopts > summary { list-style: none; cursor: pointer; }
.sopts > summary::-webkit-details-marker { display: none; }
.sopts-menu { position: absolute; right: 0; top: 100%; margin-top: 4px; z-index: 20; min-width: 190px; display: flex; flex-direction: column;
  background: var(--panel, #fff); color: inherit; border: 1px solid var(--line, #d5dde6); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.18); padding: 4px; }
.sopts-item { background: none; border: 0; text-align: left; padding: 8px 10px; border-radius: 6px; cursor: pointer; font: inherit; color: inherit; }
.sopts-item:hover, .sopts-item:focus-visible { background: rgba(127,127,127,.18); }

/* Menu -> Services Status (services.js) */
.svc-wrap { padding: 10px 0; min-width: 0; }
.svc-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.svc-head h3 { margin: 0; }
.svc-when { color: var(--unk); }
.svc-sub { margin: 16px 0 6px; font-size: 0.95em; }
.svc-list { display: grid; gap: 6px; }
.svc-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 8px 10px; border-radius: 8px; background: var(--panel, rgba(127,127,127,.08)); }
.svc-main { min-width: 0; display: grid; gap: 2px; }
.svc-main small { color: var(--unk); overflow-wrap: anywhere; }
.svc-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.svc-link { color: var(--link); }
.svc-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--unk); display: inline-block; }
.svc-dot.up { background: var(--up); }
.svc-dot.warn { background: var(--warn); }
.svc-dot.down { background: var(--down); }
.svc-dot.maint { background: #5b8fd9; }
.svc-r2 { grid-template-columns: 14px minmax(0, 1fr); }
.svc-r2 .svc-links { grid-column: 2; justify-content: flex-start; align-items: center; gap: 8px 14px; }
.svc-srcs { display: grid; gap: 3px; margin-top: 4px; }
.svc-src { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.svc-src .svc-dot { width: 9px; height: 9px; }
.svc-find { display: grid; gap: 6px; }
.svc-add { margin-top: 18px; display: grid; gap: 8px; }
.svc-addrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.svc-addrow input, .svc-addrow select { min-width: 0; max-width: 100%; }
@media (max-width: 600px) {
  .svc-row { grid-template-columns: 14px minmax(0, 1fr); }
  .svc-links { grid-column: 2; justify-content: flex-start; }
}

/* Services Status: the Section box on each row */
.svc-sect { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; }
.svc-sect select { min-height: 32px; }

/* Reminders: their own window and the Overview box (never red: a calm blue-grey badge) */
.rembadge { background: var(--chip, #e6ecf3); color: var(--ink, #1f2a37); }
.alert.reminder { border-left: 4px solid #6b8fb3; }
.remrow { margin: 4px 0; line-height: 1.5; }
.rembox .pacts { margin-top: 6px; }

.remthread { margin: 4px 0; } .remthread textarea { width: 100%; box-sizing: border-box; } .remreply { margin: 4px 0 4px 8px; padding-left: 8px; border-left: 2px solid var(--line, #8884); }

.sopts-item[disabled] { opacity: .45; cursor: not-allowed; }

/* Site Visit Required: the first section, a strong focal point */
:root { --visit: #c2185b; }
html[data-theme="dark"] { --visit: #ff6fa5; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) { --visit: #ff6fa5; } }
.wsec-visit .wsecdot { background: var(--visit); } .wsec-visit .wsechead { color: var(--visit); border-bottom-color: color-mix(in srgb, var(--visit) 50%, transparent); font-weight: 700; }
.wsec-visit .tile .tstatus .big, .wsec-visit .loclist .lstat, .wsec-visit .ctile .cstat { color: var(--visit) !important; }
.wsec-visit .tile, .wsec-visit .ctile { box-shadow: inset 5px 0 0 var(--visit) !important; border-color: color-mix(in srgb, var(--visit) 45%, var(--line)) !important; background: linear-gradient(180deg, color-mix(in srgb, var(--visit) 8%, transparent), transparent 50%), var(--panel) !important; }
.wsec-visit .loclist .lbar { background: var(--visit) !important; }
.s-visit { background: var(--visit); }
.visitline { color: var(--visit); }
/* Project items (Sales, Installation, QC, Termination, Finish): same look as Site Visit Required, in teal */
:root { --project: #00838f; }
html[data-theme="dark"] { --project: #4dd0e1; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) { --project: #4dd0e1; } }
.wsec-project .wsecdot { background: var(--project); } .wsec-project .wsechead { color: var(--project); border-bottom-color: color-mix(in srgb, var(--project) 50%, transparent); font-weight: 700; }
.wsec-project .tile .tstatus .big, .wsec-project .loclist .lstat, .wsec-project .ctile .cstat { color: var(--project) !important; }
.wsec-project .tile, .wsec-project .ctile { box-shadow: inset 5px 0 0 var(--project) !important; border-color: color-mix(in srgb, var(--project) 45%, var(--line)) !important; background: linear-gradient(180deg, color-mix(in srgb, var(--project) 8%, transparent), transparent 50%), var(--panel) !important; }
.wsec-project .loclist .lbar { background: var(--project) !important; }
.s-project { background: var(--project); }
.wsec-project .visitline { color: var(--project); }

.visitbox { border-left: 4px solid var(--visit); } .visitreport { white-space: pre-wrap; margin: 6px 0; padding: 8px 10px; background: color-mix(in srgb, var(--visit) 7%, transparent); border-radius: 6px; }

/* Site visit notes and earlier visits */
.vthread { margin-top: 8px; display: grid; gap: 6px; }
.remreply.vauto { opacity: .8; font-style: italic; }
.vhost { display: grid; gap: 8px; }
.vcard > summary { cursor: pointer; }
.vpast > summary { margin: 4px 0; }
.vthread textarea { width: 100%; box-sizing: border-box; }

/* Email signature editor */
.sigbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 6px 0; }
.sigbar select, .sigbar input[type=color] { height: 30px; }
.sigbtn { padding: 2px 8px; min-width: 32px; }
.sigpaper { background: #fff; color: #000; border: 1px solid var(--line, #8886); border-radius: 6px; padding: 10px; }
.sigedit { min-height: 110px; outline: none; font-family: Arial, sans-serif; font-size: 14px; }
.sigsrc { width: 100%; box-sizing: border-box; font-family: monospace; }

/* Calendar */
.cal-wrap { display: grid; gap: 10px; }
.calbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .calbar h3 { margin: 0 6px; } .calspacer { flex: 1; }
.calfilters { display: flex; flex-wrap: wrap; gap: 6px; } .calfilters .chip[aria-pressed="true"] { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line, #8883); border: 1px solid var(--line, #8883); border-radius: 8px; overflow: hidden; }
.calhead { background: var(--panel, #0002); padding: 4px; font-size: 12px; text-align: center; opacity: .8; }
.calcell { background: var(--bg, #111); min-height: 92px; padding: 3px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; overflow: hidden; }
.calcell.other { opacity: .5; } .calcell.today .calnum { background: var(--accent, #3b82f6); color: #fff; border-radius: 999px; padding: 0 6px; } .calcell.sel { outline: 2px solid var(--accent, #3b82f6); outline-offset: -2px; }
.calnum { font-size: 12px; align-self: flex-start; }
.calchip { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); color: inherit; font: inherit; font-size: 11px; padding: 1px 4px; border-radius: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.calmore { font-size: 11px; opacity: .7; }
.calday { border: 1px solid var(--line, #8883); border-radius: 8px; padding: 8px 10px; display: grid; gap: 4px; }
.calagenda { display: grid; gap: 8px; }
.calrow { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; } .caltime { min-width: 72px; font-size: 12px; opacity: .8; }
.caldot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.calpanel { border: 1px solid var(--line, #8883); border-radius: 8px; padding: 10px; display: grid; gap: 8px; }
.calsrc { display: grid; gap: 4px; padding: 6px 0; border-top: 1px solid var(--line, #8882); }
.calpanel input[type=text] { width: 100%; box-sizing: border-box; }
.caldlg { max-width: 520px; } .caldlg label { display: block; margin: 6px 0; } .caldlg input[type=text], .caldlg textarea, .caldlg select { width: 100%; box-sizing: border-box; }
.caldl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 6px 0; } .caldl dt { opacity: .7; } .caldl dd { margin: 0; }
@media (max-width: 700px) { .calcell { min-height: 64px; } .calchip small { display: none; } }
.caldlg label.chk { display: flex; gap: 8px; align-items: center; } .caldlg label.chk input { width: auto; }

/* Not installed / Move to main list: a gap after the Notes button */
.nibtn { margin-left: 14px; margin-right: 10px; }
.vfocus { outline: 2px solid var(--visit); outline-offset: 3px; border-radius: 6px; }

/* DWService Screen / Files buttons and the computers list */
.dws-btns { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dws-sel { max-width: 150px; }
.dws-list { max-height: 360px; overflow: auto; border: 1px solid var(--line, #2b3d55); border-radius: 8px; margin: 6px 0; }
.dws-row { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; padding: 7px 10px; border-bottom: 1px solid var(--line, #2b3d55); flex-wrap: wrap; }
.dws-row.gone { opacity: .65; }
.dws-name small { display: block; opacity: .7; }
.dws-where { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dws-link { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.dws-link input { width: 170px; }
.dws-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7d8896; margin-right: 5px; flex: none; }
.dws-dot.on { background: var(--up, #3ccf6e); box-shadow: 0 0 0 2px color-mix(in srgb, var(--up, #3ccf6e) 25%, transparent); }
.dws-dot.off { background: var(--down, #e5534b); }
.dws-dot.warn { background: var(--warn, #f2b443); box-shadow: 0 0 0 2px color-mix(in srgb, var(--warn, #f2b443) 25%, transparent); }
.dws-dot.muted { background: transparent; box-shadow: inset 0 0 0 1px #7d8896; }
.wodot.off { background: var(--down, #e5534b); box-shadow: 0 0 0 3px color-mix(in srgb, var(--down, #e5534b) 25%, transparent); }
.tech-comp { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; }
/* DWService Techs page: every computer is one row with the same columns, everything lined up on the left */
.tg { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.tg-person { border: 1px solid var(--line, #2b3d55); border-radius: 8px; padding: 8px 10px; text-align: left; }
.tg-head { font-weight: 600; margin-bottom: 4px; text-align: left; }
.tg-head small { font-weight: 400; opacity: .7; }
.tg-row { display: grid; grid-template-columns: 12px minmax(120px, 1fr) auto auto auto; gap: 8px; align-items: center; padding: 3px 0; text-align: left; }
.tg-row .dws-dot { margin: 0; justify-self: center; }
.tg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-link { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; text-align: left; }
.tg-link input { width: 180px; }
@media (max-width: 560px) { .tg-row { grid-template-columns: 12px 1fr auto; } .tg-row .linkbtn { display: none; } }
/* Header Techs: one line per tech, click for DWService Screen / Files */
/* Layouts with the header across the top: Techs sit on their own line right under the logo, left to right on one line. */
header > #techsOn { order: 6; flex: 0 0 100%; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; margin: -4px 0 0; overflow-x: auto; }
header > #techsOn .tech-chip { flex: 0 0 auto; white-space: nowrap; }
html[data-layout="ops"] header > #techsOn { order: 1; flex: none; flex-direction: column; align-items: stretch; gap: 3px; margin: 0; overflow: visible; }
#techsOn .wolabel { text-align: left; }
.tech-chip { display: flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--row); border: 1px solid var(--line); color: inherit; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; white-space: nowrap; }
.tech-chip:hover, .tech-chip:focus-visible { border-color: var(--accent, #6cb2ff); }
.tech-chip b { font-weight: 600; }
.tech-pop { position: fixed; z-index: 9000; background: var(--panel, #12263f); border: 1px solid var(--line, #2b3d55); border-radius: 10px; padding: 10px 12px; box-shadow: 0 8px 30px #0009; min-width: 300px; max-width: 92vw; }
.tg-name.editing { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; white-space: normal; overflow: visible; }
.tg-name.editing input { flex: 1 1 140px; min-width: 120px; }
.dws-ren { opacity: .6; font-size: 11.5px; } .tg-row:hover .dws-ren, .dws-row:hover .dws-ren { opacity: 1; }

/* The DWService window */

.dwst { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.dwst-row { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 13px; }
.dwst-row .dwst-name { flex: 1 1 120px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dwst-row small { color: var(--muted, #8a97a8); }
.dwst .dws-link { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.dwst .dws-dot { margin: 0; }
.sys.dws { background: #1f6f8b; color: #fff; }

.dwsmark { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.dwsmark svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.dwsmark.sm svg { width: 20px; height: 20px; }
.dwsmark .dwsname { font-size: 11px; font-weight: 700; letter-spacing: .03em; color: #7dd3fc; }
.dwsmark.sm .dwsname { font-size: 10px; }

.ctile .dws-btns { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.ctile .dws-btns .btn { padding: 1px 8px; font-size: 11px; line-height: 1.5; min-height: 0; }
.ctile .dws-btns .dws-dot { width: 7px; height: 7px; }
.tile.small .dws-btns { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tile.small .dws-btns { flex-basis: 100%; }
.tile.small .dwsquick { margin-top: 8px; } .tile.small .dwsquick .dws-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.ctile .cmarks { flex-wrap: wrap; }
.ctile .dws-btns { flex: 1 0 100%; margin-left: 0; flex-wrap: nowrap; gap: 4px; }
.ctile .dws-btns .btn { padding: 1px 6px; font-size: 10.5px; white-space: nowrap; flex: 1 1 auto; justify-content: center; }
.ctile .dws-btns .dws-dot { display: none; }
.ctile .dws-btns select { max-width: 100%; font-size: 10.5px; padding: 0 4px; flex: 1 0 100%; }
.ctile .dws-btns { flex-wrap: wrap; }

.ctile .dws-btns { flex-wrap: wrap; gap: 3px; }
.ctile .dws-btns .btn { flex: 1 1 0; min-width: 0; font-size: 10px; padding: 1px 3px; overflow: hidden; text-overflow: ellipsis; }

.ctile .dwscstat { flex-wrap: wrap; row-gap: 3px; }
.ctile .dwscstat .cstxt { flex: 0 1 auto; min-width: 0; }
.ctile .dwscstat .cdwlogo { margin-left: auto; display: inline-flex; align-items: center; }

.ctile .dwscstat { flex-direction: column; align-items: stretch; gap: 3px; }
.ctile .dwscstat .cvisit { display: flex; align-items: center; gap: 6px; }
.ctile .dwscstat .cmain { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ctile .dwscstat .cmain .cdwlogo, .ctile .dwscstat .cvisit .cdwlogo { margin-left: auto; }
.ctile .cmarks:empty { display: none; }
.ctile .cstat.dwscstat { width: 100%; align-self: stretch; text-align: left; }
.ctile .dwscstat .cvisit, .ctile .dwscstat .cmain { justify-content: flex-start; width: 100%; }
table.loclist.dwslist { table-layout: fixed; }
.dwslist td, .dwslist th { overflow: hidden; text-overflow: ellipsis; }
.dwslist td.lact { overflow: visible; }
.dwslist td .marks { display: flex; justify-content: flex-start; }
table.loclist.dwslist { min-width: 1186px; }

.showloc { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 600; }
html[data-layout="ops"] .showloc { white-space: normal; flex-wrap: wrap; justify-content: center; gap: 4px 6px; font-size: 12px; padding-left: 6px; padding-right: 6px; }
.showlocn { background: var(--link, #4aa3ff); color: #08111f; border-radius: 10px; padding: 0 7px; font-size: 12px; line-height: 18px; }
.showpop { position: fixed; z-index: 9000; min-width: 230px; background: var(--panel, #0f1c33); color: var(--text); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.45); padding: 8px; }
.showpoph { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 2px 6px 6px; }
.showpopi { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.showpopi:hover { background: color-mix(in srgb, var(--link, #4aa3ff) 16%, transparent); }
#panel-dwall .wallwrap { overflow-x: auto; }
.monhelp { display: block; margin: 6px 0; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--warn, #f2b443) 14%, transparent); }
.monhelp code { user-select: all; word-break: break-all; }
.mdiag { margin: 8px 0; }
.mdiag pre { max-height: 220px; overflow: auto; background: rgba(0,0,0,.2); padding: 6px 8px; border-radius: 6px; }

/* Header icon buttons: the icon in a fixed box, so labels line up (Search, What changed, Capture, Fill Screen, Open monitors, Full Screen). */
header .bico { display: inline-block; width: 1.25em; text-align: center; margin-right: .2em; flex: none; }
html[data-layout="ops"] body > header .tools .bico { width: 1.15em; margin-right: .15em; }

/* Tech pop-up: the small DWService logo on top, then each computer with its Screen and Files buttons underneath */
.tech-pop { min-width: 200px; }
.tg-logo { margin: 0 0 6px; display: flex; justify-content: flex-start; }
.tech-pop .tg-row.tg-row2 { display: block; padding: 5px 0; }
.tg-pc { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tg-pc .dws-dot { margin: 0; flex: none; }
.tg-btns { display: flex; gap: 6px; }
.tg-btns .btn { flex: 1 1 0; min-width: 64px; justify-content: center; }

/* The DWService icon inside the Screen / Files buttons */
.btnicon { display: inline-flex; align-items: center; margin-right: 4px; vertical-align: middle; }
.btnicon svg, .btnicon img { width: 13px; height: 13px; filter: none; }
.ctile .dws-btns .btn .btnicon { margin-right: 2px; } .ctile .dws-btns .btn .btnicon svg, .ctile .dws-btns .btn .btnicon img { width: 10px; height: 10px; }
