* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f7e7e7;
    color: #3C3335;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-footer {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.75);
    border-top: 1px solid #EFE4E6;
    color: #5F3C3C;
}

.site-footer__inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer p {
    margin: 0;
    font-size: 13px;
    color: #5F3C3C;
}

.site-footer__links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.site-footer__links a {
    color: #5F3C3C;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.site-footer__links a:hover {
    text-decoration: underline;
}

/* Common Logo Styles */
.logo {
    height: 42px;
    width: 42px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.site-masthead {
    width: min(1200px, calc(100% - 32px));
    margin: 16px auto 0;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 251, 246, 0.78);
    border: 1px solid rgba(95, 57, 40, 0.14);
    box-shadow: 0 8px 24px rgba(75, 52, 37, 0.08);
    text-decoration: none;
}
.site-brand .logo {
    height: 30px;
    width: 30px;
}

.site-brand .brand-mark {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5f3928;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #FFFFFF;
    padding: 50px 30px;
    border-radius: 24px;
    width: 480px;
    margin: 80px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #EFE4E6;
}

.hero h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero .logo {
    height: 40px;
}

h1 {
    font-size: 38px;
    color: #633C43;
    margin: 0;
}

h2 {
    font-size: 20px;
    color: #4A3337;
    margin-top: 15px;
    margin-bottom: 10px;
}

p {
    color: #6E6366;
    font-size: 15px;
    line-height: 1.5;
}

.container {
    width: 480px;
    margin: 50px auto;
    background: white;
    padding: 36px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #EFE4E6;
}

.container-wide {
    width: 640px;
}

.header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.header .logo {
    height: 45px;
    width: 45px;
}

.header h1 {
    font-size: 28px;
}

.subtitle {
    margin: 4px 0 0 0;
    color: #6E6366;
    font-size: 14px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-weight: 600;
    font-size: 14px;
    color: #4A3337;
}

input, select {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #D1C0C4;
    font-size: 15px;
    background: #FCF8F8;
    outline: none;
}

input:focus, select:focus {
    border-color: #C56B7B;
}

.btn-primary {
    margin-top: 10px;
    padding: 14px 24px;
    border: none;
    border-radius: 30px;
    background-color: #C56B7B;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.btn-primary:hover {
    background-color: #B25A6A;
}

.btn-secondary {
    background-color: #F5EAEB;
    color: #4A3337;
    border: 1px solid #D1C0C4;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #EADADB;
}

/* Legend Builder Styles */
/* Legend Builder Styles & Overflow Fixes */
.legend-rows-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100%;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FCF8F8;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #EFE4E6;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap; /* Prevents controls from overflowing on small screens or high row counts */
}

.legend-row input[type="color"] {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 2px;
    border: 1px solid #D1C0C4;
    border-radius: 8px;
    cursor: pointer;
    background: white;
}

.legend-row input[type="text"],
.legend-row input[type="number"] {
    flex: 1 1 120px; /* Allows inputs to shrink and wrap cleanly if needed */
    min-width: 0;   /* Fixes CSS flexbox text overflow bug */
    padding: 10px 12px;
}

.remove-btn {
    background: #E74C3C;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.remove-btn:hover {
    background: #C0392B;
}

.form-actions {
    margin-top: 10px;
}

/* Dashboard Layout */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 32px;
    background: #FFFFFF;
    border-bottom: 1px solid #EFE4E6;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: #4A3337;
    text-decoration: none;
}

.nav-brand .logo {
    height: 26px;
    width: 26px;
}

.nav-actions {
    display: flex;
    gap: 10px;
}

.btn-ghost {
    background: transparent;
    border: 1px solid #D1C0C4;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    color: #4A3337;
    font-size: 13px;
}

.btn-ghost:hover {
    background: #F5EAEB;
}

.btn-ghost.danger:hover {
    background: #FDE8E8;
    border-color: #E74C3C;
    color: #C0392B;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    padding: 24px 32px;
    max-width: 1300px;
    margin: 0 auto;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #EFE4E6;
}

.card h3, .card h2 {
    margin-top: 0;
    margin-bottom: 14px;
    color: #4A3337;
}

/* Today's Instruction Panel */
.instruction-card {
    position: relative;
    background: #FCF8F8;
}

.badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #8E888E;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.color-swatch-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: white;
    border-radius: 12px;
    border: 1px solid #EFE4E6;
    margin-bottom: 12px;
}

.swatch-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ccc;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subtext {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #6E6366;
}

.instruction-text-box {
    padding: 12px;
    background: #F5EAEB;
    border-radius: 10px;
    color: #3C3335;
    font-size: 14px;
    line-height: 1.4;
}

