:root {
    --bg: #bfccb9;
    --shell: #f7f7f4;
    --sidebar: #f1f2ef;
    --text: #242827;
    --muted: #777f79;
    --line: #e5e6e0;
    --shadow: 0 24px 55px rgb(42 51 45 / 22%);
    --yellow: #fff3b3;
    --blue: #cfeef3;
    --pink: #ffd7d9;
    --orange: #ffd0a0;
    --gray: #e8e8e6;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at 50% 20%, #d5ddd0 0, var(--bg) 46%, #b7c3b0 100%);
    color: var(--text);
}

button,
input,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.shell {
    width: min(1040px, calc(100vw - 32px));
    min-height: min(650px, calc(100vh - 72px));
    margin: 36px auto;
    display: grid;
    grid-template-columns: 250px 1fr;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 72%);
    border-radius: 18px;
    background: var(--shell);
    box-shadow: var(--shadow);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 26px 18px;
    background: var(--sidebar);
    border-right: 1px solid var(--line);
}

.sidebar__top,
.page-header,
.note__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sidebar h2,
.page-header h1,
.panel h2,
.task-composer h2,
.note h2 {
    margin: 0;
}

.sidebar h2 {
    font-size: 1.2rem;
}

.menu-icon {
    color: var(--muted);
    font-weight: 700;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fafafa;
    color: var(--muted);
}

.search-box input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
}

.nav-section,
.sidebar__bottom {
    display: grid;
    gap: 8px;
}

.nav-section p {
    margin: 0 0 4px;
    color: #5d665f;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 0;
}

.nav-section a,
.sidebar__bottom a {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 6px;
    color: #4b514d;
    font-size: .92rem;
}

.nav-section a.is-active,
.sidebar__bottom a.is-active,
.nav-section a:hover,
.sidebar__bottom a:hover {
    background: #e9eae6;
}

.nav-section strong {
    font-size: .78rem;
}

.sidebar__bottom {
    margin-top: auto;
}

.swatch {
    width: 11px;
    height: 11px;
    border-radius: 3px;
}

.swatch--yellow { background: var(--yellow); }
.swatch--blue { background: var(--blue); }
.swatch--orange { background: var(--orange); }

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.tag {
    padding: 7px 10px;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 700;
}

.tag--blue { background: var(--blue); }
.tag--pink { background: var(--pink); }

.workspace {
    min-width: 0;
    padding: 28px 32px 36px;
}

.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: clamp(2.1rem, 5vw, 3.2rem);
    line-height: 1;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-pill {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #4f5751;
    font-weight: 700;
}

.note-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.note {
    min-height: 205px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 7px;
    box-shadow: 0 12px 24px rgb(54 56 52 / 8%);
}

.note--yellow { background: var(--yellow); }
.note--blue { background: var(--blue); }
.note--pink { background: var(--pink); }
.note--orange { background: var(--orange); }
.note--gray { background: var(--gray); }

.note h2 {
    font-size: 1.14rem;
    line-height: 1.25;
}

.note p {
    margin: 12px 0 18px;
    color: #3f4642;
    line-height: 1.45;
}

.note time {
    margin-top: auto;
    color: #626a64;
    font-size: .78rem;
    font-weight: 700;
}

.icon-button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 42%);
    color: #383d3a;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
}

.note--add {
    align-items: center;
    justify-content: center;
    background: var(--gray);
}

.note--add button {
    width: 76px;
    height: 76px;
    border: 0;
    background: transparent;
    color: #252a28;
    cursor: pointer;
    font-size: 4rem;
    line-height: 1;
}

.task-composer,
.panel {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.composer-grid,
.profile-grid {
    display: grid;
    gap: 16px;
}

.composer-grid {
    grid-template-columns: 1fr 1.3fr 150px auto;
    align-items: end;
    margin-top: 14px;
}

.form-stack {
    display: grid;
    gap: 14px;
}

label span {
    display: block;
    margin-bottom: 7px;
    color: #5c655f;
    font-size: .85rem;
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #d9ddd6;
    border-radius: 7px;
    padding: 11px 12px;
    background: #fbfbfa;
    color: var(--text);
    outline: 0;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #9aa994;
    box-shadow: 0 0 0 3px rgb(154 169 148 / 18%);
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    border: 0;
    border-radius: 7px;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 800;
}

.primary-button {
    background: #202724;
    color: #fff;
}

.secondary-button {
    background: #dfe7dc;
    color: #202724;
}

.alert {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 7px;
    font-weight: 700;
}

.alert p {
    margin: 0;
}

.alert p + p {
    margin-top: 6px;
}

.alert--success {
    background: #dff0dc;
    color: #255d32;
}

.alert--error {
    background: #ffe1df;
    color: #9f2f24;
}

.profile-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.panel {
    margin-top: 0;
}

.panel h2,
.task-composer h2 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(430px, 100%);
    padding: 34px;
    border: 1px solid rgb(255 255 255 / 74%);
    border-radius: 18px;
    background: #f7f7f4;
    box-shadow: var(--shadow);
}

.login-card h1 {
    margin: 0;
    font-size: 2.6rem;
}

.login-copy {
    margin: 12px 0 22px;
    color: #59625c;
    line-height: 1.55;
}

@media (max-width: 860px) {
    .shell {
        width: min(620px, calc(100vw - 18px));
        min-height: auto;
        grid-template-columns: 1fr;
        margin: 9px auto;
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .sidebar__bottom {
        margin-top: 0;
    }

    .workspace {
        padding: 24px 18px 28px;
    }

    .note-grid,
    .profile-grid,
    .composer-grid {
        grid-template-columns: 1fr;
    }

    .note {
        min-height: 170px;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}
