/* Các panel, thẻ thiết bị và form dùng chung cùng theme thư viện Kavita. */
.surface_panel, .device_card, .login_panel {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
}
.surface_panel {
    margin-bottom: 24px;
}
.dashboard_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.device_card {
    border-top: 3px solid #e0e1ed;
}
.device_card h2 {
    font-size: 18px;
}
.device_icon {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eeeef6;
    color: #656092;
    font-weight: 600;
}
.device_card .section_heading {
    justify-content: space-between;
}
.device_address {
    margin-top: 12px;
    color: var(--accent);
    overflow-wrap: anywhere;
}
.device_address a:hover {
    text-decoration: underline;
}
.device_details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
}
.status_badge, .os_label {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 6px;
    background: #f2f2f5;
    color: var(--muted);
    font-size: 11px;
}
.status_active {
    background: #edf7ef;
    color: #2b6843;
}
.panel_description {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}
.action_row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.console_output {
    max-width: 100%;
    overflow-x: auto;
    margin: 18px 0 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafafb;
    color: #43464e;
    font: 13px/1.7 Consolas, monospace;
    tab-size: 4;
}
.plugin_card:hover {
    border-color: #b7b9d0;
    box-shadow: 0 4px 18px #24262c0b;
}
.plugin_card .device_icon {
    margin-bottom: 18px;
}
.notice_message {
    padding: 14px 18px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafafb;
    color: var(--muted);
    overflow-wrap: anywhere;
}
.login_layout {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
    background: #fafafb;
}
.login_panel {
    width: min(100%, 440px);
    padding: 36px;
}
.login_panel .brand {
    margin-bottom: 36px;
}
.login_form {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}
.login_form .notice_message {
    margin-bottom: 8px;
}
.login_form label {
    font-size: 13px;
    font-weight: 600;
}
.login_form input {
    min-width: 0;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
}
.login_form button {
    margin-top: 8px;
}
@media (max-width: 600px) {
    .dashboard_grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .surface_panel, .device_card, .login_panel {
        padding: 20px;
    }
    .brand {
        flex-shrink: 0;
    }
    .header_inner {
        gap: 12px;
    }
    .console_output {
        padding: 14px;
        font-size: 12px;
    }
}

/* Nút đăng xuất dùng form POST và giữ cách trình bày trong thanh điều hướng. */
.logout_button { border: 0; background: transparent; color: inherit; padding: 0; cursor: pointer; }
.account form, .action_row form { margin: 0; }
