:root {
    --page-bg: #c8d4c2;
    --shell: #f7f7f5;
    --sidebar: #f1f1ef;
    --text: #242728;
    --muted: #7e8581;
    --line: #e5e5e0;
    --shadow: 0 22px 55px rgba(57, 73, 54, 0.18);
    --yellow: #fff3a8;
    --blue: #cae8e9;
    --pink: #ffd3d3;
    --orange: #ffd2a1;
    --gray: #e9e9e7;
}

* {
    box-sizing: border-box;
}

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.login-card {
    width: min(430px, 100%);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 34px;
    box-shadow: var(--shadow);
}

.brand-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 8px;
    background: var(--yellow);
    font-size: 42px;
    font-weight: 300;
}

.eyebrow,
.nav-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.login-card h1,
.content h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 52px);
    line-height: 1;
    font-weight: 800;
}

.login-copy,
.content-header p,
.settings-panel p {
    color: var(--muted);
}

.stack-form,
.panel-form {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    color: #505551;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    padding: 13px 14px;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: #97ada1;
    box-shadow: 0 0 0 4px rgba(151, 173, 161, 0.18);
}

.primary-button,
.secondary-button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    font-weight: 800;
}

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

.secondary-button {
    background: #ededeb;
    color: var(--text);
}

.app-shell {
    width: min(1400px, calc(100% - 48px));
    min-height: min(820px, calc(100vh - 80px));
    margin: 40px auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    background: var(--shell);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
    padding: 34px 24px 28px;
    background: rgba(241, 241, 239, 0.86);
    border-right: 1px solid var(--line);
}

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

.menu-title strong {
    font-size: 25px;
}

.hamburger {
    color: var(--muted);
    font-size: 22px;
    transform: rotate(90deg);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.search-box input {
    border: 0;
    background: transparent;
    padding-left: 0;
    box-shadow: none;
}

.nav-label {
    margin: 24px 0 10px;
}

.nav-item {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #515653;
    text-decoration: none;
    font-weight: 700;
}

.nav-item.active {
    background: #e9e9e6;
    color: #252827;
}

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

.nav-item.logout {
    width: 100%;
    text-align: left;
}

.muted {
    color: #727873;
}

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

.yellow-dot {
    background: #e8c878;
}

.blue-dot {
    background: #c8ddd9;
}

.orange-dot {
    background: #e8b66e;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 9px 13px;
    border-radius: 5px;
    background: #e8e8e4;
    color: #545955;
    font-size: 13px;
    font-weight: 800;
}

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

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

.content {
    padding: 34px 42px 46px;
}

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

.content-header p {
    margin: 10px 0 0;
}

.alert {
    margin: 0 0 18px;
    padding: 13px 16px;
    border-radius: 8px;
    font-weight: 700;
}

.alert.success {
    background: #dff2df;
    color: #285d30;
}

.alert.error {
    background: #ffe2df;
    color: #8d2e29;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.sticky-note,
.add-note {
    min-height: 250px;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(50, 50, 45, 0.06);
}

.sticky-note {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 24px 20px;
}

.sticky-note.yellow {
    background: var(--yellow);
}

.sticky-note.blue {
    background: var(--blue);
}

.sticky-note.pink {
    background: var(--pink);
}

.sticky-note.orange {
    background: var(--orange);
}

.sticky-note.gray {
    background: var(--gray);
}

.sticky-note h2 {
    margin: 0 26px 14px 0;
    font-size: 22px;
}

.sticky-note p {
    margin: 0;
    color: #44504c;
    line-height: 1.55;
    font-weight: 600;
}

.sticky-note time {
    margin-top: auto;
    padding-top: 20px;
    color: #6f766f;
    font-size: 12px;
    font-weight: 800;
}

.note-actions {
    position: absolute;
    top: 12px;
    right: 12px;
}

.note-actions button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    color: #3a3d3b;
    font-size: 20px;
    line-height: 1;
}

.add-note {
    display: grid;
    place-items: center;
    background: var(--gray);
    color: #242728;
    font-size: 74px;
    font-weight: 200;
}

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

.panel-form,
.settings-panel {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.55);
}

.panel-form h2,
.settings-panel h2 {
    margin: 0 0 8px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(42, 49, 44, 0.28);
}

.show-modal .modal-backdrop {
    display: grid;
}

.task-modal {
    width: min(520px, 100%);
    display: grid;
    gap: 16px;
    padding: 26px;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
}

.task-modal h2 {
    margin: 0;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 820px) {
    .app-shell {
        width: min(100% - 24px, 560px);
        min-height: auto;
        grid-template-columns: 1fr;
        margin: 12px auto;
    }

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

    .sidebar-bottom {
        margin-top: 10px;
    }

    .content {
        padding: 28px 20px 30px;
    }

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

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

    .sticky-note,
    .add-note {
        min-height: 220px;
    }
}

@media (max-width: 520px) {
    .login-card {
        padding: 24px;
    }

    .login-card h1,
    .content h1 {
        font-size: 34px;
    }

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

    .modal-actions {
        flex-direction: column;
    }
}
