/* =========================================================
   IMTPS
   ========================================================= */


/* ---------------------------------------------------------
   Colours
   --------------------------------------------------------- */

:root {

    --page-bg: #f8cfd3;
    --page-bg-light: #fbe3e4;

    --app-bg: #fdf1f1;

    --panel: #fffafa;
    --panel-soft: #fff5f5;

    --sidebar: #fffafa;
    --sidebar-hover: #fcebec;

    --coral: #f58b80;
    --coral-dark: #eb776c;
    --coral-soft: #fde0de;

    --berry: #c91c56;
    --berry-dark: #a91649;
    --berry-soft: #fae4eb;

    --text: #3b2c32;
    --text-soft: #7f6d72;
    --text-light: #b29fa4;

    --border: #f0d9dc;
    --border-dark: #e7c7cb;

    --shadow-app:
        0 30px 70px rgba(138, 75, 82, 0.14);

    --shadow-card:
        0 10px 30px rgba(138, 75, 82, 0.08);

    --radius-small: 10px;
    --radius-medium: 16px;
    --radius-large: 26px;
    --radius-app: 34px;

    --sidebar-width: 205px;
}



/* ---------------------------------------------------------
   Reset
   --------------------------------------------------------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    padding: 28px;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background:
        linear-gradient(
            135deg,
            var(--page-bg-light) 0%,
            var(--page-bg) 45%,
            #f7c6cb 100%
        );

    color: var(--text);

    line-height: 1.5;
}


button,
input,
select {
    font-family: inherit;
}


button {
    cursor: pointer;
}


body.modal-open {
    overflow: hidden;
}



/* =========================================================
   Logo
   ========================================================= */

.logo-body {
    fill: #fff8f7;
}


.logo-ring {
    fill: #fff8f7;
}


.logo-header {
    fill: #f8bbb4;
}


.logo-task {
    fill: #ed8378;
}


.logo-task-soft {
    fill: #f5aaa4;
}


.logo-task-accent {
    fill: #bd3d68;
}


.logo-motion {
    fill: #f6b3ad;
}


.logo-arrow {
    fill: none;

    stroke: #bd3d68;
    stroke-width: 5;

    stroke-linecap: round;
}


.logo-arrow-head {
    fill: none;

    stroke: #bd3d68;
    stroke-width: 5;

    stroke-linecap: round;
    stroke-linejoin: round;
}



.splash-logo {

    width: 108px;
    height: 108px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            #f59a91,
            #d95878
        );

    box-shadow:
        0 14px 30px rgba(190, 67, 104, 0.18);
}


.splash-logo .logo-svg {

    width: 80px;
    height: 80px;
}


.splash-content h1 {

    font-size: 36px;
    font-weight: 800;

    letter-spacing: 1.5px;

    color: #372a31;
}


.splash-tagline {

    margin-top: 4px;

    color: var(--text-soft);

    font-size: 15px;
    font-weight: 500;
}


.splash-divider {

    width: 55px;
    height: 2px;

    margin: 23px auto 18px;

    border-radius: 100px;

    background: var(--coral);
}


.splash-names {

    color: var(--text-light);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.25px;
}



/* =========================================================
   Auth page shell
   ========================================================= */

.auth-page-shell {

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 28px;
}


.auth-page-shell .splash-screen {

    position: relative;
    inset: auto;

    width: min(500px, 100%);

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        rgba(255, 250, 250, 0.9);

    border: 1px solid rgba(255, 245, 245, 0.8);
    border-radius: 32px;

    box-shadow:
        0 25px 65px rgba(126, 69, 77, 0.14);
}


.auth-page-shell .splash-content {

    width: 100%;
    max-width: 440px;

    padding: 34px 30px;

    text-align: center;

    background: transparent;
    box-shadow: none;
}


.auth-page-shell #task-form {
    width: min(320px, 100%);
    margin: 0 auto;
}


.auth-page-shell .cancel-button,
.auth-page-shell .save-task-button {
    display: block;
    width: 190px;
    margin: 0 auto;
}

.auth-page-shell #go-signup,
.auth-page-shell #go-login {
    margin-top: 16px;
}


/* =========================================================
   Post-login loading splash
   ========================================================= */

