0
0
/* ── Vault design tokens ── */
:root {
--bg: #10201C;
--card-bg: #16302B;
--inset-bg: #0F221E;
--text: #EAF3F0;
--text-muted: #8FA8A1;
--text-faint: #7D9E95;
--accent: #7FE3C6;
--accent-bg: #21493F;
--accent-text: #0B1F1A;
--danger: #E07A6B;
--danger-bg: #3A1E1E;
--chip-all-bg: #21493F;
--chip-all-text: #7FE3C6;
--chip-svc-bg: #3A2E1B;
--chip-svc-text: #E3B77F;
--chip-bidder-bg: #1B3450;
--chip-bidder-text: #7EB8E8;
--chip-requester-bg: #451E35;
--chip-requester-text: #E87EB8;
--radius: 14px;
--radius-sm: 6px;
--font: 'Inter', sans-serif;
--font-mono: 'IBM Plex Mono', monospace;
}
/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
html { overflow-y: auto; background: var(--bg); }
body {
background: var(--bg);
color: var(--text);
font-family: var(--font);
line-height: 1.55;
-webkit-font-smoothing: antialiased;
}
code, .mono {
font-family: var(--font-mono);
word-break: break-all;
}
/* ── Typography ── */
h1 { font-size: 24px; font-weight: 700; color: var(--text); }
h2 { font-size: 20px; font-weight: 700; color: var(--text); }
h3 { font-size: 17px; font-weight: 700; color: var(--text); }
/* ── Buttons ── */
.btn {
display: inline-flex; align-items: center; justify-content: center;
padding: 12px 20px; border-radius: 12px; border: none;
font-family: var(--font); font-size: 14px; font-weight: 700;
cursor: pointer; transition: opacity 0.15s;
text-decoration: none; white-space: nowrap;
}
.btn:hover { opacity: 0.85; }
.btn:active { opacity: 0.7; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-secondary { background: var(--accent-bg); color: var(--accent); }
.btn-outline { background: transparent; border: 1px solid var(--text-faint); color: var(--text-muted); }
.btn-danger { background: transparent; color: var(--danger); }
.btn-sm { padding: 8px 14px; font-size: 12px; border-radius: 10px; }
.btn-block { width: 100%; }
/* ── Inputs ── */
input[type="text"],
input[type="search"] {
background: var(--inset-bg); border: 1px solid var(--card-bg);
border-radius: 10px; padding: 10px 14px; color: var(--text);
font-family: var(--font-mono); font-size: 13px; outline: none;
width: 100%;
}
input:focus { border-color: var(--accent); }
input::placeholder { color: var(--text-faint); }
/* ── Card ── */
.card {
background: var(--card-bg); border: 1px solid var(--accent-bg);
border-radius: var(--radius); padding: 20px; margin-bottom: 12px;
}
/* ── Chip (service pill) ── */
.chip {
display: inline-flex; align-items: center;
padding: 3px 9px; border-radius: 100px;
font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
font-family: var(--font-mono); white-space: nowrap;
}
.chip-all { background: var(--chip-all-bg); color: var(--chip-all-text); }
.chip-bidder-service { background: var(--chip-bidder-bg); color: var(--chip-bidder-text); }
.chip-requester-associate { background: var(--chip-requester-bg); color: var(--chip-requester-text); }
.chip-service { background: hsl(var(--chip-hue, 40), 35%, 18%); color: hsl(var(--chip-hue, 40), 50%, 70%); }
/* ── Mono inset box for did:key ── */
.key-code {
display: flex; align-items: center; justify-content: space-between;
gap: 8px; padding: 6px 8px; border-radius: var(--radius-sm);
background: var(--inset-bg);
font-family: var(--font-mono); font-size: 11.5px;
color: var(--text-faint); word-break: break-all;
}
.key-code .copy-link {
color: var(--accent); cursor: pointer; font-weight: 600;
font-size: 11px; white-space: nowrap; flex-shrink: 0;
user-select: none;
}
/* ── Actions row ── */
.actions {
display: flex; gap: 14px; margin-top: 10px;
font-size: 12px; font-weight: 600;
}
.actions span { cursor: pointer; user-select: none; min-height: 44px; display: inline-flex; align-items: center; padding: 6px 10px; }
.actions a { min-height: 44px; display: inline-flex; align-items: center; padding: 6px 10px; }
.actions .act-accent { color: var(--accent); }
.actions .act-danger { color: var(--danger); }
/* ── Inline edit ── */
.inline-edit {
display: flex; gap: 8px; align-items: center;
}
.inline-edit input { flex: 1; font-size: 13px; padding: 4px 8px; }
/* ── Bottom sheet (modal) ── */
.sheet-backdrop {
position: fixed; inset: 0; background: rgba(0,0,0,0.6);
display: flex; align-items: flex-end; justify-content: center;
z-index: 1000;
}
.sheet {
background: var(--card-bg); border-radius: 24px 24px 0 0;
padding: 12px 22px 34px; width: 100%; max-width: 480px;
animation: slideUp 0.25s ease-out;
}
.sheet-handle {
width: 36px; height: 4px; background: var(--accent-bg);
border-radius: 4px; margin: 0 auto 18px;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
/* ── QR display ── */
.qr-wrap {
display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.qr-wrap img {
max-width: 176px; border-radius: 12px;
border: 8px solid #fff; background: #fff;
}
/* ── Search ── */
.search-bar {
background: var(--card-bg); border-radius: 10px;
padding: 8px 12px; font-size: 13px; color: var(--text-faint);
font-family: var(--font);
display: flex; align-items: center; gap: 8px;
margin-bottom: 18px;
}
.search-bar input {
border: none; background: transparent; padding: 0; flex: 1;
font-size: 13px; color: var(--text); font-family: var(--font);
}
/* ── Header row ── */
.header-row {
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 4px;
}
.header-row h1 { flex: 1; }
.add-btn {
width: 30px; height: 30px; border-radius: 8px;
background: var(--accent-bg); color: var(--accent);
display: flex; align-items: center; justify-content: center;
font-size: 18px; font-weight: 700; cursor: pointer;
border: none;
}
/* ── Subheader ── */
.subheader {
font-size: 13px; color: var(--text-faint); margin-bottom: 16px;
}
/* ── Utility ── */
.hidden { display: none !important; }
.flex-1 { flex: 1; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-3 { margin-top: 12px; }
.gap-sm { gap: 8px; }
/* ── Layout ── */
.app-shell {
max-width: 680px; margin: 0 auto; padding: 20px;
}
/* ── Success banner ── */
.success-card {
background: var(--accent-bg); border: 1px solid var(--accent);
border-radius: var(--radius); padding: 20px;
text-align: center; margin-bottom: 16px;
}
.success-card .check {
width: 56px; height: 56px; border-radius: 50%;
background: var(--accent-bg); border: 2px solid var(--accent);
display: flex; align-items: center; justify-content: center;
font-size: 26px; color: var(--accent); margin: 0 auto 16px;
}
/* ── Modal overlay ── */
.modal-backdrop {
position: fixed; inset: 0; background: rgba(0,0,0,0.6);
display: flex; align-items: center; justify-content: center;
z-index: 1000; padding: 20px;
}
.modal-card {
background: var(--card-bg); border: 1px solid var(--accent-bg);
border-radius: var(--radius); padding: 24px;
width: 100%; max-width: 480px;
animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
/* ── Attest confirm ── */
.attest-card .key-code { margin: 12px 0 20px; }
.modal-key-code { color: #4B9EFF !important; }
/* ── Key card ── */
.key-card .name-row {
display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.key-card .name-row vault-chip { margin-left: auto; }
.key-card .name-row strong { font-size: 15px; color: var(--text); }