body {
    font-family: system-ui, sans-serif;
    margin: 2rem;
    background: #f5f5f5;
}
h1 {
    color: #9147ff;
}
.container {
    max-width: 1000px;
    margin: 0 auto;
}
.card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
th,
td {
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid #eee;
}
th {
    background: #f9f9f9;
    font-weight: 600;
}
tr:hover {
    background: #fafafa;
}
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.btn {
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    margin-right: 0.5rem;
}
.btn-primary {
    background: #9147ff;
    color: white;
}
.btn-primary:hover {
    background: #772ce8;
}
.btn-secondary {
    background: #ddd;
    color: #333;
}
.status {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-on {
    background: #d4edda;
    color: #155724;
}
.status-off {
    background: #e2e3e5;
    color: #383d41;
}
.status-busy {
    background: #fff3cd;
    color: #856404;
}
.status-err {
    background: #f8d7da;
    color: #721c24;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.user-info {
    font-size: 0.9rem;
    color: #666;
}
.actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.5rem;
}
.not-authed {
    text-align: center;
    padding: 3rem;
}
.not-authed a {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #9147ff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.1rem;
}
.not-authed a:hover {
    background: #772ce8;
}
.apikey {
    margin-top: 0.75rem;
    background: #f2f2f2;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.apikey input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: monospace;
    font-size: 0.85rem;
    color: #333;
    filter: blur(4px);
}
.apikey input:focus {
    filter: blur(0);
}
.apikey button {
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
}
.err {
    color: #b00020;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}
code {
    background: #f2f2f2;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}
span[popovertarget] {
  cursor: pointer;
}