.public-page,
.auth-page,
.dashboard-page {
    min-height: 100vh;
    background: #f6f8fb;
    color: #0f172a;
}

.public-hero,
.dashboard-container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.public-hero {
    padding: clamp(42px, 7vw, 96px) 0 72px;
}

.public-nav,
.dashboard-nav {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.public-brand,
.auth-brand {
    color: #0f172a;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.public-nav-actions,
.dashboard-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.public-hero-content {
    min-height: calc(100vh - 220px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 48px;
    align-items: center;
}

.public-hero-text {
    max-width: 760px;
}

.public-eyebrow {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 0.82rem;
    font-weight: 700;
}

.public-hero-text h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.public-hero-text p {
    max-width: 640px;
    margin: 0;
    color: #475569;
    font-size: 1.16rem;
    line-height: 1.65;
}

.public-hero-link {
    display: inline-flex;
    margin-top: 10px;
    color: #0d6efd;
    font-weight: 650;
    text-decoration: none;
}

.public-hero-link:hover {
    text-decoration: underline;
}

.public-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 12px;
}

.public-small-note {
    font-size: 0.92rem !important;
    color: #64748b !important;
}

.public-hero-card,
.auth-card,
.dashboard-project-card,
.dashboard-empty {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.public-hero-card {
    padding: 32px;
}

.public-hero-card h2 {
    margin: 0 0 16px;
    font-size: 1.25rem;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.public-hero-card ul {
    margin: 0;
    padding-left: 20px;
    color: #475569;
}

.public-hero-card li {
    line-height: 1.5;
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: min(100%, 430px);
    padding: 28px;
}

.auth-card h1 {
    margin: 22px 0 8px;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.auth-subtitle {
    margin-bottom: 22px;
    color: #64748b;
}

.auth-link,
.auth-footer a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover,
.auth-footer a:hover {
    text-decoration: underline;
}

.auth-footer {
    margin-top: 20px;
    color: #64748b;
    text-align: center;
}

.dashboard-page {
    padding-bottom: 56px;
}

.dashboard-user {
    color: #475569;
    font-size: 0.92rem;
}

.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 34px 0 24px;
}

.dashboard-header h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 850;
    letter-spacing: -0.06em;
}

.dashboard-header p {
    margin: 8px 0 0;
    color: #64748b;
}

.dashboard-new-project-form {
    display: flex;
    gap: 10px;
    min-width: min(100%, 460px);
}

.dashboard-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.dashboard-project-card,
.dashboard-empty {
    padding: 22px;
}

.dashboard-project-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-project-card h2,
.dashboard-empty h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 800;
}

.dashboard-project-card p,
.dashboard-empty p {
    margin: 0;
    color: #64748b;
}

@media (max-width: 767.98px) {
    .public-nav,
    .dashboard-nav,
    .dashboard-header,
    .dashboard-project-card {
        align-items: stretch;
        flex-direction: column;
    }

    .public-nav-actions,
    .dashboard-nav-actions,
    .dashboard-new-project-form {
        width: 100%;
    }

    .public-nav-actions .btn,
    .dashboard-new-project-form .btn {
        flex: 1;
    }

    .public-hero-content {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 34px;
    }

    .dashboard-new-project-form {
        flex-direction: column;
    }
}

.site-navbar {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0;
    gap: 16px;
}

.site-brand {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.site-brand:hover {
    color: #0d6efd;
}

.site-navbar-collapse {
    justify-content: flex-end;
}

.site-navbar-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.site-navbar-link {
    color: #475569;
    font-size: 0.92rem;
    font-weight: 650;
    text-decoration: none;
}

.site-navbar-link:hover {
    color: #0d6efd;
}

.site-navbar-form {
    margin: 0;
}

.site-navbar-cta {
    min-width: 82px;
    border-color: #f97316;
    background: #f97316;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

.site-navbar-cta:hover,
.site-navbar-cta:focus {
    border-color: #ea580c;
    background: #ea580c;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.34);
}

.site-navbar-cta:active {
    border-color: #c2410c !important;
    background: #c2410c !important;
    color: #ffffff !important;
}

.site-navbar-toggler {
    padding: 7px 12px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 750;
}

.site-navbar-toggler:focus {
    box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.18);
}

.site-navbar-toggler-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 767.98px) {
    .site-navbar {
        align-items: center;
    }

    .site-navbar-collapse {
        width: 100%;
        margin-top: 14px;
    }

    .site-navbar-links {
        align-items: stretch;
        flex-direction: column;
        padding: 14px;
        border: 1px solid rgba(15, 23, 42, 0.1);
        border-radius: 20px;
        background: #ffffff;
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    }

    .site-navbar-link {
        padding: 8px 2px;
    }

    .site-navbar-links .btn,
    .site-navbar-form,
    .site-navbar-form button {
        width: 100%;
    }

    .site-navbar-cta {
        min-width: 0;
    }
}

.site-footer {
    background: #f6f8fb;
    color: #64748b;
}

.site-footer-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 0.92rem;
}

.site-footer-inner strong {
    display: block;
    color: #0f172a;
    font-weight: 800;
}

.site-footer-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-footer-links a {
    color: #64748b;
    text-decoration: none;
}

.site-footer-links a:hover {
    color: #0d6efd;
}

@media (max-width: 767.98px) {
    .site-footer-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .site-footer-links {
        align-items: stretch;
        flex-direction: column;
    }
}
/* Dashboard project management. */
.dashboard-project-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
}

