/*
   1. COLOUR SYSTEM
 */

:root {
    color-scheme: light;

    --background: #F5F4EF;
    --surface: #FCFBF8;
    --surface-muted: #EFEEE7;
    --surface-hover: #E9EAE1;

    --text: #252923;
    --text-muted: #818479;
    --text-light: #A2A498;

    --accent: #526B55;
    --accent-hover: #405843;
    --accent-soft: #E7ECE3;

    --border: #E5E3D9;
    --border-strong: #D5D6CA;

    --danger: #A34F45;
    --danger-soft: #F5E8E4;

    --shadow-sm: 0 2px 8px rgba(36, 45, 35, 0.035);
    --shadow-md: 0 8px 24px rgba(36, 45, 35, 0.045);

    --radius-sm: 9px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --page-width: 1120px;
}


/* 
   2. DARK THEME
*/

body.dark {
    color-scheme: dark;

    --background: #20241F;
    --surface: #292E28;
    --surface-muted: #32382F;
    --surface-hover: #3A4237;

    --text: #EDF0E8;
    --text-muted: #B0B7AA;
    --text-light: #909A8A;

    --accent: #A8C19F;
    --accent-hover: #BCD2B4;
    --accent-soft: #394737;

    --border: #41483D;
    --border-strong: #515B4D;

    --danger: #E6A39A;
    --danger-soft: #49312E;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
}


/* 
   3. RESET AND BASE STYLES
 */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;

    background: var(--background);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 15px;
    line-height: 1.65;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.25;
}

h2 {
    margin-bottom: 10px;

    font-size: clamp(1.45rem, 3vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.8px;
}

h3 {
    margin-bottom: 7px;

    font-size: 1rem;
    font-weight: 650;
}

p {
    color: var(--text-muted);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

::selection {
    background: var(--accent-soft);
    color: var(--text);
}


/* 
   4. NAVIGATION BAR
 */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(252, 251, 248, 0.96);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease;
}

body.dark .topbar {
    background: rgba(41, 46, 40, 0.96);
}

.nav-container {
    display: grid;

    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    gap: 30px;

    width: min(calc(100% - 80px), 1380px);
    min-height: 86px;

    margin: 0 auto;
}


/* 
   5. CUSTOM MOUNTAIN BRAND
 */

.brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;

    gap: 13px;

    color: var(--text);

    font-size: 1.08rem;
    font-weight: 750;
    letter-spacing: -0.55px;

    white-space: nowrap;
}

