/* ==============================
   PLANS VIEW
============================== */
.plan-templates-scroll {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-xl);
}
.plan-template-card {
    flex: 0 0 150px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    cursor: pointer;
}
.plan-template-icon {
    font-size: 28px;
    margin-bottom: var(--space-sm);
}
.plan-template-name {
    font-weight: 700;
    font-size: var(--text-sm);
    margin-bottom: 2px;
}
.plan-template-desc {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}
.plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}
.plan-card-title {
    font-weight: 700;
    font-size: var(--text-md);
}
.plan-card-progress-bar {
    height: 6px;
    background: var(--surface2);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: var(--space-sm) 0;
}
.plan-card-progress-fill {
    height: 100%;
    background: var(--primary);
}
.plan-card-sub {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}
.plan-book-chip {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 11px;
    font-family: var(--font-main);
    cursor: pointer;
    color: var(--text);
}
.plan-book-chip.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.plan-book-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    padding: var(--space-sm) 0;
}
.plan-chapters-btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    font-family: var(--font-main);
    font-weight: 700;
    cursor: pointer;
    color: var(--text);
}
.plan-chapters-btn.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}
.plan-day-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--surface);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    border: 1px solid var(--border);
    cursor: pointer;
}
.plan-day-item.done {
    opacity: 0.55;
}
.plan-day-check {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.plan-day-item.done .plan-day-check {
    background: var(--success);
    border-color: var(--success);
    color: white;
}
.plan-day-check .material-icons-round {
    font-size: 16px;
}

/* Plans FAB */
.plans-fab {
    position: fixed;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: var(--space-lg);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 90;
}

/* Plan chapters picker */
.plan-chapters-picker {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}
