:root {
    color-scheme: light;
    --ink: #111827;
    --muted: #667085;
    --soft-muted: #9299a8;
    --paper: #f8fafc;
    --white: #ffffff;
    --line: #e7eaf1;
    --indigo: #6366f1;
    --indigo-dark: #4f46e5;
    --teal: #0d9488;
    --radius-card: 22px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--paper);
    color: var(--ink);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.maintenance-page {
    display: grid;
    min-height: 100svh;
    place-items: center;
    padding: 40px 24px;
    background: radial-gradient(circle at 15% 15%, rgb(99 102 241 / 9%), transparent 34%),
        radial-gradient(circle at 85% 85%, rgb(13 148 136 / 9%), transparent 32%),
        var(--paper);
    text-align: center;
}

.maintenance-content {
    width: min(100%, 690px);
    padding: clamp(30px, 6vw, 62px);
    border: 1px solid #e4e8f3;
    border-radius: 30px;
    background: var(--white);
    box-shadow: 0 28px 80px rgb(47 53 106 / 10%);
}

.maintenance-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.075em;
}

.maintenance-brand-mark {
    width: 42px;
    height: 42px;
    color: var(--indigo);
}

.maintenance-brand-period {
    color: var(--indigo);
}

.maintenance-route {
    display: block;
    width: min(100%, 440px);
    height: auto;
    margin: 30px auto 22px;
    overflow: visible;
}

.maintenance-route-bed,
.maintenance-route-line {
    fill: none;
    stroke-linecap: round;
}

.maintenance-route-bed {
    stroke: #e8e9ff;
    stroke-width: 28;
}

.maintenance-route-line {
    stroke: var(--indigo);
    stroke-width: 3;
    stroke-dasharray: 2 10;
}

.maintenance-route-start {
    fill: var(--white);
    stroke: var(--indigo);
    stroke-width: 5;
}

.maintenance-route-middle {
    fill: var(--indigo);
    stroke: var(--white);
    stroke-width: 5;
}

.maintenance-route-end {
    fill: var(--teal);
}

.maintenance-route-check {
    fill: none;
    stroke: var(--white);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.maintenance-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 15px;
    padding: 8px 13px;
    border: 1px solid #d9ddff;
    border-radius: 999px;
    background: #f4f4ff;
    color: var(--indigo-dark);
    font-size: 13px;
    font-weight: 700;
}

.maintenance-kicker span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
}

.maintenance-content h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 7vw, 54px);
    letter-spacing: -0.055em;
}

