/* Relicario vault — terminal dark theme (tab layout) */ :root { /* Patina gold (Phase 2B) */ --gold-base: #a88a4a; --gold-mid: #cdb47a; --gold-shadow: #5a3f12; --gold-text: #c9a868; --gold-soft: rgba(184, 149, 86, 0.14); --gold-ring: rgba(184, 149, 86, 0.18); --gold-stroke: #b89556; --gold-hi-end: #dac8a0; /* Brand alias (kept for backwards compatibility) */ --accent: var(--gold-base); --accent-soft: var(--gold-soft); --accent-strong: var(--gold-shadow); /* Surfaces */ --bg-page: #0a0e14; --bg-pane: #11161e; --bg-elevated: #1c2330; --bg-card: rgba(22, 27, 34, 0.55); --bg-input: #0a0e14; --border-soft: rgba(255, 255, 255, 0.05); --border-mid: #262d36; --border-subtle: var(--border-mid); /* Text */ --text: #c9d1d9; --text-muted: #8b949e; --text-dim: #6b7888; /* Status */ --danger: #ab2b20; --danger-bg: #791111; --success: #6cb37a; /* Focus */ --focus-ring: 0 0 0 2px var(--gold-ring); /* Password coloring (P1) */ --relicario-pwd-digit-color: #2563eb; --relicario-pwd-symbol-color: #dc2626; } * { margin: 0; padding: 0; box-sizing: border-box; } body { background: var(--bg-page); color: #c9d1d9; font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'SF Mono', Menlo, monospace; font-size: 13px; line-height: 1.5; margin: 0; height: 100vh; overflow: hidden; } /* Scrollbar */ ::-webkit-scrollbar { width: 4px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: #30363d; border-radius: 2px; } /* Typography */ .brand { font-size: 16px; font-weight: 700; color: var(--gold-text); letter-spacing: 1px; } .brand-logo { display: block; width: 48px; height: 48px; margin: 0 auto 8px; } .label { font-size: 11px; font-weight: 500; color: #8b949e; text-transform: lowercase; letter-spacing: 0.02em; margin-bottom: 4px; } .req-pill { display: inline-block; font-size: 9px; padding: 1px 5px; background: var(--accent-soft); color: var(--accent); border-radius: 2px; margin-left: 6px; vertical-align: middle; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; } .secondary { color: #8b949e; } .muted { color: #484f58; font-size: 11px; } .form-header { display: flex; align-items: center; margin-bottom: 16px; } /* When the header is followed by a subtitle, drop the bottom margin so the subtitle's own margin owns the spacing. */ .form-header:has(+ .form-subtitle) { margin-bottom: 0; } .form-subtitle { font-size: 11px; color: var(--text-dim); margin-top: 2px; margin-bottom: 14px; letter-spacing: 0.02em; } .error { color: #ab2b20; font-size: 12px; margin-top: 8px; } .error-block { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 16px; /* rgba channels derived from --danger (#ab2b20 = rgb(171, 43, 32)) */ border: 1px solid rgba(171, 43, 32, 0.4); border-radius: 6px; background: rgba(171, 43, 32, 0.08); margin-top: 12px; } .error-block .error-title { font-weight: 600; color: var(--danger); } .error-block .error-body { color: var(--text); font-size: 12px; text-align: center; } .error-block .error-cta { margin-top: 6px; } /* Password character-class coloring */ .pwd-digit { color: var(--relicario-pwd-digit-color); } .pwd-symbol { color: var(--relicario-pwd-symbol-color); } .pwd-letter { color: inherit; } /* Buttons */ .btn { display: inline-block; padding: 6px 14px; font-family: inherit; font-size: 12px; border: 1px solid #30363d; border-radius: 4px; background: #21262d; color: #c9d1d9; cursor: pointer; transition: background 0.15s; } .btn:hover { background: #30363d; } .btn:focus-visible { outline: none; box-shadow: var(--focus-ring); } .btn-primary { background: #7c5719; border-color: #7c5719; color: #fff; } .btn-primary:hover { background: #aa812a; } .btn-danger { background: #791111; border-color: #791111; color: #fff; } .btn-danger:hover { background: #ab2b20; } /* Inputs */ input, textarea, select { width: 100%; padding: 8px 10px; font-family: inherit; font-size: 13px; background: #161b22; border: 1px solid #30363d; border-radius: 4px; color: #c9d1d9; outline: none; transition: border-color 0.15s; } input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--accent); box-shadow: var(--focus-ring); outline: none; } input::placeholder, textarea::placeholder { color: #484f58; } textarea { resize: vertical; min-height: 60px; } /* Layout */ .pad { padding: 16px; } /* Group tabs */ .group-tabs { display: flex; gap: 2px; padding: 6px 12px; background: #0d1117; border-bottom: 1px solid #21262d; overflow-x: auto; } .group-tab { padding: 4px 10px; font-size: 11px; border: none; border-radius: 3px; background: transparent; color: #8b949e; cursor: pointer; white-space: nowrap; font-family: inherit; } .group-tab:hover { color: #c9d1d9; background: #161b22; } .group-tab.active { color: #d2ab43; background: #161b22; } /* Detail view */ .detail-header { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-bottom: 1px solid #21262d; } .detail-title { font-size: 15px; font-weight: 600; color: #c9d1d9; } .field { padding: 10px 12px; border-bottom: 1px solid #21262d; } .field-value { font-size: 13px; color: #c9d1d9; word-break: break-all; user-select: all; } /* TOTP */ .totp-code { font-size: 22px; font-weight: 700; color: #3fb950; letter-spacing: 4px; } .totp-bar { height: 3px; background: #21262d; border-radius: 2px; margin-top: 6px; overflow: hidden; } .totp-bar-fill { height: 100%; background: #3fb950; border-radius: 2px; transition: width 1s linear; } /* Wizard */ .wizard-step { padding: 16px; } .wizard-step h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: #c9d1d9; } .progress-bar { display: flex; gap: 4px; padding: 12px 16px 0; } .progress-bar .step { flex: 1; height: 3px; background: #21262d; border-radius: 2px; } .progress-bar .step.done { background: #d2ab43; } .progress-bar .step.current { background: #aa812a; } /* Spinner */ .spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #30363d; border-top-color: #d2ab43; border-radius: 50%; animation: spin 0.6s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Confirm overlay */ .confirm-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; z-index: 100; } .confirm-box { background: #161b22; border: 1px solid #30363d; border-radius: 6px; padding: 20px; max-width: 280px; text-align: center; } .confirm-box p { margin-bottom: 16px; font-size: 13px; } .confirm-box .btn + .btn { margin-left: 8px; } /* Empty state */ .empty { text-align: center; padding: 40px 16px; color: #484f58; font-size: 13px; } /* Form layout */ .form-group { margin-bottom: 12px; } .form-group .label { display: block; margin-bottom: 4px; } .form-actions { display: flex; gap: 8px; margin-top: 16px; } /* When the sticky save bar (fullscreen) provides external actions, the form's inner action row sets the [hidden] attribute. The default user-agent rule for [hidden] is display:none, but our .form-actions display:flex above wins specificity. Re-assert hidden takes priority. */ .form-actions[hidden] { display: none !important; } .inline-row { display: flex; gap: 8px; align-items: center; } .inline-row input { flex: 1; } /* Toggle (for host type) */ .toggle-group { display: flex; gap: 0; border: 1px solid #30363d; border-radius: 4px; overflow: hidden; } .toggle-group button { flex: 1; padding: 6px 12px; font-family: inherit; font-size: 12px; border: none; background: #21262d; color: #8b949e; cursor: pointer; } .toggle-group button.active { background: #7c5719; color: #fff; } /* File upload area */ .file-drop { border: 2px dashed #30363d; border-radius: 6px; padding: 24px; text-align: center; cursor: pointer; transition: border-color 0.15s; } .file-drop:hover { border-color: #d2ab43; } .file-drop.has-file { border-color: #3fb950; border-style: solid; } /* --- field-row + signature-block helpers --- */ .field-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px 10px; align-items: baseline; padding: 4px 0; font-size: 12px; } .field-row__label { color: #8b949e; } .field-row__value { color: #c9d1d9; word-break: break-word; } .field-row__value.monospace { font-family: "SF Mono", "JetBrains Mono", monospace; } .field-row__value pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: "SF Mono", "JetBrains Mono", monospace; } .field-row__actions { display: flex; gap: 6px; font-size: 11px; color: #8b949e; } .field-row__actions button { background: transparent; border: 0; color: inherit; cursor: pointer; padding: 0; font: inherit; } .field-row__actions button:hover { color: #c9d1d9; } .sig-block { background: #161b22; border: 1px solid #30363d; border-left: 3px solid #7c5719; border-radius: 5px; padding: 14px; margin-bottom: 10px; } .sig-block--gold { border-left-color: #7c5719; } .sig-block--green { border-left-color: #3fb950; } .sig-block--amber { border-left-color: #d29922; } .sig-block--red { border-left-color: #ab2b20; } /* --- custom-section rendering --- */ .section-separator { margin: 10px 0 4px; border: 0; border-top: 1px solid #21262d; } /* --- custom-section editor --- */ .disclosure { border-top: 1px solid #21262d; margin-top: 14px; padding-top: 10px; } .disclosure__toggle { background: transparent; border: 0; color: #d2ab43; cursor: pointer; font-size: 12px; padding: 0; font-family: inherit; } .disclosure[data-expanded="false"] .disclosure__body { display: none; } .section-editor__head { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; margin-bottom: 4px; font-size: 11px; } .section-editor__head .name { color: #c9d1d9; font-weight: 600; } .section-editor__head .name.anon { color: #8b949e; font-style: italic; font-weight: normal; } .section-editor__head .actions { color: #8b949e; font-size: 10px; margin-left: auto; } .section-editor__head .actions button { background: transparent; border: 0; color: inherit; cursor: pointer; padding: 0; margin-left: 8px; font: inherit; } .section-editor__head .actions button:hover { color: #c9d1d9; } .section-editor__field { display: grid; grid-template-columns: 120px 1fr auto; gap: 4px; margin-bottom: 4px; font-size: 11px; } .section-editor__field input { background: #0d1117; border: 1px solid #30363d; color: #c9d1d9; padding: 3px 6px; border-radius: 3px; font: inherit; font-size: 11px; } .section-editor__field .delete-field { background: transparent; border: 0; color: #ab2b20; cursor: pointer; font-size: 14px; padding: 0 4px; } .section-editor__preserved { font-size: 10px; color: #6e7681; font-style: italic; padding: 4px 0 4px 6px; } .section-editor__add { display: flex; gap: 6px; margin-top: 6px; } .section-editor__add button { background: transparent; border: 1px solid #30363d; color: #8b949e; padding: 2px 10px; border-radius: 3px; cursor: pointer; font-size: 10px; font-family: inherit; } .section-editor__add button:hover { color: #c9d1d9; border-color: #484f58; } .disclosure__body .add-section { margin-top: 12px; background: transparent; border: 1px dashed #30363d; color: #8b949e; padding: 6px 10px; border-radius: 4px; cursor: pointer; width: 100%; font-size: 11px; font-family: inherit; } .disclosure__body .add-section:hover { border-color: #484f58; color: #c9d1d9; } /* --- generator panel --- */ .gen-trigger { background: #7c5719; color: #fff3cf; border: 1px solid #7c5719; border-radius: 3px; padding: 0 8px; font-size: 14px; cursor: pointer; line-height: 1; min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; } .gen-trigger:hover { background: #aa812a; } .gen-trigger[aria-expanded="true"] { background: #aa812a; } .gen-panel { background: #161b22; border: 1px solid #aa812a; border-radius: 6px; padding: 11px; margin: 6px 0; font-size: 11px; color: #c9d1d9; } .gen-panel .panel-toggle { display: flex; gap: 4px; background: #21262d; border-radius: 4px; padding: 2px; margin-bottom: 8px; } .gen-panel .panel-toggle button { flex: 1; background: transparent; border: 0; color: #8b949e; padding: 5px; font-size: 11px; cursor: pointer; border-radius: 3px; font-weight: 600; } .gen-panel .panel-toggle button.active { background: #aa812a; color: #fff3cf; } .gen-panel .knob { display: flex; align-items: center; gap: 8px; margin: 6px 0; } .gen-panel .knob__label { color: #8b949e; width: 56px; flex-shrink: 0; font-size: 10px; } .gen-panel .knob__slider { flex: 1; } .gen-panel .knob__value { font-family: ui-monospace, monospace; min-width: 24px; text-align: right; color: #c9d1d9; } .gen-panel .classes { display: flex; gap: 8px; font-size: 10px; margin: 6px 0; flex-wrap: wrap; color: #8b949e; } .gen-panel .classes label { display: flex; align-items: center; gap: 3px; user-select: none; cursor: pointer; } .gen-panel .preview { background: #0d1117; border: 1px solid #30363d; border-radius: 4px; padding: 8px 10px; margin-top: 8px; display: flex; align-items: center; gap: 8px; } .gen-panel .preview__value { flex: 1; color: #f1cf6e; font-family: ui-monospace, monospace; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gen-panel .preview__regen { background: transparent; border: 0; color: #8b949e; cursor: pointer; padding: 0 4px; font-size: 14px; } .gen-panel .more { color: #8b949e; font-size: 10px; margin-top: 6px; cursor: pointer; user-select: none; padding: 2px 0; } .gen-panel .more summary { list-style: none; outline: none; } .gen-panel .more summary::-webkit-details-marker { display: none; } .gen-panel .more:hover { color: #d2ab43; } .gen-panel .more__advanced { margin-top: 6px; } .gen-panel .actions { display: flex; gap: 6px; margin-top: 10px; align-items: center; } .gen-panel .actions .save-link { flex: 1; background: transparent; border: 0; color: #8b949e; cursor: pointer; font-size: 10px; text-align: left; padding: 4px 0; text-decoration: underline; text-decoration-color: #30363d; text-underline-offset: 2px; } .gen-panel .actions .save-link:hover { color: #d2ab43; text-decoration-color: #d2ab43; } .gen-panel .actions .save-link__toast { color: #3fb950; margin-left: 6px; font-size: 10px; } .gen-preview-line { margin: 0 0 6px; font-size: 11px; color: #c9d1d9; font-family: "SF Mono", "JetBrains Mono", monospace; } /* --- settings-vault screen --- */ .settings-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; } .settings-section { margin-top: 14px; padding-top: 10px; border-top: 1px solid #21262d; } .settings-section__title { color: #8b949e; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; } .settings-row { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; align-items: center; margin: 4px 0; font-size: 12px; } .settings-row__label { color: #8b949e; } .settings-row select { background: #0d1117; border: 1px solid #30363d; color: #c9d1d9; padding: 3px 8px; border-radius: 3px; font: inherit; font-size: 11px; } .ack-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 4px 0; font-size: 11px; border-bottom: 1px solid #161b22; } .ack-row__host { color: #c9d1d9; font-family: monospace; } .ack-row__meta { color: #6e7681; font-size: 10px; } .ack-row__revoke { background: transparent; border: 0; color: #ab2b20; cursor: pointer; font-size: 10px; } .settings-footer { display: flex; justify-content: flex-end; gap: 6px; margin-top: 20px; padding-top: 12px; border-top: 1px solid #21262d; } /* --- attachments disclosure --- */ .attachments-disclosure { margin: 8px 0; border: 1px solid #30363d; border-radius: 4px; padding: 6px 8px; font-size: 11px; color: #8b949e; } .attachments-disclosure[open] { border-color: #aa812a; } .attachments-disclosure summary { cursor: pointer; list-style: none; outline: none; user-select: none; padding: 2px 0; } .attachments-disclosure summary::-webkit-details-marker { display: none; } .attachments-disclosure summary:hover { color: #c9d1d9; } .attachments-disclosure__body { margin-top: 6px; } .attachment-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 10px; border-bottom: 1px solid #21262d; } .attachment-row:last-of-type { border-bottom: 0; } .attachment-row__icon, .attachment-row__thumb { width: 16px; height: 16px; background: #21262d; border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; overflow: hidden; } .attachment-row__thumb img { width: 100%; height: 100%; object-fit: cover; } .attachment-row__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c9d1d9; } .attachment-row__meta { color: #6e7681; font-size: 9px; font-family: ui-monospace, monospace; flex-shrink: 0; } .attachment-row__remove, .attachment-row__download { color: #d2ab43; cursor: pointer; padding: 0 6px; flex-shrink: 0; } .attachment-row__remove { color: #ab2b20; } .attachment-add-btn { background: transparent; border: 1px dashed #30363d; color: #8b949e; padding: 5px 8px; font-size: 10px; cursor: pointer; border-radius: 3px; width: 100%; margin-top: 6px; text-align: center; } .attachment-add-btn:hover { border-color: #aa812a; color: #c9d1d9; } /* --- Document type signature block + primary picker --- */ .document-signature-block { border-left: 3px solid #aa812a; background: #161b22; padding: 10px; margin: 8px 0; border-radius: 0 4px 4px 0; display: flex; align-items: center; gap: 10px; } .document-signature-block__thumb { width: 48px; height: 60px; border-radius: 2px; background: linear-gradient(135deg, #b88a30, #7c5719); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; overflow: hidden; color: #fff3cf; } .document-signature-block__thumb img { width: 100%; height: 100%; object-fit: contain; } .document-signature-block__info { flex: 1; min-width: 0; } .document-signature-block__name { font-size: 11px; color: #f1cf6e; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .document-signature-block__meta { font-size: 9px; color: #8b949e; font-family: ui-monospace, monospace; margin-top: 2px; } .document-signature-block__actions { font-size: 9px; margin-top: 4px; } .document-signature-block__preview { margin-top: 8px; background: #0d1117; border: 1px solid #30363d; border-radius: 3px; padding: 6px; text-align: center; } .document-signature-block__preview img { max-width: 100%; max-height: 200px; border-radius: 2px; } /* Document primary picker (form mode) */ .document-primary-row { background: #161b22; border: 1px solid #30363d; border-radius: 4px; padding: 6px 8px; display: flex; align-items: center; gap: 6px; font-size: 11px; cursor: pointer; } .document-primary-row--empty { border-style: dashed; border-color: #aa812a; color: #8b949e; justify-content: center; padding: 10px 8px; } .document-primary-row__thumb { width: 18px; height: 18px; border-radius: 2px; background: linear-gradient(135deg, #b88a30, #7c5719); display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; } .document-primary-row__name { flex: 1; color: #c9d1d9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .document-primary-row__meta { color: #6e7681; font-size: 9px; font-family: ui-monospace, monospace; } .document-primary-row__action { color: #d2ab43; font-size: 10px; padding: 0 6px; cursor: pointer; } /* --- Trash view --- */ .trash-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; } .trash-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); } .trash-row__icon { font-size: 14px; } .trash-row__info { flex: 1; display: flex; flex-direction: column; } .trash-row__title { color: var(--text); } .trash-row__meta { font-size: 11px; color: var(--text-muted); } .trash-footer { display: flex; justify-content: flex-end; margin-top: 16px; } /* --- Devices view --- */ .devices-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; } .device-row { padding: 10px 0; border-bottom: 1px solid var(--border-subtle); } .device-row__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; } .device-row__name { color: var(--text); } .device-row__you { font-size: 11px; color: var(--text-muted); margin-left: 8px; } .device-row__meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; } .device-row__confirm { margin-top: 8px; padding: 10px; border: 1px solid var(--border-subtle); border-radius: 3px; background: var(--bg-input); } .device-row__confirm-text { margin: 0 0 8px 0; color: var(--text); } .device-row__confirm-actions { display: flex; gap: 8px; justify-content: flex-end; } .device-banner { padding: 12px; border: 1px solid var(--border-subtle); border-radius: 3px; background: var(--bg-pane); margin-bottom: 16px; } .device-banner__title { margin-bottom: 4px; } .device-banner__body { font-size: 12px; margin: 0 0 10px 0; } /* --- Field history view --- */ .history-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; } .history-item-title { font-size: 14px; font-weight: 600; color: #c9d1d9; margin-bottom: 12px; } .history-entry { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); } .history-entry__value { font-family: ui-monospace, monospace; word-break: break-all; } .history-entry__value.masked { letter-spacing: 1px; } .history-entry__meta { grid-column: 1 / 2; font-size: 11px; } .history-entry__actions { grid-row: 1 / 3; grid-column: 2 / 3; display: flex; gap: 4px; } /* --- Type selection --- */ .type-select-list { display: flex; flex-direction: column; gap: 4px; } .type-select-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #161b22; border: 1px solid transparent; border-radius: 6px; color: #c9d1d9; font-size: 13px; cursor: pointer; text-align: left; } .type-select-row:hover { background: #21262d; border-color: #30363d; } .type-select-icon { font-size: 16px; width: 20px; text-align: center; } /* ===================================================== Vault-specific layout styles (tab UI) ===================================================== */ #vault-app { display: flex; height: 100vh; } .vault-sidebar { width: 260px; min-width: 260px; border-right: 1px solid #21262d; display: flex; flex-direction: column; height: 100vh; overflow: hidden; } .vault-sidebar__header { padding: 12px 16px; border-bottom: 1px solid #21262d; display: flex; align-items: center; gap: 8px; } .vault-sidebar__header .brand-logo { width: 36px; height: 36px; margin: 0; display: block; flex-shrink: 0; } .vault-sidebar__search { padding: 8px 12px; border-bottom: 1px solid #21262d; } .vault-sidebar__search input { width: 100%; background: #161b22; border: 1px solid #30363d; border-radius: 4px; color: #c9d1d9; padding: 6px 10px; font-size: 12px; font-family: inherit; } .vault-sidebar__list { flex: 1; overflow-y: auto; } .vault-sidebar__nav { border-top: 1px solid #21262d; padding: 8px 0; } .vault-sidebar__nav-item { display: flex; align-items: center; gap: 8px; padding: 6px 16px; color: #8b949e; font-size: 12px; cursor: pointer; border: none; background: none; width: 100%; text-align: left; font-family: inherit; } .vault-sidebar__nav-item:hover { color: #c9d1d9; background: #161b22; } .vault-pane { flex: 1; overflow-y: auto; padding: 24px 32px; } .vault-pane--empty { display: flex; align-items: center; justify-content: center; color: #484f58; font-size: 14px; } .vault-entry { display: flex; align-items: center; gap: 8px; padding: 8px 16px; cursor: pointer; border-left: 2px solid transparent; font-size: 12px; } .vault-entry:hover { background: #161b22; } .vault-entry.selected { background: #161b22; border-left-color: #d2ab43; } .vault-entry__title { color: #c9d1d9; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vault-entry__meta { color: #484f58; font-size: 11px; } .vault-group-header { padding: 12px 16px 4px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: #484f58; } /* === 3-column shell === */ .vault-shell { display: flex; height: 100vh; overflow: hidden; background: var(--bg-page, #0d1117); position: relative; } .vault-sidebar { width: 200px; min-width: 200px; display: flex; flex-direction: column; border-right: 1px solid var(--border, #30363d); background: var(--bg-page); overflow-y: auto; flex-shrink: 0; position: relative; z-index: 5; } .vault-list-pane { flex: 1; display: flex; flex-direction: column; overflow-y: auto; min-width: 0; } /* Pane occupies the same flex slot as list-pane for non-list views */ .vault-pane { flex: 1; display: flex; flex-direction: column; overflow-y: auto; min-width: 0; padding: 24px 32px; } .vault-pane--empty { align-items: center; justify-content: center; color: var(--text-dim); font-size: 14px; } /* View-specific visibility: only one of list-pane / vault-pane is visible. Default to list view if neither class is set. */ .vault-shell .vault-pane { display: none; } .vault-shell--pane .vault-list-pane { display: none; } .vault-shell--pane .vault-pane { display: flex; } .vault-shell--pane .vault-drawer { display: none; } .vault-drawer { width: 440px; min-width: 440px; max-width: 440px; border-left: 1px solid var(--border, #30363d); background: var(--bg-elevated, #161b22); overflow-y: auto; transform: translateX(100%); transition: transform 0.2s ease; flex-shrink: 0; } .vault-drawer--open { transform: translateX(0); } /* Empty state — centered, gold-accented icon, polished */ .empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 48px 24px; text-align: center; min-height: 240px; } .empty-state__icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--gold-ring); color: var(--gold-text); font-size: 30px; line-height: 1; margin-bottom: 4px; } .empty-state__title { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: 0.02em; } .empty-state__hint { font-size: 12px; color: var(--text-muted); max-width: 320px; } .vault-list-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; cursor: pointer; border-bottom: 1px solid var(--border-subtle, #21262d); transition: background 0.1s; } .vault-list-row:hover { background: var(--bg-hover, #161b22); } .vault-list-row--selected { background: var(--bg-selected, #1c2d41); border-left: 2px solid var(--gold, #b8860b); } .vault-list-row__icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--bg-elevated, #161b22); border-radius: 6px; border: 1px solid var(--border, #30363d); font-size: 14px; flex-shrink: 0; } .vault-list-row--selected .vault-list-row__icon { border-color: var(--gold, #b8860b); } .vault-list-row__text { flex: 1; min-width: 0; } .vault-list-row__title { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vault-list-row__subtitle { font-size: 11px; color: var(--text-muted, #8b949e); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; } .vault-list-row__age { font-size: 10px; color: var(--text-dim, #6e7681); flex-shrink: 0; } /* Type picker — secondary panel that slides out from behind the left sidebar */ .vault-type-panel-scrim { position: absolute; inset: 0 0 0 200px; background: rgba(0, 0, 0, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 3; } .vault-type-panel-scrim--visible { opacity: 1; pointer-events: auto; } .vault-type-panel { position: absolute; top: 0; bottom: 0; left: 200px; width: 280px; background: var(--bg-elevated); border-right: 1px solid var(--border-mid); transform: translateX(-100%); transition: transform 0.22s ease; z-index: 4; overflow-y: auto; padding: 14px 12px; box-shadow: 8px 0 24px rgba(0, 0, 0, 0.45); } .vault-type-panel--open { transform: translateX(0); } .vault-type-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 10px; margin-bottom: 8px; border-bottom: 1px solid var(--border-soft); } .vault-type-panel__title { font-size: 12px; font-weight: 600; color: var(--gold-text); text-transform: uppercase; letter-spacing: 0.08em; } .vault-type-panel__close { background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; padding: 2px 6px; border-radius: 3px; } .vault-type-panel__close:hover { color: var(--text); background: var(--bg-pane); } .vault-type-panel__hint { font-size: 11px; color: var(--text-dim); padding: 0 4px 8px; } .vault-type-list { display: flex; flex-direction: column; gap: 2px; } .vault-type-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; background: transparent; border: 1px solid transparent; border-radius: 5px; cursor: pointer; text-align: left; color: var(--text); font: inherit; font-size: 13px; transition: background 0.1s, border-color 0.1s; } .vault-type-item:hover { background: var(--bg-pane); border-color: var(--border-mid); } .vault-type-item:focus-visible { outline: none; border-color: var(--gold-base); background: var(--gold-soft); } .vault-type-item__icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; background: var(--gold-soft); border: 1px solid var(--gold-ring); border-radius: 5px; font-size: 15px; color: var(--gold-text); } .vault-type-item__name { flex: 1; color: var(--text); } /* Sidebar nav button — primary new-item variant */ .vault-sidebar__nav-item--primary { color: var(--gold-text); font-weight: 600; } .vault-sidebar__nav-item--primary:hover { background: var(--gold-soft); color: var(--gold-hi-end); } /* Drawer header and body */ .vault-drawer__header { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border, #30363d); gap: 8px; } .vault-drawer__type-pill { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; background: var(--bg-page, #0d1117); border: 1px solid var(--border, #30363d); border-radius: 4px; color: var(--text-muted, #8b949e); } .vault-drawer__actions { display: flex; gap: 6px; margin-left: auto; } .vault-drawer__close { background: transparent; border: none; cursor: pointer; font-size: 16px; color: var(--text-muted, #8b949e); padding: 4px 6px; } .vault-drawer__body { padding: 20px 20px 16px; } .vault-drawer__title { font-size: 18px; font-weight: 700; margin-bottom: 4px; } .vault-drawer__subtitle { font-size: 12px; color: var(--text-muted, #8b949e); margin-bottom: 16px; } .vault-drawer__field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .vault-drawer__field-grid > .vault-drawer__field--full { grid-column: 1 / -1; } .vault-drawer__field-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted, #8b949e); margin-bottom: 2px; } .vault-drawer__field-value { font-size: 13px; word-break: break-all; } /* Category nav */ .vault-category-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 12px; background: transparent; border: none; cursor: pointer; color: inherit; font-size: 13px; text-align: left; } .vault-category-row:hover { background: var(--bg-hover, #161b22); } .vault-category-row--active { background: var(--bg-selected, #1c2d41); } .vault-category-row__icon { font-size: 14px; flex-shrink: 0; } .vault-category-row__label { flex: 1; } .vault-category-row__count { font-size: 11px; color: var(--text-muted, #8b949e); } /* === Responsive === */ @media (max-width: 960px) { .vault-drawer { position: absolute; right: 0; top: 0; height: 100%; } } @media (max-width: 720px) { .vault-sidebar { width: 48px; min-width: 48px; } .vault-sidebar__category-label, .vault-sidebar__category-count, .vault-sidebar__nav-label { display: none; } .vault-sidebar__nav-item { justify-content: center; padding: 10px 0; } } /* --- Lock screen (vault tab) --- */ .vault-lock-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; gap: 16px; } .vault-lock-screen__form { display: flex; flex-direction: column; gap: 12px; width: 320px; } .vault-lock-screen__form input { text-align: center; } /* Glyph button used by smart-input affordances. Sits inline with an input. */ .glyph-btn { min-width: 28px; height: 28px; padding: 0 6px; background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: 3px; color: var(--text-muted); font-family: inherit; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; } .glyph-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); } .glyph-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); } .glyph-btn:disabled { opacity: 0.4; cursor: not-allowed; } .hostname-chip-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 11px; color: var(--text-muted); } .hostname-chip { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 3px; font-size: 10px; font-weight: 600; color: #0c1118; } .hostname-text { font-family: ui-monospace, monospace; } .strength-bar-row { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; } .strength-bar { display: flex; gap: 3px; height: 4px; } .strength-bar > span { flex: 1; background: var(--border-subtle); border-radius: 2px; } .strength-bar.s-very-weak > span.lit { background: #c75a4f; } .strength-bar.s-weak > span.lit { background: #c75a4f; } .strength-bar.s-fair > span.lit { background: #d49b3a; } .strength-bar.s-good > span.lit { background: #d49b3a; } .strength-bar.s-strong > span.lit { background: #6cb37a; } .strength-label { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; } .totp-preview { margin-top: 6px; padding: 6px 10px; border: 1px dashed var(--border-subtle); border-radius: 3px; display: flex; justify-content: space-between; align-items: center; font-variant-numeric: tabular-nums; color: var(--text-muted); } .totp-code { font-size: 14px; font-weight: 600; letter-spacing: 1px; color: var(--accent); } .totp-countdown { font-size: 11px; } .totp-qr-panel { margin-top: 6px; padding: 10px; border: 1px dashed var(--border-subtle); border-radius: 3px; background: var(--bg-input); } .totp-qr-panel input[type="file"] { display: block; font-family: inherit; color: var(--text-muted); } .totp-qr-error { margin-top: 6px; font-size: 11px; color: var(--danger, #c75a4f); } .notes-with-toggle { display: flex; align-items: center; gap: 8px; } .f-notes--mono { font-family: ui-monospace, "JetBrains Mono", "SF Mono", monospace !important; } /* Phase 2B: surface backdrop — subtle radial top-glow + grid texture. Apply to body or a top-level wrapper. Children must sit above the ::before. */ .surface-backdrop { position: relative; background: radial-gradient(ellipse 700px 240px at 50% -40px, rgba(184, 149, 86, 0.05), transparent 65%), linear-gradient(180deg, #11161e 0%, #0a0e14 100%); } .surface-backdrop::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; z-index: 0; } .surface-backdrop > * { position: relative; z-index: 1; } /* Phase 2B: glass card. Translucent panel with backdrop blur for the unlock card, setup step card, and form section panels. Falls back gracefully on browsers without backdrop-filter (just stays translucent). */ .glass { background: var(--bg-card); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--border-soft); border-radius: 10px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 6px 18px rgba(0, 0, 0, 0.35); } /* Phase 2B: button hierarchy. Existing .btn class kept for backwards compatibility; .btn-primary and .btn-secondary express clearer intent and are used in updated views. */ .btn-primary { background: var(--gold-base); color: var(--bg-page); border: none; padding: 9px 14px; font-size: 12px; font-weight: 600; border-radius: 6px; font-family: inherit; cursor: pointer; letter-spacing: 0.3px; display: inline-flex; align-items: center; gap: 8px; transition: background-color 0.15s; } .btn-primary:hover { background: var(--gold-stroke); } .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; } .btn-primary:focus-visible { outline: none; box-shadow: var(--focus-ring); } .btn-secondary { background: transparent; border: 1px solid rgba(255, 255, 255, 0.06); color: var(--text-muted); padding: 6px 12px; font-size: 11px; border-radius: 5px; font-family: inherit; cursor: pointer; } .btn-secondary:hover { border-color: rgba(255, 255, 255, 0.12); color: var(--text); } .btn-secondary:focus-visible { outline: none; box-shadow: var(--focus-ring); } /* Phase 2B: two-column form grid for fullscreen login */ .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1100px; margin: 0 auto; } @media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } } /* P3: lower form sections constrained to the same envelope as .form-grid. Gated on surface === 'fullscreen' in login.ts; popup unaffected. */ .form-lower { max-width: 1100px; margin: 0 auto; } .form-lower > .form-group, .form-lower > .disclosure, .form-lower > .attachments-disclosure, .form-lower > .form-actions { width: 100%; } .form-col { padding: 14px 16px; } .col-header { text-transform: uppercase; letter-spacing: 1.2px; font-weight: 500; color: var(--text-muted); font-size: 10px; border-bottom: 1px solid var(--border-mid); padding-bottom: 6px; margin-bottom: 12px; } /* Phase 2B: fullscreen form header */ .fullscreen-form-header { padding: 14px 24px; border-bottom: 1px solid var(--border-mid); display: flex; justify-content: space-between; align-items: flex-start; } .fullscreen-form-header .title { font-size: 16px; font-weight: 500; color: var(--text); } .fullscreen-form-header .sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; } .fullscreen-form-header .hint { font-size: 11px; color: var(--text-dim); } /* Phase 2B: sticky save bar + scrollable form pane */ .form-pane { display: flex; flex-direction: column; height: 100%; overflow: hidden; width: 100%; max-width: 1280px; margin: 0 auto; } .form-scroll { flex: 1; overflow-y: auto; padding: 20px 24px; } .sticky-save-bar { position: sticky; bottom: 0; background: rgba(17, 22, 30, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-top: 1px solid var(--border-mid); padding: 12px 24px; display: flex; justify-content: flex-end; gap: 8px; z-index: 10; } .sticky-save-bar::before { content: ''; position: absolute; top: -24px; left: 0; right: 0; height: 24px; background: linear-gradient(to top, rgba(17, 22, 30, 0.7), transparent); pointer-events: none; } /* Toast notifications */ .relicario-toast-container { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; pointer-events: none; z-index: 9999; } .vault-shell .relicario-toast-container { left: auto; right: 24px; transform: none; } .relicario-toast { padding: 8px 16px; border-radius: 6px; font-size: 12px; opacity: 0; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s; pointer-events: none; } .relicario-toast--visible { opacity: 1; transform: translateY(0); } .relicario-toast--success { background: #1f4a24; color: #aff0b5; border: 1px solid #238636; } .relicario-toast--error { background: #4a1f1f; color: #f0afaf; border: 1px solid #ab2b20; } .relicario-toast--info { background: #1f2d4a; color: #afc8f0; border: 1px solid #1f6feb; } /* --- Shared utility classes for management surfaces (settings/devices/trash/history) --- */ .section-header { text-transform: uppercase; font-weight: 500; letter-spacing: 1px; color: var(--text-muted); border-bottom: 1px solid var(--border-subtle); padding-bottom: 4px; margin: 16px 0 10px 0; font-size: 11px; } .section-header:first-child { margin-top: 0; } .glyph-btn[data-danger]:hover { color: var(--danger); border-color: var(--danger); } .kv-row { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; } .kv-row > .k { color: var(--text-muted); } .kv-row > .v { color: var(--text); font-variant-numeric: tabular-nums; } .fingerprint { font-family: ui-monospace, monospace; color: var(--text-muted); font-size: 11px; word-break: break-all; /* wraps to two lines in popup (~360px) */ line-height: 1.4; } .settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; } @media (max-width: 720px) { .settings-grid { grid-template-columns: 1fr; } } .settings-header__sub { margin-left: auto; font-size: 11px; } .history-index-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); cursor: pointer; } .history-index-row:hover { background: var(--bg-input); } .history-index-row__icon { font-size: 14px; } .history-index-row__info { flex: 1; display: flex; flex-direction: column; } .history-index-row__title { color: var(--text); } .history-index-row__meta { font-size: 11px; }