:root {
    --week-col-width: 100px;
    --project-min-width: 220px;
    --week-project-gap: 10px;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

.site-footer {
    padding: 18px 0 28px;
}

.site-footer-inner {
    width: 80vw;
    margin: 0 auto;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    text-align: center;
}

.site-footer-link {
    color: #365f94;
    text-decoration: none;
    font-weight: 600;
}

.site-footer-link:hover {
    text-decoration: underline;
}

a {
    color: #1d4ed8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page {
    width: 80vw;
    margin: 0 auto;
    padding: 20px 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.topbar h1 {
    margin: 0;
    font-size: 28px;
}

.nav-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-block;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #dbe3f0;
    border-radius: 10px;
}

.nav-link:hover {
    text-decoration: underline;
}

.nav-link-active {
    background: linear-gradient(180deg, #eef6ff 0%, #e2efff 100%);
    border-color: #9fc0e8;
    color: #163a63;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.12);
    text-decoration: none;
}

.nav-link-active:hover {
    text-decoration: none;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 8px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}

.nav-badge-alert {
    background: #fee2e2;
    color: #b91c1c;
}

.card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 252, 0.98));
    border: 1px solid #d7e0ea;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.dashboard-return-banner {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e3a8a;
    font-size: 14px;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.08);
}

.dashboard-return-banner strong {
    font-weight: 700;
}

.dashboard-onboarding {
    display: flex;
    justify-content: center;
}

.dashboard-onboarding-card {
    width: min(760px, 100%);
    padding: 28px;
    border: 1px solid #d7e0ea;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.42), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(241, 245, 249, 0.99));
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.dashboard-onboarding-eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2563eb;
}

.dashboard-onboarding-card h2 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.1;
    color: #0f172a;
}

.dashboard-onboarding-card p {
    margin: 0;
    max-width: 58ch;
    color: #475569;
    line-height: 1.6;
}

.dashboard-onboarding-form {
    margin-top: 22px;
    display: grid;
    gap: 14px;
}

.dashboard-onboarding-input {
    max-width: 520px;
}

.dashboard-onboarding-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-onboarding-suggestion {
    border-radius: 999px;
}

.dashboard-onboarding-submit {
    justify-self: start;
}

.project-card {
    background: #ffffff;
    border: 1px solid #dbe3f0;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    padding: 18px;
    margin-bottom: 16px;
}

.project-card h1 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.project-description {
    color: #4b5563;
    line-height: 1.45;
    white-space: pre-wrap;
    margin-top: 10px;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.button {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.14s ease, box-shadow 0.14s ease;
}

.button:hover {
    text-decoration: none;
}

.button-small {
    padding: 8px 12px;
    font-size: 13px;
}

.button-primary {
    background: #2563eb;
    color: #fff;
}

.button-secondary {
    background: #e5e7eb;
    color: #111827;
}

.button-danger {
    background: #b91c1c;
    color: #fff;
}

.button-success {
    background: #15803d;
    color: #fff;
}

.dashboard-wrap {
    overflow-y: auto;
    overflow-x: auto;
    max-height: calc(100vh - 140px);
    padding: 12px;
    background:
        radial-gradient(circle at top left, rgba(191, 219, 254, 0.3), transparent 24%),
        linear-gradient(180deg, #eef3f8 0%, #e4ebf3 100%);
    scroll-behavior: smooth;
}

.project-grid-wrap {
    max-height: calc(100vh - 240px);
}

.dashboard-table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.dashboard-table-multi {
    width: 100%;
    min-width: max-content;
}

.dashboard-table-single {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
}

.week-col-track {
    width: var(--week-col-width);
    min-width: var(--week-col-width);
    max-width: var(--week-col-width);
}

.dashboard-table th,
.dashboard-table td {
    border-right: 0;
    border-bottom: 0;
    padding: 0;
    vertical-align: top;
    background: transparent;
}

.dashboard-table thead th {
    position: sticky;
    top: 0;
    z-index: 20;
    background: transparent;
    box-shadow: none;
    padding-bottom: 10px;
}

.dashboard-table thead th:first-child {
    z-index: 30;
}

.week-col {
    position: sticky;
    left: 0;
    z-index: 10;
    width: var(--week-col-width);
    min-width: var(--week-col-width);
    max-width: var(--week-col-width);
    background: transparent !important;
    border-left: 0;
    box-shadow: none;
    padding-right: 0 !important;
}

.dashboard-table-single .week-col {
    padding-right: 0 !important;
}

.project-col,
.cell {
    width: auto;
    min-width: var(--project-min-width);
}

.project-col-single,
.cell-single {
    width: auto;
    min-width: 0;
}

.project-head {
    min-height: 88px;
    margin-right: 10px;
    margin-bottom: 2px;
    padding: 14px 16px;
    position: relative;
    z-index: 1;
    border: 1px solid #cfd9e5;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(235, 242, 249, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 8px 18px rgba(15, 23, 42, 0.05);
}

.dashboard-table thead th:last-child .project-head {
    margin-right: 0;
}

.project-name {
    font-weight: bold;
    margin-bottom: 6px;
    line-height: 1.3;
    word-break: break-word;
    letter-spacing: -0.01em;
}

.project-name a {
    color: #0f172a;
}

.project-name a:hover {
    text-decoration: none;
    color: #1d4ed8;
}

.project-name-private {
    text-transform: lowercase;
    letter-spacing: 0.06em;
    color: #475569;
}

.project-head-private {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border: 1px dashed #cbd5e1;
}

.project-privacy-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.project-privacy-mark-public {
    background: #e3f5ea;
    color: #226446;
}

.cell-private {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border-style: dashed;
    border-color: #cbd5e1;
}

.cell-private .cell-note {
    color: #475569;
    font-style: italic;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.project-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    word-break: break-word;
}

.week-side {
    width: 100%;
    box-sizing: border-box;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    margin: 0 0 10px;
    padding: 12px 10px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(230, 236, 244, 0.96));
    border: 1px solid #cfd9e5;
    border-radius: 16px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 8px 18px rgba(15, 23, 42, 0.05);
}

.dashboard-table thead th:nth-child(2) .project-head,
.dashboard-table tbody tr td:nth-child(2) > .cell {
    margin-left: var(--week-project-gap);
}

.dashboard-table tbody tr td:nth-child(2) > .cell {
    width: calc(100% - var(--week-project-gap) - 10px);
}

.dashboard-table tbody tr td:last-child:nth-child(2) > .cell {
    width: calc(100% - var(--week-project-gap));
}

.week-number {
    font-size: 21px;
    font-weight: bold;
    line-height: 1;
    letter-spacing: -0.04em;
}

.week-dates {
    font-size: 11px;
    color: #64748b;
    line-height: 1.25;
}

.week-current .week-number {
    color: #2563eb;
}

.color-dot-button {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.15);
    background: #d1d5db;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.week-lock-badge {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(248, 250, 252, 0.94);
    color: #475569;
    font-size: 11px;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
    user-select: none;
}

