.crodymi-study-shell {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    background: #ffffff;
    max-width: 900px;
    margin: 16px auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.crodymi-study-header-bar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 12px;
}
.crodymi-study-header-bar .crodymi-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
}
.crodymi-study-config {
    border-radius: 12px;
    background: #f9fafb;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
}
.crodymi-note h3 {
    margin-top: 0;
    font-size: 1rem;
    margin-bottom: 6px;
}
.crodymi-note ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.9rem;
    color: #4b5563;
}
.crodymi-config-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.crodymi-config-item label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 2px;
}
.crodymi-config-item select {
    width: 100%;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #ffffff;
}
.crodymi-config-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}
.crodymi-btn,
.crodymi-btn-sm {
    border-radius: 999px;
    padding: 6px 12px;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}
.crodymi-btn-primary {
    background: #22c55e;
    color: #022c22;
    font-weight: 600;
}
.crodymi-btn-primary:hover {
    background: #16a34a;
    transform: translateY(-1px);
}
.crodymi-btn-ghost {
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
}
.crodymi-btn-ghost:hover {
    background: #f3f4f6;
}
.crodymi-btn-sm {
    background: #e5e7eb;
    color: #111827;
    font-size: 0.8rem;
    padding: 4px 10px;
}
.crodymi-btn-sm:hover {
    background: #d1d5db;
}
.crodymi-btn[disabled],
.crodymi-btn-sm[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.crodymi-session-wrapper {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 12px;
    background: #f9fafb;
}
.crodymi-nav-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.crodymi-nav-left,
.crodymi-nav-right {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.crodymi-question-layout {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 12px;
}
.crodymi-diagram-slot {
    margin: 4px 0;
    text-align: center;
}
.crodymi-diagram img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
.crodymi-question-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}
@media (min-width: 800px) {
    .crodymi-question-body {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr) minmax(0, 0.8fr);
    }
}
.crodymi-question-main {
    text-align: left;
}
.crodymi-question-meta {
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}
.crodymi-question-text {
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.crodymi-answer-form {
    margin-bottom: 8px;
}
.crodymi-choice {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.crodymi-short-input {
    width: 100%;
    font-size: 0.9rem;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}
.crodymi-feedback {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 6px;
}
.crodymi-correct {
    color: #16a34a;
}
.crodymi-incorrect {
    color: #dc2626;
}
.crodymi-explanation-block {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.9rem;
    color: #4b5563;
}
