:root {
    --tblr-font-sans-serif:
        Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --tblr-primary: #2864e8;
    --tblr-primary-rgb: 40, 100, 232;
    --ink: #202d43;
    --muted: #53637a;
    --tblr-body-font-size: 1rem;
    --tblr-secondary: #53637a;
    --tblr-secondary-rgb: 83, 99, 122;
    --border: #e8ecf2;
    --surface: #f6f8fb;
    --blue: #2864e8;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-size: 1rem;
    line-height: 1.6;
}
a {
    text-decoration: none;
}
button,
input,
textarea,
select {
    font: inherit;
}
button,
a,
input,
textarea,
select {
    touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #7da9ff;
    outline-offset: 3px;
}
[hidden] {
    display: none !important;
}
.icon {
    flex-shrink: 0;
    vertical-align: middle;
}
.workspace {
    min-height: 100vh;
}
.sidebar {
    width: 250px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    background: #fff;
    border-right: 1px solid var(--border);
    padding: 28px 21px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 34px;
    font-weight: 750;
    letter-spacing: 0.5px;
    color: #1d2c45;
    padding: 0 12px;
}
.brand-name {
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: 0.4px;
    max-width: 132px;
}
.brand:hover {
    color: #1d2c45;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 10px #2864e820;
}
.brand-mark .icon {
    width: 24px;
    height: 24px;
}
.brand-dot {
    color: var(--blue);
    margin-left: -9px;
}
.workspace-label {
    font-size: 0.875rem;
    font-weight: 650;
    letter-spacing: 1.5px;
    color: var(--muted);
    margin: 49px 14px 14px;
}
.nav-stack {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 15px;
    color: #66758b;
    font-size: 1rem;
    font-weight: 550;
    border-radius: 8px;
}
.nav-item:hover {
    background: #f5f7fb;
    color: #2864e8;
}
.nav-item.active {
    background: #edf3ff;
    color: #2864e8;
}
.nav-item.active:after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2864e8;
    margin-left: auto;
}
.small-eyebrow {
    font-size: 0.875rem;
    letter-spacing: 1.3px;
    font-weight: 750;
    color: var(--muted);
}
.sidebar-create {
    margin: 24px 0;
    flex-shrink: 0;
}
.sidebar-bottom {
    margin-top: auto;
}
.sidebar-bottom > .nav-item {
    font-size: 1rem;
    padding-left: 13px;
}
.account {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--border);
    margin-top: 15px;
    padding: 22px 4px 0;
}
.account > div {
    min-width: 0;
    flex: 1;
}
.account strong {
    font-size: 1rem;
    display: block;
    max-width: 107px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.account div > span {
    display: block;
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 3px;
}
.account form {
    margin: 0;
}
.main-area {
    margin-left: 250px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.topbar {
    min-height: 72px;
    flex-shrink: 0;
    background: #ffffffd9;
    border-bottom: 1px solid var(--border);
    padding: 0 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar-left {
    display: flex;
    gap: 12px;
    align-items: center;
}
.breadcrumb-nav {
    min-width: 0;
}
.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 12px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 1rem;
}
.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.breadcrumb-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #315e9e;
}
.breadcrumb-list a:hover {
    text-decoration: underline;
}
.breadcrumb-list [aria-current='page'] {
    color: var(--ink);
    font-weight: 600;
    overflow-wrap: anywhere;
}
.breadcrumb-separator {
    color: var(--muted);
}
.private-label {
    font-size: 0.875rem;
    color: var(--muted);
    display: flex;
    gap: 7px;
    align-items: center;
}
.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5c9e85;
}
.mobile-menu {
    display: none !important;
}
.page-content {
    padding: 36px 42px 24px;
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
    flex: 1;
}
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}
.eyebrow {
    font-size: 0.875rem;
    letter-spacing: 1.65px;
    font-weight: 650;
    color: var(--muted);
    margin-bottom: 10px;
}
.page-heading h1 {
    font-size: 32px;
    line-height: 1.25;
    letter-spacing: -1.1px;
    font-weight: 650;
    margin: 0 0 9px;
}
.heading-dot {
    color: var(--blue);
}
.page-heading p {
    font-size: 1rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}