.color-dot-red { background: #fca5a5; }
.color-dot-orange { background: #fdba74; }
.color-dot-yellow { background: #fde047; }
.color-dot-green { background: #86efac; }
.color-dot-blue { background: #93c5fd; }
.color-dot-purple { background: #d8b4fe; }
.color-dot-gray { background: #d1d5db; }

.color-palette {
    position: absolute;
    top: 28px;
    right: 8px;
    display: none;
    background: #fff;
    border: 1px solid #d7e0ea;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    padding: 8px;
    z-index: 50;
    grid-template-columns: repeat(4, 18px);
    gap: 8px;
}

.color-palette.open {
    display: grid;
}

.color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.18);
    cursor: pointer;
    padding: 0;
}

.swatch-none {
    background:
        linear-gradient(45deg, transparent 42%, #ef4444 42%, #ef4444 58%, transparent 58%),
        #ffffff;
}

.swatch-red { background: #fca5a5; }
.swatch-orange { background: #fdba74; }
.swatch-yellow { background: #fde047; }
.swatch-green { background: #86efac; }
.swatch-blue { background: #93c5fd; }
.swatch-purple { background: #d8b4fe; }
.swatch-gray { background: #d1d5db; }

.cell {
    display: block;
    min-height: 96px;
    margin: 0 10px 10px 0;
    padding: 12px;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 243, 249, 0.98));
    border: 1px solid #d5deea;
    border-radius: 16px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 6px 14px rgba(15, 23, 42, 0.04);
}

.cell:focus-visible {
    outline: none;
}

.cell-selected,
.cell-initial-selected {
    border-color: #2563eb;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(219, 234, 254, 0.58));
    box-shadow:
        inset 0 0 0 2px rgba(37, 99, 235, 0.38),
        0 0 0 3px rgba(147, 197, 253, 0.42),
        0 12px 22px rgba(37, 99, 235, 0.14);
    transform: translateY(-1px);
}

.cell-selected::before,
.cell-initial-selected::before {
    content: "";
    position: absolute;
    inset: -4px;
    border: 3px solid rgba(37, 99, 235, 0.28);
    border-radius: 19px;
    pointer-events: none;
}

.cell-selected::after,
.cell-initial-selected::after {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(37, 99, 235, 0.34);
    border-radius: 11px;
    pointer-events: none;
}

.dashboard-table td > .cell {
    width: calc(100% - 10px);
    min-width: 0;
}

.dashboard-table tbody td:last-child > .cell {
    width: 100%;
    margin-right: 0;
}

.cell:not(.cell-selected):hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(191, 219, 254, 0.48));
    border-color: rgba(37, 99, 235, 0.65);
    box-shadow:
        inset 0 0 0 2px rgba(37, 99, 235, 0.28),
        0 14px 26px rgba(37, 99, 235, 0.16);
    transform: translateY(-2px) scale(1.01);
}

.cell:not(.cell-selected):hover::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(96, 165, 250, 0.42);
    border-radius: 10px;
    pointer-events: none;
}

.cell-locked {
    cursor: default;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.98));
    border-color: #dbe3f0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 4px 10px rgba(15, 23, 42, 0.03);
}

.cell-locked:hover {
    transform: none;
    border-color: #dbe3f0;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 4px 10px rgba(15, 23, 42, 0.03);
}

.locked-row .week-side {
    opacity: 0.82;
}

.cell-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
}

.cell-note {
    white-space: pre-wrap;
    line-height: 1.35;
    font-size: 13px;
    color: #0f172a;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.cell-status {
    position: absolute;
    right: 10px;
    bottom: 8px;
    min-width: 40px;
    text-align: right;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: transparent;
    pointer-events: none;
}

.cell-status.is-saving {
    color: #64748b;
}

.cell-status.is-saved {
    color: #15803d;
}

.cell-status.is-error {
    color: #b91c1c;
}

.cell-current {
    box-shadow:
        inset 0 0 0 2px rgba(59, 130, 246, 0.3),
        0 8px 16px rgba(37, 99, 235, 0.08);
}

.row-target td {
    box-shadow: none;
}

.row-target .cell,
.row-target .week-side {
    box-shadow:
        inset 0 0 0 2px rgba(96, 165, 250, 0.32),
        0 10px 20px rgba(59, 130, 246, 0.1);
}

.row-return-target .cell,
.row-return-target .week-side {
    box-shadow:
        inset 0 0 0 3px rgba(37, 99, 235, 0.38),
        0 14px 26px rgba(37, 99, 235, 0.16);
    animation: weekReturnPulse 1.8s ease;
}

@keyframes weekReturnPulse {
    0% {
        transform: translateY(-1px);
        box-shadow:
            inset 0 0 0 3px rgba(37, 99, 235, 0.18),
            0 0 0 rgba(37, 99, 235, 0);
    }
    35% {
        transform: translateY(-2px);
        box-shadow:
            inset 0 0 0 3px rgba(37, 99, 235, 0.45),
            0 16px 30px rgba(37, 99, 235, 0.18);
    }
    100% {
        transform: translateY(0);
        box-shadow:
            inset 0 0 0 3px rgba(37, 99, 235, 0.38),
            0 14px 26px rgba(37, 99, 235, 0.16);
    }
}

.future-row td,
.future-row .week-col {
    background: transparent !important;
}

.future-row .week-number,
.future-row .week-dates {
    color: #94a3b8;
}

.future-row .week-side {
    background:
        linear-gradient(180deg, rgba(241, 245, 249, 0.98), rgba(226, 232, 240, 0.98));
    border-style: dashed;
}

.future-cell {
    cursor: default;
    background:
        linear-gradient(180deg, rgba(241, 245, 249, 0.98), rgba(226, 232, 240, 0.98)) !important;
    border-style: dashed;
}

.future-cell:hover {
    background:
        linear-gradient(180deg, rgba(241, 245, 249, 0.98), rgba(226, 232, 240, 0.98)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 6px 14px rgba(15, 23, 42, 0.04) !important;
    transform: none;
}

.future-dash {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 20px;
    line-height: 1;
    user-select: none;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}

.modal-backdrop.open {
    display: flex;
}

.modal {
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #dbe3f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}

.modal-header {
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.modal-title {
    margin: 0 0 6px 0;
    font-size: 18px;
}

.modal-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.modal-body {
    padding: 18px;
}

.modal-textarea {
    width: 100%;
    min-height: 220px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px;
    font: inherit;
    resize: vertical;
    line-height: 1.45;
    background: #fff;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: nowrap;
}

.button-linebreak {
    min-width: 48px;
    padding: 8px 12px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: #0f172a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.hint {
    margin-top: 10px;
    font-size: 12px;
    color: #6b7280;
}

@media (max-width: 640px) {
    .modal-actions {
        justify-content: space-between;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .hint {
        display: none;
    }
}

.week-row-red td,
.week-row-red .week-col {
    background: transparent !important;
}

.week-row-orange td,
.week-row-orange .week-col {
    background: transparent !important;
}

.week-row-yellow td,
.week-row-yellow .week-col {
    background: transparent !important;
}

.week-row-green td,
.week-row-green .week-col {
    background: transparent !important;
}

.week-row-blue td,
.week-row-blue .week-col {
    background: transparent !important;
}

.week-row-purple td,
.week-row-purple .week-col {
    background: transparent !important;
}

.week-row-gray td,
.week-row-gray .week-col {
    background: transparent !important;
}

.week-row-red .cell,
.week-row-red .week-side {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(254, 226, 226, 0.98));
}

.week-row-orange .cell,
.week-row-orange .week-side {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 237, 213, 0.98));
}

.week-row-yellow .cell,
.week-row-yellow .week-side {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(254, 249, 195, 0.98));
}

.week-row-green .cell,
.week-row-green .week-side {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(220, 252, 231, 0.98));
}

.week-row-blue .cell,
.week-row-blue .week-side {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(219, 234, 254, 0.98));
}

.week-row-purple .cell,
.week-row-purple .week-side {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 232, 255, 0.98));
}

.week-row-gray .cell,
.week-row-gray .week-side {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 244, 246, 0.98));
}