/* Redesign Override Layer */
:root {
    --bg: #f7f1ea;
    --bg-alt: #eadfcd;
    --surface: rgba(255, 251, 246, 0.92);
    --surface-strong: #fffaf5;
    --surface-soft: #f1e3d4;
    --text: #2e2521;
    --muted: #6e6259;
    --accent: #9a6047;
    --accent-strong: #6b4130;
    --accent-soft: #efdbc9;
    --border: rgba(107, 65, 48, 0.16);
    --shadow: 0 18px 45px rgba(76, 53, 39, 0.12);
    --shadow-soft: 0 8px 24px rgba(76, 53, 39, 0.08);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(230, 197, 176, 0.45), transparent 35%),
        radial-gradient(circle at bottom right, rgba(185, 160, 140, 0.22), transparent 30%),
        linear-gradient(180deg, #fcf9f4 0%, var(--bg) 58%, #efe5db 100%);
    font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
}

.glass-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.landing-shell,
.page-shell,
.dashboard-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 24px auto 40px;
}

.landing-shell {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: stretch;
}

.hero-panel,
.preview-panel,
.setup-rail,
.setup-card,
.dashboard-hero {
    border-radius: var(--radius-lg);
    padding: 32px;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.brand-mark {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-panel h1,
.setup-rail h1,
.setup-card h1,
.dashboard-hero h1,
.preview-card h2 {
    margin: 0;
    color: var(--text);
    line-height: 1.04;
    letter-spacing: -0.03em;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

.hero-panel h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    max-width: 11ch;
}

.setup-rail h1,
.setup-card h1,
.dashboard-hero h1,
.preview-card h2 {
    font-size: clamp(2.1rem, 3vw, 3.1rem);
}

.hero-panel p,
.setup-rail p,
.setup-card p,
.dashboard-hero p,
.preview-card p,
.rail-note p,
.card-help,
.legend-hint {
    color: var(--muted);
    line-height: 1.6;
    font-size: 15px;
}

.hero-actions,
.dashboard-hero-actions,
.legend-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-link {
    color: var(--accent-strong);
    text-decoration: none;
    font-weight: 700;
    padding: 12px 6px;
}

.btn-link:hover {
    text-decoration: underline;
}

.hero-metrics,
.dashboard-hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.hero-metrics div {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border);
}

.hero-metrics strong,
.preview-item strong,
.stepper-item strong,
.rail-note strong,
.card-header-row h3 {
    display: block;
    color: var(--text);
}

.preview-panel {
    display: flex;
    align-items: stretch;
}

.preview-card {
    width: 100%;
    padding: 8px;
}

.preview-stack {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.preview-item,
.stepper-item,
.rail-note,
.card-help,
.legend-hint,
.pill {
    border-radius: var(--radius-sm);
}

.preview-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border);
}

.preview-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    background: var(--accent);
    color: white;
    flex-shrink: 0;
}

.page-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.setup-rail {
    position: sticky;
    top: 24px;
}

.stepper {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}

.stepper-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid var(--border);
}

.stepper-item span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d7c6ba;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.stepper-item.active span,
.stepper-item.done span {
    background: var(--accent);
}

.stepper-item.active {
    border-color: rgba(143, 94, 74, 0.34);
    background: rgba(240, 216, 203, 0.44);
}

.rail-note {
    padding: 16px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--border);
}

.setup-card {
    min-height: 100%;
}

.header-stack {
    margin-bottom: 18px;
}

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

.legend-actions {
    margin-top: 4px;
    justify-content: space-between;
}

.legend-hint {
    display: inline-flex;
    align-items: center;
    max-width: 32ch;
    font-size: 13px;
}

.dashboard-page .navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    background: rgba(255, 250, 244, 0.8);
}

.project-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--border);
}

.project-switcher label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.project-switcher select {
    min-width: 0;
    flex: 1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    padding: 26px 28px;
    margin: 0 0 20px;
}

.dashboard-hero-copy {
    min-width: 0;
}

.dashboard-hero-copy p {
    max-width: 60ch;
}

.dashboard-hero-meta {
    grid-template-columns: repeat(3, max-content);
    justify-content: start;
    margin-top: 18px;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.pill.subtle {
    color: var(--muted);
}

.card-accent {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 239, 230, 0.88));
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.card-help {
    margin-top: 0;
    margin-bottom: 14px;
}

.badge-inline {
    position: static;
}

.dashboard-shell {
    margin-bottom: 44px;
}

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

.btn-link-inline {
    padding: 0;
}

.recent-projects-panel {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

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

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

.recent-project-card {
    display: grid;
    gap: 4px;
    text-align: left;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    cursor: pointer;
    box-shadow: none;
    width: 100%;
}

.recent-project-card strong {
    font-size: 15px;
}

.recent-project-card span {
    color: var(--muted);
    font-size: 13px;
}

.delete-project-mini {
    border: 1px solid #E8C6C1;
    background: #FFF4F3;
    color: #B14A3E;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.delete-project-mini:hover {
    background: #FDE8E8;
}

.empty-state {
    margin: 0;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.6);
    border: 1px dashed var(--border);
    color: var(--muted);
    font-size: 14px;
}

.dashboard-grid {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
}

.dashboard-main .card {
    padding: 22px;
}

.setup-page .container,
.landing-page .container {
    width: auto;
}

.setup-page .header {
    margin-bottom: 0;
}

.header-stack .subtitle {
    max-width: 44ch;
}

