body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
header {
    background: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
h1, h2 {
    color: #1a1a1a;
}
main {
    display: flex;
    gap: 20px;
}
.column {
    flex: 1;
}
.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
#status-bar {
    text-align: right;
}
#status {
    display: block;
    font-weight: bold;
}
#peers {
    display: block;
    color: #666;
    font-size: 0.9em;
}
#my-peer-id {
    font-family: monospace;
    word-break: break-all;
    background-color: #eee;
    padding: 5px;
    border-radius: 4px;
}
button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s;
}
button:hover {
    background-color: #0056b3;
}
input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
textarea {
    min-height: 100px;
    resize: vertical;
}
#library-list .library-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}
#library-list .library-item:last-child {
    border-bottom: none;
}
.library-item h4 {
    margin: 0 0 5px 0;
}
.library-item .meta {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 10px;
    word-break: break-all;
}
.library-item pre {
    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 4px;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.library-item .actions {
    margin-top: 10px;
}
.pin-button {
    background-color: #28a745;
}
.pin-button:hover {
    background-color: #218838;
}