
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    background: #f7f8fc;
    color: #172033;
    min-height: 100vh;
}

/* =========================================================
   HEADER
========================================================= */

.header {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;

    background: rgba(255,255,255,.95);
    border-bottom: 1px solid #e5e7eb;

    position: sticky;
    top: 0;
    z-index: 100;

    backdrop-filter: blur(14px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand-icon {
    width: 38px;
    height: 38px;

    border-radius: 10px;

    background:
        linear-gradient(135deg,#6366f1,#4f46e5);

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 19px;

    box-shadow:
        0 5px 12px rgba(79,70,229,.2);
}

.brand h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 750;
}

.brand p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #64748b;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-count {
    font-size: 12px;
    color: #64748b;
    margin-right: 6px;
}

.header-button {
    height: 36px;
    padding: 0 12px;

    background: white;

    border: 1px solid #e2e8f0;
    border-radius: 8px;

    color: #475569;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.header-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.clear-button:hover {
    color: #dc2626;
    background: #fff1f2;
    border-color: #fecaca;
}

/* =========================================================
   MAIN
========================================================= */

main {
    max-width: 1400px;
    margin: auto;
    padding: 26px 32px 50px;
}

/* =========================================================
   HERO
========================================================= */

.hero {
    text-align: center;
    margin-bottom: 20px;
}

.hero h2 {
    margin: 0 0 6px;

    font-size: 25px;
    letter-spacing: -.6px;
}

.hero p {
    margin: 0;

    color: #64748b;
    font-size: 14px;
}

/* =========================================================
   INFORMATION PANEL
========================================================= */

.info-panel {
    width: 50%;

    margin: 0 auto 28px;

    background: white;

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 6px 20px rgba(15,23,42,.06);
}

.info-tabs {
    display: flex;
    height: 54px;

    background: #fafbff;
}

.info-tab {
    flex: 1;

    height: 54px;

    border: none;
    background: transparent;

    color: #475569;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    position: relative;
}

.info-tab:hover {
    background: #f1f5f9;
    color: #334155;
}

.info-tab.active {
    background: white;
    color: #4f46e5;
}

.info-tab.active::after {
    content: "";

    position: absolute;

    left: 20%;
    right: 20%;
    bottom: 0;

    height: 3px;

    background: #4f46e5;

    border-radius:
        3px 3px 0 0;
}

.tab-icon {
    width: 27px;
    height: 27px;

    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eef2ff;
    color: #4f46e5;

    font-size: 14px;
}

.info-panel-content {
    min-height: 230px;

    padding: 20px;

    display: flex;
    align-items: center;

    animation:
        fadeIn .18s ease;
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   HOW / WHY CONTENT
========================================================= */

.steps,
.advantages {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 12px;
}

.step {
    min-height: 82px;

    padding: 13px;

    display: grid;

    grid-template-columns:
        36px 1fr;

    column-gap: 11px;

    align-items: center;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 11px;
}

.step-number {
    width: 36px;
    height: 36px;

    border-radius: 9px;

    background: #4f46e5;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 800;

    grid-row: span 2;
}

.step strong,
.advantage strong {
    display: block;

    font-size: 13px;
    font-weight: 750;

    margin-bottom: 3px;

    color: #1e293b;
}

.step span,
.advantage span {
    display: block;

    font-size: 14px;

    line-height: 1.45;

    color: #64748b;
}

.advantage {
    min-height: 82px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 13px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 11px;
}

.advantage-icon {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #eef2ff;

    font-size: 17px;
}

/* =========================================================
   WORKSPACE + AD LAYOUT
========================================================= */

.workspace-area {
  display: flex;
  width: 100%;
  gap: 16px;
}

.workspace-column {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
}


.workspace-header {
    display: flex;
    align-items: center;
text-align: center;
    margin-bottom: 12px;
}

.workspace-title {
    margin: 0;

    font-size: 16px;
    font-weight: 750;
}

/* =========================================================
   ADVERTISEMENT
========================================================= */

.ad-column {
    width: 100%;

    position: sticky;
    top: 90px;
}

.ad-label {
    margin-bottom: 7px;

    text-align: center;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .8px;
    text-transform: uppercase;

    color: #94a3b8;
}

.ad-box {
    width: 100%;
    min-height: 280px;

    background: white;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: #94a3b8;

    font-size: 11px;
}

.ad-box span {
    padding: 20px;
}

/*
   Replace the .ad-box content with your ad network
   code when you are ready.
*/

/* =========================================================
   NOTES
========================================================= */

#notes {
    display: flex;

    flex-wrap: wrap;

    gap: 20px;

    align-items: flex-start;
}


/* =========================================================
   PASTE BOX
========================================================= */

.paste-box {
    min-height: 300px;

    padding: 18px;

    background: white;

    border: 2px dashed #cbd5e1;

    border-radius: 16px;

    display: flex;
    flex-direction: column;
}

.paste-box:hover {
    border-color: #a5b4fc;
}

.paste-box:focus-within {
    border-color: #6366f1;

    box-shadow:
        0 0 0 4px
        rgba(99,102,241,.08);
}

.paste-label {
    font-size: 13px;
    font-weight: 800;

    color: #64748b;

    text-transform: uppercase;

    letter-spacing: .6px;

    margin-bottom: 10px;
}

.paste-box textarea {
    flex: 1;

    width: 100%;

    min-height: 210px;

    border: none;
    outline: none;

    resize: none;

    background: transparent;

    font-family: inherit;

    font-size: 14px;
    line-height: 1.6;

    color: #334155;
}

.paste-box textarea::placeholder {
    color: #94a3b8;
}

.paste-hint {
    margin-top: 8px;

    font-size: 11px;

    color: #94a3b8;
}

/* =========================================================
   STICKY NOTE
========================================================= */

.sticky-note {
    width: 290px;

    height: 300px;

    min-width: 250px;
    min-height: 220px;

    max-width: 100%;
    max-height: 750px;

    padding: 16px;

    border: 1px solid var(--note-border);

    border-radius: 16px;

    background: var(--note-bg);

    box-shadow:
        0 10px 25px rgba(15,23,42,.08);

    display: flex;
    flex-direction: column;

    position: relative;

    resize: both;

    overflow: hidden;

    flex: 0 0 290px;
}


.sticky-note:hover {
    box-shadow:
        0 15px 32px
        rgba(15,23,42,.12);
}

/* =========================================================
   NOTE COLORS
========================================================= */

.color-indigo {
    --note-bg: #eef2ff;
    --note-border: #c7d2fe;
    --note-accent: #4f46e5;
}

.color-blue {
    --note-bg: #eff6ff;
    --note-border: #bfdbfe;
    --note-accent: #2563eb;
}

.color-green {
    --note-bg: #ecfdf5;
    --note-border: #a7f3d0;
    --note-accent: #059669;
}

.color-pink {
    --note-bg: #fdf2f8;
    --note-border: #fbcfe8;
    --note-accent: #db2777;
}

.color-orange {
    --note-bg: #fff7ed;
    --note-border: #fed7aa;
    --note-accent: #ea580c;
}

/* =========================================================
   NOTE HEADER
========================================================= */

.note-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 9px;

    flex-shrink: 0;
}

