﻿:root {
    --hc-bg: #f7f8fc;
    --hc-surface: #ffffff;
    --hc-border: rgba(78, 79, 115, 0.18);
    --hc-text: #4e4f73;
    --hc-muted: rgba(78, 79, 115, 0.66);
    --hc-primary: #4e4f73;
    --hc-primary-soft: rgba(78, 79, 115, 0.08);
    --hc-accent-a: #3f7ea8;
    --hc-accent-b: #ab6c5d;
    --hc-good: #2f8f68;
    --hc-danger: #b24d4d;
}

body {
    background:
        radial-gradient(900px 460px at 10% -10%, #ffffff 0%, transparent 60%),
        radial-gradient(760px 420px at 100% 0%, #eef0fb 0%, transparent 60%),
        var(--hc-bg);
}

.checklist-content {
    max-width: 1460px;
    padding-top: 26px;
    display: grid;
    gap: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.96rem;
    line-height: 1.35;
    color: var(--hc-muted);
}

.breadcrumb a {
    color: var(--hc-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--hc-accent-a);
    border-color: currentColor;
}

.breadcrumb-sep {
    color: rgba(78, 79, 115, 0.42);
}

.breadcrumb-current {
    color: var(--hc-text);
    font-weight: 600;
}


.intro-card,
.panel {
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(78, 79, 115, 0.06);
}

.intro-tag {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--hc-muted);
    margin-bottom: 8px;
}

.intro-card .section-title {
    text-align: left;
    font-size: clamp(2rem, 5vw, 3.3rem);
    margin-bottom: 10px;
    line-height: 0.95;
}

.intro-card .section-description {
    font-weight: 500;
    max-width: 78ch;
    margin-bottom: 10px;
}

.note {
    font-size: 0.86rem;
    color: var(--hc-muted);
}

.panel-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.field {
    display: grid;
    gap: 6px;
}

.field span {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--hc-muted);
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    border: 1.5px solid var(--hc-border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: var(--hc-text);
    background: var(--hc-surface);
    font-family: inherit;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--hc-primary);
    box-shadow: 0 0 0 3px var(--hc-primary-soft);
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 14px;
    align-items: start;
}

.workspace-left {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.workspace-grid > .panel,
.workspace-left > .panel {
    min-width: 0;
}

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

.workspace-left .settings-grid .field:last-child {
    grid-column: 1 / -1;
}
.library-panel {
    min-width: 0;
}

.selection-count {
    font-size: 0.78rem;
    color: var(--hc-muted);
    font-weight: 700;
}

.library-container {
    margin-top: 12px;
    display: grid;
    gap: 10px;
    max-height: 420px;
    overflow: auto;
    padding: 8px 8px 8px 12px;
    border: 1px solid rgba(78, 79, 115, 0.18);
    border-radius: 12px;
    background: #f9faff;
    position: relative;
}

.library-container::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    border-radius: 999px;
    background: rgba(78, 79, 115, 0.14);
    pointer-events: none;
}

.library-panel .btn-row {
    grid-template-columns: 1fr;
}

.library-group {
    border: 1px solid rgba(78, 79, 115, 0.26);
    border-radius: 12px;
    background: #fcfcff;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(78, 79, 115, 0.06);
}

.library-group summary {
    list-style: none;
    cursor: pointer;
    padding: 11px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    background: #f7f8ff;
    border-bottom: 1px solid rgba(78, 79, 115, 0.16);
}

.library-group[open] summary {
    background: #f5f7ff;
}

.library-group summary::-webkit-details-marker {
    display: none;
}

.library-meta {
    font-size: 0.76rem;
    color: var(--hc-muted);
    font-weight: 600;
}

.library-list {
    list-style: none;
    margin: 0;
    padding: 8px 10px 10px;
    display: grid;
    gap: 6px;
}

.library-item {
    border: 1px solid rgba(78, 79, 115, 0.1);
    border-radius: 8px;
    background: #fff;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.library-item.is-added {
    background: #f4f5fb;
}

.library-choice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    flex: 1;
}

