The browser hub is a status/metadata reader for an instance, separate from the operator console and its owner cookies. Build it as its own Preact bundle at /hub/ outside the owner gate, embed it via //go:embed all:hub/dist (with a committed index placeholder so a clean checkout still builds), and apply a strict CSP because it shares the console origin. The Docker build stages the hub build alongside the console; dist assets remain ignored.
1117 lines
18 KiB
CSS
1117 lines
18 KiB
CSS
/**
|
|
* Copyright (C) 2026 Dcntrlized
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License as published
|
|
* by the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Affero General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/* Design tokens — frozen set, hub.md §6.1 (light + dark). */
|
|
:root {
|
|
--dn-ground: #e9ecf1;
|
|
--dn-surface: #f7f8fa;
|
|
--dn-panel: #ffffff;
|
|
--dn-ink: #171a21;
|
|
--dn-ink-soft: #333b47;
|
|
--dn-muted: #5a6473;
|
|
--dn-line: #e0e4ea;
|
|
--dn-line-strong: #c3cad6;
|
|
--dn-accent: #b00b69;
|
|
--dn-accent-soft: rgba(176, 11, 105, 0.1);
|
|
--dn-ok: #1f7a4d;
|
|
--dn-ok-soft: rgba(31, 122, 77, 0.12);
|
|
--dn-warn: #96580a;
|
|
--dn-warn-soft: rgba(150, 88, 10, 0.12);
|
|
--dn-bad: #b3261e;
|
|
--dn-bad-soft: rgba(179, 38, 30, 0.1);
|
|
}
|
|
|
|
[data-theme='dark'] {
|
|
--dn-ground: #101318;
|
|
--dn-surface: #171b22;
|
|
--dn-panel: #1f242d;
|
|
--dn-ink: #e8ecf2;
|
|
--dn-ink-soft: #c3cbd6;
|
|
--dn-muted: #98a2b3;
|
|
--dn-line: #2c333e;
|
|
--dn-line-strong: #4a5364;
|
|
--dn-accent: #e556a4;
|
|
--dn-accent-soft: rgba(229, 86, 164, 0.16);
|
|
--dn-ok: #41c98a;
|
|
--dn-ok-soft: rgba(65, 201, 138, 0.14);
|
|
--dn-warn: #e3a63c;
|
|
--dn-warn-soft: rgba(227, 166, 60, 0.14);
|
|
--dn-bad: #f2807a;
|
|
--dn-bad-soft: rgba(242, 128, 122, 0.14);
|
|
}
|
|
|
|
/* Pre-JS paint matches the OS preference (§4.6). The bundle re-applies the
|
|
stored theme via the data-theme attribute once parsed. */
|
|
@media (prefers-color-scheme: dark) {
|
|
:root:not([data-theme]) {
|
|
--dn-ground: #101318;
|
|
--dn-surface: #171b22;
|
|
--dn-panel: #1f242d;
|
|
--dn-ink: #e8ecf2;
|
|
--dn-ink-soft: #c3cbd6;
|
|
--dn-muted: #98a2b3;
|
|
--dn-line: #2c333e;
|
|
--dn-line-strong: #4a5364;
|
|
--dn-accent: #e556a4;
|
|
--dn-accent-soft: rgba(229, 86, 164, 0.16);
|
|
--dn-ok: #41c98a;
|
|
--dn-ok-soft: rgba(65, 201, 138, 0.14);
|
|
--dn-warn: #e3a63c;
|
|
--dn-warn-soft: rgba(227, 166, 60, 0.14);
|
|
--dn-bad: #f2807a;
|
|
--dn-bad-soft: rgba(242, 128, 122, 0.14);
|
|
}
|
|
}
|
|
|
|
/* Base + layout. */
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
background: var(--dn-ground);
|
|
color-scheme: light dark;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family:
|
|
system-ui,
|
|
-apple-system,
|
|
'Segoe UI',
|
|
Roboto,
|
|
Helvetica,
|
|
Arial,
|
|
sans-serif;
|
|
font-size: 16px;
|
|
line-height: 1.5;
|
|
color: var(--dn-ink);
|
|
background: var(--dn-ground);
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
p {
|
|
margin: 0;
|
|
}
|
|
|
|
a {
|
|
color: var(--dn-accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
code,
|
|
.mono {
|
|
font-family: ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Menlo,
|
|
Consolas, monospace;
|
|
font-variant-numeric: tabular-nums;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
/* Focus ring: 2 px accent on :focus-visible (never colour-only). */
|
|
:focus-visible {
|
|
outline: 2px solid var(--dn-accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* The route h1 is a programmatic focus target (tabindex="-1", §3.2) so screen
|
|
readers land on the heading after navigation. It is never a tab stop, so it
|
|
must not paint a focus ring on first paint. */
|
|
.page-h1:focus,
|
|
.page-h1:focus-visible {
|
|
outline: none;
|
|
}
|
|
|
|
/* Skip link — first tab stop, visually hidden until focused. */
|
|
.skip-link {
|
|
position: absolute;
|
|
left: -9999px;
|
|
top: auto;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
z-index: 100;
|
|
}
|
|
|
|
.skip-link:focus {
|
|
left: 8px;
|
|
top: 8px;
|
|
width: auto;
|
|
height: auto;
|
|
padding: 8px 12px;
|
|
background: var(--dn-panel);
|
|
color: var(--dn-ink);
|
|
border: 1px solid var(--dn-line-strong);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/* Visually-hidden live region (announces transitions only, §4.0). */
|
|
.visually-hidden {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0 0 0 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
#root {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* Shell grid: compact single column; persistent left rail at >=1024. */
|
|
.app-shell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.topbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 20;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
height: 56px;
|
|
padding: 0 16px;
|
|
background: var(--dn-panel);
|
|
border-bottom: 1px solid var(--dn-line);
|
|
}
|
|
|
|
.topbar-brand {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 44px;
|
|
padding: 0 4px;
|
|
font-weight: 700;
|
|
font-size: 15px;
|
|
color: var(--dn-ink);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.topbar-brand:hover {
|
|
text-decoration: none;
|
|
color: var(--dn-ink);
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
.topbar-brand {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.rail {
|
|
display: none;
|
|
}
|
|
|
|
.shell-body {
|
|
flex: 1;
|
|
width: 100%;
|
|
max-width: 720px;
|
|
margin: 0 auto;
|
|
padding: 16px;
|
|
}
|
|
|
|
@media (min-width: 480px) {
|
|
.topbar {
|
|
padding: 0 24px;
|
|
}
|
|
.shell-body {
|
|
padding: 24px;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.shell-body {
|
|
max-width: 720px;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1024px) {
|
|
.app-shell {
|
|
flex-direction: row;
|
|
}
|
|
.rail {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
width: 240px;
|
|
flex-shrink: 0;
|
|
min-height: 100vh;
|
|
padding: 16px 12px;
|
|
background: var(--dn-panel);
|
|
border-right: 1px solid var(--dn-line);
|
|
}
|
|
.rail-brand {
|
|
font-weight: 700;
|
|
font-size: 15px;
|
|
color: var(--dn-ink);
|
|
padding: 4px 12px 8px;
|
|
}
|
|
.rail-link {
|
|
display: block;
|
|
min-height: 44px;
|
|
line-height: 44px;
|
|
padding: 0 12px;
|
|
border-radius: 8px;
|
|
color: var(--dn-ink-soft);
|
|
font-weight: 500;
|
|
}
|
|
.rail-link:hover {
|
|
background: var(--dn-surface);
|
|
text-decoration: none;
|
|
color: var(--dn-ink);
|
|
}
|
|
.rail-link[aria-current='page'] {
|
|
background: var(--dn-accent-soft);
|
|
color: var(--dn-ink);
|
|
}
|
|
.shell-main-wrap {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.topbar {
|
|
padding: 0 24px;
|
|
}
|
|
}
|
|
|
|
/* Shared controls (>=44 px targets). */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
min-height: 44px;
|
|
padding: 0 16px;
|
|
border: 1px solid var(--dn-line-strong);
|
|
border-radius: 8px;
|
|
background: var(--dn-panel);
|
|
color: var(--dn-ink);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
font-family: inherit;
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn:hover {
|
|
background: var(--dn-surface);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: default;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--dn-accent);
|
|
border-color: var(--dn-accent);
|
|
color: #ffffff;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--dn-accent);
|
|
opacity: 0.92;
|
|
}
|
|
|
|
.btn-ghost {
|
|
background: transparent;
|
|
border-color: transparent;
|
|
color: var(--dn-ink-soft);
|
|
}
|
|
|
|
.btn-ghost:hover {
|
|
background: var(--dn-surface);
|
|
}
|
|
|
|
.icon-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 44px;
|
|
min-height: 44px;
|
|
border: none;
|
|
background: transparent;
|
|
border-radius: 8px;
|
|
color: var(--dn-ink-soft);
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.icon-btn:hover {
|
|
background: var(--dn-surface);
|
|
}
|
|
|
|
.icon-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: default;
|
|
}
|
|
|
|
/* Cards. */
|
|
.card {
|
|
background: var(--dn-surface);
|
|
border: 1px solid var(--dn-line);
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
}
|
|
|
|
.card-link {
|
|
display: block;
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.card-link:hover {
|
|
border-color: var(--dn-line-strong);
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* Panels / dialogs use the stronger panel fill. */
|
|
.panel {
|
|
background: var(--dn-panel);
|
|
border: 1px solid var(--dn-line);
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
}
|
|
|
|
/* Typographic helpers. */
|
|
.muted {
|
|
color: var(--dn-muted);
|
|
}
|
|
|
|
.ink-soft {
|
|
color: var(--dn-ink-soft);
|
|
}
|
|
|
|
.small {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.tiny {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.small-caps {
|
|
font-size: 12px;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: var(--dn-muted);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Page titles. */
|
|
.page-h1 {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
color: var(--dn-ink);
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.h2 {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--dn-ink-soft);
|
|
}
|
|
|
|
/* Error banner. */
|
|
.banner {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
border: 1px solid var(--dn-bad-soft);
|
|
background: var(--dn-bad-soft);
|
|
border-radius: 12px;
|
|
padding: 12px 16px;
|
|
color: var(--dn-ink);
|
|
}
|
|
|
|
.banner-title {
|
|
font-weight: 600;
|
|
color: var(--dn-bad);
|
|
}
|
|
|
|
.banner-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* Offline banner uses warn tone. */
|
|
.banner-offline {
|
|
border-color: var(--dn-warn-soft);
|
|
background: var(--dn-warn-soft);
|
|
}
|
|
|
|
.banner-offline .banner-title {
|
|
color: var(--dn-warn);
|
|
}
|
|
|
|
.banner-details {
|
|
color: var(--dn-muted);
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Empty state. */
|
|
.empty {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
gap: 8px;
|
|
padding: 48px 24px;
|
|
}
|
|
|
|
.empty-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--dn-ink);
|
|
}
|
|
|
|
.empty-subtitle {
|
|
font-size: 14px;
|
|
color: var(--dn-muted);
|
|
max-width: 44ch;
|
|
}
|
|
|
|
.empty-icon {
|
|
opacity: 0.6;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
/* Loading. */
|
|
.loading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
padding: 48px 24px;
|
|
color: var(--dn-muted);
|
|
}
|
|
|
|
.spinner {
|
|
width: 24px;
|
|
height: 24px;
|
|
border: 3px solid var(--dn-line);
|
|
border-top-color: var(--dn-accent);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* Instance card on /hub/instances. */
|
|
.instance-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.instance-card-icon {
|
|
flex-shrink: 0;
|
|
color: var(--dn-ink-soft);
|
|
}
|
|
|
|
.instance-card-body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.instance-card-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--dn-ink);
|
|
}
|
|
|
|
.instance-card-url {
|
|
font-size: 13px;
|
|
color: var(--dn-muted);
|
|
}
|
|
|
|
.instance-card-summary {
|
|
font-size: 12px;
|
|
color: var(--dn-muted);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* Status dots. */
|
|
.dot {
|
|
display: inline-block;
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.dot-ok {
|
|
background: var(--dn-ok);
|
|
}
|
|
|
|
.dot-warn {
|
|
background: var(--dn-warn);
|
|
}
|
|
|
|
.dot-bad {
|
|
background: var(--dn-bad);
|
|
}
|
|
|
|
.dot-muted {
|
|
background: var(--dn-muted);
|
|
opacity: 0.4;
|
|
}
|
|
|
|
/* Status pill: soft fill + 6px dot + ink word (§6.2). */
|
|
.pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 12px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--dn-ink);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.pill-ok {
|
|
background: var(--dn-ok-soft);
|
|
}
|
|
|
|
.pill-warn {
|
|
background: var(--dn-warn-soft);
|
|
}
|
|
|
|
.pill-bad {
|
|
background: var(--dn-bad-soft);
|
|
}
|
|
|
|
/* Chips. */
|
|
.chip {
|
|
display: inline-block;
|
|
max-width: 100%;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
vertical-align: middle;
|
|
padding: 2px 10px;
|
|
border: 1px solid var(--dn-line);
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
color: var(--dn-muted);
|
|
background: var(--dn-panel);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.chip-soft {
|
|
background: var(--dn-surface);
|
|
border-color: transparent;
|
|
}
|
|
|
|
/* Service grid: 2-col >=768. */
|
|
.service-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 16px;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.service-grid {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
}
|
|
|
|
.service-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
height: 100%;
|
|
}
|
|
|
|
.service-card-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.service-card-title {
|
|
flex: 1;
|
|
min-width: 0;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--dn-ink);
|
|
}
|
|
|
|
.service-card-name {
|
|
font-size: 13px;
|
|
color: var(--dn-muted);
|
|
}
|
|
|
|
.service-card-desc {
|
|
font-size: 13px;
|
|
color: var(--dn-ink-soft);
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.service-card-chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.service-card-icon {
|
|
flex-shrink: 0;
|
|
color: var(--dn-muted);
|
|
}
|
|
|
|
/* Header + tab strip (instance scope). */
|
|
.instance-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.tabstrip {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-bottom: 16px;
|
|
border-bottom: 1px solid var(--dn-line);
|
|
}
|
|
|
|
.tab {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 44px;
|
|
padding: 0 12px;
|
|
color: var(--dn-ink-soft);
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
border-bottom: 2px solid transparent;
|
|
}
|
|
|
|
.tab:hover {
|
|
text-decoration: none;
|
|
color: var(--dn-ink);
|
|
}
|
|
|
|
.tab[aria-current='page'] {
|
|
color: var(--dn-ink);
|
|
border-bottom-color: var(--dn-accent);
|
|
}
|
|
|
|
.tabstrip-spacer {
|
|
flex: 1;
|
|
}
|
|
|
|
/* Detail rows (dl). */
|
|
.detail-list {
|
|
margin: 0;
|
|
}
|
|
|
|
.detail-row {
|
|
display: flex;
|
|
gap: 16px;
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid var(--dn-line);
|
|
}
|
|
|
|
.detail-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.detail-label {
|
|
flex: 0 0 140px;
|
|
font-size: 13px;
|
|
color: var(--dn-muted);
|
|
}
|
|
|
|
.detail-value {
|
|
flex: 1;
|
|
min-width: 0;
|
|
font-size: 14px;
|
|
color: var(--dn-ink);
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* Partner rows (trusted). */
|
|
.partner-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.partner-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
width: 100%;
|
|
text-align: left;
|
|
border: 1px solid var(--dn-line);
|
|
background: var(--dn-surface);
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
color: var(--dn-ink);
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.partner-row:hover {
|
|
border-color: var(--dn-line-strong);
|
|
}
|
|
|
|
.partner-icon {
|
|
flex-shrink: 0;
|
|
color: var(--dn-muted);
|
|
}
|
|
|
|
.partner-body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.partner-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.partner-name {
|
|
flex: 1;
|
|
min-width: 0;
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
color: var(--dn-ink);
|
|
}
|
|
|
|
.partner-url {
|
|
font-size: 13px;
|
|
color: var(--dn-muted);
|
|
}
|
|
|
|
.partner-scopes {
|
|
font-size: 13px;
|
|
color: var(--dn-muted);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.partner-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.partner-chevron {
|
|
color: var(--dn-muted);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Inline blocked-partner disclosure (§4.5). */
|
|
.disclosure {
|
|
border: 1px solid var(--dn-line);
|
|
border-top: none;
|
|
border-radius: 0 0 12px 12px;
|
|
background: var(--dn-panel);
|
|
padding: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.disclosure-title {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
color: var(--dn-ink);
|
|
}
|
|
|
|
.disclosure-body {
|
|
font-size: 14px;
|
|
color: var(--dn-ink-soft);
|
|
}
|
|
|
|
.disclosure-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
/* Settings. */
|
|
.settings-stack {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
max-width: 640px;
|
|
}
|
|
|
|
.settings-card-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
color: var(--dn-ink);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.setting-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
}
|
|
|
|
.setting-label {
|
|
font-size: 14px;
|
|
color: var(--dn-ink);
|
|
}
|
|
|
|
/* Switch (real checkbox with role=switch). */
|
|
.switch {
|
|
position: relative;
|
|
width: 44px;
|
|
height: 26px;
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
background: var(--dn-line-strong);
|
|
border-radius: 999px;
|
|
cursor: pointer;
|
|
transition: background 0.15s ease;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.switch::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 3px;
|
|
left: 3px;
|
|
width: 20px;
|
|
height: 20px;
|
|
background: var(--dn-panel);
|
|
border-radius: 50%;
|
|
transition: transform 0.15s ease;
|
|
}
|
|
|
|
.switch:checked {
|
|
background: var(--dn-accent);
|
|
}
|
|
|
|
.switch:checked::after {
|
|
transform: translateX(18px);
|
|
}
|
|
|
|
.switch:focus-visible {
|
|
outline: 2px solid var(--dn-accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.settings-footer {
|
|
text-align: center;
|
|
font-size: 12px;
|
|
color: var(--dn-muted);
|
|
margin-top: 24px;
|
|
}
|
|
|
|
/* About status line. */
|
|
.status-line {
|
|
font-size: 13px;
|
|
color: var(--dn-muted);
|
|
margin-top: 8px;
|
|
}
|
|
|
|
/* Dialog. */
|
|
.dialog-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
z-index: 50;
|
|
}
|
|
|
|
.dialog {
|
|
background: var(--dn-panel);
|
|
border: 1px solid var(--dn-line);
|
|
border-radius: 12px;
|
|
width: 100%;
|
|
max-width: 480px;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
.dialog-head {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.dialog-title {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: var(--dn-ink);
|
|
}
|
|
|
|
/* Copy feedback. */
|
|
.copy-feedback {
|
|
font-size: 12px;
|
|
color: var(--dn-muted);
|
|
}
|
|
|
|
/* Stack helpers. */
|
|
.stack {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.spacer {
|
|
flex: 1;
|
|
}
|
|
|
|
.flex-1 {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.mt-2 {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.mt-4 {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.mb-2 {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.mb-4 {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.gap-8 {
|
|
gap: 8px;
|
|
}
|
|
|
|
/* Reduced motion. */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.spinner {
|
|
animation-duration: 1.6s;
|
|
}
|
|
.switch,
|
|
.switch::after {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
/* Service detail layout + xl context pane (§4.4). */
|
|
.detail-layout {
|
|
display: block;
|
|
}
|
|
|
|
.detail-main {
|
|
min-width: 0;
|
|
}
|
|
|
|
/* Context pane: real landmarks, only rendered at >=1280 (no hidden focusables
|
|
below — display:none removes them from the tab order). */
|
|
.context-pane {
|
|
display: none;
|
|
}
|
|
|
|
@media (min-width: 1280px) {
|
|
.detail-layout {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 240px;
|
|
gap: 24px;
|
|
align-items: start;
|
|
}
|
|
.context-pane {
|
|
display: block;
|
|
position: sticky;
|
|
top: 80px;
|
|
}
|
|
.context-nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
margin: 8px 0 16px;
|
|
}
|
|
.context-nav a {
|
|
display: block;
|
|
padding: 8px 8px;
|
|
border-radius: 8px;
|
|
color: var(--dn-ink-soft);
|
|
font-size: 14px;
|
|
}
|
|
.context-nav a:hover {
|
|
background: var(--dn-surface);
|
|
text-decoration: none;
|
|
color: var(--dn-ink);
|
|
}
|
|
.context-nav a[aria-current='page'] {
|
|
background: var(--dn-accent-soft);
|
|
color: var(--dn-ink);
|
|
}
|
|
.context-identity .detail-label {
|
|
flex-basis: 76px;
|
|
}
|
|
}
|
|
|
|
/* High contrast: strengthen hairlines. */
|
|
@media (prefers-contrast: more) {
|
|
.card,
|
|
.panel,
|
|
.partner-row {
|
|
border-color: var(--dn-line-strong);
|
|
}
|
|
}
|