* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 36px 20px 56px;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

[x-cloak] {
    display: none !important;
}

.page-container {
    width: 100%;
    max-width: 880px;
}

.narrow-page {
    max-width: 720px;
}

.wide-page {
    max-width: 1040px;
}

.public-home-container {
    max-width: 1180px;
}

.public-home-body {
    color: #FFFDF8;
    background-color: #173628;
    background-image:
        linear-gradient(90deg, rgba(6, 20, 16, 0.78) 0%, rgba(10, 31, 25, 0.48) 38%, rgba(8, 23, 20, 0.22) 72%, rgba(8, 23, 20, 0.1) 100%),
        linear-gradient(180deg, rgba(6, 20, 16, 0.14) 0%, rgba(6, 20, 16, 0.46) 100%),
        url("../public-home-background.png");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.public-home-body.rotating-home-background {
    position: relative;
    overflow-x: hidden;
    background-color: #10251D;
    background-image: none;
}

.public-home-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 34%, rgba(255, 253, 248, 0.16), transparent 28%),
        linear-gradient(180deg, transparent 0%, rgba(5, 17, 14, 0.2) 100%);
}

.public-home-body.rotating-home-background::before {
    z-index: 1;
    background:
        radial-gradient(circle at 18% 34%, rgba(255, 253, 248, 0.16), transparent 28%),
        linear-gradient(90deg, rgba(5, 17, 14, 0.78) 0%, rgba(5, 17, 14, 0.5) 38%, rgba(5, 17, 14, 0.24) 72%, rgba(5, 17, 14, 0.16) 100%),
        linear-gradient(180deg, rgba(5, 17, 14, 0.08) 0%, rgba(5, 17, 14, 0.42) 100%);
}

.public-background-rotator {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: #10251D url("../public-home-background.png") center center / cover no-repeat;
}

.public-background-rotator span {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    animation-duration: 75s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    transform: scale(1.02);
    will-change: opacity;
}

.public-background-rotator span:nth-child(1) {
    background-image: url("../public-home-background.png");
    animation-name: publicBackgroundOne;
}

.public-background-rotator span:nth-child(2) {
    background-image: url("../public-home-background-2.png");
    animation-name: publicBackgroundTwo;
}

.public-background-rotator span:nth-child(3) {
    background-image: url("../public-home-background-3.png");
    animation-name: publicBackgroundThree;
}

.public-background-rotator span:nth-child(4) {
    background-image: url("../public-home-background-4.png");
    animation-name: publicBackgroundFour;
}

.public-background-rotator span:nth-child(5) {
    background-image: url("../public-home-background-5.png");
    animation-name: publicBackgroundFive;
}

@keyframes publicBackgroundOne {
    0%,
    16% {
        opacity: 1;
    }

    24%,
    92% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes publicBackgroundTwo {
    0%,
    16% {
        opacity: 0;
    }

    24%,
    36% {
        opacity: 1;
    }

    44%,
    100% {
        opacity: 0;
    }
}

@keyframes publicBackgroundThree {
    0%,
    36% {
        opacity: 0;
    }

    44%,
    56% {
        opacity: 1;
    }

    64%,
    100% {
        opacity: 0;
    }
}

@keyframes publicBackgroundFour {
    0%,
    56% {
        opacity: 0;
    }

    64%,
    76% {
        opacity: 1;
    }

    84%,
    100% {
        opacity: 0;
    }
}

@keyframes publicBackgroundFive {
    0%,
    76% {
        opacity: 0;
    }

    84%,
    92% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-background-rotator span {
        animation: none;
    }

    .public-background-rotator span:first-child {
        opacity: 1;
    }
}

.public-home-body .public-home-container {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 92px);
}

.public-home-body .public-nav {
    margin-bottom: 24px;
}

.public-home-body .public-brand .brand-wordmark {
    width: 250px;
    max-height: 42px;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.34));
}

.public-home-body .public-links a {
    color: rgba(255, 253, 248, 0.86);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
}

.public-home-body .public-links a:hover,
.public-home-body .public-links a[aria-current="page"] {
    color: #FFFDF8;
}

.public-home-body .public-links .nav-login-button {
    color: #FFFDF8;
    background: rgba(9, 20, 17, 0.26);
    border-color: rgba(255, 253, 248, 0.72);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.24);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
}

