Nostr_Keynctr/frontend/src/styles.css
Avi 31ef3057e0 Rebrand remaining UI strings to Keynectr
Sidebar brand, home welcome title, settings version line, stylesheet
header comment and the three tests asserting them.
2026-08-23 10:43:20 -05:00

1571 lines
26 KiB
CSS

/* =========================================================================
Keynectr — design system
Light/dark/system themes via `data-theme` on <html>.
========================================================================= */
:root,
:root[data-theme='light'] {
--bg: #f6f4f0;
--surface: #ffffff;
--surface-2: #f1ede7;
--surface-hover: #faf8f5;
--border: #e6e0d6;
--border-strong: #d8d0c3;
--text: #201b15;
--text-muted: #6d655a;
--primary: #6d5ae6;
--primary-hover: #5c49d4;
--primary-soft: #efecfd;
--on-primary: #ffffff;
--danger: #c0392b;
--danger-soft: #fdecec;
--warning: #9a6b13;
--warning-soft: #fcf3e0;
--success: #22713c;
--success-soft: #e7f5ec;
--info: #2868a4;
--info-soft: #e9f2fb;
--focus: #6d5ae6;
--shadow: 0 1px 2px rgba(30, 25, 18, 0.05), 0 8px 24px rgba(30, 25, 18, 0.06);
--shadow-modal: 0 12px 40px rgba(20, 15, 10, 0.22);
--radius: 14px;
--radius-sm: 9px;
}
:root[data-theme='dark'] {
--bg: #16141b;
--surface: #211d29;
--surface-2: #2a2534;
--surface-hover: #262130;
--border: #352f42;
--border-strong: #453d55;
--text: #ece8f2;
--text-muted: #a49cb4;
--primary: #8b7cff;
--primary-hover: #9d90ff;
--primary-soft: #332c55;
--on-primary: #141019;
--danger: #ff8d80;
--danger-soft: #3a2322;
--warning: #e6b86a;
--warning-soft: #3a2e1a;
--success: #7fd6a2;
--success-soft: #1f3529;
--info: #8cc2f0;
--info-soft: #1e2c3c;
--focus: #a99dff;
--shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
--shadow-modal: 0 12px 40px rgba(0, 0, 0, 0.6);
}
* {
box-sizing: border-box;
}
html,
body,
#root {
height: 100%;
}
body {
margin: 0;
font-family:
system-ui,
-apple-system,
'Segoe UI',
Roboto,
Ubuntu,
Cantarell,
'Noto Sans',
sans-serif;
font-size: 15px;
line-height: 1.5;
color: var(--text);
background: var(--bg);
-webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
margin: 0;
line-height: 1.25;
font-weight: 650;
}
h1 {
font-size: 24px;
}
h2 {
font-size: 16px;
font-weight: 650;
}
code,
.mono {
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
font-size: 0.92em;
}
code {
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: 6px;
padding: 1px 5px;
}
.muted {
color: var(--text-muted);
}
.small {
font-size: 13px;
}
.grow {
flex: 1;
}
a {
color: var(--primary);
}
:focus-visible {
outline: 2px solid var(--focus);
outline-offset: 2px;
border-radius: 4px;
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
/* -------------------------------------------------------------------------
Layout shell
------------------------------------------------------------------------- */
.app-shell {
display: flex;
height: 100vh;
overflow: hidden;
}
.main {
flex: 1;
overflow-y: auto;
background: var(--bg);
}
.screen {
max-width: 920px;
margin: 0 auto;
padding: 32px 40px 56px;
}
.screen-inner {
display: flex;
flex-direction: column;
gap: 20px;
}
.center-screen {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 16px;
padding: 24px;
}
.page-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
}
.page-subtitle {
margin: 4px 0 0;
color: var(--text-muted);
font-size: 14px;
}
.feed-actions {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.segmented {
display: inline-flex;
align-items: center;
gap: 2px;
padding: 3px;
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: 8px;
}
.segmented-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 5px 10px;
border: none;
border-radius: 6px;
background: transparent;
color: var(--text-muted);
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition:
background 0.12s ease,
color 0.12s ease;
}
.segmented-btn:hover:not(:disabled):not(.is-active) {
background: var(--surface-hover);
color: var(--text);
}
.segmented-btn.is-active {
background: var(--surface);
color: var(--text);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.segmented-btn:disabled {
opacity: 0.45;
cursor: not-allowed;
}
/* -------------------------------------------------------------------------
Sidebar
------------------------------------------------------------------------- */
.sidebar {
width: 248px;
flex-shrink: 0;
display: flex;
flex-direction: column;
background: var(--surface);
border-right: 1px solid var(--border);
padding: 18px 14px;
gap: 8px;
}
.sidebar-brand {
display: flex;
align-items: center;
gap: 10px;
padding: 4px 8px 18px;
}
.sidebar-logo {
width: 38px;
height: 38px;
border-radius: 11px;
display: grid;
place-items: center;
background: var(--primary);
color: var(--on-primary);
}
.sidebar-brand strong {
display: block;
font-size: 15px;
line-height: 1.1;
}
.sidebar-subtitle {
display: block;
font-size: 12px;
color: var(--text-muted);
}
.sidebar-nav {
display: flex;
flex-direction: column;
gap: 4px;
}
.nav-item {
display: flex;
align-items: center;
gap: 12px;
padding: 11px 12px;
border: none;
border-radius: var(--radius-sm);
background: transparent;
color: var(--text-muted);
font: inherit;
font-weight: 550;
cursor: pointer;
text-align: left;
transition:
background 0.12s ease,
color 0.12s ease;
}
.nav-item:hover {
background: var(--surface-2);
color: var(--text);
}
.nav-item.is-active {
background: var(--primary-soft);
color: var(--primary);
}
.sidebar-footer {
margin-top: auto;
padding-top: 14px;
border-top: 1px solid var(--border);
}
.sidebar-profile {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 8px;
border-radius: var(--radius-sm);
}
.sidebar-profile-meta {
min-width: 0;
flex: 1;
display: flex;
flex-direction: column;
}
.sidebar-profile-name {
font-weight: 600;
font-size: 14px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sidebar-profile-meta .mono {
color: var(--text-muted);
font-size: 12px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sidebar-noprofile {
margin: 8px;
color: var(--text-muted);
font-size: 13px;
}
/* -------------------------------------------------------------------------
Buttons
------------------------------------------------------------------------- */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
border: 1px solid transparent;
border-radius: var(--radius-sm);
font: inherit;
font-weight: 600;
cursor: pointer;
transition:
background 0.12s ease,
border-color 0.12s ease,
color 0.12s ease,
box-shadow 0.12s ease;
text-decoration: none;
}
.btn:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.btn-md {
padding: 10px 18px;
font-size: 14px;
}
.btn-sm {
padding: 7px 12px;
font-size: 13px;
}
.btn-primary {
background: var(--primary);
color: var(--on-primary);
}
.btn-primary:hover:not(:disabled) {
background: var(--primary-hover);
}
.btn-secondary {
background: var(--surface);
border-color: var(--border-strong);
color: var(--text);
}
.btn-secondary:hover:not(:disabled) {
background: var(--surface-hover);
}
.btn-danger {
background: var(--danger-soft);
color: var(--danger);
border-color: transparent;
}
.btn-danger:hover:not(:disabled) {
background: var(--danger);
color: #fff;
}
.btn-ghost {
background: transparent;
color: var(--text-muted);
}
.btn-ghost:hover:not(:disabled) {
background: var(--surface-2);
color: var(--text);
}
.btn-icon {
width: 34px;
height: 34px;
padding: 0;
}
/* -------------------------------------------------------------------------
Cards
------------------------------------------------------------------------- */
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow);
overflow: hidden;
}
.card-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 16px 20px;
border-bottom: 1px solid var(--border);
}
.card-actions {
display: flex;
gap: 8px;
}
.card-body {
padding: 20px;
}
/* -------------------------------------------------------------------------
Badges
------------------------------------------------------------------------- */
.badge {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 3px 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 650;
white-space: nowrap;
}
.badge-neutral {
background: var(--surface-2);
color: var(--text-muted);
border: 1px solid var(--border);
}
.badge-success {
background: var(--success-soft);
color: var(--success);
}
.badge-warning {
background: var(--warning-soft);
color: var(--warning);
}
.badge-danger {
background: var(--danger-soft);
color: var(--danger);
}
.badge-info {
background: var(--info-soft);
color: var(--info);
}
/* -------------------------------------------------------------------------
Spinner
------------------------------------------------------------------------- */
.spinner-wrap {
display: inline-flex;
align-items: center;
gap: 10px;
color: var(--text-muted);
}
.spinner {
width: 18px;
height: 18px;
border-radius: 50%;
border: 2.5px solid var(--border-strong);
border-top-color: var(--primary);
animation: spin 0.7s linear infinite;
display: inline-block;
flex-shrink: 0;
}
.spinner-sm {
width: 14px;
height: 14px;
border-width: 2px;
}
.btn .spinner {
border-color: rgba(255, 255, 255, 0.4);
border-top-color: currentColor;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* -------------------------------------------------------------------------
Fields
------------------------------------------------------------------------- */
.field {
display: flex;
flex-direction: column;
gap: 6px;
margin-bottom: 16px;
}
.field:last-child {
margin-bottom: 0;
}
.field > label,
.field-label {
font-size: 13px;
font-weight: 600;
color: var(--text);
}
input[type='text'],
input[type='search'],
input[type='password'],
select,
textarea {
font: inherit;
color: var(--text);
background: var(--surface);
border: 1px solid var(--border-strong);
border-radius: var(--radius-sm);
padding: 10px 12px;
width: 100%;
}
input[type='text']:focus-visible,
input[type='search']:focus-visible,
input[type='password']:focus-visible,
select:focus-visible,
textarea:focus-visible {
outline: none;
border-color: var(--focus);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent);
}
select {
max-width: 320px;
}
.field-error {
margin: 2px 0 0;
color: var(--danger);
font-size: 13px;
font-weight: 500;
}
.hint {
margin: 2px 0 0;
color: var(--text-muted);
font-size: 13px;
}
.linklike {
background: none;
border: none;
padding: 0;
color: var(--primary);
font: inherit;
font-weight: 600;
cursor: pointer;
text-decoration: underline;
text-underline-offset: 2px;
}
/* -------------------------------------------------------------------------
Alerts
------------------------------------------------------------------------- */
.alert {
display: flex;
flex-direction: column;
gap: 4px;
padding: 12px 16px;
border-radius: var(--radius-sm);
border: 1px solid transparent;
font-size: 14px;
}
.alert-title {
font-weight: 650;
}
.alert-success {
background: var(--success-soft);
color: var(--success);
border-color: color-mix(in srgb, var(--success) 30%, transparent);
}
.alert-warning {
background: var(--warning-soft);
color: var(--warning);
border-color: color-mix(in srgb, var(--warning) 30%, transparent);
}
.alert-error {
background: var(--danger-soft);
color: var(--danger);
border-color: color-mix(in srgb, var(--danger) 30%, transparent);
}
.alert-info {
background: var(--info-soft);
color: var(--info);
border-color: color-mix(in srgb, var(--info) 30%, transparent);
}
.alert-details {
margin-top: 6px;
font-size: 13px;
}
.alert-details summary {
cursor: pointer;
font-weight: 600;
color: inherit;
}
.alert-details pre {
margin: 8px 0 4px;
padding: 8px 10px;
border-radius: 6px;
background: var(--surface);
border: 1px solid var(--border);
overflow-x: auto;
font-size: 12px;
white-space: pre-wrap;
word-break: break-word;
}
/* -------------------------------------------------------------------------
Toggle
------------------------------------------------------------------------- */
.toggle {
display: inline-flex;
align-items: center;
gap: 10px;
cursor: pointer;
}
.toggle.is-disabled {
opacity: 0.55;
cursor: not-allowed;
}
.toggle input {
position: absolute;
opacity: 0;
width: 1px;
height: 1px;
}
.toggle-track {
width: 40px;
height: 22px;
border-radius: 999px;
background: var(--border-strong);
position: relative;
transition: background 0.15s ease;
flex-shrink: 0;
}
.toggle-thumb {
position: absolute;
top: 2px;
left: 2px;
width: 18px;
height: 18px;
border-radius: 50%;
background: #fff;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
transition: transform 0.15s ease;
}
.toggle input:checked + .toggle-track {
background: var(--primary);
}
.toggle input:checked + .toggle-track .toggle-thumb {
transform: translateX(18px);
}
.toggle input:focus-visible + .toggle-track {
outline: 2px solid var(--focus);
outline-offset: 2px;
}
.toggle-label {
font-size: 14px;
font-weight: 550;
}
/* -------------------------------------------------------------------------
Modal
------------------------------------------------------------------------- */
.modal-backdrop {
position: fixed;
inset: 0;
background: rgba(20, 16, 12, 0.45);
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
z-index: 50;
}
.modal {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 16px;
box-shadow: var(--shadow-modal);
max-width: 520px;
width: 100%;
max-height: 88vh;
overflow-y: auto;
}
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 18px 22px;
border-bottom: 1px solid var(--border);
}
.modal-body {
padding: 20px 22px 22px;
}
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 10px;
margin-top: 18px;
}
/* -------------------------------------------------------------------------
Empty state
------------------------------------------------------------------------- */
.empty-state {
text-align: center;
padding: 48px 24px;
border: 1.5px dashed var(--border-strong);
border-radius: var(--radius);
background: var(--surface);
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
.empty-state-icon {
width: 64px;
height: 64px;
border-radius: 18px;
display: grid;
place-items: center;
background: var(--primary-soft);
color: var(--primary);
margin-bottom: 4px;
}
.empty-state h3 {
font-size: 19px;
}
.empty-state p {
max-width: 520px;
margin: 0;
color: var(--text-muted);
}
.empty-state-action {
margin-top: 8px;
}
/* -------------------------------------------------------------------------
Home
------------------------------------------------------------------------- */
.home-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
@media (max-width: 900px) {
.home-grid {
grid-template-columns: 1fr;
}
}
.active-profile-row {
display: flex;
align-items: center;
gap: 14px;
}
.active-profile-meta {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.profile-name {
font-size: 16px;
font-weight: 650;
}
.active-profile-meta .mono {
color: var(--text-muted);
font-size: 13px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.avatar {
width: 42px;
height: 42px;
border-radius: 50%;
display: inline-grid;
place-items: center;
font-weight: 700;
font-size: 17px;
flex-shrink: 0;
}
.avatar-lg {
width: 52px;
height: 52px;
font-size: 21px;
}
.avatar-picture {
overflow: hidden;
}
.avatar-picture img {
width: 100%;
height: 100%;
object-fit: cover;
}
.relay-status-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 10px;
}
.relay-status-row {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
}
.relay-url {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 13px;
}
.relay-status-text {
color: var(--text-muted);
font-size: 13px;
white-space: nowrap;
}
.status-dot {
width: 9px;
height: 9px;
border-radius: 50%;
flex-shrink: 0;
}
.status-dot.is-ok {
background: var(--success);
}
.status-dot.is-bad {
background: var(--danger);
}
.status-dot.is-pending {
background: var(--border-strong);
}
.publish-result {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.publish-result .alert {
flex-basis: 100%;
}
.relay-result-list {
margin: 8px 0 0;
padding-left: 18px;
font-size: 13px;
display: flex;
flex-direction: column;
gap: 4px;
}
.relay-result-list .ok {
color: var(--success);
}
.relay-result-list .bad {
color: var(--danger);
}
.first-run-guide {
text-align: left;
}
.first-run-guide ol {
margin: 12px 0 0;
padding-left: 20px;
display: flex;
flex-direction: column;
gap: 10px;
}
.first-run-guide p {
margin: 2px 0 0;
color: var(--text-muted);
font-size: 14px;
}
/* -------------------------------------------------------------------------
Profiles
------------------------------------------------------------------------- */
.profile-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 16px;
}
.profile-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 18px;
display: flex;
flex-direction: column;
gap: 12px;
transition: border-color 0.12s ease;
}
.profile-card.is-active {
border-color: var(--success);
}
.profile-card-top {
display: flex;
align-items: center;
gap: 12px;
}
.profile-card-meta {
flex: 1;
min-width: 0;
}
.profile-card-meta h3 {
font-size: 16px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.profile-card-meta .mono {
color: var(--text-muted);
font-size: 12px;
word-break: break-all;
}
.profile-card-date {
margin: 0;
color: var(--text-muted);
font-size: 13px;
}
.profile-card-actions {
display: flex;
align-items: center;
gap: 8px;
margin-top: auto;
}
/* -------------------------------------------------------------------------
Create profile
------------------------------------------------------------------------- */
.create-explainer {
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 14px 16px;
margin-bottom: 18px;
font-size: 14px;
}
.create-explainer p {
margin: 0 0 8px;
}
.create-explainer ul {
margin: 0;
padding-left: 18px;
display: flex;
flex-direction: column;
gap: 4px;
}
.create-success {
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
padding: 8px 0 4px;
}
.create-success-icon {
width: 58px;
height: 58px;
border-radius: 50%;
display: grid;
place-items: center;
background: var(--success-soft);
color: var(--success);
}
.create-success p {
margin: 0;
color: var(--text-muted);
max-width: 420px;
}
.npub-chip {
font-size: 14px;
padding: 8px 14px;
border-radius: 999px;
}
/* -------------------------------------------------------------------------
Compose
------------------------------------------------------------------------- */
.compose-card .card-body {
padding: 20px;
}
.compose-profile {
display: flex;
align-items: center;
gap: 12px;
padding-bottom: 14px;
margin-bottom: 6px;
border-bottom: 1px solid var(--border);
flex-wrap: wrap;
}
.compose-profile > div {
display: flex;
flex-direction: column;
gap: 2px;
}
.compose-profile .mono {
color: var(--text-muted);
font-size: 13px;
}
.note-editor {
min-height: 160px;
resize: vertical;
line-height: 1.55;
}
.compose-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-top: 10px;
flex-wrap: wrap;
}
.char-count {
color: var(--text-muted);
font-size: 13px;
}
.char-count.is-warn {
color: var(--warning);
font-weight: 600;
}
.compose-actions {
display: flex;
gap: 10px;
}
.compose-tabs {
display: flex;
gap: 4px;
padding-bottom: 12px;
border-bottom: 1px solid var(--border);
margin-bottom: 14px;
}
.compose-tab {
font: inherit;
font-size: 14px;
font-weight: 500;
padding: 7px 16px;
border-radius: 999px;
border: 1px solid var(--border);
background: transparent;
color: var(--text-muted);
cursor: pointer;
}
.compose-tab:hover {
color: var(--text);
border-color: var(--text-muted);
}
.compose-tab.is-active {
color: var(--primary);
border-color: var(--primary);
background: var(--primary-soft);
}
.compose-attachments {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 12px;
}
.compose-attachment {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 8px 6px 6px;
border: 1px solid var(--border);
border-radius: 10px;
background: var(--surface);
}
.compose-attachment-thumb {
width: 44px;
height: 44px;
border-radius: 8px;
object-fit: cover;
}
.compose-attachment-name {
max-width: 180px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 13px;
color: var(--text-muted);
}
.compose-preview {
border: 1px solid var(--border);
border-radius: 12px;
padding: 16px;
min-height: 160px;
}
.compose-preview-head {
display: flex;
align-items: center;
gap: 12px;
padding-bottom: 12px;
border-bottom: 1px solid var(--border);
}
.compose-preview-head > div {
display: flex;
flex-direction: column;
gap: 2px;
}
.compose-preview-head .mono {
color: var(--text-muted);
font-size: 13px;
}
.compose-preview-body {
margin-top: 12px;
}
.compose-preview .note-text {
margin: 0;
white-space: pre-wrap;
word-break: break-word;
line-height: 1.55;
}
.compose-preview-images {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 12px;
}
.compose-preview-img {
max-width: 100%;
max-height: 320px;
border-radius: 10px;
object-fit: contain;
}
.link-preview-card {
display: flex;
gap: 12px;
margin-top: 12px;
padding: 10px;
border: 1px solid var(--border);
border-radius: 12px;
background: var(--surface);
text-decoration: none;
color: inherit;
overflow: hidden;
}
.link-preview-card.is-loading {
align-items: center;
padding: 14px;
}
.link-preview-image {
width: 112px;
height: 112px;
object-fit: cover;
border-radius: 8px;
flex-shrink: 0;
}
.link-preview-content {
display: flex;
flex-direction: column;
gap: 3px;
min-width: 0;
}
.link-preview-site {
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--text-muted);
}
.link-preview-title {
font-weight: 600;
line-height: 1.35;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.link-preview-description {
font-size: 13px;
color: var(--text-muted);
line-height: 1.4;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.link-preview-url {
font-size: 12px;
color: var(--text-muted);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* -------------------------------------------------------------------------
Relays
------------------------------------------------------------------------- */
.relay-add-form {
display: flex;
gap: 12px;
align-items: flex-start;
}
.relay-add-form .btn {
flex-shrink: 0;
margin-top: 0;
}
.relay-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 12px;
}
.relay-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 16px 18px;
flex-wrap: wrap;
}
.relay-row-main {
display: flex;
align-items: center;
gap: 16px;
min-width: 0;
}
.relay-row-info {
display: flex;
flex-direction: column;
gap: 6px;
min-width: 0;
}
.relay-row-info .mono {
font-size: 13px;
word-break: break-all;
}
.relay-row-status {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.relay-error-text {
color: var(--danger);
font-size: 12px;
max-width: 320px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.relay-row-actions {
display: flex;
gap: 8px;
flex-shrink: 0;
}
/* -------------------------------------------------------------------------
Settings
------------------------------------------------------------------------- */
.settings-block {
display: flex;
flex-direction: column;
gap: 18px;
}
.settings-inline {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.path-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 12px 14px;
}
.lock-banner {
padding: 14px 22px 0;
}
.lock-banner .alert {
max-width: 1080px;
margin: 0 auto;
}
.lock-banner-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
flex-wrap: wrap;
}
.path-row > div {
min-width: 0;
}
.path-value {
display: block;
font-size: 13px;
word-break: break-all;
margin-top: 2px;
}
.info-list {
margin: 0;
display: flex;
flex-direction: column;
gap: 10px;
}
.info-list > div {
display: flex;
gap: 12px;
}
.info-list dt {
width: 130px;
flex-shrink: 0;
color: var(--text-muted);
font-size: 13px;
}
.info-list dd {
margin: 0;
font-size: 13px;
word-break: break-word;
}
.signer-badge {
display: flex;
align-items: center;
}
.signer-status {
display: flex;
flex-direction: column;
gap: 14px;
}
.signer-relay {
display: inline-block;
margin-right: 8px;
padding: 2px 8px;
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
font-size: 12px;
}
.signer-actions {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 12px;
}