.project-grid-wrap .week-row-red .cell,
.project-grid-wrap .week-row-orange .cell,
.project-grid-wrap .week-row-yellow .cell,
.project-grid-wrap .week-row-green .cell,
.project-grid-wrap .week-row-blue .cell,
.project-grid-wrap .week-row-purple .cell,
.project-grid-wrap .week-row-gray .cell {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 243, 249, 0.98));
}

@media (max-width: 900px) {
    .page {
        width: 95vw;
    }

    .site-footer-inner {
        width: 95vw;
    }

    .wall-page,
    .wall-page-compact {
        width: 95vw;
    }

    .project-col,
    .cell {
        width: 180px;
        min-width: 180px;
    }

    .project-head {
        padding-left: 14px;
    }

    .dashboard-wrap {
        padding: 8px;
    }

    .cell {
        margin-right: 8px;
        margin-bottom: 8px;
    }

    .dashboard-table td > .cell {
        width: calc(100% - 8px);
    }

    .week-col {
        padding-right: 0 !important;
    }
}

.section-card {
    background: #ffffff;
    border: 1px solid #dbe3f0;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    padding: 18px;
    margin-bottom: 16px;
}

.section-title {
    margin: 0 0 14px 0;
    font-size: 22px;
}

.project-create-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.project-create-input {
    flex: 1 1 320px;
    min-width: 240px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 320px));
    gap: 14px;
    justify-content: start;
}

.project-item {
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
    width: 320px;
    max-width: 100%;
}

.project-item-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.project-item-badges-detail {
    margin-bottom: 14px;
}

@media (max-width: 720px) {
    .project-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-item {
        width: auto;
    }

    .project-item-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-rename-form-detail {
        grid-template-columns: minmax(0, 1fr);
    }
}

.project-item-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    line-height: 1.3;
}

.project-item-title a {
    color: #111827;
    text-decoration: none;
}

.project-item-title a:hover {
    text-decoration: underline;
}

.project-item-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
    margin-bottom: 12px;
}

.project-item-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.project-item-actions .button,
.project-item-actions form .button {
    width: 100%;
    white-space: nowrap;
    padding: 8px 12px;
}

.project-item-actions > * {
    margin: 0;
}

.project-item-actions form {
    display: flex;
    margin: 0;
}

.project-item > .project-rename-form .button {
    justify-self: start;
    white-space: nowrap;
}

.empty-note {
    color: #6b7280;
    font-size: 14px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.badge-active {
    background: #dcfce7;
    color: #166534;
}

.badge-archived {
    background: #f3f4f6;
    color: #4b5563;
}

.badge-private {
    background: #e2e8f0;
    color: #334155;
    margin-left: auto;
}

.badge-public {
    background: #e3f5ea;
    color: #226446;
    margin-left: auto;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background:
        radial-gradient(circle at top left, rgba(191, 219, 254, 0.44), transparent 24%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 28px;
    border: 1px solid #d7e0ea;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 252, 0.98));
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.auth-header {
    margin-bottom: 18px;
}

.auth-eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.auth-title {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.1;
}

.auth-description {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.auth-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 14px;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-oauth-block {
    margin-bottom: 16px;
}

.auth-google-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #d7e0ea;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.auth-google-button:hover {
    background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
}

.auth-google-mark {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #db4437;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
}

.auth-dev-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #d7e0ea;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.auth-dev-button:hover {
    background: linear-gradient(180deg, #ffffff 0%, #edf3fb 100%);
}

.auth-dev-mark {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06);
}

.auth-dev-user-block {
    margin-top: 12px;
    padding: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.86);
}

.auth-dev-user-label {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.auth-dev-user-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.auth-dev-user-button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 72px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
}

.auth-dev-user-button:hover {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
    transform: translateY(-1px);
}

.auth-dev-user-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 700;
}

.auth-dev-user-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.auth-divider {
    position: relative;
    margin: 18px 0;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #dbe3f0;
}

.auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 12px;
    background: #f7fafc;
    color: #64748b;
    font-size: 13px;
}

.auth-label {
    display: grid;
    gap: 8px;
    color: #334155;
    font-size: 14px;
}

.auth-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
}

.auth-submit {
    width: 100%;
    justify-content: center;
}

.auth-help {
    margin: 16px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 520px) {
    .auth-dev-user-grid {
        grid-template-columns: 1fr;
    }
}

.week-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 16px;
    padding: 20px 22px;
    border: 1px solid #d7e0ea;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(191, 219, 254, 0.72), transparent 26%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 243, 250, 0.98));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.week-summary-red {
    background:
        radial-gradient(circle at top left, rgba(252, 165, 165, 0.66), transparent 26%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(254, 226, 226, 0.98));
}

