/* The Tunnel Doctor page after the owner's design picture (2026-10-16): three mode cards (the chosen one lit, with a tick), a bar of tabs with How it works and All nodes on its right, and a dashed empty box.
   LOOK only for the colours; every size is here. Classes start with .dr- (the old .ap-mode cards are gone from the page) */
html body #page .dr-nf { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--mut); cursor: default; }
html body #page .dr-num { display: inline-flex; align-items: stretch; height: 34px; border-radius: 10px; background: #0b1020; border: 1px solid var(--uk-line); overflow: hidden; }
html body #page .dr-num:focus-within { border-color: #5aa9ff; box-shadow: 0 0 0 3px rgba(90, 169, 255, .25); }
html body #page .dr-num input { width: 48px; height: auto !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; text-align: center; font-size: 14px; font-weight: 600; color: var(--text); -moz-appearance: textfield; appearance: textfield; }
html body #page .dr-num input::-webkit-inner-spin-button, html body #page .dr-num input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
html body #page .dr-st { display: flex; flex-direction: column; width: 20px; border-left: 1px solid var(--uk-line); }
html body #page .dr-st button { flex: 1; display: grid; place-items: center; width: 100%; height: auto; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #8f9bbd; }
html body #page .dr-st button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
html body #page .dr-st svg { width: 12px; height: 12px; stroke-width: 2.4; }
/* the box of the tabs */
html body #page .ap-tasks .ap-thead { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; padding: 10px 12px; border: 0; }
html body #page .ap-tasks .ap-ttabs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
html body #page .ap-tasks .ap-ttabs > button { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--uk-line); background: #111829 !important; box-shadow: none !important; color: #c7d0e6; font-size: 13.5px; font-weight: 600; }
html body #page .ap-tasks .ap-ttabs > button:hover { color: #fff; border-color: rgba(120, 170, 255, .4); }
html body #page .ap-tasks .ap-ttabs > button.on { background: #20449c !important; border-color: #4f86ff; color: #fff; box-shadow: 0 0 0 1px rgba(79, 134, 255, .3), 0 0 16px rgba(47, 125, 245, .28) !important; }
html body #page .ap-tasks .ap-ttabs > button svg { width: 18px; height: 18px; }
html body #page .ap-tasks .ap-ttabs > button .cnt { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: rgba(255, 255, 255, .12); color: inherit; font-size: 12px; font-style: normal; }
html body #page .ap-tasks .dr-tr { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
html body #page .ap-tasks .dr-pill { display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--uk-line); background: #111829; box-shadow: none; color: #e3e9f8; font-size: 13.5px; font-weight: 600; line-height: 1; }
html body #page .ap-tasks button.dr-pill:hover { border-color: rgba(120, 170, 255, .4); color: #fff; }
html body #page .ap-tasks .dr-pill.pri { background: #2f7bf5; border-color: transparent; color: #fff; }
html body #page .ap-tasks .dr-pill.dr-state { cursor: default; background: transparent; }
html body #page .ap-tasks .dr-pill.dr-state.ok { color: #3ddc97; border-color: rgba(61, 220, 151, .45); }
html body #page .ap-tasks .dr-pill.dr-state.err { color: #ff7a85; border-color: rgba(255, 90, 105, .5); }
html body #page .ap-tasks .dr-pill svg { width: 18px; height: 18px; }
html body #page .ap-tasks .ap-tbody { padding: 0 12px 12px; scrollbar-gutter: stable; }
html body #page .ap-tasks.fx-box { flex: none; overflow: hidden; }      /* the box is ONE size for every tab: the shown tab scrolls inside it, whatever it holds (the owner, 2026-10-16) */
html body #page .ap-tasks .ap-tbody:not(.hidden) { animation: dr-in .16s ease-out; }
@keyframes dr-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html body #page .ap-tasks .ap-tbody:not(.hidden) { animation: none; } }
html[data-mode="light"] body #page :is(.dr-pill, .ap-ttabs > button) { background: #f3f6fc !important; color: #1b2540; border-color: rgba(30, 50, 100, .16); }
html[data-mode="light"] body #page .ap-tasks .ap-ttabs > button.on { background: #2f6fe0 !important; color: #fff; }
/* the top box of the page: the alerts and the three mode cards in ONE surface like the toolbar of the Tunnel manager, so the bar of tabs above it keeps one shape on all three tabs (the owner, 2026-10-16: "the page jumps when I switch") */
html body #page .dr-top { box-sizing: border-box; margin: 0 0 12px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; background: linear-gradient(rgba(255, 255, 255, .043), rgba(255, 255, 255, .024)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(255, 255, 255, .04); }
html body.tabbed #page > .dr-top:first-child { border-top-left-radius: 0; margin-top: 0; }
html body #page .dr-top .storm-banner, html body #page .dr-top .ap-alert { margin-bottom: 12px; }
html[data-mode="light"] body #page .dr-top { background: #fff; border-color: rgba(30, 50, 100, .14); box-shadow: none; }