.public-home-body .public-links .nav-login-button:hover {
    color: #FFFDF8;
    background: rgba(9, 20, 17, 0.42);
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.24);
}

.public-doc-body .narrow-page {
    min-height: calc(100vh - 92px);
}

.public-doc-body .wide-page {
    min-height: calc(100vh - 92px);
}

.public-doc-body .public-nav {
    margin-bottom: 54px;
}

.public-doc-body .page-title {
    color: #FFFDF8;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.48);
}

.public-doc-body .page-subtitle {
    color: rgba(255, 253, 248, 0.9);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.48);
}

.public-doc-body .article-card,
.public-doc-body .data-card {
    background: rgba(246, 229, 204, 0.96);
    border-color: var(--border);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(7px);
}

.public-doc-body .article-card h2,
.public-doc-body .data-card h2,
.public-doc-body .field label {
    color: var(--text-bold);
    text-shadow: none;
}

.public-doc-body .article-card h2:not(:first-child) {
    margin-top: 22px;
}

.public-doc-body .article-card p,
.public-doc-body .article-card li,
.public-doc-body .data-card p {
    color: var(--text-primary);
    font-weight: 600;
    text-shadow: none;
}

.public-doc-body .article-card strong {
    color: var(--text-bold);
}

.public-doc-body .input,
.public-doc-body .textarea {
    background: var(--surface-raised);
}

.public-nav,
.public-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-bold);
}

.public-brand i {
    font-size: 24px;
}

.public-brand .brand-logo {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.public-brand .brand-wordmark {
    width: 210px;
    height: auto;
    max-height: 36px;
    object-fit: contain;
}

.public-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.public-links a,
.public-links button,
.footer-links a {
    color: var(--text-muted);
    background: transparent;
    border: 0;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.public-links a:hover,
.public-links button:hover,
.footer-links a:hover {
    color: var(--text-bold);
}

.public-links .nav-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--control-md);
    padding: 0 14px;
    color: var(--text-bold);
    background: var(--card-bg);
    border: var(--line-outer) solid var(--border);
    border-radius: var(--radius-control);
    box-shadow: 2px 2px 0 var(--shadow-offset);
}

.public-links .nav-login-button:hover {
    color: var(--text-bold);
    background: var(--surface-soft);
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--shadow-offset);
}

.page-title {
    font-size: 2.55rem;
    line-height: 1.05;
    color: var(--text-bold);
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.page-subtitle {
    max-width: 620px;
    margin: 0 auto 32px;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
    line-height: 1.55;
}

.hero-card,
.panel-card,
.article-card,
.data-card {
    background: var(--card-bg);
    border: var(--line-outer) solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 24px;
}

.data-card .list-row,
.article-card .mini-card,
.panel-card .mini-card {
    background: var(--surface-raised);
}

.hero-card {
    padding: 28px;
}

.public-hero {
    margin: 46px 0 34px;
    text-align: center;
}

.public-hero .grid-2 {
    max-width: 520px;
    margin: 0 auto;
}

.public-home-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 690px);
    align-items: center;
    gap: 0;
    min-height: 500px;
    margin: 24px 0 48px;
    padding: 38px 8px 34px 0;
    text-align: left;
}

.public-home-hero::before {
    content: none;
}

.public-hero-copy {
    position: relative;
    z-index: 1;
    padding: 0 0 28px;
}

.public-home-hero .page-title {
    max-width: 720px;
    margin: 0 0 16px;
    text-align: left;
    font-size: 4.2rem;
    line-height: 1;
    color: #FFFDF8;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.48);
}