.btn {
    border-radius: 7px;
    min-height: 44px;
    font-size: 1rem;
    font-weight: 600;
    gap: 7px;
    padding: 9px 14px;
    box-shadow: 0 1px 2px #192b4410;
}
.btn .icon {
    width: 17px;
    height: 17px;
}
.btn-primary {
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 3px 6px #2864e81a;
}
.btn-white {
    background: #fff;
    border: 1px solid #e6edf9;
    color: #2864e8;
}
.card {
    border: 1px solid var(--border);
    border-radius: 11px;
    box-shadow: 0 2px 4px #202d4303;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
.stat-card {
    padding: 20px 22px;
    color: inherit;
    transition:
        border-color 0.16s,
        transform 0.16s;
}
.stat-card:hover {
    border-color: #b7cdf7;
    transform: translateY(-2px);
}
.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 550;
    color: var(--muted);
}
.stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tone-blue {
    color: #527fd8;
    background: #eef3ff;
}
.tone-green {
    color: #3f937b;
    background: #eaf7f0;
}
.tone-amber {
    color: var(--muted);
    background: #fff6e5;
}
.tone-violet {
    color: var(--muted);
    background: #f2edfc;
}
.stat-number {
    font-size: 32px;
    line-height: 1;
    letter-spacing: -0.7px;
    display: block;
    margin: 9px 0 13px;
    font-weight: 650;
}
.stat-caption {
    color: var(--muted);
    font-size: 0.875rem;
}
.management-actions {
    padding: 24px;
    margin-bottom: 28px;
    border-left: 4px solid var(--blue);
}
.management-actions h2 {
    font-size: 1.25rem;
    margin: 0 0 6px;
}
.management-actions p {
    color: var(--muted);
    margin: 0;
}
.management-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr);
    gap: 23px;
}
.card-header {
    border-bottom: 1px solid var(--border);
    min-height: 77px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 23px;
}
.card-title {
    font-size: 1.25rem;
    font-weight: 650;
    letter-spacing: -0.15px;
    margin: 0;
}
.section-caption {
    color: var(--muted);
    font-size: 0.875rem;
    margin: 5px 0 0;
}
.subtle-link {
    font-size: 0.875rem;
    font-weight: 550;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.subtle-link .icon {
    width: 15px;
    height: 15px;
}
.recent-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto 40px;
    align-items: center;
    gap: 13px;
    padding: 17px 23px;
    border-bottom: 1px solid #eef1f6;
    min-width: 0;
}
.recent-row:last-child {
    border-bottom: 0;
}
.article-glyph {
    width: 38px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
}
.recent-title {
    min-width: 0;
    flex: 1;
}
.recent-title > a {
    font-size: 1rem;
    font-weight: 600;
    display: block;
    color: #34415a;
    overflow-wrap: anywhere;
}
.recent-title > a:hover {
    color: var(--blue);
}
.recent-title > span {
    display: block;
    color: var(--muted);
    font-size: 0.875rem;
    margin-top: 6px;
}
.recent-title > span > span {
    margin: 0 6px;
}
.badge {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    padding: 5px 7px;
    border: 0;
    border-radius: 5px;
    white-space: nowrap;
}
.icon-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.icon-button .icon {
    width: 17px;
    height: 17px;
}
.icon-button:hover {
    background: #edf3ff;
    color: #2864e8;
}
.icon-button.delete-trigger:hover {
    background: #ffeded;
    color: var(--muted);
}
.draft-card .card-body {
    padding: 4px 22px;
}
.draft-item {
    display: block;
    padding: 19px 0;
    border-bottom: 1px solid var(--border);
}
.draft-item:last-child {
    border: 0;
}
.draft-item .small-eyebrow {
    color: var(--muted);
    font-size: 0.875rem;
}
.draft-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #415068;
    margin: 7px 0 10px;
    line-height: 1.5;
}
.draft-item > span:last-child {
    font-size: 0.875rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.draft-item .icon {
    width: 14px;
    height: 14px;
}
.category-section {
    margin-top: 29px;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.section-heading h2 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 650;
}
.category-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.category-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
    color: #64728a;
    font-size: 0.875rem;
}
.category-chip:hover {
    border-color: #c3d5f5;
}
.category-chip strong {
    margin-left: auto;
    background: #f3f5f9;
    font-size: 0.875rem;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 500;
}
.category-small-icon {
    color: var(--muted);
    display: flex;
}
.category-small-icon .icon {
    width: 16px;
}
.workspace-footer {
    font-size: 0.875rem;
    color: var(--muted);
    padding: 25px 42px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}
