* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background: #111;
    color: #fff;
    padding: 18px 0;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.nav a:hover {
    opacity: 0.82;
    transform: translateY(-1px);
}

.main-content {
    padding: 48px 20px 64px;
}

.hero,
.panel {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}

.hero h1,
.panel h1,
.panel h2,
.task-card h4,
.kanban-column-header h3 {
    margin-top: 0;
}

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

.form-group {
    display: grid;
    gap: 8px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    font: inherit;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.actions {
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 12px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.btn-secondary {
    background: #444;
}

.btn-secondary:hover {
    background: #363636;
}

.btn-danger {
    background: #b81f1f;
}

.btn-danger:hover {
    background: #9d1717;
}

.project-meta {
    margin-top: 16px;
    font-size: 16px;
}

.card-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.inline-form {
    margin: 0;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.kanban-column {
    display: flex;
    flex-direction: column;
    background: #f7f7f8;
    border: 1px solid #e3e3e3;
    border-radius: 16px;
    min-height: 320px;`r`n    height: 100%;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kanban-column:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}

.kanban-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.kanban-column-header h3 {
    font-size: 20px;
    margin-bottom: 0;
}

.kanban-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.kanban-column-body {
    flex: 1;
    display: grid;
    gap: 12px;
    min-height: 180px;`r`n    height: 100%;
    border-radius: 14px;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.kanban-column-body.drag-over {
    background: rgba(17, 17, 17, 0.045);
    box-shadow: inset 0 0 0 2px rgba(17, 17, 17, 0.18);
}

.task-card {
    background: #fff;
    border: 1px solid #dfdfdf;
    border-radius: 14px;
    padding: 16px;
    cursor: grab;
    user-select: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
    will-change: transform;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #cfcfcf;
}

.task-card.dragging {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 18px 34px rgba(0,0,0,0.16);
    opacity: 0.96;
    cursor: grabbing;
}

.task-card.drag-source-hidden {
    opacity: 0.12;
    transform: scale(0.98);
    filter: grayscale(0.15);
}

.task-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.task-card p {
    margin: 0 0 10px 0;
}

.task-placeholder {
    border: 2px dashed rgba(17, 17, 17, 0.22);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(17,17,17,0.03), rgba(17,17,17,0.06));
    animation: pulsePlaceholder 1.1s ease-in-out infinite;
}

.drag-ghost {
    pointer-events: none;
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(0,0,0,0.18);
    opacity: 0.98;
}

.empty-column {
    min-height: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #cfcfcf;
    border-radius: 14px;
    padding: 24px 16px;
    color: #666;
    background: #fff;
    text-align: center;
    transition: background 0.18s ease;
}

@keyframes pulsePlaceholder {
    0% {
        opacity: 0.65;
        transform: scale(0.995);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.65;
        transform: scale(0.995);
    }
}

@media (max-width: 1200px) {
    .kanban-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }
}
body.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    z-index: 1000;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-dialog {
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.22s ease;
}

.modal-overlay.is-open .modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 28px;
}

.modal-close-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: #f1f1f1;
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.modal-close-btn:hover {
    background: #e5e5e5;
    transform: scale(1.04);
}

.section-head {
    margin-bottom: 20px;
}

.section-head h2 {
    margin: 0 0 10px 0;
}

.section-head p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.about-grid,
.team-grid,
.contacts-grid {
    display: grid;
    gap: 16px;
}

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

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

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

.info-card,
.team-card,
.contact-item {
    background: #fafafa;
    border: 1px solid #e3e3e3;
    border-radius: 16px;
    padding: 20px;
}

.feature-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.avatar-card {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.avatar-one {
    background: linear-gradient(135deg, #222, #5a5a5a);
}

.avatar-two {
    background: linear-gradient(135deg, #6c63ff, #8f88ff);
}

.avatar-three {
    background: linear-gradient(135deg, #111827, #334155);
}

.team-card h3 {
    margin: 0 0 8px 0;
}

.team-role {
    margin: 0 0 12px 0;
    color: #555;
    font-weight: 600;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 900px) {
    .about-grid,
    .team-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

.avatar-img {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    object-fit: cover;
    margin-bottom: 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avatar-img:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 32px rgba(0,0,0,0.25);
}

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

.team-card-tall {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: stretch;
    gap: 20px;
    min-height: 320px;
    overflow: hidden;
}

.avatar-portrait {
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-height: 360px;
    object-fit: cover;
    border-radius: 18px;
    background: linear-gradient(180deg, #ececec, #dcdcdc);
    box-shadow: 0 12px 24px rgba(0,0,0,0.10);
}

.team-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-card-content h3 {
    margin: 0 0 8px 0;
}

@media (max-width: 900px) {
    .team-grid-2x2 {
        grid-template-columns: 1fr;
    }

    .team-card-tall {
        grid-template-columns: 1fr;
    }

    .avatar-portrait {
        max-height: 300px;
    }
}

.project-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.project-sidebar {
    position: sticky;
    top: 24px;
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.06);
    border: 1px solid #ececec;
}

.project-sidebar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.project-sidebar-label {
    font-size: 13px;
    letter-spacing: 0.18em;
    color: #777;
    margin-bottom: 8px;
    font-weight: 700;
}

.project-sidebar-head h1 {
    margin: 0 0 10px 0;
    font-size: 40px;
    line-height: 1;
}

.project-sidebar-head p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.project-back-btn {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 28px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.project-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

.project-status-nav {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
}

.project-status-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 18px;
    padding: 18px 18px;
    font: inherit;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.project-status-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.project-status-item.is-active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.project-status-item.is-drop-target {
    background: #f0f4ff;
    border-color: #5b7cff;
    box-shadow: 0 0 0 3px rgba(91,124,255,0.15);
    color: #111;
}

.project-status-title {
    font-size: 18px;
    font-weight: 700;
}

.project-status-count {
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.project-status-item.is-active .project-status-count {
    background: #fff;
    color: #111;
}

.project-sidebar-actions {
    margin-top: 12px;
}

.project-create-btn {
    width: 100%;
}

.project-workspace {
    display: block;
}

.task-stage {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.06);
    border: 1px solid #ececec;
}

.task-stage.is-hidden {
    display: none;
}

.task-stage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.task-stage-label {
    font-size: 13px;
    letter-spacing: 0.16em;
    color: #888;
    margin-bottom: 8px;
    font-weight: 700;
}

.task-stage-head h2 {
    margin: 0;
    font-size: 52px;
    line-height: 1;
}

.task-stage-badge {
    min-width: 52px;
    height: 52px;
    padding: 0 16px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.task-stage-list {
    display: grid;
    gap: 16px;
    min-height: 280px;
}

.task-card.dragging {
    opacity: 0.55;
    transform: scale(1.02);
}

@media (max-width: 980px) {
    .project-layout {
        grid-template-columns: 1fr;
    }

    .project-sidebar {
        position: static;
    }

    .task-stage-head h2 {
        font-size: 38px;
    }
}

.project-layout.is-sidebar-collapsed {
    grid-template-columns: 96px minmax(0, 1fr);
}

.project-sidebar.is-collapsed {
    padding: 18px 14px;
}

.project-sidebar.is-collapsed .project-sidebar-label,
.project-sidebar.is-collapsed .project-sidebar-head h1,
.project-sidebar.is-collapsed .project-sidebar-head p,
.project-sidebar.is-collapsed .project-status-nav,
.project-sidebar.is-collapsed .project-sidebar-actions {
    display: none;
}

.project-sidebar.is-collapsed .project-sidebar-head {
    justify-content: center;
    margin-bottom: 0;
}

.project-back-btn {
    border: none;
    cursor: pointer;
}

.project-back-btn.is-collapsed {
    transform: rotate(0deg);
}

.project-home-item {
    justify-content: flex-start;
}

.project-overview-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

.overview-card {
    background: #fafafa;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    padding: 22px;
}

.overview-card h3 {
    margin: 0 0 14px 0;
    font-size: 24px;
}

.overview-card p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: #333;
}

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

.overview-stat {
    background: #111;
    color: #fff;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 110px;
    justify-content: center;
}

.overview-stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.72);
}

.overview-stat strong {
    font-size: 28px;
    line-height: 1;
}

@media (max-width: 1100px) {
    .project-overview-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 700px) {
    .overview-stat-grid {
        grid-template-columns: 1fr;
    }
}

.board-shell {
    background: #14161b;
    border-radius: 22px;
    padding: 18px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.board-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.board-column {
    background: #111317;
    border-radius: 16px;
    padding: 14px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.board-column.is-focus {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 14px 28px rgba(0,0,0,0.22);
    background: #171a20;
}

.board-column.is-drop-target {
    background: #1b2130;
    box-shadow: 0 0 0 2px rgba(123, 164, 255, 0.35);
}

.board-column-head {
    margin-bottom: 12px;
}

.board-column-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.board-column-title-row h3 {
    margin: 0;
    font-size: 18px;
    color: #f5f7fb;
}

.board-column-count {
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #23262d;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.board-column-list {
    flex: 1;
    display: grid;
    gap: 12px;
    align-content: start;
}

.board-task-card {
    background: #24272f;
    border: 1px solid rgba(255,255,255,0.04);
    color: #f3f5f8;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.board-task-card:hover {
    background: #2a2e37;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.22);
}

.board-task-card.dragging {
    opacity: 0.55;
    transform: rotate(1deg) scale(1.02);
}

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

.task-inline-row h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #f8fafc;
}

.task-inline-row-description p {
    margin: 0 0 10px 0;
    color: #c9d0db;
    line-height: 1.5;
    flex: 1;
}

.task-inline-edit {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #f5f7fb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, transform 0.18s ease;
}

.task-inline-edit:hover {
    background: rgba(255,255,255,0.16);
    transform: scale(1.04);
}

.task-status-line {
    margin: 6px 0 0 0;
    color: #d7dde7;
}

.board-create-trigger {
    margin-top: 12px;
    width: 100%;
    min-height: 48px;
    border: 1px dashed rgba(255,255,255,0.14);
    border-radius: 12px;
    background: transparent;
    color: #d7dde7;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.board-column:hover .board-create-trigger,
.board-column.is-focus .board-create-trigger {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.board-create-trigger:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.24);
}

.board-column .empty-column {
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.12);
    color: #9da6b5;
}

.project-status-item.project-home-item {
    justify-content: flex-start;
}

@media (max-width: 1280px) {
    .board-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .board-columns {
        grid-template-columns: 1fr;
    }
}

.status-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    margin-top: 22px;
}

.status-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-summary-card {
    background: #0f1115;
    color: #fff;
    border-radius: 22px;
    padding: 22px;
    min-height: 138px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.status-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.14);
}

.status-summary-total {
    justify-content: center;
}

.status-summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.status-summary-label {
    font-size: 18px;
    line-height: 1.35;
    color: rgba(255,255,255,0.92);
}

.status-summary-number {
    font-size: 46px;
    line-height: 1;
    font-weight: 800;
}

.status-toggle-arrow {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, background 0.18s ease;
}

.status-toggle-arrow:hover {
    background: rgba(255,255,255,0.16);
}

.status-toggle-arrow.is-open {
    transform: rotate(180deg);
}

.status-toggle-card.is-drop-target,
.status-column-shell.is-drop-target {
    box-shadow: 0 0 0 2px rgba(123,164,255,0.45);
    background: #1a2232;
}

.status-column-shell {
    background: #111317;
    border-radius: 20px;
    padding: 16px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.status-column-shell.is-collapsed {
    display: none;
}

.board-column-list {
    flex: 1;
    display: grid;
    gap: 12px;
    align-content: start;
}

.board-task-card {
    background: #24272f;
    border: 1px solid rgba(255,255,255,0.04);
    color: #f3f5f8;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.board-task-card:hover {
    background: #2a2e37;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.22);
}

.board-task-card.dragging {
    opacity: 0.55;
    transform: rotate(1deg) scale(1.02);
}

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

.task-inline-row h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #f8fafc;
}

.task-inline-row-description p {
    margin: 0 0 10px 0;
    color: #c9d0db;
    line-height: 1.5;
    flex: 1;
}

.task-inline-edit {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #f5f7fb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, transform 0.18s ease;
}

.task-inline-edit:hover {
    background: rgba(255,255,255,0.16);
    transform: scale(1.04);
}

.task-status-line {
    margin: 6px 0 0 0;
    color: #d7dde7;
}

.board-create-trigger {
    margin-top: 12px;
    width: 100%;
    min-height: 48px;
    border: 1px dashed rgba(255,255,255,0.14);
    border-radius: 12px;
    background: transparent;
    color: #d7dde7;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.status-column-shell:hover .board-create-trigger {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.board-create-trigger:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.24);
}

.status-column-shell .empty-column {
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.12);
    color: #9da6b5;
    min-height: 84px;
}

@media (max-width: 1320px) {
    .status-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .status-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* FLOWBOARD LOGO LINK FIX START */
.site-header .logo,
.site-header .logo:link,
.site-header .logo:visited,
.site-header .logo:hover,
.site-header .logo:active {
    color: #fff;
    text-decoration: none;
}

.site-header .logo {
    font-size: 24px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.site-header .logo:hover {
    color: #fff;
    text-decoration: none;
}
/* FLOWBOARD LOGO LINK FIX END */

/* FLOWBOARD HARD LOGO STYLE FIX */
.site-header a.logo,
.site-header a.logo:link,
.site-header a.logo:visited,
.site-header a.logo:hover,
.site-header a.logo:active,
.site-header a.logo:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    cursor: pointer !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.site-header a.logo:hover {
    opacity: 0.86 !important;
    transform: none !important;
}

/* FLOWBOARD STATUS CARD LAYOUT FIX */
.status-summary-card {
    min-width: 0;
    overflow: hidden;
}

.status-summary-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.status-summary-label {
    display: block;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.status-toggle-arrow {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.status-summary-number {
    display: block;
    line-height: 1;
    margin-top: 10px;
}

@media (max-width: 640px) {
    .status-summary-label {
        font-size: 14px;
    }

    .status-toggle-arrow {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
}

/* ===== Projects overview + create project modal ===== */

body.modal-open {
    overflow: hidden;
}

.projects-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #111;
    color: #fff;
    border-radius: 22px;
    padding: 34px;
    margin-bottom: 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.16);
}

.projects-hero-copy {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #777;
}

.projects-hero .eyebrow {
    color: rgba(255,255,255,0.62);
}

.projects-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1;
}

.projects-hero p {
    margin: 0;
    color: rgba(255,255,255,0.74);
    font-size: 17px;
    line-height: 1.55;
}

.projects-create-btn {
    flex: 0 0 auto;
    background: #fff;
    color: #111;
}

.projects-create-btn:hover {
    background: #f1f1f1;
}

.projects-overview {
    margin-bottom: 24px;
}

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

.project-overview-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-overview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(0,0,0,0.08);
    border-color: #d8d8d8;
}

.project-overview-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.project-card-kicker {
    margin: 0 0 8px;
    color: #777;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project-overview-card h2 {
    margin: 0;
    font-size: 25px;
    line-height: 1.15;
}

.project-card-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.project-card-description {
    margin: 0 0 18px;
    color: #555;
    line-height: 1.55;
}

.project-card-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.project-card-meta-item {
    border: 1px solid #ededed;
    border-radius: 16px;
    padding: 12px;
    background: #fafafa;
    min-width: 0;
}

.project-card-meta-item span {
    display: block;
    margin-bottom: 6px;
    color: #777;
    font-size: 12px;
    font-weight: 700;
}

.project-card-meta-item strong {
    display: block;
    color: #111;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.project-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.project-card-stats span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f1f1;
    color: #333;
    font-size: 13px;
    font-weight: 700;
}

.project-card-actions {
    display: flex;
    justify-content: flex-end;
}

.empty-projects-state {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 12px;
    background: #fff;
    border: 1px dashed #cfcfcf;
    border-radius: 22px;
    padding: 48px 24px;
}

.empty-projects-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #111;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    font-weight: 700;
}

.empty-projects-state h2 {
    margin: 0;
}

.empty-projects-state p {
    max-width: 560px;
    margin: 0 0 8px;
    color: #666;
    line-height: 1.55;
}

.project-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    background: rgba(0,0,0,0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.project-modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.project-modal-panel {
    width: min(560px, 100%);
    height: 100%;
    overflow-y: auto;
    background: #fff;
    padding: 30px;
    box-shadow: -24px 0 60px rgba(0,0,0,0.18);
    transform: translateX(24px);
    transition: transform 0.18s ease;
}

.project-modal-backdrop.is-open .project-modal-panel {
    transform: translateX(0);
}

.project-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.project-modal-header h2 {
    margin: 0;
    font-size: 30px;
}

.project-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 14px;
    background: #f1f1f1;
    color: #111;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    transition: background 0.18s ease, transform 0.18s ease;
}

.project-modal-close:hover {
    background: #e7e7e7;
    transform: translateY(-1px);
}

.project-modal-form {
    display: grid;
    gap: 18px;
}

.field-hint {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.45;
}

.project-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
}

@media (max-width: 900px) {
    .projects-hero {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .project-card-meta-grid {
        grid-template-columns: 1fr;
    }

    .project-card-actions {
        justify-content: stretch;
    }

    .project-card-actions .btn,
    .projects-create-btn {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .projects-hero {
        padding: 24px;
        border-radius: 18px;
    }

    .project-overview-card,
    .project-modal-panel {
        padding: 22px;
    }

    .project-modal-backdrop {
        justify-content: center;
    }

    .project-modal-panel {
        width: 100%;
    }
}

/* ===== Projects board menu + centered create modal override ===== */

.projects-board-page {
    position: relative;
    min-height: calc(100vh - 170px);
}

.projects-board-toolbar {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.projects-menu-wrap {
    position: relative;
    z-index: 30;
    flex: 0 0 auto;
}

.projects-menu-toggle {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 18px;
    background: #111;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0,0,0,0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.projects-menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.18);
}

.projects-menu-toggle.is-open {
    background: #2b2b2b;
}

.projects-menu-arrow {
    display: inline-block;
    font-size: 38px;
    line-height: 1;
    transform: rotate(180deg);
    transition: transform 0.18s ease;
}

.projects-menu-toggle.is-open .projects-menu-arrow {
    transform: rotate(0deg);
}

.projects-menu-panel {
    position: absolute;
    top: 66px;
    left: 0;
    width: min(320px, calc(100vw - 40px));
    padding: 20px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #e7e7e7;
    box-shadow: 0 22px 60px rgba(0,0,0,0.16);
    transform: translateX(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.projects-menu-panel.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.projects-menu-head {
    margin-bottom: 16px;
}

.projects-menu-head h2 {
    margin: 0;
    font-size: 26px;
}

.projects-menu-create {
    width: 100%;
}

.projects-menu-note {
    margin: 14px 0 0;
    color: #666;
    font-size: 14px;
    line-height: 1.45;
}

.projects-board-title {
    min-width: 0;
}

.projects-board-title h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
}

.projects-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(280px, 1fr));
    gap: 18px;
    align-items: stretch;
    overflow-x: auto;
    padding-bottom: 10px;
}

.project-column-card {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.project-column-card:hover {
    transform: translateY(-3px);
    border-color: #d2d2d2;
    box-shadow: 0 20px 46px rgba(0,0,0,0.09);
}

.project-column-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.project-column-card h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
}

.project-card-kicker {
    margin: 0 0 7px;
    color: #777;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project-card-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.project-card-description {
    margin: 0 0 18px;
    color: #555;
    line-height: 1.55;
}

.project-card-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.project-card-info div,
.project-status-list div {
    border: 1px solid #ededed;
    border-radius: 16px;
    padding: 12px;
    background: #fafafa;
}

.project-card-info span,
.project-status-list span {
    display: block;
    margin-bottom: 5px;
    color: #777;
    font-size: 12px;
    font-weight: 700;
}

.project-card-info strong,
.project-status-list strong {
    display: block;
    color: #111;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.project-status-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.project-open-btn {
    width: 100%;
    margin-top: auto;
}

.projects-empty-board {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 12px;
    background: #fff;
    border: 1px dashed #cfcfcf;
    border-radius: 24px;
    padding: 54px 24px;
}

.projects-empty-board h2 {
    margin: 0;
}

.projects-empty-board p {
    margin: 0 0 8px;
    color: #666;
}

/* override previous side-panel project modal */
.project-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0,0,0,0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.project-modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.project-modal-panel {
    width: min(900px, 100%);
    height: auto;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    background: #fff;
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 28px 80px rgba(0,0,0,0.24);
    transform: translateY(18px) scale(0.98);
    transition: transform 0.18s ease;
}

.project-modal-backdrop.is-open .project-modal-panel {
    transform: translateY(0) scale(1);
}

.project-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.project-modal-header h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 42px);
    line-height: 1.1;
}

.project-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 18px;
    background: #f1f1f1;
    color: #111;
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    transition: background 0.18s ease, transform 0.18s ease;
}