.week-summary-orange {
    background:
        radial-gradient(circle at top left, rgba(253, 186, 116, 0.66), transparent 26%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 237, 213, 0.98));
}

.week-summary-yellow {
    background:
        radial-gradient(circle at top left, rgba(253, 224, 71, 0.66), transparent 26%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(254, 249, 195, 0.98));
}

.week-summary-green {
    background:
        radial-gradient(circle at top left, rgba(134, 239, 172, 0.66), transparent 26%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(220, 252, 231, 0.98));
}

.week-summary-blue {
    background:
        radial-gradient(circle at top left, rgba(147, 197, 253, 0.72), transparent 26%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(219, 234, 254, 0.98));
}

.week-summary-purple {
    background:
        radial-gradient(circle at top left, rgba(216, 180, 254, 0.72), transparent 26%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 232, 255, 0.98));
}

.week-summary-gray {
    background:
        radial-gradient(circle at top left, rgba(209, 213, 219, 0.72), transparent 26%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 244, 246, 0.98));
}

.week-summary-eyebrow {
    margin: 0 0 8px 0;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.week-summary-title {
    margin: 0 0 10px 0;
    font-size: 30px;
    line-height: 1.1;
}

.week-summary-text {
    margin: 0;
    max-width: 720px;
    color: #475569;
    line-height: 1.5;
}

.week-summary-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.week-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.week-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #d7e0ea;
    color: #334155;
}

.week-nav-link:hover {
    text-decoration: none;
    border-color: #bfd1e7;
    background: #f8fbff;
}

.week-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.week-stat-card {
    padding: 18px;
    border: 1px solid #dbe3f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.week-stat-value {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.week-stat-label {
    color: #64748b;
    font-size: 14px;
}

.week-entry-list {
    display: grid;
    gap: 14px;
}

.week-entry-card {
    padding: 18px;
    border: 1px solid #dbe3f0;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.98));
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.week-entry-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.week-entry-title {
    margin: 0 0 8px 0;
    font-size: 22px;
    line-height: 1.2;
}

.week-entry-note {
    color: #1f2937;
    line-height: 1.6;
    white-space: pre-wrap;
}

.wall-page,
.wall-page-compact {
    width: 80vw;
}

.wall-page-compact .wall-card {
    padding: 12px;
    background:
        linear-gradient(180deg, #d8c9b9 0%, #cfbeaa 100%);
    border-color: #c7b39c;
}

.wall-hero {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 18px;
    padding: 22px 26px;
    border: 1px solid #dbe3f0;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(191, 219, 254, 0.9), transparent 28%),
        linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.wall-eyebrow {
    margin: 0 0 8px 0;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.wall-title {
    margin: 0 0 10px 0;
    font-size: 34px;
    line-height: 1.05;
}

.wall-description {
    margin: 0;
    max-width: 640px;
    color: #475569;
    line-height: 1.5;
}

.wall-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.wall-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.wall-view-toggle {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.wall-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.wall-view-button:hover {
    text-decoration: none;
    color: #1e293b;
}

.wall-view-button.is-active {
    background: linear-gradient(180deg, #ffffff 0%, #e8f0fb 100%);
    color: #0f172a;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.wall-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #334155;
    font-size: 13px;
}

.wall-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.wall-legend-swatch-current {
    background: #2563eb;
}

.wall-legend-swatch-neutral {
    background: #cbd5e1;
}

.wall-legend-swatch-future {
    background: #e5e7eb;
}

.wall-card {
    padding: 20px;
    border: 1px solid #dbe3f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
    gap: 14px 12px;
    align-items: start;
}

.wall-brick {
    display: block;
    width: 100%;
    min-height: 112px;
    padding: 12px 14px 12px;
    border-radius: 6px;
    border: 1px solid rgba(120, 53, 15, 0.24);
    color: #1f2937;
    text-decoration: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
        linear-gradient(135deg, #d8dee8 0%, #bcc7d6 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -8px 12px rgba(15, 23, 42, 0.06),
        0 4px 10px rgba(15, 23, 42, 0.08);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
    position: relative;
    overflow: hidden;
}

.wall-brick::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 28%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.05));
    pointer-events: none;
}

.wall-brick::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 9px;
    background: rgba(120, 53, 15, 0.08);
    pointer-events: none;
}

.wall-brick-stud {
    width: 42px;
    height: 6px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.26);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.wall-brick:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        inset 0 -8px 12px rgba(15, 23, 42, 0.08),
        0 10px 18px rgba(37, 99, 235, 0.12);
    filter: saturate(1.05);
}

.wall-brick-offset {
    margin-left: 16px;
    width: calc(100% - 16px);
}

.wall-brick-offset:hover {
    transform: translateY(-2px);
}

.wall-brick-current {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 1px;
}

.wall-brick-empty {
    border-color: rgba(100, 116, 139, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06)),
        linear-gradient(135deg, #e7edf5 0%, #d6deea 100%);
}

.wall-brick-empty .wall-brick-stud {
    background: rgba(255, 255, 255, 0.42);
}

.wall-brick-future {
    cursor: default;
    color: #6b7280;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.2) 0 10px,
            rgba(255, 255, 255, 0.05) 10px 20px
        ),
        linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 3px 8px rgba(15, 23, 42, 0.04);
}

.wall-brick-future,
.wall-brick-future.wall-brick-offset {
    border-color: rgba(107, 114, 128, 0.2);
}

.wall-brick-future::after {
    background: rgba(107, 114, 128, 0.12);
}

.wall-brick-future:hover {
    transform: none;
    filter: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 3px 8px rgba(15, 23, 42, 0.04);
}

.wall-brick-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.wall-brick-week {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.wall-brick-year {
    font-size: 12px;
    color: rgba(15, 23, 42, 0.72);
}

.wall-brick-dates {
    font-size: 12px;
    line-height: 1.4;
    color: #475569;
}

.wall-brick-meta {
    margin-bottom: 10px;
}

.wall-brick-status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.wall-brick-status-filled {
    color: #14532d;
    background: rgba(220, 252, 231, 0.76);
    border: 1px solid rgba(22, 101, 52, 0.14);
}

.wall-brick-status-empty {
    color: #475569;
    background: rgba(255, 255, 255, 0.44);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.wall-brick-status-future {
    color: #4b5563;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(107, 114, 128, 0.14);
}

.wall-grid-compact {
    grid-template-columns: repeat(auto-fit, 86px);
    gap: 6px;
    justify-content: center;
}

.wall-grid-compact .wall-brick {
    width: 86px;
    min-height: auto;
    aspect-ratio: 250 / 65;
    height: auto;
    padding: 0;
    border-radius: 2px;
    border-width: 1px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -3px 6px rgba(15, 23, 42, 0.08);
}

.wall-grid-compact .wall-brick::before {
    border-radius: 2px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 44%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 14%, transparent 86%, rgba(0, 0, 0, 0.04));
}

.wall-grid-compact .wall-brick::after {
    height: 3px;
}

.wall-grid-compact .wall-brick:hover {
    transform: none;
    filter: saturate(1.02);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -3px 6px rgba(15, 23, 42, 0.1);
}

.wall-grid-compact .wall-brick-current {
    outline-width: 2px;
}

.wall-grid-compact .wall-brick-stud,
.wall-grid-compact .wall-brick-top,
.wall-grid-compact .wall-brick-meta,
.wall-grid-compact .wall-brick-dates {
    display: none !important;
}

.wall-brick-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wall-brick-red {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
        linear-gradient(135deg, #fca5a5 0%, #ef4444 100%);
}

.wall-brick-orange {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
        linear-gradient(135deg, #fdba74 0%, #f97316 100%);
}

.wall-brick-yellow {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08)),
        linear-gradient(135deg, #fde68a 0%, #facc15 100%);
}

.wall-brick-green {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.05)),
        linear-gradient(135deg, #86efac 0%, #22c55e 100%);
}

.wall-brick-blue {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.05)),
        linear-gradient(135deg, #93c5fd 0%, #3b82f6 100%);
}

.wall-brick-purple {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.05)),
        linear-gradient(135deg, #d8b4fe 0%, #8b5cf6 100%);
}