/* the rows of Active Tasks after the owner's picture (2026-10-16): a card for the suggestions of the Doctor, a card for every tunnel that needs a look - a coloured dot and its word, the name, where it is, why (red when it hurts), how long ago, the buttons: blue with an icon for what to do, dark for the rest */
html body #page .ap-tasks .nw-box.sug-box { margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--uk-line); background: linear-gradient(180deg, #111a2e, #0e1626); gap: 8px; }
html body #page .ap-tasks .sug-box .nw-title { font-size: 12.5px; font-weight: 700; letter-spacing: .5px; color: #8fb4ff; } html body #page .ap-tasks .sug-box .nw-title small { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--mut); }
html body #page .ap-tasks .ap-att { height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; gap: 8px; overflow: visible; }
html body #page .ap-tasks .ap-row { display: flex; align-items: center; gap: 14px; box-sizing: border-box; min-height: 52px; padding: 7px 14px; margin: 0; border-radius: 14px; border: 1px solid var(--uk-line); background: #0f1626; font-size: 13px; transform: none !important; box-shadow: none; }
html body #page .ap-tasks .nw-box .ap-row { background: rgba(255, 255, 255, .035); border-color: transparent; }
html body #page .ap-tasks .ap-row:hover { transform: none !important; box-shadow: none; background-color: #131d33; }
html body #page .ap-tasks .ap-row .st { display: inline-flex; align-items: center; gap: 9px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text); }
html body #page .ap-tasks .ap-row .st::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: #8f9bbd; }
html body #page .ap-tasks .ap-row .st.degraded::before { background: #ffb84d; box-shadow: 0 0 8px rgba(255, 184, 77, .5); }
html body #page .ap-tasks .ap-row .st.down::before, html body #page .ap-tasks .ap-row .st.bad::before { background: #ff4d5a; box-shadow: 0 0 8px rgba(255, 77, 90, .5); }
html body #page .ap-tasks .ap-row .st.up::before { background: #3ddc97; box-shadow: 0 0 8px rgba(61, 220, 151, .45); }
html body #page .ap-tasks .ap-row b { font-size: 14px; font-weight: 700; color: var(--text); }
html body #page .ap-tasks .ap-ft { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; } html body #page .ap-tasks .ap-ft em { font-style: normal; }
html body #page .ap-tasks .ap-row time { margin-left: auto; font-size: 12.5px; color: var(--mut); white-space: nowrap; }
html body #page .ap-tasks .ap-row .work-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 500; background: rgba(255, 255, 255, .05); border: 1px solid var(--uk-line); color: #c7d0e6; }
html body #page .ap-tasks .ap-row button, html body #page .ap-tasks .ap-row a.ap-detail { display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; height: 38px; padding: 0 16px; margin: 0; border-radius: 11px; font-size: 13.5px; font-weight: 600; line-height: 1; text-decoration: none; }
html body #page .ap-tasks .ap-row button:not(.pri), html body #page .ap-tasks .ap-row a.ap-detail { background: #1a2236; border: 1px solid var(--uk-line); box-shadow: none; color: #e3e9f8; }
html body #page .ap-tasks .ap-row button.pri { background: #2f7bf5; border: 1px solid transparent; box-shadow: none; color: #fff; }
html body #page .ap-tasks .ap-row button:hover { filter: brightness(1.1); }
html body #page .ap-tasks .ap-row button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
html[data-mode="light"] body #page .ap-tasks .ap-row { background: #fff; border-color: rgba(30, 50, 100, .14); } html[data-mode="light"] body #page .ap-tasks .ap-row button:not(.pri), html[data-mode="light"] body #page .ap-tasks .ap-row a.ap-detail { background: #f3f6fc; color: #1b2540; }
/* the page is drawn again every 15 s: a tab that was open and is drawn again does not fade in again (it flashed) */
html body #page .ap-tasks .ap-tbody.still { animation: none !important; }