.project-modal-close:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
}

.project-modal-form {
    display: grid;
    gap: 18px;
}

.project-modal-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.field-hint {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 1200px) {
    .projects-columns {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
    }
}

@media (max-width: 900px) {
    .projects-columns {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
}

@media (max-width: 640px) {
    .projects-board-toolbar {
        gap: 14px;
    }

    .projects-menu-toggle {
        width: 50px;
        height: 50px;
        border-radius: 16px;
    }

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

    .project-modal-backdrop {
        padding: 12px;
    }

    .project-modal-panel {
        padding: 24px;
        border-radius: 20px;
    }

    .project-modal-actions .btn {
        width: 100%;
    }
}

/* ===== Unify project detail sidebar arrow with projects menu arrow ===== */

.project-back-btn {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    border-radius: 18px !important;
    background: #111 !important;
    color: #fff !important;
    cursor: pointer !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.14) !important;
    font-size: 32px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}

.project-back-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 36px rgba(0,0,0,0.18) !important;
    background: #111 !important;
}

.project-back-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 10px 22px rgba(0,0,0,0.14) !important;
}

.project-back-btn.is-collapsed {
    background: #2b2b2b !important;
    color: #fff !important;
}

/* ===== Project detail menu panel, same UX as projects menu ===== */

.project-sidebar-menu-wrap {
    position: relative;
    flex: 0 0 auto;
    z-index: 40;
}