.maintenance-message {
    max-width: 490px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.maintenance-languages {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.maintenance-languages a {
    color: var(--muted);
}

.maintenance-languages a[aria-current="page"] {
    color: var(--ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 480px) {
    .maintenance-page {
        padding: 18px;
    }

    .maintenance-content {
        padding: 32px 24px;
        border-radius: 24px;
    }

    .maintenance-route {
        margin-block: 24px 18px;
    }
}

.admin-section {
    padding-block: 36px 110px;
}

.profile-page {
    max-width: 820px;
    padding-block: 64px 110px;
}

.profile-heading h1 {
    margin: 12px 0;
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: -0.05em;
}

.profile-heading > p:last-child,
.profile-danger > p {
    color: var(--muted);
    line-height: 1.6;
}

.profile-card {
    margin-top: 28px;
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
}

.profile-card h2 {
    margin: 0 0 22px;
    font-size: 22px;
}

.profile-details {
    margin: 0;
}

.profile-details > div {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 2fr;
    gap: 12px;
    padding: 15px 0;
    border-top: 1px solid var(--line);
}

.profile-details dt {
    color: var(--muted);
}

.profile-details dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 600;
}

.profile-notification-description { margin-top: -12px; color: var(--muted); line-height: 1.6; }
.profile-email-form { display: grid; justify-items: start; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.profile-email-form label { font-weight: 600; }
.profile-email-form input:not([type="hidden"]) { width: min(100%, 380px); padding: 12px 14px; border: 1px solid #cdd3df; border-radius: 10px; font: inherit; }
.profile-email-form button { padding: 10px 16px; border: 0; border-radius: 9px; background: var(--indigo); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.profile-email-form button:focus-visible, .profile-email-form input:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.profile-notification-form { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.profile-notification-form label { display: inline-flex; align-items: flex-start; gap: 10px; line-height: 1.5; cursor: pointer; }
.profile-notification-form input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--indigo); }
.profile-notification-form button { padding: 10px 16px; border: 0; border-radius: 9px; background: var(--indigo); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.profile-notification-form button:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }

.profile-danger {
    border-color: #f2c7c2;
}

.profile-danger .form-message {
    margin-block: 18px;
}

.profile-delete-trigger,
.profile-delete-submit {
    display: inline-block;
    padding: 12px 18px;
    border: 1px solid #b42318;
    border-radius: 10px;
    background: #fff;
    color: #a12b1d;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.profile-delete-trigger {
    list-style: none;
}

.profile-delete-trigger::-webkit-details-marker {
    display: none;
}

.profile-delete-trigger:hover,
.profile-delete-submit:hover {
    background: #fef0ed;
}

.profile-delete-form {
    display: grid;
    justify-items: start;
    gap: 12px;
    margin-top: 22px;
}

.profile-delete-form label {
    font-weight: 600;
}

.profile-delete-form input:not([type="hidden"]) {
    width: min(100%, 350px);
    padding: 12px 14px;
    border: 1px solid #cdd3df;
    border-radius: 10px;
    font: inherit;
}

@media (max-width: 600px) {
    .profile-details > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.admin-nav {
    display: flex;
    gap: 28px;
    margin-top: 36px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    white-space: nowrap;
}

.admin-nav a {
    padding: 0 2px 13px;
    color: var(--muted);
    font-weight: 600;
}

.admin-nav a[aria-current="page"] {
    border-bottom: 2px solid var(--indigo);
    color: var(--ink);
}

.admin-section h1 {
    margin: 12px 0;
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: -0.05em;
}

.admin-intro {
    max-width: 680px;
    color: var(--muted);
    line-height: 1.6;
}

.admin-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.admin-card,
.admin-form {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
}

.admin-maintenance,
.admin-finances {
    max-width: 720px;
    margin-top: 32px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
}

.admin-maintenance h2,
.admin-finances h2 {
    margin: 0 0 10px;
}

.admin-maintenance > p,
.admin-finances > p {
    color: var(--muted);
    line-height: 1.6;
}

.admin-maintenance form {
    display: grid;
    justify-items: start;
    gap: 20px;
    margin-top: 22px;
}

.admin-maintenance-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
}

.admin-maintenance-toggle input {
    width: 20px;
    height: 20px;
    accent-color: var(--indigo);
}

.admin-finances-form {
    display: grid;
    gap: 22px;
    margin-top: 22px;
}

.admin-money-input {
    display: flex;
    align-items: center;
    max-width: 360px;
    border: 1px solid #cdd3df;
    border-radius: 10px;
    background: var(--white);
}

.admin-money-input:focus-within {
    outline: 2px solid var(--indigo);
    outline-offset: 2px;
}

.admin-field .admin-money-input input {
    flex: 1;
    width: auto;
    min-width: 0;
    padding: 13px 15px;
    border: 0;
    border-radius: 10px;
    outline: 0;
}

.admin-money-input span {
    padding-right: 15px;
    color: var(--muted);
    font-weight: 700;
}

.admin-card h2 {
    margin: 0 0 22px;
    font-size: 19px;
}

.admin-card p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.admin-stats-hero {
    position: relative;
    overflow: hidden;
    margin-top: 32px;
    padding: clamp(28px, 5vw, 50px);
    border: 1px solid #dfe1fb;
    border-radius: 28px;
    background: radial-gradient(circle at 92% 18%, rgb(99 102 241 / 17%), transparent 30%),
        radial-gradient(circle at 78% 92%, rgb(13 148 136 / 11%), transparent 30%),
        linear-gradient(135deg, #ffffff 25%, #f0f1ff 100%);
}

.admin-stats-hero::after {
    position: absolute;
    right: -65px;
    bottom: -145px;
    width: 350px;
    height: 220px;
    border: 2px dashed rgb(99 102 241 / 20%);
    border-radius: 50%;
    content: '';
    pointer-events: none;
    transform: rotate(-24deg);
}

.admin-stats-hero .eyebrow,
.admin-stats-hero h1,
.admin-stats-hero .admin-intro {
    position: relative;
    z-index: 1;
}

.admin-stats-hero .eyebrow { margin: 0; }
.admin-stats-hero h1 { margin: 12px 0 10px; }
.admin-stats-hero .admin-intro { margin-bottom: 0; }

.admin-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.admin-stats-card {
    --stat-color: var(--indigo);
    --stat-tint: #eeeefe;
    position: relative;
    display: flex;
    min-height: 236px;
    flex-direction: column;
    overflow: hidden;
    padding: 26px;
    box-shadow: 0 14px 32px rgb(27 33 80 / 5%);
}

.admin-stats-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--stat-color);
    content: '';
}

.admin-stats-card-projects {
    --stat-color: var(--teal);
    --stat-tint: #e5f7f3;
}

.admin-stats-card-milestones {
    --stat-color: #d97734;
    --stat-tint: #fff0e4;
}

.admin-stats-card-collaborative_projects {
    --stat-color: #2563eb;
    --stat-tint: #e9f0ff;
}

.admin-stats-card-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.admin-stats-card-heading h2 {
    margin: 0;
    font-size: 18px;
}

.admin-stats-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 15px;
    background: var(--stat-tint);
    color: var(--stat-color);
}

.admin-stats-icon svg { width: 25px; height: 25px; }

.admin-stats-card .admin-stats-value {
    margin: 25px 0 15px;
    color: var(--stat-color);
    font-size: clamp(46px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
}

.admin-stats-card .admin-stats-caption,
.admin-stats-card .admin-stats-caption:last-child {
    margin: auto 0 0;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .admin-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
    .admin-stats-hero { padding: 28px 22px; }
    .admin-stats-grid { grid-template-columns: 1fr; }
    .admin-stats-card { min-height: 205px; }
}

.admin-status {
    font-weight: 700;
}

.admin-status-ok { color: var(--teal); }
.admin-status-error { color: #b42318; }
.admin-status-pending { color: var(--muted); }

.admin-r2-buckets {
    display: grid;
    gap: 10px;
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.admin-r2-buckets li {
    display: grid;
    gap: 2px;
    overflow-wrap: anywhere;
    font-size: 14px;
}

.admin-r2-buckets span { color: var(--muted); }

.admin-languages {
    display: flex;
    gap: 18px;
    margin: 30px 0 20px;
}

.admin-languages a {
    padding-bottom: 7px;
    color: var(--muted);
}

.admin-languages a[aria-current="page"] {
    border-bottom: 2px solid var(--indigo);
    color: var(--ink);
    font-weight: 700;
}

.admin-form {
    display: grid;
    gap: 24px;
    max-width: 720px;
}

.admin-field {
    display: grid;
    gap: 9px;
}

.admin-field label {
    font-weight: 700;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #cdd3df;
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

.admin-field textarea {
    resize: vertical;
}

.admin-cloudflare-environment {
    display: inline-flex;
    gap: 8px;
    margin: 16px 0 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e9e9ff;
    color: var(--ink);
}

.admin-cloudflare-card {
    max-width: 760px;
    margin-top: 28px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
}

.admin-cloudflare-card h2 { margin: 0 0 12px; }
.admin-cloudflare-card .admin-form { max-width: none; padding: 0; border: 0; }
.admin-cloudflare-endpoint { overflow-wrap: anywhere; color: var(--muted); }
.admin-cloudflare-hint, .admin-field small { color: var(--muted); line-height: 1.5; }

.admin-notice,
.admin-error {
    max-width: 720px;
    padding: 13px 16px;
    border-radius: 10px;
}

.admin-notice { background: #e5f7f3; color: #096b5e; }
.admin-error { background: #fef0ed; color: #a12b1d; }

.admin-users-search {
    display: grid;
    gap: 10px;
    max-width: 720px;
    margin: 32px 0;
}

.admin-users-search label {
    font-weight: 700;
}

.admin-users-search-controls {
    display: flex;
    gap: 12px;
}

.admin-users-search input {
    flex: 1;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid #cdd3df;
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

.admin-users-count {
    color: var(--muted);
    font-size: 14px;
}

.admin-users-table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
}

.admin-users-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-users-table th,
.admin-users-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.admin-users-table tbody tr:last-child th,
.admin-users-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-users-table thead {
    color: var(--muted);
    font-size: 13px;
}

.admin-users-empty {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
}

.admin-users-pagination {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
}

.admin-users-pagination a {
    color: var(--indigo-dark);
    font-weight: 700;
}

.admin-user-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--indigo-dark);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-user-dialog {
    width: min(620px, calc(100% - 32px));
    max-height: min(90vh, 850px);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: 0 24px 72px rgb(17 24 39 / 24%);
    color: var(--ink);
}

.admin-user-dialog::backdrop {
    background: rgb(17 24 39 / 55%);
}

.admin-user-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.admin-user-dialog-header h2 {
    margin: 0;
    overflow-wrap: anywhere;
}

.admin-user-dialog-close {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.admin-user-dialog-message {
    color: var(--muted);
}

.admin-user-dialog-message:empty {
    display: none;
}

.admin-user-dialog-message.is-success {
    padding: 12px 16px;
    border-radius: 10px;
    background: #15803d;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
}

.admin-user-details {
    display: grid;
    gap: 12px;
    margin: 0 0 28px;
}

.admin-user-details div {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 12px;
}

.admin-user-details dt {
    color: var(--muted);
}

.admin-user-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.admin-user-actions {
    display: grid;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.admin-user-actions form:not([data-user-delete]) {
    display: grid;
    gap: 8px;
}

.admin-user-actions label {
    font-weight: 700;
}

.admin-user-action-controls {
    display: flex;
    gap: 10px;
}

.admin-user-action-controls select {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #cdd3df;
    border-radius: 10px;
    font: inherit;
}

.admin-user-actions button[type="submit"] {
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: var(--indigo);
    color: var(--white);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.admin-user-actions button[type="submit"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.admin-user-actions button.admin-user-delete {
    background: #b42318;
}

.admin-user-self-note {
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 600px) {
    .admin-users-search-controls {
        flex-direction: column;
    }

    .admin-user-details div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .admin-user-action-controls {
        flex-direction: column;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    display: block;
}

.shell {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    z-index: 10;
    top: 12px;
    left: 12px;
    transform: translateY(-150%);
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--white);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 3;
    height: 86px;
    border-bottom: 1px solid rgb(231 234 241 / 75%);
    background: rgb(248 250 252 / 88%);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    color: var(--indigo);
}

.brand-word,
.footer-brand {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.075em;
}

.brand-period,
.footer-brand span {
    color: var(--indigo);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 600;
}

.nav-link {
    color: var(--muted);
    transition: color 160ms ease;
}

.nav-link:hover,
.nav-link.is-current {
    color: var(--ink);
}

.nav-login {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 0 17px;
    border: 1px solid #d9deea;
    border-radius: 999px;
    background: var(--white);
    transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-login:hover {
    transform: translateY(-1px);
    border-color: var(--indigo);
    color: var(--indigo-dark);
}

.nav-logout-form {
    margin: 0;
}

.nav-logout {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid #d9deea;
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-logout:hover {
    transform: translateY(-1px);
    border-color: var(--indigo);
    color: var(--indigo-dark);
}

.nav-logout:focus-visible {
    outline: 3px solid var(--indigo);
    outline-offset: 3px;
}

.nav-logout svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.nav-login svg,
.button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

main {
    overflow: hidden;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.kanban-page {
    min-height: 620px;
    padding: 68px 0 90px;
    background: #f8fafc;
}

.kanban-page .shell {
    width: min(96%, 1920px);
}

.project-menu {
    margin-bottom: 42px;
}

.project-menu-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

.project-menu-heading h2 {
    margin: 0;
    font-size: 20px;
}

.project-menu-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    margin-left: auto;
}

.project-create-link,
.project-settings-button,
.project-create-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 17px;
    border: 0;
    border-radius: 10px;
    background: var(--indigo);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.project-create-link:hover,
.project-settings-button:hover,
.project-create-form button:hover {
    background: var(--indigo-dark);
}

.project-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scrollbar-width: thin;
}

.project-tab {
    flex: 0 0 auto;
    max-width: 260px;
    padding: 11px 16px;
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    background: #fff;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.project-archived-badge { display: inline-flex; margin-left: 8px; padding: 2px 6px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 10px; font-weight: 700; vertical-align: 1px; }
.project-archive-notice { display: inline-flex; margin: 0 0 8px; padding: 5px 9px; border-radius: 8px; background: #fffbeb; color: #92400e; font-size: 12px; font-weight: 700; }
.project-archive-button { padding: 9px 13px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; color: #334155; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }
.project-archive-button:hover { border-color: #818cf8; color: #4338ca; }

.project-member-add-fields,
.project-member-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.project-member-add-form,
.project-members-list {
    margin-top: 16px;
}

.project-members-list {
    display: grid;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.project-member-item {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.project-member-item > div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.project-member-item > div span,
.project-members-empty {
    color: #64748b;
    font-size: 13px;
    overflow-wrap: anywhere;
}

[data-project-readonly="true"] .kanban-add-form,
[data-project-readonly="true"] .kanban-new-column,
[data-project-readonly="true"] .kanban-column-actions,
[data-project-readonly="true"] .kanban-card-actions,
[data-project-readonly="true"] [data-open-archived-columns],
[data-project-readonly="true"] .milestone-edit-form,
[data-project-readonly="true"] [data-upcoming-edit-task],
[data-project-readonly="true"] [data-edit-milestone],
[data-project-readonly="true"] [data-delete-milestone],
[data-project-readonly="true"] [data-roadmap-manage] {
    display: none !important;
}

@media (max-width: 680px) {
    .project-member-add-fields,
    .project-member-item {
        grid-template-columns: minmax(0, 1fr);
    }
}

.project-tab:hover,
.project-tab.is-current {
    border-color: var(--indigo);
    background: #eef2ff;
    color: var(--indigo-dark);
}

.project-tab.is-shared,
.project-tab.is-shared:hover,
.project-tab.is-shared.is-current {
    border-color: #fdba74;
    background: #fff7ed;
    color: #c2410c;
}

.project-empty {
    display: grid;
    min-height: 440px;
    place-items: center;
}

.project-create-card {
    width: min(100%, 540px);
    padding: clamp(26px, 5vw, 46px);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 45px rgb(30 41 59 / 7%);
}

.project-create-card h1 {
    margin: 0 0 10px;
    font-size: clamp(27px, 4vw, 38px);
    letter-spacing: -.04em;
}

.project-create-card > p:not(.kanban-eyebrow) {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.6;
}

.project-create-form {
    display: grid;
    gap: 10px;
}

.project-create-form label {
    font-size: 13px;
    font-weight: 700;
}

.project-create-form input,
.project-create-form textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    font: inherit;
}

.project-create-form textarea { resize: vertical; }
.project-create-form button { margin-top: 8px; }

.project-create-link:focus-visible,
.project-settings-button:focus-visible,
.project-tab:focus-visible,
.project-create-form input:focus-visible,
.project-create-form textarea:focus-visible,
.project-create-form button:focus-visible {
    outline: 3px solid #a5b4fc;
    outline-offset: 2px;
}

.project-form-errors,
.project-error {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 13px;
}

.project-form-errors p { margin: 0; }
.project-form-errors p + p { margin-top: 6px; }

.project-settings-dialog {
    width: min(92vw, 540px);
    max-width: none;
    padding: 0;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 80px rgb(15 23 42 / 24%);
}

.project-settings-dialog::backdrop { background: rgb(15 23 42 / 48%); }
.task-settings-dialog {
    width: min(96vw, 1120px);
    max-height: min(90vh, 900px);
    overflow-y: auto;
}

.project-settings-form {
    display: grid;
    gap: 11px;
    padding: 28px;
}

.task-settings-form { width: 100%; box-sizing: border-box; gap: 16px; }
.task-settings-form > .task-settings-heading,
.task-settings-form > [data-task-settings-status],
.task-settings-form > .task-settings-actions { grid-column: 1 / -1; }
.task-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    grid-template-areas: "details checklist";
    align-items: start;
    gap: 22px;
}
.task-settings-main-fields {
    display: grid;
    grid-area: details;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 14px;
}
.task-settings-field { display: grid; min-width: 0; align-content: start; gap: 6px; }
.task-settings-field-wide { grid-column: 1 / -1; }
.task-settings-field .project-settings-development { margin: 0; }
.task-date-field-control { display: flex; min-width: 0; align-items: center; gap: 6px; }
.task-date-field-control input { min-width: 0; flex: 1; }
.task-date-field-control button { width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid #dbe4f0; border-radius: 9px; background: #fff; color: #64748b; cursor: pointer; font-size: 19px; line-height: 1; }
.task-date-field-control button:hover { border-color: #fca5a5; color: #b42318; }
.task-date-field-control button:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.task-settings-form .task-checklist {
    position: sticky;
    top: 0;
    grid-area: checklist;
    max-height: calc(90vh - 150px);
    overflow-y: auto;
}
.task-settings-form .task-checklist-items { max-height: min(42vh, 360px); overflow-y: auto; padding-right: 4px; }
.task-settings-form .task-checklist-empty[hidden] { display: none; }

.kanban-card-comments-row { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; margin: 0 0 0 auto; }
.kanban-card-comments-button { align-self: center; padding: 3px 7px; border: 1px solid #dbe4f0; border-radius: 8px; background: #fff; color: var(--indigo-dark); cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
.kanban-card-comments-button:hover { border-color: var(--indigo); }
.kanban-card-comments-button:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.kanban-card-comment-count { display: inline-flex; min-width: 22px; height: 22px; align-items: center; justify-content: center; padding: 0 6px; border: 1px solid #e2e8f0; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 11px; font-weight: 700; line-height: 1; }
.kanban-card-comment-count.has-comments { border-color: #c7d2fe; background: #eef2ff; color: #4338ca; }
.kanban-card-comment-count.is-unread { border-color: #fca5a5; background: #fef2f2; color: #b91c1c; }
.task-comments-dialog[open] { display: flex; width: min(92vw, 640px); height: min(85vh, 800px); max-height: min(85vh, 800px); flex-direction: column; overflow: hidden; padding: 24px; box-sizing: border-box; }
@supports (height: 1dvh) {
    .task-comments-dialog[open] { height: min(85dvh, 800px); max-height: 85dvh; }
}
.task-comments-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.task-comments-heading,
.task-comments-status,
.task-comments-form { flex: 0 0 auto; }
.task-comments-heading h2 { margin: 0; font-size: 21px; }
.task-comments-heading p { margin: 5px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.task-comments-list { display: grid; min-height: 0; flex: 1 1 auto; gap: 12px; overflow-y: auto; overscroll-behavior: contain; margin: 20px 0; padding: 0 5px 0 0; list-style: none; }
.task-comments-list li { padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 11px; background: #f8fafc; }
.task-comment-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 13px; }
.task-comment-heading time { color: var(--muted); }
.task-comment-actions { display: flex; gap: 6px; margin-left: auto; }
.task-comment-actions button { padding: 4px 8px; border: 1px solid #dbe4f0; border-radius: 7px; background: #fff; color: #475569; cursor: pointer; font: inherit; font-size: 12px; }
.task-comment-actions button:hover { border-color: var(--indigo); color: var(--indigo-dark); }
.task-comment-edit-form { display: grid; gap: 8px; margin-top: 10px; }
.task-comment-edit-form[hidden] { display: none !important; }
.task-comment-edit-form textarea { width: 100%; min-height: 76px; box-sizing: border-box; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 9px; resize: vertical; font: inherit; }
.task-comment-edit-actions { display: flex; justify-content: flex-end; gap: 7px; }
.task-comment-edit-actions button { padding: 7px 11px; border: 1px solid #dbe4f0; border-radius: 8px; background: #fff; color: #475569; cursor: pointer; font: inherit; font-size: 13px; }
.task-comment-edit-actions button[type="submit"] { border-color: var(--indigo); background: var(--indigo); color: #fff; }
.task-comment-actions button:focus-visible,
.task-comment-edit-form textarea:focus-visible,
.task-comment-edit-actions button:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.task-comments-list li p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.task-comments-empty { margin: 20px 0; color: var(--muted); }
.task-comments-empty[hidden] { display: none; }
.task-comments-form { display: grid; gap: 9px; margin-top: 18px; }
.task-comments-form label { font-weight: 700; }
.task-comments-form textarea { width: 100%; min-height: 86px; max-height: 140px; box-sizing: border-box; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 9px; resize: vertical; font: inherit; }
.task-comments-form textarea:focus-visible,
.task-comments-form button:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.task-comment-mention-hint { margin: -3px 0 0; color: var(--muted); font-size: 12px; }
.task-comment-mention-suggestions { display: grid; gap: 3px; max-height: 150px; overflow-y: auto; margin: -4px 0 0; padding: 5px; border: 1px solid #dbe4f0; border-radius: 9px; background: #fff; box-shadow: 0 8px 20px rgb(30 41 59 / 10%); list-style: none; }
.task-comment-mention-suggestions[hidden] { display: none !important; }
.task-comment-mention-suggestions li { margin: 0; color: var(--muted); font-size: 13px; }
.task-comment-mention-suggestions button { width: 100%; justify-self: stretch; padding: 7px 9px; border: 0; border-radius: 6px; background: transparent; color: #334155; text-align: left; cursor: pointer; font: inherit; font-weight: 500; }
.task-comment-mention-suggestions button:hover,
.task-comment-mention-suggestions button[aria-selected="true"] { background: #eef2ff; color: var(--indigo-dark); }
.task-comments-form button { justify-self: end; padding: 9px 16px; border: 0; border-radius: 9px; background: var(--indigo); color: #fff; cursor: pointer; font: inherit; font-weight: 700; }
.task-comments-form button:disabled { opacity: .55; cursor: default; }
@media (max-width: 680px) {
    .task-comments-dialog[open] { width: calc(100vw - 24px); padding: 16px; }
}
.kanban-activity-comment-link { padding: 0; border: 0; background: none; color: var(--indigo-dark); cursor: pointer; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.kanban-activity-comment-link:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }

.milestone-manager-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); align-items: start; gap: 20px; }
.milestone-manager-form-panel,
.milestone-manager-list-panel { min-width: 0; padding: 22px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgb(30 41 59 / 5%); }
.milestone-manager-form-panel { display: grid; gap: 16px; }
.milestone-manager-list-panel { display: grid; gap: 12px; }
.kanban-milestones-view { margin-bottom: 30px; }
.kanban-milestones-view[hidden] { display: none !important; }
.milestone-manager-form-panel .project-settings-heading { margin: 0; }
.milestone-edit-form { display: grid; gap: 12px; }
.milestone-edit-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.milestone-field-wide { grid-column: 1 / -1; }
.milestone-edit-fields input[type="color"] { width: 54px; height: 42px; padding: 3px; }
.milestone-manager-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 10px; }
.milestone-manager-list-heading h3 { margin: 0; font-size: 16px; }
.milestone-list { display: grid; gap: 9px; max-height: 70vh; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.milestone-manager-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 11px; background: #fff; }
.milestone-manager-details { display: grid; min-width: 0; flex: 1; gap: 5px; }
.milestone-manager-name { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.milestone-color-marker { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: var(--milestone-color, var(--indigo)); }
.milestone-manager-details > p { margin: 0; color: #64748b; font-size: 13px; overflow-wrap: anywhere; }
.milestone-manager-details .milestone-manager-dates { font-size: 12px; }
.milestone-manager-progress { display: flex; align-items: center; gap: 9px; color: #64748b; font-size: 12px; }
.milestone-manager-progress progress { width: min(180px, 30vw); height: 7px; accent-color: var(--indigo); }
.milestone-manager-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.milestone-manager-actions button { width: 34px; height: 34px; border: 1px solid #dbe4f0; border-radius: 8px; background: #fff; color: #475569; cursor: pointer; }
.milestone-manager-actions button:hover { border-color: var(--indigo); color: var(--indigo); }
.milestone-manager-actions [data-delete-milestone]:hover { border-color: #fecaca; color: #b42318; }
.milestone-manager-actions button:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }

.project-settings-heading,
.project-settings-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.project-settings-heading { margin-bottom: 8px; }
.project-settings-heading h2 { margin: 0; font-size: 22px; }

.project-settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid #e2e8f0;
}

.project-settings-tabs button {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.project-settings-tabs button[aria-selected="true"] {
    border-bottom-color: var(--indigo);
    color: var(--indigo-dark);
}

.project-settings-tabs button:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }

.project-settings-panel {
    display: grid;
    gap: 11px;
}

.project-settings-panel[hidden] { display: none; }
.project-settings-development { margin: 14px 0; color: var(--muted); }

.project-settings-close {
    width: 36px;
    height: 36px;
    border: 1px solid #dbe4f0;
    border-radius: 50%;
    background: #fff;
    font-size: 23px;
    cursor: pointer;
}

.project-settings-form label { font-size: 13px; font-weight: 700; }
.project-settings-form input,
.project-settings-form textarea,
.project-settings-form select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #dbe4f0;
    border-radius: 9px;
    font: inherit;
}

.project-settings-form textarea { resize: vertical; }
.project-settings-status { min-height: 18px; margin: 0; color: var(--muted); font-size: 12px; }
.project-settings-actions button { padding: 10px 14px; border: 0; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.project-settings-actions button[type="submit"] { background: var(--indigo); color: #fff; }
.project-settings-actions .project-delete-button { background: #fef2f2; color: #b42318; }
.project-settings-actions .column-archive-button { border: 1px solid #dbe4f0; background: #f8fafc; color: #475569; }

.task-checklist {
    display: grid;
    min-width: 0;
    gap: 10px;
    margin: 8px 0;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.task-checklist legend { padding: 0 6px; font-size: 15px; font-weight: 700; }
.task-checklist-progress { display: grid; grid-template-columns: auto minmax(70px, 1fr); align-items: center; gap: 12px; color: #64748b; font-size: 12px; }
.task-checklist-progress progress { width: 100%; height: 8px; accent-color: var(--indigo); }
.task-checklist-items { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.task-checklist-item { display: grid; grid-template-columns: 20px minmax(0, 1fr) 30px; align-items: center; gap: 8px; }
.task-checklist-items input[type="checkbox"] { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--indigo); }
.task-checklist-item-title { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.task-checklist-item.is-completed .task-checklist-item-title { color: #64748b; text-decoration: line-through; }
.task-checklist-item button { width: 30px; height: 30px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #64748b; cursor: pointer; font-size: 18px; }
.task-checklist-item button:hover { border-color: #fecaca; color: #b42318; }
.task-checklist-empty { margin: 0; color: #64748b; font-size: 13px; }
.task-checklist-add { display: flex; gap: 8px; }
.task-checklist-add input { min-width: 0; flex: 1; }
.task-checklist-add button { flex: 0 0 auto; padding: 8px 12px; border: 0; border-radius: 9px; background: var(--indigo); color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }
.task-checklist-add button:disabled { opacity: .5; cursor: default; }
.task-checklist-add button:focus-visible,
.task-checklist-item button:focus-visible,
.task-checklist-items input:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }

@media (max-width: 820px) {
    .task-settings-dialog { width: min(96vw, 720px); max-height: 92vh; }
    .task-settings-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "details" "checklist"; }
    .task-settings-form .task-checklist { position: static; max-height: none; }
    .task-settings-form .task-checklist-items { max-height: 32vh; }
    .milestone-manager-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
    .task-settings-form { padding: 18px; }
    .task-settings-main-fields { grid-template-columns: minmax(0, 1fr); }
    .task-settings-field-wide { grid-column: auto; }
    .milestone-edit-fields { grid-template-columns: minmax(0, 1fr); }
    .milestone-field-wide { grid-column: auto; }
    .milestone-manager-item { align-items: flex-start; flex-direction: column; }
    .milestone-manager-actions { align-self: flex-end; }
}

.column-color-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.column-color-control input[type="color"] {
    width: 48px;
    height: 40px;
    padding: 3px;
}

.column-color-reset {
    padding: 8px 10px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.column-color-reset:hover { border-color: var(--indigo); color: var(--indigo); }

.archived-columns-dialog { max-height: 88vh; overflow: auto; }

.archived-column-list {
    display: grid;
    gap: 8px;
    max-height: 50vh;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.archived-column-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.archived-column-item > span { min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.archived-column-item > div { display: flex; flex: 0 0 auto; gap: 6px; }
.archived-column-item button { padding: 7px 9px; border: 1px solid #dbe4f0; border-radius: 7px; background: #fff; color: #475569; cursor: pointer; }
.archived-column-item button:hover { border-color: var(--indigo); color: var(--indigo); }
.archived-column-item .archived-column-delete { border-color: #fecaca; background: #fef2f2; color: #b42318; }

.project-settings-form input:focus-visible,
.project-settings-form textarea:focus-visible,
.project-settings-form select:focus-visible,
.project-settings-actions button:focus-visible,
.project-settings-close:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }

.kanban-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.kanban-eyebrow {
    margin: 0 0 10px;
    color: var(--indigo);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.kanban-intro h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -.045em;
}

.project-access-indicator {
    display: grid;
    flex: 0 0 auto;
    gap: 4px;
    padding: 10px 14px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #fff;
    color: #64748b;
    font-size: 13px;
}

.project-access-indicator strong {
    color: var(--indigo-dark);
    font-size: 14px;
}

.kanban-description,
.kanban-prototype-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.kanban-prototype-note {
    max-width: 290px;
    padding: 10px 14px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #fff;
    font-size: 13px;
}

.kanban-stats {
    margin-bottom: 30px;
}

.kanban-planning {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgb(30 41 59 / 3%);
}

.kanban-planning-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px 12px;
}

.kanban-planning-header h2 { margin: 0; color: #1e293b; font-size: 17px; }
.kanban-planning-tabs button:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }

.kanban-planning-navigation {
    display: flex;
    min-width: 0;
    align-items: stretch;
    border-bottom: 1px solid #e2e8f0;
}

.kanban-planning-tabs {
    display: flex;
    min-width: 0;
    flex: 1;
    gap: 6px;
    overflow-x: auto;
    padding: 0 0 0 20px;
}

.kanban-planning-tabs button {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    gap: 8px;
    margin-bottom: -1px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-bottom-color: #e2e8f0;
    border-radius: 9px 9px 0 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}

.kanban-planning-tabs button[aria-selected="true"] {
    border-color: #e2e8f0;
    border-bottom-color: #fff;
    background: #fff;
    color: #3730a3;
}

.kanban-planning-count {
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
}
.kanban-planning-tabs button[aria-selected="true"] .kanban-planning-count { background: #eef2ff; color: #4338ca; }

.kanban-planning-panel { padding: 16px 20px 18px; }
.kanban-planning-panel[hidden] { display: none; }

.kanban-activity-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kanban-activity-item {
    display: grid;
    gap: 5px;
    padding: 13px 2px;
    border-bottom: 1px solid #edf0f5;
}

.kanban-activity-item:first-child { padding-top: 0; }
.kanban-activity-item:last-child { border-bottom: 0; }
.kanban-activity-item p { margin: 0; color: #475569; line-height: 1.5; }
.kanban-activity-item p strong:first-child { color: #1e293b; }
.kanban-activity-item p strong:last-child { color: #334155; }
.kanban-activity-item time,
.kanban-activity-details,
.kanban-activity-status { color: #64748b; font-size: 13px; }
.kanban-activity-item time { justify-self: start; }
.kanban-activity-changes { color: #475569; font-size: 13px; }
.kanban-activity-changes summary { width: fit-content; color: #4f46e5; cursor: pointer; font-weight: 600; }
.kanban-activity-changes ul { display: grid; gap: 7px; margin: 8px 0 0; padding-left: 20px; }
.kanban-activity-changes li { overflow-wrap: anywhere; line-height: 1.5; }
.kanban-activity-changes del { color: #b42318; white-space: pre-wrap; }
.kanban-activity-changes ins { color: #087443; text-decoration: none; white-space: pre-wrap; }

.kanban-activity-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-top: 16px;
}
.kanban-activity-pagination[hidden] { display: none; }
.kanban-activity-pagination button {
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid #dbe1ea;
    border-radius: 9px;
    background: #fff;
    color: #334155;
    cursor: pointer;
}
.kanban-activity-pagination button:disabled { cursor: not-allowed; opacity: .5; }
.kanban-activity-pagination span { color: #64748b; font-size: 13px; }

.kanban-upcoming-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kanban-upcoming-entry {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-upcoming-open {
    display: flex;
    width: 100%;
    min-width: 0;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.kanban-upcoming-open:hover { border-color: #a5b4fc; background: #f5f5ff; }
.kanban-upcoming-item button:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.kanban-upcoming-edit {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    font-size: 17px;
}
.kanban-upcoming-edit:hover { border-color: #a5b4fc; color: var(--indigo); }
.kanban-upcoming-task { min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.kanban-upcoming-meta { flex: 0 0 auto; color: #64748b; font-size: 13px; text-align: right; }
.kanban-upcoming-today { color: #b45309; font-weight: 700; }
.kanban-upcoming-empty { margin: 0; padding: 5px 0; color: #64748b; font-size: 14px; }

.kanban-milestone-overview-list {
    display: grid;
    gap: 9px;
    max-height: 360px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kanban-milestone-overview-item {
    min-width: 0;
}

.kanban-milestone-overview-select {
    display: grid;
    width: 100%;
    gap: 6px;
    padding: 11px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.kanban-milestone-overview-select:hover,
.kanban-milestone-overview-select[aria-pressed="true"] { border-color: #818cf8; background: #f5f5ff; }
.kanban-milestone-overview-select[aria-pressed="true"] { box-shadow: inset 3px 0 #6366f1; }
.kanban-milestone-overview-select:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.kanban-milestone-overview-heading { display: flex; min-width: 0; align-items: center; gap: 8px; }
.kanban-milestone-overview-heading strong { min-width: 0; overflow-wrap: anywhere; }
.kanban-milestone-overview-percentage { margin-left: auto; color: var(--indigo-dark); font-size: 13px; font-weight: 700; white-space: nowrap; }
.kanban-milestone-overview-item progress { display: block; width: 100%; height: 7px; accent-color: var(--indigo); }
.kanban-milestone-overview-meta,
.kanban-milestone-overview-tasks { color: #64748b; font-size: 12px; }
.kanban-milestone-highlight-status { margin: 0 0 12px; color: #475569; font-size: 13px; }

.kanban-board.has-milestone-highlight .kanban-card { transition: opacity .18s ease, box-shadow .18s ease, outline-color .18s ease; }
.kanban-board.has-milestone-highlight .kanban-card.is-milestone-muted,
.kanban-board.has-milestone-highlight .kanban-column.is-milestone-muted { opacity: .38; }
.kanban-board.has-milestone-highlight .kanban-card.is-milestone-highlighted {
    position: relative;
    z-index: 1;
    outline: none;
    box-shadow: inset 0 0 0 2px #6366f1, 0 8px 22px rgb(79 70 229 / 14%);
}
.kanban-board.has-milestone-highlight .kanban-card.is-milestone-highlighted.is-overdue {
    box-shadow: inset 0 0 0 2px #6366f1, 0 0 0 2px rgb(220 38 38 / 32%);
}
.kanban-board.has-milestone-highlight .kanban-column.is-milestone-match {
    box-shadow: 0 0 0 3px rgb(99 102 241 / 20%), 0 10px 28px rgb(30 41 59 / 4%);
}

.kanban-card.is-upcoming-target { animation: kanban-deadline-highlight 1.8s ease-out; }

@keyframes kanban-deadline-highlight {
    0%, 35% { outline: 3px solid #818cf8; outline-offset: 2px; }
    100% { outline: 3px solid transparent; outline-offset: 2px; }
}

@media (max-width: 560px) {
    .kanban-planning-header { align-items: flex-start; flex-direction: column; }
    .kanban-planning-tabs { padding-left: 12px; }
    .kanban-planning-panel { padding: 14px 12px 16px; }
    .kanban-upcoming-open { align-items: flex-start; flex-direction: column; gap: 5px; }
    .kanban-upcoming-meta { text-align: left; }
}

.kanban-column-toolbar {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.kanban-card-search { position: relative; width: min(420px, 100%); }
.kanban-card-search-input-wrap { position: relative; }
.kanban-card-search-input-wrap input { width: 100%; min-height: 42px; box-sizing: border-box; padding: 9px 40px 9px 12px; border: 1px solid #dbe4f0; border-radius: 10px; background: #fff; font: inherit; }
.kanban-card-search-input-wrap input::-webkit-search-cancel-button { display: none; }
.kanban-card-search-input-wrap input:focus-visible { border-color: var(--indigo); outline: 3px solid #c7d2fe; outline-offset: 1px; }
.kanban-card-search-clear { position: absolute; top: 50%; right: 7px; display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; transform: translateY(-50%); border: 0; border-radius: 50%; background: transparent; color: #64748b; cursor: pointer; font: inherit; font-size: 20px; line-height: 1; }
.kanban-card-search-clear:hover { background: #f1f5f9; color: #1e293b; }
.kanban-card-search-clear:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 1px; }
.kanban-card-search-clear[hidden] { display: none !important; }
.kanban-card-search-results { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #dbe4f0; border-radius: 13px; background: #fff; box-shadow: 0 16px 40px rgb(15 23 42 / 16%); }
.kanban-card-search-results[hidden] { display: none !important; }
.kanban-card-search-status { margin: 2px 4px 8px; color: #64748b; font-size: 12px; }
.kanban-card-search-results ul { display: grid; max-height: min(56vh, 420px); gap: 5px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.kanban-card-search-results li { min-width: 0; }
.kanban-card-search-results li button { display: grid; width: 100%; gap: 3px; padding: 9px 10px; border: 1px solid transparent; border-radius: 9px; background: #fff; color: #1e293b; cursor: pointer; text-align: left; font: inherit; }
.kanban-card-search-results li button:hover,
.kanban-card-search-results li button:focus-visible { border-color: #c7d2fe; background: #f5f5ff; outline: none; }
.kanban-card-search-result-heading { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; }
.kanban-card-search-result-heading strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kanban-card-search-result-column { flex: 0 0 auto; color: #4f46e5; font-size: 11px; font-weight: 700; }
.kanban-card-search-result-description { overflow: hidden; color: #64748b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.kanban-card-search-empty { margin: 10px 4px 4px; color: #64748b; font-size: 13px; }
.kanban-card-search-empty[hidden] { display: none !important; }
.kanban-card.is-search-highlighted { border-color: #6366f1; box-shadow: 0 0 0 4px rgb(99 102 241 / 22%); }
.kanban-card.is-overdue.is-search-highlighted { box-shadow: 0 0 0 2px rgb(220 38 38 / 28%), inset 0 0 0 2px #6366f1; }

.kanban-column-toolbar button {
    padding: 8px 12px;
    border: 1px solid #dbe4f0;
    border-radius: 9px;
    background: #fff;
    color: #475569;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.kanban-column-toolbar button:hover { border-color: var(--indigo); color: var(--indigo); }

.kanban-progress-card {
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    box-shadow: 0 10px 28px rgb(30 41 59 / 4%);
    background: linear-gradient(125deg, #fff, #f0f2ff);
}

.kanban-progress-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.kanban-progress-card h2 {
    margin: 0;
    font-size: 17px;
}

.kanban-progress-heading strong {
    color: var(--indigo-dark);
    font-size: 20px;
    white-space: nowrap;
}

.kanban-progress-card progress {
    display: block;
    width: 100%;
    height: 11px;
    margin: 16px 0 0;
    border: 0;
    border-radius: 999px;
    accent-color: var(--indigo);
    overflow: hidden;
}

.kanban-progress-card progress::-webkit-progress-bar { background: #e2e8f0; }
.kanban-progress-card progress::-webkit-progress-value { background: var(--indigo); }
.kanban-progress-card progress::-moz-progress-bar { background: var(--indigo); }

.kanban-view-switch {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}
.kanban-view-switch [role="tablist"] { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid #e2e8f0; border-radius: 11px; background: #f1f5f9; }
.kanban-view-switch [data-project-view] { min-height: 36px; padding: 7px 14px; border: 0; border-radius: 8px; background: transparent; color: #64748b; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }
.kanban-view-switch [data-project-view][aria-selected="true"] { background: #fff; color: #4338ca; box-shadow: 0 1px 3px rgb(15 23 42 / 10%); }
.kanban-activity-unread-badge:not([hidden]) { display: inline-flex; min-width: 19px; height: 19px; align-items: center; justify-content: center; margin-left: 7px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; line-height: 1; }
.kanban-view-switch [data-project-view]:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.kanban-editor-view[hidden],
.kanban-roadmap-view[hidden],
.kanban-activity-view[hidden] { display: none !important; }
.kanban-milestones-view[hidden] { display: none !important; }

.kanban-roadmap-view {
    margin-bottom: 30px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgb(30 41 59 / 5%);
}

.kanban-activity-view {
    margin-bottom: 30px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgb(30 41 59 / 5%);
}

.kanban-activity-heading {
    margin-bottom: 18px;
}

.kanban-activity-heading h2 {
    margin: 0;
    color: #1e293b;
    font-size: 20px;
}
.roadmap-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.roadmap-toolbar h2 { margin: 0; color: #1e293b; font-size: 20px; }
.roadmap-toolbar p { margin: 5px 0 0; color: #64748b; font-size: 13px; }
.roadmap-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.roadmap-controls > button,
.roadmap-zoom-controls button { min-height: 36px; padding: 7px 11px; border: 1px solid #dbe4f0; border-radius: 9px; background: #fff; color: #475569; cursor: pointer; font: inherit; font-size: 13px; }
.roadmap-controls > button:hover,
.roadmap-zoom-controls button:hover:not(:disabled) { border-color: var(--indigo); color: var(--indigo); }
.roadmap-controls button:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.roadmap-deadline-toggle { display: inline-flex; min-height: 36px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; color: #475569; cursor: pointer; font-size: 12px; white-space: nowrap; }
.roadmap-deadline-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--indigo); }
.roadmap-zoom-controls { display: inline-flex; align-items: center; gap: 7px; padding: 3px; border: 1px solid #e2e8f0; border-radius: 11px; background: #f8fafc; }
.roadmap-zoom-controls button { width: 34px; min-height: 30px; padding: 0; font-size: 18px; }
.roadmap-zoom-controls button:disabled { opacity: .4; cursor: default; }
.roadmap-zoom-controls span { min-width: 110px; color: #475569; font-size: 12px; text-align: center; white-space: nowrap; }
.roadmap-empty { margin: 12px 0; padding: 18px; border: 1px dashed #cbd5e1; border-radius: 12px; color: #64748b; text-align: center; }
.roadmap-scroll { overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid #e2e8f0; border-radius: 13px; scrollbar-color: #cbd5e1 #f8fafc; }
.roadmap-scroll[hidden] { display: none; }
.roadmap-canvas { min-width: 860px; }
.roadmap-axis,
.roadmap-row { display: grid; grid-template-columns: 240px minmax(600px, 1fr); }
.roadmap-axis { position: sticky; top: 0; z-index: 4; min-height: 48px; background: #f8fafc; }
.roadmap-axis-label,
.roadmap-milestone-label { position: sticky; left: 0; z-index: 2; }
.roadmap-axis-label { display: flex; align-items: center; padding: 0 14px; border-right: 1px solid #e2e8f0; color: #64748b; font-size: 12px; font-weight: 700; }
.roadmap-axis-track { position: relative; display: grid; min-width: 0; border-bottom: 1px solid #e2e8f0; }
.roadmap-axis-tick { display: flex; align-items: center; padding: 0 9px; border-left: 1px solid #e2e8f0; color: #64748b; font-size: 12px; white-space: nowrap; }
.roadmap-today-label { position: absolute; top: 3px; z-index: 3; padding: 2px 5px; border-radius: 5px; background: #4f46e5; color: #fff; font-size: 10px; font-weight: 700; transform: translateX(-50%); white-space: nowrap; }
.roadmap-rows { display: grid; margin: 0; padding: 0; list-style: none; }
.roadmap-row { min-height: 68px; }
.roadmap-milestone-label { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 10px 12px; border: 0; border-right: 1px solid #e2e8f0; border-bottom: 1px solid #eef2f7; background: #fff; color: #334155; text-align: left; cursor: pointer; font: inherit; }
.roadmap-milestone-label strong { min-width: 0; flex: 1; overflow-wrap: anywhere; font-size: 13px; }
.roadmap-milestone-label:hover,
.roadmap-milestone-label[aria-pressed="true"] { background: #f5f5ff; }
.roadmap-milestone-progress-label { color: #4f46e5; font-size: 12px; font-weight: 700; white-space: nowrap; }
.roadmap-track { position: relative; min-height: 68px; border-bottom: 1px solid #eef2f7; background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(var(--roadmap-tick-width) - 1px), #e2e8f0 calc(var(--roadmap-tick-width) - 1px), #e2e8f0 var(--roadmap-tick-width)); }
.roadmap-milestone-bar { position: absolute; top: 50%; z-index: 1; height: 23px; min-width: 12px; overflow: hidden; padding: 0; border: 1px solid color-mix(in srgb, var(--milestone-color) 55%, white); border-radius: 999px; background: color-mix(in srgb, var(--milestone-color) 16%, white); cursor: pointer; transform: translateY(-50%); }
.roadmap-milestone-bar,
.roadmap-milestone-point { touch-action: none; cursor: grab; }
.roadmap-milestone-bar:active,
.roadmap-milestone-point:active { cursor: grabbing; }
.roadmap-milestone-bar-progress { display: block; height: 100%; border-radius: inherit; background: color-mix(in srgb, var(--milestone-color) 76%, white); }
.roadmap-milestone-bar:hover,
.roadmap-milestone-bar[aria-pressed="true"] { outline: 3px solid rgb(99 102 241 / 28%); outline-offset: 2px; }
.roadmap-milestone-point { position: absolute; top: 50%; z-index: 2; width: 15px; height: 15px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--milestone-color, var(--indigo)); box-shadow: 0 0 0 2px var(--milestone-color, var(--indigo)); cursor: pointer; transform: translate(-50%, -50%); }
.roadmap-milestone-point:hover,
.roadmap-milestone-point[aria-pressed="true"] { transform: translate(-50%, -50%) scale(1.3); }
.roadmap-task-deadline-marker { position: absolute; top: 78%; z-index: 3; display: grid; width: 21px; height: 21px; place-items: center; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #6366f1; box-shadow: 0 0 0 1px #4f46e5, 0 2px 5px rgb(15 23 42 / 18%); color: #fff; cursor: pointer; transform: translate(-50%, -50%); }
.roadmap-task-deadline-marker span { font-size: 10px; font-weight: 800; line-height: 1; }
.roadmap-task-deadline-marker.is-overdue { background: #dc2626; box-shadow: 0 0 0 1px #b91c1c, 0 2px 5px rgb(15 23 42 / 18%); }
.roadmap-task-deadline-marker.is-completed { background: #0f766e; box-shadow: 0 0 0 1px #0f766e, 0 2px 5px rgb(15 23 42 / 18%); }
.roadmap-task-deadline-marker:hover { z-index: 4; transform: translate(-50%, -50%) scale(1.18); }
.roadmap-task-deadline-marker:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 3px; }
.roadmap-today-line { position: absolute; top: 0; bottom: 0; z-index: 2; width: 2px; background: #6366f1; opacity: .68; pointer-events: none; }
.roadmap-unplanned { margin-top: 20px; }
.roadmap-unplanned h3 { margin: 0 0 9px; color: #475569; font-size: 14px; }
.roadmap-unplanned ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.roadmap-unplanned li { display: grid; gap: 6px; }
.roadmap-unplanned-item { display: flex; width: 100%; min-height: 42px; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; color: #334155; text-align: left; cursor: pointer; font: inherit; }
.roadmap-unplanned-item strong { flex: 1; }
.roadmap-unplanned-item:hover,
.roadmap-unplanned-item[aria-pressed="true"] { border-color: #a5b4fc; background: #f5f5ff; }
.roadmap-detail { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 17px 18px; border: 1px solid #e0e7ff; border-radius: 13px; background: linear-gradient(120deg, #fafaff, #fff); }
.roadmap-detail[hidden] { display: none; }
.roadmap-detail h3 { margin: 0; color: #1e293b; font-size: 16px; }
.roadmap-detail p { margin: 5px 0 0; color: #64748b; font-size: 13px; }
.roadmap-detail > button { flex: 0 0 auto; padding: 9px 13px; border: 0; border-radius: 9px; background: var(--indigo); color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }
.roadmap-detail-progress { display: flex; max-width: 360px; align-items: center; gap: 9px; margin-top: 9px; color: #64748b; font-size: 12px; }
.roadmap-detail-progress progress { width: min(220px, 45vw); height: 7px; accent-color: var(--indigo); }
.roadmap-unplanned-deadlines,
.roadmap-mobile-deadlines { margin-left: 12px; color: #64748b; font-size: 12px; }
.roadmap-unplanned-deadlines > summary,
.roadmap-mobile-deadlines > summary { padding: 5px 3px; cursor: pointer; }
.roadmap-deadline-detail { margin-top: 14px; padding: 14px; border: 1px solid #e0e7ff; border-radius: 12px; background: #fafaff; }
.roadmap-deadline-detail[hidden] { display: none; }
.roadmap-deadline-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.roadmap-deadline-detail-heading h3 { margin: 0; color: #334155; font-size: 14px; }
.roadmap-deadline-detail-heading button { width: 30px; height: 30px; border: 1px solid #dbe4f0; border-radius: 8px; background: #fff; color: #64748b; cursor: pointer; font-size: 18px; }
.roadmap-deadline-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.roadmap-deadline-task { display: flex; width: 100%; min-width: 0; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; color: #334155; text-align: left; cursor: pointer; font: inherit; }
.roadmap-deadline-task:hover { border-color: #a5b4fc; background: #f8faff; }
.roadmap-deadline-task strong { min-width: 0; flex: 1; overflow-wrap: anywhere; font-size: 12px; }
.roadmap-deadline-task > span { color: #64748b; font-size: 11px; }
.roadmap-deadline-task.is-overdue { border-left: 3px solid #dc2626; }
.roadmap-deadline-task.is-completed { border-left: 3px solid #0f766e; }
.roadmap-deadline-task.is-completed strong { color: #64748b; text-decoration: line-through; }
.roadmap-deadline-task:focus-visible,
.roadmap-deadline-detail-heading button:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.roadmap-mobile-list { display: none; margin: 0; padding: 0; list-style: none; }
.roadmap-mobile-row { min-width: 0; }
.roadmap-mobile-item { display: grid; width: 100%; gap: 8px; margin-bottom: 9px; padding: 13px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; color: #475569; text-align: left; cursor: pointer; font: inherit; font-size: 12px; }
.roadmap-mobile-item:hover,
.roadmap-mobile-item[aria-pressed="true"] { border-color: #a5b4fc; background: #fafaff; box-shadow: 0 0 0 2px rgb(99 102 241 / 10%); }
.roadmap-mobile-heading { display: flex; align-items: center; gap: 8px; color: #1e293b; }
.roadmap-mobile-heading strong { flex: 1; overflow-wrap: anywhere; }
.roadmap-mobile-heading > span:last-child { color: #4f46e5; font-weight: 700; }
.roadmap-mobile-item progress { width: 100%; height: 7px; accent-color: var(--indigo); }

@media (max-width: 820px) {
    .roadmap-toolbar { flex-direction: column; }
    .roadmap-controls { justify-content: flex-start; }
    .roadmap-scroll:not([hidden]) { display: none; }
    .roadmap-mobile-list { display: grid; }
}

@media (max-width: 560px) {
    .kanban-column-toolbar { align-items: stretch; flex-direction: column; }
    .kanban-card-search { width: 100%; }
    .kanban-column-toolbar > button { align-self: flex-end; }
    .kanban-view-switch { justify-content: stretch; }
    .kanban-view-switch [role="tablist"] { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kanban-view-switch [data-project-view] { width: 100%; }
    .kanban-roadmap-view { padding: 15px; }
    .kanban-activity-view { padding: 15px; }
    .milestone-manager-layout { grid-template-columns: minmax(0, 1fr); }
    .milestone-manager-form-panel, .milestone-manager-list-panel { padding: 16px; }
    .roadmap-toolbar h2 { font-size: 18px; }
    .roadmap-controls { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .roadmap-controls > button { white-space: nowrap; }
    .roadmap-zoom-controls { grid-column: 1 / -1; justify-content: center; }
    .roadmap-detail { align-items: stretch; flex-direction: column; }
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    align-items: start;
    gap: 20px;
    overflow: visible;
    padding-bottom: 16px;
}

.kanban-save-status {
    min-height: 20px;
    margin-top: 8px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
}

.kanban-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 340px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-top: 3px solid var(--kanban-column-color, #94a3b8);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgb(30 41 59 / 5%);
}

.kanban-column-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    cursor: grab;
}

.kanban-column-header:active { cursor: grabbing; }

.kanban-column.is-column-dragging {
    background: #f5f3ff;
    border-style: dashed;
    box-shadow: none;
}

.kanban-column.is-column-dragging > * { visibility: hidden; }

.kanban-column.is-column-drop-target {
    outline: 2px dashed var(--indigo);
    outline-offset: 4px;
}

.kanban-column-marker {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--kanban-column-color, #94a3b8);
}

.kanban-column-header h2 {
    min-width: 0;
    margin: 0;
    font-size: 17px;
    overflow-wrap: anywhere;
}

.kanban-count {
    margin-left: auto;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
}

.kanban-column-actions {
    display: flex;
    gap: 4px;
    margin-left: 4px;
}

.kanban-column-actions button {
    width: 27px;
    height: 27px;
    border: 1px solid #dbe4f0;
    border-radius: 7px;
    background: #fff;
    color: #475569;
    cursor: pointer;
}

.kanban-column-actions button:hover:not(:disabled) {
    border-color: var(--indigo);
    color: var(--indigo);
}

.kanban-column-actions button:disabled { opacity: .35; cursor: default; }

.kanban-column-actions button:focus-visible {
    outline: 3px solid #a5b4fc;
    outline-offset: 2px;
}

.kanban-column-actions .kanban-column-settings-button {
    color: #64748b;
    font-size: 15px;
}

.kanban-column-actions .kanban-column-settings-button:hover {
    border-color: var(--indigo);
    color: var(--indigo);
}

.kanban-card-list {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 10px;
    min-height: 150px;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.kanban-card {
    flex: 0 0 auto;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    cursor: grab;
}

.kanban-card.is-card-dragging {
    background: #eef2ff;
    outline: 2px dashed var(--indigo);
    outline-offset: -4px;
    box-shadow: none;
}

.kanban-card.is-card-dragging > * { visibility: hidden; }

.kanban-card.is-card-drop-target {
    outline: 2px dashed var(--indigo);
    outline-offset: 2px;
}

.kanban-card.is-overdue {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgb(220 38 38 / 28%);
}

.kanban-card p {
    margin: 0;
    overflow-wrap: anywhere;
}

.kanban-card .kanban-card-title {
    margin-bottom: 10px;
    font-weight: 600;
}
.priority-indicator { display: inline-flex; min-height: 21px; align-items: center; gap: 6px; width: max-content; max-width: 100%; margin: 0 0 9px; padding: 3px 8px; border: 1px solid #cbd5e1; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 11px; font-weight: 650; line-height: 1.2; }
.priority-indicator::before { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; content: ''; }
.priority-indicator.is-low { border-color: #99f6e4; background: #f0fdfa; color: #0f766e; }
.priority-indicator.is-normal { border-color: #cbd5e1; background: #f1f5f9; color: #64748b; }
.priority-indicator.is-high { border-color: #fcd34d; background: #fffbeb; color: #b45309; }
.priority-indicator.is-urgent { border-color: #fca5a5; background: #fef2f2; color: #b91c1c; }

.kanban-card .kanban-card-description-preview {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.kanban-card-milestone {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    padding: 3px 8px;
    border: 1px solid color-mix(in srgb, var(--milestone-color, var(--indigo)) 35%, white);
    border-radius: 999px;
    background: color-mix(in srgb, var(--milestone-color, var(--indigo)) 8%, white);
    color: #475569;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.kanban-card-metadata { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.kanban-card-metadata .kanban-card-milestone { margin: 0; }
.kanban-card-deadline { display: inline-flex; min-height: 21px; align-items: center; padding: 3px 8px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; color: #475569; font-size: 11px; line-height: 1.2; }
.kanban-card-deadline.is-overdue { border-color: #fca5a5; background: #fef2f2; color: #b91c1c; font-weight: 600; }

.kanban-card-milestone::before { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--milestone-color, var(--indigo)); content: ''; }

.kanban-card-checklist {
    display: grid;
    grid-template-columns: auto minmax(45px, 1fr);
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: #64748b;
    font-size: 11px;
}

.kanban-card-checklist progress { width: 100%; height: 6px; accent-color: var(--indigo); }

.kanban-card-actions {
    display: flex;
    gap: 6px;
}

.kanban-card-actions button {
    width: 28px;
    height: 28px;
    border: 1px solid #dbe4f0;
    border-radius: 7px;
    background: #fff;
    color: #475569;
    cursor: pointer;
}

.kanban-card-actions button:hover:not(:disabled) {
    border-color: var(--indigo);
    color: var(--indigo);
}

.kanban-card-actions [data-complete-task] { color: #0f766e; }
.kanban-card-actions [data-complete-task]:disabled {
    border-color: #99f6e4;
    background: #f0fdfa;
    color: #0f766e;
    opacity: 1;
}

.kanban-card-actions button:disabled { opacity: .35; cursor: default; }

.kanban-add-form {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.kanban-add-form input {
    min-width: 0;
    flex: 1;
    padding: 10px;
    border: 1px solid #dbe4f0;
    border-radius: 9px;
    font: inherit;
}

.kanban-add-form button {
    padding: 8px 11px;
    border: 0;
    border-radius: 9px;
    background: var(--indigo);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.kanban-add-form input:focus-visible,
.kanban-add-form button:focus-visible,
.kanban-new-column input:focus-visible,
.kanban-new-column select:focus-visible,
.kanban-new-column button:focus-visible,
.kanban-card-actions button:focus-visible {
    outline: 3px solid #a5b4fc;
    outline-offset: 2px;
}

.kanban-new-column {
    display: grid;
    min-width: 0;
    gap: 12px;
    padding: 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #fff;
}

.kanban-new-column label {
    font-size: 15px;
    font-weight: 700;
}

.kanban-new-column input,
.kanban-new-column select {
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid #dbe4f0;
    border-radius: 9px;
    font: inherit;
}

.kanban-new-column button {
    padding: 11px;
    border: 0;
    border-radius: 9px;
    background: var(--indigo);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .kanban-page .shell { width: 96%; }
    .project-menu-heading { align-items: flex-start; }
    .kanban-intro { align-items: start; flex-direction: column; }
    .kanban-column { min-height: 250px; }
    .kanban-column,
    .kanban-new-column { width: 100%; }
    .kanban-card-list { min-height: 80px; }
}

.hero {
    display: grid;
    min-height: 660px;
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
    gap: 42px;
    padding-top: 58px;
    padding-bottom: 74px;
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding-bottom: 8px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--indigo-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 4px rgb(13 148 136 / 10%);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
.section-heading h2,
.closing-section h2,
.message-page h1 {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
}

h1 {
    margin: 24px 0 21px;
    font-size: clamp(44px, 5vw, 67px);
    line-height: 1.07;
    letter-spacing: -0.075em;
}

h1 span,
.section-heading h2 span,
.closing-section h2 span {
    color: var(--indigo);
}

.hero-description {
    max-width: 465px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 29px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 19px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--indigo);
    box-shadow: 0 9px 20px rgb(99 102 241 / 19%);
    color: var(--white);
}

.button-primary:hover {
    background: var(--indigo-dark);
}

.button-secondary {
    border-color: #e1e5ee;
    background: var(--white);
    color: #424a5b;
}

.button-secondary:hover {
    border-color: #bec4fa;
    color: var(--indigo-dark);
}

.hero-caption {
    margin: 18px 0 0;
    color: var(--soft-muted);
    font-size: 11px;
}

.hero-visual {
    position: relative;
    display: grid;
    min-height: 440px;
    place-items: center;
}

.visual-orbit {
    position: absolute;
    border: 1px solid rgb(99 102 241 / 10%);
    border-radius: 50%;
    pointer-events: none;
}

.visual-orbit-one {
    width: 450px;
    height: 450px;
}

.visual-orbit-two {
    width: 540px;
    height: 540px;
    border-color: rgb(13 148 136 / 9%);
}

.product-preview {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 700px);
    height: auto;
    overflow: visible;
}

.visual-note {
    position: absolute;
    z-index: 2;
    right: -3px;
    bottom: 27px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 16px 12px 12px;
    border: 1px solid rgb(231 234 241 / 90%);
    border-radius: 14px;
    background: rgb(255 255 255 / 95%);
    box-shadow: 0 12px 30px rgb(17 24 39 / 8%);
}

.visual-note-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #e8faf7;
    color: var(--teal);
    font-size: 20px;
}

.visual-note strong,
.visual-note small {
    display: block;
}

.visual-note strong {
    color: #252b39;
    font-size: 11px;
}

.visual-note small {
    margin-top: 3px;
    color: var(--soft-muted);
    font-size: 9px;
}

.features-section {
    padding: 88px 0 96px;
    border-top: 1px solid #ebedf3;
    background: var(--white);
}

.section-heading {
    max-width: 620px;
    margin: 0 auto 43px;
    text-align: center;
}

.section-heading h2 {
    margin: 15px 0 12px;
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.16;
    letter-spacing: -0.06em;
}

.section-heading > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    position: relative;
    min-height: 242px;
    padding: 27px 25px 25px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: linear-gradient(150deg, #fff 0%, #fcfcff 100%);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: #d8dafd;
    box-shadow: 0 16px 35px rgb(17 24 39 / 6%);
}

.feature-number {
    position: absolute;
    top: 26px;
    right: 25px;
    color: #c1c6d2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.feature-icon {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 13px;
}

.feature-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.feature-icon-kanban {
    background: #eef0ff;
    color: var(--indigo);
}

.feature-icon-roadmap {
    background: #e9faf7;
    color: var(--teal);
}

.feature-icon-share {
    background: #f3edff;
    color: #8b5cf6;
}

.feature-card h3 {
    margin: 20px 0 8px;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.collaboration-section {
    position: relative;
    overflow: hidden;
    padding: 95px 0 100px;
    background:
        radial-gradient(ellipse at 90% 35%, rgb(13 148 136 / 7%), transparent 31rem),
        #f3f5fc;
}

.collaboration-layout {
    display: grid;
    grid-template-columns: 1fr 0.96fr;
    align-items: center;
    gap: 65px;
}

.collaboration-copy h2 {
    margin: 18px 0 15px;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(32px, 4vw, 47px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.065em;
}

.collaboration-copy h2 span {
    color: var(--indigo);
}

.collaboration-description {
    max-width: 490px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.collaboration-points {
    display: grid;
    gap: 20px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.collaboration-points li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.collaboration-point-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid #e0e4fa;
    border-radius: 11px;
    background: rgb(255 255 255 / 82%);
    color: var(--indigo);
}

.collaboration-point-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.collaboration-point-copy {
    display: grid;
    gap: 4px;
    padding-top: 1px;
}

.collaboration-point-copy strong {
    color: #252b39;
    font-size: 12px;
    font-weight: 700;
}

.collaboration-point-copy > span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.collaboration-note {
    margin: 19px 0 0;
    color: #868ea0;
    font-size: 10px;
    line-height: 1.6;
}

.collaboration-visual {
    position: relative;
    display: grid;
    min-height: 425px;
    place-items: center;
}

.collaboration-glow {
    position: absolute;
    border: 1px solid rgb(99 102 241 / 12%);
    border-radius: 50%;
    pointer-events: none;
}

.collaboration-glow-one {
    width: 360px;
    height: 360px;
}

.collaboration-glow-two {
    width: 470px;
    height: 470px;
    border-color: rgb(13 148 136 / 10%);
}

.collaboration-preview {
    position: relative;
    z-index: 1;
    width: min(100%, 475px);
    padding: 24px;
    border: 1px solid #e7eaf1;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 27px 65px rgb(17 24 39 / 11%);
}

.collaboration-preview-header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 19px;
    border-bottom: 1px solid #edf0f4;
}

.collaboration-preview-mark {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 12px;
    background: var(--indigo);
    color: #fff;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.collaboration-preview-project,
.collaboration-member-copy,
.collaboration-billing-copy {
    display: grid;
    gap: 4px;
}

.collaboration-preview-project strong {
    color: #252b39;
    font-size: 12px;
}

.collaboration-preview-project small {
    color: var(--soft-muted);
    font-size: 10px;
}

.collaboration-private-badge {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding: 0 9px;
    border: 1px solid #d7f2ec;
    border-radius: 999px;
    background: #f1fcf9;
    color: #0f766e;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.collaboration-private-badge svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.collaboration-members-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 21px 0 9px;
    color: #747d8f;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.collaboration-member-count {
    color: #a0a5b1;
    font-variant-numeric: tabular-nums;
}

.collaboration-member-list {
    display: grid;
}

.collaboration-member-row {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid #f0f1f5;
}

.collaboration-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.collaboration-avatar-owner {
    background: #eef0ff;
    color: var(--indigo-dark);
}

.collaboration-avatar-guest {
    border: 1px dashed #c8cde0;
    background: #fafbfe;
    color: #747d8f;
    font-size: 17px;
    font-weight: 400;
}

.collaboration-member-copy strong {
    color: #303747;
    font-size: 10px;
    font-weight: 700;
}

.collaboration-member-copy small {
    color: #9098a7;
    font-size: 9px;
}

.collaboration-member-check {
    width: 17px;
    height: 17px;
    margin-left: auto;
    fill: none;
    stroke: var(--teal);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.collaboration-pending-dot {
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-radius: 50%;
    background: #c3c8d3;
}

.collaboration-invite-row {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
    padding: 0 11px;
    border: 1px dashed #d8dced;
    border-radius: 10px;
    color: #5c6475;
    font-size: 10px;
    font-weight: 600;
}

.collaboration-invite-icon {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 7px;
    background: #eef0ff;
    color: var(--indigo);
    font-size: 15px;
}

.collaboration-invite-row > svg {
    width: 15px;
    height: 15px;
    margin-left: auto;
    fill: none;
    stroke: #959bad;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.collaboration-billing-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 13px;
    border: 1px solid #e9ebf5;
    border-radius: 11px;
    background: #f8f9fd;
}

.collaboration-billing-icon {
    display: grid;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    place-items: center;
    border-radius: 9px;
    background: #eeefff;
    color: var(--indigo);
}

.collaboration-billing-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.collaboration-billing-copy strong {
    color: #303747;
    font-size: 10px;
}

.collaboration-billing-copy small {
    color: #8a91a0;
    font-size: 9px;
}

.collaboration-billing-spark {
    margin-left: auto;
    color: #818cf8;
    font-size: 16px;
}

.collaboration-preview-footnote {
    margin: 13px 0 0;
    color: #9299a8;
    font-size: 9px;
    text-align: center;
}

.collaboration-floating-note {
    position: absolute;
    z-index: 2;
    right: -8px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px 10px 10px;
    border: 1px solid #e7eaf1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 11px 28px rgb(17 24 39 / 8%);
    color: #4d5668;
    font-size: 9px;
    font-weight: 700;
}

.collaboration-floating-icon {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 7px;
    background: #e8faf7;
    color: var(--teal);
    font-size: 12px;
}

.free-section {
    padding: 94px 0 100px;
    border-top: 1px solid #ebedf3;
    background:
        radial-gradient(ellipse at 7% 88%, rgb(99 102 241 / 6%), transparent 30rem),
        #ffffff;
}

.free-layout {
    display: grid;
    grid-template-columns: 1fr 0.94fr;
    align-items: center;
    gap: 70px;
}

.free-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: center;
    gap: 14px;
    margin-top: -25px;
}

.button-patreon {
    background: #000000;
    color: #ffffff;
}

.button-patreon:hover {
    background: #222222;
}

.support-page {
    padding-top: 64px;
    padding-bottom: 80px;
}

.team-page {
    padding-top: 74px;
    padding-bottom: 92px;
}

.team-intro {
    max-width: 700px;
    margin: 0 auto 42px;
    text-align: center;
}

.team-intro h1 {
    margin: 15px 0 12px;
    font-size: clamp(36px, 5vw, 54px);
    letter-spacing: -0.065em;
}

.team-intro > p:last-child {
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.75;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    width: min(100%, 900px);
    margin: 0 auto;
}

.team-member-card {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    min-height: 250px;
    padding: 30px;
    border: 1px solid #e6e9f2;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 22px 55px rgb(17 24 39 / 7%);
}

.team-avatar {
    display: grid;
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #ffffff;
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -0.04em;
}

.team-avatar-developer {
    background: linear-gradient(135deg, #0f9f8f, #34d399);
}

.team-avatar-designer {
    background: linear-gradient(135deg, #ec4899, #f9a8d4);
}

.team-member-role {
    margin: 2px 0 7px;
    color: var(--indigo);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.team-member-copy h2 {
    margin: 0 0 11px;
    font-size: 23px;
    letter-spacing: -0.045em;
}

.team-member-copy > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.support-content {
    width: min(100%, 980px);
    margin: 0 auto;
}

.support-intro-card {
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
}

.support-intro-card h1 {
    margin: 16px 0 12px;
    font-size: clamp(34px, 5vw, 52px);
    letter-spacing: -0.06em;
}

.support-intro-card > p:last-child,
.support-purpose-card p,
.support-donation-card p {
    color: var(--muted);
    line-height: 1.7;
}

.support-purpose-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.support-purpose-card,
.support-donation-card {
    border: 1px solid #e6e9f2;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 22px 55px rgb(17 24 39 / 8%);
}

.support-purpose-card {
    padding: 28px;
}

.support-purpose-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: #eef0ff;
    color: var(--indigo);
    font-size: 22px;
}

.support-purpose-card h2,
.support-donation-card h2 {
    margin: 18px 0 8px;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.support-purpose-card p,
.support-donation-card p {
    margin: 0;
}

.support-donation-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 22px;
    padding: 30px;
}

.support-donation-card .eyebrow {
    margin: 0;
}

.support-donation-card h2 {
    margin-top: 10px;
}

.support-donation-card .support-one-time-note {
    margin-top: 12px;
    font-size: 14px;
}

.support-donation-card .button {
    flex: 0 0 auto;
}

.button-disabled {
    background: #e8eaf0;
    color: #697386;
    cursor: not-allowed;
}

.support-finance-card {
    width: min(100%, 560px);
    margin: 0 auto;
}

.support-patreon-card {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 22px;
    padding: 28px;
    border: 1px solid #e6e9f2;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 22px 55px rgb(17 24 39 / 7%);
}

.support-patreon-mark {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 16px;
    background: #fff0f2;
    color: #f14667;
    font-size: 28px;
    font-weight: 800;
}

.support-patreon-copy {
    flex: 1;
}

.support-patreon-copy .eyebrow {
    margin: 0;
}

.support-patreon-copy h2 {
    margin: 8px 0;
    font-size: 21px;
    letter-spacing: -0.04em;
}

.support-patreon-copy > p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.support-patreon-card .button {
    flex: 0 0 auto;
}

.free-copy h2 {
    margin: 18px 0 15px;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.065em;
}

.free-copy h2 span {
    color: var(--indigo);
}

.free-description {
    max-width: 490px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.free-promises {
    display: grid;
    gap: 13px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.free-promises li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #424a5b;
    font-size: 12px;
    font-weight: 600;
}

.free-promises li > span {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    border-radius: 50%;
    background: #e8faf7;
    color: var(--teal);
    font-size: 12px;
}

.monthly-finance-card {
    width: 100%;
    padding: 26px;
    border: 1px solid #e6e9f2;
    border-radius: 22px;
    background: linear-gradient(155deg, #fff 0%, #fafbff 100%);
    box-shadow: 0 22px 55px rgb(17 24 39 / 8%);
}

.monthly-finance-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf0f5;
}

.monthly-finance-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 13px;
    background: #e9faf7;
    color: var(--teal);
}

.monthly-finance-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.monthly-finance-heading {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.monthly-finance-heading .eyebrow {
    color: var(--teal);
    font-size: 9px;
}

.monthly-finance-heading strong {
    color: #252b39;
    font-size: 14px;
    font-weight: 700;
}

.monthly-finance-period {
    margin-left: auto;
    padding: 7px 9px;
    border: 1px solid #e3e6ef;
    border-radius: 999px;
    color: #737c8e;
    font-size: 9px;
    font-weight: 700;
}

.monthly-finance-amounts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 13px;
    padding: 23px 0 19px;
}

.monthly-finance-amounts > div {
    display: grid;
    gap: 7px;
}

.monthly-finance-amounts > div > span {
    color: #81899a;
    font-size: 10px;
}

.monthly-finance-amounts > div > strong {
    color: var(--ink);
    font-size: clamp(20px, 2.5vw, 29px);
    font-weight: 750;
    letter-spacing: -0.055em;
    white-space: nowrap;
}

.monthly-finance-amounts > div:first-child > strong {
    color: var(--teal);
}

.monthly-finance-divider {
    padding-bottom: 4px;
    color: #c4c9d4;
    font-size: 21px;
}

.monthly-finance-progress-heading,
.monthly-finance-remaining {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #687184;
    font-size: 10px;
}

.monthly-finance-progress-heading strong {
    color: #252b39;
    font-size: 11px;
}

.monthly-finance-progress {
    display: block;
    width: 100%;
    height: 9px;
    margin: 10px 0 12px;
    overflow: hidden;
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: #e9edf3;
    color: var(--teal);
}

.monthly-finance-progress::-webkit-progress-bar {
    border-radius: inherit;
    background: #e9edf3;
}

.monthly-finance-progress::-webkit-progress-value {
    border-radius: inherit;
    background: linear-gradient(90deg, #2dd4bf, #0d9488);
}

.monthly-finance-progress::-moz-progress-bar {
    border-radius: inherit;
    background: linear-gradient(90deg, #2dd4bf, #0d9488);
}

.monthly-finance-remaining {
    padding-bottom: 18px;
    border-bottom: 1px solid #edf0f5;
}

.monthly-finance-remaining strong {
    color: #394253;
    font-size: 11px;
}

.monthly-finance-notes {
    display: grid;
    gap: 7px;
    margin-top: 16px;
}

.monthly-finance-notes p {
    margin: 0;
    color: #858d9d;
    font-size: 9px;
    line-height: 1.55;
}

.monthly-finance-empty {
    margin: 0;
    padding: 26px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.closing-section {
    display: flex;
    min-height: 285px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 57px;
    padding-bottom: 57px;
}

.closing-section h2 {
    margin: 15px 0 0;
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.16;
    letter-spacing: -0.06em;
}

.button-dark {
    min-height: 50px;
    flex: 0 0 auto;
    background: var(--ink);
    color: var(--white);
}

.button-dark:hover {
    background: #252f43;
}

.site-footer {
    background: #111827;
    color: #f5f7fb;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 60px;
    padding-top: 52px;
    padding-bottom: 47px;
}

.footer-brand {
    display: inline-block;
    margin: 0 0 12px;
    color: #fff;
}

.footer-brand span {
    color: #818cf8;
}

.footer-about p {
    max-width: 290px;
    margin: 0;
    color: #aab3c4;
    font-size: 12px;
    line-height: 1.8;
}

.language-form {
    display: grid;
    max-width: 210px;
    gap: 7px;
    margin-top: 18px;
}

.theme-form {
    display: grid;
    max-width: 210px;
    gap: 7px;
    margin-top: 18px;
}

.language-form label {
    color: #aab3c4;
    font-size: 11px;
    font-weight: 600;
}

.language-form select {
    width: 100%;
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 8px;
    background: #1d2738;
    color: #f5f7fb;
    font: inherit;
    font-size: 12px;
}

.language-form select:focus-visible {
    outline: 2px solid #a5b4fc;
    outline-offset: 2px;
}

.footer-column {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 12px;
}

.footer-column h2 {
    margin: 4px 0 4px;
    color: #909bad;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-column a {
    color: #eff2f8;
    font-size: 12px;
    transition: color 160ms ease;
}

.footer-column a:hover {
    color: #a5b4fc;
}

.footer-bottom {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgb(255 255 255 / 10%);
    color: #98a2b3;
    font-size: 10px;
}

.footer-bottom p {
    margin: 0;
}

.app-version span {
    margin-left: 4px;
    color: #e2e7f0;
    font-variant-numeric: tabular-nums;
}

.app-version a {
    margin-left: 16px;
    color: #d7dcf5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.app-version a:hover {
    color: #ffffff;
}

.legal-page {
    padding-top: 68px;
    padding-bottom: 84px;
}

.legal-page-heading {
    max-width: 760px;
    margin: 0 auto 30px;
}

.legal-page-heading h1 {
    margin: 15px 0 18px;
    font-size: clamp(34px, 5vw, 48px);
    letter-spacing: -0.06em;
}

.legal-sections {
    display: grid;
    width: min(100%, 760px);
    gap: 18px;
    margin: 0 auto;
}

.legal-section {
    padding: 24px 26px;
    border: 1px solid #e6e9f2;
    border-radius: 18px;
    background: #ffffff;
}

.legal-section h2 {
    margin: 0 0 18px;
    font-size: 20px;
    letter-spacing: -0.04em;
}

.legal-details {
    display: grid;
    grid-template-columns: minmax(150px, .7fr) minmax(0, 1.3fr);
    gap: 12px 20px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.legal-details dt {
    color: var(--muted);
}

.legal-details dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.legal-section > p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.message-page {
    display: flex;
    min-height: 540px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-top: 70px;
    padding-bottom: 80px;
}

.message-page h1 {
    max-width: 700px;
    margin: 20px 0 14px;
    font-size: clamp(38px, 5vw, 58px);
    letter-spacing: -0.065em;
}

.message-page > p:not(.eyebrow) {
    max-width: 500px;
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.auth-page {
    display: grid;
    min-height: 610px;
    place-items: center;
    padding-top: 64px;
    padding-bottom: 72px;
}

.auth-card {
    width: min(100%, 460px);
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
    box-shadow: 0 22px 60px rgb(17 24 39 / 6%);
}

.auth-card h1 {
    margin: 16px 0 10px;
    font-size: clamp(34px, 5vw, 46px);
    letter-spacing: -0.065em;
}

.auth-intro {
    margin: 0 0 25px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.auth-form {
    display: grid;
    gap: 10px;
}

.auth-form label {
    margin-top: 6px;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.auth-form input:not([type="hidden"]) {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid #d9deea;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}

.auth-form input:focus-visible {
    border-color: var(--indigo);
    outline: 3px solid rgb(99 102 241 / 17%);
}

.auth-form .button {
    width: 100%;
    margin-top: 9px;
    cursor: pointer;
}

.form-hint {
    margin: 0;
    color: var(--soft-muted);
    font-size: 11px;
    line-height: 1.6;
}

.form-message {
    margin: 0 0 19px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.6;
}

.form-message p {
    margin: 0;
}

.form-error {
    border-color: #fecaca;
    background: #fff7f7;
    color: #b42318;
}

.form-success {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}

.form-notice {
    border-color: #c7d2fe;
    background: #f5f6ff;
    color: #3730a3;
}

.home-auth-notice {
    padding-top: 24px;
}

.home-auth-notice .form-message {
    margin-bottom: 0;
}

.auth-switch {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.auth-switch a {
    color: var(--indigo-dark);
    font-weight: 700;
}

.auth-switch a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .hero {
        min-height: 600px;
        grid-template-columns: 1fr;
        gap: 15px;
        padding-top: 75px;
    }

    .hero-copy {
        max-width: 650px;
        margin-inline: auto;
        text-align: center;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        width: min(100%, 690px);
        min-height: 410px;
        margin-inline: auto;
    }

    .visual-note {
        right: 0;
        bottom: 8px;
    }

    .footer-columns {
        gap: 35px;
    }

    .collaboration-layout {
        grid-template-columns: 1fr 0.95fr;
        gap: 35px;
    }

    .collaboration-preview {
        padding: 19px;
    }

    .free-layout {
        grid-template-columns: 1fr 0.95fr;
        gap: 35px;
    }

    .monthly-finance-card {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .shell {
        width: min(100% - 36px, 520px);
    }

    .site-header {
        height: 72px;
    }

    .auth-page {
        min-height: 570px;
        padding-top: 42px;
        padding-bottom: 48px;
    }

    .auth-card {
        padding: 28px 23px;
    }

    .brand-mark {
        width: 37px;
        height: 37px;
    }

    .brand-word {
        font-size: 21px;
    }

    .main-nav {
        gap: 16px;
        font-size: 12px;
    }

    .nav-login {
        min-height: 38px;
        gap: 6px;
        padding: 0 12px;
    }

    .nav-login svg {
        width: 14px;
        height: 14px;
    }

    .nav-logout {
        width: 38px;
        height: 38px;
    }

    .hero {
        padding-top: 64px;
        padding-bottom: 41px;
    }

    h1 {
        margin-top: 19px;
        font-size: clamp(40px, 10vw, 57px);
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-visual {
        min-height: 330px;
    }

    .visual-orbit-one {
        width: 300px;
        height: 300px;
    }

    .visual-orbit-two {
        width: 370px;
        height: 370px;
    }

    .visual-note {
        right: -3px;
        bottom: -4px;
        padding: 9px 12px 9px 9px;
    }

    .visual-note-icon {
        width: 30px;
        height: 30px;
    }

    .features-section {
        padding: 68px 0 72px;
    }

    .collaboration-section {
        padding: 68px 0 76px;
    }

    .free-section {
        padding: 68px 0 76px;
    }

    .collaboration-layout {
        grid-template-columns: 1fr;
        gap: 27px;
    }

    .free-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .free-actions {
        flex-direction: column;
        align-items: center;
        margin-top: 0;
    }

    .free-actions .button {
        width: min(100%, 320px);
    }

    .support-page {
        padding-top: 42px;
        padding-bottom: 54px;
    }

    .team-page {
        padding-top: 48px;
        padding-bottom: 58px;
    }

    .team-intro {
        margin-bottom: 28px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .team-member-card {
        gap: 17px;
        min-height: auto;
        padding: 23px;
    }

    .team-avatar {
        width: 56px;
        height: 56px;
        border-radius: 17px;
    }

    .support-purpose-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .support-purpose-card {
        padding: 23px;
    }

    .support-donation-card {
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }

    .support-patreon-card {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }

    .support-patreon-card .button {
        justify-content: center;
    }

    .support-donation-card .button {
        justify-content: center;
    }

    .collaboration-copy h2 {
        font-size: clamp(31px, 8vw, 41px);
    }

    .free-copy h2 {
        font-size: clamp(31px, 8vw, 41px);
    }

    .collaboration-visual {
        min-height: 400px;
    }

    .collaboration-glow-one {
        width: 300px;
        height: 300px;
    }

    .collaboration-glow-two {
        width: 380px;
        height: 380px;
    }

    .collaboration-floating-note {
        right: -4px;
        bottom: 0;
    }

    .monthly-finance-card {
        padding: 19px;
    }

    .monthly-finance-amounts {
        gap: 9px;
    }

    .monthly-finance-amounts > div > strong {
        font-size: clamp(18px, 6vw, 25px);
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2,
    .closing-section h2 {
        font-size: clamp(29px, 7.5vw, 38px);
    }

    .section-heading > p:last-child {
        font-size: 13px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-card {
        min-height: auto;
        padding: 22px;
    }

    .feature-card h3 {
        margin-top: 16px;
    }

    .closing-section {
        min-height: 0;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 32px 22px;
        padding-top: 39px;
        padding-bottom: 34px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        min-height: 64px;
    }
}

@media (max-width: 380px) {
    .shell {
        width: calc(100% - 28px);
    }

    .main-nav {
        gap: 11px;
    }

    .hero-actions {
        gap: 9px;
    }

    .button {
        padding-inline: 14px;
        font-size: 12px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.public-project-page { padding: 34px 0 70px; }
.public-project-page .shell { width: min(96%, 1920px); }
.public-project-heading { margin-bottom: 26px; }
.public-project-heading h1 { margin: 8px 0; }
.public-project-heading p:last-child { max-width: 760px; color: var(--muted, #667085); }
.public-project-progress, .public-project-column, .public-project-milestones { background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; box-shadow: 0 10px 30px rgb(15 23 42 / 5%); }
.public-project-progress { margin-bottom: 20px; padding: 20px 24px; }
.public-project-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.public-project-progress h2 { margin: 0; font-size: 1rem; }
.public-project-progress strong { color: #6366f1; font-size: 1.1rem; }
.public-project-progress progress { width: 100%; height: 10px; accent-color: #6366f1; }
.public-project-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: start; gap: 18px; }
.public-project-column { padding: 18px; }
.public-project-column h2 { margin: 0 0 14px; font-size: 1.05rem; }
.public-project-card { margin-top: 12px; padding: 14px; border: 1px solid #e5e7eb; border-radius: 12px; background: #f9fafb; overflow-wrap: anywhere; }
.public-project-card h3 { margin: 0 0 8px; font-size: .98rem; }
.public-project-card p, .public-project-milestones p { color: #667085; white-space: pre-wrap; }
.public-project-description p { margin-bottom: 4px; }
.public-project-description-toggle { padding: 0; border: 0; background: transparent; color: #4f46e5; font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; }
.public-project-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: .8rem; color: #667085; }
.public-project-card-meta > * { padding: 3px 8px; border-radius: 999px; background: #eef2ff; }
.public-project-card-meta > .priority-indicator { margin: 0; }
.public-project-empty { color: #98a2b3; font-size: .9rem; }
.public-project-milestones { margin-top: 22px; padding: 22px; }
.public-project-milestones h2 { margin-top: 0; }
.public-project-milestones li { padding: 10px 0; }
.public-project-milestones li span { margin-left: 12px; color: #667085; font-size: .9rem; }
.project-publication-settings { margin-top: 24px; padding: 18px; border: 1px solid #e5e7eb; border-radius: 14px; }
.project-publication-settings h3 { margin-top: 0; }
.project-notification-preferences { display: grid; grid-column: 1 / -1; gap: 9px; margin-top: 14px; padding: 18px; border: 1px solid #e5e7eb; border-radius: 14px; background: #f9fafb; }
.project-notification-preferences h3 { margin: 0; }
.project-notification-preferences p { margin: 0; color: #667085; line-height: 1.5; }
.project-notification-preferences select { width: 100%; }
.project-notification-preferences button { justify-self: end; }
.project-notification-preferences .project-settings-status { min-height: 1.2em; }
.project-publication-toggle { display: flex; align-items: center; gap: 9px; }
.task-publication-toggle { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #f9fafb; }
.task-public-field-visibility { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; grid-column: 1 / -1; margin: 0; padding: 12px; border: 1px solid #e5e7eb; border-radius: 10px; }
.task-public-field-visibility legend { padding: 0 6px; font-size: 13px; font-weight: 700; }
.task-public-field-visibility label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.task-public-field-visibility input { margin: 0; accent-color: var(--indigo); }
.task-public-field-visibility p { flex-basis: 100%; margin: 0; color: #667085; font-size: 12px; }
.project-settings-form .project-publication-toggle,
.project-settings-form .task-publication-toggle { justify-content: flex-start; text-align: left; }
.project-settings-form .project-publication-toggle > input[type="checkbox"],
.project-settings-form .task-publication-toggle > input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; padding: 0; accent-color: var(--indigo); }
.project-public-preview-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.public-preview-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; padding: 16px 20px; border: 1px solid #c7d2fe; border-radius: 14px; background: #eef2ff; }
.public-preview-banner p { margin: 4px 0 0; color: #667085; }
.public-preview-banner a { flex: 0 0 auto; font-weight: 600; }
.public-project-empty-state { margin-top: 16px; padding: 20px; border-radius: 14px; background: #f3f4f6; color: #667085; }
@media (max-width: 560px) { .public-preview-banner { align-items: flex-start; flex-direction: column; } }
.project-public-url { margin-top: 12px; }
.project-public-url > a { display: inline-block; margin-bottom: 10px; }
.project-public-url > label { display: block; margin-bottom: 6px; font-size: .9rem; }
.project-public-url-actions { display: flex; gap: 8px; }
.project-public-url-actions input { min-width: 0; flex: 1; }
@media (max-width: 520px) { .project-public-url-actions { flex-direction: column; } }

.dashboard-page { min-height: 70vh; padding: 54px 0 80px; background: #f8fafc; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.dashboard-heading h1 { margin: 6px 0 8px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; }
.dashboard-heading > div > p:last-child { margin: 0; color: #667085; }
.dashboard-create-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid #5b5ce2; border-radius: 10px; background: #6366f1; color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; }
.dashboard-create-button:hover { background: #4f46e5; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 42px; }
.dashboard-stats article { display: grid; gap: 8px; padding: 20px 22px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgb(15 23 42 / 4%); }
.dashboard-stats span { color: #667085; font-size: 13px; }
.dashboard-stats strong { color: #202942; font-size: 30px; line-height: 1; }
.dashboard-projects-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.dashboard-projects-heading h2 { margin: 0 0 5px; font-size: 23px; }
.dashboard-projects-heading p { margin: 0; color: #667085; font-size: 14px; }
.dashboard-project-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 17px; }
.dashboard-project-filters a { padding: 7px 11px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #475467; font-size: 12px; font-weight: 650; text-decoration: none; }
.dashboard-project-filters a[aria-current="page"] { border-color: #c7d2fe; background: #eef2ff; color: #4338ca; }
.dashboard-filter-count { display: inline-grid; min-width: 19px; height: 19px; place-items: center; margin-left: 4px; padding: 0 4px; border-radius: 999px; background: #f1f5f9; color: #475467; font-size: 11px; font-weight: 700; }
.dashboard-project-filters a[aria-current="page"] .dashboard-filter-count { background: #dfe3ff; color: #4338ca; }
.dashboard-search input { width: min(300px, 32vw); min-height: 42px; padding: 8px 12px; border: 1px solid #d0d5dd; border-radius: 9px; background: #fff; font: inherit; }
.dashboard-project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.dashboard-project-card { display: flex; min-width: 0; flex-direction: column; padding: 19px; border: 1px solid #e5e7eb; border-radius: 15px; background: #fff; box-shadow: 0 8px 24px rgb(15 23 42 / 4%); }
.dashboard-project-card[hidden] { display: none; }
.dashboard-project-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dashboard-project-card-heading h3 { margin: 9px 0 0; overflow-wrap: anywhere; font-size: 18px; }
.dashboard-project-card-tools { display: grid; justify-items: end; gap: 8px; }
.dashboard-project-controls { display: flex; align-items: center; gap: 4px; }
.dashboard-project-control { display: inline-grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #475467; cursor: pointer; font: inherit; font-size: 15px; line-height: 1; }
.dashboard-project-control:hover:not(:disabled) { border-color: #c7d2fe; background: #f5f6ff; color: #4338ca; }
.dashboard-project-control:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.dashboard-project-control:disabled { color: #cbd5e1; cursor: not-allowed; }
.dashboard-project-favorite { color: #94a3b8; font-size: 20px; }
.dashboard-project-favorite.is-favorite { border-color: #fde68a; background: #fffbeb; color: #d97706; }
.dashboard-access-badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #eef2ff; color: #4f46e5; font-size: 11px; font-weight: 700; }
.dashboard-access-badge.is-read { background: #f1f5f9; color: #475569; }
.dashboard-access-badge.is-write { background: #ecfdf5; color: #047857; }
.dashboard-archive-badge { display: inline-flex; margin-right: 6px; padding: 4px 8px; border-radius: 999px; background: #fffbeb; color: #92400e; font-size: 11px; font-weight: 700; }
.dashboard-project-progress-label { color: #4f46e5; font-size: 14px; font-weight: 700; }
.dashboard-project-description { min-height: 42px; margin: 15px 0 12px; color: #475467; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.dashboard-project-description.is-empty { color: #98a2b3; font-style: italic; }
.dashboard-project-card progress { width: 100%; height: 8px; accent-color: #6366f1; }
.dashboard-project-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 12px 0 16px; color: #667085; font-size: 12px; }
.dashboard-project-open { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 10px 12px; border-radius: 9px; background: #f5f6ff; color: #4f46e5; text-decoration: none; font-size: 13px; font-weight: 700; }
.dashboard-project-open:hover { background: #eef0ff; }
button.dashboard-project-open { width: 100%; border: 0; cursor: pointer; font: inherit; text-align: left; }
.dashboard-project-restore { background: #ecfdf3; color: #067647; }
.dashboard-project-restore:hover { background: #dcfae6; }
.dashboard-project-restore:disabled { cursor: progress; opacity: .7; }
.dashboard-restore-status { margin: 6px 0 0; color: #b42318; font-size: 12px; }
.dashboard-preference-status { margin: 7px 0 0; color: #b42318; font-size: 12px; }
.dashboard-empty { display: grid; justify-items: start; gap: 12px; padding: 24px; border: 1px dashed #cbd5e1; border-radius: 14px; background: #fff; }
.dashboard-empty p, .dashboard-no-search-results { margin: 0; color: #667085; }
.dashboard-no-search-results { padding: 18px 2px; }

.theme-form-status {
    color: #a7f3d0;
    font-size: 12px;
    line-height: 1.5;
}

.theme-form-status.is-error {
    color: #fca5a5;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --ink: #eef1f8;
    --muted: #a7b0c2;
    --soft-muted: #929db2;
    --paper: #11141c;
    --white: #1b202b;
    --line: #343b4b;
    --indigo: #818cf8;
    --indigo-dark: #a5b4fc;
    --teal: #2dd4bf;
}

:root[data-theme="dark"] body,
:root[data-theme="dark"] .dashboard-page,
:root[data-theme="dark"] .kanban-page,
:root[data-theme="dark"] .maintenance-page,
:root[data-theme="dark"] .free-section {
    background-color: var(--paper);
    color: var(--ink);
}

:root[data-theme="dark"] .site-header {
    border-bottom-color: var(--line);
    background: rgb(17 20 28 / 90%);
}

:root[data-theme="dark"] main :is([class*="-card"], [class*="-panel"], [class*="-dialog"], [class*="-column"], [class*="-board"], [class*="-list"]) {
    border-color: var(--line);
    background-color: var(--white);
    color: var(--ink);
}

:root[data-theme="dark"] main .dashboard-stats article,
:root[data-theme="dark"] main .admin-users-table-scroll,
:root[data-theme="dark"] main .public-project-progress,
:root[data-theme="dark"] main .public-project-milestones {
    border-color: var(--line);
    background-color: var(--white);
    color: var(--ink);
}

:root[data-theme="dark"] main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), textarea, select) {
    border-color: #465064;
    background-color: #171c26;
    color: var(--ink);
    color-scheme: dark;
}

:root[data-theme="dark"] :is(.nav-login, .nav-logout) {
    border-color: var(--line);
    background-color: var(--white);
    color: var(--ink);
}

:root[data-theme="dark"] :is(.kanban-count, .project-tab, .kanban-column-actions button, .kanban-card, .kanban-card-deadline, .project-member-item, .project-archive-button, .kanban-card-comments-button) {
    border-color: var(--line);
    background-color: #222938;
    color: var(--ink);
}

:root[data-theme="dark"] :is(.dashboard-project-filters a, .dashboard-project-control, .dashboard-search input, .dashboard-project-open, .project-settings-tabs button, .project-settings-close, .project-delete-trigger, .profile-delete-trigger) {
    border-color: var(--line);
    background-color: #222938;
    color: var(--ink);
}

:root[data-theme="dark"] :is(.dashboard-project-description, .dashboard-project-meta, .dashboard-project-filters a, .dashboard-stats span, .dashboard-projects-heading p, .auth-form label, .profile-details dt) {
    color: var(--muted);
}

:root[data-theme="dark"] .dashboard-stats strong {
    color: var(--ink);
}

:root[data-theme="dark"] :is(.project-tab[aria-current="page"], .dashboard-project-filters a[aria-current="page"], .project-settings-tabs button[aria-selected="true"]) {
    border-color: #555e8f;
    background-color: #303653;
    color: #c7d2fe;
}

:root[data-theme="dark"] .public-preview-banner {
    border-color: #454c70;
    background: #242a40;
}

:root[data-theme="dark"] .maintenance-content {
    border-color: var(--line);
    background-color: var(--white);
}
@media (max-width: 700px) {
    .dashboard-heading { align-items: flex-start; flex-direction: column; }
    .dashboard-stats { grid-template-columns: 1fr; gap: 10px; margin-bottom: 32px; }
    .dashboard-stats article { grid-template-columns: 1fr auto; align-items: center; padding: 15px 17px; }
    .dashboard-stats strong { font-size: 24px; }
    .dashboard-projects-heading { align-items: stretch; flex-direction: column; }
    .dashboard-search input { width: 100%; box-sizing: border-box; }
}

:root[data-theme="dark"] .project-access-indicator,
:root[data-theme="dark"] .kanban-view-switch [role="tablist"],
:root[data-theme="dark"] .kanban-planning,
:root[data-theme="dark"] .kanban-roadmap-view,
:root[data-theme="dark"] .kanban-activity-view,
:root[data-theme="dark"] .milestone-manager-form-panel,
:root[data-theme="dark"] .milestone-manager-list-panel,
:root[data-theme="dark"] .project-settings-dialog {
    border-color: #394355;
    background: #1b202b;
    color: #eef1f8;
}

:root[data-theme="dark"] .kanban-progress-card {
    border-color: #394355;
    background: linear-gradient(125deg, #1b202b, #242a3b);
    color: #eef1f8;
}

:root[data-theme="dark"] .kanban-progress-card progress::-webkit-progress-bar {
    background: #343b4b;
}

:root[data-theme="dark"] .kanban-planning-header h2,
:root[data-theme="dark"] .kanban-activity-heading h2,
:root[data-theme="dark"] .roadmap-toolbar h2,
:root[data-theme="dark"] .roadmap-detail h3,
:root[data-theme="dark"] .roadmap-deadline-detail-heading h3,
:root[data-theme="dark"] .roadmap-mobile-heading,
:root[data-theme="dark"] .milestone-manager-list-heading h3 {
    color: #eef1f8;
}

:root[data-theme="dark"] .kanban-planning-navigation,
:root[data-theme="dark"] .kanban-activity-item {
    border-color: #394355;
}

:root[data-theme="dark"] .kanban-planning-tabs button {
    border-bottom-color: #394355;
    color: #aeb8ca;
}

:root[data-theme="dark"] .kanban-planning-tabs button[aria-selected="true"] {
    border-color: #394355;
    border-bottom-color: #242a36;
    background: #242a36;
    color: #c7d2fe;
}

:root[data-theme="dark"] .kanban-planning-count {
    background: #303849;
    color: #c7d0df;
}

:root[data-theme="dark"] .kanban-planning-tabs button[aria-selected="true"] .kanban-planning-count {
    background: #3b4261;
    color: #d6dcff;
}

:root[data-theme="dark"] .kanban-view-switch [data-project-view] {
    color: #aeb8ca;
}

:root[data-theme="dark"] .kanban-view-switch [data-project-view][aria-selected="true"] {
    background: #303849;
    color: #d6dcff;
}

:root[data-theme="dark"] .kanban-activity-item p,
:root[data-theme="dark"] .kanban-activity-changes,
:root[data-theme="dark"] .kanban-activity-changes li {
    color: #d4dbea;
}

:root[data-theme="dark"] .kanban-activity-item p strong:first-child,
:root[data-theme="dark"] .kanban-activity-item p strong:last-child {
    color: #f3f5fa;
}

:root[data-theme="dark"] .kanban-activity-item time,
:root[data-theme="dark"] .kanban-activity-details,
:root[data-theme="dark"] .kanban-activity-status,
:root[data-theme="dark"] .kanban-activity-pagination span {
    color: #aeb8ca;
}

:root[data-theme="dark"] .kanban-activity-changes summary {
    color: #a5b4fc;
}

:root[data-theme="dark"] .kanban-activity-pagination button,
:root[data-theme="dark"] .kanban-upcoming-open,
:root[data-theme="dark"] .kanban-milestone-overview-select,
:root[data-theme="dark"] .milestone-manager-item,
:root[data-theme="dark"] .milestone-manager-actions button,
:root[data-theme="dark"] .roadmap-controls > button,
:root[data-theme="dark"] .roadmap-zoom-controls,
:root[data-theme="dark"] .roadmap-zoom-controls button,
:root[data-theme="dark"] .roadmap-deadline-toggle,
:root[data-theme="dark"] .roadmap-milestone-label,
:root[data-theme="dark"] .roadmap-unplanned-item,
:root[data-theme="dark"] .roadmap-deadline-detail-heading button,
:root[data-theme="dark"] .roadmap-deadline-task,
:root[data-theme="dark"] .roadmap-mobile-item,
:root[data-theme="dark"] .project-settings-close,
:root[data-theme="dark"] .project-settings-form .column-archive-button,
:root[data-theme="dark"] .task-date-field-control button,
:root[data-theme="dark"] .task-checklist-item button,
:root[data-theme="dark"] .task-comment-actions button,
:root[data-theme="dark"] .task-comment-edit-actions button {
    border-color: #414b5d;
    background: #252c3a;
    color: #dce3ef;
}

:root[data-theme="dark"] .roadmap-scroll {
    border-color: #394355;
    scrollbar-color: #4b566b #1b202b;
}

:root[data-theme="dark"] .roadmap-axis {
    background: #242a36;
}

:root[data-theme="dark"] .roadmap-axis-label,
:root[data-theme="dark"] .roadmap-axis-tick,
:root[data-theme="dark"] .roadmap-zoom-controls span,
:root[data-theme="dark"] .roadmap-detail-progress,
:root[data-theme="dark"] .roadmap-unplanned-deadlines,
:root[data-theme="dark"] .roadmap-mobile-deadlines,
:root[data-theme="dark"] .roadmap-deadline-task > span,
:root[data-theme="dark"] .roadmap-detail p,
:root[data-theme="dark"] .roadmap-toolbar p,
:root[data-theme="dark"] .milestone-manager-details > p,
:root[data-theme="dark"] .milestone-manager-progress {
    color: #aeb8ca;
}

:root[data-theme="dark"] .roadmap-axis-track,
:root[data-theme="dark"] .roadmap-axis-tick,
:root[data-theme="dark"] .roadmap-milestone-label,
:root[data-theme="dark"] .roadmap-track {
    border-color: #394355;
}

:root[data-theme="dark"] .roadmap-milestone-label,
:root[data-theme="dark"] .roadmap-unplanned h3 {
    color: #dce3ef;
}

:root[data-theme="dark"] .roadmap-track {
    background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(var(--roadmap-tick-width) - 1px), rgb(255 255 255 / 8%) calc(var(--roadmap-tick-width) - 1px), rgb(255 255 255 / 8%) var(--roadmap-tick-width));
}

:root[data-theme="dark"] .roadmap-detail,
:root[data-theme="dark"] .roadmap-deadline-detail {
    border-color: #414b5d;
    background: #242a36;
}

:root[data-theme="dark"] .roadmap-milestone-label:hover,
:root[data-theme="dark"] .roadmap-milestone-label[aria-pressed="true"],
:root[data-theme="dark"] .roadmap-unplanned-item:hover,
:root[data-theme="dark"] .roadmap-unplanned-item[aria-pressed="true"],
:root[data-theme="dark"] .roadmap-deadline-task:hover,
:root[data-theme="dark"] .roadmap-mobile-item:hover,
:root[data-theme="dark"] .roadmap-mobile-item[aria-pressed="true"],
:root[data-theme="dark"] .kanban-milestone-overview-select:hover,
:root[data-theme="dark"] .kanban-milestone-overview-select[aria-pressed="true"] {
    background-color: #303653;
}

:root[data-theme="dark"] .kanban-milestone-overview-meta,
:root[data-theme="dark"] .kanban-milestone-overview-tasks,
:root[data-theme="dark"] .kanban-milestone-highlight-status,
:root[data-theme="dark"] .milestone-manager-progress,
:root[data-theme="dark"] .milestone-manager-details > p,
:root[data-theme="dark"] .task-checklist-progress,
:root[data-theme="dark"] .task-checklist-empty,
:root[data-theme="dark"] .task-comment-heading time {
    color: #aeb8ca;
}

:root[data-theme="dark"] .project-settings-dialog::backdrop {
    background: rgb(3 6 12 / 72%);
}

:root[data-theme="dark"] .project-settings-tabs {
    border-bottom-color: #394355;
}

:root[data-theme="dark"] .project-settings-tabs button[aria-selected="true"] {
    border-bottom-color: #a5b4fc;
    color: #c7d2fe;
}

:root[data-theme="dark"] .project-notification-preferences,
:root[data-theme="dark"] .task-checklist,
:root[data-theme="dark"] .task-comments-list li,
:root[data-theme="dark"] .task-comment-mention-suggestions {
    border-color: #414b5d;
    background: #222938;
    color: #dce3ef;
}

:root[data-theme="dark"] .project-notification-preferences p {
    color: #aeb8ca;
}

:root[data-theme="dark"] .kanban-column-toolbar button,
:root[data-theme="dark"] .kanban-column-actions button,
:root[data-theme="dark"] .kanban-card-actions button {
    border-color: #414b5d;
    background: #252c3a;
    color: #dce3ef;
}

:root[data-theme="dark"] .kanban-card-actions [data-complete-task]:disabled {
    border-color: #146b65;
    background: #164e4a;
    color: #a7f3d0;
}

:root[data-theme="dark"] .kanban-card-deadline,
:root[data-theme="dark"] .priority-indicator.is-normal,
:root[data-theme="dark"] .kanban-card-comment-count {
    border-color: #414b5d;
    background: #303849;
    color: #d0d8e6;
}

:root[data-theme="dark"] .kanban-card-milestone {
    color: #e0e6f1;
}

:root[data-theme="dark"] .roadmap-empty,
:root[data-theme="dark"] .kanban-upcoming-empty {
    color: #aeb8ca;
}

:root[data-theme="dark"] .admin-stats-hero {
    border-color: #414965;
    background:
        radial-gradient(circle at 92% 18%, rgb(129 140 248 / 18%), transparent 30%),
        radial-gradient(circle at 78% 92%, rgb(45 212 191 / 10%), transparent 30%),
        linear-gradient(135deg, #191f2d 25%, #252b42 100%);
}

:root[data-theme="dark"] .admin-stats-hero .eyebrow {
    color: #b9c3ff;
}

:root[data-theme="dark"] .admin-stats-hero h1,
:root[data-theme="dark"] .admin-stats-hero .admin-intro {
    color: #eef1f8;
}

:root[data-theme="dark"] .admin-cloudflare-environment {
    border: 1px solid #454e70;
    background: #2a3048;
    color: #dbe2ff;
}

:root[data-theme="dark"] .admin-status-ok {
    color: #5eead4;
}

:root[data-theme="dark"] .admin-status-error {
    color: #fda29b;
}

:root[data-theme="dark"] .admin-status-pending {
    color: #a7b0c2;
}

:root[data-theme="dark"] .admin-notice {
    border: 1px solid #17685e;
    background: #123c39;
    color: #a7f3d0;
}

:root[data-theme="dark"] .admin-error {
    border: 1px solid #7f3434;
    background: #472529;
    color: #fecaca;
}

:root[data-theme="dark"] .admin-users-empty,
:root[data-theme="dark"] .admin-user-dialog {
    border-color: #343b4b;
    background: #1b202b;
    color: #eef1f8;
}

:root[data-theme="dark"] .admin-users-search input,
:root[data-theme="dark"] .admin-field input,
:root[data-theme="dark"] .admin-field textarea,
:root[data-theme="dark"] .admin-field select,
:root[data-theme="dark"] .admin-user-action-controls select {
    border-color: #465064;
    background: #171c26;
    color: #eef1f8;
    color-scheme: dark;
}