.wall-brick-gray {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
        linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
}

@media (max-width: 900px) {
    .wall-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .wall-controls {
        align-items: flex-start;
    }

    .wall-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .wall-grid-compact {
        grid-template-columns: repeat(auto-fit, 68px);
        gap: 5px;
        justify-content: center;
    }

    .wall-grid-compact .wall-brick {
        width: 68px;
    }
}

.project-rename-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin: 10px 0 12px;
}

.project-rename-form-detail {
    margin: 0 0 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.project-rename-input {
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

.notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 14px;
}

.notice-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.notice-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.settings-form {
    display: grid;
    gap: 16px;
}

.settings-field {
    display: grid;
    gap: 8px;
}

.settings-public-block {
    padding: 16px 18px;
    border: 1px solid #dbe3f0;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.98));
}

.settings-label {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.settings-input {
    width: 100%;
    max-width: 520px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
}

.settings-input-readonly {
    background: #f8fafc;
    color: #64748b;
}

.settings-input:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

.settings-help,
.settings-help-block {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.settings-error {
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.settings-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #1f2937;
    line-height: 1.45;
}

.settings-toggle input {
    margin-top: 3px;
}

.settings-toggle input:disabled + span {
    color: #94a3b8;
}

.settings-switch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.settings-switch-row-leading {
    justify-content: flex-start;
    align-items: flex-start;
}

.settings-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.settings-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-switch-ui {
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: #cbd5e1;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12);
    transition: background 0.18s ease;
    position: relative;
}

.settings-switch-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
    transition: transform 0.18s ease;
}

.settings-switch input:checked + .settings-switch-ui {
    background: #2563eb;
}

.settings-switch input:checked + .settings-switch-ui::after {
    transform: translateX(22px);
}

.settings-login-list {
    display: grid;
    gap: 12px;
}

.settings-login-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border: 1px solid #dbe3f0;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.98));
}

.settings-login-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.settings-login-text {
    color: #475569;
    line-height: 1.5;
}

.settings-preview-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #dbe3f0;
    color: #334155;
    word-break: break-all;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.45;
}

.settings-preview-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-user-list {
    display: grid;
    gap: 12px;
}

.admin-user-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border: 1px solid #dbe3f0;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.98));
}

.admin-user-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
    word-break: break-word;
}

