body {
    margin:0;
    font-family: Arial;
    background:#f4f4f4;
}

.app-header {
    width:100%;
    height:55px;
    background:#0064ff;
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    font-weight:bold;
}

.app {
    max-width:420px;
    margin:auto;
}

.section { margin-bottom:15px; }

.grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
    padding:15px;
}

.card {
    background:white;
    border-radius:16px;
    padding:10px;
    min-height:90px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    box-shadow:0 3px 8px rgba(0,0,0,0.1);
}

.empty { visibility:hidden; }

.section-progress { padding:0 15px; }

.progress-bar {
    height:10px;
    background:#ddd;
    border-radius:10px;
}

#progress-fill {
    height:100%;
    background:#0064ff;
}

.section-cta {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
}

.cta-main {
    width:90%;
    min-height:90px;
    background:#0064ff;
    color:white;
    border:none;
    border-radius:16px;
    font-size:18px;
    font-weight:bold;
    padding:10px;
    line-height:1.3;
}

.cta-main.disabled {
    background:#d1d5db;
    color:#555;
    font-size:14px;
}

.cta-sub {
    width:90%;
    min-height:65px;
    background:#2ecc71;
    color:white;
    border:none;
    border-radius:14px;
}

.cta-buttons {
    display:flex;
    gap:10px;
    padding:15px;
}

.cta.small {
    flex:1;
    padding:12px;
    border:none;
    border-radius:10px;
    background:#0064ff;
    color:white;
}

.cta.small.danger {
    background:#ff3b3b;
}

.modal {
    position:fixed;
    top:0; left:0;
    width:100%; height:100%;
    background:rgba(0,0,0,0.5);
    display:flex;
    justify-content:center;
    align-items:center;
}

.modal-content {
    background:white;
    padding:20px;
    border-radius:16px;
    width:90%;
    max-width:360px;
}

.hidden { display:none; }

#calendar {
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:6px;
}

.day-box {
    border:1px solid #ddd;
    border-radius:10px;
    padding:5px;
    text-align:center;
}

.day-header {
    font-size:12px;
    font-weight:bold;
}

#streak {
    white-space:pre-line;
    font-size:13px;
}