:root {
    color-scheme: light dark;
    --shell-card: oklch(1 0 0);
    --shell-border: oklch(0.92 0.01 95);
    --shell-text: oklch(0.2 0 0);
    --shell-shadow:
        0 4px 6px -1px oklch(0 0 0 / 0.1), 0 2px 4px -2px oklch(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    color: var(--shell-text);
}

#app {
    height: 100%;
    max-width: 60rem;
    margin: 0 auto;
}

.shell {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.shell-card {
    border: 1px solid var(--shell-border);
    border-radius: 0.25rem;
    background: var(--shell-card);
    box-shadow: var(--shell-shadow);
}

.shell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-top: 0;
}

.shell-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.shell-logo {
    width: 5rem;
    height: 2.25rem;
}

.shell-main {
    display: flex;
    gap: 1rem;
    min-height: 0;
    flex: 1;
    padding: 1rem 0;
}

.shell-editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-height: 0;
}

.shell-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.5rem;
    border-bottom: 1px solid var(--shell-border);
}

.shell-editor-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    overflow-y: auto;
}

.shell-sidebar {
    width: 16rem;
    display: flex;
    flex-direction: column;
}

.shell-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-bottom: 1px solid var(--shell-border);
}

.shell-search-input {
    height: 2.25rem;
    flex: 1;
    border-radius: 10px;
    border: 1px solid var(--shell-border);
    background: oklch(0.98 0 0);
}

.shell-btn,
.shell-btn-xl {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid var(--shell-border);
}

.shell-btn-xl {
    width: 2.25rem;
    height: 2.25rem;
}

.shell-notes {
    display: flex;
    flex-direction: column;
}

.shell-note {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1.75rem 0.5rem 1.25rem;
}

.sk {
    border-radius: 0.5rem;
    background: linear-gradient(90deg, oklch(0.96 0.01 95) 0%, oklch(0.93 0.01 95) 50%, oklch(0.96 0.01 95) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
}

.sk.accent {
    background: linear-gradient(
        90deg,
        oklch(0.952 0.199 91.936) 0%,
        oklch(0.852 0.199 91.936) 50%,
        oklch(0.952 0.199 91.936) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
}

.sk-title {
    height: 1.875rem;
    width: 40%;
    margin-bottom: 1.5rem;
}

.sk-line {
    height: 1rem;
    width: 100%;
}

.short {
    width: 60%;
}

.tiny {
    width: 40%;
}

.empty {
    width: 0;
}

.mobile {
    display: none;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 768px) {
    .mobile {
        display: block;
    }

    .shell-main {
        flex-direction: column;
    }

    .shell-sidebar {
        display: none;
    }

    .shell-controls {
        position: fixed;
        width: 100%;
        bottom: 0;
        border-top: 1px solid var(--shell-border);
        background: var(--shell-card);
        z-index: 10;
    }

    .shell-controls .shell-btn {
        width: 1.5rem;
        height: 1.5rem;
    }

    .shell-card {
        border: 0;
        border-radius: 0;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --shell-card: oklch(0.2 0 0);
        --shell-border: oklch(1 0 0 / 10%);
        --shell-text: oklch(0.97 0 0);
        --shell-shadow: 0 8px 20px oklch(0 0 0 / 0.35);
        --accent: oklch(0.795 0.184 86.047);
    }

    .shell-btn,
    .shell-btn-xl,
    .shell-search-input {
        background: oklch(0.23 0 0);
    }

    .sk {
        background: linear-gradient(90deg, oklch(0.22 0 0) 0%, oklch(0.27 0 0) 50%, oklch(0.22 0 0) 100%);
    }

    .sk.accent {
    background: linear-gradient(
        90deg,
        var(--accent) 0%,
        oklch(0.695 0.184 86.047) 50%,
        var(--accent) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
}
}