.brand-mark {
    position: relative;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    width: 44px;
    height: 44px;

    overflow: hidden;

    background: #526B55;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;

    box-shadow: 0 3px 8px rgba(48, 68, 48, 0.10);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Mountain silhouettes */

.mountain {
    position: absolute;
    display: block;

    width: 27px;
    height: 24px;

    clip-path: polygon(
        50% 0,
        100% 100%,
        0 100%
    );
}

.mountain-back {
    top: 7px;
    left: 18px;

    width: 19px;
    height: 19px;

    background: #AFC0A5;
}

.mountain-front {
    top: 13px;
    left: 5px;

    background: #FFFFFF;
}

/* Small cutout detail on the foreground mountain */

.mountain-front::after {
    content: "";

    position: absolute;
    top: 10px;
    left: 12px;

    width: 8px;
    height: 12px;

    background: #526B55;

    clip-path: polygon(
        50% 0,
        100% 100%,
        0 100%
    );
}

.brand:hover .brand-mark {
    transform: translateY(-2px);

    box-shadow: 0 6px 14px rgba(48, 68, 48, 0.17);
}

body.dark .brand-mark {
    background: #708970;
}

body.dark .mountain-back {
    background: #D0DFC8;
}

body.dark .mountain-front {
    background: #FFFFFF;
}

body.dark .mountain-front::after {
    background: #708970;
}


/*
   6. NAVIGATION LINKS
 */

.navigation {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;
    padding: 5px;

    border-radius: 14px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 19px;

    border-radius: 10px;

    color: var(--text-muted);

    font-size: 0.91rem;
    font-weight: 550;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-link:hover {
    background: var(--surface-muted);
    color: var(--text);
}

.nav-link.active {
    background: #EAEDE4;
    color: #344C36;

    font-weight: 650;
}

body.dark .nav-link.active {
    background: var(--accent-soft);
    color: #DCE9D5;
}

.nav-link:active {
    transform: scale(0.98);
}


/* 
   7. CLOCK AND THEME BUTTON
*/

.nav-actions {
    display: flex;
    align-items: center;
    justify-self: end;

    gap: 23px;
}

.clock {
    min-width: 82px;

    color: var(--text-muted);

    font-size: 0.84rem;
    font-weight: 500;

    font-variant-numeric: tabular-nums;
    letter-spacing: 0.4px;
}

.theme-toggle {
    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    background: transparent;
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 50%;

    font-size: 1.3rem;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.25s ease;
}

.theme-toggle:hover {
    background: var(--surface-muted);
    border-color: var(--border-strong);

    transform: rotate(-12deg);
}


/*  
   8. PAGE LAYOUT
    */

.page-container {
    width: min(calc(100% - 48px), var(--page-width));
    margin: 0 auto;
}

section {
    scroll-margin-top: 110px;
}


/* 
   9. SECTION HEADINGS
 */

.eyebrow {
    display: inline-block;

    margin-bottom: 13px;

    color: var(--accent);

    font-size: 0.72rem;
    font-weight: 750;

    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;
    margin-bottom: 26px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-description {
    margin: 10px 0 0;

    font-size: 0.94rem;
}


/* 
   10. HERO SECTION
*/

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 50px;

    min-height: 315px;

    margin-top: 34px;
    padding: 48px 52px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}

.hero-copy {
    max-width: 600px;
}

.hero-copy .eyebrow {
    margin-bottom: 18px;
}

.hero-copy h1 {
    margin-bottom: 18px;

    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 750;

    letter-spacing: -3px;
    line-height: 1.08;
}

.hero-copy > p {
    max-width: 460px;

    margin-bottom: 18px;

    font-size: 1.02rem;
    line-height: 1.8;
}

.current-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-note {
    flex-shrink: 0;

    width: 230px;
    padding: 24px;

    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.note-label {
    color: var(--accent);

    font-size: 0.68rem;
    font-weight: 750;

    letter-spacing: 1.1px;
}

.hero-note p {
    margin: 14px 0 0;

    color: var(--text);

    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.6;
}


/*
   11. DAILY PROGRESS
*/

.progress-section {
    margin-top: 28px;
    padding: 30px 32px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}

.progress-section .section-heading {
    align-items: center;
    margin-bottom: 22px;
}

.progress-label {
    color: var(--accent);

    font-size: 2rem;
    font-weight: 750;
    letter-spacing: -1px;
}

.progress-track {
    width: 100%;
    height: 10px;

    overflow: hidden;

    background: var(--surface-muted);
    border-radius: 999px;
}

.progress-fill {
    width: 0%;
    height: 100%;

    background: var(--accent);
    border-radius: inherit;

    transition: width 0.35s ease;
}

.progress-summary {
    display: flex;
    justify-content: space-between;

    gap: 16px;
    margin-top: 15px;

    color: var(--text-muted);
    font-size: 0.86rem;
}


/*
   12. STATISTICS CARDS
*/

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    min-width: 0;

    padding: 25px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.stat-label {
    display: block;
    margin-bottom: 15px;

    color: var(--text-muted);
    font-size: 0.86rem;
}

.stat-value {
    display: flex;
    align-items: baseline;

    gap: 7px;
    margin-bottom: 9px;

    font-size: 2rem;
    font-weight: 750;
    letter-spacing: -1px;
}

.stat-unit {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0;
}

.stat-card p {
    margin: 0;
    font-size: 0.83rem;
}


/* 
   13. BUTTONS
*/

.primary-button,
.secondary-button,
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 42px;
    padding: 10px 16px;

    border: 1px solid transparent;
    border-radius: var(--radius-sm);

    font-size: 0.9rem;
    font-weight: 650;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

.primary-button {
    background: var(--accent);
    color: #FFFFFF;
}

.primary-button:hover {
    background: var(--accent-hover);
}

.secondary-button {
    background: var(--surface);
    color: var(--text);

    border-color: var(--border);
}

.secondary-button:hover {
    background: var(--surface-muted);
    border-color: var(--border-strong);
}

.danger-button {
    background: var(--danger-soft);
    color: var(--danger);

    border-color: var(--border);
}

.danger-button:hover {
    border-color: var(--danger);
}

.primary-button:active,
.secondary-button:active,
.danger-button:active {
    transform: scale(0.98);
}


/* 
   14. HABITS SECTION */

.habits-section {
    margin-top: 60px;
}

.habits-heading {
    align-items: center;
}

.date-navigation {
    display: flex;
    align-items: center;

    gap: 8px;
    margin-bottom: 22px;
}

.selected-date-label {
    margin-left: 10px;

    color: var(--text-muted);
    font-size: 0.85rem;
}

.focus-card {
    display: flex;
    align-items: center;

    gap: 16px;

    margin-bottom: 22px;
    padding: 21px 24px;

    background: var(--accent-soft);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.focus-icon {
    display: grid;
    place-items: center;

    flex-shrink: 0;

    width: 42px;
    height: 42px;

    background: var(--surface);
    color: var(--accent);

    border: 1px solid var(--border);
    border-radius: 12px;

    font-size: 1.3rem;
}

.focus-content h3 {
    margin-bottom: 4px;
}

.focus-content p {
    margin: 0;
    font-size: 0.86rem;
}

.habit-list {
    display: grid;
    gap: 12px;
}

.habit-card {
    display: flex;
    align-items: center;

    gap: 16px;

    min-width: 0;
    padding: 22px 24px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.habit-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.habit-card.completed {
    background: var(--surface-muted);
}

.habit-check {
    display: grid;
    place-items: center;

    flex-shrink: 0;

    width: 27px;
    height: 27px;

    margin: 0;

    appearance: none;
    -webkit-appearance: none;

    background: var(--surface);

    border: 2px solid var(--border-strong);
    border-radius: 50%;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.habit-check:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.habit-check:checked::after {
    content: "✓";

    color: #FFFFFF;

    font-size: 0.8rem;
    font-weight: 750;
}

.habit-content {
    flex: 1;
    min-width: 0;
}

.habit-title {
    margin: 0 0 5px;

    color: var(--text);

    font-size: 1rem;
    font-weight: 700;
}

.habit-description {
    margin: 0;

    color: var(--text-muted);
    font-size: 0.86rem;

    overflow-wrap: anywhere;
}

.habit-card.completed .habit-title {
    color: var(--text-muted);
    text-decoration: line-through;
}

.habit-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;
    margin-top: 10px;
}

.habit-category {
    display: inline-block;

    padding: 4px 9px;

    background: var(--surface-muted);
    color: var(--text-muted);

    border: 1px solid var(--border);
    border-radius: 6px;

    font-size: 0.72rem;
    font-weight: 600;
}

.habit-actions {
    display: flex;
    align-items: center;

    gap: 6px;
}

.icon-button {
    display: grid;
    place-items: center;

    flex-shrink: 0;

    width: 36px;
    height: 36px;

    background: transparent;
    color: var(--text-muted);

    border: 1px solid transparent;
    border-radius: var(--radius-sm);

    font-size: 1.1rem;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.icon-button:hover {
    background: var(--surface-muted);
    color: var(--text);
}

.habit-actions .icon-button {
    border-color: var(--border);
}

.habit-actions .icon-button:hover {
    border-color: var(--border-strong);
}

.empty-state {
    padding: 42px 24px;

    background: var(--surface);

    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);

    text-align: center;
}

.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

.save-message {
    margin: 17px 0 0;
    font-size: 0.83rem;
}

.overview-section {
    margin-top: 65px;
    padding: 32px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}

.weekly-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));

    gap: 18px;

    min-height: 225px;
    padding-top: 25px;
}

.week-day {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 9px;
    min-width: 0;
}

.week-bar-track {
    display: flex;
    align-items: flex-end;

    width: 100%;
    max-width: 64px;
    height: 145px;

    overflow: hidden;

    background: var(--surface-muted);
    border-radius: 8px;
}

.week-bar {
    width: 100%;
    min-height: 0;

    background: var(--accent);
    border-radius: 8px;

    transition: height 0.3s ease;
}

.week-day-label {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.week-percent {
    color: var(--text);

    font-size: 0.83rem;
    font-weight: 700;
}

.weekly-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 20px;
    padding-top: 20px;

    border-top: 1px solid var(--border);

    color: var(--text-muted);
    font-size: 0.9rem;
}

.weekly-summary strong {
    color: var(--text);
}


.reminder-section {
    display: flex;
    align-items: center;

    gap: 22px;

    margin-top: 25px;
    padding: 28px 32px;

    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.reminder-mark {
    color: var(--accent);

    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
}

.reminder-section .eyebrow {
    margin-bottom: 8px;
}

.reminder-section p {
    margin: 0;

    color: var(--text);

    font-size: 1rem;
    font-weight: 550;
}

.settings-section {
    margin-top: 65px;
    margin-bottom: 65px;
}

.settings-card {
    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
    padding: 24px;

    border-bottom: 1px solid var(--border);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-description {
    flex: 1;
}

.setting-description h3 {
    margin-bottom: 6px;
}

.setting-description p {
    margin: 0;
    font-size: 0.86rem;
}

.setting-control {
    display: flex;
    align-items: center;

    gap: 8px;
}

input[type="text"] {
    width: 220px;
    min-width: 0;
    min-height: 42px;

    padding: 10px 12px;

    background: var(--surface);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

input[type="text"]::placeholder {
    color: var(--text-light);
}

.habit-dialog {
    width: min(480px, calc(100% - 32px));
    max-height: 90vh;

    padding: 30px;
    overflow-y: auto;

    background: var(--surface);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.2);
}

.habit-dialog::backdrop {
    background: rgba(20, 25, 20, 0.55);
    backdrop-filter: blur(3px);
}

.habit-dialog form {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;
    margin-bottom: 10px;
}

.dialog-header h2 {
    margin-bottom: 0;
}

.habit-dialog label {
    margin-top: 8px;

    color: var(--text);

    font-size: 0.87rem;
    font-weight: 650;
}

.habit-dialog input,
.habit-dialog select {
    width: 100%;
    min-height: 44px;

    padding: 10px 12px;

    background: var(--surface);
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.habit-dialog input::placeholder {
    color: var(--text-light);
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;

    gap: 10px;
    margin-top: 20px;
}

.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    width: min(calc(100% - 48px), var(--page-width));

    margin: 0 auto;
    padding: 28px 0;
}

.footer-brand {
    color: var(--text);
    font-weight: 750;
}

.footer-inner p,
.footer-inner > span {
    margin: 0;

    color: var(--text-muted);
    font-size: 0.82rem;
}

@media (max-width: 850px) {

    .nav-container {
        width: calc(100% - 36px);
        min-height: 78px;

        gap: 14px;
    }

    .nav-link {
        padding: 10px 13px;
    }

    .nav-actions {
        gap: 12px;
    }

    .hero-section {
        gap: 25px;
        padding: 36px;
    }

    .hero-note {
        width: 190px;
    }

    .stats-grid {
        gap: 12px;
    }

    .stat-card {
        padding: 20px;
    }

    .weekly-chart {
        gap: 10px;
    }
}

@media (max-width: 600px) {

    .nav-container {
        width: calc(100% - 28px);

        grid-template-columns: 1fr auto;

        gap: 12px;
        padding: 13px 0;
    }

    .brand {
        gap: 9px;
        font-size: 0.96rem;
    }

    .brand-mark {
        width: 37px;
        height: 37px;

        border-radius: 11px;
    }

    .mountain {
        transform: scale(0.85);
        transform-origin: center;
    }

    .nav-actions {
        gap: 10px;
    }

    .clock {
        min-width: 66px;
        font-size: 0.75rem;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;

        font-size: 1.1rem;
    }

    .navigation {
        grid-column: 1 / -1;

        width: 100%;
        justify-content: stretch;

        padding: 4px 0 0;
    }

    .nav-link {
        flex: 1;

        padding: 10px 7px;

        font-size: 0.84rem;
        text-align: center;
    }

    .page-container {
        width: calc(100% - 28px);
    }

    .hero-section {
        flex-direction: column;
        align-items: stretch;

        gap: 25px;

        min-height: auto;

        margin-top: 18px;
        padding: 28px 22px;
    }

    .hero-copy h1 {
        font-size: 3rem;
        letter-spacing: -2px;
    }

    .hero-copy > p {
        font-size: 0.94rem;
    }

    .hero-note {
        width: 100%;
    }

    .progress-section {
        margin-top: 18px;
        padding: 24px 20px;
    }

    .progress-label {
        font-size: 1.6rem;
    }

    .progress-summary {
        align-items: flex-start;
        flex-direction: column;

        gap: 5px;
    }

    .stats-grid {
        grid-template-columns: 1fr;

        gap: 12px;
        margin-top: 12px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 1.7rem;
    }

    .habits-section,
    .overview-section,
    .settings-section {
        margin-top: 42px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 16px;
        margin-bottom: 20px;
    }

    .habits-heading {
        align-items: stretch;
    }

    .habits-heading .primary-button {
        align-self: flex-start;
    }

    .date-navigation {
        flex-wrap: wrap;
    }

    .selected-date-label {
        width: 100%;

        margin: 5px 0 0;
    }

    .focus-card {
        padding: 18px;
    }

    .habit-card {
        align-items: flex-start;

        gap: 12px;
        padding: 18px 14px;
    }

    .habit-check {
        margin-top: 3px;
    }

    .habit-title {
        font-size: 0.95rem;
    }

    .habit-description {
        font-size: 0.82rem;
    }

    .habit-actions {
        gap: 3px;
    }

    .habit-actions .icon-button {
        width: 31px;
        height: 31px;

        font-size: 0.95rem;
    }

    .overview-section {
        padding: 24px 16px;
    }

    .weekly-chart {
        gap: 6px;
        min-height: 195px;
    }

    .week-bar-track {
        height: 115px;
    }

    .week-day-label,
    .week-percent {
        font-size: 0.72rem;
    }

    .reminder-section {
        align-items: flex-start;

        gap: 14px;
        padding: 23px 19px;
    }

    .reminder-mark {
        font-size: 3rem;
    }

    .reminder-section p {
        font-size: 0.92rem;
    }

    .setting-item {
        align-items: flex-start;
        flex-direction: column;

        gap: 15px;
        padding: 21px 18px;
    }

    .setting-control {
        width: 100%;
    }

    .setting-control input {
        flex: 1;
        width: auto;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;

        gap: 8px;
        padding: 24px 0;
    }

    .habit-dialog {
        padding: 23px;
    }
}


@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}