.admin-user-meta {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.admin-user-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.admin-user-actions .button {
    white-space: nowrap;
    padding: 8px 12px;
}

.public-page {
    width: min(90vw, 1440px);
}

.public-page-discover .dashboard-wrap {
    max-height: calc(100vh - 420px);
}

.public-page-profile .dashboard-wrap {
    max-height: calc(100vh - 320px);
}

.public-page.wall-page,
.public-page.wall-page-compact {
    width: min(90vw, 1440px);
}

.public-topbar {
    margin-bottom: 16px;
}

.public-hero-card,
.public-empty-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 16px;
    padding: 22px 24px;
    border: 1px solid #dbe3f0;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.28), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 252, 0.98));
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.public-eyebrow {
    margin-bottom: 8px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.public-title {
    margin: 0;
    color: #0f172a;
    font-size: 32px;
    line-height: 1.08;
}

.public-title-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 160ms ease, border-color 160ms ease;
}

.public-title-link:hover {
    color: #1d4ed8;
    border-color: rgba(29, 78, 216, 0.35);
}

.public-slug {
    margin-top: 8px;
    color: #475569;
    font-size: 15px;
    font-weight: 600;
}

.public-description {
    margin: 12px 0 0;
    max-width: 64ch;
    color: #475569;
    line-height: 1.6;
}

.public-journey-actions {
    display: grid;
    justify-items: end;
    gap: 10px;
    flex: 0 0 auto;
}

.public-journey-counter {
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.public-empty-copy {
    max-width: 62ch;
}

.public-empty-actions {
    margin-top: 0;
}

.public-journey-buttons {
    margin-top: 0;
}

.public-profile-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 16px;
    padding-bottom: 4px;
}

.public-profile-pill {
    min-width: 180px;
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #dbe3f0;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.98));
    color: #1f2937;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.public-profile-pill:hover {
    text-decoration: none;
    border-color: #bfd3ee;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(239, 246, 255, 0.98));
}

.public-profile-pill.is-active {
    border-color: #60a5fa;
    box-shadow:
        inset 0 0 0 1px rgba(37, 99, 235, 0.24),
        0 10px 20px rgba(37, 99, 235, 0.08);
}

.public-profile-pill-name {
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.public-profile-pill-slug {
    color: #64748b;
    font-size: 12px;
}

.public-view-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.public-view-tab {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid #dbe3f0;
    background: rgba(255, 255, 255, 0.86);
    color: #334155;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.03);
}

.public-view-tab:hover {
    text-decoration: none;
    border-color: #bfd3ee;
    background: rgba(255, 255, 255, 0.98);
}

.public-view-tab.is-active {
    border-color: #60a5fa;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.98));
    color: #1d4ed8;
    box-shadow:
        inset 0 0 0 1px rgba(37, 99, 235, 0.18),
        0 8px 18px rgba(37, 99, 235, 0.08);
}

@media (max-width: 720px) {
    .admin-user-card {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-user-actions {
        align-items: flex-start;
    }

    .public-hero-card,
    .public-empty-card {
        flex-direction: column;
    }

    .public-journey-actions {
        width: 100%;
        justify-items: start;
    }
}

.landing-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(214, 234, 248, 0.9), transparent 26%),
        radial-gradient(circle at top right, rgba(255, 236, 220, 0.62), transparent 24%),
        linear-gradient(180deg, #f6f8fb 0%, #eef3f8 100%);
    color: #132033;
}

.landing-shell {
    width: min(1180px, calc(100vw - 48px));
    margin: 0 auto;
}

.landing-topbar {
    position: sticky;
    top: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0 8px;
    backdrop-filter: blur(14px);
    background: linear-gradient(180deg, rgba(246, 248, 251, 0.94), rgba(246, 248, 251, 0.72));
    border-bottom: 1px solid rgba(190, 202, 217, 0.55);
}

.landing-brand {
    color: #10213b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.landing-brand:hover {
    text-decoration: none;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.landing-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    color: #4b5b73;
    font-size: 14px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(210, 220, 231, 0.7);
}

.landing-nav-link:hover {
    color: #132033;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(182, 199, 217, 0.9);
}

.landing-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-top-button {
    white-space: nowrap;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
    gap: 34px;
    align-items: center;
    padding: 6px 0 54px;
    min-height: calc(100vh - 92px);
}

.landing-eyebrow,
.landing-section-eyebrow {
    margin: 0 0 12px;
    color: #37506d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.landing-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 6vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.05em;
    color: #0f1e33;
    max-width: 10ch;
}

.landing-subtitle {
    margin: 22px 0 0;
    max-width: 58ch;
    color: #46566d;
    font-size: 18px;
    line-height: 1.7;
}

.landing-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.landing-cta-primary,
.landing-cta-secondary {
    min-width: 180px;
    justify-content: center;
}

.landing-headline-options {
    margin-top: 24px;
    display: grid;
    gap: 8px;
}

.landing-inline-label {
    color: #6a778b;
    font-size: 13px;
}

.landing-inline-option {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(162, 177, 196, 0.42);
    background: rgba(255, 255, 255, 0.68);
    color: #31455f;
    font-size: 14px;
}

.landing-hero-visual {
    display: flex;
    justify-content: flex-end;
}

.landing-visual-stack {
    width: min(560px, 100%);
    display: grid;
    gap: 14px;
}

.landing-dashboard-mock {
    padding: 18px;
    border-radius: 28px;
    border: 1px solid rgba(191, 206, 222, 0.92);
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.46), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 250, 0.98));
    box-shadow: 0 24px 60px rgba(19, 32, 51, 0.12);
}

.landing-wall-mock {
    padding: 16px 18px;
    border-radius: 24px;
    border: 1px solid rgba(191, 206, 222, 0.92);
    background:
        linear-gradient(180deg, rgba(219, 207, 194, 0.96), rgba(205, 190, 173, 0.96));
    box-shadow: 0 18px 42px rgba(19, 32, 51, 0.08);
}

.landing-wall-header {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.landing-wall-strip {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 6px;
}

.landing-wall-brick {
    display: block;
    width: 100%;
    aspect-ratio: 250 / 65;
    border-radius: 3px;
    border: 1px solid rgba(120, 53, 15, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -3px 6px rgba(15, 23, 42, 0.08);
    background: linear-gradient(135deg, #dbe4ef 0%, #c1ccd8 100%);
}

.landing-wall-brick.empty {
    background: linear-gradient(135deg, #e7edf5 0%, #d6deea 100%);
}

.landing-wall-brick.green {
    background: linear-gradient(135deg, #86efac 0%, #22c55e 100%);
}

.landing-wall-brick.orange {
    background: linear-gradient(135deg, #fdba74 0%, #f97316 100%);
}

.landing-wall-brick.blue {
    background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 100%);
}

.landing-wall-brick.current {
    background: linear-gradient(135deg, #bfdbfe 0%, #60a5fa 100%);
    outline: 2px solid rgba(37, 99, 235, 0.34);
    outline-offset: 1px;
}

.landing-wall-brick.future {
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.2) 0 8px,
            rgba(255, 255, 255, 0.06) 8px 16px
        ),
        linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
}

.landing-wall-caption {
    margin-top: 12px;
    color: #46392e;
    font-size: 13px;
    line-height: 1.5;
}

.landing-dashboard-header,
.landing-dashboard-footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.landing-dashboard-footer {
    margin-top: 14px;
    color: #55657d;
    font-size: 13px;
}

.landing-mock-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(230, 238, 247, 0.88);
    color: #1f3553;
    font-size: 12px;
    font-weight: 700;
}

.landing-mock-chip.muted {
    background: rgba(244, 247, 251, 0.92);
    color: #607089;
}

.landing-grid {
    display: grid;
    grid-template-columns: 98px repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.landing-grid-mobile {
    display: none;
    margin-top: 16px;
}

.landing-grid-corner,
.landing-grid-project,
.landing-grid-week,
.landing-grid-note {
    border-radius: 18px;
    border: 1px solid #d5deea;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 8px 18px rgba(15, 23, 42, 0.04);
}

.landing-grid-corner {
    background: rgba(255, 255, 255, 0.52);
}

.landing-grid-project {
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 242, 248, 0.98));
    font-size: 14px;
    font-weight: 700;
    color: #10213b;
}

.landing-grid-week {
    padding: 14px 10px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(231, 237, 244, 0.98));
    font-size: 22px;
    font-weight: 700;
    line-height: 1.05;
}

.landing-grid-week span {
    display: block;
    margin-top: 8px;
    color: #68778b;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.35;
}

.landing-grid-week.current {
    border-color: #8eb7f5;
    box-shadow:
        inset 0 0 0 2px rgba(37, 99, 235, 0.24),
        0 10px 24px rgba(37, 99, 235, 0.12);
}

.landing-grid-week.future {
    color: #8b98ab;
    background: linear-gradient(180deg, rgba(243, 246, 250, 0.98), rgba(230, 236, 243, 0.98));
}

.landing-grid-note {
    min-height: 94px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 243, 249, 0.98));
    color: #1f2f46;
    font-size: 13px;
    line-height: 1.55;
}

.landing-grid-note.accent {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(220, 234, 254, 0.9));
}

.landing-grid-note.future {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #90a0b3;
    font-size: 20px;
}

