:root {
    --bg: #c6d0bf;
    --shell: #f5f5f3;
    --sidebar: #f0f0ee;
    --text: #222523;
    --muted: #777d76;
    --line: #e0e0dc;
    --shadow: 0 22px 45px rgba(45, 55, 43, 0.18);
    --radius: 8px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 50% 0%, #d6ddcf 0, var(--bg) 55%, #b5c0af 100%);
    color: var(--text);
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

.app-shell {
    width: min(1040px, calc(100vw - 32px));
    min-height: min(650px, calc(100vh - 56px));
    margin: 28px auto;
    display: grid;
    grid-template-columns: 255px 1fr;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    background: var(--shell);
    box-shadow: var(--shadow);
}

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

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

.menu-title h2,
.page-header h1,
.sticky-note h2,
.panel h2,
.login-card h1 {
    margin: 0;
    letter-spacing: 0;
}

.menu-title h2 {
    font-size: 22px;
}

.search-box {
    height: 40px;
    margin: 20px 0 28px;
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid #e4e4df;
    border-radius: 7px;
    background: #f9f9f7;
    color: var(--muted);
}

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

.nav-section,
.tags,
.sidebar-bottom {
    display: grid;
    gap: 10px;
}

.nav-section {
    margin-bottom: 28px;
}

.nav-section p,
.tags p,
.eyebrow {
    margin: 0;
    color: #747971;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.nav-section a,
.nav-section span,
.sidebar-bottom a,
.sidebar-bottom button {
    min-height: 34px;
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 7px;
    color: #383d38;
    font-size: 14px;
}

.nav-section a.active {
    background: #e6e6e2;
}

.lists b {
    justify-self: end;
    color: var(--muted);
}

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

.dot.yellow,
.tag.yellow,
.swatch.yellow,
.sticky-note.yellow {
    background: #fff2aa;
}

.dot.blue,
.tag.blue,
.swatch.blue,
.sticky-note.blue {
    background: #ccebf0;
}

.dot.orange,
.tag.orange,
.swatch.orange,
.sticky-note.orange {
    background: #ffd1a3;
}

.tag.pink,
.swatch.pink,
.sticky-note.pink {
    background: #fbd0d0;
}

.swatch.gray,
.sticky-note.gray {
    background: #e5e5e3;
}

.tags {
    grid-template-columns: repeat(3, max-content);
    align-items: center;
}

.tags p {
    grid-column: 1 / -1;
}

.tag {
    padding: 8px 11px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.tag.neutral {
    background: #e8e8e4;
}

.sidebar-bottom button {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.content {
    min-width: 0;
    padding: 30px 36px 42px;
}

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

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

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

.sticky-note {
    min-height: 228px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: 0 10px 20px rgba(37, 42, 36, 0.06);
}

.sticky-note h2 {
    margin-bottom: 12px;
    font-size: 20px;
}

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

.sticky-note time {
    color: #6f746d;
    font-size: 12px;
    font-weight: 700;
}

.icon-button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.add-note {
    background: #e6e6e4;
}

.add-task-form {
    display: grid;
    gap: 12px;
}

.add-symbol {
    width: 54px;
    height: 54px;
    margin: 0 auto 4px;
    border: 0;
    background: transparent;
    cursor: default;
    color: #1f231f;
    font-size: 56px;
    line-height: 1;
}

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

label,
fieldset {
    display: grid;
    gap: 7px;
    margin: 0;
    border: 0;
    padding: 0;
    color: #51564f;
    font-size: 13px;
    font-weight: 800;
}

legend {
    padding: 0;
    color: #51564f;
    font-size: 13px;
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    min-width: 0;
    border: 1px solid #d9d9d4;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    outline: 0;
}

input,
select {
    height: 42px;
    padding: 0 12px;
}

textarea {
    resize: vertical;
    padding: 11px 12px;
}

.color-picker {
    grid-template-columns: repeat(5, 30px);
    align-items: center;
}

.color-picker legend {
    grid-column: 1 / -1;
}

.swatch {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
}

.swatch input,
.swatch span {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.swatch:has(input:checked) {
    border-color: #252923;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.primary-button {
    border: 1px solid #242824;
    background: #242824;
    color: #ffffff;
}

.ghost-button {
    border: 1px solid #d3d4cf;
    background: rgba(255, 255, 255, 0.5);
    color: #2f342f;
}

.small {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
}

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

.panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.54);
}

.panel h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.flash {
    margin: 0;
    padding: 12px 14px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 800;
}

.flash.error {
    background: #fbd0d0;
    color: #782626;
}

.flash.success {
    background: #d8edcf;
    color: #2f6127;
}

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

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

.login-copy {
    margin-bottom: 24px;
}

.login-card h1 {
    margin-top: 6px;
    font-size: 44px;
}

.login-copy p:not(.eyebrow) {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.demo-users {
    margin-top: 18px;
    display: grid;
    gap: 5px;
    color: #62675f;
    font-size: 13px;
}

@media (max-width: 820px) {
    .app-shell {
        width: min(100vw - 20px, 620px);
        min-height: 0;
        grid-template-columns: 1fr;
        margin: 10px auto;
        overflow: visible;
    }

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

    .sidebar-bottom,
    .nav-section {
        margin-bottom: 0;
    }

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

    .page-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 24px;
    }

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

@media (max-width: 520px) {
    .board-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 26px;
    }

    .login-card h1 {
        font-size: 36px;
    }
}
