.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-overlay[hidden] {
    display: none;
}

.modal {
    background: #fff;
    width: min(720px, 95vw);
    max-height: 90vh;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-header button {
        border: none;
        background: none;
        font-size: 20px;
        cursor: pointer;
    }

.notice-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notice-updated {
    color: #666;
    font-weight: 400;
    font-size: 13px;
}

.notice-edit-btn {
    padding: 6px 10px;
    gap: 6px;
}

.notice-edit-btn i {
    font-size: 16px;
}

.notice-edit {
    width: min(860px, 96vw);
}

.notice-edit-tabs {
    display: flex;
    gap: 6px;
    margin: 10px 0;
}

.notice-tab {
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    padding: 6px 12px;
    border-radius: 10px;
    cursor: pointer;
}

    .notice-tab.active {
        background: #f0f4ff;
        border-color: rgba(70,110,220,.45);
        font-weight: 700;
    }

.notice-edit-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notice-preview {
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 12px;
    padding: 10px;
    min-height: 220px;
    max-height: 55vh;
    overflow: auto;
    background: #fff;
}

.notice-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.md-toolbar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

    .md-toolbar .tb {
        border: 1px solid rgba(0,0,0,.12);
        border-radius: 10px;
        padding: 6px 10px;
        background: #fff;
        cursor: pointer;
    }

.md-text {
    width: 100%;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 12px;
    padding: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.35;
    resize: vertical;
    box-sizing: border-box;
}


