html,
body {
    width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --content-max-width: 1100px;
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #ffffff;
    color: #2B2F33;
    margin: 0;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #2B2F33;
}

a:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.footer-github:focus-visible,
.site-brand-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 6px;
}

a:hover {
    color: #000000;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid #dbe5f0;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2937;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease;
}

.mobile-menu-toggle span {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: #bfdbfe;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.mobile-notification-link {
    width: 40px;
    height: 40px;
    border: 1px solid #dbe5f0;
    border-radius: 10px;
    background: #ffffff;
}

.mobile-notification-link .nav-notification-link__icon,
.mobile-notification-link .nav-notification-link__icon svg {
    width: 18px;
    height: 18px;
}

.site-brand-link {
    display: inline-flex;
    text-decoration: none;
    color: #2B2F33;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-utility-group {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 0.2rem;
}

.nav-notification-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #555;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-notification-link:hover,
.nav-notification-link:focus-visible {
    transform: translateY(-1px);
    border-color: #dbe5f0;
    background: #f8fafc;
    color: #1d4ed8;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.nav-notification-link__icon {
    width: 17px;
    height: 17px;
    display: inline-flex;
}

.nav-notification-link__icon svg {
    width: 17px;
    height: 17px;
    display: block;
}

.nav-notification-link__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e11d48;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.nav-inline-form {
    margin: 0;
}

.nav-button {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    color: #555;
    cursor: pointer;
    transition: color 0.2s ease;
}

.site-nav a {
    font-size: 0.95rem;
    color: #555;
    transition: color 0.2s ease;
}

.nav-button:hover {
    color: #000000;
}

.header-logo {
    display: block;
    height: 40px;
    width: auto;
}

.header-logo--inverse {
    display: none;
}

.site-header:hover {
    background-color: rgba(17, 24, 39, 0.92);
    border-bottom-color: #111827;
}

.site-header:hover .header-logo--default {
    display: none;
}

.site-header:hover .header-logo--inverse {
    display: block;
}

.site-header:hover .site-nav a {
    color: #ffffff;
}

.site-header:hover .nav-notification-link {
    border-color: transparent;
    background: transparent;
    color: #ffffff;
}

.site-header:hover .nav-notification-link:hover,
.site-header:hover .nav-notification-link:focus-visible {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.45);
}

.site-header:hover .nav-button {
    color: #ffffff;
}

.site-nav a:hover {
    color: #000;
}

.site-header:hover .site-nav a:hover,
.site-header:hover .nav-button:hover {
    color: #d1d5db;
}

.site-main {
    padding: 0;
}

main {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

.hero {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%);
}

.hero-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: #2563eb;
}

.hero p {
    font-size: 1.125rem;
    max-width: 720px;
    margin-bottom: 2.5rem;
    color: #4b5563;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font: inherit;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    border: 1px solid #2563eb;
}

.btn-primary:hover {
    background-color: #1e4fd6;
    color: #ffffff;
    border-color: #1e4fd6;
}

.hero .btn-primary:hover {
    background-color: transparent;
    color: #2563eb;
    border-color: #2563eb;
}

.btn-secondary {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
}

.btn-secondary:hover {
    background-color: #f3f4f6;
}

.btn-danger {
    appearance: none;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #be123c;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #ffe4e6;
    border-color: #fda4af;
}

.tech {
    padding: 5rem 2rem;
    background-color: #ffffff;
}

.tech-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.page-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
    box-sizing: border-box;
}