html[data-mode="light"] body #page .ap-tasks .ap-att .ap-row button { background: rgba(30, 50, 100, .07); color: #1b2540; }
/* The Tunnel Doctor after the owner's words (2026-11-04): "very short information, easy to work with, no extra explanations - and the log when I click on it": ONE bar for the mode (Off | Fix | Fix + move, the minutes, the lanes switch, the buttons), ONE line per tunnel, the log under the row that was clicked. The classes start with .dx- */
html body #page .dx-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
html body #page .dx-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(128, 140, 170, .16); }
html body #page .dx-seg button { display: inline-flex; align-items: center; gap: 6px; height: 32px; min-height: 0; padding: 0 16px; border: 0; border-radius: 9px; background: transparent !important; box-shadow: none !important; color: var(--mut); font-size: 13px; font-weight: 600; cursor: pointer; }
html body #page .dx-seg button:hover:not(:disabled):not(.on) { color: var(--text); }
html body #page .dx-seg button.on { background: #2f7bf5 !important; color: #fff; box-shadow: 0 1px 6px rgba(47, 123, 245, .4) !important; }
html body #page .dx-seg button:disabled { opacity: .5; cursor: not-allowed; }
html body #page .dx-seg button em { font-style: normal; font-size: 11px; }
html body #page .dx-bar .dr-nf { gap: 8px; }
html body #page .dx-bar:not([data-mode="move"]) .dr-nf { opacity: .55; }
html body #page .dx-bar .dr-num { height: 30px; border-radius: 9px; }
html body #page .dx-bar .dr-num input { width: 38px; font-size: 13px; }
html body #page .dx-bar .sp { flex: 1 1 0; }
html body #page .dx-bar .dr-tr { display: flex; align-items: center; gap: 8px; }
html body #page .dx-bar .dr-pill { display: inline-flex; align-items: center; gap: 7px; box-sizing: border-box; height: 32px; padding: 0 13px; border-radius: 10px; border: 1px solid rgba(128, 140, 170, .3); background: rgba(128, 140, 170, .1); box-shadow: none; color: var(--text); font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer; }
html body #page .dx-bar .dr-pill:hover { border-color: rgba(120, 170, 255, .5); }
html body #page .dx-bar .dr-pill.pri { background: #2f7bf5; border-color: transparent; color: #fff; }
html body #page .dx-bar .dr-pill svg { width: 16px; height: 16px; }
html body #page .dx-issues { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; }
html body #page .dx-iss { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 10px; background: rgba(255, 90, 105, .1); font-size: 13px; }
html body #page .dx-iss.net, html body #page .dx-iss.warp.working, html body #page .dx-iss.warp.held { background: rgba(255, 184, 77, .1); }
html body #page .dx-iss.warp { flex-wrap: wrap; }
html body #page .dx-wt { margin-left: auto; color: var(--mut); font-size: 12.5px; text-align: right; }
html body #page .dx-iss b { font-weight: 700; color: var(--text); }
html body #page .dx-tag { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
html body #page .dx-tag.err { color: #ff7a85; } html body #page .dx-tag.warn { color: #ffb84d; } html body #page .dx-tag.ok { color: #34d399; }
/* the L2TP watch (1.69.257): the product's line - a light for every part - and a line per finding under it */
html body #page .dx-iss.l2tp { flex-wrap: wrap; } html body #page .dx-iss.l2tp.fine { background: rgba(52, 211, 153, .07); } html body #page .dx-iss.l2tp.working { background: rgba(255, 184, 77, .1); }
html body #page .dx-l2p { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; color: var(--mut); font-size: 12px; } html body #page .dx-l2p i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 2px rgba(52, 211, 153, .2); }
html body #page .dx-l2p.warn i { background: #ffb84d; box-shadow: 0 0 0 2px rgba(255, 184, 77, .22); } html body #page .dx-l2p.bad i { background: #ff7a85; box-shadow: 0 0 0 2px rgba(255, 122, 133, .22); }
html body #page .dx-tl { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
html body #page .ap-tasks .ap-thead { padding: 8px 10px 4px; }
html body #page .ap-tasks .ap-ttabs { gap: 4px; }
html body #page .ap-tasks .ap-ttabs > button { height: 32px; gap: 7px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
html body #page .ap-tasks .ap-ttabs > button svg { width: 16px; height: 16px; }
html body #page .ap-tasks .ap-ttabs > button .cnt { min-width: 20px; height: 20px; font-size: 11.5px; }
html body #page .dx-list { display: block; }
html body #page .dx-item { border-bottom: 1px solid rgba(128, 140, 170, .16); }
html body #page .dx-item:last-child { border-bottom: 0; }
html body #page .dx-row { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 6px 10px; border-radius: 10px; cursor: pointer; transition: background .12s; }
html body #page .dx-row:hover, html body #page .dx-item.open > .dx-row { background: rgba(128, 140, 170, .1); }
html body #page .dx-row:focus-visible { outline: 2px solid #5aa9ff; outline-offset: -2px; }
html body #page .dx-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #8f9bbd; }
html body #page .dx-dot.red { background: #ff4d5a; box-shadow: 0 0 8px rgba(255, 77, 90, .45); } html body #page .dx-dot.amber { background: #ffb84d; } html body #page .dx-dot.green { background: #3ddc97; } html body #page .dx-dot.blue { background: #4da3ff; }
html body #page .dx-nm { flex: none; width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--text); }
html body #page .dx-why { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--mut); }
html body #page .dx-row time { flex: none; font-size: 12px; color: var(--mut); white-space: nowrap; }
html body #page .dx-chip { flex: none; padding: 1px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(128, 140, 170, .18); color: var(--mut); white-space: nowrap; }
html body #page .dx-chip.run { background: rgba(77, 163, 255, .18); color: #6cb1ff; }
html body #page .dx-res { flex: none; font-size: 11.5px; font-weight: 700; } html body #page .dx-res.ok { color: #3ddc97; } html body #page .dx-res.bad { color: #ff7a85; } html body #page .dx-res.run { color: #6cb1ff; }
html body #page .dx-go { flex: none; height: 26px; min-height: 0; padding: 0 13px; border: 0; border-radius: 999px; background: #2f7bf5; color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
html body #page .dx-chev { flex: none; width: 7px; height: 7px; margin: 0 4px 0 2px; border-right: 2px solid var(--mut); border-bottom: 2px solid var(--mut); transform: rotate(-45deg); transition: transform .15s; }
html body #page .dx-item.open > .dx-row .dx-chev { transform: rotate(45deg); }
html body #page .dx-log { display: none; padding: 2px 12px 14px 31px; }
html body #page .dx-item.open > .dx-log { display: block; }
html body #page .dx-facts { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 2px 0 8px; font-size: 12.5px; font-weight: 600; }
html body #page .dx-facts em { margin-right: 7px; font-style: normal; font-weight: 500; color: var(--mut); }
html body #page .dx-note { margin: 0 0 6px; font-size: 12.5px; line-height: 1.45; color: var(--mut); overflow-wrap: anywhere; }
html body #page .dx-story { max-height: 260px; margin: 6px 0 8px; overflow: auto; }
html body #page .dx-nolog { padding: 4px 0; font-size: 12.5px; }
html body #page .dx-acts { display: flex; flex-wrap: wrap; gap: 8px; }
html body #page .dx-empty { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 120px; color: var(--mut); font-size: 14px; font-weight: 600; }
html body #page .dx-empty i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(61, 220, 151, .15); color: #3ddc97; font-style: normal; }
html body #page .dx-empty svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { html body #page .dx-nm { width: 110px; } html body #page .dx-row time { display: none; } html body #page .dx-bar .sp { display: none; } }