.public-home-hero .page-subtitle {
    max-width: 650px;
    margin: 0 0 30px;
    color: rgba(255, 253, 248, 0.94);
    text-align: left;
    font-size: 1.35rem;
    line-height: 1.45;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.public-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.public-hero-actions .btn {
    min-width: 196px;
    min-height: var(--control-lg);
}

.public-hero-actions .btn i {
    font-size: var(--icon-lg);
    line-height: 1;
}

.public-hero-preview {
    position: relative;
    z-index: 1;
    align-self: start;
    min-height: 348px;
    overflow: hidden;
    background: var(--card-bg);
    border: var(--line-outer) solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.public-home-container > .grid-3 {
    position: relative;
    z-index: 2;
}

.public-home-body .how-it-works {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 28px;
    align-items: start;
    padding: 28px;
    margin-bottom: 34px;
    border: var(--line-outer) solid rgba(255, 253, 248, 0.58);
    border-radius: 16px;
    background: rgba(15, 31, 25, 0.34);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px) saturate(1.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.public-home-body .how-heading .section-label {
    color: rgba(255, 253, 248, 0.74);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

.public-home-body .how-heading h2 {
    max-width: 390px;
    color: #FFFDF8;
    font-size: 2rem;
    line-height: 1.08;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.42);
}

.how-tagline {
    max-width: 390px;
    margin-top: 18px;
    color: rgba(255, 253, 248, 0.92);
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.public-home-body .how-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.public-home-body .how-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    min-height: 132px;
    padding: 16px;
    border: var(--line-inner) solid rgba(255, 253, 248, 0.28);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.16);
}

.public-home-body .how-step-number {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: var(--line-inner) solid var(--border);
    border-radius: 999px;
    background: rgba(201, 242, 74, 0.92);
    color: var(--text-bold);
    font-weight: 800;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.24);
}

.public-home-body .how-step h3 {
    color: #FFFDF8;
    font-size: 1.1rem;
    line-height: 1.1;
    margin-bottom: 7px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

.public-home-body .how-step p {
    color: rgba(255, 253, 248, 0.86);
    font-weight: 600;
    line-height: 1.45;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.preview-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 0 22px;
    border-bottom: var(--line-inner) solid var(--border-soft);
}

.preview-dot {
    width: 10px;
    height: 10px;
    border: var(--line-inner) solid var(--border);
    border-radius: 999px;
    background: var(--lime);
}

.preview-mode {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    color: var(--text-bold);
    font-size: 0.9rem;
    font-weight: 800;
}

.preview-editor {
    min-height: 212px;
    padding: 26px 28px 20px;
}

.preview-editor p {
    max-width: 340px;
    color: var(--text-bold);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.5;
}

.preview-writing-lines {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.preview-writing-lines span {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: rgba(52, 57, 42, 0.16);
}

.preview-writing-lines span:nth-child(1) {
    width: 92%;
}

.preview-writing-lines span:nth-child(2) {
    width: 78%;
}

.preview-writing-lines span:nth-child(3) {
    width: 64%;
}

.preview-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: var(--line-inner) solid var(--border-soft);
}

.preview-footer span {
    display: grid;
    align-content: center;
    min-height: 76px;
    padding: 14px 16px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.preview-footer span + span {
    border-left: var(--line-inner) solid var(--border-soft);
}

.preview-footer strong {
    color: var(--text-bold);
    font-size: 1.55rem;
    line-height: 1;
}

.preview-footer i {
    font-size: 20px;
}

.auth-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 24px 16px;
    background: rgba(52, 57, 42, 0.36);
    backdrop-filter: blur(5px);
}

.auth-modal-card {
    position: relative;
    width: min(100%, 430px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: var(--card-bg);
    border: var(--line-outer) solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    padding: 24px;
}

.auth-modal-card-center {
    text-align: center;
}

.auth-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: var(--control-md);
    height: var(--control-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: var(--line-outer) solid var(--border);
    border-radius: var(--radius-control);
    color: var(--text-bold);
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--shadow-offset);
}

.auth-close-btn i {
    font-size: var(--icon-md);
}

.auth-modal-title {
    max-width: calc(100% - 52px);
    color: var(--text-bold);
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
}

.auth-modal-copy {
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 20px;
}

.auth-provider-btn,
.auth-submit {
    width: 100%;
    min-height: var(--control-lg);
}

.auth-google-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.auth-divider {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: var(--line-inner) solid var(--border-soft);
}

.auth-divider span {
    position: relative;
    padding: 0 10px;
    background: var(--card-bg);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.field span:first-child {
    color: var(--text-bold);
    font-size: 0.88rem;
    font-weight: 800;
}

.password-field {
    position: relative;
    display: block;
}

.password-field .input {
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: var(--control-sm);
    height: var(--control-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
}

.password-toggle i {
    font-size: var(--icon-md);
}

.auth-text-btn {
    justify-self: end;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}

.auth-switch {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    text-align: center;
    margin-top: 20px;
}

.auth-switch button {
    background: transparent;
    border: 0;
    color: var(--text-bold);
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}

.auth-status {
    border: var(--line-inner) solid var(--border);
    border-radius: var(--radius-control);
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 16px;
}

.auth-error {
    background: #FFF0EC;
    color: var(--red);
}

.auth-success {
    background: #EFFAD4;
    color: var(--text-bold);
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

.auth-check input {
    margin-top: 3px;
}

.auth-check a {
    color: var(--text-bold);
    font-weight: 800;
}

.strength-meter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: -6px;
}

.strength-meter span {
    height: 7px;
    border: var(--line-inner) solid var(--border-soft);
    border-radius: 999px;
    background: #E9E4DA;
}

.strength-meter span.active {
    background: var(--lime);
    border-color: var(--border);
}

.strength-label {
    min-height: 16px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    margin-top: -8px;
}

.auth-large-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--lime);
    border: var(--line-outer) solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: 3px 3px 0 var(--lime-shadow);
    color: var(--text-bold);
    font-size: 30px;
    margin-bottom: 20px;
}

.section-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.article-card h2,
.panel-card h2,
.data-card h2 {
    color: var(--text-bold);
    font-size: 1.35rem;
    line-height: 1.15;
    margin-bottom: 12px;
}

.article-card h3 {
    color: var(--text-bold);
    font-size: 1.05rem;
    margin: 18px 0 8px;
}

.article-card p,
.article-card li,
.panel-card p,
.data-card p {
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.65;
}

.article-card p + p {
    margin-top: 12px;
}

.article-card ul,
.article-card ol {
    padding-left: 22px;
    margin: 10px 0;
}

.grid-2,
.grid-3 {
    display: grid;
    gap: 16px;
}

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

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card,
.list-row {
    background: var(--surface-raised);
    border: var(--line-inner) solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.list-stack {
    display: grid;
    gap: 14px;
}

.action-row,
.source-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.row-between {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.muted {
    color: var(--text-muted);
    font-weight: 500;
}

.body-copy {
    font-family: "Libre Baskerville", Georgia, serif;
    color: var(--text-writing);
    line-height: 1.75;
    font-weight: 400;
}

.search-row,
.form-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 16px;
}

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

.field {
    display: grid;
    gap: 6px;
}

.field label {
    color: var(--text-bold);
    font-size: 0.88rem;
    font-weight: 800;
}

.input,
.textarea,
.select {
    min-height: var(--control-md);
    width: 100%;
    border: var(--line-outer) solid var(--border);
    border-radius: var(--radius-control);
    background: var(--surface-raised);
    color: var(--text-primary);
    padding: 0 12px;
    font-weight: 700;
    box-shadow: 3px 3px 0 var(--shadow-offset);
}

.textarea {
    min-height: 132px;
    padding: 12px 14px;
    resize: vertical;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--control-md);
    padding: 0 14px;
    border: var(--line-outer) solid var(--border);
    border-radius: var(--radius-control);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--shadow-offset);
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--shadow-offset);
}

