:root {
    --bg: #f4f1ea;
    --card: #fff6c8;
    --card-trash: #ececec;
    --ink: #2a2a26;
    --muted: #7a766b;
    --accent: #d98c2b;
    --border: #e2ddc9;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
}

.login-screen {
    max-width: 420px;
    margin: 15vh auto;
    text-align: center;
    padding: 32px;
}

.login-screen p {
    color: var(--muted);
    margin-bottom: 24px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-link {
    background: none;
    color: var(--muted);
    padding: 6px 10px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.topbar h1 {
    font-size: 20px;
    margin: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.owner {
    color: var(--muted);
    font-size: 14px;
}

.search-row {
    padding: 16px 24px 0;
}

#search {
    width: 100%;
    max-width: 480px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
}

.columns {
    display: flex;
    gap: 24px;
    padding: 16px 24px 40px;
    align-items: flex-start;
}

.column {
    flex: 1;
    min-width: 0;
}

.column h2 {
    font-size: 15px;
    color: var(--muted);
    font-weight: 600;
}

.hint {
    font-weight: 400;
    font-size: 12px;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 120px;
    padding: 8px;
    border-radius: 10px;
    border: 2px dashed transparent;
}

.card-list.drag-over {
    border-color: var(--accent);
    background: rgba(217, 140, 43, 0.08);
}

.card-list.empty::before {
    content: "Пусто";
    color: var(--muted);
    font-size: 14px;
    padding: 8px;
}

.note-card {
    background: var(--card);
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    cursor: grab;
}

.note-card.in-trash {
    background: var(--card-trash);
}

.note-card.dragging {
    opacity: 0.4;
}

.note-text {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0 0 8px;
}

.note-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
}

.note-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--muted);
}

.note-actions button:hover {
    color: var(--ink);
}

@media (max-width: 720px) {
    .columns {
        flex-direction: column;
    }
}
