/* Kiểu chữ, màu sắc, điều hướng và thành phần dùng chung. */
:root {
    color-scheme: light;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: #202124;
    background: #fff;
    --muted: #6d7077;
    --line: #e6e7eb;
    --accent: #4145c9;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select {
    font: inherit;
    border-radius: 8px;
}

button, select {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

h1, h2, h3, p {
    margin: 0;
}

:focus-visible {
    outline: 3px solid #7478e9;
    outline-offset: 4px;
}

.visually_hidden, .skip_link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip_link:focus {
    display: block;
    padding: 12px;
    color: var(--accent);
}

.site_header {
    border-bottom: 1px solid var(--line);
}

.header_inner {
    max-width: 1440px;
    margin: auto;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    gap: 36px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
}

.brand_icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #24262c;
    color: white;
    font-size: 20px;
}

.plugin_nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.plugin_nav a {
    padding: 6px 10px;
    border-radius: 6px;
    color: var(--muted);
}

.plugin_nav a[aria-current], .plugin_nav a:hover {
    background: #f2f2f5;
    color: #24262c;
}

.account {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
}

.hostname {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.account a {
    white-space: nowrap;
}

.account a:hover {
    text-decoration: underline;
}

.page_content {
    max-width: 1360px;
    margin: auto;
    padding: 40px;
}

.page_heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.eyebrow {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.8px;
    margin-bottom: 10px;
}

h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 650;
    letter-spacing: -0.7px;
}

.total_count {
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--muted);
}

.page_description {
    margin-top: 10px;
    color: var(--muted);
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.secondary {
    background: white;
}

.secondary:hover {
    background: #f5f5f8;
}

.primary {
    background: #282a30;
    border-color: #282a30;
    color: white;
}

.primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.view_nav {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
}

.view_nav a {
    padding: 0 0 14px;
    color: var(--muted);
    border-bottom: 2px solid transparent;
}

.view_nav a[aria-current] {
    color: #24262c;
    font-weight: 600;
    border-color: #24262c;
}

.section_heading {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
    overflow-wrap: anywhere;
}

.section_count {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.empty_state {
    padding: 56px 20px;
    text-align: center;
    border-top: 1px solid var(--line);
}

.empty_icon {
    display: block;
    color: #8b8d99;
    font-size: 36px;
    margin-bottom: 12px;
}

.empty_state h2 {
    font-size: 18px;
}

.empty_state p {
    color: var(--muted);
    margin: 10px 0 18px;
}

.message, .error_message {
    padding: 14px 18px;
    border: 1px solid;
    border-radius: 8px;
    margin-bottom: 24px;
    overflow-wrap: anywhere;
}

.message {
    border-color: #c8e4d2;
    color: #235c39;
    background: #f0f9f3;
}

.error_message {
    border-color: #f0cccc;
    color: #922e2e;
    background: #fff4f4;
}

.page_footer {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 36px;
    color: #8b8d95;
    font-size: 11px;
}

@media (max-width: 900px) {
.header_inner {
        gap: 18px;
        padding: 16px 24px;
        flex-wrap: wrap;
    }

.plugin_nav {
        order: 3;
        width: 100%;
    }

.page_content {
        padding: 30px 24px;
    }

.hostname {
        display: none;
    }
}

@media (max-width: 600px) {
.header_inner {
        padding: 14px 20px;
    }

.page_content {
        padding: 28px 20px;
    }

.page_heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        margin-bottom: 24px;
    }

h1 {
        font-size: 26px;
    }

.view_nav {
        gap: 22px;
        font-size: 13px;
        flex-wrap: wrap;
    }
}
