:root {
    --cream: #fffaf5;
    --paper: #ffffff;
    --pink: #e86f9b;
    --soft-pink: #ffe7ef;
    --purple: #74408b;
    --deep-purple: #4c265f;
    --lavender: #eee2f5;
    --gold: #dca23b;
    --green: #4f8568;
    --ink: #302735;
    --muted: #817687;
    --border: #eadfe8;
    --shadow: 0 12px 35px rgba(91, 54, 97, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: "DM Sans", sans-serif;
}

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

button {
    cursor: pointer;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 28px 20px;
    color: white;
    background:
        radial-gradient(circle at 20% 90%, #8e527e 0, transparent 27%),
        linear-gradient(165deg, #512761, #2e1839);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 8px 38px;
}

.brand h1 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 27px;
}

.brand h1 span {
    color: #ff91b5;
}

.brand p {
    margin: 3px 0 0;
    color: #d9c2df;
    font-size: 10px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.yarn-heart {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, #f18db0, #9b60bd);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    font-size: 23px;
}

nav {
    display: grid;
    gap: 7px;
}

nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 15px;
    border-radius: 12px;
    color: #dbcfe0;
    text-decoration: none;
    transition: 0.2s ease;
}

nav a:hover,
nav a.active {
    color: white;
    background: rgba(255, 255, 255, 0.13);
    transform: translateX(2px);
}

.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding: 15px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--deep-purple);
    background: #ffd4e2;
    font-weight: 700;
}

.sidebar-footer strong,
.sidebar-footer small {
    display: block;
}

.sidebar-footer small {
    margin-top: 2px;
    color: #d9c7df;
}

main {
    min-width: 0;
    padding: 0 30px 50px;
}

.topbar {
    min-height: 98px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar h2 {
    margin: 2px 0 0;
    font-family: "Playfair Display", serif;
    font-size: 25px;
}

.eyebrow {
    margin: 0;
    color: var(--purple);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.eyebrow.light {
    color: #ead8f0;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.icon-button,
.menu-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--ink);
    background: white;
    font-size: 20px;
}

.menu-button {
    display: none;
}

.primary-button,
.hero-button {
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    color: white;
    background: var(--purple);
    font-weight: 700;
}

.primary-button:hover,
.hero-button:hover {
    background: var(--deep-purple);
}

.hero {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 35px 42px;
    border-radius: 25px;
    color: white;
    background:
        radial-gradient(circle at 80% 20%, #ae75bd, transparent 28%),
        linear-gradient(120deg, #623477, #965a9b);
    box-shadow: var(--shadow);
}

.hero h3 {
    max-width: 520px;
    margin: 8px 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(30px, 4vw, 45px);
}

.hero p:not(.eyebrow) {
    max-width: 520px;
    color: #f0e4f2;
}

.hero-button {
    margin-top: 10px;
    color: var(--deep-purple);
    background: white;
}

.hero-art {
    position: absolute;
    right: 55px;
    width: 220px;
    height: 170px;
}

.yarn-ball {
    position: absolute;
    border-radius: 50%;
    box-shadow: inset -12px -12px 25px rgba(72, 30, 80, 0.22);
}

.ball-one {
    right: 20px;
    top: 10px;
    width: 120px;
    height: 120px;
    background: repeating-linear-gradient(
        25deg,
        #ef94b5 0,
        #ef94b5 7px,
        #f5b2c8 8px,
        #f5b2c8 12px
    );
}

.ball-two {
    left: 20px;
    bottom: 0;
    width: 92px;
    height: 92px;
    background: repeating-linear-gradient(
        -30deg,
        #c7a4dc 0,
        #c7a4dc 7px,
        #dcc3e9 8px,
        #dcc3e9 12px
    );
}

.hook {
    position: absolute;
    right: 0;
    bottom: -5px;
    color: #f2c96f;
    font-size: 150px;
    transform: rotate(-17deg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 22px 0 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 19px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.stat-card span,
.stat-card strong {
    display: block;
}

.stat-card span {
    color: var(--muted);
    font-size: 12px;
}

.stat-card strong {
    margin-top: 3px;
    font-size: 26px;
}

.stat-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-weight: 700;
}

.stat-icon.purple {
    color: var(--purple);
    background: var(--lavender);
}

.stat-icon.pink {
    color: #b74f76;
    background: var(--soft-pink);
}

.stat-icon.gold {
    color: #a46f11;
    background: #fff0c9;
}

.stat-icon.green {
    color: #356a4d;
    background: #e2f1e7;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-heading h3,
.side-card h3 {
    margin: 4px 0 0;
    font-family: "Playfair Display", serif;
    font-size: 23px;
}

.section-heading.compact h3 {
    font-size: 20px;
}

.text-button,
.more-button {
    border: 0;
    color: var(--purple);
    background: transparent;
    font-weight: 700;
}

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

.project-card,
.side-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: white;
    box-shadow: var(--shadow);
}

.project-cover {
    position: relative;
    height: 128px;
    padding: 15px;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(
            circle at 80% 45%,
            color-mix(in srgb, var(--project-color) 65%, white),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            var(--project-color),
            color-mix(in srgb, var(--project-color) 60%, #40224e)
        );
}

.project-cover > span {
    padding: 6px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 11px;
    font-weight: 700;
}

.project-symbol {
    position: absolute;
    right: 25px;
    bottom: 8px;
    font-size: 66px;
    transform: rotate(-9deg);
}

.project-content {
    padding: 17px;
}

.project-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.project-title small {
    color: var(--pink);
    font-weight: 700;
}

.project-title h4 {
    margin: 4px 0 0;
    font-family: "Playfair Display", serif;
    font-size: 18px;
}

.project-details {
    margin: 8px 0 16px;
    color: var(--muted);
    font-size: 12px;
}

.progress-label,
.row-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-label {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 11px;
}

.progress-label strong {
    color: var(--purple);
}

.progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #eee7ef;
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    transition: width 0.25s ease;
}

.row-counter {
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

.row-counter button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--purple);
    background: var(--cream);
    font-size: 18px;
    font-weight: 700;
}

.right-column {
    display: grid;
    align-content: start;
    gap: 18px;
}

.side-card {
    padding: 20px;
}

.yarn-list {
    display: grid;
    gap: 13px;
}

.yarn-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
}

.yarn-item strong,
.yarn-item span {
    display: block;
}

.yarn-item strong {
    font-size: 13px;
}

.yarn-item span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.mini-yarn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: repeating-linear-gradient(
        30deg,
        #ad79ce 0,
        #ad79ce 5px,
        #d2b6e3 6px,
        #d2b6e3 9px
    );
}

.yarn-2 {
    background: repeating-linear-gradient(
        30deg,
        #ef8fad 0,
        #ef8fad 5px,
        #ffc0d3 6px,
        #ffc0d3 9px
    );
}

.yarn-3 {
    background: repeating-linear-gradient(
        30deg,
        #e7ab3c 0,
        #e7ab3c 5px,
        #f8d481 6px,
        #f8d481 9px
    );
}

.assistant-card {
    color: white;
    background: linear-gradient(145deg, #7d478e, #4b285d);
}

.assistant-card p:not(.eyebrow) {
    color: #e8d8ed;
    font-size: 13px;
    line-height: 1.6;
}

.assistant-card button {
    width: 100%;
    border: 0;
    border-radius: 11px;
    padding: 11px;
    color: var(--deep-purple);
    background: white;
    font-weight: 700;
}

.assistant-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 13px;
    border-radius: 14px;
    color: var(--deep-purple);
    background: #f7c4d6;
}

.reminder-card p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.5;
}

.quote {
    padding: 12px;
    border-left: 3px solid var(--pink);
    color: var(--purple);
    background: var(--soft-pink);
    font-family: "Playfair Display", serif;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(45, 24, 52, 0.62);
    backdrop-filter: blur(5px);
}

.modal-backdrop.open {
    display: grid;
}

.modal {
    position: relative;
    width: min(600px, 100%);
    max-height: 92vh;
    overflow: auto;
    padding: 30px;
    border-radius: 22px;
    background: white;
    box-shadow: 0 30px 80px rgba(30, 15, 35, 0.3);
}