.tech h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.tech-intro {
    color: #6b7280;
    margin-bottom: 2.5rem;
    max-width: 100%;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-card {
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    background-color: #fafafa;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tech-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.site-footer {
    width: 100%;
    padding: 1rem 1.5rem 0.85rem;
    background-color: #111827;
}

.footer-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.footer-brand {
    display: inline-flex;
}

.footer-logo {
    display: block;
    height: 32px;
    width: auto;
}

.footer-text {
    color: #9ca3af;
    font-size: 0.84rem;
    line-height: 1.35;
    text-align: center;
    margin: 0;
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.footer-github {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
}

.footer-github svg {
    width: 1.35rem;
    height: 1.35rem;
}

.footer-github:hover {
    opacity: 0.85;
}

.footer-copy {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
}

.footer-legal {
    font-size: 0.75rem;
    color: #9ca3af;
}

.footer-legal:hover {
    color: #ffffff;
}

@media (max-width: 640px) {
    .header-logo {
        height: 34px;
    }

    .footer-logo {
        height: 28px;
    }

    .footer-bottom {
        gap: 0.6rem;
    }

    .footer-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 1.2rem 1rem;
        flex-wrap: wrap;
        gap: 0.85rem;
    }

    .site-nav {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }

    .site-main {
        padding: 0;
    }

    .page-content {
        padding: 2rem 1rem;
    }

    .hero,
    .tech {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.7rem 1.2rem;
    }

    .tech h2 {
        font-size: 1.75rem;
    }
}

.flash-banner {
    padding: 1rem 2rem 0;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0) 100%);
}

.flash-banner__content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 12px;
    background: #f8fbff;
    color: #1d4ed8;
    font-weight: 600;
}

.blog-shell {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.admin-shell .blog-shell {
    display: grid;
    gap: 1.5rem;
}

.blog-hero,
.admin-shell,
.article-page,
.blog-listing,
.auth-shell {
    padding: 4.5rem 0;
}

.blog-listing,
.admin-shell,
.auth-shell {
    background: #f8fafc;
}

.blog-hero {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #e8f0ff;
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.blog-hero h1,
.article-header h1,
.editor-panel h1,
.section-heading h1 {
    max-width: 900px;
    margin: 0 0 1rem;
    line-height: 1.05;
}

.blog-hero__lead,
.section-heading p,
.admin-note,
.article-excerpt,
.settings-copy,
.auth-helper {
    max-width: 760px;
    font-size: 1.1rem;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-shell .section-heading {
    margin-bottom: 0;
}

.section-heading--admin-blog {
    align-items: center;
}

.section-heading--admin-blog .admin-cta-btn {
    align-self: center;
    margin: 0;
}

.section-heading h2 {
    margin: 0 0 0.55rem;
    font-size: 2rem;
    line-height: 1.1;
}

.section-heading p {
    margin: 0;
    color: #64748b;
}

.empty-state,
.admin-note,
.sidebar-card,
.editor-block,
.post-card,
.admin-table,
.article-content,
.editor-panel {
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.05);
}

.empty-state,
.admin-note,
.sidebar-card,
.editor-panel,
.article-content {
    padding: 1.5rem;
}

.admin-note {
    margin: 0;
    line-height: 1.65;
    color: #475569;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
}

.post-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.post-card h3 {
    margin: 0.6rem 0 0.8rem;
    font-size: 1.45rem;
}

.post-card p {
    margin: 0 0 0.75rem;
    color: #475569;
}

.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 600;
}

.post-card__link,
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
    color: #2563eb;
    font-weight: 700;
}

.post-card__link {
    margin-top: auto;
}

.article-page {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.article-header {
    max-width: 780px;
    margin-bottom: 2rem;
}

.article-content {
    max-width: 780px;
}

.article-content p,
.article-note {
    margin: 0 0 1.2rem;
}

.article-subheading {
    margin: 2.2rem 0 1rem;
    font-size: 1.8rem;
}

.article-note {
    padding: 1rem 1.1rem;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    background: #eff6ff;
    color: #334155;
}

.command-block {
    margin: 1.5rem 0;
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    background: #0f172a;
}

.command-block__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.command-block__label {
    color: #93c5fd;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.command-block__copy,
.btn-ghost {
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-ghost--danger {
    color: #fecaca;
}

.command-block pre {
    margin: 0;
    padding: 1.1rem 1rem 1.2rem;
    overflow-x: auto;
}

.command-block code {
    color: #e2e8f0;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.95rem;
    line-height: 1.75;
}

.editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
    gap: 1.5rem;
}

.auth-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 28%),
        #ffffff;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
}