.library-choice input {
    margin-top: 3px;
}

.library-choice span {
    font-size: 0.89rem;
    line-height: 1.35;
}

.tag-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.68rem;
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 700;
    white-space: nowrap;
}

.tag.recommended {
    background: rgba(79, 150, 102, 0.15);
    color: #2f7550;
}

.tag.added {
    background: rgba(78, 79, 115, 0.14);
    color: var(--hc-primary);
}

.btn-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
}

.btn-row-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    background: var(--hc-primary);
    color: #fff;
    transition: 0.2s ease;
    font-family: inherit;
}

.btn:hover {
    filter: brightness(0.94);
}

.btn-secondary {
    background: #eef0fb;
    color: var(--hc-primary);
    border-color: var(--hc-border);
}

.btn-ghost {
    background: #fff;
    color: var(--hc-primary);
    border-color: var(--hc-border);
}

.btn-danger {
    background: #fff2f2;
    color: var(--hc-danger);
    border-color: rgba(178, 77, 77, 0.32);
}


.onboarding-panel {
    background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
}

.onboarding-details {
    border: 1px solid var(--hc-border);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.onboarding-details summary {
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 0.93rem;
    color: var(--hc-primary);
    background: var(--hc-primary-soft);
}

.onboarding-details summary:hover {
    filter: brightness(0.97);
}

.onboarding-content {
    padding: 14px;
    display: grid;
    gap: 12px;
}

.onboarding-steps {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
}

.onboarding-steps li {
    font-size: 0.88rem;
    line-height: 1.45;
}

.onboarding-questions {
    border: 1px dashed var(--hc-border);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fcfcff;
}

.onboarding-questions h3 {
    margin: 0 0 8px;
    font-size: 0.88rem;
}

.onboarding-questions ul {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 6px;
}

.onboarding-questions li {
    font-size: 0.84rem;
    line-height: 1.45;
}

.plan-tools {
    border: 1px solid var(--hc-border);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fbfbff;
    display: grid;
    gap: 9px;
}

.plan-filter-field {
    margin: 0;
}

.plan-tools-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.plan-tools-meta .note {
    margin: 0;
    font-size: 0.8rem;
}



.defaults-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tasks-table {
    table-layout: fixed;
    min-width: 980px;
}

.tasks-table th:nth-child(1),
.tasks-table td:nth-child(1),
.tasks-table th:nth-child(8),
.tasks-table td:nth-child(8) {
    text-align: center;
}

.tasks-table th:nth-child(1),
.tasks-table td:nth-child(1) { width: 48px; }

.tasks-table th:nth-child(2),
.tasks-table td:nth-child(2) { width: 220px; }

.tasks-table th:nth-child(3),
.tasks-table td:nth-child(3) { width: 130px; }

.tasks-table th:nth-child(4),
.tasks-table td:nth-child(4) { width: 122px; }

.tasks-table th:nth-child(5),
.tasks-table td:nth-child(5) { width: 140px; }

.tasks-table th:nth-child(6),
.tasks-table td:nth-child(6) { width: 82px; }

.tasks-table th:nth-child(7),
.tasks-table td:nth-child(7) { width: 132px; }

.tasks-table th:nth-child(8),
.tasks-table td:nth-child(8) { width: 70px; }

.table-textarea {
    min-height: 58px;
    resize: vertical;
    line-height: 1.35;
    font-family: inherit;
}

.week-flag,
.task-done {
    transform: scale(1.08);
}


.table-wrap {
    overflow: auto;
}

.tasks-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.tasks-table th,
.tasks-table td {
    border-bottom: 1px solid rgba(78, 79, 115, 0.14);
    padding: 8px;
    vertical-align: top;
}

.tasks-table th {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--hc-muted);
    text-align: left;
    white-space: normal;
    line-height: 1.2;
}

.tasks-table td {
    font-size: 0.86rem;
}

.tasks-table tr:hover td {
    background: #fafaff;
}

.tasks-table input[type="checkbox"] {
    transform: scale(1.06);
    margin-top: 6px;
}

