.tlr-jd-shell {
    max-width: 1280px;
    margin: 40px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    font-family: Georgia, "Times New Roman", serif;
}

.tlr-jd-editor-panel,
.tlr-jd-assistant-panel {
    background: #fff;
    border: 1px solid #ddd;
    padding: 22px;
}

.tlr-jd-header h1 {
    font-family: "Crimson Text", Georgia, serif;
    font-size: 42px;
    margin: 0 0 6px;
}

.tlr-jd-header p,
.tlr-jd-muted {
    color: #666;
}

.tlr-jd-toolbar {
    display: flex;
    gap: 10px;
    margin: 18px 0;
    flex-wrap: wrap;
}

.tlr-jd-toolbar button,
.tlr-jd-actions button {
    background: #8b0000;
    color: #fff;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: bold;
}

.tlr-jd-toolbar button:hover,
.tlr-jd-actions button:hover {
    background: #5f0000;
}

#tlr-jd-editor {
    width: 100%;
    min-height: 760px;
    padding: 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.75;
    border: 1px solid #ccc;
}

.tlr-jd-assistant-panel h2 {
    font-family: "Crimson Text", Georgia, serif;
    font-size: 30px;
    margin-top: 0;
}

.tlr-jd-note {
    background: #fff8e5;
    border-left: 4px solid #b88a00;
    padding: 12px;
    margin-bottom: 18px;
}

.tlr-jd-card {
    border: 1px solid #ddd;
    background: #fafafa;
    padding: 14px;
    margin-bottom: 14px;
}

.tlr-jd-card h3 {
    font-family: "Crimson Text", Georgia, serif;
    font-size: 21px;
    margin: 0 0 8px;
}

.tlr-jd-citation {
    font-weight: bold;
}

.tlr-jd-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.tlr-jd-actions a {
    color: #8b0000;
    font-weight: bold;
    text-decoration: none;
}

.tlr-jd-error {
    color: #8b0000;
    font-weight: bold;
}

@media (max-width: 900px) {
    .tlr-jd-shell {
        grid-template-columns: 1fr;
    }

    #tlr-jd-editor {
        min-height: 520px;
    }
}