.note-title {
    font-size: 13px;

    font-weight: 800;

    color: var(--note-accent);

    text-transform: uppercase;

    letter-spacing: .7px;
}

.note-options {
    display: flex;

    align-items: center;

    gap: 7px;
}

.line-toggle {
    display: flex;

    align-items: center;

    gap: 4px;

    font-size: 13px;

    color: #64748b;

    cursor: pointer;

    white-space: nowrap;
}

.line-toggle input {
    accent-color:
        var(--note-accent);

    cursor: pointer;
}

.color-select {
    border:
        1px solid
        var(--note-border);

    background:
        rgba(255,255,255,.65);

    color: #475569;

    border-radius: 7px;

    padding: 4px 5px;

    font-size: 11px;

    cursor: pointer;

    outline: none;
}

/* =========================================================
   NOTE TEXT
========================================================= */

.sticky-text {
    flex: 1;

    min-height: 0;

    overflow-y: auto;
    overflow-x: auto;

    padding: 7px 7px 14px;

    border-radius: 8px;

    color: #1e293b;

    font-size: 13px;

    line-height: 1.6;

    white-space: pre-wrap;

    word-break: break-word;

    outline: none;

    /* Keeps content away from the scrollbar */
    scrollbar-gutter: stable;
}

.sticky-text.editing {
    background:
        rgba(255,255,255,.6);

    border:
        1px dashed
        var(--note-accent);
}

/* =========================================================
   LINE COPY
========================================================= */

.line-row {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 5px 4px;

    border-bottom:
        1px solid
        rgba(100,116,139,.12);

    /* Prevent the row from becoming narrower than its content */
    min-width: 0;
}

.line-row:last-child {
    border-bottom: none;
}