.footer-dot {
    margin: 0 9px;
}
.demo-strip {
    background: #f0f5ff;
    border-bottom: 1px solid #e0e9fc;
    color: #627fac;
    font-size: 0.875rem;
    text-align: center;
    padding: 5px 12px;
    letter-spacing: 0.2px;
}
.skip-link {
    position: fixed;
    top: -60px;
    left: 12px;
    padding: 10px;
    background: #fff;
    z-index: 1000;
}
.skip-link:focus {
    top: 12px;
}
.empty-state {
    text-align: center;
    padding: 60px 25px;
    color: var(--muted);
}
.empty-state > .icon {
    width: 38px;
    height: 38px;
    margin-bottom: 15px;
    color: var(--muted);
}
.empty-state h2,
.empty-state h3 {
    color: #53647e;
    font-size: 18px;
}
.empty-state p {
    font-size: 1rem;
}
.empty-state .btn {
    margin-top: 10px;
}
.quiet-empty {
    text-align: center;
    padding: 40px 10px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}
.quiet-empty .icon {
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    color: var(--muted);
}
.library-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px;
    gap: 15px;
    border-bottom: 1px solid var(--border);
}
.library-tabs > div:first-child {
    display: flex;
    gap: 28px;
}
.library-tab {
    display: block;
    padding: 22px 0 18px;
    font-size: 1rem;
    color: var(--muted);
    border-bottom: 2px solid transparent;
}
.library-tab.selected {
    color: #2864e8;
    border-color: #2864e8;
    font-weight: 650;
}
.view-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 3px;
    gap: 2px;
}
.view-toggle .selected {
    color: #2864e8;
    background: #edf3ff;
}
.filter-bar {
    padding: 19px 22px;
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.form-control,
.form-select {
    font-size: 1rem;
    border-color: #e0e6ee;
    border-radius: 6px;
    min-height: 38px;
    box-shadow: none;
}
.form-label {
    font-size: 1rem;
    font-weight: 600;
    color: #5b6b81;
    margin-bottom: 9px;
}
.form-hint {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--muted);
    margin-top: 9px;
}
.search-field {
    position: relative;
    flex: 1;
    min-width: 200px;
}
.search-field > .icon {
    position: absolute;
    bottom: 14px;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--muted);
}
.search-field input {
    padding-left: 36px;
}
.filter-bar > div:not(.search-field) {
    max-width: 200px;
    min-width: 170px;
}
.filter-bar input[type='date'] {
    max-width: 185px;
}
.clear-link {
    font-size: 0.875rem;
    color: var(--muted);
    padding: 8px;
}
.table-responsive {
    position: relative;
    max-width: 100%;
}
.library-card {
    min-width: 0;
}
.library-table {
    margin: 0;
}
.library-table thead th {
    background: #f9fafc;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    letter-spacing: 0.8px;
    color: var(--muted);
    padding: 13px 22px;
    font-weight: 600;
}
.library-table td {
    padding: 19px 22px;
    font-size: 1rem;
    border-color: #edf0f5;
}
.library-table tr:last-child td {
    border-bottom: 0;
}
.article-cell {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 205px;
}
.article-cell > div {
    min-width: 0;
}
.table-cover {
    width: 42px;
    height: 46px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-link {
    font-size: 1rem;
    font-weight: 600;
    color: #3e4d65;
    max-width: 370px;
    display: block;
    overflow-wrap: anywhere;
}
.article-author {
    display: block;
    font-size: 0.875rem;
    margin-top: 5px;
    color: var(--muted);
}
.category-label {
    font-size: 0.875rem;
    color: var(--muted);
    white-space: nowrap;
}
.row-actions {
    display: flex;
    justify-content: flex-end;
}
.library-footer {
    padding: 18px 23px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 0.875rem;
}
.pagination-actions {
    display: flex;
    gap: 8px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 3px 22px 25px;
}
.gallery-card {
    border: 1px solid var(--border);
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.gallery-cover {
    height: 180px;
    position: relative;
    overflow: hidden;
    display: block;
}
.gallery-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s;
}
.gallery-cover:hover img {
    transform: scale(1.025);
}
.cover-theme-0 {
    background: #e3ede6;
    color: #51775c;
}
.cover-theme-1 {
    background: #e5eafb;
    color: #697ead;
}
.cover-theme-2 {
    background: #f3e9dd;
    color: var(--muted);
}
.cover-art {
    position: absolute;
    inset: 0;
}
.cover-art span {
    position: absolute;
    display: block;
    width: 150px;
    height: 150px;
    border: 1px solid currentColor;
    opacity: 0.22;
    transform: rotate(32deg);
    border-radius: 32px;
    right: -5px;
    top: -40px;
}
.cover-art span:nth-child(2) {
    right: 35px;
    top: 0;
}
.cover-art span:nth-child(3) {
    right: 75px;
    top: 40px;
}
.cover-word {
    position: absolute;
    left: 22px;
    bottom: 23px;
    font-size: 20px;
    letter-spacing: -0.5px;
    font-weight: 650;
}
.gallery-body {
    padding: 19px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.gallery-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 12px;
}
.gallery-body h2 {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 650;
    letter-spacing: -0.25px;
    margin-bottom: 10px;
}
.gallery-body h2 a {
    color: #394962;
}
.gallery-excerpt {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gallery-footer {
    display: flex;
    align-items: center;
    border-top: 1px solid #eef1f6;
    padding-top: 12px;
    margin-top: auto;
    font-size: 0.875rem;
    color: var(--muted);
}
.gallery-footer > span {
    margin-right: auto;
}
.back-link {
    font-size: 0.875rem;
    color: var(--muted);
    display: inline-block;
    margin-bottom: 16px;
}
.heading-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.editor-heading h1 {
    font-size: 27px;
}
.editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 23px;
    align-items: start;
}
.writing-card {
    padding: 28px 30px 0;
    overflow: hidden;
}
.writing-eyebrow {
    font-size: 0.875rem;
    letter-spacing: 1.4px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.writing-eyebrow .icon {
    width: 15px;
    height: 15px;
}
.title-input {
    width: 100%;
    border: 0;
    background: transparent;
    color: #273954;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.6px;
    padding: 26px 0 20px;
    outline-offset: 0 !important;
}
.title-input::placeholder {
    color: #66758b;
}
.editor-rule {
    height: 1px;
    background: var(--border);
    margin-bottom: 24px;
}
.content-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.content-label span {
    font-size: 0.875rem;
}
.content-input {
    width: 100%;
    min-height: 450px;
    resize: vertical;
    border: 0;
    background: transparent;
    font-size: 1.125rem;
    line-height: 1.95;
    color: #516179;
    padding: 13px 0;
    outline-offset: 0 !important;
}
.content-input::placeholder {
    color: var(--muted);
}
.writing-footer {
    border-top: 1px solid var(--border);
    margin: 16px -30px 0;
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--muted);
    background: #fdfdfe;
}
.editor-settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.editor-settings .card-header {
    min-height: 61px;
    padding: 18px 20px;
}
.editor-settings .card-title {
    font-size: 1rem;
}
.editor-settings .card-body {
    padding: 20px;
}
.article-date-note {
    padding-top: 17px;
    margin-top: 21px;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
}
.article-date-note strong {
    font-weight: 500;
    color: #64758d;
}
.optional-label {
    font-size: 0.875rem;
    color: var(--muted);
}
.image-preview {
    height: 139px;
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: 13px;
    border: 1px solid #e8edf4;
}
.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.upload-label {
    width: 100%;
    font-size: 0.875rem;
}
.editor-settings input[type='file'] {
    font-size: 0.875rem;
}
.form-check-label {
    font-size: 0.875rem;
    color: var(--muted);
}
.invalid-feedback:not(:empty) {
    display: block;
    font-size: 0.875rem;
}
.is-invalid {
    border-color: #d63939 !important;
}
.title-input.is-invalid,
.content-input.is-invalid {
    outline: 1px solid #d63939;
}
.preview-description {
    font-size: 0.875rem !important;
    letter-spacing: 1.5px;
}
.article-preview-card {
    max-width: 1000px;
    margin: 0 auto;
}
.article-prose {
    padding: 45px 65px;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.article-hero-image,
#preview-image {
    max-height: 410px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 32px;
}
.article-kicker {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.article-kicker .eyebrow {
    margin: 0;
    color: #6684b2;
}
.article-prose h1 {
    font-size: 38px;
    line-height: 1.25;
    letter-spacing: -1px;
    color: #283b58;
    margin-bottom: 22px;
}
.article-byline {
    font-size: 1rem;
    color: var(--muted);
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 26px;
}
.article-byline strong {
    color: #62758f;
    font-weight: 500;
}
.article-byline > span {
    margin: 0 12px;
}
.prose-content {
    white-space: pre-wrap;
    font-size: 1.125rem;
    line-height: 1.95;
    color: #56667c;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.category-card {
    padding: 27px;
    color: #465770;
    transition: border-color 0.2s;
}
.category-card:hover {
    border-color: #bbd0f5;
}
.category-card h2 {
    font-size: 20px;
    margin: 23px 0 8px;
    font-weight: 600;
}
.category-card p {
    font-size: 1rem;
    color: var(--muted);
}
.category-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6685b6;
    border-top: 1px solid var(--border);
    padding-top: 18px;
    margin-top: 17px;
}
.about-card {
    max-width: 900px;
}
.about-card .card-body {
    padding: 40px;
}
.about-card h2 {
    font-size: 28px;
    margin: 25px 0 20px;
    letter-spacing: -0.7px;
}
.about-card p {
    color: var(--muted);
    line-height: 1.9;
    font-size: 1rem;
    max-width: 720px;
}
.about-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 23px;
    border-top: 1px solid var(--border);
    padding-top: 26px;
    margin-top: 30px;
}
.about-features strong {
    font-size: 1rem;
    font-weight: 600;
}
.about-features p {
    font-size: 0.875rem;
    margin-top: 10px;
}
.tech-note {
    margin-top: 20px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}
