* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Update banner */
.banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1293d8;
    color: #fff;
    padding: 12px;
    text-align: center;
    z-index: 100;
}

.banner button {
    background: #fff;
    color: #1293d8;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 8px;
}

/* Header */
header {
    padding: 24px 0 16px;
}

header h1 {
    font-size: 1.5rem;
    color: #1293d8;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.status-badge {
    font-size: 0.8rem;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.status-badge.online {
    background: #e6f9e6;
    color: #27862a;
}

.status-badge.offline {
    background: #fde8e8;
    color: #c53030;
}

.status-badge.installed {
    background: #e8f0fe;
    color: #1a56db;
}

.install-btn {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid #1293d8;
    background: #fff;
    color: #1293d8;
    cursor: pointer;
    font-weight: 600;
}

.install-hint {
    font-size: 0.75rem;
    color: #666;
}

.share-icon {
    display: inline-block;
    border: 1px solid #999;
    border-radius: 3px;
    padding: 0 4px;
    font-size: 0.7rem;
    vertical-align: middle;
}

/* Main content */
section {
    margin: 24px 0;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #444;
}

.hint {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* Note input */
.note-input {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.note-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.note-input button {
    padding: 8px 16px;
    background: #1293d8;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

/* Notes list */
.notes {
    list-style: none;
}

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

.notes li span {
    flex: 1;
}

.remove-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 4px;
}

.remove-btn:hover {
    color: #c53030;
}

.empty {
    color: #999;
    font-style: italic;
}

/* Description list (How This Works) */
dl {
    margin-top: 8px;
}

dt {
    font-weight: 600;
    margin-top: 12px;
}

dd {
    color: #555;
    font-size: 0.9rem;
    margin-left: 0;
}

/* Footer */
footer {
    padding: 24px 0;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.85rem;
}

footer a {
    color: #1293d8;
}
