:root {
    --text: #6b6375;
    --text-h: #08060d;
    --bg: #fff;
    --border: #c4c2c8;
    --code-bg: #f4f3ec;
    --accent: #7554fa;
    --accent-bg: #aa3bff1a;
    --accent-border: #aa3bff80;
    --social-bg: #f4f3ec80;
    --shadow: #0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;
    --sans: system-ui, "Segoe UI", Roboto, sans-serif;
    --heading: system-ui, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, Consolas, monospace;
    font: 18px/145% var(--sans);
    letter-spacing: .18px;
    --lightningcss-light: initial;
    --lightningcss-dark: ;
    color-scheme: light dark;
    color: var(--text);
    background: var(--bg);
    font-synthesis: none;
    text-rendering: optimizelegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

@media (prefers-color-scheme:dark) {
     :root {
        --lightningcss-light: ;
        --lightningcss-dark: initial
    }
}

@media (width<=1024px) {
     :root {
        font-size: 16px
    }
}

@media (prefers-color-scheme:dark) {
     :root {
        --text: #9ca3af;
        --text-h: #f3f4f6;
        --bg: #16171d;
        --border: #2e303a;
        --code-bg: #1f2028;
        --accent: #c084fc;
        --accent-bg: #c084fc26;
        --accent-border: #c084fc80;
        --social-bg: #2f303a80;
        --shadow: #0006 0 10px 15px -3px, #00000040 0 4px 6px -2px
    }
    #social .button-icon {
        filter: invert()brightness(2)
    }
}

body {
    margin: 0;
    overflow-y: scroll
}

#root {
    text-align: center;
    border-inline: 1px solid var(--border);
    box-sizing: border-box;
    flex-direction: column;
    width: 700px;
    max-width: 100%;
    min-height: 100svh;
    margin: 0 auto;
    display: flex
}

main {
    flex-direction: column;
    gap: .75rem;
    padding: 1rem;
    display: flex
}

h1,
h2 {
    font-family: var(--heading);
    color: var(--text-h);
    font-weight: 500
}

h1 {
    letter-spacing: -1.68px;
    margin: 32px 0;
    font-size: 56px
}

@media (width<=1024px) {
    h1 {
        margin: 20px 0;
        font-size: 36px
    }
}

h2 {
    letter-spacing: -.24px;
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 118%
}

@media (width<=1024px) {
    h2 {
        font-size: 20px
    }
}

form {
    text-align: left;
    flex-direction: column;
    gap: .75rem;
    display: flex
}

button {
    color: #1f2937;
    font: inherit;
    cursor: pointer;
    background: #a28aff;
    border: none;
    border-radius: 8px;
    padding: .625rem 1.25rem;
    font-weight: 600
}

.edit-header {
    justify-content: space-between;
    align-items: center;
    display: flex
}

.delete-btn {
    color: #fff;
    cursor: pointer;
    background-color: #e53e3e;
    border: none;
    border-radius: 8px;
    padding: .2rem .4rem
}

.create-btn {
    background-color: #68d391;
    border-radius: 8px;
    margin-left: auto;
    padding: .25rem .5rem;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.8;
    text-decoration: none;
    display: block;
    color: #000 !important
}

input[type=text] {
    border: 1px solid var(--border);
    width: 100%;
    font: inherit;
    color: var(--text-h);
    background: var(--bg);
    box-sizing: border-box;
    resize: vertical;
    border-radius: 8px;
    max-width: 100%;
    padding: .5rem .75rem
}

textarea {
    border: 1px solid var(--border);
    width: 100%;
    min-height: 120px;
    font: inherit;
    color: var(--text-h);
    background: var(--bg);
    box-sizing: border-box;
    resize: vertical;
    border-radius: 8px;
    max-width: 100%;
    padding: .5rem .75rem
}

input[type=file]::file-selector-button {
    color: var(--text-h);
    border: 1px solid var(--border);
    font: inherit;
    cursor: pointer;
    background: 0 0;
    border-radius: 6px;
    margin-right: .5rem;
    padding: .3rem .75rem
}

label {
    color: var(--text-h);
    margin-top: .5rem;
    font-weight: 600
}

p {
    margin: 0
}

.header a:first-child {
    color: var(--text-h);
    font-weight: 600;
    text-decoration: none
}

code,
.counter {
    font-family: var(--mono);
    color: var(--text-h);
    border-radius: 4px;
    display: inline-flex
}

code {
    background: var(--code-bg);
    padding: 4px 8px;
    font-size: 15px;
    line-height: 135%
}

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

.header span {
    color: var(--text-h);
    font-weight: 600
}

.header a {
    color: var(--accent);
    font-size: 1.5rem;
    line-height: 1;
    text-decoration: none
}

.note-card {
    border: 1px solid var(--border);
    text-align: left;
    border-radius: 12px;
    align-items: flex-start;
    gap: .75rem;
    padding: .625rem 1rem;
    display: flex
}

.note-content {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden
}

.note-card h3 {
    color: #000;
    flex: 1;
    margin: 0 0 .7rem;
    font-weight: 600
}

a.note-card {
    color: inherit;
    text-decoration: none
}

.note-card-header {
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
    display: flex
}

.note-body {
    flex: 1;
    min-width: 0
}

.empty-state {
    text-align: center;
    margin-top: 2rem
}

.note-dates {
    text-align: right;
    font-size: .75rem
}

.note-dates p {
    margin: 0
}

.remove-photo-btn {
    color: #fff;
    cursor: pointer;
    background: #e53e3e;
    border: none;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    padding: 0;
    font-size: .65rem;
    display: flex;
    position: absolute;
    top: -8px;
    right: -8px
}

.note-thumbnail {
    border-radius: 6px;
    flex-shrink: 0;
    width: 80px;
    min-width: 80px;
    height: 80px;
    overflow: hidden
}

.note-thumbnail img {
    object-fit: cover;
    border-radius: 6px;
    width: 80px;
    height: 80px
}

.export-btn {
    color: #000;
    cursor: pointer;
    vertical-align: middle;
    background-color: #a58ff6;
    border: none;
    border-radius: 8px;
    padding: .4rem 1rem;
    font-size: .9rem;
    font-weight: 600;
    display: inline-block
}

.home-actions {
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    display: flex
}

.import-btn {
    color: #000;
    cursor: pointer;
    box-sizing: border-box;
    vertical-align: middle;
    background-color: #f6ad55;
    border-radius: 8px;
    align-items: center;
    margin: 0;
    padding: .4rem 1rem;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.8;
    display: flex
}

.remove-attachment-btn {
    color: #e53e3e;
    cursor: pointer;
    vertical-align: middle;
    background: 0 0;
    border: none;
    padding: 0 .25rem;
    font-size: 1rem
}

.attachment-list {
    margin: 0;
    padding: 0;
    list-style: none
}

.attachment-list li {
    align-items: center;
    gap: 1.25rem;
    padding: .2rem 0;
    font-size: .85rem;
    display: flex
}

.record-btn {
    color: #000;
    cursor: pointer;
    background-color: #fc8181;
    border: none;
    border-radius: 8px;
    padding: .25rem .6rem;
    font-size: .8rem
}