release: Mark VIII 1.0

This commit is contained in:
c4ch3c4d3
2026-08-11 20:24:24 -07:00
commit 3e1805dab8
86 changed files with 20678 additions and 0 deletions
@@ -0,0 +1,484 @@
:root {
--bg: #fafafa; --surface: #fff; --surface-alt: #f5f5f5;
--toolbar: #424242; --rail: #f3f3f3; --rail-hover: #a9a9a9;
--rail-fg: #212121; --rail-fg-active: #1976d2;
--text: #212121; --muted: #686868; --border: #e0e0e0;
--primary: #1976d2; --primary-dark: #105694; --danger: #d32f2f;
--ok: #7cb342; --warn: #f9a825; --terminal-bg: #000;
--shadow: 0 2px 2px rgba(0,0,0,.24), 0 0 2px rgba(0,0,0,.12);
--ink: #1976d2;
}
html.dark {
--bg: #303030; --surface: #424242; --surface-alt: #3a3a3a;
--toolbar: #424242; --rail: #3a3a3a; --rail-hover: #545454;
--rail-fg: #e0e0e0; --rail-fg-active: #fff;
--text: #fff; --muted: #bdbdbd; --border: #545454;
--shadow: 0 2px 2px rgba(0,0,0,.5), 0 0 2px rgba(0,0,0,.3);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
background: var(--bg); color: var(--text);
font: 14px/1.45 Roboto, "Segoe UI", Arial, sans-serif;
display: flex; flex-direction: column;
}
.hidden { display: none !important; }
#app { flex: 1; display: flex; flex-direction: column; min-height: 0; }
#login-screen { flex: 1; display: flex; align-items: center; justify-content: center; background: #9c9c9c; }
.login-card {
background: #fff; border-radius: 2px; padding: 32px; width: 360px;
box-shadow: 0 8px 20px rgba(0,0,0,.4); text-align: center;
}
.login-logo { height: 148px; margin-bottom: 8px; }
.login-title { margin: 0 0 20px; font-size: 26px; font-weight: 400; color: #212121; }
.login-field {
width: 100%; padding: 10px 12px; border: 1px solid #ccc;
border-radius: 2px; margin: 6px 0; font-size: 14px;
}
.login-error { color: #d32f2f; font-size: 13px; min-height: 18px; }
.spinner {
display: inline-block; width: 18px; height: 18px;
border: 2px solid rgba(25,118,210,.25); border-top-color: var(--primary);
border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#topbar {
height: 64px; background: var(--toolbar); color: #fff;
display: flex; align-items: center; padding: 0 16px;
box-shadow: 0 2px 4px rgba(0,0,0,.4); position: relative; z-index: 80;
}
.brand-logo { height: 32px; margin-right: 10px; }
.brand-text { font-size: 20px; font-weight: 400; letter-spacing: .5px; }
.toolbar-spacer { flex: 1; }
#live-status {
color: #e0e0e0; font-size: 12px; margin-right: 16px; font-variant-numeric: tabular-nums;
}
.toolbar-action { position: relative; }
.toolbar-icon-btn {
width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 50%;
background: transparent; color: #fff; cursor: pointer; display: flex;
align-items: center; justify-content: center;
}
.toolbar-icon-btn:hover, .toolbar-icon-btn:focus-visible { background: rgba(255,255,255,.12); outline: none; }
.toolbar-icon-btn svg { width: 24px; height: 24px; display: block; }
#terminal-btn.active, #pager-btn.active, .toolbar-icon-btn[aria-expanded="true"] {
background: #1976d2; color: #fff;
}
.notification-badge {
position: absolute; top: 2px; right: 1px; min-width: 18px; height: 18px;
padding: 0 5px; border-radius: 9px; background: #f44336; color: #fff;
border: 2px solid var(--toolbar); font-size: 10px; font-weight: 600;
line-height: 14px; text-align: center; pointer-events: none;
}
.toolbar-menu {
position: absolute; top: calc(100% + 8px); right: 0; width: 280px;
background: var(--surface); color: var(--text); border-radius: 3px;
box-shadow: 0 6px 18px rgba(0,0,0,.35); overflow: hidden;
}
.toolbar-menu:not(.hidden) { animation: menu-in .12s ease-out; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
.toolbar-menu-header {
min-height: 48px; padding: 0 16px; border-bottom: 1px solid var(--border);
display: flex; align-items: center; justify-content: space-between; font-weight: 500;
}
.menu-link {
border: 0; background: transparent; color: var(--primary); padding: 8px;
cursor: pointer; font: inherit; font-size: 12px;
}
.menu-link:disabled { color: var(--muted); cursor: default; opacity: .65; }
.notifications-menu { width: min(360px, calc(100vw - 24px)); }
.notifications-list { max-height: min(420px, calc(100vh - 96px)); overflow-y: auto; }
.notification-empty { padding: 28px 16px; color: var(--muted); text-align: center; }
.notification-item {
display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: start;
padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.notification-item:last-child { border-bottom: 0; }
.notification-kind { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--primary); }
.notification-kind.error { background: var(--danger); }
.notification-kind.success { background: var(--ok); }
.notification-message { min-width: 0; overflow-wrap: anywhere; }
.notification-time { color: var(--muted); font-size: 11px; white-space: nowrap; margin-top: 2px; }
.toolbar-menu-item {
width: 100%; min-height: 48px; padding: 8px 16px; border: 0; background: transparent;
color: var(--text); display: flex; align-items: center; gap: 16px; text-align: left;
cursor: pointer; font: inherit;
}
.toolbar-menu-item:hover, .toolbar-menu-item:focus-visible { background: var(--surface-alt); outline: none; }
.menu-icon { width: 22px; height: 22px; color: var(--muted); flex: none; }
.menu-icon svg { width: 22px; height: 22px; display: block; }
.toolbar-menu-divider { height: 1px; background: var(--border); margin: 4px 0; }
.internet-menu-item > span:nth-child(2) { flex: 1; }
.internet-menu-item small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.connection-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.connection-dot.online { background: var(--ok); }
.connection-dot.offline { background: var(--danger); }
.connection-dot.checking { animation: connection-pulse 1s ease-in-out infinite alternate; }
@keyframes connection-pulse { to { opacity: .35; } }
.danger-item { color: var(--danger); }
.danger-item .menu-icon { color: var(--danger); }
@media (max-width: 620px) {
#topbar { padding: 0 8px; }
#live-status { display: none; }
.toolbar-icon-btn { width: 40px; height: 40px; padding: 8px; }
}
#layout { flex: 1; display: flex; min-height: 0; }
#rail {
width: 60px; background: var(--rail); color: var(--rail-fg);
display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; transition: width .2s;
}
#rail.open { width: 220px; }
#rail .entry {
height: 48px; display: flex; align-items: center; padding: 0 0 0 18px;
overflow: hidden; color: var(--rail-fg); cursor: pointer; border-right: 3px solid transparent; font-size: 14px;
}
#rail .entry:hover { background: var(--rail-hover); color: var(--text); }
#rail .entry.active {
border-right: 3px solid #1976d2; background: transparent; color: var(--rail-fg-active);
}
.entry-icon {
font-size: 24px; width: 24px; height: 24px; display: flex;
align-items: center; justify-content: center; margin-right: 14px; flex: none;
}
.entry-icon svg { width: 24px; height: 24px; display: block; }
#topbar .btn.ghost { color: #fff; border-color: #fff; }
.entry-text { white-space: nowrap; opacity: 0; transition: opacity .2s; }
#rail.open .entry-text { opacity: 1; }
#rail .entry.divider {
height: 0; padding: 0; margin: 8px 0; border-top: 1px solid rgba(0,0,0,.12); flex: none;
}
.rail-footer { margin-top: auto; }
#content { flex: 1; overflow-y: auto; padding: 20px 30px 5px 5px; }
.tabbar {
display: flex; border-bottom: 2px solid #e0e0e0;
margin-bottom: 16px; position: relative;
}
.tabbar .tab {
padding: 10px 16px; cursor: pointer; color: var(--muted); font-size: 14px;
border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.tabbar .tab.active { color: var(--primary); border-bottom-color: var(--ink); }
.page-title { font-size: 24px; font-weight: 400; margin: 0 0 12px; }
.cards {
display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px;
}
.card { background: var(--surface); border-radius: 2px; box-shadow: var(--shadow); padding: 14px; }
.card-label { font-size: 12px; color: var(--muted); }
.card-value { font-size: 28px; font-weight: 400; margin-top: 4px; }
.section {
background: var(--surface); border-radius: 2px; box-shadow: var(--shadow);
padding: 16px; margin-bottom: 16px;
}
.section h2 { margin: 0 0 12px; font-size: 16px; font-weight: 500; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 140px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.tbl th { color: var(--muted); font-size: 12px; font-weight: 500; }
.tbl tr:hover td { background: var(--surface-alt); }
.toggle { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.toggle input { width: auto; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 11px; }
.badge.on { background: #e8f5e9; color: #2e7d32; }
.badge.off { background: #fff3e0; color: #e65100; }
.badge.unknown { background: #eeeeee; color: #616161; }
.btn {
background: var(--primary); color: #fff; border: 0; border-radius: 2px;
padding: 8px 14px; font-size: 14px; cursor: pointer;
box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.btn:hover { background: var(--primary-dark); }
.btn:disabled, .btn.busy { opacity: .5; cursor: default; pointer-events: none; }
.btn.ghost {
background: transparent; color: var(--primary); box-shadow: none;
border: 1px solid var(--primary);
}
.btn.danger { background: var(--danger); }
input, select {
background: var(--surface); color: var(--text); border: 1px solid var(--border);
border-radius: 2px; padding: 8px 10px; width: 100%;
}
label { display: block; font-size: 12px; color: var(--muted); margin: 8px 0 4px; }
code { background: var(--surface-alt); padding: 1px 5px; border-radius: 2px; }
pre.logs {
background: var(--terminal-bg); color: #c9d1d9; padding: 12px; overflow: auto;
max-height: 420px; font-size: 12px; white-space: pre-wrap; border-radius: 2px;
}
.log-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.log-toolbar h2 { margin: 0; }
.log-search { width: min(260px, 35vw); }
.empty { padding: 24px; text-align: center; color: var(--muted); }
#terminal-panel {
position: fixed; left: 0; right: 0; bottom: 0;
border-top: 1px solid var(--border); background: #000; height: 280px;
display: flex; flex-direction: column; z-index: 60;
box-shadow: 0 -3px 10px rgba(0,0,0,.35);
}
#terminal-panel:not(.hidden) { animation: term-up .18s ease-out; }
@keyframes term-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
#terminal-bar {
display: flex; justify-content: space-between; align-items: center;
background: var(--toolbar); padding: 4px 10px; font-size: 12px; color: #e0e0e0;
}
#toast-container {
position: fixed; right: 16px; bottom: 16px; display: flex;
flex-direction: column; gap: 8px; z-index: 100;
}
.toast {
padding: 10px 14px; border-radius: 2px; background: var(--surface);
box-shadow: var(--shadow); color: var(--text);
}
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--primary); }
.toast.success { border-left: 4px solid var(--ok); }
#terminal .xterm { height: 100%; }
#pager-panel {
position: fixed; left: 0; right: 0; bottom: 0;
border-top: 1px solid var(--border); background: #303030; height: 540px;
display: flex; flex-direction: column; z-index: 60;
box-shadow: 0 -3px 10px rgba(0,0,0,.35);
}
#pager-panel:not(.hidden) { animation: term-up .18s ease-out; }
#pager-bar {
display: flex; justify-content: space-between; align-items: center;
background: var(--toolbar); padding: 4px 10px; font-size: 12px; color: #e0e0e0;
}
#pager-body { flex: 1; min-height: 0; overflow: hidden; padding: 10px; }
#pager_ui {
border-collapse: collapse; border-spacing: 0; margin: 0 auto;
border-radius: 62px;
box-shadow: inset 0 1px 0 rgba(255,255,255,.035), inset 0 0 34px rgb(24 24 24),
inset 0 -22px 36px rgba(0,0,0,.42), 0 14px 38px rgba(0,0,0,.48),
0 0 22px rgba(0,239,53,.09);
}
#pager_ui td { padding: 0; margin: 0; }
#pager_ui img { display: block; }
.pager-scale-wrapper { transform-origin: top center; }
.pager-btn {
cursor: pointer; user-select: none; -webkit-user-drag: none;
transition: filter 0.08s ease;
}
.pager-btn.pressed { filter: brightness(0.6); }
#pager_error {
position: absolute; top: 0; left: 0; width: 480px; height: 222px;
font-size: large; text-align: center; color: #fff;
display: flex; align-items: center; justify-content: center; flex-direction: column;
background: rgba(0,0,0,.8); z-index: 5;
}
#pager_error[hidden] { display: none; }
.title-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 8px 0 16px; }
.title-card { background: var(--card, #fff); border: 1px solid var(--border, #e0e0e0); border-radius: 4px; padding: 12px 16px; box-shadow: 0 2px 4px rgba(0, 0, 0, .12); }
.title-card h2 { margin: 0 0 8px; font-size: 15px; font-weight: 500; }
.chart-box { height: 160px; }
.card-stat { font-size: 28px; font-weight: 500; margin: 4px 0; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; -webkit-user-select: none; user-select: none; }
.switch input { display: none; }
.switch .track { width: 40px; height: 20px; border-radius: 10px; background: #bdbdbd; position: relative; transition: background .2s; }
.switch .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch input:checked + .track { background: #1976d2; }
.switch input:checked + .track::after { left: 22px; }
.switch input:indeterminate + .track { background: #9e9e9e; }
.switch input:indeterminate + .track::after { left: 12px; }
.sel { padding: 6px 8px; border: 1px solid var(--border, #e0e0e0); border-radius: 4px; background: var(--card, #fff); color: var(--text, #212121); }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.muted { color: var(--muted, #686868); }
html.dark .title-card { background: #424242; border-color: #545454; }
html.dark .sel { background: #424242; border-color: #545454; color: #fff; }
html.dark .muted { color: #bdbdbd; }
/* ---- Recon (Mark VII parity) ---- */
.recon-title-card-container { display: flex; width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 8px 0 16px; }
.recon-title-card { flex: 1 1 220px; min-width: 220px; margin-bottom: 1em; }
.recon-card { background: var(--surface); border-radius: 2px; box-shadow: var(--shadow); height: 200px; padding: 12px 16px; display: flex; flex-direction: column; }
.recon-title-card-title { font-size: 20px; margin-bottom: 15px; display: flex; align-items: center; color: var(--text); }
.recon-card-title-link { color: inherit; text-decoration: none; }
.recon-card-title-link:visited { color: inherit; }
.recon-card-title-link:hover { text-decoration: underline; }
.recon-title-card-content { display: flex; justify-content: center; align-items: center; height: 70%; }
.recon-chart-box { width: 100%; height: 150px; position: relative; }
.recon-chart-box canvas { width: 100%; height: 100%; }
.recon-no-data { font-style: italic; color: #787878; display: flex; justify-content: center; padding: 12px; }
.recon-hs-col { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.recon-hs-count { font-size: 32px; font-weight: 700; line-height: 1.1; }
.recon-hs-label { color: grey; margin: 2px 0 10px; }
.recon-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); margin: 0; cursor: pointer; }
.recon-ps-row { display: flex; align-items: center; width: 100%; gap: 4px; }
.recon-ps-row .sel { width: 100%; }
.icon-btn { background: transparent; color: var(--muted); border: 0; border-radius: 50%; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.icon-btn:hover { background: var(--surface-alt); color: var(--text); }
.icon-btn:disabled { opacity: .38; cursor: default; }
.icon-btn svg { width: 22px; height: 22px; }
.recon-scan-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.recon-scan-bar .sel { width: auto; }
.recon-table-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.recon-table-head h2 { margin: 0; }
.recon-search { max-width: 180px; }
.recon-paginator { display: flex; align-items: center; gap: 2px; font-size: 12px; }
.recon-paginator .icon-btn { width: 30px; height: 30px; }
.recon-paginator .icon-btn svg { width: 18px; height: 18px; }
.recon-row-selected td { background: #eaeaea; }
html.dark .recon-row-selected td { background: #565656; }
.recon-settings-sidebar {
position: fixed; top: 64px; right: 0; bottom: 0; width: 270px; z-index: 50;
background: var(--surface); box-shadow: -2px 0 6px rgba(0,0,0,.24); padding: 16px;
overflow-y: auto;
}
.recon-settings-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.recon-settings-title { font-size: 20px; }
.recon-settings-section { font-size: 14px; font-weight: 500; margin: 14px 0 4px; color: var(--muted); }
.recon-settings-sidebar .toggle { font-size: 13px; }
.recon-handshakes-card .recon-table-head h2 { font-size: 20px; margin-bottom: 15px; }
/* ---- Recon AP focus sidebar + table sort ---- */
.recon-focus-sidebar {
position: fixed; top: 64px; right: 0; bottom: 0; width: 270px; z-index: 50;
background: var(--surface); box-shadow: -2px 0 6px rgba(0,0,0,.24); padding: 16px;
overflow-y: auto;
}
.recon-focus-header { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.recon-focus-header-text { font-size: 20px; line-height: 1.2; flex: 1; word-break: break-word; }
.recon-focus-bssid { font-family: Consolas, Menlo, monospace; font-size: 13px; -webkit-user-select: text; user-select: text; }
.recon-focus-subtext { color: grey; font-style: italic; font-size: 12px; margin-bottom: 8px; }
.recon-focus-body { margin-top: 18px; }
.recon-focus-body-title { font-size: 16px; margin-bottom: 8px; color: var(--text); }
.recon-focus-action-button { width: 100%; margin-bottom: 5px; }
.recon-focus-detail { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.recon-focus-detail-label { color: var(--muted); flex: none; }
.recon-sort-arrow { color: var(--muted); font-size: 11px; }
th.recon-sorted { color: var(--primary); }
.recon-per { width: auto; }
/* ---- Mark VII handshakes table + settings dialog ---- */
.hs-cell-center { text-align: center; }
.hs-ok, .hs-bad, .hs-na { display: inline-flex; vertical-align: middle; }
.hs-ok svg, .hs-bad svg, .hs-na svg { width: 18px; height: 18px; }
.hs-ok { color: #7cb342; }
.hs-bad { color: #d32f2f; }
.hs-na { color: #9e9e9e; }
.hs-actions { display: inline-flex; align-items: center; gap: 4px; }
.hs-warn { color: #d32f2f; }
.hs-flash { font-size: 12px; margin-left: 8px; }
.hs-flash-ok { color: #7cb342; }
.hs-flash-error { color: #d32f2f; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; min-width: 420px; max-width: 600px; box-shadow: 0 8px 24px rgba(0,0,0,.3); padding: 20px; }
.modal-title { font-size: 20px; margin-bottom: 16px; }
.modal-body { display: flex; flex-direction: column; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.hs-settings-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.hs-settings-label { color: var(--muted); }
.hs-settings-value { font-family: Consolas, Menlo, monospace; word-break: break-all; }
html.dark .modal { background: #303030; }
/* ---- PineAP overview segmented control ---- */
.seg { display: inline-flex; margin-top: 8px; border: 1px solid var(--border, #e0e0e0); border-radius: 4px; overflow: hidden; }
.seg-btn { background: transparent; border: none; padding: 5px 14px; font-size: 12px; cursor: pointer; color: var(--muted, #666); }
.seg-btn + .seg-btn { border-left: 1px solid var(--border, #e0e0e0); }
.seg-btn.active { background: var(--primary, #1976d2); color: #fff; }
.seg-btn.busy { opacity: .5; pointer-events: none; }
/* ---- PineAP Mark VII layout ---- */
.pineap-title-card-container { display: flex; width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 30px; margin: 8px 0 16px; }
.pineap-title-card { flex: 1; min-width: 220px; background: var(--surface); border-radius: 2px; box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 16px; }
.pineap-card-title { font-size: 20px; display: flex; align-items: center; margin-bottom: 10px; }
.pineap-card-title-flex { display: flex; align-items: center; font-size: 20px; margin-bottom: 15px; }
.pineap-card-title-link { color: inherit; text-decoration: none; cursor: pointer; }
.pineap-card-title-link:visited { color: inherit; }
.pineap-card-title-link:hover { text-decoration: underline; }
.pineap-card-title-content { display: flex; justify-content: center; align-items: center; font-size: 24px; }
.pineap-card-button-group { width: 100%; height: 30px; display: flex; }
.pineap-card-button-group .seg { flex: 1; height: 100%; margin-top: 0; }
.pineap-card-button-group .seg-btn { flex: 1; }
.pineap-mode-save { display: flex; justify-content: flex-end; margin-top: 10px; }
.pineap-mode-features { margin: 6px 0 0; padding-left: 20px; }
.pineap-card-settings, .pineap-card-pool, .pineap-card-handshakes, .pineap-card-inject { flex: 1; }
.pineap-handshakes-none { display: flex; justify-content: center; font-style: italic; color: var(--muted); }
/* ---- Open AP: Mark VII PineAP settings card ---- */
.pineap-card-subtitle { color: var(--muted); font-size: 13px; margin: -8px 0 10px; }
.pineap-settings-section { font-size: 13px; font-weight: 500; color: var(--muted); margin: 14px 0 4px; }
.pineap-card-settings .switch { margin: 6px 0; }
.pineap-title-card > .switch { display: flex; margin: 8px 0; }
/* ---- PineAP filters ---- */
.filter-mode-seg { margin: 0 0 8px; }
.pineap-filter-description { color: var(--muted); font-size: 13px; margin: 2px 0 12px; }
.pineap-filter-entry-row { align-items: flex-end; }
.pineap-filter-value { flex: 1 1 280px; }
.pineap-filter-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; }
.pineap-filter-card .tbl tbody tr { cursor: pointer; }
.pineap-filter-card .tbl tbody tr:hover { background: rgba(25, 118, 210, .08); }
/* ---- Open AP: Mk7 filter notice boxes ---- */
.pineap-infobox { border-radius: 2px; padding: 10px 12px; margin-top: 10px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.pineap-infobox.error { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6cb; }
.pineap-infobox.info { background: #e3f2fd; color: #0d47a1; border: 1px solid #90caf9; }
.pineap-infobox-actions { display: flex; gap: 8px; flex-wrap: wrap; }
html.dark .pineap-infobox.error { background: #4a2020; color: #ffb4a9; border-color: #6b2d2d; }
html.dark .pineap-infobox.info { background: #10263a; color: #9cc7f0; border-color: #1d3a54; }
/* ---- Payloads (Pager-native Mark VII layout) ---- */
.payload-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.payload-heading h2 { margin-bottom: 4px; font-size: 20px; font-weight: 400; }
.payload-heading p { margin: 0; max-width: 760px; }
.payload-filters { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(170px, 1fr); gap: 10px; max-width: 720px; }
.payload-result-count { margin: 9px 0; font-size: 12px; }
.payload-list { display: grid; gap: 10px; }
.payload-card { display: flex; align-items: center; gap: 16px; padding: 14px 2px; border-top: 1px solid var(--border); }
.payload-card-main { flex: 1; min-width: 0; }
.payload-card h3, .payload-run h3, .payload-dev-block h3 { margin: 0; font-size: 16px; font-weight: 500; }
.payload-author { margin: 2px 0 7px; font-size: 12px; }
.payload-description { margin: 0 0 10px; max-width: 850px; }
.payload-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.payload-tag { padding: 2px 8px; border-radius: 10px; background: var(--surface-alt); color: var(--muted); font-size: 11px; text-transform: capitalize; }
.payload-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.payload-actions .btn { white-space: nowrap; }
.payload-empty { padding: 30px 16px; border-top: 1px solid var(--border); color: var(--muted); text-align: center; font-style: italic; }
.payload-runs { display: grid; gap: 12px; }
.payload-run { border: 1px solid var(--border); border-radius: 3px; padding: 13px; }
.payload-run-head { display: flex; align-items: center; gap: 12px; }
.payload-run-head > div:first-child { flex: 1; }
.payload-run-head p { margin: 3px 0 0; font-size: 12px; }
.payload-run-state { border-radius: 10px; padding: 3px 9px; font-size: 11px; }
.payload-run-state.running { color: #2e7d32; background: #e8f5e9; }
.payload-run-state.finished { color: var(--muted); background: var(--surface-alt); }
.payload-output { max-height: 240px; overflow: auto; margin: 12px 0 0; padding: 10px; border-radius: 2px; background: #111; color: #d8d8d8; font: 12px/1.45 monospace; white-space: pre-wrap; }
.payload-dev-grid { display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 14px; margin: 18px 0; }
.payload-dev-block { padding: 15px; border: 1px solid var(--border); background: var(--surface-alt); }
.payload-dev-block p { margin-bottom: 0; }
.payload-code { margin: 10px 0 0; padding: 12px; overflow: auto; background: #111; color: #d8d8d8; font-size: 12px; }
/* ---- Settings (Mark VII structure, Pager capabilities) ---- */
.settings-content { margin-top: 14px; }
.settings-card { margin-bottom: 16px; }
.settings-card h2 { font-size: 20px; font-weight: 400; margin-bottom: 10px; }
.settings-subtitle { margin: -4px 0 14px; font-size: 13px; line-height: 1.45; }
.settings-form-grid {
display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 4px 16px; align-items: end;
}
.settings-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.settings-table-wrap { overflow-x: auto; width: 100%; }
.settings-table-wrap .tbl { min-width: 680px; }
.settings-kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 20px; }
.settings-kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); padding: 7px 0; }
.settings-kv > span { color: var(--muted); }
.settings-chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.settings-chip { padding: 5px 9px; }
.settings-diagnostics { max-height: 520px; white-space: pre-wrap; word-break: break-word; }
.settings-card > .switch { display: flex; margin: 10px 0; color: var(--text); font-size: 13px; }
.settings-card a { color: var(--primary); }
@media (max-width: 700px) {
.tabbar { overflow-x: auto; flex-wrap: nowrap; }
.tabbar .tab { flex: 0 0 auto; }
.settings-form-grid { grid-template-columns: 1fr; }
.payload-heading, .payload-card, .payload-run-head { align-items: stretch; flex-direction: column; }
.payload-filters, .payload-dev-grid { grid-template-columns: 1fr; }
.payload-actions { justify-content: flex-start; }
}