.app-loading-splash {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(135deg, #fbe3e4 0%, #f8cfd3 48%, #f7c6cb 100%);

    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.app-loading-splash.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.app-loading-content {
    text-align: center;
}

.app-loading-kirby {
    width: 145px;
    height: 130px;
    margin: 0 auto 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: appLoadingKirbyFloat 1.8s ease-in-out infinite;
}

.app-loading-kirby img {
    width: 145px;
    height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 12px 14px rgba(122, 46, 69, 0.18));
}

@keyframes appLoadingKirbyFloat {
    0%, 100% { transform: translateY(25px); }
    50% { transform: translateY(50px); }
}

.app-loading-logo {
    width: 94px;
    height: 94px;
    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 25px;
    background: linear-gradient(145deg, #f59a91, #d95878);
    box-shadow: 0 14px 30px rgba(190, 67, 104, 0.18);
}

.app-loading-logo span {
    color: #fff8f7;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: 1.5px;
}

.app-loading-content h1 {
    color: #372a31;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1px;
}

.app-loading-content p {
    margin-top: 3px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
}

.app-loading-spinner {
    width: 22px;
    height: 22px;
    margin: 24px auto 0;

    border: 3px solid rgba(201, 28, 86, 0.18);
    border-top-color: var(--berry);
    border-radius: 50%;

    animation: appLoadingSpin 0.8s linear infinite;
}

@keyframes appLoadingSpin {
    to {
        transform: rotate(360deg);
    }
}

.loading-tagline {
    margin-top: 18px;
    font-family: "Poppins", "Inter", sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-align: center;
    font-style: italic;
    
    background: linear-gradient(
        90deg,
        #f58aca,
        #ff63a1,
        #000000
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    animation: taglineShimmer 3s ease-in-out infinite;
}

@keyframes taglineShimmer {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

/* =========================================================
   Main app shell
   ========================================================= */

.app {

    width: min(1480px, 100%);

    min-height:
        calc(100vh - 56px);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        var(--sidebar-width)
        1fr;

    overflow: hidden;

    border:
        13px solid
        rgba(255, 245, 245, 0.72);

    border-radius:
        var(--radius-app);

    background:
        var(--app-bg);

    box-shadow:
        var(--shadow-app);
}



/* =========================================================
   Sidebar
   ========================================================= */

.sidebar {

    min-height: 100%;

    padding:
        30px
        20px
        24px;

    display: flex;
    flex-direction: column;

    border-right:
        1px solid
        #f5dfe1;

    background:
        var(--sidebar);
}



/* ---------------------------------------------------------
   Brand
   --------------------------------------------------------- */

.brand {

    display: flex;
    align-items: center;

    gap: 11px;

    padding:
        4px
        6px
        28px;

    border-bottom:
        1px solid
        var(--border);
}


.brand-logo {

    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #f59a91,
            #d95878
        );

    box-shadow:
        0 6px 16px
        rgba(190, 67, 104, 0.14);
}


.brand-logo .logo-svg {

    width: 35px;
    height: 35px;
}


.brand-text h1 {

    font-size: 19px;
    font-weight: 800;

    letter-spacing: 0.8px;
}


.brand-text p {

    margin-top: 1px;

    color:
        var(--text-light);

    font-size: 10px;
}



/* ---------------------------------------------------------
   Navigation
   --------------------------------------------------------- */

.navigation {

    margin-top: 34px;
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    gap: 8px;
}


.logout-nav-item {
    margin-top: auto;
}


.nav-item {

    width: 100%;

    padding:
        12px
        13px;

    border: none;
    border-radius: 12px;

    background:
        transparent;

    color:
        var(--text-soft);

    font-size: 13px;
    font-weight: 550;

    text-align: left;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.nav-icon {
    width: 22px;
    display: inline-block;
    color: currentColor;
    font-size: 15px;
    text-align: center;
    margin-right: 7px;
}


.nav-item:hover {

    background:
        var(--sidebar-hover);

    color:
        var(--berry);

    transform:
        translateX(2px);
}


.nav-item.active {

    background:
        var(--coral-soft);

    color:
        var(--coral-dark);

    font-weight: 700;
}


.sidebar-footer {

    margin-top: auto;

    padding:
        20px
        8px
        4px;

    border-top:
        1px solid
        var(--border);
}


.sidebar-footer p {

    color:
        var(--text);

    font-size: 11px;
    font-weight: 700;
}


.sidebar-footer span {

    display: block;

    margin-top: 2px;

    color:
        var(--text-light);

    font-size: 9px;
}



/* =========================================================
   Main content
   ========================================================= */

.main-content {

    min-width: 0;

    padding: 30px;
}



/* =========================================================
   Header
   ========================================================= */

.dashboard-header {

    margin-bottom: 22px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 25px;
}


.page-label,
.section-label,
.planner-date-label {

    color:
        var(--coral-dark);

    font-size: 12px;
    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: 1.1px;
}


.dashboard-header h2 {
    margin-top: 3px;

    font-size: 34px;
    font-weight: 780;

    letter-spacing: -0.8px;
}


.header-message {
    margin-top: 5px;

    color: var(--text-soft);

    font-size: 15px;
    font-weight: 500;
}


.header-add-button {

    padding:
        10px
        18px;

    border: none;
    border-radius: 11px;

    background:
        var(--berry);

    color: white;

    font-size: 12px;
    font-weight: 700;

    box-shadow:
        0 6px 16px
        rgba(201, 28, 86, 0.16);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.header-add-button:hover {

    background:
        var(--berry-dark);

    transform:
        translateY(-1px);
}



/* =========================================================
   Main planner layout
   ========================================================= */

.planner-layout {

    display: grid;

    grid-template-columns:
        minmax(0, 1.9fr)
        minmax(285px, 0.85fr);

    gap: 18px;

    margin-bottom: 22px;
}



/* =========================================================
   Main planner
   ========================================================= */

.planner-main {

    min-width: 0;

    min-height: 600px;

    padding: 25px;

    border-radius:
        var(--radius-large);

    background:
        var(--panel);

    box-shadow:
        var(--shadow-card);
}


.planner-heading {

    margin-bottom: 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


.planner-heading h3 {
    margin-top: 2px;

    font-size: 26px;
    font-weight: 750;

    letter-spacing: -0.5px;
}



/* =========================================================
   List / calendar toggle
   ========================================================= */

.view-toggle {

    display: flex;

    padding: 3px;

    border-radius: 20px;

    background: #f9dedf;
}


.view-button {

    min-width: 76px;

    padding:
        7px
        13px;

    border: none;
    border-radius: 17px;

    background:
        transparent;

    color: #a27f85;

    font-size: 10px;
    font-weight: 700;

    text-transform:
        uppercase;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.view-button.active {

    background:
        var(--coral);

    color: white;
}



/* =========================================================
   Schedule content
   ========================================================= */

.schedule-content {

    min-height: 500px;
}


.schedule-empty {

    min-height: 480px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}


.empty-calendar-icon {

    width: 76px;
    height: 76px;

    margin-bottom: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 23px;

    background:
        linear-gradient(
            145deg,
            #fce7e4,
            #f8d9dc
        );
}


.small-logo-svg {

    width: 53px;
    height: 53px;
}


.schedule-empty h4 {

    font-size: 15px;
    font-weight: 700;
}


.schedule-empty p {

    max-width: 330px;

    margin-top: 5px;

    color:
        var(--text-light);

    font-size: 11px;
}



/* =========================================================
   Right planner controls
   ========================================================= */

.planner-controls {

    min-width: 0;

    padding: 18px;

    border-radius:
        var(--radius-large);

    background: #fff8f8;

    box-shadow:
        var(--shadow-card);
}


.control-block {

    padding-bottom: 17px;

    margin-bottom: 17px;

    border-bottom:
        1px solid
        var(--border);
}


.control-heading {

    margin-bottom: 12px;
}


.control-heading h3 {
    color: var(--berry);

    font-size: 15px;
    font-weight: 700;

    text-transform: none;
    letter-spacing: 0;
}


.control-heading p {
    margin-top: 4px;

    color: var(--text-soft);

    font-size: 13px;
    font-weight: 600;
}

.strategy-control .control-heading {
    position: relative;

    margin-bottom: 20px;
    padding-bottom: 17px;

    text-align: center;
}


.strategy-control .control-heading h3 {
    color: var(--berry);

    font-size: 19px;
    font-weight: 750;

    letter-spacing: -0.2px;
}


.strategy-control .control-heading p {
    max-width: 260px;

    margin:
        4px
        auto
        0;

    color: var(--text-soft);

    font-size: 14px;
    font-weight: 550;

    line-height: 1.4;
}


/* Small decorative accent */

.strategy-control .control-heading::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: 0;

    width: 42px;
    height: 3px;

    border-radius: 10px;

    background: var(--coral);

    transform: translateX(-50%);
}



/* =========================================================
   Strategy cards
   ========================================================= */

.strategy-options {

    display: flex;
    flex-direction: column;

    gap: 10px;
}


.strategy-card {
    width: 100%;

    padding:
        14px
        13px;

    display: flex;
    align-items: center;

    gap: 13px;

    border:
        1px solid
        transparent;

    border-radius: 13px;

    background:
        #fffefe;

    color:
        var(--text);

    text-align: left;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


.strategy-card:hover {

    border-color:
        var(--border-dark);

    background: #fff9f9;

    transform:
        translateX(2px);
}


.strategy-card.active {

    border-color: #f5b6b1;

    background:
        var(--coral-soft);
}


.strategy-number {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        #f9eded;

    color:
        var(--text-light);

    font-size: 14px;
    font-weight: 750;
}


.strategy-card.active
.strategy-number {

    background:
        var(--coral);

    color: white;
}


.strategy-details {

    min-width: 0;

    display: flex;
    flex-direction: column;
}


.strategy-details strong {

    font-size: 15px;
    font-weight: 700;
}


.strategy-details small {
    margin-top: 3px;

    color:
        var(--text-soft);

    font-size: 13px;
    font-weight: 500;

    line-height: 1.4;
}

.compare-strategies-button {
    margin-top: 9px;
}


/* =========================================================
   Effort options
   ========================================================= */

.strategy-extra {

    margin-top: 2px;
}


.option-toggle {

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 6px;
}


.effort-order {

    padding:
        10px
        9px;

    border:
        1px solid
        var(--border);

    border-radius: 9px;

    background: white;

    color:
        var(--text-soft);

    font-size: 12px;
    font-weight: 700;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}


.effort-order:hover {

    border-color:
        #efb5b7;
}


.effort-order.active {

    border-color:
        #f4aea8;

    background:
        var(--coral-soft);

    color:
        var(--coral-dark);
}



/* =========================================================
   Focus modes
   ========================================================= */

.focus-options {

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 8px;
}


.focus-card {

    min-width: 0;

    padding: 12px;

    display: flex;
    align-items: center;

    gap: 10px;

    border:
        1px solid
        var(--border);

    border-radius: 10px;

    background: white;

    color:
        var(--text-soft);

    font-size: 13px;
    font-weight: 700;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.focus-card:hover {

    border-color:
        var(--mode-border);

    background:
        var(--mode-soft);

    transform:
        translateY(-1px);
}


.focus-card.active {

    border-color:
        var(--mode-border);

    background:
        var(--mode-soft);

    color:
        var(--mode-text);
}


.focus-letter {

    width: 29px;
    height: 29px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background:
        var(--mode-pill);

    color:
        var(--mode-text);

    font-size: 14px;
    font-weight: 800;
}


/* Academic */

.focus-card:nth-child(1) {

    --mode-soft: #f3ecfb;
    --mode-pill: #ebe0fa;
    --mode-border: #c8afe9;
    --mode-text: #7954aa;
}


/* Family */

.focus-card:nth-child(2) {

    --mode-soft: #fbecef;
    --mode-pill: #f8dfe5;
    --mode-border: #ecafc0;
    --mode-text: #b95674;
}


/* Health */

.focus-card:nth-child(3) {

    --mode-soft: #edf8f2;
    --mode-pill: #dcf1e5;
    --mode-border: #add9c1;
    --mode-text: #538e6d;
}


/* Leisure */

.focus-card:nth-child(4) {

    --mode-soft: #fdf1e8;
    --mode-pill: #fbe2cf;
    --mode-border: #ecc39f;
    --mode-text: #bc7542;
}



/* =========================================================
   Main scheduling buttons
   ========================================================= */

.cherry-button {
    width: 100%;

    padding: 14px;

    border: none;
    border-radius: 11px;

    background:
        var(--berry);

    color: white;

    font-size: 12px;
    font-weight: 750;

    box-shadow:
        0 8px 18px
        rgba(201, 28, 86, 0.16);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.cherry-button:hover {

    background:
        var(--berry-dark);

    transform:
        translateY(-1px);
}


/* =========================================================
   Lower dashboard cards
   ========================================================= */

.dashboard-section {

    margin-bottom: 22px;

    padding: 24px;

    border:
        1px solid
        rgba(239, 218, 220, 0.8);

    border-radius:
        var(--radius-large);

    background:
        var(--panel);

    box-shadow:
        var(--shadow-card);
}


.section-heading {

    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;
}


.section-heading h3 {

    margin-top: 2px;

    font-size: 18px;
    font-weight: 720;
}


.section-heading
p:not(.section-label) {

    margin-top: 2px;

    color:
        var(--text-soft);

    font-size: 11px;
}



/* =========================================================
   Tasks
   ========================================================= */

.task-list {

    min-height: 130px;
}


.primary-button {

    padding:
        12px
        20px;

    border: none;
    border-radius: 10px;

    background:
        var(--coral);

    color: white;

    font-size: 13px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.primary-button:hover {

    background:
        var(--coral-dark);

    transform:
        translateY(-1px);
}


.empty-task-state {

    min-height: 120px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border:
        1px dashed
        var(--border-dark);

    border-radius: 14px;

    background:
        var(--panel-soft);

    text-align: center;
}


.empty-task-state
.empty-title {

    color:
        var(--text);

    font-size: 12px;
    font-weight: 700;
}


.empty-task-state
p:last-child {

    margin-top: 3px;

    color:
        var(--text-light);

    font-size: 10px;
}



/* ---------------------------------------------------------
   Task cards
   --------------------------------------------------------- */

/* Individual task page layout */

.task-section {
    padding: 0;

    border: none;
    border-radius: 0;

    background: transparent;

    box-shadow: none;
}


.task-list {
    min-height: 130px;

    display: flex;
    flex-direction: column;

    gap: 12px;
}


/* Individual task status containers */

.task-group-card {
    padding:
        21px
        24px
        24px;

    border:
        1px solid
        rgba(239, 218, 220, 0.8);

    border-radius:
        var(--radius-large);

    background:
        var(--panel);

    box-shadow:
        var(--shadow-card);
}


/* Remove old spacing between groups */

.task-group + .task-group {
    margin-top: 0;
}


/* Header inside each container */

.task-group-header {
    margin-bottom: 16px;
    padding-bottom: 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    border-bottom:
        1px solid
        var(--border);
}


.task-group-heading {
    margin-bottom: 0;

    display: flex;
    align-items: center;

    gap: 9px;

    font-size: 18px;
    font-weight: 800;
}


.task-card {

    position: relative;

    padding:
        13px
        15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    border:
        1px solid
        var(--border);

    border-radius: 13px;

    background: white;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.task-card:hover {

    border-color:
        #edc7c4;

    background:
        #fffafa;

    transform:
        translateY(-1px);
}


.task-card.selected {

    border-color:
        var(--coral);

    background:
        #fff4f3;

    box-shadow:
        0 5px 16px
        rgba(235, 119, 108, 0.10);
}


.task-card-main {

    min-width: 0;

    display: flex;
    align-items: center;

    gap: 11px;
}


.task-category-dot {

    width: 9px;
    height: 36px;

    flex-shrink: 0;

    border-radius: 8px;

    transition:
        transform 0.2s ease;
}


.task-card.selected
.task-category-dot {

    transform:
        scaleY(1.08);
}


.task-category-dot.academic {

    background:
        #9d79c7;
}


.task-category-dot.family {

    background:
        #d87894;
}


.task-category-dot.health {

    background:
        #72aa8b;
}


.task-category-dot.leisure {

    background:
        #dc965d;
}


.task-card-info {

    min-width: 0;
}


.task-card-info h4 {

    color: #5c5256;

    font-size: 16px;
    font-weight: 700;
}


.task-details {

    margin-top: 4px;

    display: flex;
    flex-wrap: wrap;

    gap:
        6px
        12px;
}


.task-details span {

    color:
        var(--text-soft);

    font-size: 13px;
    font-weight: 550;
}


.task-card-right {

    flex-shrink: 0;

    display: flex;
    align-items: center;

    gap: 14px;
}


.task-ratings {

    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 4px;
}


.task-ratings .rating-badge {

    padding:
        5px
        8px;

    border-radius: 7px;
    font-size: 10px;
    font-weight: 650;
}



/* ---------------------------------------------------------
   Task actions
   --------------------------------------------------------- */

.task-actions {

    width: 0;

    overflow: hidden;

    display: flex;
    align-items: center;

    gap: 6px;

    opacity: 0;

    transform:
        translateX(6px);

    transition:
        width 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}


.task-card.selected
.task-actions {

    /* Widened from the original 72px to fit a third (mark
       complete) icon button alongside edit/delete. */
    width: 116px;

    opacity: 1;

    transform:
        translateX(0);
}


.task-icon-button {

    width: 32px;
    height: 32px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border-radius: 9px;

    background:
        white;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.task-icon-button:hover {

    transform:
        translateY(-1px);
}


.task-icon-button svg {

    width: 15px;
    height: 15px;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.edit-task-button {

    border:
        1px solid
        #edb9b4;

    color:
        var(--coral-dark);
}


.edit-task-button:hover {

    background:
        var(--coral-soft);
}


.delete-task-button {

    border:
        1px solid
        #e9bcc8;

    color:
        var(--berry);
}


.delete-task-button:hover {

    background:
        var(--berry-soft);
}


.complete-task-button {

    border:
        1px solid
        #b9d9c6;

    color:
        #3f7a58;
}


.complete-task-button:hover {

    background:
        #e9f5ee;
}


.complete-task-button.is-completed {
    border-color: #d96b6b;
    background: #fff5f5;
    color: #c94f4f;
}

.complete-task-button.is-completed:hover {
    background: #fde8e8;
    border-color: #c94f4f;
}

/* =========================================================
   Home task overview
   ========================================================= */

.home-task-overview-section {
    margin-top: 22px;
}


.home-task-overview {
    padding: 24px;

    border:
        1px solid
        rgba(239, 218, 220, 0.8);

    border-radius:
        var(--radius-large);

    background:
        var(--panel);

    box-shadow:
        var(--shadow-card);
}


/* Header */

.home-task-overview-header {
    margin-bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


.home-task-overview-header h3 {
    color: #4f4548;

    font-size: 19px;
    font-weight: 750;
}


/* Peach / coral Manage Task button */

.overview-link-button {
    padding:
        9px
        15px;

    border: none;
    border-radius: 10px;

    background:
        var(--coral);

    color: white;

    font-size: 12px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.overview-link-button:hover {
    background:
        var(--coral-dark);

    transform:
        translateY(-1px);
}


/* Two-column overview */

.home-overview-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 2.4fr)
        minmax(155px, 0.7fr);

    gap: 18px;

    align-items: start;
}


/* =========================================================
   Task list - main focus
   ========================================================= */

.home-overview-task-list {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.home-overview-task {
    padding:
        11px
        13px;

    display: flex;
    align-items: center;

    gap: 11px;

    border:
        1px solid
        var(--border);

    border-radius: 12px;

    background:
        #fffefe;
}


.home-overview-task.overdue {
    border-left:
        6px solid
        var(--berry);
}


.home-overview-task.completed {
    border-left:
        6px solid
        #3f7a58;
}


.home-overview-task
.task-category-dot {
    height: 31px;
}


.home-overview-task-info {
    display: flex;
    flex-direction: column;
}


.home-overview-task-info strong {
    color: #4f4548;

    font-size: 13px;
    font-weight: 700;
}


.home-overview-task-info span {
    margin-top: 2px;

    color:
        var(--text-soft);

    font-size: 11px;
    font-weight: 550;
}


/* =========================================================
   Compact summary
   ========================================================= */

.home-task-summary {
    padding: 14px;

    border:
        1px solid
        var(--border);

    border-radius: 13px;

    background:
        #fffefe;
}


.home-task-summary h4 {
    margin-bottom: 16px;

    color: #4f4548;

    font-size: 15px;
    font-weight: 800;

    text-transform: none;
    letter-spacing: 0;
}


.home-summary-row {
    padding:
        7px
        8px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-radius: 8px;

    color:
        var(--text-soft);

    font-size: 10px;
    font-weight: 650;
}

.home-complete-button {
    margin-left: auto;
}

.home-summary-row + .home-summary-row {
    margin-top: 3px;
}


.home-summary-row strong {
    font-size: 12px;
    font-weight: 800;
}


.todo-summary strong {
    color:
        var(--coral-dark);
}


.overdue-summary strong {
    color:
        var(--berry);
}


.completed-summary strong {
    color:
        #3f7a58;
}


.home-no-tasks {
    padding: 18px;

    color:
        var(--text-light);

    font-size: 12px;
    text-align: center;
}

/* Summary progress */

.summary-progress {
    padding-bottom: 15px;
    margin-bottom: 12px;

    border-bottom:
        1px solid
        var(--border);
}


.summary-progress-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;

    color:
        var(--text-soft);

    font-size: 10px;
    font-weight: 650;
}


.summary-progress-heading strong {
    color: #3f7a58;

    font-size: 13px;
    font-weight: 800;
}


.summary-progress-track {
    width: 100%;
    height: 7px;

    overflow: hidden;

    border-radius: 10px;

    background:
        var(--coral-soft);
}


.summary-progress-fill {
    height: 100%;

    border-radius: 10px;

    background: #5f916f;

    transition:
        width 0.3s ease;
}


.summary-progress-details {
    margin-top: 7px;

    display: flex;
    justify-content: space-between;

    gap: 8px;

    color:
        var(--text-light);

    font-size: 9px;
    font-weight: 550;
}

.summary-status-list {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.summary-status-name {
    display: flex;
    align-items: center;

    gap: 7px;
}


.summary-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;
}


.todo-dot {
    background: var(--coral);
}


.overdue-dot {
    background: var(--berry);
}


.completed-dot {
    background: #5f916f;
}

/* =========================================================
   Generated schedule list
   ========================================================= */

.generated-schedule-list {

    display: flex;
    flex-direction: column;

    gap: 10px;
}


.schedule-task-card {

    padding:
        14px
        15px;

    display: flex;
    align-items: center;

    gap: 13px;

    border:
        1px solid
        var(--border);

    border-radius: 13px;

    background: white;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.schedule-task-card:hover {

    border-color:
        var(--border-dark);

    transform:
        translateY(-1px);

    box-shadow:
        0 5px 14px
        rgba(138, 75, 82, 0.06);
}


.schedule-position {

    width: 32px;
    height: 32px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        var(--coral);

    color: white;

    font-size: 13px;
    font-weight: 800;
}


.schedule-task-main {

    min-width: 0;

    flex: 1;

    display: flex;
    align-items: center;

    gap: 11px;
}


.schedule-task-info {

    min-width: 0;
}


.schedule-task-info h4 {
    color: #4f4548;

    font-size: 16px;
    font-weight: 700;
}


.schedule-task-details {

    margin-top: 4px;

    display: flex;
    flex-wrap: wrap;

    gap:
        6px
        12px;
}


.schedule-task-details span {
    color: var(--text-soft);

    font-size: 13px;
    font-weight: 550;
}


.schedule-task-ratings {

    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 4px;
}


.schedule-task-ratings .rating-badge {
    padding:
        5px
        8px;

    border-radius: 7px;

    font-size: 10px;
    font-weight: 650;
}


.schedule-message {

    min-height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}


.schedule-message p {

    padding:
        12px
        18px;

    border-radius: 10px;

    background:
        var(--coral-soft);

    color:
        var(--coral-dark);

    font-size: 11px;
    font-weight: 650;
}


/* =========================================================
   Strategy comparison
   ========================================================= */

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

.comparison-column {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fffafa;
}

.comparison-column h4 {
    margin-bottom: 12px;
    color: var(--berry);
    font-size: 13px;
}

.comparison-task {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 0;
    border-top: 1px solid var(--border);
}

.comparison-rank {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--coral-soft);
    color: var(--coral-dark);
    font-size: 9px;
    font-weight: 800;
}

.comparison-task-details {
    min-width: 0;
}

.comparison-task-details strong {
    display: block;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comparison-task-details small {
    color: var(--text-light);
    font-size: 9px;
}

.task-group + .task-group {
    margin-top: 0px;
}

.task-group-heading {
    margin-bottom: 12px;

    display: flex;
    align-items: center;

    gap: 9px;

    font-size: 18px;
    font-weight: 750;
}

.task-count {
    min-width: 27px;

    padding:
        4px
        8px;

    border-radius: 13px;

    background:
        var(--coral-soft);

    color:
        var(--coral-dark);

    font-size: 11px;
    font-weight: 750;

    text-align: center;
}

.todo-group .task-count {
    background: var(--coral-soft);
    color: var(--coral-dark);
}

.overdue-group .task-count {
    background: var(--berry-soft);
    color: var(--berry);
}

.completed-group .task-count {
    background: #e7f3eb;
    color: #3f7a58;
}

.task-group-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-card.overdue {
    border-left: 7px solid var(--berry);
}

.task-card.completed {
    border-left: 7px solid #3f7a58;
}



/* =========================================================
   Weekly calendar
   ========================================================= */

.calendar-container {

    width: 100%;

    overflow-x: auto;
    overflow-y: visible;

    border:
        1px solid
        var(--border);

    border-radius: 14px;

    background: white;
}


.calendar-grid {

    display: grid;

    grid-template-columns:
        60px
        repeat(
            7,
            minmax(100px, 1fr)
        );

    min-width: 820px;
}

/* ---------------------------------------------------------
   Calendar week navigation
   --------------------------------------------------------- */

.calendar-week-controls {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    width: 100%;
    padding: 12px 16px;
    margin-bottom: 0;

    border-bottom: 1px solid #f1e4e2;
}


/* Week navigation buttons */

.calendar-week-button {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 82px;

    padding: 8px 12px;

    border: 1px solid #ead8d5;
    border-radius: 10px;

    background: #fffafa;
    color: #735b57;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


.calendar-week-button:hover {
    background: #e58d80;
    border-color: #e58d80;
    color: #ffffff;
}


/* Current week */

.calendar-week-label {
    min-width: 150px;

    color: #B03257;

    font-size: 13px;
    font-weight: 700;

    text-align: center;
    white-space: nowrap;
}

/* ---------------------------------------------------------
   Calendar headings
   --------------------------------------------------------- */

.calendar-header {

    min-height: 55px;

    padding:
        8px
        6px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-right:
        1px solid
        #f3e2e4;

    border-bottom:
        1px solid
        #f3e2e4;

    background:
        #fff8f8;

    color:
        var(--text-soft);

    text-align: center;
}


.calendar-corner {

    background:
        #fffafa;
}


.calendar-day-header {

    flex-direction: column;

    gap: 2px;
}


.calendar-day-header span {

    font-size: 12px;
    font-weight: 650;
}


.calendar-day-header strong {
    width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 12px;
    font-weight: 750;
}


.calendar-day-header.current-day
strong {

    background:
        var(--coral);

    color:
        white;
}



/* ---------------------------------------------------------
   Calendar times
   --------------------------------------------------------- */

.calendar-time {

    height: 58px;

    padding:
        7px
        8px;

    border-right:
        1px solid
        #f3e2e4;

    border-bottom:
        1px solid
        #f3e2e4;

    color:
        var(--text-light);

    font-size: 9px;

    text-align: right;
}



/* ---------------------------------------------------------
   Calendar cells
   --------------------------------------------------------- */

.calendar-cell {

    position: relative;

    height: 58px;

    overflow: visible;

    border-right:
        1px solid
        #f3e2e4;

    border-bottom:
        1px solid
        #f3e2e4;

    background:
        white;

    transition:
        background 0.15s ease;
}


.calendar-cell:hover {

    background:
        #fffafa;
}

/* =========================================================
   Calendar availability
   ========================================================= */

.calendar-unavailable-shade,
.calendar-blocked-shade {
    position: absolute;

    left: 0;
    right: 0;

    z-index: 1;

    pointer-events: none;
}


/* Outside planning hours / No tasks */

.calendar-unavailable-shade {
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(127, 109, 114, 0.05),
            rgba(127, 109, 114, 0.05) 5px,
            rgba(127, 109, 114, 0.10) 5px,
            rgba(127, 109, 114, 0.10) 10px
        );
}


/* Explicit blocked period - grey diagonal stripes.
   A block spanning several hours is drawn one hour-cell at a time,
   so only the outer edges are rounded/bordered. That keeps the
   stripes continuous instead of showing a seam every hour. */

.calendar-blocked-shade {
    left: 3px;
    right: 3px;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    border-left:
        1px solid
        rgba(120, 120, 130, 0.30);

    border-right:
        1px solid
        rgba(120, 120, 130, 0.30);

    background:
        repeating-linear-gradient(
            45deg,
            rgba(138, 138, 148, 0.13) 0,
            rgba(138, 138, 148, 0.13) 5px,
            rgba(138, 138, 148, 0.30) 5px,
            rgba(138, 138, 148, 0.30) 10px
        );
}


/* Top edge of the band */

.calendar-blocked-shade.block-start {
    border-top:
        1px solid
        rgba(120, 120, 130, 0.30);

    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}


/* Bottom edge of the band */

.calendar-blocked-shade.block-end {
    border-bottom:
        1px solid
        rgba(120, 120, 130, 0.30);

    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}


/* Name of the blocked period - School / Sport / whatever the
   user specified. Sits in the middle of the stripes, on a soft
   plate so it stays readable over the diagonals. */

.calendar-blocked-title {
    max-width: 100%;

    padding:
        2px
        6px;

    overflow: hidden;

    border-radius: 4px;

    background:
        rgba(250, 250, 251, 0.88);

    color:
        #5d5d68;

    font-size: 9.5px;
    font-weight: 700;

    letter-spacing: 0.3px;

    line-height: 1.1;

    text-align: center;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   Calendar scheduled tasks
   --------------------------------------------------------- */

.calendar-event {

    position: absolute;

    left: 4px;
    right: 4px;

    z-index: 5;

    min-height: 24px;

    padding:
        6px
        7px;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    border-radius: 8px;

    box-shadow:
        0 4px 10px
        rgba(94, 63, 70, 0.08);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}


.calendar-event:hover {

    z-index: 10;

    transform:
        translateY(-1px);

    box-shadow:
        0 6px 14px
        rgba(94, 63, 70, 0.13);
}


.calendar-event strong {

    overflow: hidden;

    font-size: 12px;
    font-weight: 750;

    line-height: 1.2;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}


.calendar-event span {

    margin-top: 2px;

    font-size: 11px;
    font-weight: 600;

    opacity: 0.8;
}



/* Academic */

.calendar-event.academic {

    border-left:
        4px solid
        #9d79c7;

    background:
        #f0e9f9;

    color:
        #68498d;
}


/* Family */

.calendar-event.family {

    border-left:
        4px solid
        #d87894;

    background:
        #f9e8ed;

    color:
        #a84c68;
}


/* Health */

.calendar-event.health {

    border-left:
        4px solid
        #72aa8b;

    background:
        #e9f5ee;

    color:
        #4e8065;
}


/* Leisure */

.calendar-event.leisure {

    border-left:
        4px solid
        #dc965d;

    background:
        #fbeddf;

    color:
        #a96e3e;
}

.calendar-page-mode .cherry-button {
    width: auto;

    min-width: 150px;

    padding:
        12px
        18px;

    white-space: nowrap;
}

.calendar-page-mode
.compare-strategies-button {
    display: none;
}

.calendar-page-mode
.schedule-view-toggle {
    display: none;
}

/* =========================================================
   Current time indicator
   ========================================================= */

.calendar-cell {
    position: relative;
}


.calendar-now-line {
    position: absolute;

    left: 0;
    right: 0;

    height: 2px;

    z-index: 20;

    background:
        var(--berry);

    pointer-events: none;
}


.calendar-now-line::before {
    content: "";

    position: absolute;

    left: -4px;
    top: 50%;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        var(--berry);

    transform:
        translateY(-50%);
}


.calendar-now-line span {
    position: absolute;

    left: 6px;
    top: -18px;

    padding:
        2px
        5px;

    border-radius: 6px;

    background:
        var(--berry);

    color: white;

    font-size: 9px;
    font-weight: 700;
}

/* =========================================================
   Modal
   ========================================================= */

.modal-overlay {

    position: fixed;
    inset: 0;

    z-index: 5000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(72, 45, 54, 0.24);

    backdrop-filter:
        blur(5px);
}


.task-modal {

    width:
        min(560px, 100%);

    max-height: 90vh;

    overflow-y: auto;

    padding: 26px;

    border-radius: 24px;

    background:
        #fffafa;

    box-shadow:
        0 30px 70px
        rgba(93, 51, 60, 0.22);

    animation:
        modalEnter 0.22s ease both;
}


@keyframes modalEnter {

    from {

        opacity: 0;

        transform:
            translateY(8px)
            scale(0.99);
    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


.modal-heading {

    margin-bottom: 22px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}


.modal-heading h3 {

    margin-top: 2px;

    font-size: 21px;
}


.close-modal-button {

    width: 32px;
    height: 32px;

    border: none;
    border-radius: 50%;

    background:
        var(--coral-soft);

    color:
        var(--coral-dark);

    font-size: 20px;

    line-height: 1;
}


#task-form {

    display: flex;
    flex-direction: column;

    gap: 15px;
}


.form-row {

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 12px;
}


.form-group {

    display: flex;
    flex-direction: column;

    gap: 6px;
}


.form-group label {

    color:
        var(--text-soft);

    font-size: 10px;
    font-weight: 700;
}


.form-group input,
.form-group select {

    width: 100%;

    padding:
        11px
        12px;

    border:
        1px solid
        var(--border);

    border-radius: 10px;

    background: white;

    color:
        var(--text);

    font-size: 11px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.duration-picker {

    display: flex;
    align-items: center;

    gap: 8px;
}


.duration-picker input {

    min-width: 0;
    flex: 1;
}


.duration-unit-toggle {

    display: flex;

    padding: 3px;

    border-radius: 10px;

    background: var(--berry-soft);
}


.duration-unit-button {

    padding: 8px 10px;

    border: none;
    border-radius: 8px;

    background: transparent;

    color: var(--text-soft);

    font-size: 10px;
    font-weight: 700;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.duration-unit-button:hover {

    color: var(--berry);
}


.duration-unit-button.active {

    background: white;

    color: var(--berry);

    box-shadow:
        0 2px 7px
        rgba(138, 75, 82, 0.10);
}

.form-group input:focus,
.form-group select:focus {

    border-color:
        var(--coral);

    box-shadow:
        0 0 0 3px
        rgba(245, 139, 128, 0.12);
}


.form-error {

    padding:
        9px
        11px;

    border-radius: 9px;

    background:
        #fbe8ea;

    color:
        #a94455;

    font-size: 10px;
}


.field-error {

    margin-top: 2px;

    color: var(--berry);

    font-size: 10px;
    font-weight: 600;
}


.password-wrapper {

    position: relative;

    display: flex;
    align-items: center;
}


.password-wrapper input {

    padding-right: 38px !important;
}


.toggle-password {

    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);

    padding: 4px;

    border: none;
    background: transparent;

    color: var(--text-light);

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;

    transition: color 0.2s ease, background 0.2s ease;
}


.toggle-password:hover {

    color: var(--berry);
    background: rgba(201, 28, 86, 0.06);
}


.eye-icon {

    display: flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;
    pointer-events: none;
}


.eye-svg {

    display: block;
    width: 18px;
    height: 18px;

    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   Fixed Time Task
   ========================================================= */

.fixed-task-group {

    margin-top: 10px;
    margin-bottom: 14px;

    gap: 7px;
}


.fixed-task-toggle {

    width: 100%;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        12px
        16px
        12px
        48px;

    border:
        1px solid
        var(--border);

    border-radius: 12px;

    background:
        #fffafa;

    cursor: pointer;
    user-select: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.fixed-task-toggle::after {

    content: "";

    width: 21px;
    height: 21px;
}


.fixed-task-toggle:hover {

    border-color:
        #eab8c4;

    background:
        #fff6f8;
}


.fixed-task-checkbox {

    position: absolute;

    opacity: 0;
    pointer-events: none;
}


.fixed-task-check {

    position: absolute;
    left: 16px;

    width: 21px;
    height: 21px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1.5px solid
        var(--border-dark);

    border-radius: 6px;

    background:
        white;

    color:
        transparent;

    font-size: 12px;
    font-weight: 800;

    box-shadow:
        0 1px 3px
        rgba(80, 50, 60, 0.06);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


.fixed-task-content {

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 2px;

    text-align: center;
}


.fixed-task-content strong {

    color:
        var(--text);

    font-size: 13px;
    font-weight: 750;

    line-height: 1.25;
}


.fixed-task-content small {

    color:
        var(--text-light);

    font-size: 12px;
    font-weight: 500;

    line-height: 1.35;
}


.fixed-task-checkbox:checked
+ .fixed-task-check {

    background:
        var(--berry);

    border-color:
        var(--berry);

    color:
        white;

    transform:
        scale(1.03);
}


.fixed-task-toggle:has(
    .fixed-task-checkbox:checked
) {

    border-color:
        #e6afbe;

    background:
        linear-gradient(
            135deg,
            #fcebee,
            #fae4eb
        );

    box-shadow:
        0 4px 12px
        rgba(201, 28, 86, 0.08);
}


.fixed-task-hint {

    margin: 0;

    color:
        var(--text-light);

    font-size: 12px;
    font-weight: 500;

    line-height: 1.4;

    text-align: center;
}

/* Recurring task options */

#recurring-task-inputs {
    margin-top: -4px;
    margin-bottom: 14px;

    padding:
        12px
        14px;

    border:
        1px solid
        var(--border);

    border-radius: 12px;

    background:
        #fffafa;
}


#recurring-task-inputs label {
    color:
        var(--text-soft);

    font-size: 10px;
    font-weight: 700;
}


#task-recurrence-interval {
    background:
        white;
}


.fixed-time-badge-inline {

    display: inline-flex;
    align-items: center;
    padding: 0 2px;
    border-radius: 3px;
    background: rgba(201, 28, 86, 0.14);
    color: var(--berry);
    font-size: 6px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.1px;
}

.calendar-event .fixed-time-badge-inline {

    margin: 0 2px 0 0;
}


.calendar-event.fixed-time-event {

    border-left: 3.5px solid var(--berry) !important;

}

/* Fixed events keep their task name as the primary line. Unlike ordinary
   compact events, allow the title to wrap rather than replacing it with an
   ellipsis to make room for the Fixed label. */
.calendar-event.fixed-time-event .calendar-event-title {

    /* The event is a constrained vertical flex card. Keep the task title
       from shrinking away when the Fixed/time row needs space. */
    display: block;
    flex: 0 0 auto;
    min-height: 1.2em;
    white-space: normal;
    text-overflow: clip;
}


.rating-fixed {

    background: #fae4eb !important;
    color: var(--berry) !important;
}

.rating-recurring {

    background: #e8f0ff !important;
    color: #315dba !important;
}


/* =========================================================
   Onboarding Modal & Questionnaire
   ========================================================= */

.onboarding-modal-content {

    max-width: 520px;
}


.onboarding-section {

    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
    text-align: left;
}


.onboarding-section-last {

    margin-bottom: 6px;
}


.onboarding-section-title {

    font-size: 13px;
    font-weight: 750;
    color: var(--text);
    margin-bottom: 2px;
}


.onboarding-hint {

    font-size: 11px;
    color: var(--text-soft);
    margin-bottom: 12px;
}


.onboarding-time-row {

    display: flex;
    align-items: center;
    gap: 12px;
}


.onboarding-time-row .form-group {

    flex: 1;
}


.onboarding-time-sep {

    color: var(--text-light);
    font-size: 11px;
    font-weight: 600;
    padding-top: 16px;
}


.time-input {

    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fffafa;
    color: var(--text);
    font-size: 12px;
    outline: none;
    transition: border-color 0.2s ease;
}


.time-input:focus {

    border-color: var(--coral);
}


.commitment-list {

    display: flex;
    flex-direction: column;
    gap: 10px;
}


.commitment-item {

    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fffafa;
    border: 1px solid #faecee;
}


.checkbox-label {

    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 650;
    color: var(--text);
    cursor: pointer;
}


.commitment-checkbox {

    accent-color: var(--berry);
    width: 15px;
    height: 15px;
    cursor: pointer;
}


.commitment-times {

    display: flex;

    /* The row now stacks an optional name field, the day picker
       and the times, so it lays out as a column. */
    flex-direction: column;
    align-items: flex-start;

    gap: 8px;
    margin-left: 24px;
    animation: modalEnter 0.18s ease both;
}


.commitment-time-row {

    display: flex;
    align-items: center;
    gap: 8px;
}


/* ---------------------------------------------------------
   Day pickers (onboarding questionnaire)
   --------------------------------------------------------- */

.day-chip-group {

    display: flex;
    flex-wrap: wrap;

    gap: 5px;

    margin: 2px 0;
}


.day-chip {

    position: relative;

    cursor: pointer;

    user-select: none;
}


.day-chip input {

    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}


.day-chip span {

    display: inline-block;

    min-width: 38px;

    padding: 5px 8px;

    border:
        1px solid
        var(--border, rgba(120, 120, 130, 0.3));

    border-radius: 7px;

    background: transparent;

    color: var(--text-light, #7f6d72);

    font-size: 11px;
    font-weight: 650;

    text-align: center;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}


.day-chip:hover span {

    border-color:
        var(--accent, #e99a82);
}


.day-chip input:checked + span {

    border-color:
        var(--accent, #e99a82);

    background:
        var(--accent, #e99a82);

    color: #ffffff;
}


.day-chip input:focus-visible + span {

    outline:
        2px solid
        var(--accent, #e99a82);

    outline-offset: 2px;
}


.commitment-times .time-input {

    width: 110px;
}


.time-sep {

    color: var(--text-light);
    font-size: 11px;
    font-weight: 600;
}


.other-specify-input {

    flex: 1;
    min-width: 110px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 11px;
    background: white;
    outline: none;
}


.other-specify-input:focus {

    border-color: var(--coral);
}


.bedtime-group {

    max-width: 180px;
}


.radio-pill-group {

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}


.radio-pill {

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-soft);
    cursor: pointer;
    background: #fffafa;
    text-align: center;
    transition: all 0.2s ease;
}


.radio-pill input {

    display: none;
}


.radio-pill:has(input:checked) {

    background: var(--berry);
    color: white;
    border-color: var(--berry);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(201, 28, 86, 0.2);
}


.onboarding-modal-actions {

    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


.onboarding-shell {

    width: min(580px, 100%) !important;
}


.onboarding-content {

    max-width: 520px !important;
}


.onboarding-intro {

    margin-bottom: 18px;
    text-align: center;
}


.onboarding-intro-label {

    font-size: 12px;
    font-weight: 750;
    color: var(--coral-dark);
    text-transform: uppercase;
    letter-spacing: 1.1px;
}


.onboarding-intro-sub {

    margin-top: 3px;
    font-size: 13px;
    color: var(--text-soft);
}



.modal-actions {

    margin-top: 4px;

    display: flex;
    justify-content: flex-end;

    gap: 8px;
}


.cancel-button,
.save-task-button {

    display: block;

    padding:
        10px
        17px;

    border-radius: 10px;

    font-size: 11px;
    font-weight: 700;
}


.cancel-button {

    border:
        1px solid
        var(--border-dark);

    background: white;

    color:
        var(--text-soft);
}


.save-task-button {

    border: none;

    background:
        var(--berry);

    color: white;
}


.save-task-button:hover {

    background:
        var(--berry-dark);
}

/* =========================================================
   Dedicated Calendar page
   ========================================================= */

.calendar-page-mode {
    grid-template-columns: 1fr;
    gap: 16px;
}


/* Full-width calendar */

.calendar-page-mode .planner-main {
    width: 100%;
    min-height: 720px;
}


/* Put strategy controls ABOVE calendar */

.calendar-page-mode .planner-controls {
    grid-row: 1;
    padding: 18px 22px;

    min-height: auto;

    border-radius:
        var(--radius-large);

    background:
        var(--panel);

    box-shadow:
        var(--shadow-card);
}


.calendar-page-mode .planner-main {
    grid-row: 2;
}

/* Calendar strategy toolbar */

.calendar-page-mode .strategy-control {
    display: grid;

    grid-template-columns:
        minmax(180px, 0.7fr)
        minmax(0, 2.5fr)
        auto;

    align-items: center;

    gap: 18px;
}


/* Heading becomes compact and left aligned */

.calendar-page-mode
.strategy-control
.control-heading {
    margin: 0;
    padding: 0;

    text-align: left;
}


.calendar-page-mode
.strategy-control
.control-heading::after {
    display: none;
}


.calendar-page-mode
.strategy-control
.control-heading h3 {
    font-size: 15px;
}


.calendar-page-mode
.strategy-control
.control-heading p {
    margin:
        3px
        0
        0;

    font-size: 10.5px;
}


/* Calendar strategy cards */

.calendar-page-mode .strategy-options {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 11px;
}


.calendar-page-mode .strategy-card {
    position: relative;

    min-width: 0;

    padding:
        13px
        14px;

    gap: 11px;

    border:
        1px solid
        var(--border);

    border-radius: 14px;

    background: #fffefe;

    box-shadow:
        0 3px 10px
        rgba(110, 75, 80, 0.035);

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


.calendar-page-mode .strategy-card:hover {
    border-color:
        #efc2bd;

    background:
        #fffafa;

    box-shadow:
        0 5px 14px
        rgba(110, 75, 80, 0.07);

    transform:
        translateY(-2px);
}

.calendar-page-mode .strategy-card.active {
    border-color:
        var(--coral);

    background:
        var(--coral-soft);

    box-shadow:
        0 5px 14px
        rgba(229, 141, 128, 0.13);
}


.calendar-page-mode .strategy-card.active::after {
    content: "";

    position: absolute;

    left: 14px;
    right: 14px;
    bottom: -1px;

    height: 3px;

    border-radius:
        4px
        4px
        0
        0;

    background:
        var(--coral);
}

.calendar-page-mode .strategy-number {
    width: 35px;
    height: 35px;

    border-radius: 10px;

    font-size: 11px;
    font-weight: 800;
}

.calendar-page-mode
.strategy-details small {
    display: block;

    margin-top: 2px;

    color:
        var(--text-soft);

    font-size: 10.5px;
    font-weight: 500;

    line-height: 1.3;
}

.calendar-page-mode
.strategy-details strong {
    color: #4f4548;

    font-size: 13px;
    font-weight: 750;
}

.calendar-page-mode
.strategy-control
.control-heading h3 {
    color:
        var(--berry);

    font-size: 17px;
    font-weight: 700;
}


.calendar-page-mode
.strategy-control
.control-heading p {
    margin:
        4px
        0
        0;

    max-width: 210px;

    color:
        var(--text-soft);

    font-size: 11px;
    font-weight: 550;

    line-height: 1.35;
}

/* =========================================================
   Utility
   ========================================================= */

.hidden {

    display:
        none !important;
}



/* =========================================================
   Accessibility
   ========================================================= */

button:focus-visible,
input:focus-visible,
select:focus-visible {

    outline:
        3px solid
        rgba(245, 139, 128, 0.28);

    outline-offset: 2px;
}


/* =========================================================
   Importance / effort rating colours
   ========================================================= */

.rating-badge.rating-low {
    background: #e8f4ec;
    color: #4f7f60;
}


.rating-badge.rating-medium {
    background: #fdf0df;
    color: #b87532;
}


.rating-badge.rating-high {
    background: #f9e7eb;
    color: #b63d5f;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1150px) {

    body {

        padding: 18px;
    }


    .app {

        grid-template-columns:
            180px
            1fr;
    }


    .planner-layout {

        grid-template-columns:
            1fr;
    }


    .planner-controls {

        display: grid;

        grid-template-columns:
            1fr
            1fr;

        gap: 16px;
    }


    .control-block {

        margin: 0;
        padding: 0;

        border-bottom: none;
    }
}



@media (max-width: 820px) {

    body {

        padding: 0;

        background:
            var(--app-bg);
    }


    .app {

        display: block;

        min-height: 100vh;

        border: none;
        border-radius: 0;

        box-shadow: none;
    }


    .sidebar {

        min-height: auto;

        padding: 16px;

        border-right: none;

        border-bottom:
            1px solid
            var(--border);
    }


    .brand {

        padding-bottom: 14px;
    }


    .navigation {

        margin-top: 14px;

        flex-direction: row;

        overflow-x: auto;
    }

    .logout-nav-item {
        margin-top: 0;
        margin-left: auto;
    }


    .nav-item {

        width: auto;

        flex-shrink: 0;

        white-space: nowrap;
    }


    .sidebar-footer {

        display: none;
    }


    .main-content {

        padding:
            22px
            18px
            40px;
    }


    .planner-controls {

        grid-template-columns:
            1fr;
    }


    .dashboard-header {

        align-items:
            flex-start;
    }
}

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



@media (max-width: 580px) {

    .dashboard-header {

        flex-direction:
            column;

        align-items:
            stretch;
    }


    .header-add-button {

        width: 100%;
    }


    .planner-main,
    .planner-controls,
    .dashboard-section {

        padding: 18px;
    }


    .planner-heading {

        align-items:
            flex-start;

        flex-direction:
            column;
    }


    .view-toggle {

        width: 100%;
    }


    .view-button {

        flex: 1;
    }


    .form-row {

        grid-template-columns:
            1fr;
    }


    .section-heading {

        flex-direction:
            column;

        align-items:
            flex-start;
    }


    .primary-button {

        width: 100%;
    }


    .splash-content {

        padding:
            38px
            25px;
    }


    .splash-names {

        line-height: 1.8;
    }
}

/* =========================================================
   Strategy comparison page
   ========================================================= */

.comparison-page {
    display: flex;
    flex-direction: column;

    gap: 16px;
}


/* ---------------------------------------------------------
   Comparison introduction
   --------------------------------------------------------- */

.comparison-toolbar {
    padding:
        22px
        24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    border:
        1px solid
        rgba(239, 218, 220, 0.8);

    border-radius:
        var(--radius-large);

    background:
        var(--panel);

    box-shadow:
        var(--shadow-card);
}


.comparison-toolbar h3 {
    margin-top: 3px;

    color: #4f4548;

    font-size: 22px;
    font-weight: 750;
}


.comparison-toolbar-message {
    max-width: 560px;

    margin-top: 4px;

    color:
        var(--text-soft);

    font-size: 13px;
    font-weight: 500;
}


/* Selected strategy counter */

.comparison-selection-status {
    min-width: 125px;

    padding:
        11px
        14px;

    display: flex;
    flex-direction: column;
    align-items: center;

    border:
        1px solid
        var(--border);

    border-radius: 13px;

    background:
        #fffefe;
}


.comparison-selection-status span {
    color:
        var(--text-soft);

    font-size: 9px;
    font-weight: 650;

    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.comparison-selection-status strong {
    margin-top: 2px;

    color:
        var(--berry);

    font-size: 18px;
    font-weight: 800;
}


/* ---------------------------------------------------------
   2 x 2 viewer
   --------------------------------------------------------- */

.comparison-viewer-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}


/* Comparison slot */

.comparison-viewer-slot {
    min-height: 330px;

    padding: 20px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-large);

    background:
        var(--panel);

    box-shadow:
        var(--shadow-card);
}

/* ---------------------------------------------------------
   Empty comparison slots
   --------------------------------------------------------- */

.comparison-add-strategy {
    width: 100%;
    min-height: 285px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border:
        2px dashed
        var(--border-dark);

    border-radius: 18px;

    background:
        #fffdfd;

    color:
        var(--text-soft);

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.comparison-add-strategy:hover {
    border-color:
        var(--coral);

    background:
        var(--coral-soft);

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(138, 75, 82, 0.07);
}


/* Large + circle */

.comparison-add-icon {
    width: 58px;
    height: 58px;

    margin-bottom: 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        var(--berry-soft);

    color:
        var(--berry);

    font-size: 32px;
    font-weight: 400;

    line-height: 1;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.comparison-add-strategy:hover
.comparison-add-icon {
    background:
        var(--berry);

    color: white;

    transform:
        scale(1.05);
}


.comparison-add-strategy strong {
    color:
        #4f4548;

    font-size: 16px;
    font-weight: 700;
}


.comparison-add-strategy small {
    max-width: 220px;

    color:
        var(--text-light);

    font-size: 11px;
    font-weight: 500;

    line-height: 1.4;

    text-align: center;
}

/* =========================================================
   Comparison strategy picker
   ========================================================= */

.comparison-picker {
    min-height: 285px;

    display: flex;
    flex-direction: column;
}


.comparison-picker-heading {
    margin-bottom: 15px;
    padding-bottom: 13px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    border-bottom:
        1px solid
        var(--border);
}


.comparison-picker-heading strong {
    display: block;

    color:
        var(--berry);

    font-size: 16px;
    font-weight: 700;
}


.comparison-picker-heading small {
    display: block;

    margin-top: 2px;

    color:
        var(--text-soft);

    font-size: 11px;
}


.comparison-picker-close,
.comparison-remove-strategy {
    width: 31px;
    height: 31px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        var(--border);

    border-radius: 9px;

    background:
        #fffefe;

    color:
        var(--text-soft);

    font-size: 18px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


.comparison-picker-close:hover,
.comparison-remove-strategy:hover {
    border-color:
        #e9bcc8;

    background:
        var(--berry-soft);

    color:
        var(--berry);
}


/* Picker options */

.comparison-picker-options {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 9px;
}


.comparison-picker-option {
    min-width: 0;

    padding:
        12px;

    display: flex;
    align-items: center;

    gap: 10px;

    border:
        1px solid
        var(--border);

    border-radius: 12px;

    background:
        #fffefe;

    text-align: left;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


.comparison-picker-option:hover:not(.disabled) {
    border-color:
        var(--coral);

    background:
        var(--coral-soft);

    transform:
        translateY(-1px);
}


.comparison-picker-option.disabled {
    opacity: 0.45;

    cursor:
        not-allowed;
}


.comparison-picker-number,
.comparison-strategy-number {
    width: 35px;
    height: 35px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        var(--coral-soft);

    color:
        var(--coral-dark);

    font-size: 11px;
    font-weight: 800;
}


.comparison-picker-details {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.comparison-picker-details strong {
    color:
        #4f4548;

    font-size: 13px;
    font-weight: 700;
}


.comparison-picker-details small {
    margin-top: 2px;

    color:
        var(--text-soft);

    font-size: 10px;
}

/* =========================================================
   Selected comparison strategy
   ========================================================= */

.comparison-selected-header {
    padding-bottom: 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    border-bottom:
        1px solid
        var(--border);
}


.comparison-selected-title {
    display: flex;
    align-items: center;

    gap: 11px;
}


.comparison-selected-title strong {
    display: block;

    color:
        #4f4548;

    font-size: 19px;
    font-weight: 750;
}


.comparison-selected-title small {
    display: block;

    margin-top: 2px;

    color:
        var(--text-soft);

    font-size: 13px;
}


.comparison-awaiting-tasks {
    min-height: 210px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color:
        var(--text-light);

    text-align: center;
}


.comparison-awaiting-tasks span {
    color:
        var(--coral-dark);

    font-size: 12px;
    font-weight: 700;
}


.comparison-awaiting-tasks p {
    margin-top: 3px;

    font-size: 11px;
}

/* =========================================================
   Comparison ranked task lists
   ========================================================= */

.comparison-ranked-list {
    margin-top: 14px;

    display: flex;
    flex-direction: column;

    gap: 8px;
}


.comparison-ranked-task {
    padding:
        14px
        14px;

    display: flex;
    align-items: center;

    gap: 11px;

    border:
        1px solid
        var(--border);

    border-radius: 12px;

    background:
        #fffefe;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.comparison-ranked-task:hover {
    border-color:
        var(--border-dark);

    transform:
        translateY(-1px);

    box-shadow:
        0 4px 12px
        rgba(138, 75, 82, 0.05);
}


/* Ranking */

.comparison-task-rank {
    width: 29px;
    height: 29px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background:
        var(--coral);

    color: white;

    font-size: 13px;
    font-weight: 800;
}


/* Task information */

.comparison-ranked-info {
    min-width: 0;

    flex: 1;
}


.comparison-ranked-info > strong {
    display: block;

    overflow: hidden;

    color:
        #4f4548;

    font-size: 15px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.comparison-ranked-meta {
    margin-top: 3px;

    display: flex;
    flex-wrap: wrap;

    gap:
        3px
        8px;
}


.comparison-ranked-meta span {
    color:
        var(--text-soft);

    font-size: 12px;
    font-weight: 500;
}


/* Ratings */

.comparison-ranked-ratings {
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 3px;
}


.comparison-ranked-ratings
.rating-badge {
    padding:
        4px
        6px;

    border-radius: 6px;

    font-size: 10px;
    font-weight: 700;
}

.comparison-status-state {
    min-height: 210px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color:
        var(--text-light);

    text-align: center;
}


.comparison-status-state strong {
    color:
        #5c5256;

    font-size: 13px;
    font-weight: 700;
}


.comparison-status-state p {
    max-width: 240px;

    margin-top: 4px;

    font-size: 10.5px;
}


.comparison-loading-dot {
    width: 10px;
    height: 10px;

    margin-bottom: 9px;

    border-radius: 50%;

    background:
        var(--berry);

    animation:
        comparisonPulse
        1s ease-in-out
        infinite;
}


@keyframes comparisonPulse {

    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================================
   Settings modal
   ========================================================= */

.settings-modal {
    width:
        min(800px, 100%);

    max-height:
        90vh;

    overflow-y:
        auto;

    padding:
        28px;

    border-radius:
        24px;

    background:
        var(--panel);

    box-shadow:
        0 30px 70px
        rgba(93, 51, 60, 0.22);
}


.settings-modal-message {
    margin-top: 4px;

    color:
        var(--text-soft);

    font-size: 13px;
    font-weight: 500;
}


/* Settings cards */

.settings-card {
    margin-top: 18px;

    padding:
        20px;

    border:
        1px solid
        var(--border);

    border-radius:
        16px;

    background:
        #fffefe;
}


.settings-card-heading {
    margin-bottom: 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;
}


.settings-card-heading h4 {
    color:
        #4f4548;

    font-size: 17px;
    font-weight: 750;
}


.settings-card-heading p {
    margin-top: 3px;

    color:
        var(--text-soft);

    font-size: 12px;
}


/* General hours */

.settings-time-row {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 16px;
}


.settings-check-row {
    margin-top: 16px;

    display: flex;
    align-items: center;

    gap: 9px;

    color:
        var(--text-soft);

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}


.settings-check-row input {
    width: 17px;
    height: 17px;

    accent-color:
        var(--berry);
}


/* Blocked times */

.settings-add-block-button {
    padding:
        9px
        13px;

    border:
        1px solid
        var(--coral);

    border-radius: 10px;

    background:
        var(--coral-soft);

    color:
        var(--coral-dark);

    font-size: 11px;
    font-weight: 700;
}


.settings-empty-blocks {
    padding:
        24px;

    border:
        1px dashed
        var(--border-dark);

    border-radius:
        13px;

    background:
        var(--panel-soft);

    text-align: center;
}

.settings-card .form-group label {

    font-size: 13px;
    font-weight: 700;

    color:
        var(--text-soft);
}
.settings-break-group {
    margin-top: 12px;
}

.settings-empty-blocks strong {
    color:
        #5c5256;

    font-size: 13px;
}


.settings-empty-blocks p {
    margin-top: 3px;

    color:
        var(--text-light);

    font-size: 11px;
}


/* Save button */

.settings-actions {
    margin-top: 18px;

    display: flex;
    justify-content: flex-end;
}


.settings-save-button {
    width: auto;

    min-width: 160px;

    padding:
        13px
        20px;
}

/* =========================================================
   Custom planning hours by day
   ========================================================= */

.custom-days-container {
    margin-top: 18px;

    padding-top: 18px;

    border-top:
        1px solid
        var(--border);
}


.custom-days-heading {
    margin-bottom: 12px;

    display: flex;
    flex-direction: column;
}


.custom-days-heading strong {
    color:
        #4f4548;

    font-size: 14px;
    font-weight: 750;
}


.custom-days-heading span {
    margin-top: 2px;

    color:
        var(--text-soft);

    font-size: 11px;
}


/* Individual day */

.custom-day-row {
    min-height: 55px;

    padding:
        9px
        11px;

    display: grid;

    grid-template-columns:
        100px
        minmax(240px, 1fr)
        95px;

    align-items: center;

    gap: 14px;

    border:
        1px solid
        var(--border);

    border-radius: 11px;

    background:
        #fffefe;
}


.custom-day-row
+ .custom-day-row {
    margin-top: 7px;
}


.custom-day-name {
    color:
        #4f4548;

    font-size: 13px;
    font-weight: 700;
}


/* Time controls */

.custom-day-times {
    display: flex;
    align-items: center;

    gap: 8px;
}


.custom-day-times input {
    width: 110px;

    padding:
        8px
        9px;

    border:
        1px solid
        var(--border);

    border-radius: 9px;

    background:
        white;

    color:
        var(--text);

    font-size: 12px;
}


.custom-day-times span {
    color:
        var(--text-light);

    font-size: 11px;
    font-weight: 600;
}


/* No tasks */

.custom-day-off {
    display: flex;
    align-items: center;

    gap: 6px;

    color:
        var(--text-soft);

    font-size: 11px;
    font-weight: 650;

    cursor: pointer;
}


.custom-day-off input {
    width: 15px;
    height: 15px;

    accent-color:
        var(--berry);
}


/* Day disabled */

.custom-day-row.no-tasks {
    background:
        var(--panel-soft);
}


.custom-day-row.no-tasks
.custom-day-times {
    opacity: 0.35;
}


.custom-day-row.no-tasks
.custom-day-name {
    color:
        var(--text-light);
}

/* =========================================================
   Blocked times
   ========================================================= */

.blocked-time-form {
    margin-bottom: 15px;

    padding:
        16px;

    border:
        1px solid
        var(--border);

    border-radius:
        13px;

    background:
        var(--panel-soft);
}


.blocked-time-form-grid {
    display: grid;

    grid-template-columns:
        1.4fr
        1fr
        1fr
        1fr;

    gap: 12px;
}


.blocked-time-form-actions {
    margin-top: 14px;

    display: flex;
    justify-content: flex-end;

    gap: 8px;
}


.blocked-times-list {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


/* Individual blocked time */

.blocked-time-item {
    padding:
        11px
        13px;

    display: grid;

    grid-template-columns:
        95px
        120px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 12px;

    border:
        1px solid
        var(--border);

    border-radius:
        11px;

    background:
        #fffefe;
}


.blocked-time-day {
    color:
        var(--berry);

    font-size: 12px;
    font-weight: 750;
}


.blocked-time-hours {
    color:
        var(--text-soft);

    font-size: 12px;
    font-weight: 650;
}


.blocked-time-name {
    min-width: 0;

    overflow: hidden;

    color:
        #4f4548;

    font-size: 13px;
    font-weight: 650;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.blocked-time-actions {
    display: flex;

    gap: 5px;
}


.blocked-time-action {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        var(--border);

    border-radius:
        8px;

    background:
        white;

    color:
        var(--text-soft);

    font-size: 13px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.blocked-time-edit:hover {
    border-color:
        var(--coral);

    background:
        var(--coral-soft);

    color:
        var(--coral-dark);
}


.blocked-time-delete:hover {
    border-color:
        #e9bcc8;

    background:
        var(--berry-soft);

    color:
        var(--berry);
}


/* Empty state */

.blocked-times-empty {
    padding:
        22px;

    border:
        1px dashed
        var(--border-dark);

    border-radius:
        12px;

    background:
        var(--panel-soft);

    color:
        var(--text-light);

    font-size: 11px;

    text-align: center;
}

/* =========================================================
   Breaks between tasks (calendar)
   ========================================================= */

.calendar-event.calendar-break {

    z-index: 4;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    gap: 5px;

    padding: 1px 6px;

    border:
        1px dashed
        var(--border-dark);

    border-radius: 6px;

    background:
        repeating-linear-gradient(
            45deg,
            rgba(245, 139, 128, 0.07) 0,
            rgba(245, 139, 128, 0.07) 4px,
            rgba(245, 139, 128, 0.14) 4px,
            rgba(245, 139, 128, 0.14) 8px
        );

    box-shadow: none;

    color: var(--text-soft);

    overflow: hidden;
}


.calendar-event.calendar-break strong {

    font-size: 9.5px;
    font-weight: 700;

    letter-spacing: 0.3px;
}


.calendar-event.calendar-break span {

    font-size: 9px;
    font-weight: 500;

    opacity: 0.8;
}


.settings-break-group select {

    width: 100%;
}

.settings-break-hint {

    width: fit-content;

    margin-top: 7px;

    padding:
        5px
        9px;

    border-radius: 8px;

    background:
        var(--coral-soft);

    color:
        var(--coral-dark);

    font-size: 11px;
    font-weight: 600;

    line-height: 1.3;
}



/* =========================================================
   Fixed task conflict warning
   ========================================================= */

.conflict-modal {

    max-width: 440px;
}


.conflict-message {

    margin: 4px 0 8px;

    color: var(--text);

    font-size: 14px;
    font-weight: 650;

    line-height: 1.5;
}


.conflict-sub {

    margin: 0 0 18px;

    color: var(--text-soft);

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================================
   Smart schedule alert
   ========================================================= */

.schedule-alert {

    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-bottom: 18px;
    padding: 14px 16px;

    border:
        1px solid
        #f3c9b6;

    border-left:
        4px solid
        #e08a5c;

    border-radius: 12px;

    background: #fff6ef;

    animation: modalEnter 0.2s ease both;
}


.schedule-alert.schedule-alert-calm {

    border-color: var(--border);
    border-left-color: var(--coral);

    background: var(--panel-soft);
}


.schedule-alert-icon {

    flex-shrink: 0;

    margin-top: 1px;

    color: #d97742;

    font-size: 15px;
    line-height: 1.3;
}


.schedule-alert-calm .schedule-alert-icon {

    color: var(--coral-dark);
}


.schedule-alert-body {

    flex: 1;

    min-width: 0;
}


.schedule-alert-body strong {

    display: block;

    margin-bottom: 3px;

    color: var(--text);

    font-size: 13px;
    font-weight: 750;
}


.schedule-alert-body p {

    margin: 0;

    color: var(--text-soft);

    font-size: 13px;

    line-height: 1.5;
}


.schedule-alert-dismiss {

    flex-shrink: 0;

    padding: 0 2px;

    border: none;

    background: none;

    color: var(--text-light);

    font-size: 17px;
    line-height: 1;

    cursor: pointer;

    transition: color 0.15s ease;
}


.schedule-alert-dismiss:hover {

    color: var(--text);
}


/* =========================================================
   My Productivity
   ========================================================= */

.productivity-page {

    display: flex;
    flex-direction: column;

    gap: 20px;
}


.productivity-toolbar {

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 16px;

    padding: 22px 24px;

    border:
        1px solid
        var(--border);

    border-radius: 18px;

    background: var(--panel);
}


.productivity-toolbar h3 {

    margin: 4px 0 6px;

    font-size: 19px;
}


.productivity-toolbar-message {

    margin: 0;

    max-width: 420px;

    color: var(--text-soft);

    font-size: 13px;

    line-height: 1.5;
}


.productivity-summary {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(160px, 1fr));

    gap: 14px;
}


.stat-card {

    display: flex;
    flex-direction: column;

    gap: 5px;

    padding: 20px 22px;

    border:
        1px solid
        var(--border);

    border-radius: 16px;

    background: var(--panel);
}


.stat-value {

    color: var(--text);

    font-size: 27px;
    font-weight: 750;

    line-height: 1.1;
}


.stat-card.stat-good .stat-value {

    color: #2f8f6b;
}


.stat-card.stat-bad .stat-value {

    color: var(--berry);
}


.stat-label {

    color: var(--text-soft);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 0.2px;
}


.productivity-detail {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));

    gap: 14px;
}


.productivity-card {

    padding: 20px 22px;

    border:
        1px solid
        var(--border);

    border-radius: 16px;

    background: var(--panel);
}


.productivity-card-wide {

    grid-column: 1 / -1;
}


.productivity-card h4 {

    margin: 0 0 10px;

    color: var(--text-soft);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.4px;

    text-transform: uppercase;
}


.productivity-figure {

    margin: 0 0 12px;

    color: var(--text);

    font-size: 22px;
    font-weight: 750;

    line-height: 1.2;
}


.productivity-note {

    margin: 0;

    color: var(--text-light);

    font-size: 11.5px;

    line-height: 1.5;
}


.productivity-list {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(150px, 1fr));

    gap: 10px;

    margin: 0;
    padding: 0;

    list-style: none;
}


.productivity-list li {

    color: var(--text-soft);

    font-size: 13px;
}


.productivity-list strong {

    display: block;

    color: var(--text);

    font-size: 20px;
    font-weight: 750;

    line-height: 1.3;
}


.productivity-empty {

    grid-column: 1 / -1;

    padding: 44px 24px;

    border:
        1px dashed
        var(--border-dark);

    border-radius: 16px;

    background: var(--panel-soft);

    text-align: center;
}


.productivity-empty h4 {

    margin: 0 0 6px;

    color: var(--text);

    font-size: 15px;
    font-weight: 700;

    letter-spacing: 0;

    text-transform: none;
}


.productivity-empty p {

    margin: 0;

    color: var(--text-soft);

    font-size: 13px;
}


/* Bar chart: when work actually gets finished */

.bucket-chart {

    display: flex;
    flex-direction: column;

    gap: 8px;
}


.bucket-row {

    display: grid;

    grid-template-columns: 62px 1fr 22px;
    align-items: center;

    gap: 8px;
}


.bucket-name {

    color: var(--text-soft);

    font-size: 11.5px;
    font-weight: 600;
}


.bucket-track {

    height: 7px;

    border-radius: 99px;

    background: var(--coral-soft);

    overflow: hidden;
}


.bucket-fill {

    display: block;

    height: 100%;

    min-width: 2px;

    border-radius: 99px;

    background: var(--coral);

    transition: width 0.25s ease;
}


.bucket-fill.bucket-best {

    background: var(--berry);
}


.bucket-count {

    color: var(--text-light);

    font-size: 11px;
    font-weight: 650;

    text-align: right;
}


/* =========================================================
   Kirby Help Widget
   ========================================================= */

.kirby-widget {

    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 500;

    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px;
}

.kirby-launcher {

    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 54px;
    padding: 5px 13px 5px 6px;

    border: 1px solid rgba(201, 28, 86, 0.2);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(122, 46, 69, 0.2);
    color: var(--berry);
    cursor: pointer;

    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kirby-launcher:hover {

    transform: translateY(-2px);
    box-shadow: 0 13px 28px rgba(122, 46, 69, 0.28);
}

.kirby-launcher img {

    width: 43px;
    height: 43px;
    object-fit: contain;
    border-radius: 50%;
}

.kirby-launcher-label {

    font-size: 12px;
    font-weight: 750;
}

.kirby-panel {

    width: 340px;
    max-width: calc(100vw - 44px);
    max-height: min(520px, calc(100vh - 112px));

    display: flex;
    flex-direction: column;
    overflow: hidden;

    border: 1px solid rgba(201, 28, 86, 0.16);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 18px 45px rgba(85, 40, 57, 0.24);
    animation: modalEnter 0.18s ease both;
}

.kirby-panel-header {

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--berry), #e7527b);
    color: #fff;
}

.kirby-panel-heading {

    display: flex;
    align-items: center;
    gap: 9px;
}

.kirby-avatar {

    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
}

.kirby-panel-heading div {

    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.kirby-panel-heading strong { font-size: 13px; }
.kirby-panel-heading span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.45px;
    opacity: 0.86;
    text-transform: uppercase;
}

.kirby-close-button {

    width: 27px;
    height: 27px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    font-size: 21px;
    line-height: 1;
}

.kirby-messages {

    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 9px;
    min-height: 250px;
    padding: 14px;
    overflow-y: auto;
    background: #fffafb;
}

.kirby-bubble {

    max-width: 88%;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-line;
}

.kirby-bubble-bot {

    align-self: flex-start;
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    background: #fff;
    color: var(--text);
}

.kirby-bubble-user {

    align-self: flex-end;
    border-bottom-right-radius: 4px;
    background: var(--berry);
    color: #fff;
}

.kirby-options {

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.kirby-option-button {

    max-width: 100%;
    padding: 7px 11px;
    border: 1px solid rgba(201, 28, 86, 0.28);
    border-radius: 10px;
    background: #fff;
    color: var(--berry-dark);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    text-align: left;
}

.kirby-option-button:hover {

    border-color: var(--berry);
    background: var(--berry);
    color: #fff;
}

.kirby-option-end { color: var(--text-soft); }

@media (max-width: 560px) {

    .kirby-widget { left: 14px; bottom: 14px; }
    .kirby-panel { max-width: calc(100vw - 28px); }
    .kirby-launcher-label { display: none; }
    .kirby-launcher { padding: 5px; }
}