.landing-grid-mobile-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid #d5deea;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 243, 249, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 8px 18px rgba(15, 23, 42, 0.04);
}

.landing-grid-mobile-card + .landing-grid-mobile-card {
    margin-top: 10px;
}

.landing-grid-mobile-card.current {
    border-color: #8eb7f5;
    box-shadow:
        inset 0 0 0 2px rgba(37, 99, 235, 0.14),
        0 10px 24px rgba(37, 99, 235, 0.09);
}

.landing-grid-mobile-card.accent {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(220, 234, 254, 0.82));
}

.landing-grid-mobile-card.future {
    background: linear-gradient(180deg, rgba(243, 246, 250, 0.98), rgba(230, 236, 243, 0.98));
}

.landing-grid-mobile-week {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(213, 222, 234, 0.9);
}

.landing-grid-mobile-week strong {
    font-size: 18px;
    color: #10213b;
}

.landing-grid-mobile-week span {
    color: #68778b;
    font-size: 12px;
    white-space: nowrap;
}

.landing-grid-mobile-item {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(213, 222, 234, 0.72);
}

.landing-grid-mobile-item span {
    color: #4a5c75;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-grid-mobile-item p {
    margin: 0;
    color: #1f2f46;
    font-size: 13px;
    line-height: 1.5;
}

.landing-section {
    padding: 34px 0;
    scroll-margin-top: 84px;
}

.landing-section-head {
    max-width: 760px;
    margin-bottom: 22px;
}

.landing-section-head h2,
.landing-final-card h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.06;
    letter-spacing: -0.04em;
    color: #10213b;
}

.landing-formula-card,
.landing-privacy-card,
.landing-final-card {
    padding: 28px;
    border: 1px solid #d7e0ea;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.26), transparent 25%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.98));
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
}

.landing-formula-line {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
    color: #10213b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.landing-formula-sign {
    color: #6a7c94;
}

.landing-formula-card p,
.landing-privacy-card p,
.landing-final-card p,
.landing-step-card p,
.landing-usecase-card p,
.landing-product-card p,
.landing-compare-card p {
    margin: 0;
    color: #4b5b73;
    line-height: 1.7;
}

.landing-steps,
.landing-benefits,
.landing-usecases,
.landing-product-grid {
    display: grid;
    gap: 16px;
}

.landing-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-step-card,
.landing-usecase-card,
.landing-product-card,
.landing-compare-card {
    padding: 22px;
    border: 1px solid #dbe3ed;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.04);
}

.landing-step-number {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 16px;
    font-weight: 700;
}

.landing-step-card h3,
.landing-usecase-card h3,
.landing-product-card h3,
.landing-compare-card h3 {
    margin: 0 0 10px;
    color: #10213b;
    font-size: 22px;
    line-height: 1.2;
}

.landing-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-benefit {
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid #dbe3ed;
    background: rgba(255, 255, 255, 0.82);
    color: #22344f;
    font-size: 16px;
    line-height: 1.55;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.landing-usecases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-public-card {
    padding: 26px;
    border: 1px solid #d7e0ea;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.22), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.98));
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
}

.landing-public-copy {
    margin: 0 0 18px;
    max-width: 62ch;
    color: #4b5b73;
    line-height: 1.7;
}

.landing-public-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.landing-public-item {
    display: grid;
    gap: 5px;
    padding: 16px 18px;
    border: 1px solid #dbe3ed;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    color: #22344f;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.landing-public-item:hover {
    text-decoration: none;
    border-color: #bfd3ee;
    background: rgba(255, 255, 255, 0.98);
}

.landing-public-name {
    color: #10213b;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.landing-public-slug {
    color: #64748b;
    font-size: 13px;
}

.landing-public-views {
    color: #47617d;
    font-size: 13px;
}

.landing-public-actions {
    margin-top: 18px;
}

.landing-product-kicker {
    margin-bottom: 12px;
    color: #47617d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.landing-compare {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.landing-compare-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #74859b;
    font-size: 28px;
}

.landing-compare-card.emphasis {
    border-color: #bfd3ee;
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.24), transparent 28%),
        rgba(255, 255, 255, 0.92);
}

.landing-final {
    padding: 28px 0 60px;
    scroll-margin-top: 84px;
}

@media (max-width: 1080px) {
    .landing-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 4px;
    }

    .landing-hero-visual {
        justify-content: flex-start;
    }

    .landing-steps,
    .landing-product-grid,
    .landing-public-grid {
        grid-template-columns: 1fr;
    }

    .landing-usecases {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .landing-shell {
        width: min(100vw - 28px, 1180px);
    }

    .landing-topbar {
        flex-wrap: wrap;
    }

    .landing-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }

    .landing-top-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .landing-grid {
        grid-template-columns: 82px repeat(3, minmax(110px, 1fr));
        overflow-x: auto;
    }

    .landing-wall-strip {
        grid-template-columns: repeat(9, minmax(30px, 1fr));
    }

    .landing-benefits,
    .landing-usecases,
    .landing-compare {
        grid-template-columns: 1fr;
    }

    .landing-compare-divider {
        display: none;
    }
}

@media (max-width: 560px) {
    .landing-title {
        max-width: none;
        font-size: clamp(38px, 12vw, 54px);
    }

    .landing-subtitle {
        font-size: 16px;
    }

    .landing-hero-actions,
    .landing-top-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-cta-primary,
    .landing-cta-secondary,
    .landing-top-button {
        width: 100%;
    }

    .landing-dashboard-mock,
    .landing-formula-card,
    .landing-privacy-card,
    .landing-final-card,
    .landing-step-card,
    .landing-usecase-card,
    .landing-product-card,
    .landing-compare-card {
        padding: 20px;
        border-radius: 20px;
    }

    .landing-grid {
        display: none;
    }

    .landing-grid-mobile {
        display: block;
    }

.landing-grid-mobile-week {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
}

/* Project cards: final layout overrides */
.project-item .project-item-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.project-item .project-item-actions > * {
    margin: 0;
}

.project-item .project-item-actions form {
    display: flex;
    margin: 0;
}

.project-item .project-item-actions .button,
.project-item .project-item-actions form .button {
    display: inline-flex;
    align-items: center;
    width: 100%;
    white-space: nowrap;
    padding: 8px 10px;
    justify-content: center;
    text-align: center;
}

.project-rename-modal[hidden] {
    display: none;
}

.project-rename-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.project-rename-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.project-rename-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    padding: 24px;
    border: 1px solid #d9e3f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.22);
}

.project-rename-modal-head {
    margin-bottom: 16px;
}

