:root {
    color-scheme: light;
    --page: #c8d5c3;
    --panel: #f7f7f5;
    --sidebar: #f1f2ef;
    --line: #e4e4df;
    --text: #252a27;
    --muted: #727a72;
    --shadow: 0 24px 70px rgb(48 61 44 / 18%);
    --yellow: #fff4ae;
    --blue: #c9edf3;
    --pink: #ffd0d2;
    --orange: #ffd1a1;
    --gray: #e9e9e7;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at top left, #dce6d7, var(--page));
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.app-shell {
    width: min(1040px, calc(100% - 32px));
    min-height: min(760px, calc(100vh - 56px));
    margin: 28px auto;
    display: grid;
    grid-template-columns: 250px 1fr;
    overflow: hidden;
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

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

.sidebar-header,
.content-header,
.nav-item,
.sticky-note footer,
.form-actions {
    display: flex;
    align-items: center;
}

.sidebar-header,
.content-header {
    justify-content: space-between;
    gap: 16px;
}

.sidebar-header h2,
.content-header h1,
.sticky-note h3,
.profile-card h2 {
    margin: 0;
}

.sidebar-header h2 {
    font-size: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e7e7e3;
    border-radius: 6px;
    background: #f8f8f6;
    color: #8d948a;
}

.search-box input {
    min-width: 0;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--muted);
}

.nav-group,
.tag-group,
.sidebar-footer {
    display: grid;
    gap: 8px;
}

.nav-group p,
.tag-group p {
    margin: 0 0 4px;
    color: #5f675e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
}

.nav-item {
    min-height: 34px;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #4c544c;
    font-size: 14px;
    font-weight: 650;
}

.nav-item strong {
    margin-left: auto;
    color: #5f675e;
    font-size: 12px;
}

.nav-item.active {
    background: #e7e8e4;
    color: var(--text);
}

.muted-row {
    color: #6f776f;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.dot-yellow {
    background: #edcf78;
}

.dot-blue {
    background: #bbd8d8;
}

.dot-orange {
    background: #e5b56e;
}

.tag-group {
    grid-template-columns: repeat(3, max-content);
}

.tag-group p {
    grid-column: 1 / -1;
}

.tag-group span {
    padding: 8px 10px;
    border-radius: 5px;
    background: #e8e9e5;
    color: #4e564f;
    font-size: 12px;
    font-weight: 750;
}

.tag-group span:nth-child(2) {
    background: var(--blue);
}

.tag-group span:nth-child(3) {
    background: var(--pink);
}

.sidebar-footer {
    margin-top: auto;
}

.content-panel {
    padding: 24px 30px 34px;
    overflow: auto;
}

.content-header {
    margin-bottom: 30px;
}

.content-header h1 {
    font-size: clamp(34px, 5vw, 46px);
    line-height: 1;
}

.content-header p,
.muted {
    margin: 8px 0 0;
    color: var(--muted);
}

.sticky-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.sticky-note,
.add-note,
.task-form-panel,
.profile-card,
.login-card {
    border-radius: 8px;
    box-shadow: 0 10px 25px rgb(54 63 50 / 8%);
}

.sticky-note {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.sticky-note h3 {
    font-size: 21px;
    line-height: 1.2;
}

.sticky-note p {
    margin: 12px 0 0;
    color: #384038;
    font-size: 14px;
    line-height: 1.45;
}

.sticky-note footer {
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    color: #667066;
    font-size: 12px;
}

.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);
}

.add-note {
    min-height: 230px;
    display: grid;
    place-items: center;
    background: var(--gray);
    color: #222723;
    font-size: 72px;
    line-height: 1;
}

.icon-button {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: rgb(255 255 255 / 42%);
    color: #343a34;
    cursor: pointer;
    font-size: 22px;
}

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

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

.secondary-button {
    background: #e5e7e1;
    color: #273027;
}

.ghost-button {
    background: transparent;
    color: #4f574f;
}

.task-form-panel,
.profile-card {
    margin-bottom: 22px;
    padding: 20px;
    border: 1px solid var(--line);
    background: #fff;
}

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

label {
    display: grid;
    gap: 7px;
    color: #3d453e;
    font-size: 13px;
    font-weight: 800;
}

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

textarea {
    resize: vertical;
}

.form-actions {
    justify-content: flex-start;
    gap: 10px;
}

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

.alert {
    margin-bottom: 18px;
    border-radius: 6px;
    padding: 12px 14px;
    font-weight: 750;
}

.alert-error {
    background: #ffe7e7;
    color: #9f2424;
}

.alert-success {
    background: #e9f6e6;
    color: #286b28;
}

.login-body {
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-shell {
    width: min(430px, 100%);
}

.login-card {
    display: grid;
    gap: 22px;
    padding: 30px;
    background: #fbfbf9;
}

.login-card h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1;
}

.eyebrow {
    margin: 0 0 8px;
    color: #697166;
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
}

.demo-users {
    display: grid;
    gap: 5px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    color: #5f675f;
    font-size: 13px;
}

@media (max-width: 780px) {
    .app-shell {
        width: min(100% - 20px, 560px);
        grid-template-columns: 1fr;
        margin: 10px auto;
    }

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

    .sidebar-footer,
    .nav-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-group p,
    .tag-group p {
        grid-column: 1 / -1;
    }

    .content-panel {
        padding: 22px 18px 28px;
    }

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

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