.auth-card--wide {
    max-width: 720px;
}

.auth-form--register {
    gap: 0.4rem;
}

.social-auth-grid {
    display: grid;
    gap: 0.65rem;
}

.article-comments {
    max-width: 780px;
    margin-top: 2.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid #e5e7eb;
}

.section-heading--comments {
    margin-bottom: 1rem;
}

.comments-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.comment-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    background: #ffffff;
}

.comment-item__header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment-item__header small {
    color: #64748b;
    font-weight: 600;
}

.comment-item p {
    margin: 0;
}

.comment-form {
    margin-bottom: 1rem;
}

.auth-card__intro {
    margin-bottom: 1.5rem;
}

.auth-form {
    display: grid;
    gap: 0.2rem;
}

.checkbox-field {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.2rem 0 1rem;
    color: #475569;
    font-weight: 600;
}

.checkbox-field input {
    width: 1rem;
    height: 1rem;
}

.editor-panel__header {
    margin-bottom: 1.5rem;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.block-stack {
    display: grid;
    gap: 1rem;
}

.editor-block {
    padding: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.editor-block__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.editor-block__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.editor-sidebar {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
    gap: 1.5rem;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field-group {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.field-group label,
.sidebar-card h2 {
    color: #0f172a;
    font-weight: 700;
}

.field-group small {
    color: #64748b;
}

.field-group input,
.field-group textarea,
.field-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.95rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font: inherit;
    font-size: 1rem;
    color: #1e293b;
    background: #fff;
}

.field-group input,
.field-group select {
    min-height: 54px;
    line-height: 1.25;
}

.field-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 3rem;
    background-image:
        linear-gradient(45deg, transparent 50%, #64748b 50%),
        linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 15px) calc(50% - 3px);
    background-size: 7px 7px, 7px 7px;
    background-repeat: no-repeat;
}

.field-group textarea {
    resize: vertical;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.stacked-actions {
    display: grid;
    gap: 0.75rem;
}

.sidebar-list {
    margin: 0;
    padding-left: 1.1rem;
    color: #475569;
}

.sidebar-list li + li {
    margin-top: 0.75rem;
}

.form-errors {
    margin-bottom: 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #fff1f2;
    color: #9f1239;
}

.form-errors ul {
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
}

.auth-divider {
    position: relative;
    margin: 1.25rem 0;
    text-align: center;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    position: relative;
    padding: 0 0.8rem;
    background: #ffffff;
    color: #64748b;
    font-weight: 700;
}

.passkey-list {
    display: grid;
    gap: 0.75rem;
}

.page-settings-list {
    display: grid;
    gap: 1rem;
}

.page-setting-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.page-setting-card p {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
}

.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: #334155;
}

.toggle-switch input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
}

.settings-actions {
    margin-top: 1.5rem;
}

.passkey-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f8fafc;
}

.passkey-card p {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
}

.admin-table {
    overflow: hidden;
}

.admin-table__head,
.admin-table__row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 150px 150px 180px 180px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
}

.admin-table__head {
    background: #f8fafc;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-table__row + .admin-table__row {
    border-top: 1px solid #e5e7eb;
}

.admin-table__row {
    transition: background-color 0.15s ease;
}

.admin-table__row:hover {
    background: #f8fafc;
}

.admin-table__row p {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
}

.admin-table__row strong {
    display: block;
    margin-bottom: 0.15rem;
}

.admin-table__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.admin-action-form {
    margin: 0;
}


.admin-shell .admin-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 140px;
    min-height: 48px;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.admin-shell .admin-cta-btn__icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
}

.admin-shell .admin-cta-btn__icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

.admin-shell .admin-cta-btn--create {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24);
}

.admin-shell .admin-cta-btn--create:hover {
    background: #1e4fd6;
    border-color: #1e4fd6;
    color: #ffffff;
}

.admin-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-icon-btn:hover,
.admin-icon-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
}

.admin-icon-btn__icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
}