.project-rename-modal-title {
    margin: 0;
    color: #10213b;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.project-rename-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.publicity-confirm-text {
    margin-bottom: 12px;
}

.publicity-confirm-targets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.publicity-confirm-target {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 13px;
    font-weight: 700;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .project-item .project-item-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-rename-modal-card {
        padding: 20px;
        border-radius: 20px;
    }

    .project-rename-modal-actions {
        flex-direction: column-reverse;
    }

.project-rename-modal-actions .button {
        width: 100%;
    }
}

.badge-secondary {
    background: #e8eef6;
    color: #42566f;
}

.support-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.support-thread {
    display: grid;
    gap: 12px;
    margin: 0;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 6px;
    scroll-behavior: smooth;
}

.dashboard-wrap:focus {
    outline: none;
}

.support-thread-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.support-thread-title {
    color: #10213b;
    font-size: 19px;
    font-weight: 800;
}

.support-thread-meta {
    color: #64748b;
    font-size: 13px;
}

.support-message {
    padding: 14px 16px;
    border: 1px solid #dbe3f0;
    border-radius: 18px;
    background: #ffffff;
}

.support-message-user {
    background: #f8fbff;
    border-color: #cfe0f5;
}

.support-message-admin {
    background: #fffdf7;
    border-color: #eadfbc;
}

.support-message-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.support-message-author {
    color: #10213b;
    font-size: 14px;
    font-weight: 700;
}

.support-message-date {
    color: #7a8797;
    font-size: 12px;
    white-space: nowrap;
}

.support-message-body {
    color: #1f2937;
    line-height: 1.6;
    white-space: normal;
    word-break: break-word;
}

.support-form {
    margin-top: 0;
}

.support-empty-note {
    margin: 0;
}

.support-textarea {
    width: 100%;
    max-width: 720px;
    min-height: 140px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    color: #0f172a;
    background: #ffffff;
    resize: vertical;
    box-sizing: border-box;
}

.support-textarea:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.18);
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.admin-stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

.admin-stat-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-stat-value {
    color: #0f172a;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.admin-stat-help {
    color: #64748b;
    font-size: 14px;
    line-height: 1.45;
}

.admin-shortcut-card .actions {
    margin-top: auto;
}

.admin-sidebar,
.admin-conversation {
    margin-bottom: 0;
}

.admin-user-list-scroll {
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    padding-right: 6px;
}

.admin-user-card-link {
    color: inherit;
    text-decoration: none;
}

.admin-user-card-link:hover {
    text-decoration: none;
    border-color: #bfd3ee;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(240, 246, 252, 0.99));
}

.admin-user-card-selected {
    border-color: #9fc0e8;
    background: linear-gradient(180deg, rgba(236, 245, 255, 0.98), rgba(245, 249, 255, 0.98));
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.admin-user-card-unread {
    border-color: #f3c1c1;
    background: linear-gradient(180deg, rgba(255, 250, 250, 0.98), rgba(255, 245, 245, 0.98));
}

.admin-user-unread-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-left: 8px;
    border-radius: 50%;
    background: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
    vertical-align: middle;
}

.articles-hero-card {
    margin-bottom: 20px;
    padding: 22px 24px;
    border: 1px solid #dbe3f0;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.articles-eyebrow {
    margin: 0 0 8px;
    color: #365f94;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.articles-hero-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: 28px;
    line-height: 1.25;
}

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

.article-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.article-card-image-link {
    display: block;
}

.article-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #dbe3f0;
    background: #eef3f9;
}

.article-card-meta,
.article-view-meta {
    color: #64748b;
    font-size: 13px;
}

.article-card-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
}

.article-card-title a {
    color: #0f172a;
    text-decoration: none;
}

.article-card-title a:hover {
    text-decoration: underline;
}

.article-card-excerpt {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

.article-card-button {
    align-self: flex-start;
}

.article-view {
    padding: 26px;
}

.article-view-title {
    margin: 4px 0 18px;
    font-size: 38px;
    line-height: 1.12;
    color: #0f172a;
}

.article-view-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid #dbe3f0;
    background: #eef3f9;
    margin-bottom: 22px;
}

.article-view-image-float {
    float: left;
    width: min(38%, 320px);
    max-width: 320px;
    max-height: none;
    margin: 4px 22px 14px 0;
}

.article-view-body {
    color: #1f2937;
    line-height: 1.85;
    font-size: 17px;
    white-space: normal;
}

.article-view-body::after {
    content: "";
    display: block;
    clear: both;
}

.article-view-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-articles-section {
    margin-top: 16px;
}

.admin-articles-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-articles-layout {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 18px;
}

.admin-article-create-card {
    padding-right: 4px;
}

.admin-article-form-title {
    margin: 0 0 14px;
    font-size: 20px;
    color: #0f172a;
}

.admin-articles-list {
    display: grid;
    gap: 16px;
}

.admin-article-item {
    border: 1px solid #dbe3f0;
    border-radius: 14px;
    background: #f8fbff;
    padding: 16px;
}

.admin-article-item-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.admin-article-item-title {
    color: #0f172a;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.admin-article-item-meta {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.admin-article-textarea {
    min-height: 220px;
}

.admin-article-actions {
    margin-top: 6px;
}

.admin-article-delete-form {
    margin-top: 10px;
}

.admin-articles-list-compact {
    display: grid;
    gap: 14px;
}

.admin-article-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

.admin-article-row:first-child {
    padding-top: 0;
}

.admin-article-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.admin-article-row-main {
    min-width: 0;
    flex: 1 1 auto;
}

.admin-article-row-title {
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.admin-article-row-meta {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.admin-article-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.admin-article-row-actions .button {
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-user-list-scroll {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .admin-articles-layout {
        grid-template-columns: 1fr;
    }

    .admin-articles-toolbar {
        flex-direction: column;
    }

    .admin-article-row {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-article-row-actions {
        justify-content: flex-start;
    }

    .article-view {
        padding: 18px;
    }

    .article-view-title {
        font-size: 30px;
    }

    .article-view-image-float {
        float: none;
        width: 100%;
        max-width: none;
        margin: 0 0 18px;
    }
}

.error-page {
    min-height: calc(100vh - 48px);
    display: grid;
    place-items: center;
}

.error-card {
    width: min(100%, 560px);
    background: #fffdfa;
    border: 1px solid #e8e0d6;
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 18px 50px rgba(48, 36, 22, 0.08);
}

.error-code {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8b7761;
    margin-bottom: 10px;
}

.error-title {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.1;
    color: #1d160f;
}

.error-text {
    margin: 0;
    color: #5b4d3d;
    line-height: 1.65;
}

.error-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