input, select {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(111, 68, 52, 0.18);
    font-size: 15px;
    background: rgba(255, 255, 255, 0.82);
    outline: none;
    color: var(--text);
}

input:focus, select:focus {
    border-color: rgba(143, 94, 74, 0.62);
    box-shadow: 0 0 0 4px rgba(143, 94, 74, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 10px 24px rgba(111, 68, 52, 0.22);
}

.btn-primary:hover {
    filter: brightness(1.04);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.78);
    color: var(--text);
    border: 1px solid rgba(111, 68, 52, 0.18);
}

.btn-secondary:hover {
    background-color: rgba(240, 216, 203, 0.7);
}

.navbar {
    background: rgba(255, 250, 244, 0.92);
    border-bottom: 1px solid rgba(111, 68, 52, 0.12);
}

.nav-brand {
    color: var(--text);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(111, 68, 52, 0.18);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(240, 216, 203, 0.7);
}

.card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
}

.instruction-card {
    background: rgba(247, 239, 230, 0.74);
}

.badge {
    background: var(--accent-strong);
}

.color-swatch-box {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border);
}

.swatch-circle {
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.instruction-text-box {
    background: rgba(240, 216, 203, 0.7);
}

.progress-bar-container {
    background: rgba(240, 216, 203, 0.75);
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.stat-number {
    color: var(--text);
}

.stat-label {
    color: var(--muted);
}

.canvas-wrapper {
    background: rgba(255, 255, 255, 0.6);
    border: 1px dashed rgba(111, 68, 52, 0.2);
}

.legend-row {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
}

.legend-row input[type="color"] {
    border: 1px solid rgba(111, 68, 52, 0.18);
}

.remove-btn {
    background: #b65a4e;
}

.remove-btn:hover {
    background: #8c3e35;
}

@media (max-width: 1024px) {
    .landing-shell,
    .page-shell,
    .dashboard-hero,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .landing-shell {
        display: grid;
    }

    .setup-rail {
        position: static;
    }

    .dashboard-hero {
        display: grid;
        align-items: start;
    }
}

@media (max-width: 720px) {
    .landing-shell,
    .page-shell,
    .dashboard-shell {
        width: min(100% - 20px, 100%);
        margin-top: 10px;
    }

    .hero-panel,
    .preview-panel,
    .setup-rail,
    .setup-card,
    .dashboard-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .hero-metrics,
    .dashboard-hero-meta,
    .date-grid {
        grid-template-columns: 1fr;
    }

    .nav-actions,
    .project-switcher,
    .dashboard-hero-actions,
    .hero-actions,
    .legend-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .btn-ghost,
    .btn-primary,
    .btn-secondary,
    .btn-link {
        width: 100%;
        text-align: center;
    }

    .dashboard-grid {
        padding: 16px 10px 24px;
    }

    .navbar {
        padding: 12px 16px;
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .project-switcher {
        min-width: 0;
    }
}

/* Stats */
.progress-bar-container {
    height: 10px;
    background: #F5EAEB;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 14px;
}

.progress-bar-fill {
    height: 100%;
    background: #C56B7B;
    transition: width 0.3s ease;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #4A3337;
}

.stat-label {
    font-size: 11px;
    color: #6E6366;
}

/* Blanket Canvas Container */
.blanket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.canvas-wrapper {
    display: flex;
    justify-content: center;
    background: #FCF8F8;
    border-radius: 14px;
    padding: 20px;
    border: 1px dashed #D1C0C4;
    min-height: 620px;
    max-height: 760px;
    overflow-y: auto;
}

#blanketCanvas {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border-radius: 4px;
}

/* Printable Instructions Styles */
.printable-only {
    display: none;
}

@media print {
    body * {
        visibility: hidden;
    }
    .printable-only, .printable-only * {
        visibility: visible;
    }
    .printable-only {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 20px;
        background: white;
    }
    .print-header h1 {
        margin: 0;
        color: #3C3335;
    }
    .print-legend-grid {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        margin: 15px 0;
        padding: 10px;
        background: #FCF8F8;
        border-radius: 8px;
    }
    .print-legend-item {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
    }
    .print-swatch {
        display: inline-block;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        border: 1px solid #ccc;
    }
    .print-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 15px;
        font-size: 12px;
    }
    .print-table th, .print-table td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: left;
    }
    .print-table th {
        background-color: #F5EAEB;
    }
}

/* Final Screen Overrides */
.progress-bar-container {
    background: rgba(240, 216, 203, 0.75);
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.stat-number {
    color: var(--text);
}

.stat-label {
    color: var(--muted);
}

.canvas-wrapper {
    background: rgba(255, 255, 255, 0.6);
    border: 1px dashed rgba(111, 68, 52, 0.2);
}

.legend-row {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
}

.legend-row input[type="color"] {
    border: 1px solid rgba(111, 68, 52, 0.18);
}

.remove-btn {
    background: #b65a4e;
}

.remove-btn:hover {
    background: #8c3e35;
}

@media print {
    .print-legend-grid {
        background: #fcf7f2;
    }

    .print-table th {
        background-color: #f2dfd4;
    }
}