* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 28px;
    color: #333;
    font-weight: 600;
}

.download-btn {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.download-btn:hover {
    background-color: #1d4ed8;
}

.lean-canvas {
    background-color: white;
    border: 2px solid #333;
    border-radius: 4px;
    overflow: hidden;
}

.canvas-row {
    display: flex;
    border-bottom: 2px solid #333;
}

.canvas-row:last-child {
    border-bottom: none;
}

.main-row {
    min-height: 400px;
}

.bottom-row {
    min-height: 150px;
}

.canvas-cell {
    flex: 1;
    border-right: 2px solid #333;
    display: flex;
    flex-direction: column;
    background-color: white;
}

.canvas-cell:last-child {
    border-right: none;
}

.canvas-cell-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 2px solid #333;
}

.canvas-cell-group .canvas-cell {
    flex: 1;
    border-right: none;
}

.canvas-cell-group .canvas-cell:first-child {
    border-bottom: 2px solid #333;
}

/* UVP cell is wider */
.uvp {
    flex: 1.2;
}

.cell-header {
    background-color: #f8f9fa;
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cell-number {
    background-color: #333;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.cell-title {
    font-size: 11px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.canvas-cell textarea {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 13px;
    line-height: 1.5;
    resize: none;
    font-family: inherit;
    color: #333;
}

.canvas-cell textarea:focus {
    outline: none;
    background-color: #fafafa;
}

.canvas-cell textarea::placeholder {
    color: #999;
    font-style: italic;
}

.subsection {
    border-top: 1px dashed #ccc;
    display: flex;
    flex-direction: column;
    flex: 0.6;
}

.subsection-title {
    font-size: 10px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    padding: 8px 12px 0;
    letter-spacing: 0.3px;
}

.subsection textarea {
    flex: 1;
    border: none;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.4;
    resize: none;
    font-family: inherit;
    color: #333;
}

.subsection textarea:focus {
    outline: none;
    background-color: #fafafa;
}

.subsection textarea::placeholder {
    color: #999;
    font-style: italic;
    font-size: 11px;
}

/* Bottom row cells take 50% each */
.bottom-row .canvas-cell {
    flex: 1;
}

.bottom-row .cost {
    border-right: 2px solid #333;
}

/* Print/Export styling */
@media print {
    body {
        padding: 0;
        background: white;
    }

    header {
        display: none;
    }

    .lean-canvas {
        border-radius: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .main-row {
        min-height: 350px;
    }
}

@media (max-width: 900px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 22px;
    }

    .download-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .cell-title {
        font-size: 10px;
    }

    .canvas-cell textarea {
        font-size: 12px;
        padding: 8px;
    }
}