.project-sidebar-menu-panel {
    top: 66px !important;
    right: 0 !important;
    left: auto !important;
    width: min(320px, calc(100vw - 40px)) !important;
    text-align: left;
}

.project-sidebar-menu-panel .projects-menu-head h2 {
    overflow-wrap: anywhere;
}

.project-sidebar-menu-panel .projects-menu-create {
    width: 100%;
}

.project-back-btn.projects-menu-toggle {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
}

.project-back-btn.projects-menu-toggle.is-open .projects-menu-arrow {
    transform: rotate(0deg);
}

/* ===== Fully remove project info card, keep only compact project menu arrow ===== */

.project-layout.project-layout-menu-only {
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 24px !important;
    align-items: flex-start !important;
}

.project-sidebar.project-sidebar-menu-only {
    position: sticky !important;
    top: 28px !important;
    width: 64px !important;
    min-width: 64px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.project-sidebar.project-sidebar-menu-only .project-sidebar-menu-wrap {
    margin: 0 !important;
}

.project-sidebar.project-sidebar-menu-only .project-back-btn.projects-menu-toggle {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    border-radius: 18px !important;
    background: #111 !important;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.14) !important;
    border: none !important;
}

.project-sidebar.project-sidebar-menu-only .project-back-btn.projects-menu-toggle:hover {
    background: #111 !important;
    color: #fff !important;
    box-shadow: 0 18px 36px rgba(0,0,0,0.18) !important;
    transform: translateY(-2px) !important;
}

.project-sidebar.project-sidebar-menu-only .project-back-btn.projects-menu-toggle.is-open {
    background: #2b2b2b !important;
    color: #fff !important;
}

.project-sidebar.project-sidebar-menu-only .project-sidebar-menu-panel {
    top: 66px !important;
    left: 0 !important;
    right: auto !important;
}

@media (max-width: 900px) {
    .project-layout.project-layout-menu-only {
        grid-template-columns: 1fr !important;
    }

    .project-sidebar.project-sidebar-menu-only {
        position: relative !important;
        top: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-bottom: 16px !important;
    }
}

/* admin auth 20260605 */
.nav-inline-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.nav-link-button {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.nav-link-button:hover {
    text-decoration: underline;
}

.admin-auth-page,
.admin-dashboard-page {
    min-height: calc(100vh - 140px);
    display: grid;
    align-items: center;
}

.admin-auth-card,
.admin-dashboard-hero,
.admin-dashboard-card {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
}

.admin-auth-card {
    width: min(520px, 100%);
    margin: 0 auto;
    padding: 34px;
}

.admin-auth-card h1,
.admin-dashboard-hero h1 {
    margin: 8px 0 12px;
}

.admin-auth-text,
.admin-dashboard-hero p,
.admin-dashboard-card p {
    color: #64748b;
}

.admin-auth-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.admin-alert {
    border-radius: 16px;
    padding: 12px 14px;
    margin-top: 16px;
    font-size: 14px;
}

.admin-alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.admin-alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.admin-dashboard-page {
    align-items: start;
    gap: 22px;
}

.admin-dashboard-hero {
    padding: 34px;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.admin-dashboard-card {
    padding: 22px;
}

.admin-dashboard-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 8px;
}

.admin-dashboard-card strong {
    display: block;
    font-size: 20px;
    color: #0f172a;
    margin-bottom: 8px;
}

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

    .admin-auth-card,
    .admin-dashboard-hero {
        padding: 24px;
    }
}

/* admin users 20260605 */
.admin-alert-success {
    background: #dcfce7;
    color: #166534;
}

.admin-users-layout {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.admin-users-card h2,
.admin-dashboard-card h2 {
    margin: 0 0 18px;
    color: #0f172a;
}

.admin-users-table {
    display: grid;
    gap: 14px;
}

.admin-user-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.82);
}

.admin-user-main {
    display: grid;
    gap: 6px;
}

.admin-user-main strong {
    font-size: 18px;
    color: #0f172a;
}

.admin-user-main span {
    font-size: 14px;
    color: #64748b;
}

