```css
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --bg: #f5f7ff;
    --surface: #ffffff;
    --text: #172554;
    --muted: #7b86a5;
    --primary: #6558e8;
    --primary-dark: #5144cf;
    --border: #e9ecf7;
    --mint: #e1f8ee;
    --blue: #e7efff;
    --shadow: 0 16px 45px rgba(38, 48, 104, 0.07);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 5%, #e9e9ff 0, transparent 25%),
        radial-gradient(circle at 95% 20%, #e1f8f1 0, transparent 22%),
        var(--bg);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.topbar {
    max-width: 1200px;
    margin: auto;
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 21px;
    font-weight: 700;
}

.brand-logo {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    color: white;
    border-radius: 13px;
    background: linear-gradient(135deg, #8175ff, #5144cf);
    box-shadow: 0 7px 18px #6558e84a;
}

.brand-ai {
    color: var(--primary);
}

.status,
.online-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #65728f;
    font-size: 12px;
    font-weight: 600;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #36c98c;
    box-shadow: 0 0 0 4px #36c98c20;
}

.layout {
    width: min(1120px, calc(100% - 40px));
    margin: 15px auto 50px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 25px;
}

.welcome {
    padding: 24px 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 17px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(35px, 4vw, 49px);
    line-height: 1.12;
    letter-spacing: -1.8px;
}

h1 span {
    color: var(--primary);
}

.welcome-text {
    max-width: 430px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.date-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 1px solid #ffffff;
    border-radius: 19px;
    background: linear-gradient(120deg, #ffffffd9, #f0efff);
    box-shadow: var(--shadow);
}

.date-icon {
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
    border-radius: 15px;
    color: var(--primary);
    background: #e8e5ff;
    font-size: 25px;
}

.date-label {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.date-card strong {
    font-size: 14px;
}

.date-card p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 16px;
    color: #455273;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #ffffffb8;
    transition: 0.2s;
}

.quick-link span {
    color: var(--primary);
}

.quick-link:hover,
.suggestion:hover {
    border-color: #c9c2ff;
    background: #f4f2ff;
    transform: translateY(-1px);
}

.assistant-card,
.tasks-card {
    min-width: 0;
    padding: 23px;
    border: 1px solid #ffffff;
    border-radius: 23px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 19px;
    border-bottom: 1px solid var(--border);
}

.assistant-avatar,
.message-avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: white;
    background: linear-gradient(135deg, #8175ff, #5144cf);
}

.assistant-avatar {
    width: 43px;
    height: 43px;
    border-radius: 15px;
    font-size: 22px;
}

.section-heading h2,
.tasks-header h2 {
    margin: 0 0 5px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
}

.section-heading p,
.tasks-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.online-label {
    margin-left: auto;
    font-size: 10px;
}

.online-label .status-dot {
    width: 6px;
    height: 6px;
}

.chat-window {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 290px;
    overflow-y: auto;
    padding: 20px 2px;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 95%;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 29px;
    height: 29px;
    border-radius: 10px;
    font-size: 14px;
}

.user-message .message-avatar {
    color: #5144cf;
    background: #e9e6ff;
}

.message-content {
    min-width: 0;
    padding: 12px 14px;
    border-radius: 5px 15px 15px 15px;
    background: #f4f5fc;
}

.user-message .message-content {
    border-radius: 15px 5px 15px 15px;
    background: #eeebff;
}

.message-name {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
}

.message-content p {
    margin: 0;
    color: #4b5878;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-bottom: 16px;
}

.suggestion {
    padding: 8px 10px;
    color: #6558c7;
    font-size: 10px;
    border: 1px solid #e5e1ff;
    border-radius: 20px;
    background: #faf9ff;
    transition: 0.2s;
}

.chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border: 1px solid #e5e7f3;
    border-radius: 15px;
    background: #fbfcff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-form:focus-within {
    border-color: #bcb3ff;
    box-shadow: 0 0 0 3px #6558e810;
}

.chat-form input {
    width: 100%;
    min-width: 0;
    padding: 10px 8px;
    color: var(--text);
    outline: none;
    border: none;
    background: transparent;
    font-size: 12px;
}

.chat-form input::placeholder {
    color: #a0a8bd;
}

.voice-button,
.send-button {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 39px;
    height: 39px;
    border: none;
    border-radius: 12px;
    transition: 0.2s;
}

.voice-button {
    color: var(--primary);
    border: 1px solid #e3dfff;
    background: #f1efff;
}

.voice-button:hover {
    color: white;
    background: var(--primary);
}

.voice-button.listening {
    color: white;
    background: #e54869;
    border-color: #e54869;
    animation: mic-pulse 1.2s infinite;
}

.voice-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.voice-button svg,
.send-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.send-button {
    color: white;
    background: var(--primary);
}

.send-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.input-hint {
    margin: 10px 2px 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.tasks-card {
    grid-column: 1 / -1;
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.tasks-header .eyebrow {
    margin-bottom: 8px;
}

.tasks-subtitle {
    margin-top: 7px;
}

.task-count-badge {
    padding: 9px 12px;
    color: var(--primary);
    border-radius: 20px;
    background: #f0eeff;
    font-size: 11px;
    white-space: nowrap;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    margin-bottom: 20px;
}

.stat-card {
    display: grid;
    grid-template-columns: 35px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 3px 10px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 15px;
}

.stat-icon {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 11px;
    font-size: 18px;
}

.total-icon {
    color: #6558e8;
    background: #eeebff;
}

.pending-icon {
    color: #d68b27;
    background: #fff3df;
}

.completed-icon {
    color: #209c6c;
    background: #e1f8ee;
}

.stat-label {
    color: var(--muted);
    font-size: 10px;
}

.stat-card strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 21px;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.empty-state {
    padding: 30px 10px;
    text-align: center;
    border: 1px dashed #dfe3f1;
    border-radius: 15px;
}

.empty-state > span {
    display: inline-grid;
    place-items: center;
    width: 39px;
    height: 39px;
    margin-bottom: 10px;
    color: var(--primary);
    border-radius: 13px;
    background: #f0eeff;
    font-size: 20px;
}

.empty-state p {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
}

.empty-state small {
    color: var(--muted);
    font-size: 11px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
}

.task-item input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
    cursor: pointer;
}

.task-details {
    flex: 1;
    min-width: 0;
}

.task-title {
    margin: 0 0 5px;
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.task-meta {
    color: var(--muted);
    font-size: 10px;
}

.task-item.completed .task-title {
    color: #929ab0;
    text-decoration: line-through;
}

.priority {
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
}

.priority.high {
    color: #d34458;
    background: #fff0f2;
}

.priority.medium {
    color: #b77b1b;
    background: #fff4df;
}

.priority.low {
    color: #27875f;
    background: #e5f8ef;
}

.delete-task {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #a3abc0;
    border: none;
    border-radius: 9px;
    background: #f7f8fc;
    font-size: 16px;
}

.delete-task:hover {
    color: #d34458;
    background: #fff0f2;
}

.feature-strip {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.feature-card {
    padding: 20px;
    border: 1px solid #ffffff;
    border-radius: 17px;
    background: #ffffffb8;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 13px;
    color: var(--primary);
    border-radius: 11px;
    background: #eeebff;
}

.feature-card h3 {
    margin-bottom: 7px;
    font-size: 13px;
}

.feature-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

footer {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 0 20px 25px;
    color: var(--muted);
    font-size: 11px;
}

footer strong {
    color: var(--text);
}

@keyframes mic-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 #e5486938;
    }
    50% {
        box-shadow: 0 0 0 7px #e5486900;
    }
}

@media (max-width: 760px) {
    .topbar {
        padding: 17px 20px;
    }

    .layout {
        grid-template-columns: 1fr;
        width: min(560px, calc(100% - 28px));
        margin-top: 5px;
        gap: 18px;
    }

    .welcome {
        padding: 15px 3px 5px;
        gap: 18px;
    }

    h1 {
        font-size: 39px;
    }

    .quick-links {
        display: grid;
        grid-template-columns: 1fr;
    }

    .assistant-card,
    .tasks-card {
        padding: 17px;
        border-radius: 19px;
    }

    .chat-window {
        height: 280px;
    }

    .tasks-card,
    .feature-strip {
        grid-column: auto;
    }

    .stats {
        gap: 7px;
    }

    .stat-card {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 12px 9px;
    }

    .stat-icon {
        grid-row: auto;
    }

    .feature-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 390px) {
    .status {
        font-size: 10px;
    }

    .brand {
        font-size: 18px;
    }

    .online-label {
        display: none;
    }

    .section-heading h2 {
        font-size: 15px;
    }

    .suggestion {
        font-size: 9px;
    }

    .priority {
        font-size: 8px;
    }
}
