/* Design tokens: neutral light theme with indigo accent, dark mode below. */
:root {
    color-scheme: light dark;

    --bg: #f4f5f7;
    --surface: #ffffff;
    --surface-2: #f6f7f9;
    --surface-3: #eceef2;
    --border: #e3e6ea;
    --border-strong: #cdd2d9;
    --text: #1c2430;
    --text-muted: #5b6572;
    --text-faint: #79828f;

    --accent: #4f5fd5;
    --accent-hover: #4351bd;
    --accent-soft: #eef0fc;
    --accent-soft-hover: #dfe3f9;

    --success: #2f9e63;
    --success-hover: #278554;
    --success-soft: #e9f7ef;
    --success-border: #b7e4c9;

    --danger: #d64545;
    --danger-hover: #bc3a3a;
    --danger-soft: #fbeaea;

    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14161a;
        --surface: #1d2026;
        --surface-2: #23262d;
        --surface-3: #2b2f37;
        --border: #32363f;
        --border-strong: #454a55;
        --text: #e7e9ee;
        --text-muted: #a6adba;
        --text-faint: #6f7683;

        /* Blue instead of purple: purple reads muddy on dark surfaces. */
        --accent: #6ba1f2;
        --accent-hover: #85b3f5;
        --accent-soft: #223049;
        --accent-soft-hover: #2a3b5c;

        --success: #4cc38a;
        --success-hover: #63d09b;
        --success-soft: #1d3128;
        --success-border: #2e5741;

        --danger: #e56868;
        --danger-hover: #ef8a8a;
        --danger-soft: #3a2426;

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 24px 16px;
}