.modal h3 {
    margin: 5px 0 22px;
    font-family: "Playfair Display", serif;
    font-size: 28px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 17px;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: 28px;
}

form {
    display: grid;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 11px 12px;
    outline: none;
    background: var(--cream);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px var(--lavender);
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.full {
    width: 100%;
}

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

    .right-column {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-art {
        opacity: 0.5;
    }
}

@media (max-width: 850px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: -290px;
        z-index: 15;
        width: 264px;
        transition: left 0.25s ease;
    }

    .sidebar.open {
        left: 0;
    }

    main {
        padding: 0 17px 35px;
    }

    .menu-button {
        display: block;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .right-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .topbar {
        min-height: 82px;
    }

    .topbar h2 {
        font-size: 19px;
    }

    .top-actions .icon-button {
        display: none;
    }

    .primary-button {
        padding: 10px 12px;
        font-size: 12px;
    }

    .hero {
        min-height: 250px;
        padding: 28px 24px;
    }

    .hero-art {
        right: -50px;
        opacity: 0.3;
    }

    .stats-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

.changelog-page {
    min-height: 100vh;
    padding: 40px 20px 70px;
    background:
        radial-gradient(circle at top right, #f6dce7, transparent 30%),
        var(--cream);
}

.changelog-header,
.changelog-content {
    width: min(950px, 100%);
    margin: 0 auto;
}

.back-button {
    display: inline-block;
    margin-bottom: 25px;
    color: var(--purple);
    text-decoration: none;
    font-weight: 700;
}

.changelog-brand {
    display: flex;
    align-items: center;
    gap: 25px;
}

.changelog-brand img {
    width: 145px;
    height: 145px;
    border: 1px solid var(--border);
    border-radius: 24px;
    object-fit: contain;
    background: white;
    box-shadow: var(--shadow);
}

.changelog-brand h1 {
    margin: 5px 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(32px, 6vw, 52px);
}

.changelog-brand p:last-child {
    color: var(--muted);
}

.changelog-content {
    margin-top: 30px;
}

.changelog-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 14px 18px;
    border: 1px solid #d9eadf;
    border-radius: 14px;
    color: #356a4d;
    background: #edf8f1;
    font-weight: 700;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #48a36e;
    box-shadow: 0 0 0 5px #d8efdf;
}

.changelog-document {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: white;
    box-shadow: var(--shadow);
}

.changelog-document pre {
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    line-height: 1.8;
}

@media (max-width: 620px) {
    .changelog-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .changelog-brand img {
        width: 110px;
        height: 110px;
    }

    .changelog-document {
        padding: 20px;
    }
}

.brand-logo {
    display: block;
    margin: 0 8px 30px;
    padding: 8px;
    overflow: hidden;
    border-radius: 18px;
    background: #fffaf7;
    box-shadow: 0 10px 25px rgba(20, 8, 25, 0.22);
}

.brand-logo img {
    display: block;
    width: 100%;
    max-height: 190px;
    border-radius: 12px;
    object-fit: contain;
}

.official-logo {
    display: block;
    margin: 0 5px 24px;
    padding: 7px;
    overflow: hidden;
    border-radius: 18px;
    background: #fffaf7;
    box-shadow: 0 10px 25px rgba(20, 8, 25, 0.25);
}

.official-logo img {
    display: block;
    width: 100%;
    height: 175px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
}

.mimistitch-sidebar-logo {
    display: block;
    margin: 0 4px 25px;
    overflow: hidden;
    border-radius: 20px;
    background: #fffaf7;
    box-shadow: 0 10px 28px rgba(20, 8, 25, 0.28);
}

.mimistitch-sidebar-logo img {
    display: block;
    width: 100%;
    height: auto;
}

/* MimiStitch v1.1.0 accounts and feature pages */

.flash-stack {
    position: fixed;
    z-index: 2000;
    top: 18px;
    right: 18px;
    display: grid;
    gap: 8px;
    width: min(380px, calc(100vw - 36px));
}

.flash-message {
    padding: 14px 18px;
    border: 1px solid rgba(111, 60, 136, 0.18);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(50, 25, 62, 0.16);
    color: #40244d;
}

.flash-message.error {
    border-color: #d96c87;
}

.flash-message.success {
    border-color: #67a67d;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
    padding: 60px max(6vw, 30px);
    background:
        radial-gradient(circle at top left, #f4dbe9, transparent 38%),
        linear-gradient(135deg, #fffaf7, #f5ecf7);
}

.auth-brand {
    max-width: 650px;
}

.auth-brand img {
    display: block;
    width: min(420px, 90%);
    max-height: 240px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 26px;
}

.auth-brand h1,
.auth-card h2,
.feature-hero h1,
.upgrade-card h1 {
    font-family: "Playfair Display", serif;
}

.auth-brand h1 {
    max-width: 620px;
    margin: 12px 0;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.02;
    color: #4d295f;
}

.auth-brand p {
    max-width: 600px;
    color: #755f79;
    font-size: 1.05rem;
}

.auth-card {
    width: min(100%, 500px);
    padding: 42px;
    border: 1px solid rgba(111, 60, 136, 0.14);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 26px 70px rgba(68, 35, 79, 0.17);
}

.auth-card h2 {
    margin: 4px 0 26px;
    font-size: 2rem;
    color: #42224f;
}

.checkbox-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-label input {
    width: auto;
}

.auth-switch {
    margin-top: 20px;
    text-align: center;
    color: #7c697f;
}

.auth-switch a {
    color: #794495;
    font-weight: 700;
}

.sidebar-account {
    margin-top: auto;
}

.logout-button {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 48px 28px;
    border: 1px dashed rgba(111, 60, 136, 0.3);
    border-radius: 22px;
    text-align: center;
    background: #fffafd;
}

.empty-state h4 {
    margin: 10px 0 6px;
    font-size: 1.35rem;
}

.empty-state p {
    max-width: 440px;
    margin: 0 auto 20px;
    color: #806d83;
}

.empty-icon,
.feature-icon,
.upgrade-icon {
    font-size: 2.2rem;
}

.empty-mini {
    padding: 24px;
    border: 1px dashed #d8c6dc;
    border-radius: 16px;
    color: #877489;
    text-align: center;
}

.feature-hero {
    margin: 28px;
    padding: 48px;
    border-radius: 28px;
    background: linear-gradient(135deg, #69357f, #b85c91);
    color: white;
}

.feature-hero h1 {
    margin: 8px 0;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.feature-hero > p:last-child {
    max-width: 680px;
    opacity: 0.86;
}

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

.feature-card,
.marketplace-card,
.coming-banner,
.upgrade-card {
    padding: 30px;
    border: 1px solid rgba(111, 60, 136, 0.12);
    border-radius: 22px;
    background: white;
    box-shadow: 0 12px 34px rgba(70, 41, 79, 0.08);
}

.status-pill {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #ead9f0;
    color: #713d87;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-pill.soft {
    background: #f9e1e8;
    color: #a44868;
}

.marketplace-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marketplace-art {
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 22px;
    background: #eadcf1;
    color: #6d3b82;
    font-size: 2rem;
}

.marketplace-art.pink {
    background: #f8dce7;
    color: #b94e78;
}

.marketplace-art.gold {
    background: #f7e7bc;
    color: #946e17;
}

.coming-banner {
    margin: 28px;
}

.upgrade-card {
    max-width: 760px;
    margin: 40px auto;
    padding: 52px;
    text-align: center;
}

.upgrade-card h1 {
    margin: 14px 0;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: #542967;
}

.upgrade-card > p {
    max-width: 620px;
    margin: 0 auto;
    color: #7d6980;
}

.upgrade-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 30px 0;
}

.upgrade-features div {
    padding: 14px;
    border-radius: 12px;
    background: #faf4fb;
    color: #614b66;
}

.upgrade-card small {
    display: block;
    margin-top: 16px;
    color: #8b7a8e;
}

@media (max-width: 820px) {
    .auth-page {
        grid-template-columns: 1fr;
        padding: 28px 18px;
    }

    .auth-brand {
        text-align: center;
    }

    .auth-brand img {
        margin-inline: auto;
        object-position: center;
    }

    .auth-brand h1 {
        font-size: 2.5rem;
    }

    .auth-card {
        padding: 28px 22px;
    }

    .feature-grid,
    .marketplace-grid,
    .upgrade-features {
        grid-template-columns: 1fr;
    }

    .feature-hero,
    .feature-grid,
    .marketplace-grid,
    .coming-banner {
        margin: 16px;
    }

    .feature-hero,
    .upgrade-card {
        padding: 30px 22px;
    }

    .upgrade-card {
        margin: 20px 16px;
    }
}

/* MimiStitch v1.1.1 brand footer */

.site-footer {
    display: flex;
    justify-content: center;
    gap: 10px 28px;
    flex-wrap: wrap;
    padding: 20px;
    border-top: 1px solid rgba(111, 60, 136, 0.12);
    background: #fffafc;
    color: #77657a;
    font-size: 0.82rem;
    text-align: center;
}

.app-shell + .site-footer {
    margin-left: 250px;
}

@media (max-width: 980px) {
    .app-shell + .site-footer {
        margin-left: 0;
    }
}

/* MimiStitch v1.2.0 community */

.community-intro {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
    margin: 28px;
    padding: 40px;
    border-radius: 28px;
    background: linear-gradient(135deg, #633177, #b95c91);
    color: white;
}

.community-intro h1 {
    margin: 7px 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.2rem, 4vw, 4rem);
}

.community-intro > div:first-child {
    max-width: 720px;
}

.community-intro > div:first-child > p:last-child {
    max-width: 650px;
    opacity: 0.86;
}

.community-values {
    display: grid;
    gap: 10px;
    min-width: 190px;
}

.community-values span {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
}

.community-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    margin: 28px;
}

.community-main,
.community-feed,
.community-side {
    display: grid;
    gap: 20px;
    align-content: start;
}

.composer-card,
.community-post,
.community-side-card,
.community-empty {
    border: 1px solid rgba(111, 60, 136, 0.12);
    border-radius: 22px;
    background: white;
    box-shadow: 0 12px 34px rgba(70, 41, 79, 0.07);
}

.composer-card,
.community-post,
.community-side-card,
.community-empty {
    padding: 24px;
}

.community-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.community-person > div:last-child {
    display: grid;
    gap: 2px;
}

.community-person span,
.comment-body span {
    color: #8a798d;
    font-size: 0.8rem;
}

.community-avatar,
.comment-avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #d76087, #74418a);
    color: white;
    font-weight: 700;
}

.community-avatar {
    width: 46px;
    height: 46px;
}

.comment-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
}

.composer-card form {
    margin-top: 20px;
}

.composer-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.image-upload {
    padding: 12px 14px;
    border: 1px dashed #c8adcF;
    border-radius: 12px;
    color: #70437d;
    cursor: pointer;
}

.image-upload input {
    display: block;
    margin-top: 8px;
}

.sharing-notice {
    display: block;
    margin-top: 12px;
    color: #89778c;
}

.post-header,
.post-actions,
.comment-form {
    display: flex;
    align-items: center;
}

.post-header {
    justify-content: space-between;
    gap: 14px;
}

.community-delete,
.comment-delete {
    border: 0;
    background: transparent;
    color: #9b7181;
}

.post-content {
    margin: 22px 0 16px;
}

.post-content h3 {
    margin-bottom: 8px;
    font-size: 1.35rem;
}

.post-content p,
.comment-body p {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.community-post-image {
    display: block;
    width: 100%;
    max-height: 680px;
    object-fit: contain;
    border-radius: 18px;
    background: #f7f0f7;
}

.post-actions {
    gap: 18px;
    margin-top: 18px;
    padding: 14px 0;
    border-top: 1px solid #eee4ef;
    border-bottom: 1px solid #eee4ef;
}

.reaction-button {
    border: 0;
    background: transparent;
    color: #745d79;
}

.reaction-button.liked {
    color: #c44e79;
    font-weight: 700;
}

.comment-total,
.report-control {
    color: #806e83;
    font-size: 0.88rem;
}

.report-control {
    margin-left: auto;
}

.report-control summary {
    cursor: pointer;
}

.report-control form {
    position: absolute;
    z-index: 5;
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #e5d7e7;
    border-radius: 12px;
    background: white;
    box-shadow: 0 12px 24px rgba(50, 30, 60, 0.13);
}

.report-control select,
.report-control button {
    padding: 8px;
}

.comment-section {
    display: grid;
    gap: 12px;
    padding-top: 18px;
}

.community-comment {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 14px;
    background: #faf6fb;
}

.comment-body {
    flex: 1;
}

.comment-body > div {
    display: flex;
    gap: 9px;
    align-items: baseline;
}

.comment-body p {
    margin-top: 4px;
    color: #584d5b;
}

.comment-form {
    gap: 10px;
}

.comment-form input {
    flex: 1;
    margin: 0;
}

.comment-form button {
    padding: 11px 15px;
    border: 0;
    border-radius: 10px;
    background: #74418a;
    color: white;
}

.community-side-card h3 {
    margin: 7px 0;
}

.community-side-card p,
.community-side-card li {
    color: #746777;
}

.community-side-card ul {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding-left: 20px;
}

.marketplace-link {
    background: linear-gradient(135deg, #6b357f, #a94e83);
    color: white;
}

.marketplace-link p {
    color: rgba(255, 255, 255, 0.82);
}

.marketplace-link a {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    background: white;
    color: #6c387f;
    font-weight: 700;
}

.community-empty {
    padding: 60px 30px;
    text-align: center;
}

.community-empty > div {
    font-size: 2.6rem;
}

.community-empty h3 {
    margin: 10px 0;
}

.community-empty p {
    max-width: 520px;
    margin: auto;
    color: #7c6c80;
}

@media (max-width: 1050px) {
    .community-layout {
        grid-template-columns: 1fr;
    }

    .community-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .community-intro,
    .community-layout {
        margin: 14px;
    }

    .community-intro {
        display: grid;
        padding: 26px 20px;
    }

    .community-values,
    .community-side {
        grid-template-columns: 1fr;
    }

    .composer-actions,
    .post-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .report-control {
        margin-left: 0;
    }

    .report-control form {
        position: static;
        flex-direction: column;
    }

    .comment-form {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .comment-form input {
        min-width: calc(100% - 50px);
    }
}


/* =======================================================
   MimiStitch v1.2.1 — Dashboard Functional Repair
======================================================= */

.dashboard-search {
    margin: 0 0 22px;
    padding: 18px 20px;
    border: 1px solid rgba(111, 60, 136, 0.16);
    border-radius: 18px;
    background: #fff;
}

.dashboard-search[hidden] {
    display: none;
}

.dashboard-search label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.dashboard-search-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dashboard-search-row input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(111, 60, 136, 0.22);
    border-radius: 12px;
    font: inherit;
}

.search-result-message {
    min-height: 20px;
    margin: 8px 0 0;
    font-size: 0.9rem;
    opacity: 0.72;
}

.project-menu-wrap {
    position: relative;
}

.project-actions {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    padding: 7px;
    border: 1px solid rgba(111, 60, 136, 0.14);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(45, 25, 55, 0.14);
}

.project-actions[hidden] {
    display: none;
}

.project-actions form {
    margin: 0;
}

.project-action-button {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.project-action-button:hover,
.project-action-button:focus-visible {
    background: rgba(111, 60, 136, 0.08);
}

.project-action-button.danger {
    color: #a62940;
}

.project-card[hidden],
.yarn-item[hidden] {
    display: none;
}

.flash-stack {
    pointer-events: none;
}

.flash-message {
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.flash-message.flash-hide {
    opacity: 0;
    transform: translateY(-6px);
}

@media (max-width: 640px) {
    .dashboard-search-row {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-search-row .text-button {
        align-self: flex-start;
    }
}


/* =======================================================
   MimiStitch v1.2.1 - Native Functional Controls
======================================================= */

.native-button-link,
.native-text-link,
.native-icon-link,
.native-project-action-link,
.native-assistant-link {
    text-decoration: none;
}

.native-button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.native-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.native-text-link {
    display: inline-block;
}

.native-top-actions {
    align-items: center;
}

.native-search-card {
    margin-bottom: 24px;
    padding: 18px 20px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(111, 60, 136, 0.12);
}

.native-search-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.native-search-row {
    display: flex;
    gap: 10px;
}

.native-search-row input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(111, 60, 136, 0.22);
    border-radius: 12px;
    font: inherit;
}

.native-summary {
    list-style: none;
    cursor: pointer;
}

.native-summary::-webkit-details-marker {
    display: none;
}

.project-menu-wrap[open] .native-project-actions {
    display: block;
}

.native-project-actions {
    display: block;
}

.native-project-action-link {
    display: block;
    box-sizing: border-box;
}

.native-row-actions {
    display: flex;
    gap: 6px;
}

.native-row-actions form {
    margin: 0;
}

.native-assistant-link {
    display: inline-flex;
    margin-top: 8px;
    padding: 11px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 700;
}

.native-page {
    width: min(1050px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 70px;
}

.native-page-header {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 24px;
}

.native-page-header h1 {
    margin: 3px 0 0;
    font-family: "Playfair Display", serif;
}

.native-form-card {
    padding: 24px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(45, 25, 55, 0.08);
}

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

.native-form-card label {
    display: grid;
    gap: 7px;
    font-weight: 600;
}

.native-form-card input,
.native-form-card select,
.native-form-card textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    border: 1px solid rgba(111, 60, 136, 0.2);
    border-radius: 11px;
    background: #ffffff;
    font: inherit;
}

.native-form-card textarea {
    min-height: 120px;
    resize: vertical;
}

.native-two-column,
.search-results-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.native-list {
    display: grid;
    gap: 10px;
}

.native-list-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(111, 60, 136, 0.1);
}

.native-list-item p {
    margin: 4px 0 0;
    opacity: 0.7;
}

.assistant-question-card {
    max-width: 720px;
}

.assistant-answer {
    margin-top: 22px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(111, 60, 136, 0.07);
}

.assistant-answer p:last-child {
    margin-bottom: 0;
    line-height: 1.65;
}

.native-search-result {
    display: grid;
    gap: 3px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(111, 60, 136, 0.1);
    color: inherit;
    text-decoration: none;
}

.native-search-result span {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Hidden overlays from the prior modal build must never
   block normal page controls. */
.modal-backdrop:not(.open) {
    pointer-events: none !important;
}

.flash-message {
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.flash-message.flash-hide {
    opacity: 0;
    transform: translateY(-6px);
}

@media (max-width: 760px) {
    .native-two-column,
    .search-results-layout {
        grid-template-columns: 1fr;
    }

    .native-search-row {
        flex-direction: column;
    }

    .native-page-header {
        flex-direction: column;
    }

    .native-top-actions {
        flex-wrap: wrap;
    }
}


/* =======================================================
   MimiStitch 1.2.1 Final Functional UI
======================================================= */

.functional-page {
    width: min(1050px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0 70px;
}

.functional-page-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 26px;
}

.functional-back,
.functional-link,
.functional-icon-link {
    text-decoration: none;
}

.functional-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.functional-card {
    padding: 22px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(111, 60, 136, .12);
}

.functional-project-grid,
.functional-yarn-list {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.functional-project-color {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.functional-form {
    display: grid;
    gap: 14px;
}

.functional-form label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.functional-form input,
.functional-form select,
.functional-form textarea,
.functional-search input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid rgba(111, 60, 136, .2);
    border-radius: 10px;
    font: inherit;
}

.functional-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.functional-delete {
    padding: 11px 14px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    color: #a62940;
    background: rgba(166, 41, 64, .08);
    font: inherit;
    font-weight: 700;
}

.functional-search {
    display: flex;
    gap: 10px;
}

.functional-search input {
    flex: 1;
}

.functional-result {
    display: grid;
    gap: 4px;
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.functional-result span {
    opacity: .7;
}

/* Invisible modals must never block Mimi's clicks. */
.modal-backdrop:not(.open) {
    display: none !important;
    pointer-events: none !important;
}

/* Native project menu fallback */
.project-actions[hidden] {
    display: none;
}

.flash-stack {
    pointer-events: none;
}

@media (max-width: 650px) {

    .functional-page-header,
    .functional-search {
        flex-direction: column;
    }

}


/* ==========================================================
   YARNMATES — INTERIOR BRAND + MIMI REPAIR PASS
   ========================================================== */

:root {
    --ym-bg: #fff8f7;
    --ym-paper: #ffffff;

    --ym-pink: #e86f9b;
    --ym-pink-dark: #c94f7c;
    --ym-pink-soft: #ffe5ed;

    --ym-burgundy: #7f314d;

    --ym-purple: #74408b;
    --ym-purple-dark: #4c265f;
    --ym-purple-soft: #f1e6f5;

    --ym-ink: #332735;
    --ym-muted: #806f80;

    --ym-border: #ecdde5;

    --ym-shadow:
        0 14px 35px rgba(89, 48, 74, .09);
}


/* Main logged-in workspace */

body {
    background:
        radial-gradient(
            circle at top right,
            rgba(232,111,155,.08),
            transparent 28%
        ),
        #fff8f7;
}


/* Sidebar stays dark but becomes more Yarnmates pink/burgundy */

.sidebar {
    background:
        radial-gradient(
            circle at 15% 90%,
            rgba(232,111,155,.30),
            transparent 32%
        ),
        linear-gradient(
            165deg,
            #54233a,
            #321b38
        );
}


nav a:hover,
nav a.active {
    background: rgba(232,111,155,.18);
}


/* Cards */

.stat-card,
.project-card,
.side-card,
.functional-card,
.native-form-card {
    border-color: var(--ym-border);
    box-shadow: var(--ym-shadow);
}


/* Main buttons */

.primary-button {
    background:
        linear-gradient(
            135deg,
            var(--ym-pink),
            var(--ym-burgundy)
        ) !important;

    color:#fff !important;

    border:0 !important;
}


/* Eyebrows */

.eyebrow {
    color:var(--ym-pink-dark) !important;
}


/* Links */

.text-button,
.native-text-link,
.functional-back {
    color:var(--ym-burgundy);
}


/* ==========================================================
   PROJECT MENU
   ========================================================== */

.ym-project-menu {
    position:relative;
    z-index:20;
}


.ym-more-button {
    display:grid;
    place-items:center;

    width:38px;
    height:38px;

    border-radius:50%;

    cursor:pointer;

    color:var(--ym-burgundy);

    background:var(--ym-pink-soft);

    font-size:18px;
    font-weight:900;

    list-style:none;
}


.ym-more-button::-webkit-details-marker {
    display:none;
}


.ym-project-actions {
    position:absolute;

    z-index:100;

    top:44px;
    right:0;

    width:170px;

    padding:8px;

    border:1px solid var(--ym-border);

    border-radius:14px;

    background:#fff;

    box-shadow:
        0 18px 40px rgba(64,31,56,.18);
}


.ym-project-actions a,
.ym-project-actions button {
    width:100%;

    display:block;

    padding:11px 12px;

    border:0;

    border-radius:9px;

    text-align:left;

    text-decoration:none;

    background:transparent;

    color:var(--ym-ink);

    font-weight:700;
}


.ym-project-actions a:hover {
    background:var(--ym-pink-soft);
}


.ym-project-actions .danger {
    color:#a62940;
}


/* ==========================================================
   PROJECT COLOR
   ========================================================== */

.ym-color-controls {
    display:grid;

    grid-template-columns:64px minmax(120px,1fr) auto;

    gap:10px;

    align-items:center;

    margin-top:7px;
}


.ym-color-picker {
    width:64px !important;
    height:46px;

    padding:3px !important;

    border:1px solid var(--ym-border) !important;

    border-radius:10px;

    background:#fff;
}


.ym-color-text {
    min-height:46px;
}


.ym-color-confirm {
    min-height:46px;

    padding:0 17px;

    border:0;

    border-radius:11px;

    background:var(--ym-pink);

    color:#fff;

    font-weight:800;

    cursor:pointer;
}


.ym-color-help {
    display:block;

    margin-top:6px;

    color:var(--ym-muted);

    font-weight:500;
}


/* ==========================================================
   FLASH / SUCCESS MESSAGE
   ========================================================== */

.flash-stack {
    pointer-events:none;
}


.flash-message {
    pointer-events:auto;

    border-color:rgba(232,111,155,.28);

    box-shadow:
        0 15px 40px rgba(79,38,64,.16);
}


.flash-message.success {
    border-left:5px solid #67a67d;
}


.flash-message.error {
    border-left:5px solid #d96c87;
}


/* ==========================================================
   FUNCTIONAL PAGES
   ========================================================== */

.functional-page {
    color:var(--ym-ink);
}


.functional-card {
    background:rgba(255,255,255,.97);
}


.functional-form input,
.functional-form select,
.functional-form textarea,
.native-form-card input,
.native-form-card select,
.native-form-card textarea {
    border-color:var(--ym-border);
}


.functional-form input:focus,
.functional-form select:focus,
.functional-form textarea:focus,
.native-form-card input:focus,
.native-form-card select:focus,
.native-form-card textarea:focus {
    outline:2px solid rgba(232,111,155,.18);

    border-color:var(--ym-pink);
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width:650px) {

    .ym-color-controls {
        grid-template-columns:60px 1fr;
    }

    .ym-color-confirm {
        grid-column:1 / -1;

        width:100%;
    }


    .ym-project-actions {
        right:0;

        width:165px;
    }

}


/* ==========================================================
   YARNMATES LOCAL PROJECT TRACKER
   ========================================================== */

.ym-tracker-page {
    width:min(1150px, calc(100% - 34px));
    margin:0 auto;
    padding:34px 0 80px;
}

.ym-tracker-back {
    display:inline-block;
    margin-bottom:20px;
    color:#7f314d;
    text-decoration:none;
    font-weight:800;
}

.ym-tracker-header {
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:20px;
    margin-bottom:22px;
}

.ym-tracker-header h1 {
    margin:3px 0;
    font-family:"Playfair Display", serif;
    font-size:clamp(2.2rem,5vw,4rem);
}

.ym-tracker-header p {
    margin:4px 0;
}

.ym-tracker-edit {
    padding:11px 16px;
    border-radius:12px;
    background:#ffe5ed;
    color:#7f314d;
    text-decoration:none;
    font-weight:800;
}

.ym-tracker-progress-card {
    padding:25px;
    margin-bottom:18px;
    border:1px solid #ecdde5;
    border-radius:22px;
    background:#fff;
    box-shadow:0 12px 30px rgba(89,48,74,.07);
}

.ym-progress-top {
    display:flex;
    justify-content:space-between;
    gap:20px;
}

.ym-progress-top > div {
    display:grid;
    gap:4px;
}

.ym-progress-top span {
    color:#806f80;
}

.ym-progress-top strong {
    font-size:1.65rem;
}

.ym-progress-bar {
    height:14px;
    margin:18px 0;
    overflow:hidden;
    border-radius:999px;
    background:#f3e5eb;
}

.ym-progress-bar div {
    height:100%;
    border-radius:inherit;
    background:linear-gradient(
        90deg,
        #e86f9b,
        #7f314d
    );
}

.ym-row-controls {
    display:flex;
    gap:10px;
}

.ym-row-controls form {
    margin:0;
}

.ym-row-controls button {
    padding:10px 18px;
    border:0;
    border-radius:11px;
    background:#7f314d;
    color:white;
    font-weight:800;
}

.ym-project-facts {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin-bottom:18px;
}

.ym-project-facts article {
    display:grid;
    gap:5px;
    padding:17px;
    border:1px solid #ecdde5;
    border-radius:17px;
    background:#fff;
}

.ym-project-facts span {
    color:#806f80;
    font-size:.78rem;
    text-transform:uppercase;
    letter-spacing:.07em;
}

.ym-tracker-card {
    padding:24px;
    margin-bottom:18px;
    border:1px solid #ecdde5;
    border-radius:22px;
    background:#fff;
    box-shadow:0 12px 30px rgba(89,48,74,.06);
}

.ym-tracker-card h2 {
    margin:3px 0 20px;
}

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

.ym-tracker-form {
    display:grid;
    gap:12px;
}

.ym-tracker-form label {
    display:grid;
    gap:6px;
    font-weight:700;
}

.ym-tracker-form input,
.ym-tracker-form textarea {
    width:100%;
    padding:12px;
    border:1px solid #ecdde5;
    border-radius:11px;
    font:inherit;
}

.ym-notes {
    white-space:pre-wrap;
    line-height:1.65;
}

.ym-materials {
    display:grid;
    gap:9px;
    margin-top:20px;
}

.ym-material {
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    padding:12px;
    border-radius:12px;
    background:#fff6f9;
}

.ym-material > div {
    display:grid;
    gap:2px;
}

.ym-material span,
.ym-material small {
    color:#806f80;
}

.ym-remove {
    border:0;
    background:transparent;
    color:#a62940;
    font-size:1.35rem;
}

.ym-journal {
    display:grid;
    grid-template-columns:
        repeat(auto-fit,minmax(230px,1fr));
    gap:16px;
}

.ym-journal-entry {
    overflow:hidden;
    border:1px solid #ecdde5;
    border-radius:16px;
    background:#fffafd;
}

.ym-journal-entry img {
    display:block;
    width:100%;
    height:225px;
    object-fit:cover;
}

.ym-journal-entry > div {
    padding:15px;
}

.ym-journal-entry p {
    white-space:pre-wrap;
}

.ym-journal-entry small {
    color:#806f80;
}

.ym-delete-update {
    margin-top:10px;
    padding:0;
    border:0;
    background:transparent;
    color:#a62940;
    font-weight:700;
}

.ym-empty {
    color:#806f80;
}

.ym-empty-large {
    display:grid;
    gap:5px;
    padding:25px;
    text-align:center;
    border:1px dashed #dbc8d1;
    border-radius:15px;
}

.ym-finish-project {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:22px;
    border-radius:19px;
    color:#fff;
    background:#3d2937;
}

.ym-finish-project > div {
    display:grid;
    gap:4px;
}

.ym-finish-project span {
    opacity:.75;
}

.ym-finish-project button {
    padding:12px 17px;
    border:0;
    border-radius:11px;
    background:#e86f9b;
    color:#fff;
    font-weight:800;
}

.ym-project-complete {
    padding:22px;
    border-radius:17px;
    text-align:center;
    background:#e4f2e8;
    color:#356a4d;
    font-weight:800;
}

.ym-open-tracker {
    display:flex;
    justify-content:center;
    margin:15px 0 12px;
    padding:11px 15px;
    border-radius:11px;
    color:#fff;
    text-decoration:none;
    font-weight:800;
    background:linear-gradient(
        135deg,
        #e86f9b,
        #7f314d
    );
}

@media (max-width:760px) {

    .ym-tracker-header {
        align-items:flex-start;
        flex-direction:column;
    }

    .ym-project-facts {
        grid-template-columns:1fr 1fr;
    }

    .ym-tracker-columns {
        grid-template-columns:1fr;
    }

}

@media (max-width:480px) {

    .ym-tracker-page {
        width:calc(100% - 22px);
    }

    .ym-progress-top {
        flex-direction:column;
    }

    .ym-row-controls button {
        min-width:100px;
    }

    .ym-finish-project {
        align-items:stretch;
        flex-direction:column;
    }

    .ym-finish-project button {
        width:100%;
    }

}


/* ==========================================================
   YARNMATES — COMPLETE WORKSPACE CONNECTION PASS
   ========================================================== */


.ym-workspace-nav {
    display:grid;
    grid-template-columns:
        repeat(5, minmax(0,1fr));

    gap:12px;

    margin:
        8px
        0
        24px;
}


.ym-workspace-nav a {
    display:flex;
    flex-direction:column;

    gap:4px;

    min-height:82px;

    padding:16px;

    border:
        1px solid
        var(--ym-border, #ecdde5);

    border-radius:16px;

    background:#fff;

    color:
        var(--ym-ink, #332735);

    text-decoration:none;

    box-shadow:
        0 8px 24px
        rgba(89,48,74,.05);

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease;
}


.ym-workspace-nav a:hover {
    transform:translateY(-2px);

    border-color:
        var(--ym-pink, #e86f9b);

    box-shadow:
        0 12px 28px
        rgba(89,48,74,.10);
}


.ym-workspace-nav span {
    font-weight:850;
}


.ym-workspace-nav small {
    color:
        var(--ym-muted, #806f80);

    line-height:1.3;
}


.ym-workspace-nav-primary {
    background:
        linear-gradient(
            135deg,
            #fff,
            #fff1f6
        ) !important;

    border-color:
        rgba(
            232,
            111,
            155,
            .32
        ) !important;
}



/* ==========================================================
   PROJECT TRACKING CTA
   ========================================================== */

.ym-track-cta {
    display:flex;

    justify-content:space-between;
    align-items:center;

    gap:24px;

    margin:
        0
        0
        26px;

    padding:
        24px
        26px;

    border-radius:22px;

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(
                232,
                111,
                155,
                .22
            ),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #fff,
            #fff7fa
        );

    border:
        1px solid
        #ecdde5;

    box-shadow:
        0 14px 34px
        rgba(89,48,74,.07);
}


.ym-track-cta h2 {
    margin:
        3px
        0
        7px;

    font-size:
        clamp(
            1.45rem,
            3vw,
            2rem
        );
}


.ym-track-cta p {
    margin-bottom:0;

    color:
        var(--ym-muted, #806f80);
}


.ym-track-cta-buttons {
    display:flex;

    gap:10px;

    flex-shrink:0;
}


.ym-track-main-button,
.ym-track-secondary-button {
    display:inline-flex;

    align-items:center;
    justify-content:center;

    min-height:46px;

    padding:
        0
        18px;

    border-radius:12px;

    font-weight:850;

    text-decoration:none;

    white-space:nowrap;
}


.ym-track-main-button {
    color:#fff;

    background:
        linear-gradient(
            135deg,
            #e86f9b,
            #7f314d
        );
}


.ym-track-secondary-button {
    color:#7f314d;

    background:#ffe7ef;
}



/* ==========================================================
   BLOG
   ========================================================== */

.ym-blog-page,
.ym-article-page {
    width:
        min(
            1100px,
            calc(100% - 34px)
        );

    margin:0 auto;

    padding:
        38px
        0
        80px;
}


.ym-page-return,
.ym-page-return a {
    color:#7f314d;

    font-weight:800;

    text-decoration:none;
}


.ym-blog-hero {
    padding:
        36px
        0
        28px;

    max-width:720px;
}


.ym-blog-hero h1 {
    margin:
        5px
        0
        10px;

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(
            2.3rem,
            7vw,
            4.8rem
        );

    line-height:1;
}


.ym-blog-hero > p:last-child {
    color:
        var(--ym-muted, #806f80);

    font-size:1.08rem;
}


.ym-blog-grid {
    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                250px,
                1fr
            )
        );

    gap:18px;
}


.ym-blog-card {
    overflow:hidden;

    border:
        1px solid
        #ecdde5;

    border-radius:20px;

    background:#fff;

    box-shadow:
        0 12px 30px
        rgba(89,48,74,.06);
}


.ym-blog-card > img {
    display:block;

    width:100%;
    height:220px;

    object-fit:cover;
}


.ym-blog-card-body {
    padding:20px;
}


.ym-blog-category {
    display:inline-block;

    margin-bottom:8px;

    color:#c94f7c;

    font-size:.74rem;

    font-weight:850;

    letter-spacing:.08em;

    text-transform:uppercase;
}


.ym-blog-card h2 {
    margin:
        0
        0
        9px;
}


.ym-blog-card p {
    color:#806f80;

    line-height:1.55;
}


.ym-blog-read {
    display:inline-block;

    margin-top:8px;

    color:#7f314d;

    font-weight:850;

    text-decoration:none;
}


.ym-blog-empty {
    padding:34px;

    border:
        1px dashed
        #d9c3cf;

    border-radius:20px;

    text-align:center;

    background:#fff;
}


.ym-article-page {
    max-width:820px;
}


.ym-article-header {
    padding:
        34px
        0
        22px;
}


.ym-article-header h1 {
    margin:
        4px
        0
        12px;

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(
            2.1rem,
            6vw,
            4rem
        );

    line-height:1.04;
}


.ym-article-summary {
    color:#806f80;

    font-size:1.1rem;

    line-height:1.6;
}


.ym-article-image {
    display:block;

    width:100%;

    max-height:480px;

    object-fit:cover;

    margin-bottom:28px;

    border-radius:20px;
}


.ym-article-body {
    font-size:1.04rem;

    line-height:1.75;
}


.ym-article-body p {
    margin:
        0
        0
        19px;
}


.ym-video-link {
    margin-top:28px;
}


.ym-video-link a {
    display:inline-flex;

    padding:
        11px
        17px;

    border-radius:11px;

    background:#7f314d;

    color:#fff;

    text-decoration:none;

    font-weight:800;
}


.ym-global-blog-link {
    text-decoration:none;
}


.flash-message {
    max-width:
        min(
            420px,
            calc(100vw - 28px)
        );

    transition:
        opacity .3s ease,
        transform .3s ease;
}


.flash-message.flash-hide {
    opacity:0;

    transform:
        translateY(-8px);
}


@media (max-width:900px) {

    .ym-workspace-nav {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }


    .ym-workspace-nav a:first-child {
        grid-column:
            1 / -1;
    }


    .ym-track-cta {
        align-items:flex-start;

        flex-direction:column;
    }


    .ym-track-cta-buttons {
        width:100%;
    }


    .ym-track-main-button,
    .ym-track-secondary-button {
        flex:1;
    }

}


@media (max-width:520px) {

    .ym-workspace-nav {
        grid-template-columns:
            1fr;
    }


    .ym-workspace-nav a:first-child {
        grid-column:auto;
    }


    .ym-track-cta {
        padding:20px;
    }


    .ym-track-cta-buttons {
        flex-direction:column;
    }


    .ym-track-main-button,
    .ym-track-secondary-button {
        width:100%;
    }


    .ym-blog-page,
    .ym-article-page {
        width:
            calc(100% - 22px);

        padding-top:24px;
    }

}


/* ==========================================================
   YARNMATES BLOG ADMIN
   ========================================================== */

.ym-dashboard-tools {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin:-12px 0 26px;
}

.ym-dashboard-tools a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:0 15px;
    border:1px solid #ecdde5;
    border-radius:11px;
    background:#fff;
    color:#7f314d;
    text-decoration:none;
    font-weight:800;
}

.ym-blog-admin,
.ym-blog-editor {
    width:min(
        1100px,
        calc(100% - 34px)
    );
    margin:0 auto;
    padding:36px 0 80px;
}

.ym-admin-heading {
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:20px;
    margin-bottom:18px;
}

.ym-admin-heading h1,
.ym-editor-heading h1 {
    margin:4px 0;
    font-family:"Playfair Display", serif;
    font-size:clamp(
        2.2rem,
        6vw,
        4rem
    );
}

.ym-admin-back {
    display:inline-block;
    margin-bottom:18px;
    color:#7f314d;
    text-decoration:none;
    font-weight:800;
}

.ym-admin-new {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:0 18px;
    border-radius:12px;
    color:#fff;
    text-decoration:none;
    font-weight:850;
    background:linear-gradient(
        135deg,
        #e86f9b,
        #7f314d
    );
}

.ym-admin-blog-actions {
    display:flex;
    gap:10px;
    margin-bottom:20px;
}

.ym-admin-blog-actions a {
    color:#7f314d;
    font-weight:800;
}

.ym-admin-post-list {
    display:grid;
    gap:12px;
}

.ym-admin-post {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    padding:20px;
    border:1px solid #ecdde5;
    border-radius:18px;
    background:#fff;
    box-shadow:
        0 10px 28px
        rgba(89,48,74,.05);
}

.ym-admin-post-main {
    min-width:0;
}

.ym-admin-post-main h2 {
    margin:7px 0 5px;
}

.ym-admin-post-main p {
    margin-bottom:0;
    color:#806f80;
}

.ym-admin-post-top {
    display:flex;
    gap:7px;
    flex-wrap:wrap;
}

.ym-status,
.ym-featured-label {
    display:inline-flex;
    padding:4px 9px;
    border-radius:999px;
    font-size:.72rem;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.04em;
}

.ym-status-published {
    background:#e4f2e8;
    color:#356a4d;
}

.ym-status-draft {
    background:#f0e9ed;
    color:#695b65;
}

.ym-featured-label {
    background:#ffe5ef;
    color:#a62f60;
}

.ym-admin-post-buttons {
    display:flex;
    align-items:center;
    gap:7px;
    flex-wrap:wrap;
    flex-shrink:0;
}

.ym-admin-post-buttons a,
.ym-admin-post-buttons button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    padding:0 12px;
    border:1px solid #e3d3dc;
    border-radius:9px;
    background:#fff;
    color:#6f314d;
    text-decoration:none;
    font:inherit;
    font-weight:800;
    cursor:pointer;
}

.ym-admin-post-buttons .danger {
    color:#a12c45;
}

.ym-editor-heading {
    margin-bottom:22px;
}

.ym-blog-form {
    margin:0;
}

.ym-editor-layout {
    display:grid;
    grid-template-columns:
        minmax(0, 1fr)
        300px;
    gap:18px;
    align-items:start;
}

.ym-editor-main,
.ym-editor-sidebar {
    display:grid;
    gap:16px;
    padding:22px;
    border:1px solid #ecdde5;
    border-radius:20px;
    background:#fff;
    box-shadow:
        0 10px 30px
        rgba(89,48,74,.05);
}

.ym-editor-main label,
.ym-editor-sidebar label {
    display:grid;
    gap:7px;
    font-weight:800;
}

.ym-editor-main input,
.ym-editor-main textarea,
.ym-editor-sidebar input,
.ym-editor-sidebar select {
    width:100%;
    padding:12px 13px;
    border:1px solid #dfcdd7;
    border-radius:11px;
    background:#fff;
    color:#332735;
    font:inherit;
}

.ym-body-editor {
    min-height:430px;
    resize:vertical;
    line-height:1.55;
}

.ym-check-label {
    display:flex !important;
    grid-template-columns:none !important;
    flex-direction:row;
    align-items:center;
    gap:8px !important;
    font-weight:700 !important;
}

.ym-check-label input {
    width:auto !important;
}

.ym-current-blog-image img {
    display:block;
    width:100%;
    max-height:170px;
    object-fit:cover;
    margin-bottom:8px;
    border-radius:12px;
}

.ym-save-blog {
    width:100%;
    min-height:48px;
    border:0;
    border-radius:12px;
    background:linear-gradient(
        135deg,
        #e86f9b,
        #7f314d
    );
    color:#fff;
    font-weight:850;
    font-size:1rem;
    cursor:pointer;
}

@media (max-width:780px) {

    .ym-admin-heading {
        align-items:flex-start;
        flex-direction:column;
    }

    .ym-admin-new {
        width:100%;
    }

    .ym-admin-post {
        align-items:stretch;
        flex-direction:column;
    }

    .ym-admin-post-buttons {
        width:100%;
    }

    .ym-admin-post-buttons a,
    .ym-admin-post-buttons form,
    .ym-admin-post-buttons button {
        flex:1;
    }

    .ym-admin-post-buttons form {
        display:flex;
    }

    .ym-admin-post-buttons button {
        width:100%;
    }

    .ym-editor-layout {
        grid-template-columns:1fr;
    }

}

@media (max-width:520px) {

    .ym-blog-admin,
    .ym-blog-editor {
        width:calc(100% - 22px);
        padding-top:24px;
    }

}


/* ==========================================================
   YARNMATES — TRACKING VISIBILITY FIX
   ========================================================== */

.ym-top-tracking-actions {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin:12px 0 18px;
}

.ym-top-tracking-actions a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:0 16px;
    border-radius:10px;
    text-decoration:none;
    font-weight:800;
    line-height:1;
}

.ym-top-track-primary {
    background:#5c2c70;
    color:#fff;
}

.ym-top-track-primary:hover {
    filter:brightness(1.05);
}

.ym-top-track-secondary {
    background:#fff;
    color:#5c2c70;
    border:1px solid #ded2e3;
}

.ym-sidebar-track-link {
    position:relative;
    font-weight:700;
}

.ym-sidebar-track-link::after {
    content:"TRACK";
    margin-left:auto;
    padding:2px 6px;
    border-radius:999px;
    background:rgba(255,255,255,.15);
    color:#fff;
    font-size:.58rem;
    font-weight:800;
    letter-spacing:.06em;
}

.ym-sidebar-sub-link {
    opacity:.88;
}

@media (max-width:650px) {

    .ym-top-tracking-actions {
        display:grid;
        grid-template-columns:1fr;
    }

    .ym-top-tracking-actions a {
        width:100%;
    }

}

.ym-workspace-nav,
.ym-track-cta,
.ym-dashboard-tools {
    display:none !important;
}



/* ==========================================================
   YARNMATES — LIVE PROJECT TRACKING UI
   ========================================================== */

.live-tracking-actions {
    display:flex !important;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin-top:12px;
    margin-bottom:16px;
}

.live-tracking-actions a {
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:0 16px;
    border-radius:10px;
    font-weight:800;
    text-decoration:none;
    font-size:.92rem;
}

.live-track-projects {
    background:#5b286c !important;
    color:#fff !important;
    border:1px solid #5b286c !important;
}

.live-start-project {
    background:#fff !important;
    color:#5b286c !important;
    border:1px solid #ded1e2 !important;
}

.live-track-projects:hover,
.live-start-project:hover {
    transform:translateY(-1px);
}


/* Sidebar tracking item */

.live-sidebar-track {
    display:flex !important;
    align-items:center;
    gap:12px;
    width:100%;
    position:relative;
}

.live-sidebar-track small {
    margin-left:auto;
    padding:2px 6px;
    border-radius:999px;
    background:rgba(255,255,255,.14);
    color:#fff;
    font-size:.56rem;
    font-weight:900;
    letter-spacing:.07em;
}

.live-track-icon {
    width:18px;
    text-align:center;
}


/* Make sure older experimental UI stays gone */

.ym-workspace-nav,
.ym-track-cta,
.ym-dashboard-tools {
    display:none !important;
}


/* Mobile */

@media (max-width:650px) {

    .live-tracking-actions {
        display:grid !important;
        grid-template-columns:1fr;
    }

    .live-tracking-actions a {
        width:100%;
    }

}


/* ==========================================================
   YARNMATES — MIMI USABILITY PASS
   ========================================================== */


.ym-library-page,
.ym-form-page {

    width:min(1180px, 100%);

    margin:0 auto;

    padding:
        28px
        24px
        60px;

}


.ym-library-header {

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:24px;

    margin-bottom:28px;

}


.ym-library-header h1,
.ym-form-header h1 {

    margin:
        5px
        0
        8px;

}


.ym-library-header p {

    max-width:650px;

}


.ym-project-library,
.ym-yarn-grid {

    display:grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(
                290px,
                1fr
            )
        );

    gap:22px;

}


.ym-library-card,
.ym-yarn-card {

    overflow:hidden;

    border:
        1px
        solid
        #ecdde5;

    border-radius:22px;

    background:#fff;

    box-shadow:
        0
        12px
        30px
        rgba(
            80,
            45,
            70,
            .08
        );

}


.ym-project-color-bar {

    height:12px;

}


.ym-library-card-body,
.ym-yarn-card-body {

    padding:20px;

}


.ym-library-card-top,
.ym-yarn-heading {

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:12px;

}


.ym-chip,
.ym-project-status {

    display:inline-block;

    padding:
        5px
        9px;

    margin-right:5px;

    border-radius:999px;

    font-size:.78rem;

    font-weight:800;

}


.ym-chip {

    background:#f4e9f7;

    color:#74408b;

}


.ym-project-status {

    background:#ffe8ef;

    color:#a13d63;

}


.ym-edit-link,
.ym-card-action {

    color:#7f314d;

    font-weight:800;

    text-decoration:none;

}


.ym-detail-row {

    display:flex;

    justify-content:space-between;

    gap:20px;

    padding:
        9px
        0;

    border-bottom:
        1px
        solid
        #f0e6eb;

}


.ym-detail-row strong {

    color:#574656;

}


.ym-detail-row span {

    text-align:right;

    color:#756675;

}


.ym-progress-heading {

    display:flex;

    justify-content:space-between;

    margin-top:18px;

    margin-bottom:7px;

}


.ym-progress-track {

    height:9px;

    overflow:hidden;

    border-radius:999px;

    background:#eee6ee;

}


.ym-progress-fill {

    height:100%;

    border-radius:999px;

    background:
        linear-gradient(
            90deg,
            #e86f9b,
            #7f314d
        );

}


.ym-row-summary {

    display:flex;

    flex-wrap:wrap;

    gap:18px;

    margin-top:15px;

    color:#756675;

}


.ym-project-notes,
.ym-yarn-care {

    margin-top:18px;

    padding:14px;

    border-radius:14px;

    background:#fff6f8;

}


.ym-project-notes p,
.ym-yarn-care p {

    margin:
        7px
        0
        0;

    white-space:pre-wrap;

}


.ym-empty-small {

    color:#9a8c98;

}


.ym-card-action {

    display:inline-block;

    margin-top:17px;

}


.ym-empty-state {

    padding:
        50px
        24px;

    text-align:center;

    border:
        1px
        dashed
        #ddc9d4;

    border-radius:22px;

    background:#fff;

}


.ym-yarn-visual {

    height:220px;

    overflow:hidden;

    background:#f6edf2;

}


.ym-yarn-visual img {

    display:block;

    width:100%;

    height:100%;

    object-fit:cover;

}


.ym-yarn-swatch-large {

    width:100%;

    height:100%;

}


.ym-mini-swatch {

    flex:
        0
        0
        auto;

    width:34px;

    height:34px;

    border-radius:50%;

    border:
        3px
        solid
        #fff;

    box-shadow:
        0
        0
        0
        1px
        #dfd1d9;

}


.ym-yarn-brand {

    margin:
        0
        0
        3px;

    color:#967f90;

    font-size:.78rem;

    font-weight:800;

    text-transform:uppercase;

    letter-spacing:.06em;

}


.ym-yarn-heading h2 {

    margin:
        0
        0
        12px;

}


.ym-yarn-numbers {

    display:grid;

    grid-template-columns:
        1fr
        1fr;

    gap:10px;

    margin-top:17px;

}


.ym-yarn-numbers div {

    padding:12px;

    border-radius:13px;

    background:#f9f4f7;

}


.ym-yarn-numbers span,
.ym-yarn-numbers strong {

    display:block;

}


.ym-yarn-numbers span {

    color:#887785;

    font-size:.8rem;

}


.ym-yarn-actions {

    display:flex;

    gap:10px;

    margin-top:18px;

}


.ym-yarn-actions form {

    margin:0;

}


.ym-edit-button,
.ym-delete-button,
.ym-secondary-button {

    min-height:42px;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:
        0
        16px;

    border-radius:11px;

    font-weight:800;

    text-decoration:none;

    cursor:pointer;

}


.ym-edit-button {

    border:
        1px
        solid
        #d9c4cf;

    background:#fff;

    color:#7f314d;

}


.ym-delete-button {

    border:
        1px
        solid
        #efccd3;

    background:#fff4f6;

    color:#a12d47;

}


.ym-secondary-button {

    border:
        1px
        solid
        #d9c4cf;

    background:#fff;

    color:#604c5d;

}


.ym-form-header {

    margin-bottom:22px;

}


.ym-yarn-form {

    padding:24px;

    border:
        1px
        solid
        #ecdde5;

    border-radius:22px;

    background:#fff;

    box-shadow:
        0
        12px
        30px
        rgba(
            80,
            45,
            70,
            .08
        );

}


.ym-form-grid {

    display:grid;

    grid-template-columns:
        1fr
        1fr;

    gap:18px;

}


.ym-field {

    display:flex;

    flex-direction:column;

    gap:7px;

    color:#4e3e4b;

    font-weight:800;

}


.ym-field input,
.ym-field textarea,
.ym-field select {

    width:100%;

    min-height:48px;

    padding:
        11px
        13px;

    border:
        1px
        solid
        #dfd2d9;

    border-radius:11px;

    background:#fff;

    color:#362a34;

    font:inherit;

    font-weight:500;

    box-sizing:border-box;

}


.ym-field textarea {

    min-height:100px;

    resize:vertical;

}


.ym-field small {

    color:#857582;

    font-weight:500;

}


.ym-full-field {

    grid-column:
        1
        /
        -1;

}


.ym-stash-color {

    display:grid;

    grid-template-columns:
        70px
        1fr;

    gap:12px;

    align-items:center;

}


.ym-stash-color input[type="color"] {

    width:70px;

    padding:4px;

}


.ym-stash-color span {

    color:#857582;

    font-size:.88rem;

    font-weight:500;

}


.ym-current-yarn-photo {

    display:flex;

    flex-direction:column;

    gap:10px;

}


.ym-current-yarn-photo img {

    width:220px;

    max-width:100%;

    max-height:220px;

    object-fit:cover;

    border-radius:16px;

}


.ym-remove-photo {

    display:flex;

    flex-direction:row;

    align-items:center;

    gap:8px;

}


.ym-remove-photo input {

    width:auto;

    min-height:auto;

}


.ym-form-actions {

    display:flex;

    justify-content:flex-end;

    gap:12px;

    margin-top:25px;

}


@media (max-width:700px) {


    .ym-library-page,
    .ym-form-page {

        padding:
            20px
            14px
            50px;

    }


    .ym-library-header {

        display:block;

    }


    .ym-library-header .primary-button {

        display:flex;

        width:100%;

        margin-top:16px;

        justify-content:center;

        box-sizing:border-box;

    }


    .ym-project-library,
    .ym-yarn-grid {

        grid-template-columns:1fr;

    }


    .ym-form-grid {

        grid-template-columns:1fr;

    }


    .ym-full-field {

        grid-column:auto;

    }


    .ym-yarn-form {

        padding:
            18px
            14px;

    }


    .ym-detail-row {

        display:block;

    }


    .ym-detail-row span {

        display:block;

        margin-top:4px;

        text-align:left;

    }


    .ym-form-actions {

        flex-direction:column-reverse;

    }


    .ym-form-actions > * {

        width:100%;

        box-sizing:border-box;

    }


    .ym-yarn-actions {

        width:100%;

    }


    .ym-yarn-actions > *,
    .ym-yarn-actions form,
    .ym-yarn-actions button {

        flex:1;

    }


    .ym-yarn-visual {

        height:190px;

    }


}


/* YARNMATES_LIVE_FIX_V2_START */


/* Yarn cards */

.ym-yarn-card {
    overflow: hidden;
    min-width: 0;
}


/* Yarn images */

.ym-yarn-card img,
.ym-current-yarn-photo img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}


/* Forms */

.ym-form input,
.ym-form select,
.ym-form textarea,
form input,
form select,
form textarea {
    max-width: 100%;
}


/* Prevent overflowing controls */

button,
a,
input,
select,
textarea {
    box-sizing: border-box;
}


/* Row counter buttons */

.native-row-actions button,
.row-counter button {
    touch-action: manipulation;
}


/* Mobile */

@media (max-width: 700px) {

    .ym-yarn-grid,
    .projects-grid,
    .project-grid {
        grid-template-columns: 1fr !important;
    }

    .ym-yarn-card {
        width: 100%;
    }

    .ym-detail-row {
        grid-template-columns: 1fr !important;
    }

    .native-row-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

}


/* YARNMATES_LIVE_FIX_V2_END */