.admin-icon-btn__icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.admin-icon-btn::after {
    content: attr(data-label);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    pointer-events: none;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.admin-icon-btn:hover::after,
.admin-icon-btn:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.admin-icon-btn--edit {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #ffffff;
}

.admin-icon-btn--edit:hover,
.admin-icon-btn--edit:focus-visible {
    background: #d97706;
    border-color: #d97706;
    color: #ffffff;
}

.admin-icon-btn--view {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.admin-icon-btn--view:hover,
.admin-icon-btn--view:focus-visible {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.admin-icon-btn--approve {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
}

.admin-icon-btn--approve:hover,
.admin-icon-btn--approve:focus-visible {
    background: #15803d;
    border-color: #15803d;
    color: #ffffff;
}

.admin-icon-btn--reset {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #ffffff;
}

.admin-icon-btn--reset:hover,
.admin-icon-btn--reset:focus-visible {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

.admin-icon-btn--delete {
    background: #e11d48;
    border-color: #e11d48;
    color: #ffffff;
}

.admin-icon-btn--delete:hover,
.admin-icon-btn--delete:focus-visible {
    background: #be123c;
    border-color: #be123c;
    color: #ffffff;
}

.editor-toolbar {
    gap: 0.9rem;
}

.editor-toolbar .btn-secondary,
.editor-toolbar .editor-tool-btn {
    min-width: 170px;
}

.editor-tool-btn {
    border-radius: 10px;
    font-weight: 700;
}

.admin-flow-btn {
    min-height: 44px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.1;
}

.admin-flow-btn--draft {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.admin-flow-btn--draft:hover,
.admin-flow-btn--draft:focus-visible {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.admin-flow-btn--review {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.admin-flow-btn--review:hover,
.admin-flow-btn--review:focus-visible {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.admin-flow-btn--publish {
    background: #059669;
    border-color: #059669;
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.24);
}

.admin-flow-btn--publish:hover,
.admin-flow-btn--publish:focus-visible {
    background: #047857;
    border-color: #047857;
}

.editor-ghost-btn {
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    padding: 0.38rem 0.72rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.editor-ghost-btn:hover,
.editor-ghost-btn:focus-visible {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.editor-ghost-btn--danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.editor-ghost-btn--danger:hover,
.editor-ghost-btn--danger:focus-visible {
    background: #ffe4e6;
    border-color: #fda4af;
    color: #9f1239;
}

.admin-table__actions {
    align-items: center;
}

.admin-table__head--users,
.admin-table__row--users {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(220px, 1.2fr) 140px 140px 170px;
}

.admin-table__row--users .admin-table__actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.comments-list--moderation .comment-item {
    border-radius: 14px;
}

.comment-moderation-form {
    margin-top: 0.7rem;
}



.admin-delete-form {
    margin: 0;
}

.notifications-shell {
    gap: 1.25rem;
}

.notifications-list {
    display: grid;
    gap: 0.85rem;
}

.notification-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.notification-item--unread {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.notification-item__body h3 {
    margin: 0 0 0.3rem;
    font-size: 1.02rem;
}

.notification-item__body p {
    margin: 0;
}

.notification-item__body small {
    display: inline-block;
    margin-top: 0.45rem;
    color: #64748b;
    font-weight: 600;
}

.notification-item__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
    max-width: 100%;
}

.notification-item__actions > a,
.notification-item__actions > form {
    flex: 1 1 132px;
    min-width: 0;
    max-width: 180px;
}

.section-heading > form,
.notification-item__actions form {
    margin: 0;
}

.notification-item__actions form {
    display: flex;
}

.notification-item__actions .btn-primary,
.notification-item__actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 0 0.95rem;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
}

.notification-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 0 0.95rem;
    white-space: nowrap;
    line-height: 1;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

.notification-action--primary {
    box-shadow: none;
}

.notification-action--bulk {
    min-width: 224px;
}

.notification-action--secondary {
    background-color: #f8fafc;
    color: #475569;
    border-color: #cbd5e1;
}

.notification-action--secondary:hover {
    background-color: #eef2f7;
    color: #1f2937;
    border-color: #94a3b8;
}

@media (max-width: 640px) {
    .notification-item__actions {
        justify-content: stretch;
    }

    .notification-item__actions > a,
    .notification-item__actions > form {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.audit-filters {
    padding: 1rem 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.audit-filters__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.audit-filters__actions .btn-primary,
.audit-filters__actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 156px;
    min-height: 48px;
    padding: 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.section-heading > form .btn-primary,
.section-heading > form .btn-secondary {
    min-height: 48px;
    font-size: 1rem;
}

.audit-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.audit-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.audit-table th,
.audit-table td {
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
}

.audit-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.audit-table pre {
    margin: 0.4rem 0 0;
    padding: 0.7rem;
    border-radius: 10px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.78rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.status-badge {
    display: inline-flex;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-badge--draft {
    background: #fff7ed;
    color: #c2410c;
}

.status-badge--published {
    background: #ecfdf3;
    color: #15803d;
}

.status-badge--in_review {
    background: #eff6ff;
    color: #1d4ed8;
}

.status-badge--suspended {
    background: #fff1f2;
    color: #be123c;
}

@media (max-width: 960px) {
    .section-heading,
    .editor-layout,
    .settings-grid,
    .editor-block__header {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: start;
    }

    .admin-table__head {
        display: none;
    }

    .admin-table__row {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .notification-item {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .audit-filters__actions {
        width: 100%;
    }

    .audit-filters__actions .btn-primary,
    .audit-filters__actions .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .admin-shell .blog-shell {
        gap: 1.1rem;
    }

    .admin-table__actions {
        width: 100%;
    }

    .admin-table__actions .admin-icon-btn,
    .admin-table__actions .admin-delete-form {
        flex: 0 0 auto;
    }

    .admin-table__actions .admin-icon-btn {
        width: 46px;
    }

    .section-heading--admin-blog {
        align-items: stretch;
    }

    .section-heading--admin-blog .admin-cta-btn {
        width: 100%;
        max-width: 240px;
    }

    .site-header,
    .blog-shell,
    .flash-banner {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .site-header {
        position: sticky;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .site-nav {
        display: flex;
        position: absolute;
        top: calc(100% + 8px);
        left: 1rem;
        right: 1rem;
        max-height: min(72vh, 520px);
        overflow-y: auto;
        overflow-x: hidden;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.95rem;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px) scale(0.98);
        transform-origin: top right;
        transition: opacity 0.2s ease, transform 0.22s ease, visibility 0.22s ease;
    }

    .site-nav--open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .site-nav a,
    .nav-button {
        width: 100%;
        text-align: left;
        padding: 0.65rem 0.2rem;
        color: #334155;
    }

    .site-nav a:hover,
    .site-nav a:focus-visible,
    .nav-button:hover,
    .nav-button:focus-visible {
        color: #0f172a;
    }

    .site-header:hover .site-nav a,
    .site-header:hover .nav-button {
        color: #334155;
    }

    .site-header:hover .site-nav a:hover,
    .site-header:hover .nav-button:hover {
        color: #0f172a;
    }

    .nav-utility-group {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        padding-left: 0;
    }

    .nav-utility-group .nav-notification-link {
        display: none;
    }

    .mobile-header-actions {
        display: inline-flex;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .page-setting-card {
        flex-direction: column;
        align-items: start;
    }

    .blog-hero,
    .admin-shell,
    .article-page,
    .blog-listing,
    .auth-shell {
        padding: 3rem 0;
    }

    .hero,
    .page-content,
    .tech {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .site-main,
    .site-footer,
    .blog-shell,
    .page-content,
    .admin-shell,
    .article-page,
    .blog-listing,
    .auth-shell,
    .notifications-list,
    .notification-item {
        max-width: 100%;
        overflow-x: clip;
        box-sizing: border-box;
    }

    .blog-hero h1,
    .article-header h1,
    .editor-panel h1,
    .section-heading h1,
    .hero h1,
    h1 {
        font-size: 2.2rem;
    }
}