.tech-note strong {
    font-size: 0.875rem;
}
.tech-note p {
    font-size: 0.875rem;
    margin: 8px 0 0;
}
.error-card {
    text-align: center;
    padding: 65px 25px;
    max-width: 750px;
    margin: 35px auto;
}
.error-number {
    font-size: 75px;
    letter-spacing: -4px;
    color: #d9e4f7;
    font-weight: 700;
}
.error-card h1 {
    font-size: 25px;
    margin: 16px 0;
}
.error-card p {
    color: var(--muted);
    line-height: 1.8;
}
.error-card .btn {
    align-self: center;
    margin-top: 15px;
}
.cms-dialog,
.preview-dialog {
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 20px 100px #182b4a35;
    color: var(--ink);
    max-width: calc(100vw - 32px);
    padding: 32px;
}
.cms-dialog {
    width: 450px;
}
.cms-dialog::backdrop,
.preview-dialog::backdrop {
    background: #1c2c4d70;
    backdrop-filter: blur(3px);
}
.dialog-close {
    position: absolute;
    right: 15px;
    top: 15px;
}
.dialog-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #feeeee;
    color: #d65a5a;
    border-radius: 11px;
    margin-bottom: 22px;
}
.cms-dialog h2 {
    font-size: 22px;
    margin-bottom: 15px;
}
.cms-dialog p {
    font-size: 1rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 28px;
}
.preview-dialog {
    width: 850px;
    padding: 0;
    max-height: 90vh;
    overflow: auto;
}
.preview-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 23px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    font-size: 1rem;
}
.toast-message {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    background: #253952;
    color: #fff;
    padding: 14px 22px;
    border-radius: 8px;
    box-shadow: 0 6px 24px #172f4825;
    font-size: 1rem;
    max-width: calc(100vw - 50px);
}
.login-page {
    background: white;
}
.login-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}
.login-story {
    background: #edf3fe;
    padding: 55px 65px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.login-story .brand {
    padding: 0;
}
.login-story-copy {
    position: relative;
    z-index: 1;
    margin: auto 0;
    padding: 65px 0;
}
.login-story-copy .eyebrow {
    color: var(--muted);
    font-size: 0.875rem;
    letter-spacing: 1.5px;
}
.login-story-copy h1 {
    font-size: clamp(40px, 4.8vw, 72px);
    line-height: 1.12;
    font-weight: 650;
    letter-spacing: -3px;
    color: #304c77;
    margin: 30px 0 24px;
}
.login-story-copy h1 > span {
    color: #3673e8;
}
.login-story-copy p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--muted);
    max-width: 290px;
}
.login-story-footer {
    font-size: 0.875rem;
    color: var(--muted);
    z-index: 1;
}
.login-orbit {
    position: absolute;
    width: 430px;
    height: 430px;
    border: 1px solid #c9d9f4;
    border-radius: 50%;
    right: -180px;
    bottom: -110px;
}
.login-orbit:before,
.login-orbit:after {
    content: '';
    position: absolute;
    border: 1px solid #c9d9f4;
    border-radius: 50%;
    inset: 35px;
}
.login-orbit:after {
    inset: 70px;
}
.login-form-area {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 65px 30px;
}
.login-form-wrap {
    width: 335px;
    max-width: 100%;
}
.login-form-wrap > .stat-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 24px;
}
.login-form-wrap h2 {
    font-size: 28px;
    letter-spacing: -0.8px;
    margin-bottom: 10px;
}
.login-intro {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 32px;
}
.login-form-wrap .form-control {
    min-height: 44px;
}
.login-form-wrap .btn {
    min-height: 44px;
}
.login-footnote {
    font-size: 0.875rem;
    line-height: 1.9;
    text-align: center;
    color: var(--muted);
    margin: 25px 0 0;
}
.login-copyright {
    position: absolute;
    bottom: 28px;
    font-size: 0.875rem;
    color: var(--muted);
}
.login-form-wrap .alert {
    font-size: 0.875rem;
    line-height: 1.7;
}
@media (min-width: 1550px) {
    .page-content {
        padding-top: 45px;
    }
    .gallery-cover {
        height: 215px;
    }
    .recent-row {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}
@media (max-width: 1200px) {
    .sidebar {
        width: 230px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .main-area {
        margin-left: 230px;
    }
    .page-content {
        padding: 30px 26px 20px;
    }
    .topbar {
        padding: 0 26px;
    }
    .stats-grid {
        gap: 12px;
    }
    .stat-card {
        padding: 17px;
    }
    .stat-caption {
        font-size: 0.875rem;
    }
    .dashboard-grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(235px, 1fr);
        gap: 18px;
    }
    .recent-row {
        padding-left: 17px;
        padding-right: 17px;
        gap: 9px;
    }
    .filter-bar {
        flex-wrap: wrap;
    }
    .search-field {
        min-width: 180px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .editor-grid {
        grid-template-columns: minmax(0, 1fr) 260px;
    }
    .writing-card {
        padding: 24px 22px 0;
    }
    .title-input {
        font-size: 25px;
    }
    .content-label {
        display: block;
    }
    .content-label > span {
        display: block;
        margin-top: 5px;
    }
    .writing-footer {
        margin-left: -22px;
        margin-right: -22px;
        padding-left: 22px;
        padding-right: 22px;
    }
    .editor-heading {
        align-items: flex-start;
    }
    .editor-heading h1 {
        font-size: 24px;
    }
    .heading-actions {
        gap: 6px;
    }
    .article-prose {
        padding: 35px;
    }
    .login-story {
        padding: 45px;
    }
}
@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .private-label {
        display: none;
    }
}
@media (max-width: 960px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .category-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .editor-grid {
        grid-template-columns: 1fr;
    }
    .editor-settings {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .page-heading h1 {
        font-size: 26px;
    }
    .editor-heading {
        flex-wrap: wrap;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
    .login-story {
        padding: 35px;
    }
    .login-story-copy h1 {
        font-size: 48px;
    }
}
@media (max-width: 760px) {
    .topbar-left {
        width: 100%;
        gap: 8px;
    }
    .recent-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }
    .recent-row .article-glyph {
        display: none;
    }
    .recent-row .recent-title {
        grid-column: 1 / -1;
    }
    .recent-row .badge {
        justify-self: start;
    }
    .recent-row .icon-button {
        justify-self: end;
    }
    .card-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    .library-tabs {
        flex-wrap: wrap;
        padding-bottom: 10px;
    }
    .library-tabs > div:first-child {
        flex-wrap: wrap;
        gap: 16px;
    }
    .view-toggle .icon-button {
        min-width: 40px;
        min-height: 40px;
    }
    .stat-top {
        flex-wrap: wrap;
        gap: 8px;
    }
    .management-links .btn {
        width: 100%;
    }
    .workspace-footer {
        flex-wrap: wrap;
    }
    .writing-footer {
        flex-wrap: wrap;
    }
    .section-heading {
        flex-wrap: wrap;
        gap: 12px;
    }
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
        transition: transform 0.2s;
        box-shadow: 20px 0 80px #26395520;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-area {
        margin-left: 0;
    }
    .mobile-menu {
        display: inline-flex !important;
    }
    .topbar {
        min-height: 60px;
        padding: 8px 17px;
    }
    .private-label {
        font-size: 0.875rem;
    }
    .page-content {
        padding: 25px 18px 16px;
    }
    .page-heading {
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 23px;
    }
    .page-heading h1 {
        font-size: 25px;
    }
    .page-heading p {
        font-size: 1rem;
        max-width: none;
    }
    .page-heading > .btn {
        font-size: 1rem;
        padding: 9px 10px;
        white-space: nowrap;
        margin-top: 20px;
    }
    .eyebrow {
        font-size: 0.875rem;
    }
    .stat-card {
        padding: 17px;
    }
    .stat-number {
        font-size: 28px;
    }
    .stats-grid {
        gap: 12px;
        margin-bottom: 20px;
    }
    .card-header {
        padding: 18px;
    }
    .recent-row {
        padding: 17px;
    }
    .recent-title > a {
        font-size: 1rem;
    }
    .recent-title > span {
        font-size: 0.875rem;
    }
    .recent-row .badge {
        font-size: 0.875rem;
        padding: 4px 5px;
    }
    .article-glyph {
        width: 32px;
        height: 37px;
    }
    .category-strip {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .category-chip {
        padding: 12px;
        font-size: 0.875rem;
    }
    .workspace-footer {
        padding: 22px 18px;
        font-size: 0.875rem;
    }
    .workspace-footer > span:last-child {
        display: none;
    }
    .library-tabs {
        padding: 0 14px;
        gap: 8px;
    }
    .library-tabs > div:first-child {
        gap: 18px;
    }
    .library-tab {
        font-size: 1rem;
    }
    .view-toggle {
        padding: 2px;
    }
    .view-toggle .icon-button {
        width: 28px;
        height: 28px;
    }
    .filter-bar {
        padding: 16px 14px;
        gap: 8px;
    }
    .filter-bar .search-field {
        min-width: 100%;
        flex: 1;
    }
    .filter-bar > div:not(.search-field) {
        flex: 1;
        min-width: 115px;
        max-width: none;
    }
    .filter-bar input[type='date'] {
        max-width: 100%;
    }
    .filter-bar .btn {
        min-width: 75px;
    }
    .gallery-grid {
        padding: 0 14px 18px;
        gap: 12px;
    }
    .gallery-cover {
        height: 145px;
    }
    .gallery-body {
        padding: 14px;
    }
    .gallery-body h2 {
        font-size: 1rem;
    }
    .gallery-meta {
        flex-wrap: wrap;
    }
    .library-table td,
    .library-table th {
        padding-left: 15px;
        padding-right: 15px;
    }
    .article-cell {
        min-width: 215px;
    }
    .categories-grid {
        gap: 14px;
    }
    .category-card {
        padding: 22px;
    }
    .category-card h2 {
        font-size: 18px;
    }
    .editor-settings {
        gap: 16px;
    }
    .writing-card {
        padding-top: 23px;
    }
    .title-input {
        font-size: 25px;
    }
    .content-input {
        min-height: 330px;
    }
    .article-prose {
        padding: 26px;
    }
    .article-prose h1 {
        font-size: 30px;
    }
    .prose-content {
        font-size: 1.125rem;
    }
    .about-card .card-body {
        padding: 27px;
    }
    .about-card h2 {
        font-size: 24px;
    }
    .login-layout {
        grid-template-columns: 1fr;
    }
    .login-story {
        padding: 30px 28px;
        min-height: 220px;
    }
    .login-story .brand {
        font-size: 29px;
    }
    .login-story-copy {
        padding: 30px 0 0;
    }
    .login-story-copy h1 {
        font-size: 32px;
        letter-spacing: -1px;
        line-height: 1.2;
        margin: 14px 0 0;
    }
    .login-story-copy h1 br {
        display: none;
    }
    .login-story-copy p,
    .login-story-footer {
        display: none;
    }
    .login-orbit {
        width: 300px;
        height: 300px;
        right: -110px;
        bottom: -160px;
    }
    .login-form-area {
        padding: 35px 28px 75px;
    }
    .login-form-wrap {
        width: 380px;
    }
    .login-form-wrap > .stat-icon {
        display: none;
    }
    .login-form-wrap h2 {
        font-size: 25px;
    }
    .login-copyright {
        bottom: 25px;
    }
    .demo-strip {
        font-size: 0.875rem;
    }
}
@media (max-width: 440px) {
    .page-heading {
        flex-wrap: wrap;
    }
    .page-heading > .btn {
        margin-top: 0;
    }
    .stats-grid {
        gap: 10px;
    }
    .stat-top {
        font-size: 0.875rem;
    }
    .stat-icon {
        width: 30px;
        height: 30px;
    }
    .stat-caption {
        font-size: 0.875rem;
    }
    .category-strip {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-cover {
        height: 190px;
    }
    .gallery-meta {
        flex-wrap: nowrap;
    }
    .gallery-body h2 {
        font-size: 17px;
    }
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .editor-settings {
        grid-template-columns: 1fr;
    }
    .recent-row .article-glyph {
        display: none;
    }
    .private-label {
        display: none;
    }
    .library-tabs > div:first-child {
        gap: 13px;
    }
    .library-tab {
        font-size: 1rem;
    }
    .editor-heading h1 {
        font-size: 24px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