.line-text {
    flex: 1;

    min-width: 0;

    white-space: pre-wrap;

    overflow-wrap: anywhere;

    word-break: break-word;

    padding-bottom: 2px;
}


    /* =========================================================
       NOTE TEXT
    ========================================================= */

    .sticky-text {
        flex: 1;

        min-height: 0;

        overflow-y: auto;
        overflow-x: auto;

        padding: 7px 7px 14px;

        border-radius: 8px;

        color: #1e293b;

        font-size: 13px;

        line-height: 1.6;

        white-space: pre-wrap;

        word-break: break-word;

        outline: none;

        /* Keeps content away from the scrollbar */
        scrollbar-gutter: stable;
    }

    .sticky-text.editing {
        background:
            rgba(255,255,255,.6);

        border:
            1px dashed
            var(--note-accent);
    }


    /* =========================================================
       LINE COPY
    ========================================================= */

    .line-row {
        display: flex;

        align-items: center;

        gap: 8px;

        padding: 5px 4px;

        border-bottom:
            1px solid
            rgba(100,116,139,.12);

        /* Prevent the row from becoming narrower than its content */
        min-width: 0;
    }

    .line-text {
        flex: 1;

        min-width: 0;

        white-space: pre-wrap;

        overflow-wrap: anywhere;

        word-break: break-word;

        padding-bottom: 2px;
    }

    .line-copy {
        flex-shrink: 0;

        margin-right: 4px;

        border:
            1px solid
            var(--note-border);

        background:
            rgba(255,255,255,.75);

        color:
            var(--note-accent);

        padding: 5px 9px;

        border-radius: 6px;

        font-size: 11px;
        font-weight: 700;

        cursor: pointer;
    }
/* =========================================================
   NOTE ACTIONS
========================================================= */

.note-actions {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 9px;

    flex-shrink: 0;
}

.action-button {
    height: 36px;

    padding: 0 10px;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 700;

    font-family: inherit;

    cursor: pointer;

    border:
        1px solid
        transparent;
}

.copy-all {
    flex: 1;

    background:
        var(--note-accent);

    color: white;
}

.copy-all:hover {
    filter: brightness(.92);
}

.edit-button {
    background:
        rgba(255,255,255,.7);

    border-color:
        var(--note-border);

    color:
        var(--note-accent);
}

.delete-button {
    background:
        rgba(255,255,255,.7);

    border-color:
        #fecaca;

    color: #ef4444;
}

/* =========================================================
   PLUS BUTTON
========================================================= */

.plus-button {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

    border: none;

    border-radius: 50%;

    background: #10b981;

    color: white;

    font-size: 27px;
    font-weight: 300;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    transition: .15s;
}

.plus-button:hover {
    background: #059669;

    transform: scale(1.06);
}

/* =========================================================
   FAQ
========================================================= */

.faq-section {
    width: 100%;

    max-width: 900px;

    margin: 60px auto 0;
}

.faq-heading {
    text-align: center;

    margin-bottom: 22px;
}

.faq-heading h2 {
    margin: 0 0 6px;

    font-size: 22px;

    letter-spacing: -.3px;
}

.faq-heading p {
    margin: 0;

    color: #64748b;

    font-size: 12px;
}

.faq-list {
    display: flex;

    flex-direction: column;

    gap: 9px;
}

.faq-item {
    background: white;

    border:
        1px solid
        #e2e8f0;

    border-radius: 12px;

    overflow: hidden;
}

.faq-question {
    width: 100%;

    min-height: 52px;

    padding: 14px 17px;

    border: none;

    background: white;

    color: #1e293b;

    font-family: inherit;

    font-size: 13px;
    font-weight: 700;

    text-align: left;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-arrow {
    width: 25px;
    height: 25px;

    flex-shrink: 0;

    border-radius: 7px;

    background: #eef2ff;

    color: #4f46e5;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 14px;

    transition:
        transform .2s;
}

.faq-item.open .faq-arrow {
    transform:
        rotate(180deg);
}

.faq-answer {
    display: none;

    padding:
        0 17px 16px;

    color: #64748b;

    font-size: 14px;

    line-height: 1.65;
}

.faq-item.open .faq-answer {
    display: block;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
    margin-top: 70px;

    border-top:
        1px solid
        #e2e8f0;

    background: white;

    padding: 28px 30px;
}

.footer-inner {
    max-width: 1400px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.footer-brand {
    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 12px;

    font-weight: 750;

    color: #334155;
}

.footer-brand-icon {
    width: 27px;
    height: 27px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background:
        #eef2ff;

    color:
        #4f46e5;

    font-size: 12px;
}

.footer-text {
    margin: 0;

    font-size: 12px;

    color: #94a3b8;

    text-align: center;
}

.footer-links {
    display: flex;

    gap: 16px;
}

.footer-links a {
    color: #64748b;

    text-decoration: none;

    font-size: 10px;

    font-weight: 600;
}

.footer-links a:hover {
    color: #4f46e5;
}

/* =========================================================
   TOAST
========================================================= */

#toast {
    position: fixed;

    left: 50%;

    bottom: 25px;

    transform:
        translate(-50%,20px);

    background:
        #0f172a;

    color: white;

    padding: 10px 16px;

    border-radius: 9px;

    font-size: 11px;

    opacity: 0;

    pointer-events: none;

    transition: .25s;

    z-index: 999;
}

#toast.show {
    opacity: 1;

    transform:
        translate(-50%,0);
}

