.school-bulletin-app {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 1.25rem 4rem;
    font-family: var(--font-family);
}
.school-bulletin-app .ql-container,
.school-bulletin-app .ql-editor,
.school-bulletin-app .ql-toolbar,
.school-bulletin-sheet,
.school-bulletin-sheet h1,
.school-bulletin-sheet h2,
.school-bulletin-sheet h3,
.sb-read-body,
.sb-intro,
.sb-outro {
    font-family: inherit;
}
.school-bulletin-app .ql-editor.ql-blank::before {
    font-family: inherit;
    font-style: normal;
}
.school-bulletin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.school-bulletin-toolbar h2 {
    margin: 0;
    font-weight: 600;
}
.sb-sheet-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
.sb-school-logo {
    display: block;
    flex: 0 0 auto;
    width: auto;
    height: 72px;
    max-width: 120px;
    max-height: 88px;
    object-fit: contain;
    object-position: left top;
    background: #fff;
}
.sb-sheet-head-main {
    flex: 1 1 12rem;
    min-width: 0;
}
.sb-sheet-head > .btn {
    flex: 0 0 auto;
    margin-left: auto;
    align-self: flex-start;
}
@media (max-width: 640px) {
    .sb-sheet-head > .btn {
        margin-left: 0;
        order: -1;
        width: 100%;
        text-align: center;
    }
}
.sb-sheet-head h1 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 650;
    margin: 0.25rem 0 0.5rem;
    line-height: 1.25;
}
.sb-atts {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1.25rem;
}
.sb-atts li {
    margin: 0.35rem 0;
}
.sb-atts a,
.sb-att-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent, #2a5a8a);
    font-weight: 500;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
}
.sb-atts-box {
    margin: 1.25rem 0;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 0.4rem;
    background: rgba(0,0,0,0.02);
}
.sb-atts-box h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}
#dashboard-school-bulletins-content .sb-dash-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-left: 3px solid var(--accent, #2a5a8a);
    background: transparent;
    padding: 0.4rem 0.5rem;
    margin: 0.35rem 0;
    cursor: pointer;
    font: inherit;
}
#dashboard-school-bulletins-content .sb-dash-item:hover {
    background: rgba(0,0,0,0.03);
}
#dashboard-school-bulletins-content .sb-dash-title {
    font-weight: 600;
    font-size: 0.9rem;
}
#dashboard-school-bulletins-content .sb-dash-meta {
    font-size: 0.8rem;
    opacity: 0.7;
}
.school-bulletin-card {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: transparent;
    padding: 0.85rem 0;
    cursor: pointer;
}
.school-bulletin-card-title { font-weight: 600; }
.school-bulletin-card-meta { font-size: 0.85rem; opacity: 0.7; }
.sb-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    background: #e8e8e8;
    vertical-align: middle;
}
.sb-badge.sb-ok { background: #d4edda; }
.sb-badge.sb-warn { background: #fff3cd; }
.school-bulletin-editor label {
    display: block;
    margin: 0.75rem 0;
}
.sb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.5rem 0 1rem;
}
.sb-chip {
    border: 1px solid rgba(0,0,0,0.15);
    background: #fff;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
}
.sb-chip:hover { background: #f0ebe3; }
.sb-hint { font-size: 0.9rem; margin: 0 0 0.35rem; }
.sb-block {
    margin: 0.75rem 0 1rem;
    padding: 0.75rem;
    background: linear-gradient(180deg, #f7f5f1 0%, #faf9f7 100%);
    border-radius: 0.35rem;
}
.sb-block-head {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.35rem;
}
.sb-block-head .sb-block-title { flex: 1; }
.sb-quill-shell {
    resize: vertical;
    overflow: hidden;
    min-height: 160px;
    height: 200px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}
.sb-quill-shell .ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    flex: 0 0 auto;
}
.sb-quill-shell .ql-container.ql-snow {
    border: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    font-size: 1rem;
}
.sb-quill-shell .ql-editor {
    min-height: 100%;
}
.sb-quill-shell .ql-editor img {
    max-width: 100%;
    height: auto;
}
.sb-quill {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.sb-targets-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr auto;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}
.sb-targets-email-row {
    grid-template-columns: 1fr auto;
    margin-top: 0.25rem;
}
#sb-targets {
    list-style: none;
    padding: 0;
}
#sb-targets li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.school-bulletin-sheet {
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.25rem 1.25rem 2rem;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
    background-image: linear-gradient(165deg, #fbfaf7 0%, #ffffff 40%);
}
.sb-kicker {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    opacity: 0.65;
    margin: 0;
}
.sb-read-block {
    margin: 1.5rem 0;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.sb-read-block h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}
.sb-read-body img {
    max-width: 100%;
    height: auto;
}
.sb-confirm-bar {
    position: sticky;
    bottom: 0;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.95);
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    justify-content: center;
    z-index: 5;
}
.sb-readonly-note {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: #6a5a3a;
    background: #fff8e6;
    padding: 0.4rem 0.6rem;
    border-radius: 0.3rem;
}
.school-bulletin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.school-bulletin-editor-head {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
@media (max-width: 640px) {
    .school-bulletin-app { padding: 0.75rem 0.75rem 5rem; }
    .sb-targets-row { grid-template-columns: 1fr; }
}