.dashboard-project-main {
    min-width: 0;
}

.dashboard-project-main h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-project-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-project-actions form {
    margin: 0;
}

.dashboard-project-actions .btn {
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .dashboard-project-card {
        grid-template-columns: 1fr;
    }

    .dashboard-project-actions {
        justify-content: stretch;
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .dashboard-project-actions .btn,
    .dashboard-project-actions form,
    .dashboard-project-actions form button {
        width: 100%;
    }
}

/* Dashboard laptop readability fix. */
@media (min-width: 768px) and (max-width: 1399.98px) {
    .dashboard-project-grid {
        grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    }

    .dashboard-project-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dashboard-project-main h2 {
        overflow: visible;
        text-overflow: initial;
        white-space: normal;
        line-height: 1.2;
    }

    .dashboard-project-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .dashboard-project-actions .btn,
    .dashboard-project-actions form button {
        min-width: 92px;
    }
}
/* Account dropdown and account page. */
.site-account-dropdown {
    position: relative;
}

.site-account-button {
    font-weight: 750;
}

.site-account-menu {
    min-width: 220px;
    padding: 8px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.site-account-menu .dropdown-item {
    border-radius: 10px;
    color: #334155;
    font-weight: 650;
}

.site-account-menu .dropdown-item:hover,
.site-account-menu .dropdown-item:focus {
    background: #eff6ff;
    color: #0d6efd;
}

.site-account-logout {
    width: 100%;
    text-align: left;
}

.account-page {
    min-height: 100vh;
    background: #f6f8fb;
    color: #0f172a;
}

.account-container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0 64px;
}

.account-header {
    margin-bottom: 24px;
    padding: 32px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.account-eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: #0d6efd;
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-header h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.06em;
}

.account-header p {
    max-width: 680px;
    margin: 0;
    color: #64748b;
    font-size: 1.04rem;
}

.account-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
}

.account-card {
    padding: 26px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.account-card h2 {
    margin: 0 0 14px;
    font-size: 1.22rem;
    font-weight: 850;
    letter-spacing: -0.035em;
}

.account-card-lead {
    margin: 0 0 18px;
    color: #64748b;
}

.account-details {
    display: grid;
    gap: 12px;
    margin: 0;
}

.account-details div {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.account-details div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.account-details dt {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.account-details dd {
    margin: 3px 0 0;
    color: #0f172a;
    font-weight: 800;
    word-break: break-word;
}

.account-status {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.account-status-success {
    background: #dcfce7;
    color: #166534;
}

.account-status-warning {
    background: #fff7ed;
    color: #9a3412;
}

.account-form {
    display: grid;
    gap: 16px;
}

@media (max-width: 767.98px) {
    .account-container {
        padding-top: 24px;
    }

    .account-header,
    .account-card {
        padding: 22px;
    }

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

    .site-account-dropdown,
    .site-account-button {
        width: 100%;
    }

    .site-account-menu {
        width: 100%;
    }
}

/* Manual user interface themes.
   Values are assigned only manually in the database. */

body.theme-default {
}

body.theme-hearts {
}