.btn-primary {
    background: var(--lime);
    color: var(--text-bold);
    box-shadow: 3px 3px 0 var(--lime-shadow);
}

.btn-primary:hover {
    background: var(--lime-hover);
    box-shadow: 1px 1px 0 var(--lime-shadow);
}

.btn-danger {
    border-color: var(--red);
    color: var(--red);
    box-shadow: 3px 3px 0 var(--red-shadow);
}

.btn-danger:hover {
    box-shadow: 1px 1px 0 var(--red-shadow);
}

.delete-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(37, 41, 31, 0.38);
    backdrop-filter: blur(4px);
}

.delete-modal-overlay[hidden] {
    display: none;
}

.delete-modal-card {
    width: min(100%, 520px);
    background: var(--card-bg);
    border: var(--line-outer) solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: 5px 5px 0 var(--shadow-offset);
    padding: 24px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: var(--control-md);
    height: var(--control-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: var(--line-outer) solid var(--border);
    border-radius: var(--radius-control);
    background: var(--card-bg);
    color: var(--text-bold);
    box-shadow: 2px 2px 0 var(--shadow-offset);
    cursor: pointer;
}

.delete-modal-title {
    color: var(--text-bold);
    font-size: 1.7rem;
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 10px;
    padding-right: 50px;
}

.delete-modal-copy {
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 16px;
}

.delete-warning-box {
    border: var(--line-inner) solid var(--border);
    border-radius: var(--radius-control);
    background: #F7D7CF;
    color: var(--text-bold);
    padding: 12px 14px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 18px;
}

.delete-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.delete-modal-card .btn-danger {
    border-color: var(--border);
    background: var(--red);
    color: #FFFDF8;
    box-shadow: 3px 3px 0 var(--red-shadow);
}

.delete-modal-card .btn-danger:hover {
    box-shadow: 1px 1px 0 var(--red-shadow);
}

.btn-small {
    min-height: var(--control-sm);
    padding: 0 10px;
    font-size: 0.84rem;
    box-shadow: 2px 2px 0 var(--shadow-offset);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    border: var(--line-inner) solid var(--border);
    border-radius: 999px;
    padding: 0 10px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-bold);
    background: var(--lime);
    white-space: nowrap;
}