/* =========================================================
   DARK MODE
========================================================= */

body.dark {
    background: #0b1120;
    color: #e2e8f0;
}

body.dark .header {
    background:
        rgba(15,23,42,.94);

    border-color:
        #1e293b;
}

body.dark .header-button {
    background: #111827;

    border-color: #334155;

    color: #cbd5e1;
}

body.dark .info-panel,
body.dark .faq-item,
body.dark .ad-box,
body.dark .footer {
    background: #111827;

    border-color: #334155;
}

body.dark .info-tabs {
    background: #0f172a;
}

body.dark .info-tab {
    color: #94a3b8;
}

body.dark .info-tab.active {
    background: #111827;

    color: #818cf8;
}

body.dark .info-tab:hover,
body.dark .faq-question:hover {
    background: #172033;
}

body.dark .step,
body.dark .advantage {
    background: #0f172a;

    border-color: #334155;
}

body.dark .step strong,
body.dark .advantage strong,
body.dark .faq-question,
body.dark .footer-brand {
    color: #e2e8f0;
}

body.dark .step span,
body.dark .advantage span,
body.dark .faq-answer,
body.dark .faq-heading p,
body.dark .hero p,
body.dark .footer-text,
body.dark .footer-links a {
    color: #94a3b8;
}

body.dark .paste-box {
    background: #111827;

    border-color: #334155;
}

body.dark .paste-box textarea {
    color: #e2e8f0;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width:1100px) {

    .info-panel {
        width: 65%;
    }

    .workspace-area {
        grid-template-columns:
            minmax(0,1fr)
            240px;
    }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width:800px) {

    .header {
        padding: 0 16px;
    }

    .brand p,
    .note-count {
        display: none;
    }

    main {
        padding:
            22px 16px 35px;
    }

    .hero h2 {
        font-size: 23px;
    }

    .info-panel {
        width: 100%;
    }

    .info-panel-content {
        padding: 14px;
    }

    .workspace-area {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .ad-column {
        position: static;

        order: 2;
    }

    .ad-box {
        min-height: 180px;
    }

      #notes {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .sticky-note,
    .paste-box {
        width: 100%;
        flex: 0 0 auto;
    }

    .faq-section {
        margin-top: 45px;
    }

    .footer-inner {
        flex-direction: column;

        text-align: center;
    }

}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width:500px) {

    .steps,
    .advantages {
        grid-template-columns: 1fr;
    }

    .info-panel-content {
        min-height: 330px;
    }

    .step,
    .advantage {
        min-height: 65px;

        padding: 10px;
    }

    .brand h1 {
        font-size: 16px;
    }

    .header-button.clear-button {
        display: none;
    }

    .info-tab {
        font-size: 11px;
    }

    .faq-heading h2 {
        font-size: 20px;
    }

    .footer {
        padding:
            24px 16px;
    }

}

/* =========================================================
   COLLAPSIBLE FAQ SECTION
========================================================= */

.faq-section {
    width: 100%;
    max-width: 900px;
    margin: 60px auto 0;
}

.faq-main-toggle {
    width: 100%;

    min-height: 70px;

    padding: 15px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    background: white;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    cursor: pointer;

    font-family: inherit;

    text-align: left;

    transition: .2s;
}

.faq-main-toggle:hover {
    border-color: #c7d2fe;

    background: #fafbff;
}

.faq-main-toggle h2 {
    margin: 0 0 4px;

    font-size: 18px;

    color: #1e293b;
}

.faq-main-toggle p {
    margin: 0;

    font-size: 14px;

    color: #64748b;
}

.faq-main-arrow {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #eef2ff;

    color: #4f46e5;

    font-size: 18px;

    transition: transform .25s;
}


/* FAQ IS CLOSED BY DEFAULT */

.faq-content {
    display: none;

    margin-top: 10px;
}


/* OPEN STATE */

.faq-section.open .faq-content {
    display: block;

    animation: faqOpen .2s ease;
}

.faq-section.open .faq-main-arrow {
    transform: rotate(180deg);
}