.admin-user-actions {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.admin-small-btn {
    border: 0;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    padding: 9px 14px;
    white-space: nowrap;
}

.admin-small-btn:hover {
    transform: translateY(-1px);
}

.admin-danger-btn {
    background: #991b1b;
}

.admin-password-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-password-form input {
    min-width: 180px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    padding: 9px 12px;
}

.admin-auth-form select {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    padding: 12px 14px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
}

@media (max-width: 980px) {
    .admin-users-layout {
        grid-template-columns: 1fr;
    }

    .admin-user-row {
        grid-template-columns: 1fr;
    }

    .admin-user-actions {
        justify-items: stretch;
    }

    .admin-password-form {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-password-form input,
    .admin-small-btn {
        width: 100%;
    }
}

/* admin button redesign 20260605 */
.nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav a,
.nav-link-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav a:hover,
.nav-link-button:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.nav-inline-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.nav-link-button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.admin-auth-form .form-group {
    display: grid;
    gap: 9px;
}

.admin-auth-form label {
    color: #0f172a;
    font-weight: 800;
}

.admin-auth-form input,
.admin-auth-form select,
.admin-password-form input {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    font: inherit;
    font-weight: 650;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-auth-form input,
.admin-auth-form select {
    min-height: 56px;
    padding: 0 18px;
}

.admin-password-form input {
    min-width: 210px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
}

.admin-auth-form input:focus,
.admin-auth-form select:focus,
.admin-password-form input:focus {
    border-color: rgba(15, 23, 42, 0.42);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.admin-auth-form .btn,
.admin-dashboard-card a,
.admin-small-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-auth-form .btn {
    width: 100%;
    min-height: 60px;
    margin-top: 4px;
    font-size: 18px;
}

.admin-dashboard-card a {
    width: fit-content;
    padding: 12px 18px;
    margin-top: 8px;
}

.admin-small-btn {
    padding: 10px 16px;
    white-space: nowrap;
}

.admin-auth-form .btn:hover,
.admin-dashboard-card a:hover,
.admin-small-btn:hover {
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.22);
}

.admin-danger-btn {
    background: #7f1d1d;
    box-shadow: 0 14px 28px rgba(127, 29, 29, 0.18);
}

.admin-danger-btn:hover {
    background: #991b1b;
    box-shadow: 0 18px 34px rgba(127, 29, 29, 0.24);
}

.admin-user-actions form {
    margin: 0;
}

.admin-password-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-alert {
    border: 1px solid transparent;
    font-weight: 750;
}

.admin-alert-success {
    border-color: rgba(22, 101, 52, 0.16);
}

.admin-alert-error {
    border-color: rgba(153, 27, 27, 0.16);
}

.admin-alert-warning {
    border-color: rgba(146, 64, 14, 0.16);
}

.admin-user-row {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-user-row:hover {
    border-color: rgba(15, 23, 42, 0.16);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

@media (max-width: 760px) {
    .nav {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .nav a,
    .nav-link-button {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 14px;
    }

    .admin-auth-form .btn {
        min-height: 56px;
    }
}

/* admin role picker 20260605 */
.admin-role-group {
    gap: 12px;
}

.admin-role-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 6px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 24px;
    background: rgba(248, 250, 252, 0.92);
}

.admin-role-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-role-option {
    min-height: 74px;
    display: grid;
    align-content: center;
    gap: 4px;
    border-radius: 19px;
    padding: 12px 14px;
    color: #0f172a;
    cursor: pointer;
    user-select: none;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-role-option strong {
    font-size: 17px;
    line-height: 1;
}

.admin-role-option span {
    font-size: 12px;
    color: #64748b;
    line-height: 1.25;
}

.admin-role-option:hover {
    background: rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.admin-role-radio:checked + .admin-role-option {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.2);
}

.admin-role-radio:checked + .admin-role-option span {
    color: rgba(255, 255, 255, 0.72);
}

.admin-role-radio:focus-visible + .admin-role-option {
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.12), 0 14px 28px rgba(15, 23, 42, 0.18);
}

.admin-role-hint {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
}

@media (max-width: 520px) {
    .admin-role-picker {
        grid-template-columns: 1fr;
    }
}

/* role picker visual fix 20260605 */
.admin-role-picker-clean {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border-radius: 24px;
    background: rgba(248, 250, 252, 0.96);
}

.admin-role-picker-clean .admin-role-option {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 19px;
    padding: 0 18px;
    color: #0f172a;
    background: transparent;
    font-weight: 900;
    text-align: center;
    letter-spacing: -0.01em;
}

.admin-role-picker-clean .admin-role-title {
    display: block;
    color: inherit;
    font-size: 18px;
    line-height: 1;
}

.admin-role-radio:checked + .admin-role-option {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

.admin-role-radio:checked + .admin-role-option .admin-role-title {
    color: #ffffff;
}

.admin-role-picker-clean .admin-role-option:hover {
    background: rgba(15, 23, 42, 0.07);
}

.admin-role-radio:checked + .admin-role-option:hover {
    background: #111827;
}

.admin-role-caption {
    display: grid;
    gap: 6px;
    margin-top: 2px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
}

.admin-role-caption strong {
    color: #0f172a;
    font-weight: 900;
}

@media (max-width: 520px) {
    .admin-role-picker-clean {
        grid-template-columns: 1fr;
    }
}

/* role picker cards fixed 20260605 */
.admin-role-picker-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 6px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 24px;
    background: rgba(248, 250, 252, 0.96);
}

.admin-role-picker-cards .admin-role-option {
    min-height: 74px;
    display: grid;
    align-content: center;
    gap: 5px;
    border-radius: 19px;
    padding: 12px 14px;
    background: transparent;
    color: #0f172a;
    cursor: pointer;
    user-select: none;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-role-picker-cards .admin-role-option strong {
    display: block;
    color: inherit;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}

.admin-role-picker-cards .admin-role-option span {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.25;
    transition: color 0.18s ease;
}

.admin-role-picker-cards .admin-role-option:hover {
    background: rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.admin-role-picker-cards .admin-role-radio:checked + .admin-role-option {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

.admin-role-picker-cards .admin-role-radio:checked + .admin-role-option strong {
    color: #ffffff;
}

.admin-role-picker-cards .admin-role-radio:checked + .admin-role-option span {
    color: rgba(255, 255, 255, 0.72);
}

.admin-role-picker-cards .admin-role-radio:checked + .admin-role-option:hover {
    background: #111827;
}

.admin-role-picker-cards .admin-role-radio:focus-visible + .admin-role-option {
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.12), 0 14px 28px rgba(15, 23, 42, 0.18);
}

@media (max-width: 520px) {
    .admin-role-picker-cards {
        grid-template-columns: 1fr;
    }
}

/* admin users back link 20260605 */
.admin-page-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: -6px;
}

.admin-back-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 999px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #0f172a;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-back-link:hover {
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.admin-back-arrow {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    line-height: 1;
}

/* unified back arrow 20260605 */
.admin-page-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: -2px;
}

.admin-back-icon-link {
    width: 72px;
    height: 72px;
    min-height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 24px;
    padding: 0;
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-back-icon-link:hover {
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.24);
}

.admin-back-icon-link:active {
    transform: translateY(0);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

.admin-back-icon-link .admin-back-arrow {
    width: auto;
    height: auto;
    display: block;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    font-size: 46px;
    font-weight: 900;
    line-height: 0.8;
    transform: translateX(-1px) translateY(-2px);
}

.admin-back-icon-link .admin-back-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 760px) {
    .admin-back-icon-link {
        width: 60px;
        height: 60px;
        min-height: 60px;
        border-radius: 21px;
    }

    .admin-back-icon-link .admin-back-arrow {
        font-size: 40px;
    }
}


/* admin theme module 20260605 */
.theme-default {
    --fb-page-bg: #f5f5f5;
    --fb-card-bg: rgba(255, 255, 255, 0.92);
    --fb-text: #111827;
    --fb-muted: #64748b;
    --fb-accent: #0f172a;
    --fb-accent-soft: rgba(15, 23, 42, 0.08);
}

.theme-new_year {
    --fb-page-bg: #eef7ff;
    --fb-card-bg: rgba(255, 255, 255, 0.94);
    --fb-text: #102033;
    --fb-muted: #527089;
    --fb-accent: #0f5f86;
    --fb-accent-soft: rgba(14, 116, 144, 0.12);
}

.theme-halloween {
    --fb-page-bg: #17110d;
    --fb-card-bg: rgba(30, 24, 20, 0.94);
    --fb-text: #fff7ed;
    --fb-muted: #fed7aa;
    --fb-accent: #f97316;
    --fb-accent-soft: rgba(249, 115, 22, 0.16);
}

.theme-valentine {
    --fb-page-bg: #fff1f5;
    --fb-card-bg: rgba(255, 255, 255, 0.94);
    --fb-text: #3f1425;
    --fb-muted: #9f4565;
    --fb-accent: #be123c;
    --fb-accent-soft: rgba(225, 29, 72, 0.12);
}

.theme-cyber {
    --fb-page-bg: #090b13;
    --fb-card-bg: rgba(15, 18, 32, 0.94);
    --fb-text: #e5f7ff;
    --fb-muted: #8bd7ff;
    --fb-accent: #22d3ee;
    --fb-accent-soft: rgba(34, 211, 238, 0.14);
}

.theme-spring {
    --fb-page-bg: #f0fdf4;
    --fb-card-bg: rgba(255, 255, 255, 0.94);
    --fb-text: #12251a;
    --fb-muted: #4d7c5d;
    --fb-accent: #16a34a;
    --fb-accent-soft: rgba(34, 197, 94, 0.12);
}

body.theme-default,
body.theme-new_year,
body.theme-halloween,
body.theme-valentine,
body.theme-cyber,
body.theme-spring {
    background:
        radial-gradient(circle at top left, var(--fb-accent-soft), transparent 32%),
        var(--fb-page-bg);
    color: var(--fb-text);
}

.theme-halloween .site-header,
.theme-cyber .site-header {
    background: rgba(8, 10, 18, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.theme-halloween .logo,
.theme-halloween .nav a,
.theme-halloween .nav-link-button,
.theme-cyber .logo,
.theme-cyber .nav a,
.theme-cyber .nav-link-button {
    color: var(--fb-text);
}

.theme-halloween .admin-dashboard-hero,
.theme-halloween .admin-dashboard-card,
.theme-halloween .admin-auth-card,
.theme-halloween .admin-theme-card,
.theme-cyber .admin-dashboard-hero,
.theme-cyber .admin-dashboard-card,
.theme-cyber .admin-auth-card,
.theme-cyber .admin-theme-card {
    background: var(--fb-card-bg);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--fb-text);
}

.theme-halloween .admin-dashboard-hero p,
.theme-halloween .admin-dashboard-card p,
.theme-halloween .admin-theme-content span,
.theme-cyber .admin-dashboard-hero p,
.theme-cyber .admin-dashboard-card p,
.theme-cyber .admin-theme-content span {
    color: var(--fb-muted);
}

.admin-theme-page {
    display: grid;
    gap: 22px;
}

.admin-theme-form {
    display: grid;
    gap: 22px;
}

.admin-theme-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.admin-theme-card {
    position: relative;
    display: grid;
    gap: 16px;
    min-height: 250px;
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-theme-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.admin-theme-card.is-active {
    border-color: var(--fb-accent, #0f172a);
    box-shadow: 0 0 0 4px var(--fb-accent-soft, rgba(15, 23, 42, 0.1)), 0 24px 48px rgba(15, 23, 42, 0.14);
}

.admin-theme-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-theme-preview {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
    background: var(--theme-preview-bg, #f8fafc);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-theme-preview-bar {
    height: 26px;
    border-radius: 999px;
    background: var(--theme-preview-accent, #0f172a);
}

.admin-theme-preview-body {
    display: grid;
    gap: 8px;
}

.admin-theme-preview-body span {
    height: 14px;
    border-radius: 999px;
    background: var(--theme-preview-line, rgba(15, 23, 42, 0.14));
}

.admin-theme-preview-body span:nth-child(2) {
    width: 78%;
}

.admin-theme-preview-body span:nth-child(3) {
    width: 52%;
}

.admin-theme-content {
    display: grid;
    gap: 8px;
}

.admin-theme-content strong {
    color: var(--fb-text, #111827);
    font-size: 1.16rem;
}

.admin-theme-content span {
    color: var(--fb-muted, #64748b);
    line-height: 1.45;
}

.admin-theme-content em {
    width: fit-content;
    border-radius: 999px;
    padding: 6px 10px;
    background: var(--fb-accent-soft, rgba(15, 23, 42, 0.08));
    color: var(--fb-accent, #0f172a);
    font-style: normal;
    font-weight: 900;
    font-size: 0.78rem;
}

.admin-theme-preview-default {
    --theme-preview-bg: #f8fafc;
    --theme-preview-accent: #0f172a;
    --theme-preview-line: rgba(15, 23, 42, 0.16);
}

.admin-theme-preview-new_year {
    --theme-preview-bg: #eef7ff;
    --theme-preview-accent: #0f5f86;
    --theme-preview-line: rgba(14, 116, 144, 0.18);
}

.admin-theme-preview-halloween {
    --theme-preview-bg: #17110d;
    --theme-preview-accent: #f97316;
    --theme-preview-line: rgba(249, 115, 22, 0.24);
}

.admin-theme-preview-valentine {
    --theme-preview-bg: #fff1f5;
    --theme-preview-accent: #be123c;
    --theme-preview-line: rgba(225, 29, 72, 0.2);
}

.admin-theme-preview-cyber {
    --theme-preview-bg: #090b13;
    --theme-preview-accent: #22d3ee;
    --theme-preview-line: rgba(34, 211, 238, 0.24);
}

.admin-theme-preview-spring {
    --theme-preview-bg: #f0fdf4;
    --theme-preview-accent: #16a34a;
    --theme-preview-line: rgba(34, 197, 94, 0.22);
}

.admin-theme-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-theme-actions .btn,
.admin-theme-actions a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 18px;
    border: 0;
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-theme-actions a {
    background: rgba(15, 23, 42, 0.08);
    color: var(--fb-text, #111827);
    box-shadow: none;
}

.admin-theme-actions .btn:hover,
.admin-theme-actions a:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

@media (max-width: 980px) {
    .admin-theme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .admin-theme-card {
        min-height: 220px;
    }
}


/* admin theme selection fix 20260605 */
.admin-theme-card {
    user-select: none;
}

.admin-theme-card:has(.admin-theme-radio:checked) {
    border-color: var(--fb-accent, #0f172a);
    box-shadow: 0 0 0 4px var(--fb-accent-soft, rgba(15, 23, 42, 0.1)), 0 24px 48px rgba(15, 23, 42, 0.14);
}

.admin-theme-choice-dot {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: transparent;
    border: 2px solid rgba(15, 23, 42, 0.22);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
    z-index: 2;
}

.admin-theme-card.is-active .admin-theme-choice-dot,
.admin-theme-card:has(.admin-theme-radio:checked) .admin-theme-choice-dot {
    background: transparent;
    border-color: var(--fb-accent, #0f172a);
    box-shadow:
        0 0 0 4px var(--fb-accent-soft, rgba(15, 23, 42, 0.10)),
        0 10px 22px rgba(15, 23, 42, 0.1);
}

.admin-theme-card.is-active .admin-theme-content strong,
.admin-theme-card:has(.admin-theme-radio:checked) .admin-theme-content strong {
    color: var(--fb-accent, #0f172a);
}

.theme-halloween .admin-theme-choice-dot,
.theme-cyber .admin-theme-choice-dot {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.32);
}


/* hard remove theme choice dot 20260605 */
.admin-theme-choice-dot,
.admin-theme-card .admin-theme-choice-dot,
.admin-theme-card.is-active .admin-theme-choice-dot,
.admin-theme-card:has(.admin-theme-radio:checked) .admin-theme-choice-dot {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.admin-theme-choice-dot::before,
.admin-theme-choice-dot::after,
.admin-theme-card .admin-theme-choice-dot::before,
.admin-theme-card .admin-theme-choice-dot::after,
.admin-theme-card.is-active .admin-theme-choice-dot::before,
.admin-theme-card.is-active .admin-theme-choice-dot::after,
.admin-theme-card:has(.admin-theme-radio:checked) .admin-theme-choice-dot::before,
.admin-theme-card:has(.admin-theme-radio:checked) .admin-theme-choice-dot::after {
    content: none !important;
    display: none !important;
}

.admin-theme-card.is-active,
.admin-theme-card:has(.admin-theme-radio:checked) {
    border-color: var(--fb-accent, #0f172a) !important;
    box-shadow:
        0 0 0 3px var(--fb-accent-soft, rgba(15, 23, 42, 0.10)),
        0 24px 48px rgba(15, 23, 42, 0.14) !important;
}


/* theme selected card outline only 20260605 */
.admin-theme-choice-dot,
.admin-theme-choice-dot::before,
.admin-theme-choice-dot::after {
    display: none !important;
    content: none !important;
}

.admin-theme-card.is-active,
.admin-theme-card:has(.admin-theme-radio:checked) {
    border-color: var(--fb-accent, #0f172a) !important;
    box-shadow:
        0 0 0 3px var(--fb-accent-soft, rgba(15, 23, 42, 0.10)),
        0 24px 48px rgba(15, 23, 42, 0.14) !important;
}

/* theme visual skin v2 20260605 */
.site-header {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.site-header .header-row {
    position: relative;
    z-index: 3;
}

.logo {
    position: relative;
    z-index: 4;
}

.theme-header-decor {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
    overflow: hidden;
    pointer-events: none;
}

.theme-new_year .theme-header-decor,
.theme-halloween .theme-header-decor {
    display: block;
}

.theme-ornament,
.theme-particles {
    position: absolute;
    pointer-events: none;
}

.theme-ornament {
    display: none;
}

/* New Year */
.theme-new_year .site-header {
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.10), transparent 24%),
        linear-gradient(135deg, #08111f 0%, #0f2338 48%, #07111f 100%);
}

.theme-new_year .logo::before {
    content: "";
    position: absolute;
    left: 43px;
    top: -18px;
    width: 38px;
    height: 28px;
    z-index: 5;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    clip-path: polygon(8% 96%, 94% 96%, 68% 4%);
    border-radius: 14px 14px 8px 8px;
    transform: rotate(-14deg);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.theme-new_year .logo::after {
    content: "";
    position: absolute;
    left: 43px;
    top: 5px;
    width: 39px;
    height: 8px;
    z-index: 6;
    border-radius: 999px;
    background: #ffffff;
    transform: rotate(-8deg);
    box-shadow:
        28px -21px 0 -1px #ffffff,
        0 4px 10px rgba(255, 255, 255, 0.25);
}

.theme-new_year .theme-ornament-new-year {
    display: block;
    right: max(18px, calc((100vw - 1120px) / 2 + 22px));
    top: 11px;
    width: 46px;
    height: 54px;
}

.theme-new_year .theme-ornament-new-year::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 7px;
    width: 30px;
    height: 36px;
    background:
        linear-gradient(135deg, #34d399 0%, #047857 100%);
    clip-path: polygon(50% 0%, 86% 34%, 69% 34%, 96% 70%, 72% 70%, 100% 100%, 0 100%, 28% 70%, 4% 70%, 31% 34%, 14% 34%);
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.22));
}

.theme-new_year .theme-ornament-new-year::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 43px;
    width: 9px;
    height: 11px;
    border-radius: 2px;
    background: #92400e;
}

.theme-new_year .theme-snow {
    inset: 0;
}

.theme-new_year .theme-snow span {
    position: absolute;
    top: -12px;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
    animation-name: flowboardSnowFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.theme-new_year .theme-snow span:nth-child(1) { left: 6%;  animation-duration: 8s;  animation-delay: -1s; }
.theme-new_year .theme-snow span:nth-child(2) { left: 16%; animation-duration: 11s; animation-delay: -6s; width: 3px; height: 3px; }
.theme-new_year .theme-snow span:nth-child(3) { left: 28%; animation-duration: 9s;  animation-delay: -3s; }
.theme-new_year .theme-snow span:nth-child(4) { left: 39%; animation-duration: 12s; animation-delay: -7s; width: 5px; height: 5px; }
.theme-new_year .theme-snow span:nth-child(5) { left: 51%; animation-duration: 10s; animation-delay: -2s; }
.theme-new_year .theme-snow span:nth-child(6) { left: 63%; animation-duration: 13s; animation-delay: -8s; width: 3px; height: 3px; }
.theme-new_year .theme-snow span:nth-child(7) { left: 74%; animation-duration: 9s;  animation-delay: -5s; }
.theme-new_year .theme-snow span:nth-child(8) { left: 84%; animation-duration: 12s; animation-delay: -4s; width: 5px; height: 5px; }
.theme-new_year .theme-snow span:nth-child(9) { left: 92%; animation-duration: 10s; animation-delay: -6s; }
.theme-new_year .theme-snow span:nth-child(10) { left: 47%; animation-duration: 14s; animation-delay: -9s; width: 3px; height: 3px; }

@keyframes flowboardSnowFall {
    0% {
        transform: translate3d(0, -10px, 0);
        opacity: 0;
    }

    12% {
        opacity: 0.95;
    }

    100% {
        transform: translate3d(18px, 92px, 0);
        opacity: 0;
    }
}

/* Halloween */
.theme-halloween .site-header {
    background:
        radial-gradient(circle at 84% 28%, rgba(251, 146, 60, 0.18), transparent 18%),
        linear-gradient(135deg, #100b16 0%, #211025 52%, #0b0710 100%);
}

.theme-halloween .logo::before {
    content: "";
    position: absolute;
    left: 45px;
    top: -21px;
    width: 42px;
    height: 32px;
    z-index: 5;
    background: linear-gradient(135deg, #312e81 0%, #111827 78%);
    clip-path: polygon(50% 0%, 95% 88%, 5% 88%);
    transform: rotate(-11deg);
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.35));
}

.theme-halloween .logo::after {
    content: "";
    position: absolute;
    left: 38px;
    top: 5px;
    width: 54px;
    height: 9px;
    z-index: 6;
    border-radius: 999px;
    background: linear-gradient(90deg, #111827 0%, #312e81 100%);
    transform: rotate(-8deg);
    box-shadow: 0 -4px 0 -2px #f97316;
}

.theme-halloween .theme-ornament-halloween {
    display: block;
    right: max(18px, calc((100vw - 1120px) / 2 + 22px));
    top: 12px;
    width: 54px;
    height: 52px;
}

.theme-halloween .theme-ornament-halloween::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #f59e0b;
    box-shadow:
        -8px 4px 0 -2px rgba(245, 158, 11, 0.62),
        0 0 28px rgba(249, 115, 22, 0.34);
}

.theme-halloween .theme-ornament-halloween::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 30px;
    width: 22px;
    height: 15px;
    border-radius: 999px 999px 10px 10px;
    background: linear-gradient(135deg, #fb923c 0%, #c2410c 100%);
    box-shadow:
        8px 0 0 rgba(194, 65, 12, 0.8),
        4px -7px 0 -5px #14532d;
}

.theme-halloween .theme-bats {
    inset: 0;
}

.theme-halloween .theme-bats span {
    position: absolute;
    left: -42px;
    top: 18px;
    width: 26px;
    height: 10px;
    background: #020617;
    clip-path: polygon(0 55%, 20% 12%, 39% 52%, 50% 18%, 61% 52%, 80% 12%, 100% 55%, 74% 100%, 50% 62%, 26% 100%);
    opacity: 0.78;
    animation-name: flowboardBatFlight;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.theme-halloween .theme-bats span:nth-child(1) {
    top: 18px;
    animation-duration: 13s;
    animation-delay: -2s;
}

.theme-halloween .theme-bats span:nth-child(2) {
    top: 42px;
    animation-duration: 17s;
    animation-delay: -9s;
    transform: scale(0.76);
}

.theme-halloween .theme-bats span:nth-child(3) {
    top: 27px;
    animation-duration: 15s;
    animation-delay: -6s;
    transform: scale(0.58);
}

@keyframes flowboardBatFlight {
    0% {
        transform: translate3d(-48px, 0, 0) scale(0.72);
        opacity: 0;
    }

    12% {
        opacity: 0.7;
    }

    48% {
        transform: translate3d(52vw, -9px, 0) scale(0.88);
    }

    100% {
        transform: translate3d(108vw, 7px, 0) scale(0.72);
        opacity: 0;
    }
}

/* Theme Visual V2 safety */
.theme-default .theme-header-decor,
.theme-valentine .theme-header-decor,
.theme-cyber .theme-header-decor,
.theme-spring .theme-header-decor {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .theme-new_year .theme-snow span,
    .theme-halloween .theme-bats span {
        animation: none;
        opacity: 0.28;
    }
}

@media (max-width: 720px) {
    .theme-new_year .logo::before,
    .theme-new_year .logo::after,
    .theme-halloween .logo::before,
    .theme-halloween .logo::after {
        transform: scale(0.82) rotate(-10deg);
        transform-origin: left top;
    }

    .theme-new_year .theme-ornament-new-year,
    .theme-halloween .theme-ornament-halloween {
        right: 12px;
        opacity: 0.72;
        transform: scale(0.82);
        transform-origin: right top;
    }

    .theme-halloween .theme-bats span:nth-child(2),
    .theme-halloween .theme-bats span:nth-child(3) {
        display: none;
    }

    .theme-new_year .theme-snow span:nth-child(n+7) {
        display: none;
    }
}

@media (max-width: 520px) {
    .theme-new_year .logo::before,
    .theme-new_year .logo::after,
    .theme-halloween .logo::before,
    .theme-halloween .logo::after {
        display: none;
    }

    .theme-new_year .theme-ornament-new-year,
    .theme-halloween .theme-ornament-halloween {
        display: none;
    }
}

/* theme visual text readability fix 20260605 */
.theme-new_year .main-content,
.theme-halloween .main-content {
    color: #111827;
}

.theme-new_year .main-content h1,
.theme-new_year .main-content h2,
.theme-new_year .main-content h3,
.theme-new_year .main-content h4,
.theme-new_year .main-content strong,
.theme-halloween .main-content h1,
.theme-halloween .main-content h2,
.theme-halloween .main-content h3,
.theme-halloween .main-content h4,
.theme-halloween .main-content strong {
    color: #111827;
}

.theme-new_year .main-content p,
.theme-new_year .main-content li,
.theme-new_year .main-content span,
.theme-new_year .main-content label,
.theme-new_year .main-content small,
.theme-halloween .main-content p,
.theme-halloween .main-content li,
.theme-halloween .main-content span,
.theme-halloween .main-content label,
.theme-halloween .main-content small {
    color: #334155;
}

.theme-new_year .main-content .eyebrow,
.theme-halloween .main-content .eyebrow {
    color: #64748b;
}

.theme-new_year .main-content .card,
.theme-new_year .main-content .hero,
.theme-new_year .main-content .panel,
.theme-new_year .main-content .project-card,
.theme-new_year .main-content .task-card,
.theme-new_year .main-content .admin-dashboard-hero,
.theme-new_year .main-content .admin-card,
.theme-new_year .main-content .admin-theme-card,
.theme-halloween .main-content .card,
.theme-halloween .main-content .hero,
.theme-halloween .main-content .panel,
.theme-halloween .main-content .project-card,
.theme-halloween .main-content .task-card,
.theme-halloween .main-content .admin-dashboard-hero,
.theme-halloween .main-content .admin-card,
.theme-halloween .main-content .admin-theme-card {
    color: #111827;
}

.theme-new_year .main-content .muted,
.theme-new_year .main-content .help-text,
.theme-new_year .main-content .admin-theme-content span,
.theme-halloween .main-content .muted,
.theme-halloween .main-content .help-text,
.theme-halloween .main-content .admin-theme-content span {
    color: #64748b;
}

.theme-new_year .main-content a:not(.btn):not(.admin-back-icon-link),
.theme-halloween .main-content a:not(.btn):not(.admin-back-icon-link) {
    color: #0f172a;
}

.theme-new_year .site-header,
.theme-new_year .site-header a,
.theme-new_year .site-header button,
.theme-halloween .site-header,
.theme-halloween .site-header a,
.theme-halloween .site-header button {
    color: #ffffff;
}

/* theme readability hard fix 20260606 */

/* Public content: white cards must stay readable in decorative/dark themes */
.theme-new_year .main-content,
.theme-halloween .main-content,
.theme-cyber .main-content {
    --fb-text: #111827;
    --fb-muted: #334155;
    --fb-accent: #0f172a;
    --fb-accent-soft: rgba(15, 23, 42, 0.08);
    color: #111827;
}

.theme-new_year .main-content :where(h1, h2, h3, h4, h5, h6, strong, b),
.theme-halloween .main-content :where(h1, h2, h3, h4, h5, h6, strong, b),
.theme-cyber .main-content :where(h1, h2, h3, h4, h5, h6, strong, b) {
    color: #0f172a !important;
}

.theme-new_year .main-content :where(p, li, label, small, em),
.theme-halloween .main-content :where(p, li, label, small, em),
.theme-cyber .main-content :where(p, li, label, small, em) {
    color: #334155 !important;
}

.theme-new_year .main-content :where(.eyebrow, .muted, .help-text, .project-description, .task-description),
.theme-halloween .main-content :where(.eyebrow, .muted, .help-text, .project-description, .task-description),
.theme-cyber .main-content :where(.eyebrow, .muted, .help-text, .project-description, .task-description) {
    color: #475569 !important;
}

/* Buttons inside content must keep contrast */
.theme-new_year .main-content :where(.btn, .button, button, .project-open-link),
.theme-halloween .main-content :where(.btn, .button, button, .project-open-link),
.theme-cyber .main-content :where(.btn, .button, button, .project-open-link) {
    color: #ffffff !important;
}

/* Header stays bright on dark decorative header */
.theme-new_year .site-header,
.theme-new_year .site-header :where(a, button, .logo),
.theme-halloween .site-header,
.theme-halloween .site-header :where(a, button, .logo),
.theme-cyber .site-header,
.theme-cyber .site-header :where(a, button, .logo) {
    color: #ffffff !important;
}

/* Admin dark surfaces: Halloween and Cyber need light text, not public-card dark text */
.theme-halloween .admin-dashboard-page,
.theme-cyber .admin-dashboard-page {
    --fb-text: #f8fafc;
    --fb-muted: #93c5fd;
    --fb-accent: #7dd3fc;
    --fb-accent-soft: rgba(125, 211, 252, 0.12);
    color: #f8fafc !important;
}

.theme-halloween .admin-dashboard-page :where(h1, h2, h3, h4, h5, h6, strong, b),
.theme-cyber .admin-dashboard-page :where(h1, h2, h3, h4, h5, h6, strong, b) {
    color: #f8fafc !important;
}

.theme-halloween .admin-dashboard-page :where(p, li, label, small, em),
.theme-cyber .admin-dashboard-page :where(p, li, label, small, em) {
    color: #bfdbfe !important;
}

.theme-halloween .admin-dashboard-page :where(.eyebrow, .muted, .help-text),
.theme-cyber .admin-dashboard-page :where(.eyebrow, .muted, .help-text) {
    color: #7dd3fc !important;
}

.theme-halloween .admin-dashboard-page :where(a, .btn, .button, button),
.theme-cyber .admin-dashboard-page :where(a, .btn, .button, button) {
    color: #ffffff !important;
}

/* Admin cards in dark themes */
.theme-halloween .admin-dashboard-page :where(.admin-dashboard-hero, .admin-card, .admin-stat-card, .admin-theme-card),
.theme-cyber .admin-dashboard-page :where(.admin-dashboard-hero, .admin-card, .admin-stat-card, .admin-theme-card) {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(148, 163, 184, 0.24);
}

/* Theme selector preview chips must remain readable */
.theme-halloween .admin-theme-content em,
.theme-cyber .admin-theme-content em {
    color: #ffffff !important;
    background: rgba(125, 211, 252, 0.14);
}

/* Keep back arrow button readable */
.theme-halloween .admin-back-icon-link,
.theme-halloween .admin-back-icon-link *,
.theme-cyber .admin-back-icon-link,
.theme-cyber .admin-back-icon-link * {
    color: #ffffff !important;
}

/* cyber halloween card unification 20260606 */

/* Cyber + Halloween: dark atmosphere outside, white readable work cards inside */
.theme-cyber .main-content,
.theme-halloween .main-content {
    --fb-text: #111827;
    --fb-muted: #334155;
    --fb-accent: #0f172a;
    --fb-accent-soft: rgba(15, 23, 42, 0.08);
    color: #111827 !important;
}

/* All main cards / boxes / panels must be white and readable */
.theme-cyber .main-content :where(
    section,
    .hero,
    .card,
    .panel,
    .project-card,
    .task-card,
    .status-column,
    .modal-content,
    .admin-dashboard-hero,
    .admin-card,
    .admin-stat-card,
    .admin-theme-card,
    .admin-user-card,
    .admin-users-card,
    .admin-section,
    .admin-panel,
    .project-detail-hero,
    .project-detail-card,
    .project-meta-card,
    .task-form-card,
    .task-column,
    .task-list,
    .info-card
),
.theme-halloween .main-content :where(
    section,
    .hero,
    .card,
    .panel,
    .project-card,
    .task-card,
    .status-column,
    .modal-content,
    .admin-dashboard-hero,
    .admin-card,
    .admin-stat-card,
    .admin-theme-card,
    .admin-user-card,
    .admin-users-card,
    .admin-section,
    .admin-panel,
    .project-detail-hero,
    .project-detail-card,
    .project-meta-card,
    .task-form-card,
    .task-column,
    .task-list,
    .info-card
) {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
    box-shadow: 0 22px 50px rgba(2, 6, 23, 0.16) !important;
}

/* Text inside all cards */
.theme-cyber .main-content :where(h1, h2, h3, h4, h5, h6, strong, b),
.theme-halloween .main-content :where(h1, h2, h3, h4, h5, h6, strong, b) {
    color: #0f172a !important;
}

.theme-cyber .main-content :where(p, li, label, small, em, span),
.theme-halloween .main-content :where(p, li, label, small, em, span) {
    color: #334155 !important;
}

.theme-cyber .main-content :where(.eyebrow, .muted, .help-text, .project-description, .task-description),
.theme-halloween .main-content :where(.eyebrow, .muted, .help-text, .project-description, .task-description) {
    color: #475569 !important;
}

/* Dark buttons with white text */
.theme-cyber .main-content :where(.btn, .button, button, .project-open-link, .admin-theme-actions .btn),
.theme-halloween .main-content :where(.btn, .button, button, .project-open-link, .admin-theme-actions .btn) {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

.theme-cyber .main-content :where(.btn, .button, button, .project-open-link, .admin-theme-actions .btn) *,
.theme-halloween .main-content :where(.btn, .button, button, .project-open-link, .admin-theme-actions .btn) * {
    color: #ffffff !important;
}

/* Normal links inside content */
.theme-cyber .main-content :where(a:not(.btn):not(.button):not(.project-open-link):not(.admin-back-icon-link)),
.theme-halloween .main-content :where(a:not(.btn):not(.button):not(.project-open-link):not(.admin-back-icon-link)) {
    color: #0f172a !important;
}

/* Header stays dark and readable */
.theme-cyber .site-header,
.theme-cyber .site-header :where(a, button, .logo),
.theme-halloween .site-header,
.theme-halloween .site-header :where(a, button, .logo) {
    color: #ffffff !important;
}

/* Back arrow remains a black button with white chevron/text */
.theme-cyber .admin-back-icon-link,
.theme-halloween .admin-back-icon-link {
    background: #0f172a !important;
    color: #ffffff !important;
}

.theme-cyber .admin-back-icon-link *,
.theme-halloween .admin-back-icon-link * {
    color: #ffffff !important;
}

/* Theme selector cards on white background */
.theme-cyber .admin-theme-content strong,
.theme-halloween .admin-theme-content strong {
    color: #0f172a !important;
}

.theme-cyber .admin-theme-content span,
.theme-halloween .admin-theme-content span {
    color: #475569 !important;
}

.theme-cyber .admin-theme-content em,
.theme-halloween .admin-theme-content em {
    color: #0f172a !important;
    background: rgba(15, 23, 42, 0.08) !important;
}

/* Selected theme outline stays visible */
.theme-cyber .admin-theme-card.is-active,
.theme-cyber .admin-theme-card:has(.admin-theme-radio:checked),
.theme-halloween .admin-theme-card.is-active,
.theme-halloween .admin-theme-card:has(.admin-theme-radio:checked) {
    border-color: #0f172a !important;
    box-shadow:
        0 0 0 3px rgba(15, 23, 42, 0.10),
        0 24px 48px rgba(2, 6, 23, 0.18) !important;
}

/* cyber halloween background fix 20260606 */

/*
   Fix after card unification:
   - do NOT paint page wrappers white;
   - keep dark atmospheric background;
   - make only real cards/panels white.
*/

/* Return dark page background areas */
.theme-cyber .main-content,
.theme-halloween .main-content {
    background: transparent !important;
}

/* Page wrappers must not become giant white sheets */
.theme-cyber .main-content > [class*="-page"],
.theme-halloween .main-content > [class*="-page"],
.theme-cyber .main-content > section.admin-dashboard-page,
.theme-halloween .main-content > section.admin-dashboard-page,
.theme-cyber .main-content > section.admin-theme-page,
.theme-halloween .main-content > section.admin-theme-page,
.theme-cyber .main-content > section.admin-users-page,
.theme-halloween .main-content > section.admin-users-page,
.theme-cyber .main-content > section.projects-page,
.theme-halloween .main-content > section.projects-page,
.theme-cyber .main-content > section.project-detail-page,
.theme-halloween .main-content > section.project-detail-page {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* Also neutralize accidental full-width section whitening inside admin pages */
.theme-cyber .admin-dashboard-page,
.theme-halloween .admin-dashboard-page,
.theme-cyber .admin-theme-page,
.theme-halloween .admin-theme-page,
.theme-cyber .admin-users-page,
.theme-halloween .admin-users-page {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* Real cards / panels / boxes: white with dark text */
.theme-cyber :where(
    .home-hero,
    .about-section,
    .project-card,
    .task-card,
    .status-column,
    .admin-dashboard-hero,
    .admin-dashboard-card,
    .admin-card,
    .admin-stat-card,
    .admin-theme-card,
    .admin-user-card,
    .admin-users-card,
    .admin-panel,
    .admin-section,
    .project-detail-hero,
    .project-detail-card,
    .project-meta-card,
    .task-form-card,
    .info-card,
    .modal-content
),
.theme-halloween :where(
    .home-hero,
    .about-section,
    .project-card,
    .task-card,
    .status-column,
    .admin-dashboard-hero,
    .admin-dashboard-card,
    .admin-card,
    .admin-stat-card,
    .admin-theme-card,
    .admin-user-card,
    .admin-users-card,
    .admin-panel,
    .admin-section,
    .project-detail-hero,
    .project-detail-card,
    .project-meta-card,
    .task-form-card,
    .info-card,
    .modal-content
) {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
    box-shadow: 0 22px 50px rgba(2, 6, 23, 0.16) !important;
}

/* Fallback: direct cards inside admin grid */
.theme-cyber :where(.admin-dashboard-grid, .admin-grid, .admin-cards) > *,
.theme-halloween :where(.admin-dashboard-grid, .admin-grid, .admin-cards) > * {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
}

/* Text inside white cards */
.theme-cyber :where(
    .home-hero,
    .about-section,
    .project-card,
    .task-card,
    .status-column,
    .admin-dashboard-hero,
    .admin-dashboard-card,
    .admin-card,
    .admin-stat-card,
    .admin-theme-card,
    .admin-user-card,
    .admin-users-card,
    .admin-panel,
    .admin-section,
    .project-detail-hero,
    .project-detail-card,
    .project-meta-card,
    .task-form-card,
    .info-card,
    .modal-content
) :where(h1, h2, h3, h4, h5, h6, strong, b),
.theme-halloween :where(
    .home-hero,
    .about-section,
    .project-card,
    .task-card,
    .status-column,
    .admin-dashboard-hero,
    .admin-dashboard-card,
    .admin-card,
    .admin-stat-card,
    .admin-theme-card,
    .admin-user-card,
    .admin-users-card,
    .admin-panel,
    .admin-section,
    .project-detail-hero,
    .project-detail-card,
    .project-meta-card,
    .task-form-card,
    .info-card,
    .modal-content
) :where(h1, h2, h3, h4, h5, h6, strong, b) {
    color: #0f172a !important;
}

.theme-cyber :where(
    .home-hero,
    .about-section,
    .project-card,
    .task-card,
    .status-column,
    .admin-dashboard-hero,
    .admin-dashboard-card,
    .admin-card,
    .admin-stat-card,
    .admin-theme-card,
    .admin-user-card,
    .admin-users-card,
    .admin-panel,
    .admin-section,
    .project-detail-hero,
    .project-detail-card,
    .project-meta-card,
    .task-form-card,
    .info-card,
    .modal-content
) :where(p, li, label, small, em, span),
.theme-halloween :where(
    .home-hero,
    .about-section,
    .project-card,
    .task-card,
    .status-column,
    .admin-dashboard-hero,
    .admin-dashboard-card,
    .admin-card,
    .admin-stat-card,
    .admin-theme-card,
    .admin-user-card,
    .admin-users-card,
    .admin-panel,
    .admin-section,
    .project-detail-hero,
    .project-detail-card,
    .project-meta-card,
    .task-form-card,
    .info-card,
    .modal-content
) :where(p, li, label, small, em, span) {
    color: #334155 !important;
}

/* Buttons inside cards */
.theme-cyber .main-content :where(.btn, .button, button, .project-open-link),
.theme-halloween .main-content :where(.btn, .button, button, .project-open-link) {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

.theme-cyber .main-content :where(.btn, .button, button, .project-open-link) *,
.theme-halloween .main-content :where(.btn, .button, button, .project-open-link) * {
    color: #ffffff !important;
}

/* Header must stay dark and readable */
.theme-cyber .site-header,
.theme-cyber .site-header :where(a, button, .logo),
.theme-halloween .site-header,
.theme-halloween .site-header :where(a, button, .logo) {
    color: #ffffff !important;
}

/* Back arrow button */
.theme-cyber .admin-back-icon-link,
.theme-halloween .admin-back-icon-link {
    background: #0f172a !important;
    color: #ffffff !important;
}

.theme-cyber .admin-back-icon-link *,
.theme-halloween .admin-back-icon-link * {
    color: #ffffff !important;
}

/* theme aware admin buttons 20260606 */

/* Remove secondary return button on theme page if markup/cache survives */
.admin-theme-actions a[href="/admin"],
.admin-theme-actions a[href$="/admin"] {
    display: none !important;
}

/* Base admin/card buttons */
.admin-dashboard-page :where(.btn, .button, a.btn, button),
.admin-theme-page :where(.btn, .button, a.btn, button),
.admin-users-page :where(.btn, .button, a.btn, button) {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Default / clean themes */
.theme-default .admin-dashboard-page :where(.btn, .button, a.btn, button),
.theme-default .admin-theme-page :where(.btn, .button, a.btn, button),
.theme-default .admin-users-page :where(.btn, .button, a.btn, button),
.theme-new_year .admin-dashboard-page :where(.btn, .button, a.btn, button),
.theme-new_year .admin-theme-page :where(.btn, .button, a.btn, button),
.theme-new_year .admin-users-page :where(.btn, .button, a.btn, button),
.theme-spring .admin-dashboard-page :where(.btn, .button, a.btn, button),
.theme-spring .admin-theme-page :where(.btn, .button, a.btn, button),
.theme-spring .admin-users-page :where(.btn, .button, a.btn, button) {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

/* Halloween buttons */
.theme-halloween .admin-dashboard-page :where(.btn, .button, a.btn, button),
.theme-halloween .admin-theme-page :where(.btn, .button, a.btn, button),
.theme-halloween .admin-users-page :where(.btn, .button, a.btn, button) {
    background:
        linear-gradient(135deg, #1f130b 0%, #7c2d12 52%, #ea580c 100%) !important;
    color: #fff7ed !important;
    border-color: rgba(251, 146, 60, 0.35) !important;
    box-shadow: 0 18px 34px rgba(124, 45, 18, 0.22) !important;
}

/* Cyber buttons */
.theme-cyber .admin-dashboard-page :where(.btn, .button, a.btn, button),
.theme-cyber .admin-theme-page :where(.btn, .button, a.btn, button),
.theme-cyber .admin-users-page :where(.btn, .button, a.btn, button) {
    background:
        linear-gradient(135deg, #07111f 0%, #0f2b46 48%, #0e7490 100%) !important;
    color: #ecfeff !important;
    border-color: rgba(34, 211, 238, 0.35) !important;
    box-shadow: 0 18px 34px rgba(14, 116, 144, 0.24) !important;
}

/* Valentine buttons */
.theme-valentine .admin-dashboard-page :where(.btn, .button, a.btn, button),
.theme-valentine .admin-theme-page :where(.btn, .button, a.btn, button),
.theme-valentine .admin-users-page :where(.btn, .button, a.btn, button) {
    background:
        linear-gradient(135deg, #881337 0%, #be123c 58%, #fb7185 100%) !important;
    color: #fff1f2 !important;
    border-color: rgba(244, 63, 94, 0.28) !important;
}

/* Force nested text to follow each theme */
.theme-default .admin-dashboard-page :where(.btn, .button, a.btn, button) *,
.theme-default .admin-theme-page :where(.btn, .button, a.btn, button) *,
.theme-default .admin-users-page :where(.btn, .button, a.btn, button) *,
.theme-new_year .admin-dashboard-page :where(.btn, .button, a.btn, button) *,
.theme-new_year .admin-theme-page :where(.btn, .button, a.btn, button) *,
.theme-new_year .admin-users-page :where(.btn, .button, a.btn, button) *,
.theme-spring .admin-dashboard-page :where(.btn, .button, a.btn, button) *,
.theme-spring .admin-theme-page :where(.btn, .button, a.btn, button) *,
.theme-spring .admin-users-page :where(.btn, .button, a.btn, button) * {
    color: #ffffff !important;
}

.theme-halloween .admin-dashboard-page :where(.btn, .button, a.btn, button) *,
.theme-halloween .admin-theme-page :where(.btn, .button, a.btn, button) *,
.theme-halloween .admin-users-page :where(.btn, .button, a.btn, button) * {
    color: #fff7ed !important;
}

.theme-cyber .admin-dashboard-page :where(.btn, .button, a.btn, button) *,
.theme-cyber .admin-theme-page :where(.btn, .button, a.btn, button) *,
.theme-cyber .admin-users-page :where(.btn, .button, a.btn, button) * {
    color: #ecfeff !important;
}

.theme-valentine .admin-dashboard-page :where(.btn, .button, a.btn, button) *,
.theme-valentine .admin-theme-page :where(.btn, .button, a.btn, button) *,
.theme-valentine .admin-users-page :where(.btn, .button, a.btn, button) * {
    color: #fff1f2 !important;
}

/* button text hard fix 20260606 */

/* Final override: themed admin/action buttons text color */
.theme-cyber :where(
    .admin-dashboard-page,
    .admin-theme-page,
    .admin-users-page
) :where(
    a.btn,
    .btn,
    button,
    .button,
    [role="button"],
    .admin-card a,
    .admin-stat-card a,
    .admin-dashboard-card a,
    .admin-theme-actions button,
    .admin-theme-actions .btn
) {
    color: #ecfeff !important;
    -webkit-text-fill-color: #ecfeff !important;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.22) !important;
}

.theme-halloween :where(
    .admin-dashboard-page,
    .admin-theme-page,
    .admin-users-page
) :where(
    a.btn,
    .btn,
    button,
    .button,
    [role="button"],
    .admin-card a,
    .admin-stat-card a,
    .admin-dashboard-card a,
    .admin-theme-actions button,
    .admin-theme-actions .btn
) {
    color: #fff7ed !important;
    -webkit-text-fill-color: #fff7ed !important;
    text-shadow: 0 0 10px rgba(251, 146, 60, 0.20) !important;
}

.theme-new_year :where(
    .admin-dashboard-page,
    .admin-theme-page,
    .admin-users-page
) :where(
    a.btn,
    .btn,
    button,
    .button,
    [role="button"],
    .admin-card a,
    .admin-stat-card a,
    .admin-dashboard-card a,
    .admin-theme-actions button,
    .admin-theme-actions .btn
) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.theme-valentine :where(
    .admin-dashboard-page,
    .admin-theme-page,
    .admin-users-page
) :where(
    a.btn,
    .btn,
    button,
    .button,
    [role="button"],
    .admin-card a,
    .admin-stat-card a,
    .admin-dashboard-card a,
    .admin-theme-actions button,
    .admin-theme-actions .btn
) {
    color: #fff1f2 !important;
    -webkit-text-fill-color: #fff1f2 !important;
}

.theme-spring :where(
    .admin-dashboard-page,
    .admin-theme-page,
    .admin-users-page
) :where(
    a.btn,
    .btn,
    button,
    .button,
    [role="button"],
    .admin-card a,
    .admin-stat-card a,
    .admin-dashboard-card a,
    .admin-theme-actions button,
    .admin-theme-actions .btn
),
.theme-default :where(
    .admin-dashboard-page,
    .admin-theme-page,
    .admin-users-page
) :where(
    a.btn,
    .btn,
    button,
    .button,
    [role="button"],
    .admin-card a,
    .admin-stat-card a,
    .admin-dashboard-card a,
    .admin-theme-actions button,
    .admin-theme-actions .btn
) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Nested elements inside buttons */
.theme-cyber :where(
    .admin-dashboard-page,
    .admin-theme-page,
    .admin-users-page
) :where(a.btn, .btn, button, .button, [role="button"], .admin-card a, .admin-stat-card a, .admin-dashboard-card a) *,
.theme-cyber :where(
    .admin-dashboard-page,
    .admin-theme-page,
    .admin-users-page
) :where(a.btn, .btn, button, .button, [role="button"], .admin-card a, .admin-stat-card a, .admin-dashboard-card a)::before,
.theme-cyber :where(
    .admin-dashboard-page,
    .admin-theme-page,
    .admin-users-page
) :where(a.btn, .btn, button, .button, [role="button"], .admin-card a, .admin-stat-card a, .admin-dashboard-card a)::after {
    color: #ecfeff !important;
    -webkit-text-fill-color: #ecfeff !important;
}

.theme-halloween :where(
    .admin-dashboard-page,
    .admin-theme-page,
    .admin-users-page
) :where(a.btn, .btn, button, .button, [role="button"], .admin-card a, .admin-stat-card a, .admin-dashboard-card a) *,
.theme-halloween :where(
    .admin-dashboard-page,
    .admin-theme-page,
    .admin-users-page
) :where(a.btn, .btn, button, .button, [role="button"], .admin-card a, .admin-stat-card a, .admin-dashboard-card a)::before,
.theme-halloween :where(
    .admin-dashboard-page,
    .admin-theme-page,
    .admin-users-page
) :where(a.btn, .btn, button, .button, [role="button"], .admin-card a, .admin-stat-card a, .admin-dashboard-card a)::after {
    color: #fff7ed !important;
    -webkit-text-fill-color: #fff7ed !important;
}

/* theme card click fix 20260606 */

/* Restore clickable theme cards after hard visual overrides */
.admin-theme-card {
    position: relative !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none !important;
}

.admin-theme-card * {
    pointer-events: none !important;
}

.admin-theme-card .admin-theme-radio {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    pointer-events: none !important;
}

/* Selected state must be visible in every theme */
.admin-theme-card.is-active,
.admin-theme-card:has(.admin-theme-radio:checked) {
    border-color: #0f172a !important;
    box-shadow:
        0 0 0 4px rgba(15, 23, 42, 0.14),
        0 24px 48px rgba(2, 6, 23, 0.18) !important;
    transform: translateY(-2px);
}

.theme-cyber .admin-theme-card.is-active,
.theme-cyber .admin-theme-card:has(.admin-theme-radio:checked) {
    border-color: #22d3ee !important;
    box-shadow:
        0 0 0 4px rgba(34, 211, 238, 0.28),
        0 0 34px rgba(34, 211, 238, 0.18),
        0 24px 48px rgba(2, 6, 23, 0.18) !important;
}

.theme-halloween .admin-theme-card.is-active,
.theme-halloween .admin-theme-card:has(.admin-theme-radio:checked) {
    border-color: #fb923c !important;
    box-shadow:
        0 0 0 4px rgba(251, 146, 60, 0.28),
        0 0 34px rgba(251, 146, 60, 0.16),
        0 24px 48px rgba(2, 6, 23, 0.18) !important;
}

.theme-new_year .admin-theme-card.is-active,
.theme-new_year .admin-theme-card:has(.admin-theme-radio:checked) {
    border-color: #0ea5e9 !important;
    box-shadow:
        0 0 0 4px rgba(14, 165, 233, 0.20),
        0 24px 48px rgba(2, 6, 23, 0.16) !important;
}

.theme-valentine .admin-theme-card.is-active,
.theme-valentine .admin-theme-card:has(.admin-theme-radio:checked) {
    border-color: #fb7185 !important;
    box-shadow:
        0 0 0 4px rgba(251, 113, 133, 0.20),
        0 24px 48px rgba(2, 6, 23, 0.16) !important;
}

.theme-spring .admin-theme-card.is-active,
.theme-spring .admin-theme-card:has(.admin-theme-radio:checked) {
    border-color: #22c55e !important;
    box-shadow:
        0 0 0 4px rgba(34, 197, 94, 0.18),
        0 24px 48px rgba(2, 6, 23, 0.16) !important;
}

/* site settings public banner 20260606 */
.site-maintenance-banner {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 18px;
    background: #fff7ed;
    color: #7c2d12;
    border: 1px solid rgba(251, 146, 60, 0.35);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
    font-weight: 700;
}

.theme-cyber .site-maintenance-banner {
    background: #ecfeff;
    color: #0f172a;
    border-color: rgba(34, 211, 238, 0.42);
}

.theme-halloween .site-maintenance-banner {
    background: #fff7ed;
    color: #431407;
    border-color: rgba(251, 146, 60, 0.42);
}

.theme-valentine .site-maintenance-banner {
    background: #fff1f2;
    color: #881337;
    border-color: rgba(251, 113, 133, 0.35);
}

.theme-spring .site-maintenance-banner {
    background: #f0fdf4;
    color: #14532d;
    border-color: rgba(34, 197, 94, 0.30);
}

