/* Cards seguem a borda neutra usada em Questões; a cor fica no conteúdo. */
.discipline-section .discipline-module,.material-card,.materials-area,.list-group .exercise-card{border-top:1px solid var(--theme-border)!important}
.tool-subject-card,.tool-deck-card{border-top:1px solid var(--theme-border)!important}
.profile-hero,.profile-editor,.profile-preview-panel,.social-navigation{border-top:1px solid var(--theme-border)!important}
.profile-heading{border-left:1px solid var(--theme-border)!important}
.tool-heading:not(.profile-heading) .tool-heading-icon,.reference-heading .type-icon.large{border-bottom:0}
.material-card{border-top-width:1px}.material-card-art{border-bottom:4px solid #eceaf2}
.tool-subject-card,.tool-deck-card{padding:0!important;gap:0!important;min-height:0!important;overflow:hidden;display:flex!important;flex-direction:column!important}
.flashcard-card-art{width:100%;height:128px;background:var(--subject-soft);color:var(--subject-color);display:grid;place-items:center;border-bottom:4px solid #eceaf2}.flashcard-card-art .icon{width:62px;height:62px;stroke-width:1.7}.flashcard-card-body{display:flex;flex-direction:column;align-items:flex-start;gap:10px;flex:1;width:100%;padding:18px;min-height:190px}.flashcard-card-body .count-badge{background:var(--subject-soft);color:var(--subject-color)}.flashcard-card-body strong{font-size:17px;color:var(--theme-text)}.flashcard-card-body small{color:var(--theme-muted);font-size:13px}.flashcard-card-body>b{display:block;width:100%;box-sizing:border-box;margin-top:auto;padding:11px;border-radius:10px;text-align:center;background:var(--subject-color);color:white!important;font-size:13px}
.essay-hero-actions{display:flex;align-items:stretch;gap:14px;flex-wrap:wrap;margin-top:24px}.essay-hero-actions .tool-primary,.essay-hero-actions .tool-secondary{min-height:54px;padding:15px 24px}.essay-hero-actions .tool-secondary{background:#fff0c7;color:#4d2f93;border:1px solid #ffdf78}.essay-hero-actions [data-josy-open]{min-width:280px}
.josy-dialog-expanded{width:min(900px,calc(100vw - 28px));max-height:min(90vh,920px)}.josy-dialog-expanded .josy-dialog-top{padding:23px 27px}.josy-dialog-expanded .josy-dialog-top h2{font-size:26px}.josy-dialog-expanded .josy-dialog-content{max-height:calc(90vh - 112px);overflow:auto;padding:23px 27px 28px;gap:20px}.josy-balance-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.josy-balance-strip>div{display:flex;align-items:center;gap:7px;border:1px solid var(--theme-border);background:var(--theme-surface-muted);border-radius:12px;padding:12px 15px}.josy-balance-strip small{font-size:10px;font-weight:800;letter-spacing:.07em;color:var(--theme-muted)}.josy-balance-strip b{margin-left:auto;font-size:22px;color:var(--theme-primary)}.josy-balance-strip span{font-size:10px;color:var(--theme-muted)}.josy-preferences{display:grid;gap:17px}.josy-step{display:flex;align-items:flex-start;gap:10px}.josy-step>span{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:var(--theme-primary);color:#fff;font-size:12px;font-weight:900;flex:none}.josy-step h3{margin:1px 0 3px;font-size:18px}.josy-step p{margin:0;color:var(--theme-muted);font-size:12px}.josy-task-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.josy-task{position:relative;cursor:pointer}.josy-task input,.josy-source-grid input,.josy-priority input{accent-color:var(--theme-primary)}.josy-task input{position:absolute;opacity:0}.josy-task-content{height:100%;display:flex;flex-direction:column;align-items:flex-start;gap:7px;border:1px solid var(--theme-border);border-radius:12px;padding:14px;background:var(--theme-surface);transition:background .15s,border-color .15s,box-shadow .15s}.josy-task input:checked+.josy-task-content{border-color:var(--theme-primary);background:var(--theme-accent-soft);box-shadow:0 0 0 1px var(--theme-primary)}.josy-task input:focus-visible+.josy-task-content{outline:3px solid var(--theme-highlight);outline-offset:2px}.josy-task-content .icon{width:24px;height:24px;color:var(--theme-primary)}.josy-task-content strong{font-size:13px}.josy-task-content small{font-size:11px;line-height:1.4;color:var(--theme-muted);flex:1}.josy-task-content b{font-size:11px;color:var(--theme-primary);background:#fff;border-radius:20px;padding:5px 8px}.josy-source-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.josy-source-grid label,.josy-priority{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--theme-border);border-radius:11px;padding:13px 14px;cursor:pointer}.josy-source-grid label:has(input:checked),.josy-priority:has(input:checked){border-color:var(--theme-primary);background:var(--theme-accent-soft)}.josy-source-grid span,.josy-priority span{display:grid;gap:4px}.josy-source-grid b,.josy-priority b{font-size:13px}.josy-source-grid small,.josy-priority small{font-size:11px;color:var(--theme-muted);line-height:1.4}.josy-priority{max-width:none}.josy-preference-foot{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px 0;border-top:1px solid var(--theme-border)}.josy-preference-foot>div{display:grid;gap:3px}.josy-preference-foot b{font-size:14px}.josy-preference-foot small{font-size:11px;color:var(--theme-muted)}.josy-preference-foot button,.josy-prompt-preview button{border:0;border-radius:9px;padding:12px 17px;background:var(--theme-primary);color:white;font-weight:800;cursor:pointer}.josy-prompt-preview{border-top:1px solid var(--theme-border);padding-top:17px;display:grid;gap:9px}.josy-prompt-preview h3{margin:0;font-size:18px}.josy-prompt-preview p{margin:3px 0;color:var(--theme-muted);font-size:12px}.josy-prompt-preview textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid var(--theme-border);border-radius:10px;font:inherit;background:var(--theme-surface-muted)}.josy-prompt-preview button{width:max-content;background:var(--theme-accent-soft);color:var(--theme-muted);cursor:not-allowed}.josy-package-link{font-size:12px;font-weight:800;color:var(--theme-primary)}
@media(max-width:760px){.josy-task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.josy-balance-strip{grid-template-columns:1fr 1fr}.josy-balance-strip>div:last-child{grid-column:1/-1}.josy-source-grid{grid-template-columns:1fr}.josy-preference-foot{align-items:flex-start;flex-direction:column}.essay-hero-actions [data-josy-open]{min-width:0;width:100%}}
@media(max-width:480px){.josy-task-grid{grid-template-columns:1fr}.josy-task-content{min-height:85px}}
