body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #f7f7f8;
    color: #3b3b4f;
}

nav {
    background: #fff;
    padding: 14px 20px;
    margin: 0px 0px 0px 0px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

nav a {
    color: #4a4a5a;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

nav a:hover {
    background: #f0f0f2;
    color: #1a1a2e;
}

.flash {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.flash.success { background: #d4edda; color: #155724; }
.flash.error { background: #f8d7da; color: #721c24; }
.flash.warning { background: #fff3cd; color: #856404; }

form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

form textarea,
form input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: monospace;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

form textarea:focus,
form input[type="text"]:focus {
    outline: none;
    border-color: #999;
}

form textarea {
    min-height: 300px;
}

button,
input[type="submit"] {
    background: #4a4a5a;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background 0.15s;
}

button:hover,
input[type="submit"]:hover {
    background: #333345;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

h1, h2, h3 {
    color: #2d2d3f;
}

h1 {
    font-weight: 600;
}

.contract-box {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.hash {
    font-family: monospace;
    background: #eee;
    padding: 5px 10px;
    word-break: break-all;
}

pre {
    background: #f8f8f8;
    padding: 15px;
    overflow-x: auto;
    white-space: pre-wrap;
}

.signature-item {
    background: #e9ecef;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

.signature-item label {
    margin-top: 0;
}

.signature-item input {
    margin-bottom: 10px;
}

.signature-item button {
    margin-top: 0;
}

.hint {
    color: #666;
    font-size: 0.9em;
}

.hint-muted {
    color: #999;
}

.signature-input-section {
    margin-top: 10px;
}

.signatures-list {
    list-style: none;
    padding: 0;
}

hr {
    margin-top: 30px;
}

.list-item {
    margin-bottom: 10px;
}

.list-item-lg {
    margin-bottom: 15px;
}

.review-text {
    margin: 5px 0;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.85em;
    margin-left: 10px;
}

.validation-box {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.check-item {
    font-size: 0.85em;
    padding: 3px 8px;
    border-radius: 3px;
    background: #f8d7da;
    color: #721c24;
}

.check-item.valid {
    background: #d4edda;
    color: #155724;
}

/* Signature display styles */
.signature-group {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    border-left: 4px solid #ccc;
}

.signature-group:has(.status-signed) {
    border-left-color: #28a745;
}

.signature-address {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.signature-address code {
    font-size: 0.85em;
    word-break: break-all;
}

.status-signed {
    background: #d4edda;
    color: #155724;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.85em;
}

.signature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.signature-entry {
    background: white;
    padding: 10px;
    margin-top: 8px;
    border-radius: 3px;
    border: 1px solid #dee2e6;
}

.signature-value {
    display: block;
    font-size: 0.8em;
    word-break: break-all;
    margin-bottom: 5px;
}

.signature-meta {
    display: block;
    font-size: 0.75em;
    color: #666;
}

.flash.info {
    background: #cce5ff;
    color: #004085;
}

/* Copy button styles */
.btn-copy {
    background: transparent;
    color: #000;
    border: 1px solid #000;
    padding: 3px 8px;
    font-size: 0.75em;
    cursor: pointer;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.btn-copy:hover {
    background: #f0f0f0;
}

.btn-copy.copied {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

/* Participants list */
.participants-list {
    list-style: none;
    padding: 0;
}

.participant-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.participant-item:last-child {
    border-bottom: none;
}

.participant-item code {
    word-break: break-all;
    flex: 1;
}

/* Participant item with full address */
.participant-item-full {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

.participant-item-full:last-child {
    border-bottom: none;
}

.participant-address {
    flex: 1;
    min-width: 0;
}

.participant-address a {
    color: #007bff;
    text-decoration: none;
}

.participant-address a:hover {
    text-decoration: underline;
}

.participant-address .address-full {
    display: block;
    word-break: break-all;
    font-size: 0.85em;
    font-family: monospace;
    background: #f8f9fa;
    padding: 8px 10px;
    border-radius: 4px;
    margin: 0;
}

.participant-address .role-tag {
    margin-left: 0;
    margin-top: 8px;
    display: inline-block;
}

.participant-item-full .btn-copy {
    flex-shrink: 0;
    margin-top: 8px;
    margin-left: 0;
}

/* Signature address actions */
.signature-address-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Signature entry header */
.signature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* Contract text header with copy button */
h2 .btn-copy {
    font-size: 0.5em;
    padding: 4px 10px;
    vertical-align: middle;
}

/* Search form styles */
.search-section {
    margin-bottom: 15px;
}

.search-row {
    display: flex;
    gap: 10px;
}

.search-row input {
    flex: 1;
    font-family: monospace;
}

.btn-search {
    background: #28a745;
    white-space: nowrap;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9em;
}

.btn-search:hover {
    background: #218838;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9em;
}

.btn-secondary:hover {
    background: #5a6268;
}

.search-helper {
    margin-bottom: 15px;
}

.contract-input-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.contract-input-section textarea {
    min-height: 150px;
    margin-bottom: 10px;
}

/* Add signature section */
.add-signature-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

#add-signature-form {
    margin-top: 15px;
}

#add-signature-form textarea {
    min-height: 80px;
    margin-bottom: 10px;
}

/* Rating form styles */
.existing-ratings {
    margin-bottom: 20px;
}

.rating-item {
    display: flex;
    gap: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 10px;
}

.rating-stars {
    white-space: nowrap;
}

.rating-stars .star {
    color: #ddd;
    font-size: 1.2em;
}

.rating-stars .star.filled {
    color: #ffc107;
}

.rating-details {
    flex: 1;
}

.rating-details small {
    color: #666;
}

.rating-details .review-text {
    margin: 5px 0 0 0;
    font-style: italic;
    color: #333;
}

.add-rating-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

#add-rating-form {
    margin-top: 15px;
}

#add-rating-form h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1em;
    color: #333;
}

.rating-participants {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-participant-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
}

.rating-participant-checkbox:hover {
    background: #e9ecef;
}

.rating-participant-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.rating-entry {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.rating-entry-header {
    margin-bottom: 10px;
}

.rating-entry-stars {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rating-entry-stars label {
    margin: 0;
    font-weight: normal;
}

.star-buttons {
    display: flex;
    gap: 5px;
}

.star-btn {
    padding: 5px 10px;
    background: #e9ecef;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9em;
}

.star-btn:hover {
    background: #dee2e6;
}

.star-btn.selected {
    background: #ffc107;
    color: #000;
}

.rating-entry-review {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rating-entry-review label {
    margin: 0;
    font-weight: normal;
    font-size: 0.9em;
}

.rating-entry-review input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.rating-message-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.rating-message-box pre {
    margin: 0 0 10px 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.85em;
}

#add-rating-form textarea {
    min-height: 80px;
    margin-bottom: 10px;
}

/* Role buttons */
.role-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.role-btn {
    padding: 5px 12px;
    background: #e9ecef;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85em;
    margin-top: 0;
}

.role-btn:hover {
    background: #dee2e6;
}

.role-btn.selected {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}

/* Role tags */
.role-tag {
    display: inline-block;
    background: transparent;
    color: #000;
    border: 1px solid #000;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75em;
    margin-left: 8px;
    font-weight: normal;
}

.role-tag.small {
    font-size: 0.7em;
    padding: 1px 6px;
    margin-left: 4px;
}

/* Tiny button for show raw / history */
.btn-tiny {
    padding: 2px 8px;
    font-size: 0.75em;
    background: transparent;
    border: 1px solid #000;
    color: #000;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 5px;
    margin-top: 5px;
}

.btn-tiny:hover {
    background: #f0f0f0;
}

/* Rating actions row */
.rating-actions {
    margin-top: 8px;
}

/* Rating raw display */
.rating-raw {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.rating-raw pre {
    margin: 5px 0 10px 0;
    font-size: 0.8em;
    max-height: 200px;
    overflow-y: auto;
}

.rating-raw code {
    font-size: 0.75em;
}

/* Rating history */
.rating-history {
    margin-top: 10px;
    padding-left: 15px;
    border-left: 2px solid #dee2e6;
}

.rating-item.older {
    background: #f1f3f5;
    opacity: 0.8;
}

/* Rating item group */
.rating-item-group {
    margin-bottom: 15px;
}

/* Rating entry role section */
.rating-entry-role {
    margin-bottom: 10px;
}

.rating-entry-role label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
}

/* Expandable review text */
.review-container {
    margin: 5px 0;
}

.review-text.expandable {
    max-height: 3.6em;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.review-text.expandable.expanded {
    max-height: none;
}

.btn-expand-review {
    padding: 2px 8px;
    font-size: 0.7em;
    background: transparent;
    border: 1px solid #000;
    border-radius: 3px;
    cursor: pointer;
    color: #000;
    margin-top: 3px;
}

.btn-expand-review:hover {
    background: #f0f0f0;
}

/* Expandable contract text */
.contract-text-container {
    position: relative;
}

.expandable-contract {
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.expandable-contract.expanded {
    max-height: none;
}

.btn-expand-contract {
    margin-top: 10px;
    padding: 5px 15px;
    background: transparent;
    border: 1px solid #000;
    color: #000;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

.btn-expand-contract:hover {
    background: #f0f0f0;
}

/* Simplified signature rows */
.signature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.signature-row:last-of-type {
    border-bottom: none;
}

.signature-row code {
    font-size: 0.9em;
}

.signature-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.signature-details {
    background: #f8f9fa;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    border-left: 3px solid #28a745;
}

.signature-detail-entry {
    margin-bottom: 8px;
}

.signature-detail-entry:last-child {
    margin-bottom: 0;
}

.signature-detail-entry .signature-meta {
    display: block;
    margin-bottom: 5px;
}

.signature-detail-entry .signature-value {
    display: block;
    font-size: 0.75em;
    word-break: break-all;
    margin-bottom: 5px;
}

/* Address Profile Styles */
.rating-summary {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.rating-average {
    text-align: center;
    min-width: 120px;
}

.avg-number {
    font-size: 3em;
    font-weight: bold;
    color: #333;
    display: block;
}

.avg-stars {
    margin: 5px 0;
}

.avg-stars .star {
    font-size: 1.2em;
}

.rating-count {
    color: #666;
    font-size: 0.9em;
}

/* Star Distribution (Google Play style) */
.star-distribution {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.star-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.star-label {
    width: 15px;
    text-align: right;
    font-size: 0.85em;
    color: #666;
}

.star-bar-container {
    flex: 1;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.star-bar {
    height: 100%;
    background: #ffc107;
    border-radius: 6px;
    transition: width 0.3s ease;
}

.star-count {
    width: 25px;
    text-align: left;
    font-size: 0.85em;
    color: #666;
}

/* Ratings List */
.ratings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rating-list-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #ffc107;
}

.rating-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.rating-list-header .rating-stars .star {
    font-size: 1.1em;
}

.rating-date {
    color: #666;
}

.rating-list-meta {
    margin-bottom: 8px;
}

.rating-list-meta code {
    font-size: 0.85em;
}

.rating-list-review {
    font-style: italic;
    color: #333;
    margin: 10px 0;
    padding-left: 10px;
    border-left: 2px solid #ddd;
}

.rating-list-contract {
    margin-top: 10px;
}

.rating-list-contract a {
    font-size: 0.85em;
    color: #007bff;
}

.rating-list-contract a:hover {
    text-decoration: underline;
}

/* Full address display */
.address-full {
    display: block;
    word-break: break-all;
    font-size: 0.9em;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-top: 5px;
}

/* Role Distribution */
.role-distribution {
    max-width: 400px;
}

.role-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.role-label {
    width: 100px;
    text-align: right;
    font-size: 0.85em;
    color: #333;
}

.role-bar-container {
    flex: 1;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.role-bar {
    height: 100%;
    background: #6c757d;
    border-radius: 6px;
    transition: width 0.3s ease;
}

.role-count {
    width: 25px;
    text-align: left;
    font-size: 0.85em;
    color: #666;
}

/* Expandable review in address page */
.rating-list-review.expandable {
    max-height: 4.5em;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.rating-list-review.expandable.expanded {
    max-height: none;
}

/* Pagination */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-info {
    color: #666;
    font-size: 0.9em;
}

.pagination-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.pagination-per-page span {
    color: #666;
}

.per-page-option {
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    background: #fff;
}

.per-page-option:hover {
    background: #f0f0f0;
}

.per-page-option.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.pagination-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: #fff;
    font-size: 0.9em;
}

.pagination-btn:hover:not(.disabled) {
    background: #f0f0f0;
}

.pagination-btn.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 3px;
}

.page-num {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    background: #fff;
    font-size: 0.85em;
}

.page-num:hover:not(.active) {
    background: #f0f0f0;
}

.page-num.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.page-ellipsis {
    padding: 6px 8px;
    color: #666;
}

/* Recent Contracts List */
.recent-contracts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-contract-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.recent-contract-item:last-child {
    border-bottom: none;
}

.recent-contract-item a {
    color: #007bff;
    text-decoration: none;
}

.recent-contract-item a:hover {
    text-decoration: underline;
}

.recent-contract-meta {
    color: #666;
    font-size: 0.85em;
}

/* Small status badges */
.status-signed-small {
    background: #d4edda;
    color: #155724;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-pending-small {
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8em;
}

/* Contracts Table */
.contracts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.contracts-table th,
.contracts-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.contracts-table th {
    background: #f8f9fa;
    font-weight: bold;
    font-size: 0.9em;
    color: #333;
}

.contracts-table tr:hover {
    background: #f8f9fa;
}

.contracts-table a {
    color: #007bff;
    text-decoration: none;
}

.contracts-table a:hover {
    text-decoration: underline;
}

.contracts-table code {
    font-size: 0.85em;
}

/* Profile Styles */
.profile-description {
    margin-bottom: 15px;
}

.profile-description p {
    white-space: pre-wrap;
    margin: 0;
    line-height: 1.6;
}

.profile-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-contacts li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-family: monospace;
    font-size: 0.9em;
}

.profile-contacts li:last-child {
    border-bottom: none;
}

/* Structured contacts */
.profile-contacts.structured li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}

/* Verified contact badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    background: #1D9BF0;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
}

.verified-badge:hover {
    background: #1D9BF0;
}

/* Payment Address */
.payment-address {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    flex-wrap: wrap;
}

.payment-address code {
    word-break: break-all;
    font-size: 0.85em;
    flex: 1;
    min-width: 200px;
}

/* Request Status Styles */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.request-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #6c757d;
}

.request-item.status-in-review {
    border-left-color: #ffc107;
}

.request-item.status-approved {
    border-left-color: #28a745;
}

.request-item.status-rejected {
    border-left-color: #dc3545;
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.request-status {
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: bold;
}

.status-badge-in-review {
    background: #fff3cd;
    color: #856404;
}

.status-badge-approved {
    background: #d4edda;
    color: #155724;
}

.status-badge-rejected {
    background: #f8d7da;
    color: #721c24;
}

.request-date {
    color: #666;
    font-size: 0.85em;
}

.request-details p {
    margin: 5px 0;
    font-size: 0.9em;
}

.request-details code {
    font-size: 0.85em;
}

.request-notes {
    margin-top: 10px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 4px;
}

.request-notes p {
    margin: 5px 0 0 0;
    white-space: pre-wrap;
}

/* PGP Key Styles */
.pgp-fingerprint {
    font-family: monospace;
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.pgp-fingerprint:hover {
    background: #dee2e6;
}

.pgp-pubkey-container {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.pgp-pubkey {
    font-family: monospace;
    font-size: 0.85em;
    background: #fff;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.btn-copy.small {
    padding: 3px 8px;
    font-size: 0.8em;
    margin-top: 0;
    margin-left: 10px;
    vertical-align: middle;
    background: transparent;
    border: 1px solid #000;
    color: #000;
}

.btn-copy.small:hover {
    background: #f0f0f0;
}

.address-display {
    display: block;
    font-family: monospace;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    word-break: break-all;
    font-size: 0.95em;
}

.message-to-sign {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

.message-to-sign pre {
    margin: 0 0 10px 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Identity Type Badges */
.identity-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 6px;
    vertical-align: middle;
    background: transparent;
    border: 1px solid #000;
    color: #000;
}

.identity-badge.pgp {
    background: transparent;
    border: 1px solid #000;
    color: #000;
}

.identity-badge.xmr {
    background: transparent;
    border: 1px solid #000;
    color: #000;
}

.identity-badge.small {
    font-size: 0.6em;
    padding: 1px 4px;
    margin-left: 4px;
}

/* PGP Signature Display (multi-line) */
.signature-value.pgp-sig {
    display: block;
    font-size: 0.7em;
    max-height: 150px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 5px;
}

/* Action buttons row */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.action-buttons a {
    text-decoration: none;
}

