from __future__ import annotations BASE_CSS = """ :root { color-scheme: light; --bs-primary: #000000; --bs-primary-rgb: 0, 0, 0; --bs-link-color: #000000; --bs-link-hover-color: #3f3f46; --bs-border-radius: 12px; --bs-border-radius-sm: 10px; --bs-border-radius-lg: 12px; --rp-bg: #ffffff; --rp-canvas: #ffffff; --rp-surface: #ffffff; --rp-surface-alt: #fafafa; --rp-field: #fafafa; --rp-ink: #000000; --rp-muted: #737373; --rp-charcoal: #52525b; --rp-mute: #a1a1aa; --rp-line: #e5e5e5; --rp-soft-line: #eeeeee; --rp-danger: #b42318; --rp-focus-ring: rgba(0, 0, 0, 0.18); --rp-terminal: #ffffff; --rp-terminal-ink: #000000; --rp-success: #1d6f42; } [data-bs-theme="dark"] { color-scheme: dark; --bs-body-bg: #0f0f0f; --bs-body-color: #f5f5f5; --bs-secondary-color: #a1a1aa; --bs-border-color: rgba(255, 255, 255, 0.16); --bs-tertiary-bg: #171717; --rp-bg: #0f0f0f; --rp-canvas: #0f0f0f; --rp-surface: #171717; --rp-surface-alt: #1f1f1f; --rp-field: #1f1f1f; --rp-ink: #f5f5f5; --rp-muted: #a3a3a3; --rp-charcoal: #d4d4d4; --rp-mute: #737373; --rp-line: rgba(255, 255, 255, 0.16); --rp-soft-line: rgba(255, 255, 255, 0.1); --rp-danger: #ff8a80; --rp-focus-ring: rgba(255, 255, 255, 0.24); --rp-terminal: #171717; --rp-terminal-ink: #f5f5f5; --rp-success: #62c383; } * { box-sizing: border-box; } html { scroll-behavior: smooth; overflow-x: clip; } body { min-height: 100vh; overflow-x: clip; background: var(--rp-bg); color: var(--rp-ink); font: 400 16px/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } code { color: var(--rp-ink); } .justify-items-center { justify-items: center; } .container { max-width: 1040px; } .container.narrow { max-width: 760px; } .skip-link { position: fixed; left: 16px; top: 10px; z-index: 40; transform: translateY(-140%); padding: 8px 20px; border-radius: 999px; background: var(--rp-ink); color: var(--rp-bg); text-decoration: none; font-size: 14px; transition: transform 0.16s ease; } .skip-link:focus { transform: translateY(0); } .site-nav { min-height: 63px; padding: 14px 0; border-bottom: 0; background: var(--rp-canvas); } .site-nav .container { display: flex; align-items: center; gap: 12px; min-width: 0; } .brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 8px; color: var(--rp-ink); font-size: 14px; font-weight: 600; letter-spacing: 0; white-space: nowrap; } .brand:hover { color: var(--rp-ink); } .brand img { width: 26px; height: 26px; display: block; } .nav-label { max-width: min(38vw, 320px); } .site-nav-actions { min-width: 0; flex-wrap: wrap; } .navbar .nav-link, .navbar-text { color: var(--rp-muted); font-size: 13px; font-weight: 500; } .navbar .nav-link:hover { color: var(--rp-ink); } .theme-toggle { align-items: center; appearance: none; background: transparent; border: 0; border-radius: 999px; color: var(--rp-muted); cursor: pointer; display: inline-flex; flex: 0 0 auto; height: 30px; justify-content: center; padding: 0; width: 30px; } .theme-toggle:hover { background: var(--rp-surface-alt); color: var(--rp-ink); } .theme-toggle:focus-visible { outline: 2px solid var(--rp-focus-ring); outline-offset: 2px; } .theme-toggle svg { height: 17px; width: 17px; } .theme-toggle:active { transform: scale(0.96); } .theme-toggle::-moz-focus-inner { border: 0; padding: 0; } .theme-icon { display: block; } .theme-icon-sun { display: none; } [data-bs-theme="dark"] .theme-icon-moon { display: none; } [data-bs-theme="dark"] .theme-icon-sun { display: block; } .hero-band { min-height: auto; display: grid; align-items: center; border-bottom: 0; background: var(--rp-canvas); text-align: center; padding: 96px 0 88px; } .hero-band .container { max-width: 720px; min-width: 0; } .hero-band .container > * { max-width: 100%; min-width: 0; } .hero-logo { width: 80px; height: 80px; margin-inline: auto; } .hero-band.compact { min-height: auto; padding: 56px 0 48px; } .section { padding: 88px 0; border-bottom: 0; background: var(--rp-canvas); } .section-compact { padding: 56px 0; } .section + .section { border-top: 0; } .success-section { background: var(--rp-surface-alt); } .danger-section { background: var(--rp-surface); border-top: 1px solid var(--rp-soft-line); } .page-heading, .admin-heading .container { max-width: 760px; } .admin-heading { padding: 56px 0 48px; } h1, h2, h3, p { margin: 0; } h1, h2 { font-family: "SF Pro Rounded", ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } h1 { max-width: 720px; font-size: 36px; line-height: 1.11; font-weight: 500; letter-spacing: 0; overflow-wrap: anywhere; } h2 { font-size: 28px; line-height: 1.22; font-weight: 500; letter-spacing: 0; } h3 { font-size: 19px; line-height: 1.35; font-weight: 500; } .eyebrow { color: var(--rp-charcoal); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; } .lead { max-width: 660px; color: var(--rp-muted); font-size: 16px; line-height: 1.5; letter-spacing: 0; } .section-copy, .intro { margin-top: 12px; max-width: 560px; color: var(--rp-muted); font-size: 15px; line-height: 1.5; } .install-pill { display: inline-flex; align-items: center; max-width: 100%; min-width: 0; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 9999px; background: var(--rp-field); color: var(--rp-ink); } .install-pill code { min-width: 0; overflow: hidden; color: var(--rp-ink); text-overflow: ellipsis; white-space: nowrap; font: 400 15px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; } .hero-action-form { display: inline-flex; } .simple-steps { display: grid; gap: 12px; max-width: 620px; margin: 28px auto 0; padding: 0; color: var(--rp-muted); font-size: 15px; line-height: 1.5; list-style: none; } .simple-steps li { margin: 0; } .simple-steps strong { color: var(--rp-ink); font-weight: 500; } .api-endpoints { text-align: left; } .api-endpoints .simple-steps { margin-left: 0; margin-right: 0; } .flow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; max-width: 760px; margin: 32px auto 0; padding: 0; list-style: none; text-align: center; } .flow-steps li { position: relative; min-width: 0; color: var(--rp-muted); font-size: 14px; line-height: 1.45; } .flow-steps li + li::before { content: ""; position: absolute; top: 11px; left: -22px; width: 22px; height: 1px; background: var(--rp-line); } .flow-steps strong { display: block; margin-bottom: 5px; color: var(--rp-ink); font-size: 15px; font-weight: 500; } .flow-steps span { display: block; max-width: 140px; margin: 0 auto; } .installer-commands { display: grid; gap: 28px; margin-top: 28px; } .installer-command { display: grid; gap: 0; } .card { background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 16px; box-shadow: none; overflow: clip; } .card-body { padding: 24px; } label { display: grid; gap: 8px; color: var(--rp-charcoal); font-size: 14px; font-weight: 500; } .form-control, input { width: 100%; min-height: 44px; border: 1px solid var(--rp-line); border-radius: 9999px; padding: 10px 16px; color: var(--bs-body-color); font: inherit; background: var(--rp-field); outline: none; } .form-select { min-height: 38px; border-color: var(--rp-line); border-radius: 9999px; background-color: var(--rp-field); color: var(--rp-ink); } .form-control:focus, input:focus, .form-select:focus { border-color: var(--rp-ink); box-shadow: 0 0 0 3px var(--rp-focus-ring); } .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9999px; font-size: 14px; font-weight: 600; line-height: 1; transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease; } .btn:not(.btn-sm) { min-height: 42px; padding: 10px 22px; } .btn-sm { min-width: 40px; min-height: 40px; padding-inline: 16px; border-radius: 9999px; } .btn:active { transform: scale(0.97); } .btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--rp-focus-ring); outline-offset: 3px; } .btn-primary { --bs-btn-color: #ffffff; --bs-btn-bg: #000000; --bs-btn-border-color: #000000; --bs-btn-hover-color: #ffffff; --bs-btn-hover-bg: #1c1c1c; --bs-btn-hover-border-color: #1c1c1c; --bs-btn-active-color: #ffffff; --bs-btn-active-bg: #1c1c1c; --bs-btn-active-border-color: #1c1c1c; --bs-btn-disabled-bg: var(--rp-surface-alt); --bs-btn-disabled-border-color: var(--rp-line); --bs-btn-disabled-color: var(--rp-mute); } .btn-outline-primary { --bs-btn-color: var(--rp-ink); --bs-btn-border-color: var(--rp-line); --bs-btn-hover-color: var(--rp-ink); --bs-btn-hover-bg: var(--rp-surface-alt); --bs-btn-hover-border-color: var(--rp-line); --bs-btn-active-color: var(--rp-ink); --bs-btn-active-bg: var(--rp-surface-alt); --bs-btn-active-border-color: var(--rp-line); } .btn-outline-secondary, .btn-light { --bs-btn-bg: var(--rp-field); --bs-btn-border-color: var(--rp-line); --bs-btn-color: var(--rp-ink); --bs-btn-hover-bg: var(--rp-surface-alt); --bs-btn-hover-border-color: var(--rp-line); --bs-btn-hover-color: var(--rp-ink); } .btn-outline-danger { --bs-btn-color: var(--rp-danger); --bs-btn-border-color: var(--rp-line); --bs-btn-bg: var(--rp-field); --bs-btn-hover-color: #ffffff; --bs-btn-hover-bg: var(--rp-danger); --bs-btn-hover-border-color: var(--rp-danger); --bs-btn-active-color: #ffffff; --bs-btn-active-bg: var(--rp-danger); --bs-btn-active-border-color: var(--rp-danger); } .text-primary { color: var(--rp-ink) !important; } .text-bg-primary { color: #ffffff !important; background-color: #000000 !important; } .text-bg-secondary, .text-bg-warning { color: var(--rp-charcoal) !important; background-color: var(--rp-field) !important; border: 1px solid var(--rp-line); } .text-bg-primary.rounded-circle { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 9999px !important; } .alert-info, .alert-warning { --bs-alert-color: var(--rp-charcoal); --bs-alert-bg: var(--rp-surface-alt); --bs-alert-border-color: var(--rp-line); border-radius: 12px; } .alert code { color: var(--rp-ink); } .copy-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 12px; min-width: 0; max-width: 100%; } .copy-pill { display: flex; min-width: 0; min-height: 58px; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid var(--rp-line); border-radius: 9999px; background: var(--rp-field); } .copy-field-secret .copy-pill { border-color: var(--rp-danger); } .copy-pill-label { display: inline-flex; flex: 0 0 auto; align-items: center; color: var(--rp-muted); font-weight: 600; white-space: nowrap; } .copy-field .copy-value { flex: 1 1 auto; min-width: 0; max-width: 100%; overflow: hidden; color: var(--rp-ink); text-overflow: ellipsis; white-space: nowrap; } .copy-field code, .copy-field input { margin: 0; border: 0; outline: 0; background: transparent; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 16px; line-height: 1.45; } .copy-field input { width: 100%; padding: 0; } .copy-reveal-button { flex: 0 0 auto; min-height: 36px; padding-inline: 14px; } .copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 122px; min-height: 58px; font-weight: 600; } .copy-button .copy-icon, .copy-button .check-icon, .copy-icon-button .copy-icon, .copy-icon-button .check-icon, .copy-menu-item .copy-icon, .copy-menu-item .check-icon, .copy-menu .more-icon { width: 16px; height: 16px; flex: 0 0 auto; } .check-icon, .is-copied .copy-icon { display: none; } .is-copied .check-icon { display: block; } .terminal-card { position: relative; display: grid; gap: 8px; padding: 18px 20px; border: 1px solid var(--rp-line); border-radius: 12px; color: var(--rp-terminal-ink); background: var(--rp-terminal); font: 400 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; text-align: left; } .code-window { padding-right: 56px; } .manual-code { overflow-x: auto; } .terminal-card code { display: block; overflow-wrap: anywhere; color: inherit; font: inherit; } .copy-icon-button { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 999px; color: var(--rp-muted); background: transparent; } .copy-icon-button:hover, .copy-icon-button:focus-visible { color: var(--rp-ink); background: var(--rp-surface-alt); } .copy-actions { display: flex; align-items: center; justify-content: flex-start; } .copy-menu { position: relative; display: inline-flex; } .copy-menu > summary { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--rp-line); border-radius: 999px; color: var(--rp-muted); background: var(--rp-surface); cursor: pointer; list-style: none; } .copy-menu > summary::-webkit-details-marker { display: none; } .copy-menu > summary:hover, .copy-menu > summary:focus-visible { color: var(--rp-ink); background: var(--rp-surface-alt); } .copy-menu-popover { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; display: grid; min-width: 220px; gap: 4px; padding: 8px; border: 1px solid var(--rp-line); border-radius: 12px; background: var(--rp-surface); } .copy-menu-item { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; min-height: 36px; padding: 8px 10px; border: 0; border-radius: 10px; color: var(--rp-ink); background: transparent; font: 500 14px/1.2 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-align: left; } .copy-menu-item:hover, .copy-menu-item:focus-visible { background: var(--rp-surface-alt); } .site-footer { padding: 28px 0; background: var(--rp-canvas); } .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; } .footer-made { flex: 0 0 auto; color: var(--rp-muted); font-size: 13px; line-height: 1.4; } .footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 18px; } .footer-link { display: inline-flex; align-items: center; gap: 6px; color: var(--rp-muted); font-size: 13px; line-height: 1.4; text-decoration: none; } .footer-link svg { width: 15px; height: 15px; flex: 0 0 auto; opacity: 0.8; } .footer-link:hover, .footer-link:focus-visible { color: var(--rp-ink); } .footer-link:focus-visible { border-radius: 999px; outline: 2px solid var(--rp-focus-ring); outline-offset: 4px; } @media (max-width: 860px) { .section, .hero-band { padding: 64px 0; } .section-compact { padding: 48px 0; } .hero-band { min-height: auto; } h1 { font-size: 32px; } } @media (max-width: 720px) { .flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 440px; } .flow-steps li + li::before { display: none; } } @media (max-width: 560px) { .container, .container.narrow, .hero-band .container { width: 100%; max-width: 100%; } .site-nav { padding: 10px 0; } .site-nav .container { align-items: flex-start; } .site-nav-actions { max-width: calc(100% - 108px); row-gap: 8px; } .brand { font-size: 14px; } .brand img { width: 24px; height: 24px; } .navbar .nav-link, .navbar-text { font-size: 12px; } .nav-label { display: none; } .flow-steps { grid-template-columns: 1fr; gap: 18px; max-width: 280px; margin-top: 28px; } .flow-steps li + li::before { display: none; } .flow-steps span { max-width: 240px; } .hero-band .btn, .hero-action-form, .card button, .danger-section form, .danger-section button { width: 100%; } .install-pill { width: 100%; } .hero-logo { width: 68px; height: 68px; } .copy-field { display: grid; grid-template-columns: 1fr; gap: 10px; } .copy-pill { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 50px; align-items: start; border-radius: 24px; padding: 12px 14px; overflow: hidden; } .copy-pill-label { display: block; min-width: 0; max-width: 100%; } .copy-field .copy-value, .copy-field code { display: block; width: 100%; max-width: 100%; min-width: 0; font-size: 14px; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; word-break: break-word; overflow: visible; text-overflow: clip; } .copy-field input.copy-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .terminal-card { max-width: 100%; overflow: hidden; } .terminal-card code { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; } .manual-code { overflow-x: hidden; } .copy-field .copy-button { width: 100%; min-height: 50px; border-radius: 9999px; } .card .copy-icon-button, .copy-icon-button { width: 34px; } .card .copy-menu > summary, .copy-menu > summary { width: 40px; } .copy-menu-popover { right: auto; left: 0; } .footer-inner { align-items: flex-start; flex-direction: column; } .footer-links { justify-content: flex-start; } h1 { font-size: 28px; line-height: 1.15; } h2 { font-size: 24px; } } """.strip() ADMIN_CSS = """ .admin-console { padding: 32px 0 18px; background: var(--rp-canvas); } .admin-page-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; } .admin-page-title h1 { font-size: 30px; } .admin-total-strip, .admin-metric-strip { display: flex; flex-wrap: wrap; gap: 8px; } .admin-total-strip span, .admin-metric-strip span { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 12px; border: 1px solid var(--rp-line); border-radius: 999px; background: var(--rp-surface); color: var(--rp-muted); font-size: 13px; white-space: nowrap; } .admin-total-strip strong, .admin-metric-strip strong { color: var(--rp-ink); font-size: 14px; font-weight: 600; } .admin-block { padding: 18px 0; } .admin-block + .admin-block { border-top: 1px solid var(--rp-soft-line); } .admin-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 10px; } .admin-notice { margin: 10px 0 0; border-radius: 14px; } .admin-cleanup-bar { display: grid; grid-template-columns: minmax(150px, 0.8fr) minmax(0, 2.3fr) auto; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rp-soft-line); } .admin-cleanup-title { display: grid; gap: 2px; min-width: 0; } .admin-cleanup-title h2 { font-size: 22px; } .admin-cleanup-title span { color: var(--rp-muted); font-size: 13px; } .admin-cleanup-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; } .admin-cleanup-times div { min-width: 0; } .admin-cleanup-times dt { margin: 0; color: var(--rp-muted); font-size: 12px; font-weight: 600; } .admin-cleanup-times dd { margin: 0; overflow: hidden; color: var(--rp-ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; } .admin-cleanup-bar form { justify-self: end; } .admin-metric-strip { margin-top: 12px; } .metric-card { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--rp-line); border-radius: 16px; background: var(--rp-surface); } .metric-card span { color: var(--rp-muted); font-size: 13px; font-weight: 500; } .metric-card strong { color: var(--rp-ink); font-size: 20px; font-weight: 600; } .admin-table-scroll { max-height: 480px; overflow: auto; background: var(--rp-surface); border-color: var(--rp-line) !important; border-radius: 16px !important; -webkit-overflow-scrolling: touch; } .admin-table-scroll thead th { position: sticky; top: 0; z-index: 1; background: var(--rp-surface-alt); } .table-page-size { width: auto; min-width: 76px; } .admin-table-shell .form-control { max-width: 360px; } .status-table-shell { max-width: 100%; border: 1px solid var(--rp-line); border-radius: 16px; background: var(--rp-surface); } .pagination { --bs-pagination-color: var(--rp-muted); --bs-pagination-bg: var(--rp-surface); --bs-pagination-border-color: var(--rp-line); --bs-pagination-hover-color: var(--rp-ink); --bs-pagination-hover-bg: var(--rp-field); --bs-pagination-hover-border-color: var(--rp-line); --bs-pagination-active-color: #ffffff; --bs-pagination-active-bg: #000000; --bs-pagination-active-border-color: #000000; --bs-pagination-disabled-color: var(--rp-mute); --bs-pagination-disabled-bg: var(--rp-surface); --bs-pagination-disabled-border-color: var(--rp-line); } table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--rp-ink); } .table { --bs-table-bg: transparent; --bs-table-color: var(--rp-ink); --bs-table-border-color: var(--rp-soft-line); --bs-table-hover-bg: var(--rp-field); margin-bottom: 0; } th, td { border-bottom: 1px solid var(--rp-soft-line); padding: 10px 9px; text-align: left; vertical-align: middle; } td { overflow-wrap: anywhere; } .status-table { min-width: min(100%, 420px); } .status-table th, .status-table td { white-space: normal; overflow-wrap: anywhere; } .dashboard-page { background: var(--rp-canvas); } .dashboard-shell { padding: 32px 0 18px; } .dashboard-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; } .dashboard-header h1 { margin-top: 4px; font-size: 32px; } .dashboard-page .lead { margin-top: 8px; font-size: 15px; } .dashboard-page .section-copy { margin-top: 6px; } .dashboard-page .alert { margin: 0 0 18px; border-radius: 12px; } .dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.75fr); gap: 16px; align-items: start; } .dashboard-card { min-width: 0; padding: 18px; border: 1px solid var(--rp-line); border-radius: 12px; background: var(--rp-surface); } .dashboard-card-main { display: grid; gap: 12px; } .dashboard-card-compact { display: grid; gap: 10px; margin-top: 16px; } .dashboard-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; } .dashboard-card-header h2, .dashboard-section h2 { margin-top: 2px; font-size: 22px; } .dashboard-copy-stack { display: grid; gap: 8px; } .dashboard-actions { display: flex; flex-wrap: wrap; gap: 8px; } .dashboard-page .copy-field { gap: 8px; } .dashboard-page .copy-pill { min-height: 48px; border-radius: 12px; } .dashboard-page .copy-button { min-width: 96px; min-height: 48px; } .dashboard-page .copy-field code, .dashboard-page .copy-field input { font-size: 14px; } .dashboard-page .copy-reveal-button { min-height: 32px; } .dashboard-status-card { display: grid; gap: 12px; } .dashboard-status-list { display: grid; gap: 0; margin: 0; border: 1px solid var(--rp-soft-line); border-radius: 10px; overflow: hidden; } .dashboard-status-list div { display: grid; grid-template-columns: 82px minmax(0, 1fr); border-bottom: 1px solid var(--rp-soft-line); } .dashboard-status-list div:last-child { border-bottom: 0; } .dashboard-status-list dt, .dashboard-status-list dd { min-width: 0; margin: 0; padding: 10px 12px; overflow-wrap: anywhere; } .dashboard-status-list dt { color: var(--rp-muted); background: var(--rp-surface-alt); font-size: 13px; font-weight: 600; } .dashboard-status-list dd { font: 500 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; } .dashboard-section { padding: 24px 0 0; } .dashboard-section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 10px; } .dashboard-settings-grid { display: grid; grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr); gap: 20px; align-items: start; } .dashboard-form-card { display: grid; gap: 12px; } .dashboard-table-shell { max-height: 360px; overflow: auto; border: 1px solid var(--rp-line); border-radius: 12px; background: var(--rp-surface); -webkit-overflow-scrolling: touch; } .dashboard-history-table { min-width: 760px; } .dashboard-history-table thead th { position: sticky; top: 0; z-index: 1; background: var(--rp-surface-alt); } .dashboard-history-table th, .dashboard-history-table td { padding: 8px 10px; } .status-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; border: 1px solid var(--rp-line); border-radius: 999px; background: var(--rp-field); color: var(--rp-charcoal); font-size: 12px; font-weight: 600; white-space: nowrap; } .status-badge-ok { color: var(--rp-success); } .status-badge-error { color: var(--rp-danger); } .dashboard-danger-section { padding-bottom: 32px; } .dashboard-danger-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; border: 1px solid var(--rp-line); border-radius: 12px; background: var(--rp-surface); } @media (max-width: 860px) { .dashboard-shell { padding-top: 24px; } .dashboard-header, .dashboard-card-header, .dashboard-danger-card { align-items: stretch; flex-direction: column; } .dashboard-grid, .dashboard-settings-grid { grid-template-columns: 1fr; } .dashboard-header h1 { font-size: 28px; } } @media (max-width: 560px) { .dashboard-card, .dashboard-danger-card { padding: 14px; } .dashboard-page .copy-button, .dashboard-actions .btn, .dashboard-card-header .btn, .dashboard-danger-card .btn { width: 100%; } .dashboard-page .copy-field { grid-template-columns: 1fr; } .dashboard-status-list div { grid-template-columns: 92px minmax(0, 1fr); } } tr:last-child th, tr:last-child td { border-bottom: 0; } th { color: var(--rp-muted); font-size: 12px; font-weight: 600; background: var(--rp-surface-alt); white-space: nowrap; } .cell-hostname { width: 16rem; max-width: 16rem; } .cell-ip { width: 10rem; max-width: 12rem; } .cell-time { width: 13rem; max-width: 13rem; } .cell-status, .cell-count, .cell-delete { width: 1%; white-space: nowrap; } .cell-detail { min-width: 18rem; max-width: 28rem; } .cell-actions { width: 13rem; } .admin-action-group { display: flex; flex-wrap: wrap; gap: 6px; } .admin-action-group .btn, .cell-delete .btn { min-height: 34px; padding-inline: 12px; white-space: nowrap; } .empty { color: var(--rp-muted); text-align: center; padding: 28px; } @media (max-width: 860px) { .admin-console { padding-top: 24px; } .admin-page-title, .admin-section-heading { align-items: start; flex-direction: column; gap: 12px; } .admin-cleanup-bar { grid-template-columns: 1fr; align-items: start; gap: 12px; } .admin-cleanup-times { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; } .admin-cleanup-bar form { justify-self: stretch; width: 100%; } .admin-cleanup-bar button { width: 100%; } .admin-table-shell .form-control { max-width: none; } .admin-table-shell [data-table-count] { white-space: normal !important; } .pagination { flex-wrap: wrap; justify-content: flex-start !important; } th, td { padding: 10px 8px; } } """.strip()