:root {
    font:
        14px/1.55 system-ui,
        -apple-system,
        'Segoe UI',
        sans-serif;
    color: #25324a;
    background: #f4f6fa;
    --accent: #355cdb;
    --border: #e3e8f0;
    --muted: #7a879b;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
button,
input,
textarea,
select {
    font: inherit;
}
button,
summary {
    cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #b3c6ff;
    outline-offset: 2px;
}
.sidebar {
    width: 228px;
    background: #fff;
    border-right: 1px solid var(--border);
    position: fixed;
    inset: 0 auto 0 0;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
}
.brand {
    display: flex;
    align-items: center;
    font-size: 23px;
    font-weight: 750;
    letter-spacing: -0.8px;
    color: #202e45;
    padding: 0 10px;
}
.brand > span:last-child {
    font-weight: 400;
    color: var(--muted);
}
.brand-mark {
    display: inline-grid;
    place-items: center;
    color: white;
    background: var(--accent);
    border-radius: 10px;
    width: 33px;
    height: 33px;
    margin-right: 10px;
}
.workspace-label {
    color: #a0a9b8;
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin: 42px 12px 12px;
}
.nav-link {
    display: block;
    padding: 11px 16px;
    color: #68758b;
    border-radius: 7px;
    margin: 3px 0;
    font-weight: 550;
}
.nav-link:hover {
    background: #f5f7fc;
    text-decoration: none;
}
.nav-link.active {
    background: #edf1ff;
    color: var(--accent);
    box-shadow: inset 3px 0 var(--accent);
}
.site-link {
    margin-top: auto;
    padding: 18px 12px 0;
    border-top: 1px solid var(--border);
}
.workspace {
    margin-left: 228px;
}
.topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    height: 76px;
    padding: 0 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.site-name {
    font-weight: 650;
}
.account,
.actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.account {
    color: var(--muted);
    font-size: 13px;
}
main {
    padding: 32px 38px 60px;
    max-width: 1500px;
    margin: auto;
}
.eyebrow {
    color: #8995a7;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 1.6px;
    margin-bottom: 7px;
}
h1 {
    font-size: 29px;
    line-height: 1.25;
    letter-spacing: -0.6px;
    margin: 0;
}
h2 {
    font-size: 17px;
    margin: 0 0 18px;
    letter-spacing: -0.2px;
}
.page-heading {
    margin-bottom: 28px;
}
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 11px;
    box-shadow: 0 2px 3px #172e4b03;
    margin-bottom: 22px;
}
.padded {
    padding: 24px;
}
.muted,
small {
    color: var(--muted);
}
small {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 400;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 17px;
    background: var(--accent);
    color: white;
    border: 1px solid transparent;
    border-radius: 6px;
    line-height: 1.35;
    font-weight: 550;
    white-space: nowrap;
}
.button:hover {
    text-decoration: none;
    filter: brightness(0.96);
}
.button.secondary {
    color: #52617b;
    border-color: #dce3ed;
    background: white;
}
.button.ghost {
    color: #64738e;
    background: transparent;
}
.button.danger {
    color: #b54451;
    background: #fff1f2;
}
.button.small {
    font-size: 12px;
    padding: 7px 10px;
}
.button.full {
    width: 100%;
    margin-top: 9px;
}
.field {
    margin: 20px 0;
}
label {
    display: block;
    font-weight: 550;
    color: #526078;
}
input:not([type='checkbox']):not([type='hidden']),
select,
textarea {
    display: block;
    width: 100%;
    background: white;
    color: #25324a;
    border: 1px solid #d7dfea;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 7px;
    min-height: 40px;
}
input[readonly] {
    background: #f6f8fb !important;
}
textarea {
    resize: vertical;
    line-height: 1.8;
}
input[type='checkbox'] {
    accent-color: var(--accent);
    width: 17px;
    height: 17px;
}
input[type='color'] {
    max-width: 90px;
    padding: 3px !important;
}
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.tabs {
    display: flex;
    gap: 24px;
}
.tabs a {
    color: #7c889b;
    padding: 9px 0;
    font-weight: 550;
    border-bottom: 2px solid transparent;
}
.tabs a.selected {
    color: var(--accent);
    border-color: var(--accent);
}
.searchbar {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}
.searchbar input {
    max-width: 340px;
    margin: 0 !important;
}
.searchbar > span {
    margin-left: auto;
    font-size: 12px;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #8a96a8;
    font-weight: 600;
    padding: 14px 22px;
    background: #fbfcfe;
    border-bottom: 1px solid var(--border);
}
td {
    padding: 19px 22px;
    border-bottom: 1px solid #edf0f5;
}
tbody tr:last-child td {
    border-bottom: 0;
}
.entry-title {
    font-weight: 650;
    color: #324461;
}
.badge {
    background: #f1f3f7;
    color: #8390a3;
    padding: 4px 9px;
    border-radius: 5px;
    font-size: 11px;
    white-space: nowrap;
}
.badge.published {
    color: #2d8360;
    background: #eaf6ef;
}
.align-right {
    text-align: right;
}
.end {
    justify-content: flex-end;
}
.nowrap {
    white-space: nowrap;
}
.empty {
    padding: 55px 24px;
    text-align: center;
    color: var(--muted);
}
.empty h2 {
    color: #56657d;
}
.table-scroll {
    overflow-x: auto;
}
.editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 24px;
}
.title-input {
    font-size: 23px !important;
    font-weight: 600;
}
.input-action {
    display: flex;
    gap: 8px;
    align-items: center;
}
.input-action input {
    margin-top: 0 !important;
}
.input-action {
    margin-top: 7px;
}
.editor-meta {
    display: flex;
    justify-content: space-between;
    color: #95a0b0;
    font-size: 11px;
    margin-top: 9px;
}
.sticky {
    position: sticky;
    top: 20px;
}
.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
}
.split-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.inline-form {
    display: flex;
    align-items: end;
    gap: 20px;
}
.inline-form label {
    flex: 1;
}
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.stat {
    display: flex;
    flex-direction: column;
    padding: 24px;
    color: #63718a;
}
.stat strong {
    font-size: 36px;
    color: #2d3f5f;
    margin: 12px 0 6px;
}
.stat:hover {
    text-decoration: none;
}
.welcome {
    padding: 32px;
}
.alert {
    padding: 14px 18px;
    border-radius: 7px;
    margin-bottom: 22px;
}
.alert.success {
    background: #e8f5ed;
    color: #347b53;
}
.alert.error {
    background: #fcecef;
    color: #a63c4f;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
    color: var(--muted);
}
.plain-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.settings-form {
    max-width: 780px;
}
.plugin-option {
    display: flex;
    gap: 12px;
    align-items: start;
    margin: 20px 0;
}
.create-menu {
    position: relative;
}
.popover {
    position: absolute;
    right: 0;
    top: 45px;
    width: 300px;
    z-index: 3;
    box-shadow: 0 8px 25px #20335418;
}
.popover .button {
    margin-top: 15px;
}
.menu-item {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 7px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.menu-settings {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
}
.login-card {
    width: min(430px, calc(100vw - 32px));
    padding: 35px;
}
.login-card .brand {
    padding: 0;
    margin-bottom: 35px;
}
.login-card h1 {
    font-size: 25px;
}
.extension-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.extension-toolbar input,
.extension-toolbar select {
    width: auto;
    max-width: 100%;
}
.extension-toolbar input[type='search'] {
    flex: 1;
    min-width: min(100%, 240px);
}
.extension-list {
    display: grid;
    gap: 16px;
}
.theme-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.extension-card {
    min-width: 0;
    overflow-wrap: anywhere;
    margin-bottom: 0;
}
.plugin-list {
    gap: 0;
}
.plugin-list .extension-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    padding: 16px 20px;
    border-radius: 0;
    margin-top: -1px;
}
.plugin-list .plugin-option,
.plugin-list p {
    margin: 0;
}
.plugin-list p,
.plugin-list .actions {
    grid-column: 1 / -1;
}
.extension-card .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
@media (max-width: 1100px) {
    main {
        padding: 25px;
    }
    .editor-grid {
        grid-template-columns: minmax(0, 1fr) 250px;
    }
    .split-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 800px) {
    .sidebar {
        position: static;
        width: auto;
        padding: 15px;
    }
    .sidebar nav {
        display: flex;
        overflow: auto;
        margin-top: 12px;
    }
    .nav-link {
        white-space: nowrap;
    }
    .workspace-label,
    .site-link {
        display: none;
    }
    .workspace {
        margin: 0;
    }
    .topbar {
        height: 60px;
        padding: 15px 22px;
    }
    .editor-grid {
        grid-template-columns: 1fr;
    }
    .stats {
        gap: 10px;
    }
    .stat {
        padding: 15px;
    }
    .inline-form {
        flex-direction: column;
        align-items: stretch;
    }
    td,
    th {
        padding: 14px;
    }
    .tabs {
        gap: 14px;
    }
    .searchbar {
        flex-wrap: wrap;
    }
    main {
        padding: 22px 15px;
    }
}