.pill-muted {
    background: #E9E4DA;
}

.pill-red {
    background: #F7D7CF;
    color: var(--red);
}

.stat-number {
    color: var(--text-bold);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.stat-caption {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    margin-top: 6px;
    text-transform: uppercase;
}

.public-footer {
    align-items: flex-start;
    border-top: var(--line-inner) solid var(--border-soft);
    color: var(--text-muted);
    margin: 34px 0 0;
    padding-top: 18px;
}

.public-home-body .public-footer {
    border-top-color: rgba(255, 253, 248, 0.42);
    color: rgba(255, 253, 248, 0.78);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.34);
}

.public-home-body .footer-links a {
    color: rgba(255, 253, 248, 0.78);
}

.public-home-body .footer-links a:hover {
    color: #FFFDF8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

@media (max-width: 760px) {
    body {
        padding: 24px 16px 42px;
    }

    .public-home-body {
        background-attachment: scroll;
        background-position: 58% center;
    }

    .public-background-rotator span {
        background-position: 58% center;
    }

    .public-home-body .public-brand .brand-wordmark {
        width: 218px;
        max-width: 72vw;
    }

    .public-doc-body .public-nav {
        margin-bottom: 36px;
    }

    .public-nav,
    .public-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-title {
        font-size: 2.05rem;
    }

    .public-home-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: 0;
        margin: 52px 0 36px;
        padding: 34px 0 24px;
    }

    .public-home-hero::before {
        top: 42px;
        right: -90px;
        width: 430px;
        height: 430px;
        opacity: 0.08;
    }

    .public-hero-copy {
        padding: 0;
    }

    .public-home-hero .page-title {
        font-size: 2.65rem;
    }

    .public-home-hero .page-subtitle {
        font-size: 1.08rem;
    }

    .hero-card,
    .panel-card,
    .article-card,
    .data-card {
        padding: 20px;
    }

    .public-home-body .how-it-works {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .public-home-body .how-heading h2 {
        font-size: 1.65rem;
    }

    .public-home-body .how-steps {
        grid-template-columns: 1fr;
    }

    .public-hero-preview {
        min-height: 0;
        border-radius: var(--radius-card);
    }

    .preview-editor {
        min-height: 190px;
        padding: 22px 20px 18px;
    }

    .preview-editor p {
        font-size: 1.08rem;
    }

    .preview-footer {
        grid-template-columns: 1fr;
    }

    .preview-footer span + span {
        border-top: var(--line-inner) solid var(--border-soft);
        border-left: 0;
    }

    .grid-2,
    .grid-3,
    .search-row,
    .form-row,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .row-between {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 430px) {
    body {
        padding: 20px 12px 36px;
    }

    .public-home-body {
        background-position: 55% center;
    }

    .public-background-rotator span {
        background-position: 55% center;
    }

    .public-home-body .public-brand .brand-wordmark {
        width: 190px;
    }

    .public-home-hero {
        margin-top: 38px;
    }

    .public-home-hero .page-title {
        font-size: 2.28rem;
    }

    .public-home-hero .page-subtitle {
        font-size: 1rem;
    }

    .public-home-body .how-step {
        grid-template-columns: 1fr;
    }

    .public-home-body .how-step-number {
        width: 34px;
        height: 34px;
    }

    .auth-modal-card {
        padding: 22px;
    }
}