.table-input,
.table-select {
    width: 100%;
    min-width: 120px;
    border: 1px solid rgba(78, 79, 115, 0.2);
    border-radius: 8px;
    padding: 8px 9px;
    font-size: 0.84rem;
    background: #fff;
}

.table-input.notes {
    min-width: 120px;
}

.effort-input {
    min-width: 86px;
}

.del-btn {
    border: 1px solid rgba(178, 77, 77, 0.35);
    background: #fff;
    color: var(--hc-danger);
    border-radius: 8px;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

.empty-row td {
    text-align: center;
    color: var(--hc-muted);
    padding: 30px 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.stat-card {
    border: 1px solid var(--hc-border);
    border-radius: 12px;
    padding: 11px 12px;
    background: #fff;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--hc-muted);
    margin-bottom: 6px;
}

.stat-value {
    font-size: 1.6rem;
    font-family: "Lithium", Georgia, serif;
    line-height: 1;
}

.load-bars {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.load-row {
    display: grid;
    grid-template-columns: 190px 1fr 56px;
    align-items: center;
    gap: 10px;
}

.load-label {
    font-size: 0.84rem;
    font-weight: 700;
}

.load-track {
    height: 14px;
    border-radius: 999px;
    border: 1px solid var(--hc-border);
    overflow: hidden;
    background: #f1f2f8;
}

.load-fill {
    display: block;
    height: 100%;
    width: 50%;
    transition: width 0.22s ease;
}

.load-fill-a {
    background: var(--hc-accent-a);
}

.load-fill-b {
    background: var(--hc-accent-b);
}

.load-percent {
    text-align: right;
    font-size: 0.82rem;
    font-weight: 700;
}

.responsibility-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.responsibility-col {
    border: 1px solid var(--hc-border);
    border-radius: 10px;
    padding: 11px;
    background: #fff;
}

.responsibility-col h3 {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.responsibility-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 5px;
}

.responsibility-list li {
    font-size: 0.82rem;
    line-height: 1.35;
}

.responsibility-list .meta {
    color: var(--hc-muted);
    font-size: 0.74rem;
}

.agreements-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.summary-output {
    margin-top: 8px;
    width: 100%;
    min-height: 200px;
    border: 1px solid var(--hc-border);
    border-radius: 12px;
    padding: 12px;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--hc-text);
    background: #fdfdff;
    font-family: "Consolas", "Courier New", monospace;
}

.copy-status {
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--hc-good);
    min-height: 1em;
}

@media (max-width: 1200px) {
    .workspace-grid {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr);
        gap: 12px;
    }

    .workspace-left .settings-grid {
        grid-template-columns: 1fr;
    }

    .workspace-left .settings-grid .field:last-child {
        grid-column: auto;
    }

    .library-container {
        max-height: 360px;
    }
}
@media (max-width: 980px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }


    .settings-grid {
        grid-template-columns: 1fr;
    }

    .defaults-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .responsibility-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .main-content.checklist-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .intro-card,
    .panel {
        padding: 14px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .load-row {
        grid-template-columns: 1fr;
    }

    .load-percent {
        text-align: left;
    }

    .responsibility-grid,
    .agreements-grid {
        grid-template-columns: 1fr;
    }

    .plan-tools-meta {
        align-items: flex-start;
    }

    .btn-row-inline {
        width: 100%;
    }

    .btn-row-inline .btn {
        flex: 1;
    }
}

@media print {
    .navbar,
    .footer,
    .library-panel,
    .onboarding-panel,
    .defaults-grid,

    .export-panel .btn-row-inline,
    #copyStatus,
    .plan-filter-field,
    #resetPlanFilterBtn,
    .btn-row-inline,
    .btn-row {
        display: none !important;
    }

    .main-content.checklist-content {
        max-width: 100%;
        padding: 0;
    }

    .panel,
    .intro-card {
        box-shadow: none;
        border-color: #bbb;
    }
}
.plan-tools > .btn {
    width: auto;
    justify-self: start;
}