a {
    color: var(--accent);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

.container {
    max-width: 860px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
}

.hidden-date-picker {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Top header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    gap: 16px;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1;
    padding-bottom: 2px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.nav-arrow:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
    color: var(--text);
}

.current-day {
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 650;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.current-day:hover {
    background: var(--accent-soft);
}

.hours-summary {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    padding-left: 4px;
}

.week-hours,
.month-hours {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 550;
    text-decoration: none;
    transition: background 0.15s;
}

.week-hours:hover,
.month-hours:hover {
    background: var(--accent-soft-hover);
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.today-header-btn,
.export-btn {
    background: var(--surface);
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.today-header-btn:hover,
.export-btn:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
    color: var(--text);
}

/* User menu */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-btn {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid transparent;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.user-btn:hover {
    background: var(--accent-soft-hover);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 150px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.15s ease;
    margin-top: 6px;
    overflow: hidden;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: block;
    padding: 10px 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.15s, color 0.15s;
}

.user-dropdown a:hover {
    background: var(--surface-2);
    color: var(--text);
}

/* Weekly chart */
.week-chart {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--surface-2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.chart-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 4px;
}

/* Baseline the bars sit on. */
.day-label {
    border-top: 1px solid var(--border-strong);
    width: 100%;
    padding-top: 6px;
}

.day-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    text-decoration: none;
    border-radius: var(--radius-sm);
    padding: 4px;
    border: 1px solid transparent;
    transition: background 0.15s;
}

.day-bar:hover {
    background: var(--surface-3);
}

.day-bar.today {
    background: var(--success-soft);
}

.day-bar.selected {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.hours-label {
    font-size: 0.75em;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
    min-height: 18px;
    display: flex;
    align-items: center;
    font-variant-numeric: tabular-nums;
}

.bar {
    width: 100%;
    background: var(--accent);
    opacity: 0.75;
    border-radius: 3px 3px 0 0;
    min-height: 0;
    transition: opacity 0.15s;
}

.day-bar:hover .bar,
.day-bar.selected .bar {
    opacity: 1;
}

.day-bar.today .bar {
    background: var(--success);
}

.day-label {
    margin-top: 0;
    text-align: center;
    line-height: 1.2;
}

.day-name {
    font-size: 0.75em;
    font-weight: 600;
    color: var(--text-muted);
}

.day-date {
    font-size: 0.7em;
    color: var(--text-faint);
}

/* Add entry form */
.add-entry-form {
    margin-bottom: 20px;
}

.add-entry-form form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.task-input {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.task-input::placeholder {
    color: var(--text-faint);
}

.task-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Buttons */
.btn {
    padding: 11px 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: var(--success-hover);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: var(--danger-hover);
}

.btn-secondary {
    background: var(--surface-3);
    color: var(--text-muted);
}

.btn-secondary:hover {
    background: var(--border);
    color: var(--text);
}

/* Time entries */
.entries-container {
    min-height: 200px;
}

/* Entries render as one card with divider rows to reduce dead space. */
.entries {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Hide the card frame when the last entry was deleted (only whitespace left). */
.entries:not(:has(.entry-row)):not(:has(.empty-state)) {
    border: none;
}

.time-entry {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.time-entry:last-child {
    border-bottom: none;
}

.time-entry:hover {
    background: var(--surface-2);
}

.time-entry:has(.timer-display[data-running="true"]) {
    background: var(--success-soft);
    box-shadow: inset 3px 0 0 var(--success);
}

.time-entry:has(.timer-display[data-running="true"]):hover {
    background: var(--success-soft);
}

.entry-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    width: 100%;
}

.task-info {
    flex: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
    margin: -4px -8px;
    min-width: 0;
}

.task-info:hover {
    background: var(--surface-3);
}

.time-entry:has(.timer-display[data-running="true"]) .task-info:hover {
    background: rgba(0, 0, 0, 0.04);
}

.task-title {
    font-size: 1.02em;
    color: var(--text);
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.task-description {
    margin-top: 4px;
}

.description-line {
    font-size: 0.87em;
    color: var(--text-muted);
    line-height: 1.3;
}

.description-edit-input {
    font-family: inherit;
    font-size: 1em;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 8px;
    resize: none;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 0 3px var(--accent-soft);
    line-height: 1.4;
}

.description-edit-input:focus {
    outline: none;
}

.delete-btn {
    background: none;
    border: none;
    color: var(--text-faint);
    font-size: 16px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.delete-btn:hover {
    color: var(--danger);
    background: var(--danger-soft);
}

/* Billable toggle */
.billable-checkbox {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.billable-btn {
    width: 26px;
    height: 26px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-faint);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    padding: 0;
    line-height: 1;
}

.billable-btn:hover {
    border-color: var(--accent);
}

.billable-btn.billable-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.billable-btn.billable-active:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* Timer display */
.timer-display-container {
    position: relative;
    min-width: 110px;
}

.timer-display {
    font-family: var(--font-mono);
    font-size: 0.95em;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    min-width: 100px;
    text-align: center;
    padding: 10px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.timer-display[data-running="true"] {
    color: var(--success);
    background: var(--surface);
    border-color: var(--success-border);
    animation: pulse 2s infinite;
}

.timer-display.editable {
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.timer-display.editable:hover {
    background: var(--surface-3);
    border-color: var(--border-strong);
}

.time-edit-input {
    font-family: var(--font-mono);
    font-size: 0.95em;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    padding: 8px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    box-sizing: border-box;
}

.time-edit-input:focus {
    outline: none;
}

.time-edit-input::placeholder {
    color: var(--text-faint);
    font-weight: normal;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.start-stop-btn {
    min-width: 88px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    background: var(--surface);
}

.empty-state p {
    font-size: 1.05em;
}

/* Monthly view */
.month-calendar {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 16px;
    margin-bottom: 20px;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 8px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    padding: 8px 4px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.calendar-day {
    background: var(--surface);
    min-height: 96px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: background 0.15s;
}

.calendar-day.other-month {
    background: var(--surface-2);
}

.calendar-day.today {
    background: var(--success-soft);
    box-shadow: inset 0 0 0 2px var(--success);
}

.calendar-day.has-entries {
    cursor: pointer;
}

.calendar-day.has-entries:hover {
    background: var(--accent-soft);
}

.calendar-day.today:hover {
    background: var(--success-soft);
}

.day-number {
    font-weight: 600;
    font-size: 0.95em;
    color: var(--text);
    margin-bottom: 4px;
}

.calendar-day.other-month .day-number {
    color: var(--text-faint);
}

.day-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.day-hours {
    font-size: 0.75em;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 7px;
    border-radius: 999px;
    align-self: flex-start;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.day-task {
    font-size: 0.72em;
    color: var(--text-muted);
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.more-entries {
    font-size: 0.68em;
    color: var(--text-faint);
    font-style: italic;
    margin-top: auto;
}

.month-summary-section {
    background: var(--surface-2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 20px;
}

.month-summary-section h3 {
    color: var(--text);
    margin-bottom: 16px;
    font-size: 1.1em;
    text-align: center;
}

.summary-stats {
    display: flex;
    justify-content: space-around;
    gap: 12px;
}

.summary-stat {
    text-align: center;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    flex: 1;
}

.stat-value {
    font-size: 1.7em;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.8em;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Login page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.login-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem auto;
}

.login-logo svg {
    width: 100%;
    height: 100%;
}

.login-logo svg * {
    stroke: var(--accent);
}

.login-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.login-button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s;
    width: 100%;
}

.login-button:hover {
    background: var(--accent-hover);
}

/* Profile page */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.profile-info h1 {
    margin: 0;
    color: var(--text);
    font-size: 1.5rem;
}

.profile-info .email {
    color: var(--text-muted);
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
}

.profile-actions {
    display: flex;
    gap: 0.5rem;
}

.profile-actions .btn {
    text-decoration: none;
    font-size: 0.85rem;
    padding: 8px 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--surface-2);
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.stat-card .stat-value {
    font-size: 1.6rem;
    margin: 0;
}

.stat-card .stat-label {
    margin: 0.35rem 0 0 0;
}

.user-details {
    background: var(--surface-2);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.user-details h2 {
    margin: 0 0 0.75rem 0;
    color: var(--text);
    font-size: 1.1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-muted);
}

.detail-value {
    color: var(--text);
}

/* API keys on the profile page */
.token-section {
    margin-bottom: 1.5rem;
}

.section-hint {
    margin: 0 0 1rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.token-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.token-form input[type="text"],
.token-form select {
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
}

.token-form input[type="text"] {
    flex: 1;
    min-width: 220px;
}

.token-reveal {
    background: var(--success-soft);
    border: 1px solid var(--success-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.token-reveal p {
    margin: 0 0 8px 0;
}

.token-copy-row {
    display: flex;
    gap: 8px;
}

.token-value {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
}

.token-usage {
    color: var(--text-muted);
}

.token-error {
    color: var(--danger);
    font-size: 0.9rem;
}

.token-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.token-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.token-table th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.5rem 0.5rem 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.token-table td {
    padding: 0.6rem 0.5rem 0.6rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.token-table tr:last-child td {
    border-bottom: none;
}

.token-table form {
    margin: 0;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 700px) {
    body {
        padding: 12px 8px;
    }

    .container,
    .profile-container {
        padding: 16px;
    }

    .top-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .header-right {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hours-summary {
        flex-wrap: wrap;
    }

    .chart-container {
        gap: 2px;
    }

    .hours-label {
        font-size: 0.65em;
        min-height: 14px;
    }

    /* Two-line entry layout: checkbox + title + delete, then timer + start. */
    .entry-row {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "billable info delete"
            "timer timer start";
        gap: 10px;
        align-items: center;
    }

    .billable-checkbox {
        grid-area: billable;
    }

    .task-info {
        grid-area: info;
    }

    .delete-btn {
        grid-area: delete;
        justify-self: end;
    }

    .timer-display-container {
        grid-area: timer;
    }

    .timer-display {
        width: 100%;
    }

    .start-stop-btn {
        grid-area: start;
    }

    .day-hours {
        padding: 2px 5px;
    }

    .add-entry-form form {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-day {
        min-height: 72px;
        padding: 5px;
    }

    .day-task {
        display: none;
    }

    .summary-stats {
        flex-direction: column;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