@keyframes faqOpen {

    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* FAQ QUESTIONS */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: white;

    border: 1px solid #e2e8f0;

    border-radius: 11px;

    overflow: hidden;
}

.faq-question {
    width: 100%;

    min-height: 50px;

    padding: 13px 16px;

    border: none;

    background: white;

    color: #1e293b;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    text-align: left;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-arrow {
    width: 25px;
    height: 25px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: #f1f5f9;

    color: #64748b;

    transition: transform .2s;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;

    padding: 0 16px 15px;

    color: #64748b;

    font-size: 14px;

    line-height: 1.6;
}

.faq-item.open .faq-answer {
    display: block;
}


/* DARK MODE */

body.dark .faq-main-toggle,
body.dark .faq-item {
    background: #111827;

    border-color: #334155;
}

body.dark .faq-main-toggle:hover,
body.dark .faq-question:hover {
    background: #172033;
}

body.dark .faq-main-toggle h2,
body.dark .faq-question {
    color: #e2e8f0;
}

body.dark .faq-main-toggle p,
body.dark .faq-answer {
    color: #94a3b8;
}


.copy-all.copied {
    background: #16a34a;
    color: white;
}

body.dark .faq-main-toggle {
    background: #111827;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark .faq-main-toggle:hover {
    background: #172033;
    border-color: #475569;
}

body.dark .faq-main-toggle h2 {
    color: #e2e8f0;
}

body.dark .faq-main-toggle p {
    color: #94a3b8;
}

body.dark .faq-main-arrow {
    background: #1e293b;
    color: #818cf8;
}

body.dark .faq-item {
    background: #111827;
    border-color: #334155;
}

body.dark .faq-question {
    background: #111827;
    color: #e2e8f0;
}

body.dark .faq-question:hover {
    background: #172033;
}

body.dark .faq-arrow {
    background: #1e293b;
    color: #94a3b8;
}

body.dark .faq-answer {
    background: #111827;
    color: #94a3b8;
}


/* =========================================================
   NOTE GRID RESIZE FIX
========================================================= */

/* =========================================================
   NOTE GRID RESIZE FIX
========================================================= */

#notes {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(290px, 1fr));

    gap: 20px;

    align-items: start;
    grid-auto-flow: row;
}

.sticky-note {
    width: 290px;
    height: 300px;

    min-width: 250px;
    min-height: 220px;

    max-width: 100%;
    max-height: 750px;

    resize: both;

    overflow: hidden;

    justify-self: start;

    /* IMPORTANT */
    box-sizing: border-box;
}



/*
   Paste boxes should behave exactly
   like sticky notes in the grid.
*/

.paste-box {
    width: 290px;

    min-width: 250px;
    min-height: 300px;

    padding: 18px;

    background: white;

    border: 2px dashed #cbd5e1;

    border-radius: 16px;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
}

/* =========================================================
   TRUE 2-WAY NOTE RESIZING
========================================================= */
/* =========================================================
   RESIZABLE NOTES WORKSPACE
========================================================= */

#notes {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

/* Every note keeps its own real width */
.sticky-note {
    width: 290px;
    height: 300px;

    min-width: 250px;
    min-height: 220px;

    max-width: none;
    max-height: 750px;

    flex: 0 0 auto;

    resize: both;
    overflow: hidden;

    box-sizing: border-box;
}



/* Allow the note to grow beyond its original grid width */
.sticky-note {
    width: 290px;
    height: 300px;

    min-width: 250px;
    min-height: 220px;

    max-width: none;
    max-height: 750px;

    padding: 16px;

    border: 1px solid var(--note-border);
    border-radius: 16px;

    background: var(--note-bg);

    box-shadow:
        0 10px 25px rgba(15,23,42,.08);

    display: flex;
    flex-direction: column;

    position: relative;

    resize: both;
    overflow: hidden;

    justify-self: start;
    box-sizing: border-box;
}

/* =========================================================
   PASTE BOX INITIAL CENTERING
========================================================= */



#notes {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.workspace-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.workspace-title {
    margin: 0;
    font-size: 16px;
    font-weight: 750;
}



#shareButton {
            margin: 20px auto;
            display: block;
            padding: 10px 20px;
            cursor: pointer;
            background-color: var(--card-bg);
            border: 1px solid #e2e8f0;
            color: var(--text-color);
            font-weight: 600;
            border-radius: 10px;
            font-size: 0.7rem;
            transition: all 0.2s ease;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }

        #shareButton:hover {
            background-color: var(--card-hover);
            border-color: var(--accent);
            transform: translateY(-1px);
        }